@fluxhub/fluxhub-lib 10.0.457 → 10.0.459
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 +7 -5
- 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/esm2015/lib/controls/fhtimepicker.js +16 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +15 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhtimepicker.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3515,6 +3515,7 @@
|
|
|
3515
3515
|
this.vertical = false;
|
|
3516
3516
|
this.label_hh = "";
|
|
3517
3517
|
this.label_mm = "";
|
|
3518
|
+
this.step = 1;
|
|
3518
3519
|
this.arr_hh = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10'];
|
|
3519
3520
|
this.arr_mm = ['0', '10', '15', '30', '45'];
|
|
3520
3521
|
this.show_picker = false;
|
|
@@ -3544,14 +3545,14 @@
|
|
|
3544
3545
|
this.sc();
|
|
3545
3546
|
};
|
|
3546
3547
|
FHTimePickerComponent.prototype.upm = function () {
|
|
3547
|
-
if (this.m < 60) {
|
|
3548
|
-
this.m
|
|
3548
|
+
if (this.m + this.step < 60) {
|
|
3549
|
+
this.m += this.step;
|
|
3549
3550
|
}
|
|
3550
3551
|
this.sc();
|
|
3551
3552
|
};
|
|
3552
3553
|
FHTimePickerComponent.prototype.dom = function () {
|
|
3553
|
-
if (this.m
|
|
3554
|
-
this.m
|
|
3554
|
+
if (this.m - this.step >= 0) {
|
|
3555
|
+
this.m -= this.step;
|
|
3555
3556
|
}
|
|
3556
3557
|
this.sc();
|
|
3557
3558
|
};
|
|
@@ -3708,7 +3709,7 @@
|
|
|
3708
3709
|
{ type: i0.Component, args: [{
|
|
3709
3710
|
selector: "FHTimePicker",
|
|
3710
3711
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
|
|
3711
|
-
template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" [hidden]=\"vertical && enabled\" >\n <b>{{ label }}</b\n > \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 <b style=\"font-size:28px\">:</b> \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\"> \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 \n <div *ngFor=\"let u of arr_hh\" [hidden]=\"!enabled\">\n <button mat-flat-button color=\"primary\" (click)=\"setta_h(u)\" class=\"pad_b\">\n {{u}}\n </button> \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\"> \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 \n <div *ngFor=\"let u of arr_mm\" [hidden]=\"!enabled\">\n <button mat-flat-button color=\"primary\" (click)=\"setta_m(u)\" class=\"pad_b\">\n {{u}}\n </button> \n </div>\n </div>\n\n </div>\n </div>\n </div>\n\n ",
|
|
3712
|
+
template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" [hidden]=\"vertical && enabled\" >\n <b>{{ label }}</b\n > \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\n />\n <div *ngIf=\"enabled\">\n <mat-icon (click)=\"doh()\"\n >keyboard_arrow_down</mat-icon\n >\n </div>\n </div>\n\n <b style=\"font-size:28px\">:</b> \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\n step=\"step\"\n style=\"width:40px;text-align:center;\"\n (keydown)=\"onKeyDown1($event)\"\n (focusout)=\"onMi()\"\n [disabled]=\"!enabled\"\n [(ngModel)]=\"m\"\n\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\"> \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 />\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 \n <div *ngFor=\"let u of arr_hh\" [hidden]=\"!enabled\">\n <button mat-flat-button color=\"primary\" (click)=\"setta_h(u)\" class=\"pad_b\">\n {{u}}\n </button> \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\"> \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 step=\"step\"\n\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 \n <div *ngFor=\"let u of arr_mm\" [hidden]=\"!enabled\">\n <button mat-flat-button color=\"primary\" (click)=\"setta_m(u)\" class=\"pad_b\">\n {{u}}\n </button> \n </div>\n </div>\n\n </div>\n </div>\n </div>\n\n ",
|
|
3712
3713
|
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 "]
|
|
3713
3714
|
},] }
|
|
3714
3715
|
];
|
|
@@ -3726,6 +3727,7 @@
|
|
|
3726
3727
|
vertical: [{ type: i0.Input }],
|
|
3727
3728
|
label_hh: [{ type: i0.Input }],
|
|
3728
3729
|
label_mm: [{ type: i0.Input }],
|
|
3730
|
+
step: [{ type: i0.Input }],
|
|
3729
3731
|
arr_hh: [{ type: i0.Input }],
|
|
3730
3732
|
arr_mm: [{ type: i0.Input }],
|
|
3731
3733
|
selchange: [{ type: i0.Output }]
|