ps-toolkit-ui 0.0.159 → 0.0.163
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 -14
- 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 -2
- package/esm2015/lib/classes/string.class.js +2 -2
- package/esm2015/lib/components/form/date/form.date.component.js +2 -12
- package/esm2015/lib/components/table/table.component.js +3 -3
- package/fesm2015/ps-toolkit-ui.js +5 -14
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/string.class.d.ts +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
Save: 'ذخیره',
|
|
225
225
|
Cancel: 'انصراف',
|
|
226
226
|
UserDeActive: 'نام کاربری غیر فعال شده است',
|
|
227
|
-
|
|
227
|
+
DeleteConfirm: 'آیا از حذف این مورد مطمئن هستید ؟',
|
|
228
228
|
ChooseFiles: 'انتخاب فایل ها',
|
|
229
229
|
CodeNotExpired: 'کد تایید ارسال شده منقضی نشده است',
|
|
230
230
|
ChooseFile: 'انتخاب فایل',
|
|
@@ -1747,7 +1747,7 @@
|
|
|
1747
1747
|
exports.InputType.NationalCode, exports.InputType.Sheba, exports.InputType.PostalCode, exports.InputType.Date, exports.InputType.Time].includes(type) ? ' ltr' : '');
|
|
1748
1748
|
this.type = type;
|
|
1749
1749
|
this.value = value;
|
|
1750
|
-
this.default = HelperClass.clone(value);
|
|
1750
|
+
this.default = typeof value === 'number' ? _.cloneDeep(value) : HelperClass.clone(value);
|
|
1751
1751
|
this.required = required;
|
|
1752
1752
|
this.minLength = type === exports.InputType.Mobile || type === exports.InputType.Phone ? 11 :
|
|
1753
1753
|
type === exports.InputType.NationalCode || type === exports.InputType.PostalCode ? 10 :
|
|
@@ -3047,7 +3047,7 @@
|
|
|
3047
3047
|
var data = {
|
|
3048
3048
|
ids: _this.table.rows.filter(function (x) { return x.selected; }).map(function (x) { return x.id; })
|
|
3049
3049
|
};
|
|
3050
|
-
_this.confirm.show(_this.table.l('
|
|
3050
|
+
_this.confirm.show(_this.table.l('DeleteConfirm'), _this.table.url + '/Delete/' + 0, data, function () {
|
|
3051
3051
|
_this.table.load(null);
|
|
3052
3052
|
});
|
|
3053
3053
|
};
|
|
@@ -3110,7 +3110,7 @@
|
|
|
3110
3110
|
return this.changeRows.emit(e);
|
|
3111
3111
|
};
|
|
3112
3112
|
TableComponent.prototype.onConfirmShow = function (e) {
|
|
3113
|
-
this.confirm.show(this.table.l('
|
|
3113
|
+
this.confirm.show(this.table.l('DeleteConfirm'), this.table.url + 'Delete/' + e.id, null, e.accept);
|
|
3114
3114
|
};
|
|
3115
3115
|
TableComponent.prototype.changeSort = function (e, s) {
|
|
3116
3116
|
if ($__namespace(e.target).closest('.header-search').hasClass('header-search')) {
|
|
@@ -3472,8 +3472,6 @@
|
|
|
3472
3472
|
this.inp.setValue = function (v) {
|
|
3473
3473
|
_this.setInpValue(v);
|
|
3474
3474
|
};
|
|
3475
|
-
console.log(_.cloneDeep(3424234234), 3424234234);
|
|
3476
|
-
console.log(this.active instanceof moment__namespace);
|
|
3477
3475
|
this.inp.isValid = function () {
|
|
3478
3476
|
_this.inp.error = null;
|
|
3479
3477
|
if (_this.inp.required && !_this.inp.value) {
|
|
@@ -3509,21 +3507,14 @@
|
|
|
3509
3507
|
};
|
|
3510
3508
|
};
|
|
3511
3509
|
FormDateComponent.prototype.setInpValue = function (v) {
|
|
3512
|
-
console.log(v, 'vv');
|
|
3513
|
-
console.log(typeof v, 'typeof vtypeof v');
|
|
3514
|
-
console.log(this.inp.default, 'this.inp.defaultthis.inp.default');
|
|
3515
|
-
console.log(typeof this.inp.default, 'typeof this.inp.default');
|
|
3516
3510
|
if (v === null) {
|
|
3517
3511
|
this.inp.clear();
|
|
3518
3512
|
return;
|
|
3519
3513
|
}
|
|
3520
|
-
else if (typeof v === 'string'
|
|
3514
|
+
else if (typeof v === 'string') {
|
|
3521
3515
|
var d = parseInt(v.substring(6, v.length - 2), 10);
|
|
3522
3516
|
this.active = moment__namespace(d);
|
|
3523
3517
|
}
|
|
3524
|
-
else if (typeof v === 'string' && v.includes('/')) {
|
|
3525
|
-
this.active = moment__namespace(this.inp.value, 'jYYYY/jMM/jDD');
|
|
3526
|
-
}
|
|
3527
3518
|
else if (typeof v === 'number') {
|
|
3528
3519
|
this.active = moment__namespace(v);
|
|
3529
3520
|
}
|