@fluxhub/fluxhub-lib 1.0.302 → 1.0.304
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 +434 -26
- 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/docs/classes/MomentDateAdapter.html +1989 -0
- package/docs/components/FHDatePickerComponent.html +3 -2
- package/docs/components/FHGridComponent.html +1 -1
- package/docs/components/FHWinComboSelect.html +86 -2
- package/docs/coverage.html +49 -1
- package/docs/js/menu-wc.js +3 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +97 -0
- package/docs/overview.html +1 -1
- package/esm2015/fluxhub-fluxhub-lib.js +18 -17
- package/esm2015/lib/controls/fhdatepicker.js +20 -6
- package/esm2015/lib/controls/fhgrid.js +2 -1
- package/esm2015/lib/controls/utils/MomentDateAdapter.js +285 -0
- package/esm2015/lib/controls/win_combo_select.js +15 -2
- package/esm5/fluxhub-fluxhub-lib.js +18 -17
- package/esm5/lib/controls/fhdatepicker.js +20 -6
- package/esm5/lib/controls/fhgrid.js +2 -1
- package/esm5/lib/controls/utils/MomentDateAdapter.js +405 -0
- package/esm5/lib/controls/win_combo_select.js +14 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +302 -7
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +417 -10
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +18 -17
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhdatepicker.d.ts +1 -1
- package/lib/controls/utils/MomentDateAdapter.d.ts +33 -0
- package/lib/controls/win_combo_select.d.ts +3 -1
- package/package.json +3 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ngx-simple-crypt'), require('crypto-js'), require('clipboard'), require('prismjs'), require('prismjs/plugins/toolbar/prism-toolbar'), require('prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard'), require('prismjs/components/prism-css'), require('prismjs/components/prism-javascript'), require('prismjs/components/prism-java'), require('prismjs/components/prism-markup'), require('prismjs/components/prism-typescript'), require('prismjs/components/prism-sass'), require('prismjs/components/prism-scss'), require('prismjs/components/prism-sql'), require('@angular/common/http'), require('bpmn-js/lib/NavigatedViewer'), require('rxjs'), require('rxjs/operators'), require('@angular/flex-layout'), require('ngx-markdown'), require('ng2-ckeditor'), require('@angular/common'), require('ag-grid-angular'), require('ng2-file-upload'), require('mydatepicker'), require('@agm/core'), require('ag-grid-enterprise'), require('@angular/cdk/table'), require('ngforage'), require('@ngx-translate/core'), require('ng2-dragula'), require('@angular/platform-browser'), require('@angular/forms'), require('@angular/material'), require('@angular/router'), require('@angular/http'), require('ng2-slim-loading-bar'), require('ngx-toastr'), require('@angular/core')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@fluxhub/fluxhub-lib', ['exports', 'ngx-simple-crypt', 'crypto-js', 'clipboard', 'prismjs', 'prismjs/plugins/toolbar/prism-toolbar', 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard', 'prismjs/components/prism-css', 'prismjs/components/prism-javascript', 'prismjs/components/prism-java', 'prismjs/components/prism-markup', 'prismjs/components/prism-typescript', 'prismjs/components/prism-sass', 'prismjs/components/prism-scss', 'prismjs/components/prism-sql', '@angular/common/http', 'bpmn-js/lib/NavigatedViewer', 'rxjs', 'rxjs/operators', '@angular/flex-layout', 'ngx-markdown', 'ng2-ckeditor', '@angular/common', 'ag-grid-angular', 'ng2-file-upload', 'mydatepicker', '@agm/core', 'ag-grid-enterprise', '@angular/cdk/table', 'ngforage', '@ngx-translate/core', 'ng2-dragula', '@angular/platform-browser', '@angular/forms', '@angular/material', '@angular/router', '@angular/http', 'ng2-slim-loading-bar', 'ngx-toastr', '@angular/core'], factory) :
|
|
4
|
-
(factory((global.fluxhub = global.fluxhub || {}, global.fluxhub['fluxhub-lib'] = {}),global.ngxSimpleCrypt,global.CryptoJS,null,null,null,null,null,null,null,null,null,null,null,null,global.ng.common.http,global.NavigatedViewer,global.rxjs,global.rxjs.operators,global.ng['flex-layout'],global.ngxMarkdown,global.ng2Ckeditor,global.ng.common,global.agGridAngular,global.ng2FileUpload,global.mydatepicker,global.core,null,global.ng.cdk.table,global.ngforage,global.core$1,global.ng2Dragula,global.ng.platformBrowser,global.ng.forms,global.ng.material,global.ng.router,global.ng.http,global.ng2SlimLoadingBar,global.i3,global.ng.core));
|
|
5
|
-
}(this, (function (exports,ngxSimpleCrypt,CryptoJS,clipboard,prismjs,prismToolbar,prismCopyToClipboard,prismCss,prismJavascript,prismJava,prismMarkup,prismTypescript,prismSass,prismScss,prismSql,i1,NavigatedViewer,rxjs,operators,flexLayout,ngxMarkdown,ng2Ckeditor,common,agGridAngular,ng2FileUpload,mydatepicker,core,agGridEnterprise,table,ngforage,core$1,ng2Dragula,platformBrowser,forms,material,i4,http,ng2SlimLoadingBar,i3,i0) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ngx-simple-crypt'), require('crypto-js'), require('moment'), require('clipboard'), require('prismjs'), require('prismjs/plugins/toolbar/prism-toolbar'), require('prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard'), require('prismjs/components/prism-css'), require('prismjs/components/prism-javascript'), require('prismjs/components/prism-java'), require('prismjs/components/prism-markup'), require('prismjs/components/prism-typescript'), require('prismjs/components/prism-sass'), require('prismjs/components/prism-scss'), require('prismjs/components/prism-sql'), require('@angular/common/http'), require('bpmn-js/lib/NavigatedViewer'), require('rxjs'), require('rxjs/operators'), require('@angular/flex-layout'), require('ngx-markdown'), require('ng2-ckeditor'), require('@angular/common'), require('ag-grid-angular'), require('ng2-file-upload'), require('mydatepicker'), require('@agm/core'), require('ag-grid-enterprise'), require('@angular/cdk/table'), require('ngforage'), require('@ngx-translate/core'), require('ng2-dragula'), require('@angular/platform-browser'), require('@angular/forms'), require('@angular/material'), require('@angular/router'), require('@angular/http'), require('ng2-slim-loading-bar'), require('ngx-toastr'), require('@angular/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@fluxhub/fluxhub-lib', ['exports', 'ngx-simple-crypt', 'crypto-js', 'moment', 'clipboard', 'prismjs', 'prismjs/plugins/toolbar/prism-toolbar', 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard', 'prismjs/components/prism-css', 'prismjs/components/prism-javascript', 'prismjs/components/prism-java', 'prismjs/components/prism-markup', 'prismjs/components/prism-typescript', 'prismjs/components/prism-sass', 'prismjs/components/prism-scss', 'prismjs/components/prism-sql', '@angular/common/http', 'bpmn-js/lib/NavigatedViewer', 'rxjs', 'rxjs/operators', '@angular/flex-layout', 'ngx-markdown', 'ng2-ckeditor', '@angular/common', 'ag-grid-angular', 'ng2-file-upload', 'mydatepicker', '@agm/core', 'ag-grid-enterprise', '@angular/cdk/table', 'ngforage', '@ngx-translate/core', 'ng2-dragula', '@angular/platform-browser', '@angular/forms', '@angular/material', '@angular/router', '@angular/http', 'ng2-slim-loading-bar', 'ngx-toastr', '@angular/core'], factory) :
|
|
4
|
+
(factory((global.fluxhub = global.fluxhub || {}, global.fluxhub['fluxhub-lib'] = {}),global.ngxSimpleCrypt,global.CryptoJS,global.momentNs,null,null,null,null,null,null,null,null,null,null,null,null,global.ng.common.http,global.NavigatedViewer,global.rxjs,global.rxjs.operators,global.ng['flex-layout'],global.ngxMarkdown,global.ng2Ckeditor,global.ng.common,global.agGridAngular,global.ng2FileUpload,global.mydatepicker,global.core,null,global.ng.cdk.table,global.ngforage,global.core$1,global.ng2Dragula,global.ng.platformBrowser,global.ng.forms,global.ng.material,global.ng.router,global.ng.http,global.ng2SlimLoadingBar,global.i3,global.ng.core));
|
|
5
|
+
}(this, (function (exports,ngxSimpleCrypt,CryptoJS,momentNs,clipboard,prismjs,prismToolbar,prismCopyToClipboard,prismCss,prismJavascript,prismJava,prismMarkup,prismTypescript,prismSass,prismScss,prismSql,i1,NavigatedViewer,rxjs,operators,flexLayout,ngxMarkdown,ng2Ckeditor,common,agGridAngular,ng2FileUpload,mydatepicker,core,agGridEnterprise,table,ngforage,core$1,ng2Dragula,platformBrowser,forms,material,i4,http,ng2SlimLoadingBar,i3,i0) { 'use strict';
|
|
6
6
|
|
|
7
7
|
NavigatedViewer = NavigatedViewer && NavigatedViewer.hasOwnProperty('default') ? NavigatedViewer['default'] : NavigatedViewer;
|
|
8
8
|
|
|
@@ -3945,6 +3945,7 @@
|
|
|
3945
3945
|
}
|
|
3946
3946
|
p.system_dest = _this.system_dest;
|
|
3947
3947
|
p.field = _this.fields;
|
|
3948
|
+
console.log('filterModel ', params.filterModel);
|
|
3948
3949
|
if (_this.filters != null)
|
|
3949
3950
|
p.filter = _this.filters;
|
|
3950
3951
|
if (_this.fix_flt != "") {
|
|
@@ -6575,6 +6576,391 @@
|
|
|
6575
6576
|
* @fileoverview added by tsickle
|
|
6576
6577
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6577
6578
|
*/
|
|
6579
|
+
/** @type {?} */
|
|
6580
|
+
var moment = momentNs;
|
|
6581
|
+
/** @type {?} */
|
|
6582
|
+
var MOMENT_DATE_FORMATS = {
|
|
6583
|
+
parse: {
|
|
6584
|
+
dateInput: 'D/MM/YYYY'
|
|
6585
|
+
},
|
|
6586
|
+
display: {
|
|
6587
|
+
dateInput: 'DD/MM/YYYY',
|
|
6588
|
+
monthYearLabel: 'MMMM Y',
|
|
6589
|
+
dateA11yLabel: 'LL',
|
|
6590
|
+
monthYearA11yLabel: 'MMMM Y'
|
|
6591
|
+
}
|
|
6592
|
+
};
|
|
6593
|
+
/** @type {?} */
|
|
6594
|
+
var dateNames = [];
|
|
6595
|
+
for (var date = 1; date <= 31; date++) {
|
|
6596
|
+
dateNames.push(String(date));
|
|
6597
|
+
}
|
|
6598
|
+
var MomentDateAdapter = /** @class */ (function (_super) {
|
|
6599
|
+
__extends(MomentDateAdapter, _super);
|
|
6600
|
+
function MomentDateAdapter() {
|
|
6601
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
6602
|
+
_this.localeData = moment.localeData();
|
|
6603
|
+
return _this;
|
|
6604
|
+
}
|
|
6605
|
+
/**
|
|
6606
|
+
* @param {?} date
|
|
6607
|
+
* @return {?}
|
|
6608
|
+
*/
|
|
6609
|
+
MomentDateAdapter.prototype.getYear = /**
|
|
6610
|
+
* @param {?} date
|
|
6611
|
+
* @return {?}
|
|
6612
|
+
*/
|
|
6613
|
+
function (date) {
|
|
6614
|
+
return date.year();
|
|
6615
|
+
};
|
|
6616
|
+
/**
|
|
6617
|
+
* @param {?} date
|
|
6618
|
+
* @return {?}
|
|
6619
|
+
*/
|
|
6620
|
+
MomentDateAdapter.prototype.getMonth = /**
|
|
6621
|
+
* @param {?} date
|
|
6622
|
+
* @return {?}
|
|
6623
|
+
*/
|
|
6624
|
+
function (date) {
|
|
6625
|
+
return date.month();
|
|
6626
|
+
};
|
|
6627
|
+
/**
|
|
6628
|
+
* @param {?} date
|
|
6629
|
+
* @return {?}
|
|
6630
|
+
*/
|
|
6631
|
+
MomentDateAdapter.prototype.getDate = /**
|
|
6632
|
+
* @param {?} date
|
|
6633
|
+
* @return {?}
|
|
6634
|
+
*/
|
|
6635
|
+
function (date) {
|
|
6636
|
+
return date.date();
|
|
6637
|
+
};
|
|
6638
|
+
/**
|
|
6639
|
+
* @param {?} date
|
|
6640
|
+
* @return {?}
|
|
6641
|
+
*/
|
|
6642
|
+
MomentDateAdapter.prototype.getDayOfWeek = /**
|
|
6643
|
+
* @param {?} date
|
|
6644
|
+
* @return {?}
|
|
6645
|
+
*/
|
|
6646
|
+
function (date) {
|
|
6647
|
+
return date.day();
|
|
6648
|
+
};
|
|
6649
|
+
/**
|
|
6650
|
+
* @param {?} style
|
|
6651
|
+
* @return {?}
|
|
6652
|
+
*/
|
|
6653
|
+
MomentDateAdapter.prototype.getMonthNames = /**
|
|
6654
|
+
* @param {?} style
|
|
6655
|
+
* @return {?}
|
|
6656
|
+
*/
|
|
6657
|
+
function (style) {
|
|
6658
|
+
switch (style) {
|
|
6659
|
+
case 'long':
|
|
6660
|
+
return this.localeData.months();
|
|
6661
|
+
case 'short':
|
|
6662
|
+
return this.localeData.monthsShort();
|
|
6663
|
+
case 'narrow':
|
|
6664
|
+
return this.localeData.monthsShort().map(( /**
|
|
6665
|
+
* @param {?} month
|
|
6666
|
+
* @return {?}
|
|
6667
|
+
*/function (month) { return month[0]; }));
|
|
6668
|
+
}
|
|
6669
|
+
};
|
|
6670
|
+
/**
|
|
6671
|
+
* @return {?}
|
|
6672
|
+
*/
|
|
6673
|
+
MomentDateAdapter.prototype.getDateNames = /**
|
|
6674
|
+
* @return {?}
|
|
6675
|
+
*/
|
|
6676
|
+
function () {
|
|
6677
|
+
return dateNames;
|
|
6678
|
+
};
|
|
6679
|
+
/**
|
|
6680
|
+
* @param {?} style
|
|
6681
|
+
* @return {?}
|
|
6682
|
+
*/
|
|
6683
|
+
MomentDateAdapter.prototype.getDayOfWeekNames = /**
|
|
6684
|
+
* @param {?} style
|
|
6685
|
+
* @return {?}
|
|
6686
|
+
*/
|
|
6687
|
+
function (style) {
|
|
6688
|
+
switch (style) {
|
|
6689
|
+
case 'long':
|
|
6690
|
+
return this.localeData.weekdays();
|
|
6691
|
+
case 'short':
|
|
6692
|
+
return this.localeData.weekdaysShort();
|
|
6693
|
+
case 'narrow':
|
|
6694
|
+
return this.localeData.weekdaysShort();
|
|
6695
|
+
}
|
|
6696
|
+
};
|
|
6697
|
+
/**
|
|
6698
|
+
* @param {?} date
|
|
6699
|
+
* @return {?}
|
|
6700
|
+
*/
|
|
6701
|
+
MomentDateAdapter.prototype.getYearName = /**
|
|
6702
|
+
* @param {?} date
|
|
6703
|
+
* @return {?}
|
|
6704
|
+
*/
|
|
6705
|
+
function (date) {
|
|
6706
|
+
return String(date.year());
|
|
6707
|
+
};
|
|
6708
|
+
/**
|
|
6709
|
+
* @return {?}
|
|
6710
|
+
*/
|
|
6711
|
+
MomentDateAdapter.prototype.getFirstDayOfWeek = /**
|
|
6712
|
+
* @return {?}
|
|
6713
|
+
*/
|
|
6714
|
+
function () {
|
|
6715
|
+
return this.localeData.firstDayOfWeek();
|
|
6716
|
+
};
|
|
6717
|
+
/**
|
|
6718
|
+
* @param {?} date
|
|
6719
|
+
* @return {?}
|
|
6720
|
+
*/
|
|
6721
|
+
MomentDateAdapter.prototype.getNumDaysInMonth = /**
|
|
6722
|
+
* @param {?} date
|
|
6723
|
+
* @return {?}
|
|
6724
|
+
*/
|
|
6725
|
+
function (date) {
|
|
6726
|
+
return date.daysInMonth();
|
|
6727
|
+
};
|
|
6728
|
+
/**
|
|
6729
|
+
* @param {?} date
|
|
6730
|
+
* @return {?}
|
|
6731
|
+
*/
|
|
6732
|
+
MomentDateAdapter.prototype.clone = /**
|
|
6733
|
+
* @param {?} date
|
|
6734
|
+
* @return {?}
|
|
6735
|
+
*/
|
|
6736
|
+
function (date) {
|
|
6737
|
+
return date.clone();
|
|
6738
|
+
};
|
|
6739
|
+
/**
|
|
6740
|
+
* @param {?} year
|
|
6741
|
+
* @param {?} month
|
|
6742
|
+
* @param {?} date
|
|
6743
|
+
* @return {?}
|
|
6744
|
+
*/
|
|
6745
|
+
MomentDateAdapter.prototype.createDate = /**
|
|
6746
|
+
* @param {?} year
|
|
6747
|
+
* @param {?} month
|
|
6748
|
+
* @param {?} date
|
|
6749
|
+
* @return {?}
|
|
6750
|
+
*/
|
|
6751
|
+
function (year, month, date) {
|
|
6752
|
+
return moment([year, month, date]);
|
|
6753
|
+
};
|
|
6754
|
+
/**
|
|
6755
|
+
* @return {?}
|
|
6756
|
+
*/
|
|
6757
|
+
MomentDateAdapter.prototype.today = /**
|
|
6758
|
+
* @return {?}
|
|
6759
|
+
*/
|
|
6760
|
+
function () {
|
|
6761
|
+
return moment();
|
|
6762
|
+
};
|
|
6763
|
+
/**
|
|
6764
|
+
* @param {?} value
|
|
6765
|
+
* @param {?} parseFormat
|
|
6766
|
+
* @return {?}
|
|
6767
|
+
*/
|
|
6768
|
+
MomentDateAdapter.prototype.parse = /**
|
|
6769
|
+
* @param {?} value
|
|
6770
|
+
* @param {?} parseFormat
|
|
6771
|
+
* @return {?}
|
|
6772
|
+
*/
|
|
6773
|
+
function (value, parseFormat) {
|
|
6774
|
+
/** @type {?} */
|
|
6775
|
+
var m = moment(value, parseFormat, true);
|
|
6776
|
+
if (!m.isValid()) {
|
|
6777
|
+
m = moment(value);
|
|
6778
|
+
}
|
|
6779
|
+
if (m.isValid()) {
|
|
6780
|
+
return m;
|
|
6781
|
+
}
|
|
6782
|
+
return null;
|
|
6783
|
+
};
|
|
6784
|
+
/**
|
|
6785
|
+
* @param {?} date
|
|
6786
|
+
* @param {?} displayFormat
|
|
6787
|
+
* @return {?}
|
|
6788
|
+
*/
|
|
6789
|
+
MomentDateAdapter.prototype.format = /**
|
|
6790
|
+
* @param {?} date
|
|
6791
|
+
* @param {?} displayFormat
|
|
6792
|
+
* @return {?}
|
|
6793
|
+
*/
|
|
6794
|
+
function (date, displayFormat) {
|
|
6795
|
+
if (date) {
|
|
6796
|
+
return date.format(displayFormat);
|
|
6797
|
+
}
|
|
6798
|
+
return '';
|
|
6799
|
+
};
|
|
6800
|
+
/**
|
|
6801
|
+
* @param {?} date
|
|
6802
|
+
* @param {?} years
|
|
6803
|
+
* @return {?}
|
|
6804
|
+
*/
|
|
6805
|
+
MomentDateAdapter.prototype.addCalendarYears = /**
|
|
6806
|
+
* @param {?} date
|
|
6807
|
+
* @param {?} years
|
|
6808
|
+
* @return {?}
|
|
6809
|
+
*/
|
|
6810
|
+
function (date, years) {
|
|
6811
|
+
return date.clone().add(years, 'y');
|
|
6812
|
+
};
|
|
6813
|
+
/**
|
|
6814
|
+
* @param {?} date
|
|
6815
|
+
* @param {?} months
|
|
6816
|
+
* @return {?}
|
|
6817
|
+
*/
|
|
6818
|
+
MomentDateAdapter.prototype.addCalendarMonths = /**
|
|
6819
|
+
* @param {?} date
|
|
6820
|
+
* @param {?} months
|
|
6821
|
+
* @return {?}
|
|
6822
|
+
*/
|
|
6823
|
+
function (date, months) {
|
|
6824
|
+
return date.clone().add(months, 'M');
|
|
6825
|
+
};
|
|
6826
|
+
/**
|
|
6827
|
+
* @param {?} date
|
|
6828
|
+
* @param {?} days
|
|
6829
|
+
* @return {?}
|
|
6830
|
+
*/
|
|
6831
|
+
MomentDateAdapter.prototype.addCalendarDays = /**
|
|
6832
|
+
* @param {?} date
|
|
6833
|
+
* @param {?} days
|
|
6834
|
+
* @return {?}
|
|
6835
|
+
*/
|
|
6836
|
+
function (date, days) {
|
|
6837
|
+
return date.clone().add(days, 'd');
|
|
6838
|
+
};
|
|
6839
|
+
/**
|
|
6840
|
+
* @param {?} locale
|
|
6841
|
+
* @return {?}
|
|
6842
|
+
*/
|
|
6843
|
+
MomentDateAdapter.prototype.setLocale = /**
|
|
6844
|
+
* @param {?} locale
|
|
6845
|
+
* @return {?}
|
|
6846
|
+
*/
|
|
6847
|
+
function (locale) {
|
|
6848
|
+
this.localeData = moment.localeData(locale);
|
|
6849
|
+
};
|
|
6850
|
+
/**
|
|
6851
|
+
* @param {?} first
|
|
6852
|
+
* @param {?} second
|
|
6853
|
+
* @return {?}
|
|
6854
|
+
*/
|
|
6855
|
+
MomentDateAdapter.prototype.compareDate = /**
|
|
6856
|
+
* @param {?} first
|
|
6857
|
+
* @param {?} second
|
|
6858
|
+
* @return {?}
|
|
6859
|
+
*/
|
|
6860
|
+
function (first, second) {
|
|
6861
|
+
return first.diff(second, 'seconds', true);
|
|
6862
|
+
};
|
|
6863
|
+
/**
|
|
6864
|
+
* @param {?} first
|
|
6865
|
+
* @param {?} second
|
|
6866
|
+
* @return {?}
|
|
6867
|
+
*/
|
|
6868
|
+
MomentDateAdapter.prototype.sameDate = /**
|
|
6869
|
+
* @param {?} first
|
|
6870
|
+
* @param {?} second
|
|
6871
|
+
* @return {?}
|
|
6872
|
+
*/
|
|
6873
|
+
function (first, second) {
|
|
6874
|
+
if (first == null) {
|
|
6875
|
+
return second == null;
|
|
6876
|
+
}
|
|
6877
|
+
else if (momentNs.isMoment(first)) {
|
|
6878
|
+
return first.isSame(second);
|
|
6879
|
+
}
|
|
6880
|
+
return _super.prototype.sameDate.call(this, first, second);
|
|
6881
|
+
};
|
|
6882
|
+
/**
|
|
6883
|
+
* @param {?} date
|
|
6884
|
+
* @param {?=} min
|
|
6885
|
+
* @param {?=} max
|
|
6886
|
+
* @return {?}
|
|
6887
|
+
*/
|
|
6888
|
+
MomentDateAdapter.prototype.clampDate = /**
|
|
6889
|
+
* @param {?} date
|
|
6890
|
+
* @param {?=} min
|
|
6891
|
+
* @param {?=} max
|
|
6892
|
+
* @return {?}
|
|
6893
|
+
*/
|
|
6894
|
+
function (date, min, max) {
|
|
6895
|
+
if (min && date.isBefore(min)) {
|
|
6896
|
+
return min;
|
|
6897
|
+
}
|
|
6898
|
+
else if (max && date.isAfter(max)) {
|
|
6899
|
+
return max;
|
|
6900
|
+
}
|
|
6901
|
+
return date;
|
|
6902
|
+
};
|
|
6903
|
+
/**
|
|
6904
|
+
* @param {?} date
|
|
6905
|
+
* @return {?}
|
|
6906
|
+
*/
|
|
6907
|
+
MomentDateAdapter.prototype.isValid = /**
|
|
6908
|
+
* @param {?} date
|
|
6909
|
+
* @return {?}
|
|
6910
|
+
*/
|
|
6911
|
+
function (date) {
|
|
6912
|
+
return date.isValid();
|
|
6913
|
+
};
|
|
6914
|
+
/**
|
|
6915
|
+
* @param {?} obj
|
|
6916
|
+
* @return {?}
|
|
6917
|
+
*/
|
|
6918
|
+
MomentDateAdapter.prototype.isDateInstance = /**
|
|
6919
|
+
* @param {?} obj
|
|
6920
|
+
* @return {?}
|
|
6921
|
+
*/
|
|
6922
|
+
function (obj) {
|
|
6923
|
+
return moment.isMoment(obj);
|
|
6924
|
+
};
|
|
6925
|
+
/**
|
|
6926
|
+
* @param {?} date
|
|
6927
|
+
* @return {?}
|
|
6928
|
+
*/
|
|
6929
|
+
MomentDateAdapter.prototype.toIso8601 = /**
|
|
6930
|
+
* @param {?} date
|
|
6931
|
+
* @return {?}
|
|
6932
|
+
*/
|
|
6933
|
+
function (date) {
|
|
6934
|
+
return date.format();
|
|
6935
|
+
};
|
|
6936
|
+
/**
|
|
6937
|
+
* @param {?} iso8601String
|
|
6938
|
+
* @return {?}
|
|
6939
|
+
*/
|
|
6940
|
+
MomentDateAdapter.prototype.fromIso8601 = /**
|
|
6941
|
+
* @param {?} iso8601String
|
|
6942
|
+
* @return {?}
|
|
6943
|
+
*/
|
|
6944
|
+
function (iso8601String) {
|
|
6945
|
+
return moment(iso8601String);
|
|
6946
|
+
};
|
|
6947
|
+
/**
|
|
6948
|
+
* @return {?}
|
|
6949
|
+
*/
|
|
6950
|
+
MomentDateAdapter.prototype.invalid = /**
|
|
6951
|
+
* @return {?}
|
|
6952
|
+
*/
|
|
6953
|
+
function () {
|
|
6954
|
+
return undefined;
|
|
6955
|
+
};
|
|
6956
|
+
return MomentDateAdapter;
|
|
6957
|
+
}(material.DateAdapter));
|
|
6958
|
+
|
|
6959
|
+
/**
|
|
6960
|
+
* @fileoverview added by tsickle
|
|
6961
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6962
|
+
*/
|
|
6963
|
+
var ɵ0 = MOMENT_DATE_FORMATS;
|
|
6578
6964
|
var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
6579
6965
|
__extends(FHDatePickerComponent, _super);
|
|
6580
6966
|
function FHDatePickerComponent(dateAdapter, uti_s) {
|
|
@@ -6603,13 +6989,23 @@
|
|
|
6603
6989
|
* @return {?}
|
|
6604
6990
|
*/
|
|
6605
6991
|
function (s) {
|
|
6606
|
-
|
|
6992
|
+
console.log('s ', s);
|
|
6993
|
+
console.log('this.date_sel prima ', this.date_sel);
|
|
6607
6994
|
/** @type {?} */
|
|
6608
6995
|
var arr = s.split('/');
|
|
6609
6996
|
if (arr.length == 3) {
|
|
6610
|
-
|
|
6611
|
-
|
|
6997
|
+
console.log('arr[2]) < 3000 ', (parseInt(arr[2]) < 3000));
|
|
6998
|
+
console.log('parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31 ', (parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31));
|
|
6999
|
+
console.log('parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12 ', (parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12));
|
|
7000
|
+
if (parseInt(arr[2]) < 3000 && parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31 && parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12) {
|
|
7001
|
+
console.log('data ', arr);
|
|
7002
|
+
/** @type {?} */
|
|
7003
|
+
var dtp = new MomentDateAdapter();
|
|
7004
|
+
this.date_sel = dtp.createDate(parseInt(arr[2]), parseInt(arr[1]) - 1, parseInt(arr[0]));
|
|
7005
|
+
console.log('this.date_sel dopo ', this.date_sel);
|
|
6612
7006
|
}
|
|
7007
|
+
else
|
|
7008
|
+
console.log('data non valida! ', arr);
|
|
6613
7009
|
}
|
|
6614
7010
|
};
|
|
6615
7011
|
/**
|
|
@@ -6784,7 +7180,8 @@
|
|
|
6784
7180
|
{ type: i0.Component, args: [{
|
|
6785
7181
|
selector: 'FHDatePicker',
|
|
6786
7182
|
providers: [
|
|
6787
|
-
{ provide: material.
|
|
7183
|
+
{ provide: material.MAT_DATE_FORMATS, useValue: ɵ0 },
|
|
7184
|
+
{ provide: material.DateAdapter, useClass: MomentDateAdapter },
|
|
6788
7185
|
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: FHDatePickerComponent, multi: true },
|
|
6789
7186
|
],
|
|
6790
7187
|
template: "\n <div [hidden]=\"!show_buttons||!enabled\">\n <button mat-raised-button (click)=\"add_year()\">+1 Anno</button>\n <button mat-raised-button (click)=\"ini_year()\">Inizio Anno</button>\n <button mat-raised-button (click)=\"fin_year()\">Fine Anno</button>\n </div>\n\n <mat-form-field (click)=\"chxx($event)\">\n <input [disabled]=\"!enabled\" #pickerId (dateChange)=\"ch( $event)\" (focusout)=\"dt_chg($event.target.value)\"\n (click)=\"chxx($event)\" [(ngModel)]=\"date_sel\" matInput [matDatepicker]=\"picker\" placeholder=\"{{label}}\">\n <mat-datepicker-toggle matSuffix [for]=\"picker\" (click)=\"chxx($event)\"></mat-datepicker-toggle>\n <mat-datepicker (click)=\"chxx($event)\" #picker></mat-datepicker>\n </mat-form-field>\n\n ",
|
|
@@ -7975,18 +8372,26 @@
|
|
|
7975
8372
|
this.m_appService = m_appService;
|
|
7976
8373
|
this.label = "";
|
|
7977
8374
|
this.width = "";
|
|
8375
|
+
this.nota = false;
|
|
8376
|
+
this.nota_val = "";
|
|
7978
8377
|
}
|
|
7979
8378
|
/**
|
|
7980
8379
|
* @param {?} lab
|
|
7981
8380
|
* @param {?} myD
|
|
8381
|
+
* @param {?=} nota
|
|
7982
8382
|
* @return {?}
|
|
7983
8383
|
*/
|
|
7984
8384
|
FHWinComboSelect.prototype.set_selection = /**
|
|
7985
8385
|
* @param {?} lab
|
|
7986
8386
|
* @param {?} myD
|
|
8387
|
+
* @param {?=} nota
|
|
7987
8388
|
* @return {?}
|
|
7988
8389
|
*/
|
|
7989
|
-
function (lab, myD) {
|
|
8390
|
+
function (lab, myD, nota) {
|
|
8391
|
+
if (nota === void 0) {
|
|
8392
|
+
nota = false;
|
|
8393
|
+
}
|
|
8394
|
+
this.nota = nota;
|
|
7990
8395
|
this.label = lab;
|
|
7991
8396
|
for (var i = 0; i < myD.length; i++)
|
|
7992
8397
|
this.cmb_sel.add_option(myD[i]);
|
|
@@ -8002,6 +8407,7 @@
|
|
|
8002
8407
|
this.toastr.error('Selezionare un valore');
|
|
8003
8408
|
return;
|
|
8004
8409
|
}
|
|
8410
|
+
this.cmb_sel.getObj().nota = this.nota_val;
|
|
8005
8411
|
this.dialogRef.close(this.cmb_sel.getObj());
|
|
8006
8412
|
};
|
|
8007
8413
|
/**
|
|
@@ -8015,7 +8421,7 @@
|
|
|
8015
8421
|
FHWinComboSelect.decorators = [
|
|
8016
8422
|
{ type: i0.Component, args: [{
|
|
8017
8423
|
selector: 'fhwincomboselect',
|
|
8018
|
-
template: "\n <h2 mat-dialog-title [style.width]=\"width\">\n SELEZIONA {{label | uppercase}}\n </h2>\n <mat-dialog-content style=\"width:100%\">\n <div [style.width]=\"width\">\n <FHComboBox #cmb_sel [init_fill]=\"false\"></FHComboBox>\n </div>\n </mat-dialog-content>\n\n\n <mat-dialog-actions [style.width]=\"width\" style=\"text-align:center\">\n\n\n <button mat-raised-button color=\"primary\" (click)=\"ok()\">OK</button>\n <button mat-raised-button color=\"warn\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </mat-dialog-actions>\n "
|
|
8424
|
+
template: "\n <h2 mat-dialog-title [style.width]=\"width\">\n SELEZIONA {{label | uppercase}}\n </h2>\n <mat-dialog-content style=\"width:100%\">\n <div [style.width]=\"width\">\n <FHComboBox #cmb_sel [init_fill]=\"false\"></FHComboBox>\n </div>\n <mat-form-field *ngIf=\"nota\" >\n <textarea matInput placeholder=\"Nota\"[(ngModel)]=\"nota_val\" rows=\"12\"></textarea>\n </mat-form-field>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions [style.width]=\"width\" style=\"text-align:center\">\n\n\n <button mat-raised-button color=\"primary\" (click)=\"ok()\">OK</button>\n <button mat-raised-button color=\"warn\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </mat-dialog-actions>\n "
|
|
8019
8425
|
}] }
|
|
8020
8426
|
];
|
|
8021
8427
|
/** @nocollapse */
|
|
@@ -18331,28 +18737,30 @@
|
|
|
18331
18737
|
exports.dati_aggiuntivi = dati_aggiuntivi;
|
|
18332
18738
|
exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
|
|
18333
18739
|
exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;
|
|
18334
|
-
exports.ɵ
|
|
18335
|
-
exports.ɵ
|
|
18740
|
+
exports.ɵo = FHGridToolBarComponent;
|
|
18741
|
+
exports.ɵk = win_grid_help;
|
|
18336
18742
|
exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
|
|
18337
18743
|
exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
|
|
18338
18744
|
exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
|
|
18339
|
-
exports.ɵ
|
|
18745
|
+
exports.ɵm = FHViewerComponent;
|
|
18340
18746
|
exports.ɵf = SafePipe;
|
|
18341
18747
|
exports.ɵg = DecimalMask;
|
|
18748
|
+
exports.ɵi = MOMENT_DATE_FORMATS;
|
|
18749
|
+
exports.ɵj = MomentDateAdapter;
|
|
18342
18750
|
exports.ɵh = FHValueAccessor;
|
|
18343
|
-
exports.ɵ
|
|
18344
|
-
exports.ɵ
|
|
18345
|
-
exports.ɵ
|
|
18346
|
-
exports.ɵ
|
|
18347
|
-
exports.ɵ
|
|
18348
|
-
exports.ɵ
|
|
18349
|
-
exports.ɵ
|
|
18350
|
-
exports.ɵ
|
|
18351
|
-
exports.ɵ
|
|
18352
|
-
exports.ɵ
|
|
18353
|
-
exports.ɵ
|
|
18354
|
-
exports.ɵ
|
|
18355
|
-
exports.ɵ
|
|
18751
|
+
exports.ɵl = HighlightService;
|
|
18752
|
+
exports.ɵp = win_assegna;
|
|
18753
|
+
exports.ɵu = win_commenti;
|
|
18754
|
+
exports.ɵba = win_commento_sel_notif;
|
|
18755
|
+
exports.ɵq = win_conferma;
|
|
18756
|
+
exports.ɵv = win_info_doc;
|
|
18757
|
+
exports.ɵw = win_log;
|
|
18758
|
+
exports.ɵx = win_recupera_doc;
|
|
18759
|
+
exports.ɵy = win_riassegna_select_level;
|
|
18760
|
+
exports.ɵz = win_riassegna_select_user;
|
|
18761
|
+
exports.ɵr = win_select_canale;
|
|
18762
|
+
exports.ɵs = win_select_level;
|
|
18763
|
+
exports.ɵt = win_uploads;
|
|
18356
18764
|
|
|
18357
18765
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
18358
18766
|
|