@fluxhub/fluxhub-lib 10.0.593 → 10.0.594
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/bundles/fluxhub-fluxhub-lib.umd.js +11 -5
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhdatepicker.js +14 -7
- package/fesm2015/fluxhub-fluxhub-lib.js +12 -6
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhdatepicker.d.ts +3 -1
- package/package.json +1 -1
|
@@ -8320,9 +8320,10 @@
|
|
|
8320
8320
|
};
|
|
8321
8321
|
var ɵ1 = MOMENT_DATE_FORMATS;
|
|
8322
8322
|
var FHDatePickerComponent = /** @class */ (function () {
|
|
8323
|
-
function FHDatePickerComponent(dateAdapter, uti_s) {
|
|
8323
|
+
function FHDatePickerComponent(dateAdapter, uti_s, _apps) {
|
|
8324
8324
|
this.dateAdapter = dateAdapter;
|
|
8325
8325
|
this.uti_s = uti_s;
|
|
8326
|
+
this._apps = _apps;
|
|
8326
8327
|
this.label = "";
|
|
8327
8328
|
this.required = false;
|
|
8328
8329
|
this.show_buttons = false;
|
|
@@ -8336,7 +8337,12 @@
|
|
|
8336
8337
|
this.v_date_sel = "";
|
|
8337
8338
|
this.onChange = function (_) { };
|
|
8338
8339
|
this.onTouched = function () { };
|
|
8339
|
-
this.
|
|
8340
|
+
if (this._apps.user_lang == 'it')
|
|
8341
|
+
this.dateAdapter.setLocale("it-IT");
|
|
8342
|
+
else if (this._apps.user_lang == 'en')
|
|
8343
|
+
this.dateAdapter.setLocale("en-EN");
|
|
8344
|
+
else
|
|
8345
|
+
this.dateAdapter.setLocale("it-IT");
|
|
8340
8346
|
}
|
|
8341
8347
|
FHDatePickerComponent.prototype.checkInput = function (ob) {
|
|
8342
8348
|
/* if(ob.key=='-')
|
|
@@ -8483,8 +8489,7 @@
|
|
|
8483
8489
|
providers: [
|
|
8484
8490
|
CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5,
|
|
8485
8491
|
{ provide: core$1.MAT_DATE_FORMATS, useValue: ɵ1 },
|
|
8486
|
-
{ provide: core$1.DateAdapter, useClass: MomentDateAdapter }
|
|
8487
|
-
{ provide: core$1.MAT_DATE_LOCALE, useValue: "it-IT" },
|
|
8492
|
+
{ provide: core$1.DateAdapter, useClass: MomentDateAdapter }
|
|
8488
8493
|
],
|
|
8489
8494
|
template: "\n <div [hidden]=\"!show_buttons || !enabled\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"add_year()\"\n >\n +1 Anno\n </button>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"ini_year()\"\n >\n Inizio Anno\n </button>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"fin_year()\"\n >\n Fine Anno\n </button>\n </div>\n\n <mat-form-field\n (click)=\"chxx($event)\"\n appearance=\"outline\"\n floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <input\n [disabled]=\"!enabled\"\n #pickerId\n (dateChange)=\"ch($event)\"\n (focusout)=\"dt_chg($event)\"\n (keyup)=\"checkInput($event)\"\n [min]=\"min_date\"\n [max]=\"max_date\"\n [required]=\"required\"\n (click)=\"chxx($event)\"\n [(ngModel)]=\"date_sel\"\n matInput\n [matDatepicker]=\"picker\"\n />\n <mat-datepicker-toggle\n matSuffix\n [for]=\"picker\"\n (click)=\"chxx($event)\"\n ></mat-datepicker-toggle>\n <mat-datepicker (click)=\"chxx($event)\" #picker></mat-datepicker>\n </mat-form-field>\n ",
|
|
8490
8495
|
styles: ["\n .lb_small_grigia {\n font-size: 15px;\n color: #b8b8b8;\n }\n\n .label_dis {\n font-size: 14px;\n font-weight: bold;\n }\n\n :host.ng-invalid > .ng-touched ::ng-deep .mat-input-element,\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-label {\n color: #f44336;\n }\n\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-underline,\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-ripple {\n background-color: #f44336;\n }\n "]
|
|
@@ -8492,7 +8497,8 @@
|
|
|
8492
8497
|
];
|
|
8493
8498
|
FHDatePickerComponent.ctorParameters = function () { return [
|
|
8494
8499
|
{ type: core$1.DateAdapter },
|
|
8495
|
-
{ type: UtilityService }
|
|
8500
|
+
{ type: UtilityService },
|
|
8501
|
+
{ type: AppService }
|
|
8496
8502
|
]; };
|
|
8497
8503
|
FHDatePickerComponent.propDecorators = {
|
|
8498
8504
|
label: [{ type: i0.Input }],
|