@rosoftlab/core 1.0.0-alpha-12 → 1.0.0-alpha-16
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/esm2022/lib/base-components/base-form-edit.component.mjs +3 -3
- package/esm2022/lib/base-components/field-error-display/field-error-display.component.mjs +3 -3
- package/esm2022/lib/base-components/page-not-found/page-not-found.component.mjs +3 -3
- package/esm2022/lib/base-components/under-construction/under-construction.component.mjs +3 -3
- package/esm2022/lib/core.mjs +2 -1
- package/esm2022/lib/interceptors/cache.interceptor.mjs +3 -3
- package/esm2022/lib/pipes/Nl2brPipe.pipe.mjs +3 -3
- package/esm2022/lib/pipes/input-error.pipe.mjs +3 -3
- package/esm2022/lib/rsl-base-module.mjs +4 -4
- package/esm2022/lib/services/base-datastore.service.mjs +3 -3
- package/esm2022/lib/services/base.service.mjs +3 -3
- package/esm2022/lib/services/cache.service.mjs +3 -3
- package/esm2022/lib/services/datastore.service.mjs +3 -3
- package/esm2022/lib/services/index.mjs +2 -1
- package/esm2022/lib/services/translate-loader.service.mjs +8 -9
- package/fesm2022/rosoftlab-core.mjs +74 -75
- package/fesm2022/rosoftlab-core.mjs.map +1 -1
- package/lib/core.d.ts +1 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/translate-loader.service.d.ts +2 -2
- package/package.json +8 -8
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { Component, Input, Injectable, InjectionToken, Inject, Pipe,
|
2
|
+
import { Component, Input, Injectable, InjectionToken, Inject, Pipe, NgModule } from '@angular/core';
|
3
3
|
import * as i5 from '@angular/common';
|
4
4
|
import { DatePipe, DecimalPipe, PercentPipe, CommonModule } from '@angular/common';
|
5
5
|
import * as i1$1 from '@angular/forms';
|
@@ -18,10 +18,10 @@ import { parseISO } from 'date-fns';
|
|
18
18
|
import { __decorate, __metadata } from 'tslib';
|
19
19
|
|
20
20
|
class FieldErrorDisplayComponent {
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: FieldErrorDisplayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: FieldErrorDisplayComponent, selector: "rsl-field-error-display", inputs: { errorMsg: "errorMsg", displayError: "displayError" }, ngImport: i0, template: "<div *ngIf=\"displayError\" >\n <!-- <span class=\"glyphicon glyphicon-remove form-control-feedback fix-error-icon\"></span> -->\n <span class=\"sr-only\">(error)</span>\n <div class=\"error-msg\">\n {{ errorMsg }}\n </div>\n</div>\n", styles: [".error-msg{color:red}.fix-error-icon{top:27px}\n"] }); }
|
23
23
|
}
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: FieldErrorDisplayComponent, decorators: [{
|
25
25
|
type: Component,
|
26
26
|
args: [{ selector: 'rsl-field-error-display', template: "<div *ngIf=\"displayError\" >\n <!-- <span class=\"glyphicon glyphicon-remove form-control-feedback fix-error-icon\"></span> -->\n <span class=\"sr-only\">(error)</span>\n <div class=\"error-msg\">\n {{ errorMsg }}\n </div>\n</div>\n", styles: [".error-msg{color:red}.fix-error-icon{top:27px}\n"] }]
|
27
27
|
}], propDecorators: { errorMsg: [{
|
@@ -35,20 +35,20 @@ class PageNotFoundComponent {
|
|
35
35
|
}
|
36
36
|
ngOnInit() {
|
37
37
|
}
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
39
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: PageNotFoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: PageNotFoundComponent, selector: "rsl-page-not-found", ngImport: i0, template: "<div class=\"forms-view-container\">\n <div class=\"under-construction-view-container\">\n Page not found\n </div>\n</div>", styles: [".under-construction-view-container{height:calc(100vh - 250px);margin:60px 0 0;padding:0;display:flex;justify-content:center;align-items:center;box-sizing:border-box;font-size:1.8em;line-height:1.3em;font-weight:300;color:#58585b;text-align:center}\n"] }); }
|
40
40
|
}
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: PageNotFoundComponent, decorators: [{
|
42
42
|
type: Component,
|
43
43
|
args: [{ selector: 'rsl-page-not-found', template: "<div class=\"forms-view-container\">\n <div class=\"under-construction-view-container\">\n Page not found\n </div>\n</div>", styles: [".under-construction-view-container{height:calc(100vh - 250px);margin:60px 0 0;padding:0;display:flex;justify-content:center;align-items:center;box-sizing:border-box;font-size:1.8em;line-height:1.3em;font-weight:300;color:#58585b;text-align:center}\n"] }]
|
44
44
|
}], ctorParameters: () => [] });
|
45
45
|
|
46
46
|
class UnderConstructionComponent {
|
47
47
|
constructor() { }
|
48
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
49
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
48
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: UnderConstructionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
49
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: UnderConstructionComponent, selector: "rsl-under-construction", ngImport: i0, template: "<div class=\"forms-view-container\">\n <div class=\"under-construction-view-container\">\n Page under construction\n </div>\n</div>", styles: [".under-construction-view-container{height:calc(100vh - 250px);margin:60px 0 0;padding:0;display:flex;justify-content:center;align-items:center;box-sizing:border-box;font-size:1.8em;line-height:1.3em;font-weight:300;color:#58585b;text-align:center}\n"] }); }
|
50
50
|
}
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: UnderConstructionComponent, decorators: [{
|
52
52
|
type: Component,
|
53
53
|
args: [{ selector: 'rsl-under-construction', template: "<div class=\"forms-view-container\">\n <div class=\"under-construction-view-container\">\n Page under construction\n </div>\n</div>", styles: [".under-construction-view-container{height:calc(100vh - 250px);margin:60px 0 0;padding:0;display:flex;justify-content:center;align-items:center;box-sizing:border-box;font-size:1.8em;line-height:1.3em;font-weight:300;color:#58585b;text-align:center}\n"] }]
|
54
54
|
}], ctorParameters: () => [] });
|
@@ -89,10 +89,10 @@ class CacheService {
|
|
89
89
|
const keysToDelete = Object.keys(this.cache).filter(key => key.includes(keyword));
|
90
90
|
keysToDelete.forEach(key => this.delete(key));
|
91
91
|
}
|
92
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
93
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
92
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
93
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CacheService, providedIn: 'root' }); }
|
94
94
|
}
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CacheService, decorators: [{
|
96
96
|
type: Injectable,
|
97
97
|
args: [{
|
98
98
|
providedIn: 'root'
|
@@ -423,10 +423,10 @@ class BaseDatastore {
|
|
423
423
|
_toQueryString(params) {
|
424
424
|
return qs.stringify(params, { arrayFormat: 'brackets' });
|
425
425
|
}
|
426
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
427
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: BaseDatastore, deps: [{ token: i1.HttpClient }, { token: CacheService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
427
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: BaseDatastore }); }
|
428
428
|
}
|
429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: BaseDatastore, decorators: [{
|
430
430
|
type: Injectable
|
431
431
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: CacheService }] });
|
432
432
|
|
@@ -514,10 +514,10 @@ class BaseService {
|
|
514
514
|
getSelectValues(property) {
|
515
515
|
return null;
|
516
516
|
}
|
517
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
518
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
517
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: BaseService, deps: [{ token: BaseDatastore }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
518
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: BaseService, providedIn: 'root' }); }
|
519
519
|
}
|
520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: BaseService, decorators: [{
|
521
521
|
type: Injectable,
|
522
522
|
args: [{
|
523
523
|
providedIn: 'root'
|
@@ -738,10 +738,10 @@ class BaseFormEditComponent {
|
|
738
738
|
}
|
739
739
|
return rvalue;
|
740
740
|
}
|
741
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
742
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
741
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: BaseFormEditComponent, deps: [{ token: i1$1.UntypedFormBuilder }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: BaseService }, { token: DialogSERVICE }, { token: i1$2.TranslateService }, { token: i5.Location }], target: i0.ɵɵFactoryTarget.Component }); }
|
742
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: BaseFormEditComponent, selector: "app-base.form.edit", ngImport: i0, template: '', isInline: true }); }
|
743
743
|
}
|
744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: BaseFormEditComponent, decorators: [{
|
745
745
|
type: Component,
|
746
746
|
args: [{
|
747
747
|
selector: 'app-base.form.edit',
|
@@ -752,6 +752,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
752
752
|
args: [DialogSERVICE]
|
753
753
|
}] }, { type: i1$2.TranslateService }, { type: i5.Location }] });
|
754
754
|
|
755
|
+
class Configurations {
|
756
|
+
constructor() {
|
757
|
+
this.baseUrl = '';
|
758
|
+
this.authUrl = '';
|
759
|
+
this.apiVersion = 'api/v1';
|
760
|
+
}
|
761
|
+
}
|
762
|
+
|
755
763
|
var GridLayoutFormat;
|
756
764
|
(function (GridLayoutFormat) {
|
757
765
|
GridLayoutFormat[GridLayoutFormat["none"] = 0] = "none";
|
@@ -941,10 +949,10 @@ class CacheInterceptor {
|
|
941
949
|
// })
|
942
950
|
// );
|
943
951
|
}
|
944
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
945
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
952
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CacheInterceptor, deps: [{ token: 'CACHE_EXPIRATION_TIME' }, { token: CacheService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
953
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CacheInterceptor }); }
|
946
954
|
}
|
947
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CacheInterceptor, decorators: [{
|
948
956
|
type: Injectable
|
949
957
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
950
958
|
type: Inject,
|
@@ -1131,10 +1139,10 @@ class Nl2brPipe {
|
|
1131
1139
|
}
|
1132
1140
|
return value;
|
1133
1141
|
}
|
1134
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1135
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
1142
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: Nl2brPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
1143
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: Nl2brPipe, name: "nl2br" }); }
|
1136
1144
|
}
|
1137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: Nl2brPipe, decorators: [{
|
1138
1146
|
type: Pipe,
|
1139
1147
|
args: [{
|
1140
1148
|
name: 'nl2br'
|
@@ -1165,24 +1173,16 @@ class InputErrorPipe {
|
|
1165
1173
|
}
|
1166
1174
|
return rvalue;
|
1167
1175
|
}
|
1168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1169
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
1176
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: InputErrorPipe, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
1177
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: InputErrorPipe, name: "inputError" }); }
|
1170
1178
|
}
|
1171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: InputErrorPipe, decorators: [{
|
1172
1180
|
type: Pipe,
|
1173
1181
|
args: [{
|
1174
1182
|
name: 'inputError'
|
1175
1183
|
}]
|
1176
1184
|
}], ctorParameters: () => [{ type: i1$2.TranslateService }] });
|
1177
1185
|
|
1178
|
-
class Configurations {
|
1179
|
-
constructor() {
|
1180
|
-
this.baseUrl = '';
|
1181
|
-
this.authUrl = '';
|
1182
|
-
this.apiVersion = 'api/v1';
|
1183
|
-
}
|
1184
|
-
}
|
1185
|
-
|
1186
1186
|
let DatastoreCore = class DatastoreCore extends BaseDatastore {
|
1187
1187
|
constructor(http, cacheService, configExt) {
|
1188
1188
|
super(http, cacheService);
|
@@ -1193,17 +1193,44 @@ let DatastoreCore = class DatastoreCore extends BaseDatastore {
|
|
1193
1193
|
};
|
1194
1194
|
this.config = this.customConfig;
|
1195
1195
|
}
|
1196
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1197
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
1196
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DatastoreCore, deps: [{ token: i1.HttpClient }, { token: CacheService }, { token: Configurations }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1197
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DatastoreCore }); }
|
1198
1198
|
};
|
1199
1199
|
DatastoreCore = __decorate([
|
1200
1200
|
BaseDatastoreConfig({ apiVersion: '', baseUrl: '' }),
|
1201
1201
|
__metadata("design:paramtypes", [HttpClient, CacheService, Configurations])
|
1202
1202
|
], DatastoreCore);
|
1203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DatastoreCore, decorators: [{
|
1204
1204
|
type: Injectable
|
1205
1205
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: CacheService }, { type: Configurations }] });
|
1206
1206
|
|
1207
|
+
class TranslateloaderService {
|
1208
|
+
constructor(httpClient, config) {
|
1209
|
+
this.httpClient = httpClient;
|
1210
|
+
this._apiUrl = '';
|
1211
|
+
this.headers = new HttpHeaders({
|
1212
|
+
Accept: 'application/json',
|
1213
|
+
'Content-Type': 'application/json'
|
1214
|
+
});
|
1215
|
+
console.log(config);
|
1216
|
+
if (config) {
|
1217
|
+
this._apiUrl = config.baseUrl;
|
1218
|
+
}
|
1219
|
+
}
|
1220
|
+
getTranslation(lang) {
|
1221
|
+
const url = this._apiUrl + '/api/v1/language/' + lang + '/translationlist';
|
1222
|
+
return this.httpClient.get(url, { headers: this.headers });
|
1223
|
+
}
|
1224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslateloaderService, deps: [{ token: i1.HttpClient }, { token: Configurations }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1225
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslateloaderService, providedIn: 'root' }); }
|
1226
|
+
}
|
1227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslateloaderService, decorators: [{
|
1228
|
+
type: Injectable,
|
1229
|
+
args: [{
|
1230
|
+
providedIn: 'root'
|
1231
|
+
}]
|
1232
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: Configurations }] });
|
1233
|
+
|
1207
1234
|
const PROVIDERS = [
|
1208
1235
|
BaseDatastore,
|
1209
1236
|
DatastoreCore,
|
@@ -1256,34 +1283,6 @@ function toProperCase(str) {
|
|
1256
1283
|
});
|
1257
1284
|
}
|
1258
1285
|
|
1259
|
-
class TranslateloaderService {
|
1260
|
-
constructor(httpClient, config) {
|
1261
|
-
this.httpClient = httpClient;
|
1262
|
-
this._apiUrl = 'No Value';
|
1263
|
-
this.headers = new HttpHeaders({
|
1264
|
-
Accept: 'application/json',
|
1265
|
-
'Content-Type': 'application/json'
|
1266
|
-
});
|
1267
|
-
if (config) {
|
1268
|
-
this._apiUrl = config.baseUrl;
|
1269
|
-
}
|
1270
|
-
}
|
1271
|
-
getTranslation(lang) {
|
1272
|
-
const url = this._apiUrl + '/api/v1/language/' + lang + '/translationlist';
|
1273
|
-
return this.httpClient.get(url, { headers: this.headers });
|
1274
|
-
}
|
1275
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TranslateloaderService, deps: [{ token: i1.HttpClient }, { token: Configurations, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1276
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TranslateloaderService, providedIn: 'root' }); }
|
1277
|
-
}
|
1278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TranslateloaderService, decorators: [{
|
1279
|
-
type: Injectable,
|
1280
|
-
args: [{
|
1281
|
-
providedIn: 'root'
|
1282
|
-
}]
|
1283
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: Configurations, decorators: [{
|
1284
|
-
type: Optional
|
1285
|
-
}] }] });
|
1286
|
-
|
1287
1286
|
class RslBaseModule {
|
1288
1287
|
static forRoot(config) {
|
1289
1288
|
return {
|
@@ -1294,10 +1293,10 @@ class RslBaseModule {
|
|
1294
1293
|
]
|
1295
1294
|
};
|
1296
1295
|
}
|
1297
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1298
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
1296
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: RslBaseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1297
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: RslBaseModule, imports: [CommonModule, i1$2.TranslateModule, ReactiveFormsModule], exports: [HttpClientModule,
|
1299
1298
|
TranslateModule] }); }
|
1300
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1299
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: RslBaseModule, providers: [
|
1301
1300
|
PROVIDERS
|
1302
1301
|
], imports: [CommonModule,
|
1303
1302
|
TranslateModule.forRoot({
|
@@ -1312,7 +1311,7 @@ class RslBaseModule {
|
|
1312
1311
|
ReactiveFormsModule, HttpClientModule,
|
1313
1312
|
TranslateModule] }); }
|
1314
1313
|
}
|
1315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: RslBaseModule, decorators: [{
|
1316
1315
|
type: NgModule,
|
1317
1316
|
args: [{
|
1318
1317
|
imports: [
|
@@ -1388,5 +1387,5 @@ function getValueFromJsonData(jsonData, key) {
|
|
1388
1387
|
* Generated bundle index. Do not edit.
|
1389
1388
|
*/
|
1390
1389
|
|
1391
|
-
export { Attribute, BaseDatastore, BaseDatastoreConfig, BaseFormEditComponent, BaseMetaModel, BaseModel, BaseModelConfig, BaseQueryData, BaseService, CacheInterceptor, CacheService, CellTextAlign, CustomType, CustomValidators, DatastoreCore, DynamicallyModelResolver, DynamicallyServiceResolver, ErrorResponse, FieldErrorDisplayComponent, GridLayoutFormat, InputErrorPipe, Nl2brPipe, PROVIDERS, PageNotFoundComponent, RslBaseModule, Rule, UnderConstructionComponent, getValueFromJsonData, readFileAsync };
|
1390
|
+
export { Attribute, BaseDatastore, BaseDatastoreConfig, BaseFormEditComponent, BaseMetaModel, BaseModel, BaseModelConfig, BaseQueryData, BaseService, CacheInterceptor, CacheService, CellTextAlign, Configurations, CustomType, CustomValidators, DatastoreCore, DynamicallyModelResolver, DynamicallyServiceResolver, ErrorResponse, FieldErrorDisplayComponent, GridLayoutFormat, InputErrorPipe, Nl2brPipe, PROVIDERS, PageNotFoundComponent, RslBaseModule, Rule, TranslateloaderService, UnderConstructionComponent, getValueFromJsonData, readFileAsync };
|
1392
1391
|
//# sourceMappingURL=rosoftlab-core.mjs.map
|