@esfaenza/admin-module 13.1.0-beta1 → 13.1.0-beta10
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 +54 -42
- 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 +60 -50
- package/fesm2015/esfaenza-admin-module.mjs.map +1 -1
- package/fesm2020/esfaenza-admin-module.mjs +59 -50
- 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
|
@@ -3,24 +3,30 @@ import { CommonModule } from '@angular/common';
|
|
|
3
3
|
import * as i10 from '@angular/forms';
|
|
4
4
|
import { FormsModule } from '@angular/forms';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { InjectionToken, Injectable, Inject, Component, ViewChild, NgModule } from '@angular/core';
|
|
6
|
+
import { InjectionToken, Injectable, Inject, Component, ViewChild, LOCALE_ID, NgModule } from '@angular/core';
|
|
7
7
|
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
|
+
import { MAT_DATE_LOCALE, MAT_DATE_FORMATS, DateAdapter } from '@angular/material/core';
|
|
13
14
|
import { NgxMatDatetimePickerModule } from '@angular-material-components/datetime-picker';
|
|
14
15
|
import * as i11 from 'ngx-bootstrap/modal';
|
|
15
16
|
import { ModalModule } from 'ngx-bootstrap/modal';
|
|
17
|
+
import { CsvModule } from '@ctrl/ngx-csv';
|
|
18
|
+
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
19
|
+
import { TooltipModule } from 'ngx-bootstrap/tooltip';
|
|
16
20
|
import * as i9 from '@esfaenza/es-table';
|
|
17
21
|
import { AppSearch, EsTableOperationDefinition, EsTableModule } from '@esfaenza/es-table';
|
|
18
22
|
import * as i8 from '@esfaenza/forms-and-validations';
|
|
19
23
|
import { FormsAndValidationsModule } from '@esfaenza/forms-and-validations';
|
|
20
24
|
import * as i9$1 from '@esfaenza/es-charts';
|
|
21
25
|
import { LineChartData, LineSerie, DateValue, Limit, EsChartsModule } from '@esfaenza/es-charts';
|
|
26
|
+
import { EsGertrudeModule } from '@esfaenza/gertrude';
|
|
22
27
|
import * as i2 from '@esfaenza/localizations';
|
|
23
28
|
import { LocalizationService, LocalizationModule } from '@esfaenza/localizations';
|
|
29
|
+
import { ContextMenuModule } from '@esfaenza/ngx-contextmenu';
|
|
24
30
|
import { __decorate } from 'tslib';
|
|
25
31
|
import { autoserialize, autoserializeAs } from 'cerialize';
|
|
26
32
|
import * as i1 from '@esfaenza/extensions';
|
|
@@ -29,24 +35,9 @@ import * as i3 from '@esfaenza/preferences';
|
|
|
29
35
|
import * as i6 from '@esfaenza/httpservice';
|
|
30
36
|
import { map } from 'rxjs/operators';
|
|
31
37
|
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
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 = [
|
|
@@ -1234,17 +1231,17 @@ const COMPONENTS = [
|
|
|
1234
1231
|
AdmEnqComponent,
|
|
1235
1232
|
AdmMetricsComponent
|
|
1236
1233
|
];
|
|
1234
|
+
//Il formato in Display è sempre quello italiano quindi mi faccio pochi problemi di localizzazione e imposto quello
|
|
1235
|
+
const formats = {
|
|
1236
|
+
parse: { dateInput: 'DD/MM/YYYY' },
|
|
1237
|
+
display: {
|
|
1238
|
+
dateInput: 'DD/MM/YYYY',
|
|
1239
|
+
monthYearLabel: 'MM YYYY',
|
|
1240
|
+
dateA11yLabel: 'DD/MM/YYYY',
|
|
1241
|
+
monthYearA11yLabel: 'MM YYYY',
|
|
1242
|
+
}
|
|
1243
|
+
};
|
|
1237
1244
|
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
1245
|
}
|
|
1249
1246
|
AdmModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1250
1247
|
AdmModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, declarations: [AdmWrkComponent,
|
|
@@ -1253,19 +1250,22 @@ AdmModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
|
1253
1250
|
AdmLogsComponent,
|
|
1254
1251
|
AdmAuditsComponent,
|
|
1255
1252
|
AdmEnqComponent,
|
|
1256
|
-
AdmMetricsComponent], imports: [
|
|
1253
|
+
AdmMetricsComponent], imports: [
|
|
1254
|
+
// Base
|
|
1255
|
+
CommonModule,
|
|
1257
1256
|
FormsModule,
|
|
1258
|
-
|
|
1259
|
-
MatInputModule,
|
|
1257
|
+
// Material
|
|
1260
1258
|
MatDatepickerModule,
|
|
1261
1259
|
MatDayjsDateModule,
|
|
1262
1260
|
MatIconModule,
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
CsvModule,
|
|
1267
|
-
BsDropdownModule,
|
|
1261
|
+
MatInputModule,
|
|
1262
|
+
// Bootstrap
|
|
1263
|
+
ModalModule,
|
|
1268
1264
|
TooltipModule,
|
|
1265
|
+
BsDropdownModule,
|
|
1266
|
+
CsvModule,
|
|
1267
|
+
// Esfaenza e componenti visuali
|
|
1268
|
+
ContextMenuModule,
|
|
1269
1269
|
LocalizationModule,
|
|
1270
1270
|
EsTableModule,
|
|
1271
1271
|
FormsAndValidationsModule,
|
|
@@ -1275,26 +1275,35 @@ AdmModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
|
1275
1275
|
FormsAndValidationsModule,
|
|
1276
1276
|
EsChartsModule,
|
|
1277
1277
|
FormsAndValidationsModule,
|
|
1278
|
-
EsChartsModule,
|
|
1279
|
-
|
|
1278
|
+
EsChartsModule,
|
|
1279
|
+
NgxMatDatetimePickerModule, i7.RouterModule] });
|
|
1280
|
+
AdmModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, providers: [
|
|
1281
|
+
{ provide: LOCALE_ID, useValue: myconfig.SMALL_LOCALE },
|
|
1282
|
+
{ provide: MAT_DATE_LOCALE, useValue: myconfig.LOCALE },
|
|
1283
|
+
{ provide: MAT_DATE_FORMATS, useValue: formats },
|
|
1284
|
+
{ provide: DateAdapter, useClass: DayJsDateAdapter, deps: [MAT_DATE_LOCALE] }
|
|
1285
|
+
], imports: [[...MODULES]] });
|
|
1280
1286
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, decorators: [{
|
|
1281
1287
|
type: NgModule,
|
|
1282
1288
|
args: [{
|
|
1283
1289
|
imports: [...MODULES],
|
|
1284
1290
|
declarations: [...COMPONENTS],
|
|
1285
|
-
providers: [
|
|
1291
|
+
providers: [
|
|
1292
|
+
{ provide: LOCALE_ID, useValue: myconfig.SMALL_LOCALE },
|
|
1293
|
+
{ provide: MAT_DATE_LOCALE, useValue: myconfig.LOCALE },
|
|
1294
|
+
{ provide: MAT_DATE_FORMATS, useValue: formats },
|
|
1295
|
+
{ provide: DateAdapter, useClass: DayJsDateAdapter, deps: [MAT_DATE_LOCALE] }
|
|
1296
|
+
]
|
|
1286
1297
|
}]
|
|
1287
1298
|
}] });
|
|
1288
1299
|
|
|
1289
1300
|
/*
|
|
1290
1301
|
* Public API Surface of admin-module
|
|
1291
|
-
*/
|
|
1292
|
-
//export * from './lib/communications/base/BaseModuleCommunicationsConsumer';
|
|
1293
|
-
//export * from './lib/models/configuration/AdminModuleConfig';
|
|
1302
|
+
*/
|
|
1294
1303
|
|
|
1295
1304
|
/**
|
|
1296
1305
|
* Generated bundle index. Do not edit.
|
|
1297
1306
|
*/
|
|
1298
1307
|
|
|
1299
|
-
export { AdmModule, routeConfig };
|
|
1308
|
+
export { ADM_BACKEND_URL, ADM_LOCALE, AdmModule, BaseModuleCommunicationsConsumer, routeConfig };
|
|
1300
1309
|
//# sourceMappingURL=esfaenza-admin-module.mjs.map
|