@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';
@@ -989,121 +988,6 @@ NumericEditorComponent = __decorate([
989
988
  __metadata("design:paramtypes", [UtilityService])
990
989
  ], NumericEditorComponent);
991
990
 
992
- let DateComponent = class DateComponent {
993
- constructor(uti_s) {
994
- this.uti_s = uti_s;
995
- this.label = "";
996
- }
997
- setDt() {
998
- // 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");
999
- this.date_zz = (this.appdt.getValue());
1000
- this.params.api.stopEditing();
1001
- }
1002
- // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
1003
- ngAfterViewInit() {
1004
- // this.container.element.nativeElement.focus();
1005
- this.appdt.setFocus();
1006
- }
1007
- agInit(par) {
1008
- this.params = par;
1009
- if (par.value == null) {
1010
- this.date = null;
1011
- this.date_zz = null;
1012
- return;
1013
- } //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;}
1014
- if (new Date(par.value).getFullYear() == 1970) {
1015
- this.date = null;
1016
- this.date_zz = null;
1017
- return;
1018
- }
1019
- if (par.value.indexOf('--') != -1) {
1020
- this.date = null;
1021
- this.date_zz = null;
1022
- return;
1023
- } //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;}
1024
- this.date = new Date(par.value);
1025
- /* let a:Date=new Date();
1026
- a.setDate(a.getDate()+1);
1027
- if(this.date<a)this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate()); */
1028
- this.appdt.setValue(this.date);
1029
- this.date_zz = new Date(par.value);
1030
- }
1031
- getValue() {
1032
- // var dt:Date=new Date(Date.UTC(this.date_zz.getFullYear()-1900,this.date_zz.getMonth(),this.date_zz.getDate()));
1033
- // 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");
1034
- if (this.date_zz == null)
1035
- return null;
1036
- 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();
1037
- }
1038
- isPopup() {
1039
- return true;
1040
- }
1041
- onKeyDown(event) {
1042
- let key = event.which || event.keyCode;
1043
- if (key == 37 || // left
1044
- key == 39) { // right
1045
- // this.toggleMood();
1046
- event.stopPropagation();
1047
- }
1048
- }
1049
- };
1050
- DateComponent.ctorParameters = () => [
1051
- { type: UtilityService }
1052
- ];
1053
- __decorate([
1054
- ViewChild('container', { read: ViewContainerRef }),
1055
- __metadata("design:type", Object)
1056
- ], DateComponent.prototype, "container", void 0);
1057
- __decorate([
1058
- ViewChild('appdt'),
1059
- __metadata("design:type", Object)
1060
- ], DateComponent.prototype, "appdt", void 0);
1061
- DateComponent = __decorate([
1062
- Component({
1063
- selector: 'editor-cell',
1064
- template: `
1065
- <div #container fxLayout="row" class="mood" tabindex="0" (keydown)="onKeyDown($event)">
1066
-
1067
- <DtPicker [(ngModel)]="date" #appdt
1068
- [show_buttons]="false" ngDefaultControl
1069
-
1070
- >
1071
- </DtPicker>
1072
- <button mat-flat-button color="primary" (click)="setDt()">CONFERMA</button>
1073
-
1074
- </div>
1075
-
1076
-
1077
- `,
1078
- styles: [`
1079
- .mood {
1080
- border-radius: 15px;
1081
- border: 1px solid grey;
1082
- background: #e6e6e6;
1083
- padding: 15px;
1084
- text-align: center;
1085
- display: inline-block;
1086
- outline: none
1087
- }
1088
-
1089
- .default {
1090
- padding-left: 10px;
1091
- padding-right: 10px;
1092
- border: 1px solid transparent;
1093
- padding: 4px;
1094
- }
1095
-
1096
- .selected {
1097
- padding-left: 10px;
1098
- padding-right: 10px;
1099
- border: 1px solid lightgreen;
1100
- padding: 4px;
1101
- }
1102
- `]
1103
- }),
1104
- __metadata("design:paramtypes", [UtilityService])
1105
- ], DateComponent);
1106
-
1107
991
  let win_time_slider = class win_time_slider {
1108
992
  constructor(dialogRef, toastr, m_appService, uti_s) {
1109
993
  this.dialogRef = dialogRef;
@@ -8342,186 +8226,6 @@ ReplaceLineBreaks = __decorate([
8342
8226
  Pipe({ name: 'replaceLineBreaks' })
8343
8227
  ], ReplaceLineBreaks);
8344
8228
 
8345
- let DtPick = class DtPick {
8346
- constructor() {
8347
- this.label = '';
8348
- this.required = false;
8349
- this.show_buttons = false;
8350
- this.enabled = true;
8351
- this.min_date = null;
8352
- this.max_date = null;
8353
- this.change = new EventEmitter();
8354
- this.myDatePickerOptions = {
8355
- // other options...
8356
- width: '150px',
8357
- dateFormat: 'dd/mm/yyyy',
8358
- dayLabels: { su: 'Dom', mo: 'Lun', tu: 'Mar', we: 'Mer', th: 'Gio', fr: 'Ven', sa: 'Sab' },
8359
- monthLabels: {
8360
- 1: 'Gen',
8361
- 2: 'Feb',
8362
- 3: 'Mar',
8363
- 4: 'Apr',
8364
- 5: 'Mag',
8365
- 6: 'Giu',
8366
- 7: 'Lug',
8367
- 8: 'Ago',
8368
- 9: 'Set',
8369
- 10: 'Ott',
8370
- 11: 'Nov',
8371
- 12: 'Dic'
8372
- }
8373
- };
8374
- this.date_sel = null;
8375
- }
8376
- setFocus() {
8377
- this.dtc.setFocusToInputBox();
8378
- }
8379
- dt_ch() {
8380
- setTimeout(() => {
8381
- this.change.emit();
8382
- }, 50);
8383
- }
8384
- add_year() {
8385
- this.date_sel = {
8386
- date: {
8387
- year: this.date_sel.date.year + 1,
8388
- month: this.date_sel.date.month,
8389
- day: this.date_sel.date.day
8390
- }
8391
- };
8392
- this.change.emit();
8393
- }
8394
- ini_year() {
8395
- this.date_sel = { date: { year: new Date().getFullYear(), month: 1, day: 1 } };
8396
- this.change.emit();
8397
- }
8398
- fin_year() {
8399
- this.date_sel = { date: { year: new Date().getFullYear(), month: 12, day: 31 } };
8400
- this.change.emit();
8401
- }
8402
- getValue() {
8403
- /*
8404
- console.log(this.date_sel);
8405
- console.log(this.date_sel.date.year);
8406
- console.log( this.date_sel.date.month-1);
8407
- console.log( this.date_sel.date.day);*/
8408
- if (this.date_sel == null)
8409
- return null;
8410
- return new Date(this.date_sel.date.year, this.date_sel.date.month - 1, this.date_sel.date.day);
8411
- }
8412
- ngOnInit() {
8413
- this.setLimits();
8414
- // this.myDatePickerOptions.componentDisabled=!this.enabled;
8415
- }
8416
- getCopyOfOptions() {
8417
- return JSON.parse(JSON.stringify(this.myDatePickerOptions));
8418
- }
8419
- setLimits() {
8420
- let copy = this.getCopyOfOptions();
8421
- if (this.min_date != null) {
8422
- this.min_date.setDate(this.min_date.getDate() - 1);
8423
- copy.disableUntil = {
8424
- year: this.min_date.getFullYear(),
8425
- month: this.min_date.getMonth() + 1,
8426
- day: this.min_date.getDate()
8427
- };
8428
- }
8429
- ;
8430
- if (this.max_date != null) {
8431
- this.max_date.setDate(this.max_date.getDate() + 1);
8432
- copy.disableSince = {
8433
- year: this.max_date.getFullYear(),
8434
- month: this.max_date.getMonth() + 1,
8435
- day: this.max_date.getDate()
8436
- };
8437
- }
8438
- ;
8439
- this.myDatePickerOptions = copy;
8440
- }
8441
- setToday() {
8442
- this.date_sel = {
8443
- date: {
8444
- year: new Date().getFullYear(),
8445
- month: new Date().getMonth() + 1,
8446
- day: new Date().getDate()
8447
- }
8448
- };
8449
- }
8450
- setValue(d) {
8451
- //console.log('setValue');
8452
- //console.log(d);
8453
- if (d == null) {
8454
- this.date_sel = null;
8455
- return;
8456
- }
8457
- this.date_sel = { date: { year: d.getFullYear(), month: d.getMonth() + 1, day: d.getDate() } };
8458
- }
8459
- };
8460
- __decorate([
8461
- Input(),
8462
- __metadata("design:type", String)
8463
- ], DtPick.prototype, "label", void 0);
8464
- __decorate([
8465
- Input(),
8466
- __metadata("design:type", Boolean)
8467
- ], DtPick.prototype, "required", void 0);
8468
- __decorate([
8469
- Input(),
8470
- __metadata("design:type", Boolean)
8471
- ], DtPick.prototype, "show_buttons", void 0);
8472
- __decorate([
8473
- Input(),
8474
- __metadata("design:type", Boolean)
8475
- ], DtPick.prototype, "enabled", void 0);
8476
- __decorate([
8477
- Input(),
8478
- __metadata("design:type", Date)
8479
- ], DtPick.prototype, "min_date", void 0);
8480
- __decorate([
8481
- Input(),
8482
- __metadata("design:type", Date)
8483
- ], DtPick.prototype, "max_date", void 0);
8484
- __decorate([
8485
- Output(),
8486
- __metadata("design:type", EventEmitter)
8487
- ], DtPick.prototype, "change", void 0);
8488
- __decorate([
8489
- ViewChild('appdt'),
8490
- __metadata("design:type", MyDatePicker)
8491
- ], DtPick.prototype, "dtc", void 0);
8492
- DtPick = __decorate([
8493
- Component({
8494
- selector: 'DtPicker',
8495
- template: `
8496
- <div [hidden]="!show_buttons||!enabled">
8497
- <button mat-flat-button style="background-color: #F5F5F5" (click)="add_year()">+1 Anno</button>
8498
- <button mat-flat-button style="background-color: #F5F5F5" (click)="ini_year()">Inizio Anno</button>
8499
- <button mat-flat-button style="background-color: #F5F5F5" (click)="fin_year()">Fine Anno</button>
8500
- </div>
8501
-
8502
- <div class="lb_small_grigia">{{label}}</div>
8503
- <my-date-picker (dateChanged)="dt_ch()" #appdt [options]="myDatePickerOptions" *ngIf="enabled"
8504
- [(ngModel)]="date_sel"></my-date-picker>
8505
-
8506
- <div *ngIf="!enabled" class="label_dis">
8507
- {{this.date_sel?.date.day}}/{{this.date_sel?.date.month}}/{{this.date_sel?.date.year}}
8508
- </div>
8509
- `,
8510
- styles: [`
8511
- .lb_small_grigia {
8512
- font-size: 12px;
8513
- color: #B8B8B8;
8514
- }
8515
-
8516
- .label_dis {
8517
- font-size: 14px;
8518
- font-weight: bold;
8519
- }
8520
- `]
8521
- }),
8522
- __metadata("design:paramtypes", [])
8523
- ], DtPick);
8524
-
8525
8229
  let FHPickListComponent = class FHPickListComponent {
8526
8230
  constructor(dialogRef, _dataService, toastr) {
8527
8231
  this.dialogRef = dialogRef;
@@ -15966,22 +15670,22 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
15966
15670
  MatPaginatorModule,
15967
15671
  MatSortModule,
15968
15672
  MatTableModule,
15969
- MatNativeDateModule, MyDatePickerModule, FileUploadModule, AgGridModule.withComponents([NumericEditorComponent, DateComponent]), CommonModule, DragulaModule, FormsModule,
15673
+ MatNativeDateModule, FileUploadModule, AgGridModule.withComponents([NumericEditorComponent]), CommonModule, DragulaModule, FormsModule,
15970
15674
  AgmCoreModule.forRoot({
15971
15675
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
15972
15676
  }),
15973
15677
  FlexLayoutModule, MarkdownModule, CKEditorModule],
15974
15678
  exports: [FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
15975
- FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
15679
+ FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
15976
15680
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
15977
- ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
15681
+ ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
15978
15682
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
15979
15683
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
15980
15684
  declarations: [FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
15981
15685
  fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
15982
- FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
15686
+ FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
15983
15687
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
15984
- ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
15688
+ ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
15985
15689
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent,
15986
15690
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, win_salva_annulla, win_assegna,
15987
15691
  win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level,
@@ -16171,5 +15875,5 @@ class dt {
16171
15875
  * Generated bundle index. Do not edit.
16172
15876
  */
16173
15877
 
16174
- 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 };
15878
+ 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 };
16175
15879
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map