@node-projects/web-component-designer-widgets-wunderbaum 0.1.28 → 0.1.30
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseCustomWebComponentConstructorAppend, TypedEvent } from '@node-projects/base-custom-webcomponent';
|
|
2
|
-
import { IBindableObject, ServiceContainer } from '@node-projects/web-component-designer';
|
|
2
|
+
import { IBindableObject, InstanceServiceContainer, ServiceContainer } from '@node-projects/web-component-designer';
|
|
3
|
+
import { BindableObjectsTarget } from '@node-projects/web-component-designer/src/elements/services/bindableObjectsService/BindableObjectsTarget.js';
|
|
3
4
|
export declare class BindableObjectsBrowser extends BaseCustomWebComponentConstructorAppend {
|
|
4
5
|
private _treeDiv;
|
|
5
6
|
private _tree;
|
|
@@ -8,5 +9,6 @@ export declare class BindableObjectsBrowser extends BaseCustomWebComponentConstr
|
|
|
8
9
|
static readonly style: CSSStyleSheet;
|
|
9
10
|
static template: HTMLTemplateElement;
|
|
10
11
|
constructor();
|
|
11
|
-
|
|
12
|
+
private _instanceServiceContainer;
|
|
13
|
+
initialize(serviceContainer: ServiceContainer, instanceServiceContainer: InstanceServiceContainer, bindableObjectsTarget: BindableObjectsTarget): Promise<void>;
|
|
12
14
|
}
|
|
@@ -31,7 +31,7 @@ export class BindableObjectsBrowser extends BaseCustomWebComponentConstructorApp
|
|
|
31
31
|
if (bindable?.children)
|
|
32
32
|
children = bindable.children;
|
|
33
33
|
else
|
|
34
|
-
children = await service.getBindableObjects(bindable);
|
|
34
|
+
children = await service.getBindableObjects(bindable, this._instanceServiceContainer);
|
|
35
35
|
resolve(children.map(x => ({
|
|
36
36
|
title: x.name,
|
|
37
37
|
service,
|
|
@@ -65,11 +65,15 @@ export class BindableObjectsBrowser extends BaseCustomWebComponentConstructorApp
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
_instanceServiceContainer;
|
|
69
|
+
async initialize(serviceContainer, instanceServiceContainer, bindableObjectsTarget) {
|
|
70
|
+
this._instanceServiceContainer = instanceServiceContainer;
|
|
69
71
|
let rootNode = this._tree.root;
|
|
70
72
|
rootNode.removeChildren();
|
|
71
73
|
const services = serviceContainer.bindableObjectsServices;
|
|
72
74
|
for (const s of services) {
|
|
75
|
+
if (!s.hasObjectsForInstanceServiceContainer(this._instanceServiceContainer, bindableObjectsTarget))
|
|
76
|
+
continue;
|
|
73
77
|
this._tree.root.addChildren({
|
|
74
78
|
title: s.name,
|
|
75
79
|
lazy: true,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "web-component-designer addon: Widgets using wunderbaum",
|
|
3
3
|
"name": "@node-projects/web-component-designer-widgets-wunderbaum",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.30",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"prepublishOnly": "npm run build"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@node-projects/base-custom-webcomponent": ">=0.
|
|
17
|
-
"@node-projects/web-component-designer": ">=0.1.
|
|
16
|
+
"@node-projects/base-custom-webcomponent": ">=0.27.8",
|
|
17
|
+
"@node-projects/web-component-designer": ">=0.1.224",
|
|
18
18
|
"wunderbaum": ">=0.11.0"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|