@quadrel-enterprise-ui/framework 20.34.0 → 20.36.0-beta.318.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.
|
@@ -24768,12 +24768,21 @@ class QdTableResolverService {
|
|
|
24768
24768
|
if (!resolver)
|
|
24769
24769
|
return console.warn('Quadrel Framework | QdTable - Refresh skipped: resolver not provided.');
|
|
24770
24770
|
const { pageIndex } = resolverOptions;
|
|
24771
|
+
console.warn('Quadrel Framework | QdTable - A refresh was requested:', { pageIndex });
|
|
24771
24772
|
this._refreshSubscription?.unsubscribe();
|
|
24772
24773
|
this._refreshSubscription = this.tableStoreService
|
|
24773
24774
|
.selectDataResolutionCriteria$()
|
|
24774
|
-
.pipe(filter((criteria) => !!criteria), first(), switchMap(resolutionCriteria => this.resolveAndApply(resolver, this.buildRefreshParams(resolutionCriteria, pageIndex))), takeUntil(this._destroyed$))
|
|
24775
|
+
.pipe(tap(criteria => this.reportResolutionCriteria(criteria)), filter((criteria) => !!criteria), first(), switchMap(resolutionCriteria => this.resolveAndApply(resolver, this.buildRefreshParams(resolutionCriteria, pageIndex))), takeUntil(this._destroyed$))
|
|
24775
24776
|
.subscribe();
|
|
24776
24777
|
}
|
|
24778
|
+
reportResolutionCriteria(criteria) {
|
|
24779
|
+
if (criteria) {
|
|
24780
|
+
console.warn('Quadrel Framework | QdTable - The refresh received its resolution criteria:', criteria);
|
|
24781
|
+
return;
|
|
24782
|
+
}
|
|
24783
|
+
console.warn('Quadrel Framework | QdTable - Refresh is waiting for resolution criteria. ' +
|
|
24784
|
+
'The table has no page index or page size in its store, so the resolver is not called until they arrive.');
|
|
24785
|
+
}
|
|
24777
24786
|
subscribeToLangChanges() {
|
|
24778
24787
|
this.translateService.onLangChange.pipe(takeUntil(this._destroyed$)).subscribe(() => this.refresh());
|
|
24779
24788
|
}
|
|
@@ -24805,6 +24814,7 @@ class QdTableResolverService {
|
|
|
24805
24814
|
resolveAndApply(resolver, params) {
|
|
24806
24815
|
return defer(() => {
|
|
24807
24816
|
this.tableStoreService.setRequestState(QdTableRequestState.PENDING);
|
|
24817
|
+
console.warn('Quadrel Framework | QdTable - Calling the data resolver:', params);
|
|
24808
24818
|
return resolver.resolve(params);
|
|
24809
24819
|
}).pipe(tap(result => this.handleResolverResult(result)), filter(() => !this._isNavigatingToValidPage), tap(() => this.tableStoreService.setRequestState(QdTableRequestState.SUCCESS)), catchError(() => this.recoverFromFailedRequest()));
|
|
24810
24820
|
}
|
|
@@ -26454,7 +26464,7 @@ class QdTableComponent {
|
|
|
26454
26464
|
}
|
|
26455
26465
|
if (changes['config'] &&
|
|
26456
26466
|
!changes['config'].firstChange &&
|
|
26457
|
-
|
|
26467
|
+
!isEqual$1(changes['config'].previousValue, changes['config'].currentValue)) {
|
|
26458
26468
|
this.updateResponsiveRowServiceTableConfig();
|
|
26459
26469
|
this.updateFillingWidthServiceTableConfig();
|
|
26460
26470
|
}
|
|
@@ -26584,9 +26594,15 @@ class QdTableComponent {
|
|
|
26584
26594
|
this.triggerRefresh(refreshConfig.page);
|
|
26585
26595
|
}
|
|
26586
26596
|
initRefresh() {
|
|
26587
|
-
|
|
26597
|
+
if (!this.config.refresh)
|
|
26598
|
+
return;
|
|
26599
|
+
console.warn('Quadrel Framework | QdTable - Subscribing to the refresh observable from the config:', {
|
|
26600
|
+
uid: this.config.uid
|
|
26601
|
+
});
|
|
26602
|
+
this._refreshSubscription = this.config.refresh.subscribe(value => this.triggerRefresh(value));
|
|
26588
26603
|
}
|
|
26589
26604
|
triggerRefresh(pageIndex) {
|
|
26605
|
+
console.warn('Quadrel Framework | QdTable - The refresh observable emitted:', { pageIndex });
|
|
26590
26606
|
this.resolverService.refresh(pageIndex !== undefined ? { pageIndex } : {});
|
|
26591
26607
|
}
|
|
26592
26608
|
validateConfig() {
|
|
@@ -33277,7 +33293,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
33277
33293
|
type: Injectable
|
|
33278
33294
|
}] });
|
|
33279
33295
|
|
|
33280
|
-
const DEFAULT_JAVASCRIPT_ASSET_PATH$1 = 'assets/service-navigation-web-component.js?version=15.
|
|
33296
|
+
const DEFAULT_JAVASCRIPT_ASSET_PATH$1 = 'assets/service-navigation-web-component.js?version=15.4.4';
|
|
33281
33297
|
class QdShellServiceNavigationComponent {
|
|
33282
33298
|
serviceNavigationService = inject(QdShellServiceNavigationService);
|
|
33283
33299
|
translateService = inject(TranslateService);
|