Skip to content

chore: Migration to Angular 18.x.x#33

Open
patricia-martinez-imatia wants to merge 32 commits into18.x.xfrom
migration/18.x.x
Open

chore: Migration to Angular 18.x.x#33
patricia-martinez-imatia wants to merge 32 commits into18.x.xfrom
migration/18.x.x

Conversation

@patricia-martinez-imatia
Copy link
Copy Markdown
Contributor

No description provided.

- 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
@patricia-martinez-imatia patricia-martinez-imatia requested review from a team as code owners May 5, 2026 07:27
@patricia-martinez-imatia patricia-martinez-imatia changed the title chore: Migration/18.x.x chore: Migration to Angular 18.x.x May 5, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant