@agnos-ui/angular-bootstrap 0.6.0 → 0.7.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/accordion.component.d.ts +39 -46
- package/components/alert/alert.component.d.ts +18 -22
- package/components/collapse/collapse.component.d.ts +11 -15
- package/components/modal/modal.component.d.ts +30 -36
- package/components/pagination/pagination.component.d.ts +38 -44
- package/components/progressbar/progressbar.component.d.ts +16 -21
- package/components/rating/rating.component.d.ts +17 -23
- package/components/select/select.component.d.ts +24 -27
- package/components/slider/slider.component.d.ts +22 -31
- package/components/toast/toast.component.d.ts +21 -27
- package/components/tree/tree.component.d.ts +16 -16
- package/fesm2022/agnos-ui-angular-bootstrap.mjs +1447 -1052
- package/fesm2022/agnos-ui-angular-bootstrap.mjs.map +1 -1
- package/package.json +6 -6
- package/esm2022/agnos-ui-angular-bootstrap.mjs +0 -5
- package/esm2022/agnos-ui-angular.module.mjs +0 -174
- package/esm2022/components/accordion/accordion.component.mjs +0 -586
- package/esm2022/components/accordion/accordion.gen.mjs +0 -33
- package/esm2022/components/accordion/index.mjs +0 -3
- package/esm2022/components/alert/alert.component.mjs +0 -270
- package/esm2022/components/alert/alert.gen.mjs +0 -15
- package/esm2022/components/alert/index.mjs +0 -3
- package/esm2022/components/collapse/collapse.component.mjs +0 -89
- package/esm2022/components/collapse/collapse.gen.mjs +0 -15
- package/esm2022/components/collapse/index.mjs +0 -3
- package/esm2022/components/modal/index.mjs +0 -4
- package/esm2022/components/modal/modal.component.mjs +0 -460
- package/esm2022/components/modal/modal.gen.mjs +0 -27
- package/esm2022/components/modal/modal.service.mjs +0 -57
- package/esm2022/components/pagination/index.mjs +0 -3
- package/esm2022/components/pagination/pagination.component.mjs +0 -600
- package/esm2022/components/pagination/pagination.gen.mjs +0 -15
- package/esm2022/components/progressbar/index.mjs +0 -3
- package/esm2022/components/progressbar/progressbar.component.mjs +0 -219
- package/esm2022/components/progressbar/progressbar.gen.mjs +0 -15
- package/esm2022/components/rating/index.mjs +0 -3
- package/esm2022/components/rating/rating.component.mjs +0 -205
- package/esm2022/components/rating/rating.gen.mjs +0 -15
- package/esm2022/components/select/index.mjs +0 -3
- package/esm2022/components/select/select.component.mjs +0 -282
- package/esm2022/components/select/select.gen.mjs +0 -15
- package/esm2022/components/slider/index.mjs +0 -3
- package/esm2022/components/slider/slider.component.mjs +0 -463
- package/esm2022/components/slider/slider.gen.mjs +0 -15
- package/esm2022/components/toast/index.mjs +0 -3
- package/esm2022/components/toast/toast.component.mjs +0 -324
- package/esm2022/components/toast/toast.gen.mjs +0 -15
- package/esm2022/components/tree/index.mjs +0 -3
- package/esm2022/components/tree/tree.component.mjs +0 -450
- package/esm2022/components/tree/tree.gen.mjs +0 -15
- package/esm2022/config.gen.mjs +0 -2
- package/esm2022/config.mjs +0 -21
- package/esm2022/index.mjs +0 -30
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { widgetsConfigFactory, SlotDirective, UseDirective, ComponentTemplate, BaseWidgetDirective, auBooleanAttribute, UseMultiDirective, auNumberAttribute, useDirectiveForHost, callWidgetFactory as callWidgetFactory$1 } from '@agnos-ui/angular-headless';
|
|
2
2
|
export * from '@agnos-ui/angular-headless';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, inject, TemplateRef, Directive, Component, ChangeDetectionStrategy,
|
|
4
|
+
import { InjectionToken, inject, TemplateRef, Directive, viewChild, Component, ChangeDetectionStrategy, input, contentChild, output, ViewEncapsulation, forwardRef, NgModule, Injector, ApplicationRef, createComponent, EnvironmentInjector, OutputEmitterRef, Injectable } from '@angular/core';
|
|
5
5
|
import { getModalDefaultConfig, createModal, modalOutsideClick, modalCloseButtonClick } from '@agnos-ui/core-bootstrap/components/modal';
|
|
6
6
|
import { getPaginationDefaultConfig, createPagination } from '@agnos-ui/core-bootstrap/components/pagination';
|
|
7
7
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
@@ -164,7 +164,7 @@ class ModalStructureDirective {
|
|
|
164
164
|
return true;
|
|
165
165
|
}
|
|
166
166
|
static { this.ɵfac = function ModalStructureDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ModalStructureDirective)(); }; }
|
|
167
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalStructureDirective, selectors: [["ng-template", "auModalStructure", ""]]
|
|
167
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalStructureDirective, selectors: [["ng-template", "auModalStructure", ""]] }); }
|
|
168
168
|
}
|
|
169
169
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalStructureDirective, [{
|
|
170
170
|
type: Directive,
|
|
@@ -182,7 +182,7 @@ class ModalHeaderDirective {
|
|
|
182
182
|
return true;
|
|
183
183
|
}
|
|
184
184
|
static { this.ɵfac = function ModalHeaderDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ModalHeaderDirective)(); }; }
|
|
185
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalHeaderDirective, selectors: [["ng-template", "auModalHeader", ""]]
|
|
185
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalHeaderDirective, selectors: [["ng-template", "auModalHeader", ""]] }); }
|
|
186
186
|
}
|
|
187
187
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalHeaderDirective, [{
|
|
188
188
|
type: Directive,
|
|
@@ -200,7 +200,7 @@ class ModalTitleDirective {
|
|
|
200
200
|
return true;
|
|
201
201
|
}
|
|
202
202
|
static { this.ɵfac = function ModalTitleDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ModalTitleDirective)(); }; }
|
|
203
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalTitleDirective, selectors: [["ng-template", "auModalTitle", ""]]
|
|
203
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalTitleDirective, selectors: [["ng-template", "auModalTitle", ""]] }); }
|
|
204
204
|
}
|
|
205
205
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalTitleDirective, [{
|
|
206
206
|
type: Directive,
|
|
@@ -218,7 +218,7 @@ class ModalBodyDirective {
|
|
|
218
218
|
return true;
|
|
219
219
|
}
|
|
220
220
|
static { this.ɵfac = function ModalBodyDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ModalBodyDirective)(); }; }
|
|
221
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalBodyDirective, selectors: [["ng-template", "auModalBody", ""]]
|
|
221
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalBodyDirective, selectors: [["ng-template", "auModalBody", ""]] }); }
|
|
222
222
|
}
|
|
223
223
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalBodyDirective, [{
|
|
224
224
|
type: Directive,
|
|
@@ -236,7 +236,7 @@ class ModalFooterDirective {
|
|
|
236
236
|
return true;
|
|
237
237
|
}
|
|
238
238
|
static { this.ɵfac = function ModalFooterDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ModalFooterDirective)(); }; }
|
|
239
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalFooterDirective, selectors: [["ng-template", "auModalFooter", ""]]
|
|
239
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalFooterDirective, selectors: [["ng-template", "auModalFooter", ""]] }); }
|
|
240
240
|
}
|
|
241
241
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalFooterDirective, [{
|
|
242
242
|
type: Directive,
|
|
@@ -246,22 +246,23 @@ class ModalFooterDirective {
|
|
|
246
246
|
* Component containing the default slots for the modal.
|
|
247
247
|
*/
|
|
248
248
|
class ModalDefaultSlotsComponent {
|
|
249
|
+
constructor() {
|
|
250
|
+
this.header = viewChild.required('header');
|
|
251
|
+
this.structure = viewChild.required('structure');
|
|
252
|
+
}
|
|
249
253
|
static { this.ɵfac = function ModalDefaultSlotsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ModalDefaultSlotsComponent)(); }; }
|
|
250
254
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ModalDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function ModalDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
251
|
-
i0.ɵɵ
|
|
252
|
-
i0.ɵɵ
|
|
255
|
+
i0.ɵɵviewQuerySignal(ctx.header, _c0$9, 5);
|
|
256
|
+
i0.ɵɵviewQuerySignal(ctx.structure, _c1$9, 5);
|
|
253
257
|
} if (rf & 2) {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.structure = _t.first);
|
|
257
|
-
} }, 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) {
|
|
258
|
+
i0.ɵɵqueryAdvance(2);
|
|
259
|
+
} }, 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) {
|
|
258
260
|
i0.ɵɵtemplate(0, ModalDefaultSlotsComponent_ng_template_0_Template, 3, 7, "ng-template", 2, 0, i0.ɵɵtemplateRefExtractor)(2, ModalDefaultSlotsComponent_ng_template_2_Template, 4, 8, "ng-template", 3, 1, i0.ɵɵtemplateRefExtractor);
|
|
259
261
|
} }, dependencies: [SlotDirective, ModalHeaderDirective, ModalStructureDirective, UseDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
260
262
|
}
|
|
261
263
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalDefaultSlotsComponent, [{
|
|
262
264
|
type: Component,
|
|
263
265
|
args: [{
|
|
264
|
-
standalone: true,
|
|
265
266
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
266
267
|
imports: [SlotDirective, ModalHeaderDirective, ModalStructureDirective, UseDirective],
|
|
267
268
|
template: `
|
|
@@ -290,14 +291,8 @@ class ModalDefaultSlotsComponent {
|
|
|
290
291
|
</ng-template>
|
|
291
292
|
`,
|
|
292
293
|
}]
|
|
293
|
-
}], null,
|
|
294
|
-
|
|
295
|
-
args: ['header', { static: true }]
|
|
296
|
-
}], structure: [{
|
|
297
|
-
type: ViewChild,
|
|
298
|
-
args: ['structure', { static: true }]
|
|
299
|
-
}] }); })();
|
|
300
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ModalDefaultSlotsComponent, { className: "ModalDefaultSlotsComponent", filePath: "components/modal/modal.component.ts", lineNumber: 112 }); })();
|
|
294
|
+
}], null, null); })();
|
|
295
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ModalDefaultSlotsComponent, { className: "ModalDefaultSlotsComponent", filePath: "components/modal/modal.component.ts", lineNumber: 100 }); })();
|
|
301
296
|
/**
|
|
302
297
|
* Default slot for modal header.
|
|
303
298
|
*/
|
|
@@ -325,14 +320,121 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
325
320
|
onVisibleChange: (event) => this.visibleChange.emit(event),
|
|
326
321
|
},
|
|
327
322
|
slotTemplates: () => ({
|
|
328
|
-
children: this.slotDefaultFromContent?.templateRef,
|
|
329
|
-
footer: this.slotFooterFromContent?.templateRef,
|
|
330
|
-
header: this.slotHeaderFromContent?.templateRef,
|
|
331
|
-
structure: this.slotStructureFromContent?.templateRef,
|
|
332
|
-
title: this.slotTitleFromContent?.templateRef,
|
|
323
|
+
children: this.slotDefaultFromContent()?.templateRef,
|
|
324
|
+
footer: this.slotFooterFromContent()?.templateRef,
|
|
325
|
+
header: this.slotHeaderFromContent()?.templateRef,
|
|
326
|
+
structure: this.slotStructureFromContent()?.templateRef,
|
|
327
|
+
title: this.slotTitleFromContent()?.templateRef,
|
|
333
328
|
}),
|
|
334
|
-
slotChildren: () => this.slotChildren,
|
|
329
|
+
slotChildren: () => this.slotChildren(),
|
|
335
330
|
}));
|
|
331
|
+
/**
|
|
332
|
+
* Whether the modal and its backdrop (if present) should be animated when shown or hidden.
|
|
333
|
+
*
|
|
334
|
+
* @defaultValue `true`
|
|
335
|
+
*/
|
|
336
|
+
this.animated = input(undefined, { alias: 'auAnimated', transform: auBooleanAttribute });
|
|
337
|
+
/**
|
|
338
|
+
* The transition to use for the backdrop behind the modal (if present).
|
|
339
|
+
*
|
|
340
|
+
* @defaultValue `fadeTransition`
|
|
341
|
+
*/
|
|
342
|
+
this.backdropTransition = input(undefined, { alias: 'auBackdropTransition' });
|
|
343
|
+
/**
|
|
344
|
+
* The transition to use for the modal.
|
|
345
|
+
*
|
|
346
|
+
* @defaultValue `fadeTransition`
|
|
347
|
+
*/
|
|
348
|
+
this.modalTransition = input(undefined, { alias: 'auModalTransition' });
|
|
349
|
+
/**
|
|
350
|
+
* Whether the modal should be visible when the transition is completed.
|
|
351
|
+
*
|
|
352
|
+
* @defaultValue `false`
|
|
353
|
+
*/
|
|
354
|
+
this.visible = input(undefined, { alias: 'auVisible', transform: auBooleanAttribute });
|
|
355
|
+
/**
|
|
356
|
+
* Whether a backdrop should be created behind the modal.
|
|
357
|
+
*
|
|
358
|
+
* @defaultValue `true`
|
|
359
|
+
*/
|
|
360
|
+
this.backdrop = input(undefined, { alias: 'auBackdrop', transform: auBooleanAttribute });
|
|
361
|
+
/**
|
|
362
|
+
* Whether the modal should be closed when clicking on the viewport outside the modal.
|
|
363
|
+
*
|
|
364
|
+
* @defaultValue `true`
|
|
365
|
+
*/
|
|
366
|
+
this.closeOnOutsideClick = input(undefined, { alias: 'auCloseOnOutsideClick', transform: auBooleanAttribute });
|
|
367
|
+
/**
|
|
368
|
+
* Which element should contain the modal and backdrop DOM elements.
|
|
369
|
+
* If it is not null, the modal and backdrop DOM elements are moved to the specified container.
|
|
370
|
+
* Otherwise, they stay where the widget is located.
|
|
371
|
+
*
|
|
372
|
+
* @defaultValue
|
|
373
|
+
* ```ts
|
|
374
|
+
* typeof window !== 'undefined' ? document.body : null
|
|
375
|
+
* ```
|
|
376
|
+
*/
|
|
377
|
+
this.container = input(undefined, { alias: 'auContainer' });
|
|
378
|
+
/**
|
|
379
|
+
* Value of the aria-label attribute to put on the close button.
|
|
380
|
+
*
|
|
381
|
+
* @defaultValue `'Close'`
|
|
382
|
+
*/
|
|
383
|
+
this.ariaCloseButtonLabel = input(undefined, { alias: 'auAriaCloseButtonLabel' });
|
|
384
|
+
/**
|
|
385
|
+
* Classes to add on the backdrop DOM element.
|
|
386
|
+
*
|
|
387
|
+
* @defaultValue `''`
|
|
388
|
+
*/
|
|
389
|
+
this.backdropClass = input(undefined, { alias: 'auBackdropClass' });
|
|
390
|
+
/**
|
|
391
|
+
* Whether to display the close button.
|
|
392
|
+
*
|
|
393
|
+
* @defaultValue `true`
|
|
394
|
+
*/
|
|
395
|
+
this.closeButton = input(undefined, { alias: 'auCloseButton', transform: auBooleanAttribute });
|
|
396
|
+
/**
|
|
397
|
+
* CSS classes to be applied on the widget main container
|
|
398
|
+
*
|
|
399
|
+
* @defaultValue `''`
|
|
400
|
+
*/
|
|
401
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
402
|
+
/**
|
|
403
|
+
* Option to create a fullscreen modal, according to the bootstrap documentation.
|
|
404
|
+
*
|
|
405
|
+
* @defaultValue `false`
|
|
406
|
+
*/
|
|
407
|
+
this.fullscreen = input(undefined, { alias: 'auFullscreen', transform: auBooleanAttribute });
|
|
408
|
+
/**
|
|
409
|
+
* Structure of the modal.
|
|
410
|
+
* The default structure uses {@link ModalProps.header|header}, {@link ModalProps.children|children} and {@link ModalProps.footer|footer}.
|
|
411
|
+
*/
|
|
412
|
+
this.structure = input(undefined, { alias: 'auStructure' });
|
|
413
|
+
this.slotStructureFromContent = contentChild(ModalStructureDirective);
|
|
414
|
+
/**
|
|
415
|
+
* Header of the modal. The default header includes {@link ModalProps.title|title}.
|
|
416
|
+
*/
|
|
417
|
+
this.header = input(undefined, { alias: 'auHeader' });
|
|
418
|
+
this.slotHeaderFromContent = contentChild(ModalHeaderDirective);
|
|
419
|
+
/**
|
|
420
|
+
* Title of the modal.
|
|
421
|
+
*/
|
|
422
|
+
this.title = input(undefined, { alias: 'auTitle' });
|
|
423
|
+
this.slotTitleFromContent = contentChild(ModalTitleDirective);
|
|
424
|
+
/**
|
|
425
|
+
* Body of the modal.
|
|
426
|
+
*/
|
|
427
|
+
this.children = input(undefined, { alias: 'auChildren' });
|
|
428
|
+
this.slotDefaultFromContent = contentChild(ModalBodyDirective);
|
|
429
|
+
/**
|
|
430
|
+
* Footer of the modal.
|
|
431
|
+
*/
|
|
432
|
+
this.footer = input(undefined, { alias: 'auFooter' });
|
|
433
|
+
this.slotFooterFromContent = contentChild(ModalFooterDirective);
|
|
434
|
+
/**
|
|
435
|
+
* Data to use in content slots
|
|
436
|
+
*/
|
|
437
|
+
this.contentData = input(undefined, { alias: 'auContentData' });
|
|
336
438
|
/**
|
|
337
439
|
* Event to be triggered when the visible property changes.
|
|
338
440
|
*
|
|
@@ -343,7 +445,7 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
343
445
|
* () => {}
|
|
344
446
|
* ```
|
|
345
447
|
*/
|
|
346
|
-
this.visibleChange =
|
|
448
|
+
this.visibleChange = output({ alias: 'auVisibleChange' });
|
|
347
449
|
/**
|
|
348
450
|
* Event to be triggered when the modal is about to be closed (i.e. the {@link ModalApi.close|close} method was called).
|
|
349
451
|
*
|
|
@@ -355,7 +457,7 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
355
457
|
* () => {}
|
|
356
458
|
* ```
|
|
357
459
|
*/
|
|
358
|
-
this.beforeClose =
|
|
460
|
+
this.beforeClose = output({ alias: 'auBeforeClose' });
|
|
359
461
|
/**
|
|
360
462
|
* Event to be triggered when the transition is completed and the modal is not visible.
|
|
361
463
|
*
|
|
@@ -364,7 +466,7 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
364
466
|
* () => {}
|
|
365
467
|
* ```
|
|
366
468
|
*/
|
|
367
|
-
this.hidden =
|
|
469
|
+
this.hidden = output({ alias: 'auHidden' });
|
|
368
470
|
/**
|
|
369
471
|
* Event to be triggered when the transition is completed and the modal is visible.
|
|
370
472
|
*
|
|
@@ -373,28 +475,23 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
373
475
|
* () => {}
|
|
374
476
|
* ```
|
|
375
477
|
*/
|
|
376
|
-
this.shown =
|
|
478
|
+
this.shown = output({ alias: 'auShown' });
|
|
479
|
+
this.slotChildren = viewChild('content');
|
|
377
480
|
}
|
|
378
481
|
static { this.ɵfac = function ModalComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ModalComponent)(); }; }
|
|
379
482
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ModalComponent, selectors: [["", "auModal", ""]], contentQueries: function ModalComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
380
|
-
i0.ɵɵ
|
|
381
|
-
i0.ɵɵ
|
|
382
|
-
i0.ɵɵ
|
|
383
|
-
i0.ɵɵ
|
|
384
|
-
i0.ɵɵ
|
|
483
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotStructureFromContent, ModalStructureDirective, 5);
|
|
484
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotHeaderFromContent, ModalHeaderDirective, 5);
|
|
485
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotTitleFromContent, ModalTitleDirective, 5);
|
|
486
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotDefaultFromContent, ModalBodyDirective, 5);
|
|
487
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotFooterFromContent, ModalFooterDirective, 5);
|
|
385
488
|
} if (rf & 2) {
|
|
386
|
-
|
|
387
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
|
|
388
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotHeaderFromContent = _t.first);
|
|
389
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotTitleFromContent = _t.first);
|
|
390
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotDefaultFromContent = _t.first);
|
|
391
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotFooterFromContent = _t.first);
|
|
489
|
+
i0.ɵɵqueryAdvance(5);
|
|
392
490
|
} }, viewQuery: function ModalComponent_Query(rf, ctx) { if (rf & 1) {
|
|
393
|
-
i0.ɵɵ
|
|
491
|
+
i0.ɵɵviewQuerySignal(ctx.slotChildren, _c3$8, 5);
|
|
394
492
|
} if (rf & 2) {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
} }, inputs: { animated: [2, "auAnimated", "animated", auBooleanAttribute], backdropTransition: [0, "auBackdropTransition", "backdropTransition"], modalTransition: [0, "auModalTransition", "modalTransition"], visible: [2, "auVisible", "visible", auBooleanAttribute], backdrop: [2, "auBackdrop", "backdrop", auBooleanAttribute], closeOnOutsideClick: [2, "auCloseOnOutsideClick", "closeOnOutsideClick", auBooleanAttribute], container: [0, "auContainer", "container"], ariaCloseButtonLabel: [0, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], backdropClass: [0, "auBackdropClass", "backdropClass"], closeButton: [2, "auCloseButton", "closeButton", auBooleanAttribute], className: [0, "auClassName", "className"], fullscreen: [2, "auFullscreen", "fullscreen", auBooleanAttribute], structure: [0, "auStructure", "structure"], header: [0, "auHeader", "header"], title: [0, "auTitle", "title"], children: [0, "auChildren", "children"], footer: [0, "auFooter", "footer"], contentData: [0, "auContentData", "contentData"] }, outputs: { visibleChange: "auVisibleChange", beforeClose: "auBeforeClose", hidden: "auHidden", shown: "auShown" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c4$7, ngContentSelectors: _c5$5, decls: 4, vars: 2, consts: [["content", ""], [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) {
|
|
493
|
+
i0.ɵɵqueryAdvance();
|
|
494
|
+
} }, inputs: { animated: [1, "auAnimated", "animated"], backdropTransition: [1, "auBackdropTransition", "backdropTransition"], modalTransition: [1, "auModalTransition", "modalTransition"], visible: [1, "auVisible", "visible"], backdrop: [1, "auBackdrop", "backdrop"], closeOnOutsideClick: [1, "auCloseOnOutsideClick", "closeOnOutsideClick"], container: [1, "auContainer", "container"], ariaCloseButtonLabel: [1, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], backdropClass: [1, "auBackdropClass", "backdropClass"], closeButton: [1, "auCloseButton", "closeButton"], className: [1, "auClassName", "className"], fullscreen: [1, "auFullscreen", "fullscreen"], structure: [1, "auStructure", "structure"], header: [1, "auHeader", "header"], title: [1, "auTitle", "title"], children: [1, "auChildren", "children"], footer: [1, "auFooter", "footer"], contentData: [1, "auContentData", "contentData"] }, outputs: { visibleChange: "auVisibleChange", beforeClose: "auBeforeClose", hidden: "auHidden", shown: "auShown" }, features: [i0.ɵɵInheritDefinitionFeature], attrs: _c4$7, ngContentSelectors: _c5$5, decls: 4, vars: 2, consts: [["content", ""], [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) {
|
|
398
495
|
i0.ɵɵprojectionDef();
|
|
399
496
|
i0.ɵɵtemplate(0, ModalComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(2, ModalComponent_Conditional_2_Template, 1, 4, "div", 1)(3, ModalComponent_Conditional_3_Template, 4, 13, "div", 2);
|
|
400
497
|
} if (rf & 2) {
|
|
@@ -408,7 +505,6 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
408
505
|
type: Component,
|
|
409
506
|
args: [{
|
|
410
507
|
selector: '[auModal]',
|
|
411
|
-
standalone: true,
|
|
412
508
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
413
509
|
imports: [UseMultiDirective, SlotDirective],
|
|
414
510
|
template: `
|
|
@@ -427,92 +523,8 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
427
523
|
}
|
|
428
524
|
`,
|
|
429
525
|
}]
|
|
430
|
-
}], () => [],
|
|
431
|
-
|
|
432
|
-
args: [{ alias: 'auAnimated', transform: auBooleanAttribute }]
|
|
433
|
-
}], backdropTransition: [{
|
|
434
|
-
type: Input,
|
|
435
|
-
args: ['auBackdropTransition']
|
|
436
|
-
}], modalTransition: [{
|
|
437
|
-
type: Input,
|
|
438
|
-
args: ['auModalTransition']
|
|
439
|
-
}], visible: [{
|
|
440
|
-
type: Input,
|
|
441
|
-
args: [{ alias: 'auVisible', transform: auBooleanAttribute }]
|
|
442
|
-
}], backdrop: [{
|
|
443
|
-
type: Input,
|
|
444
|
-
args: [{ alias: 'auBackdrop', transform: auBooleanAttribute }]
|
|
445
|
-
}], closeOnOutsideClick: [{
|
|
446
|
-
type: Input,
|
|
447
|
-
args: [{ alias: 'auCloseOnOutsideClick', transform: auBooleanAttribute }]
|
|
448
|
-
}], container: [{
|
|
449
|
-
type: Input,
|
|
450
|
-
args: ['auContainer']
|
|
451
|
-
}], ariaCloseButtonLabel: [{
|
|
452
|
-
type: Input,
|
|
453
|
-
args: ['auAriaCloseButtonLabel']
|
|
454
|
-
}], backdropClass: [{
|
|
455
|
-
type: Input,
|
|
456
|
-
args: ['auBackdropClass']
|
|
457
|
-
}], closeButton: [{
|
|
458
|
-
type: Input,
|
|
459
|
-
args: [{ alias: 'auCloseButton', transform: auBooleanAttribute }]
|
|
460
|
-
}], className: [{
|
|
461
|
-
type: Input,
|
|
462
|
-
args: ['auClassName']
|
|
463
|
-
}], fullscreen: [{
|
|
464
|
-
type: Input,
|
|
465
|
-
args: [{ alias: 'auFullscreen', transform: auBooleanAttribute }]
|
|
466
|
-
}], structure: [{
|
|
467
|
-
type: Input,
|
|
468
|
-
args: ['auStructure']
|
|
469
|
-
}], slotStructureFromContent: [{
|
|
470
|
-
type: ContentChild,
|
|
471
|
-
args: [ModalStructureDirective, { static: false }]
|
|
472
|
-
}], header: [{
|
|
473
|
-
type: Input,
|
|
474
|
-
args: ['auHeader']
|
|
475
|
-
}], slotHeaderFromContent: [{
|
|
476
|
-
type: ContentChild,
|
|
477
|
-
args: [ModalHeaderDirective, { static: false }]
|
|
478
|
-
}], title: [{
|
|
479
|
-
type: Input,
|
|
480
|
-
args: ['auTitle']
|
|
481
|
-
}], slotTitleFromContent: [{
|
|
482
|
-
type: ContentChild,
|
|
483
|
-
args: [ModalTitleDirective, { static: false }]
|
|
484
|
-
}], children: [{
|
|
485
|
-
type: Input,
|
|
486
|
-
args: ['auChildren']
|
|
487
|
-
}], slotDefaultFromContent: [{
|
|
488
|
-
type: ContentChild,
|
|
489
|
-
args: [ModalBodyDirective, { static: false }]
|
|
490
|
-
}], footer: [{
|
|
491
|
-
type: Input,
|
|
492
|
-
args: ['auFooter']
|
|
493
|
-
}], slotFooterFromContent: [{
|
|
494
|
-
type: ContentChild,
|
|
495
|
-
args: [ModalFooterDirective, { static: false }]
|
|
496
|
-
}], contentData: [{
|
|
497
|
-
type: Input,
|
|
498
|
-
args: ['auContentData']
|
|
499
|
-
}], visibleChange: [{
|
|
500
|
-
type: Output,
|
|
501
|
-
args: ['auVisibleChange']
|
|
502
|
-
}], beforeClose: [{
|
|
503
|
-
type: Output,
|
|
504
|
-
args: ['auBeforeClose']
|
|
505
|
-
}], hidden: [{
|
|
506
|
-
type: Output,
|
|
507
|
-
args: ['auHidden']
|
|
508
|
-
}], shown: [{
|
|
509
|
-
type: Output,
|
|
510
|
-
args: ['auShown']
|
|
511
|
-
}], slotChildren: [{
|
|
512
|
-
type: ViewChild,
|
|
513
|
-
args: ['content', { static: true }]
|
|
514
|
-
}] }); })();
|
|
515
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ModalComponent, { className: "ModalComponent", filePath: "components/modal/modal.component.ts", lineNumber: 151 }); })();
|
|
526
|
+
}], () => [], null); })();
|
|
527
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ModalComponent, { className: "ModalComponent", filePath: "components/modal/modal.component.ts", lineNumber: 138 }); })();
|
|
516
528
|
|
|
517
529
|
/**
|
|
518
530
|
* Retrieve a shallow copy of the default Pagination config
|
|
@@ -697,7 +709,7 @@ class PaginationEllipsisDirective {
|
|
|
697
709
|
return true;
|
|
698
710
|
}
|
|
699
711
|
static { this.ɵfac = function PaginationEllipsisDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationEllipsisDirective)(); }; }
|
|
700
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationEllipsisDirective, selectors: [["ng-template", "auPaginationEllipsis", ""]]
|
|
712
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationEllipsisDirective, selectors: [["ng-template", "auPaginationEllipsis", ""]] }); }
|
|
701
713
|
}
|
|
702
714
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationEllipsisDirective, [{
|
|
703
715
|
type: Directive,
|
|
@@ -715,7 +727,7 @@ class PaginationFirstDirective {
|
|
|
715
727
|
return true;
|
|
716
728
|
}
|
|
717
729
|
static { this.ɵfac = function PaginationFirstDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationFirstDirective)(); }; }
|
|
718
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationFirstDirective, selectors: [["ng-template", "auPaginationFirst", ""]]
|
|
730
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationFirstDirective, selectors: [["ng-template", "auPaginationFirst", ""]] }); }
|
|
719
731
|
}
|
|
720
732
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationFirstDirective, [{
|
|
721
733
|
type: Directive,
|
|
@@ -733,7 +745,7 @@ class PaginationLastDirective {
|
|
|
733
745
|
return true;
|
|
734
746
|
}
|
|
735
747
|
static { this.ɵfac = function PaginationLastDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationLastDirective)(); }; }
|
|
736
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationLastDirective, selectors: [["ng-template", "auPaginationLast", ""]]
|
|
748
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationLastDirective, selectors: [["ng-template", "auPaginationLast", ""]] }); }
|
|
737
749
|
}
|
|
738
750
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationLastDirective, [{
|
|
739
751
|
type: Directive,
|
|
@@ -751,7 +763,7 @@ class PaginationNextDirective {
|
|
|
751
763
|
return true;
|
|
752
764
|
}
|
|
753
765
|
static { this.ɵfac = function PaginationNextDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationNextDirective)(); }; }
|
|
754
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationNextDirective, selectors: [["ng-template", "auPaginationNext", ""]]
|
|
766
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationNextDirective, selectors: [["ng-template", "auPaginationNext", ""]] }); }
|
|
755
767
|
}
|
|
756
768
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationNextDirective, [{
|
|
757
769
|
type: Directive,
|
|
@@ -769,7 +781,7 @@ class PaginationNumberDirective {
|
|
|
769
781
|
return true;
|
|
770
782
|
}
|
|
771
783
|
static { this.ɵfac = function PaginationNumberDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationNumberDirective)(); }; }
|
|
772
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationNumberDirective, selectors: [["ng-template", "auPaginationNumber", ""]]
|
|
784
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationNumberDirective, selectors: [["ng-template", "auPaginationNumber", ""]] }); }
|
|
773
785
|
}
|
|
774
786
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationNumberDirective, [{
|
|
775
787
|
type: Directive,
|
|
@@ -787,7 +799,7 @@ class PaginationPreviousDirective {
|
|
|
787
799
|
return true;
|
|
788
800
|
}
|
|
789
801
|
static { this.ɵfac = function PaginationPreviousDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationPreviousDirective)(); }; }
|
|
790
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationPreviousDirective, selectors: [["ng-template", "auPaginationPrevious", ""]]
|
|
802
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationPreviousDirective, selectors: [["ng-template", "auPaginationPrevious", ""]] }); }
|
|
791
803
|
}
|
|
792
804
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationPreviousDirective, [{
|
|
793
805
|
type: Directive,
|
|
@@ -805,7 +817,7 @@ class PaginationPagesDirective {
|
|
|
805
817
|
return true;
|
|
806
818
|
}
|
|
807
819
|
static { this.ɵfac = function PaginationPagesDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationPagesDirective)(); }; }
|
|
808
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationPagesDirective, selectors: [["ng-template", "auPaginationPages", ""]]
|
|
820
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationPagesDirective, selectors: [["ng-template", "auPaginationPages", ""]] }); }
|
|
809
821
|
}
|
|
810
822
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationPagesDirective, [{
|
|
811
823
|
type: Directive,
|
|
@@ -823,29 +835,30 @@ class PaginationStructureDirective {
|
|
|
823
835
|
return true;
|
|
824
836
|
}
|
|
825
837
|
static { this.ɵfac = function PaginationStructureDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationStructureDirective)(); }; }
|
|
826
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationStructureDirective, selectors: [["ng-template", "auPaginationStructure", ""]]
|
|
838
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationStructureDirective, selectors: [["ng-template", "auPaginationStructure", ""]] }); }
|
|
827
839
|
}
|
|
828
840
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationStructureDirective, [{
|
|
829
841
|
type: Directive,
|
|
830
842
|
args: [{ selector: 'ng-template[auPaginationStructure]', standalone: true }]
|
|
831
843
|
}], null, null); })();
|
|
832
844
|
class PaginationDefaultSlotsComponent {
|
|
845
|
+
constructor() {
|
|
846
|
+
this.pages = viewChild.required('pages');
|
|
847
|
+
this.structure = viewChild.required('structure');
|
|
848
|
+
}
|
|
833
849
|
static { this.ɵfac = function PaginationDefaultSlotsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationDefaultSlotsComponent)(); }; }
|
|
834
850
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function PaginationDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
835
|
-
i0.ɵɵ
|
|
836
|
-
i0.ɵɵ
|
|
851
|
+
i0.ɵɵviewQuerySignal(ctx.pages, _c0$8, 5);
|
|
852
|
+
i0.ɵɵviewQuerySignal(ctx.structure, _c1$8, 5);
|
|
837
853
|
} if (rf & 2) {
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.structure = _t.first);
|
|
841
|
-
} }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 4, vars: 0, consts: [["pages", ""], ["structure", ""], ["auPaginationPages", ""], ["auPaginationStructure", ""], [1, "page-item", 3, "active", "disabled"], [1, "page-item"], [1, "page-link", 3, "auUse"], ["aria-hidden", "true", 1, "page-link", "au-ellipsis"], [3, "auSlot", "auSlotProps"], [1, "visually-hidden"], [1, "page-item", 3, "disabled"], ["aria-live", "polite", 1, "visually-hidden"], ["aria-hidden", "true"]], template: function PaginationDefaultSlotsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
854
|
+
i0.ɵɵqueryAdvance(2);
|
|
855
|
+
} }, decls: 4, vars: 0, consts: [["pages", ""], ["structure", ""], ["auPaginationPages", ""], ["auPaginationStructure", ""], [1, "page-item", 3, "active", "disabled"], [1, "page-item"], [1, "page-link", 3, "auUse"], ["aria-hidden", "true", 1, "page-link", "au-ellipsis"], [3, "auSlot", "auSlotProps"], [1, "visually-hidden"], [1, "page-item", 3, "disabled"], ["aria-live", "polite", 1, "visually-hidden"], ["aria-hidden", "true"]], template: function PaginationDefaultSlotsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
842
856
|
i0.ɵɵtemplate(0, PaginationDefaultSlotsComponent_ng_template_0_Template, 2, 0, "ng-template", 2, 0, i0.ɵɵtemplateRefExtractor)(2, PaginationDefaultSlotsComponent_ng_template_2_Template, 8, 13, "ng-template", 3, 1, i0.ɵɵtemplateRefExtractor);
|
|
843
857
|
} }, dependencies: [SlotDirective, PaginationPagesDirective, PaginationStructureDirective, UseDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
844
858
|
}
|
|
845
859
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationDefaultSlotsComponent, [{
|
|
846
860
|
type: Component,
|
|
847
861
|
args: [{
|
|
848
|
-
standalone: true,
|
|
849
862
|
imports: [SlotDirective, PaginationPagesDirective, PaginationStructureDirective, UseDirective],
|
|
850
863
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
851
864
|
template: `
|
|
@@ -912,14 +925,8 @@ class PaginationDefaultSlotsComponent {
|
|
|
912
925
|
</ng-template>
|
|
913
926
|
`,
|
|
914
927
|
}]
|
|
915
|
-
}], null,
|
|
916
|
-
|
|
917
|
-
args: ['pages', { static: true }]
|
|
918
|
-
}], structure: [{
|
|
919
|
-
type: ViewChild,
|
|
920
|
-
args: ['structure', { static: true }]
|
|
921
|
-
}] }); })();
|
|
922
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationDefaultSlotsComponent, { className: "PaginationDefaultSlotsComponent", filePath: "components/pagination/pagination.component.ts", lineNumber: 184 }); })();
|
|
928
|
+
}], null, null); })();
|
|
929
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationDefaultSlotsComponent, { className: "PaginationDefaultSlotsComponent", filePath: "components/pagination/pagination.component.ts", lineNumber: 182 }); })();
|
|
923
930
|
/**
|
|
924
931
|
* The default slot for the pages
|
|
925
932
|
*/
|
|
@@ -946,16 +953,274 @@ class PaginationComponent extends BaseWidgetDirective {
|
|
|
946
953
|
onPageChange: (page) => this.pageChange.emit(page),
|
|
947
954
|
},
|
|
948
955
|
slotTemplates: () => ({
|
|
949
|
-
structure: this.slotStructureFromContent?.templateRef,
|
|
950
|
-
ellipsisLabel: this.slotEllipsisFromContent?.templateRef,
|
|
951
|
-
firstPageLabel: this.slotFirstFromContent?.templateRef,
|
|
952
|
-
previousPageLabel: this.slotPreviousFromContent?.templateRef,
|
|
953
|
-
nextPageLabel: this.slotNextFromContent?.templateRef,
|
|
954
|
-
lastPageLabel: this.slotLastFromContent?.templateRef,
|
|
955
|
-
pagesDisplay: this.slotPagesFromContent?.templateRef,
|
|
956
|
-
numberLabel: this.slotNumberLabelFromContent?.templateRef,
|
|
956
|
+
structure: this.slotStructureFromContent()?.templateRef,
|
|
957
|
+
ellipsisLabel: this.slotEllipsisFromContent()?.templateRef,
|
|
958
|
+
firstPageLabel: this.slotFirstFromContent()?.templateRef,
|
|
959
|
+
previousPageLabel: this.slotPreviousFromContent()?.templateRef,
|
|
960
|
+
nextPageLabel: this.slotNextFromContent()?.templateRef,
|
|
961
|
+
lastPageLabel: this.slotLastFromContent()?.templateRef,
|
|
962
|
+
pagesDisplay: this.slotPagesFromContent()?.templateRef,
|
|
963
|
+
numberLabel: this.slotNumberLabelFromContent()?.templateRef,
|
|
957
964
|
}),
|
|
958
965
|
}));
|
|
966
|
+
/**
|
|
967
|
+
* Provide the label for each "Page" page button.
|
|
968
|
+
* This is used for accessibility purposes.
|
|
969
|
+
* for I18n, we suggest to use the global configuration
|
|
970
|
+
* override any configuration parameters provided for this
|
|
971
|
+
* @param processPage - The current page number
|
|
972
|
+
* @param pageCount - The total number of pages
|
|
973
|
+
*
|
|
974
|
+
* @defaultValue
|
|
975
|
+
* ```ts
|
|
976
|
+
* (processPage: number, pageCount: number) => `Page ${processPage} of ${pageCount}`
|
|
977
|
+
* ```
|
|
978
|
+
*/
|
|
979
|
+
this.ariaPageLabel = input(undefined, { alias: 'auAriaPageLabel' });
|
|
980
|
+
/**
|
|
981
|
+
* Provide the label for the aria-live element
|
|
982
|
+
* This is used for accessibility purposes.
|
|
983
|
+
* for I18n, we suggest to use the global configuration
|
|
984
|
+
* override any configuration parameters provided for this
|
|
985
|
+
* @param currentPage - The current page number
|
|
986
|
+
* @param pageCount - The total number of pages
|
|
987
|
+
*
|
|
988
|
+
* @defaultValue
|
|
989
|
+
* ```ts
|
|
990
|
+
* (currentPage: number) => `Current page is ${currentPage}`
|
|
991
|
+
* ```
|
|
992
|
+
*/
|
|
993
|
+
this.ariaLiveLabel = input(undefined, { alias: 'auAriaLiveLabel' });
|
|
994
|
+
/**
|
|
995
|
+
* The label for the nav element.
|
|
996
|
+
*
|
|
997
|
+
* for I18n, we suggest to use the global configuration
|
|
998
|
+
* override any configuration parameters provided for this
|
|
999
|
+
*
|
|
1000
|
+
* @defaultValue `'Page navigation'`
|
|
1001
|
+
*/
|
|
1002
|
+
this.ariaLabel = input(undefined, { alias: 'auAriaLabel' });
|
|
1003
|
+
/**
|
|
1004
|
+
* The label for the "active" page.
|
|
1005
|
+
* for I18n, we suggest to use the global configuration
|
|
1006
|
+
* override any configuration parameters provided for this
|
|
1007
|
+
*
|
|
1008
|
+
* @defaultValue
|
|
1009
|
+
* ```ts
|
|
1010
|
+
* '(current)'
|
|
1011
|
+
* ```
|
|
1012
|
+
*/
|
|
1013
|
+
this.activeLabel = input(undefined, { alias: 'auActiveLabel' });
|
|
1014
|
+
/**
|
|
1015
|
+
* The label for the "First" page button.
|
|
1016
|
+
* for I18n, we suggest to use the global configuration
|
|
1017
|
+
* override any configuration parameters provided for this
|
|
1018
|
+
*
|
|
1019
|
+
* @defaultValue
|
|
1020
|
+
* ```ts
|
|
1021
|
+
* 'Action link for first page'
|
|
1022
|
+
* ```
|
|
1023
|
+
*/
|
|
1024
|
+
this.ariaFirstLabel = input(undefined, { alias: 'auAriaFirstLabel' });
|
|
1025
|
+
/**
|
|
1026
|
+
* The label for the "Previous" page button.
|
|
1027
|
+
* for I18n, we suggest to use the global configuration
|
|
1028
|
+
* override any configuration parameters provided for this
|
|
1029
|
+
*
|
|
1030
|
+
* @defaultValue
|
|
1031
|
+
* ```ts
|
|
1032
|
+
* 'Action link for previous page'
|
|
1033
|
+
* ```
|
|
1034
|
+
*/
|
|
1035
|
+
this.ariaPreviousLabel = input(undefined, { alias: 'auAriaPreviousLabel' });
|
|
1036
|
+
/**
|
|
1037
|
+
* The label for the "Next" page button.
|
|
1038
|
+
* for I18n, we suggest to use the global configuration
|
|
1039
|
+
* override any configuration parameters provided for this
|
|
1040
|
+
*
|
|
1041
|
+
* @defaultValue
|
|
1042
|
+
* ```ts
|
|
1043
|
+
* 'Action link for next page'
|
|
1044
|
+
* ```
|
|
1045
|
+
*/
|
|
1046
|
+
this.ariaNextLabel = input(undefined, { alias: 'auAriaNextLabel' });
|
|
1047
|
+
/**
|
|
1048
|
+
* The label for the "Last" page button.
|
|
1049
|
+
* for I18n, we suggest to use the global configuration
|
|
1050
|
+
* override any configuration parameters provided for this
|
|
1051
|
+
*
|
|
1052
|
+
* @defaultValue
|
|
1053
|
+
* ```ts
|
|
1054
|
+
* 'Action link for last page'
|
|
1055
|
+
* ```
|
|
1056
|
+
*/
|
|
1057
|
+
this.ariaLastLabel = input(undefined, { alias: 'auAriaLastLabel' });
|
|
1058
|
+
/**
|
|
1059
|
+
* The label for the "Ellipsis" page.
|
|
1060
|
+
* for I18n, we suggest to use the global configuration
|
|
1061
|
+
* override any configuration parameters provided for this
|
|
1062
|
+
*
|
|
1063
|
+
* @defaultValue `'Ellipsis page element'`
|
|
1064
|
+
*/
|
|
1065
|
+
this.ariaEllipsisLabel = input(undefined, { alias: 'auAriaEllipsisLabel' });
|
|
1066
|
+
/**
|
|
1067
|
+
* Factory function providing the href for a "Page" page anchor,
|
|
1068
|
+
* based on the current page number
|
|
1069
|
+
* @param pageNumber - The index to use in the link
|
|
1070
|
+
*
|
|
1071
|
+
* @defaultValue
|
|
1072
|
+
* ```ts
|
|
1073
|
+
* (_page: number) => PAGE_LINK_DEFAULT
|
|
1074
|
+
* ```
|
|
1075
|
+
*/
|
|
1076
|
+
this.pageLink = input(undefined, { alias: 'auPageLink' });
|
|
1077
|
+
/**
|
|
1078
|
+
* The template to use for the ellipsis slot
|
|
1079
|
+
* for I18n, we suggest to use the global configuration
|
|
1080
|
+
* override any configuration parameters provided for this
|
|
1081
|
+
*
|
|
1082
|
+
* @defaultValue `'…'`
|
|
1083
|
+
*/
|
|
1084
|
+
this.ellipsisLabel = input(undefined, { alias: 'auEllipsisLabel' });
|
|
1085
|
+
this.slotEllipsisFromContent = contentChild(PaginationEllipsisDirective);
|
|
1086
|
+
/**
|
|
1087
|
+
* The template to use for the first slot
|
|
1088
|
+
* for I18n, we suggest to use the global configuration
|
|
1089
|
+
* override any configuration parameters provided for this
|
|
1090
|
+
*
|
|
1091
|
+
* @defaultValue `'«'`
|
|
1092
|
+
*/
|
|
1093
|
+
this.firstPageLabel = input(undefined, { alias: 'auFirstPageLabel' });
|
|
1094
|
+
this.slotFirstFromContent = contentChild(PaginationFirstDirective);
|
|
1095
|
+
/**
|
|
1096
|
+
* The template to use for the previous slot
|
|
1097
|
+
* for I18n, we suggest to use the global configuration
|
|
1098
|
+
* override any configuration parameters provided for this
|
|
1099
|
+
*
|
|
1100
|
+
* @defaultValue `'‹'`
|
|
1101
|
+
*/
|
|
1102
|
+
this.previousPageLabel = input(undefined, { alias: 'auPreviousPageLabel' });
|
|
1103
|
+
this.slotPreviousFromContent = contentChild(PaginationPreviousDirective);
|
|
1104
|
+
/**
|
|
1105
|
+
* The template to use for the next slot
|
|
1106
|
+
* for I18n, we suggest to use the global configuration
|
|
1107
|
+
* override any configuration parameters provided for this
|
|
1108
|
+
*
|
|
1109
|
+
* @defaultValue `'›'`
|
|
1110
|
+
*/
|
|
1111
|
+
this.nextPageLabel = input(undefined, { alias: 'auNextPageLabel' });
|
|
1112
|
+
this.slotNextFromContent = contentChild(PaginationNextDirective);
|
|
1113
|
+
/**
|
|
1114
|
+
* The template to use for the last slot
|
|
1115
|
+
* for I18n, we suggest to use the global configuration
|
|
1116
|
+
* override any configuration parameters provided for this
|
|
1117
|
+
*
|
|
1118
|
+
* @defaultValue `'»'`
|
|
1119
|
+
*/
|
|
1120
|
+
this.lastPageLabel = input(undefined, { alias: 'auLastPageLabel' });
|
|
1121
|
+
this.slotLastFromContent = contentChild(PaginationLastDirective);
|
|
1122
|
+
/**
|
|
1123
|
+
* The template to use for the pages slot
|
|
1124
|
+
* To use to customize the pages view
|
|
1125
|
+
* override any configuration parameters provided for this
|
|
1126
|
+
*/
|
|
1127
|
+
this.pagesDisplay = input(undefined, { alias: 'auPagesDisplay' });
|
|
1128
|
+
this.slotPagesFromContent = contentChild(PaginationPagesDirective);
|
|
1129
|
+
/**
|
|
1130
|
+
* The template to use for the number slot
|
|
1131
|
+
* override any configuration parameters provided for this
|
|
1132
|
+
* for I18n, we suggest to use the global configuration
|
|
1133
|
+
* @param displayedPage - The current page number
|
|
1134
|
+
*
|
|
1135
|
+
* @defaultValue
|
|
1136
|
+
* ```ts
|
|
1137
|
+
* ({displayedPage}: PaginationNumberContext) => `${displayedPage}`
|
|
1138
|
+
* ```
|
|
1139
|
+
*/
|
|
1140
|
+
this.numberLabel = input(undefined, { alias: 'auNumberLabel' });
|
|
1141
|
+
this.slotNumberLabelFromContent = contentChild(PaginationNumberDirective);
|
|
1142
|
+
/**
|
|
1143
|
+
* The template to use for the structure of the pagination component
|
|
1144
|
+
* The default structure uses {@link PaginationProps.ellipsisLabel|ellipsisLabel}, {@link PaginationProps.firstPageLabel|firstPageLabel},
|
|
1145
|
+
* {@link PaginationProps.previousPageLabel|previousPageLabel}, {@link PaginationProps.nextPageLabel|nextPageLabel},
|
|
1146
|
+
* {@link PaginationProps.lastPageLabel|lastPageLabel}, {@link PaginationProps.pagesDisplay|pagesDisplay},
|
|
1147
|
+
* {@link PaginationProps.numberLabel|numberLabel},
|
|
1148
|
+
*/
|
|
1149
|
+
this.structure = input(undefined, { alias: 'auStructure' });
|
|
1150
|
+
this.slotStructureFromContent = contentChild(PaginationStructureDirective);
|
|
1151
|
+
/**
|
|
1152
|
+
* If `true`, pagination links will be disabled.
|
|
1153
|
+
*
|
|
1154
|
+
* @defaultValue `false`
|
|
1155
|
+
*/
|
|
1156
|
+
this.disabled = input(undefined, { alias: 'auDisabled', transform: auBooleanAttribute });
|
|
1157
|
+
/**
|
|
1158
|
+
* If `true`, the "First" and "Last" page links are shown.
|
|
1159
|
+
*
|
|
1160
|
+
* @defaultValue `false`
|
|
1161
|
+
*/
|
|
1162
|
+
this.boundaryLinks = input(undefined, { alias: 'auBoundaryLinks', transform: auBooleanAttribute });
|
|
1163
|
+
/**
|
|
1164
|
+
* If `true`, the "Next" and "Previous" page links are shown.
|
|
1165
|
+
*
|
|
1166
|
+
* @defaultValue `true`
|
|
1167
|
+
*/
|
|
1168
|
+
this.directionLinks = input(undefined, { alias: 'auDirectionLinks', transform: auBooleanAttribute });
|
|
1169
|
+
/**
|
|
1170
|
+
* The number of items in your paginated collection.
|
|
1171
|
+
*
|
|
1172
|
+
* Note, that this is not the number of pages. Page numbers are calculated dynamically based on
|
|
1173
|
+
* `collectionSize` and `pageSize`.
|
|
1174
|
+
*
|
|
1175
|
+
* Ex. if you have 100 items in your collection and displaying 20 items per page, you'll end up with 5 pages.
|
|
1176
|
+
*
|
|
1177
|
+
* Whatever the collectionSize the page number is of minimum 1.
|
|
1178
|
+
*
|
|
1179
|
+
* @defaultValue `0`
|
|
1180
|
+
*/
|
|
1181
|
+
this.collectionSize = input(undefined, { alias: 'auCollectionSize', transform: auNumberAttribute });
|
|
1182
|
+
/**
|
|
1183
|
+
* The current page.
|
|
1184
|
+
*
|
|
1185
|
+
* Page numbers start with `1`.
|
|
1186
|
+
*
|
|
1187
|
+
* @defaultValue `1`
|
|
1188
|
+
*/
|
|
1189
|
+
this.page = input(undefined, { alias: 'auPage', transform: auNumberAttribute });
|
|
1190
|
+
/**
|
|
1191
|
+
* The number of items per page.
|
|
1192
|
+
* @remarks min value is 1
|
|
1193
|
+
*
|
|
1194
|
+
* @defaultValue `10`
|
|
1195
|
+
*/
|
|
1196
|
+
this.pageSize = input(undefined, { alias: 'auPageSize', transform: auNumberAttribute });
|
|
1197
|
+
/**
|
|
1198
|
+
* The pagination display size.
|
|
1199
|
+
*
|
|
1200
|
+
* Bootstrap currently supports small and large sizes.
|
|
1201
|
+
*
|
|
1202
|
+
* @defaultValue `null`
|
|
1203
|
+
*/
|
|
1204
|
+
this.size = input(undefined, { alias: 'auSize' });
|
|
1205
|
+
/**
|
|
1206
|
+
* pagesFactory returns a function computing the array of pages to be displayed
|
|
1207
|
+
* as number (-1 are treated as ellipsis).
|
|
1208
|
+
* Use Page slot to customize the pages view and not this
|
|
1209
|
+
* @param page - The current page number
|
|
1210
|
+
* @param pageCount - The total number of pages
|
|
1211
|
+
*
|
|
1212
|
+
* @defaultValue
|
|
1213
|
+
* ```ts
|
|
1214
|
+
* (_page: number, pageCount: number) => {
|
|
1215
|
+
* const pages: number[] = [];
|
|
1216
|
+
* for (let i = 1; i <= pageCount; i++) {
|
|
1217
|
+
* pages.push(i);
|
|
1218
|
+
* }
|
|
1219
|
+
* return pages;
|
|
1220
|
+
* }
|
|
1221
|
+
* ```
|
|
1222
|
+
*/
|
|
1223
|
+
this.pagesFactory = input(undefined, { alias: 'auPagesFactory' });
|
|
959
1224
|
/**
|
|
960
1225
|
* An event fired when the page is changed.
|
|
961
1226
|
*
|
|
@@ -967,31 +1232,29 @@ class PaginationComponent extends BaseWidgetDirective {
|
|
|
967
1232
|
* () => {}
|
|
968
1233
|
* ```
|
|
969
1234
|
*/
|
|
970
|
-
this.pageChange =
|
|
1235
|
+
this.pageChange = output({ alias: 'auPageChange' });
|
|
1236
|
+
/**
|
|
1237
|
+
* CSS classes to be applied on the widget main container
|
|
1238
|
+
*
|
|
1239
|
+
* @defaultValue `''`
|
|
1240
|
+
*/
|
|
1241
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
971
1242
|
}
|
|
972
1243
|
static { this.ɵfac = function PaginationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationComponent)(); }; }
|
|
973
1244
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["", "auPagination", ""]], contentQueries: function PaginationComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
974
|
-
i0.ɵɵ
|
|
975
|
-
i0.ɵɵ
|
|
976
|
-
i0.ɵɵ
|
|
977
|
-
i0.ɵɵ
|
|
978
|
-
i0.ɵɵ
|
|
979
|
-
i0.ɵɵ
|
|
980
|
-
i0.ɵɵ
|
|
981
|
-
i0.ɵɵ
|
|
1245
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotEllipsisFromContent, PaginationEllipsisDirective, 5);
|
|
1246
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotFirstFromContent, PaginationFirstDirective, 5);
|
|
1247
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotPreviousFromContent, PaginationPreviousDirective, 5);
|
|
1248
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotNextFromContent, PaginationNextDirective, 5);
|
|
1249
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotLastFromContent, PaginationLastDirective, 5);
|
|
1250
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotPagesFromContent, PaginationPagesDirective, 5);
|
|
1251
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotNumberLabelFromContent, PaginationNumberDirective, 5);
|
|
1252
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotStructureFromContent, PaginationStructureDirective, 5);
|
|
982
1253
|
} if (rf & 2) {
|
|
983
|
-
|
|
984
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotEllipsisFromContent = _t.first);
|
|
985
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotFirstFromContent = _t.first);
|
|
986
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotPreviousFromContent = _t.first);
|
|
987
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotNextFromContent = _t.first);
|
|
988
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotLastFromContent = _t.first);
|
|
989
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotPagesFromContent = _t.first);
|
|
990
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotNumberLabelFromContent = _t.first);
|
|
991
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
|
|
1254
|
+
i0.ɵɵqueryAdvance(8);
|
|
992
1255
|
} }, hostVars: 1, hostBindings: function PaginationComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
993
1256
|
i0.ɵɵattribute("aria-label", ctx.state.ariaLabel());
|
|
994
|
-
} }, inputs: { ariaPageLabel: [
|
|
1257
|
+
} }, inputs: { ariaPageLabel: [1, "auAriaPageLabel", "ariaPageLabel"], ariaLiveLabel: [1, "auAriaLiveLabel", "ariaLiveLabel"], ariaLabel: [1, "auAriaLabel", "ariaLabel"], activeLabel: [1, "auActiveLabel", "activeLabel"], ariaFirstLabel: [1, "auAriaFirstLabel", "ariaFirstLabel"], ariaPreviousLabel: [1, "auAriaPreviousLabel", "ariaPreviousLabel"], ariaNextLabel: [1, "auAriaNextLabel", "ariaNextLabel"], ariaLastLabel: [1, "auAriaLastLabel", "ariaLastLabel"], ariaEllipsisLabel: [1, "auAriaEllipsisLabel", "ariaEllipsisLabel"], pageLink: [1, "auPageLink", "pageLink"], ellipsisLabel: [1, "auEllipsisLabel", "ellipsisLabel"], firstPageLabel: [1, "auFirstPageLabel", "firstPageLabel"], previousPageLabel: [1, "auPreviousPageLabel", "previousPageLabel"], nextPageLabel: [1, "auNextPageLabel", "nextPageLabel"], lastPageLabel: [1, "auLastPageLabel", "lastPageLabel"], pagesDisplay: [1, "auPagesDisplay", "pagesDisplay"], numberLabel: [1, "auNumberLabel", "numberLabel"], structure: [1, "auStructure", "structure"], disabled: [1, "auDisabled", "disabled"], boundaryLinks: [1, "auBoundaryLinks", "boundaryLinks"], directionLinks: [1, "auDirectionLinks", "directionLinks"], collectionSize: [1, "auCollectionSize", "collectionSize"], page: [1, "auPage", "page"], pageSize: [1, "auPageSize", "pageSize"], size: [1, "auSize", "size"], pagesFactory: [1, "auPagesFactory", "pagesFactory"], className: [1, "auClassName", "className"] }, outputs: { pageChange: "auPageChange" }, features: [i0.ɵɵInheritDefinitionFeature], attrs: _c6$2, decls: 1, vars: 6, consts: [[3, "auSlotProps", "auSlot"]], template: function PaginationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
995
1258
|
i0.ɵɵtemplate(0, PaginationComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
|
|
996
1259
|
} if (rf & 2) {
|
|
997
1260
|
i0.ɵɵproperty("auSlotProps", i0.ɵɵpureFunction3(2, _c2$8, ctx.state, ctx.api, ctx.directives))("auSlot", ctx.state.structure());
|
|
@@ -1001,7 +1264,6 @@ class PaginationComponent extends BaseWidgetDirective {
|
|
|
1001
1264
|
type: Component,
|
|
1002
1265
|
args: [{
|
|
1003
1266
|
selector: '[auPagination]',
|
|
1004
|
-
standalone: true,
|
|
1005
1267
|
imports: [SlotDirective],
|
|
1006
1268
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1007
1269
|
host: {
|
|
@@ -1010,116 +1272,8 @@ class PaginationComponent extends BaseWidgetDirective {
|
|
|
1010
1272
|
encapsulation: ViewEncapsulation.None,
|
|
1011
1273
|
template: `<ng-template [auSlotProps]="{state, api, directives}" [auSlot]="state.structure()" />`,
|
|
1012
1274
|
}]
|
|
1013
|
-
}], () => [],
|
|
1014
|
-
|
|
1015
|
-
args: ['auAriaPageLabel']
|
|
1016
|
-
}], ariaLiveLabel: [{
|
|
1017
|
-
type: Input,
|
|
1018
|
-
args: ['auAriaLiveLabel']
|
|
1019
|
-
}], ariaLabel: [{
|
|
1020
|
-
type: Input,
|
|
1021
|
-
args: ['auAriaLabel']
|
|
1022
|
-
}], activeLabel: [{
|
|
1023
|
-
type: Input,
|
|
1024
|
-
args: ['auActiveLabel']
|
|
1025
|
-
}], ariaFirstLabel: [{
|
|
1026
|
-
type: Input,
|
|
1027
|
-
args: ['auAriaFirstLabel']
|
|
1028
|
-
}], ariaPreviousLabel: [{
|
|
1029
|
-
type: Input,
|
|
1030
|
-
args: ['auAriaPreviousLabel']
|
|
1031
|
-
}], ariaNextLabel: [{
|
|
1032
|
-
type: Input,
|
|
1033
|
-
args: ['auAriaNextLabel']
|
|
1034
|
-
}], ariaLastLabel: [{
|
|
1035
|
-
type: Input,
|
|
1036
|
-
args: ['auAriaLastLabel']
|
|
1037
|
-
}], ariaEllipsisLabel: [{
|
|
1038
|
-
type: Input,
|
|
1039
|
-
args: ['auAriaEllipsisLabel']
|
|
1040
|
-
}], pageLink: [{
|
|
1041
|
-
type: Input,
|
|
1042
|
-
args: ['auPageLink']
|
|
1043
|
-
}], ellipsisLabel: [{
|
|
1044
|
-
type: Input,
|
|
1045
|
-
args: ['auEllipsisLabel']
|
|
1046
|
-
}], slotEllipsisFromContent: [{
|
|
1047
|
-
type: ContentChild,
|
|
1048
|
-
args: [PaginationEllipsisDirective, { static: false }]
|
|
1049
|
-
}], firstPageLabel: [{
|
|
1050
|
-
type: Input,
|
|
1051
|
-
args: ['auFirstPageLabel']
|
|
1052
|
-
}], slotFirstFromContent: [{
|
|
1053
|
-
type: ContentChild,
|
|
1054
|
-
args: [PaginationFirstDirective, { static: false }]
|
|
1055
|
-
}], previousPageLabel: [{
|
|
1056
|
-
type: Input,
|
|
1057
|
-
args: ['auPreviousPageLabel']
|
|
1058
|
-
}], slotPreviousFromContent: [{
|
|
1059
|
-
type: ContentChild,
|
|
1060
|
-
args: [PaginationPreviousDirective, { static: false }]
|
|
1061
|
-
}], nextPageLabel: [{
|
|
1062
|
-
type: Input,
|
|
1063
|
-
args: ['auNextPageLabel']
|
|
1064
|
-
}], slotNextFromContent: [{
|
|
1065
|
-
type: ContentChild,
|
|
1066
|
-
args: [PaginationNextDirective, { static: false }]
|
|
1067
|
-
}], lastPageLabel: [{
|
|
1068
|
-
type: Input,
|
|
1069
|
-
args: ['auLastPageLabel']
|
|
1070
|
-
}], slotLastFromContent: [{
|
|
1071
|
-
type: ContentChild,
|
|
1072
|
-
args: [PaginationLastDirective, { static: false }]
|
|
1073
|
-
}], pagesDisplay: [{
|
|
1074
|
-
type: Input,
|
|
1075
|
-
args: ['auPagesDisplay']
|
|
1076
|
-
}], slotPagesFromContent: [{
|
|
1077
|
-
type: ContentChild,
|
|
1078
|
-
args: [PaginationPagesDirective, { static: false }]
|
|
1079
|
-
}], numberLabel: [{
|
|
1080
|
-
type: Input,
|
|
1081
|
-
args: ['auNumberLabel']
|
|
1082
|
-
}], slotNumberLabelFromContent: [{
|
|
1083
|
-
type: ContentChild,
|
|
1084
|
-
args: [PaginationNumberDirective, { static: false }]
|
|
1085
|
-
}], structure: [{
|
|
1086
|
-
type: Input,
|
|
1087
|
-
args: ['auStructure']
|
|
1088
|
-
}], slotStructureFromContent: [{
|
|
1089
|
-
type: ContentChild,
|
|
1090
|
-
args: [PaginationStructureDirective, { static: false }]
|
|
1091
|
-
}], disabled: [{
|
|
1092
|
-
type: Input,
|
|
1093
|
-
args: [{ alias: 'auDisabled', transform: auBooleanAttribute }]
|
|
1094
|
-
}], boundaryLinks: [{
|
|
1095
|
-
type: Input,
|
|
1096
|
-
args: [{ alias: 'auBoundaryLinks', transform: auBooleanAttribute }]
|
|
1097
|
-
}], directionLinks: [{
|
|
1098
|
-
type: Input,
|
|
1099
|
-
args: [{ alias: 'auDirectionLinks', transform: auBooleanAttribute }]
|
|
1100
|
-
}], collectionSize: [{
|
|
1101
|
-
type: Input,
|
|
1102
|
-
args: [{ alias: 'auCollectionSize', transform: auNumberAttribute }]
|
|
1103
|
-
}], page: [{
|
|
1104
|
-
type: Input,
|
|
1105
|
-
args: [{ alias: 'auPage', transform: auNumberAttribute }]
|
|
1106
|
-
}], pageSize: [{
|
|
1107
|
-
type: Input,
|
|
1108
|
-
args: [{ alias: 'auPageSize', transform: auNumberAttribute }]
|
|
1109
|
-
}], size: [{
|
|
1110
|
-
type: Input,
|
|
1111
|
-
args: ['auSize']
|
|
1112
|
-
}], pagesFactory: [{
|
|
1113
|
-
type: Input,
|
|
1114
|
-
args: ['auPagesFactory']
|
|
1115
|
-
}], pageChange: [{
|
|
1116
|
-
type: Output,
|
|
1117
|
-
args: ['auPageChange']
|
|
1118
|
-
}], className: [{
|
|
1119
|
-
type: Input,
|
|
1120
|
-
args: ['auClassName']
|
|
1121
|
-
}] }); })();
|
|
1122
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationComponent, { className: "PaginationComponent", filePath: "components/pagination/pagination.component.ts", lineNumber: 213 }); })();
|
|
1275
|
+
}], () => [], null); })();
|
|
1276
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationComponent, { className: "PaginationComponent", filePath: "components/pagination/pagination.component.ts", lineNumber: 210 }); })();
|
|
1123
1277
|
|
|
1124
1278
|
/**
|
|
1125
1279
|
* Retrieve a shallow copy of the default Rating config
|
|
@@ -1167,7 +1321,7 @@ class RatingStarDirective {
|
|
|
1167
1321
|
return true;
|
|
1168
1322
|
}
|
|
1169
1323
|
static { this.ɵfac = function RatingStarDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RatingStarDirective)(); }; }
|
|
1170
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RatingStarDirective, selectors: [["ng-template", "auRatingStar", ""]]
|
|
1324
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RatingStarDirective, selectors: [["ng-template", "auRatingStar", ""]] }); }
|
|
1171
1325
|
}
|
|
1172
1326
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RatingStarDirective, [{
|
|
1173
1327
|
type: Directive,
|
|
@@ -1206,11 +1360,89 @@ class RatingComponent extends BaseWidgetDirective {
|
|
|
1206
1360
|
useDirectiveForHost(widget.directives.containerDirective);
|
|
1207
1361
|
},
|
|
1208
1362
|
slotTemplates: () => ({
|
|
1209
|
-
star: this.slotStarFromContent?.templateRef,
|
|
1363
|
+
star: this.slotStarFromContent()?.templateRef,
|
|
1210
1364
|
}),
|
|
1211
1365
|
}));
|
|
1212
1366
|
this.onChange = (_) => { };
|
|
1213
1367
|
this.onTouched = () => { };
|
|
1368
|
+
/**
|
|
1369
|
+
* Return the value for the 'aria-valuetext' attribute.
|
|
1370
|
+
* @param rating - Current rating value.
|
|
1371
|
+
* @param maxRating - maxRating value.
|
|
1372
|
+
*
|
|
1373
|
+
* @defaultValue
|
|
1374
|
+
* ```ts
|
|
1375
|
+
* (rating: number, maxRating: number) => `${rating} out of ${maxRating}`
|
|
1376
|
+
* ```
|
|
1377
|
+
*/
|
|
1378
|
+
this.ariaValueTextFn = input(undefined, { alias: 'auAriaValueTextFn' });
|
|
1379
|
+
/**
|
|
1380
|
+
* If `true`, the rating is disabled.
|
|
1381
|
+
*
|
|
1382
|
+
* @defaultValue `false`
|
|
1383
|
+
*/
|
|
1384
|
+
this.disabled = input(undefined, { alias: 'auDisabled', transform: auBooleanAttribute });
|
|
1385
|
+
/**
|
|
1386
|
+
* The maximum rating that can be given.
|
|
1387
|
+
*
|
|
1388
|
+
* @defaultValue `10`
|
|
1389
|
+
*/
|
|
1390
|
+
this.maxRating = input(undefined, { alias: 'auMaxRating', transform: auNumberAttribute });
|
|
1391
|
+
/**
|
|
1392
|
+
* The current rating. Could be a decimal value like `3.75`.
|
|
1393
|
+
*
|
|
1394
|
+
* @defaultValue `0`
|
|
1395
|
+
*/
|
|
1396
|
+
this.rating = input(undefined, { alias: 'auRating', transform: auNumberAttribute });
|
|
1397
|
+
/**
|
|
1398
|
+
* If `true`, the rating can't be changed.
|
|
1399
|
+
*
|
|
1400
|
+
* @defaultValue `false`
|
|
1401
|
+
*/
|
|
1402
|
+
this.readonly = input(undefined, { alias: 'auReadonly', transform: auBooleanAttribute });
|
|
1403
|
+
/**
|
|
1404
|
+
* Define if the rating can be reset.
|
|
1405
|
+
*
|
|
1406
|
+
* If set to true, the user can 'unset' the rating value by cliking on the current rating value.
|
|
1407
|
+
*
|
|
1408
|
+
* @defaultValue `true`
|
|
1409
|
+
*/
|
|
1410
|
+
this.resettable = input(undefined, { alias: 'auResettable', transform: auBooleanAttribute });
|
|
1411
|
+
/**
|
|
1412
|
+
* The template to override the way each star is displayed.
|
|
1413
|
+
*
|
|
1414
|
+
* @defaultValue
|
|
1415
|
+
* ```ts
|
|
1416
|
+
* ({fill}: StarContext) => String.fromCharCode(fill === 100 ? 9733 : 9734)
|
|
1417
|
+
* ```
|
|
1418
|
+
*/
|
|
1419
|
+
this.star = input(undefined, { alias: 'auStar' });
|
|
1420
|
+
this.slotStarFromContent = contentChild(RatingStarDirective);
|
|
1421
|
+
/**
|
|
1422
|
+
* Allows setting a custom rating tabindex.
|
|
1423
|
+
* If the component is disabled, `tabindex` will still be set to `-1`.
|
|
1424
|
+
*
|
|
1425
|
+
* @defaultValue `0`
|
|
1426
|
+
*/
|
|
1427
|
+
this.tabindex = input(undefined, { alias: 'auTabindex', transform: auNumberAttribute });
|
|
1428
|
+
/**
|
|
1429
|
+
* CSS classes to be applied on the widget main container
|
|
1430
|
+
*
|
|
1431
|
+
* @defaultValue `''`
|
|
1432
|
+
*/
|
|
1433
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
1434
|
+
/**
|
|
1435
|
+
* The aria label
|
|
1436
|
+
*
|
|
1437
|
+
* @defaultValue `'Rating'`
|
|
1438
|
+
*/
|
|
1439
|
+
this.ariaLabel = input(undefined, { alias: 'auAriaLabel' });
|
|
1440
|
+
/**
|
|
1441
|
+
* The aria labelled by
|
|
1442
|
+
*
|
|
1443
|
+
* @defaultValue `''`
|
|
1444
|
+
*/
|
|
1445
|
+
this.ariaLabelledBy = input(undefined, { alias: 'auAriaLabelledBy' });
|
|
1214
1446
|
/**
|
|
1215
1447
|
* An event emitted when the user is hovering over a given rating.
|
|
1216
1448
|
*
|
|
@@ -1221,7 +1453,7 @@ class RatingComponent extends BaseWidgetDirective {
|
|
|
1221
1453
|
* () => {}
|
|
1222
1454
|
* ```
|
|
1223
1455
|
*/
|
|
1224
|
-
this.hover =
|
|
1456
|
+
this.hover = output({ alias: 'auHover' });
|
|
1225
1457
|
/**
|
|
1226
1458
|
* An event emitted when the user stops hovering over a given rating.
|
|
1227
1459
|
*
|
|
@@ -1232,7 +1464,7 @@ class RatingComponent extends BaseWidgetDirective {
|
|
|
1232
1464
|
* () => {}
|
|
1233
1465
|
* ```
|
|
1234
1466
|
*/
|
|
1235
|
-
this.leave =
|
|
1467
|
+
this.leave = output({ alias: 'auLeave' });
|
|
1236
1468
|
/**
|
|
1237
1469
|
* An event emitted when the rating is changed.
|
|
1238
1470
|
*
|
|
@@ -1243,20 +1475,19 @@ class RatingComponent extends BaseWidgetDirective {
|
|
|
1243
1475
|
* () => {}
|
|
1244
1476
|
* ```
|
|
1245
1477
|
*/
|
|
1246
|
-
this.ratingChange =
|
|
1478
|
+
this.ratingChange = output({ alias: 'auRatingChange' });
|
|
1247
1479
|
}
|
|
1248
1480
|
trackByIndex(index) {
|
|
1249
1481
|
return index;
|
|
1250
1482
|
}
|
|
1251
1483
|
static { this.ɵfac = function RatingComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RatingComponent)(); }; }
|
|
1252
1484
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RatingComponent, selectors: [["", "auRating", ""]], contentQueries: function RatingComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
1253
|
-
i0.ɵɵ
|
|
1485
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotStarFromContent, RatingStarDirective, 5);
|
|
1254
1486
|
} if (rf & 2) {
|
|
1255
|
-
|
|
1256
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStarFromContent = _t.first);
|
|
1487
|
+
i0.ɵɵqueryAdvance();
|
|
1257
1488
|
} }, hostAttrs: [1, "d-inline-flex"], hostBindings: function RatingComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
1258
1489
|
i0.ɵɵlistener("blur", function RatingComponent_blur_HostBindingHandler() { return ctx.onTouched(); });
|
|
1259
|
-
} }, inputs: { ariaValueTextFn: [
|
|
1490
|
+
} }, inputs: { ariaValueTextFn: [1, "auAriaValueTextFn", "ariaValueTextFn"], disabled: [1, "auDisabled", "disabled"], maxRating: [1, "auMaxRating", "maxRating"], rating: [1, "auRating", "rating"], readonly: [1, "auReadonly", "readonly"], resettable: [1, "auResettable", "resettable"], star: [1, "auStar", "star"], tabindex: [1, "auTabindex", "tabindex"], className: [1, "auClassName", "className"], ariaLabel: [1, "auAriaLabel", "ariaLabel"], ariaLabelledBy: [1, "auAriaLabelledBy", "ariaLabelledBy"] }, outputs: { hover: "auHover", leave: "auLeave", ratingChange: "auRatingChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RatingComponent), multi: true }]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$7, decls: 2, vars: 0, consts: [[1, "visually-hidden"], [3, "auUse"], [3, "auSlot", "auSlotProps"]], template: function RatingComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1260
1491
|
i0.ɵɵrepeaterCreate(0, RatingComponent_For_1_Template, 4, 9, null, null, ctx.trackByIndex, true);
|
|
1261
1492
|
} if (rf & 2) {
|
|
1262
1493
|
i0.ɵɵrepeater(ctx.state.stars());
|
|
@@ -1266,7 +1497,6 @@ class RatingComponent extends BaseWidgetDirective {
|
|
|
1266
1497
|
type: Component,
|
|
1267
1498
|
args: [{
|
|
1268
1499
|
selector: '[auRating]',
|
|
1269
|
-
standalone: true,
|
|
1270
1500
|
imports: [UseDirective, SlotDirective],
|
|
1271
1501
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1272
1502
|
encapsulation: ViewEncapsulation.None,
|
|
@@ -1284,53 +1514,8 @@ class RatingComponent extends BaseWidgetDirective {
|
|
|
1284
1514
|
`,
|
|
1285
1515
|
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RatingComponent), multi: true }],
|
|
1286
1516
|
}]
|
|
1287
|
-
}], () => [],
|
|
1288
|
-
|
|
1289
|
-
args: ['auAriaValueTextFn']
|
|
1290
|
-
}], disabled: [{
|
|
1291
|
-
type: Input,
|
|
1292
|
-
args: [{ alias: 'auDisabled', transform: auBooleanAttribute }]
|
|
1293
|
-
}], maxRating: [{
|
|
1294
|
-
type: Input,
|
|
1295
|
-
args: [{ alias: 'auMaxRating', transform: auNumberAttribute }]
|
|
1296
|
-
}], rating: [{
|
|
1297
|
-
type: Input,
|
|
1298
|
-
args: [{ alias: 'auRating', transform: auNumberAttribute }]
|
|
1299
|
-
}], readonly: [{
|
|
1300
|
-
type: Input,
|
|
1301
|
-
args: [{ alias: 'auReadonly', transform: auBooleanAttribute }]
|
|
1302
|
-
}], resettable: [{
|
|
1303
|
-
type: Input,
|
|
1304
|
-
args: [{ alias: 'auResettable', transform: auBooleanAttribute }]
|
|
1305
|
-
}], star: [{
|
|
1306
|
-
type: Input,
|
|
1307
|
-
args: ['auStar']
|
|
1308
|
-
}], slotStarFromContent: [{
|
|
1309
|
-
type: ContentChild,
|
|
1310
|
-
args: [RatingStarDirective, { static: false }]
|
|
1311
|
-
}], tabindex: [{
|
|
1312
|
-
type: Input,
|
|
1313
|
-
args: [{ alias: 'auTabindex', transform: auNumberAttribute }]
|
|
1314
|
-
}], className: [{
|
|
1315
|
-
type: Input,
|
|
1316
|
-
args: ['auClassName']
|
|
1317
|
-
}], ariaLabel: [{
|
|
1318
|
-
type: Input,
|
|
1319
|
-
args: ['auAriaLabel']
|
|
1320
|
-
}], ariaLabelledBy: [{
|
|
1321
|
-
type: Input,
|
|
1322
|
-
args: ['auAriaLabelledBy']
|
|
1323
|
-
}], hover: [{
|
|
1324
|
-
type: Output,
|
|
1325
|
-
args: ['auHover']
|
|
1326
|
-
}], leave: [{
|
|
1327
|
-
type: Output,
|
|
1328
|
-
args: ['auLeave']
|
|
1329
|
-
}], ratingChange: [{
|
|
1330
|
-
type: Output,
|
|
1331
|
-
args: ['auRatingChange']
|
|
1332
|
-
}] }); })();
|
|
1333
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RatingComponent, { className: "RatingComponent", filePath: "components/rating/rating.component.ts", lineNumber: 66 }); })();
|
|
1517
|
+
}], () => [], null); })();
|
|
1518
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RatingComponent, { className: "RatingComponent", filePath: "components/rating/rating.component.ts", lineNumber: 64 }); })();
|
|
1334
1519
|
|
|
1335
1520
|
/**
|
|
1336
1521
|
* Retrieve a shallow copy of the default Select config
|
|
@@ -1403,7 +1588,7 @@ class SelectBadgeLabelDirective {
|
|
|
1403
1588
|
return true;
|
|
1404
1589
|
}
|
|
1405
1590
|
static { this.ɵfac = function SelectBadgeLabelDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectBadgeLabelDirective)(); }; }
|
|
1406
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SelectBadgeLabelDirective, selectors: [["ng-template", "auSelectBadgeLabel", ""]]
|
|
1591
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SelectBadgeLabelDirective, selectors: [["ng-template", "auSelectBadgeLabel", ""]] }); }
|
|
1407
1592
|
}
|
|
1408
1593
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectBadgeLabelDirective, [{
|
|
1409
1594
|
type: Directive,
|
|
@@ -1427,7 +1612,7 @@ class SelectItemLabelDirective {
|
|
|
1427
1612
|
return true;
|
|
1428
1613
|
}
|
|
1429
1614
|
static { this.ɵfac = function SelectItemLabelDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectItemLabelDirective)(); }; }
|
|
1430
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SelectItemLabelDirective, selectors: [["ng-template", "auSelectItemLabel", ""]]
|
|
1615
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SelectItemLabelDirective, selectors: [["ng-template", "auSelectItemLabel", ""]] }); }
|
|
1431
1616
|
}
|
|
1432
1617
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectItemLabelDirective, [{
|
|
1433
1618
|
type: Directive,
|
|
@@ -1452,10 +1637,110 @@ class SelectComponent extends BaseWidgetDirective {
|
|
|
1452
1637
|
useDirectiveForHost(widget.directives.referenceDirective);
|
|
1453
1638
|
},
|
|
1454
1639
|
slotTemplates: () => ({
|
|
1455
|
-
badgeLabel: this.slotSelectBadgeLabelFromContent?.templateRef,
|
|
1456
|
-
itemLabel: this.slotSelectItemLabelFromContent?.templateRef,
|
|
1640
|
+
badgeLabel: this.slotSelectBadgeLabelFromContent()?.templateRef,
|
|
1641
|
+
itemLabel: this.slotSelectItemLabelFromContent()?.templateRef,
|
|
1457
1642
|
}),
|
|
1458
1643
|
}));
|
|
1644
|
+
/**
|
|
1645
|
+
* aria-label used for the input inside the select
|
|
1646
|
+
*
|
|
1647
|
+
* @defaultValue `'Select'`
|
|
1648
|
+
*/
|
|
1649
|
+
this.ariaLabel = input(undefined, { alias: 'auAriaLabel' });
|
|
1650
|
+
/**
|
|
1651
|
+
* id used for the input inside the select
|
|
1652
|
+
*/
|
|
1653
|
+
this.id = input(undefined, { alias: 'auId' });
|
|
1654
|
+
/**
|
|
1655
|
+
* List of available items for the dropdown
|
|
1656
|
+
*
|
|
1657
|
+
* @defaultValue `[]`
|
|
1658
|
+
*/
|
|
1659
|
+
this.items = input(undefined, { alias: 'auItems' });
|
|
1660
|
+
/**
|
|
1661
|
+
* List of allowed placements for the dropdown.
|
|
1662
|
+
* This refers to the [allowedPlacements from floating UI](https://floating-ui.com/docs/autoPlacement#allowedplacements), given the different [Placement possibilities](https://floating-ui.com/docs/computePosition#placement).
|
|
1663
|
+
*
|
|
1664
|
+
* @defaultValue
|
|
1665
|
+
* ```ts
|
|
1666
|
+
* ['bottom-start', 'top-start', 'bottom-end', 'top-end']
|
|
1667
|
+
* ```
|
|
1668
|
+
*/
|
|
1669
|
+
this.allowedPlacements = input(undefined, { alias: 'auAllowedPlacements' });
|
|
1670
|
+
/**
|
|
1671
|
+
* true if the select is open
|
|
1672
|
+
*
|
|
1673
|
+
* @defaultValue `false`
|
|
1674
|
+
*/
|
|
1675
|
+
this.open = input(undefined, { alias: 'auOpen', transform: auBooleanAttribute });
|
|
1676
|
+
/**
|
|
1677
|
+
* Filtered text to be display in the filter input
|
|
1678
|
+
*
|
|
1679
|
+
* @defaultValue `''`
|
|
1680
|
+
*/
|
|
1681
|
+
this.filterText = input(undefined, { alias: 'auFilterText' });
|
|
1682
|
+
/**
|
|
1683
|
+
* CSS classes to be applied on the widget main container
|
|
1684
|
+
*
|
|
1685
|
+
* @defaultValue `''`
|
|
1686
|
+
*/
|
|
1687
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
1688
|
+
/**
|
|
1689
|
+
* true if the select is disabled
|
|
1690
|
+
*
|
|
1691
|
+
* @defaultValue `false`
|
|
1692
|
+
*/
|
|
1693
|
+
this.disabled = input(undefined, { alias: 'auDisabled', transform: auBooleanAttribute });
|
|
1694
|
+
/**
|
|
1695
|
+
* List of selected item ids
|
|
1696
|
+
*
|
|
1697
|
+
* @defaultValue `[]`
|
|
1698
|
+
*/
|
|
1699
|
+
this.selected = input(undefined, { alias: 'auSelected' });
|
|
1700
|
+
/**
|
|
1701
|
+
* true if a loading process is being done
|
|
1702
|
+
*
|
|
1703
|
+
* @defaultValue `false`
|
|
1704
|
+
*/
|
|
1705
|
+
this.loading = input(undefined, { alias: 'auLoading', transform: auBooleanAttribute });
|
|
1706
|
+
/**
|
|
1707
|
+
* Custom function to get the id of an item
|
|
1708
|
+
* By default, the item is returned
|
|
1709
|
+
*
|
|
1710
|
+
* @defaultValue
|
|
1711
|
+
* ```ts
|
|
1712
|
+
* (item: any) => '' + item
|
|
1713
|
+
* ```
|
|
1714
|
+
*/
|
|
1715
|
+
this.itemIdFn = input(undefined, { alias: 'auItemIdFn' });
|
|
1716
|
+
/**
|
|
1717
|
+
* Class to be added on the dropdown menu container
|
|
1718
|
+
*
|
|
1719
|
+
* @defaultValue `''`
|
|
1720
|
+
*/
|
|
1721
|
+
this.menuClassName = input(undefined, { alias: 'auMenuClassName' });
|
|
1722
|
+
/**
|
|
1723
|
+
* The template to override the way each badge on the left of the input is displayed.
|
|
1724
|
+
* This define the content of the badge inside the badge container.
|
|
1725
|
+
*
|
|
1726
|
+
* @defaultValue
|
|
1727
|
+
* ```ts
|
|
1728
|
+
* ({itemContext}: SelectItemContext<any>) => itemContext.item
|
|
1729
|
+
* ```
|
|
1730
|
+
*/
|
|
1731
|
+
this.badgeLabel = input(undefined, { alias: 'auBadgeLabel' });
|
|
1732
|
+
this.slotSelectBadgeLabelFromContent = contentChild(SelectBadgeLabelDirective);
|
|
1733
|
+
/**
|
|
1734
|
+
* The template to override the way each item is displayed in the list.
|
|
1735
|
+
* This define the content of the badge inside the badge container.
|
|
1736
|
+
*
|
|
1737
|
+
* @defaultValue
|
|
1738
|
+
* ```ts
|
|
1739
|
+
* ({itemContext}: SelectItemContext<any>) => itemContext.item
|
|
1740
|
+
* ```
|
|
1741
|
+
*/
|
|
1742
|
+
this.itemLabel = input(undefined, { alias: 'auItemLabel' });
|
|
1743
|
+
this.slotSelectItemLabelFromContent = contentChild(SelectItemLabelDirective);
|
|
1459
1744
|
/**
|
|
1460
1745
|
* Callback called when the text filter change
|
|
1461
1746
|
* @param text - Filtered text
|
|
@@ -1465,7 +1750,7 @@ class SelectComponent extends BaseWidgetDirective {
|
|
|
1465
1750
|
* () => {}
|
|
1466
1751
|
* ```
|
|
1467
1752
|
*/
|
|
1468
|
-
this.filterTextChange =
|
|
1753
|
+
this.filterTextChange = output({ alias: 'auFilterTextChange' });
|
|
1469
1754
|
/**
|
|
1470
1755
|
* Callback called when the selection change
|
|
1471
1756
|
*
|
|
@@ -1474,7 +1759,7 @@ class SelectComponent extends BaseWidgetDirective {
|
|
|
1474
1759
|
* () => {}
|
|
1475
1760
|
* ```
|
|
1476
1761
|
*/
|
|
1477
|
-
this.selectedChange =
|
|
1762
|
+
this.selectedChange = output({ alias: 'auSelectedChange' });
|
|
1478
1763
|
/**
|
|
1479
1764
|
* Callback called dropdown open state change
|
|
1480
1765
|
* @param isOpen - updated open state
|
|
@@ -1484,22 +1769,43 @@ class SelectComponent extends BaseWidgetDirective {
|
|
|
1484
1769
|
* () => {}
|
|
1485
1770
|
* ```
|
|
1486
1771
|
*/
|
|
1487
|
-
this.openChange =
|
|
1772
|
+
this.openChange = output({ alias: 'auOpenChange' });
|
|
1773
|
+
/**
|
|
1774
|
+
* Class to be added on menu items
|
|
1775
|
+
*
|
|
1776
|
+
* @defaultValue `''`
|
|
1777
|
+
*/
|
|
1778
|
+
this.menuItemClassName = input(undefined, { alias: 'auMenuItemClassName' });
|
|
1779
|
+
/**
|
|
1780
|
+
* Class to be added on selected items (displayed in the input zone)
|
|
1781
|
+
*
|
|
1782
|
+
* @defaultValue `''`
|
|
1783
|
+
*/
|
|
1784
|
+
this.badgeClassName = input(undefined, { alias: 'auBadgeClassName' });
|
|
1785
|
+
/**
|
|
1786
|
+
* Retrieves navigable elements within an HTML element containing badges and the input.
|
|
1787
|
+
*
|
|
1788
|
+
* @param node - HTMLElement that contains the badges and the input
|
|
1789
|
+
*
|
|
1790
|
+
* @defaultValue
|
|
1791
|
+
* ```ts
|
|
1792
|
+
* (node: HTMLElement) => node.querySelectorAll('.au-select-badge,input')
|
|
1793
|
+
* ```
|
|
1794
|
+
*/
|
|
1795
|
+
this.navSelector = input(undefined, { alias: 'auNavSelector' });
|
|
1488
1796
|
}
|
|
1489
1797
|
itemCtxTrackBy(_, itemContext) {
|
|
1490
1798
|
return itemContext.id;
|
|
1491
1799
|
}
|
|
1492
1800
|
static { this.ɵfac = function SelectComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectComponent)(); }; }
|
|
1493
1801
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectComponent, selectors: [["", "auSelect", ""]], contentQueries: function SelectComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
1494
|
-
i0.ɵɵ
|
|
1495
|
-
i0.ɵɵ
|
|
1802
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotSelectBadgeLabelFromContent, SelectBadgeLabelDirective, 5);
|
|
1803
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotSelectItemLabelFromContent, SelectItemLabelDirective, 5);
|
|
1496
1804
|
} if (rf & 2) {
|
|
1497
|
-
|
|
1498
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotSelectBadgeLabelFromContent = _t.first);
|
|
1499
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotSelectItemLabelFromContent = _t.first);
|
|
1805
|
+
i0.ɵɵqueryAdvance(2);
|
|
1500
1806
|
} }, hostVars: 2, hostBindings: function SelectComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
1501
1807
|
i0.ɵɵclassMap("au-select dropdown border border-1 p-1 mb-3 d-block" + ctx.state.className());
|
|
1502
|
-
} }, inputs: { ariaLabel: [
|
|
1808
|
+
} }, inputs: { ariaLabel: [1, "auAriaLabel", "ariaLabel"], id: [1, "auId", "id"], items: [1, "auItems", "items"], allowedPlacements: [1, "auAllowedPlacements", "allowedPlacements"], open: [1, "auOpen", "open"], filterText: [1, "auFilterText", "filterText"], className: [1, "auClassName", "className"], disabled: [1, "auDisabled", "disabled"], selected: [1, "auSelected", "selected"], loading: [1, "auLoading", "loading"], itemIdFn: [1, "auItemIdFn", "itemIdFn"], menuClassName: [1, "auMenuClassName", "menuClassName"], badgeLabel: [1, "auBadgeLabel", "badgeLabel"], itemLabel: [1, "auItemLabel", "itemLabel"], menuItemClassName: [1, "auMenuItemClassName", "menuItemClassName"], badgeClassName: [1, "auBadgeClassName", "badgeClassName"], navSelector: [1, "auNavSelector", "navSelector"] }, outputs: { filterTextChange: "auFilterTextChange", selectedChange: "auSelectedChange", openChange: "auOpenChange" }, features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$6, decls: 4, vars: 8, consts: [[1, "d-flex", "align-items-center", "flex-wrap", "gap-1", 3, "auUseMulti"], [3, "auUse", "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) {
|
|
1503
1809
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1504
1810
|
i0.ɵɵtemplate(1, SelectComponent_Conditional_1_Template, 2, 0);
|
|
1505
1811
|
i0.ɵɵelement(2, "input", 1);
|
|
@@ -1519,7 +1825,6 @@ class SelectComponent extends BaseWidgetDirective {
|
|
|
1519
1825
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectComponent, [{
|
|
1520
1826
|
type: Component,
|
|
1521
1827
|
args: [{
|
|
1522
|
-
standalone: true,
|
|
1523
1828
|
imports: [UseMultiDirective, SlotDirective, UseDirective],
|
|
1524
1829
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1525
1830
|
selector: '[auSelect]',
|
|
@@ -1552,74 +1857,8 @@ class SelectComponent extends BaseWidgetDirective {
|
|
|
1552
1857
|
}
|
|
1553
1858
|
`,
|
|
1554
1859
|
}]
|
|
1555
|
-
}], () => [],
|
|
1556
|
-
|
|
1557
|
-
args: ['auAriaLabel']
|
|
1558
|
-
}], id: [{
|
|
1559
|
-
type: Input,
|
|
1560
|
-
args: ['auId']
|
|
1561
|
-
}], items: [{
|
|
1562
|
-
type: Input,
|
|
1563
|
-
args: ['auItems']
|
|
1564
|
-
}], allowedPlacements: [{
|
|
1565
|
-
type: Input,
|
|
1566
|
-
args: ['auAllowedPlacements']
|
|
1567
|
-
}], open: [{
|
|
1568
|
-
type: Input,
|
|
1569
|
-
args: [{ alias: 'auOpen', transform: auBooleanAttribute }]
|
|
1570
|
-
}], filterText: [{
|
|
1571
|
-
type: Input,
|
|
1572
|
-
args: ['auFilterText']
|
|
1573
|
-
}], className: [{
|
|
1574
|
-
type: Input,
|
|
1575
|
-
args: ['auClassName']
|
|
1576
|
-
}], disabled: [{
|
|
1577
|
-
type: Input,
|
|
1578
|
-
args: [{ alias: 'auDisabled', transform: auBooleanAttribute }]
|
|
1579
|
-
}], selected: [{
|
|
1580
|
-
type: Input,
|
|
1581
|
-
args: ['auSelected']
|
|
1582
|
-
}], loading: [{
|
|
1583
|
-
type: Input,
|
|
1584
|
-
args: [{ alias: 'auLoading', transform: auBooleanAttribute }]
|
|
1585
|
-
}], itemIdFn: [{
|
|
1586
|
-
type: Input,
|
|
1587
|
-
args: ['auItemIdFn']
|
|
1588
|
-
}], menuClassName: [{
|
|
1589
|
-
type: Input,
|
|
1590
|
-
args: ['auMenuClassName']
|
|
1591
|
-
}], badgeLabel: [{
|
|
1592
|
-
type: Input,
|
|
1593
|
-
args: ['auBadgeLabel']
|
|
1594
|
-
}], slotSelectBadgeLabelFromContent: [{
|
|
1595
|
-
type: ContentChild,
|
|
1596
|
-
args: [SelectBadgeLabelDirective, { static: false }]
|
|
1597
|
-
}], itemLabel: [{
|
|
1598
|
-
type: Input,
|
|
1599
|
-
args: ['auItemLabel']
|
|
1600
|
-
}], slotSelectItemLabelFromContent: [{
|
|
1601
|
-
type: ContentChild,
|
|
1602
|
-
args: [SelectItemLabelDirective, { static: false }]
|
|
1603
|
-
}], filterTextChange: [{
|
|
1604
|
-
type: Output,
|
|
1605
|
-
args: ['auFilterTextChange']
|
|
1606
|
-
}], selectedChange: [{
|
|
1607
|
-
type: Output,
|
|
1608
|
-
args: ['auSelectedChange']
|
|
1609
|
-
}], openChange: [{
|
|
1610
|
-
type: Output,
|
|
1611
|
-
args: ['auOpenChange']
|
|
1612
|
-
}], menuItemClassName: [{
|
|
1613
|
-
type: Input,
|
|
1614
|
-
args: ['auMenuItemClassName']
|
|
1615
|
-
}], badgeClassName: [{
|
|
1616
|
-
type: Input,
|
|
1617
|
-
args: ['auBadgeClassName']
|
|
1618
|
-
}], navSelector: [{
|
|
1619
|
-
type: Input,
|
|
1620
|
-
args: ['auNavSelector']
|
|
1621
|
-
}] }); })();
|
|
1622
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectComponent, { className: "SelectComponent", filePath: "components/select/select.component.ts", lineNumber: 88 }); })();
|
|
1860
|
+
}], () => [], null); })();
|
|
1861
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectComponent, { className: "SelectComponent", filePath: "components/select/select.component.ts", lineNumber: 87 }); })();
|
|
1623
1862
|
|
|
1624
1863
|
/**
|
|
1625
1864
|
* Retrieve a shallow copy of the default Alert config
|
|
@@ -1690,7 +1929,7 @@ class AlertBodyDirective {
|
|
|
1690
1929
|
return true;
|
|
1691
1930
|
}
|
|
1692
1931
|
static { this.ɵfac = function AlertBodyDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertBodyDirective)(); }; }
|
|
1693
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AlertBodyDirective, selectors: [["ng-template", "auAlertBody", ""]]
|
|
1932
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AlertBodyDirective, selectors: [["ng-template", "auAlertBody", ""]] }); }
|
|
1694
1933
|
}
|
|
1695
1934
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertBodyDirective, [{
|
|
1696
1935
|
type: Directive,
|
|
@@ -1709,27 +1948,28 @@ class AlertStructureDirective {
|
|
|
1709
1948
|
return true;
|
|
1710
1949
|
}
|
|
1711
1950
|
static { this.ɵfac = function AlertStructureDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertStructureDirective)(); }; }
|
|
1712
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AlertStructureDirective, selectors: [["ng-template", "auAlertStructure", ""]]
|
|
1951
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AlertStructureDirective, selectors: [["ng-template", "auAlertStructure", ""]] }); }
|
|
1713
1952
|
}
|
|
1714
1953
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertStructureDirective, [{
|
|
1715
1954
|
type: Directive,
|
|
1716
1955
|
args: [{ selector: 'ng-template[auAlertStructure]', standalone: true }]
|
|
1717
1956
|
}], null, null); })();
|
|
1718
1957
|
class AlertDefaultSlotsComponent {
|
|
1958
|
+
constructor() {
|
|
1959
|
+
this.structure = viewChild.required('structure');
|
|
1960
|
+
}
|
|
1719
1961
|
static { this.ɵfac = function AlertDefaultSlotsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertDefaultSlotsComponent)(); }; }
|
|
1720
1962
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function AlertDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1721
|
-
i0.ɵɵ
|
|
1963
|
+
i0.ɵɵviewQuerySignal(ctx.structure, _c0$5, 5);
|
|
1722
1964
|
} if (rf & 2) {
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
} }, 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) {
|
|
1965
|
+
i0.ɵɵqueryAdvance();
|
|
1966
|
+
} }, 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) {
|
|
1726
1967
|
i0.ɵɵtemplate(0, AlertDefaultSlotsComponent_ng_template_0_Template, 3, 7, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
|
|
1727
1968
|
} }, dependencies: [SlotDirective, AlertStructureDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
1728
1969
|
}
|
|
1729
1970
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertDefaultSlotsComponent, [{
|
|
1730
1971
|
type: Component,
|
|
1731
1972
|
args: [{
|
|
1732
|
-
standalone: true,
|
|
1733
1973
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1734
1974
|
imports: [SlotDirective, AlertStructureDirective],
|
|
1735
1975
|
template: ` <ng-template auAlertStructure #structure let-state="state" let-api="api" let-directives="directives">
|
|
@@ -1741,11 +1981,8 @@ class AlertDefaultSlotsComponent {
|
|
|
1741
1981
|
}
|
|
1742
1982
|
</ng-template>`,
|
|
1743
1983
|
}]
|
|
1744
|
-
}], null,
|
|
1745
|
-
|
|
1746
|
-
args: ['structure', { static: true }]
|
|
1747
|
-
}] }); })();
|
|
1748
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertDefaultSlotsComponent, { className: "AlertDefaultSlotsComponent", filePath: "components/alert/alert.component.ts", lineNumber: 59 }); })();
|
|
1984
|
+
}], null, null); })();
|
|
1985
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertDefaultSlotsComponent, { className: "AlertDefaultSlotsComponent", filePath: "components/alert/alert.component.ts", lineNumber: 47 }); })();
|
|
1749
1986
|
/**
|
|
1750
1987
|
* Represents the default slot structure for the alert component.
|
|
1751
1988
|
*/
|
|
@@ -1772,11 +2009,72 @@ class AlertComponent extends BaseWidgetDirective {
|
|
|
1772
2009
|
onHidden: () => this.hidden.emit(),
|
|
1773
2010
|
},
|
|
1774
2011
|
slotTemplates: () => ({
|
|
1775
|
-
children: this.slotDefaultFromContent?.templateRef,
|
|
1776
|
-
structure: this.slotStructureFromContent?.templateRef,
|
|
2012
|
+
children: this.slotDefaultFromContent()?.templateRef,
|
|
2013
|
+
structure: this.slotStructureFromContent()?.templateRef,
|
|
1777
2014
|
}),
|
|
1778
|
-
slotChildren: () => this.slotChildren,
|
|
2015
|
+
slotChildren: () => this.slotChildren(),
|
|
1779
2016
|
}));
|
|
2017
|
+
/**
|
|
2018
|
+
* Type of the alert, following bootstrap types.
|
|
2019
|
+
*
|
|
2020
|
+
* @defaultValue `'primary'`
|
|
2021
|
+
*/
|
|
2022
|
+
this.type = input(undefined, { alias: 'auType' });
|
|
2023
|
+
/**
|
|
2024
|
+
* If `true`, alert can be dismissed by the user.
|
|
2025
|
+
* The close button (×) will be displayed and you can be notified of the event with the (close) output.
|
|
2026
|
+
*
|
|
2027
|
+
* @defaultValue `true`
|
|
2028
|
+
*/
|
|
2029
|
+
this.dismissible = input(undefined, { alias: 'auDismissible', transform: auBooleanAttribute });
|
|
2030
|
+
/**
|
|
2031
|
+
* The transition function will be executed when the alert is displayed or hidden.
|
|
2032
|
+
*
|
|
2033
|
+
* Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
|
|
2034
|
+
*
|
|
2035
|
+
* @defaultValue `fadeTransition`
|
|
2036
|
+
*/
|
|
2037
|
+
this.transition = input(undefined, { alias: 'auTransition' });
|
|
2038
|
+
/**
|
|
2039
|
+
* If `true` the alert is visible to the user
|
|
2040
|
+
*
|
|
2041
|
+
* @defaultValue `true`
|
|
2042
|
+
*/
|
|
2043
|
+
this.visible = input(undefined, { alias: 'auVisible', transform: auBooleanAttribute });
|
|
2044
|
+
/**
|
|
2045
|
+
* If `true`, alert opening will be animated.
|
|
2046
|
+
*
|
|
2047
|
+
* Animation is triggered when the `.open()` function is called
|
|
2048
|
+
* or the visible prop is changed
|
|
2049
|
+
*
|
|
2050
|
+
* @defaultValue `false`
|
|
2051
|
+
*/
|
|
2052
|
+
this.animatedOnInit = input(undefined, { alias: 'auAnimatedOnInit', transform: auBooleanAttribute });
|
|
2053
|
+
/**
|
|
2054
|
+
* If `true`, alert closing will be animated.
|
|
2055
|
+
*
|
|
2056
|
+
* Animation is triggered when clicked on the close button (×),
|
|
2057
|
+
* via the `.close()` function or the visible prop is changed
|
|
2058
|
+
*
|
|
2059
|
+
* @defaultValue `true`
|
|
2060
|
+
*/
|
|
2061
|
+
this.animated = input(undefined, { alias: 'auAnimated', transform: auBooleanAttribute });
|
|
2062
|
+
/**
|
|
2063
|
+
* Accessibility close button label
|
|
2064
|
+
*
|
|
2065
|
+
* @defaultValue `'Close'`
|
|
2066
|
+
*/
|
|
2067
|
+
this.ariaCloseButtonLabel = input(undefined, { alias: 'auAriaCloseButtonLabel' });
|
|
2068
|
+
/**
|
|
2069
|
+
* Template for the alert content
|
|
2070
|
+
*/
|
|
2071
|
+
this.children = input(undefined, { alias: 'auChildren' });
|
|
2072
|
+
this.slotDefaultFromContent = contentChild(AlertBodyDirective);
|
|
2073
|
+
/**
|
|
2074
|
+
* Global template for the alert component
|
|
2075
|
+
*/
|
|
2076
|
+
this.structure = input(undefined, { alias: 'auStructure' });
|
|
2077
|
+
this.slotStructureFromContent = contentChild(AlertStructureDirective);
|
|
1780
2078
|
/**
|
|
1781
2079
|
* Callback called when the alert visibility changed.
|
|
1782
2080
|
*
|
|
@@ -1785,7 +2083,7 @@ class AlertComponent extends BaseWidgetDirective {
|
|
|
1785
2083
|
* () => {}
|
|
1786
2084
|
* ```
|
|
1787
2085
|
*/
|
|
1788
|
-
this.visibleChange =
|
|
2086
|
+
this.visibleChange = output({ alias: 'auVisibleChange' });
|
|
1789
2087
|
/**
|
|
1790
2088
|
* Callback called when the alert is hidden.
|
|
1791
2089
|
*
|
|
@@ -1794,7 +2092,7 @@ class AlertComponent extends BaseWidgetDirective {
|
|
|
1794
2092
|
* () => {}
|
|
1795
2093
|
* ```
|
|
1796
2094
|
*/
|
|
1797
|
-
this.hidden =
|
|
2095
|
+
this.hidden = output({ alias: 'auHidden' });
|
|
1798
2096
|
/**
|
|
1799
2097
|
* Callback called when the alert is shown.
|
|
1800
2098
|
*
|
|
@@ -1803,22 +2101,26 @@ class AlertComponent extends BaseWidgetDirective {
|
|
|
1803
2101
|
* () => {}
|
|
1804
2102
|
* ```
|
|
1805
2103
|
*/
|
|
1806
|
-
this.shown =
|
|
2104
|
+
this.shown = output({ alias: 'auShown' });
|
|
2105
|
+
/**
|
|
2106
|
+
* CSS classes to be applied on the widget main container
|
|
2107
|
+
*
|
|
2108
|
+
* @defaultValue `''`
|
|
2109
|
+
*/
|
|
2110
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
2111
|
+
this.slotChildren = viewChild('content');
|
|
1807
2112
|
}
|
|
1808
2113
|
static { this.ɵfac = function AlertComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertComponent)(); }; }
|
|
1809
2114
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["", "auAlert", ""]], contentQueries: function AlertComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
1810
|
-
i0.ɵɵ
|
|
1811
|
-
i0.ɵɵ
|
|
2115
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotDefaultFromContent, AlertBodyDirective, 5);
|
|
2116
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotStructureFromContent, AlertStructureDirective, 5);
|
|
1812
2117
|
} if (rf & 2) {
|
|
1813
|
-
|
|
1814
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotDefaultFromContent = _t.first);
|
|
1815
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
|
|
2118
|
+
i0.ɵɵqueryAdvance(2);
|
|
1816
2119
|
} }, viewQuery: function AlertComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1817
|
-
i0.ɵɵ
|
|
2120
|
+
i0.ɵɵviewQuerySignal(ctx.slotChildren, _c2$5, 5);
|
|
1818
2121
|
} if (rf & 2) {
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
} }, inputs: { type: [0, "auType", "type"], dismissible: [2, "auDismissible", "dismissible", auBooleanAttribute], transition: [0, "auTransition", "transition"], visible: [2, "auVisible", "visible", auBooleanAttribute], animatedOnInit: [2, "auAnimatedOnInit", "animatedOnInit", auBooleanAttribute], animated: [2, "auAnimated", "animated", auBooleanAttribute], ariaCloseButtonLabel: [0, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], children: [0, "auChildren", "children"], structure: [0, "auStructure", "structure"], className: [0, "auClassName", "className"] }, outputs: { visibleChange: "auVisibleChange", hidden: "auHidden", shown: "auShown" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c3$5, ngContentSelectors: _c4$5, decls: 3, vars: 1, consts: [["content", ""], ["role", "alert", 3, "auUse", "class"], ["role", "alert", 3, "auUse"], [3, "auSlot", "auSlotProps"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2122
|
+
i0.ɵɵqueryAdvance();
|
|
2123
|
+
} }, inputs: { type: [1, "auType", "type"], dismissible: [1, "auDismissible", "dismissible"], transition: [1, "auTransition", "transition"], visible: [1, "auVisible", "visible"], animatedOnInit: [1, "auAnimatedOnInit", "animatedOnInit"], animated: [1, "auAnimated", "animated"], ariaCloseButtonLabel: [1, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], children: [1, "auChildren", "children"], structure: [1, "auStructure", "structure"], className: [1, "auClassName", "className"] }, outputs: { visibleChange: "auVisibleChange", hidden: "auHidden", shown: "auShown" }, features: [i0.ɵɵInheritDefinitionFeature], attrs: _c3$5, ngContentSelectors: _c4$5, decls: 3, vars: 1, consts: [["content", ""], ["role", "alert", 3, "auUse", "class"], ["role", "alert", 3, "auUse"], [3, "auSlot", "auSlotProps"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1822
2124
|
i0.ɵɵprojectionDef();
|
|
1823
2125
|
i0.ɵɵtemplate(0, AlertComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(2, AlertComponent_Conditional_2_Template, 2, 12, "div", 1);
|
|
1824
2126
|
} if (rf & 2) {
|
|
@@ -1830,7 +2132,6 @@ class AlertComponent extends BaseWidgetDirective {
|
|
|
1830
2132
|
type: Component,
|
|
1831
2133
|
args: [{
|
|
1832
2134
|
selector: '[auAlert]',
|
|
1833
|
-
standalone: true,
|
|
1834
2135
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1835
2136
|
imports: [SlotDirective, UseDirective],
|
|
1836
2137
|
template: ` <ng-template #content>
|
|
@@ -1847,56 +2148,8 @@ class AlertComponent extends BaseWidgetDirective {
|
|
|
1847
2148
|
</div>
|
|
1848
2149
|
}`,
|
|
1849
2150
|
}]
|
|
1850
|
-
}], () => [],
|
|
1851
|
-
|
|
1852
|
-
args: ['auType']
|
|
1853
|
-
}], dismissible: [{
|
|
1854
|
-
type: Input,
|
|
1855
|
-
args: [{ alias: 'auDismissible', transform: auBooleanAttribute }]
|
|
1856
|
-
}], transition: [{
|
|
1857
|
-
type: Input,
|
|
1858
|
-
args: ['auTransition']
|
|
1859
|
-
}], visible: [{
|
|
1860
|
-
type: Input,
|
|
1861
|
-
args: [{ alias: 'auVisible', transform: auBooleanAttribute }]
|
|
1862
|
-
}], animatedOnInit: [{
|
|
1863
|
-
type: Input,
|
|
1864
|
-
args: [{ alias: 'auAnimatedOnInit', transform: auBooleanAttribute }]
|
|
1865
|
-
}], animated: [{
|
|
1866
|
-
type: Input,
|
|
1867
|
-
args: [{ alias: 'auAnimated', transform: auBooleanAttribute }]
|
|
1868
|
-
}], ariaCloseButtonLabel: [{
|
|
1869
|
-
type: Input,
|
|
1870
|
-
args: ['auAriaCloseButtonLabel']
|
|
1871
|
-
}], children: [{
|
|
1872
|
-
type: Input,
|
|
1873
|
-
args: ['auChildren']
|
|
1874
|
-
}], slotDefaultFromContent: [{
|
|
1875
|
-
type: ContentChild,
|
|
1876
|
-
args: [AlertBodyDirective, { static: false }]
|
|
1877
|
-
}], structure: [{
|
|
1878
|
-
type: Input,
|
|
1879
|
-
args: ['auStructure']
|
|
1880
|
-
}], slotStructureFromContent: [{
|
|
1881
|
-
type: ContentChild,
|
|
1882
|
-
args: [AlertStructureDirective, { static: false }]
|
|
1883
|
-
}], visibleChange: [{
|
|
1884
|
-
type: Output,
|
|
1885
|
-
args: ['auVisibleChange']
|
|
1886
|
-
}], hidden: [{
|
|
1887
|
-
type: Output,
|
|
1888
|
-
args: ['auHidden']
|
|
1889
|
-
}], shown: [{
|
|
1890
|
-
type: Output,
|
|
1891
|
-
args: ['auShown']
|
|
1892
|
-
}], className: [{
|
|
1893
|
-
type: Input,
|
|
1894
|
-
args: ['auClassName']
|
|
1895
|
-
}], slotChildren: [{
|
|
1896
|
-
type: ViewChild,
|
|
1897
|
-
args: ['content', { static: true }]
|
|
1898
|
-
}] }); })();
|
|
1899
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertComponent, { className: "AlertComponent", filePath: "components/alert/alert.component.ts", lineNumber: 95 }); })();
|
|
2151
|
+
}], () => [], null); })();
|
|
2152
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertComponent, { className: "AlertComponent", filePath: "components/alert/alert.component.ts", lineNumber: 82 }); })();
|
|
1900
2153
|
|
|
1901
2154
|
/**
|
|
1902
2155
|
* Retrieve a shallow copy of the default accordion config
|
|
@@ -2109,7 +2362,7 @@ class AccordionBodyDirective {
|
|
|
2109
2362
|
return true;
|
|
2110
2363
|
}
|
|
2111
2364
|
static { this.ɵfac = function AccordionBodyDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AccordionBodyDirective)(); }; }
|
|
2112
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionBodyDirective, selectors: [["ng-template", "auAccordionItemBody", ""]]
|
|
2365
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionBodyDirective, selectors: [["ng-template", "auAccordionItemBody", ""]] }); }
|
|
2113
2366
|
}
|
|
2114
2367
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccordionBodyDirective, [{
|
|
2115
2368
|
type: Directive,
|
|
@@ -2128,7 +2381,7 @@ class AccordionHeaderDirective {
|
|
|
2128
2381
|
return true;
|
|
2129
2382
|
}
|
|
2130
2383
|
static { this.ɵfac = function AccordionHeaderDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AccordionHeaderDirective)(); }; }
|
|
2131
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionHeaderDirective, selectors: [["ng-template", "auAccordionItemHeader", ""]]
|
|
2384
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionHeaderDirective, selectors: [["ng-template", "auAccordionItemHeader", ""]] }); }
|
|
2132
2385
|
}
|
|
2133
2386
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccordionHeaderDirective, [{
|
|
2134
2387
|
type: Directive,
|
|
@@ -2148,27 +2401,28 @@ class AccordionItemStructureDirective {
|
|
|
2148
2401
|
return true;
|
|
2149
2402
|
}
|
|
2150
2403
|
static { this.ɵfac = function AccordionItemStructureDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AccordionItemStructureDirective)(); }; }
|
|
2151
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionItemStructureDirective, selectors: [["ng-template", "auAccordionItemStructure", ""]]
|
|
2404
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionItemStructureDirective, selectors: [["ng-template", "auAccordionItemStructure", ""]] }); }
|
|
2152
2405
|
}
|
|
2153
2406
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccordionItemStructureDirective, [{
|
|
2154
2407
|
type: Directive,
|
|
2155
2408
|
args: [{ selector: 'ng-template[auAccordionItemStructure]', standalone: true }]
|
|
2156
2409
|
}], null, null); })();
|
|
2157
2410
|
class AccordionItemDefaultSlotsComponent {
|
|
2411
|
+
constructor() {
|
|
2412
|
+
this.structure = viewChild.required('structure');
|
|
2413
|
+
}
|
|
2158
2414
|
static { this.ɵfac = function AccordionItemDefaultSlotsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AccordionItemDefaultSlotsComponent)(); }; }
|
|
2159
2415
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AccordionItemDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function AccordionItemDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2160
|
-
i0.ɵɵ
|
|
2416
|
+
i0.ɵɵviewQuerySignal(ctx.structure, _c0$4, 5);
|
|
2161
2417
|
} if (rf & 2) {
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
} }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["structure", ""], ["h1", ""], ["h2", ""], ["h3", ""], ["h4", ""], ["h5", ""], ["h6", ""], ["button", ""], ["auAccordionItemStructure", ""], [3, "ngTemplateOutlet"], [1, "accordion-collapse", 3, "auUse"], [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) {
|
|
2418
|
+
i0.ɵɵqueryAdvance();
|
|
2419
|
+
} }, decls: 2, vars: 0, consts: [["structure", ""], ["h1", ""], ["h2", ""], ["h3", ""], ["h4", ""], ["h5", ""], ["h6", ""], ["button", ""], ["auAccordionItemStructure", ""], [3, "ngTemplateOutlet"], [1, "accordion-collapse", 3, "auUse"], [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) {
|
|
2165
2420
|
i0.ɵɵtemplate(0, AccordionItemDefaultSlotsComponent_ng_template_0_Template, 22, 2, "ng-template", 8, 0, i0.ɵɵtemplateRefExtractor);
|
|
2166
2421
|
} }, dependencies: [UseDirective, SlotDirective, NgTemplateOutlet, AccordionItemStructureDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
2167
2422
|
}
|
|
2168
2423
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccordionItemDefaultSlotsComponent, [{
|
|
2169
2424
|
type: Component,
|
|
2170
2425
|
args: [{
|
|
2171
|
-
standalone: true,
|
|
2172
2426
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2173
2427
|
imports: [UseDirective, SlotDirective, NgTemplateOutlet, AccordionItemStructureDirective],
|
|
2174
2428
|
template: `
|
|
@@ -2247,11 +2501,8 @@ class AccordionItemDefaultSlotsComponent {
|
|
|
2247
2501
|
</ng-template>
|
|
2248
2502
|
`,
|
|
2249
2503
|
}]
|
|
2250
|
-
}], null,
|
|
2251
|
-
|
|
2252
|
-
args: ['structure', { static: true }]
|
|
2253
|
-
}] }); })();
|
|
2254
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccordionItemDefaultSlotsComponent, { className: "AccordionItemDefaultSlotsComponent", filePath: "components/accordion/accordion.component.ts", lineNumber: 148 }); })();
|
|
2504
|
+
}], null, null); })();
|
|
2505
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccordionItemDefaultSlotsComponent, { className: "AccordionItemDefaultSlotsComponent", filePath: "components/accordion/accordion.component.ts", lineNumber: 136 }); })();
|
|
2255
2506
|
/**
|
|
2256
2507
|
* Represents the default slot structure for an accordion item.
|
|
2257
2508
|
*/
|
|
@@ -2275,46 +2526,119 @@ class AccordionItemComponent extends BaseWidgetDirective {
|
|
|
2275
2526
|
useDirectiveForHost(widget.directives.itemDirective);
|
|
2276
2527
|
},
|
|
2277
2528
|
slotTemplates: () => ({
|
|
2278
|
-
structure: this.slotStructureFromContent?.templateRef,
|
|
2279
|
-
header: this.slotHeaderFromContent?.templateRef,
|
|
2280
|
-
children: this.slotBodyFromContent?.templateRef,
|
|
2529
|
+
structure: this.slotStructureFromContent()?.templateRef,
|
|
2530
|
+
header: this.slotHeaderFromContent()?.templateRef,
|
|
2531
|
+
children: this.slotBodyFromContent()?.templateRef,
|
|
2281
2532
|
}),
|
|
2282
|
-
slotChildren: () => this.slotChildren,
|
|
2533
|
+
slotChildren: () => this.slotChildren(),
|
|
2283
2534
|
}));
|
|
2535
|
+
/**
|
|
2536
|
+
* Content present in the accordion button inside the accordion header.
|
|
2537
|
+
*
|
|
2538
|
+
* It is a prop of the accordion-item.
|
|
2539
|
+
*/
|
|
2540
|
+
this.header = input(undefined, { alias: 'auHeader' });
|
|
2541
|
+
this.slotHeaderFromContent = contentChild(AccordionHeaderDirective);
|
|
2542
|
+
/**
|
|
2543
|
+
* Content present in the accordion body.
|
|
2544
|
+
*
|
|
2545
|
+
* It is a prop of the accordion-item.
|
|
2546
|
+
*/
|
|
2547
|
+
this.children = input(undefined, { alias: 'auChildren' });
|
|
2548
|
+
this.slotBodyFromContent = contentChild(AccordionBodyDirective);
|
|
2549
|
+
/**
|
|
2550
|
+
* Structure of the accordion-item. The default item structure is: accordion-item
|
|
2551
|
+
* contains accordion header and accordion-item body container; the accordion header contains the accordion button
|
|
2552
|
+
* (that contains `header`), while the accordion-item body container contains the accordion body (that contains `children`).
|
|
2553
|
+
* The itemTransition is applied on this element.
|
|
2554
|
+
*
|
|
2555
|
+
* It is a prop of the accordion-item.
|
|
2556
|
+
*/
|
|
2557
|
+
this.structure = input(undefined, { alias: 'auStructure' });
|
|
2558
|
+
this.slotStructureFromContent = contentChild(AccordionItemStructureDirective);
|
|
2559
|
+
/**
|
|
2560
|
+
* The id of the accordion-item. It can be used for controlling the accordion-item via the accordion api.
|
|
2561
|
+
*/
|
|
2562
|
+
this.id = input(undefined, { alias: 'auId' });
|
|
2563
|
+
/**
|
|
2564
|
+
* The transition to use for the accordion-item body-container when the accordion-item is toggled.
|
|
2565
|
+
*/
|
|
2566
|
+
this.transition = input(undefined, { alias: 'auTransition' });
|
|
2567
|
+
/**
|
|
2568
|
+
* CSS classes to be applied on the widget main container
|
|
2569
|
+
*
|
|
2570
|
+
* @defaultValue `''`
|
|
2571
|
+
*/
|
|
2572
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
2573
|
+
/**
|
|
2574
|
+
* If `true`, the accordion-item body container will be removed from the DOM when the accordion-item is collapsed. It will be just hidden otherwise.
|
|
2575
|
+
*/
|
|
2576
|
+
this.destroyOnHide = input(undefined, { alias: 'auDestroyOnHide', transform: auBooleanAttribute });
|
|
2577
|
+
/**
|
|
2578
|
+
* If `true`, the accordion-item will be disabled.
|
|
2579
|
+
* It will not react to user's clicks, but still will be possible to toggle programmatically.
|
|
2580
|
+
*/
|
|
2581
|
+
this.disabled = input(undefined, { alias: 'auDisabled', transform: auBooleanAttribute });
|
|
2582
|
+
/**
|
|
2583
|
+
* If `true`, the accordion-item will be visible (expanded). Otherwise, it will be hidden (collapsed).
|
|
2584
|
+
*/
|
|
2585
|
+
this.visible = input(undefined, { alias: 'auVisible', transform: auBooleanAttribute });
|
|
2586
|
+
/**
|
|
2587
|
+
* If `true`, accordion-item will be animated.
|
|
2588
|
+
*/
|
|
2589
|
+
this.animated = input(undefined, { alias: 'auAnimated', transform: auBooleanAttribute });
|
|
2590
|
+
/**
|
|
2591
|
+
* CSS classes to add on the accordion-item header DOM element.
|
|
2592
|
+
*/
|
|
2593
|
+
this.headerClassName = input(undefined, { alias: 'auHeaderClassName' });
|
|
2594
|
+
/**
|
|
2595
|
+
* CSS classes to add on the accordion-item collapse DOM element.
|
|
2596
|
+
*/
|
|
2597
|
+
this.buttonClassName = input(undefined, { alias: 'auButtonClassName' });
|
|
2598
|
+
/**
|
|
2599
|
+
* CSS classes to add on the accordion-item body container DOM element.
|
|
2600
|
+
* The accordion-item body container is the DOM element on what the itemTransition is applied.
|
|
2601
|
+
*/
|
|
2602
|
+
this.bodyContainerClassName = input(undefined, { alias: 'auBodyContainerClassName' });
|
|
2603
|
+
/**
|
|
2604
|
+
* CSS classes to add on the accordion-item body DOM element.
|
|
2605
|
+
*/
|
|
2606
|
+
this.bodyClassName = input(undefined, { alias: 'auBodyClassName' });
|
|
2607
|
+
/**
|
|
2608
|
+
* The html tag to use for the accordion-item-header.
|
|
2609
|
+
*/
|
|
2610
|
+
this.headingTag = input(undefined, { alias: 'auHeadingTag' });
|
|
2284
2611
|
/**
|
|
2285
2612
|
* An event fired when an item is shown.
|
|
2286
2613
|
*/
|
|
2287
|
-
this.shown =
|
|
2614
|
+
this.shown = output({ alias: 'auShown' });
|
|
2288
2615
|
/**
|
|
2289
2616
|
* An event fired when an item is hidden.
|
|
2290
2617
|
*/
|
|
2291
|
-
this.hidden =
|
|
2618
|
+
this.hidden = output({ alias: 'auHidden' });
|
|
2292
2619
|
/**
|
|
2293
2620
|
* An event fired when the `visible` value changes.
|
|
2294
2621
|
*
|
|
2295
2622
|
* Event payload is the new value of visible.
|
|
2296
2623
|
*/
|
|
2297
|
-
this.visibleChange =
|
|
2624
|
+
this.visibleChange = output({ alias: 'auVisibleChange' });
|
|
2625
|
+
this.slotChildren = viewChild('content');
|
|
2298
2626
|
}
|
|
2299
2627
|
ngAfterViewInit() {
|
|
2300
2628
|
queueMicrotask(() => this.api.initDone());
|
|
2301
2629
|
}
|
|
2302
2630
|
static { this.ɵfac = function AccordionItemComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AccordionItemComponent)(); }; }
|
|
2303
2631
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AccordionItemComponent, selectors: [["", "auAccordionItem", ""]], contentQueries: function AccordionItemComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
2304
|
-
i0.ɵɵ
|
|
2305
|
-
i0.ɵɵ
|
|
2306
|
-
i0.ɵɵ
|
|
2632
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotHeaderFromContent, AccordionHeaderDirective, 5);
|
|
2633
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotBodyFromContent, AccordionBodyDirective, 5);
|
|
2634
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotStructureFromContent, AccordionItemStructureDirective, 5);
|
|
2307
2635
|
} if (rf & 2) {
|
|
2308
|
-
|
|
2309
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotHeaderFromContent = _t.first);
|
|
2310
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotBodyFromContent = _t.first);
|
|
2311
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
|
|
2636
|
+
i0.ɵɵqueryAdvance(3);
|
|
2312
2637
|
} }, viewQuery: function AccordionItemComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2313
|
-
i0.ɵɵ
|
|
2638
|
+
i0.ɵɵviewQuerySignal(ctx.slotChildren, _c2$4, 5);
|
|
2314
2639
|
} if (rf & 2) {
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
} }, hostAttrs: [1, "accordion-item"], inputs: { header: [0, "auHeader", "header"], children: [0, "auChildren", "children"], structure: [0, "auStructure", "structure"], id: [0, "auId", "id"], transition: [0, "auTransition", "transition"], className: [0, "auClassName", "className"], destroyOnHide: [2, "auDestroyOnHide", "destroyOnHide", auBooleanAttribute], disabled: [2, "auDisabled", "disabled", auBooleanAttribute], visible: [2, "auVisible", "visible", auBooleanAttribute], animated: [2, "auAnimated", "animated", auBooleanAttribute], headerClassName: [0, "auHeaderClassName", "headerClassName"], buttonClassName: [0, "auButtonClassName", "buttonClassName"], bodyContainerClassName: [0, "auBodyContainerClassName", "bodyContainerClassName"], bodyClassName: [0, "auBodyClassName", "bodyClassName"], headingTag: [0, "auHeadingTag", "headingTag"] }, outputs: { shown: "auShown", hidden: "auHidden", visibleChange: "auVisibleChange" }, exportAs: ["auAccordionItem"], standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c3$4, ngContentSelectors: _c4$4, decls: 3, vars: 6, consts: [["content", ""], [3, "auSlotProps", "auSlot"]], template: function AccordionItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2640
|
+
i0.ɵɵqueryAdvance();
|
|
2641
|
+
} }, hostAttrs: [1, "accordion-item"], inputs: { header: [1, "auHeader", "header"], children: [1, "auChildren", "children"], structure: [1, "auStructure", "structure"], id: [1, "auId", "id"], transition: [1, "auTransition", "transition"], className: [1, "auClassName", "className"], destroyOnHide: [1, "auDestroyOnHide", "destroyOnHide"], disabled: [1, "auDisabled", "disabled"], visible: [1, "auVisible", "visible"], animated: [1, "auAnimated", "animated"], headerClassName: [1, "auHeaderClassName", "headerClassName"], buttonClassName: [1, "auButtonClassName", "buttonClassName"], bodyContainerClassName: [1, "auBodyContainerClassName", "bodyContainerClassName"], bodyClassName: [1, "auBodyClassName", "bodyClassName"], headingTag: [1, "auHeadingTag", "headingTag"] }, outputs: { shown: "auShown", hidden: "auHidden", visibleChange: "auVisibleChange" }, exportAs: ["auAccordionItem"], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c3$4, ngContentSelectors: _c4$4, decls: 3, vars: 6, consts: [["content", ""], [3, "auSlotProps", "auSlot"]], template: function AccordionItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2318
2642
|
i0.ɵɵprojectionDef();
|
|
2319
2643
|
i0.ɵɵtemplate(0, AccordionItemComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(2, AccordionItemComponent_ng_template_2_Template, 0, 0, "ng-template", 1);
|
|
2320
2644
|
} if (rf & 2) {
|
|
@@ -2327,85 +2651,18 @@ class AccordionItemComponent extends BaseWidgetDirective {
|
|
|
2327
2651
|
args: [{
|
|
2328
2652
|
selector: '[auAccordionItem]',
|
|
2329
2653
|
exportAs: 'auAccordionItem',
|
|
2330
|
-
standalone: true,
|
|
2331
2654
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2332
2655
|
host: {
|
|
2333
2656
|
class: 'accordion-item',
|
|
2334
2657
|
},
|
|
2335
|
-
imports: [SlotDirective
|
|
2658
|
+
imports: [SlotDirective],
|
|
2336
2659
|
template: `
|
|
2337
2660
|
<ng-template #content><ng-content /></ng-template>
|
|
2338
2661
|
<ng-template [auSlotProps]="{state, api, directives}" [auSlot]="state.structure()" />
|
|
2339
2662
|
`,
|
|
2340
2663
|
}]
|
|
2341
|
-
}], () => [],
|
|
2342
|
-
|
|
2343
|
-
args: ['auHeader']
|
|
2344
|
-
}], slotHeaderFromContent: [{
|
|
2345
|
-
type: ContentChild,
|
|
2346
|
-
args: [AccordionHeaderDirective, { static: false }]
|
|
2347
|
-
}], children: [{
|
|
2348
|
-
type: Input,
|
|
2349
|
-
args: ['auChildren']
|
|
2350
|
-
}], slotBodyFromContent: [{
|
|
2351
|
-
type: ContentChild,
|
|
2352
|
-
args: [AccordionBodyDirective, { static: false }]
|
|
2353
|
-
}], structure: [{
|
|
2354
|
-
type: Input,
|
|
2355
|
-
args: ['auStructure']
|
|
2356
|
-
}], slotStructureFromContent: [{
|
|
2357
|
-
type: ContentChild,
|
|
2358
|
-
args: [AccordionItemStructureDirective, { static: false }]
|
|
2359
|
-
}], id: [{
|
|
2360
|
-
type: Input,
|
|
2361
|
-
args: ['auId']
|
|
2362
|
-
}], transition: [{
|
|
2363
|
-
type: Input,
|
|
2364
|
-
args: ['auTransition']
|
|
2365
|
-
}], className: [{
|
|
2366
|
-
type: Input,
|
|
2367
|
-
args: ['auClassName']
|
|
2368
|
-
}], destroyOnHide: [{
|
|
2369
|
-
type: Input,
|
|
2370
|
-
args: [{ alias: 'auDestroyOnHide', transform: auBooleanAttribute }]
|
|
2371
|
-
}], disabled: [{
|
|
2372
|
-
type: Input,
|
|
2373
|
-
args: [{ alias: 'auDisabled', transform: auBooleanAttribute }]
|
|
2374
|
-
}], visible: [{
|
|
2375
|
-
type: Input,
|
|
2376
|
-
args: [{ alias: 'auVisible', transform: auBooleanAttribute }]
|
|
2377
|
-
}], animated: [{
|
|
2378
|
-
type: Input,
|
|
2379
|
-
args: [{ alias: 'auAnimated', transform: auBooleanAttribute }]
|
|
2380
|
-
}], headerClassName: [{
|
|
2381
|
-
type: Input,
|
|
2382
|
-
args: ['auHeaderClassName']
|
|
2383
|
-
}], buttonClassName: [{
|
|
2384
|
-
type: Input,
|
|
2385
|
-
args: ['auButtonClassName']
|
|
2386
|
-
}], bodyContainerClassName: [{
|
|
2387
|
-
type: Input,
|
|
2388
|
-
args: ['auBodyContainerClassName']
|
|
2389
|
-
}], bodyClassName: [{
|
|
2390
|
-
type: Input,
|
|
2391
|
-
args: ['auBodyClassName']
|
|
2392
|
-
}], headingTag: [{
|
|
2393
|
-
type: Input,
|
|
2394
|
-
args: ['auHeadingTag']
|
|
2395
|
-
}], shown: [{
|
|
2396
|
-
type: Output,
|
|
2397
|
-
args: ['auShown']
|
|
2398
|
-
}], hidden: [{
|
|
2399
|
-
type: Output,
|
|
2400
|
-
args: ['auHidden']
|
|
2401
|
-
}], visibleChange: [{
|
|
2402
|
-
type: Output,
|
|
2403
|
-
args: ['auVisibleChange']
|
|
2404
|
-
}], slotChildren: [{
|
|
2405
|
-
type: ViewChild,
|
|
2406
|
-
args: ['content', { static: true }]
|
|
2407
|
-
}] }); })();
|
|
2408
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccordionItemComponent, { className: "AccordionItemComponent", filePath: "components/accordion/accordion.component.ts", lineNumber: 176 }); })();
|
|
2664
|
+
}], () => [], null); })();
|
|
2665
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccordionItemComponent, { className: "AccordionItemComponent", filePath: "components/accordion/accordion.component.ts", lineNumber: 163 }); })();
|
|
2409
2666
|
/**
|
|
2410
2667
|
* Directive for creating an accordion component.
|
|
2411
2668
|
*
|
|
@@ -2426,6 +2683,18 @@ class AccordionDirective extends BaseWidgetDirective {
|
|
|
2426
2683
|
useDirectiveForHost(widget.directives.accordionDirective);
|
|
2427
2684
|
},
|
|
2428
2685
|
}));
|
|
2686
|
+
/**
|
|
2687
|
+
* If `true`, only one accordion-item at the time can stay open.
|
|
2688
|
+
*
|
|
2689
|
+
* @defaultValue `false`
|
|
2690
|
+
*/
|
|
2691
|
+
this.closeOthers = input(undefined, { alias: 'auCloseOthers', transform: auBooleanAttribute });
|
|
2692
|
+
/**
|
|
2693
|
+
* CSS classes to be applied on the widget main container
|
|
2694
|
+
*
|
|
2695
|
+
* @defaultValue `''`
|
|
2696
|
+
*/
|
|
2697
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
2429
2698
|
/**
|
|
2430
2699
|
* An event fired when an item is shown.
|
|
2431
2700
|
*
|
|
@@ -2436,7 +2705,7 @@ class AccordionDirective extends BaseWidgetDirective {
|
|
|
2436
2705
|
* () => {}
|
|
2437
2706
|
* ```
|
|
2438
2707
|
*/
|
|
2439
|
-
this.itemShown =
|
|
2708
|
+
this.itemShown = output({ alias: 'auItemShown' });
|
|
2440
2709
|
/**
|
|
2441
2710
|
* An event fired when an item is hidden.
|
|
2442
2711
|
*
|
|
@@ -2447,10 +2716,77 @@ class AccordionDirective extends BaseWidgetDirective {
|
|
|
2447
2716
|
* () => {}
|
|
2448
2717
|
* ```
|
|
2449
2718
|
*/
|
|
2450
|
-
this.itemHidden =
|
|
2719
|
+
this.itemHidden = output({ alias: 'auItemHidden' });
|
|
2720
|
+
/**
|
|
2721
|
+
* If `true`, the accordion-item body container will be removed from the DOM when the accordion-item is collapsed. It will be just hidden otherwise.
|
|
2722
|
+
*
|
|
2723
|
+
* @defaultValue `true`
|
|
2724
|
+
*/
|
|
2725
|
+
this.itemDestroyOnHide = input(undefined, { alias: 'auItemDestroyOnHide', transform: auBooleanAttribute });
|
|
2726
|
+
/**
|
|
2727
|
+
* If `true`, accordion-item will be animated.
|
|
2728
|
+
*
|
|
2729
|
+
* @defaultValue `true`
|
|
2730
|
+
*/
|
|
2731
|
+
this.itemAnimated = input(undefined, { alias: 'auItemAnimated', transform: auBooleanAttribute });
|
|
2732
|
+
/**
|
|
2733
|
+
* The transition to use for the accordion-item body-container when the accordion-item is toggled.
|
|
2734
|
+
*
|
|
2735
|
+
* @defaultValue
|
|
2736
|
+
* ```ts
|
|
2737
|
+
* collapseVerticalTransition
|
|
2738
|
+
* ```
|
|
2739
|
+
*/
|
|
2740
|
+
this.itemTransition = input(undefined, { alias: 'auItemTransition' });
|
|
2741
|
+
/**
|
|
2742
|
+
* Structure of the accordion-item. The default item structure is: accordion-item
|
|
2743
|
+
* contains accordion header and accordion-item body container; the accordion header contains the accordion button
|
|
2744
|
+
* (that contains `header`), while the accordion-item body container contains the accordion body (that contains `children`).
|
|
2745
|
+
* The itemTransition is applied on this element.
|
|
2746
|
+
*
|
|
2747
|
+
* It is a prop of the accordion-item.
|
|
2748
|
+
*/
|
|
2749
|
+
this.itemStructure = input(undefined, { alias: 'auItemStructure' });
|
|
2750
|
+
/**
|
|
2751
|
+
* CSS classes to add on the accordion-item DOM element.
|
|
2752
|
+
*
|
|
2753
|
+
* @defaultValue `''`
|
|
2754
|
+
*/
|
|
2755
|
+
this.itemClassName = input(undefined, { alias: 'auItemClassName' });
|
|
2756
|
+
/**
|
|
2757
|
+
* CSS classes to add on the accordion-item header DOM element.
|
|
2758
|
+
*
|
|
2759
|
+
* @defaultValue `''`
|
|
2760
|
+
*/
|
|
2761
|
+
this.itemHeaderClassName = input(undefined, { alias: 'auItemHeaderClassName' });
|
|
2762
|
+
/**
|
|
2763
|
+
* CSS classes to add on the accordion-item toggle button DOM element.
|
|
2764
|
+
*
|
|
2765
|
+
* @defaultValue `''`
|
|
2766
|
+
*/
|
|
2767
|
+
this.itemButtonClassName = input(undefined, { alias: 'auItemButtonClassName' });
|
|
2768
|
+
/**
|
|
2769
|
+
* CSS classes to add on the accordion-item body container DOM element.
|
|
2770
|
+
* The accordion-item body container is the DOM element on what the itemTransition is applied.
|
|
2771
|
+
*
|
|
2772
|
+
* @defaultValue `''`
|
|
2773
|
+
*/
|
|
2774
|
+
this.itemBodyContainerClassName = input(undefined, { alias: 'auItemBodyContainerClassName' });
|
|
2775
|
+
/**
|
|
2776
|
+
* CSS classes to add on the accordion-item body DOM element.
|
|
2777
|
+
*
|
|
2778
|
+
* @defaultValue `''`
|
|
2779
|
+
*/
|
|
2780
|
+
this.itemBodyClassName = input(undefined, { alias: 'auItemBodyClassName' });
|
|
2781
|
+
/**
|
|
2782
|
+
* The html tag to use for the accordion-item-header.
|
|
2783
|
+
*
|
|
2784
|
+
* @defaultValue `''`
|
|
2785
|
+
*/
|
|
2786
|
+
this.itemHeadingTag = input(undefined, { alias: 'auItemHeadingTag' });
|
|
2451
2787
|
}
|
|
2452
2788
|
static { this.ɵfac = function AccordionDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AccordionDirective)(); }; }
|
|
2453
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionDirective, selectors: [["", "auAccordion", ""]], hostAttrs: [1, "accordion"], inputs: { closeOthers: [
|
|
2789
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionDirective, selectors: [["", "auAccordion", ""]], hostAttrs: [1, "accordion"], inputs: { closeOthers: [1, "auCloseOthers", "closeOthers"], className: [1, "auClassName", "className"], itemDestroyOnHide: [1, "auItemDestroyOnHide", "itemDestroyOnHide"], itemAnimated: [1, "auItemAnimated", "itemAnimated"], itemTransition: [1, "auItemTransition", "itemTransition"], itemStructure: [1, "auItemStructure", "itemStructure"], itemClassName: [1, "auItemClassName", "itemClassName"], itemHeaderClassName: [1, "auItemHeaderClassName", "itemHeaderClassName"], itemButtonClassName: [1, "auItemButtonClassName", "itemButtonClassName"], itemBodyContainerClassName: [1, "auItemBodyContainerClassName", "itemBodyContainerClassName"], itemBodyClassName: [1, "auItemBodyClassName", "itemBodyClassName"], itemHeadingTag: [1, "auItemHeadingTag", "itemHeadingTag"] }, outputs: { itemShown: "auItemShown", itemHidden: "auItemHidden" }, exportAs: ["auAccordion"], features: [i0.ɵɵInheritDefinitionFeature] }); }
|
|
2454
2790
|
}
|
|
2455
2791
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccordionDirective, [{
|
|
2456
2792
|
type: Directive,
|
|
@@ -2462,49 +2798,7 @@ class AccordionDirective extends BaseWidgetDirective {
|
|
|
2462
2798
|
class: 'accordion',
|
|
2463
2799
|
},
|
|
2464
2800
|
}]
|
|
2465
|
-
}], () => [],
|
|
2466
|
-
type: Input,
|
|
2467
|
-
args: [{ alias: 'auCloseOthers', transform: auBooleanAttribute }]
|
|
2468
|
-
}], className: [{
|
|
2469
|
-
type: Input,
|
|
2470
|
-
args: ['auClassName']
|
|
2471
|
-
}], itemShown: [{
|
|
2472
|
-
type: Output,
|
|
2473
|
-
args: ['auItemShown']
|
|
2474
|
-
}], itemHidden: [{
|
|
2475
|
-
type: Output,
|
|
2476
|
-
args: ['auItemHidden']
|
|
2477
|
-
}], itemDestroyOnHide: [{
|
|
2478
|
-
type: Input,
|
|
2479
|
-
args: [{ alias: 'auItemDestroyOnHide', transform: auBooleanAttribute }]
|
|
2480
|
-
}], itemAnimated: [{
|
|
2481
|
-
type: Input,
|
|
2482
|
-
args: [{ alias: 'auItemAnimated', transform: auBooleanAttribute }]
|
|
2483
|
-
}], itemTransition: [{
|
|
2484
|
-
type: Input,
|
|
2485
|
-
args: ['auItemTransition']
|
|
2486
|
-
}], itemStructure: [{
|
|
2487
|
-
type: Input,
|
|
2488
|
-
args: ['auItemStructure']
|
|
2489
|
-
}], itemClassName: [{
|
|
2490
|
-
type: Input,
|
|
2491
|
-
args: ['auItemClassName']
|
|
2492
|
-
}], itemHeaderClassName: [{
|
|
2493
|
-
type: Input,
|
|
2494
|
-
args: ['auItemHeaderClassName']
|
|
2495
|
-
}], itemButtonClassName: [{
|
|
2496
|
-
type: Input,
|
|
2497
|
-
args: ['auItemButtonClassName']
|
|
2498
|
-
}], itemBodyContainerClassName: [{
|
|
2499
|
-
type: Input,
|
|
2500
|
-
args: ['auItemBodyContainerClassName']
|
|
2501
|
-
}], itemBodyClassName: [{
|
|
2502
|
-
type: Input,
|
|
2503
|
-
args: ['auItemBodyClassName']
|
|
2504
|
-
}], itemHeadingTag: [{
|
|
2505
|
-
type: Input,
|
|
2506
|
-
args: ['auItemHeadingTag']
|
|
2507
|
-
}] }); })();
|
|
2801
|
+
}], () => [], null); })();
|
|
2508
2802
|
|
|
2509
2803
|
/**
|
|
2510
2804
|
* Retrieve a shallow copy of the default Slider config
|
|
@@ -2669,7 +2963,7 @@ class SliderLabelDirective {
|
|
|
2669
2963
|
return true;
|
|
2670
2964
|
}
|
|
2671
2965
|
static { this.ɵfac = function SliderLabelDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SliderLabelDirective)(); }; }
|
|
2672
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SliderLabelDirective, selectors: [["ng-template", "auSliderLabel", ""]]
|
|
2966
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SliderLabelDirective, selectors: [["ng-template", "auSliderLabel", ""]] }); }
|
|
2673
2967
|
}
|
|
2674
2968
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderLabelDirective, [{
|
|
2675
2969
|
type: Directive,
|
|
@@ -2688,27 +2982,28 @@ class SliderHandleDirective {
|
|
|
2688
2982
|
return true;
|
|
2689
2983
|
}
|
|
2690
2984
|
static { this.ɵfac = function SliderHandleDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SliderHandleDirective)(); }; }
|
|
2691
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SliderHandleDirective, selectors: [["ng-template", "auSliderHandle", ""]]
|
|
2985
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SliderHandleDirective, selectors: [["ng-template", "auSliderHandle", ""]] }); }
|
|
2692
2986
|
}
|
|
2693
2987
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderHandleDirective, [{
|
|
2694
2988
|
type: Directive,
|
|
2695
2989
|
args: [{ selector: 'ng-template[auSliderHandle]', standalone: true }]
|
|
2696
2990
|
}], null, null); })();
|
|
2697
2991
|
class SliderDefaultHandleSlotComponent {
|
|
2992
|
+
constructor() {
|
|
2993
|
+
this.handle = viewChild.required('handle');
|
|
2994
|
+
}
|
|
2698
2995
|
static { this.ɵfac = function SliderDefaultHandleSlotComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SliderDefaultHandleSlotComponent)(); }; }
|
|
2699
2996
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SliderDefaultHandleSlotComponent, selectors: [["ng-component"]], viewQuery: function SliderDefaultHandleSlotComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2700
|
-
i0.ɵɵ
|
|
2997
|
+
i0.ɵɵviewQuerySignal(ctx.handle, _c0$3, 5);
|
|
2701
2998
|
} if (rf & 2) {
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
} }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["handle", ""], ["auSliderHandle", ""], [3, "auUse"]], template: function SliderDefaultHandleSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2999
|
+
i0.ɵɵqueryAdvance();
|
|
3000
|
+
} }, decls: 2, vars: 0, consts: [["handle", ""], ["auSliderHandle", ""], [3, "auUse"]], template: function SliderDefaultHandleSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2705
3001
|
i0.ɵɵtemplate(0, SliderDefaultHandleSlotComponent_ng_template_0_Template, 2, 6, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
|
|
2706
3002
|
} }, dependencies: [UseDirective, SliderHandleDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
2707
3003
|
}
|
|
2708
3004
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderDefaultHandleSlotComponent, [{
|
|
2709
3005
|
type: Component,
|
|
2710
3006
|
args: [{
|
|
2711
|
-
standalone: true,
|
|
2712
3007
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2713
3008
|
imports: [UseDirective, SliderHandleDirective],
|
|
2714
3009
|
template: `
|
|
@@ -2717,11 +3012,8 @@ class SliderDefaultHandleSlotComponent {
|
|
|
2717
3012
|
</ng-template>
|
|
2718
3013
|
`,
|
|
2719
3014
|
}]
|
|
2720
|
-
}], null,
|
|
2721
|
-
|
|
2722
|
-
args: ['handle', { static: true }]
|
|
2723
|
-
}] }); })();
|
|
2724
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderDefaultHandleSlotComponent, { className: "SliderDefaultHandleSlotComponent", filePath: "components/slider/slider.component.ts", lineNumber: 65 }); })();
|
|
3015
|
+
}], null, null); })();
|
|
3016
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderDefaultHandleSlotComponent, { className: "SliderDefaultHandleSlotComponent", filePath: "components/slider/slider.component.ts", lineNumber: 63 }); })();
|
|
2725
3017
|
/**
|
|
2726
3018
|
* A constant representing the default slot handle for the slider component.
|
|
2727
3019
|
*/
|
|
@@ -2739,27 +3031,28 @@ class SliderStructureDirective {
|
|
|
2739
3031
|
return true;
|
|
2740
3032
|
}
|
|
2741
3033
|
static { this.ɵfac = function SliderStructureDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SliderStructureDirective)(); }; }
|
|
2742
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SliderStructureDirective, selectors: [["ng-template", "auSliderStructure", ""]]
|
|
3034
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SliderStructureDirective, selectors: [["ng-template", "auSliderStructure", ""]] }); }
|
|
2743
3035
|
}
|
|
2744
3036
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderStructureDirective, [{
|
|
2745
3037
|
type: Directive,
|
|
2746
3038
|
args: [{ selector: 'ng-template[auSliderStructure]', standalone: true }]
|
|
2747
3039
|
}], null, null); })();
|
|
2748
3040
|
class SliderDefaultStructureSlotComponent {
|
|
3041
|
+
constructor() {
|
|
3042
|
+
this.structure = viewChild.required('structure');
|
|
3043
|
+
}
|
|
2749
3044
|
static { this.ɵfac = function SliderDefaultStructureSlotComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SliderDefaultStructureSlotComponent)(); }; }
|
|
2750
3045
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SliderDefaultStructureSlotComponent, selectors: [["ng-component"]], viewQuery: function SliderDefaultStructureSlotComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2751
|
-
i0.ɵɵ
|
|
3046
|
+
i0.ɵɵviewQuerySignal(ctx.structure, _c3$3, 5);
|
|
2752
3047
|
} if (rf & 2) {
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
} }, 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) {
|
|
3048
|
+
i0.ɵɵqueryAdvance();
|
|
3049
|
+
} }, decls: 2, vars: 0, consts: [["structure", ""], ["auSliderStructure", ""], [3, "auUse"], [3, "auSlot", "auSlotProps"]], template: function SliderDefaultStructureSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2756
3050
|
i0.ɵɵtemplate(0, SliderDefaultStructureSlotComponent_ng_template_0_Template, 7, 3, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
|
|
2757
3051
|
} }, dependencies: [SlotDirective, SliderStructureDirective, UseDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
2758
3052
|
}
|
|
2759
3053
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderDefaultStructureSlotComponent, [{
|
|
2760
3054
|
type: Component,
|
|
2761
3055
|
args: [{
|
|
2762
|
-
standalone: true,
|
|
2763
3056
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2764
3057
|
imports: [SlotDirective, SliderStructureDirective, UseDirective],
|
|
2765
3058
|
template: `
|
|
@@ -2798,11 +3091,8 @@ class SliderDefaultStructureSlotComponent {
|
|
|
2798
3091
|
</ng-template>
|
|
2799
3092
|
`,
|
|
2800
3093
|
}]
|
|
2801
|
-
}], null,
|
|
2802
|
-
|
|
2803
|
-
args: ['structure', { static: true }]
|
|
2804
|
-
}] }); })();
|
|
2805
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderDefaultStructureSlotComponent, { className: "SliderDefaultStructureSlotComponent", filePath: "components/slider/slider.component.ts", lineNumber: 127 }); })();
|
|
3094
|
+
}], null, null); })();
|
|
3095
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderDefaultStructureSlotComponent, { className: "SliderDefaultStructureSlotComponent", filePath: "components/slider/slider.component.ts", lineNumber: 124 }); })();
|
|
2806
3096
|
/**
|
|
2807
3097
|
* Represents the default slot structure for the slider component.
|
|
2808
3098
|
*/
|
|
@@ -2832,11 +3122,101 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
2832
3122
|
useDirectiveForHost(widget.directives.sliderDirective);
|
|
2833
3123
|
},
|
|
2834
3124
|
slotTemplates: () => ({
|
|
2835
|
-
structure: this.slotStructureFromContent?.templateRef,
|
|
2836
|
-
handle: this.slotHandleFromContent?.templateRef,
|
|
2837
|
-
label: this.slotLabelFromContent?.templateRef,
|
|
3125
|
+
structure: this.slotStructureFromContent()?.templateRef,
|
|
3126
|
+
handle: this.slotHandleFromContent()?.templateRef,
|
|
3127
|
+
label: this.slotLabelFromContent()?.templateRef,
|
|
2838
3128
|
}),
|
|
2839
3129
|
}));
|
|
3130
|
+
/**
|
|
3131
|
+
* CSS classes to be applied on the widget main container
|
|
3132
|
+
*
|
|
3133
|
+
* @defaultValue `''`
|
|
3134
|
+
*/
|
|
3135
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
3136
|
+
/**
|
|
3137
|
+
* Minimum value that can be assigned to the slider
|
|
3138
|
+
*
|
|
3139
|
+
* @defaultValue `0`
|
|
3140
|
+
*/
|
|
3141
|
+
this.min = input(undefined, { alias: 'auMin', transform: auNumberAttribute });
|
|
3142
|
+
/**
|
|
3143
|
+
* Maximum value that can be assigned to the slider
|
|
3144
|
+
*
|
|
3145
|
+
* @defaultValue `100`
|
|
3146
|
+
*/
|
|
3147
|
+
this.max = input(undefined, { alias: 'auMax', transform: auNumberAttribute });
|
|
3148
|
+
/**
|
|
3149
|
+
* Unit value between slider steps
|
|
3150
|
+
*
|
|
3151
|
+
* @defaultValue `1`
|
|
3152
|
+
*/
|
|
3153
|
+
this.stepSize = input(undefined, { alias: 'auStepSize', transform: auNumberAttribute });
|
|
3154
|
+
/**
|
|
3155
|
+
* Current slider values
|
|
3156
|
+
*
|
|
3157
|
+
* @defaultValue `[0]`
|
|
3158
|
+
*/
|
|
3159
|
+
this.values = input(undefined, { alias: 'auValues' });
|
|
3160
|
+
/**
|
|
3161
|
+
* It `true` slider display is inversed
|
|
3162
|
+
*
|
|
3163
|
+
* @defaultValue `false`
|
|
3164
|
+
*/
|
|
3165
|
+
this.rtl = input(undefined, { alias: 'auRtl', transform: auBooleanAttribute });
|
|
3166
|
+
/**
|
|
3167
|
+
* If `true` the value labels are displayed on the slider
|
|
3168
|
+
*
|
|
3169
|
+
* @defaultValue `true`
|
|
3170
|
+
*/
|
|
3171
|
+
this.showValueLabels = input(undefined, { alias: 'auShowValueLabels', transform: auBooleanAttribute });
|
|
3172
|
+
/**
|
|
3173
|
+
* If `true` the min and max labels are displayed on the slider
|
|
3174
|
+
*
|
|
3175
|
+
* @defaultValue `true`
|
|
3176
|
+
*/
|
|
3177
|
+
this.showMinMaxLabels = input(undefined, { alias: 'auShowMinMaxLabels', transform: auBooleanAttribute });
|
|
3178
|
+
/**
|
|
3179
|
+
* Return the value for the 'aria-label' attribute for the handle
|
|
3180
|
+
* @param value - value of the handle
|
|
3181
|
+
* @param sortedIndex - index of the handle in the sorted list
|
|
3182
|
+
* @param index - index of the handle in the original list
|
|
3183
|
+
*
|
|
3184
|
+
* @defaultValue
|
|
3185
|
+
* ```ts
|
|
3186
|
+
* (value: number) => '' + value
|
|
3187
|
+
* ```
|
|
3188
|
+
*/
|
|
3189
|
+
this.ariaLabelHandle = input(undefined, { alias: 'auAriaLabelHandle' });
|
|
3190
|
+
/**
|
|
3191
|
+
* Return the value for the 'aria-valuetext' attribute for the handle
|
|
3192
|
+
* @param value - value of the handle
|
|
3193
|
+
* @param sortedIndex - index of the handle in the sorted list
|
|
3194
|
+
* @param index - index of the handle in the original list
|
|
3195
|
+
*
|
|
3196
|
+
* @defaultValue
|
|
3197
|
+
* ```ts
|
|
3198
|
+
* (value: number) => '' + value
|
|
3199
|
+
* ```
|
|
3200
|
+
*/
|
|
3201
|
+
this.ariaValueText = input(undefined, { alias: 'auAriaValueText' });
|
|
3202
|
+
/**
|
|
3203
|
+
* If `true` slider value cannot be changed but the slider is still focusable
|
|
3204
|
+
*
|
|
3205
|
+
* @defaultValue `false`
|
|
3206
|
+
*/
|
|
3207
|
+
this.readonly = input(undefined, { alias: 'auReadonly', transform: auBooleanAttribute });
|
|
3208
|
+
/**
|
|
3209
|
+
* If `true` slider value cannot be changed and the slider cannot be focused
|
|
3210
|
+
*
|
|
3211
|
+
* @defaultValue `false`
|
|
3212
|
+
*/
|
|
3213
|
+
this.disabled = input(undefined, { alias: 'auDisabled', transform: auBooleanAttribute });
|
|
3214
|
+
/**
|
|
3215
|
+
* If `true` is vertically positioned otherwise it is horizontal
|
|
3216
|
+
*
|
|
3217
|
+
* @defaultValue `false`
|
|
3218
|
+
*/
|
|
3219
|
+
this.vertical = input(undefined, { alias: 'auVertical', transform: auBooleanAttribute });
|
|
2840
3220
|
/**
|
|
2841
3221
|
* An event emitted when slider values are changed
|
|
2842
3222
|
*
|
|
@@ -2847,7 +3227,27 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
2847
3227
|
* () => {}
|
|
2848
3228
|
* ```
|
|
2849
3229
|
*/
|
|
2850
|
-
this.valuesChange =
|
|
3230
|
+
this.valuesChange = output({ alias: 'auValuesChange' });
|
|
3231
|
+
/**
|
|
3232
|
+
* Slot to change the default labels of the slider
|
|
3233
|
+
*
|
|
3234
|
+
* @defaultValue
|
|
3235
|
+
* ```ts
|
|
3236
|
+
* ({value}: SliderSlotLabelContext) => '' + value
|
|
3237
|
+
* ```
|
|
3238
|
+
*/
|
|
3239
|
+
this.label = input(undefined, { alias: 'auLabel' });
|
|
3240
|
+
this.slotLabelFromContent = contentChild(SliderLabelDirective);
|
|
3241
|
+
/**
|
|
3242
|
+
* Slot to change the default display of the slider
|
|
3243
|
+
*/
|
|
3244
|
+
this.structure = input(undefined, { alias: 'auStructure' });
|
|
3245
|
+
this.slotStructureFromContent = contentChild(SliderStructureDirective);
|
|
3246
|
+
/**
|
|
3247
|
+
* Slot to change the handlers
|
|
3248
|
+
*/
|
|
3249
|
+
this.handle = input(undefined, { alias: 'auHandle' });
|
|
3250
|
+
this.slotHandleFromContent = contentChild(SliderHandleDirective);
|
|
2851
3251
|
/**
|
|
2852
3252
|
* Control value accessor methods
|
|
2853
3253
|
*/
|
|
@@ -2882,17 +3282,14 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
2882
3282
|
}
|
|
2883
3283
|
static { this.ɵfac = function SliderComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SliderComponent)(); }; }
|
|
2884
3284
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SliderComponent, selectors: [["", "auSlider", ""]], contentQueries: function SliderComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
2885
|
-
i0.ɵɵ
|
|
2886
|
-
i0.ɵɵ
|
|
2887
|
-
i0.ɵɵ
|
|
3285
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotLabelFromContent, SliderLabelDirective, 5);
|
|
3286
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotStructureFromContent, SliderStructureDirective, 5);
|
|
3287
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotHandleFromContent, SliderHandleDirective, 5);
|
|
2888
3288
|
} if (rf & 2) {
|
|
2889
|
-
|
|
2890
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotLabelFromContent = _t.first);
|
|
2891
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
|
|
2892
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotHandleFromContent = _t.first);
|
|
3289
|
+
i0.ɵɵqueryAdvance(3);
|
|
2893
3290
|
} }, hostBindings: function SliderComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
2894
3291
|
i0.ɵɵlistener("blur", function SliderComponent_blur_HostBindingHandler() { return ctx.handleBlur(); });
|
|
2895
|
-
} }, inputs: { className: [
|
|
3292
|
+
} }, inputs: { className: [1, "auClassName", "className"], min: [1, "auMin", "min"], max: [1, "auMax", "max"], stepSize: [1, "auStepSize", "stepSize"], values: [1, "auValues", "values"], rtl: [1, "auRtl", "rtl"], showValueLabels: [1, "auShowValueLabels", "showValueLabels"], showMinMaxLabels: [1, "auShowMinMaxLabels", "showMinMaxLabels"], ariaLabelHandle: [1, "auAriaLabelHandle", "ariaLabelHandle"], ariaValueText: [1, "auAriaValueText", "ariaValueText"], readonly: [1, "auReadonly", "readonly"], disabled: [1, "auDisabled", "disabled"], vertical: [1, "auVertical", "vertical"], label: [1, "auLabel", "label"], structure: [1, "auStructure", "structure"], handle: [1, "auHandle", "handle"] }, outputs: { valuesChange: "auValuesChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent), multi: true }]), i0.ɵɵInheritDefinitionFeature], attrs: _c8$1, decls: 1, vars: 6, consts: [[3, "auSlot", "auSlotProps"]], template: function SliderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2896
3293
|
i0.ɵɵtemplate(0, SliderComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
|
|
2897
3294
|
} if (rf & 2) {
|
|
2898
3295
|
i0.ɵɵproperty("auSlot", ctx.state.structure())("auSlotProps", i0.ɵɵpureFunction3(2, _c9, ctx.state, ctx.api, ctx.directives));
|
|
@@ -2902,7 +3299,6 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
2902
3299
|
type: Component,
|
|
2903
3300
|
args: [{
|
|
2904
3301
|
selector: '[auSlider]',
|
|
2905
|
-
standalone: true,
|
|
2906
3302
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2907
3303
|
encapsulation: ViewEncapsulation.None,
|
|
2908
3304
|
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent), multi: true }],
|
|
@@ -2912,68 +3308,8 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
2912
3308
|
},
|
|
2913
3309
|
template: ` <ng-template [auSlot]="state.structure()" [auSlotProps]="{state, api, directives}" /> `,
|
|
2914
3310
|
}]
|
|
2915
|
-
}], () => [],
|
|
2916
|
-
|
|
2917
|
-
args: ['auClassName']
|
|
2918
|
-
}], min: [{
|
|
2919
|
-
type: Input,
|
|
2920
|
-
args: [{ alias: 'auMin', transform: auNumberAttribute }]
|
|
2921
|
-
}], max: [{
|
|
2922
|
-
type: Input,
|
|
2923
|
-
args: [{ alias: 'auMax', transform: auNumberAttribute }]
|
|
2924
|
-
}], stepSize: [{
|
|
2925
|
-
type: Input,
|
|
2926
|
-
args: [{ alias: 'auStepSize', transform: auNumberAttribute }]
|
|
2927
|
-
}], values: [{
|
|
2928
|
-
type: Input,
|
|
2929
|
-
args: ['auValues']
|
|
2930
|
-
}], rtl: [{
|
|
2931
|
-
type: Input,
|
|
2932
|
-
args: [{ alias: 'auRtl', transform: auBooleanAttribute }]
|
|
2933
|
-
}], showValueLabels: [{
|
|
2934
|
-
type: Input,
|
|
2935
|
-
args: [{ alias: 'auShowValueLabels', transform: auBooleanAttribute }]
|
|
2936
|
-
}], showMinMaxLabels: [{
|
|
2937
|
-
type: Input,
|
|
2938
|
-
args: [{ alias: 'auShowMinMaxLabels', transform: auBooleanAttribute }]
|
|
2939
|
-
}], ariaLabelHandle: [{
|
|
2940
|
-
type: Input,
|
|
2941
|
-
args: ['auAriaLabelHandle']
|
|
2942
|
-
}], ariaValueText: [{
|
|
2943
|
-
type: Input,
|
|
2944
|
-
args: ['auAriaValueText']
|
|
2945
|
-
}], readonly: [{
|
|
2946
|
-
type: Input,
|
|
2947
|
-
args: [{ alias: 'auReadonly', transform: auBooleanAttribute }]
|
|
2948
|
-
}], disabled: [{
|
|
2949
|
-
type: Input,
|
|
2950
|
-
args: [{ alias: 'auDisabled', transform: auBooleanAttribute }]
|
|
2951
|
-
}], vertical: [{
|
|
2952
|
-
type: Input,
|
|
2953
|
-
args: [{ alias: 'auVertical', transform: auBooleanAttribute }]
|
|
2954
|
-
}], valuesChange: [{
|
|
2955
|
-
type: Output,
|
|
2956
|
-
args: ['auValuesChange']
|
|
2957
|
-
}], label: [{
|
|
2958
|
-
type: Input,
|
|
2959
|
-
args: ['auLabel']
|
|
2960
|
-
}], slotLabelFromContent: [{
|
|
2961
|
-
type: ContentChild,
|
|
2962
|
-
args: [SliderLabelDirective, { static: false }]
|
|
2963
|
-
}], structure: [{
|
|
2964
|
-
type: Input,
|
|
2965
|
-
args: ['auStructure']
|
|
2966
|
-
}], slotStructureFromContent: [{
|
|
2967
|
-
type: ContentChild,
|
|
2968
|
-
args: [SliderStructureDirective, { static: false }]
|
|
2969
|
-
}], handle: [{
|
|
2970
|
-
type: Input,
|
|
2971
|
-
args: ['auHandle']
|
|
2972
|
-
}], slotHandleFromContent: [{
|
|
2973
|
-
type: ContentChild,
|
|
2974
|
-
args: [SliderHandleDirective, { static: false }]
|
|
2975
|
-
}] }); })();
|
|
2976
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderComponent, { className: "SliderComponent", filePath: "components/slider/slider.component.ts", lineNumber: 153 }); })();
|
|
3311
|
+
}], () => [], null); })();
|
|
3312
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderComponent, { className: "SliderComponent", filePath: "components/slider/slider.component.ts", lineNumber: 149 }); })();
|
|
2977
3313
|
|
|
2978
3314
|
/**
|
|
2979
3315
|
* Retrieve a shallow copy of the default Progressbar config
|
|
@@ -3025,7 +3361,7 @@ class ProgressbarBodyDirective {
|
|
|
3025
3361
|
return true;
|
|
3026
3362
|
}
|
|
3027
3363
|
static { this.ɵfac = function ProgressbarBodyDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ProgressbarBodyDirective)(); }; }
|
|
3028
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ProgressbarBodyDirective, selectors: [["ng-template", "auProgressbarBody", ""]]
|
|
3364
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ProgressbarBodyDirective, selectors: [["ng-template", "auProgressbarBody", ""]] }); }
|
|
3029
3365
|
}
|
|
3030
3366
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProgressbarBodyDirective, [{
|
|
3031
3367
|
type: Directive,
|
|
@@ -3044,27 +3380,28 @@ class ProgressbarStructureDirective {
|
|
|
3044
3380
|
return true;
|
|
3045
3381
|
}
|
|
3046
3382
|
static { this.ɵfac = function ProgressbarStructureDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ProgressbarStructureDirective)(); }; }
|
|
3047
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ProgressbarStructureDirective, selectors: [["ng-template", "auProgressbarStructure", ""]]
|
|
3383
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ProgressbarStructureDirective, selectors: [["ng-template", "auProgressbarStructure", ""]] }); }
|
|
3048
3384
|
}
|
|
3049
3385
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProgressbarStructureDirective, [{
|
|
3050
3386
|
type: Directive,
|
|
3051
3387
|
args: [{ selector: 'ng-template[auProgressbarStructure]', standalone: true }]
|
|
3052
3388
|
}], null, null); })();
|
|
3053
3389
|
class ProgressbarDefaultSlotsComponent {
|
|
3390
|
+
constructor() {
|
|
3391
|
+
this.structure = viewChild.required('structure');
|
|
3392
|
+
}
|
|
3054
3393
|
static { this.ɵfac = function ProgressbarDefaultSlotsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ProgressbarDefaultSlotsComponent)(); }; }
|
|
3055
3394
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ProgressbarDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function ProgressbarDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3056
|
-
i0.ɵɵ
|
|
3395
|
+
i0.ɵɵviewQuerySignal(ctx.structure, _c0$2, 5);
|
|
3057
3396
|
} if (rf & 2) {
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
} }, 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) {
|
|
3397
|
+
i0.ɵɵqueryAdvance();
|
|
3398
|
+
} }, 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) {
|
|
3061
3399
|
i0.ɵɵtemplate(0, ProgressbarDefaultSlotsComponent_ng_template_0_Template, 3, 15, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
|
|
3062
3400
|
} }, dependencies: [NgClass, SlotDirective, ProgressbarStructureDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
3063
3401
|
}
|
|
3064
3402
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProgressbarDefaultSlotsComponent, [{
|
|
3065
3403
|
type: Component,
|
|
3066
3404
|
args: [{
|
|
3067
|
-
standalone: true,
|
|
3068
3405
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3069
3406
|
imports: [NgClass, SlotDirective, ProgressbarStructureDirective],
|
|
3070
3407
|
template: `
|
|
@@ -3083,11 +3420,8 @@ class ProgressbarDefaultSlotsComponent {
|
|
|
3083
3420
|
</ng-template>
|
|
3084
3421
|
`,
|
|
3085
3422
|
}]
|
|
3086
|
-
}], null,
|
|
3087
|
-
|
|
3088
|
-
args: ['structure', { static: true }]
|
|
3089
|
-
}] }); })();
|
|
3090
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProgressbarDefaultSlotsComponent, { className: "ProgressbarDefaultSlotsComponent", filePath: "components/progressbar/progressbar.component.ts", lineNumber: 63 }); })();
|
|
3423
|
+
}], null, null); })();
|
|
3424
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProgressbarDefaultSlotsComponent, { className: "ProgressbarDefaultSlotsComponent", filePath: "components/progressbar/progressbar.component.ts", lineNumber: 62 }); })();
|
|
3091
3425
|
/**
|
|
3092
3426
|
* Represents the default slot structure for the progress bar component.
|
|
3093
3427
|
*/
|
|
@@ -3108,28 +3442,101 @@ class ProgressbarComponent extends BaseWidgetDirective {
|
|
|
3108
3442
|
},
|
|
3109
3443
|
afterInit: (widget) => useDirectiveForHost(widget.directives.ariaDirective),
|
|
3110
3444
|
slotTemplates: () => ({
|
|
3111
|
-
structure: this.slotStructureFromContent?.templateRef,
|
|
3112
|
-
children: this.slotDefaultFromContent?.templateRef,
|
|
3445
|
+
structure: this.slotStructureFromContent()?.templateRef,
|
|
3446
|
+
children: this.slotDefaultFromContent()?.templateRef,
|
|
3113
3447
|
}),
|
|
3114
|
-
slotChildren: () => this.slotChildren,
|
|
3448
|
+
slotChildren: () => this.slotChildren(),
|
|
3115
3449
|
}));
|
|
3450
|
+
/**
|
|
3451
|
+
* The aria label.
|
|
3452
|
+
*
|
|
3453
|
+
* @defaultValue `'Progressbar'`
|
|
3454
|
+
*/
|
|
3455
|
+
this.ariaLabel = input(undefined, { alias: 'auAriaLabel' });
|
|
3456
|
+
/**
|
|
3457
|
+
* The minimum value.
|
|
3458
|
+
*
|
|
3459
|
+
* @defaultValue `0`
|
|
3460
|
+
*/
|
|
3461
|
+
this.min = input(undefined, { alias: 'auMin', transform: auNumberAttribute });
|
|
3462
|
+
/**
|
|
3463
|
+
* The maximum value.
|
|
3464
|
+
*
|
|
3465
|
+
* @defaultValue `100`
|
|
3466
|
+
*/
|
|
3467
|
+
this.max = input(undefined, { alias: 'auMax', transform: auNumberAttribute });
|
|
3468
|
+
/**
|
|
3469
|
+
* The current value.
|
|
3470
|
+
*
|
|
3471
|
+
* @defaultValue `0`
|
|
3472
|
+
*/
|
|
3473
|
+
this.value = input(undefined, { alias: 'auValue', transform: auNumberAttribute });
|
|
3474
|
+
/**
|
|
3475
|
+
* CSS classes to be applied on the widget main container
|
|
3476
|
+
*
|
|
3477
|
+
* @defaultValue `''`
|
|
3478
|
+
*/
|
|
3479
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
3480
|
+
/**
|
|
3481
|
+
* Label of the progress.
|
|
3482
|
+
*/
|
|
3483
|
+
this.children = input(undefined, { alias: 'auChildren' });
|
|
3484
|
+
this.slotDefaultFromContent = contentChild(ProgressbarBodyDirective);
|
|
3485
|
+
/**
|
|
3486
|
+
* Global template for the Progressbar.
|
|
3487
|
+
*/
|
|
3488
|
+
this.structure = input(undefined, { alias: 'auStructure' });
|
|
3489
|
+
this.slotStructureFromContent = contentChild(ProgressbarStructureDirective);
|
|
3490
|
+
/**
|
|
3491
|
+
* Height of the progressbar, can be any valid css height value.
|
|
3492
|
+
*
|
|
3493
|
+
* @defaultValue `''`
|
|
3494
|
+
*/
|
|
3495
|
+
this.height = input(undefined, { alias: 'auHeight' });
|
|
3496
|
+
/**
|
|
3497
|
+
* If `true`, animates a striped progressbar.
|
|
3498
|
+
* Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.
|
|
3499
|
+
*
|
|
3500
|
+
* @defaultValue `false`
|
|
3501
|
+
*/
|
|
3502
|
+
this.animated = input(undefined, { alias: 'auAnimated', transform: auBooleanAttribute });
|
|
3503
|
+
/**
|
|
3504
|
+
* If `true`, shows a striped progressbar.
|
|
3505
|
+
*
|
|
3506
|
+
* @defaultValue `false`
|
|
3507
|
+
*/
|
|
3508
|
+
this.striped = input(undefined, { alias: 'auStriped', transform: auBooleanAttribute });
|
|
3509
|
+
/**
|
|
3510
|
+
* Return the value for the 'aria-valuetext' attribute.
|
|
3511
|
+
* @param value - current value
|
|
3512
|
+
* @param minimum - minimum value
|
|
3513
|
+
* @param maximum - maximum value
|
|
3514
|
+
*
|
|
3515
|
+
* @defaultValue
|
|
3516
|
+
* ```ts
|
|
3517
|
+
* () => undefined
|
|
3518
|
+
* ```
|
|
3519
|
+
*/
|
|
3520
|
+
this.ariaValueTextFn = input(undefined, { alias: 'auAriaValueTextFn' });
|
|
3521
|
+
/**
|
|
3522
|
+
* Type of the progressbar, following bootstrap types.
|
|
3523
|
+
*/
|
|
3524
|
+
this.type = input(undefined, { alias: 'auType' });
|
|
3525
|
+
this.slotChildren = viewChild('content');
|
|
3116
3526
|
}
|
|
3117
3527
|
static { this.ɵfac = function ProgressbarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ProgressbarComponent)(); }; }
|
|
3118
3528
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ProgressbarComponent, selectors: [["", "auProgressbar", ""]], contentQueries: function ProgressbarComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
3119
|
-
i0.ɵɵ
|
|
3120
|
-
i0.ɵɵ
|
|
3529
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotDefaultFromContent, ProgressbarBodyDirective, 5);
|
|
3530
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotStructureFromContent, ProgressbarStructureDirective, 5);
|
|
3121
3531
|
} if (rf & 2) {
|
|
3122
|
-
|
|
3123
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotDefaultFromContent = _t.first);
|
|
3124
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
|
|
3532
|
+
i0.ɵɵqueryAdvance(2);
|
|
3125
3533
|
} }, viewQuery: function ProgressbarComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3126
|
-
i0.ɵɵ
|
|
3534
|
+
i0.ɵɵviewQuerySignal(ctx.slotChildren, _c2$2, 5);
|
|
3127
3535
|
} if (rf & 2) {
|
|
3128
|
-
|
|
3129
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotChildren = _t.first);
|
|
3536
|
+
i0.ɵɵqueryAdvance();
|
|
3130
3537
|
} }, hostVars: 2, hostBindings: function ProgressbarComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
3131
3538
|
i0.ɵɵclassMap(ctx.state.className());
|
|
3132
|
-
} }, inputs: { ariaLabel: [
|
|
3539
|
+
} }, inputs: { ariaLabel: [1, "auAriaLabel", "ariaLabel"], min: [1, "auMin", "min"], max: [1, "auMax", "max"], value: [1, "auValue", "value"], className: [1, "auClassName", "className"], children: [1, "auChildren", "children"], structure: [1, "auStructure", "structure"], height: [1, "auHeight", "height"], animated: [1, "auAnimated", "animated"], striped: [1, "auStriped", "striped"], ariaValueTextFn: [1, "auAriaValueTextFn", "ariaValueTextFn"], type: [1, "auType", "type"] }, features: [i0.ɵɵInheritDefinitionFeature], attrs: _c3$2, ngContentSelectors: _c4$2, decls: 3, vars: 6, consts: [["content", ""], [3, "auSlot", "auSlotProps"]], template: function ProgressbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3133
3540
|
i0.ɵɵprojectionDef();
|
|
3134
3541
|
i0.ɵɵtemplate(0, ProgressbarComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(2, ProgressbarComponent_ng_template_2_Template, 0, 0, "ng-template", 1);
|
|
3135
3542
|
} if (rf & 2) {
|
|
@@ -3141,7 +3548,6 @@ class ProgressbarComponent extends BaseWidgetDirective {
|
|
|
3141
3548
|
type: Component,
|
|
3142
3549
|
args: [{
|
|
3143
3550
|
selector: '[auProgressbar]',
|
|
3144
|
-
standalone: true,
|
|
3145
3551
|
imports: [SlotDirective],
|
|
3146
3552
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3147
3553
|
host: {
|
|
@@ -3152,53 +3558,8 @@ class ProgressbarComponent extends BaseWidgetDirective {
|
|
|
3152
3558
|
<ng-template [auSlot]="state.structure()" [auSlotProps]="{state, api, directives}" />
|
|
3153
3559
|
`,
|
|
3154
3560
|
}]
|
|
3155
|
-
}], () => [],
|
|
3156
|
-
|
|
3157
|
-
args: ['auAriaLabel']
|
|
3158
|
-
}], min: [{
|
|
3159
|
-
type: Input,
|
|
3160
|
-
args: [{ alias: 'auMin', transform: auNumberAttribute }]
|
|
3161
|
-
}], max: [{
|
|
3162
|
-
type: Input,
|
|
3163
|
-
args: [{ alias: 'auMax', transform: auNumberAttribute }]
|
|
3164
|
-
}], value: [{
|
|
3165
|
-
type: Input,
|
|
3166
|
-
args: [{ alias: 'auValue', transform: auNumberAttribute }]
|
|
3167
|
-
}], className: [{
|
|
3168
|
-
type: Input,
|
|
3169
|
-
args: ['auClassName']
|
|
3170
|
-
}], children: [{
|
|
3171
|
-
type: Input,
|
|
3172
|
-
args: ['auChildren']
|
|
3173
|
-
}], slotDefaultFromContent: [{
|
|
3174
|
-
type: ContentChild,
|
|
3175
|
-
args: [ProgressbarBodyDirective, { static: false }]
|
|
3176
|
-
}], structure: [{
|
|
3177
|
-
type: Input,
|
|
3178
|
-
args: ['auStructure']
|
|
3179
|
-
}], slotStructureFromContent: [{
|
|
3180
|
-
type: ContentChild,
|
|
3181
|
-
args: [ProgressbarStructureDirective, { static: false }]
|
|
3182
|
-
}], height: [{
|
|
3183
|
-
type: Input,
|
|
3184
|
-
args: ['auHeight']
|
|
3185
|
-
}], animated: [{
|
|
3186
|
-
type: Input,
|
|
3187
|
-
args: [{ alias: 'auAnimated', transform: auBooleanAttribute }]
|
|
3188
|
-
}], striped: [{
|
|
3189
|
-
type: Input,
|
|
3190
|
-
args: [{ alias: 'auStriped', transform: auBooleanAttribute }]
|
|
3191
|
-
}], ariaValueTextFn: [{
|
|
3192
|
-
type: Input,
|
|
3193
|
-
args: ['auAriaValueTextFn']
|
|
3194
|
-
}], type: [{
|
|
3195
|
-
type: Input,
|
|
3196
|
-
args: ['auType']
|
|
3197
|
-
}], slotChildren: [{
|
|
3198
|
-
type: ViewChild,
|
|
3199
|
-
args: ['content', { static: true }]
|
|
3200
|
-
}] }); })();
|
|
3201
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProgressbarComponent, { className: "ProgressbarComponent", filePath: "components/progressbar/progressbar.component.ts", lineNumber: 91 }); })();
|
|
3561
|
+
}], () => [], null); })();
|
|
3562
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProgressbarComponent, { className: "ProgressbarComponent", filePath: "components/progressbar/progressbar.component.ts", lineNumber: 89 }); })();
|
|
3202
3563
|
|
|
3203
3564
|
/**
|
|
3204
3565
|
* Retrieve a shallow copy of the default Toast config
|
|
@@ -3289,7 +3650,7 @@ class ToastBodyDirective {
|
|
|
3289
3650
|
return true;
|
|
3290
3651
|
}
|
|
3291
3652
|
static { this.ɵfac = function ToastBodyDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToastBodyDirective)(); }; }
|
|
3292
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ToastBodyDirective, selectors: [["ng-template", "auToastBody", ""]]
|
|
3653
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ToastBodyDirective, selectors: [["ng-template", "auToastBody", ""]] }); }
|
|
3293
3654
|
}
|
|
3294
3655
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToastBodyDirective, [{
|
|
3295
3656
|
type: Directive,
|
|
@@ -3307,7 +3668,7 @@ class ToastStructureDirective {
|
|
|
3307
3668
|
return true;
|
|
3308
3669
|
}
|
|
3309
3670
|
static { this.ɵfac = function ToastStructureDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToastStructureDirective)(); }; }
|
|
3310
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ToastStructureDirective, selectors: [["ng-template", "auToastStructure", ""]]
|
|
3671
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ToastStructureDirective, selectors: [["ng-template", "auToastStructure", ""]] }); }
|
|
3311
3672
|
}
|
|
3312
3673
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToastStructureDirective, [{
|
|
3313
3674
|
type: Directive,
|
|
@@ -3325,27 +3686,28 @@ class ToastHeaderDirective {
|
|
|
3325
3686
|
return true;
|
|
3326
3687
|
}
|
|
3327
3688
|
static { this.ɵfac = function ToastHeaderDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToastHeaderDirective)(); }; }
|
|
3328
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ToastHeaderDirective, selectors: [["ng-template", "auToastHeader", ""]]
|
|
3689
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ToastHeaderDirective, selectors: [["ng-template", "auToastHeader", ""]] }); }
|
|
3329
3690
|
}
|
|
3330
3691
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToastHeaderDirective, [{
|
|
3331
3692
|
type: Directive,
|
|
3332
3693
|
args: [{ selector: 'ng-template[auToastHeader]', standalone: true }]
|
|
3333
3694
|
}], null, null); })();
|
|
3334
3695
|
class ToastDefaultSlotsComponent {
|
|
3696
|
+
constructor() {
|
|
3697
|
+
this.structure = viewChild.required('structure');
|
|
3698
|
+
}
|
|
3335
3699
|
static { this.ɵfac = function ToastDefaultSlotsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToastDefaultSlotsComponent)(); }; }
|
|
3336
3700
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ToastDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function ToastDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3337
|
-
i0.ɵɵ
|
|
3701
|
+
i0.ɵɵviewQuerySignal(ctx.structure, _c0$1, 5);
|
|
3338
3702
|
} if (rf & 2) {
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
} }, 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) {
|
|
3703
|
+
i0.ɵɵqueryAdvance();
|
|
3704
|
+
} }, 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) {
|
|
3342
3705
|
i0.ɵɵtemplate(0, ToastDefaultSlotsComponent_ng_template_0_Template, 4, 8, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
|
|
3343
3706
|
} }, dependencies: [SlotDirective, ToastStructureDirective, UseDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
3344
3707
|
}
|
|
3345
3708
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToastDefaultSlotsComponent, [{
|
|
3346
3709
|
type: Component,
|
|
3347
3710
|
args: [{
|
|
3348
|
-
standalone: true,
|
|
3349
3711
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3350
3712
|
imports: [SlotDirective, ToastStructureDirective, UseDirective],
|
|
3351
3713
|
template: ` <ng-template auToastStructure #structure let-state="state" let-api="api" let-directives="directives">
|
|
@@ -3365,11 +3727,8 @@ class ToastDefaultSlotsComponent {
|
|
|
3365
3727
|
}
|
|
3366
3728
|
</ng-template>`,
|
|
3367
3729
|
}]
|
|
3368
|
-
}], null,
|
|
3369
|
-
|
|
3370
|
-
args: ['structure', { static: true }]
|
|
3371
|
-
}] }); })();
|
|
3372
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastDefaultSlotsComponent, { className: "ToastDefaultSlotsComponent", filePath: "components/toast/toast.component.ts", lineNumber: 84 }); })();
|
|
3730
|
+
}], null, null); })();
|
|
3731
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastDefaultSlotsComponent, { className: "ToastDefaultSlotsComponent", filePath: "components/toast/toast.component.ts", lineNumber: 72 }); })();
|
|
3373
3732
|
/**
|
|
3374
3733
|
* Represents the default slot structure for the toast component.
|
|
3375
3734
|
*/
|
|
@@ -3393,12 +3752,84 @@ class ToastComponent extends BaseWidgetDirective {
|
|
|
3393
3752
|
onHidden: () => this.hidden.emit(),
|
|
3394
3753
|
},
|
|
3395
3754
|
slotTemplates: () => ({
|
|
3396
|
-
children: this.slotDefaultFromContent?.templateRef,
|
|
3397
|
-
structure: this.slotStructureFromContent?.templateRef,
|
|
3398
|
-
header: this.slotHeaderFromContent?.templateRef,
|
|
3755
|
+
children: this.slotDefaultFromContent()?.templateRef,
|
|
3756
|
+
structure: this.slotStructureFromContent()?.templateRef,
|
|
3757
|
+
header: this.slotHeaderFromContent()?.templateRef,
|
|
3399
3758
|
}),
|
|
3400
|
-
slotChildren: () => this.slotChildren,
|
|
3759
|
+
slotChildren: () => this.slotChildren(),
|
|
3401
3760
|
}));
|
|
3761
|
+
/**
|
|
3762
|
+
* If `true`, alert can be dismissed by the user.
|
|
3763
|
+
* The close button (×) will be displayed and you can be notified of the event with the (close) output.
|
|
3764
|
+
*
|
|
3765
|
+
* @defaultValue `true`
|
|
3766
|
+
*/
|
|
3767
|
+
this.dismissible = input(undefined, { alias: 'auDismissible', transform: auBooleanAttribute });
|
|
3768
|
+
/**
|
|
3769
|
+
* The transition function will be executed when the alert is displayed or hidden.
|
|
3770
|
+
*
|
|
3771
|
+
* Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
|
|
3772
|
+
*
|
|
3773
|
+
* @defaultValue `fadeTransition`
|
|
3774
|
+
*/
|
|
3775
|
+
this.transition = input(undefined, { alias: 'auTransition' });
|
|
3776
|
+
/**
|
|
3777
|
+
* If `true` the alert is visible to the user
|
|
3778
|
+
*
|
|
3779
|
+
* @defaultValue `true`
|
|
3780
|
+
*/
|
|
3781
|
+
this.visible = input(undefined, { alias: 'auVisible', transform: auBooleanAttribute });
|
|
3782
|
+
/**
|
|
3783
|
+
* If `true`, alert opening will be animated.
|
|
3784
|
+
*
|
|
3785
|
+
* Animation is triggered when the `.open()` function is called
|
|
3786
|
+
* or the visible prop is changed
|
|
3787
|
+
*
|
|
3788
|
+
* @defaultValue `false`
|
|
3789
|
+
*/
|
|
3790
|
+
this.animatedOnInit = input(undefined, { alias: 'auAnimatedOnInit', transform: auBooleanAttribute });
|
|
3791
|
+
/**
|
|
3792
|
+
* If `true`, alert closing will be animated.
|
|
3793
|
+
*
|
|
3794
|
+
* Animation is triggered when clicked on the close button (×),
|
|
3795
|
+
* via the `.close()` function or the visible prop is changed
|
|
3796
|
+
*
|
|
3797
|
+
* @defaultValue `true`
|
|
3798
|
+
*/
|
|
3799
|
+
this.animated = input(undefined, { alias: 'auAnimated', transform: auBooleanAttribute });
|
|
3800
|
+
/**
|
|
3801
|
+
* If `true` automatically hides the toast after the delay.
|
|
3802
|
+
*
|
|
3803
|
+
* @defaultValue `true`
|
|
3804
|
+
*/
|
|
3805
|
+
this.autoHide = input(undefined, { alias: 'auAutoHide', transform: auBooleanAttribute });
|
|
3806
|
+
/**
|
|
3807
|
+
* Delay in milliseconds before hiding the toast.
|
|
3808
|
+
*
|
|
3809
|
+
* @defaultValue `5000`
|
|
3810
|
+
*/
|
|
3811
|
+
this.delay = input(undefined, { alias: 'auDelay', transform: auNumberAttribute });
|
|
3812
|
+
/**
|
|
3813
|
+
* Accessibility close button label
|
|
3814
|
+
*
|
|
3815
|
+
* @defaultValue `'Close'`
|
|
3816
|
+
*/
|
|
3817
|
+
this.ariaCloseButtonLabel = input(undefined, { alias: 'auAriaCloseButtonLabel' });
|
|
3818
|
+
/**
|
|
3819
|
+
* Template for the toast content
|
|
3820
|
+
*/
|
|
3821
|
+
this.children = input(undefined, { alias: 'auChildren' });
|
|
3822
|
+
this.slotDefaultFromContent = contentChild(ToastBodyDirective);
|
|
3823
|
+
/**
|
|
3824
|
+
* Global template for the toast component
|
|
3825
|
+
*/
|
|
3826
|
+
this.structure = input(undefined, { alias: 'auStructure' });
|
|
3827
|
+
this.slotStructureFromContent = contentChild(ToastStructureDirective);
|
|
3828
|
+
/**
|
|
3829
|
+
* Header template for the toast component
|
|
3830
|
+
*/
|
|
3831
|
+
this.header = input(undefined, { alias: 'auHeader' });
|
|
3832
|
+
this.slotHeaderFromContent = contentChild(ToastHeaderDirective);
|
|
3402
3833
|
/**
|
|
3403
3834
|
* Callback called when the alert visibility changed.
|
|
3404
3835
|
*
|
|
@@ -3407,7 +3838,7 @@ class ToastComponent extends BaseWidgetDirective {
|
|
|
3407
3838
|
* () => {}
|
|
3408
3839
|
* ```
|
|
3409
3840
|
*/
|
|
3410
|
-
this.visibleChange =
|
|
3841
|
+
this.visibleChange = output({ alias: 'auVisibleChange' });
|
|
3411
3842
|
/**
|
|
3412
3843
|
* Callback called when the alert is hidden.
|
|
3413
3844
|
*
|
|
@@ -3416,7 +3847,7 @@ class ToastComponent extends BaseWidgetDirective {
|
|
|
3416
3847
|
* () => {}
|
|
3417
3848
|
* ```
|
|
3418
3849
|
*/
|
|
3419
|
-
this.hidden =
|
|
3850
|
+
this.hidden = output({ alias: 'auHidden' });
|
|
3420
3851
|
/**
|
|
3421
3852
|
* Callback called when the alert is shown.
|
|
3422
3853
|
*
|
|
@@ -3425,24 +3856,27 @@ class ToastComponent extends BaseWidgetDirective {
|
|
|
3425
3856
|
* () => {}
|
|
3426
3857
|
* ```
|
|
3427
3858
|
*/
|
|
3428
|
-
this.shown =
|
|
3859
|
+
this.shown = output({ alias: 'auShown' });
|
|
3860
|
+
/**
|
|
3861
|
+
* CSS classes to be applied on the widget main container
|
|
3862
|
+
*
|
|
3863
|
+
* @defaultValue `''`
|
|
3864
|
+
*/
|
|
3865
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
3866
|
+
this.slotChildren = viewChild('content');
|
|
3429
3867
|
}
|
|
3430
3868
|
static { this.ɵfac = function ToastComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToastComponent)(); }; }
|
|
3431
3869
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ToastComponent, selectors: [["", "auToast", ""]], contentQueries: function ToastComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
3432
|
-
i0.ɵɵ
|
|
3433
|
-
i0.ɵɵ
|
|
3434
|
-
i0.ɵɵ
|
|
3870
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotDefaultFromContent, ToastBodyDirective, 5);
|
|
3871
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotStructureFromContent, ToastStructureDirective, 5);
|
|
3872
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.slotHeaderFromContent, ToastHeaderDirective, 5);
|
|
3435
3873
|
} if (rf & 2) {
|
|
3436
|
-
|
|
3437
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotDefaultFromContent = _t.first);
|
|
3438
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
|
|
3439
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotHeaderFromContent = _t.first);
|
|
3874
|
+
i0.ɵɵqueryAdvance(3);
|
|
3440
3875
|
} }, viewQuery: function ToastComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3441
|
-
i0.ɵɵ
|
|
3876
|
+
i0.ɵɵviewQuerySignal(ctx.slotChildren, _c2$1, 5);
|
|
3442
3877
|
} if (rf & 2) {
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
} }, inputs: { dismissible: [2, "auDismissible", "dismissible", auBooleanAttribute], transition: [0, "auTransition", "transition"], visible: [2, "auVisible", "visible", auBooleanAttribute], animatedOnInit: [2, "auAnimatedOnInit", "animatedOnInit", auBooleanAttribute], animated: [2, "auAnimated", "animated", auBooleanAttribute], autoHide: [2, "auAutoHide", "autoHide", auBooleanAttribute], delay: [2, "auDelay", "delay", auNumberAttribute], ariaCloseButtonLabel: [0, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], children: [0, "auChildren", "children"], structure: [0, "auStructure", "structure"], header: [0, "auHeader", "header"], className: [0, "auClassName", "className"] }, outputs: { visibleChange: "auVisibleChange", hidden: "auHidden", shown: "auShown" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c3$1, ngContentSelectors: _c4$1, decls: 3, vars: 1, consts: [["content", ""], [1, "toast", 3, "d-flex", "toast-dismissible", "auUseMulti"], [1, "toast", 3, "auUseMulti"], [3, "auSlot", "auSlotProps"]], template: function ToastComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3878
|
+
i0.ɵɵqueryAdvance();
|
|
3879
|
+
} }, inputs: { dismissible: [1, "auDismissible", "dismissible"], transition: [1, "auTransition", "transition"], visible: [1, "auVisible", "visible"], animatedOnInit: [1, "auAnimatedOnInit", "animatedOnInit"], animated: [1, "auAnimated", "animated"], autoHide: [1, "auAutoHide", "autoHide"], delay: [1, "auDelay", "delay"], ariaCloseButtonLabel: [1, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], children: [1, "auChildren", "children"], structure: [1, "auStructure", "structure"], header: [1, "auHeader", "header"], className: [1, "auClassName", "className"] }, outputs: { visibleChange: "auVisibleChange", hidden: "auHidden", shown: "auShown" }, features: [i0.ɵɵInheritDefinitionFeature], attrs: _c3$1, ngContentSelectors: _c4$1, decls: 3, vars: 1, consts: [["content", ""], [1, "toast", 3, "d-flex", "toast-dismissible", "auUseMulti"], [1, "toast", 3, "auUseMulti"], [3, "auSlot", "auSlotProps"]], template: function ToastComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3446
3880
|
i0.ɵɵprojectionDef();
|
|
3447
3881
|
i0.ɵɵtemplate(0, ToastComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(2, ToastComponent_Conditional_2_Template, 2, 15, "div", 1);
|
|
3448
3882
|
} if (rf & 2) {
|
|
@@ -3454,7 +3888,6 @@ class ToastComponent extends BaseWidgetDirective {
|
|
|
3454
3888
|
type: Component,
|
|
3455
3889
|
args: [{
|
|
3456
3890
|
selector: '[auToast]',
|
|
3457
|
-
standalone: true,
|
|
3458
3891
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3459
3892
|
imports: [SlotDirective, UseMultiDirective],
|
|
3460
3893
|
template: ` <ng-template #content>
|
|
@@ -3471,65 +3904,8 @@ class ToastComponent extends BaseWidgetDirective {
|
|
|
3471
3904
|
</div>
|
|
3472
3905
|
}`,
|
|
3473
3906
|
}]
|
|
3474
|
-
}], () => [],
|
|
3475
|
-
|
|
3476
|
-
args: [{ alias: 'auDismissible', transform: auBooleanAttribute }]
|
|
3477
|
-
}], transition: [{
|
|
3478
|
-
type: Input,
|
|
3479
|
-
args: ['auTransition']
|
|
3480
|
-
}], visible: [{
|
|
3481
|
-
type: Input,
|
|
3482
|
-
args: [{ alias: 'auVisible', transform: auBooleanAttribute }]
|
|
3483
|
-
}], animatedOnInit: [{
|
|
3484
|
-
type: Input,
|
|
3485
|
-
args: [{ alias: 'auAnimatedOnInit', transform: auBooleanAttribute }]
|
|
3486
|
-
}], animated: [{
|
|
3487
|
-
type: Input,
|
|
3488
|
-
args: [{ alias: 'auAnimated', transform: auBooleanAttribute }]
|
|
3489
|
-
}], autoHide: [{
|
|
3490
|
-
type: Input,
|
|
3491
|
-
args: [{ alias: 'auAutoHide', transform: auBooleanAttribute }]
|
|
3492
|
-
}], delay: [{
|
|
3493
|
-
type: Input,
|
|
3494
|
-
args: [{ alias: 'auDelay', transform: auNumberAttribute }]
|
|
3495
|
-
}], ariaCloseButtonLabel: [{
|
|
3496
|
-
type: Input,
|
|
3497
|
-
args: ['auAriaCloseButtonLabel']
|
|
3498
|
-
}], children: [{
|
|
3499
|
-
type: Input,
|
|
3500
|
-
args: ['auChildren']
|
|
3501
|
-
}], slotDefaultFromContent: [{
|
|
3502
|
-
type: ContentChild,
|
|
3503
|
-
args: [ToastBodyDirective, { static: false }]
|
|
3504
|
-
}], structure: [{
|
|
3505
|
-
type: Input,
|
|
3506
|
-
args: ['auStructure']
|
|
3507
|
-
}], slotStructureFromContent: [{
|
|
3508
|
-
type: ContentChild,
|
|
3509
|
-
args: [ToastStructureDirective, { static: false }]
|
|
3510
|
-
}], header: [{
|
|
3511
|
-
type: Input,
|
|
3512
|
-
args: ['auHeader']
|
|
3513
|
-
}], slotHeaderFromContent: [{
|
|
3514
|
-
type: ContentChild,
|
|
3515
|
-
args: [ToastHeaderDirective, { static: false }]
|
|
3516
|
-
}], visibleChange: [{
|
|
3517
|
-
type: Output,
|
|
3518
|
-
args: ['auVisibleChange']
|
|
3519
|
-
}], hidden: [{
|
|
3520
|
-
type: Output,
|
|
3521
|
-
args: ['auHidden']
|
|
3522
|
-
}], shown: [{
|
|
3523
|
-
type: Output,
|
|
3524
|
-
args: ['auShown']
|
|
3525
|
-
}], className: [{
|
|
3526
|
-
type: Input,
|
|
3527
|
-
args: ['auClassName']
|
|
3528
|
-
}], slotChildren: [{
|
|
3529
|
-
type: ViewChild,
|
|
3530
|
-
args: ['content', { static: true }]
|
|
3531
|
-
}] }); })();
|
|
3532
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastComponent, { className: "ToastComponent", filePath: "components/toast/toast.component.ts", lineNumber: 117 }); })();
|
|
3907
|
+
}], () => [], null); })();
|
|
3908
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastComponent, { className: "ToastComponent", filePath: "components/toast/toast.component.ts", lineNumber: 104 }); })();
|
|
3533
3909
|
|
|
3534
3910
|
/**
|
|
3535
3911
|
* Directive to control the collapse behavior of an element.
|
|
@@ -3548,6 +3924,42 @@ class CollapseDirective extends BaseWidgetDirective {
|
|
|
3548
3924
|
useDirectiveForHost(widget.directives.collapseDirective);
|
|
3549
3925
|
},
|
|
3550
3926
|
}));
|
|
3927
|
+
/**
|
|
3928
|
+
* If `true`, collapse opening will be animated at init time.
|
|
3929
|
+
*
|
|
3930
|
+
* @defaultValue `false`
|
|
3931
|
+
*/
|
|
3932
|
+
this.animatedOnInit = input(undefined, { alias: 'auAnimatedOnInit', transform: auBooleanAttribute });
|
|
3933
|
+
/**
|
|
3934
|
+
* If `true`, collapse closing and opening will be animated.
|
|
3935
|
+
*
|
|
3936
|
+
* @defaultValue `true`
|
|
3937
|
+
*/
|
|
3938
|
+
this.animated = input(undefined, { alias: 'auAnimated', transform: auBooleanAttribute });
|
|
3939
|
+
/**
|
|
3940
|
+
* CSS classes to be applied on the widget main container
|
|
3941
|
+
*
|
|
3942
|
+
* @defaultValue `''`
|
|
3943
|
+
*/
|
|
3944
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
3945
|
+
/**
|
|
3946
|
+
* If `true`, collapse will be done horizontally.
|
|
3947
|
+
*
|
|
3948
|
+
* @defaultValue `false`
|
|
3949
|
+
*/
|
|
3950
|
+
this.horizontal = input(undefined, { alias: 'auHorizontal', transform: auBooleanAttribute });
|
|
3951
|
+
/**
|
|
3952
|
+
* If `true` the collapse is visible to the user
|
|
3953
|
+
*
|
|
3954
|
+
* @defaultValue `true`
|
|
3955
|
+
*/
|
|
3956
|
+
this.visible = input(undefined, { alias: 'auVisible', transform: auBooleanAttribute });
|
|
3957
|
+
/**
|
|
3958
|
+
* id of the collapse
|
|
3959
|
+
*
|
|
3960
|
+
* @defaultValue `''`
|
|
3961
|
+
*/
|
|
3962
|
+
this.id = input(undefined, { alias: 'auId' });
|
|
3551
3963
|
/**
|
|
3552
3964
|
* Callback called when the collapse visibility changed.
|
|
3553
3965
|
*
|
|
@@ -3555,8 +3967,9 @@ class CollapseDirective extends BaseWidgetDirective {
|
|
|
3555
3967
|
* ```ts
|
|
3556
3968
|
* () => {}
|
|
3557
3969
|
* ```
|
|
3970
|
+
* @param visible - The new visibility state of the collapse.
|
|
3558
3971
|
*/
|
|
3559
|
-
this.visibleChange =
|
|
3972
|
+
this.visibleChange = output({ alias: 'auVisibleChange' });
|
|
3560
3973
|
/**
|
|
3561
3974
|
* Callback called when the collapse is hidden.
|
|
3562
3975
|
*
|
|
@@ -3565,7 +3978,7 @@ class CollapseDirective extends BaseWidgetDirective {
|
|
|
3565
3978
|
* () => {}
|
|
3566
3979
|
* ```
|
|
3567
3980
|
*/
|
|
3568
|
-
this.hidden =
|
|
3981
|
+
this.hidden = output({ alias: 'auHidden' });
|
|
3569
3982
|
/**
|
|
3570
3983
|
* Callback called when the collapse is shown.
|
|
3571
3984
|
*
|
|
@@ -3574,10 +3987,10 @@ class CollapseDirective extends BaseWidgetDirective {
|
|
|
3574
3987
|
* () => {}
|
|
3575
3988
|
* ```
|
|
3576
3989
|
*/
|
|
3577
|
-
this.shown =
|
|
3990
|
+
this.shown = output({ alias: 'auShown' });
|
|
3578
3991
|
}
|
|
3579
3992
|
static { this.ɵfac = function CollapseDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CollapseDirective)(); }; }
|
|
3580
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CollapseDirective, selectors: [["", "auCollapse", ""]], inputs: { animatedOnInit: [
|
|
3993
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CollapseDirective, selectors: [["", "auCollapse", ""]], inputs: { animatedOnInit: [1, "auAnimatedOnInit", "animatedOnInit"], animated: [1, "auAnimated", "animated"], className: [1, "auClassName", "className"], horizontal: [1, "auHorizontal", "horizontal"], visible: [1, "auVisible", "visible"], id: [1, "auId", "id"] }, outputs: { visibleChange: "auVisibleChange", hidden: "auHidden", shown: "auShown" }, exportAs: ["auCollapse"], features: [i0.ɵɵInheritDefinitionFeature] }); }
|
|
3581
3994
|
}
|
|
3582
3995
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CollapseDirective, [{
|
|
3583
3996
|
type: Directive,
|
|
@@ -3586,34 +3999,7 @@ class CollapseDirective extends BaseWidgetDirective {
|
|
|
3586
3999
|
standalone: true,
|
|
3587
4000
|
exportAs: 'auCollapse',
|
|
3588
4001
|
}]
|
|
3589
|
-
}], () => [],
|
|
3590
|
-
type: Input,
|
|
3591
|
-
args: [{ alias: 'auAnimatedOnInit', transform: auBooleanAttribute }]
|
|
3592
|
-
}], animated: [{
|
|
3593
|
-
type: Input,
|
|
3594
|
-
args: [{ alias: 'auAnimated', transform: auBooleanAttribute }]
|
|
3595
|
-
}], className: [{
|
|
3596
|
-
type: Input,
|
|
3597
|
-
args: ['auClassName']
|
|
3598
|
-
}], horizontal: [{
|
|
3599
|
-
type: Input,
|
|
3600
|
-
args: [{ alias: 'auHorizontal', transform: auBooleanAttribute }]
|
|
3601
|
-
}], visible: [{
|
|
3602
|
-
type: Input,
|
|
3603
|
-
args: [{ alias: 'auVisible', transform: auBooleanAttribute }]
|
|
3604
|
-
}], id: [{
|
|
3605
|
-
type: Input,
|
|
3606
|
-
args: ['auId']
|
|
3607
|
-
}], visibleChange: [{
|
|
3608
|
-
type: Output,
|
|
3609
|
-
args: ['auVisibleChange']
|
|
3610
|
-
}], hidden: [{
|
|
3611
|
-
type: Output,
|
|
3612
|
-
args: ['auHidden']
|
|
3613
|
-
}], shown: [{
|
|
3614
|
-
type: Output,
|
|
3615
|
-
args: ['auShown']
|
|
3616
|
-
}] }); })();
|
|
4002
|
+
}], () => [], null); })();
|
|
3617
4003
|
|
|
3618
4004
|
/**
|
|
3619
4005
|
* Retrieve a shallow copy of the default collapse config
|
|
@@ -3756,23 +4142,25 @@ class TreeStructureDirective {
|
|
|
3756
4142
|
return true;
|
|
3757
4143
|
}
|
|
3758
4144
|
static { this.ɵfac = function TreeStructureDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TreeStructureDirective)(); }; }
|
|
3759
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TreeStructureDirective, selectors: [["ng-template", "auTreeStructure", ""]]
|
|
4145
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TreeStructureDirective, selectors: [["ng-template", "auTreeStructure", ""]] }); }
|
|
3760
4146
|
}
|
|
3761
4147
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeStructureDirective, [{
|
|
3762
4148
|
type: Directive,
|
|
3763
4149
|
args: [{ selector: 'ng-template[auTreeStructure]', standalone: true }]
|
|
3764
4150
|
}], null, null); })();
|
|
3765
4151
|
class TreeDefaultStructureSlotComponent {
|
|
4152
|
+
constructor() {
|
|
4153
|
+
this.structure = viewChild.required('structure');
|
|
4154
|
+
}
|
|
3766
4155
|
trackNode(index, node) {
|
|
3767
4156
|
return node.label + node.level + index;
|
|
3768
4157
|
}
|
|
3769
4158
|
static { this.ɵfac = function TreeDefaultStructureSlotComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TreeDefaultStructureSlotComponent)(); }; }
|
|
3770
4159
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeDefaultStructureSlotComponent, selectors: [["ng-component"]], viewQuery: function TreeDefaultStructureSlotComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3771
|
-
i0.ɵɵ
|
|
4160
|
+
i0.ɵɵviewQuerySignal(ctx.structure, _c0, 5);
|
|
3772
4161
|
} if (rf & 2) {
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
} }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["structure", ""], ["auTreeStructure", ""], ["role", "tree", 3, "auUse"], [3, "auSlot", "auSlotProps"]], template: function TreeDefaultStructureSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4162
|
+
i0.ɵɵqueryAdvance();
|
|
4163
|
+
} }, decls: 2, vars: 0, consts: [["structure", ""], ["auTreeStructure", ""], ["role", "tree", 3, "auUse"], [3, "auSlot", "auSlotProps"]], template: function TreeDefaultStructureSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3776
4164
|
i0.ɵɵtemplate(0, TreeDefaultStructureSlotComponent_ng_template_0_Template, 3, 4, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
|
|
3777
4165
|
} }, dependencies: [UseDirective, TreeStructureDirective, SlotDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
3778
4166
|
}
|
|
@@ -3792,11 +4180,8 @@ class TreeDefaultStructureSlotComponent {
|
|
|
3792
4180
|
</ng-template>
|
|
3793
4181
|
`,
|
|
3794
4182
|
}]
|
|
3795
|
-
}], null,
|
|
3796
|
-
|
|
3797
|
-
args: ['structure', { static: true }]
|
|
3798
|
-
}] }); })();
|
|
3799
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultStructureSlotComponent, { className: "TreeDefaultStructureSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 45 }); })();
|
|
4183
|
+
}], null, null); })();
|
|
4184
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultStructureSlotComponent, { className: "TreeDefaultStructureSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 34 }); })();
|
|
3800
4185
|
/**
|
|
3801
4186
|
* A constant representing the default slot for tree structure.
|
|
3802
4187
|
*/
|
|
@@ -3814,20 +4199,22 @@ class TreeItemToggleDirective {
|
|
|
3814
4199
|
return true;
|
|
3815
4200
|
}
|
|
3816
4201
|
static { this.ɵfac = function TreeItemToggleDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TreeItemToggleDirective)(); }; }
|
|
3817
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TreeItemToggleDirective, selectors: [["ng-template", "auTreeItemToggle", ""]]
|
|
4202
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TreeItemToggleDirective, selectors: [["ng-template", "auTreeItemToggle", ""]] }); }
|
|
3818
4203
|
}
|
|
3819
4204
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeItemToggleDirective, [{
|
|
3820
4205
|
type: Directive,
|
|
3821
4206
|
args: [{ selector: 'ng-template[auTreeItemToggle]', standalone: true }]
|
|
3822
4207
|
}], null, null); })();
|
|
3823
4208
|
class TreeDefaultItemToggleSlotComponent {
|
|
4209
|
+
constructor() {
|
|
4210
|
+
this.toggle = viewChild.required('toggle');
|
|
4211
|
+
}
|
|
3824
4212
|
static { this.ɵfac = function TreeDefaultItemToggleSlotComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TreeDefaultItemToggleSlotComponent)(); }; }
|
|
3825
4213
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeDefaultItemToggleSlotComponent, selectors: [["ng-component"]], viewQuery: function TreeDefaultItemToggleSlotComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3826
|
-
i0.ɵɵ
|
|
4214
|
+
i0.ɵɵviewQuerySignal(ctx.toggle, _c2, 5);
|
|
3827
4215
|
} if (rf & 2) {
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
} }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["toggle", ""], ["auTreeItemToggle", ""], [3, "auUse"], [1, "au-tree-expand-icon-placeholder"], [1, "au-tree-expand-icon-svg"]], template: function TreeDefaultItemToggleSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4216
|
+
i0.ɵɵqueryAdvance();
|
|
4217
|
+
} }, decls: 2, vars: 0, consts: [["toggle", ""], ["auTreeItemToggle", ""], [3, "auUse"], [1, "au-tree-expand-icon-placeholder"], [1, "au-tree-expand-icon-svg"]], template: function TreeDefaultItemToggleSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3831
4218
|
i0.ɵɵtemplate(0, TreeDefaultItemToggleSlotComponent_ng_template_0_Template, 2, 1, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
|
|
3832
4219
|
} }, dependencies: [UseDirective, TreeItemToggleDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
3833
4220
|
}
|
|
@@ -3849,11 +4236,8 @@ class TreeDefaultItemToggleSlotComponent {
|
|
|
3849
4236
|
</ng-template>
|
|
3850
4237
|
`,
|
|
3851
4238
|
}]
|
|
3852
|
-
}], null,
|
|
3853
|
-
|
|
3854
|
-
args: ['toggle', { static: true }]
|
|
3855
|
-
}] }); })();
|
|
3856
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemToggleSlotComponent, { className: "TreeDefaultItemToggleSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 87 }); })();
|
|
4239
|
+
}], null, null); })();
|
|
4240
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemToggleSlotComponent, { className: "TreeDefaultItemToggleSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 76 }); })();
|
|
3857
4241
|
/**
|
|
3858
4242
|
* A constant representing the default slot for tree item toggle.
|
|
3859
4243
|
*/
|
|
@@ -3871,20 +4255,22 @@ class TreeItemContentDirective {
|
|
|
3871
4255
|
return true;
|
|
3872
4256
|
}
|
|
3873
4257
|
static { this.ɵfac = function TreeItemContentDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TreeItemContentDirective)(); }; }
|
|
3874
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TreeItemContentDirective, selectors: [["ng-template", "auTreeItemContent", ""]]
|
|
4258
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TreeItemContentDirective, selectors: [["ng-template", "auTreeItemContent", ""]] }); }
|
|
3875
4259
|
}
|
|
3876
4260
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeItemContentDirective, [{
|
|
3877
4261
|
type: Directive,
|
|
3878
4262
|
args: [{ selector: 'ng-template[auTreeItemContent]', standalone: true }]
|
|
3879
4263
|
}], null, null); })();
|
|
3880
4264
|
class TreeDefaultItemContentSlotComponent {
|
|
4265
|
+
constructor() {
|
|
4266
|
+
this.treeItemContent = viewChild.required('treeItemContent');
|
|
4267
|
+
}
|
|
3881
4268
|
static { this.ɵfac = function TreeDefaultItemContentSlotComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TreeDefaultItemContentSlotComponent)(); }; }
|
|
3882
4269
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeDefaultItemContentSlotComponent, selectors: [["ng-component"]], viewQuery: function TreeDefaultItemContentSlotComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3883
|
-
i0.ɵɵ
|
|
4270
|
+
i0.ɵɵviewQuerySignal(ctx.treeItemContent, _c5, 5);
|
|
3884
4271
|
} if (rf & 2) {
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
} }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["treeItemContent", ""], ["auTreeItem", ""], [1, "au-tree-item"], [3, "auSlot", "auSlotProps"]], template: function TreeDefaultItemContentSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4272
|
+
i0.ɵɵqueryAdvance();
|
|
4273
|
+
} }, decls: 2, vars: 0, consts: [["treeItemContent", ""], ["auTreeItem", ""], [1, "au-tree-item"], [3, "auSlot", "auSlotProps"]], template: function TreeDefaultItemContentSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3888
4274
|
i0.ɵɵtemplate(0, TreeDefaultItemContentSlotComponent_ng_template_0_Template, 3, 8, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
|
|
3889
4275
|
} }, dependencies: [SlotDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
3890
4276
|
}
|
|
@@ -3903,11 +4289,8 @@ class TreeDefaultItemContentSlotComponent {
|
|
|
3903
4289
|
</ng-template>
|
|
3904
4290
|
`,
|
|
3905
4291
|
}]
|
|
3906
|
-
}], null,
|
|
3907
|
-
|
|
3908
|
-
args: ['treeItemContent', { static: true }]
|
|
3909
|
-
}] }); })();
|
|
3910
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemContentSlotComponent, { className: "TreeDefaultItemContentSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 122 }); })();
|
|
4292
|
+
}], null, null); })();
|
|
4293
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemContentSlotComponent, { className: "TreeDefaultItemContentSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 111 }); })();
|
|
3911
4294
|
/**
|
|
3912
4295
|
* A constant representing the default slot for tree item.
|
|
3913
4296
|
*/
|
|
@@ -3925,23 +4308,25 @@ class TreeItemDirective {
|
|
|
3925
4308
|
return true;
|
|
3926
4309
|
}
|
|
3927
4310
|
static { this.ɵfac = function TreeItemDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TreeItemDirective)(); }; }
|
|
3928
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TreeItemDirective, selectors: [["ng-template", "auTreeItem", ""]]
|
|
4311
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TreeItemDirective, selectors: [["ng-template", "auTreeItem", ""]] }); }
|
|
3929
4312
|
}
|
|
3930
4313
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeItemDirective, [{
|
|
3931
4314
|
type: Directive,
|
|
3932
4315
|
args: [{ selector: 'ng-template[auTreeItem]', standalone: true }]
|
|
3933
4316
|
}], null, null); })();
|
|
3934
4317
|
class TreeDefaultItemSlotComponent {
|
|
4318
|
+
constructor() {
|
|
4319
|
+
this.treeItem = viewChild.required('treeItem');
|
|
4320
|
+
}
|
|
3935
4321
|
trackNode(index, node) {
|
|
3936
4322
|
return node.label + node.level + index;
|
|
3937
4323
|
}
|
|
3938
4324
|
static { this.ɵfac = function TreeDefaultItemSlotComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TreeDefaultItemSlotComponent)(); }; }
|
|
3939
4325
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeDefaultItemSlotComponent, selectors: [["ng-component"]], viewQuery: function TreeDefaultItemSlotComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3940
|
-
i0.ɵɵ
|
|
4326
|
+
i0.ɵɵviewQuerySignal(ctx.treeItem, _c6, 5);
|
|
3941
4327
|
} if (rf & 2) {
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
} }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["treeItem", ""], ["auTreeItem", ""], [3, "auUse"], [3, "auSlot", "auSlotProps"], ["role", "group"]], template: function TreeDefaultItemSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4328
|
+
i0.ɵɵqueryAdvance();
|
|
4329
|
+
} }, decls: 2, vars: 0, consts: [["treeItem", ""], ["auTreeItem", ""], [3, "auUse"], [3, "auSlot", "auSlotProps"], ["role", "group"]], template: function TreeDefaultItemSlotComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3945
4330
|
i0.ɵɵtemplate(0, TreeDefaultItemSlotComponent_ng_template_0_Template, 3, 14, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
|
|
3946
4331
|
} }, dependencies: [UseDirective, SlotDirective, TreeItemDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
3947
4332
|
}
|
|
@@ -3966,11 +4351,8 @@ class TreeDefaultItemSlotComponent {
|
|
|
3966
4351
|
</ng-template>
|
|
3967
4352
|
`,
|
|
3968
4353
|
}]
|
|
3969
|
-
}], null,
|
|
3970
|
-
|
|
3971
|
-
args: ['treeItem', { static: true }]
|
|
3972
|
-
}] }); })();
|
|
3973
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemSlotComponent, { className: "TreeDefaultItemSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 166 }); })();
|
|
4354
|
+
}], null, null); })();
|
|
4355
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeDefaultItemSlotComponent, { className: "TreeDefaultItemSlotComponent", filePath: "components/tree/tree.component.ts", lineNumber: 155 }); })();
|
|
3974
4356
|
/**
|
|
3975
4357
|
* A constant representing the default slot for tree item.
|
|
3976
4358
|
*/
|
|
@@ -3995,12 +4377,51 @@ class TreeComponent extends BaseWidgetDirective {
|
|
|
3995
4377
|
onExpandToggle: (item) => this.expandToggle.emit(item),
|
|
3996
4378
|
},
|
|
3997
4379
|
slotTemplates: () => ({
|
|
3998
|
-
structure: this.slotStructureFromContent?.templateRef,
|
|
3999
|
-
item: this.slotItemFromContent?.templateRef,
|
|
4000
|
-
itemContent: this.slotItemContentFromContent?.templateRef,
|
|
4001
|
-
itemToggle: this.slotItemToggleFromContent?.templateRef,
|
|
4380
|
+
structure: this.slotStructureFromContent()?.templateRef,
|
|
4381
|
+
item: this.slotItemFromContent()?.templateRef,
|
|
4382
|
+
itemContent: this.slotItemContentFromContent()?.templateRef,
|
|
4383
|
+
itemToggle: this.slotItemToggleFromContent()?.templateRef,
|
|
4002
4384
|
}),
|
|
4003
4385
|
}));
|
|
4386
|
+
/**
|
|
4387
|
+
* Optional accessibility label for the tree if there is no explicit label
|
|
4388
|
+
*
|
|
4389
|
+
* @defaultValue `''`
|
|
4390
|
+
*/
|
|
4391
|
+
this.ariaLabel = input(undefined, { alias: 'auAriaLabel' });
|
|
4392
|
+
/**
|
|
4393
|
+
* Array of the tree nodes to display
|
|
4394
|
+
*
|
|
4395
|
+
* @defaultValue `[]`
|
|
4396
|
+
*/
|
|
4397
|
+
this.nodes = input(undefined, { alias: 'auNodes' });
|
|
4398
|
+
/**
|
|
4399
|
+
* CSS classes to be applied on the widget main container
|
|
4400
|
+
*
|
|
4401
|
+
* @defaultValue `''`
|
|
4402
|
+
*/
|
|
4403
|
+
this.className = input(undefined, { alias: 'auClassName' });
|
|
4404
|
+
/**
|
|
4405
|
+
* Retrieves expand items of the TreeItem
|
|
4406
|
+
*
|
|
4407
|
+
* @param node - HTML element that is representing the expand item
|
|
4408
|
+
*
|
|
4409
|
+
* @defaultValue
|
|
4410
|
+
* ```ts
|
|
4411
|
+
* (node: HTMLElement) => node.querySelectorAll('button')
|
|
4412
|
+
* ```
|
|
4413
|
+
*/
|
|
4414
|
+
this.navSelector = input(undefined, { alias: 'auNavSelector' });
|
|
4415
|
+
/**
|
|
4416
|
+
* Return the value for the 'aria-label' attribute of the toggle
|
|
4417
|
+
* @param label - tree item label
|
|
4418
|
+
*
|
|
4419
|
+
* @defaultValue
|
|
4420
|
+
* ```ts
|
|
4421
|
+
* (label: string) => `Toggle ${label}`
|
|
4422
|
+
* ```
|
|
4423
|
+
*/
|
|
4424
|
+
this.ariaLabelToggleFn = input(undefined, { alias: 'auAriaLabelToggleFn' });
|
|
4004
4425
|
/**
|
|
4005
4426
|
* An event emitted when the user toggles the expand of the TreeItem.
|
|
4006
4427
|
*
|
|
@@ -4011,21 +4432,37 @@ class TreeComponent extends BaseWidgetDirective {
|
|
|
4011
4432
|
* () => {}
|
|
4012
4433
|
* ```
|
|
4013
4434
|
*/
|
|
4014
|
-
this.expandToggle =
|
|
4435
|
+
this.expandToggle = output({ alias: 'auExpandToggle' });
|
|
4436
|
+
/**
|
|
4437
|
+
* Slot to change the default tree item content
|
|
4438
|
+
*/
|
|
4439
|
+
this.itemContent = input(undefined, { alias: 'auItemContent' });
|
|
4440
|
+
this.slotItemContentFromContent = viewChild(TreeItemContentDirective);
|
|
4441
|
+
/**
|
|
4442
|
+
* Slot to change the default display of the tree
|
|
4443
|
+
*/
|
|
4444
|
+
this.structure = input(undefined, { alias: 'auStructure' });
|
|
4445
|
+
this.slotStructureFromContent = viewChild(TreeStructureDirective);
|
|
4446
|
+
/**
|
|
4447
|
+
* Slot to change the default tree item toggle
|
|
4448
|
+
*/
|
|
4449
|
+
this.itemToggle = input(undefined, { alias: 'auItemToggle' });
|
|
4450
|
+
this.slotItemToggleFromContent = viewChild(TreeItemToggleDirective);
|
|
4451
|
+
/**
|
|
4452
|
+
* Slot to change the default tree item
|
|
4453
|
+
*/
|
|
4454
|
+
this.item = input(undefined, { alias: 'auItem' });
|
|
4455
|
+
this.slotItemFromContent = viewChild(TreeItemDirective);
|
|
4015
4456
|
}
|
|
4016
4457
|
static { this.ɵfac = function TreeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TreeComponent)(); }; }
|
|
4017
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeComponent, selectors: [["", "auTree", ""]],
|
|
4018
|
-
i0.ɵɵ
|
|
4019
|
-
i0.ɵɵ
|
|
4020
|
-
i0.ɵɵ
|
|
4021
|
-
i0.ɵɵ
|
|
4458
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeComponent, selectors: [["", "auTree", ""]], viewQuery: function TreeComponent_Query(rf, ctx) { if (rf & 1) {
|
|
4459
|
+
i0.ɵɵviewQuerySignal(ctx.slotItemContentFromContent, TreeItemContentDirective, 5);
|
|
4460
|
+
i0.ɵɵviewQuerySignal(ctx.slotStructureFromContent, TreeStructureDirective, 5);
|
|
4461
|
+
i0.ɵɵviewQuerySignal(ctx.slotItemToggleFromContent, TreeItemToggleDirective, 5);
|
|
4462
|
+
i0.ɵɵviewQuerySignal(ctx.slotItemFromContent, TreeItemDirective, 5);
|
|
4022
4463
|
} if (rf & 2) {
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
|
|
4026
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotItemToggleFromContent = _t.first);
|
|
4027
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotItemFromContent = _t.first);
|
|
4028
|
-
} }, inputs: { ariaLabel: [0, "auAriaLabel", "ariaLabel"], nodes: [0, "auNodes", "nodes"], className: [0, "auClassName", "className"], navSelector: [0, "auNavSelector", "navSelector"], ariaLabelToggleFn: [0, "auAriaLabelToggleFn", "ariaLabelToggleFn"], item: [0, "auItemContent", "item"], structure: [0, "auStructure", "structure"], toggle: [0, "auToggle", "toggle"], root: [0, "auItem", "root"] }, outputs: { expandToggle: "auExpandToggle" }, standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c7, decls: 1, vars: 6, consts: [[3, "auSlot", "auSlotProps"]], template: function TreeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4464
|
+
i0.ɵɵqueryAdvance(4);
|
|
4465
|
+
} }, inputs: { ariaLabel: [1, "auAriaLabel", "ariaLabel"], nodes: [1, "auNodes", "nodes"], className: [1, "auClassName", "className"], navSelector: [1, "auNavSelector", "navSelector"], ariaLabelToggleFn: [1, "auAriaLabelToggleFn", "ariaLabelToggleFn"], itemContent: [1, "auItemContent", "itemContent"], structure: [1, "auStructure", "structure"], itemToggle: [1, "auItemToggle", "itemToggle"], item: [1, "auItem", "item"] }, outputs: { expandToggle: "auExpandToggle" }, features: [i0.ɵɵInheritDefinitionFeature], attrs: _c7, decls: 1, vars: 6, consts: [[3, "auSlot", "auSlotProps"]], template: function TreeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4029
4466
|
i0.ɵɵtemplate(0, TreeComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
|
|
4030
4467
|
} if (rf & 2) {
|
|
4031
4468
|
i0.ɵɵproperty("auSlot", ctx.state.structure())("auSlotProps", i0.ɵɵpureFunction3(2, _c8, ctx.state, ctx.api, ctx.directives));
|
|
@@ -4040,50 +4477,8 @@ class TreeComponent extends BaseWidgetDirective {
|
|
|
4040
4477
|
imports: [SlotDirective],
|
|
4041
4478
|
template: ` <ng-template [auSlot]="state.structure()" [auSlotProps]="{state, api, directives}" /> `,
|
|
4042
4479
|
}]
|
|
4043
|
-
}], () => [],
|
|
4044
|
-
|
|
4045
|
-
args: ['auAriaLabel']
|
|
4046
|
-
}], nodes: [{
|
|
4047
|
-
type: Input,
|
|
4048
|
-
args: ['auNodes']
|
|
4049
|
-
}], className: [{
|
|
4050
|
-
type: Input,
|
|
4051
|
-
args: ['auClassName']
|
|
4052
|
-
}], navSelector: [{
|
|
4053
|
-
type: Input,
|
|
4054
|
-
args: ['auNavSelector']
|
|
4055
|
-
}], ariaLabelToggleFn: [{
|
|
4056
|
-
type: Input,
|
|
4057
|
-
args: ['auAriaLabelToggleFn']
|
|
4058
|
-
}], expandToggle: [{
|
|
4059
|
-
type: Output,
|
|
4060
|
-
args: ['auExpandToggle']
|
|
4061
|
-
}], item: [{
|
|
4062
|
-
type: Input,
|
|
4063
|
-
args: ['auItemContent']
|
|
4064
|
-
}], slotItemContentFromContent: [{
|
|
4065
|
-
type: ContentChild,
|
|
4066
|
-
args: [TreeItemContentDirective, { static: false }]
|
|
4067
|
-
}], structure: [{
|
|
4068
|
-
type: Input,
|
|
4069
|
-
args: ['auStructure']
|
|
4070
|
-
}], slotStructureFromContent: [{
|
|
4071
|
-
type: ContentChild,
|
|
4072
|
-
args: [TreeStructureDirective, { static: false }]
|
|
4073
|
-
}], toggle: [{
|
|
4074
|
-
type: Input,
|
|
4075
|
-
args: ['auToggle']
|
|
4076
|
-
}], slotItemToggleFromContent: [{
|
|
4077
|
-
type: ContentChild,
|
|
4078
|
-
args: [TreeItemToggleDirective, { static: false }]
|
|
4079
|
-
}], root: [{
|
|
4080
|
-
type: Input,
|
|
4081
|
-
args: ['auItem']
|
|
4082
|
-
}], slotItemFromContent: [{
|
|
4083
|
-
type: ContentChild,
|
|
4084
|
-
args: [TreeItemDirective, { static: false }]
|
|
4085
|
-
}] }); })();
|
|
4086
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeComponent, { className: "TreeComponent", filePath: "components/tree/tree.component.ts", lineNumber: 191 }); })();
|
|
4480
|
+
}], () => [], null); })();
|
|
4481
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeComponent, { className: "TreeComponent", filePath: "components/tree/tree.component.ts", lineNumber: 180 }); })();
|
|
4087
4482
|
|
|
4088
4483
|
/* istanbul ignore next */
|
|
4089
4484
|
const components = [
|
|
@@ -4272,7 +4667,7 @@ class ModalService {
|
|
|
4272
4667
|
if (prop.startsWith('on')) {
|
|
4273
4668
|
const eventName = `${prop[2].toLowerCase()}${prop.substring(3)}`;
|
|
4274
4669
|
const eventEmitter = component.instance[eventName];
|
|
4275
|
-
if (eventEmitter instanceof
|
|
4670
|
+
if (eventEmitter instanceof OutputEmitterRef) {
|
|
4276
4671
|
subscriptions.push(eventEmitter.subscribe(value));
|
|
4277
4672
|
}
|
|
4278
4673
|
}
|