@fluxhub/fluxhub-lib 10.0.486 → 10.0.488
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 +18 -8
- 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/fhnumeric.js +10 -3
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +5 -4
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +5 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +17 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhnumeric.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9509,6 +9509,7 @@
|
|
|
9509
9509
|
this.onTouched = function () { };
|
|
9510
9510
|
this.formattedAmount = "0,00";
|
|
9511
9511
|
this.value = 0.0;
|
|
9512
|
+
this.b_already_f = false;
|
|
9512
9513
|
}
|
|
9513
9514
|
FHNumericFieldComponent.prototype.keyDownFunctioncl = function (event) {
|
|
9514
9515
|
//console.log(event);
|
|
@@ -9590,11 +9591,18 @@
|
|
|
9590
9591
|
FHNumericFieldComponent.prototype.click_select_allf = function (element) {
|
|
9591
9592
|
var _this = this;
|
|
9592
9593
|
setTimeout(function () {
|
|
9593
|
-
_this.
|
|
9594
|
+
if (!_this.b_already_f)
|
|
9595
|
+
_this.el.nativeElement.select();
|
|
9596
|
+
_this.b_already_f = true;
|
|
9597
|
+
setTimeout(function () { _this.b_already_f = false; }, 1000);
|
|
9594
9598
|
}, 200);
|
|
9595
9599
|
};
|
|
9596
9600
|
FHNumericFieldComponent.prototype.select_allf = function (element) {
|
|
9597
|
-
this
|
|
9601
|
+
var _this = this;
|
|
9602
|
+
if (!this.b_already_f)
|
|
9603
|
+
this.el.nativeElement.select();
|
|
9604
|
+
this.b_already_f = true;
|
|
9605
|
+
setTimeout(function () { _this.b_already_f = false; }, 1000);
|
|
9598
9606
|
};
|
|
9599
9607
|
FHNumericFieldComponent.prototype.setFocus = function () {
|
|
9600
9608
|
this.el.nativeElement.focus();
|
|
@@ -17835,13 +17843,14 @@
|
|
|
17835
17843
|
if (!(arrd[i].op == 'add' && arrd[i].val == null && arrd[i].oldVal == ''))
|
|
17836
17844
|
if (!(arrd[i].val == arrd[i].oldVal))
|
|
17837
17845
|
if (!(arrd[i].val == '' && arrd[i].oldVal == '0'))
|
|
17838
|
-
if (!(arrd[i].val
|
|
17839
|
-
|
|
17846
|
+
if (!(arrd[i].val == '0' && arrd[i].oldVal == null))
|
|
17847
|
+
if (!(arrd[i].val instanceof Date))
|
|
17848
|
+
flt.push(arrd[i]);
|
|
17840
17849
|
for (var i = 0; i < arrd.length; i++)
|
|
17841
17850
|
if (arrd[i].val instanceof Date)
|
|
17842
17851
|
if (new Date(arrd[i].val).getTime() != new Date(arrd[i].oldVal).getTime())
|
|
17843
17852
|
flt.push(arrd[i]);
|
|
17844
|
-
console.log('arrx ', flt);
|
|
17853
|
+
console.log('arrx ', flt, edit_button, !edit_button || flt.length == 0);
|
|
17845
17854
|
if (!edit_button || flt.length == 0)
|
|
17846
17855
|
this.m_router.navigate([this.app_info.modulo_swf]);
|
|
17847
17856
|
else {
|
|
@@ -20840,13 +20849,14 @@
|
|
|
20840
20849
|
if (!(arrd[i].op == 'add' && arrd[i].val == null && arrd[i].oldVal == ''))
|
|
20841
20850
|
if (!(arrd[i].val == arrd[i].oldVal))
|
|
20842
20851
|
if (!(arrd[i].val == '' && arrd[i].oldVal == '0'))
|
|
20843
|
-
if (!(arrd[i].val
|
|
20844
|
-
|
|
20852
|
+
if (!(arrd[i].val == '0' && arrd[i].oldVal == null))
|
|
20853
|
+
if (!(arrd[i].val instanceof Date))
|
|
20854
|
+
flt.push(arrd[i]);
|
|
20845
20855
|
for (var i = 0; i < arrd.length; i++)
|
|
20846
20856
|
if (arrd[i].val instanceof Date)
|
|
20847
20857
|
if (new Date(arrd[i].val).getTime() != new Date(arrd[i].oldVal).getTime())
|
|
20848
20858
|
flt.push(arrd[i]);
|
|
20849
|
-
console.log('arrx ', flt);
|
|
20859
|
+
console.log('arrx ', flt, edit_button, !edit_button || flt.length == 0);
|
|
20850
20860
|
if (!edit_button || flt.length == 0)
|
|
20851
20861
|
this.m_router.navigate([this.app_info.modulo_swf]);
|
|
20852
20862
|
else {
|