@yuuvis/client-core 2.4.4 → 2.5.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.
|
@@ -1880,7 +1880,10 @@ class SystemService {
|
|
|
1880
1880
|
getClassifications(classifications) {
|
|
1881
1881
|
const res = new Map();
|
|
1882
1882
|
if (classifications) {
|
|
1883
|
-
classifications
|
|
1883
|
+
classifications
|
|
1884
|
+
.map((c) => c.replace(/\s+/g, ''))
|
|
1885
|
+
.filter((c) => c.length > 0)
|
|
1886
|
+
.forEach((c) => {
|
|
1884
1887
|
const matches = c.match(/^([^\[]*)(\[(.*)\])?$/);
|
|
1885
1888
|
if (matches && matches.length) {
|
|
1886
1889
|
res.set(matches[1], {
|
|
@@ -2280,8 +2283,8 @@ class EventService {
|
|
|
2280
2283
|
* @param type Type/key of the event
|
|
2281
2284
|
* @param data Data to be send along with the event
|
|
2282
2285
|
*/
|
|
2283
|
-
trigger(type,
|
|
2284
|
-
this.#eventSource.next({ type, data });
|
|
2286
|
+
trigger(type, ...args) {
|
|
2287
|
+
this.#eventSource.next({ type: type, data: args[0] });
|
|
2285
2288
|
}
|
|
2286
2289
|
/**
|
|
2287
2290
|
* Listen on a triggered event
|
|
@@ -4149,7 +4152,7 @@ class IdmService {
|
|
|
4149
4152
|
return this.#backend.get(`/idm/roles?${searchParams.toString()}`).pipe(catchError$1(() => of([])));
|
|
4150
4153
|
}
|
|
4151
4154
|
getUserById(id) {
|
|
4152
|
-
return this.#backend.get(`/idm/users/${id}`).pipe(catchError$1(() => of(null)));
|
|
4155
|
+
return this.#backend.get(`/idm/users/${id}`).pipe(map$1((res) => (res ? new YuvUser(res) : null)), catchError$1(() => of(null)));
|
|
4153
4156
|
}
|
|
4154
4157
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: IdmService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4155
4158
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: IdmService, providedIn: 'root' }); }
|