@siemens/live-preview 49.1.0 → 49.2.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/assets/angular/angular.json +63 -0
- package/assets/angular/package.json +47 -0
- package/assets/angular/src/app/app.component.ts +15 -0
- package/assets/angular/src/app/example.component.ts +12 -0
- package/assets/angular/src/index.html +12 -0
- package/assets/angular/src/main.ts +39 -0
- package/assets/angular/src/styles.scss +16 -0
- package/assets/angular/tsconfig.app.json +10 -0
- package/assets/angular/tsconfig.json +31 -0
- package/fesm2022/siemens-live-preview.mjs +226 -5
- package/fesm2022/siemens-live-preview.mjs.map +1 -1
- package/package.json +3 -2
- package/types/siemens-live-preview.d.ts +55 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"angular-standalone-test-app": {
|
|
7
|
+
"projectType": "application",
|
|
8
|
+
"schematics": {},
|
|
9
|
+
"root": "",
|
|
10
|
+
"sourceRoot": "src",
|
|
11
|
+
"prefix": "app",
|
|
12
|
+
"architect": {
|
|
13
|
+
"build": {
|
|
14
|
+
"builder": "@angular/build:application",
|
|
15
|
+
"options": {
|
|
16
|
+
"browser": "src/main.ts",
|
|
17
|
+
"tsConfig": "tsconfig.app.json",
|
|
18
|
+
"assets": ["src/assets", "src/favicon.ico"],
|
|
19
|
+
"stylePreprocessorOptions": {
|
|
20
|
+
"includePaths": ["node_modules/"]
|
|
21
|
+
},
|
|
22
|
+
"styles": ["src/styles.scss"]
|
|
23
|
+
},
|
|
24
|
+
"configurations": {
|
|
25
|
+
"production": {
|
|
26
|
+
"budgets": [
|
|
27
|
+
{
|
|
28
|
+
"type": "initial",
|
|
29
|
+
"maximumWarning": "500kB",
|
|
30
|
+
"maximumError": "1MB"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "anyComponentStyle",
|
|
34
|
+
"maximumWarning": "4kB",
|
|
35
|
+
"maximumError": "8kB"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"outputHashing": "all"
|
|
39
|
+
},
|
|
40
|
+
"development": {
|
|
41
|
+
"optimization": false,
|
|
42
|
+
"extractLicenses": false,
|
|
43
|
+
"sourceMap": true
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"defaultConfiguration": "production"
|
|
47
|
+
},
|
|
48
|
+
"serve": {
|
|
49
|
+
"builder": "@angular/build:dev-server",
|
|
50
|
+
"configurations": {
|
|
51
|
+
"production": {
|
|
52
|
+
"buildTarget": "angular-standalone-test-app:build:production"
|
|
53
|
+
},
|
|
54
|
+
"development": {
|
|
55
|
+
"buildTarget": "angular-standalone-test-app:build:development"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"defaultConfiguration": "development"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "element-example",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"ng": "ng",
|
|
6
|
+
"start": "ng serve",
|
|
7
|
+
"build": "ng build",
|
|
8
|
+
"watch": "ng build --watch --configuration development"
|
|
9
|
+
},
|
|
10
|
+
"private": true,
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@angular/common": "21.0.8",
|
|
13
|
+
"@angular/core": "21.0.8",
|
|
14
|
+
"@angular/forms": "21.0.8",
|
|
15
|
+
"@angular/platform-browser": "21.0.8",
|
|
16
|
+
"@angular/router": "21.0.8",
|
|
17
|
+
"@ngx-formly/bootstrap": "6.3.12",
|
|
18
|
+
"@ngx-formly/core": "6.3.12",
|
|
19
|
+
"@ngx-translate/core": "17.0.0",
|
|
20
|
+
"@siemens/charts-ng": "49.1.0",
|
|
21
|
+
"@siemens/dashboards-ng": "49.1.0",
|
|
22
|
+
"@siemens/element-ng": "49.1.0",
|
|
23
|
+
"@siemens/element-theme": "49.1.0",
|
|
24
|
+
"@siemens/element-translate-ng": "49.1.0",
|
|
25
|
+
"@siemens/live-preview": "49.1.0",
|
|
26
|
+
"@siemens/maps-ng": "49.1.0",
|
|
27
|
+
"@siemens/ngx-datatable": "26.0.0",
|
|
28
|
+
"ag-grid-angular": "^34.3.1",
|
|
29
|
+
"ag-grid-community": "^34.3.1",
|
|
30
|
+
"echarts": "6.0.0",
|
|
31
|
+
"flag-icons": "7.5.0",
|
|
32
|
+
"google-libphonenumber": "3.2.44",
|
|
33
|
+
"ngx-image-cropper": "9.1.6",
|
|
34
|
+
"ol": "10.8.0",
|
|
35
|
+
"ol-ext": "4.0.37",
|
|
36
|
+
"rxjs": "7.8.2",
|
|
37
|
+
"tslib": "2.8.1"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@angular/build": "21.0.5",
|
|
41
|
+
"@angular/cli": "21.0.5",
|
|
42
|
+
"@angular/compiler": "21.0.8",
|
|
43
|
+
"@angular/compiler-cli": "21.0.8",
|
|
44
|
+
"@angular/language-service": "21.0.8",
|
|
45
|
+
"typescript": "5.9.3"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { Component } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
import { SampleComponent } from './example.component';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
/* eslint-disable @angular-eslint/component-selector */
|
|
11
|
+
selector: 'app-root',
|
|
12
|
+
imports: [SampleComponent],
|
|
13
|
+
template: `<app-sample />`
|
|
14
|
+
})
|
|
15
|
+
export class AppComponent {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { Component } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
/* eslint-disable @angular-eslint/component-selector */
|
|
9
|
+
selector: 'app-sample',
|
|
10
|
+
template: `Example`
|
|
11
|
+
})
|
|
12
|
+
export class SampleComponent {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>Element example</title>
|
|
6
|
+
<base href="/" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<app-root></app-root>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
6
|
+
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
|
|
7
|
+
import { bootstrapApplication } from '@angular/platform-browser';
|
|
8
|
+
import { provideRouter } from '@angular/router';
|
|
9
|
+
import { provideTranslateService } from '@ngx-translate/core';
|
|
10
|
+
import { provideSiUiState } from '@siemens/element-ng/common';
|
|
11
|
+
import { provideSiDatatableConfig } from '@siemens/element-ng/datatable';
|
|
12
|
+
import {
|
|
13
|
+
provideNgxTranslateForElement,
|
|
14
|
+
provideMissingTranslationHandlerForElement
|
|
15
|
+
} from '@siemens/element-translate-ng/ngx-translate';
|
|
16
|
+
import { LOG_EVENT } from '@siemens/live-preview';
|
|
17
|
+
|
|
18
|
+
import { AppComponent } from './app/app.component';
|
|
19
|
+
|
|
20
|
+
export const appConfig: ApplicationConfig = {
|
|
21
|
+
providers: [
|
|
22
|
+
provideTranslateService({
|
|
23
|
+
missingTranslationHandler: provideMissingTranslationHandlerForElement()
|
|
24
|
+
}),
|
|
25
|
+
provideBrowserGlobalErrorListeners(),
|
|
26
|
+
provideRouter([]),
|
|
27
|
+
provideHttpClient(withInterceptorsFromDi()),
|
|
28
|
+
provideNgxTranslateForElement(),
|
|
29
|
+
provideSiDatatableConfig(),
|
|
30
|
+
provideSiUiState(),
|
|
31
|
+
{
|
|
32
|
+
provide: LOG_EVENT,
|
|
33
|
+
// eslint-disable-next-line no-console
|
|
34
|
+
useValue: (...msg: any[]) => console.log(msg)
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
bootstrapApplication(AppComponent, appConfig).catch(err => console.error(err));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Use Element Theme
|
|
2
|
+
@use '@siemens/element-theme/src/theme';
|
|
3
|
+
|
|
4
|
+
// Use Element components
|
|
5
|
+
@use '@siemens/element-ng/element-ng';
|
|
6
|
+
|
|
7
|
+
@use '@siemens/element-icons/dist/style/siemens-element-icons';
|
|
8
|
+
|
|
9
|
+
@use 'flag-icons/sass/flag-icons' with (
|
|
10
|
+
$flag-icons-use-square: false
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
app-sample {
|
|
14
|
+
block-size: 100%;
|
|
15
|
+
display: block;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
+
{
|
|
4
|
+
"extends": "./tsconfig.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"outDir": "./out-tsc/app",
|
|
7
|
+
"types": []
|
|
8
|
+
},
|
|
9
|
+
"include": ["src"]
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
+
{
|
|
4
|
+
"compileOnSave": false,
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"strict": true,
|
|
7
|
+
"noImplicitOverride": true,
|
|
8
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
9
|
+
"noImplicitReturns": true,
|
|
10
|
+
"noFallthroughCasesInSwitch": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"experimentalDecorators": true,
|
|
14
|
+
"importHelpers": true,
|
|
15
|
+
"target": "ES2022",
|
|
16
|
+
"module": "preserve"
|
|
17
|
+
},
|
|
18
|
+
"angularCompilerOptions": {
|
|
19
|
+
"enableI18nLegacyMessageIdFormat": false,
|
|
20
|
+
"strictInjectionParameters": true,
|
|
21
|
+
"strictInputAccessModifiers": true,
|
|
22
|
+
"typeCheckHostBindings": true,
|
|
23
|
+
"strictTemplates": true
|
|
24
|
+
},
|
|
25
|
+
"files": [],
|
|
26
|
+
"references": [
|
|
27
|
+
{
|
|
28
|
+
"path": "./tsconfig.app.json"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|