@fluxhub/fluxhub-lib 1.1.0 → 1.1.1

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.
@@ -18,7 +18,6 @@ import { MatAutocomplete, MatAutocompleteModule } from '@angular/material/autoco
18
18
  import * as momentNs from 'moment';
19
19
  import { isMoment } from 'moment';
20
20
  import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatNativeDateModule } from '@angular/material/core';
21
- import { MyDatePicker, MyDatePickerModule } from 'mydatepicker';
22
21
  import { isPlatformBrowser, CommonModule } from '@angular/common';
23
22
  import 'clipboard';
24
23
  import 'prismjs';
@@ -1016,85 +1015,6 @@ var NumericEditorComponent = /** @class */ (function () {
1016
1015
  return NumericEditorComponent;
1017
1016
  }());
1018
1017
 
1019
- var DateComponent = /** @class */ (function () {
1020
- function DateComponent(uti_s) {
1021
- this.uti_s = uti_s;
1022
- this.label = "";
1023
- }
1024
- DateComponent.prototype.setDt = function () {
1025
- // console.log(this.date_zz.getFullYear().toString()+"-"+this.uti_s.format2cifre(this.date_zz.getMonth()+1)+"-"+this.uti_s.format2cifre(this.date_zz.getDate())+"T00:00:00");
1026
- this.date_zz = (this.appdt.getValue());
1027
- this.params.api.stopEditing();
1028
- };
1029
- // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
1030
- DateComponent.prototype.ngAfterViewInit = function () {
1031
- // this.container.element.nativeElement.focus();
1032
- this.appdt.setFocus();
1033
- };
1034
- DateComponent.prototype.agInit = function (par) {
1035
- this.params = par;
1036
- if (par.value == null) {
1037
- this.date = null;
1038
- this.date_zz = null;
1039
- return;
1040
- } //new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate(),0,0,0);this.appdt.setValue(this.date);this.date_zz= new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate(),0,0,0);return;}
1041
- if (new Date(par.value).getFullYear() == 1970) {
1042
- this.date = null;
1043
- this.date_zz = null;
1044
- return;
1045
- }
1046
- if (par.value.indexOf('--') != -1) {
1047
- this.date = null;
1048
- this.date_zz = null;
1049
- return;
1050
- } //this.date= new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate(),0,0,0);this.appdt.setValue(this.date);this.date_zz= new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate(),0,0,0);return;}
1051
- this.date = new Date(par.value);
1052
- /* let a:Date=new Date();
1053
- a.setDate(a.getDate()+1);
1054
- if(this.date<a)this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate()); */
1055
- this.appdt.setValue(this.date);
1056
- this.date_zz = new Date(par.value);
1057
- };
1058
- DateComponent.prototype.getValue = function () {
1059
- // var dt:Date=new Date(Date.UTC(this.date_zz.getFullYear()-1900,this.date_zz.getMonth(),this.date_zz.getDate()));
1060
- // console.log(this.date_zz.getFullYear().toString()+"-"+this.uti_s.format2cifre(this.date_zz.getMonth()+1)+"-"+this.uti_s.format2cifre(this.date_zz.getDate())+"T00:00:00");
1061
- if (this.date_zz == null)
1062
- return null;
1063
- return this.date_zz.getFullYear().toString() + "-" + this.uti_s.format2cifre(this.date_zz.getMonth() + 1) + "-" + this.uti_s.format2cifre(this.date_zz.getDate()) + "T00:00:00"; //this.date_zz.toJSON();
1064
- };
1065
- DateComponent.prototype.isPopup = function () {
1066
- return true;
1067
- };
1068
- DateComponent.prototype.onKeyDown = function (event) {
1069
- var key = event.which || event.keyCode;
1070
- if (key == 37 || // left
1071
- key == 39) { // right
1072
- // this.toggleMood();
1073
- event.stopPropagation();
1074
- }
1075
- };
1076
- DateComponent.ctorParameters = function () { return [
1077
- { type: UtilityService }
1078
- ]; };
1079
- __decorate([
1080
- ViewChild('container', { read: ViewContainerRef }),
1081
- __metadata("design:type", Object)
1082
- ], DateComponent.prototype, "container", void 0);
1083
- __decorate([
1084
- ViewChild('appdt'),
1085
- __metadata("design:type", Object)
1086
- ], DateComponent.prototype, "appdt", void 0);
1087
- DateComponent = __decorate([
1088
- Component({
1089
- selector: 'editor-cell',
1090
- template: "\n <div #container fxLayout=\"row\" class=\"mood\" tabindex=\"0\" (keydown)=\"onKeyDown($event)\">\n\n <DtPicker [(ngModel)]=\"date\" #appdt\n [show_buttons]=\"false\" ngDefaultControl\n\n >\n </DtPicker>\n <button mat-flat-button color=\"primary\" (click)=\"setDt()\">CONFERMA</button>\n\n </div>\n\n\n ",
1091
- styles: ["\n .mood {\n border-radius: 15px;\n border: 1px solid grey;\n background: #e6e6e6;\n padding: 15px;\n text-align: center;\n display: inline-block;\n outline: none\n }\n\n .default {\n padding-left: 10px;\n padding-right: 10px;\n border: 1px solid transparent;\n padding: 4px;\n }\n\n .selected {\n padding-left: 10px;\n padding-right: 10px;\n border: 1px solid lightgreen;\n padding: 4px;\n }\n "]
1092
- }),
1093
- __metadata("design:paramtypes", [UtilityService])
1094
- ], DateComponent);
1095
- return DateComponent;
1096
- }());
1097
-
1098
1018
  var win_time_slider = /** @class */ (function () {
1099
1019
  function win_time_slider(dialogRef, toastr, m_appService, uti_s) {
1100
1020
  this.dialogRef = dialogRef;
@@ -7597,164 +7517,6 @@ var ReplaceLineBreaks = /** @class */ (function () {
7597
7517
  return ReplaceLineBreaks;
7598
7518
  }());
7599
7519
 
7600
- var DtPick = /** @class */ (function () {
7601
- function DtPick() {
7602
- this.label = '';
7603
- this.required = false;
7604
- this.show_buttons = false;
7605
- this.enabled = true;
7606
- this.min_date = null;
7607
- this.max_date = null;
7608
- this.change = new EventEmitter();
7609
- this.myDatePickerOptions = {
7610
- // other options...
7611
- width: '150px',
7612
- dateFormat: 'dd/mm/yyyy',
7613
- dayLabels: { su: 'Dom', mo: 'Lun', tu: 'Mar', we: 'Mer', th: 'Gio', fr: 'Ven', sa: 'Sab' },
7614
- monthLabels: {
7615
- 1: 'Gen',
7616
- 2: 'Feb',
7617
- 3: 'Mar',
7618
- 4: 'Apr',
7619
- 5: 'Mag',
7620
- 6: 'Giu',
7621
- 7: 'Lug',
7622
- 8: 'Ago',
7623
- 9: 'Set',
7624
- 10: 'Ott',
7625
- 11: 'Nov',
7626
- 12: 'Dic'
7627
- }
7628
- };
7629
- this.date_sel = null;
7630
- }
7631
- DtPick.prototype.setFocus = function () {
7632
- this.dtc.setFocusToInputBox();
7633
- };
7634
- DtPick.prototype.dt_ch = function () {
7635
- var _this = this;
7636
- setTimeout(function () {
7637
- _this.change.emit();
7638
- }, 50);
7639
- };
7640
- DtPick.prototype.add_year = function () {
7641
- this.date_sel = {
7642
- date: {
7643
- year: this.date_sel.date.year + 1,
7644
- month: this.date_sel.date.month,
7645
- day: this.date_sel.date.day
7646
- }
7647
- };
7648
- this.change.emit();
7649
- };
7650
- DtPick.prototype.ini_year = function () {
7651
- this.date_sel = { date: { year: new Date().getFullYear(), month: 1, day: 1 } };
7652
- this.change.emit();
7653
- };
7654
- DtPick.prototype.fin_year = function () {
7655
- this.date_sel = { date: { year: new Date().getFullYear(), month: 12, day: 31 } };
7656
- this.change.emit();
7657
- };
7658
- DtPick.prototype.getValue = function () {
7659
- /*
7660
- console.log(this.date_sel);
7661
- console.log(this.date_sel.date.year);
7662
- console.log( this.date_sel.date.month-1);
7663
- console.log( this.date_sel.date.day);*/
7664
- if (this.date_sel == null)
7665
- return null;
7666
- return new Date(this.date_sel.date.year, this.date_sel.date.month - 1, this.date_sel.date.day);
7667
- };
7668
- DtPick.prototype.ngOnInit = function () {
7669
- this.setLimits();
7670
- // this.myDatePickerOptions.componentDisabled=!this.enabled;
7671
- };
7672
- DtPick.prototype.getCopyOfOptions = function () {
7673
- return JSON.parse(JSON.stringify(this.myDatePickerOptions));
7674
- };
7675
- DtPick.prototype.setLimits = function () {
7676
- var copy = this.getCopyOfOptions();
7677
- if (this.min_date != null) {
7678
- this.min_date.setDate(this.min_date.getDate() - 1);
7679
- copy.disableUntil = {
7680
- year: this.min_date.getFullYear(),
7681
- month: this.min_date.getMonth() + 1,
7682
- day: this.min_date.getDate()
7683
- };
7684
- }
7685
- ;
7686
- if (this.max_date != null) {
7687
- this.max_date.setDate(this.max_date.getDate() + 1);
7688
- copy.disableSince = {
7689
- year: this.max_date.getFullYear(),
7690
- month: this.max_date.getMonth() + 1,
7691
- day: this.max_date.getDate()
7692
- };
7693
- }
7694
- ;
7695
- this.myDatePickerOptions = copy;
7696
- };
7697
- DtPick.prototype.setToday = function () {
7698
- this.date_sel = {
7699
- date: {
7700
- year: new Date().getFullYear(),
7701
- month: new Date().getMonth() + 1,
7702
- day: new Date().getDate()
7703
- }
7704
- };
7705
- };
7706
- DtPick.prototype.setValue = function (d) {
7707
- //console.log('setValue');
7708
- //console.log(d);
7709
- if (d == null) {
7710
- this.date_sel = null;
7711
- return;
7712
- }
7713
- this.date_sel = { date: { year: d.getFullYear(), month: d.getMonth() + 1, day: d.getDate() } };
7714
- };
7715
- __decorate([
7716
- Input(),
7717
- __metadata("design:type", String)
7718
- ], DtPick.prototype, "label", void 0);
7719
- __decorate([
7720
- Input(),
7721
- __metadata("design:type", Boolean)
7722
- ], DtPick.prototype, "required", void 0);
7723
- __decorate([
7724
- Input(),
7725
- __metadata("design:type", Boolean)
7726
- ], DtPick.prototype, "show_buttons", void 0);
7727
- __decorate([
7728
- Input(),
7729
- __metadata("design:type", Boolean)
7730
- ], DtPick.prototype, "enabled", void 0);
7731
- __decorate([
7732
- Input(),
7733
- __metadata("design:type", Date)
7734
- ], DtPick.prototype, "min_date", void 0);
7735
- __decorate([
7736
- Input(),
7737
- __metadata("design:type", Date)
7738
- ], DtPick.prototype, "max_date", void 0);
7739
- __decorate([
7740
- Output(),
7741
- __metadata("design:type", EventEmitter)
7742
- ], DtPick.prototype, "change", void 0);
7743
- __decorate([
7744
- ViewChild('appdt'),
7745
- __metadata("design:type", MyDatePicker)
7746
- ], DtPick.prototype, "dtc", void 0);
7747
- DtPick = __decorate([
7748
- Component({
7749
- selector: 'DtPicker',
7750
- template: "\n <div [hidden]=\"!show_buttons||!enabled\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"add_year()\">+1 Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"ini_year()\">Inizio Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"fin_year()\">Fine Anno</button>\n </div>\n\n <div class=\"lb_small_grigia\">{{label}}</div>\n <my-date-picker (dateChanged)=\"dt_ch()\" #appdt [options]=\"myDatePickerOptions\" *ngIf=\"enabled\"\n [(ngModel)]=\"date_sel\"></my-date-picker>\n\n <div *ngIf=\"!enabled\" class=\"label_dis\">\n {{this.date_sel?.date.day}}/{{this.date_sel?.date.month}}/{{this.date_sel?.date.year}}\n </div>\n ",
7751
- styles: ["\n .lb_small_grigia {\n font-size: 12px;\n color: #B8B8B8;\n }\n\n .label_dis {\n font-size: 14px;\n font-weight: bold;\n }\n "]
7752
- }),
7753
- __metadata("design:paramtypes", [])
7754
- ], DtPick);
7755
- return DtPick;
7756
- }());
7757
-
7758
7520
  var FHPickListComponent = /** @class */ (function () {
7759
7521
  function FHPickListComponent(dialogRef, _dataService, toastr) {
7760
7522
  this.dialogRef = dialogRef;
@@ -14165,22 +13927,22 @@ var FluxhubLibModule = /** @class */ (function () {
14165
13927
  MatPaginatorModule,
14166
13928
  MatSortModule,
14167
13929
  MatTableModule,
14168
- MatNativeDateModule, MyDatePickerModule, FileUploadModule, AgGridModule.withComponents([NumericEditorComponent, DateComponent]), CommonModule, DragulaModule, FormsModule,
13930
+ MatNativeDateModule, FileUploadModule, AgGridModule.withComponents([NumericEditorComponent]), CommonModule, DragulaModule, FormsModule,
14169
13931
  AgmCoreModule.forRoot({
14170
13932
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
14171
13933
  }),
14172
13934
  FlexLayoutModule, MarkdownModule, CKEditorModule],
14173
13935
  exports: [FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
14174
- FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
13936
+ FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
14175
13937
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
14176
- ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
13938
+ ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
14177
13939
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
14178
13940
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
14179
13941
  declarations: [FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
14180
13942
  fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
14181
- FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
13943
+ FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
14182
13944
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
14183
- ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
13945
+ ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
14184
13946
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
14185
13947
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
14186
13948
  win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level,
@@ -14375,5 +14137,5 @@ var dt = /** @class */ (function () {
14375
14137
  * Generated bundle index. Do not edit.
14376
14138
  */
14377
14139
 
14378
- export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, DateComponent, DtPick, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, dt, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵb, win_riassegna_select_user as ɵba, win_sostituisci_utente as ɵbb, win_commento_sel_notif as ɵbc, win_manage_values as ɵbd, win_manage_roles as ɵbe, FHComboboxComponentFilter as ɵbf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, FHHelpButton as ɵf, SafePipe as ɵg, DecimalMask as ɵh, FHValueAccessor as ɵi, MOMENT_DATE_FORMATS as ɵj, MomentDateAdapter as ɵk, win_grid_help as ɵl, HighlightService as ɵm, FHViewerComponent as ɵn, FHGridToolBarComponent as ɵp, win_assegna as ɵq, win_conferma as ɵr, win_select_canale as ɵs, win_select_level as ɵt, win_uploads as ɵu, win_commenti as ɵv, win_info_doc as ɵw, win_log as ɵx, win_recupera_doc as ɵy, win_riassegna_select_level as ɵz };
14140
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, dt, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵb, win_riassegna_select_user as ɵba, win_sostituisci_utente as ɵbb, win_commento_sel_notif as ɵbc, win_manage_values as ɵbd, win_manage_roles as ɵbe, FHComboboxComponentFilter as ɵbf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, FHHelpButton as ɵf, SafePipe as ɵg, DecimalMask as ɵh, FHValueAccessor as ɵi, MOMENT_DATE_FORMATS as ɵj, MomentDateAdapter as ɵk, win_grid_help as ɵl, HighlightService as ɵm, FHViewerComponent as ɵn, FHGridToolBarComponent as ɵp, win_assegna as ɵq, win_conferma as ɵr, win_select_canale as ɵs, win_select_level as ɵt, win_uploads as ɵu, win_commenti as ɵv, win_info_doc as ɵw, win_log as ɵx, win_recupera_doc as ɵy, win_riassegna_select_level as ɵz };
14379
14141
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map