ps-toolkit-ui 1.16.7 → 1.16.9
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 +7 -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 +7 -2
- package/fesm2015/ps-toolkit-ui.js +6 -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
|
@@ -1444,6 +1444,12 @@
|
|
|
1444
1444
|
}
|
|
1445
1445
|
return '<span class="ltr d-ib">' + moment__namespace(d).locale('fa').format('jYYYY/jMM/jDD HH:mm') + '</span>';
|
|
1446
1446
|
};
|
|
1447
|
+
HelperClass.getDateRemainSec = function (l, dt, c) {
|
|
1448
|
+
if (c === void 0) { c = 2; }
|
|
1449
|
+
var d = parseInt(dt.substring(6, dt.length - 2), 10);
|
|
1450
|
+
var now = moment.now();
|
|
1451
|
+
return (d - now) / 1000;
|
|
1452
|
+
};
|
|
1447
1453
|
HelperClass.getDateRemainFull = function (l, dt, c) {
|
|
1448
1454
|
if (c === void 0) { c = 2; }
|
|
1449
1455
|
var d = parseInt(dt.substring(6, dt.length - 2), 10);
|
|
@@ -1521,7 +1527,7 @@
|
|
|
1521
1527
|
return moment__namespace(d).locale('fa').format(format);
|
|
1522
1528
|
};
|
|
1523
1529
|
HelperClass.toPrice = function (l, cv) {
|
|
1524
|
-
return !isNaN(parseFloat(cv)) ? parseFloat(cv).toLocaleString() + '
|
|
1530
|
+
return !isNaN(parseFloat(cv)) ? '<span class="ltr d-ib m-l-5-p">' + parseFloat(cv).toLocaleString() + '</span>' + l('Rial') : l(cv);
|
|
1525
1531
|
};
|
|
1526
1532
|
HelperClass.getFileSize = function (bytes) {
|
|
1527
1533
|
var suffix = ['B', 'KB', 'MB', 'GB', 'TB'];
|