@esfaenza/admin-module 13.1.0-beta4 → 13.1.0-beta9

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.
@@ -3,13 +3,14 @@ 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
11
  import { MatDayjsDateModule } from '@esfaenza/material-dayjs-adapter';
12
12
  import { MatInputModule } from '@angular/material/input';
13
+ import { MAT_DATE_LOCALE, MAT_DATE_FORMATS } 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';
@@ -1230,6 +1231,16 @@ const COMPONENTS = [
1230
1231
  AdmEnqComponent,
1231
1232
  AdmMetricsComponent
1232
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
+ };
1233
1244
  class AdmModule {
1234
1245
  }
1235
1246
  AdmModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -1266,13 +1277,21 @@ AdmModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
1266
1277
  FormsAndValidationsModule,
1267
1278
  EsChartsModule,
1268
1279
  NgxMatDatetimePickerModule, i7.RouterModule] });
1269
- AdmModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, providers: [], imports: [[...MODULES]] });
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
+ ], imports: [[...MODULES]] });
1270
1285
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AdmModule, decorators: [{
1271
1286
  type: NgModule,
1272
1287
  args: [{
1273
1288
  imports: [...MODULES],
1274
1289
  declarations: [...COMPONENTS],
1275
- providers: []
1290
+ providers: [
1291
+ { provide: LOCALE_ID, useValue: myconfig.SMALL_LOCALE },
1292
+ { provide: MAT_DATE_LOCALE, useValue: myconfig.LOCALE },
1293
+ { provide: MAT_DATE_FORMATS, useValue: formats }
1294
+ ]
1276
1295
  }]
1277
1296
  }] });
1278
1297