Skip to content

Commit 495e0c2

Browse files
committed
update npm packages
1 parent 7917385 commit 495e0c2

28 files changed

+4400
-4754
lines changed

package-lock.json

Lines changed: 2848 additions & 2918 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -62,54 +62,54 @@
6262
"@angular/platform-browser-dynamic": "13.0.2",
6363
"@angular/router": "13.0.2",
6464
"match-sorter": "4.1.0",
65-
"moment": "^2.18.1",
66-
"rxjs": "~6.5.3",
65+
"moment": "^2.29.1",
66+
"rxjs": "^6.5.5",
6767
"tslib": "^2.3.1",
68-
"zone.js": "~0.11.4"
68+
"zone.js": "^0.11.5"
6969
},
7070
"devDependencies": {
7171
"@angular-devkit/architect": "0.1300.3",
72-
"@angular-devkit/build-angular": "~13.0.3",
73-
"@angular-devkit/core": "^13.0.3",
74-
"@angular-eslint/builder": "^12.0.0",
72+
"@angular-devkit/build-angular": "^13.0.4",
73+
"@angular-devkit/core": "^13.3.0",
74+
"@angular-eslint/builder": "^12.7.0",
7575
"@angular-eslint/eslint-plugin": "^13.1.0",
7676
"@angular-eslint/eslint-plugin-template": "^13.1.0",
7777
"@angular-eslint/schematics": "^13.1.0",
7878
"@angular-eslint/template-parser": "^13.1.0",
7979
"@angular/cli": "13.0.3",
8080
"@angular/compiler-cli": "13.0.2",
8181
"@angular/language-service": "13.0.2",
82-
"@types/jasmine": "~3.6.0",
83-
"@types/jasminewd2": "~2.0.3",
84-
"@types/node": "^14.0.0",
85-
"@typescript-eslint/eslint-plugin": "^5.14.0",
86-
"@typescript-eslint/parser": "^5.14.0",
82+
"@types/jasmine": "^3.6.11",
83+
"@types/jasminewd2": "^2.0.10",
84+
"@types/node": "^14.18.12",
85+
"@typescript-eslint/eslint-plugin": "^5.15.0",
86+
"@typescript-eslint/parser": "^5.15.0",
8787
"codeclimate-test-reporter": "0.5.1",
88-
"codelyzer": "^6.0.0",
88+
"codelyzer": "^6.0.2",
8989
"coveralls": "3.0.14",
90-
"eslint": "^8.10.0",
90+
"eslint": "^8.11.0",
9191
"eslint-config-prettier": "^8.5.0",
9292
"eslint-plugin-import": "^2.25.4",
93-
"eslint-plugin-jsdoc": "^38.0.0",
93+
"eslint-plugin-jsdoc": "^38.0.6",
9494
"eslint-plugin-prefer-arrow": "^1.2.3",
9595
"eslint-plugin-prettier": "^4.0.0",
96-
"husky": "^4.3.6",
96+
"husky": "^4.3.8",
9797
"jasmine-core": "~3.6.0",
9898
"jasmine-spec-reporter": "~5.0.0",
99-
"karma": "^6.3.2",
100-
"karma-chrome-launcher": "~3.1.0",
101-
"karma-coverage": "^2.0.3",
99+
"karma": "^6.3.17",
100+
"karma-chrome-launcher": "^3.1.1",
101+
"karma-coverage": "^2.2.0",
102102
"karma-jasmine": "~4.0.0",
103-
"karma-jasmine-html-reporter": "^1.5.0",
103+
"karma-jasmine-html-reporter": "^1.7.0",
104104
"material-design-lite": "1.3.0",
105105
"ncp": "2.0.0",
106-
"ng-packagr": "^13.0.5",
107-
"prettier": "^2.5.1",
108-
"pretty-quick": "^3.1.0",
106+
"ng-packagr": "^13.3.0",
107+
"prettier": "^2.6.0",
108+
"pretty-quick": "^3.1.3",
109109
"protractor": "~7.0.0",
110110
"rimraf": "3.0.2",
111-
"ts-node": "~8.9.0",
112-
"tslint": "~6.1.0",
111+
"ts-node": "^8.9.1",
112+
"tslint": "^6.1.3",
113113
"typescript": "~4.4.4"
114114
},
115115
"husky": {

projects/core/src/lib/checkbox/mdl-checkbox.component.spec.ts

Lines changed: 51 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ class MdlTestCheckboxComponent {
2828
}
2929

3030
describe("Component: MdlCheckbox", () => {
31-
beforeEach(
32-
waitForAsync(() => {
33-
TestBed.configureTestingModule({
34-
imports: [MdlCheckboxModule.forRoot(), FormsModule],
35-
declarations: [MdlTestCheckboxComponent],
36-
});
37-
})
38-
);
31+
beforeEach(waitForAsync(() => {
32+
TestBed.configureTestingModule({
33+
imports: [MdlCheckboxModule.forRoot(), FormsModule],
34+
declarations: [MdlTestCheckboxComponent],
35+
});
36+
}));
3937

4038
it("should add the css class mdl-checkbox to the host element", () => {
4139
const fixture = TestBed.createComponent(MdlTestCheckboxComponent);
@@ -45,29 +43,26 @@ describe("Component: MdlCheckbox", () => {
4543
expect(checkboxEl.classList.contains("mdl-checkbox")).toBe(true);
4644
});
4745

48-
it(
49-
"should support ngModel",
50-
waitForAsync(() => {
51-
const fixture = TestBed.createComponent(MdlTestCheckboxComponent);
52-
fixture.detectChanges();
53-
fixture.whenStable().then(() => {
54-
const testInstance = fixture.componentInstance;
46+
it("should support ngModel", waitForAsync(() => {
47+
const fixture = TestBed.createComponent(MdlTestCheckboxComponent);
48+
fixture.detectChanges();
49+
fixture.whenStable().then(() => {
50+
const testInstance = fixture.componentInstance;
5551

56-
// let el = <HTMLInputElement> fixture.debugElement.query(By.css('input')).nativeElement;
57-
const checkboxComponent = fixture.debugElement.query(
58-
By.directive(MdlCheckboxComponent)
59-
).componentInstance;
52+
// let el = <HTMLInputElement> fixture.debugElement.query(By.css('input')).nativeElement;
53+
const checkboxComponent = fixture.debugElement.query(
54+
By.directive(MdlCheckboxComponent)
55+
).componentInstance;
6056

61-
testInstance.checkboxValue1 = true;
57+
testInstance.checkboxValue1 = true;
6258

63-
fixture.detectChanges();
64-
fixture.whenStable().then(() => {
65-
// but el.checked is not true ?
66-
expect(checkboxComponent.value).toEqual(true);
67-
});
59+
fixture.detectChanges();
60+
fixture.whenStable().then(() => {
61+
// but el.checked is not true ?
62+
expect(checkboxComponent.value).toEqual(true);
6863
});
69-
})
70-
);
64+
});
65+
}));
7166

7267
it("should change the value on click", () => {
7368
const fixture = TestBed.createComponent(MdlTestCheckboxComponent);
@@ -112,49 +107,43 @@ describe("Component: MdlCheckbox", () => {
112107
expect(checkboxEl.classList.contains("is-focused")).toBe(false);
113108
});
114109

115-
it(
116-
"should fire a change event if the state changed",
117-
waitForAsync(() => {
118-
const fixture = TestBed.createComponent(MdlTestCheckboxComponent);
119-
fixture.detectChanges();
110+
it("should fire a change event if the state changed", waitForAsync(() => {
111+
const fixture = TestBed.createComponent(MdlTestCheckboxComponent);
112+
fixture.detectChanges();
120113

121-
const instance = fixture.componentInstance;
114+
const instance = fixture.componentInstance;
122115

123-
spyOn(instance, "onChange");
116+
spyOn(instance, "onChange");
124117

125-
fixture.debugElement
126-
.query(By.directive(MdlCheckboxComponent))
127-
.nativeElement.click();
118+
fixture.debugElement
119+
.query(By.directive(MdlCheckboxComponent))
120+
.nativeElement.click();
128121

129-
expect(instance.onChange).toHaveBeenCalledWith(true);
130-
})
131-
);
122+
expect(instance.onChange).toHaveBeenCalledWith(true);
123+
}));
132124

133-
it(
134-
"should be possible to disable the checkbox",
135-
waitForAsync(() => {
136-
const fixture = TestBed.createComponent(MdlTestCheckboxComponent);
137-
fixture.detectChanges();
125+
it("should be possible to disable the checkbox", waitForAsync(() => {
126+
const fixture = TestBed.createComponent(MdlTestCheckboxComponent);
127+
fixture.detectChanges();
138128

139-
const instance = fixture.componentInstance;
140-
const cbDebugElem = fixture.debugElement.query(
141-
By.directive(MdlCheckboxComponent)
142-
);
129+
const instance = fixture.componentInstance;
130+
const cbDebugElem = fixture.debugElement.query(
131+
By.directive(MdlCheckboxComponent)
132+
);
143133

144-
cbDebugElem.componentInstance.setDisabledState(true);
145-
fixture.detectChanges();
134+
cbDebugElem.componentInstance.setDisabledState(true);
135+
fixture.detectChanges();
136+
137+
const checkboxEl: HTMLElement = cbDebugElem.nativeElement;
138+
expect(checkboxEl.classList.contains("is-disabled")).toBe(
139+
true,
140+
"should have css is-disabled"
141+
);
146142

147-
const checkboxEl: HTMLElement = cbDebugElem.nativeElement;
148-
expect(checkboxEl.classList.contains("is-disabled")).toBe(
149-
true,
150-
"should have css is-disabled"
151-
);
152-
153-
// should not change on click
154-
cbDebugElem.nativeElement.click();
155-
expect(instance.checkboxValue1).toEqual(false);
156-
})
157-
);
143+
// should not change on click
144+
cbDebugElem.nativeElement.click();
145+
expect(instance.checkboxValue1).toEqual(false);
146+
}));
158147

159148
it("should be possible to set a tabindex", () => {
160149
TestBed.overrideComponent(MdlTestCheckboxComponent, {

projects/core/src/lib/dialog-outlet/mdl-dialog-outlet.component.spec.ts

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,28 @@ describe("MdlDialogOutletComponent", () => {
2525
let el: HTMLElement | undefined;
2626

2727
// create the tesbed
28-
beforeEach(
29-
waitForAsync(() => {
30-
TestBed.configureTestingModule({
31-
declarations: [],
32-
imports: [MdlDialogOutletModule.forRoot()],
33-
});
34-
})
35-
);
28+
beforeEach(waitForAsync(() => {
29+
TestBed.configureTestingModule({
30+
declarations: [],
31+
imports: [MdlDialogOutletModule.forRoot()],
32+
});
33+
}));
3634

3735
// now modify the dom and add a dialog-outlet element direct under the body
38-
beforeEach(
39-
waitForAsync(
40-
inject([DOCUMENT], (doc: Document) => {
41-
el = doc.createElement("dialog-outlet");
42-
doc.body.appendChild(el);
43-
})
44-
)
45-
);
36+
beforeEach(waitForAsync(
37+
inject([DOCUMENT], (doc: Document) => {
38+
el = doc.createElement("dialog-outlet");
39+
doc.body.appendChild(el);
40+
})
41+
));
4642

47-
afterEach(
48-
waitForAsync(
49-
inject([DOCUMENT], (doc: Document) => {
50-
if (el) {
51-
doc.body.removeChild(el);
52-
}
53-
})
54-
)
55-
);
43+
afterEach(waitForAsync(
44+
inject([DOCUMENT], (doc: Document) => {
45+
if (el) {
46+
doc.body.removeChild(el);
47+
}
48+
})
49+
));
5650

5751
// now we can boostrap our MdlDialogOutletComponent component
5852
it("should create the dialog-outlet outside the app-root", async () => {
@@ -67,14 +61,12 @@ describe("MdlDialogOutletComponent", () => {
6761
});
6862

6963
describe("MdlDialogInnerOutletComponent", () => {
70-
beforeEach(
71-
waitForAsync(() => {
72-
TestBed.configureTestingModule({
73-
declarations: [],
74-
imports: [TestDialogModul],
75-
});
76-
})
77-
);
64+
beforeEach(waitForAsync(() => {
65+
TestBed.configureTestingModule({
66+
declarations: [],
67+
imports: [TestDialogModul],
68+
});
69+
}));
7870

7971
it("should create the dialog-outlet if within the app-root", () => {
8072
const fixture = TestBed.createComponent(MdlTestViewComponent);

projects/core/src/lib/dialog/mdl-alert.component.spec.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ class MdlTestComponent {
2525
}
2626

2727
describe("MdlAlert", () => {
28-
beforeEach(
29-
waitForAsync(() => {
30-
TestBed.configureTestingModule({
31-
imports: [MdlDialogModule.forRoot(), MdlDialogOutletModule],
32-
declarations: [MdlTestComponent],
33-
});
34-
})
35-
);
28+
beforeEach(waitForAsync(() => {
29+
TestBed.configureTestingModule({
30+
imports: [MdlDialogModule.forRoot(), MdlDialogOutletModule],
31+
declarations: [MdlTestComponent],
32+
});
33+
}));
3634

3735
it("should create, show and close the dialog", async () => {
3836
const fixture = TestBed.createComponent(MdlTestComponent);

projects/core/src/lib/dialog/mdl-dialog.component.spec.ts

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -77,39 +77,34 @@ class ModalComponent {
7777
}
7878

7979
describe("MdlDialog (embedded/declarative)", () => {
80-
beforeEach(
81-
waitForAsync(() => {
82-
TestBed.configureTestingModule({
83-
imports: [MdlDialogModule.forRoot(), MdlDialogOutletModule],
84-
declarations: [
85-
MdlTestComponent,
86-
ModalTrueConfigFalseComponent,
87-
ModalFalseConfigTrueComponent,
88-
ModalComponent,
89-
],
90-
});
91-
})
92-
);
93-
94-
it(
95-
"should create, show and close the embedded dialog",
96-
waitForAsync(() => {
97-
const fixture = TestBed.createComponent(MdlTestComponent);
98-
fixture.detectChanges();
99-
const dialog = fixture.componentInstance.dialog;
100-
expect(dialog).toBeDefined("mdldialog should be created");
101-
102-
spyOn(fixture.componentInstance, "onDialogShow").and.callThrough();
103-
spyOn(fixture.componentInstance, "onDialogHide");
104-
105-
dialog?.show().subscribe(() => {
106-
dialog.close();
107-
108-
expect(fixture.componentInstance.onDialogShow).toHaveBeenCalled();
109-
expect(fixture.componentInstance.onDialogHide).toHaveBeenCalled();
110-
});
111-
})
112-
);
80+
beforeEach(waitForAsync(() => {
81+
TestBed.configureTestingModule({
82+
imports: [MdlDialogModule.forRoot(), MdlDialogOutletModule],
83+
declarations: [
84+
MdlTestComponent,
85+
ModalTrueConfigFalseComponent,
86+
ModalFalseConfigTrueComponent,
87+
ModalComponent,
88+
],
89+
});
90+
}));
91+
92+
it("should create, show and close the embedded dialog", waitForAsync(() => {
93+
const fixture = TestBed.createComponent(MdlTestComponent);
94+
fixture.detectChanges();
95+
const dialog = fixture.componentInstance.dialog;
96+
expect(dialog).toBeDefined("mdldialog should be created");
97+
98+
spyOn(fixture.componentInstance, "onDialogShow").and.callThrough();
99+
spyOn(fixture.componentInstance, "onDialogHide");
100+
101+
dialog?.show().subscribe(() => {
102+
dialog.close();
103+
104+
expect(fixture.componentInstance.onDialogShow).toHaveBeenCalled();
105+
expect(fixture.componentInstance.onDialogHide).toHaveBeenCalled();
106+
});
107+
}));
113108

114109
it("should not be possible to create a second embedded dialog", () => {
115110
const fixture = TestBed.createComponent(MdlTestComponent);

0 commit comments

Comments
 (0)