@fluxhub/fluxhub-lib 9.0.19 → 9.0.21
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 +24 -15
- 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/fhcurrencyfield.js +5 -13
- package/esm2015/lib/controls/win_combo_select.js +24 -7
- package/esm5/lib/controls/fhcurrencyfield.js +5 -13
- package/esm5/lib/controls/win_combo_select.js +24 -7
- package/fesm2015/fluxhub-fluxhub-lib.js +26 -17
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +26 -17
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_combo_select.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3007,13 +3007,28 @@
|
|
|
3007
3007
|
}());
|
|
3008
3008
|
|
|
3009
3009
|
var FHWinComboSelect = /** @class */ (function () {
|
|
3010
|
-
function FHWinComboSelect(dialogRef, toastr) {
|
|
3010
|
+
function FHWinComboSelect(dialogRef, toastr, data) {
|
|
3011
3011
|
this.dialogRef = dialogRef;
|
|
3012
3012
|
this.toastr = toastr;
|
|
3013
|
+
this.data = data;
|
|
3013
3014
|
this.label = "";
|
|
3014
3015
|
this.width = "100%";
|
|
3015
3016
|
this.nota = false;
|
|
3016
3017
|
this.nota_val = "";
|
|
3018
|
+
if (data == null)
|
|
3019
|
+
return;
|
|
3020
|
+
if (data != null) {
|
|
3021
|
+
var lab = '';
|
|
3022
|
+
var arrd = [];
|
|
3023
|
+
var nota = false;
|
|
3024
|
+
if (data.label != null)
|
|
3025
|
+
lab = data.label;
|
|
3026
|
+
if (data.arr_option != null)
|
|
3027
|
+
arrd = data.arr_option;
|
|
3028
|
+
if (data.nota != null)
|
|
3029
|
+
nota = data.nota;
|
|
3030
|
+
this.set_selection(lab, arrd, nota);
|
|
3031
|
+
}
|
|
3017
3032
|
}
|
|
3018
3033
|
FHWinComboSelect.prototype.close = function () { this.dialogRef.close(null); };
|
|
3019
3034
|
FHWinComboSelect.prototype.set_selection = function (lab, myD, nota) {
|
|
@@ -3035,7 +3050,8 @@
|
|
|
3035
3050
|
};
|
|
3036
3051
|
FHWinComboSelect.ctorParameters = function () { return [
|
|
3037
3052
|
{ type: dialog.MatDialogRef },
|
|
3038
|
-
{ type: ngxToastr.ToastrService }
|
|
3053
|
+
{ type: ngxToastr.ToastrService },
|
|
3054
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
3039
3055
|
]; };
|
|
3040
3056
|
__decorate([
|
|
3041
3057
|
core.ViewChild('cmb_sel'),
|
|
@@ -3046,7 +3062,8 @@
|
|
|
3046
3062
|
selector: 'fhwincomboselect',
|
|
3047
3063
|
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <div fxLayout=\"column\">\n <mat-dialog-content style=\"font-size: 12px;\" >\n\n <div fxLayout=\"column\">\n <h3>\n {{label | uppercase}}\n </h3>\n <FHComboBox #cmb_sel [init_fill]=\"false\"></FHComboBox>\n <mat-form-field *ngIf=\"nota\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Nota</mat-label>\n <textarea matInput [(ngModel)]=\"nota_val\" rows=\"12\"></textarea>\n </mat-form-field>\n </div>\n </mat-dialog-content>\n\n\n <mat-dialog-actions fxFlex=\"100\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button> \n <button mat-flat-button color=\"warn\" (click)=\"close()\">ANNULLA</button>\n </mat-dialog-actions>\n </div>\n "
|
|
3048
3064
|
}),
|
|
3049
|
-
|
|
3065
|
+
__param(2, core.Inject(dialog.MAT_DIALOG_DATA)),
|
|
3066
|
+
__metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, Object])
|
|
3050
3067
|
], FHWinComboSelect);
|
|
3051
3068
|
return FHWinComboSelect;
|
|
3052
3069
|
}());
|
|
@@ -8161,10 +8178,8 @@
|
|
|
8161
8178
|
FHCurrencyFieldComponent.prototype.chg = function () {
|
|
8162
8179
|
var _this = this;
|
|
8163
8180
|
setTimeout(function () {
|
|
8164
|
-
console.log(' chg() -> ', _this.formattedAmount);
|
|
8165
8181
|
_this.value = parseFloat(_this.formattedAmount.split('.').join('').split(',').join('.'));
|
|
8166
|
-
|
|
8167
|
-
// this.onChange(this.value);
|
|
8182
|
+
_this.onChange(_this.value);
|
|
8168
8183
|
}, 50);
|
|
8169
8184
|
};
|
|
8170
8185
|
FHCurrencyFieldComponent.prototype.writeValue = function (value) {
|
|
@@ -8173,10 +8188,9 @@
|
|
|
8173
8188
|
// if (value !== this.innerValue) {
|
|
8174
8189
|
this.innerValue = value;
|
|
8175
8190
|
this.value = value;
|
|
8176
|
-
console.log(' writeValue() -> ', this.value);
|
|
8177
8191
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8178
|
-
|
|
8179
|
-
//this.onChange(this.value);
|
|
8192
|
+
//}
|
|
8193
|
+
// this.onChange(this.value);
|
|
8180
8194
|
};
|
|
8181
8195
|
FHCurrencyFieldComponent.prototype.registerOnChange = function (fn) {
|
|
8182
8196
|
this.onChange = fn;
|
|
@@ -8204,7 +8218,6 @@
|
|
|
8204
8218
|
};
|
|
8205
8219
|
FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
|
|
8206
8220
|
if (fractionSize === void 0) { fractionSize = 2; }
|
|
8207
|
-
console.log('ini trasform() -> ', value, fractionSize);
|
|
8208
8221
|
var _a = __read((value || "").toString().split('.'), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
|
|
8209
8222
|
fraction = fractionSize > 0
|
|
8210
8223
|
? ',' + (fraction + '000000').substring(0, fractionSize)
|
|
@@ -8212,11 +8225,7 @@
|
|
|
8212
8225
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
|
|
8213
8226
|
if (integer == '')
|
|
8214
8227
|
integer = '0';
|
|
8215
|
-
|
|
8216
|
-
if (fractionSize > 0)
|
|
8217
|
-
return integer + fraction;
|
|
8218
|
-
else
|
|
8219
|
-
return integer;
|
|
8228
|
+
return integer + fraction;
|
|
8220
8229
|
};
|
|
8221
8230
|
FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
|
|
8222
8231
|
try {
|