Skip to content

Commit

Permalink
Merge pull request #30 from criar-art/angular-19
Browse files Browse the repository at this point in the history
Angular 19
  • Loading branch information
lucasferreiralimax authored Jan 24, 2025
2 parents 2e288b2 + 9d8c25c commit c4297fa
Show file tree
Hide file tree
Showing 10 changed files with 6,196 additions and 6,295 deletions.
12,385 changes: 6,146 additions & 6,239 deletions package-lock.json

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "up-window-angular-spa",
"version": "0.8.1",
"version": "1.0.0",
"author": "lucasferreiralimax (https://github.com/lucasferreiralimax)",
"repository": "https://github.com/criar-art/up-window-angular",
"bugs": {
Expand Down Expand Up @@ -28,24 +28,24 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^18.2.11",
"@angular/common": "^18.2.11",
"@angular/compiler": "^18.2.11",
"@angular/core": "^18.2.11",
"@angular/forms": "^18.2.11",
"@angular/platform-browser": "^18.2.11",
"@angular/platform-browser-dynamic": "^18.2.11",
"@angular/router": "^18.2.11",
"@angular/animations": "^19.1.3",
"@angular/common": "^19.1.3",
"@angular/compiler": "^19.1.3",
"@angular/core": "^19.1.3",
"@angular/forms": "^19.1.3",
"@angular/platform-browser": "^19.1.3",
"@angular/platform-browser-dynamic": "^19.1.3",
"@angular/router": "^19.1.3",
"jsonminify": "^0.4.2",
"nucleus-angular": "^0.0.9",
"nucleus-angular": "^1.0.3",
"rxjs": "~7.8.0",
"tslib": "^2.8.0",
"zone.js": "~0.14.10"
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^18.2.11",
"@angular/cli": "^18.2.11",
"@angular/compiler-cli": "^18.2.11",
"@angular-devkit/build-angular": "^19.1.4",
"@angular/cli": "^19.1.4",
"@angular/compiler-cli": "^19.1.3",
"@types/jasmine": "~5.1.0",
"glob": "^11.0.0",
"jasmine-core": "^5.2.0",
Expand All @@ -54,7 +54,7 @@
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"ng-packagr": "^18.2.1",
"ng-packagr": "^19.1.0",
"terser": "^5.36.0",
"typescript": "^5.5.4"
}
Expand Down
6 changes: 3 additions & 3 deletions projects/up-window-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "up-window-angular",
"version": "0.8.1",
"version": "1.0.0",
"public": true,
"author": "lucasferreiralimax (https://github.com/lucasferreiralimax)",
"repository": "https://github.com/criar-art/up-window-angular",
Expand All @@ -16,8 +16,8 @@
"ui"
],
"peerDependencies": {
"@angular/common": "^18.0.0",
"@angular/core": "^18.0.0"
"@angular/common": "^19.1.3",
"@angular/core": "^19.1.3"
},
"dependencies": {
"tslib": "^2.3.0"
Expand Down
4 changes: 0 additions & 4 deletions projects/up-window-angular/src/lib/tests/component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ describe('UpWindowAngularComponent', () => {
});

it('should append modal to body when isOpen is true', fakeAsync(() => {
component.isOpen.set(false);
fixture.detectChanges();
expect(document.body.querySelector('.up-window')).toBeNull();

component.isOpen.set(true);
fixture.detectChanges();
tick(100);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { By } from '@angular/platform-browser';
import { Component, signal, WritableSignal } from '@angular/core';

@Component({
template: `
template: `
<up-window-angular
[isOpen]="isWindowOpenFooter"
title="Test Window"
Expand All @@ -21,6 +21,7 @@ import { Component, signal, WritableSignal } from '@angular/core';
</div>
</up-window-angular>
`,
standalone: false
})
class HostComponentWithCustomFooter {
isWindowOpenFooter: WritableSignal<boolean> = signal(true);
Expand Down
19 changes: 10 additions & 9 deletions projects/up-window-angular/src/lib/up-window-angular.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@ import {
} from '@angular/core';

@Component({
selector: 'up-window-angular',
templateUrl: './up-window-angular.component.html',
styleUrls: [
'./up-window-angular.variables.scss',
'./up-window-angular.animation.scss',
'./up-window-angular.component.scss',
'./up-window-angular.btn.scss',
],
encapsulation: ViewEncapsulation.None,
selector: 'up-window-angular',
templateUrl: './up-window-angular.component.html',
styleUrls: [
'./up-window-angular.variables.scss',
'./up-window-angular.animation.scss',
'./up-window-angular.component.scss',
'./up-window-angular.btn.scss',
],
encapsulation: ViewEncapsulation.None,
standalone: false
})
export class UpWindowAngularComponent implements OnInit, OnDestroy {
@Input() title?: string;
Expand Down
17 changes: 8 additions & 9 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ import pkgNPM from '../../projects/up-window-angular/package.json';
import { ExampleComponent } from './app.example';

@Component({
selector: 'app-root',
standalone: true,
imports: [
AnimationComponent,
ActionsComponent,
ModeComponent,
NucleusAngularApp,
],
templateUrl: './app.component.html',
selector: 'app-root',
imports: [
AnimationComponent,
ActionsComponent,
ModeComponent,
NucleusAngularApp,
],
templateUrl: './app.component.html'
})
export class AppComponent {
public appVersion;
Expand Down
9 changes: 4 additions & 5 deletions src/app/examples/actions/actions.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import { UpWindowAngularModule } from '../../../../projects/up-window-angular/sr
import { NucleusBox } from 'nucleus-angular';

@Component({
selector: 'examples-actions',
standalone: true,
imports: [UpWindowAngularModule, NucleusBox],
templateUrl: './actions.component.html',
styleUrl: './actions.component.scss'
selector: 'examples-actions',
imports: [UpWindowAngularModule, NucleusBox],
templateUrl: './actions.component.html',
styleUrl: './actions.component.scss'
})
export class ActionsComponent {
isWindowOpenFooter: WritableSignal<boolean> = signal(false);
Expand Down
9 changes: 4 additions & 5 deletions src/app/examples/animation/animation.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import { UpWindowAngularModule } from '../../../../projects/up-window-angular/sr
import { NucleusBox } from 'nucleus-angular';

@Component({
selector: 'examples-animation',
standalone: true,
imports: [UpWindowAngularModule, NucleusBox],
templateUrl: './animation.component.html',
styleUrl: './animation.component.scss'
selector: 'examples-animation',
imports: [UpWindowAngularModule, NucleusBox],
templateUrl: './animation.component.html',
styleUrl: './animation.component.scss'
})
export class AnimationComponent {
isWindowOpenFade: WritableSignal<boolean> = signal(false);
Expand Down
9 changes: 4 additions & 5 deletions src/app/examples/mode/mode.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import { UpWindowAngularModule } from '../../../../projects/up-window-angular/sr
import { NucleusBox } from 'nucleus-angular';

@Component({
selector: 'examples-mode',
standalone: true,
imports: [UpWindowAngularModule, NucleusBox],
templateUrl: './mode.component.html',
styleUrl: './mode.component.scss',
selector: 'examples-mode',
imports: [UpWindowAngularModule, NucleusBox],
templateUrl: './mode.component.html',
styleUrl: './mode.component.scss'
})
export class ModeComponent {
isWindowOpenRestrict: WritableSignal<boolean> = signal(false);
Expand Down

0 comments on commit c4297fa

Please sign in to comment.