Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump angular to 16.1.x #1619

Merged
merged 4 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
],
"no-invalid-double-slash-comments": null,
"import-notation": "string",
"media-feature-range-notation": "prefix"
"media-feature-range-notation": "prefix",
"media-query-no-invalid": null
}
}
90 changes: 45 additions & 45 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,61 +57,61 @@
"ssr:prerender": "npm run ng-high-memory run site:prerender"
},
"dependencies": {
"@angular/animations": "^16.0.3",
"@angular/common": "^16.0.3",
"@angular/compiler": "^16.0.3",
"@angular/core": "^16.0.3",
"@angular/forms": "^16.0.3",
"@angular/platform-browser": "^16.0.3",
"@angular/platform-browser-dynamic": "^16.0.3",
"@angular/router": "^16.0.3",
"@angular/animations": "^16.1.0",
"@angular/common": "^16.1.0",
"@angular/compiler": "^16.1.0",
"@angular/core": "^16.1.0",
"@angular/forms": "^16.1.0",
"@angular/platform-browser": "^16.1.0",
"@angular/platform-browser-dynamic": "^16.1.0",
"@angular/router": "^16.1.0",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.13.0",
"@angular/service-worker": "^16.0.3",
"@angular/platform-server": "^16.0.3",
"@angular/elements": "^16.0.3",
"@angular/service-worker": "^16.1.0",
"@angular/platform-server": "^16.1.0",
"@angular/elements": "^16.1.0",
"@antv/data-set": "^0.11.8",
"@antv/g2": "^4.2.10",
"echarts": "^5.4.2",
"echarts": "^5.4.3",
"@stackblitz/sdk": "^1.9.0",
"codesandbox": "^2.2.3",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"extend": "^3.0.2",
"file-saver": "^2.0.5",
"ng-github-button": "^15.0.0",
"ng-github-button": "^16.0.0",
"ng-zorro-antd": "^16.1.0",
"ngx-color": "~9.0.0",
"ngx-countdown": "^15.0.0",
"ngx-highlight-js": "^15.0.0",
"ngx-tinymce": "^15.0.0",
"ngx-countdown": "^16.0.0",
"ngx-highlight-js": "^16.0.0",
"ngx-tinymce": "^16.0.0",
"qrious": "^4.0.2",
"@webcomponents/custom-elements": "^1.6.0",
"aos": "^3.0.0-beta.6",
"@ng-util/monaco-editor": "^15.0.0",
"@nguniversal/express-engine": "~16.0.2",
"@ng-util/monaco-editor": "^16.0.0",
"@nguniversal/express-engine": "^16.1.0",
"express": "^4.18.2",
"isutf8": "^4.0.0",
"@github/hotkey": "^2.0.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "^16.0.3",
"@angular/cli": "~16.0.3",
"@angular/compiler-cli": "^16.0.3",
"@angular-devkit/build-angular": "^16.1.5",
"@angular/cli": "~16.1.5",
"@angular/compiler-cli": "^16.1.0",
"@types/jasmine": "~4.3.0",
"jasmine-core": "~4.6.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"typescript": "~5.0.4",
"karma-jasmine-html-reporter": "~2.1.0",
"typescript": "~5.1.3",
"codelyzer": "^6.0.2",
"jasmine-spec-reporter": "^7.0.0",
"protractor": "~7.0.0",
"ts-node": "~10.9.1",
"@angular/language-service": "^16.0.3",
"@angular/language-service": "^16.1.0",
"@types/jasminewd2": "~2.0.10",
"karma-junit-reporter": "^2.0.1",
"karma-spec-reporter": "0.0.36",
Expand All @@ -127,7 +127,7 @@
"karma-parallel": "^0.3.1",
"chalk": "^4.1.0",
"codecov": "^3.8.3",
"conventional-changelog-cli": "^2.2.2",
"conventional-changelog-cli": "^3.0.0",
"fs-extra": "^9.0.0",
"husky": "^7.0.4",
"jsonml.js": "^0.1.0",
Expand All @@ -138,14 +138,14 @@
"mark-twain": "^2.0.3",
"mockjs": "^1.1.0",
"mustache": "^4.2.0",
"ng-packagr": "^16.0.1",
"ng-packagr": "^16.1.0",
"parse5": "^7.1.2",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"readline-sync": "^1.4.10",
"stream": "0.0.2",
"stylelint": "^15.6.2",
"stylelint": "^15.10.2",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^33.0.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
"stylelint-order": "^6.0.3",
"source-map-explorer": "^2.5.3",
Expand All @@ -159,27 +159,27 @@
"ng-alain-sts": "^0.0.2",
"ng-alain-plugin-theme": "^15.0.1",
"tsconfig-paths": "^4.2.0",
"@nguniversal/builders": "^16.0.2",
"@nguniversal/builders": "^16.1.1",
"@types/express": "^4.17.17",
"html-minifier-terser": "^7.2.0",
"terser": "^5.17.6",
"@commitlint/cli": "^17.6.3",
"@commitlint/config-angular": "^17.6.3",
"@angular-eslint/builder": "~16.0.3",
"@angular-eslint/eslint-plugin": "~16.0.3",
"@angular-eslint/eslint-plugin-template": "~16.0.3",
"@angular-eslint/schematics": "~16.0.3",
"@angular-eslint/template-parser": "~16.0.3",
"@typescript-eslint/eslint-plugin": "~5.59.8",
"@typescript-eslint/parser": "~5.59.8",
"eslint": "^8.41.0",
"terser": "^5.19.1",
"@commitlint/cli": "^17.6.7",
"@commitlint/config-angular": "^17.6.7",
"@angular-eslint/builder": "~16.1.0",
"@angular-eslint/eslint-plugin": "~16.1.0",
"@angular-eslint/eslint-plugin-template": "~16.1.0",
"@angular-eslint/schematics": "~16.1.0",
"@angular-eslint/template-parser": "~16.1.0",
"@typescript-eslint/eslint-plugin": "~6.1.0",
"@typescript-eslint/parser": "~6.1.0",
"eslint": "^8.45.0",
"eslint-config-prettier": "~8.8.0",
"eslint-plugin-import": "~2.25.3",
"eslint-plugin-jsdoc": "~45.0.0",
"eslint-plugin-import": "~2.27.5",
"eslint-plugin-jsdoc": "~46.4.4",
"eslint-plugin-prefer-arrow": "~1.2.3",
"eslint-plugin-prettier": "~4.2.1",
"eslint-plugin-prettier": "~5.0.0",
"eslint-plugin-deprecation": "~1.4.1",
"lint-staged": "^13.2.2",
"lint-staged": "^13.2.3",
"raw-loader": "^4.0.2",
"swagger-typescript-api": "^12.0.4",
"sitemap": "^7.1.1"
Expand Down
6 changes: 5 additions & 1 deletion packages/abc/auto-focus/auto-focus.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export class AutoFocusDirective implements AfterViewInit, OnDestroy {
@Input() @InputBoolean() enabled = true;
@Input() @InputNumber() delay = 300;

constructor(private el: ElementRef<HTMLElement>, private cdr: ChangeDetectorRef, private platform: Platform) {}
constructor(
private el: ElementRef<HTMLElement>,
private cdr: ChangeDetectorRef,
private platform: Platform
) {}

ngAfterViewInit(): void {
const el = this.el.nativeElement;
Expand Down
5 changes: 4 additions & 1 deletion packages/abc/avatar-list/avatar-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export class AvatarListComponent implements AfterViewInit, OnChanges, OnDestroy
@Input() @InputNumber() maxLength = 0;
@Input() excessItemsStyle: NgStyleInterface | null = null;

constructor(private cdr: ChangeDetectorRef, @Optional() private directionality: Directionality) {}
constructor(
private cdr: ChangeDetectorRef,
@Optional() private directionality: Directionality
) {}

private gen(): void {
const { _items } = this;
Expand Down
5 changes: 4 additions & 1 deletion packages/abc/down-file/down-file.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export class DownFileDirective {
return arr.reduce((_o, item) => item, {});
}

constructor(private el: ElementRef<HTMLButtonElement>, private _http: _HttpClient) {
constructor(
private el: ElementRef<HTMLButtonElement>,
private _http: _HttpClient
) {
let isFileSaverSupported = false;
try {
isFileSaverSupported = !!new Blob();
Expand Down
6 changes: 5 additions & 1 deletion packages/abc/footer-toolbar/footer-toolbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ export class FooterToolbarComponent implements OnInit, OnDestroy {
@Input() @InputBoolean() errorCollect = false;
@Input() extra?: string | TemplateRef<void>;

constructor(private el: ElementRef, private renderer: Renderer2, @Inject(DOCUMENT) private doc: NzSafeAny) {}
constructor(
private el: ElementRef,
private renderer: Renderer2,
@Inject(DOCUMENT) private doc: NzSafeAny
) {}

private get bodyCls(): DOMTokenList {
return (this.doc.querySelector('body') as HTMLElement).classList;
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/footer-toolbar/footer-toolbar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Component, DebugElement } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';

import { ErrorCollectModule } from '../error-collect/error-collect.module';
import { FooterToolbarModule } from './footer-toolbar.module';
import { ErrorCollectModule } from '../error-collect/error-collect.module';

describe('abc: footer-toolbar', () => {
let fixture: ComponentFixture<TestComponent>;
Expand Down
6 changes: 5 additions & 1 deletion packages/abc/hotkey/hotkey.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export class HotkeyDirective implements OnDestroy {
this.ngZone.runOutsideAngular(() => install(this.el.nativeElement, key));
}

constructor(private el: ElementRef<HTMLElement>, private ngZone: NgZone, private platform: Platform) {}
constructor(
private el: ElementRef<HTMLElement>,
private ngZone: NgZone,
private platform: Platform
) {}

ngOnDestroy(): void {
if (!this.platform.isBrowser) return;
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/hotkey/hotkey.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { Platform } from '@angular/cdk/platform';
import { Component, ViewChild } from '@angular/core';
import { TestBed } from '@angular/core/testing';

import { createTestContext } from '../../testing';
import { HotkeyDirective } from './hotkey.directive';
import { HotkeyModule } from './hotkey.module';
import { createTestContext } from '../../testing';

describe('abc: hotkey', () => {
let context: TestComponent;
Expand Down
5 changes: 4 additions & 1 deletion packages/abc/lodop/lodop.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export class LodopService implements OnDestroy {
private _events = new Subject<LodopPrintResult>();
private printBuffer: NzSafeAny[] = [];

constructor(private scriptSrv: LazyService, configSrv: AlainConfigService) {
constructor(
private scriptSrv: LazyService,
configSrv: AlainConfigService
) {
this.defaultConfig = configSrv.merge('lodop', {
url: '//localhost:8443/CLodopfuncs.js',
name: 'CLODOP',
Expand Down
5 changes: 4 additions & 1 deletion packages/abc/media/media.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export class MediaService {
)!;
}

constructor(private cogSrv: AlainConfigService, private lazySrv: LazyService) {}
constructor(
private cogSrv: AlainConfigService,
private lazySrv: LazyService
) {}

load(): this {
if (this.loading) {
Expand Down
5 changes: 4 additions & 1 deletion packages/abc/notice-icon/notice-icon.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export class NoticeIconComponent implements OnInit, OnChanges, OnDestroy {
return `header-dropdown notice-icon${!this.centered ? ' notice-icon__tab-left' : ''}`;
}

constructor(private i18n: DelonLocaleService, private cdr: ChangeDetectorRef) {}
constructor(
private i18n: DelonLocaleService,
private cdr: ChangeDetectorRef
) {}

onVisibleChange(result: boolean): void {
this.popoverVisibleChange.emit(result);
Expand Down
6 changes: 5 additions & 1 deletion packages/abc/observers/observer-size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ export class ObserverSize implements AfterViewInit, OnDestroy {
private _sub$: Subscription | null = null;
@Output('observeSize') readonly event = new EventEmitter<MutationRecord[]>();

constructor(private _obs: SizeObserver, private el: ElementRef<HTMLElement>, private ngZone: NgZone) {}
constructor(
private _obs: SizeObserver,
private el: ElementRef<HTMLElement>,
private ngZone: NgZone
) {}

ngAfterViewInit(): void {
if (!this._sub$) {
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/page-header/page-header.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import {
import { NzAffixComponent } from 'ng-zorro-antd/affix';
import { NzSafeAny } from 'ng-zorro-antd/core/types';

import { ReuseTabService } from '../reuse-tab/reuse-tab.service';
import { PageHeaderComponent } from './page-header.component';
import { PageHeaderModule } from './page-header.module';
import { ReuseTabService } from '../reuse-tab/reuse-tab.service';

class MockI18NServiceFake extends AlainI18NServiceFake {
fanyi(key: string): string {
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/qr/qr.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { of } from 'rxjs';
import { createTestContext } from '@delon/testing';
import { NzSafeAny } from 'ng-zorro-antd/core/types';

import { AlainConfigService, LazyService } from '../../util';
import { QRComponent } from './qr.component';
import { QRModule } from './qr.module';
import { AlainConfigService, LazyService } from '../../util';

describe('abc: qr', () => {
let fixture: ComponentFixture<TestComponent>;
Expand Down
6 changes: 5 additions & 1 deletion packages/abc/quick-menu/quick-menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export class QuickMenuComponent implements OnInit, OnChanges {
static ngAcceptInputType_width: NumberInput;
static ngAcceptInputType_expand: BooleanInput;

constructor(private cdr: ChangeDetectorRef, private el: ElementRef, private render: Renderer2) {}
constructor(
private cdr: ChangeDetectorRef,
private el: ElementRef,
private render: Renderer2
) {}
ctrlStyle: { [key: string]: string | undefined } = {};

@Input() icon: string | TemplateRef<void> = 'question-circle';
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/reuse-tab/reuse-tab.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { ALAIN_I18N_TOKEN, DelonLocaleModule, DelonLocaleService, en_US, MenuSer
import { ScrollService } from '@delon/util/browser';
import { NzSafeAny } from 'ng-zorro-antd/core/types';

import { AlainI18NServiceFake } from '../../theme/src/services/i18n/i18n';
import { ReuseTabComponent } from './reuse-tab.component';
import {
ReuseCanClose,
Expand All @@ -22,6 +21,7 @@ import { ReuseTabModule } from './reuse-tab.module';
import { ReuseTabService } from './reuse-tab.service';
import { REUSE_TAB_STORAGE_STATE } from './reuse-tab.state';
import { ReuseTabStrategy } from './reuse-tab.strategy';
import { AlainI18NServiceFake } from '../../theme/src/services/i18n/i18n';

let i18nResult = 'zh';
@Injectable()
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/reuse-tab/reuse-tab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
index,
active: false,
last: false
} as ReuseItem)
}) as ReuseItem
);
// debugger;

Expand Down
5 changes: 4 additions & 1 deletion packages/abc/st/st-row.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export class STRowDirective implements OnInit {

@Input() type?: 'title';

constructor(private ref: TemplateRef<void>, @Host() private source: STRowSource) {}
constructor(
private ref: TemplateRef<void>,
@Host() private source: STRowSource
) {}

ngOnInit(): void {
this.source.add(this.type, this.id, this.ref);
Expand Down
5 changes: 4 additions & 1 deletion packages/abc/st/st-widget-host.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export class STWidgetHostDirective implements OnInit {
@Input() record!: STData;
@Input() column!: STColumn;

constructor(private stWidgetRegistry: STWidgetRegistry, private viewContainerRef: ViewContainerRef) {}
constructor(
private stWidgetRegistry: STWidgetRegistry,
private viewContainerRef: ViewContainerRef
) {}

ngOnInit(): void {
const widget = this.column.widget!;
Expand Down
Loading
Loading