ps-toolkit-ui 1.9.65 → 1.9.67
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 +5 -0
- 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/form.class.js +3 -1
- package/esm2015/lib/classes/modal.class.js +4 -1
- package/fesm2015/ps-toolkit-ui.js +5 -0
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/form.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1679,6 +1679,7 @@
|
|
|
1679
1679
|
this.onLoad = null;
|
|
1680
1680
|
this.onBeforeSubmit = null;
|
|
1681
1681
|
this.onHideModal = null;
|
|
1682
|
+
this.onShowModal = null;
|
|
1682
1683
|
this.environment = environment;
|
|
1683
1684
|
this.l = l;
|
|
1684
1685
|
this.url = url;
|
|
@@ -1705,6 +1706,7 @@
|
|
|
1705
1706
|
var i = this.inputs.find(function (x) { return !x.disabled && x.type !== exports.InputType.Label && x.type !== exports.InputType.Hidden &&
|
|
1706
1707
|
x.type !== exports.InputType.Constant && x.type !== exports.InputType.Submit && x.type !== exports.InputType.Button && x.type !== exports.InputType.Icon &&
|
|
1707
1708
|
x.type !== exports.InputType.Check; });
|
|
1709
|
+
console.log(i);
|
|
1708
1710
|
if (i) {
|
|
1709
1711
|
i.focus();
|
|
1710
1712
|
}
|
|
@@ -3158,6 +3160,9 @@
|
|
|
3158
3160
|
$__namespace('body').addClass('open-modal');
|
|
3159
3161
|
$__namespace('#' + this.id + 'Modal').fadeIn(300, function () {
|
|
3160
3162
|
if (_this.form != null) {
|
|
3163
|
+
if (_this.form.onShowModal) {
|
|
3164
|
+
_this.form.onShowModal();
|
|
3165
|
+
}
|
|
3161
3166
|
_this.form.focus();
|
|
3162
3167
|
}
|
|
3163
3168
|
});
|