ps-toolkit-ui 1.9.46 → 1.9.48
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 +47 -20
- 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/classes/modal.class.js +13 -13
- 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 +45 -19
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -3164,21 +3164,20 @@
|
|
|
3164
3164
|
});
|
|
3165
3165
|
};
|
|
3166
3166
|
ModalClass.prototype.hide = function () {
|
|
3167
|
-
var _this = this;
|
|
3168
3167
|
$__namespace('body').removeClass('open-modal');
|
|
3169
3168
|
$__namespace('#' + this.id + 'Modal').fadeOut(300, function () {
|
|
3170
|
-
if (
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
}
|
|
3176
|
-
if (
|
|
3177
|
-
|
|
3178
|
-
}
|
|
3179
|
-
if (
|
|
3180
|
-
|
|
3181
|
-
}
|
|
3169
|
+
// if (this.form && this.form.name !== 'Confirm' && this.form.name !== 'Alert'){
|
|
3170
|
+
// this.form.clear();
|
|
3171
|
+
// if (this.form.onHideModal){
|
|
3172
|
+
// this.form.onHideModal();
|
|
3173
|
+
// }
|
|
3174
|
+
// }
|
|
3175
|
+
// if (this.table && this.table.form){
|
|
3176
|
+
// this.table.form.clear();
|
|
3177
|
+
// }
|
|
3178
|
+
// if (this.onHide){
|
|
3179
|
+
// this.onHide();
|
|
3180
|
+
// }
|
|
3182
3181
|
});
|
|
3183
3182
|
};
|
|
3184
3183
|
return ModalClass;
|
|
@@ -4989,6 +4988,7 @@
|
|
|
4989
4988
|
_this.part3.focus(true);
|
|
4990
4989
|
}
|
|
4991
4990
|
else if (v.length === 0) {
|
|
4991
|
+
_this.part1.focus(true);
|
|
4992
4992
|
}
|
|
4993
4993
|
};
|
|
4994
4994
|
this.part3.onChange = function (v) {
|
|
@@ -5003,6 +5003,7 @@
|
|
|
5003
5003
|
_this.changeIndex.emit('Tab');
|
|
5004
5004
|
}
|
|
5005
5005
|
else if (v.length === 0 && _this.inp.type === exports.InputType.PlaqueM) {
|
|
5006
|
+
_this.part1.focus(true);
|
|
5006
5007
|
}
|
|
5007
5008
|
};
|
|
5008
5009
|
this.part4.onChange = function (v) {
|
|
@@ -5017,6 +5018,13 @@
|
|
|
5017
5018
|
this.inp.setValue = function (v) {
|
|
5018
5019
|
var parts = v.split('_');
|
|
5019
5020
|
if (_this.inp.type === exports.InputType.Plaque) {
|
|
5021
|
+
setTimeout(function () {
|
|
5022
|
+
_this.inp.value = v;
|
|
5023
|
+
_this.part1.value = parts[0];
|
|
5024
|
+
_this.part2.value = parts[1];
|
|
5025
|
+
_this.part3.value = parts[2];
|
|
5026
|
+
_this.part4.value = parts[3];
|
|
5027
|
+
}, 100);
|
|
5020
5028
|
}
|
|
5021
5029
|
else if (_this.inp.type === exports.InputType.PlaqueM || _this.inp.type === exports.InputType.PlaqueF) {
|
|
5022
5030
|
setTimeout(function () {
|
|
@@ -5085,6 +5093,7 @@
|
|
|
5085
5093
|
this.part3.focus(true);
|
|
5086
5094
|
}
|
|
5087
5095
|
else if (a === 'ShiftTab' || a === 'ShiftEnter') {
|
|
5096
|
+
this.part1.focus(true);
|
|
5088
5097
|
}
|
|
5089
5098
|
}
|
|
5090
5099
|
else if (p === 'Part3') {
|
|
@@ -5118,6 +5127,7 @@
|
|
|
5118
5127
|
this.changeIndex.emit('Tab');
|
|
5119
5128
|
}
|
|
5120
5129
|
else if (a === 'ShiftTab' || a === 'ShiftEnter') {
|
|
5130
|
+
this.part1.focus(true);
|
|
5121
5131
|
}
|
|
5122
5132
|
}
|
|
5123
5133
|
}
|
|
@@ -5135,6 +5145,7 @@
|
|
|
5135
5145
|
FormPlaqueComponent.prototype.onFocusIn = function (e) {
|
|
5136
5146
|
if (e === void 0) { e = null; }
|
|
5137
5147
|
if (e == null || !(e.screenX && e.screenX !== 0 && e.screenY && e.screenY !== 0)) {
|
|
5148
|
+
this.part1.focus(true);
|
|
5138
5149
|
}
|
|
5139
5150
|
};
|
|
5140
5151
|
FormPlaqueComponent.prototype.onKeyDown = function (e) {
|
|
@@ -6054,14 +6065,16 @@
|
|
|
6054
6065
|
}
|
|
6055
6066
|
};
|
|
6056
6067
|
FormTextboxComponent.prototype.onFocusIn = function (changeIndex) {
|
|
6068
|
+
var _this = this;
|
|
6057
6069
|
if (changeIndex === void 0) { changeIndex = false; }
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6070
|
+
setTimeout(function () {
|
|
6071
|
+
if (changeIndex) {
|
|
6072
|
+
_this.inputBase.nativeElement.select();
|
|
6073
|
+
}
|
|
6074
|
+
else {
|
|
6075
|
+
_this.inputBase.nativeElement.focus();
|
|
6076
|
+
}
|
|
6077
|
+
});
|
|
6065
6078
|
};
|
|
6066
6079
|
FormTextboxComponent.prototype.onFocusOut = function (e) {
|
|
6067
6080
|
if (this.inp.onFocusOut !== null) {
|
|
@@ -6989,9 +7002,23 @@
|
|
|
6989
7002
|
}
|
|
6990
7003
|
this.car.url = this.motor.url = this.carF.url = this.carG.url = this.driver.url = this.inp.url.replace('_{}', '_' + this.type);
|
|
6991
7004
|
if (!isEdit) {
|
|
7005
|
+
this.onFocusIn();
|
|
6992
7006
|
}
|
|
6993
7007
|
};
|
|
6994
7008
|
FormVehicleSearchComponent.prototype.onFocusIn = function () {
|
|
7009
|
+
var _this = this;
|
|
7010
|
+
if (this.type === exports.VehicleType.Car || this.type === exports.VehicleType.Motorcycle || this.type === exports.VehicleType.CarF || this.type === exports.VehicleType.CarG) {
|
|
7011
|
+
setTimeout(function () {
|
|
7012
|
+
$('#' + _this.inp.id + 'VehicleSearchInput' + ' .plaque-inp').click();
|
|
7013
|
+
$('#' + _this.inp.id + 'VehicleSearchInput' + ' #Part1TextInput .control').focus();
|
|
7014
|
+
}, 100);
|
|
7015
|
+
}
|
|
7016
|
+
else if (this.type === exports.VehicleType.Driver) {
|
|
7017
|
+
this.driver.focus();
|
|
7018
|
+
}
|
|
7019
|
+
else if (this.type === exports.VehicleType.Fingerprint) {
|
|
7020
|
+
this.fingerprint.focus();
|
|
7021
|
+
}
|
|
6995
7022
|
};
|
|
6996
7023
|
return FormVehicleSearchComponent;
|
|
6997
7024
|
}());
|