Skip to content

Commit

Permalink
releases: 1.0.1-beta.2
Browse files Browse the repository at this point in the history
- fix lint
- fix @delon/abc dependencie angular5
  • Loading branch information
cipchk committed May 13, 2018
1 parent e9b864a commit 5c8db1b
Show file tree
Hide file tree
Showing 18 changed files with 34 additions and 33 deletions.
4 changes: 2 additions & 2 deletions docs/changelog-v6.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Angular6(后面简称:v6)受限于 Angular Cli 的 BUG,需要额外的
- 在你升级之前请先 **务必** 再三确认引用的第三方类库是否已经支持 v6,再考虑升级。
- `@delon/cli` 不支持 v6,后续会有 `ng add` 支持
- v6 相关变更分为两个 Commit,可以根据他们了解具体的变更内容
- 主要结构:[7927d4](https://github.com/cipchk/ng-alain/commit/6713c4)
- 示例页:[47a458](https://github.com/cipchk/ng-alain/commit/47a458)
- 主要结构:[7927d4](https://github.com/cipchk/ng-alain/commit/7927d48395755ecde8d0c4255be63011aef74d8c)
- 示例页:[47a458](https://github.com/cipchk/ng-alain/commit/47a458bc974d05c83b3d07b59caae848884b2fdf)

## 移除的部分

Expand Down
4 changes: 3 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ title:
type: Other
---

### 1.0.1-beta.1@next
### 1.0.1-beta.2@next

`2018-5-14`

- 支持 Angular6,见[升级指引](/docs/changelog-v6)

> invalid `1.0.1-beta.1@next`
### 1.0.0-beta.10@next

`2018-5-11`
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "delon",
"version": "1.0.1-beta.1",
"version": "1.0.1-beta.2",
"typings": "index.d.ts",
"description": "Delon is a set of essential modules for ng-alain.",
"repository": {
Expand Down Expand Up @@ -93,7 +93,6 @@
"@types/jszip": "^3.1.3",
"@types/mockjs": "^1.0.0",
"@types/node": "~8.9.4",
"@types/ajv": "^1.0.0",
"codecov": "^3.0.2",
"codelyzer": "~4.2.1",
"domhandler": "^2.4.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/error-collect/error-collect.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ChangeDetectorRef,
} from '@angular/core';
import { FormGroup } from '@angular/forms';
import { DOCUMENT } from '@angular/platform-browser';
import { DOCUMENT } from '@angular/common';
import { coerceNumberProperty } from '@angular/cdk/coercion';
import { AdErrorCollectConfig } from './error-collect.config';

Expand Down
6 changes: 4 additions & 2 deletions packages/abc/footer-toolbar/footer-toolbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import {
Inject,
TemplateRef,
ContentChild,
ElementRef,
Renderer2,
HostBinding,
} from '@angular/core';
import { ElementRef, Renderer2, HostBinding } from '@angular/core';
import { DOCUMENT } from '@angular/platform-browser';
import { DOCUMENT } from '@angular/common';
import { coerceBooleanProperty } from '@angular/cdk/coercion';

const CLS = 'ad-footer-toolbar';
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/full-content/full-content.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import {
OnDestroy,
AfterViewInit,
} from '@angular/core';
import { DOCUMENT } from '@angular/common';
import {
coerceBooleanProperty,
coerceNumberProperty,
} from '@angular/cdk/coercion';
import { DOCUMENT } from '@angular/platform-browser';
import { Subscription, fromEvent } from 'rxjs';
import { debounceTime, filter, distinct } from 'rxjs/operators';
import { FullContentService } from './full-content.service';
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"keywords": ["delon", "ng-alain", "alain", "antd", "ng-zorro-antd"],
"dependencies": {
"file-saver": "^1.3.3",
"ngx-countdown": "^2.1.0",
"ngx-countdown": "^3.0.0",
"qrious": "^4.0.2"
},
"peerDependencies": {
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 @@ -16,7 +16,7 @@ import {
Optional,
} from '@angular/core';
import { Router, NavigationEnd, ActivatedRoute } from '@angular/router';
import { DOCUMENT } from '@angular/platform-browser';
import { DOCUMENT } from '@angular/common';
import { Subscription, combineLatest } from 'rxjs';
import { filter } from 'rxjs/operators';
import {
Expand Down
3 changes: 1 addition & 2 deletions packages/abc/simple-table/simple-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ import {
ContentChild,
Optional,
} from '@angular/core';
import { DecimalPipe } from '@angular/common';
import { DecimalPipe, DOCUMENT } from '@angular/common';
import { HttpClient } from '@angular/common/http';
import { DOCUMENT } from '@angular/platform-browser';
import { ACLService } from '@delon/acl';
import { Observable, Subscription, of } from 'rxjs';
import { tap, map, filter } from 'rxjs/operators';
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/social/social.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable, Inject, OnDestroy } from '@angular/core';
import { Router } from '@angular/router';
import { DOCUMENT } from '@angular/platform-browser';
import { DOCUMENT } from '@angular/common';
import { Observer, Observable } from 'rxjs';

import {
Expand Down
17 changes: 8 additions & 9 deletions packages/form/src/model/form.property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export abstract class FormProperty {
if (typeof visibleIf === 'object' && Object.keys(visibleIf).length === 0) {
this.setVisible(false);
} else if (visibleIf !== undefined) {
const propertiesBinding = [];
const propertiesBinding: Observable<boolean>[] = [];
for (const dependencyPath in visibleIf) {
if (visibleIf.hasOwnProperty(dependencyPath)) {
const property = this.searchProperty(dependencyPath);
Expand All @@ -318,9 +318,8 @@ export abstract class FormProperty {
);
const visibilityCheck = property._visibilityChanges;
const and = combineLatest(
[valueCheck, visibilityCheck],
(v1: boolean, v2: boolean) => v1 && v2,
);
valueCheck, visibilityCheck
).pipe(map(results => results[0] && results[1]));
propertiesBinding.push(and);
} else {
console.warn(
Expand All @@ -332,11 +331,11 @@ export abstract class FormProperty {
}
}

combineLatest(
propertiesBinding,
(...values: boolean[]) => values.indexOf(true) !== -1,
)
.pipe(distinctUntilChanged())
combineLatest(propertiesBinding)
.pipe(
map(values => values.indexOf(true) !== -1),
distinctUntilChanged()
)
.subscribe(visible => this.setVisible(visible));
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/theme/services/http/http.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
HttpEvent,
HttpRequest,
} from '@angular/common/http';
import { Observable } from 'rxjs';
import { Observable, throwError } from 'rxjs';
import { tap, catchError } from 'rxjs/operators';
import * as parse from 'date-fns/parse';

Expand Down Expand Up @@ -358,7 +358,7 @@ export class _HttpClient {
}),
catchError(res => {
this.end();
return Observable.throw(res);
return throwError(res);
}),
);
}
Expand Down Expand Up @@ -463,7 +463,7 @@ export class _HttpClient {
}),
catchError(res => {
this.end();
return Observable.throw(res);
return throwError(res);
}),
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/services/scroll/scroll.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable, Inject } from '@angular/core';
import { DOCUMENT } from '@angular/platform-browser';
import { DOCUMENT } from '@angular/common';
import { WINDOW } from '../../win_tokens';

@Injectable()
Expand Down
3 changes: 2 additions & 1 deletion packages/theme/services/title/title.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
OnDestroy,
} from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { Title, DOCUMENT } from '@angular/platform-browser';
import { Title } from '@angular/platform-browser';
import { DOCUMENT } from '@angular/common';
import { Subscription } from 'rxjs';

import { MenuService } from '../menu/menu.service';
Expand Down
2 changes: 1 addition & 1 deletion packages/util/src/lazy/lazy.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable, Inject } from '@angular/core';
import { DOCUMENT } from '@angular/platform-browser';
import { DOCUMENT } from '@angular/common';
import { Observable, BehaviorSubject } from 'rxjs';
import { share, filter } from 'rxjs/operators';

Expand Down
2 changes: 1 addition & 1 deletion scaffold
4 changes: 2 additions & 2 deletions site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ if [[ ${BUILD} == true ]]; then
rm -rf .tmp

echo 'build...'
$(npm bin)/ng build --app site --prod --build-optimizer --base-href /
$(npm bin)/ng build site --prod --build-optimizer --base-href /
# github pages
# $(npm bin)/ng build --app site --prod --build-optimizer --base-href /delon/
# $(npm bin)/ng build site --prod --build-optimizer --base-href /delon/
fi

if [[ ${DEPLOY} == true ]]; then
Expand Down
1 change: 0 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
Expand Down

0 comments on commit 5c8db1b

Please sign in to comment.