From 700a6d31da6c863129ea6e51c5400b8761efef77 Mon Sep 17 00:00:00 2001 From: Nicolas Garcia Date: Tue, 16 Sep 2025 14:46:34 -0300 Subject: [PATCH 1/2] DEV-1177_Actualizar-ngx-jsonapi-a-Angular-18 auto-commit --- angular.json | 2 +- demo/__mocks__/htmlMock.js | 1 + demo/app/app.component.html | 4 +- demo/app/app.component.ts | 5 +- demo/app/app.module.ts | 60 - demo/app/app.routes.ts | 27 + demo/app/authors/authors-routing.module.ts | 21 - demo/app/authors/authors.module.ts | 12 - .../authors/components/author.component.html | 70 +- .../authors/components/author.component.ts | 39 +- .../authors/components/authors.component.html | 81 +- .../components/authors.component.spec.ts | 30 +- .../authors/components/authors.component.ts | 14 +- demo/app/books/books-routing.module.ts | 21 - demo/app/books/books.module.ts | 12 - demo/app/books/components/book.component.html | 22 +- demo/app/books/components/book.component.ts | 12 +- .../app/books/components/books.component.html | 60 +- demo/app/books/components/books.component.ts | 15 +- demo/app/photos/photos.component.html | 28 +- demo/app/photos/photos.component.ts | 18 +- demo/app/photos/photos.module.ts | 9 - demo/app/shared/collection-info.component.ts | 6 +- .../shared/collection-paginator.component.ts | 7 +- demo/app/shared/resource-info.component.ts | 6 +- demo/app/shared/shared.module.ts | 12 - demo/app/systems/systems.component.html | 30 +- demo/app/systems/systems.component.ts | 10 +- demo/app/systems/systems.module.ts | 26 - demo/index.html | 1 - demo/main.ts | 37 +- demo/tsconfig.spec.json | 3 +- jest.base.config.js | 60 +- jest.demo.config.js | 8 +- jest.lib.config.js | 31 +- package.json | 54 +- .../src/lib/cloned-resource.spec.ts | 246 +- .../src/lib/ngx-jsonapi.module.ts | 20 +- .../ngx-jsonapi-lib/src/lib/service.spec.ts | 363 +- .../get-resource-with-parameters.spec.ts | 22 +- .../src/lib/tests/get-resource.spec.ts | 46 +- projects/ngx-jsonapi-lib/src/public_api.ts | 1 + setup-jest.ts | 42 +- tsconfig.json | 5 +- yarn.lock | 3821 +++++++++-------- 45 files changed, 2853 insertions(+), 2567 deletions(-) create mode 100644 demo/__mocks__/htmlMock.js delete mode 100644 demo/app/app.module.ts create mode 100644 demo/app/app.routes.ts delete mode 100644 demo/app/authors/authors-routing.module.ts delete mode 100644 demo/app/authors/authors.module.ts delete mode 100644 demo/app/books/books-routing.module.ts delete mode 100644 demo/app/books/books.module.ts delete mode 100644 demo/app/photos/photos.module.ts delete mode 100644 demo/app/shared/shared.module.ts delete mode 100644 demo/app/systems/systems.module.ts diff --git a/angular.json b/angular.json index deddb4d4..4e6d7e16 100644 --- a/angular.json +++ b/angular.json @@ -9,7 +9,7 @@ "projectType": "application", "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser", + "builder": "@angular-devkit/build-angular:browser-esbuild", "options": { "outputPath": "demo-dist", "index": "demo/index.html", diff --git a/demo/__mocks__/htmlMock.js b/demo/__mocks__/htmlMock.js new file mode 100644 index 00000000..9dc5fc1e --- /dev/null +++ b/demo/__mocks__/htmlMock.js @@ -0,0 +1 @@ +module.exports = ''; diff --git a/demo/app/app.component.html b/demo/app/app.component.html index 5309be40..a51a22c3 100644 --- a/demo/app/app.component.html +++ b/demo/app/app.component.html @@ -1,7 +1,9 @@

ngx-jsonapi example - {{ loading }} + @defer { + {{ loading }} + }