Angular 18 upgrade

This commit is contained in:
aboyko
2025-01-17 11:07:54 -05:00
parent 276e04a206
commit 8f469541cd
7 changed files with 11651 additions and 7472 deletions

View File

@@ -12,6 +12,7 @@ import 'codemirror/mode/clike/clike';
import 'codemirror/addon/lint/javascript-lint';
import {PropertiesEditorService} from './properties-editor.service';
import {dia} from 'jointjs';
import {setTheme} from "ngx-bootstrap/utils";
@Component({
selector: 'demo-app',
@@ -36,6 +37,7 @@ export class AppComponent {
this.renderer = new Renderer();
this.editor = new Editor(propertiesEditor);
this.dsl = '';
setTheme('bs5'); // or 'bs4'
}
arrangeAll() {

View File

@@ -10,7 +10,6 @@ import { AppComponent } from './app.component';
@NgModule({
imports: [ BrowserModule, FormsModule, FloModule, ModalModule.forRoot() ],
declarations: [ AppComponent, PropertiesDialogComponent ],
entryComponents: [ PropertiesDialogComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }

View File

@@ -9,7 +9,8 @@ import { FormGroup } from '@angular/forms';
@Component({
selector: 'properties-dialog-content',
templateUrl: './properties.dialog.component.html',
encapsulation: ViewEncapsulation.None
encapsulation: ViewEncapsulation.None,
standalone: false
})
export class PropertiesDialogComponent {

View File

@@ -37,7 +37,7 @@
/***************************************************************************************************
* Zone JS is required by Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
import 'zone.js'; // Included with Angular CLI.