@esfaenza/forms-and-validations 11.2.47-beta1 → 11.2.48

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/datepicker'), require('@angular/material/autocomplete'), require('@angular/material/input'), require('@angular/material/core'), require('@esfaenza/localizations'), require('@esfaenza/material-dayjs-adapter'), require('@esfaenza/ngx-currency-mask'), require('angular2-multiselect-dropdown'), require('@angular-material-components/datetime-picker'), require('ngx-bootstrap/tooltip'), require('@esfaenza/extensions'), require('@esfaenza/access-control')) :
3
- typeof define === 'function' && define.amd ? define('@esfaenza/forms-and-validations', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/datepicker', '@angular/material/autocomplete', '@angular/material/input', '@angular/material/core', '@esfaenza/localizations', '@esfaenza/material-dayjs-adapter', '@esfaenza/ngx-currency-mask', 'angular2-multiselect-dropdown', '@angular-material-components/datetime-picker', 'ngx-bootstrap/tooltip', '@esfaenza/extensions', '@esfaenza/access-control'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.esfaenza = global.esfaenza || {}, global.esfaenza['forms-and-validations'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.datepicker, global.ng.material.autocomplete, global.ng.material.input, global.ng.material.core, global.localizations, global.materialDayjsAdapter, global.ngxCurrencyMask, global.angular2MultiselectDropdown, global.datetimePicker, global.tooltip, global.extensions, global.accessControl));
5
- }(this, (function (exports, core, common, forms, datepicker, autocomplete, input, core$1, localizations, materialDayjsAdapter, ngxCurrencyMask, angular2MultiselectDropdown, datetimePicker, tooltip, extensions, accessControl) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/datepicker'), require('@angular/material/autocomplete'), require('@angular/material/input'), require('@esfaenza/localizations'), require('@esfaenza/material-dayjs-adapter'), require('@esfaenza/ngx-currency-mask'), require('angular2-multiselect-dropdown'), require('@angular-material-components/datetime-picker'), require('ngx-bootstrap/tooltip'), require('@angular/material/core'), require('@esfaenza/extensions'), require('@esfaenza/access-control')) :
3
+ typeof define === 'function' && define.amd ? define('@esfaenza/forms-and-validations', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/datepicker', '@angular/material/autocomplete', '@angular/material/input', '@esfaenza/localizations', '@esfaenza/material-dayjs-adapter', '@esfaenza/ngx-currency-mask', 'angular2-multiselect-dropdown', '@angular-material-components/datetime-picker', 'ngx-bootstrap/tooltip', '@angular/material/core', '@esfaenza/extensions', '@esfaenza/access-control'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.esfaenza = global.esfaenza || {}, global.esfaenza['forms-and-validations'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.datepicker, global.ng.material.autocomplete, global.ng.material.input, global.localizations, global.materialDayjsAdapter, global.ngxCurrencyMask, global.angular2MultiselectDropdown, global.datetimePicker, global.tooltip, global.ng.material.core, global.extensions, global.accessControl));
5
+ }(this, (function (exports, core, common, forms, datepicker, autocomplete, input, localizations, materialDayjsAdapter, ngxCurrencyMask, angular2MultiselectDropdown, datetimePicker, tooltip, core$1, extensions, accessControl) { 'use strict';
6
6
 
7
7
  /**
8
8
  * Classe che identifica un file
@@ -1976,6 +1976,14 @@
1976
1976
  };
1977
1977
  }
1978
1978
  };
1979
+ /**
1980
+ * Se sono in modalità detatched devo rimuovere manualmente questo controllo quando entro nella dispose, altrimenti se poi ne andassi a riaggiungere
1981
+ * un altro con lo stesso "name" ma magari resettato, Angular lo re-idraterebbe con i valori precedenti nonostante il modello fosse vuoto
1982
+ */
1983
+ BaseFormControl.prototype.ngOnDestroy = function () {
1984
+ if (this.detatchedFromform && this.Form)
1985
+ this.Form.removeControl(this.validationControl);
1986
+ };
1979
1987
  /**
1980
1988
  * Elabora i validatori iniettati e capisce se il valore è obbligatorio o meno
1981
1989
  */
@@ -3594,20 +3602,6 @@
3594
3602
  InOutFormat: [{ type: core.Input }]
3595
3603
  };
3596
3604
 
3597
- /**
3598
- * Formato in display (modalità breve, senza ore, minuti e secondi) delle date per tutti i componenti che utilizzino input data.
3599
- *
3600
- * Da convenzione è sempre quello italiano quindi viene cablato
3601
- */
3602
- var formats = {
3603
- parse: { dateInput: 'DD/MM/YYYY' },
3604
- display: {
3605
- dateInput: 'DD/MM/YYYY',
3606
- monthYearLabel: 'MM YYYY',
3607
- dateA11yLabel: 'DD/MM/YYYY',
3608
- monthYearA11yLabel: 'MM YYYY',
3609
- }
3610
- };
3611
3605
  /**
3612
3606
  * Formato in display (modalità lunga, con ore, minuti e secondi) delle date per tutti i componenti che utilizzino input data.
3613
3607
  *
@@ -3681,8 +3675,6 @@
3681
3675
  providers: [
3682
3676
  { provide: FAV_LOCALE, useValue: (config === null || config === void 0 ? void 0 : config.locale) || 'it-IT' },
3683
3677
  { provide: ACO_CUSTOMKEY, useValue: (config === null || config === void 0 ? void 0 : config.acocustom) || null },
3684
- { provide: core$1.MAT_DATE_LOCALE, useValue: 'it' },
3685
- { provide: core$1.MAT_DATE_FORMATS, useValue: formats },
3686
3678
  { provide: datetimePicker.NGX_MAT_DATE_FORMATS, useValue: formats_long },
3687
3679
  { provide: datetimePicker.NgxMatDateAdapter, useClass: NgxExpandedDayJsDateAdapter },
3688
3680
  ]