@adaptabletools/adaptable-plugin-openfin 21.2.2-canary.0 → 22.0.0-canary.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/README.md
CHANGED
|
@@ -10,12 +10,12 @@ This plugin allows users to take advantage of some additional functionality cour
|
|
|
10
10
|
|
|
11
11
|
## Documentation & Demos
|
|
12
12
|
|
|
13
|
-
Full details of how to install, configure and use the OpenFin plugin can be found at [AdapTable OpenFin Documentation](https://
|
|
13
|
+
Full details of how to install, configure and use the OpenFin plugin can be found at [AdapTable OpenFin Documentation](https://www.adaptabletools.com/docs/integrations-openfin)
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
## Help
|
|
17
17
|
|
|
18
|
-
Developers can learn how to access AdapTable programmatically at [AdapTable Documentation](https://
|
|
18
|
+
Developers can learn how to access AdapTable programmatically at [AdapTable Documentation](https://www.adaptabletools.com/docs).
|
|
19
19
|
|
|
20
20
|
## Other AdapTable Resources
|
|
21
21
|
|
|
@@ -27,4 +27,4 @@ For all support enquiries please email [`support@adaptabletools.com`](mailto:sup
|
|
|
27
27
|
|
|
28
28
|
## Licences
|
|
29
29
|
|
|
30
|
-
Information on AdapTable Licences can be found at [Licensing AdapTable for AG Grid](https://
|
|
30
|
+
Information on AdapTable Licences can be found at [Licensing AdapTable for AG Grid](https://www.adaptabletools.com/buy/buying-adaptable-licensing).
|
package/package.json
CHANGED
|
@@ -32,5 +32,5 @@ export declare class OpenFinService implements IOpenFinService {
|
|
|
32
32
|
waitForExcel: () => Promise<unknown>;
|
|
33
33
|
constructor(adaptable: IAdaptable, options: OpenFinPluginOptions);
|
|
34
34
|
on: (eventName: string, callback: EmitterCallback) => (() => void);
|
|
35
|
-
emit: (eventName:
|
|
35
|
+
emit: (eventName: "sheetchanged", data: any) => Promise<any>;
|
|
36
36
|
}
|
|
@@ -10,5 +10,6 @@ interface OpenFinPopupProps extends ModuleViewPopupProps<any> {
|
|
|
10
10
|
onOpenFinSendSnapshot: (OpenFineport: OpenFinReport) => OpenFinRedux.OpenFinSendSnapshotAction;
|
|
11
11
|
onShare: (entity: AdaptableObject, config: AdaptableSharedEntityConfig) => TeamSharingRedux.TeamSharingShareAction;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
declare const OpenFinPopupComponent: React.FC<OpenFinPopupProps>;
|
|
14
|
+
export declare const OpenFinPopup: ConnectedComponent<typeof OpenFinPopupComponent, Pick<OpenFinPopupProps, never>>;
|
|
14
15
|
export {};
|
package/src/View/OpenFinPopup.js
CHANGED
|
@@ -14,7 +14,7 @@ const OpenFinPopupComponent = (props) => {
|
|
|
14
14
|
// const onApplyExport = (OpenFinReport: OpenFinReport) => {
|
|
15
15
|
// props.onOpenFinSendSnapshot(OpenFinReport);
|
|
16
16
|
// };
|
|
17
|
-
return (React.createElement(PanelWithButton, { headerText: props.moduleInfo.FriendlyName, bodyProps: {
|
|
17
|
+
return (React.createElement(PanelWithButton, { headerText: props.moduleInfo.FriendlyName, bodyProps: { className: 'twa:p-0' }, glyphicon: props.moduleInfo.Glyph, infoLink: props.moduleInfo.HelpPage, infoLinkDisabled: !props.api.internalApi.isDocumentationLinksDisplayed() }));
|
|
18
18
|
};
|
|
19
19
|
function mapStateToProps(state) {
|
|
20
20
|
return {};
|
|
@@ -57,11 +57,11 @@ class OpenFinViewPanelComponent extends React.Component {
|
|
|
57
57
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
58
58
|
return (React.createElement(Flex, { flexDirection: "row", className: `ab-${elementType}__OpenFin__wrap`, flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
59
59
|
React.createElement(Flex, null,
|
|
60
|
-
React.createElement(Dropdown, { disabled: !IS_OPENFIN || allReports.length == 0 || isLiveOpenFinReport,
|
|
60
|
+
React.createElement(Dropdown, { disabled: !IS_OPENFIN || allReports.length == 0 || isLiveOpenFinReport, options: availableReports, className: `ab-${elementType}__OpenFin__select twa:mr-2 twa:min-w-[160px]`, placeholder: !IS_OPENFIN ? 'Not available' : 'Select Report', onChange: (reportName) => this.onSelectedReportChanged(reportName), value: this.props.currentReportName, showClearButton: true })),
|
|
61
61
|
React.createElement(Flex, null,
|
|
62
|
-
isLiveOpenFinReport ? (React.createElement(ButtonPause, { fillColor: 'red',
|
|
62
|
+
isLiveOpenFinReport ? (React.createElement(ButtonPause, { fillColor: 'red', className: `ab-${elementType}__OpenFin__pause twa:ml-1`, onClick: () => this.getOpenFinApi().stopLiveData(), tooltip: "Stop sync with OpenFin", disabled: !isLiveOpenFinReport, accessLevel: this.props.accessLevel })) : (React.createElement(ButtonPlay, { className: `ab-${elementType}__OpenFin__play twa:ml-1`, onClick: () => this.onOpenFinStartLiveData(), tooltip: "Start sync with OpenFin", disabled: isLiveOpenFinReport || !isCompletedReport, accessLevel: this.props.accessLevel })),
|
|
63
63
|
React.createElement(Flex, { className: join(this.props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__OpenFin__controls`), alignItems: "stretch" },
|
|
64
|
-
React.createElement(ButtonSchedule, {
|
|
64
|
+
React.createElement(ButtonSchedule, { className: `ab-${elementType}__OpenFin__schedule twa:ml-1`, onClick: () => this.onNewOpenFinSchedule(), tooltip: "Schedule", disabled: !IS_OPENFIN, accessLevel: this.props.accessLevel })))));
|
|
65
65
|
}
|
|
66
66
|
onSelectedReportChanged(reportName) {
|
|
67
67
|
if (reportName == undefined) {
|