ng-alain 16.2.0 → 16.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -113,7 +113,9 @@ module.exports = {
113
113
  {
114
114
  files: ['*.html'],
115
115
  extends: ['plugin:@angular-eslint/template/recommended'],
116
- rules: {}
116
+ rules: {
117
+ "@angular-eslint/template/prefer-self-closing-tags": "error"
118
+ }
117
119
  },
118
120
  {
119
121
  files: ['*.html'],
@@ -7,7 +7,7 @@ import { VERSION as VERSION_ZORRO } from 'ng-zorro-antd/version';
7
7
 
8
8
  @Component({
9
9
  selector: 'app-root',
10
- template: ` <router-outlet></router-outlet> `
10
+ template: ` <router-outlet />`
11
11
  })
12
12
  export class AppComponent implements OnInit {
13
13
  constructor(
@@ -7,7 +7,7 @@ import { SettingsService, User } from '@delon/theme';
7
7
  selector: 'header-user',
8
8
  template: `
9
9
  <div class="alain-default__nav-item d-flex align-items-center px-sm" nz-dropdown nzPlacement="bottomRight" [nzDropdownMenu]="userMenu">
10
- <nz-avatar [nzSrc]="user.avatar" nzSize="small" class="mr-sm"></nz-avatar>
10
+ <nz-avatar [nzSrc]="user.avatar" nzSize="small" class="mr-sm" />
11
11
  {{ user.name }}
12
12
  </div>
13
13
  <nz-dropdown-menu #userMenu="nzDropdownMenu">
@@ -2,7 +2,7 @@ import { Component } from '@angular/core';
2
2
 
3
3
  @Component({
4
4
  selector: 'layout-blank',
5
- template: `<router-outlet></router-outlet> `,
5
+ template: `<router-outlet />`,
6
6
  host: {
7
7
  '[class.alain-blank]': 'true'
8
8
  }
@@ -4,7 +4,7 @@ import { ExceptionType } from '@delon/abc/exception';
4
4
 
5
5
  @Component({
6
6
  selector: 'app-exception',
7
- template: ` <exception [type]="type" style="min-height: 500px; height: 80%;"> </exception> `,
7
+ template: ` <exception [type]="type" style="min-height: 500px; height: 80%;" />`,
8
8
  changeDetection: ChangeDetectionStrategy.OnPush
9
9
  })
10
10
  export class ExceptionComponent {
@@ -1,7 +1,7 @@
1
1
  <div class="ant-card width-lg" style="margin: 0 auto">
2
2
  <div class="ant-card-body">
3
3
  <div class="avatar">
4
- <nz-avatar [nzSrc]="user.avatar" nzIcon="user" nzSize="large"></nz-avatar>
4
+ <nz-avatar [nzSrc]="user.avatar" nzIcon="user" nzSize="large" />
5
5
  </div>
6
6
  <form nz-form [formGroup]="f" (ngSubmit)="submit()" role="form" class="mt-md">
7
7
  <nz-form-item>
@@ -1,7 +1,7 @@
1
1
  <form nz-form [formGroup]="form" (ngSubmit)="submit()" role="form">
2
2
  <nz-tabset [nzAnimated]="false" class="tabs" (nzSelectChange)="switch($event)">
3
3
  <nz-tab [nzTitle]="'app.login.tab-login-credentials' | i18n">
4
- <nz-alert *ngIf="error" [nzType]="'error'" [nzMessage]="error" [nzShowIcon]="true" class="mb-lg"></nz-alert>
4
+ <nz-alert *ngIf="error" [nzType]="'error'" [nzMessage]="error" [nzShowIcon]="true" class="mb-lg" />
5
5
  <nz-form-item>
6
6
  <nz-form-control nzErrorTip="Please enter mobile number, muse be: admin or user">
7
7
  <nz-input-group nzSize="large" nzPrefixIcon="user">
@@ -1,6 +1,6 @@
1
1
  <h3>{{ 'app.register.register' | i18n }}</h3>
2
2
  <form nz-form [formGroup]="form" (ngSubmit)="submit()" role="form">
3
- <nz-alert *ngIf="error" [nzType]="'error'" [nzMessage]="error" [nzShowIcon]="true" class="mb-lg"></nz-alert>
3
+ <nz-alert *ngIf="error" [nzType]="'error'" [nzMessage]="error" [nzShowIcon]="true" class="mb-lg" />
4
4
  <nz-form-item>
5
5
  <nz-form-control [nzErrorTip]="mailErrorTip">
6
6
  <nz-input-group nzSize="large" nzAddonBeforeIcon="user">
@@ -35,12 +35,7 @@
35
35
  <div *ngSwitchDefault class="error">{{ 'validation.password.strength.short' | i18n }}</div>
36
36
  </ng-container>
37
37
  <div class="progress-{{ status }}">
38
- <nz-progress
39
- [nzPercent]="progress"
40
- [nzStatus]="passwordProgressMap[status]"
41
- [nzStrokeWidth]="6"
42
- [nzShowInfo]="false"
43
- ></nz-progress>
38
+ <nz-progress [nzPercent]="progress" [nzStatus]="passwordProgressMap[status]" [nzStrokeWidth]="6" [nzShowInfo]="false" />
44
39
  </div>
45
40
  <p class="mt-sm">{{ 'validation.password.strength.msg' | i18n }}</p>
46
41
  </div>
@@ -63,8 +58,8 @@
63
58
  <nz-input-group nzSize="large" [nzAddOnBefore]="addOnBeforeTemplate">
64
59
  <ng-template #addOnBeforeTemplate>
65
60
  <nz-select formControlName="mobilePrefix" style="width: 100px">
66
- <nz-option [nzLabel]="'+86'" [nzValue]="'+86'"></nz-option>
67
- <nz-option [nzLabel]="'+87'" [nzValue]="'+87'"></nz-option>
61
+ <nz-option [nzLabel]="'+86'" [nzValue]="'+86'" />
62
+ <nz-option [nzLabel]="'+87'" [nzValue]="'+87'" />
68
63
  </nz-select>
69
64
  </ng-template>
70
65
  <input formControlName="mobile" nz-input placeholder="Phone number" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-alain",
3
- "version": "16.2.0",
3
+ "version": "16.2.1",
4
4
  "description": "Schematics specific to ng-alain",
5
5
  "author": "cipchk<cipchk@qq.com>",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ZORROVERSION = exports.VERSION = void 0;
4
- exports.VERSION = '^16.2.0';
4
+ exports.VERSION = '^16.2.1';
5
5
  exports.ZORROVERSION = '^16.1.0';
6
6
  //# sourceMappingURL=lib-versions.js.map
@@ -1,2 +1,2 @@
1
- export const VERSION = '^16.2.0';
1
+ export const VERSION = '^16.2.1';
2
2
  export const ZORROVERSION = '^16.1.0';