Skip to content

Commit

Permalink
chore: angular 19
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerCodeMonkey committed Nov 20, 2024
1 parent e6856db commit 2a50b88
Show file tree
Hide file tree
Showing 9 changed files with 3,050 additions and 2,137 deletions.
5,054 changes: 2,974 additions & 2,080 deletions package-lock.json

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,36 +40,36 @@
"text editor"
],
"dependencies": {
"@angular/animations": "^18.2.10",
"@angular/common": "^18.2.10",
"@angular/compiler": "^18.2.10",
"@angular/core": "^18.2.10",
"@angular/forms": "^18.2.10",
"@angular/platform-browser": "^18.2.10",
"@angular/platform-browser-dynamic": "^18.2.10",
"@angular/router": "^18.2.10",
"@angular/animations": "^19.0.0",
"@angular/common": "^19.0.0",
"@angular/compiler": "^19.0.0",
"@angular/core": "^19.0.0",
"@angular/forms": "^19.0.0",
"@angular/platform-browser": "^19.0.0",
"@angular/platform-browser-dynamic": "^19.0.0",
"@angular/router": "^19.0.0",
"quill": "^2.0.2",
"rxjs": "^7.8.1",
"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.10",
"@angular/language-service": "^18.2.10",
"@angular/localize": "^18.2.10",
"@eslint/compat": "^1.2.2",
"@angular-devkit/build-angular": "^19.0.0",
"@angular/cli": "^19.0.0",
"@angular/compiler-cli": "^19.0.0",
"@angular/language-service": "^19.0.0",
"@angular/localize": "^19.0.0",
"@eslint/compat": "^1.2.3",
"@eslint/js": "^9.10.0",
"@eslint/json": "^0.4.1",
"@stylistic/eslint-plugin": "^2.10.0",
"@stylistic/eslint-plugin": "^2.11.0",
"@types/jasmine": "^5.1.4",
"@types/jasminewd2": "^2.0.13",
"@types/node": "~20.12.14",
"angular-eslint": "^18.4.0",
"angular-eslint": "^18.4.1",
"bufferutil": "^4.0.8",
"eslint": "^9.13.0",
"globals": "^15.11.0",
"eslint": "^9.15.0",
"globals": "^15.12.0",
"html-webpack-plugin": "^5.6.3",
"jasmine-core": "^5.4.0",
"jasmine-spec-reporter": "^7.0.0",
Expand All @@ -80,9 +80,9 @@
"karma-jasmine-html-reporter": "^2.1.0",
"karma-mocha-reporter": "^2.2.5",
"karma-spec-reporter": "0.0.36",
"ng-packagr": "^18.2.1",
"ng-packagr": "^19.0.0",
"puppeteer": "^22.15.0",
"typescript": "~5.5.4"
"typescript": "~5.6.3"
},
"overrides": {
"@angular-eslint/schematics": {
Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-quill/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-quill",
"version": "26.0.10",
"version": "27.0.0",
"license": "MIT",
"author": {
"name": "Bengt Weiße"
Expand Down Expand Up @@ -31,7 +31,7 @@
],
"sideEffects": false,
"peerDependencies": {
"@angular/core": "^18.0.0",
"@angular/core": "^19.0.0",
"quill": "^2.0.0",
"rxjs": "^7.0.0"
},
Expand Down
53 changes: 34 additions & 19 deletions projects/ngx-quill/src/lib/quill-editor.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class CustomModule {
}

@Component({
imports: [QuillModule, FormsModule],
selector: 'quill-test',
template: `
<quill-editor
Expand Down Expand Up @@ -92,6 +93,7 @@ class TestComponent {
}

@Component({
imports: [FormsModule, QuillModule],
selector: 'quill-toolbar-test',
template: `
<quill-editor
Expand Down Expand Up @@ -143,6 +145,7 @@ class TestToolbarComponent {
}

@Component({
imports: [QuillModule, ReactiveFormsModule],
selector: 'quill-reactive-test',
template: `
<quill-editor [formControl]='formControl' [minLength]='minLength'></quill-editor>
Expand All @@ -155,6 +158,7 @@ class ReactiveFormTestComponent {
}

@Component({
imports: [QuillModule],
selector: 'quill-module-test',
template: `
<quill-editor [modules]="{custom: true}" [customModules]="[{path: 'modules/custom', implementation: impl}]"></quill-editor>
Expand All @@ -166,6 +170,7 @@ class CustomModuleTestComponent {
}

@Component({
imports: [QuillModule],
selector: 'quill-async-module-test',
template: `
<quill-editor [modules]="{custom: true}" [customModules]="customModules"></quill-editor>
Expand All @@ -182,6 +187,7 @@ class CustomAsynchronousModuleTestComponent {
}

@Component({
imports: [QuillModule, FormsModule],
selector: 'quill-link-placeholder-test',
template: `
<quill-editor [ngModel]="content" [linkPlaceholder]="'https://test.de'"></quill-editor>
Expand All @@ -198,7 +204,7 @@ describe('Basic QuillEditorComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
QuillModule

],
providers: QuillModule.forRoot().providers
})
Expand Down Expand Up @@ -243,6 +249,7 @@ describe('Basic QuillEditorComponent', () => {
describe('Formats', () => {
describe('object', () => {
@Component({
imports: [QuillModule, FormsModule],
template: `
<quill-editor [(ngModel)]="title" format="object" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
`
Expand All @@ -262,8 +269,8 @@ describe('Formats', () => {

beforeEach(async () => {
TestBed.configureTestingModule({
declarations: [ObjectComponent],
imports: [FormsModule, QuillModule],
declarations: [],
imports: [],
providers: QuillModule.forRoot().providers
})

Expand Down Expand Up @@ -303,6 +310,7 @@ describe('Formats', () => {

describe('html', () => {
@Component({
imports: [QuillModule, FormsModule],
template: `
<quill-editor [(ngModel)]="title" format="html" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
`
Expand All @@ -317,6 +325,7 @@ describe('Formats', () => {
}

@Component({
imports: [QuillModule, FormsModule],
template: `
<quill-editor [(ngModel)]="title" [sanitize]="true" format="html" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
`
Expand All @@ -335,8 +344,8 @@ describe('Formats', () => {

beforeEach(async () => {
TestBed.configureTestingModule({
declarations: [HTMLComponent, HTMLSanitizeComponent],
imports: [FormsModule, QuillModule.forRoot()]
declarations: [],
imports: [QuillModule.forRoot()]
})

fixture = TestBed.createComponent(HTMLComponent) as ComponentFixture<HTMLComponent>
Expand Down Expand Up @@ -385,6 +394,7 @@ unordered`)

describe('text', () => {
@Component({
imports: [QuillModule, FormsModule],
template: `
<quill-editor [(ngModel)]="title" format="text" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
`
Expand All @@ -402,8 +412,8 @@ unordered`)

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [TextComponent],
imports: [FormsModule, QuillModule],
declarations: [],
imports: [],
providers: QuillModule.forRoot().providers
})

Expand Down Expand Up @@ -446,6 +456,7 @@ unordered`)

describe('json', () => {
@Component({
imports: [QuillModule, FormsModule],
selector: 'json-valid',
template: `
<quill-editor [(ngModel)]="title" format="json" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
Expand All @@ -463,6 +474,7 @@ unordered`)
}

@Component({
imports: [QuillModule, FormsModule],
selector: 'quill-json-invalid',
template: `
<quill-editor [(ngModel)]="title" format="json" (onEditorCreated)="handleEditorCreated($event)"></quill-editor>
Expand All @@ -484,8 +496,8 @@ unordered`)

beforeEach(async () => {
TestBed.configureTestingModule({
declarations: [JSONComponent, JSONInvalidComponent],
imports: [FormsModule, QuillModule.forRoot()]
declarations: [],
imports: [QuillModule.forRoot()]
})

fixture = TestBed.createComponent(JSONComponent) as ComponentFixture<JSONComponent>
Expand Down Expand Up @@ -540,6 +552,7 @@ unordered`)

describe('Dynamic styles', () => {
@Component({
imports: [QuillModule, FormsModule],
template: `
<quill-editor
[bounds]="'self'"
Expand All @@ -565,7 +578,6 @@ describe('Dynamic styles', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [StylingComponent],
imports: [FormsModule, QuillModule],
providers: QuillModule.forRoot().providers
})
Expand Down Expand Up @@ -594,6 +606,7 @@ describe('Dynamic styles', () => {

describe('Dynamic classes', () => {
@Component({
imports: [QuillModule, FormsModule],
template: `
<quill-editor
[bounds]="'self'"
Expand All @@ -618,7 +631,7 @@ describe('Dynamic classes', () => {

beforeEach(async () => {
TestBed.configureTestingModule({
declarations: [ClassesComponent],
declarations: [],
imports: [FormsModule, QuillModule.forRoot()]
})

Expand Down Expand Up @@ -665,7 +678,7 @@ describe('Reactive forms integration', () => {

beforeEach(async () => {
TestBed.configureTestingModule({
declarations: [ReactiveFormTestComponent],
declarations: [],
imports: [FormsModule, ReactiveFormsModule, QuillModule],
providers: QuillModule.forRoot().providers
})
Expand Down Expand Up @@ -754,7 +767,7 @@ describe('Advanced QuillEditorComponent', () => {

beforeEach(async () => {
TestBed.configureTestingModule({
declarations: [TestComponent, TestToolbarComponent, CustomLinkPlaceholderTestComponent],
declarations: [],
imports: [FormsModule, QuillModule],
providers: QuillModule.forRoot().providers
}).compileComponents()
Expand Down Expand Up @@ -1290,7 +1303,7 @@ describe('QuillEditor - base config', () => {
beforeEach(async () => {

TestBed.configureTestingModule({
declarations: [TestComponent, TestToolbarComponent],
declarations: [],
imports: [FormsModule, QuillModule],
providers: QuillModule.forRoot({
customModules: [{
Expand Down Expand Up @@ -1367,7 +1380,7 @@ describe('QuillEditor - customModules', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [CustomModuleTestComponent],
declarations: [],
imports: [FormsModule, QuillModule],
providers: QuillModule.forRoot().providers
}).compileComponents()
Expand All @@ -1389,7 +1402,7 @@ describe('QuillEditor - customModules (asynchronous)', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [CustomAsynchronousModuleTestComponent],
declarations: [],
imports: [FormsModule, QuillModule],
providers: QuillModule.forRoot().providers
}).compileComponents()
Expand All @@ -1408,6 +1421,7 @@ describe('QuillEditor - customModules (asynchronous)', () => {

describe('QuillEditor - defaultEmptyValue', () => {
@Component({
imports: [QuillModule],
template: `
<quill-editor defaultEmptyValue=""></quill-editor>
`
Expand All @@ -1420,7 +1434,7 @@ describe('QuillEditor - defaultEmptyValue', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [DefaultEmptyValueTestComponent],
declarations: [],
imports: [QuillModule],
providers: QuillModule.forRoot().providers
}).compileComponents()
Expand All @@ -1437,6 +1451,7 @@ describe('QuillEditor - defaultEmptyValue', () => {

describe('QuillEditor - beforeRender', () => {
@Component({
imports: [QuillModule],
template: `
<quill-editor [beforeRender]="beforeRender"></quill-editor>
`
Expand All @@ -1453,7 +1468,7 @@ describe('QuillEditor - beforeRender', () => {
const config = { beforeRender: () => Promise.resolve() }

TestBed.configureTestingModule({
declarations: [BeforeRenderTestComponent],
declarations: [],
imports: [QuillModule.forRoot(config)],
})

Expand All @@ -1470,7 +1485,7 @@ describe('QuillEditor - beforeRender', () => {
const config = { beforeRender: () => Promise.resolve() }

TestBed.configureTestingModule({
declarations: [BeforeRenderTestComponent],
declarations: [],
imports: [QuillModule.forRoot(config)],
})

Expand Down
3 changes: 1 addition & 2 deletions projects/ngx-quill/src/lib/quill-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,6 @@ export abstract class QuillEditorBase implements AfterViewInit, ControlValueAcce
display: inline-block;
}
`
],
standalone: true
]
})
export class QuillEditorComponent extends QuillEditorBase { }
6 changes: 4 additions & 2 deletions projects/ngx-quill/src/lib/quill-view-html.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe('Basic QuillViewHTMLComponent', () => {

describe('QuillViewHTMLComponent - content', () => {
@Component({
imports: [QuillModule],
template: `
<quill-view-html [content]="content" [theme]="theme"></quill-view-html>
`
Expand All @@ -48,7 +49,7 @@ describe('QuillViewHTMLComponent - content', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [HTMLComponent],
declarations: [],
imports: [QuillModule],
providers: QuillModule.forRoot().providers
})
Expand Down Expand Up @@ -103,6 +104,7 @@ describe('QuillViewHTMLComponent - content', () => {

describe('QuillViewHTMLComponent - sanitize', () => {
@Component({
imports: [QuillModule],
template: `
<quill-view-html [content]="content" [sanitize]="sanitize"></quill-view-html>
`
Expand All @@ -116,7 +118,7 @@ describe('QuillViewHTMLComponent - sanitize', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [HTMLComponent],
declarations: [],
imports: [QuillModule],
providers: QuillModule.forRoot().providers
})
Expand Down
Loading

0 comments on commit 2a50b88

Please sign in to comment.