@c8y/application 1019.24.2 → 1020.0.4

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,13 +1,11 @@
1
- import { ConfigurationOptions } from '@c8y/devkit/dist/options';
2
- import { version } from './package.json';
1
+ import type { ConfigurationOptions } from '@c8y/devkit';
2
+ import { version, name } from './package.json';
3
3
 
4
4
  export default {
5
5
  runTime: {
6
6
  version,
7
- name: 'application',
8
- contextPath: 'application',
9
- key: 'application-application-key',
10
- dynamicOptionsUrl: '/apps/public/public-options/options.json'
7
+ name,
8
+ dynamicOptionsUrl: true
11
9
  },
12
10
  buildTime: {
13
11
  federation: [
package/package.json CHANGED
@@ -1,19 +1,22 @@
1
1
  {
2
2
  "name": "@c8y/application",
3
- "version": "1019.24.2",
3
+ "version": "1020.0.4",
4
4
  "description": "This package is used to scaffold a default application for Cumulocity IoT.",
5
5
  "dependencies": {
6
- "@c8y/style": "1019.24.2",
7
- "@c8y/ngx-components": "1019.24.2",
8
- "@c8y/client": "1019.24.2",
9
- "@c8y/bootstrap": "1019.24.2",
10
- "@c8y/devkit": "1019.24.2",
11
- "@angular/cdk": "^16.2.11",
12
- "ngx-bootstrap": "11.0.2",
6
+ "@c8y/style": "1020.0.4",
7
+ "@c8y/ngx-components": "1020.0.4",
8
+ "@c8y/client": "1020.0.4",
9
+ "@c8y/bootstrap": "1020.0.4",
10
+ "@angular/cdk": "^17.3.9",
11
+ "ngx-bootstrap": "12.0.0",
13
12
  "rxjs": "^7.4.0"
14
13
  },
14
+ "devDependencies": {
15
+ "@c8y/options": "1020.0.4",
16
+ "@c8y/devkit": "1020.0.4"
17
+ },
15
18
  "peerDependencies": {
16
- "@angular/common": ">=15 <17"
19
+ "@angular/common": ">=16 <18"
17
20
  },
18
21
  "author": "Cumulocity GmbH"
19
22
  }
package/src/main.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import './i18n';
2
- import { applyOptions, loadOptions, loginOptions } from '@c8y/bootstrap';
2
+ import { applyOptions, loadOptions } from '@c8y/bootstrap';
3
3
 
4
4
  const barHolder: HTMLElement = document.querySelector('body > .init-load');
5
5
  export const removeProgress = () => barHolder && barHolder.parentNode.removeChild(barHolder);
@@ -8,11 +8,13 @@ applicationSetup();
8
8
 
9
9
  async function applicationSetup() {
10
10
  const options = await applyOptions({
11
- ...(await loadOptions()),
12
- ...((await loginOptions()) as object)
11
+ ...(await loadOptions())
13
12
  });
14
13
 
15
- const mod = await import('./bootstrap');
14
+ const mod = await import(
15
+ /* webpackPreload: true */
16
+ './bootstrap'
17
+ );
16
18
  const bootstrapApp = mod.bootstrap || (window as any).bootstrap || (() => null);
17
19
 
18
20
  return Promise.resolve(bootstrapApp(options)).then(removeProgress);
package/src/polyfills.ts CHANGED
@@ -30,4 +30,4 @@
30
30
  /***************************************************************************************************
31
31
  * Zone JS is required by default for Angular itself.
32
32
  */
33
- import 'zone.js/dist/zone'; // Included with Angular CLI.
33
+ import 'zone.js'; // Included with Angular CLI.