@journeyapps-labs/reactor-mod-data-browser 1.0.0 → 2.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 +12 -0
- package/dist/@types/core/AbstractConnection.d.ts +2 -1
- package/dist/@types/core/types/ManualConnection.d.ts +2 -1
- package/dist/@types/index.d.ts +22 -0
- package/dist/core/AbstractConnection.js +3 -1
- package/dist/core/AbstractConnection.js.map +1 -1
- package/dist/core/types/ManualConnection.js +3 -1
- package/dist/core/types/ManualConnection.js.map +1 -1
- package/dist/entities/ConnectionEntityDefinition.js +1 -3
- package/dist/entities/ConnectionEntityDefinition.js.map +1 -1
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist-module/bundle.js +5 -5
- package/dist-module/bundle.js.map +1 -1
- package/package.json +1 -1
- package/src/core/AbstractConnection.ts +5 -2
- package/src/core/types/ManualConnection.ts +5 -2
- package/src/entities/ConnectionEntityDefinition.tsx +2 -4
- package/src/index.ts +22 -0
- package/webpack.config.js +9 -0
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import { v4 } from 'uuid';
|
|
|
7
7
|
import { BaseObserver } from '@journeyapps-labs/common-utils';
|
|
8
8
|
import { Collection, LifecycleCollection } from '@journeyapps-labs/lib-reactor-data-layer';
|
|
9
9
|
import { when } from 'mobx';
|
|
10
|
+
import { EntityDescription } from '@journeyapps-labs/reactor-mod';
|
|
10
11
|
|
|
11
12
|
export interface AbstractConnectionSerialized {
|
|
12
13
|
factory: string;
|
|
@@ -91,8 +92,10 @@ export abstract class AbstractConnection extends BaseObserver<AbstractConnection
|
|
|
91
92
|
};
|
|
92
93
|
}
|
|
93
94
|
|
|
94
|
-
get name() {
|
|
95
|
-
return
|
|
95
|
+
get name(): EntityDescription {
|
|
96
|
+
return {
|
|
97
|
+
simpleName: this.id
|
|
98
|
+
};
|
|
96
99
|
}
|
|
97
100
|
|
|
98
101
|
abstract _serialize(): any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApiCredentialOptions, Database } from '@journeyapps/db';
|
|
2
2
|
import { AbstractConnection } from '../AbstractConnection';
|
|
3
3
|
import { ManualConnectionFactory } from './ManualConnectionFactory';
|
|
4
|
+
import { EntityDescription } from '@journeyapps-labs/reactor-mod';
|
|
4
5
|
|
|
5
6
|
export interface ManualConnectionDetails extends ApiCredentialOptions {
|
|
6
7
|
name: string;
|
|
@@ -26,7 +27,9 @@ export class ManualConnection extends AbstractConnection {
|
|
|
26
27
|
this.options = data;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
get name():
|
|
30
|
-
return
|
|
30
|
+
get name(): EntityDescription {
|
|
31
|
+
return {
|
|
32
|
+
simpleName: this.options.name
|
|
33
|
+
};
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DescendantEntityProviderComponent,
|
|
3
|
-
EntityActionHandlerComponent,
|
|
4
3
|
EntityDefinition,
|
|
5
4
|
EntityDescriberComponent,
|
|
6
5
|
EntityPanelComponent,
|
|
@@ -30,9 +29,7 @@ export class ConnectionEntityDefinition extends EntityDefinition<AbstractConnect
|
|
|
30
29
|
new EntityDescriberComponent<AbstractConnection>({
|
|
31
30
|
label: 'Simple',
|
|
32
31
|
describe: (entity: AbstractConnection) => {
|
|
33
|
-
return
|
|
34
|
-
simpleName: entity.name
|
|
35
|
-
};
|
|
32
|
+
return entity.name;
|
|
36
33
|
}
|
|
37
34
|
})
|
|
38
35
|
);
|
|
@@ -69,6 +66,7 @@ export class ConnectionEntityDefinition extends EntityDefinition<AbstractConnect
|
|
|
69
66
|
})
|
|
70
67
|
);
|
|
71
68
|
}
|
|
69
|
+
|
|
72
70
|
matchEntity(t: any): boolean {
|
|
73
71
|
if (t instanceof AbstractConnection) {
|
|
74
72
|
return true;
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
import { DataBrowserModule } from './DataBrowserModule';
|
|
2
2
|
|
|
3
3
|
export * from './entities';
|
|
4
|
+
export * from './core/SchemaModelDefinition';
|
|
5
|
+
export * from './core/SchemaModelObject';
|
|
6
|
+
export * from './core/AbstractConnection';
|
|
7
|
+
export * from './core/AbstractConnectionFactory';
|
|
8
|
+
export * from './core/query/SimpleQuery';
|
|
9
|
+
export * from './core/query/AbstractQuery';
|
|
10
|
+
export * from './core/query/Page';
|
|
11
|
+
export * from './core/types/ManualConnectionFactory';
|
|
12
|
+
export * from './core/types/ManualConnection';
|
|
13
|
+
export * from './entities/QueryEntityDefinition';
|
|
14
|
+
export * from './entities/ConnectionEntityDefinition';
|
|
15
|
+
export * from './entities/ConnectionFactoryEntityDefinition';
|
|
16
|
+
export * from './entities/SchemaModelDefinitionEntityDefinition';
|
|
17
|
+
export * from './entities/SchemaModelObjectEntityDefinition';
|
|
18
|
+
export * from './panels/query/QueryPanelFactory';
|
|
19
|
+
export * from './panels/model/ModelPanelFactory';
|
|
20
|
+
export * from './stores/ConnectionStore';
|
|
21
|
+
export * from './actions/connections/AddConnectionAction';
|
|
22
|
+
export * from './actions/connections/RemoveConnectionAction';
|
|
23
|
+
export * from './actions/schema-definitions/CreateModelAction';
|
|
24
|
+
export * from './actions/schema-definitions/QuerySchemaModelAction';
|
|
25
|
+
export * from './actions/schema-model/EditSchemaModelAction';
|
|
4
26
|
|
|
5
27
|
export default DataBrowserModule;
|