ng-alain 20.0.0-beta.0 → 20.0.0
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.
- package/application/files/i18n/el-GR.json +1 -1
- package/application/files/i18n/en-US.json +1 -1
- package/application/files/i18n/es-ES.json +1 -1
- package/application/files/i18n/fr-FR.json +1 -1
- package/application/files/i18n/hr-HR.json +1 -1
- package/application/files/i18n/it-IT.json +1 -1
- package/application/files/i18n/ko-KR.json +1 -1
- package/application/files/i18n/pl-PL.json +1 -1
- package/application/files/i18n/sl-SI.json +1 -1
- package/application/files/i18n/tr-TR.json +1 -1
- package/application/files/i18n/zh-CN.json +1 -1
- package/application/files/i18n/zh-TW.json +1 -1
- package/application/files/root/.nvmrc +1 -1
- package/application/files/src/app/app.component.ts +8 -7
- package/application/files/src/app/core/i18n/i18n.service.ts +2 -3
- package/application/files/src/app/layout/basic/widgets/i18n.component.ts +1 -2
- package/application/files/src/app/routes/passport/login/login.component.html +12 -9
- package/application/files/src/app/shared/shared-imports.ts +1 -3
- package/application/files/src/assets/style.compact.css +1 -1
- package/application/files/src/assets/style.dark.css +1 -1
- package/application/files/src/assets/tmp/app-data.json +2 -2
- package/application/files/src/assets/tmp/i18n/el-GR.json +1 -1
- package/application/files/src/assets/tmp/i18n/en-US.json +1 -1
- package/application/files/src/assets/tmp/i18n/es-ES.json +1 -1
- package/application/files/src/assets/tmp/i18n/fr-FR.json +1 -1
- package/application/files/src/assets/tmp/i18n/hr-HR.json +1 -1
- package/application/files/src/assets/tmp/i18n/it-IT.json +1 -1
- package/application/files/src/assets/tmp/i18n/ko-KR.json +1 -1
- package/application/files/src/assets/tmp/i18n/pl-PL.json +1 -1
- package/application/files/src/assets/tmp/i18n/sl-SI.json +1 -1
- package/application/files/src/assets/tmp/i18n/tr-TR.json +1 -1
- package/application/files/src/assets/tmp/i18n/zh-CN.json +1 -1
- package/application/files/src/assets/tmp/i18n/zh-TW.json +1 -1
- package/package.json +1 -1
- package/utils/lib-versions.js +1 -1
- package/utils/lib-versions.ts +1 -1
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"menu.dashboard.workplace": "Χώρος εργασίας",
|
|
13
13
|
"menu.shortcut": "Συντομεύσεις",
|
|
14
14
|
"menu.widgets": "Γραφικά στοιχεία",
|
|
15
|
-
"menu.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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "Miejsce pracy",
|
|
13
13
|
"menu.shortcut": "Skrót",
|
|
14
14
|
"menu.widgets": "Widżety",
|
|
15
|
-
"menu.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": "
|
|
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": "
|
|
15
|
+
"menu.alain": "NG-ALAIN",
|
|
16
16
|
"menu.style": "Stil",
|
|
17
17
|
"menu.style.typography": "Tipografi",
|
|
18
18
|
"menu.style.gridmasonry": "Masonry Izgara",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
20.
|
|
1
|
+
20.19.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component,
|
|
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(
|
|
75
|
-
super(
|
|
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/
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
30
|
+
{{ 'validation.phone-number.required' | i18n }}
|
|
31
31
|
}
|
|
32
32
|
@if (i.errors.pattern) {
|
|
33
|
-
|
|
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
|
|
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-
|
|
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
|
|
73
|
-
|
|
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,
|
|
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,
|