@fluxhub/fluxhub-lib 10.0.9 → 10.0.10

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.
@@ -3368,9 +3368,6 @@
3368
3368
  multi: true,
3369
3369
  };
3370
3370
  var FHTimePickerComponent = /** @class */ (function () {
3371
- /**
3372
- *
3373
- */
3374
3371
  function FHTimePickerComponent(_dataService, dialog, m_appService, toastr, uti_s) {
3375
3372
  this._dataService = _dataService;
3376
3373
  this.dialog = dialog;
@@ -3380,6 +3377,11 @@
3380
3377
  this.maxore = 23;
3381
3378
  this.label = "";
3382
3379
  this.enabled = true;
3380
+ this.vertical = false;
3381
+ this.label_hh = "";
3382
+ this.label_mm = "";
3383
+ this.arr_hh = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10'];
3384
+ this.arr_mm = ['0', '10', '15', '30', '45'];
3383
3385
  this.show_picker = false;
3384
3386
  this.selchange = new i0.EventEmitter(); // it's preferable to use standart output: '(change)'
3385
3387
  this.ngChange = new i0.EventEmitter();
@@ -3389,6 +3391,12 @@
3389
3391
  this.onChange = function (_) { };
3390
3392
  this.onTouched = function () { };
3391
3393
  }
3394
+ FHTimePickerComponent.prototype.setta_h = function (o) {
3395
+ this.h = parseInt(o);
3396
+ };
3397
+ FHTimePickerComponent.prototype.setta_m = function (o) {
3398
+ this.m = parseInt(o);
3399
+ };
3392
3400
  FHTimePickerComponent.prototype.uph = function () {
3393
3401
  if (this.h < this.maxore) {
3394
3402
  this.h++;
@@ -3562,8 +3570,8 @@
3562
3570
  { type: i0.Component, args: [{
3563
3571
  selector: "FHTimePicker",
3564
3572
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
3565
- template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <b>{{ label }}</b\n >&nbsp;&nbsp;\n <div fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <div *ngIf=\"enabled\" class=\"yourClass\">\n <mat-icon (click)=\"uph()\">keyboard_arrow_up</mat-icon>\n </div>\n\n <input\n style=\"width:40px;text-align:center;\"\n (keydown)=\"onKeyDown($event)\"\n (focusout)=\"onFu()\"\n [disabled]=\"!enabled\"\n [(ngModel)]=\"h\"\n />\n <div class=\"yourClass\" *ngIf=\"enabled\">\n <mat-icon class=\"yourClass\" (click)=\"doh()\"\n >keyboard_arrow_down</mat-icon\n >\n </div>\n </div>\n\n &nbsp;&nbsp;<b style=\"font-size:28px\">:</b>&nbsp;&nbsp;\n\n <div fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <div class=\"yourClass\" *ngIf=\"enabled\">\n <mat-icon class=\"yourClass\" (click)=\"upm()\"\n >keyboard_arrow_up</mat-icon\n >\n </div>\n\n <input\n style=\"width:40px;text-align:center;\"\n (keydown)=\"onKeyDown1($event)\"\n (focusout)=\"onMi()\"\n [disabled]=\"!enabled\"\n [(ngModel)]=\"m\"\n />\n <div class=\"yourClass\" *ngIf=\"enabled\">\n <mat-icon class=\"yourClass\" (click)=\"dom()\"\n >keyboard_arrow_down</mat-icon\n >\n </div>\n </div>\n </div>\n ",
3566
- styles: ["\n .hhh {\n height: 63px;\n width: 100px;\n background-color: rgba(255, 0, 0, 0.1);\n }\n\n .yourClass {\n cursor: pointer;\n user-select: none;\n }\n "]
3573
+ template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" [hidden]=\"vertical && enabled\">\n <b>{{ label }}</b\n >&nbsp;&nbsp;\n <div fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <div *ngIf=\"enabled\" >\n <mat-icon (click)=\"uph()\">keyboard_arrow_up</mat-icon>\n </div>\n\n <input\n style=\"width:40px;text-align:center;\"\n (keydown)=\"onKeyDown($event)\"\n (focusout)=\"onFu()\"\n [disabled]=\"!enabled\"\n [(ngModel)]=\"h\"\n />\n <div *ngIf=\"enabled\">\n <mat-icon (click)=\"doh()\"\n >keyboard_arrow_down</mat-icon\n >\n </div>\n </div>\n\n &nbsp;&nbsp;<b style=\"font-size:28px\">:</b>&nbsp;&nbsp;\n\n <div fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <div *ngIf=\"enabled\">\n <mat-icon (click)=\"upm()\"\n >keyboard_arrow_up</mat-icon\n >\n </div>\n\n <input\n style=\"width:40px;text-align:center;\"\n (keydown)=\"onKeyDown1($event)\"\n (focusout)=\"onMi()\"\n [disabled]=\"!enabled\"\n [(ngModel)]=\"m\"\n />\n <div *ngIf=\"enabled\" style=\"pointer_mouse\">\n <mat-icon (click)=\"dom()\"\n style=\"pointer_mouse\" >keyboard_arrow_down</mat-icon\n >\n </div>\n </div>\n </div>\n\n\n <div fxLayout=\"column\" [hidden]=\"!vertical || !enabled\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <b style=\"min-width:70px\">{{ label_hh }}</b>\n <div fxLayout=\"column\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0px\">\n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\"> &nbsp;&nbsp; &nbsp;&nbsp;\n <div fxLayout=\"column\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0px\">\n <div *ngIf=\"enabled\" >\n <mat-icon (click)=\"uph()\">keyboard_arrow_up</mat-icon>\n </div>\n\n <input\n style=\"width:40px;text-align:center;\"\n (keydown)=\"onKeyDown($event)\"\n (focusout)=\"onFu()\"\n [disabled]=\"!enabled\"\n [(ngModel)]=\"h\"\n />\n <div *ngIf=\"enabled\" style=\"pointer_mouse\">\n <mat-icon (click)=\"doh()\"\n style=\"pointer_mouse\">keyboard_arrow_down</mat-icon\n >\n </div>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;\n <div *ngFor=\"let u of arr_hh\" [hidden]=\"!enabled\">\n <button mat-raised-button color=\"primary\" (click)=\"setta_h(u)\" class=\"pad_b\">\n {{u}}\n </button>&nbsp;\n </div>\n </div>\n\n </div>\n </div>\n\n\n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <b style=\"min-width:70px\">{{ label_mm }}</b>\n <div fxLayout=\"column\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0px\">\n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\"> &nbsp;&nbsp; &nbsp;&nbsp;\n <div fxLayout=\"column\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0px\">\n <div *ngIf=\"enabled\" style=\"pointer_mouse\">\n <mat-icon (click)=\"upm()\" style=\"pointer_mouse\">keyboard_arrow_up</mat-icon>\n </div>\n\n <input\n style=\"width:40px;text-align:center;\"\n (keydown)=\"onKeyDown1($event)\"\n (focusout)=\"onMi()\"\n [disabled]=\"!enabled\"\n [(ngModel)]=\"m\"\n />\n <div *ngIf=\"enabled\" style=\"pointer_mouse\">\n <mat-icon (click)=\"dom()\" style=\"pointer_mouse\"\n >keyboard_arrow_down</mat-icon\n >\n </div>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;\n <div *ngFor=\"let u of arr_mm\" [hidden]=\"!enabled\">\n <button mat-raised-button color=\"primary\" (click)=\"setta_m(u)\" class=\"pad_b\">\n {{u}}\n </button>&nbsp;\n </div>\n </div>\n\n </div>\n </div>\n </div>\n\n ",
3574
+ styles: ["\n.pad_b {\n padding-left: 5px !important;\n padding-right: 5px !important;\n padding-top: 0px !important;\n padding-bottom: 0px !important;\n min-width: 30px !important;\n min-height: 8px !important;\n font-size:14px !important;\n}\n\n .hhh {\n height: 63px;\n width: 100px;\n background-color: rgba(255, 0, 0, 0.1);\n }\n\n .pointer_mouse {\n cursor: pointer;\n user-select: none;\n }\n "]
3567
3575
  },] }
3568
3576
  ];
3569
3577
  FHTimePickerComponent.ctorParameters = function () { return [
@@ -3577,6 +3585,11 @@
3577
3585
  maxore: [{ type: i0.Input }],
3578
3586
  label: [{ type: i0.Input }],
3579
3587
  enabled: [{ type: i0.Input }],
3588
+ vertical: [{ type: i0.Input }],
3589
+ label_hh: [{ type: i0.Input }],
3590
+ label_mm: [{ type: i0.Input }],
3591
+ arr_hh: [{ type: i0.Input }],
3592
+ arr_mm: [{ type: i0.Input }],
3580
3593
  selchange: [{ type: i0.Output }],
3581
3594
  ngChange: [{ type: i0.Output, args: ["change",] }]
3582
3595
  };