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