@3plate/graph-angular 0.1.10 → 0.1.12
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/dist/{index.mjs → index.cjs} +45 -28
- package/dist/index.js +28 -45
- package/package.json +12 -4
- /package/dist/{index.d.mts → index.d.cts} +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
3
19
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
20
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
21
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
@@ -9,13 +25,17 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
9
25
|
return result;
|
|
10
26
|
};
|
|
11
27
|
|
|
28
|
+
// src/index.ts
|
|
29
|
+
var index_exports = {};
|
|
30
|
+
__export(index_exports, {
|
|
31
|
+
GraphComponent: () => GraphComponent,
|
|
32
|
+
PlaygroundComponent: () => PlaygroundComponent
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(index_exports);
|
|
35
|
+
|
|
12
36
|
// src/graph.component.ts
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
Input,
|
|
16
|
-
ViewChild
|
|
17
|
-
} from "@angular/core";
|
|
18
|
-
import { graph } from "@3plate/graph-core";
|
|
37
|
+
var import_core = require("@angular/core");
|
|
38
|
+
var import_graph_core = require("@3plate/graph-core");
|
|
19
39
|
var GraphComponent = class {
|
|
20
40
|
rootRef;
|
|
21
41
|
nodes;
|
|
@@ -29,7 +49,7 @@ var GraphComponent = class {
|
|
|
29
49
|
async ngOnInit() {
|
|
30
50
|
if (!this.rootRef?.nativeElement) return;
|
|
31
51
|
this.rootRef.nativeElement.id = this.rootId;
|
|
32
|
-
this.api = await graph({
|
|
52
|
+
this.api = await (0, import_graph_core.graph)({
|
|
33
53
|
root: this.rootId,
|
|
34
54
|
nodes: this.nodes,
|
|
35
55
|
edges: this.edges,
|
|
@@ -68,28 +88,28 @@ var GraphComponent = class {
|
|
|
68
88
|
}
|
|
69
89
|
};
|
|
70
90
|
__decorateClass([
|
|
71
|
-
ViewChild("root", { static: true })
|
|
91
|
+
(0, import_core.ViewChild)("root", { static: true })
|
|
72
92
|
], GraphComponent.prototype, "rootRef", 2);
|
|
73
93
|
__decorateClass([
|
|
74
|
-
Input()
|
|
94
|
+
(0, import_core.Input)()
|
|
75
95
|
], GraphComponent.prototype, "nodes", 2);
|
|
76
96
|
__decorateClass([
|
|
77
|
-
Input()
|
|
97
|
+
(0, import_core.Input)()
|
|
78
98
|
], GraphComponent.prototype, "edges", 2);
|
|
79
99
|
__decorateClass([
|
|
80
|
-
Input()
|
|
100
|
+
(0, import_core.Input)()
|
|
81
101
|
], GraphComponent.prototype, "history", 2);
|
|
82
102
|
__decorateClass([
|
|
83
|
-
Input()
|
|
103
|
+
(0, import_core.Input)()
|
|
84
104
|
], GraphComponent.prototype, "ingestion", 2);
|
|
85
105
|
__decorateClass([
|
|
86
|
-
Input()
|
|
106
|
+
(0, import_core.Input)()
|
|
87
107
|
], GraphComponent.prototype, "options", 2);
|
|
88
108
|
__decorateClass([
|
|
89
|
-
Input()
|
|
109
|
+
(0, import_core.Input)()
|
|
90
110
|
], GraphComponent.prototype, "events", 2);
|
|
91
111
|
GraphComponent = __decorateClass([
|
|
92
|
-
Component({
|
|
112
|
+
(0, import_core.Component)({
|
|
93
113
|
selector: "g3p-graph",
|
|
94
114
|
standalone: true,
|
|
95
115
|
template: '<div #root style="width: 100%; height: 100%"></div>'
|
|
@@ -97,12 +117,8 @@ GraphComponent = __decorateClass([
|
|
|
97
117
|
], GraphComponent);
|
|
98
118
|
|
|
99
119
|
// src/playground.component.ts
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
Input as Input2,
|
|
103
|
-
ViewChild as ViewChild2
|
|
104
|
-
} from "@angular/core";
|
|
105
|
-
import { Playground as PlaygroundClass } from "@3plate/graph-core";
|
|
120
|
+
var import_core2 = require("@angular/core");
|
|
121
|
+
var import_graph_core2 = require("@3plate/graph-core");
|
|
106
122
|
var PlaygroundComponent = class {
|
|
107
123
|
rootRef;
|
|
108
124
|
examples = {};
|
|
@@ -112,7 +128,7 @@ var PlaygroundComponent = class {
|
|
|
112
128
|
async ngOnInit() {
|
|
113
129
|
if (!this.rootRef?.nativeElement) return;
|
|
114
130
|
this.rootRef.nativeElement.id = this.rootId;
|
|
115
|
-
this.playground = new
|
|
131
|
+
this.playground = new import_graph_core2.Playground({
|
|
116
132
|
root: this.rootId,
|
|
117
133
|
examples: this.examples,
|
|
118
134
|
defaultExample: this.defaultExample
|
|
@@ -131,22 +147,23 @@ var PlaygroundComponent = class {
|
|
|
131
147
|
}
|
|
132
148
|
};
|
|
133
149
|
__decorateClass([
|
|
134
|
-
|
|
150
|
+
(0, import_core2.ViewChild)("root", { static: true })
|
|
135
151
|
], PlaygroundComponent.prototype, "rootRef", 2);
|
|
136
152
|
__decorateClass([
|
|
137
|
-
|
|
153
|
+
(0, import_core2.Input)()
|
|
138
154
|
], PlaygroundComponent.prototype, "examples", 2);
|
|
139
155
|
__decorateClass([
|
|
140
|
-
|
|
156
|
+
(0, import_core2.Input)()
|
|
141
157
|
], PlaygroundComponent.prototype, "defaultExample", 2);
|
|
142
158
|
PlaygroundComponent = __decorateClass([
|
|
143
|
-
|
|
159
|
+
(0, import_core2.Component)({
|
|
144
160
|
selector: "g3p-playground",
|
|
145
161
|
standalone: true,
|
|
146
162
|
template: '<div #root style="width: 100%; height: 100%"></div>'
|
|
147
163
|
})
|
|
148
164
|
], PlaygroundComponent);
|
|
149
|
-
export
|
|
165
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
166
|
+
0 && (module.exports = {
|
|
150
167
|
GraphComponent,
|
|
151
168
|
PlaygroundComponent
|
|
152
|
-
};
|
|
169
|
+
});
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
3
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
20
4
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
21
5
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
@@ -25,17 +9,13 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
25
9
|
return result;
|
|
26
10
|
};
|
|
27
11
|
|
|
28
|
-
// src/index.ts
|
|
29
|
-
var index_exports = {};
|
|
30
|
-
__export(index_exports, {
|
|
31
|
-
GraphComponent: () => GraphComponent,
|
|
32
|
-
PlaygroundComponent: () => PlaygroundComponent
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(index_exports);
|
|
35
|
-
|
|
36
12
|
// src/graph.component.ts
|
|
37
|
-
|
|
38
|
-
|
|
13
|
+
import {
|
|
14
|
+
Component,
|
|
15
|
+
Input,
|
|
16
|
+
ViewChild
|
|
17
|
+
} from "@angular/core";
|
|
18
|
+
import { graph } from "@3plate/graph-core";
|
|
39
19
|
var GraphComponent = class {
|
|
40
20
|
rootRef;
|
|
41
21
|
nodes;
|
|
@@ -49,7 +29,7 @@ var GraphComponent = class {
|
|
|
49
29
|
async ngOnInit() {
|
|
50
30
|
if (!this.rootRef?.nativeElement) return;
|
|
51
31
|
this.rootRef.nativeElement.id = this.rootId;
|
|
52
|
-
this.api = await
|
|
32
|
+
this.api = await graph({
|
|
53
33
|
root: this.rootId,
|
|
54
34
|
nodes: this.nodes,
|
|
55
35
|
edges: this.edges,
|
|
@@ -88,28 +68,28 @@ var GraphComponent = class {
|
|
|
88
68
|
}
|
|
89
69
|
};
|
|
90
70
|
__decorateClass([
|
|
91
|
-
|
|
71
|
+
ViewChild("root", { static: true })
|
|
92
72
|
], GraphComponent.prototype, "rootRef", 2);
|
|
93
73
|
__decorateClass([
|
|
94
|
-
|
|
74
|
+
Input()
|
|
95
75
|
], GraphComponent.prototype, "nodes", 2);
|
|
96
76
|
__decorateClass([
|
|
97
|
-
|
|
77
|
+
Input()
|
|
98
78
|
], GraphComponent.prototype, "edges", 2);
|
|
99
79
|
__decorateClass([
|
|
100
|
-
|
|
80
|
+
Input()
|
|
101
81
|
], GraphComponent.prototype, "history", 2);
|
|
102
82
|
__decorateClass([
|
|
103
|
-
|
|
83
|
+
Input()
|
|
104
84
|
], GraphComponent.prototype, "ingestion", 2);
|
|
105
85
|
__decorateClass([
|
|
106
|
-
|
|
86
|
+
Input()
|
|
107
87
|
], GraphComponent.prototype, "options", 2);
|
|
108
88
|
__decorateClass([
|
|
109
|
-
|
|
89
|
+
Input()
|
|
110
90
|
], GraphComponent.prototype, "events", 2);
|
|
111
91
|
GraphComponent = __decorateClass([
|
|
112
|
-
|
|
92
|
+
Component({
|
|
113
93
|
selector: "g3p-graph",
|
|
114
94
|
standalone: true,
|
|
115
95
|
template: '<div #root style="width: 100%; height: 100%"></div>'
|
|
@@ -117,8 +97,12 @@ GraphComponent = __decorateClass([
|
|
|
117
97
|
], GraphComponent);
|
|
118
98
|
|
|
119
99
|
// src/playground.component.ts
|
|
120
|
-
|
|
121
|
-
|
|
100
|
+
import {
|
|
101
|
+
Component as Component2,
|
|
102
|
+
Input as Input2,
|
|
103
|
+
ViewChild as ViewChild2
|
|
104
|
+
} from "@angular/core";
|
|
105
|
+
import { Playground as PlaygroundClass } from "@3plate/graph-core";
|
|
122
106
|
var PlaygroundComponent = class {
|
|
123
107
|
rootRef;
|
|
124
108
|
examples = {};
|
|
@@ -128,7 +112,7 @@ var PlaygroundComponent = class {
|
|
|
128
112
|
async ngOnInit() {
|
|
129
113
|
if (!this.rootRef?.nativeElement) return;
|
|
130
114
|
this.rootRef.nativeElement.id = this.rootId;
|
|
131
|
-
this.playground = new
|
|
115
|
+
this.playground = new PlaygroundClass({
|
|
132
116
|
root: this.rootId,
|
|
133
117
|
examples: this.examples,
|
|
134
118
|
defaultExample: this.defaultExample
|
|
@@ -147,23 +131,22 @@ var PlaygroundComponent = class {
|
|
|
147
131
|
}
|
|
148
132
|
};
|
|
149
133
|
__decorateClass([
|
|
150
|
-
(
|
|
134
|
+
ViewChild2("root", { static: true })
|
|
151
135
|
], PlaygroundComponent.prototype, "rootRef", 2);
|
|
152
136
|
__decorateClass([
|
|
153
|
-
(
|
|
137
|
+
Input2()
|
|
154
138
|
], PlaygroundComponent.prototype, "examples", 2);
|
|
155
139
|
__decorateClass([
|
|
156
|
-
(
|
|
140
|
+
Input2()
|
|
157
141
|
], PlaygroundComponent.prototype, "defaultExample", 2);
|
|
158
142
|
PlaygroundComponent = __decorateClass([
|
|
159
|
-
(
|
|
143
|
+
Component2({
|
|
160
144
|
selector: "g3p-playground",
|
|
161
145
|
standalone: true,
|
|
162
146
|
template: '<div #root style="width: 100%; height: 100%"></div>'
|
|
163
147
|
})
|
|
164
148
|
], PlaygroundComponent);
|
|
165
|
-
|
|
166
|
-
0 && (module.exports = {
|
|
149
|
+
export {
|
|
167
150
|
GraphComponent,
|
|
168
151
|
PlaygroundComponent
|
|
169
|
-
}
|
|
152
|
+
};
|
package/package.json
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3plate/graph-angular",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"license": "GPL-3.0",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "https://github.com/3plt/graph",
|
|
8
9
|
"directory": "packages/angular"
|
|
9
10
|
},
|
|
10
|
-
"main": "./dist/index.
|
|
11
|
-
"module": "./dist/index.
|
|
11
|
+
"main": "./dist/index.cjs",
|
|
12
|
+
"module": "./dist/index.js",
|
|
12
13
|
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"require": "./dist/index.cjs"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
13
21
|
"files": [
|
|
14
22
|
"dist"
|
|
15
23
|
],
|
|
@@ -20,7 +28,7 @@
|
|
|
20
28
|
"@angular/core": "^19.0.0 || ^21.0.0"
|
|
21
29
|
},
|
|
22
30
|
"dependencies": {
|
|
23
|
-
"@3plate/graph-core": "0.1.
|
|
31
|
+
"@3plate/graph-core": "0.1.12"
|
|
24
32
|
},
|
|
25
33
|
"devDependencies": {
|
|
26
34
|
"@angular/core": "^21.0.1",
|
|
File without changes
|