@adaptabletools/adaptable-plugin-ipushpull-cjs 17.0.0-canary.3 → 18.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 +2 -2
- package/src/IPushPullApiImpl.d.ts +5 -5
- package/src/Module/Interface/IPushPullModule.d.ts +2 -2
- package/src/Module/PushPullModule.d.ts +4 -4
- package/src/Module/PushPullModule.js +11 -3
- package/src/Redux/ActionReducers/IPushPullRedux.d.ts +3 -3
- package/src/Utilities/Services/Interface/IPushPullService.d.ts +1 -1
- package/src/Utilities/Services/PushPullService.d.ts +2 -2
- package/src/View/IPushPullAddPagePopup.d.ts +1 -1
- package/src/View/IPushPullPopup.d.ts +6 -6
- package/src/View/IPushPullViewPanel.d.ts +5 -5
- package/src/index.d.ts +6 -6
- package/src/index.js +11 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-plugin-ipushpull-cjs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0-canary.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "http://www.adaptabletools.com/",
|
|
6
6
|
"author": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"redux": "4.0.5",
|
|
20
20
|
"styled-components": "^4.4.1",
|
|
21
21
|
"tslib": "^2.3.0",
|
|
22
|
-
"@adaptabletools/adaptable-cjs": "
|
|
22
|
+
"@adaptabletools/adaptable-cjs": "18.0.0-canary.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {}
|
|
25
25
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApiBase } from
|
|
2
|
-
import { IPushPullDomain, IPushPullReport, IPushPullSchedule } from
|
|
3
|
-
import { IPushPullApi } from
|
|
4
|
-
import { IPushPullPluginOptions } from
|
|
5
|
-
import { IAdaptable } from
|
|
1
|
+
import { ApiBase } from "@adaptabletools/adaptable-cjs/src/Api/Implementation/ApiBase";
|
|
2
|
+
import { IPushPullDomain, IPushPullReport, IPushPullSchedule } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/IPushPullState";
|
|
3
|
+
import { IPushPullApi } from "@adaptabletools/adaptable-cjs/src/Api/IPushPullApi";
|
|
4
|
+
import { IPushPullPluginOptions } from "@adaptabletools/adaptable-cjs/src/AdaptableOptions/IPushPullPluginOptions";
|
|
5
|
+
import { IAdaptable } from "@adaptabletools/adaptable-cjs/src/AdaptableInterfaces/IAdaptable";
|
|
6
6
|
export declare class IPushPullApiImpl extends ApiBase implements IPushPullApi {
|
|
7
7
|
private ippInstance;
|
|
8
8
|
private ippService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IPushPullReport } from
|
|
2
|
-
import { IModule } from
|
|
1
|
+
import { IPushPullReport } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/IPushPullState";
|
|
2
|
+
import { IModule } from "@adaptabletools/adaptable-cjs/src/Strategy/Interface/IModule";
|
|
3
3
|
export interface IPushPullModule extends IModule {
|
|
4
4
|
sendSnapshot(report: IPushPullReport): void;
|
|
5
5
|
startLiveData(report: IPushPullReport): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AdaptableModuleBase } from
|
|
1
|
+
import { AdaptableModuleBase } from "@adaptabletools/adaptable-cjs/src/Strategy/AdaptableModuleBase";
|
|
2
2
|
import { IPushPullModule } from './Interface/IPushPullModule';
|
|
3
|
-
import { IPushPullReport } from
|
|
4
|
-
import { IPushPullApi } from
|
|
5
|
-
import { AccessLevel, AdaptableApi } from
|
|
3
|
+
import { IPushPullReport } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/IPushPullState";
|
|
4
|
+
import { IPushPullApi } from "@adaptabletools/adaptable-cjs/src/Api/IPushPullApi";
|
|
5
|
+
import { AccessLevel, AdaptableApi } from "@adaptabletools/adaptable-cjs/types";
|
|
6
6
|
export declare class PushPullModule extends AdaptableModuleBase implements IPushPullModule {
|
|
7
7
|
private isSendingData;
|
|
8
8
|
private ippService;
|
|
@@ -54,12 +54,20 @@ class PushPullModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
// if grid selection has changed and the ipushpull Live report is 'Selected Cells' or 'Selected Rows' then send updated data
|
|
57
|
-
this.api.eventApi.on('
|
|
57
|
+
this.api.eventApi.on('CellSelectionChanged', () => {
|
|
58
58
|
if (this.getIPPApi().isIPushPullLiveDataRunning()) {
|
|
59
59
|
let currentLiveIPushPullReport = this.getIPPApi().getCurrentLiveIPushPullReport();
|
|
60
60
|
if (currentLiveIPushPullReport &&
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
currentLiveIPushPullReport.ReportName === GeneralConstants_1.SELECTED_CELLS_REPORT) {
|
|
62
|
+
this.throttledRecomputeAndSendLiveDataEvent();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
this.api.eventApi.on('RowSelectionChanged', () => {
|
|
67
|
+
if (this.getIPPApi().isIPushPullLiveDataRunning()) {
|
|
68
|
+
let currentLiveIPushPullReport = this.getIPPApi().getCurrentLiveIPushPullReport();
|
|
69
|
+
if (currentLiveIPushPullReport &&
|
|
70
|
+
currentLiveIPushPullReport.ReportName === GeneralConstants_1.SELECTED_ROWS_REPORT) {
|
|
63
71
|
this.throttledRecomputeAndSendLiveDataEvent();
|
|
64
72
|
}
|
|
65
73
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Redux from 'redux';
|
|
2
|
-
import { IPushPullReport } from
|
|
3
|
-
import { IPushPullDomain } from
|
|
4
|
-
import { IPushPullState } from
|
|
2
|
+
import { IPushPullReport } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/IPushPullState";
|
|
3
|
+
import { IPushPullDomain } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/IPushPullState";
|
|
4
|
+
import { IPushPullState } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/IPushPullState";
|
|
5
5
|
export interface IPushPullSetThrottleTimeAction extends Redux.Action {
|
|
6
6
|
throttleTime: number;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServiceStatus } from '../PushPullService';
|
|
2
|
-
import { IPushPullDomain } from
|
|
2
|
+
import { IPushPullDomain } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/SystemState";
|
|
3
3
|
export interface IPushPullService {
|
|
4
4
|
login(login: string, password: string): Promise<any>;
|
|
5
5
|
getDomainPages(): Promise<IPushPullDomain[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IAdaptable } from
|
|
1
|
+
import { IAdaptable } from "@adaptabletools/adaptable-cjs/src/AdaptableInterfaces/IAdaptable";
|
|
2
2
|
import { IPushPullService } from './Interface/IPushPullService';
|
|
3
|
-
import { IPushPullDomain } from
|
|
3
|
+
import { IPushPullDomain } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/SystemState";
|
|
4
4
|
export declare enum ServiceStatus {
|
|
5
5
|
Unknown = "Unknown",
|
|
6
6
|
Disconnected = "Disconnected",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as IPushPullRedux from '../Redux/ActionReducers/IPushPullRedux';
|
|
3
|
-
import { IPushPullDomain } from
|
|
3
|
+
import { IPushPullDomain } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/IPushPullState";
|
|
4
4
|
interface IPushPullAddPagePopupProps {
|
|
5
5
|
IPushPullDomainsPages: IPushPullDomain[] | undefined;
|
|
6
6
|
onAddPage: (folder: string, page: string) => IPushPullRedux.IPushPullAddPageAction;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as IPushPullRedux from '../Redux/ActionReducers/IPushPullRedux';
|
|
3
|
-
import { ModuleViewPopupProps } from
|
|
4
|
-
import * as TeamSharingRedux from
|
|
5
|
-
import { EditableConfigEntityState } from
|
|
6
|
-
import { AdaptableObject } from
|
|
7
|
-
import { IPushPullReport } from
|
|
8
|
-
import { AdaptableSharedEntityConfig } from
|
|
3
|
+
import { ModuleViewPopupProps } from "@adaptabletools/adaptable-cjs/src/View/Components/SharedProps/ModuleViewPopupProps";
|
|
4
|
+
import * as TeamSharingRedux from "@adaptabletools/adaptable-cjs/src/Redux/ActionsReducers/TeamSharingRedux";
|
|
5
|
+
import { EditableConfigEntityState } from "@adaptabletools/adaptable-cjs/src/View/Components/SharedProps/EditableConfigEntityState";
|
|
6
|
+
import { AdaptableObject } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/Common/AdaptableObject";
|
|
7
|
+
import { IPushPullReport } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/IPushPullState";
|
|
8
|
+
import { AdaptableSharedEntityConfig } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/TeamSharingState";
|
|
9
9
|
interface IPushPullPopupProps extends ModuleViewPopupProps<IPushPullPopupComponent> {
|
|
10
10
|
onIPushPullSendSnapshot: (iPushPulleport: IPushPullReport) => IPushPullRedux.IPushPullSendSnapshotAction;
|
|
11
11
|
onIPushPullStopLiveData: () => IPushPullRedux.IPushPullStopLiveDataAction;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ViewPanelProps } from
|
|
3
|
-
import { IPushPullDomain, IPushPullReport, IPushPullSchedule } from
|
|
2
|
+
import { ViewPanelProps } from "@adaptabletools/adaptable-cjs/src/View/Components/SharedProps/ViewPanelProps";
|
|
3
|
+
import { IPushPullDomain, IPushPullReport, IPushPullSchedule } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/IPushPullState";
|
|
4
4
|
import * as IPushPullRedux from '../Redux/ActionReducers/IPushPullRedux';
|
|
5
|
-
import * as PopupRedux from
|
|
6
|
-
import { AdaptableColumn } from
|
|
7
|
-
import { Report } from
|
|
5
|
+
import * as PopupRedux from "@adaptabletools/adaptable-cjs/src/Redux/ActionsReducers/PopupRedux";
|
|
6
|
+
import { AdaptableColumn } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/Common/AdaptableColumn";
|
|
7
|
+
import { Report } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/ExportState";
|
|
8
8
|
export interface IPushPullViewPanelComponentProps extends ViewPanelProps {
|
|
9
9
|
onIPushPullSendSnapshot: (iPushPulleport: IPushPullReport) => IPushPullRedux.IPushPullSendSnapshotAction;
|
|
10
10
|
onIPushPullStartLiveData: (iPushPulleport: IPushPullReport) => IPushPullRedux.IPushPullStartLiveDataAction;
|
package/src/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AdaptableModule, AdaptablePlugin } from
|
|
1
|
+
import { AdaptableModule, AdaptablePlugin } from "@adaptabletools/adaptable-cjs/types";
|
|
2
2
|
import * as Redux from 'redux';
|
|
3
|
-
import { IPushPullState } from
|
|
4
|
-
import { IModule } from
|
|
5
|
-
import { IPushPullApi } from
|
|
6
|
-
import { IPushPullPluginOptions } from
|
|
7
|
-
import { IAdaptable } from
|
|
3
|
+
import { IPushPullState } from "@adaptabletools/adaptable-cjs/src/PredefinedConfig/IPushPullState";
|
|
4
|
+
import { IModule } from "@adaptabletools/adaptable-cjs/src/Strategy/Interface/IModule";
|
|
5
|
+
import { IPushPullApi } from "@adaptabletools/adaptable-cjs/src/Api/IPushPullApi";
|
|
6
|
+
import { IPushPullPluginOptions } from "@adaptabletools/adaptable-cjs/src/AdaptableOptions/IPushPullPluginOptions";
|
|
7
|
+
import { IAdaptable } from "@adaptabletools/adaptable-cjs/src/AdaptableInterfaces/IAdaptable";
|
|
8
8
|
declare class IPushPullPlugin extends AdaptablePlugin {
|
|
9
9
|
options: IPushPullPluginOptions;
|
|
10
10
|
pluginId: string;
|
package/src/index.js
CHANGED
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const types_1 = require("@adaptabletools/adaptable-cjs/types");
|
|
5
5
|
const env_1 = tslib_1.__importDefault(require("./env"));
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// TODO in the future, try to put back the version check
|
|
7
|
+
// import { version, name } from '../package.json';
|
|
8
|
+
// import { version as coreVersion } from '@adaptabletools/adaptable/package.json';
|
|
8
9
|
const ModuleConstants = tslib_1.__importStar(require("@adaptabletools/adaptable-cjs/src/Utilities/Constants/ModuleConstants"));
|
|
9
10
|
const ModuleConstants_1 = require("@adaptabletools/adaptable-cjs/src/Utilities/Constants/ModuleConstants");
|
|
10
11
|
const PopupRedux = tslib_1.__importStar(require("@adaptabletools/adaptable-cjs/src/Redux/ActionsReducers/PopupRedux"));
|
|
@@ -19,14 +20,14 @@ const IPushPullAddPagePopup_1 = require("./View/IPushPullAddPagePopup");
|
|
|
19
20
|
const PluginsRedux_1 = require("@adaptabletools/adaptable-cjs/src/Redux/ActionsReducers/PluginsRedux");
|
|
20
21
|
const StringExtensions_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable-cjs/src/Utilities/Extensions/StringExtensions"));
|
|
21
22
|
const IPushPullViewPanel_1 = require("./View/IPushPullViewPanel");
|
|
22
|
-
const suffix =
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
26
|
-
!!!!!!! "@adaptabletools/adaptable-plugin-ipushpull${suffix}" (v @${
|
|
27
|
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
28
|
-
`);
|
|
29
|
-
}
|
|
23
|
+
// const suffix = name.endsWith('-cjs') ? '-cjs' : '';
|
|
24
|
+
// if (version !== coreVersion) {
|
|
25
|
+
// console.warn(`
|
|
26
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
27
|
+
// !!!!!!! "@adaptabletools/adaptable-plugin-ipushpull${suffix}" (v @${version}) and "@adaptabletools/adaptable${suffix}" (v @${coreVersion}) have different versions - they should have the exact same version.
|
|
28
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
29
|
+
// `);
|
|
30
|
+
// }
|
|
30
31
|
const getApiKey = () => {
|
|
31
32
|
let key = env_1.default.IPUSHPULL_API_KEY; // need to make sure that is always there
|
|
32
33
|
return key;
|