ps-toolkit-ui 1.9.45 → 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 +18 -0
- 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 +6 -1
- package/esm2015/lib/components/form/vehicle/search/form.vehicle.search.component.js +13 -1
- package/fesm2015/ps-toolkit-ui.js +17 -0
- 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) {
|
|
@@ -5092,6 +5094,7 @@
|
|
|
5092
5094
|
this.part3.focus(true);
|
|
5093
5095
|
}
|
|
5094
5096
|
else if (a === 'ShiftTab' || a === 'ShiftEnter') {
|
|
5097
|
+
this.part1.focus(true);
|
|
5095
5098
|
}
|
|
5096
5099
|
}
|
|
5097
5100
|
else if (p === 'Part3') {
|
|
@@ -5125,6 +5128,7 @@
|
|
|
5125
5128
|
this.changeIndex.emit('Tab');
|
|
5126
5129
|
}
|
|
5127
5130
|
else if (a === 'ShiftTab' || a === 'ShiftEnter') {
|
|
5131
|
+
this.part1.focus(true);
|
|
5128
5132
|
}
|
|
5129
5133
|
}
|
|
5130
5134
|
}
|
|
@@ -5142,6 +5146,7 @@
|
|
|
5142
5146
|
FormPlaqueComponent.prototype.onFocusIn = function (e) {
|
|
5143
5147
|
if (e === void 0) { e = null; }
|
|
5144
5148
|
if (e == null || !(e.screenX && e.screenX !== 0 && e.screenY && e.screenY !== 0)) {
|
|
5149
|
+
this.part1.focus(true);
|
|
5145
5150
|
}
|
|
5146
5151
|
};
|
|
5147
5152
|
FormPlaqueComponent.prototype.onKeyDown = function (e) {
|
|
@@ -7002,6 +7007,19 @@
|
|
|
7002
7007
|
}
|
|
7003
7008
|
};
|
|
7004
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
|
+
}
|
|
7005
7023
|
};
|
|
7006
7024
|
return FormVehicleSearchComponent;
|
|
7007
7025
|
}());
|