Skip to content

Commit

Permalink
build: add secondary entries
Browse files Browse the repository at this point in the history
close NG-ZORRO#700

fix: fix imports in components and specs

fix: circular import of tree and tree-select

fix(module:menu,dropdown): fix circular import

fix(module:*): fix imports

build: fix build

build: fix primary important

docs: fix doc site build

fix: build

build: add css secondary entries

docs: update doc

fix: imports in tests

fix: fix updatehostservice in submenu component

docs: change docs on gettings started

docs: specify version

fix: fix styles and update docs

docs: update docs

fix: fix tooltip and patch files

build: fix primary entry
  • Loading branch information
Wendell committed Apr 16, 2019
1 parent f20191f commit 093d291
Show file tree
Hide file tree
Showing 542 changed files with 2,803 additions and 1,020 deletions.
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ Samples: (even more [samples](https://github.com/NG-ZORRO/ng-zorro-antd/commits/
```
docs(changelog): update change log to beta.5
```
```
fix(release): need to depend on latest rxjs and zone.js
The version in our package.json gets copied to the one we publish, and users need the latest of these.
Expand Down
2 changes: 1 addition & 1 deletion components/affix/affix.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, DebugElement, ViewChild } from '@angular/core';
import { discardPeriodicTasks, fakeAsync, tick, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';

import { NzScrollService } from '../core/scroll/nz-scroll.service';
import { NzScrollService } from 'ng-zorro-antd/core';

import { NzAffixComponent } from './nz-affix.component';
import { NzAffixModule } from './nz-affix.module';
Expand Down
8 changes: 8 additions & 0 deletions components/affix/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ Please note that Affix should not cover other content on the page, especially wh

## API

### Secondary Entry Point

[Note](/docs/getting-started/en#secondary-entry-points).

```ts
import { NzAffixModule } from 'ng-zorro-antd';
```

### nz-affix

| Property | Description | Type | Default |
Expand Down
8 changes: 8 additions & 0 deletions components/affix/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ title: Affix

## API

### 二级入口

[说明](/docs/getting-started/zh#二级入口)

```ts
import { NzAffixModule } from 'ng-zorro-antd';
```

### nz-affix

| 成员 | 说明 | 类型 | 默认值 |
Expand Down
13 changes: 7 additions & 6 deletions components/affix/nz-affix.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ import {
ViewChild,
ViewEncapsulation
} from '@angular/core';

import { NzScrollService } from '../core/scroll/nz-scroll.service';
import { NGStyleInterface } from '../core/types/ng-class';
import { shallowEqual } from '../core/util/check';
import { toNumber } from '../core/util/convert';
import { throttleByAnimationFrameDecorator } from '../core/util/throttleByAnimationFrame';
import {
shallowEqual,
throttleByAnimationFrameDecorator,
toNumber,
NzScrollService,
NGStyleInterface
} from 'ng-zorro-antd/core';

@Component({
selector: 'nz-affix',
Expand Down
2 changes: 1 addition & 1 deletion components/affix/nz-affix.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { SCROLL_SERVICE_PROVIDER } from '../core/scroll/nz-scroll.service';
import { SCROLL_SERVICE_PROVIDER } from 'ng-zorro-antd/core';

import { NzAffixComponent } from './nz-affix.component';

Expand Down
7 changes: 7 additions & 0 deletions components/affix/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ngPackage": {
"lib": {
"entryFile": "public-api.ts"
}
}
}
1 change: 1 addition & 0 deletions components/affix/style/entry.less
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import './index.less';
8 changes: 8 additions & 0 deletions components/alert/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ Alert component for feedback.

## API

### Secondary Entry Point

[Note](/docs/getting-started/en#secondary-entry-points).

```ts
import { NzAlertModule } from 'ng-zorro-antd';
```

### nz-alert

| Property | Description | Type | Default |
Expand Down
8 changes: 8 additions & 0 deletions components/alert/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ title: Alert

## API

### 二级入口

[说明](/docs/getting-started/zh#二级入口)

```ts
import { NzAlertModule } from 'ng-zorro-antd';
```

### nz-alert

| 参数 | 说明 | 类型 | 默认值 |
Expand Down
4 changes: 1 addition & 3 deletions components/alert/nz-alert.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import {
TemplateRef,
ViewEncapsulation
} from '@angular/core';
import { slideAlertMotion } from '../core/animation/slide';
import { NgClassType } from '../core/types/ng-class';
import { InputBoolean } from '../core/util/convert';
import { slideAlertMotion, InputBoolean, NgClassType } from 'ng-zorro-antd/core';

@Component({
selector: 'nz-alert',
Expand Down
4 changes: 2 additions & 2 deletions components/alert/nz-alert.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { NzAddOnModule } from '../core/addon/addon.module';
import { NzIconModule } from '../icon/nz-icon.module';
import { NzAddOnModule } from 'ng-zorro-antd/core';
import { NzIconModule } from 'ng-zorro-antd/icon';

import { NzAlertComponent } from './nz-alert.component';

Expand Down
7 changes: 7 additions & 0 deletions components/alert/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ngPackage": {
"lib": {
"entryFile": "public-api.ts"
}
}
}
1 change: 1 addition & 0 deletions components/alert/style/entry.less
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import './index.less';
2 changes: 1 addition & 1 deletion components/anchor/anchor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Component, DebugElement, ViewChild } from '@angular/core';
import { By } from '@angular/platform-browser';
import { NzAnchorModule } from './nz-anchor.module';
import { NzAnchorComponent } from './nz-anchor.component';
import { NzScrollService } from '../core/scroll/nz-scroll.service';
import { NzScrollService } from 'ng-zorro-antd/core';

const throttleTime = 51;

Expand Down
8 changes: 8 additions & 0 deletions components/anchor/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ For displaying anchor hyperlinks on page and jumping between them.

## API

### Secondary Entry Point

[Note](/docs/getting-started/en#secondary-entry-points).

```ts
import { NzAnchorModule } from 'ng-zorro-antd';
```

### nz-anchor

| Property | Description | Type | Default |
Expand Down
8 changes: 8 additions & 0 deletions components/anchor/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ title: Anchor

## API

### 二级入口

[说明](/docs/getting-started/zh#二级入口)

```ts
import { NzAnchorModule } from 'ng-zorro-antd';
```

### nz-anchor

| 成员 | 说明 | 类型 | 默认值 |
Expand Down
5 changes: 2 additions & 3 deletions components/anchor/nz-anchor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ import {
} from '@angular/core';
import { fromEvent, Subscription } from 'rxjs';
import { distinctUntilChanged, throttleTime } from 'rxjs/operators';
import { NzScrollService } from '../core/scroll/nz-scroll.service';
import { NGStyleInterface } from '../core/types/ng-class';
import { toNumber, InputBoolean, InputNumber } from '../core/util/convert';

import { toNumber, InputBoolean, InputNumber, NzScrollService, NGStyleInterface } from 'ng-zorro-antd/core';

import { NzAnchorLinkComponent } from './nz-anchor-link.component';

Expand Down
4 changes: 2 additions & 2 deletions components/anchor/nz-anchor.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { NzAffixModule } from '../affix/nz-affix.module';
import { SCROLL_SERVICE_PROVIDER } from '../core/scroll/nz-scroll.service';
import { NzAffixModule } from 'ng-zorro-antd/affix';
import { SCROLL_SERVICE_PROVIDER } from 'ng-zorro-antd/core';

import { NzAnchorLinkComponent } from './nz-anchor-link.component';
import { NzAnchorComponent } from './nz-anchor.component';
Expand Down
7 changes: 7 additions & 0 deletions components/anchor/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ngPackage": {
"lib": {
"entryFile": "public-api.ts"
}
}
}
2 changes: 2 additions & 0 deletions components/anchor/style/entry.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import './index.less';
@import '../../affix/style/index.less';
8 changes: 8 additions & 0 deletions components/auto-complete/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ When there is a need for autocomplete functionality.
</nz-autocomplete>
```

### Secondary Entry Point

[Note](/docs/getting-started/en#secondary-entry-points).

```ts
import { NzAutocompleteModule } from 'ng-zorro-antd';
```

### [nzAutocomplete]

| Property | Description | Type | Default |
Expand Down
8 changes: 8 additions & 0 deletions components/auto-complete/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ subtitle: 自动完成
</nz-autocomplete>
```

### 二级入口

[说明](/docs/getting-started/zh#二级入口)

```ts
import { NzAutocompleteModule } from 'ng-zorro-antd';
```

### [nzAutocomplete]

| 属性 | 说明 | 类型 | 默认值 |
Expand Down
3 changes: 1 addition & 2 deletions components/auto-complete/nz-autocomplete-option.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import {
ViewEncapsulation
} from '@angular/core';

import { InputBoolean } from '../core/util/convert';
import { scrollIntoView } from '../core/util/scroll-into-view-if-needed';
import { scrollIntoView, InputBoolean } from 'ng-zorro-antd/core';

export class NzOptionSelectionChange {
constructor(public source: NzAutocompleteOptionComponent, public isUserInput: boolean = false) {}
Expand Down
6 changes: 2 additions & 4 deletions components/auto-complete/nz-autocomplete.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ import {
import { defer, merge, Observable, Subscription } from 'rxjs';
import { filter, switchMap, take } from 'rxjs/operators';

import { slideMotion } from '../core/animation/slide';
import { NzNoAnimationDirective } from '../core/no-animation/nz-no-animation.directive';
import { NzDropDownPosition } from '../core/types/drop-down-position';
import { InputBoolean } from '../core/util/convert';
import { slideMotion, InputBoolean, NzDropDownPosition, NzNoAnimationDirective } from 'ng-zorro-antd/core';

import { NzAutocompleteOptionComponent, NzOptionSelectionChange } from './nz-autocomplete-option.component';

export interface AutocompleteDataSourceItem {
Expand Down
3 changes: 1 addition & 2 deletions components/auto-complete/nz-autocomplete.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';

import { NzAddOnModule } from '../core/addon/addon.module';
import { NzNoAnimationModule } from '../core/no-animation/nz-no-animation.module';
import { NzAddOnModule, NzNoAnimationModule } from 'ng-zorro-antd/core';

import { NzAutocompleteOptgroupComponent } from './nz-autocomplete-optgroup.component';
import { NzAutocompleteOptionComponent } from './nz-autocomplete-option.component';
Expand Down
2 changes: 1 addition & 1 deletion components/auto-complete/nz-autocomplete.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
dispatchKeyboardEvent,
typeInElement,
MockNgZone
} from '../core/testing';
} from 'ng-zorro-antd/core';

import {
NzAutocompleteComponent,
Expand Down
7 changes: 7 additions & 0 deletions components/auto-complete/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ngPackage": {
"lib": {
"entryFile": "public-api.ts"
}
}
}
4 changes: 4 additions & 0 deletions components/auto-complete/style/entry.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@import './index.less';
// style dependencies
@import '../../select/style/index.less';
@import '../../input/style/index.less';
8 changes: 8 additions & 0 deletions components/avatar/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ Avatars can be used to represent people or objects. It supports images, `Icon`s,

## API

### Secondary Entry Point

[Note](/docs/getting-started/en#secondary-entry-points).

```ts
import { NzAvatarModule } from 'ng-zorro-antd';
```

### nz-avatar

| Property | Description | Type | Default |
Expand Down
8 changes: 8 additions & 0 deletions components/avatar/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ title: Avatar

## API

### 二级入口

[说明](/docs/getting-started/zh#二级入口)

```ts
import { NzAvatarModule } from 'ng-zorro-antd';
```

### nz-avatar

| 参数 | 说明 | 类型 | 默认值 |
Expand Down
3 changes: 1 addition & 2 deletions components/avatar/nz-avatar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {
ViewEncapsulation
} from '@angular/core';

import { NzUpdateHostClassService } from '../core/services/update-host-class.service';
import { NzSizeLDSType, NzSizeMap } from '../core/types/size';
import { NzSizeLDSType, NzSizeMap, NzUpdateHostClassService } from 'ng-zorro-antd/core';

export type NzAvatarShape = 'square' | 'circle';
export type NzAvatarSize = NzSizeLDSType | number;
Expand Down
2 changes: 1 addition & 1 deletion components/avatar/nz-avatar.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { NzIconModule } from '../icon/nz-icon.module';
import { NzIconModule } from 'ng-zorro-antd/icon';

import { NzAvatarComponent } from './nz-avatar.component';

Expand Down
7 changes: 7 additions & 0 deletions components/avatar/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ngPackage": {
"lib": {
"entryFile": "public-api.ts"
}
}
}
1 change: 1 addition & 0 deletions components/avatar/style/entry.less
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import './index.less';
2 changes: 1 addition & 1 deletion components/back-top/back-top.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { fakeAsync, tick, ComponentFixture, TestBed } from '@angular/core/testin
import { By } from '@angular/platform-browser';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

import { NzScrollService } from '../core/scroll/nz-scroll.service';
import { NzScrollService } from 'ng-zorro-antd/core';

import { NzBackTopComponent } from './nz-back-top.component';
import { NzBackTopModule } from './nz-back-top.module';
Expand Down
8 changes: 8 additions & 0 deletions components/back-top/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ title: BackTop

## API

### Secondary Entry Point

[Note](/docs/getting-started/en#secondary-entry-points).

```ts
import { NzBackTopModule } from 'ng-zorro-antd';
```

### nz-back-top

> The distance to the bottom is set to `50px` by default, which is overridable.
Expand Down
Loading

0 comments on commit 093d291

Please sign in to comment.