@c8y/tutorial 1023.75.1 → 1023.77.1
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
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c8y/tutorial",
|
|
3
|
-
"version": "1023.
|
|
3
|
+
"version": "1023.77.1",
|
|
4
4
|
"description": "This package is used to scaffold a tutorial for Cumulocity IoT Web SDK which explains a lot of concepts.",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@angular/cdk": "^20.2.14",
|
|
7
|
-
"@c8y/bootstrap": "1023.
|
|
8
|
-
"@c8y/client": "1023.
|
|
9
|
-
"@c8y/ngx-components": "1023.
|
|
10
|
-
"@c8y/style": "1023.
|
|
7
|
+
"@c8y/bootstrap": "1023.77.1",
|
|
8
|
+
"@c8y/client": "1023.77.1",
|
|
9
|
+
"@c8y/ngx-components": "1023.77.1",
|
|
10
|
+
"@c8y/style": "1023.77.1",
|
|
11
11
|
"leaflet": "1.9.4",
|
|
12
12
|
"monaco-editor": "~0.53.0",
|
|
13
13
|
"ngx-bootstrap": "20.0.2",
|
|
14
14
|
"rxjs": "7.8.2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@c8y/devkit": "1023.
|
|
18
|
-
"@c8y/options": "1023.
|
|
17
|
+
"@c8y/devkit": "1023.77.1",
|
|
18
|
+
"@c8y/options": "1023.77.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@angular/common": ">=20 <21"
|
|
@@ -38,7 +38,7 @@ export class GenerateJsonSchemaComponent implements OnInit {
|
|
|
38
38
|
|
|
39
39
|
async ngOnInit() {
|
|
40
40
|
const { schema } = await import(
|
|
41
|
-
'c8y-schema-loader?interfaceName=ExampleInterface!./schema-example.model'
|
|
41
|
+
'c8y-schema-loader?interfaceName=ExampleInterface&type=some-type-to-be-grouped-by!./schema-example.model'
|
|
42
42
|
);
|
|
43
43
|
this.schemaString = JSON.stringify(schema, null, 2);
|
|
44
44
|
}
|
|
@@ -47,7 +47,10 @@ export function provideGlobalContextWidget() {
|
|
|
47
47
|
m => m.GlobalContextWidgetConfigComponent
|
|
48
48
|
),
|
|
49
49
|
data: {
|
|
50
|
-
schema: () =>
|
|
50
|
+
schema: () =>
|
|
51
|
+
import(
|
|
52
|
+
'c8y-schema-loader?interfaceName=WidgetConfig&type=widget-config!./widget-config.model'
|
|
53
|
+
),
|
|
51
54
|
// Widget controls for view component
|
|
52
55
|
controls: WIDGET_CONTROLS
|
|
53
56
|
}
|
package/src/lazy-widget/index.ts
CHANGED
|
@@ -19,7 +19,10 @@ export function provideLazyWidget() {
|
|
|
19
19
|
loadComponent: loadViewComponent,
|
|
20
20
|
loadConfigComponent: loadConfigComponent,
|
|
21
21
|
data: {
|
|
22
|
-
schema: () =>
|
|
22
|
+
schema: () =>
|
|
23
|
+
import(
|
|
24
|
+
'c8y-schema-loader?interfaceName=WidgetConfig&type=widget-config!./widget-config.model'
|
|
25
|
+
)
|
|
23
26
|
}
|
|
24
27
|
})
|
|
25
28
|
];
|
package/src/widget/index.ts
CHANGED
|
@@ -12,7 +12,11 @@ export function provideDemoWidget() {
|
|
|
12
12
|
configComponent: WidgetConfigDemo,
|
|
13
13
|
errorStrategy: DynamicComponentErrorStrategy.OVERLAY_ERROR,
|
|
14
14
|
data: {
|
|
15
|
-
schema: () =>
|
|
15
|
+
schema: () =>
|
|
16
|
+
import(
|
|
17
|
+
'c8y-schema-loader?interfaceName=WidgetConfig&type=widget-config!./widget-config.model'
|
|
18
|
+
),
|
|
19
|
+
// The settings object can be used to configure the configComponent
|
|
16
20
|
settings: {
|
|
17
21
|
noNewWidgets: false
|
|
18
22
|
}
|
|
@@ -27,7 +27,10 @@ export function provideWidgetsResolverSample() {
|
|
|
27
27
|
},
|
|
28
28
|
errorStrategy: DynamicComponentErrorStrategy.OVERLAY_ERROR,
|
|
29
29
|
data: {
|
|
30
|
-
schema: () =>
|
|
30
|
+
schema: () =>
|
|
31
|
+
import(
|
|
32
|
+
'c8y-schema-loader?interfaceName=WidgetConfig&type=widget-config!./widget-config.model'
|
|
33
|
+
),
|
|
31
34
|
settings: {
|
|
32
35
|
noNewWidgets: false,
|
|
33
36
|
widgetDefaults: {
|