@trackunit/iris-app-runtime-core 0.3.155 → 0.3.157
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 +4 -0
- package/index.esm.js +4 -0
- package/package.json +1 -1
- package/src/CustomFieldRuntime.d.ts +2 -2
package/index.cjs.js
CHANGED
|
@@ -339,6 +339,10 @@ const NavigationRuntime = {
|
|
|
339
339
|
const api = yield getHostConnector();
|
|
340
340
|
return api.gotoCustomer(customerId);
|
|
341
341
|
}),
|
|
342
|
+
gotoAdmin: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
343
|
+
const api = yield getHostConnector();
|
|
344
|
+
return api.gotoAdmin();
|
|
345
|
+
}),
|
|
342
346
|
hasAccessTo: (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
343
347
|
const api = yield getHostConnector();
|
|
344
348
|
return api.hasAccessTo(options);
|
package/index.esm.js
CHANGED
|
@@ -335,6 +335,10 @@ const NavigationRuntime = {
|
|
|
335
335
|
const api = yield getHostConnector();
|
|
336
336
|
return api.gotoCustomer(customerId);
|
|
337
337
|
}),
|
|
338
|
+
gotoAdmin: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
339
|
+
const api = yield getHostConnector();
|
|
340
|
+
return api.gotoAdmin();
|
|
341
|
+
}),
|
|
338
342
|
hasAccessTo: (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
339
343
|
const api = yield getHostConnector();
|
|
340
344
|
return api.hasAccessTo(options);
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomFieldType, CustomFieldValue,
|
|
1
|
+
import { CustomFieldType, CustomFieldValue, UnitOfMeasurementType } from "@trackunit/iris-app-runtime-core-api";
|
|
2
2
|
import { SystemOfMeasurementType } from "@trackunit/react-core-contexts-api";
|
|
3
3
|
export interface DropdownSelection {
|
|
4
4
|
value: string;
|
|
@@ -26,7 +26,7 @@ export declare const getDateValue: (value: string) => string;
|
|
|
26
26
|
/**
|
|
27
27
|
* Format a custom field value to ensure a consistent representation in the ui.
|
|
28
28
|
*/
|
|
29
|
-
export declare const getCustomFieldValueForDisplayInUI: (value: number | string | null | undefined, _unit:
|
|
29
|
+
export declare const getCustomFieldValueForDisplayInUI: (value: number | string | null | undefined, _unit: UnitOfMeasurementType | null | undefined, _systemOfMeasurement?: SystemOfMeasurementType | null, language?: string) => number | string | null | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* type guard to ensure that a value is of a type compatible with custom fields
|
|
32
32
|
*/
|