@trackunit/iris-app-runtime-core 0.3.171 → 0.3.173
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 +18 -0
- package/index.esm.js +18 -1
- package/package.json +1 -1
- package/src/AssetSortingRuntime.d.ts +3 -3
- package/src/ModalDialogRuntime.d.ts +2 -0
- package/src/index.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -330,6 +330,23 @@ const OemBrandingContextRuntime = {
|
|
|
330
330
|
}),
|
|
331
331
|
};
|
|
332
332
|
|
|
333
|
+
const ModalDialogRuntime = {
|
|
334
|
+
openModal() {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
const scrollX = window.scrollX || 0;
|
|
337
|
+
const scrollY = window.scrollY || 0;
|
|
338
|
+
const api = yield getHostConnector();
|
|
339
|
+
return api.openModal({ scrollX, scrollY });
|
|
340
|
+
});
|
|
341
|
+
},
|
|
342
|
+
closeModal() {
|
|
343
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
344
|
+
const api = yield getHostConnector();
|
|
345
|
+
return api.closeModal();
|
|
346
|
+
});
|
|
347
|
+
},
|
|
348
|
+
};
|
|
349
|
+
|
|
333
350
|
const NavigationRuntime = {
|
|
334
351
|
gotoAssetHome: (assetId, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
335
352
|
const api = yield getHostConnector();
|
|
@@ -454,6 +471,7 @@ exports.CustomerRuntime = CustomerRuntime;
|
|
|
454
471
|
exports.EnvironmentRuntime = EnvironmentRuntime;
|
|
455
472
|
exports.EventRuntime = EventRuntime;
|
|
456
473
|
exports.FilterBarRuntime = FilterBarRuntime;
|
|
474
|
+
exports.ModalDialogRuntime = ModalDialogRuntime;
|
|
457
475
|
exports.NavigationRuntime = NavigationRuntime;
|
|
458
476
|
exports.OemBrandingContextRuntime = OemBrandingContextRuntime;
|
|
459
477
|
exports.ParamsRuntime = ParamsRuntime;
|
package/index.esm.js
CHANGED
|
@@ -326,6 +326,23 @@ const OemBrandingContextRuntime = {
|
|
|
326
326
|
}),
|
|
327
327
|
};
|
|
328
328
|
|
|
329
|
+
const ModalDialogRuntime = {
|
|
330
|
+
openModal() {
|
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
const scrollX = window.scrollX || 0;
|
|
333
|
+
const scrollY = window.scrollY || 0;
|
|
334
|
+
const api = yield getHostConnector();
|
|
335
|
+
return api.openModal({ scrollX, scrollY });
|
|
336
|
+
});
|
|
337
|
+
},
|
|
338
|
+
closeModal() {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
340
|
+
const api = yield getHostConnector();
|
|
341
|
+
return api.closeModal();
|
|
342
|
+
});
|
|
343
|
+
},
|
|
344
|
+
};
|
|
345
|
+
|
|
329
346
|
const NavigationRuntime = {
|
|
330
347
|
gotoAssetHome: (assetId, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
331
348
|
const api = yield getHostConnector();
|
|
@@ -440,4 +457,4 @@ const UserSubscriptionRuntime = {
|
|
|
440
457
|
}),
|
|
441
458
|
};
|
|
442
459
|
|
|
443
|
-
export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomerRuntime, EnvironmentRuntime, EventRuntime, FilterBarRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, RouterRuntime, SiteRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueForDisplayInUI, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, isValidCustomFieldValue, setupHostConnector };
|
|
460
|
+
export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomerRuntime, EnvironmentRuntime, EventRuntime, FilterBarRuntime, ModalDialogRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, RouterRuntime, SiteRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueForDisplayInUI, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, isValidCustomFieldValue, setupHostConnector };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetSortingContextValue } from "@trackunit/react-core-contexts-api";
|
|
2
2
|
export interface IAssetSortingRuntime {
|
|
3
|
-
getAssetSortingState: () => Promise<
|
|
4
|
-
setAssetSortingState: (...args: Parameters<
|
|
3
|
+
getAssetSortingState: () => Promise<AssetSortingContextValue["sortingState"]>;
|
|
4
|
+
setAssetSortingState: (...args: Parameters<AssetSortingContextValue["setSortBy"]>) => Promise<void>;
|
|
5
5
|
}
|
|
6
6
|
export declare const AssetSortingRuntime: IAssetSortingRuntime;
|
package/src/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./EventRuntime";
|
|
|
12
12
|
export * from "./FilterBarRuntime";
|
|
13
13
|
export * from "./HostConnector";
|
|
14
14
|
export * from "./IrisOemManifestRuntime";
|
|
15
|
+
export * from "./ModalDialogRuntime";
|
|
15
16
|
export * from "./NavigationRuntime";
|
|
16
17
|
export * from "./ParamsRuntime";
|
|
17
18
|
export * from "./RestRuntime";
|