Skip to content

Commit 53591cf

Browse files
authored
feat: ng17 alpha update (#340)
1 parent e7a38ea commit 53591cf

File tree

13 files changed

+29
-39
lines changed

13 files changed

+29
-39
lines changed

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"extract-i18n": {
107107
"builder": "@angular-devkit/build-angular:extract-i18n",
108108
"options": {
109-
"browserTarget": "devui:build"
109+
"buildTarget": "devui:build"
110110
}
111111
},
112112
"test": {

devui/nav-sprite/demo/basic/basic.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h1>Getting Started</h1>
44
<p>Guides: How to use DevUI in your project</p>
55
<h2>1. Create a project</h2>
6-
<p>It is recommended to use @angular/cli to create your project.</p>
6+
<p>It is recommended to use &#64;angular/cli to create your project.</p>
77
<p>$ ng new New-Project</p>
88
<h2>2. Installation</h2>
99
<p>Go to your project folder and use npm to install DevUI.</p>

devui/nav-sprite/demo/scroll-container/scroll-container.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ <h1 class="page-header" #header>This is Header.</h1>
55
<h1>Getting Started</h1>
66
<p>Guides: How to use DevUI in your project</p>
77
<h2>1. Create a project</h2>
8-
<p>It is recommended to use @angular/cli to create your project.</p>
8+
<p>It is recommended to use &#64;angular/cli to create your project.</p>
99
<p>$ ng new New-Project</p>
1010
<h2>2. Installation</h2>
1111
<p>Go to your project folder and use npm to install DevUI.</p>

devui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-devui",
3-
"version": "16.2.0",
3+
"version": "17.0.0-alpha",
44
"license": "MIT",
55
"description": "DevUI components based on Angular",
66
"keywords": [

devui/read-tip/demo/basic/basic.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<h1>Let's see how to use ReadTip</h1>
33
<p class="readtip-content">Set selector to display readtip</p>
44
<p>The following is the target you want to show readtip</p>
5-
<span class="readtip-target">@Jack</span>
5+
<span class="readtip-target">&#64;Jack</span>
66
</div>

devui/shared/devui-online-ide/files/tsconfig.json.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default {
1111
moduleResolution: 'node',
1212
importHelpers: true,
1313
target: 'es2015',
14-
typeRoots: ['node_modules/@types'],
1514
lib: ['es2018', 'dom'],
1615
},
1716
angularCompilerOptions: {

devui/tabs/tabs.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export class TabsComponent implements OnChanges, AfterViewInit {
166166

167167
addOrDeleteTab(event: Event, id?: number | string): void {
168168
event.stopPropagation();
169-
const operation = id || id >= 0 ? 'delete' : 'add';
169+
const operation = id || id === 0 ? 'delete' : 'add';
170170
this.addOrDeleteTabChange.emit({ id, operation });
171171
}
172172

devui/test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
22
// 此处顺序不可改变
33
import 'zone.js';
4-
import 'zone.js/dist/long-stack-trace-zone';
5-
import 'zone.js/dist/proxy';
6-
import 'zone.js/dist/sync-test';
7-
import 'zone.js/dist/jasmine-patch';
8-
import 'zone.js/dist/async-test';
9-
import 'zone.js/dist/fake-async-test';
4+
import 'zone.js/testing';
105
import { getTestBed } from '@angular/core/testing';
116
import {
127
BrowserDynamicTestingModule,

devui/toast/toast.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class ToastService {
4848
});
4949

5050
toastRef.instance.close = (index?: number | Message) => {
51-
if (index !== undefined && index > -1) {
51+
if (index || index === 0) {
5252
toastRef.instance.removeIndexThrottle(index as number);
5353
} else if (index !== undefined) {
5454
toastRef.instance.removeMsgThrottle(index);

devui/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { Version } from '@angular/core';
22

3-
export const VERSION = new Version('16.2.0');
3+
export const VERSION = new Version('17.0.0-alpha');

0 commit comments

Comments
 (0)