@c8y/tutorial 1022.45.2 → 1023.0.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,24 +1,24 @@
1
1
  {
2
2
  "name": "@c8y/tutorial",
3
- "version": "1022.45.2",
3
+ "version": "1023.0.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
- "@c8y/style": "1022.45.2",
7
- "@c8y/ngx-components": "1022.45.2",
8
- "@c8y/client": "1022.45.2",
9
- "@c8y/bootstrap": "1022.45.2",
10
- "@angular/cdk": "^19.2.19",
6
+ "@c8y/style": "1023.0.0",
7
+ "@c8y/ngx-components": "1023.0.0",
8
+ "@c8y/client": "1023.0.0",
9
+ "@c8y/bootstrap": "1023.0.0",
10
+ "@angular/cdk": "^20.2.7",
11
11
  "monaco-editor": "~0.53.0",
12
- "ngx-bootstrap": "19.0.2",
12
+ "ngx-bootstrap": "20.0.2",
13
13
  "leaflet": "1.9.4",
14
- "rxjs": "7.8.1"
14
+ "rxjs": "7.8.2"
15
15
  },
16
16
  "devDependencies": {
17
- "@c8y/options": "1022.45.2",
18
- "@c8y/devkit": "1022.45.2"
17
+ "@c8y/options": "1023.0.0",
18
+ "@c8y/devkit": "1023.0.0"
19
19
  },
20
20
  "peerDependencies": {
21
- "@angular/common": ">=19 <20"
21
+ "@angular/common": ">=20 <21"
22
22
  },
23
23
  "author": "Cumulocity GmbH",
24
24
  "license": "Apache-2.0"
@@ -1,6 +1,6 @@
1
1
  import { ApplicationConfig, importProvidersFrom } from '@angular/core';
2
2
  import { provideAnimations } from '@angular/platform-browser/animations';
3
- import { CoreModule, hookWidget, RouterModule, VersionModule } from '@c8y/ngx-components';
3
+ import { CoreModule, RouterModule, VersionModule } from '@c8y/ngx-components';
4
4
  import { provideHelloSample } from '../hello';
5
5
  import { provideRouteSample } from '../hooks/route';
6
6
  import { provideDemoWidget } from '../widget';
@@ -16,14 +16,13 @@ import { provideMapExampleNavigator } from '../maps';
16
16
  import { provideTranslationsNavigator } from '../translations';
17
17
  import { provideLazyWidget } from '../lazy-widget';
18
18
  import { provideBreadcrumbsNavigator } from '../breadcrumbs';
19
- import { cockpitDefaultWidgets } from '@c8y/ngx-components/widgets/cockpit';
20
- import { deviceManagementDefaultWidgets } from '@c8y/ngx-components/widgets/device-management';
21
19
  import { provideClientInterceptorSample } from '../client-interceptor';
22
20
  import { provideUserMenuSample } from '../user-menu';
23
21
  import { AlarmsModule } from '@c8y/ngx-components/alarms';
24
22
  import { BulkOperationSchedulerModule } from '@c8y/ngx-components/operations/bulk-operation-scheduler';
25
23
  import { provideRedirectToLastRoute } from '../redirect-to-last-route';
26
24
  import { provideAPIMock } from '../__mocks';
25
+ import { configureWidgetProviders } from '@c8y/ngx-components/widgets/widget-providers';
27
26
 
28
27
  export const appConfig: ApplicationConfig = {
29
28
  providers: [
@@ -50,7 +49,7 @@ export const appConfig: ApplicationConfig = {
50
49
  // Get rid of a default version factory
51
50
  importProvidersFrom(VersionModule.config({ disableWebSDKPluginVersionFactory: true })),
52
51
  ...provideLazyWidget(),
53
- hookWidget([...cockpitDefaultWidgets, ...deviceManagementDefaultWidgets]),
52
+ ...configureWidgetProviders(),
54
53
  ...provideRedirectToLastRoute(),
55
54
  ...provideAPIMock(),
56
55
  ...provideBreadcrumbsNavigator(),
@@ -1,13 +1,13 @@
1
1
  import { Component } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import { RouterModule } from '@angular/router';
4
+ import { gettext } from '@c8y/ngx-components/gettext';
4
5
  import {
5
6
  Column,
6
7
  CoreModule,
7
8
  CustomColumn,
8
9
  DATA_GRID_CONFIGURATION_CONTEXT_PROVIDER,
9
10
  DATA_GRID_CONFIGURATION_STRATEGY,
10
- gettext,
11
11
  GridConfigContext,
12
12
  GridConfigContextProvider
13
13
  } from '@c8y/ngx-components';
@@ -1,12 +1,6 @@
1
1
  import { Component } from '@angular/core';
2
- import {
3
- CoreModule,
4
- FormsModule,
5
- gettext,
6
- ModalModule,
7
- ModalService,
8
- Status
9
- } from '@c8y/ngx-components';
2
+ import { gettext } from '@c8y/ngx-components/gettext';
3
+ import { CoreModule, FormsModule, ModalModule, ModalService, Status } from '@c8y/ngx-components';
10
4
  import { BsModalService } from 'ngx-bootstrap/modal';
11
5
  import { DeleteModalExampleComponent } from './delete-modal-example.component';
12
6
 
@@ -1,7 +1,7 @@
1
1
  import { Component } from '@angular/core';
2
+ import { gettext } from '@c8y/ngx-components/gettext';
2
3
  import {
3
4
  CommonModule,
4
- gettext,
5
5
  HeaderModule,
6
6
  ModalModule,
7
7
  PopoverConfirmButtons,
@@ -1,5 +1,6 @@
1
1
  import { Component } from '@angular/core';
2
- import { CoreModule, DocLink, DocsService, gettext, QuickLinkModule } from '@c8y/ngx-components';
2
+ import { gettext } from '@c8y/ngx-components/gettext';
3
+ import { CoreModule, DocLink, DocsService, QuickLinkModule } from '@c8y/ngx-components';
3
4
 
4
5
  @Component({
5
6
  selector: 'quick-link-example',
@@ -21,7 +21,7 @@ import { JsonPipe } from '@angular/common';
21
21
  <div class="d-flex-md row">
22
22
  <div class="col-xs-12 col-md-3">
23
23
  <div class="card">
24
- <div class="card-inner-scroll d-flex d-col bg-component" style="height: 208px">
24
+ <div class="inner-scroll d-flex d-col bg-component" style="height: 208px">
25
25
  <c8y-asset-selector
26
26
  class="bg-component"
27
27
  [(ngModel)]="model"
@@ -121,11 +121,16 @@ import { JsonPipe } from '@angular/common';
121
121
  <span></span>
122
122
  <small>allowAddingCustomProperties</small>
123
123
  </label>
124
+ <label class="c8y-switch m-0">
125
+ <input type="checkbox" [(ngModel)]="allowDragAndDrop" />
126
+ <span></span>
127
+ <small>allowDragAndDrop</small>
128
+ </label>
124
129
  </div>
125
130
  </div>
126
131
  <div class="col-xs-12 col-md-5">
127
132
  <div class="card">
128
- <div class="card-inner-scroll d-flex d-col bg-component" style="height: 591px">
133
+ <div class="inner-scroll d-flex d-col bg-component" style="height: 623px">
129
134
  <c8y-asset-property-list
130
135
  class="bg-component"
131
136
  [asset]="selectedAsset"
@@ -136,7 +141,8 @@ import { JsonPipe } from '@angular/common';
136
141
  showValue: showValue,
137
142
  expansionMode: expansionMode,
138
143
  showKey: showKey,
139
- allowAddingCustomProperties: allowAddingCustomProperties
144
+ allowAddingCustomProperties: allowAddingCustomProperties,
145
+ allowDragAndDrop: allowDragAndDrop
140
146
  }"
141
147
  (selectedProperties)="onSelectedProperties($event)"
142
148
  >
@@ -156,7 +162,7 @@ import { JsonPipe } from '@angular/common';
156
162
  </div>
157
163
  </div>
158
164
  <div class="col-xs-12 col-md-4">
159
- <pre class="inner-scroll" style="height: 591px">{{ assetPropertiesOutput | json }}</pre>
165
+ <pre class="inner-scroll" style="height: 623px">{{ assetPropertiesOutput | json }}</pre>
160
166
  </div>
161
167
  </div>`,
162
168
  standalone: true,
@@ -186,6 +192,7 @@ export class PropertiesSelectorInlineExampleComponent {
186
192
  showKey = true;
187
193
  filterable = true;
188
194
  allowAddingCustomProperties = true;
195
+ allowDragAndDrop = true;
189
196
 
190
197
  selectionChanged(e: AssetSelectionChangeEvent) {
191
198
  this.selectedAsset = e.change.item;
@@ -1,5 +1,6 @@
1
1
  import { EnvironmentProviders, Provider, inject, provideAppInitializer } from '@angular/core';
2
- import { AlertService, gettext, UserMenuService } from '@c8y/ngx-components';
2
+ import { gettext } from '@c8y/ngx-components/gettext';
3
+ import { AlertService, UserMenuService } from '@c8y/ngx-components';
3
4
 
4
5
  export function provideUserMenuSample() {
5
6
  return [
@@ -1,9 +1,9 @@
1
1
  import { Component, Input, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { gettext } from '@c8y/ngx-components/gettext';
2
3
  import {
3
4
  DismissAlertStrategy,
4
5
  DynamicComponentAlert,
5
6
  DynamicComponentAlertAggregator,
6
- gettext,
7
7
  DatePipe
8
8
  } from '@c8y/ngx-components';
9
9
  import { NgIf } from '@angular/common';
@@ -1,11 +1,7 @@
1
1
  import { Injectable } from '@angular/core';
2
- import { EventService } from '@c8y/client';
3
- import { IEvent } from '@c8y/client';
4
- import {
5
- DynamicBulkIIdentifiedResolver,
6
- DynamicResolverService,
7
- gettext
8
- } from '@c8y/ngx-components';
2
+ import { EventService, IEvent } from '@c8y/client';
3
+ import { gettext } from '@c8y/ngx-components/gettext';
4
+ import { DynamicBulkIIdentifiedResolver, DynamicResolverService } from '@c8y/ngx-components';
9
5
 
10
6
  /**
11
7
  * An short alternative to the DynamicEventResolver class using the abstract class DynamicBulkIIdentifiedResolver.