@journeyapps-labs/reactor-mod-data-browser 1.0.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/CHANGELOG.md +7 -0
- package/README.md +3 -0
- package/dist/@types/DataBrowserModule.d.ts +7 -0
- package/dist/@types/actions/connections/AddConnectionAction.d.ts +10 -0
- package/dist/@types/actions/connections/RemoveConnectionAction.d.ts +10 -0
- package/dist/@types/actions/schema-definitions/CreateModelAction.d.ts +9 -0
- package/dist/@types/actions/schema-definitions/QuerySchemaModelAction.d.ts +9 -0
- package/dist/@types/actions/schema-model/EditSchemaModelAction.d.ts +9 -0
- package/dist/@types/core/AbstractConnection.d.ts +33 -0
- package/dist/@types/core/AbstractConnectionFactory.d.ts +11 -0
- package/dist/@types/core/SchemaModelDefinition.d.ts +20 -0
- package/dist/@types/core/SchemaModelObject.d.ts +12 -0
- package/dist/@types/core/query/AbstractQuery.d.ts +22 -0
- package/dist/@types/core/query/Page.d.ts +24 -0
- package/dist/@types/core/query/SimpleQuery.d.ts +36 -0
- package/dist/@types/core/types/ManualConnection.d.ts +14 -0
- package/dist/@types/core/types/ManualConnectionFactory.d.ts +9 -0
- package/dist/@types/entities/ConnectionEntityDefinition.d.ts +9 -0
- package/dist/@types/entities/ConnectionFactoryEntityDefinition.d.ts +9 -0
- package/dist/@types/entities/QueryEntityDefinition.d.ts +9 -0
- package/dist/@types/entities/SchemaModelDefinitionEntityDefinition.d.ts +13 -0
- package/dist/@types/entities/SchemaModelObjectEntityDefinition.d.ts +14 -0
- package/dist/@types/entities.d.ts +7 -0
- package/dist/@types/forms/APIConnectionForm.d.ts +12 -0
- package/dist/@types/forms/SchemaModelForm.d.ts +11 -0
- package/dist/@types/index.d.ts +3 -0
- package/dist/@types/panels/model/ModelPanelFactory.d.ts +28 -0
- package/dist/@types/panels/model/ModelPanelWidget.d.ts +6 -0
- package/dist/@types/panels/query/PageResultsWidget.d.ts +8 -0
- package/dist/@types/panels/query/QueryPanelFactory.d.ts +33 -0
- package/dist/@types/panels/query/QueryPanelWidget.d.ts +6 -0
- package/dist/@types/panels/query/TableControlsWidget.d.ts +10 -0
- package/dist/@types/stores/ConnectionStore.d.ts +20 -0
- package/dist/DataBrowserModule.js +45 -0
- package/dist/DataBrowserModule.js.map +1 -0
- package/dist/actions/connections/AddConnectionAction.js +48 -0
- package/dist/actions/connections/AddConnectionAction.js.map +1 -0
- package/dist/actions/connections/RemoveConnectionAction.js +43 -0
- package/dist/actions/connections/RemoveConnectionAction.js.map +1 -0
- package/dist/actions/schema-definitions/CreateModelAction.js +45 -0
- package/dist/actions/schema-definitions/CreateModelAction.js.map +1 -0
- package/dist/actions/schema-definitions/QuerySchemaModelAction.js +47 -0
- package/dist/actions/schema-definitions/QuerySchemaModelAction.js.map +1 -0
- package/dist/actions/schema-model/EditSchemaModelAction.js +46 -0
- package/dist/actions/schema-model/EditSchemaModelAction.js.map +1 -0
- package/dist/core/AbstractConnection.js +69 -0
- package/dist/core/AbstractConnection.js.map +1 -0
- package/dist/core/AbstractConnectionFactory.js +6 -0
- package/dist/core/AbstractConnectionFactory.js.map +1 -0
- package/dist/core/SchemaModelDefinition.js +31 -0
- package/dist/core/SchemaModelDefinition.js.map +1 -0
- package/dist/core/SchemaModelObject.js +12 -0
- package/dist/core/SchemaModelObject.js.map +1 -0
- package/dist/core/query/AbstractQuery.js +18 -0
- package/dist/core/query/AbstractQuery.js.map +1 -0
- package/dist/core/query/Page.js +65 -0
- package/dist/core/query/Page.js.map +1 -0
- package/dist/core/query/SimpleQuery.js +160 -0
- package/dist/core/query/SimpleQuery.js.map +1 -0
- package/dist/core/types/ManualConnection.js +21 -0
- package/dist/core/types/ManualConnection.js.map +1 -0
- package/dist/core/types/ManualConnectionFactory.js +50 -0
- package/dist/core/types/ManualConnectionFactory.js.map +1 -0
- package/dist/entities/ConnectionEntityDefinition.js +77 -0
- package/dist/entities/ConnectionEntityDefinition.js.map +1 -0
- package/dist/entities/ConnectionFactoryEntityDefinition.js +60 -0
- package/dist/entities/ConnectionFactoryEntityDefinition.js.map +1 -0
- package/dist/entities/QueryEntityDefinition.js +60 -0
- package/dist/entities/QueryEntityDefinition.js.map +1 -0
- package/dist/entities/SchemaModelDefinitionEntityDefinition.js +76 -0
- package/dist/entities/SchemaModelDefinitionEntityDefinition.js.map +1 -0
- package/dist/entities/SchemaModelObjectEntityDefinition.js +76 -0
- package/dist/entities/SchemaModelObjectEntityDefinition.js.map +1 -0
- package/dist/entities.js +9 -0
- package/dist/entities.js.map +1 -0
- package/dist/forms/APIConnectionForm.js +31 -0
- package/dist/forms/APIConnectionForm.js.map +1 -0
- package/dist/forms/SchemaModelForm.js +72 -0
- package/dist/forms/SchemaModelForm.js.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/panels/model/ModelPanelFactory.js +94 -0
- package/dist/panels/model/ModelPanelFactory.js.map +1 -0
- package/dist/panels/model/ModelPanelWidget.js +28 -0
- package/dist/panels/model/ModelPanelWidget.js.map +1 -0
- package/dist/panels/query/PageResultsWidget.js +24 -0
- package/dist/panels/query/PageResultsWidget.js.map +1 -0
- package/dist/panels/query/QueryPanelFactory.js +94 -0
- package/dist/panels/query/QueryPanelFactory.js.map +1 -0
- package/dist/panels/query/QueryPanelWidget.js +41 -0
- package/dist/panels/query/QueryPanelWidget.js.map +1 -0
- package/dist/panels/query/TableControlsWidget.js +52 -0
- package/dist/panels/query/TableControlsWidget.js.map +1 -0
- package/dist/stores/ConnectionStore.js +93 -0
- package/dist/stores/ConnectionStore.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist-module/bundle.js +31 -0
- package/dist-module/bundle.js.LICENSE.txt +16 -0
- package/dist-module/bundle.js.map +1 -0
- package/package.json +40 -0
- package/reactor.config.json +4 -0
- package/src/DataBrowserModule.ts +54 -0
- package/src/actions/connections/AddConnectionAction.tsx +33 -0
- package/src/actions/connections/RemoveConnectionAction.tsx +28 -0
- package/src/actions/schema-definitions/CreateModelAction.ts +32 -0
- package/src/actions/schema-definitions/QuerySchemaModelAction.ts +36 -0
- package/src/actions/schema-model/EditSchemaModelAction.ts +33 -0
- package/src/core/AbstractConnection.ts +101 -0
- package/src/core/AbstractConnectionFactory.ts +14 -0
- package/src/core/SchemaModelDefinition.ts +44 -0
- package/src/core/SchemaModelObject.ts +19 -0
- package/src/core/query/AbstractQuery.ts +43 -0
- package/src/core/query/Page.ts +59 -0
- package/src/core/query/SimpleQuery.tsx +165 -0
- package/src/core/types/ManualConnection.ts +32 -0
- package/src/core/types/ManualConnectionFactory.tsx +36 -0
- package/src/entities/ConnectionEntityDefinition.tsx +81 -0
- package/src/entities/ConnectionFactoryEntityDefinition.tsx +54 -0
- package/src/entities/QueryEntityDefinition.ts +46 -0
- package/src/entities/SchemaModelDefinitionEntityDefinition.ts +82 -0
- package/src/entities/SchemaModelObjectEntityDefinition.ts +78 -0
- package/src/entities.ts +7 -0
- package/src/forms/APIConnectionForm.tsx +48 -0
- package/src/forms/SchemaModelForm.tsx +97 -0
- package/src/index.ts +5 -0
- package/src/panels/model/ModelPanelFactory.tsx +78 -0
- package/src/panels/model/ModelPanelWidget.tsx +42 -0
- package/src/panels/query/PageResultsWidget.tsx +52 -0
- package/src/panels/query/QueryPanelFactory.tsx +76 -0
- package/src/panels/query/QueryPanelWidget.tsx +72 -0
- package/src/panels/query/TableControlsWidget.tsx +83 -0
- package/src/stores/ConnectionStore.ts +87 -0
- package/tsconfig.json +14 -0
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbstractReactorModule } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { Container } from '@journeyapps-labs/common-ioc';
|
|
3
|
+
export declare class DataBrowserModule extends AbstractReactorModule {
|
|
4
|
+
constructor();
|
|
5
|
+
register(ioc: Container): void;
|
|
6
|
+
init(ioc: Container): Promise<any>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EntityAction, EntityActionEvent } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { AbstractConnectionFactory } from '../../core/AbstractConnectionFactory';
|
|
3
|
+
import { ConnectionStore } from '../../stores/ConnectionStore';
|
|
4
|
+
export declare class AddConnectionAction extends EntityAction<AbstractConnectionFactory> {
|
|
5
|
+
static ID: string;
|
|
6
|
+
accessor connectionStore: ConnectionStore;
|
|
7
|
+
constructor();
|
|
8
|
+
fireEvent(event: EntityActionEvent<AbstractConnectionFactory>): Promise<any>;
|
|
9
|
+
static get(): AddConnectionAction;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EntityAction, EntityActionEvent } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { ConnectionStore } from '../../stores/ConnectionStore';
|
|
3
|
+
import { AbstractConnection } from '../../core/AbstractConnection';
|
|
4
|
+
export declare class RemoveConnectionAction extends EntityAction<AbstractConnection> {
|
|
5
|
+
static ID: string;
|
|
6
|
+
accessor connectionStore: ConnectionStore;
|
|
7
|
+
constructor();
|
|
8
|
+
fireEvent(event: EntityActionEvent<AbstractConnection>): Promise<any>;
|
|
9
|
+
static get(): RemoveConnectionAction;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityAction, EntityActionEvent, WorkspaceStore } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { SchemaModelDefinition } from '../../core/SchemaModelDefinition';
|
|
3
|
+
export declare class CreateModelAction extends EntityAction<SchemaModelDefinition> {
|
|
4
|
+
static ID: string;
|
|
5
|
+
accessor workspaceStore: WorkspaceStore;
|
|
6
|
+
constructor();
|
|
7
|
+
fireEvent(event: EntityActionEvent<SchemaModelDefinition>): Promise<any>;
|
|
8
|
+
static get(): CreateModelAction;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityAction, EntityActionEvent, WorkspaceStore } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { SchemaModelDefinition } from '../../core/SchemaModelDefinition';
|
|
3
|
+
export declare class QuerySchemaModelAction extends EntityAction<SchemaModelDefinition> {
|
|
4
|
+
static ID: string;
|
|
5
|
+
accessor workspaceStore: WorkspaceStore;
|
|
6
|
+
constructor();
|
|
7
|
+
fireEvent(event: EntityActionEvent<SchemaModelDefinition>): Promise<any>;
|
|
8
|
+
static get(): QuerySchemaModelAction;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityAction, EntityActionEvent, WorkspaceStore } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { SchemaModelObject } from '../../core/SchemaModelObject';
|
|
3
|
+
export declare class EditSchemaModelAction extends EntityAction<SchemaModelObject> {
|
|
4
|
+
static ID: string;
|
|
5
|
+
accessor workspaceStore: WorkspaceStore;
|
|
6
|
+
constructor();
|
|
7
|
+
fireEvent(event: EntityActionEvent<SchemaModelObject>): Promise<any>;
|
|
8
|
+
static get(): EditSchemaModelAction;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Database, ObjectType } from '@journeyapps/db';
|
|
2
|
+
import { Schema } from '@journeyapps/parser-schema';
|
|
3
|
+
import { AbstractConnectionFactory } from './AbstractConnectionFactory';
|
|
4
|
+
import { SchemaModelDefinition } from './SchemaModelDefinition';
|
|
5
|
+
import { BaseObserver } from '@journeyapps-labs/common-utils';
|
|
6
|
+
import { Collection, LifecycleCollection } from '@journeyapps-labs/lib-reactor-data-layer';
|
|
7
|
+
export interface AbstractConnectionSerialized {
|
|
8
|
+
factory: string;
|
|
9
|
+
id: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}
|
|
12
|
+
export interface AbstractConnectionListener {
|
|
13
|
+
removed: () => any;
|
|
14
|
+
}
|
|
15
|
+
export declare abstract class AbstractConnection extends BaseObserver<AbstractConnectionListener> {
|
|
16
|
+
factory: AbstractConnectionFactory;
|
|
17
|
+
id: string;
|
|
18
|
+
schema_models_collection: Collection<ObjectType>;
|
|
19
|
+
schema_models: LifecycleCollection<ObjectType, SchemaModelDefinition>;
|
|
20
|
+
constructor(factory: AbstractConnectionFactory);
|
|
21
|
+
getSchemaModelDefinitionByName(name: string): SchemaModelDefinition;
|
|
22
|
+
waitForSchemaModelDefinitionByName(name: string): Promise<SchemaModelDefinition>;
|
|
23
|
+
abstract getConnection(): Promise<Database>;
|
|
24
|
+
protected getSchema(): Promise<Schema>;
|
|
25
|
+
reload(): Promise<void>;
|
|
26
|
+
init(): Promise<void>;
|
|
27
|
+
protected getSchemaModelDefinitions(): Promise<SchemaModelDefinition[]>;
|
|
28
|
+
remove(): void;
|
|
29
|
+
serialize(): AbstractConnectionSerialized;
|
|
30
|
+
get name(): string;
|
|
31
|
+
abstract _serialize(): any;
|
|
32
|
+
abstract _deSerialize(data: ReturnType<this['_serialize']>): Promise<any>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractConnection } from './AbstractConnection';
|
|
2
|
+
export interface ConnectionFactoryOptions {
|
|
3
|
+
label: string;
|
|
4
|
+
key: string;
|
|
5
|
+
}
|
|
6
|
+
export declare abstract class AbstractConnectionFactory<T extends AbstractConnection = AbstractConnection> {
|
|
7
|
+
options: ConnectionFactoryOptions;
|
|
8
|
+
constructor(options: ConnectionFactoryOptions);
|
|
9
|
+
abstract generateConnection(): T;
|
|
10
|
+
abstract generateConnectionFromUI(): Promise<T | null>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AbstractConnection } from './AbstractConnection';
|
|
2
|
+
import { ObjectType } from '@journeyapps/parser-schema';
|
|
3
|
+
import { Collection } from '@journeyapps/db';
|
|
4
|
+
import { SchemaModelObject } from './SchemaModelObject';
|
|
5
|
+
import { LifecycleModel } from '@journeyapps-labs/lib-reactor-data-layer';
|
|
6
|
+
export interface SchemaModelDefinitionOptions {
|
|
7
|
+
connection: AbstractConnection;
|
|
8
|
+
definition: ObjectType;
|
|
9
|
+
}
|
|
10
|
+
export declare class SchemaModelDefinition implements LifecycleModel<ObjectType> {
|
|
11
|
+
protected options: SchemaModelDefinitionOptions;
|
|
12
|
+
constructor(options: SchemaModelDefinitionOptions);
|
|
13
|
+
get key(): string;
|
|
14
|
+
dispose(): void;
|
|
15
|
+
patch(data: ObjectType): void;
|
|
16
|
+
get connection(): AbstractConnection;
|
|
17
|
+
get definition(): ObjectType;
|
|
18
|
+
getCollection(): Promise<Collection<import("@journeyapps/db").DatabaseObject>>;
|
|
19
|
+
generateNewModelObject(): Promise<SchemaModelObject>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DatabaseObject } from '@journeyapps/db';
|
|
2
|
+
import { SchemaModelDefinition } from './SchemaModelDefinition';
|
|
3
|
+
export interface SchemaModelObjectOptions {
|
|
4
|
+
definition: SchemaModelDefinition;
|
|
5
|
+
model?: DatabaseObject;
|
|
6
|
+
}
|
|
7
|
+
export declare class SchemaModelObject {
|
|
8
|
+
options: SchemaModelObjectOptions;
|
|
9
|
+
constructor(options: SchemaModelObjectOptions);
|
|
10
|
+
get definition(): SchemaModelDefinition;
|
|
11
|
+
get model(): DatabaseObject;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Page } from './Page';
|
|
2
|
+
import { AbstractConnection } from '../AbstractConnection';
|
|
3
|
+
import { ConnectionStore } from '../../stores/ConnectionStore';
|
|
4
|
+
import { TableColumn } from '@journeyapps-labs/reactor-mod';
|
|
5
|
+
export interface AbstractQueryEncoded {
|
|
6
|
+
type: string;
|
|
7
|
+
connection_id: string;
|
|
8
|
+
definition: string;
|
|
9
|
+
}
|
|
10
|
+
export declare abstract class AbstractQuery<T extends AbstractQueryEncoded = AbstractQueryEncoded> {
|
|
11
|
+
protected type: string;
|
|
12
|
+
protected connection: AbstractConnection;
|
|
13
|
+
id: string;
|
|
14
|
+
constructor(type: string, connection: AbstractConnection);
|
|
15
|
+
abstract getSimpleName(): string;
|
|
16
|
+
abstract load(): Promise<any>;
|
|
17
|
+
abstract getColumns(): TableColumn[];
|
|
18
|
+
abstract get totalPages(): number;
|
|
19
|
+
abstract getPage(number: number): Page;
|
|
20
|
+
serialize(): T;
|
|
21
|
+
deserialize(connectionStore: ConnectionStore, data: T): Promise<void>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SchemaModelObject } from '../SchemaModelObject';
|
|
2
|
+
import { TableRow } from '@journeyapps-labs/reactor-mod';
|
|
3
|
+
import { Collection, DatabaseObject } from '@journeyapps/db';
|
|
4
|
+
import { SchemaModelDefinition } from '../SchemaModelDefinition';
|
|
5
|
+
export interface PageRow extends TableRow {
|
|
6
|
+
model: SchemaModelObject;
|
|
7
|
+
definition: SchemaModelDefinition;
|
|
8
|
+
}
|
|
9
|
+
export interface PageOptions {
|
|
10
|
+
collection: () => Promise<Collection<DatabaseObject>>;
|
|
11
|
+
offset: number;
|
|
12
|
+
limit: number;
|
|
13
|
+
definition: SchemaModelDefinition;
|
|
14
|
+
index: number;
|
|
15
|
+
}
|
|
16
|
+
export declare class Page {
|
|
17
|
+
protected options: PageOptions;
|
|
18
|
+
accessor models: SchemaModelObject[];
|
|
19
|
+
accessor loading: boolean;
|
|
20
|
+
constructor(options: PageOptions);
|
|
21
|
+
get index(): number;
|
|
22
|
+
load(): Promise<void>;
|
|
23
|
+
asRows(): PageRow[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AbstractQuery, AbstractQueryEncoded } from './AbstractQuery';
|
|
2
|
+
import { TableColumn } from '@journeyapps-labs/reactor-mod';
|
|
3
|
+
import { ConnectionStore } from '../../stores/ConnectionStore';
|
|
4
|
+
import * as db from '@journeyapps/db';
|
|
5
|
+
import { Promise } from '@journeyapps/db';
|
|
6
|
+
import { Page, PageRow } from './Page';
|
|
7
|
+
import { SchemaModelDefinition } from '../SchemaModelDefinition';
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
export interface SimpleQueryOptions {
|
|
10
|
+
definition?: SchemaModelDefinition;
|
|
11
|
+
limit?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface SimpleQueryEncoded extends AbstractQueryEncoded {
|
|
14
|
+
limit: number;
|
|
15
|
+
definition: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class SimpleQuery extends AbstractQuery<SimpleQueryEncoded> {
|
|
18
|
+
options: SimpleQueryOptions;
|
|
19
|
+
accessor connStore: ConnectionStore;
|
|
20
|
+
accessor _totalPages: number;
|
|
21
|
+
accessor _pages: Page[];
|
|
22
|
+
constructor(options?: SimpleQueryOptions);
|
|
23
|
+
getCollection(): globalThis.Promise<db.database.Collection<db.database.DatabaseObject>>;
|
|
24
|
+
load(): globalThis.Promise<void>;
|
|
25
|
+
getPage(number: number): Page;
|
|
26
|
+
get totalPages(): number;
|
|
27
|
+
serialize(): SimpleQueryEncoded;
|
|
28
|
+
deserialize(connectionStore: ConnectionStore, data: SimpleQueryEncoded): Promise<void>;
|
|
29
|
+
getColumns(): TableColumn[];
|
|
30
|
+
getSimpleName(): string;
|
|
31
|
+
}
|
|
32
|
+
export interface CellDisplayWidgetProps {
|
|
33
|
+
row: PageRow;
|
|
34
|
+
cell: any;
|
|
35
|
+
}
|
|
36
|
+
export declare const CellDisplayWidget: React.FC<CellDisplayWidgetProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApiCredentialOptions, Database } from '@journeyapps/db';
|
|
2
|
+
import { AbstractConnection } from '../AbstractConnection';
|
|
3
|
+
import { ManualConnectionFactory } from './ManualConnectionFactory';
|
|
4
|
+
export interface ManualConnectionDetails extends ApiCredentialOptions {
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class ManualConnection extends AbstractConnection {
|
|
8
|
+
protected options?: ManualConnectionDetails;
|
|
9
|
+
constructor(factory: ManualConnectionFactory, options?: ManualConnectionDetails);
|
|
10
|
+
getConnection(): Promise<Database>;
|
|
11
|
+
_serialize(): ManualConnectionDetails;
|
|
12
|
+
_deSerialize(data: ManualConnectionDetails): Promise<any>;
|
|
13
|
+
get name(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractConnectionFactory } from '../AbstractConnectionFactory';
|
|
2
|
+
import { ManualConnection } from './ManualConnection';
|
|
3
|
+
import { DialogStore2 } from '@journeyapps-labs/reactor-mod';
|
|
4
|
+
export declare class ManualConnectionFactory extends AbstractConnectionFactory<ManualConnection> {
|
|
5
|
+
accessor dialogStore: DialogStore2;
|
|
6
|
+
constructor();
|
|
7
|
+
generateConnectionFromUI(): Promise<ManualConnection | null>;
|
|
8
|
+
generateConnection(): ManualConnection;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityDefinition } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { ConnectionStore } from '../stores/ConnectionStore';
|
|
3
|
+
import { AbstractConnection } from '../core/AbstractConnection';
|
|
4
|
+
export declare class ConnectionEntityDefinition extends EntityDefinition<AbstractConnection> {
|
|
5
|
+
accessor connectionStore: ConnectionStore;
|
|
6
|
+
constructor();
|
|
7
|
+
matchEntity(t: any): boolean;
|
|
8
|
+
getEntityUID(t: AbstractConnection): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityDefinition } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { ConnectionStore } from '../stores/ConnectionStore';
|
|
3
|
+
import { AbstractConnectionFactory } from '../core/AbstractConnectionFactory';
|
|
4
|
+
export declare class ConnectionFactoryEntityDefinition extends EntityDefinition<AbstractConnectionFactory> {
|
|
5
|
+
accessor connectionStore: ConnectionStore;
|
|
6
|
+
constructor();
|
|
7
|
+
matchEntity(t: any): boolean;
|
|
8
|
+
getEntityUID(t: AbstractConnectionFactory): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityDefinition } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { ConnectionStore } from '../stores/ConnectionStore';
|
|
3
|
+
import { AbstractQuery } from '../core/query/AbstractQuery';
|
|
4
|
+
export declare class QueryEntityDefinition extends EntityDefinition<AbstractQuery> {
|
|
5
|
+
accessor connectionStore: ConnectionStore;
|
|
6
|
+
constructor();
|
|
7
|
+
matchEntity(t: any): boolean;
|
|
8
|
+
getEntityUID(t: AbstractQuery): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EntityDefinition } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { ConnectionStore } from '../stores/ConnectionStore';
|
|
3
|
+
import { SchemaModelDefinition } from '../core/SchemaModelDefinition';
|
|
4
|
+
export interface SchemaModelDefinitionEntityDefinitionEncoded {
|
|
5
|
+
connection_id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class SchemaModelDefinitionEntityDefinition extends EntityDefinition<SchemaModelDefinition> {
|
|
9
|
+
accessor connectionStore: ConnectionStore;
|
|
10
|
+
constructor();
|
|
11
|
+
matchEntity(t: any): boolean;
|
|
12
|
+
getEntityUID(t: SchemaModelDefinition): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EntityDefinition } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { ConnectionStore } from '../stores/ConnectionStore';
|
|
3
|
+
import { SchemaModelObject } from '../core/SchemaModelObject';
|
|
4
|
+
export interface SchemaModelObjectEntityDefinitionEncoded {
|
|
5
|
+
connection_id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class SchemaModelObjectEntityDefinition extends EntityDefinition<SchemaModelObject> {
|
|
10
|
+
accessor connectionStore: ConnectionStore;
|
|
11
|
+
constructor();
|
|
12
|
+
matchEntity(t: any): boolean;
|
|
13
|
+
getEntityUID(t: SchemaModelObject): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum DataBrowserEntities {
|
|
2
|
+
CONNECTION = "databrowser/connection",
|
|
3
|
+
CONNECTION_FACTORY = "databrowser/connection_factory",
|
|
4
|
+
SCHEMA_MODEL_DEFINITION = "databrowser/schema_model_definition",
|
|
5
|
+
SCHEMA_MODEL_OBJECT = "databrowser/schema_model_object",
|
|
6
|
+
QUERY = "databrowser/query"
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormModel } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { ManualConnection } from '../core/types/ManualConnection';
|
|
3
|
+
import { ManualConnectionFactory } from '../core/types/ManualConnectionFactory';
|
|
4
|
+
export interface APIConnectionFormValue {
|
|
5
|
+
name: string;
|
|
6
|
+
base_url: string;
|
|
7
|
+
api_token: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class APIConnectionForm extends FormModel<APIConnectionFormValue> {
|
|
10
|
+
constructor(value?: APIConnectionFormValue);
|
|
11
|
+
generateConnection(factory: ManualConnectionFactory): ManualConnection;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormModel } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { SchemaModelDefinition } from '../core/SchemaModelDefinition';
|
|
3
|
+
import { SchemaModelObject } from '../core/SchemaModelObject';
|
|
4
|
+
export interface SchemaModelFormOptions {
|
|
5
|
+
definition: SchemaModelDefinition;
|
|
6
|
+
object?: SchemaModelObject;
|
|
7
|
+
}
|
|
8
|
+
export declare class SchemaModelForm extends FormModel {
|
|
9
|
+
protected options: SchemaModelFormOptions;
|
|
10
|
+
constructor(options: SchemaModelFormOptions);
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactorPanelFactory, ReactorPanelModel } from '@journeyapps-labs/reactor-mod';
|
|
3
|
+
import { ConnectionStore } from '../../stores/ConnectionStore';
|
|
4
|
+
import { WorkspaceModelFactoryEvent } from '@projectstorm/react-workspaces-core';
|
|
5
|
+
import { SchemaModelDefinition } from '../../core/SchemaModelDefinition';
|
|
6
|
+
import { SchemaModelObject } from '../../core/SchemaModelObject';
|
|
7
|
+
export interface ModelPanelModelOptions {
|
|
8
|
+
definition: SchemaModelDefinition;
|
|
9
|
+
model?: SchemaModelObject;
|
|
10
|
+
}
|
|
11
|
+
export declare class ModelPanelModel extends ReactorPanelModel {
|
|
12
|
+
accessor connStore: ConnectionStore;
|
|
13
|
+
accessor definition: SchemaModelDefinition;
|
|
14
|
+
accessor model: SchemaModelObject;
|
|
15
|
+
constructor(options?: ModelPanelModelOptions);
|
|
16
|
+
encodeEntities(): {
|
|
17
|
+
definition: SchemaModelDefinition;
|
|
18
|
+
model: SchemaModelObject;
|
|
19
|
+
};
|
|
20
|
+
decodeEntities(data: ReturnType<this['encodeEntities']>): void;
|
|
21
|
+
}
|
|
22
|
+
export declare class ModelPanelFactory extends ReactorPanelFactory<ModelPanelModel> {
|
|
23
|
+
static TYPE: string;
|
|
24
|
+
constructor();
|
|
25
|
+
getSimpleName(model: ModelPanelModel): string;
|
|
26
|
+
_generateModel(): ModelPanelModel;
|
|
27
|
+
generatePanelContent(event: WorkspaceModelFactoryEvent<ModelPanelModel>): React.JSX.Element;
|
|
28
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Page } from '../../core/query/Page';
|
|
3
|
+
import { AbstractQuery } from '../../core/query/AbstractQuery';
|
|
4
|
+
export interface PageResultsWidgetProps {
|
|
5
|
+
page: Page;
|
|
6
|
+
query: AbstractQuery;
|
|
7
|
+
}
|
|
8
|
+
export declare const PageResultsWidget: React.FC<PageResultsWidgetProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactorPanelFactory, ReactorPanelModel } from '@journeyapps-labs/reactor-mod';
|
|
3
|
+
import { AbstractQuery } from '../../core/query/AbstractQuery';
|
|
4
|
+
import { ConnectionStore } from '../../stores/ConnectionStore';
|
|
5
|
+
import { WorkspaceModelFactoryEvent } from '@projectstorm/react-workspaces-core';
|
|
6
|
+
export declare class QueryPanelModel extends ReactorPanelModel {
|
|
7
|
+
accessor connStore: ConnectionStore;
|
|
8
|
+
accessor query: AbstractQuery;
|
|
9
|
+
accessor current_page: number;
|
|
10
|
+
constructor(query: AbstractQuery);
|
|
11
|
+
toArray(): {
|
|
12
|
+
current_page: number;
|
|
13
|
+
_encoded: {};
|
|
14
|
+
id: string;
|
|
15
|
+
expandVertical: boolean;
|
|
16
|
+
expandHorizontal: boolean;
|
|
17
|
+
type: string;
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
};
|
|
21
|
+
fromArray(data: ReturnType<this['toArray']>, engine: any): void;
|
|
22
|
+
encodeEntities(): {
|
|
23
|
+
query: AbstractQuery<import("../../core/query/AbstractQuery").AbstractQueryEncoded>;
|
|
24
|
+
};
|
|
25
|
+
decodeEntities(data: ReturnType<this['encodeEntities']>): void;
|
|
26
|
+
}
|
|
27
|
+
export declare class QueryPanelFactory extends ReactorPanelFactory<QueryPanelModel> {
|
|
28
|
+
static TYPE: string;
|
|
29
|
+
constructor();
|
|
30
|
+
getSimpleName(model: QueryPanelModel): string;
|
|
31
|
+
_generateModel(): QueryPanelModel;
|
|
32
|
+
generatePanelContent(event: WorkspaceModelFactoryEvent<QueryPanelModel>): React.JSX.Element;
|
|
33
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AbstractQuery } from '../../core/query/AbstractQuery';
|
|
3
|
+
import { Page } from '../../core/query/Page';
|
|
4
|
+
export interface TableControlsWidgetProps {
|
|
5
|
+
current_page: Page;
|
|
6
|
+
goToPage?: (index: number) => any;
|
|
7
|
+
className?: any;
|
|
8
|
+
query: AbstractQuery;
|
|
9
|
+
}
|
|
10
|
+
export declare const TableControlsWidget: React.FC<TableControlsWidgetProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AbstractStore } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { AbstractConnection, AbstractConnectionSerialized } from '../core/AbstractConnection';
|
|
3
|
+
import { AbstractConnectionFactory } from '../core/AbstractConnectionFactory';
|
|
4
|
+
export interface ConnectionStoreSerialized {
|
|
5
|
+
connections: AbstractConnectionSerialized[];
|
|
6
|
+
}
|
|
7
|
+
export declare class ConnectionStore extends AbstractStore<ConnectionStoreSerialized> {
|
|
8
|
+
protected accessor _connections: Set<AbstractConnection>;
|
|
9
|
+
protected _connectionFactories: Map<string, AbstractConnectionFactory>;
|
|
10
|
+
constructor();
|
|
11
|
+
get connections(): AbstractConnection[];
|
|
12
|
+
get connectionFactories(): AbstractConnectionFactory<AbstractConnection>[];
|
|
13
|
+
protected serialize(): ConnectionStoreSerialized;
|
|
14
|
+
getConnectionByID(id: string): AbstractConnection;
|
|
15
|
+
waitForReadyForConnection(id: string): Promise<AbstractConnection>;
|
|
16
|
+
deserializeConnection(data: AbstractConnectionSerialized): Promise<AbstractConnection>;
|
|
17
|
+
protected deserialize(data: ConnectionStoreSerialized): Promise<void>;
|
|
18
|
+
registerConnectionFactory(factory: AbstractConnectionFactory): void;
|
|
19
|
+
addConnection(connection: AbstractConnection): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AbstractReactorModule, System, WorkspaceStore } from '@journeyapps-labs/reactor-mod';
|
|
2
|
+
import { ConnectionStore } from './stores/ConnectionStore';
|
|
3
|
+
import { ConnectionEntityDefinition } from './entities/ConnectionEntityDefinition';
|
|
4
|
+
import { ManualConnectionFactory } from './core/types/ManualConnectionFactory';
|
|
5
|
+
import { ConnectionFactoryEntityDefinition } from './entities/ConnectionFactoryEntityDefinition';
|
|
6
|
+
import { AddConnectionAction } from './actions/connections/AddConnectionAction';
|
|
7
|
+
import { RemoveConnectionAction } from './actions/connections/RemoveConnectionAction';
|
|
8
|
+
import { SchemaModelDefinitionEntityDefinition } from './entities/SchemaModelDefinitionEntityDefinition';
|
|
9
|
+
import { QueryPanelFactory } from './panels/query/QueryPanelFactory';
|
|
10
|
+
import { QuerySchemaModelAction } from './actions/schema-definitions/QuerySchemaModelAction';
|
|
11
|
+
import { QueryEntityDefinition } from './entities/QueryEntityDefinition';
|
|
12
|
+
import { ModelPanelFactory } from './panels/model/ModelPanelFactory';
|
|
13
|
+
import { CreateModelAction } from './actions/schema-definitions/CreateModelAction';
|
|
14
|
+
import { SchemaModelObjectEntityDefinition } from './entities/SchemaModelObjectEntityDefinition';
|
|
15
|
+
import { EditSchemaModelAction } from './actions/schema-model/EditSchemaModelAction';
|
|
16
|
+
export class DataBrowserModule extends AbstractReactorModule {
|
|
17
|
+
constructor() {
|
|
18
|
+
super({
|
|
19
|
+
name: 'Data Browser'
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
register(ioc) {
|
|
23
|
+
const system = ioc.get(System);
|
|
24
|
+
const workspaceStore = ioc.get(WorkspaceStore);
|
|
25
|
+
let connectionStore = new ConnectionStore();
|
|
26
|
+
connectionStore.registerConnectionFactory(new ManualConnectionFactory());
|
|
27
|
+
system.registerAction(new AddConnectionAction());
|
|
28
|
+
system.registerAction(new RemoveConnectionAction());
|
|
29
|
+
system.registerAction(new QuerySchemaModelAction());
|
|
30
|
+
system.registerAction(new CreateModelAction());
|
|
31
|
+
system.registerAction(new EditSchemaModelAction());
|
|
32
|
+
system.addStore(ConnectionStore, connectionStore);
|
|
33
|
+
system.registerDefinition(new ConnectionEntityDefinition());
|
|
34
|
+
system.registerDefinition(new ConnectionFactoryEntityDefinition());
|
|
35
|
+
system.registerDefinition(new SchemaModelDefinitionEntityDefinition());
|
|
36
|
+
system.registerDefinition(new SchemaModelObjectEntityDefinition());
|
|
37
|
+
system.registerDefinition(new QueryEntityDefinition());
|
|
38
|
+
workspaceStore.registerFactory(new QueryPanelFactory());
|
|
39
|
+
workspaceStore.registerFactory(new ModelPanelFactory());
|
|
40
|
+
}
|
|
41
|
+
async init(ioc) {
|
|
42
|
+
await ioc.get(ConnectionStore).init();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=DataBrowserModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataBrowserModule.js","sourceRoot":"","sources":["../src/DataBrowserModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE9F,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,qCAAqC,EAAE,MAAM,kDAAkD,CAAC;AACzG,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAErF,MAAM,OAAO,iBAAkB,SAAQ,qBAAqB;IAC1D;QACE,KAAK,CAAC;YACJ,IAAI,EAAE,cAAc;SACrB,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,GAAc;QACrB,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC/B,MAAM,cAAc,GAAG,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAE/C,IAAI,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;QAE5C,eAAe,CAAC,yBAAyB,CAAC,IAAI,uBAAuB,EAAE,CAAC,CAAC;QAEzE,MAAM,CAAC,cAAc,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAC;QACjD,MAAM,CAAC,cAAc,CAAC,IAAI,sBAAsB,EAAE,CAAC,CAAC;QACpD,MAAM,CAAC,cAAc,CAAC,IAAI,sBAAsB,EAAE,CAAC,CAAC;QACpD,MAAM,CAAC,cAAc,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;QAC/C,MAAM,CAAC,cAAc,CAAC,IAAI,qBAAqB,EAAE,CAAC,CAAC;QAEnD,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;QAElD,MAAM,CAAC,kBAAkB,CAAC,IAAI,0BAA0B,EAAE,CAAC,CAAC;QAC5D,MAAM,CAAC,kBAAkB,CAAC,IAAI,iCAAiC,EAAE,CAAC,CAAC;QACnE,MAAM,CAAC,kBAAkB,CAAC,IAAI,qCAAqC,EAAE,CAAC,CAAC;QACvE,MAAM,CAAC,kBAAkB,CAAC,IAAI,iCAAiC,EAAE,CAAC,CAAC;QACnE,MAAM,CAAC,kBAAkB,CAAC,IAAI,qBAAqB,EAAE,CAAC,CAAC;QAEvD,cAAc,CAAC,eAAe,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;QACxD,cAAc,CAAC,eAAe,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,GAAc;QACvB,MAAM,GAAG,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,IAAI,EAAE,CAAC;IACxC,CAAC;CACF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { __classPrivateFieldGet, __classPrivateFieldSet, __esDecorate, __runInitializers } from "tslib";
|
|
2
|
+
import { EntityAction, inject, ioc, System } from '@journeyapps-labs/reactor-mod';
|
|
3
|
+
import { DataBrowserEntities } from '../../entities';
|
|
4
|
+
import { ConnectionStore } from '../../stores/ConnectionStore';
|
|
5
|
+
let AddConnectionAction = (() => {
|
|
6
|
+
var _a, _AddConnectionAction_connectionStore_accessor_storage;
|
|
7
|
+
let _classSuper = EntityAction;
|
|
8
|
+
let _connectionStore_decorators;
|
|
9
|
+
let _connectionStore_initializers = [];
|
|
10
|
+
let _connectionStore_extraInitializers = [];
|
|
11
|
+
return _a = class AddConnectionAction extends _classSuper {
|
|
12
|
+
get connectionStore() { return __classPrivateFieldGet(this, _AddConnectionAction_connectionStore_accessor_storage, "f"); }
|
|
13
|
+
set connectionStore(value) { __classPrivateFieldSet(this, _AddConnectionAction_connectionStore_accessor_storage, value, "f"); }
|
|
14
|
+
constructor() {
|
|
15
|
+
super({
|
|
16
|
+
id: _a.ID,
|
|
17
|
+
name: 'Add connection',
|
|
18
|
+
icon: 'plus',
|
|
19
|
+
target: DataBrowserEntities.CONNECTION_FACTORY,
|
|
20
|
+
autoSelectIsolatedTarget: true
|
|
21
|
+
});
|
|
22
|
+
_AddConnectionAction_connectionStore_accessor_storage.set(this, __runInitializers(this, _connectionStore_initializers, void 0));
|
|
23
|
+
__runInitializers(this, _connectionStore_extraInitializers);
|
|
24
|
+
}
|
|
25
|
+
async fireEvent(event) {
|
|
26
|
+
let connection = await event.targetEntity.generateConnectionFromUI();
|
|
27
|
+
if (!connection) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.connectionStore.addConnection(connection);
|
|
31
|
+
}
|
|
32
|
+
static get() {
|
|
33
|
+
return ioc.get(System).getActionByID(_a.ID);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
_AddConnectionAction_connectionStore_accessor_storage = new WeakMap(),
|
|
37
|
+
(() => {
|
|
38
|
+
var _b;
|
|
39
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_b = _classSuper[Symbol.metadata]) !== null && _b !== void 0 ? _b : null) : void 0;
|
|
40
|
+
_connectionStore_decorators = [inject(ConnectionStore)];
|
|
41
|
+
__esDecorate(_a, null, _connectionStore_decorators, { kind: "accessor", name: "connectionStore", static: false, private: false, access: { has: obj => "connectionStore" in obj, get: obj => obj.connectionStore, set: (obj, value) => { obj.connectionStore = value; } }, metadata: _metadata }, _connectionStore_initializers, _connectionStore_extraInitializers);
|
|
42
|
+
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
43
|
+
})(),
|
|
44
|
+
_a.ID = 'ADD_CONNECTION',
|
|
45
|
+
_a;
|
|
46
|
+
})();
|
|
47
|
+
export { AddConnectionAction };
|
|
48
|
+
//# sourceMappingURL=AddConnectionAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddConnectionAction.js","sourceRoot":"","sources":["../../../src/actions/connections/AddConnectionAction.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAErG,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;IAElD,mBAAmB;;sBAAS,YAAY;;;;sBAAxC,mBAAoB,SAAQ,WAAuC;YAI9E,IAAS,eAAe,uGAAkB;YAA1C,IAAS,eAAe,4GAAkB;YAE1C;gBACE,KAAK,CAAC;oBACJ,EAAE,EAAE,EAAmB,CAAC,EAAE;oBAC1B,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE,MAAM;oBACZ,MAAM,EAAE,mBAAmB,CAAC,kBAAkB;oBAC9C,wBAAwB,EAAE,IAAI;iBAC/B,CAAC,CAAC;gBATI,gIAAiC;;aAUzC;YAED,KAAK,CAAC,SAAS,CAAC,KAAmD;gBACjE,IAAI,UAAU,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC,wBAAwB,EAAE,CAAC;gBACrE,IAAI,CAAC,UAAU,EAAE,CAAC;oBAChB,OAAO;gBACT,CAAC;gBACD,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YACjD,CAAC;YAED,MAAM,CAAC,GAAG;gBACR,OAAO,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,aAAa,CAAsB,EAAmB,CAAC,EAAE,CAAC,CAAC;YACpF,CAAC;;;;;;2CAvBA,MAAM,CAAC,eAAe,CAAC;YACxB,gMAAS,eAAe,6BAAf,eAAe,yGAAkB;;;QAHnC,KAAE,GAAG,gBAAiB;;;SADlB,mBAAmB"}
|