nuxeo-development-framework 5.9.9 → 6.0.0
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/bundles/nuxeo-development-framework.umd.js +74 -23
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-form/services/vocabulary-api.service.js +32 -0
- package/esm2015/lib/components/notifications/services/notifications.service.js +27 -12
- package/esm2015/lib/core/services/nuxeo/nuxeo.service.js +8 -2
- package/fesm2015/nuxeo-development-framework.js +71 -23
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/dynamic-form/services/vocabulary-api.service.d.ts +12 -0
- package/lib/components/notifications/components/notification-source-select/notification-source-select.component.d.ts +1 -1
- package/lib/components/notifications/services/notifications.service.d.ts +4 -2
- package/lib/core/services/nuxeo/nuxeo.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1538,7 +1538,15 @@
|
|
|
1538
1538
|
}, this.keycloak);
|
|
1539
1539
|
};
|
|
1540
1540
|
NuxeoService.prototype.getToken = function () {
|
|
1541
|
-
return this
|
|
1541
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1542
|
+
return __generator(this, function (_a) {
|
|
1543
|
+
return [2 /*return*/, this.keycloak.getToken()];
|
|
1544
|
+
});
|
|
1545
|
+
});
|
|
1546
|
+
};
|
|
1547
|
+
NuxeoService.prototype.decriptFormating = function (formate) {
|
|
1548
|
+
var newFormate = formate.substring(3, (formate.length - 5));
|
|
1549
|
+
return JSON.parse(atob(newFormate));
|
|
1542
1550
|
};
|
|
1543
1551
|
NuxeoService.prototype.doLogout = function () {
|
|
1544
1552
|
this.keycloak.logout(window.location.origin + this.baseHref);
|
|
@@ -6319,7 +6327,7 @@
|
|
|
6319
6327
|
type: i0.Output
|
|
6320
6328
|
}] } });
|
|
6321
6329
|
|
|
6322
|
-
var VocabularyApiService = /** @class */ (function (_super) {
|
|
6330
|
+
var VocabularyApiService$1 = /** @class */ (function (_super) {
|
|
6323
6331
|
__extends(VocabularyApiService, _super);
|
|
6324
6332
|
function VocabularyApiService(nuxeoService, injector) {
|
|
6325
6333
|
var _this = _super.call(this, injector) || this;
|
|
@@ -6365,9 +6373,9 @@
|
|
|
6365
6373
|
};
|
|
6366
6374
|
return VocabularyApiService;
|
|
6367
6375
|
}(BaseService));
|
|
6368
|
-
VocabularyApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: VocabularyApiService, deps: [{ token: NuxeoService }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
6369
|
-
VocabularyApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: VocabularyApiService, providedIn: 'root' });
|
|
6370
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: VocabularyApiService, decorators: [{
|
|
6376
|
+
VocabularyApiService$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: VocabularyApiService$1, deps: [{ token: NuxeoService }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
6377
|
+
VocabularyApiService$1.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: VocabularyApiService$1, providedIn: 'root' });
|
|
6378
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: VocabularyApiService$1, decorators: [{
|
|
6371
6379
|
type: i0.Injectable,
|
|
6372
6380
|
args: [{
|
|
6373
6381
|
providedIn: 'root',
|
|
@@ -6532,7 +6540,7 @@
|
|
|
6532
6540
|
};
|
|
6533
6541
|
return DynamicFormVocabularyItemComponent;
|
|
6534
6542
|
}());
|
|
6535
|
-
DynamicFormVocabularyItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DynamicFormVocabularyItemComponent, deps: [{ token: VocabularyApiService }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace$4.NgControl, optional: true, self: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6543
|
+
DynamicFormVocabularyItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DynamicFormVocabularyItemComponent, deps: [{ token: VocabularyApiService$1 }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace$4.NgControl, optional: true, self: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6536
6544
|
DynamicFormVocabularyItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DynamicFormVocabularyItemComponent, selector: "app-dynamic-form-vocabulary-item", inputs: { onlyIds: "onlyIds", bindValue: "bindValue", bindLabel: "bindLabel", placeholder: "placeholder", multiple: "multiple", searchable: "searchable", closeOnSelect: "closeOnSelect", hideSelectedItems: "hideSelectedItems", disabled: "disabled", vocabularyType: "vocabularyType", label: "label", cacheable: "cacheable", shwoAllValues: "shwoAllValues", emitVocabulryRecordOnSelect: "emitVocabulryRecordOnSelect" }, outputs: { onSelecting: "onSelecting", onFetchingOptions: "onFetchingOptions" }, viewQueries: [{ propertyName: "DynamicFormSelectItemComponent", first: true, predicate: DynamicFormSelectItemComponent, descendants: true }], ngImport: i0__namespace, template: "<ng-container *ngIf=\"label\">\r\n <div>\r\n <label class=\"select-label\"\r\n >{{ label | translate\r\n }}<span *ngIf=\"isRequired()\" class=\"text-danger mx-1\">*</span></label\r\n >\r\n </div>\r\n</ng-container>\r\n<app-dynamic-form-selectitem\r\n [voc]=\"true\"\r\n [vocId]=\"vocabularyType\"\r\n [data]=\"data\"\r\n [bindLabel]=\"bindLabel\"\r\n [bindValue]=\"bindValue\"\r\n [placeholder]=\"placeholder\"\r\n [multiple]=\"multiple\"\r\n [searchable]=\"searchable\"\r\n [closeOnSelect]=\"closeOnSelect\"\r\n [disabled]=\"disabled\"\r\n [hideSelectedItems]=\"hideSelectedItems\"\r\n [loading]=\"loading\"\r\n (onSelectItems)=\"getSelecteditems($event)\"\r\n [(ngModel)]=\"selection\"\r\n></app-dynamic-form-selectitem>\r\n<mat-error\r\n [attr.data-automation-id]=\"'card-textitem-error-'\"\r\n class=\"app-textitem-editable-error\"\r\n *ngIf=\"hasErrors()\"\r\n>\r\n <ul>\r\n <li *ngIf=\"control.errors.required\">\r\n {{ label | translate }} {{ \"VALIDATORS.REQUIRED\" | translate }}\r\n </li>\r\n </ul>\r\n</mat-error>\r\n", styles: [""], components: [{ type: DynamicFormSelectItemComponent, selector: "app-dynamic-form-selectitem", inputs: ["label", "bindValue", "bindLabel", "data", "placeholder", "multiple", "searchable", "closeOnSelect", "hideSelectedItems", "disabled", "clear", "voc", "vocId", "loading"], outputs: ["onSelectItems"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace$7.MatError, selector: "mat-error", inputs: ["id"] }], pipes: { "translate": i1__namespace.TranslatePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
6537
6545
|
__decorate([
|
|
6538
6546
|
tsCacheable.Cacheable({
|
|
@@ -6550,7 +6558,7 @@
|
|
|
6550
6558
|
encapsulation: i0.ViewEncapsulation.None
|
|
6551
6559
|
}]
|
|
6552
6560
|
}], ctorParameters: function () {
|
|
6553
|
-
return [{ type: VocabularyApiService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$4.NgControl, decorators: [{
|
|
6561
|
+
return [{ type: VocabularyApiService$1 }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$4.NgControl, decorators: [{
|
|
6554
6562
|
type: i0.Self
|
|
6555
6563
|
}, {
|
|
6556
6564
|
type: i0.Optional
|
|
@@ -30474,7 +30482,7 @@
|
|
|
30474
30482
|
};
|
|
30475
30483
|
return TranslatedVocabularySelectComponent;
|
|
30476
30484
|
}());
|
|
30477
|
-
TranslatedVocabularySelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TranslatedVocabularySelectComponent, deps: [{ token: i1__namespace.TranslateService }, { token: TranslationService }, { token: VocabularyApiService }, { token: i2__namespace$4.NgControl, optional: true, self: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
30485
|
+
TranslatedVocabularySelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TranslatedVocabularySelectComponent, deps: [{ token: i1__namespace.TranslateService }, { token: TranslationService }, { token: VocabularyApiService$1 }, { token: i2__namespace$4.NgControl, optional: true, self: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
30478
30486
|
TranslatedVocabularySelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TranslatedVocabularySelectComponent, selector: "app-translated-vocabulary-select", inputs: { label: "label", bindValue: "bindValue", arbBindLabel: "arbBindLabel", engBindLabel: "engBindLabel", placeholder: "placeholder", multiple: "multiple", searchable: "searchable", closeOnSelect: "closeOnSelect", hideSelectedItems: "hideSelectedItems", disabled: "disabled", clear: "clear", filter: "filter", useFilter: "useFilter", vocbularyId: "vocbularyId", mapingResponse: "mapingResponse", params: "params", getByDirectorySuggestion: "getByDirectorySuggestion" }, outputs: { onSelectItems: "onSelectItems" }, viewQueries: [{ propertyName: "ngSelectComponent", first: true, predicate: i5.NgSelectComponent, descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"translated-vocbulary-wrapper\" [ngClass]=\"{'rtl-translated-vocbulary-wrapper' : isArabic === true}\">\r\n <div class=\"vocabulary-title text-base font-bold text-accent-900 mb-0\">\r\n {{label | translate}}\r\n <span *ngIf=\"isRequired()\" class=\"required-flage\">*</span>\r\n </div>\r\n <ng-select\r\n [bindLabel]=\"bindLabel\"\r\n [bindValue]=\"bindValue\"\r\n [placeholder]=\"placeholder\"\r\n [multiple]=\"multiple\"\r\n [clearable]=\"clear\"\r\n [searchable]=\"searchable\"\r\n [closeOnSelect]=\"closeOnSelect\"\r\n [hideSelected]=\"hideSelectedItems\"\r\n [loading]=\"loading\"\r\n (scrollToEnd)=\"onScrollToEnd()\"\r\n (change)=\"emitSelection($event)\"\r\n [disabled]=\"disabled\"\r\n [(ngModel)]=\"selection\"\r\n >\r\n <ng-option *ngFor=\"let option of buffer\" [value]=\"option[bindValue]\">{{isArabic ? option[bindLabel] : option[bindLabel]}}</ng-option>\r\n </ng-select>\r\n</div>\r\n", styles: [".translated-vocbulary-wrapper .vocabulary-title .required-flage{color:#ef4444}.rtl-translated-vocbulary-wrapper{direction:rtl}\n"], components: [{ type: i5__namespace.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { type: i5__namespace.ɵr, selector: "ng-option", inputs: ["disabled", "value"] }], directives: [{ type: i4__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i1__namespace.TranslatePipe } });
|
|
30479
30487
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TranslatedVocabularySelectComponent, decorators: [{
|
|
30480
30488
|
type: i0.Component,
|
|
@@ -30484,7 +30492,7 @@
|
|
|
30484
30492
|
styleUrls: ['./translated-vocabulary-select.component.scss'],
|
|
30485
30493
|
}]
|
|
30486
30494
|
}], ctorParameters: function () {
|
|
30487
|
-
return [{ type: i1__namespace.TranslateService }, { type: TranslationService }, { type: VocabularyApiService }, { type: i2__namespace$4.NgControl, decorators: [{
|
|
30495
|
+
return [{ type: i1__namespace.TranslateService }, { type: TranslationService }, { type: VocabularyApiService$1 }, { type: i2__namespace$4.NgControl, decorators: [{
|
|
30488
30496
|
type: i0.Self
|
|
30489
30497
|
}, {
|
|
30490
30498
|
type: i0.Optional
|
|
@@ -36773,7 +36781,7 @@
|
|
|
36773
36781
|
};
|
|
36774
36782
|
return VocabularyComponent;
|
|
36775
36783
|
}());
|
|
36776
|
-
VocabularyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: VocabularyComponent, deps: [{ token: VocabularyApiService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
36784
|
+
VocabularyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: VocabularyComponent, deps: [{ token: VocabularyApiService$1 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
36777
36785
|
VocabularyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: VocabularyComponent, selector: "cts-vocabulary", inputs: { bindValue: "bindValue", bindLabel: "bindLabel", placeholder: "placeholder", multiple: "multiple", searchable: "searchable", closeOnSelect: "closeOnSelect", hideSelectedItems: "hideSelectedItems", isAsync: "isAsync", attachSource: "attachSource", source$: "source$", hideLoaded: "hideLoaded", vocabularyType: "vocabularyType" }, outputs: { onSelecting: "onSelecting" }, providers: [
|
|
36778
36786
|
{
|
|
36779
36787
|
provide: i2.NG_VALUE_ACCESSOR,
|
|
@@ -36795,7 +36803,7 @@
|
|
|
36795
36803
|
}
|
|
36796
36804
|
]
|
|
36797
36805
|
}]
|
|
36798
|
-
}], ctorParameters: function () { return [{ type: VocabularyApiService }]; }, propDecorators: { bindValue: [{
|
|
36806
|
+
}], ctorParameters: function () { return [{ type: VocabularyApiService$1 }]; }, propDecorators: { bindValue: [{
|
|
36799
36807
|
type: i0.Input
|
|
36800
36808
|
}], bindLabel: [{
|
|
36801
36809
|
type: i0.Input
|
|
@@ -41595,12 +41603,40 @@
|
|
|
41595
41603
|
}] }, { type: NuxeoService }];
|
|
41596
41604
|
} });
|
|
41597
41605
|
|
|
41606
|
+
var VocabularyApiService = /** @class */ (function () {
|
|
41607
|
+
function VocabularyApiService(nuxeoService, translate) {
|
|
41608
|
+
this.nuxeoService = nuxeoService;
|
|
41609
|
+
this.translate = translate;
|
|
41610
|
+
}
|
|
41611
|
+
VocabularyApiService.prototype.getVocabularyList = function (listName) {
|
|
41612
|
+
return rxjs.from(this.nuxeoService.nuxeoClient
|
|
41613
|
+
.operation('Directory.SuggestEntries', {})
|
|
41614
|
+
.params({
|
|
41615
|
+
directoryName: listName,
|
|
41616
|
+
dbl10n: false,
|
|
41617
|
+
localize: true,
|
|
41618
|
+
lang: this.translate.currentLang,
|
|
41619
|
+
searchTerm: '',
|
|
41620
|
+
})
|
|
41621
|
+
.execute());
|
|
41622
|
+
};
|
|
41623
|
+
return VocabularyApiService;
|
|
41624
|
+
}());
|
|
41625
|
+
VocabularyApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: VocabularyApiService, deps: [{ token: NuxeoService }, { token: i1__namespace.TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
41626
|
+
VocabularyApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: VocabularyApiService, providedIn: 'root' });
|
|
41627
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: VocabularyApiService, decorators: [{
|
|
41628
|
+
type: i0.Injectable,
|
|
41629
|
+
args: [{
|
|
41630
|
+
providedIn: 'root',
|
|
41631
|
+
}]
|
|
41632
|
+
}], ctorParameters: function () { return [{ type: NuxeoService }, { type: i1__namespace.TranslateService }]; } });
|
|
41633
|
+
|
|
41598
41634
|
var NotificationsService = /** @class */ (function (_super) {
|
|
41599
41635
|
__extends(NotificationsService, _super);
|
|
41600
41636
|
/**
|
|
41601
41637
|
*
|
|
41602
41638
|
*/
|
|
41603
|
-
function NotificationsService(_environment, _nuxeoService, _callApi, _http) {
|
|
41639
|
+
function NotificationsService(_environment, _nuxeoService, _callApi, _http, vocabularyApi) {
|
|
41604
41640
|
var _this = this;
|
|
41605
41641
|
var _a, _b, _c;
|
|
41606
41642
|
_this = _super.call(this, _environment, _nuxeoService) || this;
|
|
@@ -41608,6 +41644,7 @@
|
|
|
41608
41644
|
_this._nuxeoService = _nuxeoService;
|
|
41609
41645
|
_this._callApi = _callApi;
|
|
41610
41646
|
_this._http = _http;
|
|
41647
|
+
_this.vocabularyApi = vocabularyApi;
|
|
41611
41648
|
_this.listenerObserver = new rxjs.Subject();
|
|
41612
41649
|
if (((_b = (_a = _this._nuxeoService.nuxeoClient) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.id) && ((_c = _this._environment) === null || _c === void 0 ? void 0 : _c.socketUrl)) {
|
|
41613
41650
|
_this.socketConnect()
|
|
@@ -41691,10 +41728,19 @@
|
|
|
41691
41728
|
.execute());
|
|
41692
41729
|
};
|
|
41693
41730
|
NotificationsService.prototype.getSourceTypes = function () {
|
|
41694
|
-
|
|
41731
|
+
var _this = this;
|
|
41732
|
+
return this._getVocabulary('VOC_Notf_SourceTypes').pipe(operators.map(function (items) {
|
|
41733
|
+
var defaults = _this._environment.notificationDefaultSourceTypes;
|
|
41734
|
+
if (defaults === null || defaults === void 0 ? void 0 : defaults.length) {
|
|
41735
|
+
return items.filter(function (item) { return defaults.includes(item.id); });
|
|
41736
|
+
}
|
|
41737
|
+
return items;
|
|
41738
|
+
}));
|
|
41739
|
+
// return this._getVocabulary(`${this._environment.nuxeo}${NotificationsService.sourceType}`);
|
|
41695
41740
|
};
|
|
41696
41741
|
NotificationsService.prototype.getChannels = function () {
|
|
41697
|
-
return this._getVocabulary(
|
|
41742
|
+
return this._getVocabulary('VOC_Notf_NotificationChannels');
|
|
41743
|
+
// return this._getVocabulary(`${this._environment.nuxeo}${NotificationsService.channels}`);
|
|
41698
41744
|
};
|
|
41699
41745
|
NotificationsService.prototype.getDefinitions = function (payload) {
|
|
41700
41746
|
if (payload === void 0) { payload = {}; }
|
|
@@ -41727,12 +41773,17 @@
|
|
|
41727
41773
|
.pipe(operators.map(function (data) { return mapNotificationsToPagingResponse(data); }));
|
|
41728
41774
|
};
|
|
41729
41775
|
NotificationsService.prototype._getVocabulary = function (url) {
|
|
41730
|
-
|
|
41731
|
-
return
|
|
41732
|
-
|
|
41733
|
-
|
|
41734
|
-
|
|
41735
|
-
|
|
41776
|
+
return this.vocabularyApi.getVocabularyList(url);
|
|
41777
|
+
// return from(this._nuxeoService.getToken()).pipe(
|
|
41778
|
+
// map((token) => {
|
|
41779
|
+
// const bearerToken = `Bearer ${token}`;
|
|
41780
|
+
// const headers = new HttpHeaders().set('Authorization', bearerToken);
|
|
41781
|
+
// return headers;
|
|
41782
|
+
// }),
|
|
41783
|
+
// switchMap((headers) => this._http.get<ApiResponseModel<VocabularyType>>(url, { headers })),
|
|
41784
|
+
// map((response) => response.entries),
|
|
41785
|
+
// map((data) => data.sort((a, b) => (b.properties['ordering'] < a.properties['ordering'] ? 1 : -1)))
|
|
41786
|
+
// );
|
|
41736
41787
|
};
|
|
41737
41788
|
NotificationsService.prototype._operation = function (id, option, params) {
|
|
41738
41789
|
if (params === void 0) { params = {}; }
|
|
@@ -41774,7 +41825,7 @@
|
|
|
41774
41825
|
reset: 'AC_UA_NotfNotification_ResetSubscription',
|
|
41775
41826
|
markAllAsUnread: 'AC_UA_NotfNotification_UnreadAll'
|
|
41776
41827
|
};
|
|
41777
|
-
NotificationsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NotificationsService, deps: [{ token: 'environment' }, { token: NuxeoService }, { token: CallApiService }, { token: i1__namespace$2.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
41828
|
+
NotificationsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NotificationsService, deps: [{ token: 'environment' }, { token: NuxeoService }, { token: CallApiService }, { token: i1__namespace$2.HttpClient }, { token: VocabularyApiService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
41778
41829
|
NotificationsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NotificationsService });
|
|
41779
41830
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NotificationsService, decorators: [{
|
|
41780
41831
|
type: i0.Injectable
|
|
@@ -41782,7 +41833,7 @@
|
|
|
41782
41833
|
return [{ type: undefined, decorators: [{
|
|
41783
41834
|
type: i0.Inject,
|
|
41784
41835
|
args: ['environment']
|
|
41785
|
-
}] }, { type: NuxeoService }, { type: CallApiService }, { type: i1__namespace$2.HttpClient }];
|
|
41836
|
+
}] }, { type: NuxeoService }, { type: CallApiService }, { type: i1__namespace$2.HttpClient }, { type: VocabularyApiService }];
|
|
41786
41837
|
} });
|
|
41787
41838
|
|
|
41788
41839
|
var BaseNotification = /** @class */ (function (_super) {
|
|
@@ -51213,7 +51264,7 @@
|
|
|
51213
51264
|
exports.ViewerFilesService = ViewerFilesService;
|
|
51214
51265
|
exports.ViewerLogComponent = ViewerLogComponent;
|
|
51215
51266
|
exports.ViewerLogModule = ViewerLogModule;
|
|
51216
|
-
exports.VocabularyApiService = VocabularyApiService;
|
|
51267
|
+
exports.VocabularyApiService = VocabularyApiService$1;
|
|
51217
51268
|
exports.VocabularyComponent = VocabularyComponent;
|
|
51218
51269
|
exports.VocabularyModule = VocabularyModule;
|
|
51219
51270
|
exports.WorkflowService = WorkflowService;
|