@abp/ng.setting-management 5.0.1 → 5.0.2
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/README.md +3 -3
- package/abp-ng.setting-management.d.ts +5 -5
- package/bundles/abp-ng.setting-management-config.umd.js +525 -525
- package/bundles/abp-ng.setting-management-config.umd.js.map +1 -1
- package/bundles/abp-ng.setting-management.umd.js +88 -88
- package/bundles/abp-ng.setting-management.umd.js.map +1 -1
- package/config/abp-ng.setting-management-config.d.ts +5 -5
- package/config/components/email-setting-group/email-setting-group.component.d.ts +19 -19
- package/config/enums/index.d.ts +2 -2
- package/config/enums/route-names.d.ts +3 -3
- package/config/enums/setting-tab-names.d.ts +3 -3
- package/config/providers/features.token.d.ts +13 -13
- package/config/providers/index.d.ts +3 -3
- package/config/providers/route.provider.d.ts +16 -16
- package/config/providers/setting-tab.provider.d.ts +8 -8
- package/config/providers/visible.provider.d.ts +8 -8
- package/config/proxy/email-settings.service.d.ts +12 -12
- package/config/proxy/index.d.ts +2 -2
- package/config/proxy/models.d.ts +22 -22
- package/config/public-api.d.ts +6 -6
- package/config/services/index.d.ts +1 -1
- package/config/services/settings-tabs.service.d.ts +6 -6
- package/config/setting-management-config.module.d.ts +11 -11
- package/esm2015/abp-ng.setting-management.js +4 -4
- package/esm2015/config/abp-ng.setting-management-config.js +4 -4
- package/esm2015/config/components/email-setting-group/email-setting-group.component.js +64 -64
- package/esm2015/config/enums/index.js +3 -3
- package/esm2015/config/enums/route-names.js +2 -2
- package/esm2015/config/enums/setting-tab-names.js +2 -2
- package/esm2015/config/providers/features.token.js +30 -30
- package/esm2015/config/providers/index.js +4 -4
- package/esm2015/config/providers/route.provider.js +34 -34
- package/esm2015/config/providers/setting-tab.provider.js +24 -24
- package/esm2015/config/providers/visible.provider.js +26 -26
- package/esm2015/config/proxy/email-settings.service.js +28 -28
- package/esm2015/config/proxy/index.js +3 -3
- package/esm2015/config/proxy/models.js +2 -2
- package/esm2015/config/public-api.js +7 -7
- package/esm2015/config/services/index.js +2 -2
- package/esm2015/config/services/settings-tabs.service.js +12 -12
- package/esm2015/config/setting-management-config.module.js +34 -34
- package/esm2015/lib/components/setting-management.component.js +36 -36
- package/esm2015/lib/enums/components.js +2 -2
- package/esm2015/lib/enums/index.js +3 -3
- package/esm2015/lib/enums/route-names.js +2 -2
- package/esm2015/lib/setting-management-routing.module.js +39 -39
- package/esm2015/lib/setting-management.module.js +30 -30
- package/esm2015/public-api.js +4 -4
- package/fesm2015/abp-ng.setting-management-config.js +195 -195
- package/fesm2015/abp-ng.setting-management-config.js.map +1 -1
- package/fesm2015/abp-ng.setting-management.js +80 -80
- package/fesm2015/abp-ng.setting-management.js.map +1 -1
- package/lib/components/setting-management.component.d.ts +16 -16
- package/lib/enums/components.d.ts +3 -3
- package/lib/enums/index.d.ts +2 -2
- package/lib/enums/route-names.d.ts +3 -3
- package/lib/setting-management-routing.module.d.ts +7 -7
- package/lib/setting-management.module.d.ts +14 -14
- package/package.json +4 -4
- package/public-api.d.ts +3 -3
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { AuthGuard, ReplaceableRouteContainerComponent, RouterOutletComponent, } from '@abp/ng.core';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { RouterModule } from '@angular/router';
|
|
4
|
-
import { SettingManagementComponent } from './components/setting-management.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/router";
|
|
7
|
-
const routes = [
|
|
8
|
-
{
|
|
9
|
-
path: '',
|
|
10
|
-
component: RouterOutletComponent,
|
|
11
|
-
canActivate: [AuthGuard],
|
|
12
|
-
children: [
|
|
13
|
-
{
|
|
14
|
-
path: '',
|
|
15
|
-
component: ReplaceableRouteContainerComponent,
|
|
16
|
-
data: {
|
|
17
|
-
requiredPolicy: 'AbpAccount.SettingManagement',
|
|
18
|
-
replaceableComponent: {
|
|
19
|
-
key: "SettingManagement.SettingManagementComponent" /* SettingManagement */,
|
|
20
|
-
defaultComponent: SettingManagementComponent,
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
];
|
|
27
|
-
export class SettingManagementRoutingModule {
|
|
28
|
-
}
|
|
29
|
-
SettingManagementRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
30
|
-
SettingManagementRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
|
|
31
|
-
SettingManagementRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementRoutingModule, imports: [[RouterModule.forChild(routes)], RouterModule] });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementRoutingModule, decorators: [{
|
|
33
|
-
type: NgModule,
|
|
34
|
-
args: [{
|
|
35
|
-
imports: [RouterModule.forChild(routes)],
|
|
36
|
-
exports: [RouterModule],
|
|
37
|
-
}]
|
|
38
|
-
}] });
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { AuthGuard, ReplaceableRouteContainerComponent, RouterOutletComponent, } from '@abp/ng.core';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { RouterModule } from '@angular/router';
|
|
4
|
+
import { SettingManagementComponent } from './components/setting-management.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/router";
|
|
7
|
+
const routes = [
|
|
8
|
+
{
|
|
9
|
+
path: '',
|
|
10
|
+
component: RouterOutletComponent,
|
|
11
|
+
canActivate: [AuthGuard],
|
|
12
|
+
children: [
|
|
13
|
+
{
|
|
14
|
+
path: '',
|
|
15
|
+
component: ReplaceableRouteContainerComponent,
|
|
16
|
+
data: {
|
|
17
|
+
requiredPolicy: 'AbpAccount.SettingManagement',
|
|
18
|
+
replaceableComponent: {
|
|
19
|
+
key: "SettingManagement.SettingManagementComponent" /* SettingManagement */,
|
|
20
|
+
defaultComponent: SettingManagementComponent,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
export class SettingManagementRoutingModule {
|
|
28
|
+
}
|
|
29
|
+
SettingManagementRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
30
|
+
SettingManagementRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
|
|
31
|
+
SettingManagementRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementRoutingModule, imports: [[RouterModule.forChild(routes)], RouterModule] });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementRoutingModule, decorators: [{
|
|
33
|
+
type: NgModule,
|
|
34
|
+
args: [{
|
|
35
|
+
imports: [RouterModule.forChild(routes)],
|
|
36
|
+
exports: [RouterModule],
|
|
37
|
+
}]
|
|
38
|
+
}] });
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0dGluZy1tYW5hZ2VtZW50LXJvdXRpbmcubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvc2V0dGlu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gICAgICAgICAgICBrZXk6IGVTZXR0aW5nTWFuYWdlbWVudENvbXBvbmVudHMuU2V0dGluZ01hbmFnZW1lbnQsXG4gICAgICAgICAgICBkZWZhdWx0Q29tcG9uZW50OiBTZXR0aW5nTWFuYWdlbWVudENvbXBvbmVudCxcbiAgICAgICAgICB9IGFzIFJlcGxhY2VhYmxlQ29tcG9uZW50cy5Sb3V0ZURhdGEsXG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgIF0sXG4gIH0sXG5dO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbUm91dGVyTW9kdWxlLmZvckNoaWxkKHJvdXRlcyldLFxuICBleHBvcnRzOiBbUm91dGVyTW9kdWxlXSxcbn0pXG5leHBvcnQgY2xhc3MgU2V0dGluZ01hbmFnZW1lbnRSb3V0aW5nTW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { PageModule } from '@abp/ng.components/page';
|
|
2
|
-
import { CoreModule, LazyModuleFactory } from '@abp/ng.core';
|
|
3
|
-
import { ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
4
|
-
import { NgModule } from '@angular/core';
|
|
5
|
-
import { SettingManagementComponent } from './components/setting-management.component';
|
|
6
|
-
import { SettingManagementRoutingModule } from './setting-management-routing.module';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export class SettingManagementModule {
|
|
9
|
-
static forChild() {
|
|
10
|
-
return {
|
|
11
|
-
ngModule: SettingManagementModule,
|
|
12
|
-
providers: [],
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
static forLazy() {
|
|
16
|
-
return new LazyModuleFactory(SettingManagementModule.forChild());
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
SettingManagementModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20
|
-
SettingManagementModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementModule, declarations: [SettingManagementComponent], imports: [SettingManagementRoutingModule, CoreModule, ThemeSharedModule, PageModule], exports: [SettingManagementComponent] });
|
|
21
|
-
SettingManagementModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementModule, imports: [[SettingManagementRoutingModule, CoreModule, ThemeSharedModule, PageModule]] });
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementModule, decorators: [{
|
|
23
|
-
type: NgModule,
|
|
24
|
-
args: [{
|
|
25
|
-
declarations: [SettingManagementComponent],
|
|
26
|
-
exports: [SettingManagementComponent],
|
|
27
|
-
imports: [SettingManagementRoutingModule, CoreModule, ThemeSharedModule, PageModule],
|
|
28
|
-
}]
|
|
29
|
-
}] });
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { PageModule } from '@abp/ng.components/page';
|
|
2
|
+
import { CoreModule, LazyModuleFactory } from '@abp/ng.core';
|
|
3
|
+
import { ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
4
|
+
import { NgModule } from '@angular/core';
|
|
5
|
+
import { SettingManagementComponent } from './components/setting-management.component';
|
|
6
|
+
import { SettingManagementRoutingModule } from './setting-management-routing.module';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class SettingManagementModule {
|
|
9
|
+
static forChild() {
|
|
10
|
+
return {
|
|
11
|
+
ngModule: SettingManagementModule,
|
|
12
|
+
providers: [],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
static forLazy() {
|
|
16
|
+
return new LazyModuleFactory(SettingManagementModule.forChild());
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
SettingManagementModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20
|
+
SettingManagementModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementModule, declarations: [SettingManagementComponent], imports: [SettingManagementRoutingModule, CoreModule, ThemeSharedModule, PageModule], exports: [SettingManagementComponent] });
|
|
21
|
+
SettingManagementModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementModule, imports: [[SettingManagementRoutingModule, CoreModule, ThemeSharedModule, PageModule]] });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementModule, decorators: [{
|
|
23
|
+
type: NgModule,
|
|
24
|
+
args: [{
|
|
25
|
+
declarations: [SettingManagementComponent],
|
|
26
|
+
exports: [SettingManagementComponent],
|
|
27
|
+
imports: [SettingManagementRoutingModule, CoreModule, ThemeSharedModule, PageModule],
|
|
28
|
+
}]
|
|
29
|
+
}] });
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0dGluZy1tYW5hZ2VtZW50Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3NldHRpbmctbWFuYWdlbWVudC9zcmMvbGliL3NldHRpbmctbWFuYWdlbWVudC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQ3JELE9BQU8sRUFBRSxVQUFVLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDN0QsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDekQsT0FBTyxFQU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1xuICAgIHJldHVybiBuZXcgTGF6eU1vZHVsZUZhY3RvcnkoU2V0dGluZ01hbmFnZW1lbnRNb2R1bGUuZm9yQ2hpbGQoKSk7XG4gIH1cbn1cbiJdfQ==
|
package/esm2015/public-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './lib/setting-management.module';
|
|
2
|
-
export * from './lib/components/setting-management.component';
|
|
3
|
-
export * from './lib/enums';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './lib/setting-management.module';
|
|
2
|
+
export * from './lib/components/setting-management.component';
|
|
3
|
+
export * from './lib/enums';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL3NldHRpbmctbWFuYWdlbWVudC9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsK0NBQStDLENBQUM7QUFDOUQsY0FBYyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9zZXR0aW5nLW1hbmFnZW1lbnQubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvc2V0dGluZy1tYW5hZ2VtZW50LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9lbnVtcyc7XG4iXX0=
|
|
@@ -12,217 +12,217 @@ import * as i6 from '@ngx-validate/core';
|
|
|
12
12
|
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
13
13
|
import { combineLatest } from 'rxjs';
|
|
14
14
|
|
|
15
|
-
class EmailSettingsService {
|
|
16
|
-
constructor(restService) {
|
|
17
|
-
this.restService = restService;
|
|
18
|
-
this.apiName = 'SettingManagement';
|
|
19
|
-
this.get = () => this.restService.request({
|
|
20
|
-
method: 'GET',
|
|
21
|
-
url: '/api/setting-management/emailing',
|
|
22
|
-
}, { apiName: this.apiName });
|
|
23
|
-
this.update = (input) => this.restService.request({
|
|
24
|
-
method: 'POST',
|
|
25
|
-
url: '/api/setting-management/emailing',
|
|
26
|
-
body: input,
|
|
27
|
-
}, { apiName: this.apiName });
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
EmailSettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EmailSettingsService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
-
EmailSettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EmailSettingsService, providedIn: 'root' });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EmailSettingsService, decorators: [{
|
|
33
|
-
type: Injectable,
|
|
34
|
-
args: [{
|
|
35
|
-
providedIn: 'root',
|
|
36
|
-
}]
|
|
15
|
+
class EmailSettingsService {
|
|
16
|
+
constructor(restService) {
|
|
17
|
+
this.restService = restService;
|
|
18
|
+
this.apiName = 'SettingManagement';
|
|
19
|
+
this.get = () => this.restService.request({
|
|
20
|
+
method: 'GET',
|
|
21
|
+
url: '/api/setting-management/emailing',
|
|
22
|
+
}, { apiName: this.apiName });
|
|
23
|
+
this.update = (input) => this.restService.request({
|
|
24
|
+
method: 'POST',
|
|
25
|
+
url: '/api/setting-management/emailing',
|
|
26
|
+
body: input,
|
|
27
|
+
}, { apiName: this.apiName });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
EmailSettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EmailSettingsService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
+
EmailSettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EmailSettingsService, providedIn: 'root' });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EmailSettingsService, decorators: [{
|
|
33
|
+
type: Injectable,
|
|
34
|
+
args: [{
|
|
35
|
+
providedIn: 'root',
|
|
36
|
+
}]
|
|
37
37
|
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
38
38
|
|
|
39
|
-
class EmailSettingGroupComponent {
|
|
40
|
-
constructor(emailSettingsService, fb, toasterService) {
|
|
41
|
-
this.emailSettingsService = emailSettingsService;
|
|
42
|
-
this.fb = fb;
|
|
43
|
-
this.toasterService = toasterService;
|
|
44
|
-
this.saving = false;
|
|
45
|
-
}
|
|
46
|
-
ngOnInit() {
|
|
47
|
-
this.getData();
|
|
48
|
-
}
|
|
49
|
-
getData() {
|
|
50
|
-
this.emailSettingsService.get().subscribe(res => {
|
|
51
|
-
this.buildForm(res);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
buildForm(emailSettings) {
|
|
55
|
-
this.form = this.fb.group({
|
|
56
|
-
defaultFromDisplayName: [emailSettings.defaultFromDisplayName, [Validators.required]],
|
|
57
|
-
defaultFromAddress: [emailSettings.defaultFromAddress, [Validators.required]],
|
|
58
|
-
smtpHost: [emailSettings.smtpHost],
|
|
59
|
-
smtpPort: [emailSettings.smtpPort, [Validators.required]],
|
|
60
|
-
smtpEnableSsl: [emailSettings.smtpEnableSsl],
|
|
61
|
-
smtpUseDefaultCredentials: [emailSettings.smtpUseDefaultCredentials],
|
|
62
|
-
smtpDomain: [emailSettings.smtpDomain],
|
|
63
|
-
smtpUserName: [emailSettings.smtpUserName],
|
|
64
|
-
smtpPassword: [emailSettings.smtpPassword],
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
submit() {
|
|
68
|
-
if (this.saving || this.form.invalid)
|
|
69
|
-
return;
|
|
70
|
-
this.saving = true;
|
|
71
|
-
this.emailSettingsService
|
|
72
|
-
.update(this.form.value)
|
|
73
|
-
.pipe(finalize(() => (this.saving = false)))
|
|
74
|
-
.subscribe(() => {
|
|
75
|
-
this.toasterService.success('AbpSettingManagement::SuccessfullySaved');
|
|
76
|
-
this.getData();
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
EmailSettingGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EmailSettingGroupComponent, deps: [{ token: EmailSettingsService }, { token: i2.FormBuilder }, { token: i3.ToasterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
-
EmailSettingGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: EmailSettingGroupComponent, selector: "abp-email-setting-group", ngImport: i0, template: "<h2>{{ 'AbpSettingManagement::Menu:Emailing' | abpLocalization }}</h2>\
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EmailSettingGroupComponent, decorators: [{
|
|
83
|
-
type: Component,
|
|
84
|
-
args: [{
|
|
85
|
-
selector: 'abp-email-setting-group',
|
|
86
|
-
templateUrl: 'email-setting-group.component.html',
|
|
87
|
-
animations: [collapse],
|
|
88
|
-
}]
|
|
39
|
+
class EmailSettingGroupComponent {
|
|
40
|
+
constructor(emailSettingsService, fb, toasterService) {
|
|
41
|
+
this.emailSettingsService = emailSettingsService;
|
|
42
|
+
this.fb = fb;
|
|
43
|
+
this.toasterService = toasterService;
|
|
44
|
+
this.saving = false;
|
|
45
|
+
}
|
|
46
|
+
ngOnInit() {
|
|
47
|
+
this.getData();
|
|
48
|
+
}
|
|
49
|
+
getData() {
|
|
50
|
+
this.emailSettingsService.get().subscribe(res => {
|
|
51
|
+
this.buildForm(res);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
buildForm(emailSettings) {
|
|
55
|
+
this.form = this.fb.group({
|
|
56
|
+
defaultFromDisplayName: [emailSettings.defaultFromDisplayName, [Validators.required]],
|
|
57
|
+
defaultFromAddress: [emailSettings.defaultFromAddress, [Validators.required]],
|
|
58
|
+
smtpHost: [emailSettings.smtpHost],
|
|
59
|
+
smtpPort: [emailSettings.smtpPort, [Validators.required]],
|
|
60
|
+
smtpEnableSsl: [emailSettings.smtpEnableSsl],
|
|
61
|
+
smtpUseDefaultCredentials: [emailSettings.smtpUseDefaultCredentials],
|
|
62
|
+
smtpDomain: [emailSettings.smtpDomain],
|
|
63
|
+
smtpUserName: [emailSettings.smtpUserName],
|
|
64
|
+
smtpPassword: [emailSettings.smtpPassword],
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
submit() {
|
|
68
|
+
if (this.saving || this.form.invalid)
|
|
69
|
+
return;
|
|
70
|
+
this.saving = true;
|
|
71
|
+
this.emailSettingsService
|
|
72
|
+
.update(this.form.value)
|
|
73
|
+
.pipe(finalize(() => (this.saving = false)))
|
|
74
|
+
.subscribe(() => {
|
|
75
|
+
this.toasterService.success('AbpSettingManagement::SuccessfullySaved');
|
|
76
|
+
this.getData();
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
EmailSettingGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EmailSettingGroupComponent, deps: [{ token: EmailSettingsService }, { token: i2.FormBuilder }, { token: i3.ToasterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
+
EmailSettingGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: EmailSettingGroupComponent, selector: "abp-email-setting-group", ngImport: i0, template: "<h2>{{ 'AbpSettingManagement::Menu:Emailing' | abpLocalization }}</h2>\n\n<hr class=\"my-3\" />\n\n<form *ngIf=\"form\" [formGroup]=\"form\" (ngSubmit)=\"submit()\" [validateOnSubmit]=\"true\">\n <div class=\"mb-3 form-group\">\n <label class=\"form-label\">{{\n 'AbpSettingManagement::DefaultFromDisplayName' | abpLocalization\n }}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"defaultFromDisplayName\" />\n </div>\n <div class=\"mb-3 form-group\">\n <label class=\"form-label\">{{\n 'AbpSettingManagement::DefaultFromAddress' | abpLocalization\n }}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"defaultFromAddress\" />\n </div>\n <div class=\"mb-3 form-group\">\n <label class=\"form-label\">{{ 'AbpSettingManagement::SmtpHost' | abpLocalization }}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"smtpHost\" />\n </div>\n <div class=\"mb-3 form-group\">\n <label class=\"form-label\">{{ 'AbpSettingManagement::SmtpPort' | abpLocalization }}</label>\n <input type=\"number\" class=\"form-control\" formControlName=\"smtpPort\" />\n </div>\n\n <div class=\"form-check mb-2\">\n <input\n type=\"checkbox\"\n id=\"smtp-enable-ssl\"\n class=\"form-check-input\"\n formControlName=\"smtpEnableSsl\"\n />\n <label class=\"form-check-label\" for=\"smtp-enable-ssl\">{{\n 'AbpSettingManagement::SmtpEnableSsl' | abpLocalization\n }}</label>\n </div>\n <div class=\"form-check mb-2\">\n <input\n type=\"checkbox\"\n id=\"smtp-use-default-credentials\"\n class=\"form-check-input\"\n formControlName=\"smtpUseDefaultCredentials\"\n />\n <label class=\"form-check-label\" for=\"smtp-use-default-credentials\">{{\n 'AbpSettingManagement::SmtpUseDefaultCredentials' | abpLocalization\n }}</label>\n </div>\n\n <div\n [@collapse]=\"{\n value: form.get('smtpUseDefaultCredentials')?.value ? 'collapsed' : 'expanded',\n params: { time: '200ms', easing: 'linear' }\n }\"\n >\n <div class=\"mb-3 form-group\">\n <label class=\"form-label\">{{ 'AbpSettingManagement::SmtpDomain' | abpLocalization }}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"smtpDomain\" />\n </div>\n\n <div class=\"mb-3 form-group\">\n <label class=\"form-label\">{{ 'AbpSettingManagement::SmtpUserName' | abpLocalization }}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"smtpUserName\" />\n </div>\n\n <div class=\"mb-3 form-group\">\n <label class=\"form-label\">{{ 'AbpSettingManagement::SmtpPassword' | abpLocalization }}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"smtpPassword\" />\n </div>\n </div>\n\n <hr />\n\n <button type=\"submit\" class=\"btn btn-primary\">\n {{ 'AbpSettingManagement::Save' | abpLocalization }}\n </button>\n</form>\n", directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i6.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { type: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }], pipes: { "abpLocalization": i1.LocalizationPipe }, animations: [collapse] });
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EmailSettingGroupComponent, decorators: [{
|
|
83
|
+
type: Component,
|
|
84
|
+
args: [{
|
|
85
|
+
selector: 'abp-email-setting-group',
|
|
86
|
+
templateUrl: 'email-setting-group.component.html',
|
|
87
|
+
animations: [collapse],
|
|
88
|
+
}]
|
|
89
89
|
}], ctorParameters: function () { return [{ type: EmailSettingsService }, { type: i2.FormBuilder }, { type: i3.ToasterService }]; } });
|
|
90
90
|
|
|
91
|
-
class SettingTabsService extends AbstractNavTreeService {
|
|
92
|
-
}
|
|
93
|
-
SettingTabsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingTabsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
94
|
-
SettingTabsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingTabsService, providedIn: 'root' });
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingTabsService, decorators: [{
|
|
96
|
-
type: Injectable,
|
|
97
|
-
args: [{ providedIn: 'root' }]
|
|
91
|
+
class SettingTabsService extends AbstractNavTreeService {
|
|
92
|
+
}
|
|
93
|
+
SettingTabsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingTabsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
94
|
+
SettingTabsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingTabsService, providedIn: 'root' });
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingTabsService, decorators: [{
|
|
96
|
+
type: Injectable,
|
|
97
|
+
args: [{ providedIn: 'root' }]
|
|
98
98
|
}] });
|
|
99
99
|
|
|
100
|
-
function configureRoutes(routesService) {
|
|
101
|
-
return () => {
|
|
102
|
-
routesService.add([
|
|
103
|
-
{
|
|
104
|
-
name: "AbpSettingManagement::Settings" /* Settings */,
|
|
105
|
-
path: '/setting-management',
|
|
106
|
-
parentName: "AbpUiNavigation::Menu:Administration" /* Administration */,
|
|
107
|
-
layout: "application" /* application */,
|
|
108
|
-
order: 100,
|
|
109
|
-
iconClass: 'fa fa-cog',
|
|
110
|
-
},
|
|
111
|
-
]);
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
const SETTING_MANAGEMENT_HAS_SETTING = new InjectionToken('SETTING_MANAGEMENT_HAS_SETTING', {
|
|
115
|
-
factory: () => {
|
|
116
|
-
const settingTabsService = inject(SettingTabsService);
|
|
117
|
-
return settingTabsService.visible$.pipe(debounceTime(0), map(nodes => !!nodes.length));
|
|
118
|
-
},
|
|
119
|
-
});
|
|
120
|
-
const SETTING_MANAGEMENT_ROUTE_PROVIDERS = [
|
|
121
|
-
{ provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },
|
|
122
|
-
{
|
|
123
|
-
provide: APP_INITIALIZER,
|
|
124
|
-
useFactory: noop,
|
|
125
|
-
deps: [SETTING_MANAGEMENT_HAS_SETTING],
|
|
126
|
-
multi: true,
|
|
127
|
-
},
|
|
100
|
+
function configureRoutes(routesService) {
|
|
101
|
+
return () => {
|
|
102
|
+
routesService.add([
|
|
103
|
+
{
|
|
104
|
+
name: "AbpSettingManagement::Settings" /* Settings */,
|
|
105
|
+
path: '/setting-management',
|
|
106
|
+
parentName: "AbpUiNavigation::Menu:Administration" /* Administration */,
|
|
107
|
+
layout: "application" /* application */,
|
|
108
|
+
order: 100,
|
|
109
|
+
iconClass: 'fa fa-cog',
|
|
110
|
+
},
|
|
111
|
+
]);
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
const SETTING_MANAGEMENT_HAS_SETTING = new InjectionToken('SETTING_MANAGEMENT_HAS_SETTING', {
|
|
115
|
+
factory: () => {
|
|
116
|
+
const settingTabsService = inject(SettingTabsService);
|
|
117
|
+
return settingTabsService.visible$.pipe(debounceTime(0), map(nodes => !!nodes.length));
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
const SETTING_MANAGEMENT_ROUTE_PROVIDERS = [
|
|
121
|
+
{ provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },
|
|
122
|
+
{
|
|
123
|
+
provide: APP_INITIALIZER,
|
|
124
|
+
useFactory: noop,
|
|
125
|
+
deps: [SETTING_MANAGEMENT_HAS_SETTING],
|
|
126
|
+
multi: true,
|
|
127
|
+
},
|
|
128
128
|
];
|
|
129
129
|
|
|
130
|
-
const SETTING_MANAGEMENT_SETTING_TAB_PROVIDERS = [
|
|
131
|
-
{
|
|
132
|
-
provide: APP_INITIALIZER,
|
|
133
|
-
useFactory: configureSettingTabs,
|
|
134
|
-
deps: [SettingTabsService],
|
|
135
|
-
multi: true,
|
|
136
|
-
},
|
|
137
|
-
];
|
|
138
|
-
function configureSettingTabs(settingTabs) {
|
|
139
|
-
return () => {
|
|
140
|
-
settingTabs.add([
|
|
141
|
-
{
|
|
142
|
-
name: "AbpSettingManagement::Menu:Emailing" /* EmailSettingGroup */,
|
|
143
|
-
order: 100,
|
|
144
|
-
requiredPolicy: 'SettingManagement.Emailing',
|
|
145
|
-
component: EmailSettingGroupComponent,
|
|
146
|
-
},
|
|
147
|
-
]);
|
|
148
|
-
};
|
|
130
|
+
const SETTING_MANAGEMENT_SETTING_TAB_PROVIDERS = [
|
|
131
|
+
{
|
|
132
|
+
provide: APP_INITIALIZER,
|
|
133
|
+
useFactory: configureSettingTabs,
|
|
134
|
+
deps: [SettingTabsService],
|
|
135
|
+
multi: true,
|
|
136
|
+
},
|
|
137
|
+
];
|
|
138
|
+
function configureSettingTabs(settingTabs) {
|
|
139
|
+
return () => {
|
|
140
|
+
settingTabs.add([
|
|
141
|
+
{
|
|
142
|
+
name: "AbpSettingManagement::Menu:Emailing" /* EmailSettingGroup */,
|
|
143
|
+
order: 100,
|
|
144
|
+
requiredPolicy: 'SettingManagement.Emailing',
|
|
145
|
+
component: EmailSettingGroupComponent,
|
|
146
|
+
},
|
|
147
|
+
]);
|
|
148
|
+
};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
const SETTING_MANAGEMENT_FEATURES = new InjectionToken('SETTING_MANAGEMENT_FEATURES', {
|
|
152
|
-
providedIn: 'root',
|
|
153
|
-
factory: () => {
|
|
154
|
-
const configState = inject(ConfigStateService);
|
|
155
|
-
const featureKey = 'SettingManagement.Enable';
|
|
156
|
-
const mapFn = (features) => ({
|
|
157
|
-
enable: features[featureKey].toLowerCase() !== 'false',
|
|
158
|
-
});
|
|
159
|
-
return featuresFactory(configState, [featureKey], mapFn);
|
|
160
|
-
},
|
|
161
|
-
});
|
|
162
|
-
const SETTING_MANAGEMENT_ROUTE_VISIBILITY = new InjectionToken('SETTING_MANAGEMENT_ROUTE_VISIBILITY', {
|
|
163
|
-
providedIn: 'root',
|
|
164
|
-
factory: () => {
|
|
165
|
-
const stream = inject(SETTING_MANAGEMENT_FEATURES);
|
|
166
|
-
return stream.pipe(map(features => features.enable));
|
|
167
|
-
},
|
|
168
|
-
});
|
|
169
|
-
const SETTING_MANAGEMENT_FEATURES_PROVIDERS = [
|
|
170
|
-
{
|
|
171
|
-
provide: APP_INITIALIZER,
|
|
172
|
-
useFactory: noop,
|
|
173
|
-
deps: [SETTING_MANAGEMENT_ROUTE_VISIBILITY],
|
|
174
|
-
multi: true,
|
|
175
|
-
},
|
|
151
|
+
const SETTING_MANAGEMENT_FEATURES = new InjectionToken('SETTING_MANAGEMENT_FEATURES', {
|
|
152
|
+
providedIn: 'root',
|
|
153
|
+
factory: () => {
|
|
154
|
+
const configState = inject(ConfigStateService);
|
|
155
|
+
const featureKey = 'SettingManagement.Enable';
|
|
156
|
+
const mapFn = (features) => ({
|
|
157
|
+
enable: features[featureKey].toLowerCase() !== 'false',
|
|
158
|
+
});
|
|
159
|
+
return featuresFactory(configState, [featureKey], mapFn);
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
const SETTING_MANAGEMENT_ROUTE_VISIBILITY = new InjectionToken('SETTING_MANAGEMENT_ROUTE_VISIBILITY', {
|
|
163
|
+
providedIn: 'root',
|
|
164
|
+
factory: () => {
|
|
165
|
+
const stream = inject(SETTING_MANAGEMENT_FEATURES);
|
|
166
|
+
return stream.pipe(map(features => features.enable));
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
const SETTING_MANAGEMENT_FEATURES_PROVIDERS = [
|
|
170
|
+
{
|
|
171
|
+
provide: APP_INITIALIZER,
|
|
172
|
+
useFactory: noop,
|
|
173
|
+
deps: [SETTING_MANAGEMENT_ROUTE_VISIBILITY],
|
|
174
|
+
multi: true,
|
|
175
|
+
},
|
|
176
176
|
];
|
|
177
177
|
|
|
178
|
-
const SETTING_MANAGEMENT_VISIBLE_PROVIDERS = [
|
|
179
|
-
{
|
|
180
|
-
provide: APP_INITIALIZER,
|
|
181
|
-
useFactory: setSettingManagementVisibility,
|
|
182
|
-
deps: [Injector],
|
|
183
|
-
multi: true,
|
|
184
|
-
},
|
|
185
|
-
];
|
|
186
|
-
function setSettingManagementVisibility(injector) {
|
|
187
|
-
return () => {
|
|
188
|
-
const settingManagementHasSetting$ = injector.get(SETTING_MANAGEMENT_HAS_SETTING);
|
|
189
|
-
const isSettingManagementFeatureEnable$ = injector.get(SETTING_MANAGEMENT_ROUTE_VISIBILITY);
|
|
190
|
-
const routes = injector.get(RoutesService);
|
|
191
|
-
combineLatest([settingManagementHasSetting$, isSettingManagementFeatureEnable$]).subscribe(([settingManagementHasSetting, isSettingManagementFeatureEnable]) => {
|
|
192
|
-
routes.patch("AbpSettingManagement::Settings" /* Settings */, {
|
|
193
|
-
invisible: !(settingManagementHasSetting && isSettingManagementFeatureEnable),
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
};
|
|
178
|
+
const SETTING_MANAGEMENT_VISIBLE_PROVIDERS = [
|
|
179
|
+
{
|
|
180
|
+
provide: APP_INITIALIZER,
|
|
181
|
+
useFactory: setSettingManagementVisibility,
|
|
182
|
+
deps: [Injector],
|
|
183
|
+
multi: true,
|
|
184
|
+
},
|
|
185
|
+
];
|
|
186
|
+
function setSettingManagementVisibility(injector) {
|
|
187
|
+
return () => {
|
|
188
|
+
const settingManagementHasSetting$ = injector.get(SETTING_MANAGEMENT_HAS_SETTING);
|
|
189
|
+
const isSettingManagementFeatureEnable$ = injector.get(SETTING_MANAGEMENT_ROUTE_VISIBILITY);
|
|
190
|
+
const routes = injector.get(RoutesService);
|
|
191
|
+
combineLatest([settingManagementHasSetting$, isSettingManagementFeatureEnable$]).subscribe(([settingManagementHasSetting, isSettingManagementFeatureEnable]) => {
|
|
192
|
+
routes.patch("AbpSettingManagement::Settings" /* Settings */, {
|
|
193
|
+
invisible: !(settingManagementHasSetting && isSettingManagementFeatureEnable),
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
class SettingManagementConfigModule {
|
|
200
|
-
static forRoot() {
|
|
201
|
-
return {
|
|
202
|
-
ngModule: SettingManagementConfigModule,
|
|
203
|
-
providers: [
|
|
204
|
-
SETTING_MANAGEMENT_ROUTE_PROVIDERS,
|
|
205
|
-
SETTING_MANAGEMENT_SETTING_TAB_PROVIDERS,
|
|
206
|
-
SETTING_MANAGEMENT_FEATURES_PROVIDERS,
|
|
207
|
-
SETTING_MANAGEMENT_VISIBLE_PROVIDERS,
|
|
208
|
-
],
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
SettingManagementConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
213
|
-
SettingManagementConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementConfigModule, declarations: [EmailSettingGroupComponent], imports: [CoreModule, NgxValidateCoreModule], exports: [EmailSettingGroupComponent] });
|
|
214
|
-
SettingManagementConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementConfigModule, imports: [[CoreModule, NgxValidateCoreModule]] });
|
|
215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementConfigModule, decorators: [{
|
|
216
|
-
type: NgModule,
|
|
217
|
-
args: [{
|
|
218
|
-
imports: [CoreModule, NgxValidateCoreModule],
|
|
219
|
-
declarations: [EmailSettingGroupComponent],
|
|
220
|
-
exports: [EmailSettingGroupComponent],
|
|
221
|
-
}]
|
|
199
|
+
class SettingManagementConfigModule {
|
|
200
|
+
static forRoot() {
|
|
201
|
+
return {
|
|
202
|
+
ngModule: SettingManagementConfigModule,
|
|
203
|
+
providers: [
|
|
204
|
+
SETTING_MANAGEMENT_ROUTE_PROVIDERS,
|
|
205
|
+
SETTING_MANAGEMENT_SETTING_TAB_PROVIDERS,
|
|
206
|
+
SETTING_MANAGEMENT_FEATURES_PROVIDERS,
|
|
207
|
+
SETTING_MANAGEMENT_VISIBLE_PROVIDERS,
|
|
208
|
+
],
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
SettingManagementConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
213
|
+
SettingManagementConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementConfigModule, declarations: [EmailSettingGroupComponent], imports: [CoreModule, NgxValidateCoreModule], exports: [EmailSettingGroupComponent] });
|
|
214
|
+
SettingManagementConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementConfigModule, imports: [[CoreModule, NgxValidateCoreModule]] });
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SettingManagementConfigModule, decorators: [{
|
|
216
|
+
type: NgModule,
|
|
217
|
+
args: [{
|
|
218
|
+
imports: [CoreModule, NgxValidateCoreModule],
|
|
219
|
+
declarations: [EmailSettingGroupComponent],
|
|
220
|
+
exports: [EmailSettingGroupComponent],
|
|
221
|
+
}]
|
|
222
222
|
}] });
|
|
223
223
|
|
|
224
|
-
/**
|
|
225
|
-
* Generated bundle index. Do not edit.
|
|
224
|
+
/**
|
|
225
|
+
* Generated bundle index. Do not edit.
|
|
226
226
|
*/
|
|
227
227
|
|
|
228
228
|
export { EmailSettingGroupComponent, EmailSettingsService, SETTING_MANAGEMENT_HAS_SETTING, SETTING_MANAGEMENT_ROUTE_PROVIDERS, SETTING_MANAGEMENT_SETTING_TAB_PROVIDERS, SETTING_MANAGEMENT_VISIBLE_PROVIDERS, SettingManagementConfigModule, SettingTabsService, configureRoutes, configureSettingTabs, setSettingManagementVisibility };
|