@adaptabletools/adaptable-plugin-ipushpull-cjs 21.2.2-canary.0 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-plugin-ipushpull-cjs",
3
- "version": "21.2.2-canary.0",
3
+ "version": "22.0.0-canary.0",
4
4
  "description": "",
5
5
  "homepage": "http://www.adaptabletools.com/",
6
6
  "author": {
@@ -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
- export declare let IPushPullAddPagePopup: import("react-redux").ConnectedComponent<(props: IPushPullAddPagePopupProps) => React.JSX.Element, {
10
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction>>;
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
- fontSize: 'var(--ab-font-size-4)',
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", padding: 2, margin: 2 },
82
- React.createElement(HelpBlock_1.default, { marginBottom: 1 }, "Select a folder and then choose the name of the new ipushpull page it should contain."),
83
- React.createElement(FormLayout_1.default, { margin: 3 },
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, style: { minWidth: '50%' }, options: availableFolders, className: "ab-Popup__IPushPull__select", onChange: (folder) => onFolderChanged(folder), value: state.Folder ? state.Folder : null, placeholder: "Select Folder", marginRight: 2 })),
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, { width: "50%", type: "text", placeholder: "Page Name", value: state.Page, onChange: onPageNameChange })),
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
- export declare let IPushPullLoginPopup: import("react-redux").ConnectedComponent<(props: IPushPullLoginPopupProps) => React.JSX.Element, {
11
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction>>;
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
- fontSize: 'var(--ab-font-size-4)',
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", padding: 2, margin: 2 },
53
- React.createElement(HelpBlock_1.default, { marginBottom: 1 }, "Login to ipushpull using your login (email address) and password."),
54
- React.createElement(FormLayout_1.default, { margin: 3 },
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, { width: "100%", type: "email", placeholder: "Email address", value: state.Login, onChange: onLoginChange })),
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, { width: "100%", type: "password", placeholder: "Password", value: state.Password, onChange: onPasswordChange })),
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 * as Redux from 'redux';
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: import("react-redux").ConnectedComponent<typeof IPushPullPopupComponent, {
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: { padding: 0 }, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() }));
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
- export declare const IPushPullViewPanelControl: import("react-redux").ConnectedComponent<(props: IPushPullViewPanelComponentProps) => React.JSX.Element, {
29
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction>>;
30
- store?: import("redux").Store<any, import("redux").UnknownAction, unknown>;
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, style: { minWidth: 140, fontSize: 'small' }, items: availableReports, columns: ['label'], className: `ab-${elementType}__IPushPull__select`, onClear: () => onSelectedReportChanged(''), showClearButton: StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullReportName), variant: "outlined", marginRight: 2 }, StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullReportName)
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, style: { minWidth: 140, fontSize: 'small' }, items: availableFolders, columns: ['label'], className: `ab-${elementType}__IPushPull__select`, onClear: () => onFolderChanged(''), showClearButton: StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullFolder), variant: "outlined", marginRight: 2 }, StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullFolder)
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, style: { minWidth: 140, fontSize: 'small' }, items: availablePages, columns: ['label'], className: `ab-${elementType}__IPushPull__select`, onClear: () => onPageChanged(''), showClearButton: StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullPage), variant: "outlined", marginRight: 2 }, StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.CurrentIPushPullPage)
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, { style: { minWidth: '148px' } },
115
- React.createElement(ButtonExport_1.ButtonExport, { marginLeft: 1, className: `ab-${elementType}__IPushPull__export`, onClick: () => onIPushPullSendSnapshot(), tooltip: "Send Snapshot to ipushpull", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel }),
116
- true ? (React.createElement(ButtonPause_1.ButtonPause, { fillColor: 'red', marginLeft: 1, className: `ab-${elementType}__IPushPull__pause`, onClick: () => props.onIPushPullStopLiveData(), tooltip: "Stop sync with ipushpull", disabled: !isLiveIPushPullReport, accessLevel: props.accessLevel })) : (React.createElement(ButtonPlay_1.ButtonPlay, { marginLeft: 1, className: `ab-${elementType}__IPushPull__play`, 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, { marginLeft: 1, className: `ab-${elementType}__IPushPull__schedule`, onClick: () => onNewIPushPullSchedule(), tooltip: "Schedule", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel })))),
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, { marginLeft: 1, className: `ab-${elementType}__IPushPull__newpage`, onClick: () => props.onShowAddIPushPullPage(), tooltip: "New Page", disabled: isLiveIPushPullReport, accessLevel: props.accessLevel }),
120
- React.createElement(ButtonLogout_1.ButtonLogout, { marginLeft: 1, className: `ab-${elementType}__IPushPull__logout`, onClick: () => getIPPApi().logoutFromIPushPull(), tooltip: "Logout", disabled: isLiveIPushPullReport, accessLevel: props.accessLevel })))) : (React.createElement(ButtonLogin_1.ButtonLogin, { marginLeft: 1, className: `ab-${elementType}__IPushPull__login`, onClick: () => props.onShowIPushPullLogin(), tooltip: "Login to ipushpull", accessLevel: props.accessLevel },
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 { Action, Middleware } from 'redux';
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";