@adaptabletools/adaptable-plugin-interopio 22.1.1 → 23.0.0-canary.0
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/package.json +1 -1
- package/src/index.js +5 -4
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AdaptablePlugin, } from '@adaptabletools/adaptable/types';
|
|
2
2
|
import packageJson from '../package.json';
|
|
3
3
|
import adaptableCorePackageJson from '@adaptabletools/adaptable/package.json';
|
|
4
|
+
import { resolveAlertFormForDefinition } from '@adaptabletools/adaptable/src/Utilities/Helpers/alertFormHelper';
|
|
4
5
|
import { InteropioPluginApiImpl } from './InteropioPluginApiImpl';
|
|
5
6
|
const { version, name } = packageJson;
|
|
6
7
|
const { version: coreVersion } = adaptableCorePackageJson;
|
|
@@ -73,10 +74,10 @@ class InteropioPlugin extends AdaptablePlugin {
|
|
|
73
74
|
const adaptableAlert = alertInfo.alert;
|
|
74
75
|
const { header, message } = adaptableAlert;
|
|
75
76
|
const adaptableActions = [];
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
Array.isArray(
|
|
79
|
-
|
|
77
|
+
const alertForm = resolveAlertFormForDefinition(adaptableAlert.alertDefinition, this.adaptable.api.alertApi.internalApi.getDefaultAlertNotificationForm());
|
|
78
|
+
if (typeof alertForm !== 'string' &&
|
|
79
|
+
Array.isArray(alertForm?.Buttons)) {
|
|
80
|
+
alertForm.Buttons.forEach(async (button, index) => {
|
|
80
81
|
const buttonId = `${button.Label}.${Date.now()}`;
|
|
81
82
|
const action = `adaptable-action-button-${button.Label}-${index}-${Date.now()}`;
|
|
82
83
|
const notificationAction = {
|