@design-factory/design-factory 19.1.3 → 20.0.0-next.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.
- package/design-factory-initial-branding.css +1 -1
- package/design-factory.css +2 -2
- package/fesm2022/design-factory.mjs +511 -389
- package/fesm2022/design-factory.mjs.map +1 -1
- package/index.d.ts +1801 -2
- package/package.json +14 -16
- package/schematics/migrations/20_0_0/navbar-toggler-logo-svg/index.d.ts +7 -0
- package/schematics/migrations/20_0_0/navbar-toggler-logo-svg/index.js +47 -0
- package/schematics/migrations/migration.json +6 -0
- package/styles/scss/_common.scss +1 -1
- package/styles/scss/_common.variables.scss +4 -2
- package/styles/scss/_variables.scss +1 -0
- package/styles/scss/agnosui/_variables.scss +2 -2
- package/styles/scss/bootstrap/_variables.scss +13 -6
- package/styles/scss/components/accordion/_accordion.scss +12 -1
- package/styles/scss/components/alert/_alert.scss +15 -7
- package/styles/scss/components/badge/_badge.mixins.scss +12 -0
- package/styles/scss/components/badge/_badge.scss +263 -75
- package/styles/scss/components/badge/_badge.variables.scss +8 -0
- package/styles/scss/components/brand-color/_brand-color.mixins.scss +2 -2
- package/styles/scss/components/breadcrumbs/_breadcrumbs.scss +12 -9
- package/styles/scss/components/breadcrumbs/_breadcrumbs.variables.scss +3 -3
- package/styles/scss/components/button/_button.scss +384 -59
- package/styles/scss/components/button/_button.variables.scss +1 -3
- package/styles/scss/components/card/_card.scss +14 -0
- package/styles/scss/components/card/_card.variables.scss +2 -0
- package/styles/scss/components/carousel/_carousel.scss +2 -2
- package/styles/scss/components/checkbox/_checkbox.scss +11 -4
- package/styles/scss/components/datepicker/_datepicker.scss +1 -1
- package/styles/scss/components/dropdown/_dropdown.scss +4 -2
- package/styles/scss/components/dropdown/_dropdown.variables.scss +1 -0
- package/styles/scss/components/fieldset/_fieldset.scss +2 -2
- package/styles/scss/components/fieldset/_fieldset.variables.scss +1 -1
- package/styles/scss/components/fonts/_fonts-family.scss +8 -8
- package/styles/scss/components/fonts/multi-lang/_arabic.mixins.scss +5 -1
- package/styles/scss/components/fonts/multi-lang/_chinese.mixins.scss +13 -4
- package/styles/scss/components/fonts/multi-lang/_georgian.mixins.scss +5 -1
- package/styles/scss/components/fonts/multi-lang/_hebrew.mixins.scss +5 -1
- package/styles/scss/components/fonts/multi-lang/_japanese.mixins.scss +15 -5
- package/styles/scss/components/fonts/multi-lang/_korean.mixins.scss +12 -4
- package/styles/scss/components/footer/_footer.mixins.scss +36 -0
- package/styles/scss/components/footer/_footer.scss +49 -15
- package/styles/scss/components/footer/_footer.variables.scss +0 -1
- package/styles/scss/components/form/_form.scss +31 -1
- package/styles/scss/components/icon/_amadeus-icon.scss +2 -2
- package/styles/scss/components/inputs/_inputs.mixin.scss +2 -2
- package/styles/scss/components/inputs/_inputs.scss +3 -3
- package/styles/scss/components/link/_link.mixins.scss +72 -75
- package/styles/scss/components/link/_link.scss +26 -32
- package/styles/scss/components/link/_link.variables.scss +3 -0
- package/styles/scss/components/list-group/_list-group.scss +30 -5
- package/styles/scss/components/list-group/_list-group.variables.scss +6 -2
- package/styles/scss/components/media/_media.scss +8 -1
- package/styles/scss/components/media/_media.variables.scss +2 -0
- package/styles/scss/components/modal/_modal.scss +17 -4
- package/styles/scss/components/modal/_modal.variables.scss +1 -0
- package/styles/scss/components/navbar/_navbar.mixins.scss +55 -0
- package/styles/scss/components/navbar/_navbar.scss +180 -71
- package/styles/scss/components/navbar/_navbar.variables.scss +42 -13
- package/styles/scss/components/pagination/_pagination.scss +51 -2
- package/styles/scss/components/pagination/_pagination.variables.scss +3 -0
- package/styles/scss/components/popover/_popover.mixin.scss +1 -1
- package/styles/scss/components/popover/_popover.scss +1 -1
- package/styles/scss/components/popover/_popover.variables.scss +4 -0
- package/styles/scss/components/progressbar/_progressbar.scss +11 -0
- package/styles/scss/components/progressbar/_progressbar.variables.scss +5 -0
- package/styles/scss/components/radio/_radio.scss +11 -4
- package/styles/scss/components/radio/_radio.variables.scss +1 -0
- package/styles/scss/components/rating/_rating.scss +21 -3
- package/styles/scss/components/scrollspy/_scrollspy.scss +8 -1
- package/styles/scss/components/select/_select.mixin.scss +34 -0
- package/styles/scss/components/select/_select.scss +5 -19
- package/styles/scss/components/select/_select.variables.scss +2 -0
- package/styles/scss/components/sidenav/_sidenav.scss +2 -2
- package/styles/scss/components/speechbubble/_speechbubble.scss +19 -0
- package/styles/scss/components/speechbubble/_speechbubble.variables.scss +6 -0
- package/styles/scss/components/spinner/_spinner.scss +19 -0
- package/styles/scss/components/spinner/_spinner.variables.scss +6 -0
- package/styles/scss/components/stepper/_stepper.scss +29 -3
- package/styles/scss/components/stepper/_stepper.variables.scss +13 -4
- package/styles/scss/components/table/_advancedtables.scss +9 -5
- package/styles/scss/components/table/_table.scss +6 -0
- package/styles/scss/components/table/_table.variables.scss +3 -0
- package/styles/scss/components/tabs/_tabs.scss +12 -1
- package/styles/scss/components/timepicker/_timepicker.scss +5 -0
- package/styles/scss/components/timepicker/_timepicker.variables.scss +1 -0
- package/styles/scss/components/toast/_toast.scss +31 -9
- package/styles/scss/components/toggle/_toggle.scss +2 -1
- package/styles/scss/components/toggle/_toggle.variables.scss +1 -0
- package/styles/scss/components/tooltip/_tooltip.scss +12 -0
- package/styles/scss/components/tooltip/_tooltip.variables.scss +4 -0
- package/styles/scss/df-styles.scss +1 -0
- package/styles/scss/themes/brand2023/_variables.scss +477 -457
- package/styles/scss/themes/brand2023/tokens/_figma.gen.scss +3028 -0
- package/styles/scss/themes/brand2023/tokens/_mapping.gen.scss +898 -0
- package/styles/scss/utilities/_common.utilities.scss +49 -1
- package/environment.d.ts +0 -4
- package/lib/angular/accessibility/accessibility.module.d.ts +0 -10
- package/lib/angular/accessibility/components/skip-links-container/skip-links-container.component.d.ts +0 -7
- package/lib/angular/accessibility/directives/skip-link.directive.d.ts +0 -9
- package/lib/angular/alert/alert.module.d.ts +0 -8
- package/lib/angular/animation/ngbTransition.d.ts +0 -16
- package/lib/angular/animation/util.d.ts +0 -14
- package/lib/angular/card/card-advanced.module.d.ts +0 -8
- package/lib/angular/card/manage-card-selection.directive.d.ts +0 -13
- package/lib/angular/datepicker/datepicker-keyboard-nav.service.d.ts +0 -7
- package/lib/angular/datepicker/datepicker-range.directive.d.ts +0 -30
- package/lib/angular/datepicker/datepicker-range.service.d.ts +0 -32
- package/lib/angular/datepicker/datepicker.module.d.ts +0 -10
- package/lib/angular/df.module.d.ts +0 -26
- package/lib/angular/footer/footer.module.d.ts +0 -8
- package/lib/angular/icon/amadeus-icon.d.ts +0 -5
- package/lib/angular/icon/icon.module.d.ts +0 -8
- package/lib/angular/icon/insert/insert-icon.directive.d.ts +0 -12
- package/lib/angular/icon/insert/insert-icon.module.d.ts +0 -8
- package/lib/angular/inputs/click/trigger-click.directive.d.ts +0 -9
- package/lib/angular/inputs/icon/inputicon.directive.d.ts +0 -29
- package/lib/angular/inputs/input-advanced.module.d.ts +0 -10
- package/lib/angular/mediaqueries/ifMedia.directive.d.ts +0 -25
- package/lib/angular/mediaqueries/media.module.d.ts +0 -8
- package/lib/angular/mediaqueries/media.service.d.ts +0 -24
- package/lib/angular/mediaqueries/mediaUtils.service.d.ts +0 -75
- package/lib/angular/modal/modal.service.d.ts +0 -17
- package/lib/angular/popover/config/popover.config.d.ts +0 -7
- package/lib/angular/popover/popover.module.d.ts +0 -7
- package/lib/angular/progressbar/progressbar.component.d.ts +0 -61
- package/lib/angular/progressbar/progressbar.module.d.ts +0 -9
- package/lib/angular/progressindicator/default/default-spinner.component.d.ts +0 -8
- package/lib/angular/progressindicator/progressindicator-backdrop.component.d.ts +0 -8
- package/lib/angular/progressindicator/progressindicator-config.d.ts +0 -54
- package/lib/angular/progressindicator/progressindicator-container.component.d.ts +0 -11
- package/lib/angular/progressindicator/progressindicator-ref.d.ts +0 -9
- package/lib/angular/progressindicator/progressindicator.directive.d.ts +0 -16
- package/lib/angular/progressindicator/progressindicator.module.d.ts +0 -15
- package/lib/angular/progressindicator/progressindicator.service.d.ts +0 -33
- package/lib/angular/right-to-left/directionDetection.service.d.ts +0 -12
- package/lib/angular/selects/events/manage-badge-events.directive.d.ts +0 -15
- package/lib/angular/selects/nav/manage-nav-select.directive.d.ts +0 -20
- package/lib/angular/selects/option-highlight.directive.d.ts +0 -14
- package/lib/angular/selects/select.model.d.ts +0 -1
- package/lib/angular/selects/select.module.d.ts +0 -13
- package/lib/angular/sidenav/dfSideNavAnimation.d.ts +0 -7
- package/lib/angular/sidenav/dfSideNavCollapse.d.ts +0 -46
- package/lib/angular/sidenav/dfSideNavCollapse.module.d.ts +0 -9
- package/lib/angular/sidenav/dfSideNavCollapse.service.d.ts +0 -24
- package/lib/angular/sidenav/dfSideNavCollapseConfig.d.ts +0 -17
- package/lib/angular/sidenav/excludeTrap.directive.d.ts +0 -30
- package/lib/angular/sidenav/manage-sidenav.directive.d.ts +0 -10
- package/lib/angular/sidenav/sidenav-config.d.ts +0 -17
- package/lib/angular/sidenav/sidenav.component.d.ts +0 -43
- package/lib/angular/sidenav/sidenav.module.d.ts +0 -14
- package/lib/angular/sidenav/sidenav.service.d.ts +0 -180
- package/lib/angular/sidenav/sidenavlist.component.d.ts +0 -25
- package/lib/angular/slider/direction/sliderdirection.directive.d.ts +0 -13
- package/lib/angular/slider/lib/change-context.d.ts +0 -6
- package/lib/angular/slider/lib/compatibility-helper.d.ts +0 -7
- package/lib/angular/slider/lib/event-listener-helper.d.ts +0 -13
- package/lib/angular/slider/lib/event-listener.d.ts +0 -7
- package/lib/angular/slider/lib/math-helper.d.ts +0 -6
- package/lib/angular/slider/lib/options.d.ts +0 -241
- package/lib/angular/slider/lib/pointer-type.d.ts +0 -7
- package/lib/angular/slider/lib/slider-element.directive.d.ts +0 -51
- package/lib/angular/slider/lib/slider-handle.directive.d.ts +0 -22
- package/lib/angular/slider/lib/slider-label.directive.d.ts +0 -14
- package/lib/angular/slider/lib/slider.component.d.ts +0 -193
- package/lib/angular/slider/lib/tooltip-wrapper.component.d.ts +0 -13
- package/lib/angular/slider/lib/value-helper.d.ts +0 -13
- package/lib/angular/slider/slider.module.d.ts +0 -16
- package/lib/angular/stepper/stepper.component.d.ts +0 -30
- package/lib/angular/stepper/stepper.directive.d.ts +0 -37
- package/lib/angular/stepper/stepper.module.d.ts +0 -8
- package/lib/angular/stepper/stepper.service.d.ts +0 -132
- package/lib/angular/toast/toast.module.d.ts +0 -8
- package/lib/angular/tooltip/tooltip.module.d.ts +0 -9
- package/lib/angular/tooltip/truncate/tooltipTruncate.directive.d.ts +0 -19
- package/lib/angular/utils/html-element-helper.d.ts +0 -15
- package/lib/angular/utils/scrollbar.service.d.ts +0 -46
- package/lib/angular/utils/titleTruncate.directive.d.ts +0 -15
- package/lib/angular/waves-of-progress/waves.directive.d.ts +0 -36
- package/lib/angular/waves-of-progress/waves.module.d.ts +0 -7
- package/lib/index.d.ts +0 -70
package/index.d.ts
CHANGED
|
@@ -1,4 +1,1803 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { AfterViewInit, ElementRef, Renderer2, OnInit, OnDestroy, AfterViewChecked, DoCheck, ComponentRef, EmbeddedViewRef, TemplateRef, Type, OnChanges, EventEmitter, ChangeDetectorRef, NgZone, SimpleChanges, AfterContentInit, InjectionToken } from '@angular/core';
|
|
3
|
+
import * as i2 from '@ng-bootstrap/ng-bootstrap';
|
|
4
|
+
import { NgbDate, NgbDropdown, NgbDatepicker, NgbModalOptions, NgbModalRef, NgbPopoverConfig } from '@ng-bootstrap/ng-bootstrap';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import * as i4 from '@ng-select/ng-select';
|
|
8
|
+
|
|
9
|
+
declare class SkipLinkDirective {
|
|
10
|
+
readonly inFocus: i0.WritableSignal<boolean>;
|
|
11
|
+
private readonly element;
|
|
12
|
+
private readonly document;
|
|
13
|
+
focusOnTarget(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkipLinkDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SkipLinkDirective, "[dfSkipLink]", never, {}, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class SkipLinksContainerComponent {
|
|
19
|
+
private readonly links;
|
|
20
|
+
readonly inFocus: i0.Signal<boolean>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkipLinksContainerComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkipLinksContainerComponent, "df-skip-links-container", never, {}, {}, ["links"], ["*"], true, never>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare class DfAccessibilityModule {
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfAccessibilityModule, never>;
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfAccessibilityModule, never, [typeof SkipLinkDirective, typeof SkipLinksContainerComponent], [typeof SkipLinkDirective, typeof SkipLinksContainerComponent]>;
|
|
28
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfAccessibilityModule>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare class DfInsertIconDirective implements AfterViewInit {
|
|
32
|
+
private readonly el;
|
|
33
|
+
private readonly renderer;
|
|
34
|
+
private readonly supportedCmps;
|
|
35
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
36
|
+
ngAfterViewInit(): void;
|
|
37
|
+
getIconClassFromClasses(cssClasses: DOMTokenList): string;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfInsertIconDirective, never>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfInsertIconDirective, "ngb-alert[dfInsertAlertIcon],ngb-toast[dfInsertToastIcon]", never, {}, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare class DfInsertIconModule {
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfInsertIconModule, never>;
|
|
44
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfInsertIconModule, never, [typeof DfInsertIconDirective], [typeof DfInsertIconDirective]>;
|
|
45
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfInsertIconModule>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class DfToastModule {
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfToastModule, never>;
|
|
50
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfToastModule, never, [typeof DfInsertIconModule], [typeof i2.NgbToastModule, typeof DfInsertIconModule]>;
|
|
51
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfToastModule>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare class DfAlertModule {
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfAlertModule, never>;
|
|
56
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfAlertModule, never, [typeof DfInsertIconModule], [typeof i2.NgbAlertModule, typeof DfInsertIconModule]>;
|
|
57
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfAlertModule>;
|
|
58
|
+
}
|
|
59
|
+
|
|
1
60
|
/**
|
|
2
|
-
*
|
|
61
|
+
* My dfDatepickerRange directive
|
|
3
62
|
*/
|
|
4
|
-
|
|
63
|
+
declare class DfDatepickerRangeDirective implements OnInit, OnDestroy, AfterViewChecked, AfterViewInit {
|
|
64
|
+
private inputsElements;
|
|
65
|
+
private isDisabled;
|
|
66
|
+
private readonly siblingsNode;
|
|
67
|
+
private readonly removeListener;
|
|
68
|
+
private focusState;
|
|
69
|
+
private direction?;
|
|
70
|
+
private readonly renderer;
|
|
71
|
+
readonly el: ElementRef<any>;
|
|
72
|
+
private readonly dfDirectionServ;
|
|
73
|
+
private readonly platformId;
|
|
74
|
+
ngOnInit(): void;
|
|
75
|
+
initInput(el: HTMLInputElement, index: number): void;
|
|
76
|
+
removeFocus(): void;
|
|
77
|
+
ngAfterViewInit(): void;
|
|
78
|
+
/**
|
|
79
|
+
* You need to manually update the direction or update the icon
|
|
80
|
+
* if the direction (rtl / ltr) is changing dynamically
|
|
81
|
+
*/
|
|
82
|
+
updateDirection(): void;
|
|
83
|
+
ngAfterViewChecked(): void;
|
|
84
|
+
ngOnDestroy(): void;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfDatepickerRangeDirective, never>;
|
|
86
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfDatepickerRangeDirective, "[dfDatepickerRange]", ["dfDatepickerRange"], {}, {}, never, never, true, never>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
declare class DfTriggerClickDirective {
|
|
90
|
+
private readonly elementRef;
|
|
91
|
+
triggerClick(event: KeyboardEvent | MouseEvent): void;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfTriggerClickDirective, never>;
|
|
93
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfTriggerClickDirective, "[dfTriggerClick]", never, {}, {}, never, never, true, never>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
type DfDirection = 'append' | 'prepend';
|
|
97
|
+
/**
|
|
98
|
+
* dfInputIcon directive
|
|
99
|
+
* @deprecated `DfInputIconDirective` is deprecated and will be removed in DF 21, in favor of pure css.
|
|
100
|
+
* To migrate and keep the same behavior, simply add the class `df-input-withicon` to the input element this directive was used on and remove the directive.
|
|
101
|
+
*/
|
|
102
|
+
declare class DfInputIconDirective implements OnInit, DoCheck, OnDestroy {
|
|
103
|
+
readonly dfInputIcon: i0.InputSignal<DfDirection[]>;
|
|
104
|
+
private button;
|
|
105
|
+
private removeListener?;
|
|
106
|
+
private isDisabled;
|
|
107
|
+
private readonly siblingsNode;
|
|
108
|
+
private readonly renderer;
|
|
109
|
+
private readonly el;
|
|
110
|
+
ngDoCheck(): void;
|
|
111
|
+
ngOnInit(): void;
|
|
112
|
+
/**
|
|
113
|
+
* onBlur catch blur event to set the focused to false
|
|
114
|
+
*/
|
|
115
|
+
onBlur(): void;
|
|
116
|
+
onFocus(): void;
|
|
117
|
+
onTab(e: KeyboardEvent): void;
|
|
118
|
+
ngOnDestroy(): void;
|
|
119
|
+
private initButtonHandler;
|
|
120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfInputIconDirective, never>;
|
|
121
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfInputIconDirective, "[dfInputIcon]", ["dfInputIcon"], { "dfInputIcon": { "alias": "dfInputIcon"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare class DfAdvancedInputModule {
|
|
125
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfAdvancedInputModule, never>;
|
|
126
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfAdvancedInputModule, never, [typeof DfTriggerClickDirective, typeof DfInputIconDirective], [typeof DfTriggerClickDirective, typeof DfInputIconDirective]>;
|
|
127
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfAdvancedInputModule>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare class DfDatePickerModule {
|
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfDatePickerModule, never>;
|
|
132
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfDatePickerModule, never, [typeof i2.NgbDropdownModule, typeof DfDatepickerRangeDirective], [typeof i2.NgbDatepickerModule, typeof DfAdvancedInputModule, typeof DfDatepickerRangeDirective, typeof i2.NgbDropdownModule]>;
|
|
133
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfDatePickerModule>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare class DfDatepickerRangeService {
|
|
137
|
+
fromDate: NgbDate | null;
|
|
138
|
+
toDate: NgbDate | null;
|
|
139
|
+
hoveredDate: NgbDate | null;
|
|
140
|
+
fromDateAsStr: string;
|
|
141
|
+
toDateAsStr: string;
|
|
142
|
+
startDate: NgbDate | null;
|
|
143
|
+
getFocusBack: HTMLInputElement | HTMLButtonElement | null;
|
|
144
|
+
dropDown?: NgbDropdown;
|
|
145
|
+
isClosingOnToDate: boolean;
|
|
146
|
+
datepicker: NgbDatepicker | null;
|
|
147
|
+
private readonly calendar;
|
|
148
|
+
private readonly formatter;
|
|
149
|
+
onDateSelection(date: NgbDate): void;
|
|
150
|
+
setFocus(): void;
|
|
151
|
+
returnFocus(): void;
|
|
152
|
+
openChange(event: boolean): void;
|
|
153
|
+
toggle(dropDown: NgbDropdown, element?: HTMLInputElement | HTMLButtonElement | null, datepicker?: NgbDatepicker | null): void;
|
|
154
|
+
isSelected(date: NgbDate): boolean;
|
|
155
|
+
isFrom(date: NgbDate): boolean;
|
|
156
|
+
isTo(date: NgbDate): boolean;
|
|
157
|
+
isBetween(date: NgbDate): boolean;
|
|
158
|
+
effectiveToDate(): NgbDate | null | undefined;
|
|
159
|
+
parseInput(previous: NgbDate | null, typed: string): NgbDate | null;
|
|
160
|
+
updateFrom(typed: string): void;
|
|
161
|
+
updateTo(typed: string): void;
|
|
162
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfDatepickerRangeService, never>;
|
|
163
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfDatepickerRangeService>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Directive using the matchMedia JS feature (https://developer.mozilla.org/fr/docs/Web/API/Window/matchMedia)
|
|
168
|
+
* to be able to add or remove an element like ngIf is doing.
|
|
169
|
+
* Import DfMediaModule from DF to use all media elements provided
|
|
170
|
+
*/
|
|
171
|
+
declare class DfIfMediaDirective implements OnDestroy {
|
|
172
|
+
private _viewInstance;
|
|
173
|
+
/**
|
|
174
|
+
* Input of the directive
|
|
175
|
+
* @param mediaOrBreakpoints either media query string/Array of string or in case of BS usage a
|
|
176
|
+
* string/Array of string of the breakpoints name (sm...).
|
|
177
|
+
*/
|
|
178
|
+
readonly dfIfMedia: i0.InputSignal<string | string[]>;
|
|
179
|
+
private readonly _viewContainerRef;
|
|
180
|
+
private readonly _template;
|
|
181
|
+
private readonly _mediaService;
|
|
182
|
+
private _subscription;
|
|
183
|
+
constructor();
|
|
184
|
+
ngOnDestroy(): void;
|
|
185
|
+
private update;
|
|
186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfIfMediaDirective, never>;
|
|
187
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfIfMediaDirective, "[dfIfMedia]", never, { "dfIfMedia": { "alias": "dfIfMedia"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
declare class DfMediaModule {
|
|
191
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfMediaModule, never>;
|
|
192
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfMediaModule, never, [typeof DfIfMediaDirective], [typeof DfIfMediaDirective]>;
|
|
193
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfMediaModule>;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
declare class DfFooterModule {
|
|
197
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfFooterModule, never>;
|
|
198
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfFooterModule, never, [typeof DfMediaModule, typeof i2.NgbAccordionModule], [typeof DfMediaModule, typeof i2.NgbAccordionModule]>;
|
|
199
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfFooterModule>;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare class DfAmadeusIconComponent {
|
|
203
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfAmadeusIconComponent, never>;
|
|
204
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DfAmadeusIconComponent, "df-amadeus-icon", never, {}, {}, never, never, true, never>;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare class DfIconModule {
|
|
208
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfIconModule, never>;
|
|
209
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfIconModule, never, [typeof DfAmadeusIconComponent], [typeof DfAmadeusIconComponent]>;
|
|
210
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfIconModule>;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @deprecated `DfModalService` is deprecated, use `NgbModal` from ng-bootstrap instead.
|
|
215
|
+
* 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.
|
|
216
|
+
*/
|
|
217
|
+
declare class DfModalService {
|
|
218
|
+
private readonly renderer;
|
|
219
|
+
private readonly modalService;
|
|
220
|
+
open(content: any, options?: NgbModalOptions): NgbModalRef;
|
|
221
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfModalService, never>;
|
|
222
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfModalService>;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare class DfPopoverModule {
|
|
226
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfPopoverModule, never>;
|
|
227
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfPopoverModule, never, never, [typeof i2.NgbPopoverModule]>;
|
|
228
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfPopoverModule>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare class DfPopoverConfig extends NgbPopoverConfig {
|
|
232
|
+
autoClose: "outside";
|
|
233
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfPopoverConfig, never>;
|
|
234
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfPopoverConfig>;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
declare class DfProgressbarComponent implements OnInit, OnDestroy {
|
|
238
|
+
readonly PERCENTAGE_PLACEHOLDER = "%PERCENTAGE%";
|
|
239
|
+
readonly FADING_DELAY_MS = 1500;
|
|
240
|
+
readonly infiniteAnimation: i0.InputSignalWithTransform<boolean, unknown>;
|
|
241
|
+
/**
|
|
242
|
+
* Current value of the progressBar. If 'maxValue' is not defined, value represents a percentage. Otherwise, progress
|
|
243
|
+
* bar percentage value will be computed based on the ratio of 'value/maxValue'
|
|
244
|
+
*/
|
|
245
|
+
readonly value: i0.InputSignalWithTransform<number, unknown>;
|
|
246
|
+
readonly maxValue: i0.InputSignalWithTransform<number, unknown>;
|
|
247
|
+
readonly innerValue: i0.WritableSignal<number>;
|
|
248
|
+
readonly percentageValue: i0.Signal<number>;
|
|
249
|
+
readonly percentageValueChange: i0.OutputEmitterRef<number>;
|
|
250
|
+
/**
|
|
251
|
+
* Observable used to trigger the start of the loading.
|
|
252
|
+
* When emitting, progressbar will start to randomly increment toward 100%.
|
|
253
|
+
*/
|
|
254
|
+
readonly start$: i0.InputSignal<Observable<any> | undefined>;
|
|
255
|
+
/**
|
|
256
|
+
* Observable used to trigger the end of the loading.
|
|
257
|
+
* When emitting, it forces the progressbar to reach 100%.
|
|
258
|
+
*/
|
|
259
|
+
readonly end$: i0.InputSignal<Observable<any> | undefined>;
|
|
260
|
+
/**
|
|
261
|
+
* Id of the label used to describe the progress bar.
|
|
262
|
+
* It is used in priority compared to the ariaLabel.
|
|
263
|
+
*/
|
|
264
|
+
readonly ariaLabelledBy: i0.InputSignal<string | undefined>;
|
|
265
|
+
/**
|
|
266
|
+
* Aria label used to describe the progress bar if no ariaLabelledBy is specified.
|
|
267
|
+
*/
|
|
268
|
+
readonly ariaLabel: i0.InputSignal<string | undefined>;
|
|
269
|
+
readonly text: i0.InputSignal<string>;
|
|
270
|
+
readonly computedText: i0.Signal<string>;
|
|
271
|
+
readonly displayProgressBar: i0.WritableSignal<boolean>;
|
|
272
|
+
private startSubscription?;
|
|
273
|
+
private endSubscription?;
|
|
274
|
+
private intervalId;
|
|
275
|
+
private animationOngoing;
|
|
276
|
+
constructor();
|
|
277
|
+
ngOnInit(): void;
|
|
278
|
+
ngOnDestroy(): void;
|
|
279
|
+
/**
|
|
280
|
+
* Randomly increase the percentage but making sure that it can never reach 100%
|
|
281
|
+
*/
|
|
282
|
+
private increasePercentage;
|
|
283
|
+
/**
|
|
284
|
+
* Clears the 'setInterval' function so that the automatic increase of the progressbar stops
|
|
285
|
+
*/
|
|
286
|
+
private stopAutomaticIncrement;
|
|
287
|
+
/**
|
|
288
|
+
* Periodically calls a function which increments the value of the progressbar
|
|
289
|
+
*/
|
|
290
|
+
private startAutomaticIncrement;
|
|
291
|
+
private resetProgressBarValues;
|
|
292
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfProgressbarComponent, never>;
|
|
293
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DfProgressbarComponent, "df-progressbar", never, { "infiniteAnimation": { "alias": "infiniteAnimation"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "maxValue": { "alias": "maxValue"; "required": false; "isSignal": true; }; "start$": { "alias": "start$"; "required": false; "isSignal": true; }; "end$": { "alias": "end$"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "percentageValueChange": "percentageValueChange"; }, never, never, true, never>;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
declare class DfProgressbarModule {
|
|
297
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfProgressbarModule, never>;
|
|
298
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfProgressbarModule, never, [typeof DfProgressbarComponent], [typeof DfProgressbarComponent, typeof i2.NgbProgressbarModule]>;
|
|
299
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfProgressbarModule>;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
declare class DfDefaultSpinnerComponent {
|
|
303
|
+
readonly isGlobalSpinner: i0.InputSignalWithTransform<boolean, unknown>;
|
|
304
|
+
readonly contentClass: i0.InputSignal<string>;
|
|
305
|
+
readonly ariaLabel: i0.InputSignal<string | undefined>;
|
|
306
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfDefaultSpinnerComponent, never>;
|
|
307
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DfDefaultSpinnerComponent, "df-default-spinner", never, { "isGlobalSpinner": { "alias": "isGlobalSpinner"; "required": false; "isSignal": true; }; "contentClass": { "alias": "contentClass"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
declare class DfProgressIndicatorBackdropComponent {
|
|
311
|
+
readonly backdropClass: i0.InputSignal<string | undefined>;
|
|
312
|
+
readonly isGlobalBackdrop: i0.InputSignal<boolean>;
|
|
313
|
+
readonly classes: i0.Signal<string>;
|
|
314
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfProgressIndicatorBackdropComponent, never>;
|
|
315
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DfProgressIndicatorBackdropComponent, "df-progressindicator-backdrop", never, { "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "isGlobalBackdrop": { "alias": "isGlobalBackdrop"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
interface DfProgressIndicatorOptions {
|
|
319
|
+
/**
|
|
320
|
+
* If `true`, the backdrop element will be created for a given progress indicator.
|
|
321
|
+
* Default value is `true`.
|
|
322
|
+
*/
|
|
323
|
+
backdrop?: boolean;
|
|
324
|
+
/**
|
|
325
|
+
* A selector specifying the progress indicator elements should be appended to.
|
|
326
|
+
* If not specified, will be `body`.
|
|
327
|
+
*/
|
|
328
|
+
container?: string | HTMLElement;
|
|
329
|
+
/**
|
|
330
|
+
* A custom class to append to the progress indicator container.
|
|
331
|
+
*/
|
|
332
|
+
containerClass?: string;
|
|
333
|
+
/**
|
|
334
|
+
* Specify the position of the content in the container.
|
|
335
|
+
*/
|
|
336
|
+
position?: DfProgressIndicatorContentPosition;
|
|
337
|
+
/**
|
|
338
|
+
* A custom class to append to the progress indicator backdrop.
|
|
339
|
+
*/
|
|
340
|
+
backdropClass?: string;
|
|
341
|
+
}
|
|
342
|
+
declare enum DfProgressIndicatorContentType {
|
|
343
|
+
SPINNER = "spinner",
|
|
344
|
+
PROGRESSBAR = "progressbar"
|
|
345
|
+
}
|
|
346
|
+
declare class DfProgressIndicatorContentSpinner {
|
|
347
|
+
readonly type = DfProgressIndicatorContentType.SPINNER;
|
|
348
|
+
spinnerInput?: {
|
|
349
|
+
contentClass?: string;
|
|
350
|
+
ariaLabel?: string;
|
|
351
|
+
};
|
|
352
|
+
constructor(spinnerInput?: {
|
|
353
|
+
contentClass?: string;
|
|
354
|
+
ariaLabel?: string;
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
declare class DfProgressIndicatorContentProgressBar {
|
|
358
|
+
readonly type = DfProgressIndicatorContentType.PROGRESSBAR;
|
|
359
|
+
progressBarInput?: {
|
|
360
|
+
ariaLabel: string;
|
|
361
|
+
};
|
|
362
|
+
position: DfProgressIndicatorContentPosition;
|
|
363
|
+
constructor(progressBarInput?: {
|
|
364
|
+
ariaLabel: string;
|
|
365
|
+
}, position?: DfProgressIndicatorContentPosition);
|
|
366
|
+
}
|
|
367
|
+
declare enum DfProgressIndicatorContentPosition {
|
|
368
|
+
TOP = "top",
|
|
369
|
+
BOTTOM = "bottom",
|
|
370
|
+
CENTERED = "centered"
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
declare class DfProgressIndicatorContainerComponent {
|
|
374
|
+
private readonly DEFAULT_CLASS_POSITION;
|
|
375
|
+
readonly containerClass: i0.InputSignal<string | undefined>;
|
|
376
|
+
readonly position: i0.InputSignal<DfProgressIndicatorContentPosition | undefined>;
|
|
377
|
+
readonly positionClass: i0.Signal<"df-progressindicator-centered" | "df-progressindicator-top" | "df-progressindicator-bottom">;
|
|
378
|
+
readonly classes: i0.Signal<string>;
|
|
379
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfProgressIndicatorContainerComponent, never>;
|
|
380
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DfProgressIndicatorContainerComponent, "df-progressindicator-container", never, { "containerClass": { "alias": "containerClass"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
declare class DfProgressIndicatorRef {
|
|
384
|
+
containerRef: ComponentRef<DfProgressIndicatorContainerComponent>;
|
|
385
|
+
contentRef: ComponentRef<unknown> | EmbeddedViewRef<unknown>;
|
|
386
|
+
backdropRef?: ComponentRef<DfProgressIndicatorBackdropComponent> | undefined;
|
|
387
|
+
constructor(containerRef: ComponentRef<DfProgressIndicatorContainerComponent>, contentRef: ComponentRef<unknown> | EmbeddedViewRef<unknown>, backdropRef?: ComponentRef<DfProgressIndicatorBackdropComponent> | undefined);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
type DfProgressIndicatorContent<T> = undefined | TemplateRef<T> | Type<T> | DfProgressIndicatorContentSpinner | DfProgressIndicatorContentProgressBar;
|
|
391
|
+
declare class DfProgressIndicatorService {
|
|
392
|
+
private readonly renderer;
|
|
393
|
+
private readonly BODY_CLASS;
|
|
394
|
+
private readonly containerAttributes;
|
|
395
|
+
private readonly backdropAttributes;
|
|
396
|
+
private readonly defaultSpinnerAttributes;
|
|
397
|
+
private readonly defaultProgressBarAttributes;
|
|
398
|
+
private readonly activeInstances;
|
|
399
|
+
private readonly document;
|
|
400
|
+
private readonly appRef;
|
|
401
|
+
private readonly environmentInjector;
|
|
402
|
+
private readonly scrollbar;
|
|
403
|
+
open<T>(content: DfProgressIndicatorContent<T>, options?: DfProgressIndicatorOptions): DfProgressIndicatorRef;
|
|
404
|
+
close(progressIndicatorRef: DfProgressIndicatorRef): void;
|
|
405
|
+
/**
|
|
406
|
+
* Retrieve container according to the desired options.
|
|
407
|
+
*/
|
|
408
|
+
private getContainer;
|
|
409
|
+
private getContent;
|
|
410
|
+
private createComponent;
|
|
411
|
+
private applyOptions;
|
|
412
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfProgressIndicatorService, never>;
|
|
413
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfProgressIndicatorService>;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
declare class DfProgressIndicatorDirective {
|
|
417
|
+
readonly dfProgressIndicator: i0.InputSignal<boolean>;
|
|
418
|
+
readonly dfProgressIndicatorConfig: i0.InputSignal<{
|
|
419
|
+
content?: DfProgressIndicatorContent<unknown>;
|
|
420
|
+
options: DfProgressIndicatorOptions;
|
|
421
|
+
} | undefined>;
|
|
422
|
+
private readonly elementRef;
|
|
423
|
+
private readonly progressService;
|
|
424
|
+
private progressIndicatorRef;
|
|
425
|
+
constructor();
|
|
426
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfProgressIndicatorDirective, never>;
|
|
427
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfProgressIndicatorDirective, "[dfProgressIndicator]", never, { "dfProgressIndicator": { "alias": "dfProgressIndicator"; "required": true; "isSignal": true; }; "dfProgressIndicatorConfig": { "alias": "dfProgressIndicatorConfig"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
declare class DfProgressIndicatorModule {
|
|
431
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfProgressIndicatorModule, never>;
|
|
432
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfProgressIndicatorModule, never, [typeof DfDefaultSpinnerComponent, typeof DfProgressbarModule, typeof DfProgressIndicatorBackdropComponent, typeof DfProgressIndicatorContainerComponent, typeof DfProgressIndicatorDirective], [typeof DfProgressbarModule, typeof DfProgressIndicatorContainerComponent, typeof DfProgressIndicatorDirective, typeof DfProgressIndicatorBackdropComponent, typeof DfDefaultSpinnerComponent]>;
|
|
433
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfProgressIndicatorModule>;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
declare enum RightToLeftDirectionEnum {
|
|
437
|
+
LeftToRight = "ltr",
|
|
438
|
+
RightToLeft = "rtl",
|
|
439
|
+
Auto = "auto"
|
|
440
|
+
}
|
|
441
|
+
declare class DfDirectionDetectionService {
|
|
442
|
+
getPageDirection(element: ElementRef): string;
|
|
443
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfDirectionDetectionService, never>;
|
|
444
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfDirectionDetectionService>;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/** Pointer type */
|
|
448
|
+
declare enum PointerType {
|
|
449
|
+
/** Low pointer */
|
|
450
|
+
Min = 0,
|
|
451
|
+
/** High pointer */
|
|
452
|
+
Max = 1
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/** Label type */
|
|
456
|
+
declare enum LabelType {
|
|
457
|
+
/** Label above low pointer */
|
|
458
|
+
Low = 0,
|
|
459
|
+
/** Label above high pointer */
|
|
460
|
+
High = 1,
|
|
461
|
+
/** Label for minimum slider value */
|
|
462
|
+
Floor = 2,
|
|
463
|
+
/** Label for maximum slider value */
|
|
464
|
+
Ceil = 3,
|
|
465
|
+
/** Label below legend tick */
|
|
466
|
+
TickValue = 4
|
|
467
|
+
}
|
|
468
|
+
/** Function to translate label value into text */
|
|
469
|
+
type TranslateFunction = (value: number, label: LabelType) => string;
|
|
470
|
+
/** Function to combind */
|
|
471
|
+
type CombineLabelsFunction = (minLabel: string, maxLabel: string) => string;
|
|
472
|
+
/** Function to provide legend */
|
|
473
|
+
type GetLegendFunction = (value: number) => string;
|
|
474
|
+
type GetStepLegendFunction = (step: CustomStepDefinition) => string;
|
|
475
|
+
/** Function converting slider value to slider position */
|
|
476
|
+
type ValueToPositionFunction = (val: number, minVal: number, maxVal: number) => number;
|
|
477
|
+
/** Function converting slider position to slider value */
|
|
478
|
+
type PositionToValueFunction = (percent: number, minVal: number, maxVal: number) => number;
|
|
479
|
+
/**
|
|
480
|
+
* Custom step definition
|
|
481
|
+
*
|
|
482
|
+
* This can be used to specify custom values and legend values for slider ticks
|
|
483
|
+
*/
|
|
484
|
+
interface CustomStepDefinition {
|
|
485
|
+
/** Value */
|
|
486
|
+
value: number;
|
|
487
|
+
/** Legend (label for the value) */
|
|
488
|
+
legend?: string;
|
|
489
|
+
}
|
|
490
|
+
/** Slider options */
|
|
491
|
+
declare class Options {
|
|
492
|
+
/** Minimum value for a slider.
|
|
493
|
+
Not applicable when using stepsArray. */
|
|
494
|
+
floor?: number;
|
|
495
|
+
/** Maximum value for a slider.
|
|
496
|
+
Not applicable when using stepsArray. */
|
|
497
|
+
ceil?: number;
|
|
498
|
+
/** Step between each value.
|
|
499
|
+
Not applicable when using stepsArray. */
|
|
500
|
+
step?: number;
|
|
501
|
+
/** The minimum range authorized on the slider.
|
|
502
|
+
Applies to range slider only.
|
|
503
|
+
When using stepsArray, expressed as index into stepsArray. */
|
|
504
|
+
minRange?: number;
|
|
505
|
+
/** The maximum range authorized on the slider.
|
|
506
|
+
Applies to range slider only.
|
|
507
|
+
When using stepsArray, expressed as index into stepsArray. */
|
|
508
|
+
maxRange?: number;
|
|
509
|
+
/** Set to true to have a push behavior. When the min handle goes above the max,
|
|
510
|
+
the max is moved as well (and vice-versa). The range between min and max is
|
|
511
|
+
defined by the step option (defaults to 1) and can also be overriden by
|
|
512
|
+
the minRange option. Applies to range slider only. */
|
|
513
|
+
pushRange?: boolean;
|
|
514
|
+
/** The minimum value authorized on the slider.
|
|
515
|
+
When using stepsArray, expressed as index into stepsArray. */
|
|
516
|
+
minLimit?: number;
|
|
517
|
+
/** The maximum value authorized on the slider.
|
|
518
|
+
When using stepsArray, expressed as index into stepsArray. */
|
|
519
|
+
maxLimit?: number;
|
|
520
|
+
/** Custom translate function. Use this if you want to translate values displayed
|
|
521
|
+
on the slider. */
|
|
522
|
+
translate?: TranslateFunction;
|
|
523
|
+
/** Custom function for combining overlapping labels in range slider.
|
|
524
|
+
It takes the min and max values (already translated with translate fuction)
|
|
525
|
+
and should return how these two values should be combined.
|
|
526
|
+
If not provided, the default function will join the two values with
|
|
527
|
+
' - ' as separator. */
|
|
528
|
+
combineLabels?: CombineLabelsFunction;
|
|
529
|
+
/** Use to display legend under ticks (thus, it needs to be used along with
|
|
530
|
+
showTicks or showTicksValues). The function will be called with each tick
|
|
531
|
+
value and returned content will be displayed under the tick as a legend.
|
|
532
|
+
If the returned value is null, then no legend is displayed under
|
|
533
|
+
the corresponding tick.You can also directly provide the legend values
|
|
534
|
+
in the stepsArray option. */
|
|
535
|
+
getLegend?: GetLegendFunction;
|
|
536
|
+
/** Use to display a custom legend of a stepItem from stepsArray.
|
|
537
|
+
It will be the same as getLegend but for stepsArray. */
|
|
538
|
+
getStepLegend?: GetStepLegendFunction;
|
|
539
|
+
/** If you want to display a slider with non linear/number steps.
|
|
540
|
+
Just pass an array with each slider value and that's it; the floor, ceil and step settings
|
|
541
|
+
of the slider will be computed automatically.
|
|
542
|
+
By default, the value model and valueHigh model values will be the value of the selected item
|
|
543
|
+
in the stepsArray.
|
|
544
|
+
They can also be bound to the index of the selected item by setting the bindIndexForStepsArray
|
|
545
|
+
option to true. */
|
|
546
|
+
stepsArray?: CustomStepDefinition[];
|
|
547
|
+
/** Set to true to bind the index of the selected item to value model and valueHigh model. */
|
|
548
|
+
bindIndexForStepsArray?: boolean;
|
|
549
|
+
/** When set to true and using a range slider, the range can be dragged by the selection bar.
|
|
550
|
+
Applies to range slider only. */
|
|
551
|
+
draggableRange?: boolean;
|
|
552
|
+
/** Same as draggableRange but the slider range can't be changed.
|
|
553
|
+
Applies to range slider only. */
|
|
554
|
+
draggableRangeOnly?: boolean;
|
|
555
|
+
/** Set to true to always show the selection bar before the slider handle. */
|
|
556
|
+
showSelectionBar?: boolean;
|
|
557
|
+
/** Set to true to always show the selection bar after the slider handle. */
|
|
558
|
+
showSelectionBarEnd?: boolean;
|
|
559
|
+
/** Set a number to draw the selection bar between this value and the slider handle.
|
|
560
|
+
When using stepsArray, expressed as index into stepsArray. */
|
|
561
|
+
showSelectionBarFromValue?: number;
|
|
562
|
+
/** Only for range slider. Set to true to visualize in different colour the areas
|
|
563
|
+
on the left/right (top/bottom for vertical range slider) of selection bar between the handles. */
|
|
564
|
+
showOuterSelectionBars?: boolean;
|
|
565
|
+
/** Set to true to hide pointer labels */
|
|
566
|
+
hidePointerLabels?: boolean;
|
|
567
|
+
/** Set to true to hide min / max labels */
|
|
568
|
+
hideLimitLabels?: boolean;
|
|
569
|
+
/** Set to false to disable the auto-hiding behavior of the limit labels. */
|
|
570
|
+
autoHideLimitLabels?: boolean;
|
|
571
|
+
/** Set to true to make the slider read-only. */
|
|
572
|
+
readOnly?: boolean;
|
|
573
|
+
/** Set to true to disable the slider. */
|
|
574
|
+
disabled?: boolean;
|
|
575
|
+
/** Set to true to display a tick for each step of the slider. */
|
|
576
|
+
showTicks?: boolean;
|
|
577
|
+
/** Set to true to display a tick and the step value for each step of the slider.. */
|
|
578
|
+
showTicksValues?: boolean;
|
|
579
|
+
tickStep?: number;
|
|
580
|
+
tickValueStep?: number;
|
|
581
|
+
/** Use to display ticks at specific positions.
|
|
582
|
+
The array contains the index of the ticks that should be displayed.
|
|
583
|
+
For example, [0, 1, 5] will display a tick for the first, second and sixth values. */
|
|
584
|
+
ticksArray?: number[];
|
|
585
|
+
/** Used to display a tooltip when a tick is hovered.
|
|
586
|
+
Set to a function that returns the tooltip content for a given value. */
|
|
587
|
+
ticksTooltip?: (value: number) => string;
|
|
588
|
+
/** Same as ticksTooltip but for ticks values. */
|
|
589
|
+
ticksValuesTooltip?: (value: number) => string;
|
|
590
|
+
/** Set to true to display the slider vertically.
|
|
591
|
+
The slider will take the full height of its parent.
|
|
592
|
+
Changing this value at runtime is not currently supported. */
|
|
593
|
+
vertical?: boolean;
|
|
594
|
+
/** Function that returns the current color of the selection bar.
|
|
595
|
+
If your color won't change, don't use this option but set it through CSS.
|
|
596
|
+
If the returned color depends on a model value (either value or valueHigh),
|
|
597
|
+
you should use the argument passed to the function.
|
|
598
|
+
Indeed, when the function is called, there is no certainty that the model
|
|
599
|
+
has already been updated.*/
|
|
600
|
+
getSelectionBarColor?: (minValue: number, maxValue?: number) => string;
|
|
601
|
+
/** Function that returns the color of a tick. showTicks must be enabled. */
|
|
602
|
+
getTickColor?: (value: number) => string;
|
|
603
|
+
/** Function that returns the current color of a pointer.
|
|
604
|
+
If your color won't change, don't use this option but set it through CSS.
|
|
605
|
+
If the returned color depends on a model value (either value or valueHigh),
|
|
606
|
+
you should use the argument passed to the function.
|
|
607
|
+
Indeed, when the function is called, there is no certainty that the model has already been updated.
|
|
608
|
+
To handle range slider pointers independently, you should evaluate pointerType within the given
|
|
609
|
+
function where "min" stands for value model and "max" for valueHigh model values. */
|
|
610
|
+
getPointerColor?: (value: number, pointerType: PointerType) => string;
|
|
611
|
+
/** Handles are focusable (on click or with tab) and can be modified using the following keyboard controls:
|
|
612
|
+
Left/bottom arrows: -1
|
|
613
|
+
Right/top arrows: +1
|
|
614
|
+
Page-down: -10%
|
|
615
|
+
Page-up: +10%
|
|
616
|
+
Home: minimum value
|
|
617
|
+
End: maximum value
|
|
618
|
+
*/
|
|
619
|
+
keyboardSupport?: boolean;
|
|
620
|
+
/** If you display the slider in an element that uses transform: scale(0.5), set the scale value to 2
|
|
621
|
+
so that the slider is rendered properly and the events are handled correctly. */
|
|
622
|
+
scale?: number;
|
|
623
|
+
/** If you display the slider in an element that uses transform: rotate(90deg), set the rotate value to 90
|
|
624
|
+
so that the slider is rendered properly and the events are handled correctly. Value is in degrees. */
|
|
625
|
+
rotate?: number;
|
|
626
|
+
/** Set to true to force the value(s) to be rounded to the step, even when modified from the outside.
|
|
627
|
+
When set to false, if the model values are modified from outside the slider, they are not rounded
|
|
628
|
+
and can be between two steps. */
|
|
629
|
+
enforceStep?: boolean;
|
|
630
|
+
/** Set to true to force the value(s) to be normalised to allowed range (floor to ceil), even when modified from the outside.
|
|
631
|
+
When set to false, if the model values are modified from outside the slider, and they are outside allowed range,
|
|
632
|
+
the slider may be rendered incorrectly. However, setting this to false may be useful if you want to perform custom normalisation. */
|
|
633
|
+
enforceRange?: boolean;
|
|
634
|
+
/** Set to true to force the value(s) to be rounded to the nearest step value, even when modified from the outside.
|
|
635
|
+
When set to false, if the model values are modified from outside the slider, and they are outside allowed range,
|
|
636
|
+
the slider may be rendered incorrectly. However, setting this to false may be useful if you want to perform custom normalisation. */
|
|
637
|
+
enforceStepsArray?: boolean;
|
|
638
|
+
/** Set to true to prevent to user from switching the min and max handles. Applies to range slider only. */
|
|
639
|
+
noSwitching?: boolean;
|
|
640
|
+
/** Set to true to only bind events on slider handles. */
|
|
641
|
+
onlyBindHandles?: boolean;
|
|
642
|
+
/** Set to true to show graphs right to left.
|
|
643
|
+
If vertical is true it will be from top to bottom and left / right arrow functions reversed. */
|
|
644
|
+
rightToLeft?: boolean;
|
|
645
|
+
/** Set to true to reverse keyboard navigation:
|
|
646
|
+
Right/top arrows: -1
|
|
647
|
+
Left/bottom arrows: +1
|
|
648
|
+
Page-up: -10%
|
|
649
|
+
Page-down: +10%
|
|
650
|
+
End: minimum value
|
|
651
|
+
Home: maximum value
|
|
652
|
+
*/
|
|
653
|
+
reversedControls?: boolean;
|
|
654
|
+
/** Set to true to keep the slider labels inside the slider bounds. */
|
|
655
|
+
boundPointerLabels?: boolean;
|
|
656
|
+
/** Set to true to use a logarithmic scale to display the slider. */
|
|
657
|
+
logScale?: boolean;
|
|
658
|
+
/** Function that returns the position on the slider for a given value.
|
|
659
|
+
The position must be a percentage between 0 and 1.
|
|
660
|
+
The function should be monotonically increasing or decreasing; otherwise the slider may behave incorrectly. */
|
|
661
|
+
customValueToPosition?: ValueToPositionFunction;
|
|
662
|
+
/** Function that returns the value for a given position on the slider.
|
|
663
|
+
The position is a percentage between 0 and 1.
|
|
664
|
+
The function should be monotonically increasing or decreasing; otherwise the slider may behave incorrectly. */
|
|
665
|
+
customPositionToValue?: PositionToValueFunction;
|
|
666
|
+
/** Precision limit for calculated values.
|
|
667
|
+
Values used in calculations will be rounded to this number of significant digits
|
|
668
|
+
to prevent accumulating small floating-point errors. */
|
|
669
|
+
precisionLimit?: number;
|
|
670
|
+
/** Use to display the selection bar as a gradient.
|
|
671
|
+
The given object must contain from and to properties which are colors. */
|
|
672
|
+
selectionBarGradient?: {
|
|
673
|
+
from: string;
|
|
674
|
+
to: string;
|
|
675
|
+
};
|
|
676
|
+
/** Use to add a label directly to the slider for accessibility. Adds the aria-label attribute. */
|
|
677
|
+
ariaLabel?: string;
|
|
678
|
+
/** Use instead of ariaLabel to reference the id of an element which will be used to label the slider.
|
|
679
|
+
Adds the aria-labelledby attribute. */
|
|
680
|
+
ariaLabelledBy?: string;
|
|
681
|
+
/** Use to add a label directly to the slider range for accessibility. Adds the aria-label attribute. */
|
|
682
|
+
ariaLabelHigh?: string;
|
|
683
|
+
/** Use instead of ariaLabelHigh to reference the id of an element which will be used to label the slider range.
|
|
684
|
+
Adds the aria-labelledby attribute. */
|
|
685
|
+
ariaLabelledByHigh?: string;
|
|
686
|
+
/** Use to increase rendering performance. If the value is not provided, the slider calculates the with/height of the handle */
|
|
687
|
+
handleDimension?: number;
|
|
688
|
+
/** Use to increase rendering performance. If the value is not provided, the slider calculates the with/height of the bar */
|
|
689
|
+
barDimension?: number;
|
|
690
|
+
/** Enable/disable CSS animations */
|
|
691
|
+
animate?: boolean;
|
|
692
|
+
/** Enable/disable CSS animations while moving the slider */
|
|
693
|
+
animateOnMove?: boolean;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
declare class ChangeContext {
|
|
697
|
+
value?: number;
|
|
698
|
+
highValue?: number;
|
|
699
|
+
pointerType?: PointerType;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
declare class Tick {
|
|
703
|
+
selected: boolean;
|
|
704
|
+
style: any;
|
|
705
|
+
tooltip?: string;
|
|
706
|
+
tooltipPlacement?: string;
|
|
707
|
+
value?: string;
|
|
708
|
+
valueTooltip?: string;
|
|
709
|
+
valueTooltipPlacement?: string;
|
|
710
|
+
legend?: string;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* @deprecated SliderComponent is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
|
|
714
|
+
*/
|
|
715
|
+
declare class SliderComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy, ControlValueAccessor {
|
|
716
|
+
private renderer;
|
|
717
|
+
private elementRef;
|
|
718
|
+
private changeDetectionRef;
|
|
719
|
+
private zone;
|
|
720
|
+
class: string;
|
|
721
|
+
value?: number;
|
|
722
|
+
valueChange: EventEmitter<number>;
|
|
723
|
+
highValue?: number;
|
|
724
|
+
highValueChange: EventEmitter<number>;
|
|
725
|
+
options: Options;
|
|
726
|
+
userChangeStart: EventEmitter<ChangeContext>;
|
|
727
|
+
userChange: EventEmitter<ChangeContext>;
|
|
728
|
+
userChangeEnd: EventEmitter<ChangeContext>;
|
|
729
|
+
private manualRefreshSubscription;
|
|
730
|
+
set manualRefresh(manualRefresh: EventEmitter<void>);
|
|
731
|
+
private triggerFocusSubscription;
|
|
732
|
+
set triggerFocus(triggerFocus: EventEmitter<void>);
|
|
733
|
+
get range(): boolean;
|
|
734
|
+
private initHasRun;
|
|
735
|
+
private inputModelChangeSubject;
|
|
736
|
+
private inputModelChangeSubscription?;
|
|
737
|
+
private outputModelChangeSubject;
|
|
738
|
+
private outputModelChangeSubscription?;
|
|
739
|
+
private viewLowValue?;
|
|
740
|
+
private viewHighValue?;
|
|
741
|
+
private viewOptions;
|
|
742
|
+
private handleHalfDimension;
|
|
743
|
+
private maxHandlePosition;
|
|
744
|
+
private currentTrackingPointer?;
|
|
745
|
+
private currentFocusPointer?;
|
|
746
|
+
private firstKeyDown;
|
|
747
|
+
private touchId?;
|
|
748
|
+
private dragging;
|
|
749
|
+
private leftOuterSelectionBarElement?;
|
|
750
|
+
private rightOuterSelectionBarElement?;
|
|
751
|
+
private fullBarElement?;
|
|
752
|
+
private selectionBarElement?;
|
|
753
|
+
private minHandleElement?;
|
|
754
|
+
private maxHandleElement?;
|
|
755
|
+
private floorLabelElement?;
|
|
756
|
+
private ceilLabelElement?;
|
|
757
|
+
private minHandleLabelElement?;
|
|
758
|
+
private maxHandleLabelElement?;
|
|
759
|
+
private combinedLabelElement?;
|
|
760
|
+
private ticksElement?;
|
|
761
|
+
tooltipTemplate: TemplateRef<any>;
|
|
762
|
+
sliderElementVerticalClass: boolean;
|
|
763
|
+
sliderElementAnimateClass: boolean;
|
|
764
|
+
sliderElementWithLegendClass: boolean;
|
|
765
|
+
sliderElementDisabledAttr?: string;
|
|
766
|
+
sliderElementAriaLabel: string;
|
|
767
|
+
barStyle: any;
|
|
768
|
+
minPointerStyle: any;
|
|
769
|
+
maxPointerStyle: any;
|
|
770
|
+
fullBarTransparentClass: boolean;
|
|
771
|
+
selectionBarDraggableClass: boolean;
|
|
772
|
+
ticksUnderValuesClass: boolean;
|
|
773
|
+
get showTicks(): boolean;
|
|
774
|
+
private intermediateTicks;
|
|
775
|
+
ticks: Tick[];
|
|
776
|
+
private eventListenerHelper?;
|
|
777
|
+
private onMoveEventListener?;
|
|
778
|
+
private onEndEventListener?;
|
|
779
|
+
private moving;
|
|
780
|
+
private resizeObserver?;
|
|
781
|
+
private onTouchedCallback?;
|
|
782
|
+
private onChangeCallback?;
|
|
783
|
+
constructor(renderer: Renderer2, elementRef: ElementRef, changeDetectionRef: ChangeDetectorRef, zone: NgZone);
|
|
784
|
+
ngOnInit(): void;
|
|
785
|
+
ngAfterViewInit(): void;
|
|
786
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
787
|
+
ngOnDestroy(): void;
|
|
788
|
+
writeValue(obj: any): void;
|
|
789
|
+
registerOnChange(onChangeCallback: any): void;
|
|
790
|
+
registerOnTouched(onTouchedCallback: any): void;
|
|
791
|
+
setDisabledState(isDisabled: boolean): void;
|
|
792
|
+
setAriaLabel(ariaLabel: string): void;
|
|
793
|
+
onResize(event: any): void;
|
|
794
|
+
private subscribeInputModelChangeSubject;
|
|
795
|
+
private subscribeOutputModelChangeSubject;
|
|
796
|
+
private subscribeResizeObserver;
|
|
797
|
+
private unsubscribeResizeObserver;
|
|
798
|
+
private unsubscribeOnMove;
|
|
799
|
+
private unsubscribeOnEnd;
|
|
800
|
+
private unsubscribeInputModelChangeSubject;
|
|
801
|
+
private unsubscribeOutputModelChangeSubject;
|
|
802
|
+
private unsubscribeManualRefresh;
|
|
803
|
+
private unsubscribeTriggerFocus;
|
|
804
|
+
private getPointerElement;
|
|
805
|
+
private getCurrentTrackingValue;
|
|
806
|
+
private modelValueToViewValue;
|
|
807
|
+
private viewValueToModelValue;
|
|
808
|
+
private getStepValue;
|
|
809
|
+
private applyViewChange;
|
|
810
|
+
private applyInputModelChange;
|
|
811
|
+
private publishOutputModelChange;
|
|
812
|
+
private normaliseModelValues;
|
|
813
|
+
private renormaliseModelValues;
|
|
814
|
+
private onChangeOptions;
|
|
815
|
+
private applyOptions;
|
|
816
|
+
private applyStepsArrayOptions;
|
|
817
|
+
private applyFloorCeilOptions;
|
|
818
|
+
private resetSlider;
|
|
819
|
+
private focusPointer;
|
|
820
|
+
private refocusPointerIfNeeded;
|
|
821
|
+
private manageElementsStyle;
|
|
822
|
+
private manageEventsBindings;
|
|
823
|
+
private updateDisabledState;
|
|
824
|
+
private updateAriaLabel;
|
|
825
|
+
private updateVerticalState;
|
|
826
|
+
private updateScale;
|
|
827
|
+
private updateRotate;
|
|
828
|
+
private getAllSliderElements;
|
|
829
|
+
private initHandles;
|
|
830
|
+
private addAccessibility;
|
|
831
|
+
private updateAriaAttributes;
|
|
832
|
+
private calculateViewDimensions;
|
|
833
|
+
private calculateViewDimensionsAndDetectChanges;
|
|
834
|
+
/**
|
|
835
|
+
* If the slider reference is already destroyed
|
|
836
|
+
* @returns boolean - true if ref is destroyed
|
|
837
|
+
*/
|
|
838
|
+
private isRefDestroyed;
|
|
839
|
+
private updateTicksScale;
|
|
840
|
+
private getTicksArray;
|
|
841
|
+
private isTickSelected;
|
|
842
|
+
private updateFloorLabel;
|
|
843
|
+
private updateCeilLabel;
|
|
844
|
+
private updateHandles;
|
|
845
|
+
private getHandleLabelPos;
|
|
846
|
+
private updateLowHandle;
|
|
847
|
+
private updateHighHandle;
|
|
848
|
+
private updateFloorAndCeilLabelsVisibility;
|
|
849
|
+
private isLabelBelowFloorLabel;
|
|
850
|
+
private isLabelAboveCeilLabel;
|
|
851
|
+
private updateSelectionBar;
|
|
852
|
+
private getSelectionBarColor;
|
|
853
|
+
private getPointerColor;
|
|
854
|
+
private getTickColor;
|
|
855
|
+
private updateCombinedLabel;
|
|
856
|
+
private getDisplayValue;
|
|
857
|
+
private roundStep;
|
|
858
|
+
private valueToPosition;
|
|
859
|
+
private positionToValue;
|
|
860
|
+
private getEventXY;
|
|
861
|
+
private getEventPosition;
|
|
862
|
+
private getNearestHandle;
|
|
863
|
+
private bindEvents;
|
|
864
|
+
private getOptionsInfluencingEventBindings;
|
|
865
|
+
private unbindEvents;
|
|
866
|
+
private onBarStart;
|
|
867
|
+
private onStart;
|
|
868
|
+
private onMove;
|
|
869
|
+
private onEnd;
|
|
870
|
+
private onPointerFocus;
|
|
871
|
+
private onKeyUp;
|
|
872
|
+
private onPointerBlur;
|
|
873
|
+
private getKeyActions;
|
|
874
|
+
private onKeyboardEvent;
|
|
875
|
+
private onDragStart;
|
|
876
|
+
/** Get min value depending on whether the newPos is outOfBounds above or below the bar and rightToLeft */
|
|
877
|
+
private getMinValue;
|
|
878
|
+
/** Get max value depending on whether the newPos is outOfBounds above or below the bar and rightToLeft */
|
|
879
|
+
private getMaxValue;
|
|
880
|
+
private onDragMove;
|
|
881
|
+
private positionTrackingBar;
|
|
882
|
+
private positionTrackingHandle;
|
|
883
|
+
private applyMinMaxLimit;
|
|
884
|
+
private applyMinMaxRange;
|
|
885
|
+
private applyPushRange;
|
|
886
|
+
private getChangeContext;
|
|
887
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
888
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "ngx-slider", never, { "value": { "alias": "value"; "required": false; }; "highValue": { "alias": "highValue"; "required": false; }; "options": { "alias": "options"; "required": false; }; "manualRefresh": { "alias": "manualRefresh"; "required": false; }; "triggerFocus": { "alias": "triggerFocus"; "required": false; }; }, { "valueChange": "valueChange"; "highValueChange": "highValueChange"; "userChangeStart": "userChangeStart"; "userChange": "userChange"; "userChangeEnd": "userChangeEnd"; }, ["tooltipTemplate"], never, true, never>;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* @deprecated SliderElementDirective is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
|
|
893
|
+
*/
|
|
894
|
+
declare class SliderElementDirective {
|
|
895
|
+
protected elemRef: ElementRef;
|
|
896
|
+
protected renderer: Renderer2;
|
|
897
|
+
protected changeDetectionRef: ChangeDetectorRef;
|
|
898
|
+
private _position;
|
|
899
|
+
get position(): number;
|
|
900
|
+
private _dimension;
|
|
901
|
+
get dimension(): number;
|
|
902
|
+
private _alwaysHide;
|
|
903
|
+
get alwaysHide(): boolean;
|
|
904
|
+
private _vertical;
|
|
905
|
+
get vertical(): boolean;
|
|
906
|
+
private _scale;
|
|
907
|
+
get scale(): number;
|
|
908
|
+
private _rotate;
|
|
909
|
+
get rotate(): number;
|
|
910
|
+
opacity: number;
|
|
911
|
+
visibility: string;
|
|
912
|
+
left: string;
|
|
913
|
+
bottom: string;
|
|
914
|
+
height: string;
|
|
915
|
+
width: string;
|
|
916
|
+
transform: string;
|
|
917
|
+
private eventListenerHelper;
|
|
918
|
+
private eventListeners;
|
|
919
|
+
private readonly platformId;
|
|
920
|
+
constructor(elemRef: ElementRef, renderer: Renderer2, changeDetectionRef: ChangeDetectorRef);
|
|
921
|
+
setAlwaysHide(hide: boolean): void;
|
|
922
|
+
hide(): void;
|
|
923
|
+
show(): void;
|
|
924
|
+
isVisible(): boolean;
|
|
925
|
+
setVertical(vertical: boolean): void;
|
|
926
|
+
setScale(scale: number): void;
|
|
927
|
+
setRotate(rotate: number): void;
|
|
928
|
+
getRotate(): number;
|
|
929
|
+
setPosition(pos: number): void;
|
|
930
|
+
calculateDimension(): void;
|
|
931
|
+
setDimension(dim: number): void;
|
|
932
|
+
getBoundingClientRect(): ClientRect;
|
|
933
|
+
on(eventName: string, callback: (event: any) => void, debounceInterval?: number): void;
|
|
934
|
+
onPassive(eventName: string, callback: (event: any) => void, debounceInterval?: number): void;
|
|
935
|
+
off(eventName?: string): void;
|
|
936
|
+
private isRefDestroyed;
|
|
937
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderElementDirective, never>;
|
|
938
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderElementDirective, "[ngxSliderElement]", never, {}, {}, never, never, true, never>;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* @deprecated SliderHandleDirective is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
|
|
943
|
+
*/
|
|
944
|
+
declare class SliderHandleDirective extends SliderElementDirective {
|
|
945
|
+
active: boolean;
|
|
946
|
+
role: string;
|
|
947
|
+
tabindex: string;
|
|
948
|
+
ariaOrientation: string;
|
|
949
|
+
ariaLabel: string;
|
|
950
|
+
ariaLabelledBy: string;
|
|
951
|
+
ariaValueNow: string;
|
|
952
|
+
ariaValueText: string;
|
|
953
|
+
ariaValueMin: string;
|
|
954
|
+
ariaValueMax: string;
|
|
955
|
+
constructor(elemRef: ElementRef, renderer: Renderer2, changeDetectionRef: ChangeDetectorRef);
|
|
956
|
+
focus(): void;
|
|
957
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderHandleDirective, never>;
|
|
958
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderHandleDirective, "[ngxSliderHandle]", never, {}, {}, never, never, true, never>;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* @deprecated SliderLabelDirective is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
|
|
963
|
+
*/
|
|
964
|
+
declare class SliderLabelDirective extends SliderElementDirective {
|
|
965
|
+
private _value?;
|
|
966
|
+
get value(): string;
|
|
967
|
+
constructor(elemRef: ElementRef, renderer: Renderer2, changeDetectionRef: ChangeDetectorRef);
|
|
968
|
+
setValue(value: string): void;
|
|
969
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderLabelDirective, never>;
|
|
970
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderLabelDirective, "[ngxSliderLabel]", never, {}, {}, never, never, true, never>;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* @deprecated TooltipWrapperComponent is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
|
|
975
|
+
*/
|
|
976
|
+
declare class TooltipWrapperComponent {
|
|
977
|
+
template?: TemplateRef<any>;
|
|
978
|
+
tooltip?: string;
|
|
979
|
+
placement?: string;
|
|
980
|
+
content?: string;
|
|
981
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipWrapperComponent, never>;
|
|
982
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipWrapperComponent, "ngx-slider-tooltip-wrapper", never, { "template": { "alias": "template"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, {}, never, never, true, never>;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* @deprecated DfSliderDirectionDirective is deprecated. Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
|
|
987
|
+
*/
|
|
988
|
+
declare class DfSliderDirectionDirective implements OnInit {
|
|
989
|
+
readonly dfSliderDirection: i0.InputSignal<any>;
|
|
990
|
+
private readonly elementRef;
|
|
991
|
+
private readonly rtlDirectionService;
|
|
992
|
+
ngOnInit(): void;
|
|
993
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSliderDirectionDirective, never>;
|
|
994
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfSliderDirectionDirective, "[dfSliderDirection]", never, { "dfSliderDirection": { "alias": "dfSliderDirection"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* @deprecated DfSliderModule is deprecated.
|
|
999
|
+
* Use {@link https://design-factory.amadeus.net/components/slider/agnosui AgnosUI Slider} instead.
|
|
1000
|
+
*/
|
|
1001
|
+
declare class DfSliderModule {
|
|
1002
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSliderModule, never>;
|
|
1003
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfSliderModule, never, [typeof SliderComponent, typeof SliderElementDirective, typeof SliderHandleDirective, typeof SliderLabelDirective, typeof TooltipWrapperComponent, typeof DfSliderDirectionDirective], [typeof DfSliderDirectionDirective, typeof SliderComponent]>;
|
|
1004
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfSliderModule>;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
interface DfSideNavItem {
|
|
1008
|
+
value: string;
|
|
1009
|
+
title?: string;
|
|
1010
|
+
icon?: string | TemplateRef<any>;
|
|
1011
|
+
isExternal?: boolean;
|
|
1012
|
+
isActive?: boolean;
|
|
1013
|
+
isCollapsed?: boolean;
|
|
1014
|
+
breakpoints?: string[];
|
|
1015
|
+
subMenus?: DfSideNavItem[];
|
|
1016
|
+
type?: DfNavItemType;
|
|
1017
|
+
class?: string;
|
|
1018
|
+
}
|
|
1019
|
+
declare enum DfNavItemType {
|
|
1020
|
+
subMenus = 0,
|
|
1021
|
+
actionButton = 1,
|
|
1022
|
+
routerLink = 2,
|
|
1023
|
+
link = 3,
|
|
1024
|
+
externalLink = 4,
|
|
1025
|
+
separator = 5,
|
|
1026
|
+
template = 6,
|
|
1027
|
+
title = 7
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* A service for managing the sidenav panel.
|
|
1031
|
+
* This service is included at root level
|
|
1032
|
+
*
|
|
1033
|
+
* Creating a sidenav is straightforward: use [DfSideNavComponent](#/components/sidenav/api#DfSideNavComponent) component
|
|
1034
|
+
*/
|
|
1035
|
+
declare class DfSideNavService implements OnDestroy {
|
|
1036
|
+
type: typeof DfNavItemType;
|
|
1037
|
+
private readonly config;
|
|
1038
|
+
private readonly _sideNavItems$;
|
|
1039
|
+
private readonly _isMinmized$;
|
|
1040
|
+
private readonly _isCollapsed$;
|
|
1041
|
+
private readonly _isPresent$;
|
|
1042
|
+
private readonly _activeItem$;
|
|
1043
|
+
private readonly _isInMenuOverlay$;
|
|
1044
|
+
private readonly _isAppOverlay$;
|
|
1045
|
+
private _isAppOverlayMode;
|
|
1046
|
+
private _items;
|
|
1047
|
+
private readonly subscription;
|
|
1048
|
+
constructor();
|
|
1049
|
+
ngOnDestroy(): void;
|
|
1050
|
+
/**
|
|
1051
|
+
* Use this to init the list of Elements from your sidenav
|
|
1052
|
+
*
|
|
1053
|
+
*
|
|
1054
|
+
* Second option withRouter is to be set to false if you are not passing link string for the angular Router
|
|
1055
|
+
* Here we are not deep copying the array --> the function will change it
|
|
1056
|
+
*/
|
|
1057
|
+
initItems(items: DfSideNavItem[], withRouter?: boolean): void;
|
|
1058
|
+
/**
|
|
1059
|
+
* Use this to inactivate the list of Elements from your sidenav
|
|
1060
|
+
* isActive properties of all items will be set to false recursively
|
|
1061
|
+
*
|
|
1062
|
+
*/
|
|
1063
|
+
inactiveItems(list: DfSideNavItem[]): void;
|
|
1064
|
+
/**
|
|
1065
|
+
* Use this to active the item pass as input
|
|
1066
|
+
* This function inactivate all the other items of the service
|
|
1067
|
+
* It will then dispatch the list of items of the sideNav to activeItem$
|
|
1068
|
+
*
|
|
1069
|
+
*/
|
|
1070
|
+
activeItem(item: DfSideNavItem): void;
|
|
1071
|
+
/**
|
|
1072
|
+
* Getter to know when to put/remove the overlay.
|
|
1073
|
+
* `True` in case of overlay needed
|
|
1074
|
+
*
|
|
1075
|
+
*/
|
|
1076
|
+
get isAppOverlay$(): Observable<boolean>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Getter to know if the sidenav is in an overlay panel or not
|
|
1079
|
+
* `True` in case of overlay panel
|
|
1080
|
+
*
|
|
1081
|
+
*/
|
|
1082
|
+
get isInMenuOverlay$(): Observable<boolean>;
|
|
1083
|
+
/**
|
|
1084
|
+
* Getter to know the current activeItem a user clicked on
|
|
1085
|
+
*
|
|
1086
|
+
*/
|
|
1087
|
+
get activeItem$(): Observable<DfSideNavItem | null>;
|
|
1088
|
+
/**
|
|
1089
|
+
* Getter to know if the sideNav is present in the page
|
|
1090
|
+
* SideNav may be collapsed here or not
|
|
1091
|
+
*
|
|
1092
|
+
*/
|
|
1093
|
+
get isPresent$(): Observable<boolean>;
|
|
1094
|
+
/**
|
|
1095
|
+
* Future Options
|
|
1096
|
+
*/
|
|
1097
|
+
get isMinimized$(): Observable<boolean>;
|
|
1098
|
+
/**
|
|
1099
|
+
* Getter to know if the SideNav is collapsed or not
|
|
1100
|
+
* If `true` the SideNav is collapsed
|
|
1101
|
+
*
|
|
1102
|
+
*/
|
|
1103
|
+
get isCollapsed$(): Observable<boolean>;
|
|
1104
|
+
/**
|
|
1105
|
+
* Getter of the SideNav Items after they have beens changed
|
|
1106
|
+
*
|
|
1107
|
+
*/
|
|
1108
|
+
get sideNavItems$(): Observable<DfSideNavItem[]>;
|
|
1109
|
+
/**
|
|
1110
|
+
* Getter to know the mode Apply for the SideNav
|
|
1111
|
+
* If `true` the SideNav can be in overlay (but not necessary is).
|
|
1112
|
+
*
|
|
1113
|
+
*/
|
|
1114
|
+
get isAppOverlayMode(): boolean;
|
|
1115
|
+
get items(): DfSideNavItem[];
|
|
1116
|
+
/**
|
|
1117
|
+
* Use this to toggle a SideNav Item (either from expand to collapse or the other way around).
|
|
1118
|
+
* isCollapsed attribute of the input item is changed.
|
|
1119
|
+
* All items are push again to the stream of items.
|
|
1120
|
+
* This is used internally by the SideNav in case of click and Enter on an Item with subMenus
|
|
1121
|
+
*/
|
|
1122
|
+
toggle(itemInput: DfSideNavItem): void;
|
|
1123
|
+
/**
|
|
1124
|
+
*
|
|
1125
|
+
* @param itemInput
|
|
1126
|
+
*/
|
|
1127
|
+
collapseItem(itemInput: DfSideNavItem): void;
|
|
1128
|
+
/**
|
|
1129
|
+
* Use this to collapseAll items
|
|
1130
|
+
*/
|
|
1131
|
+
collapseAllItems(): void;
|
|
1132
|
+
/**
|
|
1133
|
+
* Use this to set/unset the SideNav in an Overlay Menu
|
|
1134
|
+
* If input is `True` then the SideNav will be in an Overlay Menu
|
|
1135
|
+
* (when not collapsed)
|
|
1136
|
+
*
|
|
1137
|
+
*/
|
|
1138
|
+
setInMenuSideNav(on: boolean): void;
|
|
1139
|
+
/**
|
|
1140
|
+
* Use this to collapse the SideNav
|
|
1141
|
+
*
|
|
1142
|
+
*/
|
|
1143
|
+
hideSideNav(): void;
|
|
1144
|
+
/**
|
|
1145
|
+
* Use this to make the SideNav visible (uncollapse)
|
|
1146
|
+
*
|
|
1147
|
+
*/
|
|
1148
|
+
showSideNav(): void;
|
|
1149
|
+
/**
|
|
1150
|
+
* Use this to toggle the SideNav status collapse/visible
|
|
1151
|
+
*
|
|
1152
|
+
*/
|
|
1153
|
+
toggleSideNav(): void;
|
|
1154
|
+
removeSideBar(): void;
|
|
1155
|
+
/**
|
|
1156
|
+
* Use this to set the App Overlay Mode
|
|
1157
|
+
* Input `True` if you want to set the AppOverlay
|
|
1158
|
+
* An event is send to isAppOverlay$ depending on your status
|
|
1159
|
+
* if Input = `True` and isCollapsed = `False` then isAppOverlay$
|
|
1160
|
+
* will be `True`
|
|
1161
|
+
*
|
|
1162
|
+
*/
|
|
1163
|
+
setAppOverlayMode(on: boolean): void;
|
|
1164
|
+
setSideNav(): void;
|
|
1165
|
+
/**
|
|
1166
|
+
*
|
|
1167
|
+
* @param itemInput
|
|
1168
|
+
* @param itemsList
|
|
1169
|
+
*/
|
|
1170
|
+
private collapse;
|
|
1171
|
+
/**
|
|
1172
|
+
*
|
|
1173
|
+
* @param itemsList
|
|
1174
|
+
*/
|
|
1175
|
+
private collapseAll;
|
|
1176
|
+
private setActiveItem;
|
|
1177
|
+
private addNavItemType;
|
|
1178
|
+
private dispatchSideNavItems;
|
|
1179
|
+
private updateOverLay;
|
|
1180
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSideNavService, never>;
|
|
1181
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfSideNavService>;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
declare class DfSideNavHeaderDirective {
|
|
1185
|
+
readonly templateRef: TemplateRef<any>;
|
|
1186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSideNavHeaderDirective, never>;
|
|
1187
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfSideNavHeaderDirective, "ng-template[dfSideNavHeader]", never, {}, {}, never, never, true, never>;
|
|
1188
|
+
}
|
|
1189
|
+
declare class DfSideNavIconDirective {
|
|
1190
|
+
readonly templateRef: TemplateRef<any>;
|
|
1191
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSideNavIconDirective, never>;
|
|
1192
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfSideNavIconDirective, "ng-template[dfSideNavIcon]", never, {}, {}, never, never, true, never>;
|
|
1193
|
+
}
|
|
1194
|
+
declare class DfSideNavItemDirective {
|
|
1195
|
+
readonly templateRef: TemplateRef<any>;
|
|
1196
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSideNavItemDirective, never>;
|
|
1197
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfSideNavItemDirective, "ng-template[dfSideNavItem]", never, {}, {}, never, never, true, never>;
|
|
1198
|
+
}
|
|
1199
|
+
/**
|
|
1200
|
+
* SideNav is a component to provide navigation feature with a panel on the side of your page
|
|
1201
|
+
*
|
|
1202
|
+
* It supports several options as:
|
|
1203
|
+
* - Being in an overlay menu or not
|
|
1204
|
+
* - Being collapsed or not
|
|
1205
|
+
* - Can be used with or without Angular Router
|
|
1206
|
+
* - Can be used with media queries to adjust behavior to different breakpoints (see media section)
|
|
1207
|
+
*/
|
|
1208
|
+
declare class DfSideNavComponent implements OnDestroy {
|
|
1209
|
+
readonly tplHeader: i0.Signal<DfSideNavHeaderDirective | undefined>;
|
|
1210
|
+
readonly tplIcon: i0.Signal<DfSideNavIconDirective | undefined>;
|
|
1211
|
+
readonly tplItem: i0.Signal<DfSideNavItemDirective | undefined>;
|
|
1212
|
+
readonly overlayClass: i0.WritableSignal<boolean>;
|
|
1213
|
+
readonly classes: i0.Signal<string>;
|
|
1214
|
+
private readonly sideNavService;
|
|
1215
|
+
readonly navItems: i0.Signal<DfSideNavItem[]>;
|
|
1216
|
+
constructor();
|
|
1217
|
+
ngOnDestroy(): void;
|
|
1218
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSideNavComponent, never>;
|
|
1219
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DfSideNavComponent, "df-sidenav", never, {}, {}, ["tplHeader", "tplIcon", "tplItem"], never, true, never>;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
declare class DfManageSideNavDirective implements AfterViewChecked {
|
|
1223
|
+
private readonly element;
|
|
1224
|
+
private readonly renderer;
|
|
1225
|
+
ngAfterViewChecked(): void;
|
|
1226
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfManageSideNavDirective, never>;
|
|
1227
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfManageSideNavDirective, "[dfManageSideNav]", never, {}, {}, never, never, true, never>;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* The directive to catch focusin event and put the focus at a defined position in the page
|
|
1232
|
+
*
|
|
1233
|
+
* @deprecated 19.1.0 use {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inert inert} instead
|
|
1234
|
+
* @since 9.1.0
|
|
1235
|
+
*/
|
|
1236
|
+
declare class DfExcludeTrapDirective implements OnDestroy, OnInit {
|
|
1237
|
+
private subscription;
|
|
1238
|
+
private subscriptionInput?;
|
|
1239
|
+
/**
|
|
1240
|
+
* The CSS selector used to get the element to put the focus when catched
|
|
1241
|
+
*
|
|
1242
|
+
*/
|
|
1243
|
+
readonly dfExcludeTrapSelector: i0.InputSignal<string>;
|
|
1244
|
+
/**
|
|
1245
|
+
* The Observable to enable or disable the ExcludeTrap
|
|
1246
|
+
* If `True` the excludeTrap will work
|
|
1247
|
+
*/
|
|
1248
|
+
readonly dfExcludeTrap: i0.InputSignal<Observable<boolean>>;
|
|
1249
|
+
private readonly zone;
|
|
1250
|
+
private readonly element;
|
|
1251
|
+
init(): void;
|
|
1252
|
+
ngOnInit(): void;
|
|
1253
|
+
ngOnDestroy(): void;
|
|
1254
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfExcludeTrapDirective, never>;
|
|
1255
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfExcludeTrapDirective, "[dfExcludeTrap]", never, { "dfExcludeTrapSelector": { "alias": "dfExcludeTrapSelector"; "required": false; "isSignal": true; }; "dfExcludeTrap": { "alias": "dfExcludeTrap"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
declare class DfManageNavSelectDirective implements OnInit {
|
|
1259
|
+
private direction;
|
|
1260
|
+
private readonly select;
|
|
1261
|
+
private readonly element;
|
|
1262
|
+
private readonly rtlDirectionService;
|
|
1263
|
+
private readonly renderer;
|
|
1264
|
+
ngOnInit(): void;
|
|
1265
|
+
handleKeyDown(event: any): void;
|
|
1266
|
+
handleKeyDownBackspace(event: any): void;
|
|
1267
|
+
handleKeyDownRight(event: any): void;
|
|
1268
|
+
arrowRightInnerHandler(event: any): void;
|
|
1269
|
+
arrowLeftInnerHandler(event: any): void;
|
|
1270
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfManageNavSelectDirective, never>;
|
|
1271
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfManageNavSelectDirective, "[dfManageNavSelect]", never, {}, {}, never, never, true, never>;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
declare class DfOptionHighlightDirective implements AfterViewInit {
|
|
1275
|
+
readonly dfOptionHighlight: i0.InputSignal<string>;
|
|
1276
|
+
private readonly label;
|
|
1277
|
+
private readonly elementRef;
|
|
1278
|
+
private readonly renderer;
|
|
1279
|
+
private readonly canHighlight;
|
|
1280
|
+
constructor();
|
|
1281
|
+
ngAfterViewInit(): void;
|
|
1282
|
+
private setInnerHtml;
|
|
1283
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfOptionHighlightDirective, never>;
|
|
1284
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfOptionHighlightDirective, "[dfOptionHighlight]", never, { "dfOptionHighlight": { "alias": "dfOptionHighlight"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
declare class DfManageBadgeEventsDirective implements AfterViewInit {
|
|
1288
|
+
readonly dfManageBadgeEventsSelect: i0.InputSignal<[(arg: any) => void, any]>;
|
|
1289
|
+
private readonly renderer;
|
|
1290
|
+
private readonly element;
|
|
1291
|
+
constructor();
|
|
1292
|
+
ngAfterViewInit(): void;
|
|
1293
|
+
handleKeyDownBackspace(event: any): void;
|
|
1294
|
+
handleClick(event: any): void;
|
|
1295
|
+
handleKeyDownEnter(event: any): void;
|
|
1296
|
+
handleKeyDownDelete(event: any): void;
|
|
1297
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfManageBadgeEventsDirective, never>;
|
|
1298
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfManageBadgeEventsDirective, "[dfManageBadgeEventsSelect]", never, { "dfManageBadgeEventsSelect": { "alias": "dfManageBadgeEventsSelect"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
declare class DfSelectModule {
|
|
1302
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSelectModule, never>;
|
|
1303
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfSelectModule, never, [typeof DfManageNavSelectDirective, typeof DfManageBadgeEventsDirective, typeof DfOptionHighlightDirective], [typeof DfManageNavSelectDirective, typeof DfManageBadgeEventsDirective, typeof DfOptionHighlightDirective, typeof i4.NgSelectModule]>;
|
|
1304
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfSelectModule>;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
interface DfStepperStep {
|
|
1308
|
+
warning: boolean;
|
|
1309
|
+
completed: boolean;
|
|
1310
|
+
visited?: boolean;
|
|
1311
|
+
label: string;
|
|
1312
|
+
ariaControl: string;
|
|
1313
|
+
warningLabel?: string;
|
|
1314
|
+
optionalLabel?: string;
|
|
1315
|
+
}
|
|
1316
|
+
type DfStepType = 'warning' | 'completed' | 'future' | 'visited';
|
|
1317
|
+
interface DfStepperNormalizedStep extends DfStepperStep {
|
|
1318
|
+
type: DfStepType;
|
|
1319
|
+
}
|
|
1320
|
+
interface DfStepperState {
|
|
1321
|
+
steps: DfStepperStep[];
|
|
1322
|
+
active: number;
|
|
1323
|
+
isLinear: boolean;
|
|
1324
|
+
isInline: boolean;
|
|
1325
|
+
isVertical: boolean;
|
|
1326
|
+
}
|
|
1327
|
+
interface DfStepperNormalizedState {
|
|
1328
|
+
steps: DfStepperNormalizedStep[];
|
|
1329
|
+
active: number;
|
|
1330
|
+
isLinear: boolean;
|
|
1331
|
+
isInline: boolean;
|
|
1332
|
+
isVertical: boolean;
|
|
1333
|
+
}
|
|
1334
|
+
declare class DfStepperService {
|
|
1335
|
+
setFocus: boolean;
|
|
1336
|
+
private readonly _stepperState$;
|
|
1337
|
+
private _state;
|
|
1338
|
+
get state(): DfStepperNormalizedState;
|
|
1339
|
+
private _completedLabel;
|
|
1340
|
+
/**
|
|
1341
|
+
* Internal to get the completed label in the template
|
|
1342
|
+
*/
|
|
1343
|
+
get completedLabel(): string;
|
|
1344
|
+
/**
|
|
1345
|
+
* Use this to set the completed label (i18n)
|
|
1346
|
+
*/
|
|
1347
|
+
set completedLabel(label: string);
|
|
1348
|
+
private _warningLabel;
|
|
1349
|
+
/**
|
|
1350
|
+
* Internal to get the waring label in the template
|
|
1351
|
+
*/
|
|
1352
|
+
get warningLabel(): string;
|
|
1353
|
+
/**
|
|
1354
|
+
* Use this to set the warning label (i18n)
|
|
1355
|
+
*/
|
|
1356
|
+
set warningLabel(label: string);
|
|
1357
|
+
private _stepperAriaLabel;
|
|
1358
|
+
/**
|
|
1359
|
+
* Internal to get the stepper aria label in the template
|
|
1360
|
+
*/
|
|
1361
|
+
get stepperAriaLabel(): string;
|
|
1362
|
+
/**
|
|
1363
|
+
* Use this to set the stepper aria label (i18n)
|
|
1364
|
+
*/
|
|
1365
|
+
set stepperAriaLabel(label: string);
|
|
1366
|
+
get stepperState$(): Observable<DfStepperNormalizedState>;
|
|
1367
|
+
/**
|
|
1368
|
+
* Use this to init the list of Elements from your stepper
|
|
1369
|
+
*
|
|
1370
|
+
* Here we are not deep copying the array --> the function will change it
|
|
1371
|
+
*/
|
|
1372
|
+
initStepperState(state: DfStepperState): void;
|
|
1373
|
+
/**
|
|
1374
|
+
* Use this to normalize the state of the stepper (completed, warning, current, future)
|
|
1375
|
+
* @param state
|
|
1376
|
+
* @returns
|
|
1377
|
+
*/
|
|
1378
|
+
normalizeState(state: DfStepperState): DfStepperNormalizedState;
|
|
1379
|
+
/**
|
|
1380
|
+
* TODO make it customizable
|
|
1381
|
+
* @param index - index of the step
|
|
1382
|
+
* @returns - string of the step number to display
|
|
1383
|
+
*/
|
|
1384
|
+
getStepNumberLabel(index: number): string;
|
|
1385
|
+
resetFocus(): void;
|
|
1386
|
+
/**
|
|
1387
|
+
*
|
|
1388
|
+
* @param isLinear - true if the stepper is linear
|
|
1389
|
+
*/
|
|
1390
|
+
setLinear(isLinear: boolean): void;
|
|
1391
|
+
/**
|
|
1392
|
+
* @param isInline - true if the stepper is inline
|
|
1393
|
+
*/
|
|
1394
|
+
setInline(isInline: boolean): void;
|
|
1395
|
+
/**
|
|
1396
|
+
* @param isVertical - true if the stepper is vertical
|
|
1397
|
+
*
|
|
1398
|
+
* @since 19.1.0
|
|
1399
|
+
*/
|
|
1400
|
+
setVertical(isVertical: boolean): void;
|
|
1401
|
+
/**
|
|
1402
|
+
*
|
|
1403
|
+
* @param index - index of the step to select start at 0
|
|
1404
|
+
*/
|
|
1405
|
+
selectStep(index: number): void;
|
|
1406
|
+
/**
|
|
1407
|
+
* Same as selectStep but with focus on the step selected
|
|
1408
|
+
* @param index - index of the step to select start at 0
|
|
1409
|
+
*/
|
|
1410
|
+
selectWithFocus(index: number): void;
|
|
1411
|
+
/**
|
|
1412
|
+
*
|
|
1413
|
+
* @param index - index of the step to complete start at 0
|
|
1414
|
+
*/
|
|
1415
|
+
completeStep(index: number): void;
|
|
1416
|
+
/**
|
|
1417
|
+
*
|
|
1418
|
+
* @param index - index of the step to complete start at 0
|
|
1419
|
+
*/
|
|
1420
|
+
completeStepAndGoNext(index: number): void;
|
|
1421
|
+
/**
|
|
1422
|
+
* Attention if the step was completed it will be uncompleted after.
|
|
1423
|
+
* @param index - index of the step to make Warning start at 0
|
|
1424
|
+
* @param warningLabel - label to display in the warning by default it will take the warningLabel if it exists or the label
|
|
1425
|
+
*/
|
|
1426
|
+
makeWarning(index: number, warningLabel?: string): void;
|
|
1427
|
+
/**
|
|
1428
|
+
*
|
|
1429
|
+
* @param index - index of the step to remove Warning start at 0
|
|
1430
|
+
*/
|
|
1431
|
+
removeWarning(index: number): void;
|
|
1432
|
+
private dispatchStepperState;
|
|
1433
|
+
private updateStepperState;
|
|
1434
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperService, never>;
|
|
1435
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfStepperService>;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
declare class DfStepperStepDirective implements OnInit, OnDestroy {
|
|
1439
|
+
private readonly unlistener;
|
|
1440
|
+
private readonly renderer2;
|
|
1441
|
+
private readonly element;
|
|
1442
|
+
ngOnInit(): void;
|
|
1443
|
+
handleFocusTabIndex(): void;
|
|
1444
|
+
handleBlurTabIndex(event: FocusEvent): void;
|
|
1445
|
+
ngOnDestroy(): void;
|
|
1446
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperStepDirective, never>;
|
|
1447
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfStepperStepDirective, "[dfStepperStep]", ["dfStepperStep"], {}, {}, never, never, true, never>;
|
|
1448
|
+
}
|
|
1449
|
+
declare class DfStepperDirective implements OnInit, AfterViewChecked {
|
|
1450
|
+
private direction;
|
|
1451
|
+
stepperService: DfStepperService;
|
|
1452
|
+
private readonly element;
|
|
1453
|
+
private readonly rtlDirectionService;
|
|
1454
|
+
ngOnInit(): void;
|
|
1455
|
+
handleEnterDown(): void;
|
|
1456
|
+
handleSpaceDown(): void;
|
|
1457
|
+
private handleGoPrevious;
|
|
1458
|
+
private handleGoNext;
|
|
1459
|
+
handleKeyDownRight(event: KeyboardEvent): void;
|
|
1460
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
1461
|
+
handleKeyDownUp(event: KeyboardEvent): void;
|
|
1462
|
+
handleKeyDownDown(event: KeyboardEvent): void;
|
|
1463
|
+
getSteps(): HTMLButtonElement[];
|
|
1464
|
+
private handleSelect;
|
|
1465
|
+
private arrowRightInnerHandler;
|
|
1466
|
+
private arrowLeftInnerHandler;
|
|
1467
|
+
ngAfterViewChecked(): void;
|
|
1468
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperDirective, never>;
|
|
1469
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfStepperDirective, "[dfStepperLogic]", ["dfStepperLogic"], {}, {}, never, never, true, never>;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
declare class DfStepperStepContentDirective {
|
|
1473
|
+
readonly templateRef: TemplateRef<any>;
|
|
1474
|
+
/**
|
|
1475
|
+
* The step index
|
|
1476
|
+
* -1 means that the input index is not set
|
|
1477
|
+
*/
|
|
1478
|
+
readonly dfStepperStepContent: i0.InputSignalWithTransform<number, unknown>;
|
|
1479
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperStepContentDirective, never>;
|
|
1480
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfStepperStepContentDirective, "ng-template[dfStepperStepContent]", never, { "dfStepperStepContent": { "alias": "dfStepperStepContent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1481
|
+
}
|
|
1482
|
+
/**
|
|
1483
|
+
* Stepper component is a component to provide a step by step navigation
|
|
1484
|
+
* You have two ways to navigate through the steps:
|
|
1485
|
+
* - Using the linear navigation, where you can only go to the next step
|
|
1486
|
+
* - Using the non-linear navigation, where you can go to any step
|
|
1487
|
+
*/
|
|
1488
|
+
declare class DfStepperComponent implements AfterContentInit {
|
|
1489
|
+
readonly stepperService: DfStepperService;
|
|
1490
|
+
mapStepToContent: Map<number, TemplateRef<any>>;
|
|
1491
|
+
readonly tplStepsContent: i0.Signal<readonly DfStepperStepContentDirective[]>;
|
|
1492
|
+
readonly state: i0.WritableSignal<DfStepperNormalizedState | undefined>;
|
|
1493
|
+
constructor();
|
|
1494
|
+
ngAfterContentInit(): void;
|
|
1495
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperComponent, never>;
|
|
1496
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DfStepperComponent, "[dfStepper]", never, {}, {}, ["tplStepsContent"], never, true, [{ directive: typeof DfStepperDirective; inputs: {}; outputs: {}; }]>;
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
declare class DfStepperModule {
|
|
1500
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperModule, never>;
|
|
1501
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfStepperModule, never, [typeof DfStepperDirective, typeof DfStepperStepDirective, typeof DfStepperComponent, typeof DfStepperStepContentDirective], [typeof DfStepperDirective, typeof DfStepperStepDirective, typeof DfStepperComponent, typeof DfStepperStepContentDirective]>;
|
|
1502
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfStepperModule>;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* My dfTooltipTruncate directive
|
|
1507
|
+
*/
|
|
1508
|
+
declare class DfTooltipTruncateDirective implements OnInit, DoCheck {
|
|
1509
|
+
private readonly tooltip;
|
|
1510
|
+
private readonly elementRef;
|
|
1511
|
+
private readonly renderer;
|
|
1512
|
+
/**
|
|
1513
|
+
* The direction considered when detecting overflow, can be 'x', 'y' or ''.
|
|
1514
|
+
* @defaultValue ''
|
|
1515
|
+
*/
|
|
1516
|
+
readonly dfTooltipTruncate: i0.InputSignal<"" | "x" | "y">;
|
|
1517
|
+
ngOnInit(): void;
|
|
1518
|
+
ngDoCheck(): void;
|
|
1519
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfTooltipTruncateDirective, never>;
|
|
1520
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfTooltipTruncateDirective, "[dfTooltipTruncate]", ["dfTooltipTruncate"], { "dfTooltipTruncate": { "alias": "dfTooltipTruncate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
declare class DfTooltipModule {
|
|
1524
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfTooltipModule, never>;
|
|
1525
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfTooltipModule, never, [typeof DfTooltipTruncateDirective], [typeof DfTooltipTruncateDirective, typeof i2.NgbTooltipModule]>;
|
|
1526
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfTooltipModule>;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* A directive to provide a simple way of hiding and showing the sideNav on the page.
|
|
1531
|
+
*/
|
|
1532
|
+
declare class DfSideNavCollapseDirective implements OnInit {
|
|
1533
|
+
/**
|
|
1534
|
+
* If `true`, will collapse the element or show it otherwise.
|
|
1535
|
+
*/
|
|
1536
|
+
readonly dfSideNavCollapse: i0.InputSignal<boolean>;
|
|
1537
|
+
private readonly collapsed;
|
|
1538
|
+
readonly minimized: i0.InputSignal<boolean>;
|
|
1539
|
+
readonly dfSideNavCollapseChange: i0.OutputEmitterRef<boolean>;
|
|
1540
|
+
/**
|
|
1541
|
+
* An event emitted when the collapse element is shown, after the transition. It has no payload.
|
|
1542
|
+
*
|
|
1543
|
+
* @since 9.1.0
|
|
1544
|
+
*/
|
|
1545
|
+
readonly shown: i0.OutputEmitterRef<void>;
|
|
1546
|
+
/**
|
|
1547
|
+
* An event emitted when the collapse element is hidden, after the transition. It has no payload.
|
|
1548
|
+
*
|
|
1549
|
+
* @since 9.1.0
|
|
1550
|
+
*/
|
|
1551
|
+
readonly hidden: i0.OutputEmitterRef<void>;
|
|
1552
|
+
private readonly elementRef;
|
|
1553
|
+
private readonly sideNavCollapseService;
|
|
1554
|
+
private readonly zone;
|
|
1555
|
+
private readonly injector;
|
|
1556
|
+
private animation;
|
|
1557
|
+
constructor();
|
|
1558
|
+
ngOnInit(): void;
|
|
1559
|
+
/**
|
|
1560
|
+
* Triggers collapsing programmatically.
|
|
1561
|
+
*
|
|
1562
|
+
* If there is a collapsing transition running already, it will be reversed.
|
|
1563
|
+
* If the animations are turned off this happens synchronously.
|
|
1564
|
+
*
|
|
1565
|
+
* @since 9.1.0
|
|
1566
|
+
*/
|
|
1567
|
+
toggle(open?: boolean): void;
|
|
1568
|
+
private runTransition;
|
|
1569
|
+
private runTransitionWithEvents;
|
|
1570
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSideNavCollapseDirective, never>;
|
|
1571
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfSideNavCollapseDirective, "[dfSideNavCollapse]", ["dfSideNavCollapse"], { "dfSideNavCollapse": { "alias": "dfSideNavCollapse"; "required": true; "isSignal": true; }; "minimized": { "alias": "minimized"; "required": false; "isSignal": true; }; }, { "dfSideNavCollapseChange": "dfSideNavCollapseChange"; "shown": "shown"; "hidden": "hidden"; }, never, never, true, never>;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
declare class DfSideNavCollapseModule {
|
|
1575
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSideNavCollapseModule, never>;
|
|
1576
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfSideNavCollapseModule, never, [typeof DfSideNavCollapseDirective], [typeof DfSideNavCollapseDirective]>;
|
|
1577
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfSideNavCollapseModule>;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
declare class DfSideNavModule {
|
|
1581
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSideNavModule, never>;
|
|
1582
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfSideNavModule, never, [typeof DfManageSideNavDirective, typeof DfSideNavComponent, typeof DfSideNavHeaderDirective, typeof DfExcludeTrapDirective, typeof DfSideNavIconDirective, typeof DfSideNavItemDirective], [typeof DfManageSideNavDirective, typeof DfSideNavComponent, typeof DfSideNavHeaderDirective, typeof DfExcludeTrapDirective, typeof DfSideNavIconDirective, typeof DfSideNavItemDirective, typeof DfSideNavCollapseModule, typeof DfMediaModule]>;
|
|
1583
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfSideNavModule>;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* A configuration service for the [DfSideNavService](#/components/sidenav/api#DfSideNavComponent) component.
|
|
1588
|
+
*
|
|
1589
|
+
* You can inject this service, typically in your root component, and customize its properties
|
|
1590
|
+
* to provide default values for your sidenav used in the application.
|
|
1591
|
+
*/
|
|
1592
|
+
declare class DfSideNavConfig {
|
|
1593
|
+
isMinmized: boolean;
|
|
1594
|
+
isCollapsed: boolean;
|
|
1595
|
+
isPresent: boolean;
|
|
1596
|
+
isInMenuOverlay: boolean;
|
|
1597
|
+
isAppOverlay: boolean;
|
|
1598
|
+
isAppOverlayMode: boolean;
|
|
1599
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSideNavConfig, never>;
|
|
1600
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfSideNavConfig>;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* A service for managing the sidenav panel animation.
|
|
1605
|
+
* This service is included at root level
|
|
1606
|
+
*
|
|
1607
|
+
* Creating a sidenav is straightforward: use [DfSideNavComponent](#/components/sidenav/api#DfSideNavComponent) component
|
|
1608
|
+
*/
|
|
1609
|
+
declare class DfSideNavCollapseService {
|
|
1610
|
+
private readonly _sideNavAnimation$;
|
|
1611
|
+
get sideNavAnimation$(): Observable<boolean>;
|
|
1612
|
+
/**
|
|
1613
|
+
* Use this to activate or desactivate the animation for the sideNav
|
|
1614
|
+
* If input is `True` it will activate the animation.
|
|
1615
|
+
* Default value for animation is set in by DfSideNavCollapseConfig
|
|
1616
|
+
*
|
|
1617
|
+
*/
|
|
1618
|
+
setAnimation(on: boolean): void;
|
|
1619
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfSideNavCollapseService, never>;
|
|
1620
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfSideNavCollapseService>;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
declare const DF_BREAKPOINTS_VAR_DEFAULT: {
|
|
1624
|
+
xs: string;
|
|
1625
|
+
sm: string;
|
|
1626
|
+
md: string;
|
|
1627
|
+
lg: string;
|
|
1628
|
+
xl: string;
|
|
1629
|
+
xxl: string;
|
|
1630
|
+
xxxl: string;
|
|
1631
|
+
};
|
|
1632
|
+
declare const BREAKPOINTS_VARS: InjectionToken<{
|
|
1633
|
+
xs: string;
|
|
1634
|
+
sm: string;
|
|
1635
|
+
md: string;
|
|
1636
|
+
lg: string;
|
|
1637
|
+
xl: string;
|
|
1638
|
+
xxl: string;
|
|
1639
|
+
xxxl: string;
|
|
1640
|
+
}>;
|
|
1641
|
+
declare class DfBreakpoints {
|
|
1642
|
+
private readonly _breakPoints$;
|
|
1643
|
+
private readonly _breakPointsVar;
|
|
1644
|
+
private readonly platformID;
|
|
1645
|
+
constructor();
|
|
1646
|
+
get breakPoints$(): Observable<{} | null>;
|
|
1647
|
+
private initBreakpoints;
|
|
1648
|
+
generate(sizes: any[][]): {};
|
|
1649
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfBreakpoints, never>;
|
|
1650
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfBreakpoints>;
|
|
1651
|
+
}
|
|
1652
|
+
interface MediaBreakpointsState {
|
|
1653
|
+
matches: boolean;
|
|
1654
|
+
breakpoints: {
|
|
1655
|
+
[key: string]: boolean;
|
|
1656
|
+
};
|
|
1657
|
+
}
|
|
1658
|
+
declare class DfMediaQuery {
|
|
1659
|
+
private readonly _isBrowser;
|
|
1660
|
+
notSupported(query: string): Partial<MediaQueryList>;
|
|
1661
|
+
matchMedia(query: string): MediaQueryList;
|
|
1662
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfMediaQuery, never>;
|
|
1663
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfMediaQuery>;
|
|
1664
|
+
}
|
|
1665
|
+
declare class DfMediaObserver implements OnDestroy {
|
|
1666
|
+
private readonly _subscription;
|
|
1667
|
+
private readonly _queries;
|
|
1668
|
+
private readonly _mediaQuery;
|
|
1669
|
+
/**
|
|
1670
|
+
* Verifies if at least one of the provided media-queries is matching
|
|
1671
|
+
* the current viewport
|
|
1672
|
+
*/
|
|
1673
|
+
matches(queries: string[] | string): boolean;
|
|
1674
|
+
/**
|
|
1675
|
+
* Produces an observable for a set of media-queries that will emit
|
|
1676
|
+
* meta information for any changes of the given queries.
|
|
1677
|
+
* @param value One or more media-queries to be observed.
|
|
1678
|
+
* @returns A stream of matches meta object for the given media-queries.
|
|
1679
|
+
*/
|
|
1680
|
+
observe(queries: string | string[]): Observable<MediaBreakpointsState>;
|
|
1681
|
+
ngOnDestroy(): void;
|
|
1682
|
+
private _flattenQueries;
|
|
1683
|
+
private _registerQuery;
|
|
1684
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfMediaObserver, never>;
|
|
1685
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfMediaObserver>;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* Services you can use to get indication about the current width screen of your application
|
|
1690
|
+
* the matchMedia JS feature (https://developer.mozilla.org/fr/docs/Web/API/Window/matchMedia)
|
|
1691
|
+
*/
|
|
1692
|
+
declare class DfMedia {
|
|
1693
|
+
private readonly mediaObserver;
|
|
1694
|
+
private readonly _breakPointsService;
|
|
1695
|
+
initQueries(mediaOrBreakpoints: string | string[], breakPoints?: {
|
|
1696
|
+
[key: string]: string;
|
|
1697
|
+
}): string[];
|
|
1698
|
+
/**
|
|
1699
|
+
* Getter to have the observable indication if you are or not in the current scope of your queries
|
|
1700
|
+
* If one queries is matching result is `True` otherwise result is `False`
|
|
1701
|
+
* @param mediaOrBreakpoints either media query string/Array of string or/and in case of BS usage a
|
|
1702
|
+
* string/Array of string of the breakpoints name (sm...).
|
|
1703
|
+
*/
|
|
1704
|
+
getObservable(mediaOrBreakpoints: string | string[]): Observable<boolean>;
|
|
1705
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfMedia, never>;
|
|
1706
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DfMedia>;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
declare class DfManageCardSelectionDirective implements AfterViewInit {
|
|
1710
|
+
private input;
|
|
1711
|
+
readonly dfManageCardSelected: i0.InputSignal<boolean>;
|
|
1712
|
+
private readonly element;
|
|
1713
|
+
private readonly renderer;
|
|
1714
|
+
constructor();
|
|
1715
|
+
ngAfterViewInit(): void;
|
|
1716
|
+
click(event: Event): void;
|
|
1717
|
+
keydown(event: KeyboardEvent): void;
|
|
1718
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfManageCardSelectionDirective, never>;
|
|
1719
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfManageCardSelectionDirective, "[dfManageCardSelected]", never, { "dfManageCardSelected": { "alias": "dfManageCardSelected"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
declare class DfAdvancedCardModule {
|
|
1723
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfAdvancedCardModule, never>;
|
|
1724
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfAdvancedCardModule, never, [typeof DfManageCardSelectionDirective], [typeof DfManageCardSelectionDirective]>;
|
|
1725
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfAdvancedCardModule>;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* @deprecated Import only the needed modules or use standalone components instead of DfModule
|
|
1730
|
+
*/
|
|
1731
|
+
declare class DfModule {
|
|
1732
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfModule, never>;
|
|
1733
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfModule, never, [typeof DfAlertModule, typeof DfDatePickerModule, typeof DfSelectModule, typeof DfProgressbarModule, typeof DfProgressIndicatorModule, typeof DfAdvancedInputModule, typeof DfAccessibilityModule, typeof DfSliderModule, typeof DfPopoverModule, typeof DfIconModule, typeof DfTooltipModule, typeof DfSideNavModule, typeof DfSideNavCollapseModule, typeof DfAdvancedCardModule, typeof DfFooterModule, typeof DfToastModule, typeof DfStepperModule], [typeof DfAlertModule, typeof DfDatePickerModule, typeof DfSelectModule, typeof DfProgressbarModule, typeof DfProgressIndicatorModule, typeof DfAdvancedInputModule, typeof DfAccessibilityModule, typeof DfSliderModule, typeof DfPopoverModule, typeof DfIconModule, typeof DfTooltipModule, typeof DfSideNavModule, typeof DfSideNavCollapseModule, typeof DfAdvancedCardModule, typeof DfFooterModule, typeof DfToastModule, typeof DfStepperModule]>;
|
|
1734
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfModule>;
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* DfTitleTruncate directive
|
|
1739
|
+
* It adds the title attribute with the element's textContent as value
|
|
1740
|
+
* when the element is truncated.
|
|
1741
|
+
*/
|
|
1742
|
+
declare class DfTitleTruncateDirective implements OnInit, DoCheck {
|
|
1743
|
+
private readonly elementRef;
|
|
1744
|
+
private readonly renderer;
|
|
1745
|
+
private readonly overflowService;
|
|
1746
|
+
ngOnInit(): void;
|
|
1747
|
+
ngDoCheck(): void;
|
|
1748
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfTitleTruncateDirective, never>;
|
|
1749
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfTitleTruncateDirective, "[dfTitleTruncate]", ["dfTitleTruncate"], {}, {}, never, never, true, never>;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
declare class DfWavesOfProgressDirective {
|
|
1753
|
+
/**
|
|
1754
|
+
* The type of waves to display. In order to display the waves, the app using the directive must include the assets of Design Factory.
|
|
1755
|
+
* It is possible to do so by adding the following snippet to the `angular.json` file in the `assets` configuration:
|
|
1756
|
+
* @example
|
|
1757
|
+
* "assets": [
|
|
1758
|
+
* {
|
|
1759
|
+
* "glob": "** / *", //remove the spaces between the asterisks and the slash
|
|
1760
|
+
* "input": "node-modules/@design-factory/design-factory/assets/",
|
|
1761
|
+
* "output": "assets/"
|
|
1762
|
+
* },
|
|
1763
|
+
* ...]
|
|
1764
|
+
*/
|
|
1765
|
+
readonly dfWavesOfProgress: i0.InputSignal<"arrowRight" | "circleDiagonal" | "circleUp" | "arrowUp">;
|
|
1766
|
+
private readonly http;
|
|
1767
|
+
elementRef: ElementRef<any>;
|
|
1768
|
+
private readonly platformId;
|
|
1769
|
+
private baseSvg;
|
|
1770
|
+
/**
|
|
1771
|
+
* Prepares the SVG string by replacing color variables and encoding it.
|
|
1772
|
+
* @param bgColor - The background color.
|
|
1773
|
+
* @param lineColor - The line color.
|
|
1774
|
+
* @returns The prepared SVG string.
|
|
1775
|
+
*/
|
|
1776
|
+
prepareSvg(bgColor: string, lineColor: string): string;
|
|
1777
|
+
/**
|
|
1778
|
+
* Updates the SVG background image based on the current element's styles.
|
|
1779
|
+
*/
|
|
1780
|
+
updateSvg(): void;
|
|
1781
|
+
constructor();
|
|
1782
|
+
private getSvg;
|
|
1783
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfWavesOfProgressDirective, never>;
|
|
1784
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfWavesOfProgressDirective, "[dfWavesOfProgress]", ["dfWavesOfProgress"], { "dfWavesOfProgress": { "alias": "dfWavesOfProgress"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
declare class DfWavesOfProgressModule {
|
|
1788
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfWavesOfProgressModule, never>;
|
|
1789
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DfWavesOfProgressModule, never, [typeof DfWavesOfProgressDirective], [typeof DfWavesOfProgressDirective]>;
|
|
1790
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DfWavesOfProgressModule>;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
declare class DfAmadeusLogoComponent {
|
|
1794
|
+
/**
|
|
1795
|
+
* Class to apply to the SVG element. For example, you can use `df-logo-dim` to set proper dimensions inside footer and navbar.
|
|
1796
|
+
*/
|
|
1797
|
+
readonly svgClass: i0.InputSignal<string>;
|
|
1798
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DfAmadeusLogoComponent, never>;
|
|
1799
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DfAmadeusLogoComponent, "df-amadeus-logo", never, { "svgClass": { "alias": "svgClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
export { BREAKPOINTS_VARS, ChangeContext, DF_BREAKPOINTS_VAR_DEFAULT, DfAccessibilityModule, DfAdvancedCardModule, DfAdvancedInputModule, DfAlertModule, DfAmadeusIconComponent, DfAmadeusLogoComponent, 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 };
|
|
1803
|
+
export type { CombineLabelsFunction, CustomStepDefinition, DfDirection, DfProgressIndicatorContent, DfProgressIndicatorOptions, DfSideNavItem, DfStepType, DfStepperNormalizedState, DfStepperNormalizedStep, DfStepperState, DfStepperStep, GetLegendFunction, GetStepLegendFunction, PositionToValueFunction, TranslateFunction, ValueToPositionFunction };
|