@trackunit/iris-app-runtime-core 0.3.180 → 0.3.182
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/index.cjs.js +7 -9
- package/index.esm.js +7 -9
- package/package.json +1 -1
- package/src/CustomFieldRuntime.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -253,11 +253,13 @@ const getStringValue = (value) => {
|
|
|
253
253
|
* yyyy-mm-dd
|
|
254
254
|
*/
|
|
255
255
|
const getDateValue = (value) => {
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
// remove timezone to ensure the date is always the same
|
|
257
|
+
const date = new Date(value.substring(0, 10));
|
|
258
|
+
const dateFormatted = date.toISOString().split("T");
|
|
259
|
+
if (dateFormatted.length !== 2) {
|
|
260
|
+
return undefined;
|
|
261
|
+
}
|
|
262
|
+
return dateFormatted[0];
|
|
261
263
|
};
|
|
262
264
|
/**
|
|
263
265
|
* Format a custom field value to ensure a consistent representation in the ui.
|
|
@@ -369,10 +371,6 @@ const NavigationRuntime = {
|
|
|
369
371
|
const api = yield getHostConnector();
|
|
370
372
|
return api.gotoCustomerHome(customerId, options);
|
|
371
373
|
}),
|
|
372
|
-
gotoMyExports: (exportId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
373
|
-
const api = yield getHostConnector();
|
|
374
|
-
return api.gotoMyExports(exportId);
|
|
375
|
-
}),
|
|
376
374
|
gotoAdmin: (url) => __awaiter(void 0, void 0, void 0, function* () {
|
|
377
375
|
const api = yield getHostConnector();
|
|
378
376
|
return api.gotoAdmin(url);
|
package/index.esm.js
CHANGED
|
@@ -249,11 +249,13 @@ const getStringValue = (value) => {
|
|
|
249
249
|
* yyyy-mm-dd
|
|
250
250
|
*/
|
|
251
251
|
const getDateValue = (value) => {
|
|
252
|
-
|
|
253
|
-
const
|
|
254
|
-
const
|
|
255
|
-
|
|
256
|
-
|
|
252
|
+
// remove timezone to ensure the date is always the same
|
|
253
|
+
const date = new Date(value.substring(0, 10));
|
|
254
|
+
const dateFormatted = date.toISOString().split("T");
|
|
255
|
+
if (dateFormatted.length !== 2) {
|
|
256
|
+
return undefined;
|
|
257
|
+
}
|
|
258
|
+
return dateFormatted[0];
|
|
257
259
|
};
|
|
258
260
|
/**
|
|
259
261
|
* Format a custom field value to ensure a consistent representation in the ui.
|
|
@@ -365,10 +367,6 @@ const NavigationRuntime = {
|
|
|
365
367
|
const api = yield getHostConnector();
|
|
366
368
|
return api.gotoCustomerHome(customerId, options);
|
|
367
369
|
}),
|
|
368
|
-
gotoMyExports: (exportId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
369
|
-
const api = yield getHostConnector();
|
|
370
|
-
return api.gotoMyExports(exportId);
|
|
371
|
-
}),
|
|
372
370
|
gotoAdmin: (url) => __awaiter(void 0, void 0, void 0, function* () {
|
|
373
371
|
const api = yield getHostConnector();
|
|
374
372
|
return api.gotoAdmin(url);
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ export declare const getStringValue: (value: boolean | string | string[] | Dropd
|
|
|
24
24
|
* Format the received value to a date string
|
|
25
25
|
* yyyy-mm-dd
|
|
26
26
|
*/
|
|
27
|
-
export declare const getDateValue: (value: string) => string;
|
|
27
|
+
export declare const getDateValue: (value: string) => string | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Format a custom field value to ensure a consistent representation in the ui.
|
|
30
30
|
*/
|