Commit 46cc0b3
Fix/set right esmf sdk version (#291)
* Update sdkVersion to 2.10.3 in config
Bumped the sdkVersion from 2.7.0 to 2.10.3 in the shared config. This ensures the application uses the latest SDK features and fixes.
* Fix file path handling and update Electron dependencies
Updated file-handling.service.ts to use webkitRelativePath for file path and name extraction, ensuring correct handling of files from directory uploads. Upgraded Electron and related build dependencies in package.json and package-lock.json to improve compatibility and support for newer Electron versions.
* Remove import package validation from namespace importer
Eliminated the import package validation flow and related components from the namespace importer. The router now directly loads the import component, and service logic for validating packages and handling workspace files has been removed. This simplifies the import process and cleans up unused code.
* Update aspect-models path in package.json
Changed asset source paths from 'org.eclipse.examples' to 'com.examples' in multiple copy operations to reflect updated directory structure.
* Remove log file from core directory
Deleted the core/log.log file, likely to clean up generated or unnecessary log output from version control.
* Refactor model file deletion and header building
Simplifies the model file deletion API by removing the need for absolute model name and namespace parameters. Updates usages across services and components to use only aspectModelUrn. Removes unused methods from HttpHeaderBuilder and cleans up related code for better maintainability.
* Remove namespace importer/exporter components and refactor services
Deleted all namespace importer/exporter components, routers, and related shared models from namespace-manager. Refactored NamespacesManagerService to remove dialog-based flows and injection tokens, simplifying import/export logic. Updated API and editor services to support aspect model filtering. Adjusted UI and error handling for namespace selection and workspace import. Updated i18n text for export dialog.
* Refactor ModelApiService and update related usages
Renamed and refactored methods in ModelApiService for clarity and consistency, such as replacing getAspectMetaModel with fetchAspectMetaModel, formatModel with fetchFormatedAspectModel, and saveModel with saveAspectModel. Updated all usages across the codebase to use the new method names. Removed unused and redundant code, including PREDEFINED_MODELS and removeCommentsFromTTL. Improved error handling and documentation generation logic in GenerateDocumentationComponent. Adjusted workspace refresh logic in ElectronTunnelService and windows-manager.js for consistency.
* Remove vocabulary library and refactor RDF helpers
Deleted the vocabulary library and its references from the project. Refactored RDF helper functions by moving getPredicateByKey from constants to RdfListHelper, removed unused code from RDF services and utils, and updated imports and exports accordingly. Also removed CdkScrollable from migrator components and added license headers to sidebar styles.
* Remove duplicate constants file and update TODO comments
Deleted the redundant 'rdf-list.contants.ts' file and updated various TODO comments across the codebase for consistency. Minor documentation and formatting improvements were made in markdown and code files, and an unused import was removed from 'select-namespaces.component.ts'.
* Update SDK version to 2.11.1 in config
Bumps the sdkVersion field in the shared config from 2.10.3 to 2.11.1 to reflect the latest SDK release.
* Refactor API to use FormData and file URI headers
Updated ModelApiService methods to send RDF content as FormData with a file URI header instead of raw string and content-type header. Added createAspectModelFormData helper and withFileUri method to HttpHeaderBuilder to support this change, improving file handling and request consistency.
* Refactor migrator components and update migration flow
Removed legacy migrator components (migration-status, migration-success, samm-migration, version-migration) and replaced them with a unified migration-result component. Updated routing, service logic, and i18n keys to support the new migration result dialog. Refactored API and model handling to improve version tracking and error reporting during migration. Also updated related services and models to align with the new migration flow.
* Refactor migration result handling and UI
Removed unused migration status dialog and related translations. Updated migration result component to display warnings and errors with improved UI. Introduced MigrationStatus model and refactored API service to use it. Adjusted type definitions and data passing for migration results.
* Remove migrator library and integrate migration dialog into sidebar
The standalone migrator library and its components, services, and routes have been deleted. Migration-related helpers and UI have been moved and refactored under the sidebar library, specifically within the workspace-migrate feature. All references to the old migrator module have been removed or updated, and imports have been adjusted to use the new sidebar locations. This streamlines the migration workflow and consolidates related functionality under the sidebar module.
* Add loading state and refactor rename model dialog
Introduced a loading spinner to the rename model dialog while fetching namespace files, moved styles to a dedicated SCSS file, and refactored the component to use Angular signals and injectors. The file name validation logic was updated to use the latest API and ensure uniqueness, improving user feedback and maintainability.
* Update error message check for import handling
Modified the error message substring check from 'packages-to-import' to 'import' in the file import error handler. This broadens the match for import-related errors until file blockage is fixed.
* Add error for already defined filename in rename dialog
Introduces a new error message and validation for cases where a filename already exists in the user's namespace during model renaming. Updates i18n, template, TypeScript logic, and language interface to support this new error.
* Refactor to standalone components and update configs
Migrates Angular modules to standalone components, updates Jest configs to TypeScript, and adjusts ESLint and Prettier settings. Removes obsolete module files, updates project and test setup references, and improves dependency ignore rules. This refactor modernizes the codebase for Angular 15+ and Nx workspace best practices.
* Update dependencies and Node engine requirements
Upgraded several dependencies in package.json, including n3, ngx-toastr, jest, ngx-build-plus, and @types packages. Updated Node engine requirement to >=20.0.0 and synchronized optionalDependencies versions for @nx/nx-* packages. These changes improve compatibility and ensure the project uses the latest supported versions.
* Refactor sidebar state to use Angular signals
Replaces BehaviorSubjects and RxJS observables with Angular signals and computed properties for sidebar state management. Updates all sidebar and workspace components to use the new signal-based API, removing AsyncPipe and observable subscriptions where possible. This improves performance, simplifies state handling, and aligns with modern Angular best practices.
* Add CSP meta tag and improve icon accessibility
Introduces a Content-Security-Policy meta tag to index.html for enhanced security. Also sets aria-hidden="false" on the notifications icon in sidebar-menu.component.html to improve accessibility.
* Handle aspect model URN changes and null checks
Adds originalAspectModelUrn to NamespaceFile and updates logic to handle aspect model URN changes when renaming. Improves robustness by adding null checks in element-related methods. Updates Content Security Policy to allow data URLs for images.
* Remove debugger statement from model-saver.service.ts
Eliminated an unnecessary debugger statement from the conditional block in ModelSaverService to clean up the code.
* Refactor file services and improve aspect handling
Renamed LoadedFilesService variable for clarity in RenameModelComponent and updated references. Added null check for aspectModelUrn in aspectFactory. Removed unnecessary aspect check in ModelSaverService when handling name changes. Inserted debugger and TODO in constraint factory for future external reference handling.
* Remove debugger statement from constraint index
Eliminated an unnecessary debugger statement from the constraint instantiator index file to clean up the code.
* Fix: Element creation (#64)
Restores model loading mechanism on app init
* Fix: model renaming & namespace change errors (#65)
Signed-off-by: Pavel Shalamkov <[email protected]>
* Fix: shared elements rendering issue (#66)
Signed-off-by: Pavel Shalamkov <[email protected]>
* Fix: incorrect "new model" name and title (#67)
Changed to "new-model.ttl"
Additionally changes the model's namespace to the one used for other example models
Signed-off-by: Pavel Shalamkov <[email protected]>
* Fix: element edit (#68)
Fix: inability to open element edit menu
Signed-off-by: Pavel Shalamkov <[email protected]>
* Fix: e2e tests config (#69)
Fix: e2e tests configuration errors
Signed-off-by: Pavel Shalamkov <[email protected]>
* Update Cypress setup and type definitions
Adds explicit Cypress installation step to the GitHub Actions workflow and includes 'cypress' in the E2E tsconfig types. Also updates Cypress dependency to use a version range in package.json and package-lock.json for improved compatibility.
* Refactor Cypress config and update dependencies
Updated Cypress type references from 'Cypress' to 'cypress' across all e2e test files for consistency. Removed the obsolete plugins/index.js and migrated to Cypress 10+ configuration style. Added a new tsconfig.json for the e2e app, refactored tsconfig.cypress.json to extend from it, and cleaned up includes. Updated GitHub Actions workflows to use the latest actions/checkout and actions/setup-node versions. Refactored theme.scss to use a palette function for Material theme colors, improving maintainability.
* Update Angular Material imports in data-type-input-field
Replaces deprecated Angular Material imports with their corresponding module imports in data-type-input-field.component.ts. This change improves compatibility with newer Angular Material versions and aligns with best practices.
* Refactor Material imports in input field components
Replaces deprecated or individual Material imports with module imports (e.g., MatFormFieldModule, MatChipsModule, MatIconModule) in input field components. This improves compatibility with Angular Material's current best practices and prepares the codebase for future updates.
* Fix form submission and add FormsModule import
Changed form event binding from (submit) to (ngSubmit) in the template for proper Angular form handling. Added FormsModule to the component imports to ensure form directives work as expected.
* Fix: workspace big loading time (#70)
Reduced the loading times for workspace
Co-authored-by: Michele Santoro <[email protected]>
* Refactor to use MatFormFieldModule in field components
Replaces usage of MatFormField with MatFormFieldModule across multiple editor dialog field components for improved Angular Material compatibility. Also removes an unused MatIconModule import in see-input-field.component.ts. No functional changes to component logic.
* Refactor to use MatFormFieldModule instead of MatFormField
Replaces deprecated MatFormField imports with MatFormFieldModule across all relevant components. This update aligns with Angular Material best practices and ensures compatibility with newer versions of the library.
---------
Signed-off-by: Pavel Shalamkov <[email protected]>
Co-authored-by: pavel-s-epam <[email protected]>
Co-authored-by: georgemoscu <[email protected]>1 parent b6ca9d1 commit 46cc0b3
File tree
567 files changed
+22019
-21478
lines changed- .github/workflows
- core
- apps
- ame-e2e
- src
- integration
- drag-and-drop
- different-namespace
- same-namespace
- editor
- export
- lang-string
- generation
- settings
- plugins
- support
- ame
- src
- app
- components
- editor-canvas
- loading
- assets
- i18n
- styles
- fonts
- electron-libs
- libs
- api
- src
- lib
- models
- aspect-exporter
- src
- lib
- rdf-list
- rdf-node
- visitor
- abstract-entity
- abstract-property
- aspect
- characteristic
- cleanup-visitor
- constraint
- entity-instance
- entity
- event
- operation
- property
- unit
- aspect-model-loader
- src
- lib
- instantiator
- constraint
- visitor
- cache
- src
- lib
- connection
- src
- lib
- multi-shape-connection-handlers
- single-connection-handlers
- editor
- src
- lib
- confirm-dialog
- connect-with-dialog
- editor-dialog
- components
- abstract-entities
- abstract-property
- aspect
- characteristics
- state-characteristic
- structured-value
- elements-input-field
- structured-value-properties
- structured-value-property-field
- trait-characteristic
- constraints
- element-list
- entities
- entity-instance
- entity-instance-modal-table
- entity-instance-modal
- entity-instance-search-bar
- entity-instance-table
- entity-instance-view
- events
- fields
- base
- base-input
- description-input-field
- locate-element
- name-input-field
- preferred-name-input-field
- see-input-field
- characteristic
- characteristic-name-dropdown-field
- data-type-input-field
- default-value-entity-input-field
- default-value-input-field
- element-characteristic-input-field
- left-input-field
- right-input-field
- unit-input-field
- values-input-field
- constraints
- constraint-name-dropdown-field
- encoding-input-field
- integer-input-field
- language-code-input-field
- locale-code-input-field
- lower-bound-input-field
- max-length-input-field
- max-value-input-field
- min-length-input-field
- min-value-input-field
- regular-expression-value-input-field
- scale-input-field
- upper-bound-input-field
- entity/extends-field
- operation
- input-chiplist-field
- output-input-field
- property/example-value-input-field
- unit
- code-input-field
- conversion-factor-input-field
- numeric-conversion-factor-input-field
- quantity-kinds-input-field
- reference-unit-input-field
- symbol-input-field
- operations
- properties
- properties-button
- properties-modal
- shape-settings
- units
- services
- validators
- editor-toolbar
- components
- aasx-generation-modal
- generate-async-api
- generate-documentation
- generate-open-api
- help
- language-sector-modal
- notifications
- text-model-loader-modal
- theme-switcher
- services
- large-file-warning-dialog
- models
- open-element-window
- preview-dialog
- rename-model
- save-model-dialog
- instantiator
- src
- lib
- loader-filters
- src
- lib
- meta-model
- src
- lib
- element-service
- predefined-elements
- services
- migrator
- src
- lib
- components
- loading-migrating
- migration-status
- migration-success
- migrator
- samm-migration
- start-migrating
- version-migration
- mx-graph
- src
- lib
- helpers
- renderers
- services
- render-models
- themes
- namespace-manager
- src
- lib
- namespace-exporter
- components
- root-export-namespaces
- select-namespaces
- namespace-importer
- components
- import
- root-namespace-importer
- validate
- rdf
- src
- lib
- models
- services
- utils
- settings-dialog
- src
- lib
- components
- model-configuration
- language-settings
- namespace-settings
- settings-dialog
- system-configuration
- automated-workflow
- editor-configuration
- header-copyright
- services
- strategy
- sidebar
- src
- lib
- draggable-element
- helper
- sidebar-samm-elements
- sidebar
- styles
- workspace
- workspace-empty
- workspace-file-elements
- workspace-file-list
- workspace-migrate
- migration-dialog
- translation
- src
- lib
- models
- services
- utils
- src
- lib
- components
- elements-search
- files-search
- open-file-dialog
- vocabulary
- src
- documentation/decisions
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
567 files changed
+22019
-21478
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
0 commit comments