ng-alain 20.0.0-beta.0 → 20.0.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.
Files changed (41) hide show
  1. package/application/files/i18n/el-GR.json +1 -1
  2. package/application/files/i18n/en-US.json +1 -1
  3. package/application/files/i18n/es-ES.json +1 -1
  4. package/application/files/i18n/fr-FR.json +1 -1
  5. package/application/files/i18n/hr-HR.json +1 -1
  6. package/application/files/i18n/it-IT.json +1 -1
  7. package/application/files/i18n/ko-KR.json +1 -1
  8. package/application/files/i18n/pl-PL.json +1 -1
  9. package/application/files/i18n/sl-SI.json +1 -1
  10. package/application/files/i18n/tr-TR.json +1 -1
  11. package/application/files/i18n/zh-CN.json +1 -1
  12. package/application/files/i18n/zh-TW.json +1 -1
  13. package/application/files/root/.nvmrc +1 -1
  14. package/application/files/src/app/app.component.ts +8 -7
  15. package/application/files/src/app/core/i18n/i18n.service.ts +2 -3
  16. package/application/files/src/app/layout/basic/widgets/i18n.component.ts +1 -2
  17. package/application/files/src/app/routes/passport/login/login.component.html +12 -9
  18. package/application/files/src/app/shared/shared-imports.ts +1 -3
  19. package/application/files/src/app/shared/shared-zorro.module.ts +2 -2
  20. package/application/files/src/assets/style.compact.css +1 -1
  21. package/application/files/src/assets/style.dark.css +1 -1
  22. package/application/files/src/assets/tmp/app-data.json +2 -2
  23. package/application/files/src/assets/tmp/i18n/el-GR.json +1 -1
  24. package/application/files/src/assets/tmp/i18n/en-US.json +1 -1
  25. package/application/files/src/assets/tmp/i18n/es-ES.json +1 -1
  26. package/application/files/src/assets/tmp/i18n/fr-FR.json +1 -1
  27. package/application/files/src/assets/tmp/i18n/hr-HR.json +1 -1
  28. package/application/files/src/assets/tmp/i18n/it-IT.json +1 -1
  29. package/application/files/src/assets/tmp/i18n/ko-KR.json +1 -1
  30. package/application/files/src/assets/tmp/i18n/pl-PL.json +1 -1
  31. package/application/files/src/assets/tmp/i18n/sl-SI.json +1 -1
  32. package/application/files/src/assets/tmp/i18n/tr-TR.json +1 -1
  33. package/application/files/src/assets/tmp/i18n/zh-CN.json +1 -1
  34. package/application/files/src/assets/tmp/i18n/zh-TW.json +1 -1
  35. package/application/index.js +3 -3
  36. package/application/index.ts +3 -3
  37. package/package.json +2 -2
  38. package/utils/lib-versions.js +2 -2
  39. package/utils/lib-versions.ts +2 -2
  40. package/utils/versions.js +13 -13
  41. package/utils/versions.ts +13 -13
@@ -12,7 +12,7 @@
12
12
  "menu.dashboard.workplace": "Χώρος εργασίας",
13
13
  "menu.shortcut": "Συντομεύσεις",
14
14
  "menu.widgets": "Γραφικά στοιχεία",
15
- "menu.alain": "Alain",
15
+ "menu.alain": "NG-ALAIN",
16
16
  "menu.style": "Στυλ",
17
17
  "menu.style.typography": "Τυπογραφία",
18
18
  "menu.style.gridmasonry": "Πλέγμα Masonry",
@@ -12,7 +12,7 @@
12
12
  "menu.dashboard.workplace": "Workplace",
13
13
  "menu.shortcut": "Shortcut",
14
14
  "menu.widgets": "Widgets",
15
- "menu.alain": "Alain",
15
+ "menu.alain": "NG-ALAIN",
16
16
  "menu.style": "Style",
17
17
  "menu.style.typography": "Typography",
18
18
  "menu.style.gridmasonry": "Grid Masonry",
@@ -12,7 +12,7 @@
12
12
  "menu.dashboard.workplace": "Espacio de trabajo",
13
13
  "menu.shortcut": "Atajo",
14
14
  "menu.widgets": "Complementos",
15
- "menu.alain": "Alain",
15
+ "menu.alain": "NG-ALAIN",
16
16
  "menu.style": "Estilo",
17
17
  "menu.style.typography": "Tipografía",
18
18
  "menu.style.gridmasonry": "Grid Masonry",
@@ -12,7 +12,7 @@
12
12
  "menu.dashboard.workplace": "Lieu de travail",
13
13
  "menu.shortcut": "Raccourci",
14
14
  "menu.widgets": "Widgets",
15
- "menu.alain": "Alain",
15
+ "menu.alain": "NG-ALAIN",
16
16
  "menu.style": "Style",
17
17
  "menu.style.typography": "Typographie",
18
18
  "menu.style.gridmasonry": "Grille de maçonnerie",
@@ -12,7 +12,7 @@
12
12
  "menu.dashboard.workplace": "Radni prostor",
13
13
  "menu.shortcut": "Prečica",
14
14
  "menu.widgets": "Programčić",
15
- "menu.alain": "Alain",
15
+ "menu.alain": "NG-ALAIN",
16
16
  "menu.style": "Stil",
17
17
  "menu.style.typography": "Tipografija",
18
18
  "menu.style.gridmasonry": "Mreža",
@@ -12,7 +12,7 @@
12
12
  "menu.dashboard.workplace": "Luogo di lavoro",
13
13
  "menu.shortcut": "Scorciatoia",
14
14
  "menu.widgets": "Widgets",
15
- "menu.alain": "Alain",
15
+ "menu.alain": "NG-ALAIN",
16
16
  "menu.style": "Stile",
17
17
  "menu.style.typography": "Tipografia",
18
18
  "menu.style.gridmasonry": "Muratura Griglia",
@@ -12,7 +12,7 @@
12
12
  "menu.dashboard.workplace": "Workplace",
13
13
  "menu.shortcut": "바로 가기",
14
14
  "menu.widgets": "위젯",
15
- "menu.alain": "Alain",
15
+ "menu.alain": "NG-ALAIN",
16
16
  "menu.style": "스타일",
17
17
  "menu.style.typography": "타이포그래피",
18
18
  "menu.style.gridmasonry": "Grid Masonry",
@@ -12,7 +12,7 @@
12
12
  "menu.dashboard.workplace": "Miejsce pracy",
13
13
  "menu.shortcut": "Skrót",
14
14
  "menu.widgets": "Widżety",
15
- "menu.alain": "Alain",
15
+ "menu.alain": "NG-ALAIN",
16
16
  "menu.style": "Styl",
17
17
  "menu.style.typography": "Typografia",
18
18
  "menu.style.gridmasonry": "Grid Masonry",
@@ -12,7 +12,7 @@
12
12
  "menu.dashboard.workplace": "Delovno mesto",
13
13
  "menu.shortcut": "Bližnjica",
14
14
  "menu.widgets": "Pripomočki",
15
- "menu.alain": "Alain",
15
+ "menu.alain": "NG-ALAIN",
16
16
  "menu.style": "Slog",
17
17
  "menu.style.typography": "Pisava",
18
18
  "menu.style.gridmasonry": "Mreža",
@@ -12,7 +12,7 @@
12
12
  "menu.dashboard.workplace": "Çalışma Alanı",
13
13
  "menu.shortcut": "Kısayol",
14
14
  "menu.widgets": "Araçlar",
15
- "menu.alain": "Alain",
15
+ "menu.alain": "NG-ALAIN",
16
16
  "menu.style": "Stil",
17
17
  "menu.style.typography": "Tipografi",
18
18
  "menu.style.gridmasonry": "Masonry Izgara",
@@ -16,7 +16,7 @@
16
16
  "menu.main": "主导航",
17
17
  "menu.shortcut": "快捷菜单",
18
18
  "menu.widgets": "小部件",
19
- "menu.alain": "Alain",
19
+ "menu.alain": "NG-ALAIN",
20
20
  "menu.style": "样式",
21
21
  "menu.style.typography": "字体排印",
22
22
  "menu.style.gridmasonry": "瀑布流",
@@ -12,7 +12,7 @@
12
12
  "menu.dashboard.workplace": "工作臺",
13
13
  "menu.shortcut": "快捷菜單",
14
14
  "menu.widgets": "小部件",
15
- "menu.alain": "Alain",
15
+ "menu.alain": "NG-ALAIN",
16
16
  "menu.style": "樣式",
17
17
  "menu.style.typography": "字體排印",
18
18
  "menu.style.gridmasonry": "瀑佈流",
@@ -1 +1 @@
1
- 20.18.2
1
+ 20.19.0
@@ -1,4 +1,4 @@
1
- import { Component, ElementRef, OnInit, Renderer2, inject } from '@angular/core';
1
+ import { Component, OnInit, inject } from '@angular/core';
2
2
  import { NavigationEnd, NavigationError, RouteConfigLoadStart, Router, RouterOutlet } from '@angular/router';
3
3
  import { TitleService, VERSION as VERSION_ALAIN, stepPreloader } from '@delon/theme';
4
4
  import { environment } from '@env/environment';
@@ -8,20 +8,21 @@ import { VERSION as VERSION_ZORRO } from 'ng-zorro-antd/version';
8
8
  @Component({
9
9
  selector: 'app-root',
10
10
  template: `<router-outlet />`,
11
- imports: [RouterOutlet]
11
+ imports: [RouterOutlet],
12
+ host: {
13
+ '[attr.ng-alain-version]': 'ngAlainVersion',
14
+ '[attr.ng-zorro-version]': 'ngZorroVersion'
15
+ }
12
16
  })
13
17
  export class AppComponent implements OnInit {
14
18
  private readonly router = inject(Router);
15
19
  private readonly titleSrv = inject(TitleService);
16
20
  private readonly modalSrv = inject(NzModalService);
21
+ ngAlainVersion = VERSION_ALAIN.full;
22
+ ngZorroVersion = VERSION_ZORRO.full;
17
23
 
18
24
  private donePreloader = stepPreloader();
19
25
 
20
- constructor(el: ElementRef, renderer: Renderer2) {
21
- renderer.setAttribute(el.nativeElement, 'ng-alain-version', VERSION_ALAIN.full);
22
- renderer.setAttribute(el.nativeElement, 'ng-zorro-version', VERSION_ZORRO.full);
23
- }
24
-
25
26
  ngOnInit(): void {
26
27
  let configLoad = false;
27
28
  this.router.events.subscribe(ev => {
@@ -14,7 +14,6 @@ import {
14
14
  _HttpClient,
15
15
  AlainI18nBaseService
16
16
  } from '@delon/theme';
17
- import { AlainConfigService } from '@delon/util/config';
18
17
  import { enUS as dfEn, zhCN as dfZhCn, zhTW as dfZhTw } from 'date-fns/locale';
19
18
  import { NzSafeAny } from 'ng-zorro-antd/core/types';
20
19
  import { en_US as zorroEnUS, NzI18nService, zh_CN as zorroZhCN, zh_TW as zorroZhTW } from 'ng-zorro-antd/i18n';
@@ -71,8 +70,8 @@ export class I18NService extends AlainI18nBaseService {
71
70
  return { code, text: item.text, abbr: item.abbr };
72
71
  });
73
72
 
74
- constructor(cogSrv: AlainConfigService) {
75
- super(cogSrv);
73
+ constructor() {
74
+ super();
76
75
 
77
76
  const defaultLang = this.getDefaultLang();
78
77
  this._defaultLang = this._langs.findIndex(w => w.code === defaultLang) === -1 ? DEFAULT : defaultLang;
@@ -1,5 +1,4 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import { ChangeDetectionStrategy, Component, Input, booleanAttribute, inject } from '@angular/core';
1
+ import { ChangeDetectionStrategy, Component, Input, booleanAttribute, inject, DOCUMENT } from '@angular/core';
3
2
  import { I18NService } from '@core';
4
3
  import { ALAIN_I18N_TOKEN, I18nPipe, SettingsService } from '@delon/theme';
5
4
  import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
@@ -1,8 +1,8 @@
1
1
  <form nz-form [formGroup]="form" (ngSubmit)="submit()" role="form">
2
- <nz-tabset [nzAnimated]="false" class="tabs" (nzSelectChange)="switch($event)">
2
+ <nz-tabs [nzAnimated]="false" class="tabs" (nzSelectChange)="switch($event)">
3
3
  <nz-tab [nzTitle]="'app.login.tab-login-credentials' | i18n">
4
4
  @if (error) {
5
- <nz-alert [nzType]="'error'" [nzMessage]="error" [nzShowIcon]="true" class="mb-lg" />
5
+ <nz-alert [nzType]="'error'" [nzMessage]="error" [nzShowIcon]="true" class="mb-lg" />
6
6
  }
7
7
  <nz-form-item>
8
8
  <nz-form-control nzErrorTip="Please enter mobile number, muse be: admin or user">
@@ -27,10 +27,10 @@
27
27
  </nz-input-group>
28
28
  <ng-template #mobileErrorTip let-i>
29
29
  @if (i.errors.required) {
30
- {{ 'validation.phone-number.required' | i18n }}
30
+ {{ 'validation.phone-number.required' | i18n }}
31
31
  }
32
32
  @if (i.errors.pattern) {
33
- {{ 'validation.phone-number.wrong-format' | i18n }}
33
+ {{ 'validation.phone-number.wrong-format' | i18n }}
34
34
  }
35
35
  </ng-template>
36
36
  </nz-form-control>
@@ -44,7 +44,8 @@
44
44
  </nz-input-group>
45
45
  </nz-col>
46
46
  <nz-col [nzSpan]="8">
47
- <button type="button" nz-button nzSize="large" (click)="getCaptcha()" [disabled]="count >= 0" nzBlock [nzLoading]="loading">
47
+ <button type="button" nz-button nzSize="large" (click)="getCaptcha()" [disabled]="count >= 0" nzBlock
48
+ [nzLoading]="loading">
48
49
  {{ count ? count + 's' : ('app.register.get-verification-code' | i18n) }}
49
50
  </button>
50
51
  </nz-col>
@@ -52,7 +53,7 @@
52
53
  </nz-form-control>
53
54
  </nz-form-item>
54
55
  </nz-tab>
55
- </nz-tabset>
56
+ </nz-tabs>
56
57
  <nz-form-item>
57
58
  <nz-col [nzSpan]="12">
58
59
  <label nz-checkbox formControlName="remember">{{ 'app.login.remember-me' | i18n }}</label>
@@ -69,8 +70,10 @@
69
70
  </form>
70
71
  <div class="other">
71
72
  {{ 'app.login.sign-in-with' | i18n }}
72
- <i nz-tooltip nzTooltipTitle="in fact Auth0 via window" (click)="open('auth0', 'window')" nz-icon nzType="alipay-circle" class="icon"></i>
73
- <i nz-tooltip nzTooltipTitle="in fact Github via redirect" (click)="open('github')" nz-icon nzType="taobao-circle" class="icon"></i>
73
+ <i nz-tooltip nzTooltipTitle="in fact Auth0 via window" (click)="open('auth0', 'window')" nz-icon
74
+ nzType="alipay-circle" class="icon"></i>
75
+ <i nz-tooltip nzTooltipTitle="in fact Github via redirect" (click)="open('github')" nz-icon nzType="taobao-circle"
76
+ class="icon"></i>
74
77
  <i (click)="open('weibo', 'window')" nz-icon nzType="weibo-circle" class="icon"></i>
75
78
  <a class="register" routerLink="/passport/register">{{ 'app.login.signup' | i18n }}</a>
76
- </div>
79
+ </div>
@@ -1,4 +1,4 @@
1
- import { AsyncPipe, JsonPipe, NgClass, NgStyle, NgTemplateOutlet } from '@angular/common';
1
+ import { AsyncPipe, JsonPipe, NgTemplateOutlet } from '@angular/common';
2
2
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
3
3
  import { RouterOutlet, RouterLink } from '@angular/router';
4
4
  import { DatePipe, I18nPipe } from '@delon/theme';
@@ -12,8 +12,6 @@ export const SHARED_IMPORTS = [
12
12
  RouterLink,
13
13
  RouterOutlet,
14
14
  NgTemplateOutlet,
15
- NgClass,
16
- NgStyle,
17
15
  I18nPipe,
18
16
  JsonPipe,
19
17
  DatePipe,
@@ -18,7 +18,7 @@ import { NzSelectModule } from 'ng-zorro-antd/select';
18
18
  import { NzSpinModule } from 'ng-zorro-antd/spin';
19
19
  import { NzTableModule } from 'ng-zorro-antd/table';
20
20
  import { NzTabsModule } from 'ng-zorro-antd/tabs';
21
- import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
21
+ import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
22
22
 
23
23
  export const SHARED_ZORRO_MODULES = [
24
24
  NzFormModule,
@@ -38,7 +38,7 @@ export const SHARED_ZORRO_MODULES = [
38
38
  NzDrawerModule,
39
39
  NzModalModule,
40
40
  NzTabsModule,
41
- NzToolTipModule,
41
+ NzTooltipModule,
42
42
  NzIconModule,
43
43
  NzCheckboxModule,
44
44
  NzSpinModule,