@quadrel-enterprise-ui/framework 21.12.11 → 21.12.13
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, InjectionToken, inject, ElementRef, HostBinding, Input, ViewEncapsulation, Component, Injectable, Injector, HostListener, ChangeDetectionStrategy, ChangeDetectorRef,
|
|
2
|
+
import { Directive, InjectionToken, inject, ElementRef, HostBinding, Input, ViewEncapsulation, Component, Injectable, Injector, DestroyRef, HostListener, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild, NgModule, EventEmitter, Output, Renderer2, Pipe, ViewContainerRef, NO_ERRORS_SCHEMA, SecurityContext, NgZone, ViewChildren, afterNextRender, forwardRef, QueryList, ContentChildren, ContentChild, afterEveryRender, reflectComponentType, isDevMode, TemplateRef, CUSTOM_ELEMENTS_SCHEMA, provideAppInitializer } from '@angular/core';
|
|
3
3
|
import { Dialog, DialogRef, DIALOG_DATA, DialogModule } from '@angular/cdk/dialog';
|
|
4
4
|
import { quadrelIcons } from '@quadrel-enterprise-ui/icons';
|
|
5
5
|
export { quadrelIconNames } from '@quadrel-enterprise-ui/icons';
|
|
@@ -448,11 +448,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
448
448
|
// @ts-strict-ignore
|
|
449
449
|
class QdDesktopNotificationsService {
|
|
450
450
|
injector = inject(Injector);
|
|
451
|
+
_destroyRef = inject(DestroyRef);
|
|
451
452
|
desktopNotifications = [];
|
|
452
453
|
translateService;
|
|
453
454
|
constructor() {
|
|
454
455
|
const injector = this.injector;
|
|
455
|
-
setTimeout(() => (this.translateService = injector.get(TranslateService)));
|
|
456
|
+
const translateServiceLookup = setTimeout(() => (this.translateService = injector.get(TranslateService)));
|
|
457
|
+
this._destroyRef.onDestroy(() => clearTimeout(translateServiceLookup));
|
|
456
458
|
}
|
|
457
459
|
open(notification) {
|
|
458
460
|
const desktopNotification = this.openDesktopNotificationIfPermitted(notification);
|
|
@@ -8901,7 +8903,10 @@ class QdPopoverOnClickDirective {
|
|
|
8901
8903
|
});
|
|
8902
8904
|
}
|
|
8903
8905
|
runSizingAndOpen(popover) {
|
|
8906
|
+
const popoverRef = this._popoverRef;
|
|
8904
8907
|
setTimeout(() => {
|
|
8908
|
+
if (this._popoverRef !== popoverRef)
|
|
8909
|
+
return;
|
|
8905
8910
|
const constraints = {
|
|
8906
8911
|
minWidth: this.qdPopoverMinWidth,
|
|
8907
8912
|
maxWidth: this.qdPopoverMaxWidth,
|