@quadrel-enterprise-ui/framework 21.18.2 → 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';
|
|
@@ -19341,6 +19341,9 @@ class QdGridComponent {
|
|
|
19341
19341
|
this._columnsDirective.qdColumns = this.config.columns;
|
|
19342
19342
|
const { columnsMax, disableResponsiveColspans, disableAutoFill } = this.config;
|
|
19343
19343
|
if (columnsMax) {
|
|
19344
|
+
if (columnsMax >= this.config.columns) {
|
|
19345
|
+
console.error('Quadrel Framework | QdGrid - The columnsMax value has to be smaller than the columns value.');
|
|
19346
|
+
}
|
|
19344
19347
|
this._renderer.addClass(this.element, QdColumnsMaxDirective.className);
|
|
19345
19348
|
this._renderer.addClass(this.element, `${QdColumnsMaxDirective.className}-${columnsMax}`);
|
|
19346
19349
|
}
|
|
@@ -29255,6 +29258,7 @@ class QdTableComponent {
|
|
|
29255
29258
|
_refreshSubscription;
|
|
29256
29259
|
_deselectAllSubscription;
|
|
29257
29260
|
_connectors = [];
|
|
29261
|
+
_isConfirmingSecondaryAction = false;
|
|
29258
29262
|
get whichColumnFillsWidth() {
|
|
29259
29263
|
return this.fillingWidthService.whichColumnFillsWidth;
|
|
29260
29264
|
}
|
|
@@ -29409,9 +29413,12 @@ class QdTableComponent {
|
|
|
29409
29413
|
this.tableStoreService.setLastVisitedRow(resolveRowIdentifier(recentAction.rowData, recentAction.index, this.config.trackRowBy));
|
|
29410
29414
|
}
|
|
29411
29415
|
if (action.confirmationMessage) {
|
|
29416
|
+
if (this._isConfirmingSecondaryAction)
|
|
29417
|
+
return;
|
|
29418
|
+
this._isConfirmingSecondaryAction = true;
|
|
29412
29419
|
this.confirmationDialogService
|
|
29413
29420
|
.showConfirmDialog({ message: action.confirmationMessage }, this.testId + '-confirmation')
|
|
29414
|
-
.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)))
|
|
29415
29422
|
.subscribe(() => {
|
|
29416
29423
|
const result = action.handler(recentAction);
|
|
29417
29424
|
if (action.refresh?.isEnabled)
|
|
@@ -30929,7 +30936,7 @@ class QdTreeRowExpanderService {
|
|
|
30929
30936
|
init(treeId, rowService) {
|
|
30930
30937
|
this.trees.set(treeId, { treeRows: [], rowService });
|
|
30931
30938
|
rowService.treeRow$
|
|
30932
|
-
.pipe(finalize(() => this.forgetTree(treeId, rowService)), takeUntilDestroyed(this.destroyRef))
|
|
30939
|
+
.pipe(finalize$1(() => this.forgetTree(treeId, rowService)), takeUntilDestroyed(this.destroyRef))
|
|
30933
30940
|
.subscribe(tree => {
|
|
30934
30941
|
if (tree)
|
|
30935
30942
|
this.trees.get(treeId).treeRows = tree;
|
|
@@ -33206,7 +33213,7 @@ class QdPageNavigationInterceptorService {
|
|
|
33206
33213
|
void this.router.navigateByUrl(this.router.url, { skipLocationChange: true });
|
|
33207
33214
|
return this.confirmationDialog
|
|
33208
33215
|
.showDiscardConfirmDialog(this._confirmationMessage, 'page-navigation-confirmation')
|
|
33209
|
-
.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)));
|
|
33210
33217
|
}
|
|
33211
33218
|
navigateToConfirmedTarget(targetUrl) {
|
|
33212
33219
|
this._bypassInterception = false;
|
|
@@ -38563,6 +38570,7 @@ class QdQuickEditComponent {
|
|
|
38563
38570
|
static _rowMenuIdCounter = 0;
|
|
38564
38571
|
_rowMenuIdPrefix = `qd-quick-edit-row-menu-${QdQuickEditComponent._rowMenuIdCounter++}`;
|
|
38565
38572
|
_isOpeningRowMenuByKeyboard = false;
|
|
38573
|
+
_isConfirmingRemove = false;
|
|
38566
38574
|
constructor() {
|
|
38567
38575
|
if (!this.isFormControl) {
|
|
38568
38576
|
this.quickEditFormGroup = this.fb.group({
|
|
@@ -38697,10 +38705,13 @@ class QdQuickEditComponent {
|
|
|
38697
38705
|
removeRow(index) {
|
|
38698
38706
|
const { hasRemoveConfirmation, removeConfirmationMessage } = this.config;
|
|
38699
38707
|
if (hasRemoveConfirmation || removeConfirmationMessage) {
|
|
38708
|
+
if (this._isConfirmingRemove)
|
|
38709
|
+
return;
|
|
38710
|
+
this._isConfirmingRemove = true;
|
|
38700
38711
|
const message = removeConfirmationMessage ?? { i18n: 'i18n.qd.quick.edit.removeConfirmation.message' };
|
|
38701
38712
|
this.confirmationDialogService
|
|
38702
38713
|
.showConfirmDialog({ message }, (this.testId ?? 'quick-edit') + '-remove-confirmation')
|
|
38703
|
-
.pipe(filter$1(confirmed => confirmed))
|
|
38714
|
+
.pipe(finalize(() => (this._isConfirmingRemove = false)), filter$1(confirmed => confirmed))
|
|
38704
38715
|
.subscribe(() => this.executeRemoveRow(index));
|
|
38705
38716
|
return;
|
|
38706
38717
|
}
|