@porscheinformatik/clr-addons 19.7.0 → 19.7.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.
- package/fesm2022/clr-addons.mjs +7 -6
- package/fesm2022/clr-addons.mjs.map +1 -1
- package/history/history.service.d.ts +1 -0
- package/package.json +1 -1
- package/styles/clr-addons-phs.css +0 -5
- package/styles/clr-addons-phs.css.map +1 -1
- package/styles/clr-addons-phs.min.css +1 -1
- package/styles/clr-addons-phs.min.css.map +1 -1
package/fesm2022/clr-addons.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import * as i2 from '@clr/angular';
|
|
|
7
7
|
import { ClarityModule, ClrFormsModule, ClrDropdown, ClrForm, ClrAlert, ClrAlignment, ClrSide, ClrAxis, ClrPopoverToggleService, ClrPopoverEventsService, ClrPopoverPositionService, ClrIconModule, ClrDropdownModule, ClrDatagridSortOrder, DatagridPropertyComparator, ClrDatagridPagination, ClrDatagridFilter, ClrDatagridColumn, ClrDateContainer, ClrLabel, ClrControlHelper, ClrControlError, ClrControlSuccess, ClrDatepickerModule } from '@clr/angular';
|
|
8
8
|
import * as i3$1 from '@angular/forms';
|
|
9
9
|
import { FormsModule, NG_VALIDATORS, NgControl, NG_VALUE_ACCESSOR, ReactiveFormsModule, FormControl, NgModel } from '@angular/forms';
|
|
10
|
-
import { Subject, BehaviorSubject, timer as timer$1, asyncScheduler, interval, debounceTime, fromEvent, ReplaySubject, takeUntil as takeUntil$1,
|
|
10
|
+
import { Subject, BehaviorSubject, timer as timer$1, asyncScheduler, interval, debounceTime, fromEvent, of, tap, switchMap, filter as filter$1, ReplaySubject, takeUntil as takeUntil$1, delay } from 'rxjs';
|
|
11
11
|
import { takeUntil, take, observeOn, debounceTime as debounceTime$1 } from 'rxjs/operators';
|
|
12
12
|
import * as i3 from '@angular/router';
|
|
13
13
|
import { RouterModule } from '@angular/router';
|
|
@@ -4850,6 +4850,7 @@ class ClrHistoryService {
|
|
|
4850
4850
|
this.historyHttpService = historyHttpService;
|
|
4851
4851
|
this.cookieSettings$ = new BehaviorSubject([]);
|
|
4852
4852
|
this.cookieNameSettings = 'clr.history.settings';
|
|
4853
|
+
this.changingHistory$ = new BehaviorSubject(false);
|
|
4853
4854
|
this.expiryDate = new Date();
|
|
4854
4855
|
this.expiryDate.setTime(this.expiryDate.getTime() + 365 * 24 * 60 * 60 * 1000);
|
|
4855
4856
|
}
|
|
@@ -4858,13 +4859,13 @@ class ClrHistoryService {
|
|
|
4858
4859
|
* @param historyEntry The entry to be added
|
|
4859
4860
|
*/
|
|
4860
4861
|
addHistoryEntry(historyEntry) {
|
|
4861
|
-
return this.historyHttpService.addHistoryEntry(
|
|
4862
|
+
return of(historyEntry).pipe(tap(() => this.changingHistory$.next(true)), switchMap(entry => this.historyHttpService.addHistoryEntry(entry)), tap(() => this.changingHistory$.next(false)));
|
|
4862
4863
|
}
|
|
4863
4864
|
getHistory(username, tenantId) {
|
|
4864
|
-
return this.historyHttpService.getHistory(username, tenantId);
|
|
4865
|
+
return this.changingHistory$.pipe(filter$1(changing => !changing), switchMap(() => this.historyHttpService.getHistory(username, tenantId)));
|
|
4865
4866
|
}
|
|
4866
4867
|
removeFromHistory(historyEntry) {
|
|
4867
|
-
return this.historyHttpService.removeFromHistory(
|
|
4868
|
+
return of(historyEntry).pipe(tap(() => this.changingHistory$.next(true)), switchMap(entry => this.historyHttpService.removeFromHistory(entry)), tap(() => this.changingHistory$.next(false)));
|
|
4868
4869
|
}
|
|
4869
4870
|
initializeCookieSettings(username, domain) {
|
|
4870
4871
|
let historySettings = this.getCookieByName(this.cookieNameSettings);
|
|
@@ -5067,11 +5068,11 @@ class ClrHistoryPinned {
|
|
|
5067
5068
|
this.settingsSubscription.unsubscribe();
|
|
5068
5069
|
}
|
|
5069
5070
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ClrHistoryPinned, deps: [{ token: ClrHistoryService }, { token: HISTORY_PROVIDER, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5070
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ClrHistoryPinned, isStandalone: false, selector: "clr-history-pinned", inputs: { username: ["clrUsername", "username"], tenantId: ["clrTenantId", "tenantId"], context: ["clrContext", "context"], domain: ["clrDomain", "domain"] }, ngImport: i0, template: "<
|
|
5071
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ClrHistoryPinned, isStandalone: false, selector: "clr-history-pinned", inputs: { username: ["clrUsername", "username"], tenantId: ["clrTenantId", "tenantId"], context: ["clrContext", "context"], domain: ["clrDomain", "domain"] }, ngImport: i0, template: "<nav aria-label=\"history\" class=\"history-container\" *ngIf=\"(active$ | async)\">\n <ol class=\"history\">\n <!-- dummy entry with no visible content to reserve space for the history header -->\n <li> </li>\n <ng-container *ngFor=\"let historyItem of historyElements$ | async\">\n <li *ngIf=\"historyItem.url\" class=\"history-item\">\n <a [href]=\"historyItem.url\">{{ historyItem.title }}</a>\n </li>\n </ng-container>\n </ol>\n</nav>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
5071
5072
|
}
|
|
5072
5073
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ClrHistoryPinned, decorators: [{
|
|
5073
5074
|
type: Component,
|
|
5074
|
-
args: [{ selector: 'clr-history-pinned', standalone: false, template: "<
|
|
5075
|
+
args: [{ selector: 'clr-history-pinned', standalone: false, template: "<nav aria-label=\"history\" class=\"history-container\" *ngIf=\"(active$ | async)\">\n <ol class=\"history\">\n <!-- dummy entry with no visible content to reserve space for the history header -->\n <li> </li>\n <ng-container *ngFor=\"let historyItem of historyElements$ | async\">\n <li *ngIf=\"historyItem.url\" class=\"history-item\">\n <a [href]=\"historyItem.url\">{{ historyItem.title }}</a>\n </li>\n </ng-container>\n </ol>\n</nav>\n" }]
|
|
5075
5076
|
}], ctorParameters: () => [{ type: ClrHistoryService }, { type: HistoryProvider, decorators: [{
|
|
5076
5077
|
type: Inject,
|
|
5077
5078
|
args: [HISTORY_PROVIDER]
|