@design-factory/design-factory 18.1.1 → 19.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/README.md +4 -4
  2. package/design-factory-initial-branding.css +1 -1
  3. package/design-factory.css +1 -1
  4. package/fesm2022/design-factory.mjs +748 -921
  5. package/fesm2022/design-factory.mjs.map +1 -1
  6. package/lib/angular/accessibility/components/skip-links-container/skip-links-container.component.d.ts +3 -9
  7. package/lib/angular/accessibility/directives/skip-link.directive.d.ts +3 -9
  8. package/lib/angular/card/manage-card-selection.directive.d.ts +5 -5
  9. package/lib/angular/datepicker/datepicker-range.directive.d.ts +5 -6
  10. package/lib/angular/datepicker/datepicker.module.d.ts +3 -5
  11. package/lib/angular/inputs/icon/inputicon.directive.d.ts +5 -6
  12. package/lib/angular/mediaqueries/ifMedia.directive.d.ts +8 -9
  13. package/lib/angular/modal/modal.service.d.ts +4 -0
  14. package/lib/angular/progressbar/progressbar.component.d.ts +18 -28
  15. package/lib/angular/progressindicator/default/default-spinner.component.d.ts +4 -4
  16. package/lib/angular/progressindicator/progressindicator-backdrop.component.d.ts +4 -4
  17. package/lib/angular/progressindicator/progressindicator-container.component.d.ts +5 -7
  18. package/lib/angular/progressindicator/progressindicator.directive.d.ts +9 -11
  19. package/lib/angular/selects/events/manage-badge-events.directive.d.ts +4 -5
  20. package/lib/angular/selects/option-highlight.directive.d.ts +7 -12
  21. package/lib/angular/sidenav/dfSideNavCollapse.d.ts +16 -18
  22. package/lib/angular/sidenav/excludeTrap.directive.d.ts +9 -10
  23. package/lib/angular/sidenav/sidenav.component.d.ts +7 -8
  24. package/lib/angular/sidenav/sidenavlist.component.d.ts +8 -8
  25. package/lib/angular/slider/direction/sliderdirection.directive.d.ts +5 -7
  26. package/lib/angular/slider/lib/slider-element.directive.d.ts +2 -1
  27. package/lib/angular/slider/lib/slider-handle.directive.d.ts +1 -1
  28. package/lib/angular/slider/lib/slider-label.directive.d.ts +1 -1
  29. package/lib/angular/slider/lib/slider.component.d.ts +1 -1
  30. package/lib/angular/slider/lib/tooltip-wrapper.component.d.ts +1 -1
  31. package/lib/angular/slider/slider.module.d.ts +1 -1
  32. package/lib/angular/stepper/stepper.component.d.ts +7 -8
  33. package/lib/angular/utils/titleTruncate.directive.d.ts +2 -3
  34. package/lib/angular/waves-of-progress/waves.directive.d.ts +4 -3
  35. package/lib/index.d.ts +0 -1
  36. package/package.json +16 -16
  37. package/schematics/ng-add/index.js +1 -1
  38. package/styles/scss/agnosui/_variables.scss +9 -3
  39. package/styles/scss/bootstrap/_variables.scss +54 -12
  40. package/styles/scss/components/accordion/_accordion.scss +67 -6
  41. package/styles/scss/components/accordion/_accordion.variables.scss +2 -0
  42. package/styles/scss/components/alert/_alert.scss +3 -2
  43. package/styles/scss/components/badge/_badge.scss +13 -3
  44. package/styles/scss/components/badge/_badge.variables.scss +1 -0
  45. package/styles/scss/components/button/_button.scss +5 -0
  46. package/styles/scss/components/form/_form.scss +8 -0
  47. package/styles/scss/components/sidenav/_sidenav.scss +5 -2
  48. package/styles/scss/components/toggle/_toggle.scss +1 -0
  49. package/styles/scss/df-styles-namespace.scss +3 -1
  50. package/styles/scss/df-styles.scss +3 -1
  51. package/styles/scss/themes/brand2023/_variables.scss +80 -28
  52. package/esm2022/design-factory.mjs +0 -5
  53. package/esm2022/environment.mjs +0 -5
  54. package/esm2022/index.mjs +0 -5
  55. package/esm2022/lib/angular/accessibility/accessibility.module.mjs +0 -19
  56. package/esm2022/lib/angular/accessibility/components/skip-links-container/skip-links-container.component.mjs +0 -32
  57. package/esm2022/lib/angular/accessibility/directives/skip-link.directive.mjs +0 -64
  58. package/esm2022/lib/angular/alert/alert.module.mjs +0 -17
  59. package/esm2022/lib/angular/animation/ngbTransition.mjs +0 -76
  60. package/esm2022/lib/angular/animation/util.mjs +0 -30
  61. package/esm2022/lib/angular/card/card-advanced.module.mjs +0 -17
  62. package/esm2022/lib/angular/card/manage-card-selection.directive.mjs +0 -47
  63. package/esm2022/lib/angular/datepicker/closedatepicker.directive.mjs +0 -38
  64. package/esm2022/lib/angular/datepicker/datepicker-keyboard-nav.service.mjs +0 -39
  65. package/esm2022/lib/angular/datepicker/datepicker-range.directive.mjs +0 -101
  66. package/esm2022/lib/angular/datepicker/datepicker-range.service.mjs +0 -97
  67. package/esm2022/lib/angular/datepicker/datepicker.module.mjs +0 -42
  68. package/esm2022/lib/angular/df.module.mjs +0 -102
  69. package/esm2022/lib/angular/footer/footer.module.mjs +0 -17
  70. package/esm2022/lib/angular/icon/amadeus-icon.mjs +0 -79
  71. package/esm2022/lib/angular/icon/icon.module.mjs +0 -17
  72. package/esm2022/lib/angular/icon/insert/insert-icon.directive.mjs +0 -47
  73. package/esm2022/lib/angular/icon/insert/insert-icon.module.mjs +0 -17
  74. package/esm2022/lib/angular/inputs/click/trigger-click.directive.mjs +0 -28
  75. package/esm2022/lib/angular/inputs/icon/inputicon.directive.mjs +0 -95
  76. package/esm2022/lib/angular/inputs/input-advanced.module.mjs +0 -19
  77. package/esm2022/lib/angular/mediaqueries/ifMedia.directive.mjs +0 -52
  78. package/esm2022/lib/angular/mediaqueries/media.module.mjs +0 -17
  79. package/esm2022/lib/angular/mediaqueries/media.service.mjs +0 -46
  80. package/esm2022/lib/angular/mediaqueries/mediaUtils.service.mjs +0 -185
  81. package/esm2022/lib/angular/modal/modal.service.mjs +0 -36
  82. package/esm2022/lib/angular/popover/config/popover.config.mjs +0 -15
  83. package/esm2022/lib/angular/popover/popover.module.mjs +0 -17
  84. package/esm2022/lib/angular/progressbar/progressbar.component.mjs +0 -156
  85. package/esm2022/lib/angular/progressbar/progressbar.module.mjs +0 -18
  86. package/esm2022/lib/angular/progressindicator/default/default-spinner.component.mjs +0 -23
  87. package/esm2022/lib/angular/progressindicator/progressindicator-backdrop.component.mjs +0 -29
  88. package/esm2022/lib/angular/progressindicator/progressindicator-config.mjs +0 -25
  89. package/esm2022/lib/angular/progressindicator/progressindicator-container.component.mjs +0 -52
  90. package/esm2022/lib/angular/progressindicator/progressindicator-ref.mjs +0 -8
  91. package/esm2022/lib/angular/progressindicator/progressindicator.directive.mjs +0 -39
  92. package/esm2022/lib/angular/progressindicator/progressindicator.module.mjs +0 -45
  93. package/esm2022/lib/angular/progressindicator/progressindicator.service.mjs +0 -170
  94. package/esm2022/lib/angular/right-to-left/directionDetection.service.mjs +0 -32
  95. package/esm2022/lib/angular/selects/events/manage-badge-events.directive.mjs +0 -65
  96. package/esm2022/lib/angular/selects/nav/manage-nav-select.directive.mjs +0 -108
  97. package/esm2022/lib/angular/selects/option-highlight.directive.mjs +0 -59
  98. package/esm2022/lib/angular/selects/select.model.mjs +0 -2
  99. package/esm2022/lib/angular/selects/select.module.mjs +0 -22
  100. package/esm2022/lib/angular/sidenav/dfSideNavAnimation.mjs +0 -73
  101. package/esm2022/lib/angular/sidenav/dfSideNavCollapse.mjs +0 -94
  102. package/esm2022/lib/angular/sidenav/dfSideNavCollapse.module.mjs +0 -18
  103. package/esm2022/lib/angular/sidenav/dfSideNavCollapse.service.mjs +0 -37
  104. package/esm2022/lib/angular/sidenav/dfSideNavCollapseConfig.mjs +0 -27
  105. package/esm2022/lib/angular/sidenav/excludeTrap.directive.mjs +0 -55
  106. package/esm2022/lib/angular/sidenav/manage-sidenav.directive.mjs +0 -26
  107. package/esm2022/lib/angular/sidenav/sidenav-config.mjs +0 -25
  108. package/esm2022/lib/angular/sidenav/sidenav.component.mjs +0 -86
  109. package/esm2022/lib/angular/sidenav/sidenav.module.mjs +0 -52
  110. package/esm2022/lib/angular/sidenav/sidenav.service.mjs +0 -316
  111. package/esm2022/lib/angular/sidenav/sidenavlist.component.mjs +0 -59
  112. package/esm2022/lib/angular/slider/direction/sliderdirection.directive.mjs +0 -36
  113. package/esm2022/lib/angular/slider/lib/change-context.mjs +0 -3
  114. package/esm2022/lib/angular/slider/lib/compatibility-helper.mjs +0 -15
  115. package/esm2022/lib/angular/slider/lib/event-listener-helper.mjs +0 -77
  116. package/esm2022/lib/angular/slider/lib/event-listener.mjs +0 -3
  117. package/esm2022/lib/angular/slider/lib/math-helper.mjs +0 -15
  118. package/esm2022/lib/angular/slider/lib/options.mjs +0 -123
  119. package/esm2022/lib/angular/slider/lib/pointer-type.mjs +0 -9
  120. package/esm2022/lib/angular/slider/lib/slider-element.directive.mjs +0 -190
  121. package/esm2022/lib/angular/slider/lib/slider-handle.directive.mjs +0 -65
  122. package/esm2022/lib/angular/slider/lib/slider-label.directive.mjs +0 -41
  123. package/esm2022/lib/angular/slider/lib/slider.component.mjs +0 -1998
  124. package/esm2022/lib/angular/slider/lib/tooltip-wrapper.component.mjs +0 -23
  125. package/esm2022/lib/angular/slider/lib/value-helper.mjs +0 -50
  126. package/esm2022/lib/angular/slider/slider.module.mjs +0 -37
  127. package/esm2022/lib/angular/stepper/stepper.component.mjs +0 -65
  128. package/esm2022/lib/angular/stepper/stepper.directive.mjs +0 -174
  129. package/esm2022/lib/angular/stepper/stepper.module.mjs +0 -17
  130. package/esm2022/lib/angular/stepper/stepper.service.mjs +0 -213
  131. package/esm2022/lib/angular/toast/toast.module.mjs +0 -17
  132. package/esm2022/lib/angular/tooltip/tooltip.module.mjs +0 -18
  133. package/esm2022/lib/angular/tooltip/truncate/tooltipTruncate.directive.mjs +0 -31
  134. package/esm2022/lib/angular/utils/html-element-helper.mjs +0 -8
  135. package/esm2022/lib/angular/utils/scrollbar.service.mjs +0 -79
  136. package/esm2022/lib/angular/utils/titleTruncate.directive.mjs +0 -39
  137. package/esm2022/lib/angular/waves-of-progress/waves.directive.mjs +0 -86
  138. package/esm2022/lib/angular/waves-of-progress/waves.module.mjs +0 -16
  139. package/esm2022/lib/index.mjs +0 -93
  140. package/lib/angular/datepicker/closedatepicker.directive.d.ts +0 -10
@@ -1,33 +1,24 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Directive, Inject, HostBinding, Output, HostListener, Component, ChangeDetectionStrategy, ContentChildren, NgModule, Input, Injectable, InjectionToken, PLATFORM_ID, ViewEncapsulation, ComponentRef, TemplateRef, Optional, forwardRef, ViewChild, ContentChild, inject, Host, Renderer2, ElementRef, numberAttribute } from '@angular/core';
2
+ import { signal, inject, ElementRef, Directive, contentChildren, computed, Component, ChangeDetectionStrategy, NgModule, HostListener, input, Renderer2, Injectable, PLATFORM_ID, InjectionToken, Inject, ViewContainerRef, TemplateRef, effect, booleanAttribute, numberAttribute, output, ViewEncapsulation, ComponentRef, untracked, HostBinding, Input, forwardRef, EventEmitter, Output, ViewChild, ContentChild, NgZone, Injector, contentChild, Host } from '@angular/core';
3
3
  import * as i1$1 from '@angular/common';
4
- import { DOCUMENT, isPlatformBrowser, CommonModule, NgTemplateOutlet } from '@angular/common';
5
- import { merge, BehaviorSubject, fromEvent, Subscription, combineLatest, Subject, Observable, EMPTY, of, timer, race } from 'rxjs';
4
+ import { DOCUMENT, isPlatformBrowser, isPlatformServer, NgTemplateOutlet, CommonModule, AsyncPipe } from '@angular/common';
6
5
  import * as i1 from '@ng-bootstrap/ng-bootstrap';
7
6
  import { NgbToastModule, NgbAlertModule, NgbDatepickerKeyboardService, NgbDate, NgbDropdownModule, NgbDatepickerModule, NgbAccordionModule, NgbPopoverConfig, NgbPopoverModule, NgbProgressbarModule, NgbCollapseModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
8
7
  import { take, map, switchMap, distinctUntilChanged, throttleTime, tap, filter, endWith, takeUntil } from 'rxjs/operators';
8
+ import { BehaviorSubject, fromEvent, Subscription, combineLatest, Subject, Observable, EMPTY, of, timer, race } from 'rxjs';
9
9
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
10
- import * as i3 from '@angular/router';
10
+ import * as i2 from '@angular/router';
11
11
  import { RouterModule } from '@angular/router';
12
+ import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
12
13
  import * as i1$2 from '@ng-select/ng-select';
13
14
  import { NgSelectModule } from '@ng-select/ng-select';
14
15
  import { HttpClient } from '@angular/common/http';
15
16
 
16
17
  class SkipLinkDirective {
17
- onFocus() {
18
- this.inFocus.emit(true);
19
- }
20
- onClick() {
21
- this.focusOnTarget();
22
- }
23
- onBlur() {
24
- this.inFocus.emit(false);
25
- }
26
- constructor(element, document) {
27
- this.element = element;
28
- this.document = document;
29
- this.class = 'list-group-item list-group-item-action';
30
- this.inFocus = new EventEmitter();
18
+ constructor() {
19
+ this.inFocus = signal(false);
20
+ this.element = inject(ElementRef);
21
+ this.document = inject(DOCUMENT);
31
22
  }
32
23
  focusOnTarget() {
33
24
  const href = String(this.element.nativeElement.getAttribute('href'));
@@ -43,71 +34,45 @@ class SkipLinkDirective {
43
34
  const target = this.document.getElementById(id);
44
35
  if (target) {
45
36
  target.focus();
46
- this.onBlur();
37
+ this.inFocus.set(false);
47
38
  }
48
39
  });
49
40
  }
50
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SkipLinkDirective, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive }); }
51
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: SkipLinkDirective, isStandalone: true, selector: "[dfSkipLink]", outputs: { inFocus: "inFocus" }, host: { listeners: { "focus": "onFocus()", "click": "onClick()", "blur": "onBlur()" }, properties: { "class": "this.class" } }, ngImport: i0 }); }
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SkipLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
42
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: SkipLinkDirective, isStandalone: true, selector: "[dfSkipLink]", host: { listeners: { "focus": "inFocus.set(true)", "click": "focusOnTarget()", "blur": "inFocus.set(false)" }, classAttribute: "list-group-item list-group-item-action" }, ngImport: i0 }); }
52
43
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SkipLinkDirective, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SkipLinkDirective, decorators: [{
54
45
  type: Directive,
55
46
  args: [{
56
47
  selector: '[dfSkipLink]',
57
- standalone: true
48
+ host: {
49
+ class: 'list-group-item list-group-item-action',
50
+ '(focus)': 'inFocus.set(true)',
51
+ '(click)': 'focusOnTarget()',
52
+ '(blur)': 'inFocus.set(false)'
53
+ }
58
54
  }]
59
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: undefined, decorators: [{
60
- type: Inject,
61
- args: [DOCUMENT]
62
- }] }], propDecorators: { class: [{
63
- type: HostBinding
64
- }], inFocus: [{
65
- type: Output
66
- }], onFocus: [{
67
- type: HostListener,
68
- args: ['focus']
69
- }], onClick: [{
70
- type: HostListener,
71
- args: ['click']
72
- }], onBlur: [{
73
- type: HostListener,
74
- args: ['blur']
75
- }] } });
55
+ }] });
76
56
 
77
57
  class SkipLinksContainerComponent {
78
- constructor(changeDetector) {
79
- this.changeDetector = changeDetector;
80
- this.inFocus = false;
81
- }
82
- ngAfterContentInit() {
83
- if (!this.links.length) {
84
- return;
85
- }
86
- this.focusSubscription = merge(...this.links.map((link) => link.inFocus)).subscribe((focus) => {
87
- this.inFocus = focus;
88
- this.changeDetector.detectChanges();
89
- });
90
- }
91
- ngOnDestroy() {
92
- this.focusSubscription.unsubscribe();
58
+ constructor() {
59
+ this.links = contentChildren(SkipLinkDirective);
60
+ this.inFocus = computed(() => this.links().some((link) => link.inFocus()));
93
61
  }
94
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SkipLinksContainerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
95
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: SkipLinksContainerComponent, isStandalone: true, selector: "df-skip-links-container", queries: [{ propertyName: "links", predicate: SkipLinkDirective }], ngImport: i0, template: "<section class=\"df-skip-links__section\">\n <div class=\"df-skip-links\">\n <div\n class=\"df-skip-links-wrap list-group\"\n [class.focus]=\"inFocus\"\n (blur)=\"inFocus=false\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n</section>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
62
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SkipLinksContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
63
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.3", type: SkipLinksContainerComponent, isStandalone: true, selector: "df-skip-links-container", queries: [{ propertyName: "links", predicate: SkipLinkDirective, isSignal: true }], ngImport: i0, template: "<section class=\"df-skip-links__section\">\n <div class=\"df-skip-links\">\n <div class=\"df-skip-links-wrap list-group\" [class.focus]=\"inFocus()\">\n <ng-content></ng-content>\n </div>\n </div>\n</section>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
96
64
  }
97
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SkipLinksContainerComponent, decorators: [{
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SkipLinksContainerComponent, decorators: [{
98
66
  type: Component,
99
- args: [{ selector: 'df-skip-links-container', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<section class=\"df-skip-links__section\">\n <div class=\"df-skip-links\">\n <div\n class=\"df-skip-links-wrap list-group\"\n [class.focus]=\"inFocus\"\n (blur)=\"inFocus=false\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n</section>\n" }]
100
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { links: [{
101
- type: ContentChildren,
102
- args: [SkipLinkDirective]
103
- }] } });
67
+ args: [{ selector: 'df-skip-links-container', changeDetection: ChangeDetectionStrategy.OnPush, template: "<section class=\"df-skip-links__section\">\n <div class=\"df-skip-links\">\n <div class=\"df-skip-links-wrap list-group\" [class.focus]=\"inFocus()\">\n <ng-content></ng-content>\n </div>\n </div>\n</section>\n" }]
68
+ }] });
104
69
 
105
70
  class DfAccessibilityModule {
106
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAccessibilityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
107
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfAccessibilityModule, imports: [SkipLinkDirective, SkipLinksContainerComponent], exports: [SkipLinkDirective, SkipLinksContainerComponent] }); }
108
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAccessibilityModule }); }
71
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAccessibilityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
72
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfAccessibilityModule, imports: [SkipLinkDirective, SkipLinksContainerComponent], exports: [SkipLinkDirective, SkipLinksContainerComponent] }); }
73
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAccessibilityModule }); }
109
74
  }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAccessibilityModule, decorators: [{
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAccessibilityModule, decorators: [{
111
76
  type: NgModule,
112
77
  args: [{
113
78
  imports: [SkipLinkDirective, SkipLinksContainerComponent],
@@ -149,23 +114,25 @@ class DfInsertIconDirective {
149
114
  }
150
115
  return 'fa-info-circle';
151
116
  }
152
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfInsertIconDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
153
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfInsertIconDirective, isStandalone: true, selector: "ngb-alert[dfInsertAlertIcon],ngb-toast[dfInsertToastIcon]", ngImport: i0 }); }
117
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfInsertIconDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
118
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfInsertIconDirective, isStandalone: true, selector: "ngb-alert[dfInsertAlertIcon],ngb-toast[dfInsertToastIcon]", host: { attributes: { "ngSkipHydration": "true" } }, ngImport: i0 }); }
154
119
  }
155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfInsertIconDirective, decorators: [{
120
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfInsertIconDirective, decorators: [{
156
121
  type: Directive,
157
122
  args: [{
158
123
  selector: 'ngb-alert[dfInsertAlertIcon],ngb-toast[dfInsertToastIcon]',
159
- standalone: true
124
+ host: {
125
+ ngSkipHydration: 'true'
126
+ }
160
127
  }]
161
128
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
162
129
 
163
130
  class DfInsertIconModule {
164
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfInsertIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
165
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfInsertIconModule, imports: [DfInsertIconDirective], exports: [DfInsertIconDirective] }); }
166
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfInsertIconModule }); }
131
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfInsertIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
132
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfInsertIconModule, imports: [DfInsertIconDirective], exports: [DfInsertIconDirective] }); }
133
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfInsertIconModule }); }
167
134
  }
168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfInsertIconModule, decorators: [{
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfInsertIconModule, decorators: [{
169
136
  type: NgModule,
170
137
  args: [{
171
138
  imports: [DfInsertIconDirective],
@@ -174,11 +141,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
174
141
  }] });
175
142
 
176
143
  class DfToastModule {
177
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
178
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfToastModule, imports: [DfInsertIconModule], exports: [NgbToastModule, DfInsertIconModule] }); }
179
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfToastModule, imports: [DfInsertIconModule, NgbToastModule, DfInsertIconModule] }); }
144
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
145
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfToastModule, imports: [DfInsertIconModule], exports: [NgbToastModule, DfInsertIconModule] }); }
146
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfToastModule, imports: [DfInsertIconModule, NgbToastModule, DfInsertIconModule] }); }
180
147
  }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfToastModule, decorators: [{
148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfToastModule, decorators: [{
182
149
  type: NgModule,
183
150
  args: [{
184
151
  imports: [DfInsertIconModule],
@@ -187,11 +154,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
187
154
  }] });
188
155
 
189
156
  class DfAlertModule {
190
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
191
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfAlertModule, imports: [DfInsertIconModule], exports: [NgbAlertModule, DfInsertIconModule] }); }
192
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAlertModule, imports: [DfInsertIconModule, NgbAlertModule, DfInsertIconModule] }); }
157
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
158
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfAlertModule, imports: [DfInsertIconModule], exports: [NgbAlertModule, DfInsertIconModule] }); }
159
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAlertModule, imports: [DfInsertIconModule, NgbAlertModule, DfInsertIconModule] }); }
193
160
  }
194
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAlertModule, decorators: [{
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAlertModule, decorators: [{
195
162
  type: NgModule,
196
163
  args: [{
197
164
  imports: [DfInsertIconModule],
@@ -199,42 +166,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
199
166
  }]
200
167
  }] });
201
168
 
202
- class CloseInputDatePickerDirective {
203
- constructor(elementRef) {
204
- this.elementRef = elementRef;
205
- }
206
- onClick(targetElement) {
207
- const isConnected = document.body.parentElement.contains(targetElement);
208
- // targetElement.isConnected to check if it is attached to the DOM
209
- if (!targetElement || !isConnected || !this.inputDatePicker._cRef) {
210
- return;
211
- }
212
- const clickedInside = this.inputDatePicker._cRef.location.nativeElement.contains(targetElement);
213
- const clickedInsideInput = this.elementRef.nativeElement.contains(targetElement);
214
- if (!(clickedInside || clickedInsideInput)) {
215
- this.inputDatePicker.close();
216
- }
217
- }
218
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: CloseInputDatePickerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
219
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: CloseInputDatePickerDirective, isStandalone: true, selector: "[dfCloseInputDatePicker]", inputs: { inputDatePicker: ["dfCloseInputDatePicker", "inputDatePicker"] }, host: { listeners: { "document:click": "onClick($event.target)", "document:keyup": "onClick($event.target)" } }, ngImport: i0 }); }
220
- }
221
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: CloseInputDatePickerDirective, decorators: [{
222
- type: Directive,
223
- args: [{
224
- selector: '[dfCloseInputDatePicker]',
225
- standalone: true
226
- }]
227
- }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { inputDatePicker: [{
228
- type: Input,
229
- args: ['dfCloseInputDatePicker']
230
- }], onClick: [{
231
- type: HostListener,
232
- args: ['document:click', ['$event.target']]
233
- }, {
234
- type: HostListener,
235
- args: ['document:keyup', ['$event.target']]
236
- }] } });
237
-
238
169
  class DfTriggerClickDirective {
239
170
  constructor(elementRef) {
240
171
  this.elementRef = elementRef;
@@ -244,14 +175,13 @@ class DfTriggerClickDirective {
244
175
  event.preventDefault();
245
176
  this.elementRef.nativeElement.click();
246
177
  }
247
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfTriggerClickDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
248
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfTriggerClickDirective, isStandalone: true, selector: "[dfTriggerClick]", host: { listeners: { "keydown.enter": "triggerClick($event)", "keydown.space": "triggerClick($event)" } }, ngImport: i0 }); }
178
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfTriggerClickDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
179
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfTriggerClickDirective, isStandalone: true, selector: "[dfTriggerClick]", host: { listeners: { "keydown.enter": "triggerClick($event)", "keydown.space": "triggerClick($event)" } }, ngImport: i0 }); }
249
180
  }
250
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfTriggerClickDirective, decorators: [{
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfTriggerClickDirective, decorators: [{
251
182
  type: Directive,
252
183
  args: [{
253
- selector: '[dfTriggerClick]',
254
- standalone: true
184
+ selector: '[dfTriggerClick]'
255
185
  }]
256
186
  }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { triggerClick: [{
257
187
  type: HostListener,
@@ -265,17 +195,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
265
195
  * My dfInputIcon directive
266
196
  */
267
197
  class DfInputIconDirective {
268
- constructor(renderer, el) {
269
- this.renderer = renderer;
270
- this.el = el;
271
- this.dfInputIcon = [];
198
+ constructor() {
199
+ this.dfInputIcon = input.required();
272
200
  this.isDisabled = false;
273
201
  this.siblingsNode = [];
202
+ this.renderer = inject(Renderer2);
203
+ this.el = inject(ElementRef);
274
204
  }
275
205
  ngDoCheck() {
276
206
  if (this.el.nativeElement.disabled !== this.isDisabled) {
277
207
  this.isDisabled = this.el.nativeElement.disabled;
278
- this.siblingsNode.forEach(siblings => {
208
+ this.siblingsNode.forEach((siblings) => {
279
209
  if (this.isDisabled) {
280
210
  this.renderer.addClass(siblings, 'df-disabled');
281
211
  }
@@ -287,7 +217,7 @@ class DfInputIconDirective {
287
217
  }
288
218
  ngOnInit() {
289
219
  this.renderer.addClass(this.el.nativeElement, 'df-input-withicon');
290
- this.dfInputIcon.forEach(direction => {
220
+ this.dfInputIcon().forEach((direction) => {
291
221
  this.renderer.addClass(this.el.nativeElement, direction.toString());
292
222
  this.renderer.addClass(this.el.nativeElement.parentNode, `df-input-${direction}`);
293
223
  const sibling = this.el.nativeElement.parentNode.querySelector(`.input-group-${direction}`);
@@ -331,35 +261,28 @@ class DfInputIconDirective {
331
261
  });
332
262
  });
333
263
  }
334
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfInputIconDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
335
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfInputIconDirective, isStandalone: true, selector: "[dfInputIcon]", inputs: { dfInputIcon: "dfInputIcon" }, host: { listeners: { "blur": "onBlur($event)", "focus": "onFocus($event)", "keydown.Tab": "onTab($event)" } }, exportAs: ["dfInputIcon"], ngImport: i0 }); }
264
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfInputIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
265
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.3", type: DfInputIconDirective, isStandalone: true, selector: "[dfInputIcon]", inputs: { dfInputIcon: { classPropertyName: "dfInputIcon", publicName: "dfInputIcon", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "blur": "onBlur()", "focus": "onFocus()", "keydown.Tab": "onTab($event)" } }, exportAs: ["dfInputIcon"], ngImport: i0 }); }
336
266
  }
337
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfInputIconDirective, decorators: [{
267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfInputIconDirective, decorators: [{
338
268
  type: Directive,
339
269
  args: [{
340
270
  exportAs: 'dfInputIcon',
341
271
  selector: '[dfInputIcon]',
342
- standalone: true
272
+ host: {
273
+ '(blur)': 'onBlur()',
274
+ '(focus)': 'onFocus()',
275
+ '(keydown.Tab)': 'onTab($event)'
276
+ }
343
277
  }]
344
- }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { dfInputIcon: [{
345
- type: Input
346
- }], onBlur: [{
347
- type: HostListener,
348
- args: ['blur', ['$event']]
349
- }], onFocus: [{
350
- type: HostListener,
351
- args: ['focus', ['$event']]
352
- }], onTab: [{
353
- type: HostListener,
354
- args: ['keydown.Tab', ['$event']]
355
- }] } });
278
+ }] });
356
279
 
357
280
  class DfAdvancedInputModule {
358
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAdvancedInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
359
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfAdvancedInputModule, imports: [DfTriggerClickDirective, DfInputIconDirective], exports: [DfTriggerClickDirective, DfInputIconDirective] }); }
360
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAdvancedInputModule }); }
281
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAdvancedInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
282
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfAdvancedInputModule, imports: [DfTriggerClickDirective, DfInputIconDirective], exports: [DfTriggerClickDirective, DfInputIconDirective] }); }
283
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAdvancedInputModule }); }
361
284
  }
362
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAdvancedInputModule, decorators: [{
285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAdvancedInputModule, decorators: [{
363
286
  type: NgModule,
364
287
  args: [{
365
288
  imports: [DfTriggerClickDirective, DfInputIconDirective],
@@ -396,10 +319,10 @@ class DfDatepickerKeyboardService extends NgbDatepickerKeyboardService {
396
319
  event.preventDefault();
397
320
  event.stopPropagation();
398
321
  }
399
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDatepickerKeyboardService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
400
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDatepickerKeyboardService }); }
322
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDatepickerKeyboardService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
323
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDatepickerKeyboardService }); }
401
324
  }
402
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDatepickerKeyboardService, decorators: [{
325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDatepickerKeyboardService, decorators: [{
403
326
  type: Injectable
404
327
  }] });
405
328
 
@@ -423,10 +346,10 @@ class DfDirectionDetectionService {
423
346
  }
424
347
  return RightToLeftDirectionEnum.LeftToRight;
425
348
  }
426
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDirectionDetectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
427
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDirectionDetectionService, providedIn: 'root' }); }
349
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDirectionDetectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
350
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDirectionDetectionService, providedIn: 'root' }); }
428
351
  }
429
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDirectionDetectionService, decorators: [{
352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDirectionDetectionService, decorators: [{
430
353
  type: Injectable,
431
354
  args: [{
432
355
  providedIn: 'root'
@@ -437,18 +360,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
437
360
  * My dfDatepickerRange directive
438
361
  */
439
362
  class DfDatepickerRangeDirective {
440
- constructor(renderer, el, dfDirectionServ) {
441
- this.renderer = renderer;
442
- this.el = el;
443
- this.dfDirectionServ = dfDirectionServ;
363
+ constructor() {
444
364
  this.isDisabled = false;
445
365
  this.siblingsNode = [];
446
366
  this.removeListener = [];
447
367
  this.focusState = [];
368
+ this.renderer = inject(Renderer2);
369
+ this.el = inject(ElementRef);
370
+ this.dfDirectionServ = inject(DfDirectionDetectionService);
371
+ this.platformId = inject(PLATFORM_ID);
448
372
  }
449
373
  ngOnInit() {
450
374
  this.renderer.addClass(this.el.nativeElement, 'df-input-datepicker-range');
451
- this.inputsElements = [...this.el.nativeElement.querySelectorAll('input')];
375
+ if (isPlatformBrowser(this.platformId)) {
376
+ this.inputsElements = [...this.el.nativeElement.querySelectorAll('input')];
377
+ }
378
+ else {
379
+ this.inputsElements = [];
380
+ }
452
381
  if (this.inputsElements.length === 2) {
453
382
  this.inputsElements.forEach((el, index) => this.initInput(el, index));
454
383
  }
@@ -518,17 +447,16 @@ class DfDatepickerRangeDirective {
518
447
  ngOnDestroy() {
519
448
  this.removeListener.forEach((item) => item());
520
449
  }
521
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDatepickerRangeDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: DfDirectionDetectionService }], target: i0.ɵɵFactoryTarget.Directive }); }
522
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfDatepickerRangeDirective, isStandalone: true, selector: "[dfDatepickerRange]", exportAs: ["dfDatepickerRange"], ngImport: i0 }); }
450
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDatepickerRangeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
451
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfDatepickerRangeDirective, isStandalone: true, selector: "[dfDatepickerRange]", exportAs: ["dfDatepickerRange"], ngImport: i0 }); }
523
452
  }
524
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDatepickerRangeDirective, decorators: [{
453
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDatepickerRangeDirective, decorators: [{
525
454
  type: Directive,
526
455
  args: [{
527
456
  exportAs: 'dfDatepickerRange',
528
- selector: '[dfDatepickerRange]',
529
- standalone: true
457
+ selector: '[dfDatepickerRange]'
530
458
  }]
531
- }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: DfDirectionDetectionService }] });
459
+ }] });
532
460
 
533
461
  class DfDatepickerRangeService {
534
462
  constructor(calendar, formatter) {
@@ -549,7 +477,7 @@ class DfDatepickerRangeService {
549
477
  this.fromDate = date;
550
478
  this.fromDateAsStr = this.formatter.format(this.fromDate);
551
479
  }
552
- else if (this.fromDate && !this.toDate && date.after(this.fromDate)) {
480
+ else if (this.fromDate && !this.toDate && (date.equals(this.fromDate) || date.after(this.fromDate))) {
553
481
  this.toDate = date;
554
482
  this.toDateAsStr = this.formatter.format(this.toDate);
555
483
  if (this.isClosingOnToDate && this.dropDown) {
@@ -616,38 +544,26 @@ class DfDatepickerRangeService {
616
544
  this.toDate = this.toDate ? this.parseInput(this.toDate, typed) : null;
617
545
  this.toDateAsStr = this.formatter.format(this.toDate);
618
546
  }
619
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDatepickerRangeService, deps: [{ token: i1.NgbCalendar }, { token: i1.NgbDateParserFormatter }], target: i0.ɵɵFactoryTarget.Injectable }); }
620
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDatepickerRangeService }); }
547
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDatepickerRangeService, deps: [{ token: i1.NgbCalendar }, { token: i1.NgbDateParserFormatter }], target: i0.ɵɵFactoryTarget.Injectable }); }
548
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDatepickerRangeService }); }
621
549
  }
622
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDatepickerRangeService, decorators: [{
550
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDatepickerRangeService, decorators: [{
623
551
  type: Injectable
624
552
  }], ctorParameters: () => [{ type: i1.NgbCalendar }, { type: i1.NgbDateParserFormatter }] });
625
553
 
626
554
  class DfDatePickerModule {
627
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
628
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfDatePickerModule, imports: [NgbDropdownModule, CloseInputDatePickerDirective, DfDatepickerRangeDirective], exports: [CloseInputDatePickerDirective,
629
- NgbDatepickerModule,
630
- DfAdvancedInputModule,
631
- DfDatepickerRangeDirective,
632
- NgbDropdownModule] }); }
633
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDatePickerModule, providers: [
555
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
556
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfDatePickerModule, imports: [NgbDropdownModule, DfDatepickerRangeDirective], exports: [NgbDatepickerModule, DfAdvancedInputModule, DfDatepickerRangeDirective, NgbDropdownModule] }); }
557
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDatePickerModule, providers: [
634
558
  { provide: NgbDatepickerKeyboardService, useClass: DfDatepickerKeyboardService },
635
559
  DfDatepickerRangeService
636
- ], imports: [NgbDropdownModule, NgbDatepickerModule,
637
- DfAdvancedInputModule,
638
- NgbDropdownModule] }); }
560
+ ], imports: [NgbDropdownModule, NgbDatepickerModule, DfAdvancedInputModule, NgbDropdownModule] }); }
639
561
  }
640
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDatePickerModule, decorators: [{
562
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDatePickerModule, decorators: [{
641
563
  type: NgModule,
642
564
  args: [{
643
- imports: [NgbDropdownModule, CloseInputDatePickerDirective, DfDatepickerRangeDirective],
644
- exports: [
645
- CloseInputDatePickerDirective,
646
- NgbDatepickerModule,
647
- DfAdvancedInputModule,
648
- DfDatepickerRangeDirective,
649
- NgbDropdownModule
650
- ],
565
+ imports: [NgbDropdownModule, DfDatepickerRangeDirective],
566
+ exports: [NgbDatepickerModule, DfAdvancedInputModule, DfDatepickerRangeDirective, NgbDropdownModule],
651
567
  providers: [
652
568
  { provide: NgbDatepickerKeyboardService, useClass: DfDatepickerKeyboardService },
653
569
  DfDatepickerRangeService
@@ -739,10 +655,10 @@ class DfBreakpoints {
739
655
  }
740
656
  return dict;
741
657
  }
742
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfBreakpoints, deps: [{ token: BREAKPOINTS_VARS }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
743
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfBreakpoints, providedIn: 'root' }); }
658
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfBreakpoints, deps: [{ token: BREAKPOINTS_VARS }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
659
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfBreakpoints, providedIn: 'root' }); }
744
660
  }
745
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfBreakpoints, decorators: [{
661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfBreakpoints, decorators: [{
746
662
  type: Injectable,
747
663
  args: [{ providedIn: 'root' }]
748
664
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -767,10 +683,10 @@ class DfMediaQuery {
767
683
  return this.notSupported(query);
768
684
  }
769
685
  }
770
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMediaQuery, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
771
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMediaQuery, providedIn: 'root' }); }
686
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMediaQuery, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
687
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMediaQuery, providedIn: 'root' }); }
772
688
  }
773
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMediaQuery, decorators: [{
689
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMediaQuery, decorators: [{
774
690
  type: Injectable,
775
691
  args: [{ providedIn: 'root' }]
776
692
  }], ctorParameters: () => [{ type: Object, decorators: [{
@@ -827,10 +743,10 @@ class DfMediaObserver {
827
743
  this._queries.set(query, meta);
828
744
  return meta;
829
745
  }
830
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMediaObserver, deps: [{ token: DfMediaQuery }], target: i0.ɵɵFactoryTarget.Injectable }); }
831
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMediaObserver, providedIn: 'root' }); }
746
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMediaObserver, deps: [{ token: DfMediaQuery }], target: i0.ɵɵFactoryTarget.Injectable }); }
747
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMediaObserver, providedIn: 'root' }); }
832
748
  }
833
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMediaObserver, decorators: [{
749
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMediaObserver, decorators: [{
834
750
  type: Injectable,
835
751
  args: [{ providedIn: 'root' }]
836
752
  }], ctorParameters: () => [{ type: DfMediaQuery }] });
@@ -869,10 +785,10 @@ class DfMedia {
869
785
  return this.mediaObserver.observe(query);
870
786
  }), map(value => value.matches), distinctUntilChanged());
871
787
  }
872
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMedia, deps: [{ token: DfMediaObserver }, { token: DfBreakpoints }], target: i0.ɵɵFactoryTarget.Injectable }); }
873
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMedia, providedIn: 'root' }); }
788
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMedia, deps: [{ token: DfMediaObserver }, { token: DfBreakpoints }], target: i0.ɵɵFactoryTarget.Injectable }); }
789
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMedia, providedIn: 'root' }); }
874
790
  }
875
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMedia, decorators: [{
791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMedia, decorators: [{
876
792
  type: Injectable,
877
793
  args: [{ providedIn: 'root' }]
878
794
  }], ctorParameters: () => [{ type: DfMediaObserver }, { type: DfBreakpoints }] });
@@ -883,22 +799,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
883
799
  * Import DfMediaModule from DF to use all media elements provided
884
800
  */
885
801
  class DfIfMediaDirective {
886
- /**
887
- * Input of the directive
888
- * @param mediaOrBreakpoints either media query string/Array of string or in case of BS usage a
889
- * string/Array of string of the breakpoints name (sm...).
890
- */
891
- set dfIfMedia(mediaOrBreakpoints) {
892
- this._subscription.add(this._mediaService.getObservable(mediaOrBreakpoints).subscribe((isValidated) => {
893
- this.update(isValidated);
894
- }));
895
- }
896
- constructor(_viewContainerRef, _template, _mediaService) {
897
- this._viewContainerRef = _viewContainerRef;
898
- this._template = _template;
899
- this._mediaService = _mediaService;
802
+ constructor() {
900
803
  this._viewInstance = null;
804
+ /**
805
+ * Input of the directive
806
+ * @param mediaOrBreakpoints either media query string/Array of string or in case of BS usage a
807
+ * string/Array of string of the breakpoints name (sm...).
808
+ */
809
+ this.dfIfMedia = input.required();
810
+ this._viewContainerRef = inject(ViewContainerRef);
811
+ this._template = inject(TemplateRef);
812
+ this._mediaService = inject(DfMedia);
901
813
  this._subscription = new Subscription();
814
+ effect(() => {
815
+ this._subscription.unsubscribe();
816
+ this._subscription = this._mediaService.getObservable(this.dfIfMedia()).subscribe((matches) => {
817
+ this.update(matches);
818
+ });
819
+ });
902
820
  }
903
821
  ngOnDestroy() {
904
822
  if (this._viewInstance) {
@@ -915,22 +833,20 @@ class DfIfMediaDirective {
915
833
  this._viewInstance = null;
916
834
  }
917
835
  }
918
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfIfMediaDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: DfMedia }], target: i0.ɵɵFactoryTarget.Directive }); }
919
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfIfMediaDirective, isStandalone: true, selector: "[dfIfMedia]", inputs: { dfIfMedia: "dfIfMedia" }, ngImport: i0 }); }
836
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfIfMediaDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
837
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.3", type: DfIfMediaDirective, isStandalone: true, selector: "[dfIfMedia]", inputs: { dfIfMedia: { classPropertyName: "dfIfMedia", publicName: "dfIfMedia", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
920
838
  }
921
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfIfMediaDirective, decorators: [{
839
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfIfMediaDirective, decorators: [{
922
840
  type: Directive,
923
- args: [{ selector: '[dfIfMedia]', standalone: true }]
924
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: DfMedia }], propDecorators: { dfIfMedia: [{
925
- type: Input
926
- }] } });
841
+ args: [{ selector: '[dfIfMedia]' }]
842
+ }], ctorParameters: () => [] });
927
843
 
928
844
  class DfMediaModule {
929
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMediaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
930
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfMediaModule, imports: [DfIfMediaDirective], exports: [DfIfMediaDirective] }); }
931
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMediaModule }); }
845
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMediaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
846
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfMediaModule, imports: [DfIfMediaDirective], exports: [DfIfMediaDirective] }); }
847
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMediaModule }); }
932
848
  }
933
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfMediaModule, decorators: [{
849
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfMediaModule, decorators: [{
934
850
  type: NgModule,
935
851
  args: [{
936
852
  imports: [DfIfMediaDirective],
@@ -939,11 +855,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
939
855
  }] });
940
856
 
941
857
  class DfFooterModule {
942
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfFooterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
943
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfFooterModule, imports: [DfMediaModule, NgbAccordionModule], exports: [DfMediaModule, NgbAccordionModule] }); }
944
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfFooterModule, imports: [DfMediaModule, NgbAccordionModule, DfMediaModule, NgbAccordionModule] }); }
858
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfFooterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
859
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfFooterModule, imports: [DfMediaModule, NgbAccordionModule], exports: [DfMediaModule, NgbAccordionModule] }); }
860
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfFooterModule, imports: [DfMediaModule, NgbAccordionModule, DfMediaModule, NgbAccordionModule] }); }
945
861
  }
946
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfFooterModule, decorators: [{
862
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfFooterModule, decorators: [{
947
863
  type: NgModule,
948
864
  args: [{
949
865
  imports: [DfMediaModule, NgbAccordionModule],
@@ -952,8 +868,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
952
868
  }] });
953
869
 
954
870
  class DfAmadeusIconComponent {
955
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAmadeusIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
956
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: DfAmadeusIconComponent, isStandalone: true, selector: "df-amadeus-icon", ngImport: i0, template: `
871
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAmadeusIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
872
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.3", type: DfAmadeusIconComponent, isStandalone: true, selector: "df-amadeus-icon", ngImport: i0, template: `
957
873
  <svg
958
874
  version="1.1"
959
875
  xmlns="http://www.w3.org/2000/svg"
@@ -989,7 +905,7 @@ class DfAmadeusIconComponent {
989
905
  </svg>
990
906
  `, isInline: true, styles: [":root{--df-navbar-height: 3.5rem}:host{min-width:60px}:host svg{margin:10%}:host.icon-primary{fill:var(--df-primary-500)}:host.icon-white{fill:#fff}\n"] }); }
991
907
  }
992
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAmadeusIconComponent, decorators: [{
908
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAmadeusIconComponent, decorators: [{
993
909
  type: Component,
994
910
  args: [{ selector: 'df-amadeus-icon', template: `
995
911
  <svg
@@ -1025,15 +941,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1025
941
  />
1026
942
  </g>
1027
943
  </svg>
1028
- `, standalone: true, styles: [":root{--df-navbar-height: 3.5rem}:host{min-width:60px}:host svg{margin:10%}:host.icon-primary{fill:var(--df-primary-500)}:host.icon-white{fill:#fff}\n"] }]
944
+ `, styles: [":root{--df-navbar-height: 3.5rem}:host{min-width:60px}:host svg{margin:10%}:host.icon-primary{fill:var(--df-primary-500)}:host.icon-white{fill:#fff}\n"] }]
1029
945
  }] });
1030
946
 
1031
947
  class DfIconModule {
1032
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1033
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfIconModule, imports: [DfAmadeusIconComponent], exports: [DfAmadeusIconComponent] }); }
1034
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfIconModule }); }
948
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
949
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfIconModule, imports: [DfAmadeusIconComponent], exports: [DfAmadeusIconComponent] }); }
950
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfIconModule }); }
1035
951
  }
1036
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfIconModule, decorators: [{
952
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfIconModule, decorators: [{
1037
953
  type: NgModule,
1038
954
  args: [{
1039
955
  imports: [DfAmadeusIconComponent],
@@ -1041,6 +957,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1041
957
  }]
1042
958
  }] });
1043
959
 
960
+ /**
961
+ * @deprecated `DfModalService` is deprecated, use `NgbModal` from ng-bootstrap instead.
962
+ * Please note that `NgbModal` adds 'modal-open' class to the body while DfModalService adds 'df-modal-open' class. Both classes include the same styles, but you may need to update your stylesheets if you were overriding 'df-modal-open' in your application.
963
+ */
1044
964
  class DfModalService {
1045
965
  constructor(modalService, rendererFactory) {
1046
966
  this.modalService = modalService;
@@ -1064,10 +984,10 @@ class DfModalService {
1064
984
  });
1065
985
  return modalRef;
1066
986
  }
1067
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfModalService, deps: [{ token: i1.NgbModal }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
1068
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfModalService, providedIn: 'root' }); }
987
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfModalService, deps: [{ token: i1.NgbModal }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
988
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfModalService, providedIn: 'root' }); }
1069
989
  }
1070
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfModalService, decorators: [{
990
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfModalService, decorators: [{
1071
991
  type: Injectable,
1072
992
  args: [{
1073
993
  providedIn: 'root'
@@ -1079,19 +999,19 @@ class DfPopoverConfig extends NgbPopoverConfig {
1079
999
  super(...arguments);
1080
1000
  this.autoClose = 'outside';
1081
1001
  }
1082
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfPopoverConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1083
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfPopoverConfig }); }
1002
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfPopoverConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1003
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfPopoverConfig }); }
1084
1004
  }
1085
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfPopoverConfig, decorators: [{
1005
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfPopoverConfig, decorators: [{
1086
1006
  type: Injectable
1087
1007
  }] });
1088
1008
 
1089
1009
  class DfPopoverModule {
1090
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1091
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfPopoverModule, exports: [NgbPopoverModule] }); }
1092
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfPopoverModule, providers: [{ provide: NgbPopoverConfig, useClass: DfPopoverConfig }], imports: [NgbPopoverModule] }); }
1010
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1011
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfPopoverModule, exports: [NgbPopoverModule] }); }
1012
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfPopoverModule, providers: [{ provide: NgbPopoverConfig, useClass: DfPopoverConfig }], imports: [NgbPopoverModule] }); }
1093
1013
  }
1094
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfPopoverModule, decorators: [{
1014
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfPopoverModule, decorators: [{
1095
1015
  type: NgModule,
1096
1016
  args: [{
1097
1017
  exports: [NgbPopoverModule],
@@ -1101,77 +1021,89 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1101
1021
 
1102
1022
  class DfProgressbarComponent {
1103
1023
  constructor() {
1104
- this.infiniteAnimation = false;
1024
+ this.PERCENTAGE_PLACEHOLDER = '%PERCENTAGE%';
1025
+ this.FADING_DELAY_MS = 1500; // if triggered by observables, number of milliseconds after progress bar disappears once stopped
1026
+ this.infiniteAnimation = input(false, { transform: booleanAttribute });
1105
1027
  /**
1106
1028
  * Current value of the progressBar. If 'maxValue' is not defined, value represents a percentage. Otherwise, progress
1107
1029
  * bar percentage value will be computed based on the ratio of 'value/maxValue'
1108
1030
  */
1109
- this._value = 0;
1110
- this._maxValue = 100;
1031
+ this.value = input(0, { transform: numberAttribute });
1032
+ this.maxValue = input(100, { transform: numberAttribute });
1033
+ this.innerValue = signal(0);
1034
+ this.percentageValue = computed(() => {
1035
+ const val = this.innerValue();
1036
+ const maxVal = this.maxValue();
1037
+ if (val > maxVal) {
1038
+ return 100;
1039
+ }
1040
+ else {
1041
+ return Math.floor((val / maxVal) * 100);
1042
+ }
1043
+ });
1044
+ this.percentageValueChange = output();
1111
1045
  /**
1112
- * Text to be displayed on top of the progressbar
1046
+ * Observable used to trigger the start of the loading.
1047
+ * When emitting, progressbar will start to randomly increment toward 100%.
1113
1048
  */
1114
- this._text = '';
1115
- this._percentageValue = 0;
1116
- this.percentageValueChange = new EventEmitter();
1117
- this.computedText = '';
1118
- this.displayProgressBar = false;
1119
- this.FADING_DELAY_MS = 1500; // if triggered by observables, number of milliseconds after progress bar disappears once stopped
1049
+ this.start$ = input();
1050
+ /**
1051
+ * Observable used to trigger the end of the loading.
1052
+ * When emitting, it forces the progressbar to reach 100%.
1053
+ */
1054
+ this.end$ = input();
1055
+ /**
1056
+ * Id of the label used to describe the progress bar.
1057
+ * It is used in priority compared to the ariaLabel.
1058
+ */
1059
+ this.ariaLabelledBy = input();
1060
+ /**
1061
+ * Aria label used to describe the progress bar if no ariaLabelledBy is specified.
1062
+ */
1063
+ this.ariaLabel = input();
1064
+ this.text = input('');
1065
+ this.computedText = computed(() => {
1066
+ const text = this.text();
1067
+ if (text.includes(this.PERCENTAGE_PLACEHOLDER)) {
1068
+ const advancementInPercents = `${Math.floor(this.percentageValue())}%`;
1069
+ return text.replace(this.PERCENTAGE_PLACEHOLDER, advancementInPercents);
1070
+ }
1071
+ return text;
1072
+ });
1073
+ this.displayProgressBar = signal(false);
1120
1074
  this.animationOngoing = false;
1121
- }
1122
- set value(newValue) {
1123
- this._value = newValue;
1124
- this.updatePercentageValue();
1125
- this.updateText();
1126
- }
1127
- get value() {
1128
- return this._value;
1129
- }
1130
- set maxValue(newValue) {
1131
- this._maxValue = newValue;
1132
- this.updatePercentageValue();
1133
- this.updateText();
1134
- }
1135
- get maxValue() {
1136
- return this._maxValue;
1137
- }
1138
- set text(newText) {
1139
- this._text = newText;
1140
- this.updateText();
1141
- }
1142
- get text() {
1143
- return this._text;
1144
- }
1145
- set percentageValue(newValue) {
1146
- this._percentageValue = newValue;
1147
- this.percentageValueChange.emit(newValue);
1148
- }
1149
- get percentageValue() {
1150
- return this._percentageValue;
1075
+ effect(() => {
1076
+ this.innerValue.set(this.value());
1077
+ });
1078
+ effect(() => {
1079
+ this.percentageValueChange.emit(this.percentageValue());
1080
+ });
1151
1081
  }
1152
1082
  ngOnInit() {
1153
- const isTriggeredByObservables = this.start$ && this.end$;
1083
+ const start$ = this.start$();
1084
+ const end$ = this.end$();
1085
+ const isTriggeredByObservables = start$ && end$;
1154
1086
  if (isTriggeredByObservables) {
1155
- this.startSubscription = this.start$.subscribe((_) => {
1087
+ this.startSubscription = start$.subscribe((_) => {
1156
1088
  this.animationOngoing = true;
1157
1089
  this.stopAutomaticIncrement();
1158
1090
  this.resetProgressBarValues();
1159
- this.displayProgressBar = true;
1091
+ this.displayProgressBar.set(true);
1160
1092
  this.startAutomaticIncrement();
1161
1093
  });
1162
- this.endSubscription = this.end$.subscribe((_) => {
1094
+ this.endSubscription = end$.subscribe((_) => {
1163
1095
  if (this.animationOngoing) {
1164
1096
  this.animationOngoing = false;
1165
1097
  this.stopAutomaticIncrement();
1166
- this.value = 100;
1098
+ this.innerValue.set(100);
1167
1099
  setTimeout(() => {
1168
- this.displayProgressBar = false;
1100
+ this.displayProgressBar.set(false);
1169
1101
  }, this.FADING_DELAY_MS);
1170
1102
  }
1171
1103
  });
1172
1104
  }
1173
1105
  else {
1174
- this.displayProgressBar = true;
1106
+ this.displayProgressBar.set(true);
1175
1107
  }
1176
1108
  }
1177
1109
  ngOnDestroy() {
@@ -1183,33 +1115,15 @@ class DfProgressbarComponent {
1183
1115
  }
1184
1116
  this.stopAutomaticIncrement();
1185
1117
  }
1186
- updateText() {
1187
- const precentagePlaceholder = '%PERCENTAGE%';
1188
- if (this.text.includes(precentagePlaceholder)) {
1189
- const advancementInPercents = `${Math.floor(this.percentageValue)}%`;
1190
- this.computedText = this.text.replace(precentagePlaceholder, advancementInPercents);
1191
- return;
1192
- }
1193
- this.computedText = this.text;
1194
- }
1195
- updatePercentageValue() {
1196
- if (this.value > this.maxValue) {
1197
- this.percentageValue = 100;
1198
- return;
1199
- }
1200
- this.percentageValue = Math.floor((this.value / this.maxValue) * 100);
1201
- }
1202
1118
  /**
1203
1119
  * Randomly increase the percentage but making sure that it can never reach 100%
1204
1120
  */
1205
1121
  increasePercentage() {
1206
- const maximumReachableValue = 90;
1207
- const remainingPercentage = maximumReachableValue - this.value;
1122
+ const maximumReachableValue = 0.9 * this.maxValue();
1123
+ const remainingPercentage = maximumReachableValue - this.value();
1208
1124
  const averageIncreaseRatio = 0.015;
1209
1125
  const randomIncreaseRatio = Math.random() * 2 * averageIncreaseRatio;
1210
- this.value += randomIncreaseRatio * remainingPercentage;
1211
- this.updatePercentageValue();
1212
- this.updateText();
1126
+ this.innerValue.update((val) => val + randomIncreaseRatio * remainingPercentage);
1213
1127
  }
1214
1128
  /**
1215
1129
  * Clears the 'setInterval' function so that the automatic increase of the progressbar stops
@@ -1224,41 +1138,22 @@ class DfProgressbarComponent {
1224
1138
  this.intervalId = setInterval(this.increasePercentage.bind(this), 50);
1225
1139
  }
1226
1140
  resetProgressBarValues() {
1227
- this.value = 0;
1228
- this.maxValue = 100;
1141
+ this.innerValue.set(0);
1229
1142
  }
1230
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1231
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: DfProgressbarComponent, isStandalone: true, selector: "df-progressbar", inputs: { infiniteAnimation: "infiniteAnimation", value: "value", maxValue: "maxValue", text: "text", start$: "start$", end$: "end$", ariaLabelledBy: "ariaLabelledBy", ariaLabel: "ariaLabel" }, outputs: { percentageValueChange: "percentageValueChange" }, ngImport: i0, template: "@if (displayProgressBar) {\n @if (computedText) {\n <div class=\"progressbar-text mb-2\">{{ computedText }}</div>\n }\n @if (infiniteAnimation) {\n <div\n class=\"progress\"\n role=\"progressbar\"\n aria-valuetext=\"indeterminate\"\n [attr.aria-labelledby]=\"ariaLabelledBy || null\"\n [attr.aria-label]=\"!ariaLabelledBy && ariaLabel ? ariaLabel : null\"\n >\n <div class=\"progress-bar infinite-animation\"></div>\n </div>\n } @else {\n <div\n class=\"progress\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"value\"\n aria-valuemin=\"0\"\n [attr.aria-valuemax]=\"maxValue\"\n [attr.aria-valuetext]=\"computedText ? computedText : null\"\n [attr.aria-labelledby]=\"ariaLabelledBy || null\"\n [attr.aria-label]=\"!ariaLabelledBy && ariaLabel ? ariaLabel : null\"\n >\n <div [style.width.%]=\"percentageValue\" class=\"progress-bar\"></div>\n </div>\n }\n}\n" }); }
1143
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1144
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.3", type: DfProgressbarComponent, isStandalone: true, selector: "df-progressbar", inputs: { infiniteAnimation: { classPropertyName: "infiniteAnimation", publicName: "infiniteAnimation", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, start$: { classPropertyName: "start$", publicName: "start$", isSignal: true, isRequired: false, transformFunction: null }, end$: { classPropertyName: "end$", publicName: "end$", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { percentageValueChange: "percentageValueChange" }, ngImport: i0, template: "@if (displayProgressBar()) {\n @if (computedText(); as computedText) {\n <div class=\"progressbar-text mb-2\">{{ computedText }}</div>\n }\n @if (infiniteAnimation()) {\n <div\n class=\"progress\"\n role=\"progressbar\"\n aria-valuetext=\"indeterminate\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-label]=\"!ariaLabelledBy() && ariaLabel() ? ariaLabel() : null\"\n >\n <div class=\"progress-bar infinite-animation\"></div>\n </div>\n } @else {\n <div\n class=\"progress\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"innerValue()\"\n aria-valuemin=\"0\"\n [attr.aria-valuemax]=\"maxValue()\"\n [attr.aria-valuetext]=\"computedText() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-label]=\"!ariaLabelledBy() && ariaLabel() ? ariaLabel() : null\"\n >\n <div [style.width.%]=\"percentageValue()\" class=\"progress-bar\"></div>\n </div>\n }\n}\n" }); }
1232
1145
  }
1233
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressbarComponent, decorators: [{
1146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressbarComponent, decorators: [{
1234
1147
  type: Component,
1235
- args: [{ selector: 'df-progressbar', standalone: true, template: "@if (displayProgressBar) {\n @if (computedText) {\n <div class=\"progressbar-text mb-2\">{{ computedText }}</div>\n }\n @if (infiniteAnimation) {\n <div\n class=\"progress\"\n role=\"progressbar\"\n aria-valuetext=\"indeterminate\"\n [attr.aria-labelledby]=\"ariaLabelledBy || null\"\n [attr.aria-label]=\"!ariaLabelledBy && ariaLabel ? ariaLabel : null\"\n >\n <div class=\"progress-bar infinite-animation\"></div>\n </div>\n } @else {\n <div\n class=\"progress\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"value\"\n aria-valuemin=\"0\"\n [attr.aria-valuemax]=\"maxValue\"\n [attr.aria-valuetext]=\"computedText ? computedText : null\"\n [attr.aria-labelledby]=\"ariaLabelledBy || null\"\n [attr.aria-label]=\"!ariaLabelledBy && ariaLabel ? ariaLabel : null\"\n >\n <div [style.width.%]=\"percentageValue\" class=\"progress-bar\"></div>\n </div>\n }\n}\n" }]
1236
- }], propDecorators: { infiniteAnimation: [{
1237
- type: Input
1238
- }], value: [{
1239
- type: Input
1240
- }], maxValue: [{
1241
- type: Input
1242
- }], text: [{
1243
- type: Input
1244
- }], start$: [{
1245
- type: Input
1246
- }], end$: [{
1247
- type: Input
1248
- }], ariaLabelledBy: [{
1249
- type: Input
1250
- }], ariaLabel: [{
1251
- type: Input
1252
- }], percentageValueChange: [{
1253
- type: Output
1254
- }] } });
1148
+ args: [{ selector: 'df-progressbar', template: "@if (displayProgressBar()) {\n @if (computedText(); as computedText) {\n <div class=\"progressbar-text mb-2\">{{ computedText }}</div>\n }\n @if (infiniteAnimation()) {\n <div\n class=\"progress\"\n role=\"progressbar\"\n aria-valuetext=\"indeterminate\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-label]=\"!ariaLabelledBy() && ariaLabel() ? ariaLabel() : null\"\n >\n <div class=\"progress-bar infinite-animation\"></div>\n </div>\n } @else {\n <div\n class=\"progress\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"innerValue()\"\n aria-valuemin=\"0\"\n [attr.aria-valuemax]=\"maxValue()\"\n [attr.aria-valuetext]=\"computedText() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-label]=\"!ariaLabelledBy() && ariaLabel() ? ariaLabel() : null\"\n >\n <div [style.width.%]=\"percentageValue()\" class=\"progress-bar\"></div>\n </div>\n }\n}\n" }]
1149
+ }], ctorParameters: () => [] });
1255
1150
 
1256
1151
  class DfProgressbarModule {
1257
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1258
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfProgressbarModule, imports: [DfProgressbarComponent], exports: [DfProgressbarComponent, NgbProgressbarModule] }); }
1259
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressbarModule, imports: [NgbProgressbarModule] }); }
1152
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1153
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfProgressbarModule, imports: [DfProgressbarComponent], exports: [DfProgressbarComponent, NgbProgressbarModule] }); }
1154
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressbarModule, imports: [NgbProgressbarModule] }); }
1260
1155
  }
1261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressbarModule, decorators: [{
1156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressbarModule, decorators: [{
1262
1157
  type: NgModule,
1263
1158
  args: [{
1264
1159
  imports: [DfProgressbarComponent],
@@ -1294,97 +1189,71 @@ var DfProgressIndicatorContentPosition;
1294
1189
  class DfProgressIndicatorContainerComponent {
1295
1190
  constructor() {
1296
1191
  this.DEFAULT_CLASS_POSITION = 'df-progressindicator-centered';
1297
- this.positionClass = this.DEFAULT_CLASS_POSITION;
1298
- }
1299
- get classes() {
1300
- return `df-progressindicator-container ${this.containerClass || ''} ${this.positionClass}`;
1301
- }
1302
- set position(newPosition) {
1303
- switch (newPosition) {
1304
- case DfProgressIndicatorContentPosition.TOP:
1305
- this.positionClass = 'df-progressindicator-top';
1306
- break;
1307
- case DfProgressIndicatorContentPosition.BOTTOM:
1308
- this.positionClass = 'df-progressindicator-bottom';
1309
- break;
1310
- default:
1311
- this.positionClass = this.DEFAULT_CLASS_POSITION;
1312
- }
1313
- this._position = newPosition;
1314
- }
1315
- get position() {
1316
- return this._position;
1192
+ this.containerClass = input();
1193
+ this.position = input();
1194
+ this.positionClass = computed(() => {
1195
+ const position = this.position();
1196
+ switch (position) {
1197
+ case DfProgressIndicatorContentPosition.TOP:
1198
+ return 'df-progressindicator-top';
1199
+ case DfProgressIndicatorContentPosition.BOTTOM:
1200
+ return 'df-progressindicator-bottom';
1201
+ default:
1202
+ return this.DEFAULT_CLASS_POSITION;
1203
+ }
1204
+ });
1205
+ this.classes = computed(() => `df-progressindicator-container ${this.containerClass() || ''} ${this.positionClass()}`);
1317
1206
  }
1318
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1319
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: DfProgressIndicatorContainerComponent, isStandalone: true, selector: "df-progressindicator-container", inputs: { containerClass: "containerClass", position: "position" }, host: { properties: { "class": "this.classes" } }, ngImport: i0, template: `
1320
- <ng-content></ng-content>
1321
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
1207
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1208
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.3", type: DfProgressIndicatorContainerComponent, isStandalone: true, selector: "df-progressindicator-container", inputs: { containerClass: { classPropertyName: "containerClass", publicName: "containerClass", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
1322
1209
  }
1323
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorContainerComponent, decorators: [{
1210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorContainerComponent, decorators: [{
1324
1211
  type: Component,
1325
1212
  args: [{
1326
1213
  selector: 'df-progressindicator-container',
1327
1214
  encapsulation: ViewEncapsulation.None,
1328
- template: `
1329
- <ng-content></ng-content>
1330
- `,
1215
+ template: ` <ng-content></ng-content> `,
1331
1216
  changeDetection: ChangeDetectionStrategy.OnPush,
1332
- standalone: true
1217
+ host: {
1218
+ '[class]': 'classes()'
1219
+ }
1333
1220
  }]
1334
- }], propDecorators: { classes: [{
1335
- type: HostBinding,
1336
- args: ['class']
1337
- }], containerClass: [{
1338
- type: Input
1339
- }], position: [{
1340
- type: Input
1341
- }] } });
1221
+ }] });
1342
1222
 
1343
1223
  class DfDefaultSpinnerComponent {
1344
1224
  constructor() {
1345
- this.isGlobalSpinner = false;
1346
- this.contentClass = 'spinner-border text-primary';
1225
+ this.isGlobalSpinner = input(false, { transform: booleanAttribute });
1226
+ this.contentClass = input('spinner-border text-primary');
1227
+ this.ariaLabel = input();
1347
1228
  }
1348
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDefaultSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1349
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: DfDefaultSpinnerComponent, isStandalone: true, selector: "df-default-spinner", inputs: { isGlobalSpinner: "isGlobalSpinner", contentClass: "contentClass", ariaLabel: "ariaLabel" }, ngImport: i0, template: "<div [ngClass]=\"contentClass\" [attr.role]=\"isGlobalSpinner ? 'alert' : 'status'\">\n <span class=\"visually-hidden\">\n @if (ariaLabel) {\n {{ ariaLabel }}\n } @else {\n <ng-container i18n=\"@@df.progressindicator.default.spinner.ariaLabel\">Loading...</ng-container>\n }\n </span>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1229
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDefaultSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1230
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.3", type: DfDefaultSpinnerComponent, isStandalone: true, selector: "df-default-spinner", inputs: { isGlobalSpinner: { classPropertyName: "isGlobalSpinner", publicName: "isGlobalSpinner", isSignal: true, isRequired: false, transformFunction: null }, contentClass: { classPropertyName: "contentClass", publicName: "contentClass", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"contentClass()\" [attr.role]=\"isGlobalSpinner() ? 'alert' : 'status'\">\n <span class=\"visually-hidden\">\n @if (ariaLabel(); as ariaLabel) {\n {{ ariaLabel }}\n } @else {\n <ng-container i18n=\"@@df.progressindicator.default.spinner.ariaLabel\">Loading...</ng-container>\n }\n </span>\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1350
1231
  }
1351
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfDefaultSpinnerComponent, decorators: [{
1232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfDefaultSpinnerComponent, decorators: [{
1352
1233
  type: Component,
1353
- args: [{ selector: 'df-default-spinner', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule], template: "<div [ngClass]=\"contentClass\" [attr.role]=\"isGlobalSpinner ? 'alert' : 'status'\">\n <span class=\"visually-hidden\">\n @if (ariaLabel) {\n {{ ariaLabel }}\n } @else {\n <ng-container i18n=\"@@df.progressindicator.default.spinner.ariaLabel\">Loading...</ng-container>\n }\n </span>\n</div>\n" }]
1354
- }], propDecorators: { isGlobalSpinner: [{
1355
- type: Input
1356
- }], contentClass: [{
1357
- type: Input
1358
- }], ariaLabel: [{
1359
- type: Input
1360
- }] } });
1234
+ args: [{ selector: 'df-default-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"contentClass()\" [attr.role]=\"isGlobalSpinner() ? 'alert' : 'status'\">\n <span class=\"visually-hidden\">\n @if (ariaLabel(); as ariaLabel) {\n {{ ariaLabel }}\n } @else {\n <ng-container i18n=\"@@df.progressindicator.default.spinner.ariaLabel\">Loading...</ng-container>\n }\n </span>\n</div>\n" }]
1235
+ }] });
1361
1236
 
1362
1237
  class DfProgressIndicatorBackdropComponent {
1363
1238
  constructor() {
1364
- this.isGlobalBackdrop = true;
1239
+ this.backdropClass = input();
1240
+ this.isGlobalBackdrop = input(true);
1241
+ this.classes = computed(() => `df-progressindicator-backdrop ${this.backdropClass() || ''} df-progressindicator-backdrop${this.isGlobalBackdrop() ? '-global' : '-contextual'}`);
1365
1242
  }
1366
- get classes() {
1367
- return `df-progressindicator-backdrop ${this.backdropClass || ''} ${this.isGlobalBackdrop ? 'df-progressindicator-backdrop-global' : 'df-progressindicator-backdrop-contextual'}`;
1368
- }
1369
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorBackdropComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1370
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: DfProgressIndicatorBackdropComponent, isStandalone: true, selector: "df-progressindicator-backdrop", inputs: { backdropClass: "backdropClass", isGlobalBackdrop: "isGlobalBackdrop" }, host: { properties: { "class": "this.classes" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1243
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorBackdropComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1244
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.3", type: DfProgressIndicatorBackdropComponent, isStandalone: true, selector: "df-progressindicator-backdrop", inputs: { backdropClass: { classPropertyName: "backdropClass", publicName: "backdropClass", isSignal: true, isRequired: false, transformFunction: null }, isGlobalBackdrop: { classPropertyName: "isGlobalBackdrop", publicName: "isGlobalBackdrop", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1371
1245
  }
1372
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorBackdropComponent, decorators: [{
1246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorBackdropComponent, decorators: [{
1373
1247
  type: Component,
1374
1248
  args: [{
1375
1249
  selector: 'df-progressindicator-backdrop',
1376
1250
  template: '',
1377
1251
  changeDetection: ChangeDetectionStrategy.OnPush,
1378
- standalone: true
1252
+ host: {
1253
+ '[class]': 'classes()'
1254
+ }
1379
1255
  }]
1380
- }], propDecorators: { classes: [{
1381
- type: HostBinding,
1382
- args: ['class']
1383
- }], backdropClass: [{
1384
- type: Input
1385
- }], isGlobalBackdrop: [{
1386
- type: Input
1387
- }] } });
1256
+ }] });
1388
1257
 
1389
1258
  class DfProgressIndicatorRef {
1390
1259
  constructor(containerRef, contentRef, backdropRef) {
@@ -1459,10 +1328,10 @@ class ScrollBar {
1459
1328
  body.removeChild(measurer);
1460
1329
  return width;
1461
1330
  }
1462
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ScrollBar, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1463
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ScrollBar, providedIn: 'root' }); }
1331
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ScrollBar, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1332
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ScrollBar, providedIn: 'root' }); }
1464
1333
  }
1465
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ScrollBar, decorators: [{
1334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ScrollBar, decorators: [{
1466
1335
  type: Injectable,
1467
1336
  args: [{ providedIn: 'root' }]
1468
1337
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -1490,8 +1359,7 @@ class DfProgressIndicatorService {
1490
1359
  open(content, options) {
1491
1360
  const containerElt = this.getContainer(this.document, options);
1492
1361
  if (!containerElt) {
1493
- throw new Error(`[Design Factory] The specified progress indicator container "${options?.container ||
1494
- 'body'}" was not found in the DOM.`);
1362
+ throw new Error(`[Design Factory] The specified progress indicator container "${options?.container || 'body'}" was not found in the DOM.`);
1495
1363
  }
1496
1364
  // Create needed components
1497
1365
  const backdropRef = options?.backdrop !== false
@@ -1517,7 +1385,7 @@ class DfProgressIndicatorService {
1517
1385
  }
1518
1386
  if (onDestroyOperations.length > 0) {
1519
1387
  containerCmpRef.onDestroy(() => {
1520
- onDestroyOperations.forEach(operation => {
1388
+ onDestroyOperations.forEach((operation) => {
1521
1389
  operation();
1522
1390
  });
1523
1391
  });
@@ -1531,7 +1399,10 @@ class DfProgressIndicatorService {
1531
1399
  }
1532
1400
  // Apply options to the created components
1533
1401
  if (backdropRef) {
1534
- this.applyOptions(backdropRef, this.backdropAttributes, { ...options, isGlobalBackdrop: containerElt === this.document.body });
1402
+ this.applyOptions(backdropRef, this.backdropAttributes, {
1403
+ ...options,
1404
+ isGlobalBackdrop: containerElt === this.document.body
1405
+ });
1535
1406
  }
1536
1407
  this.applyOptions(containerCmpRef, this.containerAttributes, options);
1537
1408
  const progressIndicatorRef = new DfProgressIndicatorRef(containerCmpRef, contentRef, backdropRef);
@@ -1541,7 +1412,7 @@ class DfProgressIndicatorService {
1541
1412
  close(progressIndicatorRef) {
1542
1413
  const instanceIndex = this.activeInstances.indexOf(progressIndicatorRef);
1543
1414
  if (instanceIndex > -1) {
1544
- Object.keys(progressIndicatorRef).forEach(key => {
1415
+ Object.keys(progressIndicatorRef).forEach((key) => {
1545
1416
  const propertyValue = progressIndicatorRef[key];
1546
1417
  if (propertyValue && propertyValue instanceof ComponentRef) {
1547
1418
  propertyValue.destroy();
@@ -1569,12 +1440,18 @@ class DfProgressIndicatorService {
1569
1440
  }
1570
1441
  else if (content instanceof DfProgressIndicatorContentSpinner) {
1571
1442
  const cmpRef = this.createComponent(DfDefaultSpinnerComponent, cfr);
1572
- this.applyOptions(cmpRef, this.defaultSpinnerAttributes, { ...content.spinnerInput, isGlobalSpinner: container === this.document.body });
1443
+ this.applyOptions(cmpRef, this.defaultSpinnerAttributes, {
1444
+ ...content.spinnerInput,
1445
+ isGlobalSpinner: container === this.document.body
1446
+ });
1573
1447
  return cmpRef;
1574
1448
  }
1575
1449
  else if (content instanceof DfProgressIndicatorContentProgressBar) {
1576
1450
  const cmpRef = this.createComponent(DfProgressbarComponent, cfr);
1577
- this.applyOptions(cmpRef, this.defaultProgressBarAttributes, { ...content.progressBarInput, infiniteAnimation: true });
1451
+ this.applyOptions(cmpRef, this.defaultProgressBarAttributes, {
1452
+ ...content.progressBarInput,
1453
+ infiniteAnimation: true
1454
+ });
1578
1455
  return cmpRef;
1579
1456
  }
1580
1457
  else if (content instanceof TemplateRef) {
@@ -1608,19 +1485,18 @@ class DfProgressIndicatorService {
1608
1485
  }
1609
1486
  applyOptions(cmpRef, availableOptions, options) {
1610
1487
  if (options) {
1611
- const cmpInst = cmpRef.instance;
1612
1488
  availableOptions.forEach((option) => {
1613
1489
  const optionValue = options[option];
1614
1490
  if (optionValue !== null && optionValue !== undefined) {
1615
- cmpInst[option] = optionValue;
1491
+ cmpRef.setInput(option, optionValue);
1616
1492
  }
1617
1493
  });
1618
1494
  }
1619
1495
  }
1620
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorService, deps: [{ token: DOCUMENT }, { token: i0.RendererFactory2 }, { token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }, { token: ScrollBar }], target: i0.ɵɵFactoryTarget.Injectable }); }
1621
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorService, providedIn: 'root' }); }
1496
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorService, deps: [{ token: DOCUMENT }, { token: i0.RendererFactory2 }, { token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }, { token: ScrollBar }], target: i0.ɵɵFactoryTarget.Injectable }); }
1497
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorService, providedIn: 'root' }); }
1622
1498
  }
1623
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorService, decorators: [{
1499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorService, decorators: [{
1624
1500
  type: Injectable,
1625
1501
  args: [{
1626
1502
  providedIn: 'root'
@@ -1631,44 +1507,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1631
1507
  }] }, { type: i0.RendererFactory2 }, { type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }, { type: ScrollBar }] });
1632
1508
 
1633
1509
  class DfProgressIndicatorDirective {
1634
- constructor(elementRef, progressService) {
1635
- this.elementRef = elementRef;
1636
- this.progressService = progressService;
1637
- }
1638
- ngOnChanges(changes) {
1639
- if (changes['dfProgressIndicator']) {
1640
- const isProgressing = this.dfProgressIndicator;
1641
- if (isProgressing) {
1642
- const config = {
1643
- ...this.dfProgressIndicatorConfig?.options,
1644
- container: this.elementRef.nativeElement
1645
- };
1646
- this.progressIndicatorRef = this.progressService.open(this.dfProgressIndicatorConfig?.content, config);
1647
- }
1648
- else if (!isProgressing && this.progressIndicatorRef) {
1510
+ constructor() {
1511
+ this.dfProgressIndicator = input.required();
1512
+ this.dfProgressIndicatorConfig = input();
1513
+ this.elementRef = inject(ElementRef);
1514
+ this.progressService = inject(DfProgressIndicatorService);
1515
+ effect(() => {
1516
+ if (this.dfProgressIndicator()) {
1517
+ untracked(() => {
1518
+ const config = {
1519
+ ...this.dfProgressIndicatorConfig()?.options,
1520
+ container: this.elementRef.nativeElement
1521
+ };
1522
+ this.progressIndicatorRef = this.progressService.open(this.dfProgressIndicatorConfig()?.content, config);
1523
+ });
1524
+ }
1525
+ else if (this.progressIndicatorRef) {
1649
1526
  this.progressService.close(this.progressIndicatorRef);
1650
- this.progressIndicatorRef = undefined;
1651
1527
  }
1652
- }
1528
+ });
1653
1529
  }
1654
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorDirective, deps: [{ token: i0.ElementRef }, { token: DfProgressIndicatorService }], target: i0.ɵɵFactoryTarget.Directive }); }
1655
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfProgressIndicatorDirective, isStandalone: true, selector: "[dfProgressIndicator]", inputs: { dfProgressIndicator: "dfProgressIndicator", dfProgressIndicatorConfig: "dfProgressIndicatorConfig" }, usesOnChanges: true, ngImport: i0 }); }
1530
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1531
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.3", type: DfProgressIndicatorDirective, isStandalone: true, selector: "[dfProgressIndicator]", inputs: { dfProgressIndicator: { classPropertyName: "dfProgressIndicator", publicName: "dfProgressIndicator", isSignal: true, isRequired: true, transformFunction: null }, dfProgressIndicatorConfig: { classPropertyName: "dfProgressIndicatorConfig", publicName: "dfProgressIndicatorConfig", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
1656
1532
  }
1657
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorDirective, decorators: [{
1533
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorDirective, decorators: [{
1658
1534
  type: Directive,
1659
1535
  args: [{
1660
- selector: '[dfProgressIndicator]',
1661
- standalone: true
1536
+ selector: '[dfProgressIndicator]'
1662
1537
  }]
1663
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: DfProgressIndicatorService }], propDecorators: { dfProgressIndicator: [{
1664
- type: Input
1665
- }], dfProgressIndicatorConfig: [{
1666
- type: Input
1667
- }] } });
1538
+ }], ctorParameters: () => [] });
1668
1539
 
1669
1540
  class DfProgressIndicatorModule {
1670
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1671
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorModule, imports: [DfDefaultSpinnerComponent,
1541
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1542
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorModule, imports: [DfDefaultSpinnerComponent,
1672
1543
  DfProgressbarModule,
1673
1544
  DfProgressIndicatorBackdropComponent,
1674
1545
  DfProgressIndicatorContainerComponent,
@@ -1677,10 +1548,9 @@ class DfProgressIndicatorModule {
1677
1548
  DfProgressIndicatorDirective,
1678
1549
  DfProgressIndicatorBackdropComponent,
1679
1550
  DfDefaultSpinnerComponent] }); }
1680
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorModule, imports: [DfDefaultSpinnerComponent,
1681
- DfProgressbarModule, DfProgressbarModule] }); }
1551
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorModule, imports: [DfProgressbarModule, DfProgressbarModule] }); }
1682
1552
  }
1683
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfProgressIndicatorModule, decorators: [{
1553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfProgressIndicatorModule, decorators: [{
1684
1554
  type: NgModule,
1685
1555
  args: [{
1686
1556
  imports: [
@@ -1701,36 +1571,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1701
1571
  }] });
1702
1572
 
1703
1573
  /**
1704
- * @deprecated DfSliderDirectionDirective is deprecated. Use {@link https://design-factory-int.app.net6.paas.westeurope.rnd.az.amadeus.net/#/components/slider/agnosui AgnosUI Slider} instead.
1574
+ * @deprecated DfSliderDirectionDirective is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
1705
1575
  */
1706
1576
  class DfSliderDirectionDirective {
1707
- constructor(elementRef, rtlDirectionService) {
1708
- this.elementRef = elementRef;
1709
- this.rtlDirectionService = rtlDirectionService;
1577
+ constructor() {
1578
+ // Workaround due to bad export on @angular-slider/ngx-slider and https://github.com/angular/angular/issues/8277
1579
+ this.dfSliderDirection = input.required();
1580
+ this.elementRef = inject(ElementRef);
1581
+ this.rtlDirectionService = inject(DfDirectionDetectionService, { optional: true });
1710
1582
  }
1711
1583
  ngOnInit() {
1712
1584
  if (this.rtlDirectionService) {
1713
1585
  const direction = this.rtlDirectionService.getPageDirection(this.elementRef);
1714
1586
  if (direction === RightToLeftDirectionEnum.RightToLeft) {
1715
- this.host.options.rightToLeft = true;
1587
+ this.dfSliderDirection().options.rightToLeft = true;
1716
1588
  }
1717
1589
  }
1718
1590
  }
1719
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSliderDirectionDirective, deps: [{ token: i0.ElementRef }, { token: DfDirectionDetectionService, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
1720
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfSliderDirectionDirective, isStandalone: true, selector: "[dfSliderDirection]", inputs: { host: ["dfSliderDirection", "host"] }, ngImport: i0 }); }
1591
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSliderDirectionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1592
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.3", type: DfSliderDirectionDirective, isStandalone: true, selector: "[dfSliderDirection]", inputs: { dfSliderDirection: { classPropertyName: "dfSliderDirection", publicName: "dfSliderDirection", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
1721
1593
  }
1722
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSliderDirectionDirective, decorators: [{
1594
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSliderDirectionDirective, decorators: [{
1723
1595
  type: Directive,
1724
1596
  args: [{
1725
- selector: '[dfSliderDirection]',
1726
- standalone: true
1597
+ selector: '[dfSliderDirection]'
1727
1598
  }]
1728
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: DfDirectionDetectionService, decorators: [{
1729
- type: Optional
1730
- }] }], propDecorators: { host: [{
1731
- type: Input,
1732
- args: ['dfSliderDirection']
1733
- }] } });
1599
+ }] });
1734
1600
 
1735
1601
  /** Label type */
1736
1602
  var LabelType;
@@ -1928,6 +1794,9 @@ class CompatibilityHelper {
1928
1794
  }
1929
1795
  /** Detect presence of ResizeObserver API */
1930
1796
  static isResizeObserverAvailable() {
1797
+ if (typeof window === 'undefined') {
1798
+ return false;
1799
+ }
1931
1800
  return window.ResizeObserver !== undefined;
1932
1801
  }
1933
1802
  }
@@ -2024,7 +1893,7 @@ class EventListenerHelper {
2024
1893
  }
2025
1894
 
2026
1895
  /**
2027
- * @deprecated SliderElementDirective is deprecated. Use {@link https://design-factory-int.app.net6.paas.westeurope.rnd.az.amadeus.net/#/components/slider/agnosui AgnosUI Slider} instead.
1896
+ * @deprecated SliderElementDirective is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
2028
1897
  */
2029
1898
  class SliderElementDirective {
2030
1899
  get position() {
@@ -2063,6 +1932,7 @@ class SliderElementDirective {
2063
1932
  this.width = '';
2064
1933
  this.transform = '';
2065
1934
  this.eventListeners = [];
1935
+ this.platformId = inject(PLATFORM_ID);
2066
1936
  this.eventListenerHelper = new EventListenerHelper(this.renderer);
2067
1937
  }
2068
1938
  setAlwaysHide(hide) {
@@ -2147,6 +2017,14 @@ class SliderElementDirective {
2147
2017
  }
2148
2018
  }
2149
2019
  getBoundingClientRect() {
2020
+ if (isPlatformServer(this.platformId)) {
2021
+ return {
2022
+ bottom: 50,
2023
+ top: 0,
2024
+ left: 0,
2025
+ right: 50
2026
+ };
2027
+ }
2150
2028
  return this.elemRef.nativeElement.getBoundingClientRect();
2151
2029
  }
2152
2030
  on(eventName, callback, debounceInterval) {
@@ -2176,15 +2054,14 @@ class SliderElementDirective {
2176
2054
  isRefDestroyed() {
2177
2055
  return (ValueHelper.isNullOrUndefined(this.changeDetectionRef) || this.changeDetectionRef['destroyed']);
2178
2056
  }
2179
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SliderElementDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2180
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: SliderElementDirective, isStandalone: true, selector: "[ngxSliderElement]", host: { properties: { "style.opacity": "this.opacity", "style.visibility": "this.visibility", "style.left": "this.left", "style.bottom": "this.bottom", "style.height": "this.height", "style.width": "this.width", "style.transform": "this.transform" } }, ngImport: i0 }); }
2057
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SliderElementDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2058
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: SliderElementDirective, isStandalone: true, selector: "[ngxSliderElement]", host: { properties: { "style.opacity": "this.opacity", "style.visibility": "this.visibility", "style.left": "this.left", "style.bottom": "this.bottom", "style.height": "this.height", "style.width": "this.width", "style.transform": "this.transform" } }, ngImport: i0 }); }
2181
2059
  }
2182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SliderElementDirective, decorators: [{
2060
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SliderElementDirective, decorators: [{
2183
2061
  type: Directive,
2184
2062
  args: [{
2185
2063
  // eslint-disable-next-line @angular-eslint/directive-selector
2186
- selector: '[ngxSliderElement]',
2187
- standalone: true
2064
+ selector: '[ngxSliderElement]'
2188
2065
  }]
2189
2066
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }], propDecorators: { opacity: [{
2190
2067
  type: HostBinding,
@@ -2210,7 +2087,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2210
2087
  }] } });
2211
2088
 
2212
2089
  /**
2213
- * @deprecated SliderHandleDirective is deprecated. Use {@link https://design-factory-int.app.net6.paas.westeurope.rnd.az.amadeus.net/#/components/slider/agnosui AgnosUI Slider} instead.
2090
+ * @deprecated SliderHandleDirective is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
2214
2091
  */
2215
2092
  class SliderHandleDirective extends SliderElementDirective {
2216
2093
  constructor(elemRef, renderer, changeDetectionRef) {
@@ -2229,15 +2106,14 @@ class SliderHandleDirective extends SliderElementDirective {
2229
2106
  focus() {
2230
2107
  this.elemRef.nativeElement.focus();
2231
2108
  }
2232
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SliderHandleDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2233
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: SliderHandleDirective, isStandalone: true, selector: "[ngxSliderHandle]", host: { properties: { "class.ngx-slider-active": "this.active", "attr.role": "this.role", "attr.tabindex": "this.tabindex", "attr.aria-orientation": "this.ariaOrientation", "attr.aria-label": "this.ariaLabel", "attr.aria-labelledby": "this.ariaLabelledBy", "attr.aria-valuenow": "this.ariaValueNow", "attr.aria-valuetext": "this.ariaValueText", "attr.aria-valuemin": "this.ariaValueMin", "attr.aria-valuemax": "this.ariaValueMax" } }, usesInheritance: true, ngImport: i0 }); }
2109
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SliderHandleDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2110
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: SliderHandleDirective, isStandalone: true, selector: "[ngxSliderHandle]", host: { properties: { "class.ngx-slider-active": "this.active", "attr.role": "this.role", "attr.tabindex": "this.tabindex", "attr.aria-orientation": "this.ariaOrientation", "attr.aria-label": "this.ariaLabel", "attr.aria-labelledby": "this.ariaLabelledBy", "attr.aria-valuenow": "this.ariaValueNow", "attr.aria-valuetext": "this.ariaValueText", "attr.aria-valuemin": "this.ariaValueMin", "attr.aria-valuemax": "this.ariaValueMax" } }, usesInheritance: true, ngImport: i0 }); }
2234
2111
  }
2235
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SliderHandleDirective, decorators: [{
2112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SliderHandleDirective, decorators: [{
2236
2113
  type: Directive,
2237
2114
  args: [{
2238
2115
  // eslint-disable-next-line @angular-eslint/directive-selector
2239
- selector: '[ngxSliderHandle]',
2240
- standalone: true
2116
+ selector: '[ngxSliderHandle]'
2241
2117
  }]
2242
2118
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }], propDecorators: { active: [{
2243
2119
  type: HostBinding,
@@ -2272,7 +2148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2272
2148
  }] } });
2273
2149
 
2274
2150
  /**
2275
- * @deprecated SliderLabelDirective is deprecated. Use {@link https://design-factory-int.app.net6.paas.westeurope.rnd.az.amadeus.net/#/components/slider/agnosui AgnosUI Slider} instead.
2151
+ * @deprecated SliderLabelDirective is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
2276
2152
  */
2277
2153
  class SliderLabelDirective extends SliderElementDirective {
2278
2154
  get value() {
@@ -2296,28 +2172,28 @@ class SliderLabelDirective extends SliderElementDirective {
2296
2172
  this.calculateDimension();
2297
2173
  }
2298
2174
  }
2299
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SliderLabelDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2300
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: SliderLabelDirective, isStandalone: true, selector: "[ngxSliderLabel]", usesInheritance: true, ngImport: i0 }); }
2175
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SliderLabelDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
2176
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: SliderLabelDirective, isStandalone: true, selector: "[ngxSliderLabel]", usesInheritance: true, ngImport: i0 }); }
2301
2177
  }
2302
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SliderLabelDirective, decorators: [{
2178
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SliderLabelDirective, decorators: [{
2303
2179
  type: Directive,
2304
2180
  args: [{
2305
2181
  // eslint-disable-next-line @angular-eslint/directive-selector
2306
- selector: '[ngxSliderLabel]',
2307
- standalone: true
2182
+ selector: '[ngxSliderLabel]'
2308
2183
  }]
2309
2184
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }] });
2310
2185
 
2186
+ /* eslint-disable @angular-eslint/prefer-signals */
2311
2187
  /**
2312
- * @deprecated TooltipWrapperComponent is deprecated. Use {@link https://design-factory-int.app.net6.paas.westeurope.rnd.az.amadeus.net/#/components/slider/agnosui AgnosUI Slider} instead.
2188
+ * @deprecated TooltipWrapperComponent is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
2313
2189
  */
2314
2190
  class TooltipWrapperComponent {
2315
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: TooltipWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2316
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: TooltipWrapperComponent, isStandalone: true, selector: "ngx-slider-tooltip-wrapper", inputs: { template: "template", tooltip: "tooltip", placement: "placement", content: "content" }, ngImport: i0, template: "@if (template) {\n <ng-template\n *ngTemplateOutlet=\"template; context: { tooltip: tooltip, placement: placement, content: content }\"\n ></ng-template>\n} @else {\n <div class=\"ngx-slider-inner-tooltip\" [attr.title]=\"tooltip\" [attr.data-tooltip-placement]=\"placement\">\n {{ content }}\n </div>\n}\n", styles: [".ngx-slider-inner-tooltip{height:100%}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2191
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: TooltipWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2192
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.3", type: TooltipWrapperComponent, isStandalone: true, selector: "ngx-slider-tooltip-wrapper", inputs: { template: "template", tooltip: "tooltip", placement: "placement", content: "content" }, ngImport: i0, template: "@if (template) {\n <ng-template\n *ngTemplateOutlet=\"template; context: { tooltip: tooltip, placement: placement, content: content }\"\n ></ng-template>\n} @else {\n <div class=\"ngx-slider-inner-tooltip\" [attr.title]=\"tooltip\" [attr.data-tooltip-placement]=\"placement\">\n {{ content }}\n </div>\n}\n", styles: [".ngx-slider-inner-tooltip{height:100%}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2317
2193
  }
2318
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: TooltipWrapperComponent, decorators: [{
2194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: TooltipWrapperComponent, decorators: [{
2319
2195
  type: Component,
2320
- args: [{ selector: 'ngx-slider-tooltip-wrapper', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "@if (template) {\n <ng-template\n *ngTemplateOutlet=\"template; context: { tooltip: tooltip, placement: placement, content: content }\"\n ></ng-template>\n} @else {\n <div class=\"ngx-slider-inner-tooltip\" [attr.title]=\"tooltip\" [attr.data-tooltip-placement]=\"placement\">\n {{ content }}\n </div>\n}\n", styles: [".ngx-slider-inner-tooltip{height:100%}\n"] }]
2196
+ args: [{ selector: 'ngx-slider-tooltip-wrapper', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], template: "@if (template) {\n <ng-template\n *ngTemplateOutlet=\"template; context: { tooltip: tooltip, placement: placement, content: content }\"\n ></ng-template>\n} @else {\n <div class=\"ngx-slider-inner-tooltip\" [attr.title]=\"tooltip\" [attr.data-tooltip-placement]=\"placement\">\n {{ content }}\n </div>\n}\n", styles: [".ngx-slider-inner-tooltip{height:100%}\n"] }]
2321
2197
  }], propDecorators: { template: [{
2322
2198
  type: Input
2323
2199
  }], tooltip: [{
@@ -2328,6 +2204,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2328
2204
  type: Input
2329
2205
  }] } });
2330
2206
 
2207
+ /* eslint-disable @angular-eslint/prefer-signals */
2331
2208
  class Tick {
2332
2209
  constructor() {
2333
2210
  this.selected = false;
@@ -2377,7 +2254,7 @@ const NGX_SLIDER_CONTROL_VALUE_ACCESSOR = {
2377
2254
  multi: true
2378
2255
  };
2379
2256
  /**
2380
- * @deprecated SliderComponent is deprecated. Use {@link https://design-factory-int.app.net6.paas.westeurope.rnd.az.amadeus.net/#/components/slider/agnosui AgnosUI Slider} instead.
2257
+ * @deprecated SliderComponent is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
2381
2258
  */
2382
2259
  class SliderComponent {
2383
2260
  // Input event that triggers slider refresh (re-positioning of slider elements)
@@ -4220,12 +4097,12 @@ class SliderComponent {
4220
4097
  }
4221
4098
  return changeContext;
4222
4099
  }
4223
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SliderComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
4224
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: SliderComponent, isStandalone: true, selector: "ngx-slider", inputs: { value: "value", highValue: "highValue", options: "options", manualRefresh: "manualRefresh", triggerFocus: "triggerFocus" }, outputs: { valueChange: "valueChange", highValueChange: "highValueChange", userChangeStart: "userChangeStart", userChange: "userChange", userChangeEnd: "userChangeEnd" }, host: { listeners: { "window:resize": "onResize($event)" }, properties: { "class": "this.class", "class.vertical": "this.sliderElementVerticalClass", "class.animate": "this.sliderElementAnimateClass", "class.with-legend": "this.sliderElementWithLegendClass", "attr.disabled": "this.sliderElementDisabledAttr", "attr.aria-label": "this.sliderElementAriaLabel" } }, providers: [NGX_SLIDER_CONTROL_VALUE_ACCESSOR], queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], viewQueries: [{ propertyName: "leftOuterSelectionBarElement", first: true, predicate: ["leftOuterSelectionBar"], descendants: true, read: SliderElementDirective }, { propertyName: "rightOuterSelectionBarElement", first: true, predicate: ["rightOuterSelectionBar"], descendants: true, read: SliderElementDirective }, { propertyName: "fullBarElement", first: true, predicate: ["fullBar"], descendants: true, read: SliderElementDirective }, { propertyName: "selectionBarElement", first: true, predicate: ["selectionBar"], descendants: true, read: SliderElementDirective }, { propertyName: "minHandleElement", first: true, predicate: ["minHandle"], descendants: true, read: SliderHandleDirective }, { propertyName: "maxHandleElement", first: true, predicate: ["maxHandle"], descendants: true, read: SliderHandleDirective }, { propertyName: "floorLabelElement", first: true, predicate: ["floorLabel"], descendants: true, read: SliderLabelDirective }, { propertyName: "ceilLabelElement", first: true, predicate: ["ceilLabel"], descendants: true, read: SliderLabelDirective }, { propertyName: "minHandleLabelElement", first: true, predicate: ["minHandleLabel"], descendants: true, read: SliderLabelDirective }, { propertyName: "maxHandleLabelElement", first: true, predicate: ["maxHandleLabel"], descendants: true, read: SliderLabelDirective }, { propertyName: "combinedLabelElement", first: true, predicate: ["combinedLabel"], descendants: true, read: SliderLabelDirective }, { propertyName: "ticksElement", first: true, predicate: ["ticksElement"], descendants: true, read: SliderElementDirective }], usesOnChanges: true, ngImport: i0, template: "<!-- // 0 Left selection bar outside two handles -->\n<span\n ngxSliderElement\n #leftOuterSelectionBar\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-left-out-selection\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 1 Right selection bar outside two handles -->\n<span\n ngxSliderElement\n #rightOuterSelectionBar\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-right-out-selection\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 2 The whole slider bar -->\n<span\n ngxSliderElement\n #fullBar\n [class.ngx-slider-transparent]=\"fullBarTransparentClass\"\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-full-bar\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 3 Selection bar between two handles -->\n<span\n ngxSliderElement\n #selectionBar\n [class.ngx-slider-draggable]=\"selectionBarDraggableClass\"\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-selection-bar\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar ngx-slider-selection\" [ngStyle]=\"barStyle\"></span>\n</span>\n<!-- // 4 Low slider handle -->\n<span\n ngxSliderHandle\n #minHandle\n class=\"ngx-slider-span ngx-slider-pointer ngx-slider-pointer-min\"\n [ngStyle]=\"minPointerStyle\"\n></span>\n<!-- // 5 High slider handle -->\n<span\n ngxSliderHandle\n #maxHandle\n [style.display]=\"range ? 'inherit' : 'none'\"\n class=\"ngx-slider-span ngx-slider-pointer ngx-slider-pointer-max\"\n [ngStyle]=\"maxPointerStyle\"\n></span>\n<!-- // 6 Floor label -->\n<span ngxSliderLabel #floorLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-limit ngx-slider-floor\"></span>\n<!-- // 7 Ceiling label -->\n<span ngxSliderLabel #ceilLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-limit ngx-slider-ceil\"></span>\n<!-- // 8 Label above the low slider handle -->\n<span ngxSliderLabel #minHandleLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-model-value\"></span>\n<!-- // 9 Label above the high slider handle -->\n<span ngxSliderLabel #maxHandleLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-model-high\"></span>\n<!-- // 10 Combined range label when the slider handles are close ex. 15 - 17 -->\n<span ngxSliderLabel #combinedLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-combined\"></span>\n<!-- // 11 The ticks -->\n<span\n ngxSliderElement\n #ticksElement\n [hidden]=\"!showTicks\"\n [class.ngx-slider-ticks-values-under]=\"ticksUnderValuesClass\"\n class=\"ngx-slider-ticks\"\n>\n @for (t of ticks; track t) {\n <span class=\"ngx-slider-tick\" [ngClass]=\"{ 'ngx-slider-selected': t.selected }\" [ngStyle]=\"t.style\">\n <ngx-slider-tooltip-wrapper\n [template]=\"tooltipTemplate\"\n [tooltip]=\"t.tooltip\"\n [placement]=\"t.tooltipPlacement\"\n ></ngx-slider-tooltip-wrapper>\n @if (t.value !== null) {\n <ngx-slider-tooltip-wrapper\n class=\"ngx-slider-span ngx-slider-tick-value\"\n [template]=\"tooltipTemplate\"\n [tooltip]=\"t.valueTooltip\"\n [placement]=\"t.valueTooltipPlacement\"\n [content]=\"t.value\"\n ></ngx-slider-tooltip-wrapper>\n }\n @if (t.legend !== null) {\n <span class=\"ngx-slider-span ngx-slider-tick-legend\" [innerHTML]=\"t.legend\"></span>\n }\n </span>\n }\n</span>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TooltipWrapperComponent, selector: "ngx-slider-tooltip-wrapper", inputs: ["template", "tooltip", "placement", "content"] }, { kind: "directive", type: SliderLabelDirective, selector: "[ngxSliderLabel]" }, { kind: "directive", type: SliderHandleDirective, selector: "[ngxSliderHandle]" }, { kind: "directive", type: SliderElementDirective, selector: "[ngxSliderElement]" }] }); }
4100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SliderComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
4101
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.3", type: SliderComponent, isStandalone: true, selector: "ngx-slider", inputs: { value: "value", highValue: "highValue", options: "options", manualRefresh: "manualRefresh", triggerFocus: "triggerFocus" }, outputs: { valueChange: "valueChange", highValueChange: "highValueChange", userChangeStart: "userChangeStart", userChange: "userChange", userChangeEnd: "userChangeEnd" }, host: { listeners: { "window:resize": "onResize($event)" }, properties: { "class": "this.class", "class.vertical": "this.sliderElementVerticalClass", "class.animate": "this.sliderElementAnimateClass", "class.with-legend": "this.sliderElementWithLegendClass", "attr.disabled": "this.sliderElementDisabledAttr", "attr.aria-label": "this.sliderElementAriaLabel" } }, providers: [NGX_SLIDER_CONTROL_VALUE_ACCESSOR], queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], viewQueries: [{ propertyName: "leftOuterSelectionBarElement", first: true, predicate: ["leftOuterSelectionBar"], descendants: true, read: SliderElementDirective }, { propertyName: "rightOuterSelectionBarElement", first: true, predicate: ["rightOuterSelectionBar"], descendants: true, read: SliderElementDirective }, { propertyName: "fullBarElement", first: true, predicate: ["fullBar"], descendants: true, read: SliderElementDirective }, { propertyName: "selectionBarElement", first: true, predicate: ["selectionBar"], descendants: true, read: SliderElementDirective }, { propertyName: "minHandleElement", first: true, predicate: ["minHandle"], descendants: true, read: SliderHandleDirective }, { propertyName: "maxHandleElement", first: true, predicate: ["maxHandle"], descendants: true, read: SliderHandleDirective }, { propertyName: "floorLabelElement", first: true, predicate: ["floorLabel"], descendants: true, read: SliderLabelDirective }, { propertyName: "ceilLabelElement", first: true, predicate: ["ceilLabel"], descendants: true, read: SliderLabelDirective }, { propertyName: "minHandleLabelElement", first: true, predicate: ["minHandleLabel"], descendants: true, read: SliderLabelDirective }, { propertyName: "maxHandleLabelElement", first: true, predicate: ["maxHandleLabel"], descendants: true, read: SliderLabelDirective }, { propertyName: "combinedLabelElement", first: true, predicate: ["combinedLabel"], descendants: true, read: SliderLabelDirective }, { propertyName: "ticksElement", first: true, predicate: ["ticksElement"], descendants: true, read: SliderElementDirective }], usesOnChanges: true, ngImport: i0, template: "<!-- // 0 Left selection bar outside two handles -->\n<span\n ngxSliderElement\n #leftOuterSelectionBar\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-left-out-selection\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 1 Right selection bar outside two handles -->\n<span\n ngxSliderElement\n #rightOuterSelectionBar\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-right-out-selection\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 2 The whole slider bar -->\n<span\n ngxSliderElement\n #fullBar\n [class.ngx-slider-transparent]=\"fullBarTransparentClass\"\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-full-bar\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 3 Selection bar between two handles -->\n<span\n ngxSliderElement\n #selectionBar\n [class.ngx-slider-draggable]=\"selectionBarDraggableClass\"\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-selection-bar\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar ngx-slider-selection\" [ngStyle]=\"barStyle\"></span>\n</span>\n<!-- // 4 Low slider handle -->\n<span\n ngxSliderHandle\n #minHandle\n class=\"ngx-slider-span ngx-slider-pointer ngx-slider-pointer-min\"\n [ngStyle]=\"minPointerStyle\"\n></span>\n<!-- // 5 High slider handle -->\n<span\n ngxSliderHandle\n #maxHandle\n [style.display]=\"range ? 'inherit' : 'none'\"\n class=\"ngx-slider-span ngx-slider-pointer ngx-slider-pointer-max\"\n [ngStyle]=\"maxPointerStyle\"\n></span>\n<!-- // 6 Floor label -->\n<span ngxSliderLabel #floorLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-limit ngx-slider-floor\"></span>\n<!-- // 7 Ceiling label -->\n<span ngxSliderLabel #ceilLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-limit ngx-slider-ceil\"></span>\n<!-- // 8 Label above the low slider handle -->\n<span ngxSliderLabel #minHandleLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-model-value\"></span>\n<!-- // 9 Label above the high slider handle -->\n<span ngxSliderLabel #maxHandleLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-model-high\"></span>\n<!-- // 10 Combined range label when the slider handles are close ex. 15 - 17 -->\n<span ngxSliderLabel #combinedLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-combined\"></span>\n<!-- // 11 The ticks -->\n<span\n ngxSliderElement\n #ticksElement\n [hidden]=\"!showTicks\"\n [class.ngx-slider-ticks-values-under]=\"ticksUnderValuesClass\"\n class=\"ngx-slider-ticks\"\n>\n @for (t of ticks; track t) {\n <span class=\"ngx-slider-tick\" [ngClass]=\"{ 'ngx-slider-selected': t.selected }\" [ngStyle]=\"t.style\">\n <ngx-slider-tooltip-wrapper\n [template]=\"tooltipTemplate\"\n [tooltip]=\"t.tooltip\"\n [placement]=\"t.tooltipPlacement\"\n ></ngx-slider-tooltip-wrapper>\n @if (t.value !== null) {\n <ngx-slider-tooltip-wrapper\n class=\"ngx-slider-span ngx-slider-tick-value\"\n [template]=\"tooltipTemplate\"\n [tooltip]=\"t.valueTooltip\"\n [placement]=\"t.valueTooltipPlacement\"\n [content]=\"t.value\"\n ></ngx-slider-tooltip-wrapper>\n }\n @if (t.legend !== null) {\n <span class=\"ngx-slider-span ngx-slider-tick-legend\" [innerHTML]=\"t.legend\"></span>\n }\n </span>\n }\n</span>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TooltipWrapperComponent, selector: "ngx-slider-tooltip-wrapper", inputs: ["template", "tooltip", "placement", "content"] }, { kind: "directive", type: SliderLabelDirective, selector: "[ngxSliderLabel]" }, { kind: "directive", type: SliderHandleDirective, selector: "[ngxSliderHandle]" }, { kind: "directive", type: SliderElementDirective, selector: "[ngxSliderElement]" }] }); }
4225
4102
  }
4226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SliderComponent, decorators: [{
4103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SliderComponent, decorators: [{
4227
4104
  type: Component,
4228
- args: [{ selector: 'ngx-slider', providers: [NGX_SLIDER_CONTROL_VALUE_ACCESSOR], standalone: true, imports: [CommonModule, TooltipWrapperComponent, SliderLabelDirective, SliderHandleDirective, SliderElementDirective], template: "<!-- // 0 Left selection bar outside two handles -->\n<span\n ngxSliderElement\n #leftOuterSelectionBar\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-left-out-selection\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 1 Right selection bar outside two handles -->\n<span\n ngxSliderElement\n #rightOuterSelectionBar\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-right-out-selection\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 2 The whole slider bar -->\n<span\n ngxSliderElement\n #fullBar\n [class.ngx-slider-transparent]=\"fullBarTransparentClass\"\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-full-bar\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 3 Selection bar between two handles -->\n<span\n ngxSliderElement\n #selectionBar\n [class.ngx-slider-draggable]=\"selectionBarDraggableClass\"\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-selection-bar\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar ngx-slider-selection\" [ngStyle]=\"barStyle\"></span>\n</span>\n<!-- // 4 Low slider handle -->\n<span\n ngxSliderHandle\n #minHandle\n class=\"ngx-slider-span ngx-slider-pointer ngx-slider-pointer-min\"\n [ngStyle]=\"minPointerStyle\"\n></span>\n<!-- // 5 High slider handle -->\n<span\n ngxSliderHandle\n #maxHandle\n [style.display]=\"range ? 'inherit' : 'none'\"\n class=\"ngx-slider-span ngx-slider-pointer ngx-slider-pointer-max\"\n [ngStyle]=\"maxPointerStyle\"\n></span>\n<!-- // 6 Floor label -->\n<span ngxSliderLabel #floorLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-limit ngx-slider-floor\"></span>\n<!-- // 7 Ceiling label -->\n<span ngxSliderLabel #ceilLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-limit ngx-slider-ceil\"></span>\n<!-- // 8 Label above the low slider handle -->\n<span ngxSliderLabel #minHandleLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-model-value\"></span>\n<!-- // 9 Label above the high slider handle -->\n<span ngxSliderLabel #maxHandleLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-model-high\"></span>\n<!-- // 10 Combined range label when the slider handles are close ex. 15 - 17 -->\n<span ngxSliderLabel #combinedLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-combined\"></span>\n<!-- // 11 The ticks -->\n<span\n ngxSliderElement\n #ticksElement\n [hidden]=\"!showTicks\"\n [class.ngx-slider-ticks-values-under]=\"ticksUnderValuesClass\"\n class=\"ngx-slider-ticks\"\n>\n @for (t of ticks; track t) {\n <span class=\"ngx-slider-tick\" [ngClass]=\"{ 'ngx-slider-selected': t.selected }\" [ngStyle]=\"t.style\">\n <ngx-slider-tooltip-wrapper\n [template]=\"tooltipTemplate\"\n [tooltip]=\"t.tooltip\"\n [placement]=\"t.tooltipPlacement\"\n ></ngx-slider-tooltip-wrapper>\n @if (t.value !== null) {\n <ngx-slider-tooltip-wrapper\n class=\"ngx-slider-span ngx-slider-tick-value\"\n [template]=\"tooltipTemplate\"\n [tooltip]=\"t.valueTooltip\"\n [placement]=\"t.valueTooltipPlacement\"\n [content]=\"t.value\"\n ></ngx-slider-tooltip-wrapper>\n }\n @if (t.legend !== null) {\n <span class=\"ngx-slider-span ngx-slider-tick-legend\" [innerHTML]=\"t.legend\"></span>\n }\n </span>\n }\n</span>\n" }]
4105
+ args: [{ selector: 'ngx-slider', providers: [NGX_SLIDER_CONTROL_VALUE_ACCESSOR], imports: [CommonModule, TooltipWrapperComponent, SliderLabelDirective, SliderHandleDirective, SliderElementDirective], template: "<!-- // 0 Left selection bar outside two handles -->\n<span\n ngxSliderElement\n #leftOuterSelectionBar\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-left-out-selection\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 1 Right selection bar outside two handles -->\n<span\n ngxSliderElement\n #rightOuterSelectionBar\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-right-out-selection\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 2 The whole slider bar -->\n<span\n ngxSliderElement\n #fullBar\n [class.ngx-slider-transparent]=\"fullBarTransparentClass\"\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-full-bar\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar\"></span>\n</span>\n<!-- // 3 Selection bar between two handles -->\n<span\n ngxSliderElement\n #selectionBar\n [class.ngx-slider-draggable]=\"selectionBarDraggableClass\"\n class=\"ngx-slider-span ngx-slider-bar-wrapper ngx-slider-selection-bar\"\n>\n <span class=\"ngx-slider-span ngx-slider-bar ngx-slider-selection\" [ngStyle]=\"barStyle\"></span>\n</span>\n<!-- // 4 Low slider handle -->\n<span\n ngxSliderHandle\n #minHandle\n class=\"ngx-slider-span ngx-slider-pointer ngx-slider-pointer-min\"\n [ngStyle]=\"minPointerStyle\"\n></span>\n<!-- // 5 High slider handle -->\n<span\n ngxSliderHandle\n #maxHandle\n [style.display]=\"range ? 'inherit' : 'none'\"\n class=\"ngx-slider-span ngx-slider-pointer ngx-slider-pointer-max\"\n [ngStyle]=\"maxPointerStyle\"\n></span>\n<!-- // 6 Floor label -->\n<span ngxSliderLabel #floorLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-limit ngx-slider-floor\"></span>\n<!-- // 7 Ceiling label -->\n<span ngxSliderLabel #ceilLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-limit ngx-slider-ceil\"></span>\n<!-- // 8 Label above the low slider handle -->\n<span ngxSliderLabel #minHandleLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-model-value\"></span>\n<!-- // 9 Label above the high slider handle -->\n<span ngxSliderLabel #maxHandleLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-model-high\"></span>\n<!-- // 10 Combined range label when the slider handles are close ex. 15 - 17 -->\n<span ngxSliderLabel #combinedLabel class=\"ngx-slider-span ngx-slider-bubble ngx-slider-combined\"></span>\n<!-- // 11 The ticks -->\n<span\n ngxSliderElement\n #ticksElement\n [hidden]=\"!showTicks\"\n [class.ngx-slider-ticks-values-under]=\"ticksUnderValuesClass\"\n class=\"ngx-slider-ticks\"\n>\n @for (t of ticks; track t) {\n <span class=\"ngx-slider-tick\" [ngClass]=\"{ 'ngx-slider-selected': t.selected }\" [ngStyle]=\"t.style\">\n <ngx-slider-tooltip-wrapper\n [template]=\"tooltipTemplate\"\n [tooltip]=\"t.tooltip\"\n [placement]=\"t.tooltipPlacement\"\n ></ngx-slider-tooltip-wrapper>\n @if (t.value !== null) {\n <ngx-slider-tooltip-wrapper\n class=\"ngx-slider-span ngx-slider-tick-value\"\n [template]=\"tooltipTemplate\"\n [tooltip]=\"t.valueTooltip\"\n [placement]=\"t.valueTooltipPlacement\"\n [content]=\"t.value\"\n ></ngx-slider-tooltip-wrapper>\n }\n @if (t.legend !== null) {\n <span class=\"ngx-slider-span ngx-slider-tick-legend\" [innerHTML]=\"t.legend\"></span>\n }\n </span>\n }\n</span>\n" }]
4229
4106
  }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }], propDecorators: { class: [{
4230
4107
  type: HostBinding,
4231
4108
  args: ['class']
@@ -4310,19 +4187,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
4310
4187
 
4311
4188
  /**
4312
4189
  * @deprecated DfSliderModule is deprecated.
4313
- * Use {@link https://design-factory-int.app.net6.paas.westeurope.rnd.az.amadeus.net/#/components/slider/agnosui AgnosUI Slider} instead.
4190
+ * Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
4314
4191
  */
4315
4192
  class DfSliderModule {
4316
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4317
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfSliderModule, imports: [SliderComponent,
4193
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4194
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfSliderModule, imports: [SliderComponent,
4318
4195
  SliderElementDirective,
4319
4196
  SliderHandleDirective,
4320
4197
  SliderLabelDirective,
4321
4198
  TooltipWrapperComponent,
4322
4199
  DfSliderDirectionDirective], exports: [DfSliderDirectionDirective, SliderComponent] }); }
4323
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSliderModule, imports: [SliderComponent] }); }
4200
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSliderModule, imports: [SliderComponent] }); }
4324
4201
  }
4325
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSliderModule, decorators: [{
4202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSliderModule, decorators: [{
4326
4203
  type: NgModule,
4327
4204
  args: [{
4328
4205
  imports: [
@@ -4352,10 +4229,10 @@ class DfSideNavConfig {
4352
4229
  this.isAppOverlay = false;
4353
4230
  this.isAppOverlayMode = true;
4354
4231
  }
4355
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4356
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavConfig, providedIn: 'root' }); }
4232
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4233
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavConfig, providedIn: 'root' }); }
4357
4234
  }
4358
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavConfig, decorators: [{
4235
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavConfig, decorators: [{
4359
4236
  type: Injectable,
4360
4237
  args: [{ providedIn: 'root' }]
4361
4238
  }] });
@@ -4662,10 +4539,10 @@ class DfSideNavService {
4662
4539
  updateOverLay() {
4663
4540
  this._isAppOverlay$.next(this.isAppOverlayMode && this._isCollapsed$.value === false);
4664
4541
  }
4665
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavService, deps: [{ token: DfSideNavConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
4666
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavService, providedIn: 'root' }); }
4542
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavService, deps: [{ token: DfSideNavConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
4543
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavService, providedIn: 'root' }); }
4667
4544
  }
4668
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavService, decorators: [{
4545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavService, decorators: [{
4669
4546
  type: Injectable,
4670
4547
  args: [{
4671
4548
  providedIn: 'root'
@@ -4778,6 +4655,63 @@ const ngbCompleteTransition = (element) => {
4778
4655
  runningTransitions.get(element)?.complete();
4779
4656
  };
4780
4657
 
4658
+ /**
4659
+ * A configuration service for the [DfSideNavCollapseDirective](#/components/sidenav/api#DfSideNavCollapseDirective) component.
4660
+ *
4661
+ * You can inject this service, typically in your root component, and customize its properties
4662
+ * to provide default values for the sideNav used in the application.
4663
+ */
4664
+ class DfSideNavCollapseConfig {
4665
+ constructor(_ngbConfig) {
4666
+ this._ngbConfig = _ngbConfig;
4667
+ }
4668
+ get animation() {
4669
+ return this._animation === undefined ? this._ngbConfig.animation : this._animation;
4670
+ }
4671
+ set animation(animation) {
4672
+ this._animation = animation;
4673
+ }
4674
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseConfig, deps: [{ token: i1.NgbConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
4675
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseConfig, providedIn: 'root' }); }
4676
+ }
4677
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseConfig, decorators: [{
4678
+ type: Injectable,
4679
+ args: [{ providedIn: 'root' }]
4680
+ }], ctorParameters: () => [{ type: i1.NgbConfig }] });
4681
+
4682
+ /**
4683
+ * A service for managing the sidenav panel animation.
4684
+ * This service is included at root level
4685
+ *
4686
+ * Creating a sidenav is straightforward: use [DfSideNavComponent](#/components/sidenav/api#DfSideNavComponent) component
4687
+ */
4688
+ class DfSideNavCollapseService {
4689
+ constructor(_config) {
4690
+ this._config = _config;
4691
+ this._sideNavAnimation$ = new BehaviorSubject(_config.animation);
4692
+ }
4693
+ get sideNavAnimation$() {
4694
+ return this._sideNavAnimation$.asObservable();
4695
+ }
4696
+ /**
4697
+ * Use this to activate or desactivate the animation for the sideNav
4698
+ * If input is `True` it will activate the animation.
4699
+ * Default value for animation is set in by DfSideNavCollapseConfig
4700
+ *
4701
+ */
4702
+ setAnimation(on) {
4703
+ this._sideNavAnimation$.next(on);
4704
+ }
4705
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseService, deps: [{ token: DfSideNavCollapseConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
4706
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseService, providedIn: 'root' }); }
4707
+ }
4708
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseService, decorators: [{
4709
+ type: Injectable,
4710
+ args: [{
4711
+ providedIn: 'root'
4712
+ }]
4713
+ }], ctorParameters: () => [{ type: DfSideNavCollapseConfig }] });
4714
+
4781
4715
  function measureCollapsingElementWidthPx(element) {
4782
4716
  // SSR fix for without injecting the PlatformId
4783
4717
  if (typeof navigator === 'undefined') {
@@ -4850,101 +4784,58 @@ const DfCollapsingTransition = (element, animation, context) => {
4850
4784
  };
4851
4785
  };
4852
4786
 
4853
- /**
4854
- * A configuration service for the [DfSideNavCollapseDirective](#/components/sidenav/api#DfSideNavCollapseDirective) component.
4855
- *
4856
- * You can inject this service, typically in your root component, and customize its properties
4857
- * to provide default values for the sideNav used in the application.
4858
- */
4859
- class DfSideNavCollapseConfig {
4860
- constructor(_ngbConfig) {
4861
- this._ngbConfig = _ngbConfig;
4862
- }
4863
- get animation() {
4864
- return this._animation === undefined ? this._ngbConfig.animation : this._animation;
4865
- }
4866
- set animation(animation) {
4867
- this._animation = animation;
4868
- }
4869
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseConfig, deps: [{ token: i1.NgbConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
4870
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseConfig, providedIn: 'root' }); }
4871
- }
4872
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseConfig, decorators: [{
4873
- type: Injectable,
4874
- args: [{ providedIn: 'root' }]
4875
- }], ctorParameters: () => [{ type: i1.NgbConfig }] });
4876
-
4877
- /**
4878
- * A service for managing the sidenav panel animation.
4879
- * This service is included at root level
4880
- *
4881
- * Creating a sidenav is straightforward: use [DfSideNavComponent](#/components/sidenav/api#DfSideNavComponent) component
4882
- */
4883
- class DfSideNavCollapseService {
4884
- constructor(_config) {
4885
- this._config = _config;
4886
- this._sideNavAnimation$ = new BehaviorSubject(_config.animation);
4887
- }
4888
- get sideNavAnimation$() {
4889
- return this._sideNavAnimation$.asObservable();
4890
- }
4891
- /**
4892
- * Use this to activate or desactivate the animation for the sideNav
4893
- * If input is `True` it will activate the animation.
4894
- * Default value for animation is set in by DfSideNavCollapseConfig
4895
- *
4896
- */
4897
- setAnimation(on) {
4898
- this._sideNavAnimation$.next(on);
4899
- }
4900
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseService, deps: [{ token: DfSideNavCollapseConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
4901
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseService, providedIn: 'root' }); }
4902
- }
4903
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseService, decorators: [{
4904
- type: Injectable,
4905
- args: [{
4906
- providedIn: 'root'
4907
- }]
4908
- }], ctorParameters: () => [{ type: DfSideNavCollapseConfig }] });
4909
-
4910
4787
  /**
4911
4788
  * A directive to provide a simple way of hiding and showing the sideNav on the page.
4912
4789
  */
4913
4790
  class DfSideNavCollapseDirective {
4914
- constructor(_element, _sideNavCollapseService, _zone) {
4915
- this._element = _element;
4916
- this._sideNavCollapseService = _sideNavCollapseService;
4917
- this._zone = _zone;
4918
- this.dfSideNavCollapseChange = new EventEmitter();
4791
+ constructor() {
4792
+ /**
4793
+ * If `true`, will collapse the element or show it otherwise.
4794
+ */
4795
+ this.dfSideNavCollapse = input.required();
4796
+ this.collapsed = signal(false);
4797
+ this.minimized = input(false);
4798
+ this.dfSideNavCollapseChange = output();
4919
4799
  /**
4920
4800
  * An event emitted when the collapse element is shown, after the transition. It has no payload.
4921
4801
  *
4922
4802
  * @since 9.1.0
4923
4803
  */
4924
- this.shown = new EventEmitter();
4804
+ this.shown = output();
4925
4805
  /**
4926
4806
  * An event emitted when the collapse element is hidden, after the transition. It has no payload.
4927
4807
  *
4928
4808
  * @since 9.1.0
4929
4809
  */
4930
- this.hidden = new EventEmitter();
4931
- this.minimized = false;
4810
+ this.hidden = output();
4811
+ this.elementRef = inject(ElementRef);
4812
+ this.sideNavCollapseService = inject(DfSideNavCollapseService);
4813
+ this.zone = inject(NgZone);
4814
+ this.injector = inject(Injector);
4932
4815
  this.animation = false;
4933
- this.subscription = new Subscription();
4934
- this.subscription.add(_sideNavCollapseService.sideNavAnimation$.subscribe((value) => {
4816
+ effect(() => {
4817
+ this.collapsed.set(this.dfSideNavCollapse());
4818
+ });
4819
+ this.sideNavCollapseService.sideNavAnimation$.pipe(takeUntilDestroyed()).subscribe((value) => {
4935
4820
  this.animation = value;
4936
- }));
4821
+ });
4937
4822
  }
4938
4823
  ngOnInit() {
4939
- this._runTransition(this.collapsed, false, this.minimized);
4940
- }
4941
- ngOnChanges(simpleChanges) {
4942
- if (simpleChanges['collapsed'] && !simpleChanges['collapsed'].firstChange) {
4943
- this._runTransitionWithEvents(this.collapsed, this.animation, this.minimized);
4944
- }
4945
- }
4946
- ngOnDestroy() {
4947
- this.subscription.unsubscribe();
4824
+ let firstRun = true;
4825
+ effect(() => {
4826
+ const collapsed = this.collapsed();
4827
+ // we only track the collapsed signal
4828
+ untracked(() => {
4829
+ // first time the effect is run, we run the transition without triggering event emitters
4830
+ if (firstRun) {
4831
+ this.runTransition(collapsed, this.animation, this.minimized());
4832
+ }
4833
+ else {
4834
+ this.runTransitionWithEvents(collapsed, this.animation, this.minimized());
4835
+ }
4836
+ firstRun = false;
4837
+ });
4838
+ }, { injector: this.injector });
4948
4839
  }
4949
4840
  /**
4950
4841
  * Triggers collapsing programmatically.
@@ -4954,20 +4845,18 @@ class DfSideNavCollapseDirective {
4954
4845
  *
4955
4846
  * @since 9.1.0
4956
4847
  */
4957
- toggle(open = this.collapsed) {
4958
- this.collapsed = !open;
4959
- this.dfSideNavCollapseChange.next(this.collapsed);
4960
- this._runTransitionWithEvents(this.collapsed, this.animation, this.minimized);
4848
+ toggle(open = this.collapsed()) {
4849
+ this.collapsed.set(!open);
4961
4850
  }
4962
- _runTransition(collapsed, animation, minimizedInput) {
4963
- return ngbRunTransition(this._zone, this._element.nativeElement, DfCollapsingTransition, {
4851
+ runTransition(collapsed, animation, minimizedInput) {
4852
+ return ngbRunTransition(this.zone, this.elementRef.nativeElement, DfCollapsingTransition, {
4964
4853
  animation,
4965
4854
  runningTransition: 'stop',
4966
4855
  context: { direction: collapsed ? 'hide' : 'show', minimized: minimizedInput }
4967
4856
  });
4968
4857
  }
4969
- _runTransitionWithEvents(collapsed, animation, minimized) {
4970
- this._runTransition(collapsed, animation, minimized).subscribe(() => {
4858
+ runTransitionWithEvents(collapsed, animation, minimized) {
4859
+ this.runTransition(collapsed, animation, minimized).subscribe(() => {
4971
4860
  if (collapsed) {
4972
4861
  this.hidden.emit();
4973
4862
  }
@@ -4976,31 +4865,20 @@ class DfSideNavCollapseDirective {
4976
4865
  }
4977
4866
  });
4978
4867
  }
4979
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseDirective, deps: [{ token: i0.ElementRef }, { token: DfSideNavCollapseService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
4980
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfSideNavCollapseDirective, isStandalone: true, selector: "[dfSideNavCollapse]", inputs: { collapsed: ["dfSideNavCollapse", "collapsed"], minimized: "minimized" }, outputs: { dfSideNavCollapseChange: "dfSideNavCollapseChange", shown: "shown", hidden: "hidden" }, exportAs: ["dfSideNavCollapse"], usesOnChanges: true, ngImport: i0 }); }
4868
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
4869
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.3", type: DfSideNavCollapseDirective, isStandalone: true, selector: "[dfSideNavCollapse]", inputs: { dfSideNavCollapse: { classPropertyName: "dfSideNavCollapse", publicName: "dfSideNavCollapse", isSignal: true, isRequired: true, transformFunction: null }, minimized: { classPropertyName: "minimized", publicName: "minimized", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dfSideNavCollapseChange: "dfSideNavCollapseChange", shown: "shown", hidden: "hidden" }, exportAs: ["dfSideNavCollapse"], ngImport: i0 }); }
4981
4870
  }
4982
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseDirective, decorators: [{
4871
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseDirective, decorators: [{
4983
4872
  type: Directive,
4984
- args: [{ selector: '[dfSideNavCollapse]', exportAs: 'dfSideNavCollapse', standalone: true }]
4985
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: DfSideNavCollapseService }, { type: i0.NgZone }], propDecorators: { collapsed: [{
4986
- type: Input,
4987
- args: ['dfSideNavCollapse']
4988
- }], dfSideNavCollapseChange: [{
4989
- type: Output
4990
- }], shown: [{
4991
- type: Output
4992
- }], hidden: [{
4993
- type: Output
4994
- }], minimized: [{
4995
- type: Input
4996
- }] } });
4873
+ args: [{ selector: '[dfSideNavCollapse]', exportAs: 'dfSideNavCollapse' }]
4874
+ }], ctorParameters: () => [] });
4997
4875
 
4998
4876
  class DfSideNavCollapseModule {
4999
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5000
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseModule, imports: [DfSideNavCollapseDirective], exports: [DfSideNavCollapseDirective] }); }
5001
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseModule }); }
4877
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4878
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseModule, imports: [DfSideNavCollapseDirective], exports: [DfSideNavCollapseDirective] }); }
4879
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseModule }); }
5002
4880
  }
5003
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavCollapseModule, decorators: [{
4881
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavCollapseModule, decorators: [{
5004
4882
  type: NgModule,
5005
4883
  args: [{
5006
4884
  imports: [DfSideNavCollapseDirective],
@@ -5021,14 +4899,13 @@ class DfManageSideNavDirective {
5021
4899
  this.renderer.removeClass(this.element.nativeElement, 'df-sidenav-list-withactivated');
5022
4900
  }
5023
4901
  }
5024
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfManageSideNavDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
5025
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfManageSideNavDirective, isStandalone: true, selector: "[dfManageSideNav]", ngImport: i0 }); }
4902
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfManageSideNavDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
4903
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfManageSideNavDirective, isStandalone: true, selector: "[dfManageSideNav]", ngImport: i0 }); }
5026
4904
  }
5027
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfManageSideNavDirective, decorators: [{
4905
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfManageSideNavDirective, decorators: [{
5028
4906
  type: Directive,
5029
4907
  args: [{
5030
- selector: '[dfManageSideNav]',
5031
- standalone: true
4908
+ selector: '[dfManageSideNav]'
5032
4909
  }]
5033
4910
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
5034
4911
 
@@ -5042,13 +4919,13 @@ function hasOverflow(element) {
5042
4919
 
5043
4920
  /**
5044
4921
  * DfTitleTruncate directive
5045
- * It adds the title attribute with the element's inner text as value
4922
+ * It adds the title attribute with the element's textContent as value
5046
4923
  * when the element is truncated.
5047
4924
  */
5048
4925
  class DfTitleTruncateDirective {
5049
- constructor(elementRef, renderer) {
5050
- this.elementRef = elementRef;
5051
- this.renderer = renderer;
4926
+ constructor() {
4927
+ this.elementRef = inject((ElementRef));
4928
+ this.renderer = inject(Renderer2);
5052
4929
  }
5053
4930
  ngOnInit() {
5054
4931
  this.renderer.addClass(this.elementRef.nativeElement, 'text-truncate');
@@ -5057,24 +4934,22 @@ class DfTitleTruncateDirective {
5057
4934
  const { nativeElement } = this.elementRef;
5058
4935
  const titleAttributeName = 'title';
5059
4936
  if (hasOverflow(nativeElement)) {
5060
- const value = nativeElement.innerText;
5061
- nativeElement.setAttribute(titleAttributeName, value);
4937
+ nativeElement.setAttribute(titleAttributeName, nativeElement.textContent);
5062
4938
  }
5063
4939
  else if (nativeElement.getAttribute(titleAttributeName)) {
5064
4940
  nativeElement.removeAttribute(titleAttributeName);
5065
4941
  }
5066
4942
  }
5067
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfTitleTruncateDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
5068
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfTitleTruncateDirective, isStandalone: true, selector: "[dfTitleTruncate]", exportAs: ["dfTitleTruncate"], ngImport: i0 }); }
4943
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfTitleTruncateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
4944
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfTitleTruncateDirective, isStandalone: true, selector: "[dfTitleTruncate]", exportAs: ["dfTitleTruncate"], ngImport: i0 }); }
5069
4945
  }
5070
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfTitleTruncateDirective, decorators: [{
4946
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfTitleTruncateDirective, decorators: [{
5071
4947
  type: Directive,
5072
4948
  args: [{
5073
4949
  exportAs: 'dfTitleTruncate',
5074
- selector: '[dfTitleTruncate]',
5075
- standalone: true
4950
+ selector: '[dfTitleTruncate]'
5076
4951
  }]
5077
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
4952
+ }] });
5078
4953
 
5079
4954
  let uniqueId = 0;
5080
4955
  /**
@@ -5088,6 +4963,11 @@ let uniqueId = 0;
5088
4963
  */
5089
4964
  class DfSideNavListComponent {
5090
4965
  constructor() {
4966
+ this.items = input.required();
4967
+ this.tplIcon = input();
4968
+ this.tplItem = input();
4969
+ this.currentItem = input();
4970
+ this.id = input();
5091
4971
  this.controlledUniqueId = this.getControlledUniqueId();
5092
4972
  this.sideNavService = inject(DfSideNavService);
5093
4973
  }
@@ -5095,64 +4975,54 @@ class DfSideNavListComponent {
5095
4975
  uniqueId++;
5096
4976
  return `df-sidenav-id-${uniqueId};`;
5097
4977
  }
5098
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5099
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: DfSideNavListComponent, isStandalone: true, selector: "df-sidenavlist", inputs: { items: "items", tplIcon: "tplIcon", tplItem: "tplItem", currentItem: "currentItem", id: "id" }, ngImport: i0, template: "<ul class=\"df-sidenav-list\" [ngbCollapse]=\"currentItem?.isCollapsed ?? false\" [attr.id]=\"id\">\n @for (item of items; track item; let i = $index) {\n <li dfManageSideNav>\n <ng-template #dfSideNavItemContent>\n @if (tplIcon && item.icon) {\n <ng-template\n [ngTemplateOutlet]=\"tplIcon.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n } @else if (item.icon) {\n <span aria-hidden=\"true\" class=\"{{ item.icon }} df-sidenav-icon me-3\"></span>\n }\n <span class=\"flex-grow-1 text-nowrap\" dfTitleTruncate>{{ item.title }}</span>\n </ng-template>\n @switch (item.type) {\n @case (sideNavService.type.subMenus) {\n <ng-template #subMenus>\n <button\n class=\"df-sidenav-item d-flex align-items-center\"\n (click)=\"sideNavService.toggle(item)\"\n type=\"button\"\n [attr.aria-expanded]=\"!item.isCollapsed\"\n [attr.aria-controls]=\"'sidenavControl' + controlledUniqueId.toString() + '-' + i\"\n [class.df-sidenav-item-withicon]=\"item.icon\"\n >\n @if (tplIcon && item.icon) {\n <ng-template\n [ngTemplateOutlet]=\"tplIcon.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n } @else if (item.icon) {\n <span aria-hidden=\"true\" class=\"{{ item.icon }} df-sidenav-icon me-3\"></span>\n }\n <span class=\"flex-grow-1 text-nowrap\" dfTitleTruncate>{{ item.title }}</span>\n <span\n class=\"ms-3 df-sidenav-collapse-icon fa-light\"\n [class.fa-chevron-down]=\"item.isCollapsed\"\n [class.fa-chevron-up]=\"!item.isCollapsed\"\n ></span>\n <!-- put the chevron as icon directly in the menu -->\n <!-- todo the icon and the minimized -->\n </button>\n <!-- we don't pass the icons as they are not suppose to have ones ??-->\n <df-sidenavlist\n [items]=\"item.subMenus ?? []\"\n [tplItem]=\"tplItem\"\n [currentItem]=\"item\"\n [id]=\"'sidenavControl' + controlledUniqueId.toString() + '-' + i\"\n ></df-sidenavlist>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"subMenus\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"subMenus\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.actionButton) {\n <ng-template #dfSideNavItemButton>\n <button\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n (click)=\"sideNavService.activeItem(item)\"\n [class.active]=\"item.isActive\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </button>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfSideNavItemButton\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfSideNavItemButton\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.routerLink) {\n <ng-template #dfRouterTemplate>\n <a\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n routerLinkActive=\"active\"\n routerLink=\"{{ item.value }}\"\n ariaCurrentWhenActive=\"page\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </a>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfRouterTemplate\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfRouterTemplate\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.separator) {\n <ng-template #dfSeparatorTmp>\n <hr class=\"spacing-01\" />\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfSeparatorTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfSeparatorTmp\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.template) {\n @if (tplItem) {\n <ng-template\n [ngTemplateOutlet]=\"tplItem.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n }\n }\n @case (sideNavService.type.title) {\n <ng-template #dfTitleTmp>\n <div class=\"df-sidenav-item df-sidenav-title d-flex align-items-center flex-grow-1\">\n <span class=\"text-nowrap text-uppercase text-muted\" dfTitleTruncate>{{ item.title }}</span>\n </div>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfTitleTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfTitleTmp\"></ng-container>\n </ng-container>\n }\n }\n @default {\n <ng-template #dfLinkDefaultTmp>\n <a\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n href=\"{{ item.value }}\"\n [class.active]=\"item.isActive && item.type === sideNavService.type.link\"\n [attr.target]=\"item.type === sideNavService.type.externalLink ? '_blank' : ''\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </a>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfLinkDefaultTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfLinkDefaultTmp\"></ng-container>\n </ng-container>\n }\n }\n }\n </li>\n }\n</ul>\n", dependencies: [{ kind: "component", type: DfSideNavListComponent, selector: "df-sidenavlist", inputs: ["items", "tplIcon", "tplItem", "currentItem", "id"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NgbCollapseModule }, { kind: "directive", type: i1.NgbCollapse, selector: "[ngbCollapse]", inputs: ["animation", "ngbCollapse", "horizontal"], outputs: ["ngbCollapseChange", "shown", "hidden"], exportAs: ["ngbCollapse"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: DfMediaModule }, { kind: "directive", type: DfIfMediaDirective, selector: "[dfIfMedia]", inputs: ["dfIfMedia"] }, { kind: "ngmodule", type: DfSideNavCollapseModule }, { kind: "directive", type: DfManageSideNavDirective, selector: "[dfManageSideNav]" }, { kind: "directive", type: DfTitleTruncateDirective, selector: "[dfTitleTruncate]", exportAs: ["dfTitleTruncate"] }] }); }
4978
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4979
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.3", type: DfSideNavListComponent, isStandalone: true, selector: "df-sidenavlist", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, tplIcon: { classPropertyName: "tplIcon", publicName: "tplIcon", isSignal: true, isRequired: false, transformFunction: null }, tplItem: { classPropertyName: "tplItem", publicName: "tplItem", isSignal: true, isRequired: false, transformFunction: null }, currentItem: { classPropertyName: "currentItem", publicName: "currentItem", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ul class=\"df-sidenav-list\" [ngbCollapse]=\"currentItem()?.isCollapsed ?? false\" [attr.id]=\"id()\">\n @for (item of items(); track item; let i = $index) {\n <li dfManageSideNav>\n <ng-template #dfSideNavItemContent>\n @let tIcon = tplIcon();\n @if (tIcon && item.icon) {\n <ng-template\n [ngTemplateOutlet]=\"tIcon.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n } @else if (item.icon) {\n <span aria-hidden=\"true\" class=\"{{ item.icon }} df-sidenav-icon me-3\"></span>\n }\n <span class=\"flex-grow-1 text-nowrap\" dfTitleTruncate>{{ item.title }}</span>\n </ng-template>\n @switch (item.type) {\n @case (sideNavService.type.subMenus) {\n <ng-template #subMenus>\n <button\n class=\"df-sidenav-item d-flex align-items-center\"\n (click)=\"sideNavService.toggle(item)\"\n type=\"button\"\n [attr.aria-expanded]=\"!item.isCollapsed\"\n [attr.aria-controls]=\"'sidenavControl' + controlledUniqueId.toString() + '-' + i\"\n [class.df-sidenav-item-withicon]=\"item.icon\"\n >\n @let tIcon = tplIcon();\n @if (tIcon && item.icon) {\n <ng-template\n [ngTemplateOutlet]=\"tIcon.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n } @else if (item.icon) {\n <span aria-hidden=\"true\" class=\"{{ item.icon }} df-sidenav-icon me-3\"></span>\n }\n <span class=\"flex-grow-1 text-nowrap\" dfTitleTruncate>{{ item.title }}</span>\n <span\n class=\"ms-3 df-sidenav-collapse-icon fa-light\"\n [class.fa-chevron-down]=\"item.isCollapsed\"\n [class.fa-chevron-up]=\"!item.isCollapsed\"\n ></span>\n <!-- put the chevron as icon directly in the menu -->\n <!-- todo the icon and the minimized -->\n </button>\n <!-- we don't pass the icons as they are not suppose to have ones ??-->\n <df-sidenavlist\n [items]=\"item.subMenus ?? []\"\n [tplItem]=\"tplItem()\"\n [currentItem]=\"item\"\n [id]=\"'sidenavControl' + controlledUniqueId.toString() + '-' + i\"\n ></df-sidenavlist>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"subMenus\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"subMenus\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.actionButton) {\n <ng-template #dfSideNavItemButton>\n <button\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n (click)=\"sideNavService.activeItem(item)\"\n [class.active]=\"item.isActive\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </button>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfSideNavItemButton\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfSideNavItemButton\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.routerLink) {\n <ng-template #dfRouterTemplate>\n <a\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n routerLinkActive=\"active\"\n routerLink=\"{{ item.value }}\"\n ariaCurrentWhenActive=\"page\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </a>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfRouterTemplate\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfRouterTemplate\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.separator) {\n <ng-template #dfSeparatorTmp>\n <hr class=\"spacing-01\" />\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfSeparatorTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfSeparatorTmp\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.template) {\n @let tItem = tplItem();\n @if (tItem) {\n <ng-template\n [ngTemplateOutlet]=\"tItem.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n }\n }\n @case (sideNavService.type.title) {\n <ng-template #dfTitleTmp>\n <div class=\"df-sidenav-item df-sidenav-title d-flex align-items-center flex-grow-1\">\n <span class=\"text-nowrap text-uppercase text-muted\" dfTitleTruncate>{{ item.title }}</span>\n </div>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfTitleTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfTitleTmp\"></ng-container>\n </ng-container>\n }\n }\n @default {\n <ng-template #dfLinkDefaultTmp>\n <a\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n href=\"{{ item.value }}\"\n [class.active]=\"item.isActive && item.type === sideNavService.type.link\"\n [attr.target]=\"item.type === sideNavService.type.externalLink ? '_blank' : ''\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </a>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfLinkDefaultTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfLinkDefaultTmp\"></ng-container>\n </ng-container>\n }\n }\n }\n </li>\n }\n</ul>\n", dependencies: [{ kind: "component", type: DfSideNavListComponent, selector: "df-sidenavlist", inputs: ["items", "tplIcon", "tplItem", "currentItem", "id"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NgbCollapseModule }, { kind: "directive", type: i1.NgbCollapse, selector: "[ngbCollapse]", inputs: ["animation", "ngbCollapse", "horizontal"], outputs: ["ngbCollapseChange", "shown", "hidden"], exportAs: ["ngbCollapse"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: DfMediaModule }, { kind: "directive", type: DfIfMediaDirective, selector: "[dfIfMedia]", inputs: ["dfIfMedia"] }, { kind: "ngmodule", type: DfSideNavCollapseModule }, { kind: "directive", type: DfManageSideNavDirective, selector: "[dfManageSideNav]" }, { kind: "directive", type: DfTitleTruncateDirective, selector: "[dfTitleTruncate]", exportAs: ["dfTitleTruncate"] }] }); }
5100
4980
  }
5101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavListComponent, decorators: [{
4981
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavListComponent, decorators: [{
5102
4982
  type: Component,
5103
- args: [{ selector: 'df-sidenavlist', standalone: true, imports: [
5104
- CommonModule,
4983
+ args: [{ selector: 'df-sidenavlist', imports: [
4984
+ NgTemplateOutlet,
5105
4985
  NgbCollapseModule,
5106
4986
  RouterModule,
5107
4987
  DfMediaModule,
5108
4988
  DfSideNavCollapseModule,
5109
4989
  DfManageSideNavDirective,
5110
4990
  DfTitleTruncateDirective
5111
- ], template: "<ul class=\"df-sidenav-list\" [ngbCollapse]=\"currentItem?.isCollapsed ?? false\" [attr.id]=\"id\">\n @for (item of items; track item; let i = $index) {\n <li dfManageSideNav>\n <ng-template #dfSideNavItemContent>\n @if (tplIcon && item.icon) {\n <ng-template\n [ngTemplateOutlet]=\"tplIcon.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n } @else if (item.icon) {\n <span aria-hidden=\"true\" class=\"{{ item.icon }} df-sidenav-icon me-3\"></span>\n }\n <span class=\"flex-grow-1 text-nowrap\" dfTitleTruncate>{{ item.title }}</span>\n </ng-template>\n @switch (item.type) {\n @case (sideNavService.type.subMenus) {\n <ng-template #subMenus>\n <button\n class=\"df-sidenav-item d-flex align-items-center\"\n (click)=\"sideNavService.toggle(item)\"\n type=\"button\"\n [attr.aria-expanded]=\"!item.isCollapsed\"\n [attr.aria-controls]=\"'sidenavControl' + controlledUniqueId.toString() + '-' + i\"\n [class.df-sidenav-item-withicon]=\"item.icon\"\n >\n @if (tplIcon && item.icon) {\n <ng-template\n [ngTemplateOutlet]=\"tplIcon.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n } @else if (item.icon) {\n <span aria-hidden=\"true\" class=\"{{ item.icon }} df-sidenav-icon me-3\"></span>\n }\n <span class=\"flex-grow-1 text-nowrap\" dfTitleTruncate>{{ item.title }}</span>\n <span\n class=\"ms-3 df-sidenav-collapse-icon fa-light\"\n [class.fa-chevron-down]=\"item.isCollapsed\"\n [class.fa-chevron-up]=\"!item.isCollapsed\"\n ></span>\n <!-- put the chevron as icon directly in the menu -->\n <!-- todo the icon and the minimized -->\n </button>\n <!-- we don't pass the icons as they are not suppose to have ones ??-->\n <df-sidenavlist\n [items]=\"item.subMenus ?? []\"\n [tplItem]=\"tplItem\"\n [currentItem]=\"item\"\n [id]=\"'sidenavControl' + controlledUniqueId.toString() + '-' + i\"\n ></df-sidenavlist>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"subMenus\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"subMenus\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.actionButton) {\n <ng-template #dfSideNavItemButton>\n <button\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n (click)=\"sideNavService.activeItem(item)\"\n [class.active]=\"item.isActive\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </button>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfSideNavItemButton\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfSideNavItemButton\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.routerLink) {\n <ng-template #dfRouterTemplate>\n <a\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n routerLinkActive=\"active\"\n routerLink=\"{{ item.value }}\"\n ariaCurrentWhenActive=\"page\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </a>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfRouterTemplate\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfRouterTemplate\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.separator) {\n <ng-template #dfSeparatorTmp>\n <hr class=\"spacing-01\" />\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfSeparatorTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfSeparatorTmp\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.template) {\n @if (tplItem) {\n <ng-template\n [ngTemplateOutlet]=\"tplItem.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n }\n }\n @case (sideNavService.type.title) {\n <ng-template #dfTitleTmp>\n <div class=\"df-sidenav-item df-sidenav-title d-flex align-items-center flex-grow-1\">\n <span class=\"text-nowrap text-uppercase text-muted\" dfTitleTruncate>{{ item.title }}</span>\n </div>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfTitleTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfTitleTmp\"></ng-container>\n </ng-container>\n }\n }\n @default {\n <ng-template #dfLinkDefaultTmp>\n <a\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n href=\"{{ item.value }}\"\n [class.active]=\"item.isActive && item.type === sideNavService.type.link\"\n [attr.target]=\"item.type === sideNavService.type.externalLink ? '_blank' : ''\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </a>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfLinkDefaultTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfLinkDefaultTmp\"></ng-container>\n </ng-container>\n }\n }\n }\n </li>\n }\n</ul>\n" }]
5112
- }], propDecorators: { items: [{
5113
- type: Input
5114
- }], tplIcon: [{
5115
- type: Input
5116
- }], tplItem: [{
5117
- type: Input
5118
- }], currentItem: [{
5119
- type: Input
5120
- }], id: [{
5121
- type: Input
5122
- }] } });
4991
+ ], template: "<ul class=\"df-sidenav-list\" [ngbCollapse]=\"currentItem()?.isCollapsed ?? false\" [attr.id]=\"id()\">\n @for (item of items(); track item; let i = $index) {\n <li dfManageSideNav>\n <ng-template #dfSideNavItemContent>\n @let tIcon = tplIcon();\n @if (tIcon && item.icon) {\n <ng-template\n [ngTemplateOutlet]=\"tIcon.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n } @else if (item.icon) {\n <span aria-hidden=\"true\" class=\"{{ item.icon }} df-sidenav-icon me-3\"></span>\n }\n <span class=\"flex-grow-1 text-nowrap\" dfTitleTruncate>{{ item.title }}</span>\n </ng-template>\n @switch (item.type) {\n @case (sideNavService.type.subMenus) {\n <ng-template #subMenus>\n <button\n class=\"df-sidenav-item d-flex align-items-center\"\n (click)=\"sideNavService.toggle(item)\"\n type=\"button\"\n [attr.aria-expanded]=\"!item.isCollapsed\"\n [attr.aria-controls]=\"'sidenavControl' + controlledUniqueId.toString() + '-' + i\"\n [class.df-sidenav-item-withicon]=\"item.icon\"\n >\n @let tIcon = tplIcon();\n @if (tIcon && item.icon) {\n <ng-template\n [ngTemplateOutlet]=\"tIcon.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n } @else if (item.icon) {\n <span aria-hidden=\"true\" class=\"{{ item.icon }} df-sidenav-icon me-3\"></span>\n }\n <span class=\"flex-grow-1 text-nowrap\" dfTitleTruncate>{{ item.title }}</span>\n <span\n class=\"ms-3 df-sidenav-collapse-icon fa-light\"\n [class.fa-chevron-down]=\"item.isCollapsed\"\n [class.fa-chevron-up]=\"!item.isCollapsed\"\n ></span>\n <!-- put the chevron as icon directly in the menu -->\n <!-- todo the icon and the minimized -->\n </button>\n <!-- we don't pass the icons as they are not suppose to have ones ??-->\n <df-sidenavlist\n [items]=\"item.subMenus ?? []\"\n [tplItem]=\"tplItem()\"\n [currentItem]=\"item\"\n [id]=\"'sidenavControl' + controlledUniqueId.toString() + '-' + i\"\n ></df-sidenavlist>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"subMenus\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"subMenus\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.actionButton) {\n <ng-template #dfSideNavItemButton>\n <button\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n (click)=\"sideNavService.activeItem(item)\"\n [class.active]=\"item.isActive\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </button>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfSideNavItemButton\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfSideNavItemButton\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.routerLink) {\n <ng-template #dfRouterTemplate>\n <a\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n routerLinkActive=\"active\"\n routerLink=\"{{ item.value }}\"\n ariaCurrentWhenActive=\"page\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </a>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfRouterTemplate\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfRouterTemplate\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.separator) {\n <ng-template #dfSeparatorTmp>\n <hr class=\"spacing-01\" />\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfSeparatorTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfSeparatorTmp\"></ng-container>\n </ng-container>\n }\n }\n @case (sideNavService.type.template) {\n @let tItem = tplItem();\n @if (tItem) {\n <ng-template\n [ngTemplateOutlet]=\"tItem.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n }\n }\n @case (sideNavService.type.title) {\n <ng-template #dfTitleTmp>\n <div class=\"df-sidenav-item df-sidenav-title d-flex align-items-center flex-grow-1\">\n <span class=\"text-nowrap text-uppercase text-muted\" dfTitleTruncate>{{ item.title }}</span>\n </div>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfTitleTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfTitleTmp\"></ng-container>\n </ng-container>\n }\n }\n @default {\n <ng-template #dfLinkDefaultTmp>\n <a\n class=\"df-sidenav-item d-flex align-items-center flex-nowrap\"\n href=\"{{ item.value }}\"\n [class.active]=\"item.isActive && item.type === sideNavService.type.link\"\n [attr.target]=\"item.type === sideNavService.type.externalLink ? '_blank' : ''\"\n >\n <ng-container *ngTemplateOutlet=\"dfSideNavItemContent\"></ng-container>\n </a>\n </ng-template>\n @if (!item.breakpoints) {\n <ng-container *ngTemplateOutlet=\"dfLinkDefaultTmp\"></ng-container>\n } @else {\n <ng-container *dfIfMedia=\"item.breakpoints!\">\n <ng-container *ngTemplateOutlet=\"dfLinkDefaultTmp\"></ng-container>\n </ng-container>\n }\n }\n }\n </li>\n }\n</ul>\n" }]
4992
+ }] });
5123
4993
 
5124
4994
  class DfSideNavHeaderDirective {
5125
4995
  constructor(templateRef) {
5126
4996
  this.templateRef = templateRef;
5127
4997
  }
5128
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavHeaderDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
5129
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfSideNavHeaderDirective, isStandalone: true, selector: "ng-template[dfSideNavHeader]", ngImport: i0 }); }
4998
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavHeaderDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
4999
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfSideNavHeaderDirective, isStandalone: true, selector: "ng-template[dfSideNavHeader]", ngImport: i0 }); }
5130
5000
  }
5131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavHeaderDirective, decorators: [{
5001
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavHeaderDirective, decorators: [{
5132
5002
  type: Directive,
5133
- args: [{ selector: 'ng-template[dfSideNavHeader]', standalone: true }]
5003
+ args: [{ selector: 'ng-template[dfSideNavHeader]' }]
5134
5004
  }], ctorParameters: () => [{ type: i0.TemplateRef }] });
5135
5005
  class DfSideNavIconDirective {
5136
5006
  constructor(templateRef) {
5137
5007
  this.templateRef = templateRef;
5138
5008
  }
5139
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavIconDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
5140
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfSideNavIconDirective, isStandalone: true, selector: "ng-template[dfSideNavIcon]", ngImport: i0 }); }
5009
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavIconDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
5010
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfSideNavIconDirective, isStandalone: true, selector: "ng-template[dfSideNavIcon]", ngImport: i0 }); }
5141
5011
  }
5142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavIconDirective, decorators: [{
5012
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavIconDirective, decorators: [{
5143
5013
  type: Directive,
5144
- args: [{ selector: 'ng-template[dfSideNavIcon]', standalone: true }]
5014
+ args: [{ selector: 'ng-template[dfSideNavIcon]' }]
5145
5015
  }], ctorParameters: () => [{ type: i0.TemplateRef }] });
5146
5016
  class DfSideNavItemDirective {
5147
5017
  constructor(templateRef) {
5148
5018
  this.templateRef = templateRef;
5149
5019
  }
5150
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavItemDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
5151
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfSideNavItemDirective, isStandalone: true, selector: "ng-template[dfSideNavItem]", ngImport: i0 }); }
5020
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavItemDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
5021
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfSideNavItemDirective, isStandalone: true, selector: "ng-template[dfSideNavItem]", ngImport: i0 }); }
5152
5022
  }
5153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavItemDirective, decorators: [{
5023
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavItemDirective, decorators: [{
5154
5024
  type: Directive,
5155
- args: [{ selector: 'ng-template[dfSideNavItem]', standalone: true }]
5025
+ args: [{ selector: 'ng-template[dfSideNavItem]' }]
5156
5026
  }], ctorParameters: () => [{ type: i0.TemplateRef }] });
5157
5027
  /**
5158
5028
  * SideNav is a component to provide navigation feature with a panel on the side of your page
@@ -5165,40 +5035,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
5165
5035
  */
5166
5036
  class DfSideNavComponent {
5167
5037
  constructor() {
5168
- this.elements = 'df-sidenav-light d-flex flex-column flex-shrink-0';
5169
- this.subscription = new Subscription();
5038
+ this.tplHeader = contentChild(DfSideNavHeaderDirective);
5039
+ this.tplIcon = contentChild(DfSideNavIconDirective);
5040
+ this.tplItem = contentChild(DfSideNavItemDirective);
5041
+ this.overlayClass = signal(false);
5042
+ this.classes = computed(() => `df-sidenav-light d-flex flex-column flex-shrink-0${this.overlayClass() ? ' df-sidenav-menu-overlay' : ''}`);
5170
5043
  this.sideNavService = inject(DfSideNavService);
5171
- this.subscription.add(this.sideNavService.isInMenuOverlay$.subscribe((value) => {
5172
- this.overlayClass = value;
5173
- }));
5044
+ this.navItems = toSignal(this.sideNavService.sideNavItems$, { initialValue: [] });
5045
+ this.sideNavService.isInMenuOverlay$.pipe(takeUntilDestroyed()).subscribe((value) => {
5046
+ this.overlayClass.set(value);
5047
+ });
5174
5048
  setTimeout(() => this.sideNavService.setSideNav());
5175
5049
  }
5176
5050
  ngOnDestroy() {
5177
- this.subscription.unsubscribe();
5178
5051
  this.sideNavService.removeSideBar();
5179
5052
  }
5180
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5181
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: DfSideNavComponent, isStandalone: true, selector: "df-sidenav", host: { properties: { "class.df-sidenav-menu-overlay": "this.overlayClass", "class": "this.elements" } }, queries: [{ propertyName: "tplHeader", first: true, predicate: DfSideNavHeaderDirective, descendants: true }, { propertyName: "tplIcon", first: true, predicate: DfSideNavIconDirective, descendants: true }, { propertyName: "tplItem", first: true, predicate: DfSideNavItemDirective, descendants: true }], ngImport: i0, template: "@if (tplHeader) {\n <ng-template [ngTemplateOutlet]=\"tplHeader.templateRef\"></ng-template>\n}\n<df-sidenavlist\n [items]=\"(sideNavService.sideNavItems$ | async) ?? []\"\n [tplIcon]=\"tplIcon\"\n [tplItem]=\"tplItem\"\n></df-sidenavlist>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "component", type: DfSideNavListComponent, selector: "df-sidenavlist", inputs: ["items", "tplIcon", "tplItem", "currentItem", "id"] }] }); }
5053
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5054
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.3", type: DfSideNavComponent, isStandalone: true, selector: "df-sidenav", host: { properties: { "class": "classes()" } }, queries: [{ propertyName: "tplHeader", first: true, predicate: DfSideNavHeaderDirective, descendants: true, isSignal: true }, { propertyName: "tplIcon", first: true, predicate: DfSideNavIconDirective, descendants: true, isSignal: true }, { propertyName: "tplItem", first: true, predicate: DfSideNavItemDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"df-scroll-content\">\n @if (tplHeader(); as tplHeader) {\n <ng-template [ngTemplateOutlet]=\"tplHeader.templateRef\"></ng-template>\n }\n <df-sidenavlist [items]=\"navItems()\" [tplIcon]=\"tplIcon()\" [tplItem]=\"tplItem()\" />\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DfSideNavListComponent, selector: "df-sidenavlist", inputs: ["items", "tplIcon", "tplItem", "currentItem", "id"] }] }); }
5182
5055
  }
5183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavComponent, decorators: [{
5056
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavComponent, decorators: [{
5184
5057
  type: Component,
5185
- args: [{ selector: 'df-sidenav', standalone: true, imports: [CommonModule, DfSideNavListComponent], template: "@if (tplHeader) {\n <ng-template [ngTemplateOutlet]=\"tplHeader.templateRef\"></ng-template>\n}\n<df-sidenavlist\n [items]=\"(sideNavService.sideNavItems$ | async) ?? []\"\n [tplIcon]=\"tplIcon\"\n [tplItem]=\"tplItem\"\n></df-sidenavlist>\n" }]
5186
- }], ctorParameters: () => [], propDecorators: { tplHeader: [{
5187
- type: ContentChild,
5188
- args: [DfSideNavHeaderDirective, { static: false }]
5189
- }], tplIcon: [{
5190
- type: ContentChild,
5191
- args: [DfSideNavIconDirective, { static: false }]
5192
- }], tplItem: [{
5193
- type: ContentChild,
5194
- args: [DfSideNavItemDirective, { static: false }]
5195
- }], overlayClass: [{
5196
- type: HostBinding,
5197
- args: ['class.df-sidenav-menu-overlay']
5198
- }], elements: [{
5199
- type: HostBinding,
5200
- args: ['class']
5201
- }] } });
5058
+ args: [{ selector: 'df-sidenav', imports: [CommonModule, DfSideNavListComponent], host: {
5059
+ '[class]': 'classes()'
5060
+ }, template: "<div class=\"df-scroll-content\">\n @if (tplHeader(); as tplHeader) {\n <ng-template [ngTemplateOutlet]=\"tplHeader.templateRef\"></ng-template>\n }\n <df-sidenavlist [items]=\"navItems()\" [tplIcon]=\"tplIcon()\" [tplItem]=\"tplItem()\" />\n</div>\n" }]
5061
+ }], ctorParameters: () => [] });
5202
5062
 
5203
5063
  /**
5204
5064
  * The directive to catch focusin event and put the focus at a defined position in the page
@@ -5206,14 +5066,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
5206
5066
  * @since 9.1.0
5207
5067
  */
5208
5068
  class DfExcludeTrapDirective {
5209
- constructor(zone, element) {
5210
- this.zone = zone;
5211
- this.element = element;
5069
+ constructor() {
5212
5070
  this.subscription = new Subscription();
5071
+ /**
5072
+ * The CSS selector used to get the element to put the focus when catched
5073
+ *
5074
+ */
5075
+ this.dfExcludeTrapSelector = input('');
5076
+ /**
5077
+ * The Observable to enable or disable the ExcludeTrap
5078
+ * If `True` the excludeTrap will work
5079
+ */
5080
+ this.dfExcludeTrap = input.required();
5081
+ this.zone = inject(NgZone);
5082
+ this.element = inject(ElementRef);
5213
5083
  }
5214
5084
  init() {
5215
5085
  this.subscription = fromEvent(this.element.nativeElement, 'focusin').subscribe(() => {
5216
- const el = document.querySelector(this.dfExcludeTrapSelector);
5086
+ const el = document.querySelector(this.dfExcludeTrapSelector());
5217
5087
  if (el) {
5218
5088
  el.focus();
5219
5089
  }
@@ -5221,7 +5091,7 @@ class DfExcludeTrapDirective {
5221
5091
  }
5222
5092
  ngOnInit() {
5223
5093
  this.zone.runOutsideAngular(() => {
5224
- this.subscriptionInput = this.dfExcludeTrap.subscribe(isPresent => {
5094
+ this.subscriptionInput = this.dfExcludeTrap().subscribe((isPresent) => {
5225
5095
  if (isPresent) {
5226
5096
  this.init();
5227
5097
  }
@@ -5237,20 +5107,15 @@ class DfExcludeTrapDirective {
5237
5107
  this.subscriptionInput.unsubscribe();
5238
5108
  }
5239
5109
  }
5240
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfExcludeTrapDirective, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
5241
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfExcludeTrapDirective, isStandalone: true, selector: "[dfExcludeTrap]", inputs: { dfExcludeTrapSelector: "dfExcludeTrapSelector", dfExcludeTrap: "dfExcludeTrap" }, ngImport: i0 }); }
5110
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfExcludeTrapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5111
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.3", type: DfExcludeTrapDirective, isStandalone: true, selector: "[dfExcludeTrap]", inputs: { dfExcludeTrapSelector: { classPropertyName: "dfExcludeTrapSelector", publicName: "dfExcludeTrapSelector", isSignal: true, isRequired: false, transformFunction: null }, dfExcludeTrap: { classPropertyName: "dfExcludeTrap", publicName: "dfExcludeTrap", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
5242
5112
  }
5243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfExcludeTrapDirective, decorators: [{
5113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfExcludeTrapDirective, decorators: [{
5244
5114
  type: Directive,
5245
5115
  args: [{
5246
- selector: '[dfExcludeTrap]',
5247
- standalone: true
5116
+ selector: '[dfExcludeTrap]'
5248
5117
  }]
5249
- }], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.ElementRef }], propDecorators: { dfExcludeTrapSelector: [{
5250
- type: Input
5251
- }], dfExcludeTrap: [{
5252
- type: Input
5253
- }] } });
5118
+ }] });
5254
5119
 
5255
5120
  const DF_SELECT_CLASS = 'df-ym';
5256
5121
 
@@ -5334,14 +5199,13 @@ class DfManageNavSelectDirective {
5334
5199
  (listBadge[currentPos - 1] || document.activeElement).focus();
5335
5200
  }
5336
5201
  }
5337
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfManageNavSelectDirective, deps: [{ token: i1$2.NgSelectComponent, host: true }, { token: i0.ElementRef }, { token: DfDirectionDetectionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
5338
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfManageNavSelectDirective, isStandalone: true, selector: "[dfManageNavSelect]", host: { listeners: { "keydown.arrowLeft": "handleKeyDown($event)", "keydown.Backspace": "handleKeyDownBackspace($event)", "keydown.arrowRight": "handleKeyDownRight($event)" } }, ngImport: i0 }); }
5202
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfManageNavSelectDirective, deps: [{ token: i1$2.NgSelectComponent, host: true }, { token: i0.ElementRef }, { token: DfDirectionDetectionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
5203
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfManageNavSelectDirective, isStandalone: true, selector: "[dfManageNavSelect]", host: { listeners: { "keydown.arrowLeft": "handleKeyDown($event)", "keydown.Backspace": "handleKeyDownBackspace($event)", "keydown.arrowRight": "handleKeyDownRight($event)" } }, ngImport: i0 }); }
5339
5204
  }
5340
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfManageNavSelectDirective, decorators: [{
5205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfManageNavSelectDirective, decorators: [{
5341
5206
  type: Directive,
5342
5207
  args: [{
5343
- selector: '[dfManageNavSelect]',
5344
- standalone: true
5208
+ selector: '[dfManageNavSelect]'
5345
5209
  }]
5346
5210
  }], ctorParameters: () => [{ type: i1$2.NgSelectComponent, decorators: [{
5347
5211
  type: Host
@@ -5358,69 +5222,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
5358
5222
 
5359
5223
  // Copy of https://github.com/ng-select/ng-select/blob/master/src/ng-option-highlight/lib/ng-option-highlight.directive.ts
5360
5224
  class DfOptionHighlightDirective {
5361
- constructor(elementRef, renderer) {
5362
- this.elementRef = elementRef;
5363
- this.renderer = renderer;
5364
- this.element = this.elementRef.nativeElement;
5365
- }
5366
- ngOnChanges() {
5367
- if (this.canHighlight) {
5368
- this.highlightLabel();
5369
- }
5370
- else if (this.label) { // unhighlight if there was some
5371
- this.setInnerHtml(this.label);
5372
- }
5225
+ constructor() {
5226
+ this.dfOptionHighlight = input.required();
5227
+ this.label = signal('');
5228
+ this.elementRef = inject(ElementRef);
5229
+ this.renderer = inject(Renderer2);
5230
+ this.canHighlight = computed(() => !!this.dfOptionHighlight() && !!this.label());
5231
+ effect(() => {
5232
+ if (this.canHighlight()) {
5233
+ const alternationString = this.dfOptionHighlight()
5234
+ .replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
5235
+ .replace(' ', '|');
5236
+ const termRegex = new RegExp(alternationString, 'gi');
5237
+ this.setInnerHtml(this.label().replace(termRegex, `<span class=\"highlighted\">$&</span>`));
5238
+ }
5239
+ else if (this.label()) {
5240
+ // unhighlight if there was some
5241
+ this.setInnerHtml(this.label());
5242
+ }
5243
+ });
5373
5244
  }
5374
5245
  ngAfterViewInit() {
5375
- this.label = this.element.innerHTML;
5376
- if (this.canHighlight) {
5377
- this.highlightLabel();
5378
- }
5379
- }
5380
- escapeRegExp(str) {
5381
- return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
5382
- }
5383
- highlightLabel() {
5384
- const label = this.label;
5385
- if (!this.term) {
5386
- this.setInnerHtml(label);
5387
- return;
5388
- }
5389
- const alternationString = this.escapeRegExp(this.term).replace(' ', '|');
5390
- const termRegex = new RegExp(alternationString, 'gi');
5391
- this.setInnerHtml(label.replace(termRegex, `<span class=\"highlighted\">$&</span>`));
5392
- }
5393
- get canHighlight() {
5394
- return this.isDefined(this.term) && this.isDefined(this.label);
5246
+ this.label.set(this.elementRef.nativeElement.innerHTML);
5395
5247
  }
5396
5248
  setInnerHtml(html) {
5397
5249
  this.renderer.setProperty(this.elementRef.nativeElement, 'innerHTML', html);
5398
5250
  }
5399
- isDefined(value) {
5400
- return value !== undefined && value !== null;
5401
- }
5402
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfOptionHighlightDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
5403
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfOptionHighlightDirective, isStandalone: true, selector: "[dfOptionHighlight]", inputs: { term: ["dfOptionHighlight", "term"] }, usesOnChanges: true, ngImport: i0 }); }
5251
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfOptionHighlightDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5252
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.3", type: DfOptionHighlightDirective, isStandalone: true, selector: "[dfOptionHighlight]", inputs: { dfOptionHighlight: { classPropertyName: "dfOptionHighlight", publicName: "dfOptionHighlight", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
5404
5253
  }
5405
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfOptionHighlightDirective, decorators: [{
5254
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfOptionHighlightDirective, decorators: [{
5406
5255
  type: Directive,
5407
5256
  args: [{
5408
- selector: '[dfOptionHighlight]',
5409
- standalone: true
5257
+ selector: '[dfOptionHighlight]'
5410
5258
  }]
5411
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { term: [{
5412
- type: Input,
5413
- args: ['dfOptionHighlight']
5414
- }] } });
5259
+ }], ctorParameters: () => [] });
5415
5260
 
5416
5261
  // Put to avoid opening of the select after removal. See why in file:
5417
5262
  // https://github.com/ng-select/ng-select/blob/57c6671a972d23beddcca2b6acc9418544c17a2e/src/ng-select/ng-select.component.ts#L307
5418
5263
  const NG_SELECT_CLASS_IDENTIFIER = 'ng-value-icon';
5419
5264
  class DfManageBadgeEventsDirective {
5420
- constructor(renderer, element) {
5421
- this.renderer = renderer;
5422
- this.element = element;
5423
- this.tabindex = '-1';
5265
+ constructor() {
5266
+ this.dfManageBadgeEventsSelect = input.required();
5267
+ this.renderer = inject(Renderer2);
5268
+ this.element = inject(ElementRef);
5424
5269
  this.renderer.addClass(this.element.nativeElement, DF_SELECT_CLASS);
5425
5270
  this.renderer.addClass(this.element.nativeElement, NG_SELECT_CLASS_IDENTIFIER);
5426
5271
  }
@@ -5432,55 +5277,44 @@ class DfManageBadgeEventsDirective {
5432
5277
  });
5433
5278
  }
5434
5279
  handleKeyDownBackspace(event) {
5435
- this.dfManageBadgeEventsSelect[0](this.dfManageBadgeEventsSelect[1]);
5280
+ this.dfManageBadgeEventsSelect()[0](this.dfManageBadgeEventsSelect()[1]);
5436
5281
  event.stopPropagation();
5437
5282
  }
5438
5283
  handleClick(event) {
5439
- this.dfManageBadgeEventsSelect[0](this.dfManageBadgeEventsSelect[1]);
5284
+ this.dfManageBadgeEventsSelect()[0](this.dfManageBadgeEventsSelect()[1]);
5440
5285
  event.stopPropagation();
5441
5286
  }
5442
5287
  handleKeyDownEnter(event) {
5443
- this.dfManageBadgeEventsSelect[0](this.dfManageBadgeEventsSelect[1]);
5288
+ this.dfManageBadgeEventsSelect()[0](this.dfManageBadgeEventsSelect()[1]);
5444
5289
  event.stopPropagation();
5445
5290
  }
5446
5291
  handleKeyDownDelete(event) {
5447
- this.dfManageBadgeEventsSelect[0](this.dfManageBadgeEventsSelect[1]);
5292
+ this.dfManageBadgeEventsSelect()[0](this.dfManageBadgeEventsSelect()[1]);
5448
5293
  event.stopPropagation();
5449
5294
  }
5450
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfManageBadgeEventsDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
5451
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfManageBadgeEventsDirective, isStandalone: true, selector: "[dfManageBadgeEventsSelect]", inputs: { dfManageBadgeEventsSelect: "dfManageBadgeEventsSelect" }, host: { listeners: { "keydown.Backspace": "handleKeyDownBackspace($event)", "click": "handleClick($event)", "keydown.Enter": "handleKeyDownEnter($event)", "keydown.Delete": "handleKeyDownDelete($event)" }, properties: { "attr.tabindex": "this.tabindex" } }, ngImport: i0 }); }
5295
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfManageBadgeEventsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5296
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.3", type: DfManageBadgeEventsDirective, isStandalone: true, selector: "[dfManageBadgeEventsSelect]", inputs: { dfManageBadgeEventsSelect: { classPropertyName: "dfManageBadgeEventsSelect", publicName: "dfManageBadgeEventsSelect", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "tabindex": "-1" }, listeners: { "keydown.Backspace": "handleKeyDownBackspace($event)", "click": "handleClick($event)", "keydown.Enter": "handleKeyDownEnter($event)", "keydown.Delete": "handleKeyDownDelete($event)" } }, ngImport: i0 }); }
5452
5297
  }
5453
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfManageBadgeEventsDirective, decorators: [{
5298
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfManageBadgeEventsDirective, decorators: [{
5454
5299
  type: Directive,
5455
5300
  args: [{
5456
5301
  selector: '[dfManageBadgeEventsSelect]',
5457
- standalone: true
5302
+ host: {
5303
+ tabindex: '-1',
5304
+ '(keydown.Backspace)': 'handleKeyDownBackspace($event)',
5305
+ '(click)': 'handleClick($event)',
5306
+ '(keydown.Enter)': 'handleKeyDownEnter($event)',
5307
+ '(keydown.Delete)': 'handleKeyDownDelete($event)'
5308
+ }
5458
5309
  }]
5459
- }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { dfManageBadgeEventsSelect: [{
5460
- type: Input
5461
- }], tabindex: [{
5462
- type: HostBinding,
5463
- args: ['attr.tabindex']
5464
- }], handleKeyDownBackspace: [{
5465
- type: HostListener,
5466
- args: ['keydown.Backspace', ['$event']]
5467
- }], handleClick: [{
5468
- type: HostListener,
5469
- args: ['click', ['$event']]
5470
- }], handleKeyDownEnter: [{
5471
- type: HostListener,
5472
- args: ['keydown.Enter', ['$event']]
5473
- }], handleKeyDownDelete: [{
5474
- type: HostListener,
5475
- args: ['keydown.Delete', ['$event']]
5476
- }] } });
5310
+ }], ctorParameters: () => [] });
5477
5311
 
5478
5312
  class DfSelectModule {
5479
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5480
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfSelectModule, imports: [DfManageNavSelectDirective, DfManageBadgeEventsDirective, DfOptionHighlightDirective], exports: [DfManageNavSelectDirective, DfManageBadgeEventsDirective, DfOptionHighlightDirective, NgSelectModule] }); }
5481
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSelectModule, imports: [NgSelectModule] }); }
5313
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5314
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfSelectModule, imports: [DfManageNavSelectDirective, DfManageBadgeEventsDirective, DfOptionHighlightDirective], exports: [DfManageNavSelectDirective, DfManageBadgeEventsDirective, DfOptionHighlightDirective, NgSelectModule] }); }
5315
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSelectModule, imports: [NgSelectModule] }); }
5482
5316
  }
5483
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSelectModule, decorators: [{
5317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSelectModule, decorators: [{
5484
5318
  type: NgModule,
5485
5319
  args: [{
5486
5320
  imports: [DfManageNavSelectDirective, DfManageBadgeEventsDirective, DfOptionHighlightDirective],
@@ -5691,10 +5525,10 @@ class DfStepperService {
5691
5525
  this._state.steps[index].warning = false;
5692
5526
  this.updateStepperState();
5693
5527
  }
5694
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5695
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperService }); }
5528
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5529
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperService }); }
5696
5530
  }
5697
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperService, decorators: [{
5531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperService, decorators: [{
5698
5532
  type: Injectable
5699
5533
  }] });
5700
5534
 
@@ -5726,15 +5560,14 @@ class DfStepperStepDirective {
5726
5560
  ngOnDestroy() {
5727
5561
  this.unlistener.forEach((ul) => ul());
5728
5562
  }
5729
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperStepDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5730
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfStepperStepDirective, isStandalone: true, selector: "[dfStepperStep]", exportAs: ["dfStepperStep"], ngImport: i0 }); }
5563
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperStepDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5564
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfStepperStepDirective, isStandalone: true, selector: "[dfStepperStep]", exportAs: ["dfStepperStep"], ngImport: i0 }); }
5731
5565
  }
5732
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperStepDirective, decorators: [{
5566
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperStepDirective, decorators: [{
5733
5567
  type: Directive,
5734
5568
  args: [{
5735
5569
  selector: '[dfStepperStep]',
5736
- exportAs: 'dfStepperStep',
5737
- standalone: true
5570
+ exportAs: 'dfStepperStep'
5738
5571
  }]
5739
5572
  }] });
5740
5573
  class DfStepperDirective {
@@ -5838,15 +5671,14 @@ class DfStepperDirective {
5838
5671
  this.stepperService.resetFocus();
5839
5672
  }
5840
5673
  }
5841
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5842
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfStepperDirective, isStandalone: true, selector: "[dfStepperLogic]", host: { listeners: { "keydown.Enter": "handleEnterDown()", "keydown.Space": "handleSpaceDown()", "keydown.arrowRight": "handleKeyDownRight($event)", "keydown.arrowLeft": "handleKeyDown($event)", "keydown.arrowDown": "handleKeyDownUp($event)", "keydown.arrowUp": "handleKeyDownDown($event)" } }, exportAs: ["dfStepperLogic"], ngImport: i0 }); }
5674
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5675
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfStepperDirective, isStandalone: true, selector: "[dfStepperLogic]", host: { listeners: { "keydown.Enter": "handleEnterDown()", "keydown.Space": "handleSpaceDown()", "keydown.arrowRight": "handleKeyDownRight($event)", "keydown.arrowLeft": "handleKeyDown($event)", "keydown.arrowDown": "handleKeyDownUp($event)", "keydown.arrowUp": "handleKeyDownDown($event)" } }, exportAs: ["dfStepperLogic"], ngImport: i0 }); }
5843
5676
  }
5844
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperDirective, decorators: [{
5677
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperDirective, decorators: [{
5845
5678
  type: Directive,
5846
5679
  args: [{
5847
5680
  selector: '[dfStepperLogic]',
5848
- exportAs: 'dfStepperLogic',
5849
- standalone: true
5681
+ exportAs: 'dfStepperLogic'
5850
5682
  }]
5851
5683
  }], propDecorators: { handleEnterDown: [{
5852
5684
  type: HostListener,
@@ -5875,19 +5707,15 @@ class DfStepperStepContentDirective {
5875
5707
  * The step index
5876
5708
  * -1 means that the input index is not set
5877
5709
  */
5878
- // eslint-disable-next-line @angular-eslint/no-input-rename
5879
- this.dfStepperStepContent = -1;
5710
+ this.dfStepperStepContent = input(-1, { transform: (value) => numberAttribute(value, -1) });
5880
5711
  }
5881
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperStepContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5882
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.7", type: DfStepperStepContentDirective, isStandalone: true, selector: "ng-template[dfStepperStepContent]", inputs: { dfStepperStepContent: ["dfStepperStepContent", "dfStepperStepContent", (value) => numberAttribute(value, -1)] }, ngImport: i0 }); }
5712
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperStepContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5713
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.3", type: DfStepperStepContentDirective, isStandalone: true, selector: "ng-template[dfStepperStepContent]", inputs: { dfStepperStepContent: { classPropertyName: "dfStepperStepContent", publicName: "dfStepperStepContent", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
5883
5714
  }
5884
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperStepContentDirective, decorators: [{
5715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperStepContentDirective, decorators: [{
5885
5716
  type: Directive,
5886
- args: [{ selector: 'ng-template[dfStepperStepContent]', standalone: true }]
5887
- }], propDecorators: { dfStepperStepContent: [{
5888
- type: Input,
5889
- args: [{ transform: (value) => numberAttribute(value, -1) }]
5890
- }] } });
5717
+ args: [{ selector: 'ng-template[dfStepperStepContent]' }]
5718
+ }] });
5891
5719
  /**
5892
5720
  * Stepper component is a component to provide a step by step navigation
5893
5721
  * You have two ways to navigate through the steps:
@@ -5898,40 +5726,39 @@ class DfStepperComponent {
5898
5726
  constructor() {
5899
5727
  this.stepperService = inject(DfStepperService);
5900
5728
  this.mapStepToContent = new Map();
5901
- this.stepperService.stepperState$.subscribe((state) => {
5902
- this.state = state;
5729
+ this.tplStepsContent = contentChildren(DfStepperStepContentDirective);
5730
+ this.state = signal(undefined);
5731
+ this.stepperService.stepperState$.pipe(takeUntilDestroyed()).subscribe((state) => {
5732
+ this.state.set(state);
5903
5733
  });
5904
5734
  }
5905
5735
  ngAfterContentInit() {
5906
- this.tplStepsContent.forEach((tplStepContent) => {
5907
- if (tplStepContent.dfStepperStepContent !== -1) {
5908
- this.mapStepToContent.set(tplStepContent.dfStepperStepContent, tplStepContent.templateRef);
5736
+ this.tplStepsContent().forEach((tplStepContent) => {
5737
+ if (tplStepContent.dfStepperStepContent() !== -1) {
5738
+ this.mapStepToContent.set(tplStepContent.dfStepperStepContent(), tplStepContent.templateRef);
5909
5739
  }
5910
5740
  });
5911
5741
  }
5912
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5913
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: DfStepperComponent, isStandalone: true, selector: "[dfStepper]", host: { attributes: { "role": "tablist" }, properties: { "class.df-vertical-stepper": "state?.isVertical", "attr.aria-label": "stepperService.stepperAriaLabel", "attr.aria-orientation": "state?.isVertical ? \"vertical\": null" }, classAttribute: "df-stepper mb-2" }, queries: [{ propertyName: "tplStepsContent", predicate: DfStepperStepContentDirective }], hostDirectives: [{ directive: DfStepperDirective }], ngImport: i0, template: "<ng-template #myStepperLine>\n <div class=\"df-stepper-line-wrapper\">\n <div class=\"df-stepper-line\">\n <div class=\"df-stepper-horizontal-line\"></div>\n </div>\n <div class=\"df-stepper-line d-none d-sm-flex\">\n <div class=\"flex-grow-1\"></div>\n </div>\n </div>\n</ng-template>\n@if (state) {\n @for (step of state.steps; track step; let i = $index) {\n <button\n #stepbasic\n class=\"btn btn-link df-stepper-step\"\n dfStepperStep\n [class.active]=\"i === state.active\"\n [class.flex-row]=\"state.isInline\"\n [attr.tabIndex]=\"i === state.active ? 0 : -1\"\n [class.df-stepper-step-warning]=\"step.type === 'warning'\"\n [class.df-stepper-step-completed]=\"step.type === 'completed'\"\n [class.df-stepper-step-visited]=\"step.type === 'visited'\"\n [class.df-stepper-step-future]=\"step.type === 'future'\"\n [disabled]=\"\n state.isLinear &&\n (step.type === 'future' || step.type === 'completed' || (step.type === 'visited' && i !== state.active))\n \"\n role=\"tab\"\n [attr.aria-selected]=\"i === state.active ? 'true' : 'false'\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"state.steps.length\"\n [attr.aria-controls]=\"step.ariaControl\"\n (click)=\"stepperService.selectWithFocus(i)\"\n >\n <div\n [class.df-stepper-outline-number-visited]=\"step.type === 'visited'\"\n [class.df-stepper-outline-icon]=\"step.type === 'warning'\"\n [class.fa-exclamation-triangle]=\"step.type === 'warning'\"\n [class.df-stepper-icon]=\"step.type === 'completed'\"\n [class.fa-check]=\"step.type === 'completed'\"\n [class.df-stepper-outline-number-future]=\"step.type === 'future'\"\n >\n <span aria-hidden=\"true\">{{ stepperService.getStepNumberLabel(i) }}</span>\n </div>\n <div\n class=\"flex-column\"\n [class.mt-1]=\"!state.isInline\"\n [class.d-none]=\"!state.isVertical\"\n [class.d-sm-flex]=\"!state.isVertical\"\n [class.d-flex]=\"state.isVertical\"\n >\n @if (step.type === 'warning') {\n <span class=\"visually-hidden\">{{ stepperService.warningLabel }}</span>\n }\n <span class=\"df-stepper-label\">{{ step.label }}</span>\n @if (step.optionalLabel) {\n <span class=\"df-stepper-optional-label\">{{ step.optionalLabel }}</span>\n }\n @if (step.completed) {\n <span class=\"visually-hidden\">{{ stepperService.completedLabel }}</span>\n }\n </div>\n </button>\n @if (!state.isVertical && i < state.steps.length - 1) {\n <ng-container [ngTemplateOutlet]=\"myStepperLine\"></ng-container>\n }\n @if (state.isVertical && i < state.steps.length) {\n <div\n [class.d-none]=\"state.steps.length - 1 === i\"\n role=\"tabpanel\"\n [id]=\"step.ariaControl\"\n class=\"df-vertical-stepper-panel df-vertical-stepper-line\"\n >\n @if (mapStepToContent.has(i) && state.active === i) {\n <ng-template\n [ngTemplateOutlet]=\"mapStepToContent.get(i) || null\"\n [ngTemplateOutletContext]=\"{ state, index: i, service: stepperService }\"\n ></ng-template>\n }\n </div>\n }\n }\n}\n@if (stepperService.stepperState$ | async; as state) {\n <div\n class=\"text-primary mb-2\"\n [class.d-block]=\"!state.isVertical\"\n [class.d-sm-none]=\"!state.isVertical\"\n [class.d-none]=\"state.isVertical\"\n >\n <span class=\"df-stepper-label\">{{ state.steps[state.active].label }}</span>\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "directive", type: DfStepperStepDirective, selector: "[dfStepperStep]", exportAs: ["dfStepperStep"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5742
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5743
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.3", type: DfStepperComponent, isStandalone: true, selector: "[dfStepper]", host: { attributes: { "role": "tablist" }, properties: { "class.df-vertical-stepper": "state()?.isVertical", "attr.aria-label": "stepperService.stepperAriaLabel", "attr.aria-orientation": "state()?.isVertical ? \"vertical\": null" }, classAttribute: "df-stepper mb-2" }, queries: [{ propertyName: "tplStepsContent", predicate: DfStepperStepContentDirective, isSignal: true }], hostDirectives: [{ directive: DfStepperDirective }], ngImport: i0, template: "<ng-template #myStepperLine>\n <div class=\"df-stepper-line-wrapper\">\n <div class=\"df-stepper-line\">\n <div class=\"df-stepper-horizontal-line\"></div>\n </div>\n <div class=\"df-stepper-line d-none d-sm-flex\">\n <div class=\"flex-grow-1\"></div>\n </div>\n </div>\n</ng-template>\n@if (state(); as state) {\n @for (step of state.steps; track step; let i = $index) {\n <button\n #stepbasic\n class=\"btn btn-link df-stepper-step\"\n dfStepperStep\n [class.active]=\"i === state.active\"\n [class.flex-row]=\"state.isInline\"\n [attr.tabIndex]=\"i === state.active ? 0 : -1\"\n [class.df-stepper-step-warning]=\"step.type === 'warning'\"\n [class.df-stepper-step-completed]=\"step.type === 'completed'\"\n [class.df-stepper-step-visited]=\"step.type === 'visited'\"\n [class.df-stepper-step-future]=\"step.type === 'future'\"\n [disabled]=\"\n state.isLinear &&\n (step.type === 'future' || step.type === 'completed' || (step.type === 'visited' && i !== state.active))\n \"\n role=\"tab\"\n [attr.aria-selected]=\"i === state.active ? 'true' : 'false'\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"state.steps.length\"\n [attr.aria-controls]=\"step.ariaControl\"\n (click)=\"stepperService.selectWithFocus(i)\"\n >\n <div\n [class.df-stepper-outline-number-visited]=\"step.type === 'visited'\"\n [class.df-stepper-outline-icon]=\"step.type === 'warning'\"\n [class.fa-exclamation-triangle]=\"step.type === 'warning'\"\n [class.df-stepper-icon]=\"step.type === 'completed'\"\n [class.fa-check]=\"step.type === 'completed'\"\n [class.df-stepper-outline-number-future]=\"step.type === 'future'\"\n >\n <span aria-hidden=\"true\">{{ stepperService.getStepNumberLabel(i) }}</span>\n </div>\n <div\n class=\"flex-column\"\n [class.mt-1]=\"!state.isInline\"\n [class.d-none]=\"!state.isVertical\"\n [class.d-sm-flex]=\"!state.isVertical\"\n [class.d-flex]=\"state.isVertical\"\n >\n @if (step.type === 'warning') {\n <span class=\"visually-hidden\">{{ stepperService.warningLabel }}</span>\n }\n <span class=\"df-stepper-label\">{{ step.label }}</span>\n @if (step.optionalLabel) {\n <span class=\"df-stepper-optional-label\">{{ step.optionalLabel }}</span>\n }\n @if (step.completed) {\n <span class=\"visually-hidden\">{{ stepperService.completedLabel }}</span>\n }\n </div>\n </button>\n @if (!state.isVertical && i < state.steps.length - 1) {\n <ng-container [ngTemplateOutlet]=\"myStepperLine\"></ng-container>\n }\n @if (state.isVertical && i < state.steps.length) {\n <div\n [class.d-none]=\"state.steps.length - 1 === i\"\n role=\"tabpanel\"\n [id]=\"step.ariaControl\"\n class=\"df-vertical-stepper-panel df-vertical-stepper-line\"\n >\n @if (mapStepToContent.has(i) && state.active === i) {\n <ng-template\n [ngTemplateOutlet]=\"mapStepToContent.get(i) || null\"\n [ngTemplateOutletContext]=\"{ state, index: i, service: stepperService }\"\n ></ng-template>\n }\n </div>\n }\n }\n}\n@if (stepperService.stepperState$ | async; as state) {\n <div\n class=\"text-primary mb-2\"\n [class.d-block]=\"!state.isVertical\"\n [class.d-sm-none]=\"!state.isVertical\"\n [class.d-none]=\"state.isVertical\"\n >\n <span class=\"df-stepper-label\">{{ state.steps[state.active].label }}</span>\n </div>\n}\n", dependencies: [{ kind: "directive", type: DfStepperStepDirective, selector: "[dfStepperStep]", exportAs: ["dfStepperStep"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5914
5744
  }
5915
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperComponent, decorators: [{
5745
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperComponent, decorators: [{
5916
5746
  type: Component,
5917
- args: [{ selector: '[dfStepper]', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, DfStepperDirective, DfStepperStepDirective], hostDirectives: [DfStepperDirective], host: {
5747
+ args: [{ selector: '[dfStepper]', changeDetection: ChangeDetectionStrategy.OnPush, imports: [DfStepperStepDirective, NgTemplateOutlet, AsyncPipe], hostDirectives: [DfStepperDirective], host: {
5918
5748
  role: 'tablist',
5919
5749
  class: 'df-stepper mb-2',
5920
- '[class.df-vertical-stepper]': 'state?.isVertical',
5750
+ '[class.df-vertical-stepper]': 'state()?.isVertical',
5921
5751
  '[attr.aria-label]': 'stepperService.stepperAriaLabel',
5922
- '[attr.aria-orientation]': 'state?.isVertical ? "vertical": null'
5923
- }, template: "<ng-template #myStepperLine>\n <div class=\"df-stepper-line-wrapper\">\n <div class=\"df-stepper-line\">\n <div class=\"df-stepper-horizontal-line\"></div>\n </div>\n <div class=\"df-stepper-line d-none d-sm-flex\">\n <div class=\"flex-grow-1\"></div>\n </div>\n </div>\n</ng-template>\n@if (state) {\n @for (step of state.steps; track step; let i = $index) {\n <button\n #stepbasic\n class=\"btn btn-link df-stepper-step\"\n dfStepperStep\n [class.active]=\"i === state.active\"\n [class.flex-row]=\"state.isInline\"\n [attr.tabIndex]=\"i === state.active ? 0 : -1\"\n [class.df-stepper-step-warning]=\"step.type === 'warning'\"\n [class.df-stepper-step-completed]=\"step.type === 'completed'\"\n [class.df-stepper-step-visited]=\"step.type === 'visited'\"\n [class.df-stepper-step-future]=\"step.type === 'future'\"\n [disabled]=\"\n state.isLinear &&\n (step.type === 'future' || step.type === 'completed' || (step.type === 'visited' && i !== state.active))\n \"\n role=\"tab\"\n [attr.aria-selected]=\"i === state.active ? 'true' : 'false'\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"state.steps.length\"\n [attr.aria-controls]=\"step.ariaControl\"\n (click)=\"stepperService.selectWithFocus(i)\"\n >\n <div\n [class.df-stepper-outline-number-visited]=\"step.type === 'visited'\"\n [class.df-stepper-outline-icon]=\"step.type === 'warning'\"\n [class.fa-exclamation-triangle]=\"step.type === 'warning'\"\n [class.df-stepper-icon]=\"step.type === 'completed'\"\n [class.fa-check]=\"step.type === 'completed'\"\n [class.df-stepper-outline-number-future]=\"step.type === 'future'\"\n >\n <span aria-hidden=\"true\">{{ stepperService.getStepNumberLabel(i) }}</span>\n </div>\n <div\n class=\"flex-column\"\n [class.mt-1]=\"!state.isInline\"\n [class.d-none]=\"!state.isVertical\"\n [class.d-sm-flex]=\"!state.isVertical\"\n [class.d-flex]=\"state.isVertical\"\n >\n @if (step.type === 'warning') {\n <span class=\"visually-hidden\">{{ stepperService.warningLabel }}</span>\n }\n <span class=\"df-stepper-label\">{{ step.label }}</span>\n @if (step.optionalLabel) {\n <span class=\"df-stepper-optional-label\">{{ step.optionalLabel }}</span>\n }\n @if (step.completed) {\n <span class=\"visually-hidden\">{{ stepperService.completedLabel }}</span>\n }\n </div>\n </button>\n @if (!state.isVertical && i < state.steps.length - 1) {\n <ng-container [ngTemplateOutlet]=\"myStepperLine\"></ng-container>\n }\n @if (state.isVertical && i < state.steps.length) {\n <div\n [class.d-none]=\"state.steps.length - 1 === i\"\n role=\"tabpanel\"\n [id]=\"step.ariaControl\"\n class=\"df-vertical-stepper-panel df-vertical-stepper-line\"\n >\n @if (mapStepToContent.has(i) && state.active === i) {\n <ng-template\n [ngTemplateOutlet]=\"mapStepToContent.get(i) || null\"\n [ngTemplateOutletContext]=\"{ state, index: i, service: stepperService }\"\n ></ng-template>\n }\n </div>\n }\n }\n}\n@if (stepperService.stepperState$ | async; as state) {\n <div\n class=\"text-primary mb-2\"\n [class.d-block]=\"!state.isVertical\"\n [class.d-sm-none]=\"!state.isVertical\"\n [class.d-none]=\"state.isVertical\"\n >\n <span class=\"df-stepper-label\">{{ state.steps[state.active].label }}</span>\n </div>\n}\n" }]
5924
- }], ctorParameters: () => [], propDecorators: { tplStepsContent: [{
5925
- type: ContentChildren,
5926
- args: [DfStepperStepContentDirective]
5927
- }] } });
5752
+ '[attr.aria-orientation]': 'state()?.isVertical ? "vertical": null'
5753
+ }, template: "<ng-template #myStepperLine>\n <div class=\"df-stepper-line-wrapper\">\n <div class=\"df-stepper-line\">\n <div class=\"df-stepper-horizontal-line\"></div>\n </div>\n <div class=\"df-stepper-line d-none d-sm-flex\">\n <div class=\"flex-grow-1\"></div>\n </div>\n </div>\n</ng-template>\n@if (state(); as state) {\n @for (step of state.steps; track step; let i = $index) {\n <button\n #stepbasic\n class=\"btn btn-link df-stepper-step\"\n dfStepperStep\n [class.active]=\"i === state.active\"\n [class.flex-row]=\"state.isInline\"\n [attr.tabIndex]=\"i === state.active ? 0 : -1\"\n [class.df-stepper-step-warning]=\"step.type === 'warning'\"\n [class.df-stepper-step-completed]=\"step.type === 'completed'\"\n [class.df-stepper-step-visited]=\"step.type === 'visited'\"\n [class.df-stepper-step-future]=\"step.type === 'future'\"\n [disabled]=\"\n state.isLinear &&\n (step.type === 'future' || step.type === 'completed' || (step.type === 'visited' && i !== state.active))\n \"\n role=\"tab\"\n [attr.aria-selected]=\"i === state.active ? 'true' : 'false'\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"state.steps.length\"\n [attr.aria-controls]=\"step.ariaControl\"\n (click)=\"stepperService.selectWithFocus(i)\"\n >\n <div\n [class.df-stepper-outline-number-visited]=\"step.type === 'visited'\"\n [class.df-stepper-outline-icon]=\"step.type === 'warning'\"\n [class.fa-exclamation-triangle]=\"step.type === 'warning'\"\n [class.df-stepper-icon]=\"step.type === 'completed'\"\n [class.fa-check]=\"step.type === 'completed'\"\n [class.df-stepper-outline-number-future]=\"step.type === 'future'\"\n >\n <span aria-hidden=\"true\">{{ stepperService.getStepNumberLabel(i) }}</span>\n </div>\n <div\n class=\"flex-column\"\n [class.mt-1]=\"!state.isInline\"\n [class.d-none]=\"!state.isVertical\"\n [class.d-sm-flex]=\"!state.isVertical\"\n [class.d-flex]=\"state.isVertical\"\n >\n @if (step.type === 'warning') {\n <span class=\"visually-hidden\">{{ stepperService.warningLabel }}</span>\n }\n <span class=\"df-stepper-label\">{{ step.label }}</span>\n @if (step.optionalLabel) {\n <span class=\"df-stepper-optional-label\">{{ step.optionalLabel }}</span>\n }\n @if (step.completed) {\n <span class=\"visually-hidden\">{{ stepperService.completedLabel }}</span>\n }\n </div>\n </button>\n @if (!state.isVertical && i < state.steps.length - 1) {\n <ng-container [ngTemplateOutlet]=\"myStepperLine\"></ng-container>\n }\n @if (state.isVertical && i < state.steps.length) {\n <div\n [class.d-none]=\"state.steps.length - 1 === i\"\n role=\"tabpanel\"\n [id]=\"step.ariaControl\"\n class=\"df-vertical-stepper-panel df-vertical-stepper-line\"\n >\n @if (mapStepToContent.has(i) && state.active === i) {\n <ng-template\n [ngTemplateOutlet]=\"mapStepToContent.get(i) || null\"\n [ngTemplateOutletContext]=\"{ state, index: i, service: stepperService }\"\n ></ng-template>\n }\n </div>\n }\n }\n}\n@if (stepperService.stepperState$ | async; as state) {\n <div\n class=\"text-primary mb-2\"\n [class.d-block]=\"!state.isVertical\"\n [class.d-sm-none]=\"!state.isVertical\"\n [class.d-none]=\"state.isVertical\"\n >\n <span class=\"df-stepper-label\">{{ state.steps[state.active].label }}</span>\n </div>\n}\n" }]
5754
+ }], ctorParameters: () => [] });
5928
5755
 
5929
5756
  class DfStepperModule {
5930
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5931
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfStepperModule, imports: [DfStepperDirective, DfStepperStepDirective, DfStepperComponent, DfStepperStepContentDirective], exports: [DfStepperDirective, DfStepperStepDirective, DfStepperComponent, DfStepperStepContentDirective] }); }
5932
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperModule, imports: [DfStepperComponent] }); }
5757
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5758
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfStepperModule, imports: [DfStepperDirective, DfStepperStepDirective, DfStepperComponent, DfStepperStepContentDirective], exports: [DfStepperDirective, DfStepperStepDirective, DfStepperComponent, DfStepperStepContentDirective] }); }
5759
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperModule }); }
5933
5760
  }
5934
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfStepperModule, decorators: [{
5761
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfStepperModule, decorators: [{
5935
5762
  type: NgModule,
5936
5763
  args: [{
5937
5764
  imports: [DfStepperDirective, DfStepperStepDirective, DfStepperComponent, DfStepperStepContentDirective],
@@ -5952,26 +5779,27 @@ class DfTooltipTruncateDirective {
5952
5779
  this.renderer.addClass(this.elementRef.nativeElement, 'text-truncate');
5953
5780
  }
5954
5781
  ngDoCheck() {
5955
- this.tooltip.disableTooltip = !hasOverflow(this.elementRef.nativeElement);
5782
+ const disableToolTip = !hasOverflow(this.elementRef.nativeElement);
5783
+ this.tooltip.disableTooltip = disableToolTip;
5784
+ this.renderer.setAttribute(this.elementRef.nativeElement, 'tabIndex', disableToolTip ? '-1' : '0');
5956
5785
  }
5957
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfTooltipTruncateDirective, deps: [{ token: i1.NgbTooltip }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
5958
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfTooltipTruncateDirective, isStandalone: true, selector: "[dfTooltipTruncate]", exportAs: ["dfTooltipTruncate"], ngImport: i0 }); }
5786
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfTooltipTruncateDirective, deps: [{ token: i1.NgbTooltip }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
5787
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: DfTooltipTruncateDirective, isStandalone: true, selector: "[dfTooltipTruncate]", exportAs: ["dfTooltipTruncate"], ngImport: i0 }); }
5959
5788
  }
5960
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfTooltipTruncateDirective, decorators: [{
5789
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfTooltipTruncateDirective, decorators: [{
5961
5790
  type: Directive,
5962
5791
  args: [{
5963
5792
  exportAs: 'dfTooltipTruncate',
5964
- selector: '[dfTooltipTruncate]',
5965
- standalone: true
5793
+ selector: '[dfTooltipTruncate]'
5966
5794
  }]
5967
5795
  }], ctorParameters: () => [{ type: i1.NgbTooltip }, { type: i0.ElementRef }, { type: i0.Renderer2 }] });
5968
5796
 
5969
5797
  class DfTooltipModule {
5970
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5971
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfTooltipModule, imports: [DfTooltipTruncateDirective], exports: [DfTooltipTruncateDirective, NgbTooltipModule] }); }
5972
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfTooltipModule, imports: [NgbTooltipModule] }); }
5798
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5799
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfTooltipModule, imports: [DfTooltipTruncateDirective], exports: [DfTooltipTruncateDirective, NgbTooltipModule] }); }
5800
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfTooltipModule, imports: [NgbTooltipModule] }); }
5973
5801
  }
5974
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfTooltipModule, decorators: [{
5802
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfTooltipModule, decorators: [{
5975
5803
  type: NgModule,
5976
5804
  args: [{
5977
5805
  imports: [DfTooltipTruncateDirective],
@@ -5980,8 +5808,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
5980
5808
  }] });
5981
5809
 
5982
5810
  class DfSideNavModule {
5983
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5984
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavModule, imports: [DfManageSideNavDirective,
5811
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5812
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavModule, imports: [DfManageSideNavDirective,
5985
5813
  DfSideNavComponent,
5986
5814
  DfSideNavHeaderDirective,
5987
5815
  DfExcludeTrapDirective,
@@ -5994,10 +5822,10 @@ class DfSideNavModule {
5994
5822
  DfSideNavItemDirective,
5995
5823
  DfSideNavCollapseModule,
5996
5824
  DfMediaModule] }); }
5997
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavModule, imports: [DfSideNavComponent, DfSideNavCollapseModule,
5825
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavModule, imports: [DfSideNavComponent, DfSideNavCollapseModule,
5998
5826
  DfMediaModule] }); }
5999
5827
  }
6000
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfSideNavModule, decorators: [{
5828
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfSideNavModule, decorators: [{
6001
5829
  type: NgModule,
6002
5830
  args: [{
6003
5831
  imports: [
@@ -6022,18 +5850,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
6022
5850
  }] });
6023
5851
 
6024
5852
  class DfManageCardSelectionDirective {
6025
- set dfManageCardSelected(isSelected) {
6026
- const selectedClass = 'df-card-selected';
6027
- if (isSelected === true) {
6028
- this.renderer.addClass(this.element.nativeElement, selectedClass);
6029
- }
6030
- else {
6031
- this.renderer.removeClass(this.element.nativeElement, selectedClass);
6032
- }
6033
- }
6034
- constructor(element, renderer) {
6035
- this.element = element;
6036
- this.renderer = renderer;
5853
+ constructor() {
5854
+ this.dfManageCardSelected = input.required();
5855
+ this.element = inject(ElementRef);
5856
+ this.renderer = inject(Renderer2);
5857
+ effect(() => {
5858
+ const selectedClass = 'df-card-selected';
5859
+ if (this.dfManageCardSelected() === true) {
5860
+ this.renderer.addClass(this.element.nativeElement, selectedClass);
5861
+ }
5862
+ else {
5863
+ this.renderer.removeClass(this.element.nativeElement, selectedClass);
5864
+ }
5865
+ });
6037
5866
  }
6038
5867
  ngAfterViewInit() {
6039
5868
  this.input = this.element.nativeElement.querySelector('.form-check-input');
@@ -6050,28 +5879,25 @@ class DfManageCardSelectionDirective {
6050
5879
  this.element.nativeElement.focus();
6051
5880
  }
6052
5881
  }
6053
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfManageCardSelectionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
6054
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfManageCardSelectionDirective, isStandalone: true, selector: "[dfManageCardSelected]", inputs: { dfManageCardSelected: "dfManageCardSelected" }, host: { listeners: { "click": "click($event)" } }, ngImport: i0 }); }
5882
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfManageCardSelectionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
5883
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.3", type: DfManageCardSelectionDirective, isStandalone: true, selector: "[dfManageCardSelected]", inputs: { dfManageCardSelected: { classPropertyName: "dfManageCardSelected", publicName: "dfManageCardSelected", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "click": "click($event)" } }, ngImport: i0 }); }
6055
5884
  }
6056
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfManageCardSelectionDirective, decorators: [{
5885
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfManageCardSelectionDirective, decorators: [{
6057
5886
  type: Directive,
6058
5887
  args: [{
6059
5888
  selector: '[dfManageCardSelected]',
6060
- standalone: true
5889
+ host: {
5890
+ '(click)': 'click($event)'
5891
+ }
6061
5892
  }]
6062
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { dfManageCardSelected: [{
6063
- type: Input
6064
- }], click: [{
6065
- type: HostListener,
6066
- args: ['click', ['$event']]
6067
- }] } });
5893
+ }], ctorParameters: () => [] });
6068
5894
 
6069
5895
  class DfAdvancedCardModule {
6070
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAdvancedCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6071
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfAdvancedCardModule, imports: [DfManageCardSelectionDirective], exports: [DfManageCardSelectionDirective] }); }
6072
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAdvancedCardModule }); }
5896
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAdvancedCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5897
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfAdvancedCardModule, imports: [DfManageCardSelectionDirective], exports: [DfManageCardSelectionDirective] }); }
5898
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAdvancedCardModule }); }
6073
5899
  }
6074
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfAdvancedCardModule, decorators: [{
5900
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfAdvancedCardModule, decorators: [{
6075
5901
  type: NgModule,
6076
5902
  args: [{
6077
5903
  imports: [DfManageCardSelectionDirective],
@@ -6102,8 +5928,8 @@ const DF_MODULES = [
6102
5928
  * @deprecated Import only the needed modules or use standalone components instead of DfModule
6103
5929
  */
6104
5930
  class DfModule {
6105
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6106
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfModule, imports: [DfAlertModule,
5931
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5932
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfModule, imports: [DfAlertModule,
6107
5933
  DfDatePickerModule,
6108
5934
  DfSelectModule,
6109
5935
  DfProgressbarModule,
@@ -6136,7 +5962,7 @@ class DfModule {
6136
5962
  DfFooterModule,
6137
5963
  DfToastModule,
6138
5964
  DfStepperModule] }); }
6139
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfModule, imports: [DF_MODULES, DfAlertModule,
5965
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfModule, imports: [DF_MODULES, DfAlertModule,
6140
5966
  DfDatePickerModule,
6141
5967
  DfSelectModule,
6142
5968
  DfProgressbarModule,
@@ -6154,7 +5980,7 @@ class DfModule {
6154
5980
  DfToastModule,
6155
5981
  DfStepperModule] }); }
6156
5982
  }
6157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfModule, decorators: [{
5983
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfModule, decorators: [{
6158
5984
  type: NgModule,
6159
5985
  args: [{
6160
5986
  imports: DF_MODULES,
@@ -6163,27 +5989,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
6163
5989
  }] });
6164
5990
 
6165
5991
  class DfWavesOfProgressDirective {
6166
- constructor() {
6167
- this.http = inject(HttpClient, { optional: true });
6168
- this.waveClass = 'df-waves-of-progress-bg';
6169
- this.elementRef = inject(ElementRef);
6170
- this.baseSvg = '';
6171
- }
6172
- /**
6173
- * The type of waves to display. In order to display the waves, the app using the directive must include the assets of Design Factory.
6174
- * It is possible to do so by adding the following snippet to the `angular.json` file in the `assets` configuration:
6175
- * @example
6176
- * "assets": [
6177
- * {
6178
- * "glob": "** / *", //remove the spaces between the asterisks and the slash
6179
- * "input": "node-modules/@design-factory/design-factory/assets/",
6180
- * "output": "assets/"
6181
- * },
6182
- * ...]
6183
- */
6184
- set wavesType(value) {
6185
- this.getSvg(value);
6186
- }
6187
5992
  /**
6188
5993
  * Prepares the SVG string by replacing color variables and encoding it.
6189
5994
  * @param bgColor - The background color.
@@ -6200,14 +6005,40 @@ class DfWavesOfProgressDirective {
6200
6005
  * Updates the SVG background image based on the current element's styles.
6201
6006
  */
6202
6007
  updateSvg() {
6203
- const computedStyle = window.getComputedStyle(this.elementRef.nativeElement);
6204
- const bgColor = computedStyle.getPropertyValue('--df-waves-of-progress-bg-color');
6205
- const lineColor = computedStyle.getPropertyValue('--df-waves-of-progress-line-color');
6206
- if (!bgColor || !lineColor) {
6207
- this.elementRef.nativeElement.style.backgroundImage = null;
6008
+ if (isPlatformBrowser(this.platformId)) {
6009
+ const computedStyle = window.getComputedStyle(this.elementRef.nativeElement);
6010
+ const bgColor = computedStyle.getPropertyValue('--df-waves-of-progress-bg-color');
6011
+ const lineColor = computedStyle.getPropertyValue('--df-waves-of-progress-line-color');
6012
+ if (!bgColor || !lineColor) {
6013
+ this.elementRef.nativeElement.style.backgroundImage = null;
6014
+ }
6015
+ else {
6016
+ this.elementRef.nativeElement.style.backgroundImage = `url(${this.prepareSvg(bgColor, lineColor)})`;
6017
+ }
6208
6018
  }
6209
- else {
6210
- this.elementRef.nativeElement.style.backgroundImage = `url(${this.prepareSvg(bgColor, lineColor)})`;
6019
+ }
6020
+ constructor() {
6021
+ /**
6022
+ * The type of waves to display. In order to display the waves, the app using the directive must include the assets of Design Factory.
6023
+ * It is possible to do so by adding the following snippet to the `angular.json` file in the `assets` configuration:
6024
+ * @example
6025
+ * "assets": [
6026
+ * {
6027
+ * "glob": "** / *", //remove the spaces between the asterisks and the slash
6028
+ * "input": "node-modules/@design-factory/design-factory/assets/",
6029
+ * "output": "assets/"
6030
+ * },
6031
+ * ...]
6032
+ */
6033
+ this.dfWavesOfProgress = input.required();
6034
+ this.http = inject(HttpClient, { optional: true });
6035
+ this.elementRef = inject(ElementRef);
6036
+ this.platformId = inject(PLATFORM_ID);
6037
+ this.baseSvg = '';
6038
+ if (isPlatformBrowser(this.platformId)) {
6039
+ effect(() => {
6040
+ this.getSvg(this.dfWavesOfProgress());
6041
+ });
6211
6042
  }
6212
6043
  }
6213
6044
  getSvg(wavesType) {
@@ -6227,30 +6058,26 @@ class DfWavesOfProgressDirective {
6227
6058
  }
6228
6059
  });
6229
6060
  }
6230
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfWavesOfProgressDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
6231
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: DfWavesOfProgressDirective, isStandalone: true, selector: "[dfWavesOfProgress]", inputs: { wavesType: ["dfWavesOfProgress", "wavesType"] }, host: { properties: { "class": "this.waveClass" } }, exportAs: ["dfWavesOfProgress"], ngImport: i0 }); }
6061
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfWavesOfProgressDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
6062
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.3", type: DfWavesOfProgressDirective, isStandalone: true, selector: "[dfWavesOfProgress]", inputs: { dfWavesOfProgress: { classPropertyName: "dfWavesOfProgress", publicName: "dfWavesOfProgress", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "df-waves-of-progress-bg" }, exportAs: ["dfWavesOfProgress"], ngImport: i0 }); }
6232
6063
  }
6233
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfWavesOfProgressDirective, decorators: [{
6064
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfWavesOfProgressDirective, decorators: [{
6234
6065
  type: Directive,
6235
6066
  args: [{
6236
6067
  selector: '[dfWavesOfProgress]',
6237
- standalone: true,
6238
- exportAs: 'dfWavesOfProgress'
6068
+ exportAs: 'dfWavesOfProgress',
6069
+ host: {
6070
+ class: 'df-waves-of-progress-bg'
6071
+ }
6239
6072
  }]
6240
- }], propDecorators: { wavesType: [{
6241
- type: Input,
6242
- args: ['dfWavesOfProgress']
6243
- }], waveClass: [{
6244
- type: HostBinding,
6245
- args: ['class']
6246
- }] } });
6073
+ }], ctorParameters: () => [] });
6247
6074
 
6248
6075
  class DfWavesOfProgressModule {
6249
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfWavesOfProgressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6250
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DfWavesOfProgressModule, imports: [DfWavesOfProgressDirective], exports: [DfWavesOfProgressDirective] }); }
6251
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfWavesOfProgressModule }); }
6076
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfWavesOfProgressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6077
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DfWavesOfProgressModule, imports: [DfWavesOfProgressDirective], exports: [DfWavesOfProgressDirective] }); }
6078
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfWavesOfProgressModule }); }
6252
6079
  }
6253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DfWavesOfProgressModule, decorators: [{
6080
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DfWavesOfProgressModule, decorators: [{
6254
6081
  type: NgModule,
6255
6082
  args: [{
6256
6083
  imports: [DfWavesOfProgressDirective],
@@ -6268,5 +6095,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
6268
6095
  * Generated bundle index. Do not edit.
6269
6096
  */
6270
6097
 
6271
- export { BREAKPOINTS_VARS, ChangeContext, CloseInputDatePickerDirective, DF_BREAKPOINTS_VAR_DEFAULT, DfAccessibilityModule, DfAdvancedCardModule, DfAdvancedInputModule, DfAlertModule, DfAmadeusIconComponent, DfBreakpoints, DfDatePickerModule, DfDatepickerRangeDirective, DfDatepickerRangeService, DfDefaultSpinnerComponent, DfDirectionDetectionService, DfExcludeTrapDirective, DfFooterModule, DfIconModule, DfIfMediaDirective, DfInputIconDirective, DfInsertIconDirective, DfInsertIconModule, DfManageBadgeEventsDirective, DfManageCardSelectionDirective, DfManageNavSelectDirective, DfManageSideNavDirective, DfMedia, DfMediaModule, DfMediaObserver, DfMediaQuery, DfModalService, DfModule, DfNavItemType, DfOptionHighlightDirective, DfPopoverConfig, DfPopoverModule, DfProgressIndicatorBackdropComponent, DfProgressIndicatorContainerComponent, DfProgressIndicatorContentPosition, DfProgressIndicatorContentProgressBar, DfProgressIndicatorContentSpinner, DfProgressIndicatorContentType, DfProgressIndicatorDirective, DfProgressIndicatorModule, DfProgressIndicatorRef, DfProgressIndicatorService, DfProgressbarComponent, DfProgressbarModule, DfSelectModule, DfSideNavCollapseDirective, DfSideNavCollapseModule, DfSideNavCollapseService, DfSideNavComponent, DfSideNavConfig, DfSideNavHeaderDirective, DfSideNavIconDirective, DfSideNavItemDirective, DfSideNavModule, DfSideNavService, DfSliderDirectionDirective, DfSliderModule, DfStepperComponent, DfStepperDirective, DfStepperModule, DfStepperService, DfStepperStepContentDirective, DfStepperStepDirective, DfTitleTruncateDirective, DfToastModule, DfTooltipModule, DfTooltipTruncateDirective, DfTriggerClickDirective, DfWavesOfProgressDirective, DfWavesOfProgressModule, LabelType, Options, PointerType, RightToLeftDirectionEnum, SkipLinkDirective, SkipLinksContainerComponent, SliderComponent };
6098
+ export { BREAKPOINTS_VARS, ChangeContext, DF_BREAKPOINTS_VAR_DEFAULT, DfAccessibilityModule, DfAdvancedCardModule, DfAdvancedInputModule, DfAlertModule, DfAmadeusIconComponent, DfBreakpoints, DfDatePickerModule, DfDatepickerRangeDirective, DfDatepickerRangeService, DfDefaultSpinnerComponent, DfDirectionDetectionService, DfExcludeTrapDirective, DfFooterModule, DfIconModule, DfIfMediaDirective, DfInputIconDirective, DfInsertIconDirective, DfInsertIconModule, DfManageBadgeEventsDirective, DfManageCardSelectionDirective, DfManageNavSelectDirective, DfManageSideNavDirective, DfMedia, DfMediaModule, DfMediaObserver, DfMediaQuery, DfModalService, DfModule, DfNavItemType, DfOptionHighlightDirective, DfPopoverConfig, DfPopoverModule, DfProgressIndicatorBackdropComponent, DfProgressIndicatorContainerComponent, DfProgressIndicatorContentPosition, DfProgressIndicatorContentProgressBar, DfProgressIndicatorContentSpinner, DfProgressIndicatorContentType, DfProgressIndicatorDirective, DfProgressIndicatorModule, DfProgressIndicatorRef, DfProgressIndicatorService, DfProgressbarComponent, DfProgressbarModule, DfSelectModule, DfSideNavCollapseDirective, DfSideNavCollapseModule, DfSideNavCollapseService, DfSideNavComponent, DfSideNavConfig, DfSideNavHeaderDirective, DfSideNavIconDirective, DfSideNavItemDirective, DfSideNavModule, DfSideNavService, DfSliderDirectionDirective, DfSliderModule, DfStepperComponent, DfStepperDirective, DfStepperModule, DfStepperService, DfStepperStepContentDirective, DfStepperStepDirective, DfTitleTruncateDirective, DfToastModule, DfTooltipModule, DfTooltipTruncateDirective, DfTriggerClickDirective, DfWavesOfProgressDirective, DfWavesOfProgressModule, LabelType, Options, PointerType, RightToLeftDirectionEnum, SkipLinkDirective, SkipLinksContainerComponent, SliderComponent };
6272
6099
  //# sourceMappingURL=design-factory.mjs.map