ps-toolkit-ui 1.14.61 → 1.14.63
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 +4 -1
- 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/helper.class.js +4 -1
- package/esm2015/lib/components/table/row/table.row.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +4 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/helper.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
- package/src/assets/styles/base.css +1 -1
|
@@ -1449,6 +1449,9 @@
|
|
|
1449
1449
|
var d = parseInt(dt.substring(6, dt.length - 2), 10);
|
|
1450
1450
|
return moment__namespace(d).locale('fa').format('jYYYY/jMM/jDD HH:mm');
|
|
1451
1451
|
};
|
|
1452
|
+
HelperClass.ToPrice = function (l, cv) {
|
|
1453
|
+
return parseFloat(cv).toLocaleString() + ' ' + l('Rial');
|
|
1454
|
+
};
|
|
1452
1455
|
HelperClass.getFileSize = function (bytes) {
|
|
1453
1456
|
var suffix = ['B', 'KB', 'MB', 'GB', 'TB'];
|
|
1454
1457
|
var dblSByte = bytes;
|
|
@@ -3478,7 +3481,7 @@
|
|
|
3478
3481
|
}
|
|
3479
3482
|
else if (col.type === exports.TableCollType.Price) {
|
|
3480
3483
|
try {
|
|
3481
|
-
return
|
|
3484
|
+
return HelperClass.ToPrice(this.table.l, cv);
|
|
3482
3485
|
}
|
|
3483
3486
|
catch (_a) { }
|
|
3484
3487
|
}
|