@c8y/tutorial 1023.75.1 → 1023.76.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/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@c8y/tutorial",
3
- "version": "1023.75.1",
3
+ "version": "1023.76.0",
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.75.1",
8
- "@c8y/client": "1023.75.1",
9
- "@c8y/ngx-components": "1023.75.1",
10
- "@c8y/style": "1023.75.1",
7
+ "@c8y/bootstrap": "1023.76.0",
8
+ "@c8y/client": "1023.76.0",
9
+ "@c8y/ngx-components": "1023.76.0",
10
+ "@c8y/style": "1023.76.0",
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.75.1",
18
- "@c8y/options": "1023.75.1"
17
+ "@c8y/devkit": "1023.76.0",
18
+ "@c8y/options": "1023.76.0"
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: () => import('c8y-schema-loader?interfaceName=WidgetConfig!./widget-config.model'),
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
  }
@@ -19,7 +19,10 @@ export function provideLazyWidget() {
19
19
  loadComponent: loadViewComponent,
20
20
  loadConfigComponent: loadConfigComponent,
21
21
  data: {
22
- schema: () => import('c8y-schema-loader?interfaceName=WidgetConfig!./widget-config.model')
22
+ schema: () =>
23
+ import(
24
+ 'c8y-schema-loader?interfaceName=WidgetConfig&type=widget-config!./widget-config.model'
25
+ )
23
26
  }
24
27
  })
25
28
  ];
@@ -12,7 +12,11 @@ export function provideDemoWidget() {
12
12
  configComponent: WidgetConfigDemo,
13
13
  errorStrategy: DynamicComponentErrorStrategy.OVERLAY_ERROR,
14
14
  data: {
15
- schema: () => import('c8y-schema-loader?interfaceName=WidgetConfig!./widget-config.model'),
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: () => import('c8y-schema-loader?interfaceName=WidgetConfig!./widget-config.model'),
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: {