@react-pakistan/util-functions 1.23.69 → 1.23.72
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.
|
@@ -142,6 +142,7 @@ var postQuoteInvoice = function (_a) { return __awaiter(void 0, [_a], void 0, fu
|
|
|
142
142
|
mappedServices = services.map(function (item) {
|
|
143
143
|
var itemToReturn = __assign({}, item);
|
|
144
144
|
delete itemToReturn.mode;
|
|
145
|
+
delete itemToReturn.rowTotal;
|
|
145
146
|
return itemToReturn;
|
|
146
147
|
});
|
|
147
148
|
}
|
package/general/format-date.js
CHANGED
|
@@ -24,9 +24,9 @@ var formatDate = function (str, format) {
|
|
|
24
24
|
_a[DATE_FORMATS.DD_MM] = "".concat(dateObj.getDate(), " ").concat((0, get_month_name_1.getMonthName)(dateObj.getMonth())),
|
|
25
25
|
_a[DATE_FORMATS.YYYY_MM_DD] = "".concat(dateObj.getFullYear(), "-").concat(monthNumberInTwoDigits, "-").concat(dateNumberInTowDigits),
|
|
26
26
|
_a[DATE_FORMATS.DAY_DD_MM_YYYY] = "".concat((0, get_day_name_1.getDayName)(dateObj
|
|
27
|
-
.getDay()
|
|
27
|
+
.getDay()), ", ").concat(dateObj
|
|
28
28
|
.getDate(), " ").concat((0, get_month_name_1.getMonthName)(dateObj.getMonth()), " ").concat(dateObj.getFullYear()),
|
|
29
|
-
_a[DATE_FORMATS.DAY_DD_MM_YY_COMPACT] = "".concat((0, get_day_name_1.getDayName)(dateObj.getDay()
|
|
29
|
+
_a[DATE_FORMATS.DAY_DD_MM_YY_COMPACT] = "".concat((0, get_day_name_1.getDayName)(dateObj.getDay())
|
|
30
30
|
.slice(0, 3), ", ").concat(dateObj.getDate(), " ").concat((0, get_month_name_1.getMonthName)(dateObj
|
|
31
31
|
.getMonth()), " ").concat(String(dateObj.getFullYear()).slice(2, 5)),
|
|
32
32
|
_a);
|
package/general/get-day-name.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDayName = exports.dayMap = void 0;
|
|
4
4
|
exports.dayMap = {
|
|
5
|
-
0: '
|
|
6
|
-
1: '
|
|
7
|
-
2: '
|
|
8
|
-
3: '
|
|
9
|
-
4: '
|
|
10
|
-
5: '
|
|
11
|
-
6: '
|
|
5
|
+
0: 'Sunday',
|
|
6
|
+
1: 'Monday',
|
|
7
|
+
2: 'Tuesday',
|
|
8
|
+
3: 'Wednesday',
|
|
9
|
+
4: 'Thursday',
|
|
10
|
+
5: 'Friday',
|
|
11
|
+
6: 'Saturday',
|
|
12
12
|
};
|
|
13
13
|
var getDayName = function (num) { return exports.dayMap[num]; };
|
|
14
14
|
exports.getDayName = getDayName;
|