@c8y/widget-plugin 1020.40.1 → 1021.0.11

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,22 +1,22 @@
1
1
  {
2
2
  "name": "@c8y/widget-plugin",
3
- "version": "1020.40.1",
3
+ "version": "1021.0.11",
4
4
  "description": "",
5
5
  "dependencies": {
6
- "@c8y/style": "1020.40.1",
7
- "@c8y/ngx-components": "1020.40.1",
8
- "@c8y/client": "1020.40.1",
9
- "@c8y/bootstrap": "1020.40.1",
10
- "@angular/cdk": "^17.3.9",
11
- "ngx-bootstrap": "12.0.0",
12
- "rxjs": "^7.4.0"
6
+ "@c8y/style": "1021.0.11",
7
+ "@c8y/ngx-components": "1021.0.11",
8
+ "@c8y/client": "1021.0.11",
9
+ "@c8y/bootstrap": "1021.0.11",
10
+ "@angular/cdk": "^18.2.10",
11
+ "ngx-bootstrap": "18.0.0",
12
+ "rxjs": "^7.8.1"
13
13
  },
14
14
  "devDependencies": {
15
- "@c8y/options": "1020.40.1",
16
- "@c8y/devkit": "1020.40.1"
15
+ "@c8y/options": "1021.0.11",
16
+ "@c8y/devkit": "1021.0.11"
17
17
  },
18
18
  "peerDependencies": {
19
- "@angular/common": ">=16 <18"
19
+ "@angular/common": ">=18 <19"
20
20
  },
21
21
  "author": "Cumulocity GmbH"
22
22
  }
Binary file
package/src/main.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import './i18n';
2
2
  import { applyOptions, loadOptions } from '@c8y/bootstrap';
3
3
 
4
- const barHolder: HTMLElement = document.querySelector('body > .init-load');
5
- export const removeProgress = () => barHolder && barHolder.parentNode.removeChild(barHolder);
4
+ const barHolder: HTMLElement | null = document.querySelector('body > .init-load');
5
+ export const removeProgress = () => barHolder?.parentNode?.removeChild(barHolder);
6
6
 
7
7
  applicationSetup();
8
8
 
9
9
  async function applicationSetup() {
10
- const options = await applyOptions({
10
+ await applyOptions({
11
11
  ...(await loadOptions())
12
12
  });
13
13
 
@@ -15,7 +15,6 @@ async function applicationSetup() {
15
15
  /* webpackPreload: true */
16
16
  './bootstrap'
17
17
  );
18
- const bootstrapApp = mod.bootstrap || (window as any).bootstrap || (() => null);
19
-
20
- return Promise.resolve(bootstrapApp(options)).then(removeProgress);
18
+ const bootstrapApp = mod.bootstrap;
19
+ return bootstrapApp().then(removeProgress);
21
20
  }
package/src/favicon.ico DELETED
Binary file