Skip to content

Commit 1d63a8c

Browse files
chore: Upgrade to Web SDK v1020.34.0
1 parent 1072590 commit 1d63a8c

File tree

4 files changed

+58
-58
lines changed

4 files changed

+58
-58
lines changed

package-lock.json

Lines changed: 43 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tutorial",
3-
"version": "1020.33.1",
3+
"version": "1020.34.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
@@ -19,10 +19,10 @@
1919
"@angular/platform-browser": "^17.3.0",
2020
"@angular/platform-browser-dynamic": "^17.3.0",
2121
"@angular/router": "^17.3.0",
22-
"@c8y/bootstrap": "1020.33.1",
23-
"@c8y/client": "1020.33.1",
24-
"@c8y/ngx-components": "1020.33.1",
25-
"@c8y/style": "1020.33.1",
22+
"@c8y/bootstrap": "1020.34.0",
23+
"@c8y/client": "1020.34.0",
24+
"@c8y/ngx-components": "1020.34.0",
25+
"@c8y/style": "1020.34.0",
2626
"leaflet": "1.9.4",
2727
"ngx-bootstrap": "12.0.0",
2828
"rxjs": "^7.4.0",
@@ -33,8 +33,8 @@
3333
"@angular-devkit/build-angular": "^17.3.10",
3434
"@angular/cli": "^17.3.10",
3535
"@angular/compiler-cli": "^17.3.0",
36-
"@c8y/devkit": "1020.33.1",
37-
"@c8y/options": "1020.33.1",
36+
"@c8y/devkit": "1020.34.0",
37+
"@c8y/options": "1020.34.0",
3838
"@types/jasmine": "~5.1.0",
3939
"jasmine-core": "~5.1.0",
4040
"karma": "~6.4.0",

src/lazy-widget/lazy-widget.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NgModule } from '@angular/core';
22
import { CommonModule } from '@angular/common';
3-
import { hookComponent } from '@c8y/ngx-components';
3+
import { hookWidget } from '@c8y/ngx-components';
44

55
async function loadViewComponent() {
66
const { LazyWidgetViewComponent } = await import('./lazy-widget-view');
@@ -15,7 +15,7 @@ async function loadConfigComponent() {
1515
@NgModule({
1616
imports: [CommonModule],
1717
providers: [
18-
hookComponent({
18+
hookWidget({
1919
id: 'tutorial-lazy-widget',
2020
label: 'Lazy Loaded Widget',
2121
description: 'Lazy Loaded Widget',

src/widget/demo-widget.module.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { NgModule } from '@angular/core';
22
import {
33
CommonModule as C8yCommonModule,
4-
DynamicComponentDefinition,
54
DynamicComponentErrorStrategy,
5+
DynamicWidgetDefinition,
66
FormsModule,
7-
hookComponent
7+
hookWidget,
8+
WidgetDataType
89
} from '@c8y/ngx-components';
910
import { AssetSelectorModule } from '@c8y/ngx-components/assets-navigator';
10-
import { ContextWidgetConfig } from '@c8y/ngx-components/context-dashboard';
1111
import { WidgetConfigDemo } from './demo-widget-config.component';
1212
import { WidgetDemo } from './demo-widget.component';
1313

@@ -23,7 +23,7 @@ import { WidgetDemo } from './demo-widget.component';
2323
imports: [FormsModule, AssetSelectorModule, C8yCommonModule],
2424
exports: [],
2525
providers: [
26-
hookComponent({
26+
hookWidget({
2727
id: 'angular.widget.demo',
2828
label: 'My angular widget',
2929
description: 'This is a description from angular',
@@ -47,8 +47,8 @@ import { WidgetDemo } from './demo-widget.component';
4747
displaySettings: {
4848
globalTimeContext: true // Set this to true, to add a global time context binding
4949
}
50-
} as ContextWidgetConfig
51-
} as DynamicComponentDefinition)
50+
} as WidgetDataType
51+
} as DynamicWidgetDefinition)
5252
]
5353
})
5454
export class DashboardWidgetDemoModule {}

0 commit comments

Comments
 (0)