devextreme-schematics 1.10.1 → 1.11.0-beta.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/package.json +6 -6
- package/src/add-app-template/schema.json +1 -1
- package/src/add-layout/files/src/app/__name__.ts +37 -0
- package/src/add-layout/files/src/app/app.config.ts +20 -0
- package/src/add-layout/files/src/app/{app-routing.module.ts → app.routes.ts} +2 -10
- package/src/add-layout/files/src/app/layouts/side-nav-inner-toolbar/side-nav-inner-toolbar.component.ts +11 -10
- package/src/add-layout/files/src/app/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.component.ts +5 -10
- package/src/add-layout/files/src/app/layouts/single-card/single-card.component.ts +3 -11
- package/src/add-layout/files/src/app/not-authorized-container.ts +8 -13
- package/src/add-layout/files/src/app/shared/components/change-password-form/change-password-form.component.ts +8 -13
- package/src/add-layout/files/src/app/shared/components/create-account-form/create-account-form.component.ts +8 -13
- package/src/add-layout/files/src/app/shared/components/footer/footer.component.ts +2 -8
- package/src/add-layout/files/src/app/shared/components/header/header.component.scss +1 -1
- package/src/add-layout/files/src/app/shared/components/header/header.component.ts +14 -20
- package/src/add-layout/files/src/app/shared/components/login-form/login-form.component.ts +9 -14
- package/src/add-layout/files/src/app/shared/components/reset-password-form/reset-password-form.component.ts +8 -13
- package/src/add-layout/files/src/app/shared/components/side-navigation-menu/side-navigation-menu.component.ts +4 -10
- package/src/add-layout/files/src/app/shared/components/theme-switcher/theme-switcher.component.ts +3 -11
- package/src/add-layout/files/src/app/shared/components/user-panel/user-panel.component.ts +8 -15
- package/src/add-layout/files/src/app/unauthenticated-content.ts +8 -13
- package/src/add-layout/files/src/dx-styles.scss +3 -3
- package/src/add-layout/index.js +67 -43
- package/src/add-layout/index.js.map +1 -1
- package/src/add-layout/index.ts +79 -49
- package/src/add-layout/index_spec.js +27 -27
- package/src/add-layout/index_spec.js.map +1 -1
- package/src/add-layout/index_spec.ts +29 -33
- package/src/add-sample-views/files/pages/profile/profile.component.ts +3 -1
- package/src/add-sample-views/files/pages/tasks/tasks.component.ts +3 -2
- package/src/add-sample-views/index.js +1 -32
- package/src/add-sample-views/index.js.map +1 -1
- package/src/add-sample-views/index.ts +1 -42
- package/src/add-sample-views/index_spec.js +1 -2
- package/src/add-sample-views/index_spec.js.map +1 -1
- package/src/add-sample-views/index_spec.ts +1 -2
- package/src/add-view/index.js +8 -3
- package/src/add-view/index.js.map +1 -1
- package/src/add-view/index.ts +12 -5
- package/src/add-view/index_spec.js +4 -23
- package/src/add-view/index_spec.js.map +1 -1
- package/src/add-view/index_spec.ts +4 -23
- package/src/install/schema.json +1 -1
- package/src/utility/angular-version.d.ts +3 -0
- package/src/utility/angular-version.js +20 -0
- package/src/utility/angular-version.js.map +1 -0
- package/src/utility/angular-version.ts +18 -0
- package/src/utility/latest-versions.js +2 -2
- package/src/utility/latest-versions.js.map +1 -1
- package/src/utility/latest-versions.ts +2 -2
- package/src/utility/routing.d.ts +2 -1
- package/src/utility/routing.js +5 -4
- package/src/utility/routing.js.map +1 -1
- package/src/utility/routing.ts +4 -4
- package/src/add-layout/files/src/app/__name__.component.ts +0 -21
- /package/src/add-layout/files/src/app/{__name__.component.html → __name__.html} +0 -0
- /package/src/add-layout/files/src/app/{__name__.component.scss → __name__.scss} +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "devextreme-schematics",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.11.0-beta.0",
|
4
4
|
"description": "DevExtreme schematics",
|
5
5
|
"scripts": {
|
6
6
|
"build": "tsc -p tsconfig.json",
|
@@ -22,18 +22,18 @@
|
|
22
22
|
],
|
23
23
|
"schematics": "./src/collection.json",
|
24
24
|
"dependencies": {
|
25
|
-
"@angular-devkit/core": "^17.3.
|
26
|
-
"@angular-devkit/schematics": "^17.3.
|
27
|
-
"@schematics/angular": "^17.3.
|
25
|
+
"@angular-devkit/core": "^17.3.12",
|
26
|
+
"@angular-devkit/schematics": "^17.3.12",
|
27
|
+
"@schematics/angular": "^17.3.12"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
30
|
"@types/jasmine": "~3.10.18",
|
31
31
|
"@types/node": "ts5.2",
|
32
|
-
"@types/semver": "^7.
|
32
|
+
"@types/semver": "^7.5.8",
|
33
33
|
"jasmine": "^2.99.0",
|
34
34
|
"rxjs": "^6.6.7",
|
35
35
|
"tslint": "^5.20.1",
|
36
36
|
"typescript": "~5.2.1"
|
37
37
|
},
|
38
|
-
"gitHead": "
|
38
|
+
"gitHead": "12a211ead8510e78eb1f33b6a34664823d73a4a7"
|
39
39
|
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { Component, HostBinding } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { RouterModule, RouterOutlet } from '@angular/router';
|
4
|
+
import { AuthService, ScreenService, AppInfoService } from './shared/services';
|
5
|
+
import { DxHttpModule } from 'devextreme-angular/http';
|
6
|
+
import { FooterComponent } from './shared/components';
|
7
|
+
import { UnauthenticatedContentComponent } from './unauthenticated-content';
|
8
|
+
|
9
|
+
|
10
|
+
@Component({
|
11
|
+
selector: '<%= prefix %>-root',
|
12
|
+
templateUrl: './<%= name %>.html',
|
13
|
+
styleUrls: ['./<%= name %>.scss'],
|
14
|
+
standalone: true,
|
15
|
+
imports: [
|
16
|
+
RouterModule,
|
17
|
+
RouterOutlet,
|
18
|
+
CommonModule,
|
19
|
+
DxHttpModule,
|
20
|
+
SideNavToolbarComponent,
|
21
|
+
FooterComponent,
|
22
|
+
UnauthenticatedContentComponent,
|
23
|
+
],
|
24
|
+
providers: []
|
25
|
+
})
|
26
|
+
export class <%= strings.classify(name) %> {
|
27
|
+
@HostBinding('class') get getClass() {
|
28
|
+
const sizeClassName = Object.keys(this.screen.sizes).filter(cl => this.screen.sizes[cl]).join(' ');
|
29
|
+
return `${sizeClassName} app` ;
|
30
|
+
}
|
31
|
+
|
32
|
+
constructor(private authService: AuthService, private screen: ScreenService, public appInfo: AppInfoService) { }
|
33
|
+
|
34
|
+
isAuthenticated() {
|
35
|
+
return this.authService.loggedIn;
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
|
2
|
+
import { provideRouter, withHashLocation } from '@angular/router';
|
3
|
+
import { routes } from './app.routes';
|
4
|
+
import {
|
5
|
+
AppInfoService,
|
6
|
+
AuthGuardService,
|
7
|
+
AuthService,
|
8
|
+
ScreenService,
|
9
|
+
} from './shared/services';
|
10
|
+
|
11
|
+
export const appConfig: ApplicationConfig = {
|
12
|
+
providers: [
|
13
|
+
provideZoneChangeDetection({ eventCoalescing: true }),
|
14
|
+
provideRouter(routes, withHashLocation()),
|
15
|
+
AuthGuardService,
|
16
|
+
AuthService,
|
17
|
+
ScreenService,
|
18
|
+
AppInfoService,
|
19
|
+
]
|
20
|
+
};
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import { Routes, RouterModule } from '@angular/router';
|
1
|
+
import { Routes } from '@angular/router';
|
3
2
|
import { LoginFormComponent, ResetPasswordFormComponent, CreateAccountFormComponent, ChangePasswordFormComponent } from './shared/components';
|
4
3
|
import { AuthGuardService } from './shared/services';
|
5
4
|
|
6
|
-
const routes: Routes = [
|
5
|
+
export const routes: Routes = [
|
7
6
|
{
|
8
7
|
path: 'login-form',
|
9
8
|
component: LoginFormComponent,
|
@@ -25,10 +24,3 @@ const routes: Routes = [
|
|
25
24
|
canActivate: [ AuthGuardService ]
|
26
25
|
}
|
27
26
|
];
|
28
|
-
|
29
|
-
@NgModule({
|
30
|
-
imports: [RouterModule.forRoot(routes, { useHash: true })],
|
31
|
-
providers: [AuthGuardService],
|
32
|
-
exports: [RouterModule]
|
33
|
-
})
|
34
|
-
export class AppRoutingModule { }
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Component, OnInit,
|
1
|
+
import { Component, OnInit, Input, ViewChild } from '@angular/core';
|
2
2
|
import { Router, NavigationEnd } from '@angular/router';
|
3
3
|
import { CommonModule } from '@angular/common';
|
4
4
|
|
@@ -7,7 +7,7 @@ import { DxDrawerModule, DxDrawerTypes } from 'devextreme-angular/ui/drawer';
|
|
7
7
|
import { DxScrollViewModule, DxScrollViewComponent } from 'devextreme-angular/ui/scroll-view';
|
8
8
|
import { DxToolbarModule, DxToolbarTypes } from 'devextreme-angular/ui/toolbar';
|
9
9
|
|
10
|
-
import {
|
10
|
+
import { SideNavigationMenuComponent, HeaderComponent } from '../../shared/components';
|
11
11
|
import { ScreenService } from '../../shared/services';
|
12
12
|
import { ThemeService } from '../../shared/services/theme.service';
|
13
13
|
|
@@ -15,7 +15,15 @@ import { ThemeService } from '../../shared/services/theme.service';
|
|
15
15
|
selector: 'app-side-nav-inner-toolbar',
|
16
16
|
templateUrl: './side-nav-inner-toolbar.component.html',
|
17
17
|
styleUrls: ['./side-nav-inner-toolbar.component.scss'],
|
18
|
-
standalone:
|
18
|
+
standalone: true,
|
19
|
+
imports: [
|
20
|
+
SideNavigationMenuComponent,
|
21
|
+
DxDrawerModule,
|
22
|
+
HeaderComponent,
|
23
|
+
DxToolbarModule,
|
24
|
+
DxScrollViewModule,
|
25
|
+
CommonModule,
|
26
|
+
]
|
19
27
|
})
|
20
28
|
export class SideNavInnerToolbarComponent implements OnInit {
|
21
29
|
@ViewChild(DxScrollViewComponent, { static: true }) scrollView!: DxScrollViewComponent;
|
@@ -105,10 +113,3 @@ export class SideNavInnerToolbarComponent implements OnInit {
|
|
105
113
|
}
|
106
114
|
}
|
107
115
|
}
|
108
|
-
|
109
|
-
@NgModule({
|
110
|
-
imports: [ SideNavigationMenuModule, DxDrawerModule, HeaderModule, DxToolbarModule, DxScrollViewModule, CommonModule ],
|
111
|
-
exports: [ SideNavInnerToolbarComponent ],
|
112
|
-
declarations: [ SideNavInnerToolbarComponent ]
|
113
|
-
})
|
114
|
-
export class SideNavInnerToolbarModule { }
|
@@ -1,19 +1,21 @@
|
|
1
|
-
import { Component, OnInit,
|
1
|
+
import { Component, OnInit, Input, ViewChild } from '@angular/core';
|
2
2
|
import { CommonModule } from '@angular/common';
|
3
3
|
import { Router, NavigationEnd } from '@angular/router';
|
4
4
|
|
5
|
+
|
5
6
|
import { DxTreeViewTypes } from 'devextreme-angular/ui/tree-view';
|
6
7
|
import { DxDrawerModule, DxDrawerTypes } from 'devextreme-angular/ui/drawer';
|
7
8
|
import { DxScrollViewModule, DxScrollViewComponent } from 'devextreme-angular/ui/scroll-view';
|
8
9
|
|
9
|
-
import {
|
10
|
+
import { SideNavigationMenuComponent, HeaderComponent } from '../../shared/components';
|
10
11
|
import { ScreenService, ThemeService } from '../../shared/services';
|
11
12
|
|
12
13
|
@Component({
|
13
14
|
selector: 'app-side-nav-outer-toolbar',
|
14
15
|
templateUrl: './side-nav-outer-toolbar.component.html',
|
15
16
|
styleUrls: ['./side-nav-outer-toolbar.component.scss'],
|
16
|
-
standalone:
|
17
|
+
standalone: true,
|
18
|
+
imports: [ CommonModule, SideNavigationMenuComponent, DxDrawerModule, HeaderComponent, DxScrollViewModule ],
|
17
19
|
})
|
18
20
|
export class SideNavOuterToolbarComponent implements OnInit {
|
19
21
|
@ViewChild(DxScrollViewComponent, { static: true }) scrollView!: DxScrollViewComponent;
|
@@ -98,10 +100,3 @@ export class SideNavOuterToolbarComponent implements OnInit {
|
|
98
100
|
}
|
99
101
|
}
|
100
102
|
}
|
101
|
-
|
102
|
-
@NgModule({
|
103
|
-
imports: [ SideNavigationMenuModule, DxDrawerModule, HeaderModule, DxScrollViewModule, CommonModule ],
|
104
|
-
exports: [ SideNavOuterToolbarComponent ],
|
105
|
-
declarations: [ SideNavOuterToolbarComponent ]
|
106
|
-
})
|
107
|
-
export class SideNavOuterToolbarModule { }
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Component,
|
1
|
+
import { Component, Input} from '@angular/core';
|
2
2
|
import { CommonModule } from '@angular/common';
|
3
3
|
import { DxScrollViewModule } from 'devextreme-angular/ui/scroll-view';
|
4
4
|
|
@@ -6,7 +6,8 @@ import { DxScrollViewModule } from 'devextreme-angular/ui/scroll-view';
|
|
6
6
|
selector: 'app-single-card',
|
7
7
|
templateUrl: './single-card.component.html',
|
8
8
|
styleUrls: ['./single-card.component.scss'],
|
9
|
-
standalone:
|
9
|
+
standalone: true,
|
10
|
+
imports: [ CommonModule, DxScrollViewModule ],
|
10
11
|
})
|
11
12
|
export class SingleCardComponent {
|
12
13
|
@Input()
|
@@ -17,12 +18,3 @@ export class SingleCardComponent {
|
|
17
18
|
|
18
19
|
constructor() { }
|
19
20
|
}
|
20
|
-
|
21
|
-
@NgModule({
|
22
|
-
imports: [ CommonModule, DxScrollViewModule ],
|
23
|
-
exports: [ SingleCardComponent ],
|
24
|
-
declarations: [ SingleCardComponent ]
|
25
|
-
})
|
26
|
-
export class SingleCardModule {
|
27
|
-
|
28
|
-
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
2
|
-
import { Component
|
2
|
+
import { Component } from '@angular/core';
|
3
3
|
import { RouterModule } from '@angular/router';
|
4
|
-
import {
|
4
|
+
import { SingleCardComponent } from './layouts';
|
5
5
|
import { Router } from '@angular/router';
|
6
6
|
|
7
7
|
@Component({
|
@@ -17,7 +17,12 @@ import { Router } from '@angular/router';
|
|
17
17
|
height: 100%;
|
18
18
|
}
|
19
19
|
`],
|
20
|
-
standalone:
|
20
|
+
standalone: true,
|
21
|
+
imports: [
|
22
|
+
CommonModule,
|
23
|
+
RouterModule,
|
24
|
+
SingleCardComponent,
|
25
|
+
]
|
21
26
|
})
|
22
27
|
export class NotAuthorizedContainerComponent {
|
23
28
|
|
@@ -42,13 +47,3 @@ export class NotAuthorizedContainerComponent {
|
|
42
47
|
}
|
43
48
|
}
|
44
49
|
}
|
45
|
-
@NgModule({
|
46
|
-
imports: [
|
47
|
-
CommonModule,
|
48
|
-
RouterModule,
|
49
|
-
SingleCardModule,
|
50
|
-
],
|
51
|
-
declarations: [NotAuthorizedContainerComponent],
|
52
|
-
exports: [NotAuthorizedContainerComponent]
|
53
|
-
})
|
54
|
-
export class NotAuthorizedContainerModule { }
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
2
|
-
import { Component,
|
2
|
+
import { Component, OnInit } from '@angular/core';
|
3
3
|
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
4
4
|
import { ValidationCallbackData } from 'devextreme-angular/common';
|
5
5
|
import { DxFormModule } from 'devextreme-angular/ui/form';
|
@@ -11,7 +11,13 @@ import { AuthService } from '../../services';
|
|
11
11
|
@Component({
|
12
12
|
selector: 'app-change-passsword-form',
|
13
13
|
templateUrl: './change-password-form.component.html',
|
14
|
-
standalone:
|
14
|
+
standalone: true,
|
15
|
+
imports: [
|
16
|
+
CommonModule,
|
17
|
+
RouterModule,
|
18
|
+
DxFormModule,
|
19
|
+
DxLoadIndicatorModule,
|
20
|
+
]
|
15
21
|
})
|
16
22
|
export class ChangePasswordFormComponent implements OnInit {
|
17
23
|
loading = false;
|
@@ -45,14 +51,3 @@ export class ChangePasswordFormComponent implements OnInit {
|
|
45
51
|
return e.value === this.formData.password;
|
46
52
|
}
|
47
53
|
}
|
48
|
-
@NgModule({
|
49
|
-
imports: [
|
50
|
-
CommonModule,
|
51
|
-
RouterModule,
|
52
|
-
DxFormModule,
|
53
|
-
DxLoadIndicatorModule
|
54
|
-
],
|
55
|
-
declarations: [ ChangePasswordFormComponent ],
|
56
|
-
exports: [ ChangePasswordFormComponent ]
|
57
|
-
})
|
58
|
-
export class ChangePasswordFormModule { }
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
2
|
-
import { Component
|
2
|
+
import { Component } from '@angular/core';
|
3
3
|
import { Router, RouterModule } from '@angular/router';
|
4
4
|
import { ValidationCallbackData } from 'devextreme-angular/common';
|
5
5
|
import { DxFormModule } from 'devextreme-angular/ui/form';
|
@@ -12,7 +12,13 @@ import { AuthService } from '../../services';
|
|
12
12
|
selector: 'app-create-account-form',
|
13
13
|
templateUrl: './create-account-form.component.html',
|
14
14
|
styleUrls: ['./create-account-form.component.scss'],
|
15
|
-
standalone:
|
15
|
+
standalone: true,
|
16
|
+
imports: [
|
17
|
+
CommonModule,
|
18
|
+
RouterModule,
|
19
|
+
DxFormModule,
|
20
|
+
DxLoadIndicatorModule,
|
21
|
+
]
|
16
22
|
})
|
17
23
|
export class CreateAccountFormComponent {
|
18
24
|
loading = false;
|
@@ -39,14 +45,3 @@ export class CreateAccountFormComponent {
|
|
39
45
|
return e.value === this.formData.password;
|
40
46
|
}
|
41
47
|
}
|
42
|
-
@NgModule({
|
43
|
-
imports: [
|
44
|
-
CommonModule,
|
45
|
-
RouterModule,
|
46
|
-
DxFormModule,
|
47
|
-
DxLoadIndicatorModule
|
48
|
-
],
|
49
|
-
declarations: [ CreateAccountFormComponent ],
|
50
|
-
exports: [ CreateAccountFormComponent ]
|
51
|
-
})
|
52
|
-
export class CreateAccountFormModule { }
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Component
|
1
|
+
import { Component } from '@angular/core';
|
2
2
|
|
3
3
|
@Component({
|
4
4
|
selector: 'app-footer',
|
@@ -6,15 +6,9 @@ import { Component, NgModule } from '@angular/core';
|
|
6
6
|
<footer><ng-content></ng-content></footer>
|
7
7
|
`,
|
8
8
|
styleUrls: ['./footer.component.scss'],
|
9
|
-
standalone:
|
9
|
+
standalone: true
|
10
10
|
})
|
11
11
|
|
12
12
|
export class FooterComponent {
|
13
13
|
|
14
14
|
}
|
15
|
-
|
16
|
-
@NgModule({
|
17
|
-
declarations: [ FooterComponent ],
|
18
|
-
exports: [ FooterComponent ]
|
19
|
-
})
|
20
|
-
export class FooterModule { }
|
@@ -1,18 +1,25 @@
|
|
1
|
-
import { Component,
|
1
|
+
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';
|
2
|
+
import { Router } from '@angular/router';
|
2
3
|
import { CommonModule } from '@angular/common';
|
3
|
-
|
4
|
-
import { AuthService, IUser } from '../../services';
|
5
|
-
import { UserPanelModule } from '../user-panel/user-panel.component';
|
6
4
|
import { DxButtonModule } from 'devextreme-angular/ui/button';
|
7
5
|
import { DxToolbarModule } from 'devextreme-angular/ui/toolbar';
|
8
6
|
|
9
|
-
import {
|
10
|
-
import {
|
7
|
+
import { AuthService, IUser } from '../../services';
|
8
|
+
import { UserPanelComponent } from '../user-panel/user-panel.component';
|
9
|
+
import { ThemeSwitcherComponent } from '../theme-switcher/theme-switcher.component';
|
10
|
+
|
11
11
|
@Component({
|
12
12
|
selector: 'app-header',
|
13
13
|
templateUrl: 'header.component.html',
|
14
14
|
styleUrls: ['./header.component.scss'],
|
15
|
-
standalone:
|
15
|
+
standalone: true,
|
16
|
+
imports: [
|
17
|
+
CommonModule,
|
18
|
+
DxButtonModule,
|
19
|
+
UserPanelComponent,
|
20
|
+
DxToolbarModule,
|
21
|
+
ThemeSwitcherComponent,
|
22
|
+
]
|
16
23
|
})
|
17
24
|
|
18
25
|
export class HeaderComponent implements OnInit {
|
@@ -52,16 +59,3 @@ export class HeaderComponent implements OnInit {
|
|
52
59
|
this.menuToggle.emit();
|
53
60
|
}
|
54
61
|
}
|
55
|
-
|
56
|
-
@NgModule({
|
57
|
-
imports: [
|
58
|
-
CommonModule,
|
59
|
-
DxButtonModule,
|
60
|
-
UserPanelModule,
|
61
|
-
DxToolbarModule,
|
62
|
-
ThemeSwitcherModule,
|
63
|
-
],
|
64
|
-
declarations: [ HeaderComponent ],
|
65
|
-
exports: [ HeaderComponent ]
|
66
|
-
})
|
67
|
-
export class HeaderModule { }
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
2
|
-
import { Component
|
2
|
+
import { Component } from '@angular/core';
|
3
3
|
import { Router, RouterModule } from '@angular/router';
|
4
4
|
import { DxFormModule } from 'devextreme-angular/ui/form';
|
5
5
|
import { DxButtonModule } from 'devextreme-angular/ui/button';
|
@@ -12,7 +12,14 @@ import { AuthService } from '../../services';
|
|
12
12
|
selector: 'app-login-form',
|
13
13
|
templateUrl: './login-form.component.html',
|
14
14
|
styleUrls: ['./login-form.component.scss'],
|
15
|
-
standalone:
|
15
|
+
standalone: true,
|
16
|
+
imports: [
|
17
|
+
CommonModule,
|
18
|
+
RouterModule,
|
19
|
+
DxFormModule,
|
20
|
+
DxButtonModule,
|
21
|
+
DxLoadIndicatorModule,
|
22
|
+
]
|
16
23
|
})
|
17
24
|
export class LoginFormComponent {
|
18
25
|
loading = false;
|
@@ -36,15 +43,3 @@ export class LoginFormComponent {
|
|
36
43
|
this.router.navigate(['/create-account']);
|
37
44
|
}
|
38
45
|
}
|
39
|
-
@NgModule({
|
40
|
-
imports: [
|
41
|
-
CommonModule,
|
42
|
-
RouterModule,
|
43
|
-
DxFormModule,
|
44
|
-
DxButtonModule,
|
45
|
-
DxLoadIndicatorModule
|
46
|
-
],
|
47
|
-
declarations: [ LoginFormComponent ],
|
48
|
-
exports: [ LoginFormComponent ]
|
49
|
-
})
|
50
|
-
export class LoginFormModule { }
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
2
|
-
import { Component
|
2
|
+
import { Component } from '@angular/core';
|
3
3
|
import { Router, RouterModule } from '@angular/router';
|
4
4
|
import { DxFormModule } from 'devextreme-angular/ui/form';
|
5
5
|
import { DxLoadIndicatorModule } from 'devextreme-angular/ui/load-indicator';
|
@@ -12,7 +12,13 @@ const notificationText = 'We\'ve sent a link to reset your password. Check your
|
|
12
12
|
selector: 'app-reset-password-form',
|
13
13
|
templateUrl: './reset-password-form.component.html',
|
14
14
|
styleUrls: ['./reset-password-form.component.scss'],
|
15
|
-
standalone:
|
15
|
+
standalone: true,
|
16
|
+
imports: [
|
17
|
+
CommonModule,
|
18
|
+
RouterModule,
|
19
|
+
DxFormModule,
|
20
|
+
DxLoadIndicatorModule,
|
21
|
+
]
|
16
22
|
})
|
17
23
|
export class ResetPasswordFormComponent {
|
18
24
|
loading = false;
|
@@ -36,14 +42,3 @@ export class ResetPasswordFormComponent {
|
|
36
42
|
}
|
37
43
|
}
|
38
44
|
}
|
39
|
-
@NgModule({
|
40
|
-
imports: [
|
41
|
-
CommonModule,
|
42
|
-
RouterModule,
|
43
|
-
DxFormModule,
|
44
|
-
DxLoadIndicatorModule
|
45
|
-
],
|
46
|
-
declarations: [ResetPasswordFormComponent],
|
47
|
-
exports: [ResetPasswordFormComponent]
|
48
|
-
})
|
49
|
-
export class ResetPasswordFormModule { }
|
@@ -1,14 +1,15 @@
|
|
1
|
-
import { Component,
|
1
|
+
import { Component, Output, Input, EventEmitter, ViewChild, ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
|
2
2
|
import { DxTreeViewModule, DxTreeViewComponent, DxTreeViewTypes } from 'devextreme-angular/ui/tree-view';
|
3
3
|
import { navigation } from '../../../app-navigation';
|
4
4
|
|
5
|
-
import * as events from 'devextreme/events';
|
5
|
+
import * as events from 'devextreme-angular/common/core/events';
|
6
6
|
|
7
7
|
@Component({
|
8
8
|
selector: 'app-side-navigation-menu',
|
9
9
|
templateUrl: './side-navigation-menu.component.html',
|
10
10
|
styleUrls: ['./side-navigation-menu.component.scss'],
|
11
|
-
standalone:
|
11
|
+
standalone: true,
|
12
|
+
imports: [ DxTreeViewModule ]
|
12
13
|
})
|
13
14
|
export class SideNavigationMenuComponent implements AfterViewInit, OnDestroy {
|
14
15
|
@ViewChild(DxTreeViewComponent, { static: true })
|
@@ -80,10 +81,3 @@ export class SideNavigationMenuComponent implements AfterViewInit, OnDestroy {
|
|
80
81
|
events.off(this.elementRef.nativeElement, 'dxclick');
|
81
82
|
}
|
82
83
|
}
|
83
|
-
|
84
|
-
@NgModule({
|
85
|
-
imports: [ DxTreeViewModule ],
|
86
|
-
declarations: [ SideNavigationMenuComponent ],
|
87
|
-
exports: [ SideNavigationMenuComponent ]
|
88
|
-
})
|
89
|
-
export class SideNavigationMenuModule { }
|
package/src/add-layout/files/src/app/shared/components/theme-switcher/theme-switcher.component.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
Component, NgModule,
|
3
|
-
} from '@angular/core';
|
1
|
+
import { Component } from '@angular/core';
|
4
2
|
import { CommonModule } from '@angular/common';
|
5
3
|
import { DxButtonModule } from 'devextreme-angular';
|
6
4
|
import { ThemeService } from '../../services/theme.service';
|
@@ -15,7 +13,8 @@ import { ThemeService } from '../../services/theme.service';
|
|
15
13
|
(onClick)="onButtonClick()"
|
16
14
|
></dx-button>`,
|
17
15
|
styleUrls: [],
|
18
|
-
standalone:
|
16
|
+
standalone: true,
|
17
|
+
imports: [CommonModule, DxButtonModule],
|
19
18
|
})
|
20
19
|
export class ThemeSwitcherComponent {
|
21
20
|
constructor(public themeService: ThemeService) {}
|
@@ -24,10 +23,3 @@ export class ThemeSwitcherComponent {
|
|
24
23
|
this.themeService.switchTheme();
|
25
24
|
}
|
26
25
|
}
|
27
|
-
|
28
|
-
@NgModule({
|
29
|
-
imports: [CommonModule, DxButtonModule],
|
30
|
-
declarations: [ThemeSwitcherComponent],
|
31
|
-
exports: [ThemeSwitcherComponent],
|
32
|
-
})
|
33
|
-
export class ThemeSwitcherModule { }
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Component,
|
1
|
+
import { Component, Input } from '@angular/core';
|
2
2
|
import { CommonModule } from '@angular/common';
|
3
3
|
|
4
4
|
import { DxListModule } from 'devextreme-angular/ui/list';
|
@@ -9,9 +9,14 @@ import { DxContextMenuModule } from 'devextreme-angular/ui/context-menu';
|
|
9
9
|
selector: 'app-user-panel',
|
10
10
|
templateUrl: 'user-panel.component.html',
|
11
11
|
styleUrls: ['./user-panel.component.scss'],
|
12
|
-
standalone:
|
12
|
+
standalone: true,
|
13
|
+
imports: [
|
14
|
+
DxListModule,
|
15
|
+
DxContextMenuModule,
|
16
|
+
DxDropDownButtonModule,
|
17
|
+
CommonModule
|
18
|
+
]
|
13
19
|
})
|
14
|
-
|
15
20
|
export class UserPanelComponent {
|
16
21
|
@Input()
|
17
22
|
menuItems: any;
|
@@ -19,15 +24,3 @@ export class UserPanelComponent {
|
|
19
24
|
@Input()
|
20
25
|
menuMode = 'context';
|
21
26
|
}
|
22
|
-
|
23
|
-
@NgModule({
|
24
|
-
imports: [
|
25
|
-
DxListModule,
|
26
|
-
DxContextMenuModule,
|
27
|
-
DxDropDownButtonModule,
|
28
|
-
CommonModule
|
29
|
-
],
|
30
|
-
declarations: [ UserPanelComponent ],
|
31
|
-
exports: [ UserPanelComponent ]
|
32
|
-
})
|
33
|
-
export class UserPanelModule { }
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
2
|
-
import { Component
|
2
|
+
import { Component } from '@angular/core';
|
3
3
|
import { RouterModule } from '@angular/router';
|
4
|
-
import {
|
4
|
+
import { SingleCardComponent } from './layouts';
|
5
5
|
import { Router } from '@angular/router';
|
6
6
|
|
7
7
|
@Component({
|
@@ -17,7 +17,12 @@ import { Router } from '@angular/router';
|
|
17
17
|
height: 100%;
|
18
18
|
}
|
19
19
|
`],
|
20
|
-
standalone:
|
20
|
+
standalone: true,
|
21
|
+
imports: [
|
22
|
+
CommonModule,
|
23
|
+
RouterModule,
|
24
|
+
SingleCardComponent,
|
25
|
+
]
|
21
26
|
})
|
22
27
|
export class UnauthenticatedContentComponent {
|
23
28
|
|
@@ -42,13 +47,3 @@ export class UnauthenticatedContentComponent {
|
|
42
47
|
}
|
43
48
|
}
|
44
49
|
}
|
45
|
-
@NgModule({
|
46
|
-
imports: [
|
47
|
-
CommonModule,
|
48
|
-
RouterModule,
|
49
|
-
SingleCardModule,
|
50
|
-
],
|
51
|
-
declarations: [UnauthenticatedContentComponent],
|
52
|
-
exports: [UnauthenticatedContentComponent]
|
53
|
-
})
|
54
|
-
export class UnauthenticatedContentModule { }
|