@yuuvis/client-core 2.3.8 → 2.3.9
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.
|
@@ -3,7 +3,7 @@ import { TranslateService, TranslateLoader, MissingTranslationHandler, Translate
|
|
|
3
3
|
export { TranslateDirective, TranslateLoader, TranslateModule, TranslatePipe, TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { HttpErrorResponse, HttpClient, HttpHeaders, HttpRequest, HttpParams, HttpResponse, HttpEventType, provideHttpClient, withInterceptors } from '@angular/common/http';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { inject, Injectable, InjectionToken, Inject, signal, Directive, Pipe, importProvidersFrom, provideAppInitializer } from '@angular/core';
|
|
6
|
+
import { inject, Injectable, InjectionToken, Inject, signal, Directive, Pipe, makeEnvironmentProviders, importProvidersFrom, provideAppInitializer } from '@angular/core';
|
|
7
7
|
import { tap, finalize, shareReplay, catchError, map, switchMap, first, filter, scan, delay } from 'rxjs/operators';
|
|
8
8
|
import { EMPTY, of, forkJoin, Observable, ReplaySubject, Subject, fromEvent, BehaviorSubject, tap as tap$1, map as map$1, merge, filter as filter$1, debounceTime, throwError, isObservable, switchMap as switchMap$1 } from 'rxjs';
|
|
9
9
|
import { StorageMap } from '@ngx-pwa/local-storage';
|
|
@@ -3768,6 +3768,18 @@ class DmsService {
|
|
|
3768
3768
|
}))
|
|
3769
3769
|
.pipe(this.triggerEvent(YuvEventType.DMS_OBJECT_LOADED, '', silent));
|
|
3770
3770
|
}
|
|
3771
|
+
/**
|
|
3772
|
+
* Get tags of a dms object.
|
|
3773
|
+
* @param objectData Data field of the dms object
|
|
3774
|
+
*/
|
|
3775
|
+
getDmsObjectTags(objectData) {
|
|
3776
|
+
return (objectData[BaseObjectTypeField.TAGS] || []).map((row) => ({
|
|
3777
|
+
name: row[0],
|
|
3778
|
+
state: row[1],
|
|
3779
|
+
creationDate: new Date(row[2]),
|
|
3780
|
+
traceId: row[3]
|
|
3781
|
+
}));
|
|
3782
|
+
}
|
|
3771
3783
|
/**
|
|
3772
3784
|
* Updates a tag on a dms object.
|
|
3773
3785
|
* @param id The ID of the object
|
|
@@ -5458,7 +5470,7 @@ EoxTranslateJsonLoader = __decorate([
|
|
|
5458
5470
|
], EoxTranslateJsonLoader);
|
|
5459
5471
|
|
|
5460
5472
|
const provideYuvClientCore = (options = { translations: [] }) => {
|
|
5461
|
-
return [
|
|
5473
|
+
return makeEnvironmentProviders([
|
|
5462
5474
|
importProvidersFrom(TranslateModule.forRoot()),
|
|
5463
5475
|
provideHttpClient(withInterceptors([AuthInterceptorFnc, OfflineInterceptorFnc])),
|
|
5464
5476
|
{ provide: CORE_CONFIG, useClass: CoreConfig, deps: [CUSTOM_CONFIG] },
|
|
@@ -5483,7 +5495,7 @@ const provideYuvClientCore = (options = { translations: [] }) => {
|
|
|
5483
5495
|
translations: options.translations
|
|
5484
5496
|
}
|
|
5485
5497
|
}
|
|
5486
|
-
];
|
|
5498
|
+
]);
|
|
5487
5499
|
};
|
|
5488
5500
|
|
|
5489
5501
|
/**
|