ps-toolkit-ui 1.9.46 → 1.9.47
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/ps-toolkit-ui.umd.js +35 -7
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/form/plaque/form.plaque.component.js +13 -1
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +9 -8
- package/esm2015/lib/components/form/vehicle/search/form.vehicle.search.component.js +14 -1
- package/fesm2015/ps-toolkit-ui.js +33 -7
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -4989,6 +4989,7 @@
|
|
|
4989
4989
|
_this.part3.focus(true);
|
|
4990
4990
|
}
|
|
4991
4991
|
else if (v.length === 0) {
|
|
4992
|
+
_this.part1.focus(true);
|
|
4992
4993
|
}
|
|
4993
4994
|
};
|
|
4994
4995
|
this.part3.onChange = function (v) {
|
|
@@ -5003,6 +5004,7 @@
|
|
|
5003
5004
|
_this.changeIndex.emit('Tab');
|
|
5004
5005
|
}
|
|
5005
5006
|
else if (v.length === 0 && _this.inp.type === exports.InputType.PlaqueM) {
|
|
5007
|
+
_this.part1.focus(true);
|
|
5006
5008
|
}
|
|
5007
5009
|
};
|
|
5008
5010
|
this.part4.onChange = function (v) {
|
|
@@ -5017,6 +5019,13 @@
|
|
|
5017
5019
|
this.inp.setValue = function (v) {
|
|
5018
5020
|
var parts = v.split('_');
|
|
5019
5021
|
if (_this.inp.type === exports.InputType.Plaque) {
|
|
5022
|
+
setTimeout(function () {
|
|
5023
|
+
_this.inp.value = v;
|
|
5024
|
+
_this.part1.value = parts[0];
|
|
5025
|
+
_this.part2.value = parts[1];
|
|
5026
|
+
_this.part3.value = parts[2];
|
|
5027
|
+
_this.part4.value = parts[3];
|
|
5028
|
+
}, 100);
|
|
5020
5029
|
}
|
|
5021
5030
|
else if (_this.inp.type === exports.InputType.PlaqueM || _this.inp.type === exports.InputType.PlaqueF) {
|
|
5022
5031
|
setTimeout(function () {
|
|
@@ -5085,6 +5094,7 @@
|
|
|
5085
5094
|
this.part3.focus(true);
|
|
5086
5095
|
}
|
|
5087
5096
|
else if (a === 'ShiftTab' || a === 'ShiftEnter') {
|
|
5097
|
+
this.part1.focus(true);
|
|
5088
5098
|
}
|
|
5089
5099
|
}
|
|
5090
5100
|
else if (p === 'Part3') {
|
|
@@ -5118,6 +5128,7 @@
|
|
|
5118
5128
|
this.changeIndex.emit('Tab');
|
|
5119
5129
|
}
|
|
5120
5130
|
else if (a === 'ShiftTab' || a === 'ShiftEnter') {
|
|
5131
|
+
this.part1.focus(true);
|
|
5121
5132
|
}
|
|
5122
5133
|
}
|
|
5123
5134
|
}
|
|
@@ -5135,6 +5146,7 @@
|
|
|
5135
5146
|
FormPlaqueComponent.prototype.onFocusIn = function (e) {
|
|
5136
5147
|
if (e === void 0) { e = null; }
|
|
5137
5148
|
if (e == null || !(e.screenX && e.screenX !== 0 && e.screenY && e.screenY !== 0)) {
|
|
5149
|
+
this.part1.focus(true);
|
|
5138
5150
|
}
|
|
5139
5151
|
};
|
|
5140
5152
|
FormPlaqueComponent.prototype.onKeyDown = function (e) {
|
|
@@ -6054,14 +6066,16 @@
|
|
|
6054
6066
|
}
|
|
6055
6067
|
};
|
|
6056
6068
|
FormTextboxComponent.prototype.onFocusIn = function (changeIndex) {
|
|
6069
|
+
var _this = this;
|
|
6057
6070
|
if (changeIndex === void 0) { changeIndex = false; }
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6071
|
+
setTimeout(function () {
|
|
6072
|
+
if (changeIndex) {
|
|
6073
|
+
_this.inputBase.nativeElement.select();
|
|
6074
|
+
}
|
|
6075
|
+
else {
|
|
6076
|
+
_this.inputBase.nativeElement.focus();
|
|
6077
|
+
}
|
|
6078
|
+
});
|
|
6065
6079
|
};
|
|
6066
6080
|
FormTextboxComponent.prototype.onFocusOut = function (e) {
|
|
6067
6081
|
if (this.inp.onFocusOut !== null) {
|
|
@@ -6989,9 +7003,23 @@
|
|
|
6989
7003
|
}
|
|
6990
7004
|
this.car.url = this.motor.url = this.carF.url = this.carG.url = this.driver.url = this.inp.url.replace('_{}', '_' + this.type);
|
|
6991
7005
|
if (!isEdit) {
|
|
7006
|
+
this.onFocusIn();
|
|
6992
7007
|
}
|
|
6993
7008
|
};
|
|
6994
7009
|
FormVehicleSearchComponent.prototype.onFocusIn = function () {
|
|
7010
|
+
var _this = this;
|
|
7011
|
+
if (this.type === exports.VehicleType.Car || this.type === exports.VehicleType.Motorcycle || this.type === exports.VehicleType.CarF || this.type === exports.VehicleType.CarG) {
|
|
7012
|
+
setTimeout(function () {
|
|
7013
|
+
$('#' + _this.inp.id + 'VehicleSearchInput' + ' .plaque-inp').click();
|
|
7014
|
+
$('#' + _this.inp.id + 'VehicleSearchInput' + ' #Part1TextInput .control').focus();
|
|
7015
|
+
}, 100);
|
|
7016
|
+
}
|
|
7017
|
+
else if (this.type === exports.VehicleType.Driver) {
|
|
7018
|
+
this.driver.focus();
|
|
7019
|
+
}
|
|
7020
|
+
else if (this.type === exports.VehicleType.Fingerprint) {
|
|
7021
|
+
this.fingerprint.focus();
|
|
7022
|
+
}
|
|
6995
7023
|
};
|
|
6996
7024
|
return FormVehicleSearchComponent;
|
|
6997
7025
|
}());
|