@c8y/devicemanagement 1021.81.0 → 1022.3.2

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.
@@ -1,5 +1,5 @@
1
1
  import type { ConfigurationOptions } from '@c8y/devkit';
2
- import { author, description, version, name } from './package.json';
2
+ import { author, description, version, name, license } from './package.json';
3
3
  import { gettext } from '@c8y/ngx-components/gettext';
4
4
 
5
5
  const defaultDescription = gettext(
@@ -19,6 +19,7 @@ export default {
19
19
  "base-uri 'none'; default-src 'self' 'unsafe-inline' http: https: ws: wss:; connect-src 'self' http: https: ws: wss:; script-src 'self' *.bugherd.com *.twitter.com *.twimg.com *.aptrinsic.com 'unsafe-inline' 'unsafe-eval' data:; style-src * 'unsafe-inline' blob:; img-src * data: blob:; font-src * data:; frame-src *; worker-src 'self' blob:;",
20
20
  dynamicOptionsUrl: true,
21
21
  contextHelp: true,
22
+ license,
22
23
  upgrade: true,
23
24
  exports: [
24
25
  {
@@ -37,13 +38,6 @@ export default {
37
38
  'The Services plugin provides a device tab that lists all services running on a device with their status, name, type and date of the last update.',
38
39
  scope: 'self'
39
40
  },
40
- {
41
- name: 'LWM2M plugin',
42
- module: 'LWM2Module',
43
- path: '@c8y/ngx-components/protocol-lwm2m',
44
- description: 'Self scoped LWM2M plugin. Serves Post-operations, configuration and more...',
45
- scope: 'self'
46
- },
47
41
  {
48
42
  name: 'Remote access: Configuration list',
49
43
  module: 'remoteAccessConfigurationListProviders',
package/package.json CHANGED
@@ -1,25 +1,26 @@
1
1
  {
2
2
  "name": "@c8y/devicemanagement",
3
- "version": "1021.81.0",
3
+ "version": "1022.3.2",
4
4
  "description": "This package is used to scaffold a Device Management application for Cumulocity IoT.",
5
5
  "dependencies": {
6
- "@c8y/style": "1021.81.0",
7
- "@c8y/ng1-modules": "1021.81.0",
8
- "@c8y/ngx-components": "1021.81.0",
9
- "@c8y/client": "1021.81.0",
10
- "@c8y/bootstrap": "1021.81.0",
11
- "@angular/cdk": "^18.2.14",
12
- "@angular/upgrade": "^18.2.13",
6
+ "@c8y/style": "1022.3.2",
7
+ "@c8y/ng1-modules": "1022.3.2",
8
+ "@c8y/ngx-components": "1022.3.2",
9
+ "@c8y/client": "1022.3.2",
10
+ "@c8y/bootstrap": "1022.3.2",
11
+ "@angular/cdk": "^19.2.18",
12
+ "@angular/upgrade": "^19.2.14",
13
13
  "angular": "1.8.3",
14
- "ngx-bootstrap": "18.0.0",
15
- "rxjs": "^7.8.1"
14
+ "ngx-bootstrap": "19.0.2",
15
+ "rxjs": "7.8.1"
16
16
  },
17
17
  "devDependencies": {
18
- "@c8y/options": "1021.81.0",
19
- "@c8y/devkit": "1021.81.0"
18
+ "@c8y/options": "1022.3.2",
19
+ "@c8y/devkit": "1022.3.2"
20
20
  },
21
21
  "peerDependencies": {
22
- "@angular/common": ">=18 <19"
22
+ "@angular/common": ">=19 <20"
23
23
  },
24
- "author": "Cumulocity GmbH"
24
+ "author": "Cumulocity GmbH",
25
+ "license": "Apache-2.0"
25
26
  }
@@ -22,7 +22,6 @@ import { AddLocationModule, LocationTabModule } from '@c8y/ngx-components/locati
22
22
  import { LoriotDeviceRegistrationModule } from '@c8y/ngx-components/loriot-device-registration';
23
23
  import { OperationsModule } from '@c8y/ngx-components/operations';
24
24
  import { LpwanProtocolModule } from '@c8y/ngx-components/protocol-lpwan';
25
- import { Lwm2mPluginCheckerService } from '@c8y/ngx-components/protocol-lwm2m';
26
25
  import { OpcuaProtocolModule } from '@c8y/ngx-components/protocol-opcua';
27
26
  import { RegisterDeviceModule } from '@c8y/ngx-components/register-device';
28
27
  import { RepositoryModule } from '@c8y/ngx-components/repository';
@@ -81,7 +80,7 @@ import { DeviceProvisionedCertificatesModule } from '@c8y/ngx-components/device-
81
80
  DeviceProvisionedCertificatesModule,
82
81
  alarmsDeviceManagementRouteAndNodeConfig()
83
82
  ],
84
- providers: [deviceMapFeatureProvider, trackingFeatureProvider, Lwm2mPluginCheckerService]
83
+ providers: [deviceMapFeatureProvider, trackingFeatureProvider]
85
84
  })
86
85
  export class AppModule extends HybridAppModule {
87
86
  constructor(protected override upgrade: NgUpgradeModule) {
package/src/bootstrap.ts CHANGED
@@ -4,14 +4,16 @@ import './ng1';
4
4
  import { enableProdMode } from '@angular/core';
5
5
  import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
6
6
  import { AppModule } from './app/app.module';
7
+ import { provideBootstrapMetadata } from '@c8y/ngx-components';
8
+ import { BootstrapMetaData } from '@c8y/bootstrap';
7
9
 
8
10
  declare const __MODE__: string;
9
11
  if (__MODE__ === 'production') {
10
12
  enableProdMode();
11
13
  }
12
14
 
13
- export function bootstrap() {
14
- return platformBrowserDynamic()
15
+ export function bootstrap(metadata: BootstrapMetaData) {
16
+ return platformBrowserDynamic(provideBootstrapMetadata(metadata))
15
17
  .bootstrapModule(AppModule)
16
18
  .catch(err => console.log(err));
17
19
  }
package/src/main.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import './i18n';
2
- import { applyOptions, loadOptions } from '@c8y/bootstrap';
3
2
 
4
3
  const barHolder: HTMLElement | null = document.querySelector('body > .init-load');
5
4
  export const removeProgress = () => barHolder?.parentNode?.removeChild(barHolder);
@@ -7,14 +6,12 @@ export const removeProgress = () => barHolder?.parentNode?.removeChild(barHolder
7
6
  applicationSetup();
8
7
 
9
8
  async function applicationSetup() {
10
- await applyOptions({
11
- ...(await loadOptions())
12
- });
9
+ const { loadMetaDataAndPerformBootstrap } = await import('@c8y/bootstrap');
10
+ const loadBootstrapModule = () =>
11
+ import(
12
+ /* webpackPreload: true */
13
+ './bootstrap'
14
+ );
13
15
 
14
- const mod = await import(
15
- /* webpackPreload: true */
16
- './bootstrap'
17
- );
18
- const bootstrapApp = mod.bootstrap;
19
- return bootstrapApp().then(removeProgress);
16
+ loadMetaDataAndPerformBootstrap(loadBootstrapModule).then(removeProgress);
20
17
  }