@esfaenza/admin-module 13.1.0-beta1 → 13.1.0-beta5
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/esm2020/lib/admin-module.module.mjs +37 -41
- package/esm2020/lib/models/externals/Repository.mjs +1 -1
- package/esm2020/lib/tokens.mjs +1 -2
- package/esm2020/public-api.mjs +3 -3
- package/fesm2015/esfaenza-admin-module.mjs +43 -49
- package/fesm2015/esfaenza-admin-module.mjs.map +1 -1
- package/fesm2020/esfaenza-admin-module.mjs +42 -49
- package/fesm2020/esfaenza-admin-module.mjs.map +1 -1
- package/lib/admin-module.module.d.ts +17 -20
- package/lib/tokens.d.ts +0 -1
- package/package.json +3 -3
- package/public-api.d.ts +2 -0
- package/esm2020/lib/communications/implementation/NoOpCommunicationsConsumer.mjs +0 -7
- package/esm2020/lib/models/configuration/AdminModuleConfig.mjs +0 -3
- package/lib/communications/implementation/NoOpCommunicationsConsumer.d.ts +0 -4
- package/lib/models/configuration/AdminModuleConfig.d.ts +0 -8
|
@@ -8,19 +8,24 @@ import * as i7 from '@angular/router';
|
|
|
8
8
|
import { RouterModule } from '@angular/router';
|
|
9
9
|
import { MatIconModule } from '@angular/material/icon';
|
|
10
10
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
11
|
-
import { MatDayjsDateModule } from '@esfaenza/material-dayjs-adapter';
|
|
11
|
+
import { MatDayjsDateModule, DayJsDateAdapter } from '@esfaenza/material-dayjs-adapter';
|
|
12
12
|
import { MatInputModule } from '@angular/material/input';
|
|
13
13
|
import { NgxMatDatetimePickerModule } from '@angular-material-components/datetime-picker';
|
|
14
14
|
import * as i11 from 'ngx-bootstrap/modal';
|
|
15
15
|
import { ModalModule } from 'ngx-bootstrap/modal';
|
|
16
|
+
import { CsvModule } from '@ctrl/ngx-csv';
|
|
17
|
+
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
18
|
+
import { TooltipModule } from 'ngx-bootstrap/tooltip';
|
|
16
19
|
import * as i9 from '@esfaenza/es-table';
|
|
17
20
|
import { AppSearch, EsTableOperationDefinition, EsTableModule } from '@esfaenza/es-table';
|
|
18
21
|
import * as i8 from '@esfaenza/forms-and-validations';
|
|
19
22
|
import { FormsAndValidationsModule } from '@esfaenza/forms-and-validations';
|
|
20
23
|
import * as i9$1 from '@esfaenza/es-charts';
|
|
21
24
|
import { LineChartData, LineSerie, DateValue, Limit, EsChartsModule } from '@esfaenza/es-charts';
|
|
25
|
+
import { EsGertrudeModule } from '@esfaenza/gertrude';
|
|
22
26
|
import * as i2 from '@esfaenza/localizations';
|
|
23
27
|
import { LocalizationService, LocalizationModule } from '@esfaenza/localizations';
|
|
28
|
+
import { ContextMenuModule } from '@esfaenza/ngx-contextmenu';
|
|
24
29
|
import { __decorate } from 'tslib';
|
|
25
30
|
import { autoserialize, autoserializeAs } from 'cerialize';
|
|
26
31
|
import * as i1 from '@esfaenza/extensions';
|
|
@@ -29,24 +34,10 @@ import * as i3 from '@esfaenza/preferences';
|
|
|
29
34
|
import * as i6 from '@esfaenza/httpservice';
|
|
30
35
|
import { map } from 'rxjs/operators';
|
|
31
36
|
import { HttpParams } from '@angular/common/http';
|
|
32
|
-
import {
|
|
33
|
-
import { ContextMenuModule } from '@esfaenza/ngx-contextmenu';
|
|
34
|
-
import { CsvModule } from '@ctrl/ngx-csv';
|
|
35
|
-
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
36
|
-
import { TooltipModule } from 'ngx-bootstrap/tooltip';
|
|
37
|
-
|
|
38
|
-
class BaseModuleCommunicationsConsumer {
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
class NoOpCommunicationsConsumer extends BaseModuleCommunicationsConsumer {
|
|
42
|
-
handleNavigation(routeTitle, subNavigation) {
|
|
43
|
-
console.log("Navigated on page " + routeTitle + " subNavigation: " + subNavigation);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
37
|
+
import { DateAdapter, MAT_DATE_LOCALE } from '@angular/material/core';
|
|
46
38
|
|
|
47
39
|
const ADM_LOCALE = new InjectionToken('ADM_LOCALE');
|
|
48
|
-
const ADM_BACKEND_URL = new InjectionToken('ADM_BACKEND_URL');
|
|
49
|
-
const ADM_VIEW_PERMISSIONS = new InjectionToken('ADM_VIEW_PERMISSIONS');
|
|
40
|
+
const ADM_BACKEND_URL = new InjectionToken('ADM_BACKEND_URL');
|
|
50
41
|
|
|
51
42
|
class AdmProfilerComponentLoc extends LocalizationService {
|
|
52
43
|
constructor(LOC_LOCALE) {
|
|
@@ -441,6 +432,9 @@ class MetricChart extends LineChartData {
|
|
|
441
432
|
class Metric {
|
|
442
433
|
}
|
|
443
434
|
|
|
435
|
+
class BaseModuleCommunicationsConsumer {
|
|
436
|
+
}
|
|
437
|
+
|
|
444
438
|
class AdmProfilerComponent {
|
|
445
439
|
constructor(expExts, lc, localStorage, location, _state, http, route, backend) {
|
|
446
440
|
this.expExts = expExts;
|
|
@@ -1200,19 +1194,21 @@ const routeConfig = [
|
|
|
1200
1194
|
}
|
|
1201
1195
|
];
|
|
1202
1196
|
const MODULES = [
|
|
1197
|
+
// Base
|
|
1203
1198
|
CommonModule,
|
|
1204
1199
|
FormsModule,
|
|
1205
|
-
|
|
1206
|
-
MatInputModule,
|
|
1200
|
+
// Material
|
|
1207
1201
|
MatDatepickerModule,
|
|
1208
1202
|
MatDayjsDateModule,
|
|
1209
1203
|
MatIconModule,
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
CsvModule,
|
|
1214
|
-
BsDropdownModule,
|
|
1204
|
+
MatInputModule,
|
|
1205
|
+
// Bootstrap
|
|
1206
|
+
ModalModule,
|
|
1215
1207
|
TooltipModule,
|
|
1208
|
+
BsDropdownModule,
|
|
1209
|
+
CsvModule,
|
|
1210
|
+
// Esfaenza e componenti visuali
|
|
1211
|
+
ContextMenuModule,
|
|
1216
1212
|
LocalizationModule,
|
|
1217
1213
|
EsTableModule,
|
|
1218
1214
|
FormsAndValidationsModule,
|
|
@@ -1223,6 +1219,7 @@ const MODULES = [
|
|
|
1223
1219
|
EsChartsModule,
|
|
1224
1220
|
FormsAndValidationsModule,
|
|
1225
1221
|
EsChartsModule,
|
|
1222
|
+
NgxMatDatetimePickerModule,
|
|
1226
1223
|
RouterModule.forChild(routeConfig),
|
|
1227
1224
|
];
|
|
1228
1225
|
const COMPONENTS = [
|
|
@@ -1235,16 +1232,6 @@ const COMPONENTS = [
|
|
|
1235
1232
|
AdmMetricsComponent
|
|
1236
1233
|
];
|
|
1237
1234
|
class AdmModule {
|
|
1238
|
-
static forRoot(config) {
|
|
1239
|
-
return {
|
|
1240
|
-
ngModule: AdmModule,
|
|
1241
|
-
providers: [
|
|
1242
|
-
{ provide: ADM_LOCALE, useValue: config.locale || myconfig?.LOCALE || 'it-IT' },
|
|
1243
|
-
{ provide: ADM_BACKEND_URL, useValue: config.appUrl },
|
|
1244
|
-
{ provide: BaseModuleCommunicationsConsumer, useClass: config?.communicationsConsumer || NoOpCommunicationsConsumer },
|
|
1245
|
-
]
|
|
1246
|
-
};
|
|
1247
|
-
}
|
|
1248
1235
|
}
|
|
1249
1236
|
AdmModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1250
1237
|
AdmModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, declarations: [AdmWrkComponent,
|
|
@@ -1253,19 +1240,22 @@ AdmModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
|
1253
1240
|
AdmLogsComponent,
|
|
1254
1241
|
AdmAuditsComponent,
|
|
1255
1242
|
AdmEnqComponent,
|
|
1256
|
-
AdmMetricsComponent], imports: [
|
|
1243
|
+
AdmMetricsComponent], imports: [
|
|
1244
|
+
// Base
|
|
1245
|
+
CommonModule,
|
|
1257
1246
|
FormsModule,
|
|
1258
|
-
|
|
1259
|
-
MatInputModule,
|
|
1247
|
+
// Material
|
|
1260
1248
|
MatDatepickerModule,
|
|
1261
1249
|
MatDayjsDateModule,
|
|
1262
1250
|
MatIconModule,
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
CsvModule,
|
|
1267
|
-
BsDropdownModule,
|
|
1251
|
+
MatInputModule,
|
|
1252
|
+
// Bootstrap
|
|
1253
|
+
ModalModule,
|
|
1268
1254
|
TooltipModule,
|
|
1255
|
+
BsDropdownModule,
|
|
1256
|
+
CsvModule,
|
|
1257
|
+
// Esfaenza e componenti visuali
|
|
1258
|
+
ContextMenuModule,
|
|
1269
1259
|
LocalizationModule,
|
|
1270
1260
|
EsTableModule,
|
|
1271
1261
|
FormsAndValidationsModule,
|
|
@@ -1275,26 +1265,29 @@ AdmModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
|
1275
1265
|
FormsAndValidationsModule,
|
|
1276
1266
|
EsChartsModule,
|
|
1277
1267
|
FormsAndValidationsModule,
|
|
1278
|
-
EsChartsModule,
|
|
1279
|
-
|
|
1268
|
+
EsChartsModule,
|
|
1269
|
+
NgxMatDatetimePickerModule, i7.RouterModule] });
|
|
1270
|
+
AdmModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, providers: [
|
|
1271
|
+
{ provide: DateAdapter, useClass: DayJsDateAdapter, deps: [MAT_DATE_LOCALE] }
|
|
1272
|
+
], imports: [[...MODULES]] });
|
|
1280
1273
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, decorators: [{
|
|
1281
1274
|
type: NgModule,
|
|
1282
1275
|
args: [{
|
|
1283
1276
|
imports: [...MODULES],
|
|
1284
1277
|
declarations: [...COMPONENTS],
|
|
1285
|
-
providers: [
|
|
1278
|
+
providers: [
|
|
1279
|
+
{ provide: DateAdapter, useClass: DayJsDateAdapter, deps: [MAT_DATE_LOCALE] }
|
|
1280
|
+
]
|
|
1286
1281
|
}]
|
|
1287
1282
|
}] });
|
|
1288
1283
|
|
|
1289
1284
|
/*
|
|
1290
1285
|
* Public API Surface of admin-module
|
|
1291
|
-
*/
|
|
1292
|
-
//export * from './lib/communications/base/BaseModuleCommunicationsConsumer';
|
|
1293
|
-
//export * from './lib/models/configuration/AdminModuleConfig';
|
|
1286
|
+
*/
|
|
1294
1287
|
|
|
1295
1288
|
/**
|
|
1296
1289
|
* Generated bundle index. Do not edit.
|
|
1297
1290
|
*/
|
|
1298
1291
|
|
|
1299
|
-
export { AdmModule, routeConfig };
|
|
1292
|
+
export { ADM_BACKEND_URL, ADM_LOCALE, AdmModule, BaseModuleCommunicationsConsumer, routeConfig };
|
|
1300
1293
|
//# sourceMappingURL=esfaenza-admin-module.mjs.map
|