ps-toolkit-ui 1.7.18 → 1.7.19
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 +1 -54
- 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/select/form.plaque.select.component.js +1 -8
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +1 -7
- package/esm2015/lib/components/form/vehicle/search/form.vehicle.search.component.js +2 -42
- package/fesm2015/ps-toolkit-ui.js +1 -53
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -4392,13 +4392,8 @@
|
|
|
4392
4392
|
};
|
|
4393
4393
|
this.inp.setSearch = function (s) {
|
|
4394
4394
|
var p = s ? s.split('_') : null;
|
|
4395
|
-
console.log(p);
|
|
4396
4395
|
if (p && p.length === 4) {
|
|
4397
4396
|
setTimeout(function () {
|
|
4398
|
-
console.log(p[0]);
|
|
4399
|
-
console.log(p[1]);
|
|
4400
|
-
console.log(p[2]);
|
|
4401
|
-
console.log(p[3]);
|
|
4402
4397
|
_this.part1.setValue(p[0], false);
|
|
4403
4398
|
_this.part2.setValue(p[1], false);
|
|
4404
4399
|
_this.part3.setValue(p[2], false);
|
|
@@ -4658,8 +4653,6 @@
|
|
|
4658
4653
|
if (isEdit === void 0) { isEdit = false; }
|
|
4659
4654
|
this.inp.error = null;
|
|
4660
4655
|
var va = this.getValue(v);
|
|
4661
|
-
console.log(v);
|
|
4662
|
-
console.log(va);
|
|
4663
4656
|
this.inp.setValue(v, false);
|
|
4664
4657
|
this.inp.setSearch(va ? va.search : '');
|
|
4665
4658
|
this.cSearch = this.inp.search;
|
|
@@ -5869,9 +5862,6 @@
|
|
|
5869
5862
|
this.inp.setValue = function (v) {
|
|
5870
5863
|
_this.inp.value = v != null ? v.toString() : '';
|
|
5871
5864
|
_this.cValue = _this.inp.value;
|
|
5872
|
-
console.log(_this.inp.name);
|
|
5873
|
-
console.log(_this.cValue);
|
|
5874
|
-
console.log(_this.inp.value);
|
|
5875
5865
|
};
|
|
5876
5866
|
this.inp.focus = function (changeIndex) {
|
|
5877
5867
|
if (changeIndex === void 0) { changeIndex = false; }
|
|
@@ -6002,9 +5992,6 @@
|
|
|
6002
5992
|
this.inp.onKeyUp(this.inp);
|
|
6003
5993
|
}
|
|
6004
5994
|
if (this.inp.onChange) {
|
|
6005
|
-
console.log(this.cValue);
|
|
6006
|
-
console.log(e.target.value);
|
|
6007
|
-
console.log(this.cValue !== e.target.value);
|
|
6008
5995
|
if (this.cValue !== e.target.value) {
|
|
6009
5996
|
this.inp.onChange(e.target.value);
|
|
6010
5997
|
this.cValue = e.target.value;
|
|
@@ -6839,6 +6826,7 @@
|
|
|
6839
6826
|
return true;
|
|
6840
6827
|
};
|
|
6841
6828
|
this.inp.clear = function () {
|
|
6829
|
+
console.log(_this.inp.clear);
|
|
6842
6830
|
_this.inp.error = null;
|
|
6843
6831
|
_this.inp.setValue(null, false);
|
|
6844
6832
|
_this.changeType(exports.VehicleType.Car);
|
|
@@ -6861,48 +6849,7 @@
|
|
|
6861
6849
|
};
|
|
6862
6850
|
};
|
|
6863
6851
|
FormVehicleSearchComponent.prototype.changeType = function (t) {
|
|
6864
|
-
var _this = this;
|
|
6865
6852
|
this.type = t;
|
|
6866
|
-
if (t === exports.VehicleType.Fingerprint) {
|
|
6867
|
-
this.fingerprint.loading = true;
|
|
6868
|
-
this.fingerprint.placeholder = this.inp.l('LoadingText', 'Waiting');
|
|
6869
|
-
this.fingerprint.value = null;
|
|
6870
|
-
this.fingerprint.search = null;
|
|
6871
|
-
this.wsAuth = new WebSocket('ws://localhost:7890/Auth');
|
|
6872
|
-
this.wsAuth.onopen = function () {
|
|
6873
|
-
};
|
|
6874
|
-
this.wsAuth.onmessage = function (evt) {
|
|
6875
|
-
if (_this.wsAuth != null) {
|
|
6876
|
-
_this.wsAuth.close();
|
|
6877
|
-
}
|
|
6878
|
-
if (evt.data === 'Notfound') {
|
|
6879
|
-
HelperClass.addNotification(_this.inp.l('NotfoundTitle'));
|
|
6880
|
-
_this.fingerprint.placeholder = _this.inp.l('NotfoundTitle');
|
|
6881
|
-
_this.fingerprint.value = null;
|
|
6882
|
-
_this.fingerprint.search = null;
|
|
6883
|
-
_this.fingerprint.loading = false;
|
|
6884
|
-
}
|
|
6885
|
-
else if (evt.data.startsWith('Error')) {
|
|
6886
|
-
HelperClass.addNotification(evt.data);
|
|
6887
|
-
_this.fingerprint.placeholder = _this.inp.l('NotfoundTitle');
|
|
6888
|
-
_this.fingerprint.value = null;
|
|
6889
|
-
_this.fingerprint.search = null;
|
|
6890
|
-
_this.fingerprint.loading = false;
|
|
6891
|
-
}
|
|
6892
|
-
else {
|
|
6893
|
-
var user = JSON.parse(evt.data);
|
|
6894
|
-
_this.fingerprint.value = user.Id;
|
|
6895
|
-
_this.fingerprint.search = user.Name;
|
|
6896
|
-
_this.fingerprint.loading = false;
|
|
6897
|
-
}
|
|
6898
|
-
_this.wsAuth.close();
|
|
6899
|
-
_this.wsAuth = null;
|
|
6900
|
-
};
|
|
6901
|
-
this.wsAuth.onclose = function () {
|
|
6902
|
-
};
|
|
6903
|
-
}
|
|
6904
|
-
this.car.url = this.motor.url = this.carF.url = this.carG.url = this.driver.url = this.inp.url.replace('_{}', '_' + this.type);
|
|
6905
|
-
this.onFocusIn();
|
|
6906
6853
|
};
|
|
6907
6854
|
FormVehicleSearchComponent.prototype.onFocusIn = function () {
|
|
6908
6855
|
var _this = this;
|