ps-toolkit-ui 1.9.43 → 1.9.44
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 +15 -6
- 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 +1 -4
- package/esm2015/lib/components/form/vehicle/search/form.vehicle.search.component.js +15 -4
- package/fesm2015/ps-toolkit-ui.js +14 -6
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -5145,9 +5145,6 @@
|
|
|
5145
5145
|
};
|
|
5146
5146
|
FormPlaqueComponent.prototype.onFocusIn = function (e) {
|
|
5147
5147
|
if (e === void 0) { e = null; }
|
|
5148
|
-
if (e == null || !(e.screenX && e.screenX !== 0 && e.screenY && e.screenY !== 0)) {
|
|
5149
|
-
this.part1.focus(true);
|
|
5150
|
-
}
|
|
5151
5148
|
};
|
|
5152
5149
|
FormPlaqueComponent.prototype.onKeyDown = function (e) {
|
|
5153
5150
|
this.inp.error = null;
|
|
@@ -6896,7 +6893,7 @@
|
|
|
6896
6893
|
}
|
|
6897
6894
|
};
|
|
6898
6895
|
this.inp.focus = function () {
|
|
6899
|
-
|
|
6896
|
+
_this.onFocusIn();
|
|
6900
6897
|
};
|
|
6901
6898
|
this.inp.isValid = function () {
|
|
6902
6899
|
_this.inp.error = null;
|
|
@@ -7002,12 +6999,24 @@
|
|
|
7002
6999
|
};
|
|
7003
7000
|
}
|
|
7004
7001
|
this.car.url = this.motor.url = this.carF.url = this.carG.url = this.driver.url = this.inp.url.replace('_{}', '_' + this.type);
|
|
7005
|
-
console.log(111111, isEdit);
|
|
7006
7002
|
if (!isEdit) {
|
|
7003
|
+
this.onFocusIn();
|
|
7007
7004
|
}
|
|
7008
7005
|
};
|
|
7009
7006
|
FormVehicleSearchComponent.prototype.onFocusIn = function () {
|
|
7010
|
-
|
|
7007
|
+
var _this = this;
|
|
7008
|
+
if (this.type === exports.VehicleType.Car || this.type === exports.VehicleType.Motorcycle || this.type === exports.VehicleType.CarF || this.type === exports.VehicleType.CarG) {
|
|
7009
|
+
setTimeout(function () {
|
|
7010
|
+
$('#' + _this.inp.id + 'VehicleSearchInput' + ' .plaque-inp').click();
|
|
7011
|
+
$('#' + _this.inp.id + 'VehicleSearchInput' + ' #Part1TextInput .control').focus();
|
|
7012
|
+
}, 100);
|
|
7013
|
+
}
|
|
7014
|
+
else if (this.type === exports.VehicleType.Driver) {
|
|
7015
|
+
this.driver.focus();
|
|
7016
|
+
}
|
|
7017
|
+
else if (this.type === exports.VehicleType.Fingerprint) {
|
|
7018
|
+
this.fingerprint.focus();
|
|
7019
|
+
}
|
|
7011
7020
|
};
|
|
7012
7021
|
return FormVehicleSearchComponent;
|
|
7013
7022
|
}());
|