@adaptabletools/adaptable-plugin-ipushpull 21.2.1 → 22.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/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/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/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 {};
|
|
@@ -65,7 +65,7 @@ const IPushPullAddPageComponent = (props) => {
|
|
|
65
65
|
e.preventDefault();
|
|
66
66
|
onSubmit();
|
|
67
67
|
}, footerProps: {
|
|
68
|
-
|
|
68
|
+
className: 'twa:text-4',
|
|
69
69
|
}, footer: React.createElement(React.Fragment, null,
|
|
70
70
|
React.createElement(SimpleButton, { tone: "neutral", variant: "text", tooltip: "Close", onClick: (e) => {
|
|
71
71
|
e.stopPropagation();
|
|
@@ -74,13 +74,13 @@ const IPushPullAddPageComponent = (props) => {
|
|
|
74
74
|
React.createElement("div", { style: { flex: 1 } }),
|
|
75
75
|
React.createElement(SimpleButton, { tone: "accent", variant: "raised", type: "submit", disabled: StringExtensions.IsNullOrEmpty(state.Folder) ||
|
|
76
76
|
StringExtensions.IsNullOrEmpty(state.Page), icon: 'check' }, "Add Page")) },
|
|
77
|
-
React.createElement(Flex, { flexDirection: "column",
|
|
78
|
-
React.createElement(HelpBlock, {
|
|
79
|
-
React.createElement(FormLayout, {
|
|
77
|
+
React.createElement(Flex, { flexDirection: "column", className: "twa:p-2 twa:m-2" },
|
|
78
|
+
React.createElement(HelpBlock, { className: "twa:mb-1" }, "Select a folder and then choose the name of the new ipushpull page it should contain."),
|
|
79
|
+
React.createElement(FormLayout, { className: "twa:m-3" },
|
|
80
80
|
React.createElement(FormRow, { label: "Folder:" },
|
|
81
|
-
React.createElement(Dropdown, { disabled: availableFolders.length == 0,
|
|
81
|
+
React.createElement(Dropdown, { 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" })),
|
|
82
82
|
React.createElement(FormRow, { label: "Page" },
|
|
83
|
-
React.createElement(Input, {
|
|
83
|
+
React.createElement(Input, { className: "twa:w-1/2", type: "text", placeholder: "Page Name", value: state.Page, onChange: onPageNameChange })),
|
|
84
84
|
state.ErrorMessage ? (React.createElement(FormRow, { label: "" },
|
|
85
85
|
React.createElement(ErrorBox, null, state.ErrorMessage))) : null)))));
|
|
86
86
|
};
|
|
@@ -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 {};
|
|
@@ -37,7 +37,7 @@ const IPushPullLoginComponent = (props) => {
|
|
|
37
37
|
e.preventDefault();
|
|
38
38
|
onSubmit();
|
|
39
39
|
}, footerProps: {
|
|
40
|
-
|
|
40
|
+
className: 'twa:text-4',
|
|
41
41
|
}, footer: React.createElement(React.Fragment, null,
|
|
42
42
|
React.createElement(SimpleButton, { tone: "neutral", variant: "text", tooltip: "Close", onClick: (e) => {
|
|
43
43
|
e.stopPropagation();
|
|
@@ -45,13 +45,13 @@ const IPushPullLoginComponent = (props) => {
|
|
|
45
45
|
} }, "CLOSE"),
|
|
46
46
|
React.createElement("div", { style: { flex: 1 } }),
|
|
47
47
|
React.createElement(SimpleButton, { tone: "accent", variant: "raised", type: "submit", disabled: StringExtensions.IsNullOrEmpty(state.Password), icon: 'check' }, "Login")) },
|
|
48
|
-
React.createElement(Flex, { flexDirection: "column",
|
|
49
|
-
React.createElement(HelpBlock, {
|
|
50
|
-
React.createElement(FormLayout, {
|
|
48
|
+
React.createElement(Flex, { flexDirection: "column", className: "twa:p-2 twa:m-2" },
|
|
49
|
+
React.createElement(HelpBlock, { className: "twa:mb-1" }, "Login to ipushpull using your login (email address) and password."),
|
|
50
|
+
React.createElement(FormLayout, { className: "twa:m-3" },
|
|
51
51
|
React.createElement(FormRow, { label: "ipushpull login:" },
|
|
52
|
-
React.createElement(Input, {
|
|
52
|
+
React.createElement(Input, { className: "twa:w-full", type: "email", placeholder: "Email address", value: state.Login, onChange: onLoginChange })),
|
|
53
53
|
React.createElement(FormRow, { label: "ipushpull password:" },
|
|
54
|
-
React.createElement(Input, {
|
|
54
|
+
React.createElement(Input, { className: "twa:w-full", type: "password", placeholder: "Password", value: state.Password, onChange: onPasswordChange })),
|
|
55
55
|
props.pushpullLoginErrorMessage ? (React.createElement(FormRow, { label: "" },
|
|
56
56
|
React.createElement(ErrorBox, null, props.pushpullLoginErrorMessage))) : null)))));
|
|
57
57
|
};
|
|
@@ -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/src/View/Components/SharedProps/ModuleViewPopupProps';
|
|
5
5
|
import * as TeamSharingRedux from '@adaptabletools/adaptable/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 {};
|
|
@@ -18,7 +18,7 @@ class IPushPullPopupComponent extends React.Component {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (React.createElement(PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, bodyProps: {
|
|
21
|
+
return (React.createElement(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() }));
|
|
22
22
|
}
|
|
23
23
|
onApplyExport(iPushPullReport) {
|
|
24
24
|
this.props.onIPushPullSendSnapshot(iPushPullReport);
|
|
@@ -5,6 +5,7 @@ import * as PopupRedux from '@adaptabletools/adaptable/src/Redux/ActionsReducers
|
|
|
5
5
|
import { AdaptableColumn } from '@adaptabletools/adaptable/src/AdaptableState/Common/AdaptableColumn';
|
|
6
6
|
import { Report } from '@adaptabletools/adaptable/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 {};
|
|
@@ -96,24 +96,24 @@ const IPushPullViewPanelComponent = (props) => {
|
|
|
96
96
|
const elementType = props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
97
97
|
return props.IsIPushPullRunning ? (React.createElement(Flex, { flexDirection: "row", className: `ab-${elementType}__IPushPull__wrap`, flexWrap: props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
98
98
|
React.createElement(Flex, null,
|
|
99
|
-
React.createElement(DropdownButton, { disabled: allReports.length == 0 || isLiveIPushPullReport,
|
|
99
|
+
React.createElement(DropdownButton, { 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.IsNotNullOrEmpty(props.CurrentIPushPullReportName), variant: "outlined" }, StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullReportName)
|
|
100
100
|
? props.CurrentIPushPullReportName
|
|
101
101
|
: 'Select Report')),
|
|
102
102
|
React.createElement(Flex, null,
|
|
103
|
-
React.createElement(DropdownButton, { disabled: allReports.length == 0 || isLiveIPushPullReport,
|
|
103
|
+
React.createElement(DropdownButton, { 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.IsNotNullOrEmpty(props.CurrentIPushPullFolder), variant: "outlined" }, StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullFolder)
|
|
104
104
|
? props.CurrentIPushPullFolder
|
|
105
105
|
: 'Select Folder')),
|
|
106
106
|
React.createElement(Flex, null,
|
|
107
|
-
React.createElement(DropdownButton, { disabled: allReports.length == 0 || isLiveIPushPullReport,
|
|
107
|
+
React.createElement(DropdownButton, { 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.IsNotNullOrEmpty(props.CurrentIPushPullPage), variant: "outlined" }, StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullPage)
|
|
108
108
|
? props.CurrentIPushPullPage
|
|
109
109
|
: 'Select Page')),
|
|
110
|
-
React.createElement(Flex, {
|
|
111
|
-
React.createElement(ButtonExport, {
|
|
112
|
-
true ? (React.createElement(ButtonPause, {
|
|
113
|
-
isCompletedReport && (React.createElement(Flex, { className: join(props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__IPushPull__controls`), alignItems: "stretch" }, props.api.entitlementApi.isModuleFullEntitlement('Schedule') && (React.createElement(ButtonSchedule, {
|
|
110
|
+
React.createElement(Flex, { className: "twa:min-w-[148px]" },
|
|
111
|
+
React.createElement(ButtonExport, { className: `ab-${elementType}__IPushPull__export twa:ml-1`, onClick: () => onIPushPullSendSnapshot(), tooltip: "Send Snapshot to ipushpull", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel }),
|
|
112
|
+
true ? (React.createElement(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, { className: `ab-${elementType}__IPushPull__play twa:ml-1`, onClick: () => onIPushPullStartLiveData(), tooltip: "Start sync with ipushpull", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel })),
|
|
113
|
+
isCompletedReport && (React.createElement(Flex, { className: join(props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__IPushPull__controls`), alignItems: "stretch" }, props.api.entitlementApi.isModuleFullEntitlement('Schedule') && (React.createElement(ButtonSchedule, { className: `ab-${elementType}__IPushPull__schedule twa:ml-1`, onClick: () => onNewIPushPullSchedule(), tooltip: "Schedule", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel })))),
|
|
114
114
|
' ',
|
|
115
|
-
React.createElement(ButtonNewPage, {
|
|
116
|
-
React.createElement(ButtonLogout, {
|
|
115
|
+
React.createElement(ButtonNewPage, { className: `ab-${elementType}__IPushPull__newpage twa:ml-1`, onClick: () => props.onShowAddIPushPullPage(), tooltip: "New Page", disabled: isLiveIPushPullReport, accessLevel: props.accessLevel }),
|
|
116
|
+
React.createElement(ButtonLogout, { className: `ab-${elementType}__IPushPull__logout twa:ml-1`, onClick: () => getIPPApi().logoutFromIPushPull(), tooltip: "Logout", disabled: isLiveIPushPullReport, accessLevel: props.accessLevel })))) : (React.createElement(ButtonLogin, { className: `ab-${elementType}__IPushPull__login twa:ml-1`, onClick: () => props.onShowIPushPullLogin(), tooltip: "Login to ipushpull", accessLevel: props.accessLevel },
|
|
117
117
|
' ',
|
|
118
118
|
"Login"));
|
|
119
119
|
};
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdaptablePlugin } from '@adaptabletools/adaptable/types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Middleware } from 'redux';
|
|
3
3
|
import * as Redux from 'redux';
|
|
4
4
|
import { IPushPullState } from '@adaptabletools/adaptable/src/AdaptableState/IPushPullState';
|
|
5
5
|
import { IPushPullApi } from '@adaptabletools/adaptable/src/Api/IPushPullApi';
|