chore: Migration to Angular 18.x.x#33
Open
patricia-martinez-imatia wants to merge 32 commits into18.x.xfrom
Open
chore: Migration to Angular 18.x.x#33patricia-martinez-imatia wants to merge 32 commits into18.x.xfrom
patricia-martinez-imatia wants to merge 32 commits into18.x.xfrom
Conversation
- Update all Angular packages to ^18.2.0 - ng-packagr ^18.2.0, typescript ~5.5.4 - Add luxon ^3.4.0 + @types/luxon (peer of ngx-material-timepicker transitivo) - Remove @angular/flex-layout and @ngbracket/ngx-layout - Remove FlexLayoutModule from o-components.ts - ontimize-web-ngx -> file:../ontimize-web-ngx/dist/ontimize-web-ngx-18.0.0-SNAPSHOT-0.tgz - Update peerDependencies to ontimize-web-ngx ^18.0.0
Add explicit "No aplica" sections in Fase 2 and Fase 3 covering control flow, inject(), guards, standalone, M3 theming and typed forms — mirroring the framework plan structure for easier cross-repo comparison.
…ing) Document the 5 components/directives pending standalone migration in Fase 3, aligned with the framework which already has 201 standalone components. Update decisions section to reflect pending status.
- OSkeletonComponent: standalone: true, imports NgxSkeletonLoaderModule - OImageEditorComponent: standalone: true, imports CommonModule, ImageCropperComponent, OntimizeWebModule - ODataViewComponent: standalone: true, imports CommonModule, OTableModule, OGridModule, OButtonToggleModule, directives - ODataViewTableColumnsDirective: standalone: true - ODataViewGridItemDirective: standalone: true - OImageEditorModule, ODataViewModule: converted to wrapper NgModules - OExtraComponentsModule: updated declarations/imports arrays for standalone
MIGRATION-STATUS.md: add Fase 4 standalone migration section (commit 8b294f4) plan: mark standalone migration as COMPLETADO
- o-image-editor.component.scss: replace the hard-coded #1464A5 (oxygen primary 500) with var(--o-primary-500) + var(--o-primary-contrast-500) so the component follows the active Ontimize theme at runtime. - app-test/styles.scss: import themes/oxygen.scss (the legacy themes/ontimize.scss entry point was removed by the framework M2-M3 cleanup). - o-skeleton.component.spec.ts: move OSkeletonComponent from declarations to imports; the component is standalone and TestBed rejects it in declarations. - package-lock.json: regenerated after reinstalling the framework tgz built from the theming/m3 branch (ontimize-web-ngx-18.0.0-SNAPSHOT-0). Build + tests verde (TOTAL: 5 SUCCESS + 1 SUCCESS). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Updates MIGRATION-STATUS.md with the addon-side work done after the framework completed its Material M2-M3 migration (branch theming/m3): - Adds Fase 4 (standalone components, commit 8b294f4) to the global state table so every row tracks a commit. - Adds Fase 5 entry and a dedicated section describing the three concrete changes introduced in commit 9f83a96: * o-image-editor.component.scss: hard-coded #1464A5 replaced by var(--o-primary-500) / var(--o-primary-contrast-500). * app-test/styles.scss: legacy themes/ontimize.scss entry point swapped for themes/oxygen.scss. * o-skeleton.component.spec.ts: standalone component moved from declarations to imports. - Records the build and test outcomes (build verde; 5+1 tests SUCCESS, 0 fallos). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…r and o-data-view - o-image-editor.component.html: replace 23 fxLayout/fxFlex/fxLayoutGap/fxLayoutAlign directives with CSS classes (o-flex-*) and inline styles; migrate *ngIf/*ngFor → @if/@for - o-data-view.component.html: migrate 7 *ngIf/*ngFor → @if/@for - data-view-test.module.ts: add CommonModule import (app-test fix)
- index.html: Material Icons → Material Symbols Outlined - styles.scss: add .o-dark dark-theme mixin - app.module.ts: remove duplicate OntimizeWebModule bare import
- @angular-eslint/*: ^18.0.0 → 18.4.3
- @typescript-eslint/{eslint-plugin,parser}: ^5.43.0 → ^7.0.0 (required by @angular-eslint@18.4.3)
- eslint: ^8.28.0 → ^8.56.0
- @types/node: ^12 → ^18
- jasmine-core: ~4.5.0 → ~5.1.0
- karma*: aligned with framework versions
- ts-node: ~7.0.0 → ~10.9.0
- ngx-extended-pdf-viewer: ^19.0.0 → ^20.0.0 (Angular 18 support)
…in component scss Material applies flex-direction:row with high specificity; moving the column layout to .tools-toggle in the component stylesheet ensures it wins.
…kbox - .tools-toggle.mat-button-toggle-group: flex-direction column wins over Material specificity - border-radius: 0 removes rounded corners - .mat-pseudo-checkbox: display none
- alignImage="center" on image-cropper so ngx-ic-overlay gets same margin-left as ngx-ic-cropper - image-cropper: flex:1 1 0 + min-height:0 to stay within flex-column parent - .o-image-editor: box-sizing:border-box so padding:32px does not cause overflow
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.