You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/npm/ng-packs/dist/setting-management-config/fesm2015/abp-ng.setting-management.c...

81 lines
2.8 KiB

import { Injectable, ɵɵdefineInjectable, ɵɵinject, NgModule, APP_INITIALIZER } from '@angular/core';
import { addAbpRoutes, PatchRouteByName, noop } from '@abp/ng.core';
import { getSettingTabs } from '@abp/ng.theme.shared';
import { Store } from '@ngxs/store';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class SettingManagementConfigService {
/**
* @param {?} store
*/
constructor(store) {
this.store = store;
/** @type {?} */
const route = (/** @type {?} */ ({
name: 'AbpSettingManagement::Settings',
path: 'setting-management',
parentName: 'AbpUiNavigation::Menu:Administration',
layout: "application" /* application */,
order: 6,
iconClass: 'fa fa-cog',
}));
addAbpRoutes(route);
setTimeout((/**
* @return {?}
*/
() => {
/** @type {?} */
const tabs = getSettingTabs();
if (!tabs || !tabs.length) {
this.store.dispatch(new PatchRouteByName('AbpSettingManagement::Settings', Object.assign({}, route, { invisible: true })));
}
}));
}
}
SettingManagementConfigService.decorators = [
{ type: Injectable, args: [{
providedIn: 'root',
},] }
];
/** @nocollapse */
SettingManagementConfigService.ctorParameters = () => [
{ type: Store }
];
/** @nocollapse */ SettingManagementConfigService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SettingManagementConfigService_Factory() { return new SettingManagementConfigService(ɵɵinject(Store)); }, token: SettingManagementConfigService, providedIn: "root" });
if (false) {
/**
* @type {?}
* @private
*/
SettingManagementConfigService.prototype.store;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
const ɵ0 = noop;
class SettingManagementConfigModule {
}
SettingManagementConfigModule.decorators = [
{ type: NgModule, args: [{
providers: [{ provide: APP_INITIALIZER, deps: [SettingManagementConfigService], useFactory: ɵ0, multi: true }],
},] }
];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
export { SettingManagementConfigModule, SettingManagementConfigService as ɵa };
//# sourceMappingURL=abp-ng.setting-management.config.js.map