@adaptabletools/adaptable-plugin-ipushpull-cjs 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 +3 -3
- package/package.json +1 -1
- package/src/View/IPushPullAddPagePopup.d.ts +3 -4
- package/src/View/IPushPullAddPagePopup.js +6 -6
- package/src/View/IPushPullLoginPopup.d.ts +3 -4
- package/src/View/IPushPullLoginPopup.js +6 -6
- package/src/View/IPushPullPopup.d.ts +2 -5
- package/src/View/IPushPullPopup.js +1 -1
- package/src/View/IPushPullViewPanel.d.ts +4 -4
- package/src/View/IPushPullViewPanel.js +9 -9
- package/src/index.d.ts +1 -1
package/README.md
CHANGED
|
@@ -39,12 +39,12 @@ Once the user is successfully logged in, the Toolbar will contain a number of el
|
|
|
39
39
|
|
|
40
40
|
## Documentation & Demos
|
|
41
41
|
|
|
42
|
-
Full details of how to install and use the ipushpull plugin, together with many demos, can be found at [AdapTable ipushpull Documentation]
|
|
42
|
+
Full details of how to install and use the ipushpull plugin, together with many demos, can be found at [AdapTable ipushpull Documentation](https://www.adaptabletools.com/docs/integrations-ipushpull)
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
## Help
|
|
46
46
|
|
|
47
|
-
Developers can learn how to access AdapTable programmatically at [AdapTable Documentation](https://
|
|
47
|
+
Developers can learn how to access AdapTable programmatically at [AdapTable Documentation](https://www.adaptabletools.com/docs).
|
|
48
48
|
|
|
49
49
|
## More Information
|
|
50
50
|
|
|
@@ -56,4 +56,4 @@ For all support enquiries please email [`support@adaptabletools.com`](mailto:sup
|
|
|
56
56
|
|
|
57
57
|
## Licences
|
|
58
58
|
|
|
59
|
-
Information on AdapTable Licences can be found at [Licensing AdapTable for AG Grid](https://
|
|
59
|
+
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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ConnectedComponent } from 'react-redux';
|
|
2
3
|
import * as IPushPullRedux from '../Redux/ActionReducers/IPushPullRedux';
|
|
3
4
|
import { IPushPullDomain } from "@adaptabletools/adaptable-cjs/src/AdaptableState/IPushPullState";
|
|
4
5
|
interface IPushPullAddPagePopupProps {
|
|
@@ -6,8 +7,6 @@ interface IPushPullAddPagePopupProps {
|
|
|
6
7
|
onAddPage: (folder: string, page: string) => IPushPullRedux.IPushPullAddPageAction;
|
|
7
8
|
onCancel: () => any;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
store?: import("redux").Store<any, import("redux").UnknownAction, unknown>;
|
|
12
|
-
}>;
|
|
10
|
+
declare const IPushPullAddPageComponent: (props: IPushPullAddPagePopupProps) => React.JSX.Element;
|
|
11
|
+
export declare let IPushPullAddPagePopup: ConnectedComponent<typeof IPushPullAddPageComponent, Omit<IPushPullAddPagePopupProps, "IPushPullDomainsPages" | "onAddPage" | "onCancel">>;
|
|
13
12
|
export {};
|
|
@@ -69,7 +69,7 @@ const IPushPullAddPageComponent = (props) => {
|
|
|
69
69
|
e.preventDefault();
|
|
70
70
|
onSubmit();
|
|
71
71
|
}, footerProps: {
|
|
72
|
-
|
|
72
|
+
className: 'twa:text-4',
|
|
73
73
|
}, footer: React.createElement(React.Fragment, null,
|
|
74
74
|
React.createElement(SimpleButton_1.default, { tone: "neutral", variant: "text", tooltip: "Close", onClick: (e) => {
|
|
75
75
|
e.stopPropagation();
|
|
@@ -78,13 +78,13 @@ const IPushPullAddPageComponent = (props) => {
|
|
|
78
78
|
React.createElement("div", { style: { flex: 1 } }),
|
|
79
79
|
React.createElement(SimpleButton_1.default, { tone: "accent", variant: "raised", type: "submit", disabled: StringExtensions_1.StringExtensions.IsNullOrEmpty(state.Folder) ||
|
|
80
80
|
StringExtensions_1.StringExtensions.IsNullOrEmpty(state.Page), icon: 'check' }, "Add Page")) },
|
|
81
|
-
React.createElement(Flex_1.Flex, { flexDirection: "column",
|
|
82
|
-
React.createElement(HelpBlock_1.default, {
|
|
83
|
-
React.createElement(FormLayout_1.default, {
|
|
81
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:p-2 twa:m-2" },
|
|
82
|
+
React.createElement(HelpBlock_1.default, { className: "twa:mb-1" }, "Select a folder and then choose the name of the new ipushpull page it should contain."),
|
|
83
|
+
React.createElement(FormLayout_1.default, { className: "twa:m-3" },
|
|
84
84
|
React.createElement(FormLayout_1.FormRow, { label: "Folder:" },
|
|
85
|
-
React.createElement(Dropdown_1.default, { disabled: availableFolders.length == 0,
|
|
85
|
+
React.createElement(Dropdown_1.default, { disabled: availableFolders.length == 0, options: availableFolders, className: "ab-Popup__IPushPull__select twa:min-w-[50%] twa:mr-2", onChange: (folder) => onFolderChanged(folder), value: state.Folder ? state.Folder : null, placeholder: "Select Folder" })),
|
|
86
86
|
React.createElement(FormLayout_1.FormRow, { label: "Page" },
|
|
87
|
-
React.createElement(Input_1.default, {
|
|
87
|
+
React.createElement(Input_1.default, { className: "twa:w-1/2", type: "text", placeholder: "Page Name", value: state.Page, onChange: onPageNameChange })),
|
|
88
88
|
state.ErrorMessage ? (React.createElement(FormLayout_1.FormRow, { label: "" },
|
|
89
89
|
React.createElement(ErrorBox_1.default, null, state.ErrorMessage))) : null)))));
|
|
90
90
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ConnectedComponent } from 'react-redux';
|
|
2
3
|
import * as IPushPullRedux from '../Redux/ActionReducers/IPushPullRedux';
|
|
3
4
|
interface IPushPullLoginPopupProps {
|
|
4
5
|
pushpullLogin: string | undefined;
|
|
@@ -7,8 +8,6 @@ interface IPushPullLoginPopupProps {
|
|
|
7
8
|
onLogin: (login: string, password: string) => IPushPullRedux.IPushPullLoginAction;
|
|
8
9
|
onCancel: () => any;
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
store?: import("redux").Store<any, import("redux").UnknownAction, unknown>;
|
|
13
|
-
}>;
|
|
11
|
+
declare const IPushPullLoginComponent: (props: IPushPullLoginPopupProps) => React.JSX.Element;
|
|
12
|
+
export declare let IPushPullLoginPopup: ConnectedComponent<typeof IPushPullLoginComponent, Omit<IPushPullLoginPopupProps, "pushpullLoginErrorMessage" | "onLogin" | "onCancel">>;
|
|
14
13
|
export {};
|
|
@@ -41,7 +41,7 @@ const IPushPullLoginComponent = (props) => {
|
|
|
41
41
|
e.preventDefault();
|
|
42
42
|
onSubmit();
|
|
43
43
|
}, footerProps: {
|
|
44
|
-
|
|
44
|
+
className: 'twa:text-4',
|
|
45
45
|
}, footer: React.createElement(React.Fragment, null,
|
|
46
46
|
React.createElement(SimpleButton_1.default, { tone: "neutral", variant: "text", tooltip: "Close", onClick: (e) => {
|
|
47
47
|
e.stopPropagation();
|
|
@@ -49,13 +49,13 @@ const IPushPullLoginComponent = (props) => {
|
|
|
49
49
|
} }, "CLOSE"),
|
|
50
50
|
React.createElement("div", { style: { flex: 1 } }),
|
|
51
51
|
React.createElement(SimpleButton_1.default, { tone: "accent", variant: "raised", type: "submit", disabled: StringExtensions_1.StringExtensions.IsNullOrEmpty(state.Password), icon: 'check' }, "Login")) },
|
|
52
|
-
React.createElement(Flex_1.Flex, { flexDirection: "column",
|
|
53
|
-
React.createElement(HelpBlock_1.default, {
|
|
54
|
-
React.createElement(FormLayout_1.default, {
|
|
52
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:p-2 twa:m-2" },
|
|
53
|
+
React.createElement(HelpBlock_1.default, { className: "twa:mb-1" }, "Login to ipushpull using your login (email address) and password."),
|
|
54
|
+
React.createElement(FormLayout_1.default, { className: "twa:m-3" },
|
|
55
55
|
React.createElement(FormLayout_1.FormRow, { label: "ipushpull login:" },
|
|
56
|
-
React.createElement(Input_1.default, {
|
|
56
|
+
React.createElement(Input_1.default, { className: "twa:w-full", type: "email", placeholder: "Email address", value: state.Login, onChange: onLoginChange })),
|
|
57
57
|
React.createElement(FormLayout_1.FormRow, { label: "ipushpull password:" },
|
|
58
|
-
React.createElement(Input_1.default, {
|
|
58
|
+
React.createElement(Input_1.default, { className: "twa:w-full", type: "password", placeholder: "Password", value: state.Password, onChange: onPasswordChange })),
|
|
59
59
|
props.pushpullLoginErrorMessage ? (React.createElement(FormLayout_1.FormRow, { label: "" },
|
|
60
60
|
React.createElement(ErrorBox_1.default, null, props.pushpullLoginErrorMessage))) : null)))));
|
|
61
61
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { ConnectedComponent } from 'react-redux';
|
|
3
3
|
import * as IPushPullRedux from '../Redux/ActionReducers/IPushPullRedux';
|
|
4
4
|
import { ModuleViewPopupProps } from "@adaptabletools/adaptable-cjs/src/View/Components/SharedProps/ModuleViewPopupProps";
|
|
5
5
|
import * as TeamSharingRedux from "@adaptabletools/adaptable-cjs/src/Redux/ActionsReducers/TeamSharingRedux";
|
|
@@ -19,8 +19,5 @@ declare class IPushPullPopupComponent extends React.Component<IPushPullPopupProp
|
|
|
19
19
|
render(): React.JSX.Element;
|
|
20
20
|
onApplyExport(iPushPullReport: IPushPullReport): void;
|
|
21
21
|
}
|
|
22
|
-
export declare let IPushPullPopup:
|
|
23
|
-
context?: React.Context<import("react-redux").ReactReduxContextValue<any, Redux.UnknownAction>>;
|
|
24
|
-
store?: Redux.Store<any, Redux.UnknownAction, unknown>;
|
|
25
|
-
}>;
|
|
22
|
+
export declare let IPushPullPopup: ConnectedComponent<typeof IPushPullPopupComponent, IPushPullPopupProps>;
|
|
26
23
|
export {};
|
|
@@ -22,7 +22,7 @@ class IPushPullPopupComponent extends React.Component {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, bodyProps: {
|
|
25
|
+
return (React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, bodyProps: { className: 'twa:p-0' }, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() }));
|
|
26
26
|
}
|
|
27
27
|
onApplyExport(iPushPullReport) {
|
|
28
28
|
this.props.onIPushPullSendSnapshot(iPushPullReport);
|
|
@@ -5,6 +5,7 @@ import * as PopupRedux from "@adaptabletools/adaptable-cjs/src/Redux/ActionsRedu
|
|
|
5
5
|
import { AdaptableColumn } from "@adaptabletools/adaptable-cjs/src/AdaptableState/Common/AdaptableColumn";
|
|
6
6
|
import { Report } from "@adaptabletools/adaptable-cjs/src/AdaptableState/ExportState";
|
|
7
7
|
import * as React from 'react';
|
|
8
|
+
import { ConnectedComponent } from 'react-redux';
|
|
8
9
|
export interface IPushPullViewPanelComponentProps extends ViewPanelProps {
|
|
9
10
|
onIPushPullSendSnapshot: (iPushPulleport: IPushPullReport) => IPushPullRedux.IPushPullSendSnapshotAction;
|
|
10
11
|
onIPushPullStartLiveData: (iPushPulleport: IPushPullReport) => IPushPullRedux.IPushPullStartLiveDataAction;
|
|
@@ -25,7 +26,6 @@ export interface IPushPullViewPanelComponentProps extends ViewPanelProps {
|
|
|
25
26
|
onCurrentIPushPullFolderChange: (folder: string) => IPushPullRedux.IPushPullSetCurrentFolderAction;
|
|
26
27
|
onCurrentIPushPullPageChange: (page: string) => IPushPullRedux.IPushPullSetCurrentPageAction;
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}>;
|
|
29
|
+
declare const IPushPullViewPanelComponent: (props: IPushPullViewPanelComponentProps) => React.JSX.Element;
|
|
30
|
+
export declare const IPushPullViewPanelControl: ConnectedComponent<typeof IPushPullViewPanelComponent, IPushPullViewPanelComponentProps>;
|
|
31
|
+
export {};
|
|
@@ -100,24 +100,24 @@ const IPushPullViewPanelComponent = (props) => {
|
|
|
100
100
|
const elementType = props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
101
101
|
return props.IsIPushPullRunning ? (React.createElement(Flex_1.Flex, { flexDirection: "row", className: `ab-${elementType}__IPushPull__wrap`, flexWrap: props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
102
102
|
React.createElement(Flex_1.Flex, null,
|
|
103
|
-
React.createElement(DropdownButton_1.default, { disabled: allReports.length == 0 || isLiveIPushPullReport,
|
|
103
|
+
React.createElement(DropdownButton_1.default, { disabled: allReports.length == 0 || isLiveIPushPullReport, items: availableReports, columns: ['label'], className: `ab-${elementType}__IPushPull__select twa:min-w-[140px] twa:text-0 twa:mr-2`, onClear: () => onSelectedReportChanged(''), showClearButton: StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullReportName), variant: "outlined" }, StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullReportName)
|
|
104
104
|
? props.CurrentIPushPullReportName
|
|
105
105
|
: 'Select Report')),
|
|
106
106
|
React.createElement(Flex_1.Flex, null,
|
|
107
|
-
React.createElement(DropdownButton_1.default, { disabled: allReports.length == 0 || isLiveIPushPullReport,
|
|
107
|
+
React.createElement(DropdownButton_1.default, { disabled: allReports.length == 0 || isLiveIPushPullReport, items: availableFolders, columns: ['label'], className: `ab-${elementType}__IPushPull__select twa:min-w-[140px] twa:text-0 twa:mr-2`, onClear: () => onFolderChanged(''), showClearButton: StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullFolder), variant: "outlined" }, StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullFolder)
|
|
108
108
|
? props.CurrentIPushPullFolder
|
|
109
109
|
: 'Select Folder')),
|
|
110
110
|
React.createElement(Flex_1.Flex, null,
|
|
111
|
-
React.createElement(DropdownButton_1.default, { disabled: allReports.length == 0 || isLiveIPushPullReport,
|
|
111
|
+
React.createElement(DropdownButton_1.default, { disabled: allReports.length == 0 || isLiveIPushPullReport, items: availablePages, columns: ['label'], className: `ab-${elementType}__IPushPull__select twa:min-w-[140px] twa:text-0 twa:mr-2`, onClear: () => onPageChanged(''), showClearButton: StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullPage), variant: "outlined" }, StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullPage)
|
|
112
112
|
? props.CurrentIPushPullPage
|
|
113
113
|
: 'Select Page')),
|
|
114
|
-
React.createElement(Flex_1.Flex, {
|
|
115
|
-
React.createElement(ButtonExport_1.ButtonExport, {
|
|
116
|
-
true ? (React.createElement(ButtonPause_1.ButtonPause, {
|
|
117
|
-
isCompletedReport && (React.createElement(Flex_1.Flex, { className: (0, join_1.default)(props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__IPushPull__controls`), alignItems: "stretch" }, props.api.entitlementApi.isModuleFullEntitlement('Schedule') && (React.createElement(ButtonSchedule_1.ButtonSchedule, {
|
|
114
|
+
React.createElement(Flex_1.Flex, { className: "twa:min-w-[148px]" },
|
|
115
|
+
React.createElement(ButtonExport_1.ButtonExport, { className: `ab-${elementType}__IPushPull__export twa:ml-1`, onClick: () => onIPushPullSendSnapshot(), tooltip: "Send Snapshot to ipushpull", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel }),
|
|
116
|
+
true ? (React.createElement(ButtonPause_1.ButtonPause, { className: `ab-${elementType}__IPushPull__pause twa:ml-1 twa:fill-red-500`, onClick: () => props.onIPushPullStopLiveData(), tooltip: "Stop sync with ipushpull", disabled: !isLiveIPushPullReport, accessLevel: props.accessLevel })) : (React.createElement(ButtonPlay_1.ButtonPlay, { className: `ab-${elementType}__IPushPull__play twa:ml-1`, onClick: () => onIPushPullStartLiveData(), tooltip: "Start sync with ipushpull", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel })),
|
|
117
|
+
isCompletedReport && (React.createElement(Flex_1.Flex, { className: (0, join_1.default)(props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__IPushPull__controls`), alignItems: "stretch" }, props.api.entitlementApi.isModuleFullEntitlement('Schedule') && (React.createElement(ButtonSchedule_1.ButtonSchedule, { className: `ab-${elementType}__IPushPull__schedule twa:ml-1`, onClick: () => onNewIPushPullSchedule(), tooltip: "Schedule", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel })))),
|
|
118
118
|
' ',
|
|
119
|
-
React.createElement(ButtonNewPage_1.ButtonNewPage, {
|
|
120
|
-
React.createElement(ButtonLogout_1.ButtonLogout, {
|
|
119
|
+
React.createElement(ButtonNewPage_1.ButtonNewPage, { className: `ab-${elementType}__IPushPull__newpage twa:ml-1`, onClick: () => props.onShowAddIPushPullPage(), tooltip: "New Page", disabled: isLiveIPushPullReport, accessLevel: props.accessLevel }),
|
|
120
|
+
React.createElement(ButtonLogout_1.ButtonLogout, { className: `ab-${elementType}__IPushPull__logout twa:ml-1`, onClick: () => getIPPApi().logoutFromIPushPull(), tooltip: "Logout", disabled: isLiveIPushPullReport, accessLevel: props.accessLevel })))) : (React.createElement(ButtonLogin_1.ButtonLogin, { className: `ab-${elementType}__IPushPull__login twa:ml-1`, onClick: () => props.onShowIPushPullLogin(), tooltip: "Login to ipushpull", accessLevel: props.accessLevel },
|
|
121
121
|
' ',
|
|
122
122
|
"Login"));
|
|
123
123
|
};
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdaptablePlugin } from "@adaptabletools/adaptable-cjs/types";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Middleware } from 'redux';
|
|
3
3
|
import * as Redux from 'redux';
|
|
4
4
|
import { IPushPullState } from "@adaptabletools/adaptable-cjs/src/AdaptableState/IPushPullState";
|
|
5
5
|
import { IPushPullApi } from "@adaptabletools/adaptable-cjs/src/Api/IPushPullApi";
|