ps-toolkit-ui 1.4.82 → 1.4.85
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 +8 -3
- 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 +3 -3
- package/esm2015/lib/components/form/car/form.car.component.js +2 -1
- package/esm2015/lib/components/form/plaque/form.plaque.component.js +3 -1
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +2 -1
- package/esm2015/lib/components/table/row/table.row.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +7 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/modal.class.d.ts +2 -2
- package/package.json +1 -1
|
@@ -2892,7 +2892,7 @@
|
|
|
2892
2892
|
_this.table.form.inputs.filter(function (x) { return !x.inEditVisible; }).forEach(function (x) { return x.visible = false; });
|
|
2893
2893
|
_this.table.form.inputs.forEach(function (x) { return x.required = x.inEditRequired; });
|
|
2894
2894
|
if (_this.table.modal) {
|
|
2895
|
-
_this.table.modal.show();
|
|
2895
|
+
_this.table.modal.show(true);
|
|
2896
2896
|
}
|
|
2897
2897
|
});
|
|
2898
2898
|
}
|
|
@@ -2939,10 +2939,11 @@
|
|
|
2939
2939
|
this.id = this.name;
|
|
2940
2940
|
this.class = cls;
|
|
2941
2941
|
}
|
|
2942
|
-
ModalClass.prototype.show = function () {
|
|
2942
|
+
ModalClass.prototype.show = function (isEdit) {
|
|
2943
2943
|
var _this = this;
|
|
2944
|
+
if (isEdit === void 0) { isEdit = false; }
|
|
2944
2945
|
if (this.onShow) {
|
|
2945
|
-
this.onShow();
|
|
2946
|
+
this.onShow(isEdit);
|
|
2946
2947
|
}
|
|
2947
2948
|
$__namespace('body').addClass('open-modal');
|
|
2948
2949
|
$__namespace('#' + this.id + 'Modal').fadeIn(300, function () {
|
|
@@ -4716,6 +4717,8 @@
|
|
|
4716
4717
|
this.part2.options = this.alphas.map(function (x) { return new OptionClass(x, x); });
|
|
4717
4718
|
this.part1.displayLabel = this.part2.displayLabel = this.part3.displayLabel = this.part4.displayLabel = false;
|
|
4718
4719
|
this.part1.placeholder = this.part2.placeholder = this.part3.placeholder = this.part4.placeholder = null;
|
|
4720
|
+
this.part1.disabled = this.part2.disabled = this.part3.disabled = this.part4.disabled = this.inp.disabled;
|
|
4721
|
+
console.log(this.inp.disabled, this.inp.type, 'Plaque');
|
|
4719
4722
|
if (this.inp.type === exports.InputType.PlaqueM) {
|
|
4720
4723
|
this.part1.minLength = 100;
|
|
4721
4724
|
this.part1.maxLength = 999;
|
|
@@ -5809,6 +5812,7 @@
|
|
|
5809
5812
|
}
|
|
5810
5813
|
return v;
|
|
5811
5814
|
};
|
|
5815
|
+
console.log(this.inp.disabled, this.inp.name, 'Text');
|
|
5812
5816
|
};
|
|
5813
5817
|
FormTextboxComponent.prototype.onFocusIn = function (changeIndex) {
|
|
5814
5818
|
if (changeIndex === void 0) { changeIndex = false; }
|
|
@@ -6725,6 +6729,7 @@
|
|
|
6725
6729
|
this.carF = new InputClass(this.inp.environment, this.inp.l, this.inp.name + 'Item', 'fa-earth-asia', exports.InputType.PlaqueF, 'plaque-inp', null, this.inp.required);
|
|
6726
6730
|
this.motor = new InputClass(this.inp.environment, this.inp.l, this.inp.name + 'Item', 'fa-motorcycle', exports.InputType.PlaqueM, 'plaque-inp', null, this.inp.required);
|
|
6727
6731
|
this.car.displayLabel = this.carF.displayLabel = this.motor.displayLabel = false;
|
|
6732
|
+
this.car.disabled = this.carF.disabled = this.motor.disabled = this.inp.disabled;
|
|
6728
6733
|
this.inp.setValue = function (v) {
|
|
6729
6734
|
if (v != null) {
|
|
6730
6735
|
if (v.split('_').length === 2 && v.split('_').every(function (x) { return /^[0-9]+$/.test(x); })) {
|