@fluxhub/fluxhub-lib 10.0.9 → 10.0.11
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 +28 -6
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +11 -2
- package/esm2015/lib/controls/fhtimepicker.js +110 -13
- package/fesm2015/fluxhub-fluxhub-lib.js +119 -13
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid.d.ts +1 -0
- package/lib/controls/fhtimepicker.d.ts +7 -3
- package/package.json +1 -2
|
@@ -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 > \n <div fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <div *ngIf=\"enabled\"
|
|
3566
|
-
styles: ["\n .hhh {\n height: 63px;\n width: 100px;\n background-color: rgba(255, 0, 0, 0.1);\n }\n\n .
|
|
3573
|
+
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-raised-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-raised-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 ",
|
|
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
|
};
|
|
@@ -4888,6 +4901,7 @@
|
|
|
4888
4901
|
this.dclicked = new i0.EventEmitter();
|
|
4889
4902
|
this.columndclicked = new i0.EventEmitter();
|
|
4890
4903
|
this.cell_clicked = new i0.EventEmitter();
|
|
4904
|
+
this.custom_export = false;
|
|
4891
4905
|
this.toolbar_type = "NONE";
|
|
4892
4906
|
this.toolbar_wkfapp = null;
|
|
4893
4907
|
this.toolbar_custom_commands = [];
|
|
@@ -5643,6 +5657,10 @@
|
|
|
5643
5657
|
};
|
|
5644
5658
|
FHGridComponent.prototype.onBtExport = function () {
|
|
5645
5659
|
this.export_excel();
|
|
5660
|
+
if (this.custom_export) {
|
|
5661
|
+
this.command.emit({ cmd: "export_excel" });
|
|
5662
|
+
return;
|
|
5663
|
+
}
|
|
5646
5664
|
/*
|
|
5647
5665
|
var params = {
|
|
5648
5666
|
skipHeader: false,
|
|
@@ -5920,7 +5938,10 @@
|
|
|
5920
5938
|
});
|
|
5921
5939
|
};
|
|
5922
5940
|
FHGridComponent.prototype.print = function () {
|
|
5923
|
-
this.
|
|
5941
|
+
if (this.custom_export)
|
|
5942
|
+
this.command.emit({ cmd: "print_pdf" });
|
|
5943
|
+
else
|
|
5944
|
+
this.export_excel("pdf");
|
|
5924
5945
|
};
|
|
5925
5946
|
FHGridComponent.prototype.init_conf = function () {
|
|
5926
5947
|
// console.log(" init_conf()");
|
|
@@ -6398,6 +6419,7 @@
|
|
|
6398
6419
|
dclicked: [{ type: i0.Output }],
|
|
6399
6420
|
columndclicked: [{ type: i0.Output }],
|
|
6400
6421
|
cell_clicked: [{ type: i0.Output }],
|
|
6422
|
+
custom_export: [{ type: i0.Input }],
|
|
6401
6423
|
toolbar_type: [{ type: i0.Input }],
|
|
6402
6424
|
toolbar_wkfapp: [{ type: i0.Input }],
|
|
6403
6425
|
toolbar_custom_commands: [{ type: i0.Input }],
|