@esfaenza/admin-module 13.1.0-beta2 → 13.1.0-beta3

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.
@@ -13,14 +13,19 @@ 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,9 @@ 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 { 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
37
 
47
38
  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');
39
+ const ADM_BACKEND_URL = new InjectionToken('ADM_BACKEND_URL');
50
40
 
51
41
  class AdmProfilerComponentLoc extends LocalizationService {
52
42
  constructor(LOC_LOCALE) {
@@ -441,6 +431,9 @@ class MetricChart extends LineChartData {
441
431
  class Metric {
442
432
  }
443
433
 
434
+ class BaseModuleCommunicationsConsumer {
435
+ }
436
+
444
437
  class AdmProfilerComponent {
445
438
  constructor(expExts, lc, localStorage, location, _state, http, route, backend) {
446
439
  this.expExts = expExts;
@@ -1200,19 +1193,21 @@ const routeConfig = [
1200
1193
  }
1201
1194
  ];
1202
1195
  const MODULES = [
1196
+ // Base
1203
1197
  CommonModule,
1204
1198
  FormsModule,
1205
- ModalModule,
1206
- MatInputModule,
1199
+ // Material
1207
1200
  MatDatepickerModule,
1208
1201
  MatDayjsDateModule,
1209
1202
  MatIconModule,
1210
- RouterModule,
1211
- NgxMatDatetimePickerModule,
1212
- ContextMenuModule,
1213
- CsvModule,
1214
- BsDropdownModule,
1203
+ MatInputModule,
1204
+ // Bootstrap
1205
+ ModalModule,
1215
1206
  TooltipModule,
1207
+ BsDropdownModule,
1208
+ CsvModule,
1209
+ // Esfaenza e componenti visuali
1210
+ ContextMenuModule,
1216
1211
  LocalizationModule,
1217
1212
  EsTableModule,
1218
1213
  FormsAndValidationsModule,
@@ -1223,6 +1218,7 @@ const MODULES = [
1223
1218
  EsChartsModule,
1224
1219
  FormsAndValidationsModule,
1225
1220
  EsChartsModule,
1221
+ NgxMatDatetimePickerModule,
1226
1222
  RouterModule.forChild(routeConfig),
1227
1223
  ];
1228
1224
  const COMPONENTS = [
@@ -1235,16 +1231,6 @@ const COMPONENTS = [
1235
1231
  AdmMetricsComponent
1236
1232
  ];
1237
1233
  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
1234
  }
1249
1235
  AdmModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1250
1236
  AdmModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, declarations: [AdmWrkComponent,
@@ -1253,19 +1239,22 @@ AdmModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
1253
1239
  AdmLogsComponent,
1254
1240
  AdmAuditsComponent,
1255
1241
  AdmEnqComponent,
1256
- AdmMetricsComponent], imports: [CommonModule,
1242
+ AdmMetricsComponent], imports: [
1243
+ // Base
1244
+ CommonModule,
1257
1245
  FormsModule,
1258
- ModalModule,
1259
- MatInputModule,
1246
+ // Material
1260
1247
  MatDatepickerModule,
1261
1248
  MatDayjsDateModule,
1262
1249
  MatIconModule,
1263
- RouterModule,
1264
- NgxMatDatetimePickerModule,
1265
- ContextMenuModule,
1266
- CsvModule,
1267
- BsDropdownModule,
1250
+ MatInputModule,
1251
+ // Bootstrap
1252
+ ModalModule,
1268
1253
  TooltipModule,
1254
+ BsDropdownModule,
1255
+ CsvModule,
1256
+ // Esfaenza e componenti visuali
1257
+ ContextMenuModule,
1269
1258
  LocalizationModule,
1270
1259
  EsTableModule,
1271
1260
  FormsAndValidationsModule,
@@ -1275,7 +1264,8 @@ AdmModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
1275
1264
  FormsAndValidationsModule,
1276
1265
  EsChartsModule,
1277
1266
  FormsAndValidationsModule,
1278
- EsChartsModule, i7.RouterModule] });
1267
+ EsChartsModule,
1268
+ NgxMatDatetimePickerModule, i7.RouterModule] });
1279
1269
  AdmModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, providers: [], imports: [[...MODULES]] });
1280
1270
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, decorators: [{
1281
1271
  type: NgModule,
@@ -1286,9 +1276,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1286
1276
  }]
1287
1277
  }] });
1288
1278
 
1289
- class AdminModuleConfig {
1290
- }
1291
-
1292
1279
  /*
1293
1280
  * Public API Surface of admin-module
1294
1281
  */
@@ -1297,5 +1284,5 @@ class AdminModuleConfig {
1297
1284
  * Generated bundle index. Do not edit.
1298
1285
  */
1299
1286
 
1300
- export { ADM_BACKEND_URL, ADM_LOCALE, ADM_VIEW_PERMISSIONS, AdmModule, AdminModuleConfig, BaseModuleCommunicationsConsumer, routeConfig };
1287
+ export { ADM_BACKEND_URL, ADM_LOCALE, AdmModule, BaseModuleCommunicationsConsumer, routeConfig };
1301
1288
  //# sourceMappingURL=esfaenza-admin-module.mjs.map