@quadrel-enterprise-ui/framework 21.18.3 → 21.18.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.
|
@@ -2,10 +2,10 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Input, Component, Directive, NgModule, EventEmitter, HostBinding, Output, inject, Renderer2, ElementRef, Pipe, ViewContainerRef, HostListener, InjectionToken, Injectable, NO_ERRORS_SCHEMA, Injector, DestroyRef, ViewEncapsulation, ChangeDetectorRef, ViewChild, ChangeDetectionStrategy, SecurityContext, NgZone, ViewChildren, afterNextRender, forwardRef, QueryList, ContentChildren, ContentChild, afterEveryRender, reflectComponentType, isDevMode, TemplateRef, CUSTOM_ELEMENTS_SCHEMA, provideAppInitializer } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DOCUMENT, NgClass, NgTemplateOutlet, AsyncPipe, NgFor, NgIf } from '@angular/common';
|
|
5
|
-
import { BehaviorSubject, of, Subject, pairwise, ReplaySubject, fromEvent, combineLatest, concat, map as map$1, merge, isObservable, NEVER, Observable, EMPTY, shareReplay, distinctUntilChanged as distinctUntilChanged$1, debounce, timer, switchMap as switchMap$1, asyncScheduler, Subscription, throwError, startWith as startWith$1, filter as filter$1, debounceTime as debounceTime$1, firstValueFrom, take as take$1, tap as tap$1, from, delay, defer, throwIfEmpty, EmptyError, finalize, queueScheduler, concatMap as concatMap$1, exhaustMap, takeUntil as takeUntil$1, forkJoin, delayWhen, combineLatestWith, withLatestFrom as withLatestFrom$1, async } from 'rxjs';
|
|
5
|
+
import { BehaviorSubject, of, Subject, pairwise, ReplaySubject, fromEvent, combineLatest, concat, map as map$1, merge, isObservable, NEVER, Observable, EMPTY, shareReplay, distinctUntilChanged as distinctUntilChanged$1, debounce, timer, switchMap as switchMap$1, asyncScheduler, Subscription, throwError, startWith as startWith$1, filter as filter$1, debounceTime as debounceTime$1, firstValueFrom, take as take$1, tap as tap$1, from, delay, defer, throwIfEmpty, EmptyError, finalize as finalize$1, queueScheduler, concatMap as concatMap$1, exhaustMap, takeUntil as takeUntil$1, forkJoin, delayWhen, combineLatestWith, withLatestFrom as withLatestFrom$1, async } from 'rxjs';
|
|
6
6
|
import * as i1$1 from '@angular/forms';
|
|
7
7
|
import { NG_VALUE_ACCESSOR, FormsModule, UntypedFormControl, UntypedFormArray, UntypedFormGroup, ControlContainer, FormControlDirective, AbstractControl, UntypedFormBuilder, Validators, FormControl, ReactiveFormsModule, NgForm, FormGroupDirective, FormArray, FormGroup, FormBuilder } from '@angular/forms';
|
|
8
|
-
import { map, filter, startWith, take, debounceTime, distinctUntilChanged, switchMap, concatMap, skip, throttleTime, catchError, tap, takeUntil, auditTime, withLatestFrom, first, observeOn, pairwise as pairwise$1, mergeMap } from 'rxjs/operators';
|
|
8
|
+
import { map, filter, startWith, take, debounceTime, distinctUntilChanged, switchMap, concatMap, skip, throttleTime, catchError, tap, takeUntil, auditTime, withLatestFrom, first, finalize, observeOn, pairwise as pairwise$1, mergeMap } from 'rxjs/operators';
|
|
9
9
|
import { v4 } from 'uuid';
|
|
10
10
|
import * as i2 from '@ngx-translate/core';
|
|
11
11
|
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
@@ -29258,6 +29258,7 @@ class QdTableComponent {
|
|
|
29258
29258
|
_refreshSubscription;
|
|
29259
29259
|
_deselectAllSubscription;
|
|
29260
29260
|
_connectors = [];
|
|
29261
|
+
_isConfirmingSecondaryAction = false;
|
|
29261
29262
|
get whichColumnFillsWidth() {
|
|
29262
29263
|
return this.fillingWidthService.whichColumnFillsWidth;
|
|
29263
29264
|
}
|
|
@@ -29412,9 +29413,12 @@ class QdTableComponent {
|
|
|
29412
29413
|
this.tableStoreService.setLastVisitedRow(resolveRowIdentifier(recentAction.rowData, recentAction.index, this.config.trackRowBy));
|
|
29413
29414
|
}
|
|
29414
29415
|
if (action.confirmationMessage) {
|
|
29416
|
+
if (this._isConfirmingSecondaryAction)
|
|
29417
|
+
return;
|
|
29418
|
+
this._isConfirmingSecondaryAction = true;
|
|
29415
29419
|
this.confirmationDialogService
|
|
29416
29420
|
.showConfirmDialog({ message: action.confirmationMessage }, this.testId + '-confirmation')
|
|
29417
|
-
.pipe(filter(confirmed => confirmed), switchMap(() => action.availability === undefined ? of(recentAction) : this.whenSecondaryActionAvailable$(recentAction)))
|
|
29421
|
+
.pipe(finalize(() => (this._isConfirmingSecondaryAction = false)), filter(confirmed => confirmed), switchMap(() => action.availability === undefined ? of(recentAction) : this.whenSecondaryActionAvailable$(recentAction)))
|
|
29418
29422
|
.subscribe(() => {
|
|
29419
29423
|
const result = action.handler(recentAction);
|
|
29420
29424
|
if (action.refresh?.isEnabled)
|
|
@@ -30932,7 +30936,7 @@ class QdTreeRowExpanderService {
|
|
|
30932
30936
|
init(treeId, rowService) {
|
|
30933
30937
|
this.trees.set(treeId, { treeRows: [], rowService });
|
|
30934
30938
|
rowService.treeRow$
|
|
30935
|
-
.pipe(finalize(() => this.forgetTree(treeId, rowService)), takeUntilDestroyed(this.destroyRef))
|
|
30939
|
+
.pipe(finalize$1(() => this.forgetTree(treeId, rowService)), takeUntilDestroyed(this.destroyRef))
|
|
30936
30940
|
.subscribe(tree => {
|
|
30937
30941
|
if (tree)
|
|
30938
30942
|
this.trees.get(treeId).treeRows = tree;
|
|
@@ -33209,7 +33213,7 @@ class QdPageNavigationInterceptorService {
|
|
|
33209
33213
|
void this.router.navigateByUrl(this.router.url, { skipLocationChange: true });
|
|
33210
33214
|
return this.confirmationDialog
|
|
33211
33215
|
.showDiscardConfirmDialog(this._confirmationMessage, 'page-navigation-confirmation')
|
|
33212
|
-
.pipe(map$1(confirmed => ({ confirmed, targetUrl: event.url })), finalize(() => (this._bypassInterception = false)));
|
|
33216
|
+
.pipe(map$1(confirmed => ({ confirmed, targetUrl: event.url })), finalize$1(() => (this._bypassInterception = false)));
|
|
33213
33217
|
}
|
|
33214
33218
|
navigateToConfirmedTarget(targetUrl) {
|
|
33215
33219
|
this._bypassInterception = false;
|
|
@@ -38566,6 +38570,7 @@ class QdQuickEditComponent {
|
|
|
38566
38570
|
static _rowMenuIdCounter = 0;
|
|
38567
38571
|
_rowMenuIdPrefix = `qd-quick-edit-row-menu-${QdQuickEditComponent._rowMenuIdCounter++}`;
|
|
38568
38572
|
_isOpeningRowMenuByKeyboard = false;
|
|
38573
|
+
_isConfirmingRemove = false;
|
|
38569
38574
|
constructor() {
|
|
38570
38575
|
if (!this.isFormControl) {
|
|
38571
38576
|
this.quickEditFormGroup = this.fb.group({
|
|
@@ -38700,10 +38705,13 @@ class QdQuickEditComponent {
|
|
|
38700
38705
|
removeRow(index) {
|
|
38701
38706
|
const { hasRemoveConfirmation, removeConfirmationMessage } = this.config;
|
|
38702
38707
|
if (hasRemoveConfirmation || removeConfirmationMessage) {
|
|
38708
|
+
if (this._isConfirmingRemove)
|
|
38709
|
+
return;
|
|
38710
|
+
this._isConfirmingRemove = true;
|
|
38703
38711
|
const message = removeConfirmationMessage ?? { i18n: 'i18n.qd.quick.edit.removeConfirmation.message' };
|
|
38704
38712
|
this.confirmationDialogService
|
|
38705
38713
|
.showConfirmDialog({ message }, (this.testId ?? 'quick-edit') + '-remove-confirmation')
|
|
38706
|
-
.pipe(filter$1(confirmed => confirmed))
|
|
38714
|
+
.pipe(finalize(() => (this._isConfirmingRemove = false)), filter$1(confirmed => confirmed))
|
|
38707
38715
|
.subscribe(() => this.executeRemoveRow(index));
|
|
38708
38716
|
return;
|
|
38709
38717
|
}
|