@quadrel-enterprise-ui/framework 18.25.2 → 18.25.4

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.
@@ -9,6 +9,7 @@ import { QdTranslatable, QdTranslation } from './model/translation.interface';
9
9
  import { QdVisuallyHiddenDirective } from './visually-hidden/visually-hidden.directive';
10
10
  import { QdPushEventsService } from './services/push-events.service';
11
11
  import { QD_POPOVER_TOP_FIRST } from './popover/popover-top-first.token';
12
+ import { QD_SAFE_BOTTOM_OFFSET } from './model/safe-bottom-offset.token';
12
13
  import * as i0 from "@angular/core";
13
14
  import * as i1 from "./disabled/disabled.directive";
14
15
  import * as i2 from "./pipes/file-size.pipe";
@@ -20,7 +21,7 @@ import * as i7 from "@angular/common";
20
21
  import * as i8 from "@ngx-translate/core";
21
22
  import * as i9 from "./data-facets/data-facets.module";
22
23
  import * as i10 from "./breadcrumbs/breadcrumbs.module";
23
- export { QdAppEnvironment, QdDisabledDirective, QdFileSizePipe, QdPlaceholderPipe, QdProjectionGuardComponent, QdRwdDisabledDirective, QdTooltipAtIntersectionDirective, QdTranslatable, QdTranslation, QdVisuallyHiddenDirective, QdPushEventsService, QD_POPOVER_TOP_FIRST };
24
+ export { QdAppEnvironment, QdDisabledDirective, QdFileSizePipe, QdPlaceholderPipe, QdProjectionGuardComponent, QdRwdDisabledDirective, QdTooltipAtIntersectionDirective, QdTranslatable, QdTranslation, QdVisuallyHiddenDirective, QdPushEventsService, QD_POPOVER_TOP_FIRST, QD_SAFE_BOTTOM_OFFSET };
24
25
  export declare class QdCoreModule {
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<QdCoreModule, never>;
26
27
  static ɵmod: i0.ɵɵNgModuleDeclaration<QdCoreModule, [typeof i1.QdDisabledDirective, typeof i2.QdFileSizePipe, typeof i3.QdPlaceholderPipe, typeof i4.QdProjectionGuardComponent, typeof i5.QdRwdDisabledDirective, typeof i6.QdVisuallyHiddenDirective], [typeof i7.CommonModule, typeof i8.TranslateModule, typeof i9.QdDataFacetsModule, typeof i10.QdBreadcrumbsModule], [typeof i1.QdDisabledDirective, typeof i2.QdFileSizePipe, typeof i3.QdPlaceholderPipe, typeof i4.QdProjectionGuardComponent, typeof i5.QdRwdDisabledDirective, typeof i6.QdVisuallyHiddenDirective]>;
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ export declare const QD_SAFE_BOTTOM_OFFSET: InjectionToken<BehaviorSubject<number>>;
@@ -1,6 +1,13 @@
1
1
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { Moment } from 'moment';
3
3
  import { QdCalendarDay, QdCalendarMode, QdDisabledDates } from '../../model/datepicker';
4
+ /**
5
+ * DO NOT REMOVE — Vite/ESM does not bundle Moment locales automatically.
6
+ * These side-effect imports register de/fr/it for month and weekday names.
7
+ */
8
+ import 'moment/locale/de';
9
+ import 'moment/locale/fr';
10
+ import 'moment/locale/it';
4
11
  import * as i0 from "@angular/core";
5
12
  export declare class QdCalendarComponent implements OnInit, OnChanges {
6
13
  /**
@@ -1,21 +1,45 @@
1
- import { Overlay, OverlayPositionBuilder } from '@angular/cdk/overlay';
2
1
  import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { Overlay, OverlayPositionBuilder } from '@angular/cdk/overlay';
3
+ import { BehaviorSubject } from 'rxjs';
3
4
  import { QdSnackbarService } from '../services/snackbar.service';
4
5
  import * as i0 from "@angular/core";
5
6
  /**
6
- * **QdNotificationsSnackbarListener** provides a CDK overlay for the **QdNotificationsSnackbar**.
7
+ * Shows notifications as a snackbar.
8
+ *
9
+ * #### **Behavior**
10
+ * - Appears in the bottom-right corner.
11
+ * - Adapts to the QLS (e.g., stays above a PageFooter).
12
+ * - Behavior is configurable via `snackbarOptions` (e.g., lifetime, close button, handlers).
13
+ *
14
+ * #### **Usage**
15
+ * ```html
16
+ * <qd-shell [config]="shellConfig" qdSnackbarListener>
17
+ * ```
18
+ *
19
+ * #### **Snackbar Configuration**
20
+ * ```ts
21
+ * {
22
+ * showAsSnackbar: true,
23
+ * snackbarOptions?: {
24
+ * ...
25
+ * }
26
+ * }
27
+ * ```
7
28
  */
8
29
  export declare class QdNotificationsSnackbarListenerDirective implements OnInit, OnDestroy {
9
30
  private snackbarService;
10
31
  private hostRef;
11
32
  private overlay;
12
33
  private overlayPositionBuilder;
13
- private overlayRef;
14
- private destroyed$;
15
- constructor(snackbarService: QdSnackbarService, hostRef: ElementRef<HTMLElement>, overlay: Overlay, overlayPositionBuilder: OverlayPositionBuilder);
34
+ private safeBottomOffset$;
35
+ private _overlayRef;
36
+ private _destroyed$;
37
+ constructor(snackbarService: QdSnackbarService, hostRef: ElementRef<HTMLElement>, overlay: Overlay, overlayPositionBuilder: OverlayPositionBuilder, safeBottomOffset$: BehaviorSubject<number>);
16
38
  ngOnInit(): void;
17
- private registerHost;
18
39
  ngOnDestroy(): void;
40
+ private initOverlay;
41
+ private observeSafeBottomOffset;
42
+ private bottomRightPositions;
19
43
  static ɵfac: i0.ɵɵFactoryDeclaration<QdNotificationsSnackbarListenerDirective, never>;
20
44
  static ɵdir: i0.ɵɵDirectiveDeclaration<QdNotificationsSnackbarListenerDirective, "[qdSnackbarListener]", never, {}, {}, never, never, false, never>;
21
45
  }
@@ -1,5 +1,5 @@
1
1
  import { AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
2
- import { Observable } from 'rxjs';
2
+ import { BehaviorSubject, Observable } from 'rxjs';
3
3
  import { QdDialogService } from '../dialog/dialog.module';
4
4
  import { QdPageStepperAdapterDirective } from '../page-stepper/adaptors/page-stepper-adapter.directive';
5
5
  import { QdPageStepperComponent } from '../page-stepper/page-stepper.component';
@@ -398,6 +398,7 @@ export declare class QdPageComponent<T extends object> implements OnInit, OnChan
398
398
  private readonly formGroupManagerService;
399
399
  private readonly submitActionService;
400
400
  private readonly dialog;
401
+ private bottomOffset$?;
401
402
  /**
402
403
  * This property defines the configuration for the QdPage component, including the page type,
403
404
  * title, and specific configurations for each type of page.
@@ -429,7 +430,7 @@ export declare class QdPageComponent<T extends object> implements OnInit, OnChan
429
430
  get hasNavigation(): boolean;
430
431
  get footerVisible(): boolean | undefined;
431
432
  get hasInfoBanners(): boolean;
432
- constructor(pageStoreService: QdPageStoreService<T>, footerService: QdPageFooterService, formGroupManagerService: QdFormGroupManagerService, submitActionService: QdPageSubmitActionService, dialog: QdDialogService);
433
+ constructor(pageStoreService: QdPageStoreService<T>, footerService: QdPageFooterService, formGroupManagerService: QdFormGroupManagerService, submitActionService: QdPageSubmitActionService, dialog: QdDialogService, bottomOffset$?: BehaviorSubject<number>);
433
434
  ngOnInit(): void;
434
435
  ngOnChanges(changes: SimpleChanges): void;
435
436
  ngAfterViewInit(): void;
@@ -442,6 +443,6 @@ export declare class QdPageComponent<T extends object> implements OnInit, OnChan
442
443
  private generateFooterActionHandler;
443
444
  private setupSubmitActionValidation;
444
445
  private initSubmitValidation;
445
- static ɵfac: i0.ɵɵFactoryDeclaration<QdPageComponent<any>, never>;
446
+ static ɵfac: i0.ɵɵFactoryDeclaration<QdPageComponent<any>, [null, null, null, null, null, { optional: true; }]>;
446
447
  static ɵcmp: i0.ɵɵComponentDeclaration<QdPageComponent<any>, "qd-page", never, { "config": { "alias": "config"; "required": true; }; "testId": { "alias": "data-test-id"; "required": false; }; }, { "operationModeChanged": "operationModeChanged"; }, ["controlPanel", "stepperComponent", "tabsComponent", "stepperAdapterDirective", "tabsAdapterDirective", "sections", "infoBanners"], ["qd-page-info-banner", "qd-page-stepper", "[qdPageStepperAdapter]", "qd-page-tabs", "[qdPageTabsAdapter]", "qd-section", "[qdSectionAdapter]", "[qdPageFooter]", "qd-page-control-panel", "*"], false, never>;
447
448
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quadrel-enterprise-ui/framework",
3
- "version": "v18.25.2",
3
+ "version": "v18.25.4",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "~18.2.9",
6
6
  "@angular/common": "~18.2.9",