ps-toolkit-ui 1.5.27 → 1.5.30
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 +10 -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/form.class.js +2 -1
- package/esm2015/lib/classes/table.class.js +2 -1
- package/esm2015/lib/components/form/radio/form.radio.component.js +7 -4
- package/esm2015/lib/components/table/row/table.row.component.js +2 -1
- package/fesm2015/ps-toolkit-ui.js +9 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/form.class.d.ts +1 -0
- package/lib/components/form/radio/form.radio.component.d.ts +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1559,6 +1559,7 @@
|
|
|
1559
1559
|
if (url === void 0) { url = null; }
|
|
1560
1560
|
if (cls === void 0) { cls = null; }
|
|
1561
1561
|
this.environment = null;
|
|
1562
|
+
this.isEdit = false;
|
|
1562
1563
|
this.subName = null;
|
|
1563
1564
|
this.method = exports.Method.Post;
|
|
1564
1565
|
this.loading = false;
|
|
@@ -2912,6 +2913,7 @@
|
|
|
2912
2913
|
};
|
|
2913
2914
|
TableRowComponent.prototype.edit = function (opt, option) {
|
|
2914
2915
|
var _this = this;
|
|
2916
|
+
this.table.form.isEdit = true;
|
|
2915
2917
|
if (this.table.permissions.Type === exports.PermissionTypeEnum.Form) {
|
|
2916
2918
|
this.table.form.name = opt.name;
|
|
2917
2919
|
this.table.form.setData(this.row.Data);
|
|
@@ -4985,12 +4987,12 @@
|
|
|
4985
4987
|
FormRadioComponent.prototype.ngOnInit = function () {
|
|
4986
4988
|
var _this = this;
|
|
4987
4989
|
this.inp.load();
|
|
4988
|
-
this.inp.setValue = function (v) {
|
|
4990
|
+
this.inp.setValue = function (v, isEdit) {
|
|
4989
4991
|
_this.inp.value = v !== null ? v.toString() : null;
|
|
4990
4992
|
if (_this.inp.value == null && _this.inp.options.length > 0) {
|
|
4991
4993
|
_this.inp.value = _this.inp.options.find(function (x) { return true; }).value;
|
|
4992
4994
|
}
|
|
4993
|
-
_this.onChange();
|
|
4995
|
+
_this.onChange(isEdit);
|
|
4994
4996
|
};
|
|
4995
4997
|
this.inp.setValue(this.inp.value, false);
|
|
4996
4998
|
this.inp.isValid = function () {
|
|
@@ -5032,11 +5034,15 @@
|
|
|
5032
5034
|
this.inp.value = this.inp.options[next].value;
|
|
5033
5035
|
}
|
|
5034
5036
|
};
|
|
5035
|
-
FormRadioComponent.prototype.onChange = function () {
|
|
5037
|
+
FormRadioComponent.prototype.onChange = function (isEdit) {
|
|
5038
|
+
if (isEdit === void 0) { isEdit = false; }
|
|
5036
5039
|
this.inp.error = null;
|
|
5037
5040
|
if (this.inp.onChange) {
|
|
5038
5041
|
this.inp.onChange(this.inp);
|
|
5039
5042
|
}
|
|
5043
|
+
if (!isEdit) {
|
|
5044
|
+
this.changeIndex.emit('Tab');
|
|
5045
|
+
}
|
|
5040
5046
|
};
|
|
5041
5047
|
FormRadioComponent.prototype.onFocusIn = function () {
|
|
5042
5048
|
$__namespace(this.inputBase.nativeElement).focus();
|
|
@@ -7499,6 +7505,7 @@
|
|
|
7499
7505
|
TableClass.prototype.showInsertModal = function (cId) {
|
|
7500
7506
|
if (cId === void 0) { cId = null; }
|
|
7501
7507
|
var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
|
|
7508
|
+
this.form.isEdit = false;
|
|
7502
7509
|
this.form.url = this.form.baseUrl = insertAccess.Url.replace('{}', this.permissions.RelatedId) + (cId ? '/' + cId : '');
|
|
7503
7510
|
this.form.name = insertAccess.Name;
|
|
7504
7511
|
this.form.method = exports.Method.Post;
|