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
|
@@ -2282,7 +2282,7 @@ class TableRowComponent {
|
|
|
2282
2282
|
this.table.form.inputs.filter(x => !x.inEditVisible).forEach(x => x.visible = false);
|
|
2283
2283
|
this.table.form.inputs.forEach(x => x.required = x.inEditRequired);
|
|
2284
2284
|
if (this.table.modal) {
|
|
2285
|
-
this.table.modal.show();
|
|
2285
|
+
this.table.modal.show(true);
|
|
2286
2286
|
}
|
|
2287
2287
|
});
|
|
2288
2288
|
}
|
|
@@ -2326,9 +2326,9 @@ class ModalClass {
|
|
|
2326
2326
|
this.id = this.name;
|
|
2327
2327
|
this.class = cls;
|
|
2328
2328
|
}
|
|
2329
|
-
show() {
|
|
2329
|
+
show(isEdit = false) {
|
|
2330
2330
|
if (this.onShow) {
|
|
2331
|
-
this.onShow();
|
|
2331
|
+
this.onShow(isEdit);
|
|
2332
2332
|
}
|
|
2333
2333
|
$$1('body').addClass('open-modal');
|
|
2334
2334
|
$$1('#' + this.id + 'Modal').fadeIn(300, () => {
|
|
@@ -3974,6 +3974,8 @@ class FormPlaqueComponent {
|
|
|
3974
3974
|
this.part2.options = this.alphas.map(x => new OptionClass(x, x));
|
|
3975
3975
|
this.part1.displayLabel = this.part2.displayLabel = this.part3.displayLabel = this.part4.displayLabel = false;
|
|
3976
3976
|
this.part1.placeholder = this.part2.placeholder = this.part3.placeholder = this.part4.placeholder = null;
|
|
3977
|
+
this.part1.disabled = this.part2.disabled = this.part3.disabled = this.part4.disabled = this.inp.disabled;
|
|
3978
|
+
console.log(this.inp.disabled, this.inp.type, 'Plaque');
|
|
3977
3979
|
if (this.inp.type === InputType.PlaqueM) {
|
|
3978
3980
|
this.part1.minLength = 100;
|
|
3979
3981
|
this.part1.maxLength = 999;
|
|
@@ -4963,6 +4965,7 @@ class FormTextboxComponent {
|
|
|
4963
4965
|
}
|
|
4964
4966
|
return v;
|
|
4965
4967
|
};
|
|
4968
|
+
console.log(this.inp.disabled, this.inp.name, 'Text');
|
|
4966
4969
|
}
|
|
4967
4970
|
onFocusIn(changeIndex = false) {
|
|
4968
4971
|
if (changeIndex) {
|
|
@@ -5813,6 +5816,7 @@ class FormCarComponent {
|
|
|
5813
5816
|
this.carF = new InputClass(this.inp.environment, this.inp.l, this.inp.name + 'Item', 'fa-earth-asia', InputType.PlaqueF, 'plaque-inp', null, this.inp.required);
|
|
5814
5817
|
this.motor = new InputClass(this.inp.environment, this.inp.l, this.inp.name + 'Item', 'fa-motorcycle', InputType.PlaqueM, 'plaque-inp', null, this.inp.required);
|
|
5815
5818
|
this.car.displayLabel = this.carF.displayLabel = this.motor.displayLabel = false;
|
|
5819
|
+
this.car.disabled = this.carF.disabled = this.motor.disabled = this.inp.disabled;
|
|
5816
5820
|
this.inp.setValue = (v) => {
|
|
5817
5821
|
if (v != null) {
|
|
5818
5822
|
if (v.split('_').length === 2 && v.split('_').every(x => /^[0-9]+$/.test(x))) {
|