@fluxhub/fluxhub-lib 11.0.133 → 11.0.134
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 +118 -265
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -16
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/fluxhub-fluxhub-lib.js +38 -39
- package/esm2015/lib/controls/fhdatepicker.js +80 -49
- package/esm2015/public_api.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +87 -228
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +38 -39
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhdatepicker.d.ts +9 -8
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
- package/esm2015/lib/controls/utils/MomentDateAdapter.js +0 -171
- package/lib/controls/utils/MomentDateAdapter.d.ts +0 -33
|
@@ -21,9 +21,10 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
|
21
21
|
import 'ag-grid-enterprise';
|
|
22
22
|
import { MatSelectModule } from '@angular/material/select';
|
|
23
23
|
import { MatAutocompleteTrigger, MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
import
|
|
24
|
+
import { MAT_MOMENT_DATE_FORMATS, MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
|
|
25
|
+
import { MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS, MatNativeDateModule } from '@angular/material/core';
|
|
26
|
+
import 'moment/locale/it';
|
|
27
|
+
import 'moment/locale/en-gb';
|
|
27
28
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
28
29
|
import 'clipboard';
|
|
29
30
|
import 'prismjs';
|
|
@@ -74,9 +75,6 @@ import { MatTableModule } from '@angular/material/table';
|
|
|
74
75
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
75
76
|
import { QuillModule } from 'ngx-quill';
|
|
76
77
|
import { ServerSideStoreType } from 'ag-grid-community';
|
|
77
|
-
import { MAT_MOMENT_DATE_FORMATS, MomentDateAdapter as MomentDateAdapter$1, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
|
|
78
|
-
import 'moment/locale/it';
|
|
79
|
-
import 'moment/locale/en-gb';
|
|
80
78
|
|
|
81
79
|
class FSInput {
|
|
82
80
|
constructor() {
|
|
@@ -1313,8 +1311,8 @@ OdbcService.ctorParameters = () => [
|
|
|
1313
1311
|
{ type: ToastrService }
|
|
1314
1312
|
];
|
|
1315
1313
|
|
|
1316
|
-
const noop$
|
|
1317
|
-
const ɵ0$a = noop$
|
|
1314
|
+
const noop$8 = () => { };
|
|
1315
|
+
const ɵ0$a = noop$8;
|
|
1318
1316
|
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b = {
|
|
1319
1317
|
provide: NG_VALUE_ACCESSOR,
|
|
1320
1318
|
useExisting: forwardRef(() => FHComboboxComponent),
|
|
@@ -11310,8 +11308,8 @@ FHFormToolBarComponent.propDecorators = {
|
|
|
11310
11308
|
command: [{ type: Output }]
|
|
11311
11309
|
};
|
|
11312
11310
|
|
|
11313
|
-
const noop$
|
|
11314
|
-
const ɵ0$9 = noop$
|
|
11311
|
+
const noop$7 = () => { };
|
|
11312
|
+
const ɵ0$9 = noop$7;
|
|
11315
11313
|
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
|
|
11316
11314
|
provide: NG_VALUE_ACCESSOR,
|
|
11317
11315
|
useExisting: forwardRef(() => FHTextArea),
|
|
@@ -11738,8 +11736,8 @@ fh_win_time_slider.ctorParameters = () => [
|
|
|
11738
11736
|
{ type: UtilityService }
|
|
11739
11737
|
];
|
|
11740
11738
|
|
|
11741
|
-
const noop$
|
|
11742
|
-
const ɵ0$8 = noop$
|
|
11739
|
+
const noop$6 = () => { };
|
|
11740
|
+
const ɵ0$8 = noop$6;
|
|
11743
11741
|
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
|
|
11744
11742
|
provide: NG_VALUE_ACCESSOR,
|
|
11745
11743
|
useExisting: forwardRef(() => FHTimePickerComponent),
|
|
@@ -12175,8 +12173,8 @@ CurrencyComponent.decorators = [
|
|
|
12175
12173
|
},] }
|
|
12176
12174
|
];
|
|
12177
12175
|
|
|
12178
|
-
const noop$
|
|
12179
|
-
const ɵ0$7 = noop$
|
|
12176
|
+
const noop$5 = () => { };
|
|
12177
|
+
const ɵ0$7 = noop$5;
|
|
12180
12178
|
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 = {
|
|
12181
12179
|
provide: NG_VALUE_ACCESSOR,
|
|
12182
12180
|
useExisting: forwardRef(() => FHAutoCompleteComponent),
|
|
@@ -12633,194 +12631,24 @@ FHAutoCompleteComponent.propDecorators = {
|
|
|
12633
12631
|
auto: [{ type: ViewChild, args: ["auto",] }]
|
|
12634
12632
|
};
|
|
12635
12633
|
|
|
12636
|
-
const moment = momentNs;
|
|
12637
|
-
const MOMENT_DATE_FORMATS = {
|
|
12638
|
-
parse: {
|
|
12639
|
-
dateInput: "DD/MM/YYYY",
|
|
12640
|
-
},
|
|
12641
|
-
display: {
|
|
12642
|
-
dateInput: "DD/MM/YYYY",
|
|
12643
|
-
monthYearLabel: "MMMM Y",
|
|
12644
|
-
dateA11yLabel: "LL",
|
|
12645
|
-
monthYearA11yLabel: "MMMM Y",
|
|
12646
|
-
},
|
|
12647
|
-
};
|
|
12648
|
-
const dateNames = [];
|
|
12649
|
-
for (let date = 1; date <= 31; date++) {
|
|
12650
|
-
dateNames.push(String(date));
|
|
12651
|
-
}
|
|
12652
|
-
class MomentDateAdapter extends DateAdapter {
|
|
12653
|
-
constructor() {
|
|
12654
|
-
super(...arguments);
|
|
12655
|
-
this.localeData = moment.localeData();
|
|
12656
|
-
}
|
|
12657
|
-
getYear(date) {
|
|
12658
|
-
return date.year();
|
|
12659
|
-
}
|
|
12660
|
-
getMonth(date) {
|
|
12661
|
-
return date.month();
|
|
12662
|
-
}
|
|
12663
|
-
getDate(date) {
|
|
12664
|
-
return date.date();
|
|
12665
|
-
}
|
|
12666
|
-
getDayOfWeek(date) {
|
|
12667
|
-
return date.day();
|
|
12668
|
-
}
|
|
12669
|
-
getMonthNames(style) {
|
|
12670
|
-
switch (style) {
|
|
12671
|
-
case "long":
|
|
12672
|
-
return this.localeData.months();
|
|
12673
|
-
case "short":
|
|
12674
|
-
return this.localeData.monthsShort();
|
|
12675
|
-
case "narrow":
|
|
12676
|
-
return this.localeData.monthsShort().map((month) => month[0]);
|
|
12677
|
-
}
|
|
12678
|
-
}
|
|
12679
|
-
getDateNames() {
|
|
12680
|
-
return dateNames;
|
|
12681
|
-
}
|
|
12682
|
-
getDayOfWeekNames(style) {
|
|
12683
|
-
switch (style) {
|
|
12684
|
-
case "long":
|
|
12685
|
-
return this.localeData.weekdays();
|
|
12686
|
-
case "short":
|
|
12687
|
-
return this.localeData.weekdaysShort();
|
|
12688
|
-
case "narrow":
|
|
12689
|
-
return this.localeData.weekdaysShort();
|
|
12690
|
-
}
|
|
12691
|
-
}
|
|
12692
|
-
getYearName(date) {
|
|
12693
|
-
return String(date.year());
|
|
12694
|
-
}
|
|
12695
|
-
getFirstDayOfWeek() {
|
|
12696
|
-
return this.localeData.firstDayOfWeek();
|
|
12697
|
-
}
|
|
12698
|
-
getNumDaysInMonth(date) {
|
|
12699
|
-
return date.daysInMonth();
|
|
12700
|
-
}
|
|
12701
|
-
clone(date) {
|
|
12702
|
-
return date.clone();
|
|
12703
|
-
}
|
|
12704
|
-
createDate(year, month, date) {
|
|
12705
|
-
return moment([year, month, date]);
|
|
12706
|
-
}
|
|
12707
|
-
today() {
|
|
12708
|
-
return moment();
|
|
12709
|
-
}
|
|
12710
|
-
parse(value, parseFormat) {
|
|
12711
|
-
console.log("prima value ", value, "parseFormat ", parseFormat);
|
|
12712
|
-
if (value != null) {
|
|
12713
|
-
let arr = value.split("/");
|
|
12714
|
-
console.log("arr ", arr);
|
|
12715
|
-
if (arr.length == 3) {
|
|
12716
|
-
let yy = parseInt(arr[2]);
|
|
12717
|
-
if (yy < 100)
|
|
12718
|
-
yy += 2000;
|
|
12719
|
-
if (arr[1].length == 1)
|
|
12720
|
-
arr[1] = "0" + arr[1];
|
|
12721
|
-
if (arr[0].length == 1)
|
|
12722
|
-
arr[0] = "0" + arr[0];
|
|
12723
|
-
value = arr[0] + "/" + arr[1] + "/" + yy;
|
|
12724
|
-
}
|
|
12725
|
-
arr = value.split("-");
|
|
12726
|
-
console.log("arr ", arr);
|
|
12727
|
-
if (arr.length == 3) {
|
|
12728
|
-
let yy = parseInt(arr[2]);
|
|
12729
|
-
if (yy < 100)
|
|
12730
|
-
yy += 2000;
|
|
12731
|
-
if (arr[1].length == 1)
|
|
12732
|
-
arr[1] = "0" + arr[1];
|
|
12733
|
-
if (arr[0].length == 1)
|
|
12734
|
-
arr[0] = "0" + arr[0];
|
|
12735
|
-
value = arr[0] + "/" + arr[1] + "/" + yy;
|
|
12736
|
-
}
|
|
12737
|
-
}
|
|
12738
|
-
console.log("fine value ", value, "parseFormat ", parseFormat);
|
|
12739
|
-
let m = moment(value, parseFormat, true);
|
|
12740
|
-
if (!m.isValid()) {
|
|
12741
|
-
m = moment(value);
|
|
12742
|
-
}
|
|
12743
|
-
if (m.isValid()) {
|
|
12744
|
-
return m;
|
|
12745
|
-
}
|
|
12746
|
-
return null;
|
|
12747
|
-
}
|
|
12748
|
-
format(date, displayFormat) {
|
|
12749
|
-
if (date) {
|
|
12750
|
-
return date.format(displayFormat);
|
|
12751
|
-
}
|
|
12752
|
-
return "";
|
|
12753
|
-
}
|
|
12754
|
-
addCalendarYears(date, years) {
|
|
12755
|
-
return date.clone().add(years, "y");
|
|
12756
|
-
}
|
|
12757
|
-
addCalendarMonths(date, months) {
|
|
12758
|
-
return date.clone().add(months, "M");
|
|
12759
|
-
}
|
|
12760
|
-
addCalendarDays(date, days) {
|
|
12761
|
-
return date.clone().add(days, "d");
|
|
12762
|
-
}
|
|
12763
|
-
setLocale(locale) {
|
|
12764
|
-
this.localeData = moment.localeData(locale);
|
|
12765
|
-
}
|
|
12766
|
-
compareDate(first, second) {
|
|
12767
|
-
return first.diff(second, "seconds", true);
|
|
12768
|
-
}
|
|
12769
|
-
sameDate(first, second) {
|
|
12770
|
-
if (first == null) {
|
|
12771
|
-
return second == null;
|
|
12772
|
-
}
|
|
12773
|
-
else if (isMoment(first)) {
|
|
12774
|
-
return first.isSame(second);
|
|
12775
|
-
}
|
|
12776
|
-
return super.sameDate(first, second);
|
|
12777
|
-
}
|
|
12778
|
-
clampDate(date, min, max) {
|
|
12779
|
-
if (min && date.isBefore(min)) {
|
|
12780
|
-
return min;
|
|
12781
|
-
}
|
|
12782
|
-
else if (max && date.isAfter(max)) {
|
|
12783
|
-
return max;
|
|
12784
|
-
}
|
|
12785
|
-
return date;
|
|
12786
|
-
}
|
|
12787
|
-
isValid(date) {
|
|
12788
|
-
return date.isValid();
|
|
12789
|
-
}
|
|
12790
|
-
isDateInstance(obj) {
|
|
12791
|
-
return moment.isMoment(obj);
|
|
12792
|
-
}
|
|
12793
|
-
toIso8601(date) {
|
|
12794
|
-
return date.format();
|
|
12795
|
-
}
|
|
12796
|
-
fromIso8601(iso8601String) {
|
|
12797
|
-
return moment(iso8601String);
|
|
12798
|
-
}
|
|
12799
|
-
invalid() {
|
|
12800
|
-
return undefined;
|
|
12801
|
-
}
|
|
12802
|
-
}
|
|
12803
|
-
|
|
12804
|
-
const noop$5 = () => { };
|
|
12805
|
-
const ɵ0$6 = noop$5;
|
|
12806
12634
|
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 = {
|
|
12807
12635
|
provide: NG_VALUE_ACCESSOR,
|
|
12808
12636
|
useExisting: forwardRef(() => FHDatePickerComponent),
|
|
12809
12637
|
multi: true,
|
|
12810
12638
|
};
|
|
12811
|
-
const ɵ
|
|
12639
|
+
const ɵ0$6 = MAT_MOMENT_DATE_FORMATS;
|
|
12812
12640
|
class FHDatePickerComponent {
|
|
12813
|
-
constructor(
|
|
12814
|
-
this.dateAdapter = dateAdapter;
|
|
12641
|
+
constructor(uti_s, _apps, adapter) {
|
|
12815
12642
|
this.uti_s = uti_s;
|
|
12816
12643
|
this._apps = _apps;
|
|
12644
|
+
this.adapter = adapter;
|
|
12817
12645
|
this.label = '';
|
|
12818
12646
|
this.error = null;
|
|
12819
12647
|
this.required = false;
|
|
12820
12648
|
this.show_buttons = false;
|
|
12821
12649
|
this.enabled = true;
|
|
12822
|
-
this.
|
|
12823
|
-
this.
|
|
12650
|
+
this.min_date = null;
|
|
12651
|
+
this.max_date = null;
|
|
12824
12652
|
this.change = new EventEmitter();
|
|
12825
12653
|
this.pickerId = null;
|
|
12826
12654
|
this.init_end = new EventEmitter();
|
|
@@ -12861,17 +12689,17 @@ class FHDatePickerComponent {
|
|
|
12861
12689
|
parseInt(arr[0]) <= 31 &&
|
|
12862
12690
|
parseInt(arr[1]) > 0 &&
|
|
12863
12691
|
parseInt(arr[1]) <= 12) {
|
|
12864
|
-
let dtp = new MomentDateAdapter();
|
|
12865
12692
|
let yy = parseInt(arr[2]);
|
|
12866
12693
|
if (yy < 100)
|
|
12867
12694
|
yy += 2000;
|
|
12868
|
-
this.date_sel =
|
|
12695
|
+
this.date_sel = new Date(yy, parseInt(arr[1]) - 1, parseInt(arr[0]));
|
|
12869
12696
|
}
|
|
12870
12697
|
else
|
|
12871
12698
|
console.log('data non valida! ', arr);
|
|
12872
12699
|
}
|
|
12873
12700
|
}
|
|
12874
12701
|
chxx(e) {
|
|
12702
|
+
this.setlocalt();
|
|
12875
12703
|
//console.log(e);
|
|
12876
12704
|
//e.stopPropagation();
|
|
12877
12705
|
}
|
|
@@ -12895,16 +12723,16 @@ class FHDatePickerComponent {
|
|
|
12895
12723
|
}, 500);
|
|
12896
12724
|
return;
|
|
12897
12725
|
}
|
|
12898
|
-
if (this._apps.user_lang == 'it') {
|
|
12899
|
-
this.
|
|
12726
|
+
if ((this._apps.user_lang || '') == 'it') {
|
|
12727
|
+
this.adapter.setLocale('it');
|
|
12900
12728
|
//console.log('set locale it');
|
|
12901
12729
|
}
|
|
12902
12730
|
else if (this._apps.user_lang == 'en') {
|
|
12903
|
-
this.
|
|
12731
|
+
this.adapter.setLocale('en');
|
|
12904
12732
|
// console.log('set locale gb');
|
|
12905
12733
|
}
|
|
12906
12734
|
else {
|
|
12907
|
-
this.
|
|
12735
|
+
this.adapter.setLocale('it');
|
|
12908
12736
|
}
|
|
12909
12737
|
}
|
|
12910
12738
|
setFocus() {
|
|
@@ -12917,37 +12745,42 @@ class FHDatePickerComponent {
|
|
|
12917
12745
|
}, 50);
|
|
12918
12746
|
}
|
|
12919
12747
|
add_year() {
|
|
12920
|
-
let dtp = new MomentDateAdapter();
|
|
12748
|
+
// let dtp = new MomentDateAdapter();
|
|
12921
12749
|
let dt_v = this.getValue();
|
|
12922
12750
|
if (dt_v != null) {
|
|
12923
|
-
this.date_sel =
|
|
12751
|
+
this.date_sel = new Date(dt_v.getFullYear() + 1, dt_v.getMonth(), dt_v.getDate());
|
|
12924
12752
|
this.v_view = this.uti_s.date2String(dt_v);
|
|
12925
12753
|
}
|
|
12926
12754
|
this.ch();
|
|
12927
12755
|
}
|
|
12928
12756
|
ini_year() {
|
|
12929
|
-
let dtp = new MomentDateAdapter();
|
|
12757
|
+
// let dtp = new MomentDateAdapter();
|
|
12930
12758
|
let dt_v = this.getValue();
|
|
12931
|
-
if (
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
12759
|
+
if (dt_v != null) {
|
|
12760
|
+
this.date_sel = new Date(dt_v.getFullYear() + 1, 1, 1);
|
|
12761
|
+
this.v_view = this.uti_s.date2String(dt_v);
|
|
12762
|
+
}
|
|
12935
12763
|
this.ch();
|
|
12936
12764
|
}
|
|
12937
12765
|
fin_year() {
|
|
12938
|
-
let dtp = new MomentDateAdapter();
|
|
12766
|
+
// let dtp = new MomentDateAdapter();
|
|
12939
12767
|
let dt_v = this.getValue();
|
|
12940
|
-
if (
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
|
|
12768
|
+
if (dt_v != null) {
|
|
12769
|
+
this.date_sel = new Date(dt_v.getFullYear() + 1, 12, 31);
|
|
12770
|
+
this.v_view = this.uti_s.date2String(dt_v);
|
|
12771
|
+
}
|
|
12944
12772
|
this.ch();
|
|
12945
12773
|
}
|
|
12946
12774
|
getValue() {
|
|
12947
|
-
if (this.date_sel)
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
12775
|
+
if (this.date_sel) {
|
|
12776
|
+
if ((this.date_sel._isAMomentObject)) {
|
|
12777
|
+
if (this.date_sel._d != null) {
|
|
12778
|
+
return new Date(this.date_sel._d);
|
|
12779
|
+
}
|
|
12780
|
+
}
|
|
12781
|
+
return this.date_sel;
|
|
12782
|
+
}
|
|
12783
|
+
return null;
|
|
12951
12784
|
}
|
|
12952
12785
|
ngAfterViewInit() {
|
|
12953
12786
|
setTimeout(() => {
|
|
@@ -12959,8 +12792,8 @@ class FHDatePickerComponent {
|
|
|
12959
12792
|
setLimits() {
|
|
12960
12793
|
/* let copy = this.getCopyOfOptions();
|
|
12961
12794
|
|
|
12962
|
-
if ( this.
|
|
12963
|
-
if ( this.
|
|
12795
|
+
if ( this.min_date != null ) {this.min_date.setDate(this.min_date.getDate() -1 ); copy.disableUntil = { year: this.min_date.getFullYear( ), month: this.min_date.getMonth( )+1, day: this.min_date.getDate( ) }};
|
|
12796
|
+
if ( this.max_date != null ) {this.max_date.setDate(this.max_date.getDate() +1 );copy.disableSince = { year: this.max_date.getFullYear( ), month: this.max_date.getMonth( )+1, day: this.max_date.getDate( ) }};
|
|
12964
12797
|
this.myDatePickerOptions = copy;
|
|
12965
12798
|
*/
|
|
12966
12799
|
}
|
|
@@ -12968,6 +12801,7 @@ class FHDatePickerComponent {
|
|
|
12968
12801
|
this.date_sel = new Date();
|
|
12969
12802
|
}
|
|
12970
12803
|
setValue(d) {
|
|
12804
|
+
// console.log("🚀 ~ file: fhdatepicker.ts:284 ~ setValue ~ d", d)
|
|
12971
12805
|
this.setlocalt();
|
|
12972
12806
|
// this.dateAdapter.setLocale("it-IT");
|
|
12973
12807
|
if (d == null) {
|
|
@@ -12984,12 +12818,25 @@ class FHDatePickerComponent {
|
|
|
12984
12818
|
d = new Date(d.value);
|
|
12985
12819
|
}
|
|
12986
12820
|
}
|
|
12987
|
-
if (d.
|
|
12821
|
+
if ((d._isAMomentObject)) {
|
|
12822
|
+
if (d._d != null) {
|
|
12823
|
+
d = new Date(d._d);
|
|
12824
|
+
}
|
|
12825
|
+
}
|
|
12826
|
+
if (isNaN(d.valueOf())) {
|
|
12988
12827
|
this.date_sel = null;
|
|
12989
12828
|
return;
|
|
12990
12829
|
}
|
|
12991
|
-
|
|
12992
|
-
|
|
12830
|
+
if ((d instanceof Date)) {
|
|
12831
|
+
if (d.getFullYear() == 1970) {
|
|
12832
|
+
this.date_sel = null;
|
|
12833
|
+
return;
|
|
12834
|
+
}
|
|
12835
|
+
// let dtp = new MomentDateAdapter();
|
|
12836
|
+
this.date_sel = new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
12837
|
+
}
|
|
12838
|
+
else
|
|
12839
|
+
console.error('Impossibile parsare data ---> ', d);
|
|
12993
12840
|
let dt_v = this.getValue();
|
|
12994
12841
|
if (dt_v)
|
|
12995
12842
|
this.v_view = this.uti_s.date2String(dt_v);
|
|
@@ -13008,11 +12855,22 @@ FHDatePickerComponent.decorators = [
|
|
|
13008
12855
|
{ type: Component, args: [{
|
|
13009
12856
|
selector: 'FHDatePicker',
|
|
13010
12857
|
providers: [
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
{ provide:
|
|
12858
|
+
// The locale would typically be provided on the root module of your application. We do it at
|
|
12859
|
+
// the component level here, due to limitations of our example generation script.
|
|
12860
|
+
{ provide: MAT_DATE_LOCALE, useValue: 'it-IT' },
|
|
12861
|
+
// `MomentDateAdapter` and `MAT_MOMENT_DATE_FORMATS` can be automatically provided by importing
|
|
12862
|
+
// `MatMomentDateModule` in your applications root module. We provide it at the component level
|
|
12863
|
+
// here, due to limitations of our example generation script.
|
|
12864
|
+
{
|
|
12865
|
+
provide: DateAdapter,
|
|
12866
|
+
useClass: MomentDateAdapter,
|
|
12867
|
+
deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS],
|
|
12868
|
+
},
|
|
12869
|
+
{ provide: MAT_DATE_FORMATS, useValue: ɵ0$6 },
|
|
12870
|
+
CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5
|
|
13014
12871
|
],
|
|
13015
12872
|
template: `
|
|
12873
|
+
|
|
13016
12874
|
<div [hidden]="!show_buttons || !enabled">
|
|
13017
12875
|
<button
|
|
13018
12876
|
mat-flat-button
|
|
@@ -13043,15 +12901,16 @@ FHDatePickerComponent.decorators = [
|
|
|
13043
12901
|
floatLabel="always"
|
|
13044
12902
|
[class.fh_field]="enabled"
|
|
13045
12903
|
[class.fh_field_dis]="!enabled"
|
|
13046
|
-
|
|
12904
|
+
class="fh_date_picker"
|
|
12905
|
+
><mat-label>{{ label | translate }}</mat-label>
|
|
13047
12906
|
<input
|
|
13048
12907
|
[disabled]="!enabled"
|
|
13049
12908
|
#pickerId
|
|
13050
12909
|
(dateChange)="ch($event)"
|
|
13051
12910
|
(focusout)="dt_chg($event)"
|
|
13052
12911
|
(keyup)="checkInput($event)"
|
|
13053
|
-
[min]="
|
|
13054
|
-
[max]="
|
|
12912
|
+
[min]="min_date"
|
|
12913
|
+
[max]="max_date"
|
|
13055
12914
|
[required]="required"
|
|
13056
12915
|
(click)="chxx($event)"
|
|
13057
12916
|
[(ngModel)]="date_sel"
|
|
@@ -13091,9 +12950,9 @@ FHDatePickerComponent.decorators = [
|
|
|
13091
12950
|
},] }
|
|
13092
12951
|
];
|
|
13093
12952
|
FHDatePickerComponent.ctorParameters = () => [
|
|
13094
|
-
{ type: DateAdapter },
|
|
13095
12953
|
{ type: UtilityService },
|
|
13096
|
-
{ type: AppService }
|
|
12954
|
+
{ type: AppService },
|
|
12955
|
+
{ type: DateAdapter }
|
|
13097
12956
|
];
|
|
13098
12957
|
FHDatePickerComponent.propDecorators = {
|
|
13099
12958
|
label: [{ type: Input }],
|
|
@@ -13101,8 +12960,8 @@ FHDatePickerComponent.propDecorators = {
|
|
|
13101
12960
|
required: [{ type: Input }],
|
|
13102
12961
|
show_buttons: [{ type: Input }],
|
|
13103
12962
|
enabled: [{ type: Input }],
|
|
13104
|
-
|
|
13105
|
-
|
|
12963
|
+
min_date: [{ type: Input }],
|
|
12964
|
+
max_date: [{ type: Input }],
|
|
13106
12965
|
change: [{ type: Output }],
|
|
13107
12966
|
pickerId: [{ type: ViewChild, args: ['pickerId',] }],
|
|
13108
12967
|
init_end: [{ type: Output }]
|
|
@@ -30568,7 +30427,7 @@ FHDateRangePickerComponent.decorators = [
|
|
|
30568
30427
|
// here, due to limitations of our example generation script.
|
|
30569
30428
|
{
|
|
30570
30429
|
provide: DateAdapter,
|
|
30571
|
-
useClass: MomentDateAdapter
|
|
30430
|
+
useClass: MomentDateAdapter,
|
|
30572
30431
|
deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS],
|
|
30573
30432
|
},
|
|
30574
30433
|
{ provide: MAT_DATE_FORMATS, useValue: ɵ0 },
|
|
@@ -32171,5 +32030,5 @@ wkfapp_v2.ctorParameters = () => [
|
|
|
32171
32030
|
* Generated bundle index. Do not edit.
|
|
32172
32031
|
*/
|
|
32173
32032
|
|
|
32174
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGuard, FHHelpButton, FHListComponent, FHLogPanelComponent, FHMdReader, FHMultiComboboxComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_grid_selection, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵb,
|
|
32033
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGuard, FHHelpButton, FHListComponent, FHLogPanelComponent, FHMdReader, FHMultiComboboxComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_grid_selection, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵb, win_commenti as ɵba, win_info_doc as ɵbb, win_log as ɵbc, win_recupera_doc as ɵbd, win_riassegna_select_level as ɵbe, win_riassegna_select_user as ɵbf, win_sostituisci_utente as ɵbg, win_commento_sel_notif as ɵbh, win_manage_values as ɵbi, win_manage_roles as ɵbj, FHComboboxComponentFilter as ɵbk, win_salva_annulla_v2 as ɵbl, win_assegna_v2 as ɵbm, win_conferma_v2 as ɵbn, win_select_canale_v2 as ɵbo, win_select_level_v2 as ɵbp, win_uploads_v2 as ɵbq, win_commenti_v2 as ɵbr, win_info_doc_v2 as ɵbs, win_log_v2 as ɵbt, win_recupera_doc_v2 as ɵbu, win_riassegna_select_level_v2 as ɵbv, win_riassegna_select_user_v2 as ɵbw, win_sostituisci_utente_v2 as ɵbx, win_commento_sel_notif_v2 as ɵby, win_insert_commento_v2 as ɵbz, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵc, win_assegna_a as ɵca, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵm, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵn, FHDateRangePickerComponent as ɵo, HighlightService as ɵp, win_show_log_info_dett as ɵq, SafePipe as ɵr, FHViewerComponent as ɵs, FHGridToolBarComponent as ɵu, win_grid_help as ɵv, win_assegna as ɵw, win_conferma as ɵx, win_select_canale as ɵy, win_select_level as ɵz };
|
|
32175
32034
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|