From 7a1e2890b159f571e67e83ae201feec4c2a2b296 Mon Sep 17 00:00:00 2001 From: Wassim Chegham Date: Sun, 11 Feb 2024 00:15:33 +0100 Subject: [PATCH] chore: update to angular v16 --- docs/components/BatteryLevelComponent.html | 21 +- docs/components/DashboardComponent.html | 33 +- docs/components/HumidityComponent.html | 18 +- docs/components/StepCounterComponent.html | 64 +- docs/components/TemperatureComponent.html | 33 +- docs/dependencies.html | 22 +- docs/index.html | 2 +- docs/js/search/search_index.js | 4 +- jest.config.js | 1 - package-lock.json | 10909 ++++++++++------ package.json | 44 +- .../angular-web-bluetooth/jest.config.js | 1 - .../angular-web-bluetooth/package.json | 2 +- .../battery-level.component.spec.ts.snap | 6 +- 14 files changed, 6754 insertions(+), 4406 deletions(-) diff --git a/docs/components/BatteryLevelComponent.html b/docs/components/BatteryLevelComponent.html index 304601c..ce726c6 100644 --- a/docs/components/BatteryLevelComponent.html +++ b/docs/components/BatteryLevelComponent.html @@ -364,8 +364,8 @@

- + @@ -438,8 +438,8 @@

- + @@ -507,8 +507,8 @@

- + @@ -618,8 +618,8 @@

- + @@ -1074,7 +1074,10 @@

requestValue() { this.valuesSubscription = this.service.value() - .subscribe((value: number) => this.updateValue(value), error => this.hasError(error)); + .subscribe({ + next: (val: number) => this.updateValue(val), + error: (err) => this.hasError(err) + }); } updateValue(value: number) { diff --git a/docs/components/DashboardComponent.html b/docs/components/DashboardComponent.html index 6c9eb37..d0fcfc6 100644 --- a/docs/components/DashboardComponent.html +++ b/docs/components/DashboardComponent.html @@ -262,6 +262,37 @@

Constructor

</mat-card> </mat-grid-tile> + <!-- stepper --> + + <mat-grid-tile colspan="3" rowspan="1"> + <mat-card class="dashboard-card"> + <mat-card-header> + <mat-card-title> + Stepper + <button mat-icon-button class="more-button" [matMenuTriggerFor]="menuStepper" aria-label="Toggle menu"> + <mat-icon>more_vert</mat-icon> + </button> + <mat-menu #menuStepper="matMenu" xPosition="before"> + <button mat-menu-item *ngIf="(stepper.device | async) === null" (click)="stepper.requestValue()"> + <mat-icon>bluetooth_searching</mat-icon> + Connect + </button> + <button mat-menu-item *ngIf="(stepper.device | async)" (click)="stepper.disconnect()"> + <mat-icon>bluetooth_disabled</mat-icon> + Disconnect + </button> + </mat-menu> + </mat-card-title> + <mat-card-subtitle *ngIf="(stepper.device | async) as device"> + {{ device.name }} + </mat-card-subtitle> + </mat-card-header> + <mat-card-content class="dashboard-card-content"> + <ble-stepcounter #stepper></ble-stepcounter> + </mat-card-content> + </mat-card> + </mat-grid-tile> + </mat-grid-list> </div> @@ -341,7 +372,7 @@

Constructor