mario-core 2.6.0 → 2.6.1
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/dist/index.js +6 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -9
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/constants.d.ts +4 -4
- package/package.json +94 -93
package/dist/index.modern.js
CHANGED
|
@@ -22,7 +22,7 @@ import Creatable from 'react-select/creatable';
|
|
|
22
22
|
import ReactNotification$1 from 'react-notifications-component';
|
|
23
23
|
import 'react-notifications-component/dist/theme.css';
|
|
24
24
|
import { AiOutlineEye } from 'react-icons/ai';
|
|
25
|
-
import
|
|
25
|
+
import moment from 'moment';
|
|
26
26
|
|
|
27
27
|
// A type of promise-like that resolves synchronously and supports only one observer
|
|
28
28
|
|
|
@@ -130,10 +130,10 @@ var COLORS = {
|
|
|
130
130
|
SUCCESS: "#28a745",
|
|
131
131
|
INFO: "#007bff"
|
|
132
132
|
};
|
|
133
|
-
var DATE_FORMAT = "yyyy-MM-
|
|
134
|
-
var DATE_RESULT = "
|
|
135
|
-
var FULL_DATE_RESULT = "
|
|
136
|
-
var FULL_DATE_FORMAT = "yyyy-MM-
|
|
133
|
+
var DATE_FORMAT = "yyyy-MM-DD";
|
|
134
|
+
var DATE_RESULT = "DD-MM-yyyy";
|
|
135
|
+
var FULL_DATE_RESULT = "DD-MM-yyyy HH:mm";
|
|
136
|
+
var FULL_DATE_FORMAT = "yyyy-MM-DD HH:mm";
|
|
137
137
|
var DATE_MIN_VALUE = "0001-01-01T00:00:00";
|
|
138
138
|
var LICENSE_AGGRID = "Alhanko&Johnson_BASE23_single_1_Devs__22_November_2020_[v2]_MTYwNjAwMzIwMDAwMA==d452f38afc893671cad92795e95d52a1";
|
|
139
139
|
var BASE_URL = function () {
|
|
@@ -5147,14 +5147,11 @@ var NotificationStatusSelector = function NotificationStatusSelector(_ref) {
|
|
|
5147
5147
|
|
|
5148
5148
|
var NotificationStatusSelector$1 = memo(NotificationStatusSelector);
|
|
5149
5149
|
|
|
5150
|
-
var FULL_FORMAT = "MM-dd-yyyy HH:mm:ss";
|
|
5151
5150
|
var utcToLocalTime = (function (time, FORMAT) {
|
|
5152
5151
|
if (time === DATE_MIN_VALUE) return "";
|
|
5153
5152
|
|
|
5154
5153
|
try {
|
|
5155
|
-
|
|
5156
|
-
var utcDateFormat = format$1(new Date(utcDate), FULL_FORMAT) + " UTC";
|
|
5157
|
-
return format$1(new Date(utcDateFormat), FORMAT || DATE_FORMAT);
|
|
5154
|
+
return moment.utc(time).local().format(FORMAT || DATE_FORMAT);
|
|
5158
5155
|
} catch (_unused) {
|
|
5159
5156
|
return "";
|
|
5160
5157
|
}
|