Skip to content

Commit 7433802

Browse files
authored
chore(release): release 13.0.0 (#176)
* chore(release): release 13.0.0
1 parent 5a9057c commit 7433802

File tree

66 files changed

+455
-298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+455
-298
lines changed

.browserslistrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
> 0.5%
77
last 2 versions
8+
last 2 Edge major versions
89
Firefox ESR
910
not dead
10-
not IE 9-10

.eslintignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
karma.conf.js
2+
e2e/*
3+
playbook/*
4+
scripts/*
5+
server/*
6+
style-guide/*
7+
preview/*
8+
tools/*
9+
devui-commons/*
10+
assistant/*
11+
commitlint.config.js
12+
node_modules/*
13+
dist/*
14+
publish/*

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = {
22
rules: {
33
"no-useless-constructor": "off",
44
"no-useless-concat":"off",
5+
'no-unused-expressions': 'off',
56
"max-params": "off",
67
"@typescript-eslint/no-useless-constructor": "off",
78
"@typescript-eslint/no-parameter-properties": "off",

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
!.vscode/extensions.json
2727

2828
# misc
29+
/.angular/cache
2930
/.sass-cache
3031
/connect.lock
3132
/coverage

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To see more in [devui.design](https://devui.design/home).
2323

2424
## Angular Support
2525

26-
Now supports Angular <font color=red>`^12.0.0`</font>
26+
Now supports Angular <font color=red>`^13.0.0`</font>
2727

2828
## Getting Started
2929

@@ -97,7 +97,7 @@ Modern browsers and Internet Explorer 11+.
9797

9898
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera |
9999
| --------- | --------- | --------- | --------- | --------- |
100-
| IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions
100+
| Edge | last 2 versions| last 2 versions| last 2 versions| last 2 versions
101101

102102
## Who use it
103103

README_zh_CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ DevUI Design设计系统包含了DevUI规则、设计语言和最佳实践的资
2323

2424
## Angular版本
2525

26-
当前支持的angular版本<font color=red>`^11.0.0`</font>
26+
当前支持的angular版本<font color=red>`^13.0.0`</font>
2727

2828
## 快速开始
2929

@@ -99,7 +99,7 @@ ng serve --open
9999

100100
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera |
101101
| --------- | --------- | --------- | --------- | --------- |
102-
| IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions
102+
| Edge | last 2 versions| last 2 versions| last 2 versions| last 2 versions
103103

104104
## 谁在使用
105105

angular.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"optimization": true,
5353
"outputHashing": "all",
5454
"sourceMap": false,
55-
"extractCss": true,
5655
"namedChunks": false,
5756
"aot": true,
5857
"extractLicenses": true,
@@ -157,12 +156,14 @@
157156
"build": {
158157
"builder": "@angular-devkit/build-angular:ng-packagr",
159158
"options": {
160-
"tsConfig": "devui/tsconfig.lib.json",
161159
"project": "devui/ng-package.json"
162160
},
163161
"configurations": {
164162
"production": {
165163
"tsConfig": "devui/tsconfig.lib.prod.json"
164+
},
165+
"development": {
166+
"tsConfig": "devui/tsconfig.lib.json"
166167
}
167168
}
168169
},
@@ -195,4 +196,4 @@
195196
}
196197
},
197198
"defaultProject": "devui"
198-
}
199+
}

devui/accordion/accordion-item-hreflink.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Component, HostListener, ViewEncapsulation } from '@angular/core';
1+
import { Component, HostListener, Inject, ViewEncapsulation } from '@angular/core';
22
import { AccordionBaseLinkComponent } from './accordion-base-link-component.class';
3-
import { AccordionComponent } from './accordion.component';
3+
import { ACCORDION } from './accordion-token';
44

55
@Component({
66
selector: 'd-accordion-item-hreflink',
@@ -9,7 +9,7 @@ import { AccordionComponent } from './accordion.component';
99
preserveWhitespaces: false,
1010
})
1111
export class AccordionItemHreflinkComponent extends AccordionBaseLinkComponent {
12-
constructor(protected accordion: AccordionComponent) {
12+
constructor(@Inject(ACCORDION) protected accordion: any) {
1313
super(accordion);
1414
}
1515
@HostListener('click', ['$event'])

devui/accordion/accordion-item-routerlink.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Component, HostBinding, HostListener, OnChanges, SimpleChanges, ViewChild, ViewEncapsulation} from '@angular/core';
1+
import { Component, HostBinding, HostListener, Inject, OnChanges, SimpleChanges, ViewChild, ViewEncapsulation } from '@angular/core';
22
import { Params, Router, RouterLinkActive, UrlTree } from '@angular/router';
33
import { AccordionBaseLinkComponent } from './accordion-base-link-component.class';
4-
import { AccordionComponent } from './accordion.component';
4+
import { ACCORDION } from './accordion-token';
55

66
@Component({
77
selector: 'd-accordion-item-routerlink',
@@ -29,7 +29,7 @@ export class AccordionItemRouterlinkComponent extends AccordionBaseLinkComponent
2929
public queryParams: Params;
3030
public fragment: string;
3131

32-
constructor(protected accordion: AccordionComponent, private router: Router) {
32+
constructor(@Inject(ACCORDION) protected accordion: any, private router: Router) {
3333
super(accordion);
3434
}
3535

devui/accordion/accordion-item.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Component, HostListener, ViewEncapsulation } from '@angular/core';
1+
import { Component, HostListener, Inject, ViewEncapsulation } from '@angular/core';
22
import { AccordionBaseItemComponent } from './accordion-base-item-component.class';
3-
import { AccordionComponent } from './accordion.component';
3+
import { ACCORDION } from './accordion-token';
44
import { AccordionBaseItem } from './accordion.type';
55

66
@Component({
@@ -10,7 +10,7 @@ import { AccordionBaseItem } from './accordion.type';
1010
preserveWhitespaces: false,
1111
})
1212
export class AccordionItemComponent extends AccordionBaseItemComponent<AccordionBaseItem> {
13-
constructor(protected accordion: AccordionComponent) {
13+
constructor(@Inject(ACCORDION) protected accordion: any) {
1414
super(accordion);
1515
}
1616
@HostListener('click', ['$event'])

0 commit comments

Comments
 (0)