@volosoft/abp.ng.theme.lepton-x 1.0.0-alpha.2 → 1.0.0-beta.3
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 +1 -1
- package/account/account/account-layout.component.d.ts +3 -1
- package/account/account/account-layout.module.d.ts +15 -3
- package/account/account/components/auth-wrapper/auth-wrapper.component.d.ts +4 -4
- package/account/account/components/index.d.ts +0 -1
- package/account/account/components/tenant-box/tenant-box.component.d.ts +3 -1
- package/account/account/index.d.ts +0 -1
- package/account/index.d.ts +1 -0
- package/account/package.json +5 -6
- package/account/volosoft-abp.ng.theme.lepton-x-account.d.ts +2 -2
- package/assets/css/abp-bundle.css +159 -0
- package/esm2020/account/account/account-layout.component.mjs +19 -0
- package/esm2020/account/account/account-layout.module.mjs +73 -0
- package/esm2020/account/account/components/auth-wrapper/auth-wrapper.component.mjs +20 -0
- package/esm2020/account/account/components/index.mjs +3 -0
- package/esm2020/account/account/components/tenant-box/tenant-box.component.mjs +20 -0
- package/esm2020/account/account/index.mjs +4 -0
- package/esm2020/account/index.mjs +2 -0
- package/esm2020/account/volosoft-abp.ng.theme.lepton-x-account.mjs +5 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/layouts/index.mjs +2 -0
- package/esm2020/layouts/side-menu/index.mjs +2 -0
- package/esm2020/layouts/side-menu/layout/index.mjs +3 -0
- package/esm2020/layouts/side-menu/layout/side-menu-application-layout.component.mjs +21 -0
- package/esm2020/layouts/side-menu/layout/side-menu-layout.module.mjs +50 -0
- package/esm2020/layouts/volosoft-abp.ng.theme.lepton-x-layouts.mjs +5 -0
- package/esm2020/lib/components/abp-validation-error/abp-validation-error.component.mjs +51 -0
- package/esm2020/lib/components/abp-validation-error/abp-validation-error.module.mjs +39 -0
- package/esm2020/lib/components/abp-validation-error/index.mjs +3 -0
- package/esm2020/lib/components/http-error/http-error.component.mjs +44 -0
- package/esm2020/lib/components/http-error/http-error.module.mjs +25 -0
- package/esm2020/lib/components/http-error/index.mjs +3 -0
- package/esm2020/lib/components/index.mjs +4 -0
- package/esm2020/lib/components/page-alert-container/index.mjs +3 -0
- package/esm2020/lib/components/page-alert-container/page-alert-container.component.mjs +18 -0
- package/esm2020/lib/components/page-alert-container/page-alert-container.module.mjs +19 -0
- package/esm2020/lib/enums/components.mjs +2 -0
- package/esm2020/lib/enums/index.mjs +2 -0
- package/esm2020/lib/index.mjs +5 -0
- package/esm2020/lib/lepton-x.module.mjs +56 -0
- package/esm2020/lib/providers/init-service.provider.mjs +19 -0
- package/esm2020/lib/providers/page-render.provider.mjs +7 -0
- package/esm2020/lib/providers/style.provider.mjs +18 -0
- package/esm2020/lib/providers/translate.provider.mjs +7 -0
- package/esm2020/lib/services/abp-auth.service.mjs +23 -0
- package/esm2020/lib/services/abp-settings.service.mjs +136 -0
- package/esm2020/lib/services/abp-toolbar.service.mjs +32 -0
- package/esm2020/lib/services/abp-translate.service.mjs +24 -0
- package/esm2020/lib/services/index.mjs +6 -0
- package/esm2020/lib/services/page-render-strategy.service.mjs +14 -0
- package/esm2020/styles/index.mjs +2 -0
- package/esm2020/styles/lib/handler/index.mjs +2 -0
- package/esm2020/styles/lib/handler/style-load.handler.mjs +17 -0
- package/esm2020/styles/lib/index.mjs +2 -0
- package/esm2020/styles/volosoft-abp.ng.theme.lepton-x-styles.mjs +5 -0
- package/esm2020/volosoft-abp.ng.theme.lepton-x.mjs +5 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.mjs +123 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.mjs.map +1 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.mjs +75 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.mjs.map +1 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-styles.mjs +23 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-styles.mjs.map +1 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x.mjs +469 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x.mjs.map +1 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-account.mjs +123 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-account.mjs.map +1 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-layouts.mjs +75 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-layouts.mjs.map +1 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-styles.mjs +23 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-styles.mjs.map +1 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x.mjs +476 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/layouts/index.d.ts +1 -0
- package/layouts/package.json +5 -6
- package/layouts/side-menu/index.d.ts +0 -1
- package/layouts/side-menu/layout/index.d.ts +0 -1
- package/layouts/side-menu/layout/side-menu-application-layout.component.d.ts +9 -10
- package/layouts/side-menu/layout/side-menu-layout.module.d.ts +10 -3
- package/layouts/volosoft-abp.ng.theme.lepton-x-layouts.d.ts +2 -2
- package/lib/components/abp-validation-error/abp-validation-error.component.d.ts +3 -1
- package/lib/components/abp-validation-error/abp-validation-error.module.d.ts +8 -1
- package/lib/components/abp-validation-error/index.d.ts +0 -1
- package/lib/components/http-error/http-error.component.d.ts +10 -0
- package/lib/components/http-error/http-error.module.d.ts +13 -0
- package/lib/components/http-error/index.d.ts +2 -0
- package/lib/components/index.d.ts +1 -1
- package/lib/components/page-alert-container/index.d.ts +0 -1
- package/lib/components/page-alert-container/page-alert-container.component.d.ts +3 -1
- package/lib/components/page-alert-container/page-alert-container.module.d.ts +7 -1
- package/lib/enums/components.d.ts +1 -2
- package/lib/enums/index.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/lepton-x.module.d.ts +9 -10
- package/lib/providers/init-service.provider.d.ts +6 -0
- package/lib/providers/page-render.provider.d.ts +2 -0
- package/lib/providers/style.provider.d.ts +3 -0
- package/lib/providers/translate.provider.d.ts +2 -0
- package/lib/services/abp-auth.service.d.ts +12 -0
- package/lib/services/abp-settings.service.d.ts +9 -3
- package/lib/services/abp-toolbar.service.d.ts +3 -1
- package/lib/services/abp-translate.service.d.ts +12 -0
- package/lib/services/index.d.ts +2 -2
- package/lib/services/page-render-strategy.service.d.ts +3 -2
- package/package.json +68 -16
- package/styles/index.d.ts +1 -0
- package/styles/lib/handler/index.d.ts +1 -0
- package/styles/lib/handler/style-load.handler.d.ts +3 -0
- package/styles/lib/index.d.ts +1 -0
- package/styles/package.json +10 -0
- package/styles/volosoft-abp.ng.theme.lepton-x-styles.d.ts +5 -0
- package/volosoft-abp.ng.theme.lepton-x.d.ts +2 -2
- package/account/account/account-layout.component.d.ts.map +0 -1
- package/account/account/account-layout.module.d.ts.map +0 -1
- package/account/account/components/auth-wrapper/auth-wrapper.component.d.ts.map +0 -1
- package/account/account/components/index.d.ts.map +0 -1
- package/account/account/components/tenant-box/tenant-box.component.d.ts.map +0 -1
- package/account/account/index.d.ts.map +0 -1
- package/account/public-api.d.ts +0 -2
- package/account/public-api.d.ts.map +0 -1
- package/account/volosoft-abp.ng.theme.lepton-x-account.d.ts.map +0 -1
- package/account/volosoft-abp.ng.theme.lepton-x-account.metadata.json +0 -1
- package/bundles/volosoft-abp.ng.theme.lepton-x-account.umd.js +0 -115
- package/bundles/volosoft-abp.ng.theme.lepton-x-account.umd.js.map +0 -1
- package/bundles/volosoft-abp.ng.theme.lepton-x-layouts.umd.js +0 -74
- package/bundles/volosoft-abp.ng.theme.lepton-x-layouts.umd.js.map +0 -1
- package/bundles/volosoft-abp.ng.theme.lepton-x.umd.js +0 -746
- package/bundles/volosoft-abp.ng.theme.lepton-x.umd.js.map +0 -1
- package/esm2015/account/account/account-layout.component.js +0 -13
- package/esm2015/account/account/account-layout.module.js +0 -50
- package/esm2015/account/account/components/auth-wrapper/auth-wrapper.component.js +0 -23
- package/esm2015/account/account/components/index.js +0 -3
- package/esm2015/account/account/components/tenant-box/tenant-box.component.js +0 -18
- package/esm2015/account/account/index.js +0 -4
- package/esm2015/account/public-api.js +0 -2
- package/esm2015/account/volosoft-abp.ng.theme.lepton-x-account.js +0 -5
- package/esm2015/layouts/public-api.js +0 -2
- package/esm2015/layouts/side-menu/index.js +0 -2
- package/esm2015/layouts/side-menu/layout/index.js +0 -3
- package/esm2015/layouts/side-menu/layout/side-menu-application-layout.component.js +0 -19
- package/esm2015/layouts/side-menu/layout/side-menu-layout.module.js +0 -39
- package/esm2015/layouts/volosoft-abp.ng.theme.lepton-x-layouts.js +0 -5
- package/esm2015/lib/components/abp-validation-error/abp-validation-error.component.js +0 -35
- package/esm2015/lib/components/abp-validation-error/abp-validation-error.module.js +0 -34
- package/esm2015/lib/components/abp-validation-error/index.js +0 -3
- package/esm2015/lib/components/index.js +0 -3
- package/esm2015/lib/components/page-alert-container/index.js +0 -3
- package/esm2015/lib/components/page-alert-container/page-alert-container.component.js +0 -17
- package/esm2015/lib/components/page-alert-container/page-alert-container.module.js +0 -14
- package/esm2015/lib/enums/components.js +0 -2
- package/esm2015/lib/enums/index.js +0 -2
- package/esm2015/lib/index.js +0 -5
- package/esm2015/lib/lepton-x.module.js +0 -104
- package/esm2015/lib/services/abp-navbar.service.js +0 -43
- package/esm2015/lib/services/abp-settings.service.js +0 -101
- package/esm2015/lib/services/abp-toolbar.service.js +0 -35
- package/esm2015/lib/services/index.js +0 -5
- package/esm2015/lib/services/page-render-strategy.service.js +0 -13
- package/esm2015/public-api.js +0 -2
- package/esm2015/volosoft-abp.ng.theme.lepton-x.js +0 -5
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.js +0 -104
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.js.map +0 -1
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.js +0 -63
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.js.map +0 -1
- package/fesm2015/volosoft-abp.ng.theme.lepton-x.js +0 -371
- package/fesm2015/volosoft-abp.ng.theme.lepton-x.js.map +0 -1
- package/layouts/public-api.d.ts +0 -2
- package/layouts/public-api.d.ts.map +0 -1
- package/layouts/side-menu/index.d.ts.map +0 -1
- package/layouts/side-menu/layout/index.d.ts.map +0 -1
- package/layouts/side-menu/layout/side-menu-application-layout.component.d.ts.map +0 -1
- package/layouts/side-menu/layout/side-menu-layout.module.d.ts.map +0 -1
- package/layouts/volosoft-abp.ng.theme.lepton-x-layouts.d.ts.map +0 -1
- package/layouts/volosoft-abp.ng.theme.lepton-x-layouts.metadata.json +0 -1
- package/lib/components/abp-validation-error/abp-validation-error.component.d.ts.map +0 -1
- package/lib/components/abp-validation-error/abp-validation-error.module.d.ts.map +0 -1
- package/lib/components/abp-validation-error/index.d.ts.map +0 -1
- package/lib/components/index.d.ts.map +0 -1
- package/lib/components/page-alert-container/index.d.ts.map +0 -1
- package/lib/components/page-alert-container/page-alert-container.component.d.ts.map +0 -1
- package/lib/components/page-alert-container/page-alert-container.module.d.ts.map +0 -1
- package/lib/enums/components.d.ts.map +0 -1
- package/lib/enums/index.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/lepton-x.module.d.ts.map +0 -1
- package/lib/services/abp-navbar.service.d.ts +0 -12
- package/lib/services/abp-navbar.service.d.ts.map +0 -1
- package/lib/services/abp-settings.service.d.ts.map +0 -1
- package/lib/services/abp-toolbar.service.d.ts.map +0 -1
- package/lib/services/index.d.ts.map +0 -1
- package/lib/services/page-render-strategy.service.d.ts.map +0 -1
- package/public-api.d.ts +0 -2
- package/public-api.d.ts.map +0 -1
- package/styles/ant-tree/_index.scss +0 -16
- package/styles/index.scss +0 -5
- package/styles/legacy-compatible/_index.scss +0 -15
- package/styles/ngx-datatable/_index.scss +0 -41
- package/styles/uppy/_index.scss +0 -23
- package/volosoft-abp.ng.theme.lepton-x.d.ts.map +0 -1
- package/volosoft-abp.ng.theme.lepton-x.metadata.json +0 -1
|
@@ -1,371 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, ViewEncapsulation, NgModule, Injectable, Inject, APP_INITIALIZER } from '@angular/core';
|
|
3
|
-
import { ValidationErrorComponent, VALIDATION_ERROR_TEMPLATE, VALIDATION_INVALID_CLASSES, VALIDATION_TARGET_SELECTOR, NgxValidateCoreModule } from '@ngx-validate/core';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i1 from '@abp/ng.core';
|
|
6
|
-
import { CoreModule, RoutesService, LocalizationService, SessionStateService, ConfigStateService, AuthService, NAVIGATE_TO_MANAGE_PROFILE, PermissionService, LazyLoadService, LOADING_STRATEGY } from '@abp/ng.core';
|
|
7
|
-
import * as i2$1 from '@abp/ng.theme.shared';
|
|
8
|
-
import { PageAlertService, ThemeSharedModule, NavItemsService } from '@abp/ng.theme.shared';
|
|
9
|
-
import * as i2 from '@volo/ngx-lepton-x.core';
|
|
10
|
-
import { NavbarService, LanguageService, UserProfileService } from '@volo/ngx-lepton-x.core';
|
|
11
|
-
import { filter, switchMap, map } from 'rxjs/operators';
|
|
12
|
-
import { BehaviorSubject } from 'rxjs';
|
|
13
|
-
import * as i3 from '@volo/abp.commercial.ng.ui/config';
|
|
14
|
-
import { PROFILE_PICTURE, NAVIGATE_TO_MY_SECURITY_LOGS, PROFILE_PICTURE_PROVIDERS } from '@volo/abp.commercial.ng.ui/config';
|
|
15
|
-
import * as i1$1 from '@volosoft/ngx-lepton-x/layouts';
|
|
16
|
-
import { ToolbarService } from '@volosoft/ngx-lepton-x/layouts';
|
|
17
|
-
import { PageParts, PAGE_RENDER_STRATEGY } from '@abp/ng.components/page';
|
|
18
|
-
import { LeptonXModule } from '@volosoft/ngx-lepton-x';
|
|
19
|
-
|
|
20
|
-
class AbpValidationErrorComponent extends ValidationErrorComponent {
|
|
21
|
-
get abpErrors() {
|
|
22
|
-
if (!this.errors || !this.errors.length) {
|
|
23
|
-
return [];
|
|
24
|
-
}
|
|
25
|
-
return this.errors.map(error => {
|
|
26
|
-
if (!error.message) {
|
|
27
|
-
return error;
|
|
28
|
-
}
|
|
29
|
-
const index = error.message.indexOf('[');
|
|
30
|
-
if (index > -1) {
|
|
31
|
-
return Object.assign(Object.assign({}, error), { message: error.message.slice(0, index), interpoliteParams: error.message.slice(index + 1, error.message.length - 1).split(',') });
|
|
32
|
-
}
|
|
33
|
-
return error;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
AbpValidationErrorComponent.decorators = [
|
|
38
|
-
{ type: Component, args: [{
|
|
39
|
-
selector: 'abp-validation-error',
|
|
40
|
-
// TODO: add validation error class to span
|
|
41
|
-
template: `
|
|
42
|
-
<span class="text-danger" data-valmsg-for="Role.Name" data-valmsg-replace="true"
|
|
43
|
-
><span *ngFor="let error of abpErrors; trackBy: trackByFn">
|
|
44
|
-
{{ error.message | abpLocalization: error.interpoliteParams }}</span
|
|
45
|
-
></span
|
|
46
|
-
>
|
|
47
|
-
`,
|
|
48
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
49
|
-
encapsulation: ViewEncapsulation.None
|
|
50
|
-
},] }
|
|
51
|
-
];
|
|
52
|
-
|
|
53
|
-
class AbpValidationErrorModule {
|
|
54
|
-
static forRoot() {
|
|
55
|
-
return {
|
|
56
|
-
ngModule: AbpValidationErrorModule,
|
|
57
|
-
providers: [
|
|
58
|
-
{
|
|
59
|
-
provide: VALIDATION_ERROR_TEMPLATE,
|
|
60
|
-
useValue: AbpValidationErrorComponent,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
provide: VALIDATION_INVALID_CLASSES,
|
|
64
|
-
useValue: 'input-validation-error',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
provide: VALIDATION_TARGET_SELECTOR,
|
|
68
|
-
useValue: '.form-control',
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
AbpValidationErrorModule.decorators = [
|
|
75
|
-
{ type: NgModule, args: [{
|
|
76
|
-
declarations: [AbpValidationErrorComponent],
|
|
77
|
-
imports: [CommonModule, CoreModule, NgxValidateCoreModule],
|
|
78
|
-
exports: [AbpValidationErrorComponent, NgxValidateCoreModule],
|
|
79
|
-
},] }
|
|
80
|
-
];
|
|
81
|
-
|
|
82
|
-
class PageAlertContainerComponent {
|
|
83
|
-
constructor(service) {
|
|
84
|
-
this.service = service;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
PageAlertContainerComponent.decorators = [
|
|
88
|
-
{ type: Component, args: [{
|
|
89
|
-
selector: 'abp-page-alert-container',
|
|
90
|
-
template: "<ng-container *ngFor=\"let alert of service.alerts$ | async; let i = index\">\n <div\n class=\"alert alert-{{ alert.type }} fade show\"\n [ngClass]=\"{ 'alert-dismissible fade show': alert.dismissible }\"\n role=\"alert\"\n >\n <h4 class=\"alert-heading\" *ngIf=\"alert.title\">\n {{ alert.title | abpLocalization: alert.titleLocalizationParams }}\n </h4>\n {{ alert.message | abpLocalization: alert.messageLocalizationParams }}\n <button\n *ngIf=\"alert.dismissible\"\n type=\"button\"\n class=\"close\"\n data-dismiss=\"alert\"\n aria-label=\"Close\"\n (click)=\"service.remove(i)\"\n >\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n</ng-container>\n"
|
|
91
|
-
},] }
|
|
92
|
-
];
|
|
93
|
-
PageAlertContainerComponent.ctorParameters = () => [
|
|
94
|
-
{ type: PageAlertService }
|
|
95
|
-
];
|
|
96
|
-
|
|
97
|
-
class PageAlertContainerModule {
|
|
98
|
-
}
|
|
99
|
-
PageAlertContainerModule.decorators = [
|
|
100
|
-
{ type: NgModule, args: [{
|
|
101
|
-
declarations: [PageAlertContainerComponent],
|
|
102
|
-
imports: [ThemeSharedModule, CoreModule],
|
|
103
|
-
exports: [PageAlertContainerComponent],
|
|
104
|
-
},] }
|
|
105
|
-
];
|
|
106
|
-
|
|
107
|
-
class AbpNavbarService {
|
|
108
|
-
constructor(routes, navbarService, localizationService) {
|
|
109
|
-
this.routes = routes;
|
|
110
|
-
this.navbarService = navbarService;
|
|
111
|
-
this.localizationService = localizationService;
|
|
112
|
-
this.mapRouteToNavItem = (route, index) => {
|
|
113
|
-
return {
|
|
114
|
-
text: this.localizationService.instant(route.name),
|
|
115
|
-
link: route.children && route.children.length ? undefined : route.path,
|
|
116
|
-
icon: route.iconClass,
|
|
117
|
-
children: this.getRouteChildrenAsNavItems(route.children || []),
|
|
118
|
-
// TODO: expose an API for following config
|
|
119
|
-
showOnMobileNavbar: index === 0 || index === 1,
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
initRoutes() {
|
|
124
|
-
this.routes.visible$.subscribe(routes => {
|
|
125
|
-
this.navbarService.setNavbarItems(...routes.map(this.mapRouteToNavItem));
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
getRouteChildrenAsNavItems(children) {
|
|
129
|
-
return children.map(this.mapRouteToNavItem);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
AbpNavbarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AbpNavbarService_Factory() { return new AbpNavbarService(i0.ɵɵinject(i1.RoutesService), i0.ɵɵinject(i2.NavbarService), i0.ɵɵinject(i1.LocalizationService)); }, token: AbpNavbarService, providedIn: "root" });
|
|
133
|
-
AbpNavbarService.decorators = [
|
|
134
|
-
{ type: Injectable, args: [{
|
|
135
|
-
providedIn: 'root',
|
|
136
|
-
},] }
|
|
137
|
-
];
|
|
138
|
-
AbpNavbarService.ctorParameters = () => [
|
|
139
|
-
{ type: RoutesService },
|
|
140
|
-
{ type: NavbarService },
|
|
141
|
-
{ type: LocalizationService }
|
|
142
|
-
];
|
|
143
|
-
|
|
144
|
-
class AbpSettingsService {
|
|
145
|
-
constructor(sessionService, configStateService, languageService, authService, userProfileService, profilePicture$, navigateToManageProfile, navigateToMySecurityLogs) {
|
|
146
|
-
this.sessionService = sessionService;
|
|
147
|
-
this.configStateService = configStateService;
|
|
148
|
-
this.languageService = languageService;
|
|
149
|
-
this.authService = authService;
|
|
150
|
-
this.userProfileService = userProfileService;
|
|
151
|
-
this.profilePicture$ = profilePicture$;
|
|
152
|
-
this.navigateToManageProfile = navigateToManageProfile;
|
|
153
|
-
this.navigateToMySecurityLogs = navigateToMySecurityLogs;
|
|
154
|
-
}
|
|
155
|
-
setUpListeners() {
|
|
156
|
-
this.listenToLangChange();
|
|
157
|
-
this.setLanguageOptions();
|
|
158
|
-
this.setUserProfile();
|
|
159
|
-
}
|
|
160
|
-
setUserProfile() {
|
|
161
|
-
const emptyStringOnNull = (value) => value || '';
|
|
162
|
-
this.configStateService
|
|
163
|
-
.getOne$('currentUser')
|
|
164
|
-
.pipe(filter(Boolean))
|
|
165
|
-
.subscribe(currentUser => this.userProfileService.patchUser({
|
|
166
|
-
userName: currentUser.userName,
|
|
167
|
-
fullName: emptyStringOnNull(currentUser.name) + ' ' + emptyStringOnNull(currentUser.surName),
|
|
168
|
-
email: currentUser.email,
|
|
169
|
-
}));
|
|
170
|
-
this.profilePicture$.pipe(filter(Boolean)).subscribe(avatar => this.userProfileService.patchUser({
|
|
171
|
-
avatar: {
|
|
172
|
-
type: avatar.type,
|
|
173
|
-
source: avatar.source || '',
|
|
174
|
-
},
|
|
175
|
-
}));
|
|
176
|
-
this.userProfileService.patchUser({
|
|
177
|
-
userActionGroups: [
|
|
178
|
-
[
|
|
179
|
-
{
|
|
180
|
-
icon: 'bi bi-sliders',
|
|
181
|
-
text: 'Manage Your Profile',
|
|
182
|
-
action: () => this.navigateToManageProfile(),
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
icon: 'bi bi-list-ul',
|
|
186
|
-
text: 'My Security Logs',
|
|
187
|
-
action: () => this.navigateToMySecurityLogs(),
|
|
188
|
-
},
|
|
189
|
-
],
|
|
190
|
-
[
|
|
191
|
-
{
|
|
192
|
-
icon: 'bi bi-box-arrow-right',
|
|
193
|
-
text: 'Sign Out',
|
|
194
|
-
action: () => this.authService.logout(),
|
|
195
|
-
},
|
|
196
|
-
],
|
|
197
|
-
],
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
setLanguageOptions() {
|
|
201
|
-
this.sessionService
|
|
202
|
-
.getLanguage$()
|
|
203
|
-
.pipe(switchMap(currentLang => this.configStateService.getDeep$('localization.languages').pipe(filter(Boolean), map((languages) => languages.map(({ cultureName, displayName }) => ({
|
|
204
|
-
cultureName,
|
|
205
|
-
displayName,
|
|
206
|
-
selected: cultureName === currentLang,
|
|
207
|
-
}))))))
|
|
208
|
-
.subscribe(settings => {
|
|
209
|
-
this.languageService.setLanguages(settings);
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
listenToLangChange() {
|
|
213
|
-
this.languageService.selectedLanguage$
|
|
214
|
-
.pipe(filter(Boolean))
|
|
215
|
-
.subscribe(lang => {
|
|
216
|
-
this.sessionService.setLanguage((lang === null || lang === void 0 ? void 0 : lang.cultureName) || '');
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
AbpSettingsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AbpSettingsService_Factory() { return new AbpSettingsService(i0.ɵɵinject(i1.SessionStateService), i0.ɵɵinject(i1.ConfigStateService), i0.ɵɵinject(i2.LanguageService), i0.ɵɵinject(i1.AuthService), i0.ɵɵinject(i2.UserProfileService), i0.ɵɵinject(i3.PROFILE_PICTURE), i0.ɵɵinject(i1.NAVIGATE_TO_MANAGE_PROFILE), i0.ɵɵinject(i3.NAVIGATE_TO_MY_SECURITY_LOGS)); }, token: AbpSettingsService, providedIn: "root" });
|
|
221
|
-
AbpSettingsService.decorators = [
|
|
222
|
-
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
223
|
-
];
|
|
224
|
-
AbpSettingsService.ctorParameters = () => [
|
|
225
|
-
{ type: SessionStateService },
|
|
226
|
-
{ type: ConfigStateService },
|
|
227
|
-
{ type: LanguageService },
|
|
228
|
-
{ type: AuthService },
|
|
229
|
-
{ type: UserProfileService },
|
|
230
|
-
{ type: BehaviorSubject, decorators: [{ type: Inject, args: [PROFILE_PICTURE,] }] },
|
|
231
|
-
{ type: undefined, decorators: [{ type: Inject, args: [NAVIGATE_TO_MANAGE_PROFILE,] }] },
|
|
232
|
-
{ type: undefined, decorators: [{ type: Inject, args: [NAVIGATE_TO_MY_SECURITY_LOGS,] }] }
|
|
233
|
-
];
|
|
234
|
-
|
|
235
|
-
class AbpToolbarService {
|
|
236
|
-
constructor(toolbar, navItems, permissionService) {
|
|
237
|
-
this.toolbar = toolbar;
|
|
238
|
-
this.navItems = navItems;
|
|
239
|
-
this.permissionService = permissionService;
|
|
240
|
-
}
|
|
241
|
-
listenNavItems() {
|
|
242
|
-
this.navItems.items$
|
|
243
|
-
.pipe(switchMap((items) => this.permissionService.filterItemsByPolicy$(items)))
|
|
244
|
-
.subscribe(items => {
|
|
245
|
-
this.toolbar.setItems(items);
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
AbpToolbarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AbpToolbarService_Factory() { return new AbpToolbarService(i0.ɵɵinject(i1$1.ToolbarService), i0.ɵɵinject(i2$1.NavItemsService), i0.ɵɵinject(i1.PermissionService)); }, token: AbpToolbarService, providedIn: "root" });
|
|
250
|
-
AbpToolbarService.decorators = [
|
|
251
|
-
{ type: Injectable, args: [{
|
|
252
|
-
providedIn: 'root',
|
|
253
|
-
},] }
|
|
254
|
-
];
|
|
255
|
-
AbpToolbarService.ctorParameters = () => [
|
|
256
|
-
{ type: ToolbarService },
|
|
257
|
-
{ type: NavItemsService },
|
|
258
|
-
{ type: PermissionService }
|
|
259
|
-
];
|
|
260
|
-
|
|
261
|
-
class LeptonXPageRenderService {
|
|
262
|
-
constructor() { }
|
|
263
|
-
shouldRender(type) {
|
|
264
|
-
return type !== PageParts.breadcrumb;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
LeptonXPageRenderService.decorators = [
|
|
268
|
-
{ type: Injectable }
|
|
269
|
-
];
|
|
270
|
-
LeptonXPageRenderService.ctorParameters = () => [];
|
|
271
|
-
|
|
272
|
-
class ThemeLeptonXModule {
|
|
273
|
-
static forRoot() {
|
|
274
|
-
return {
|
|
275
|
-
ngModule: ThemeLeptonXModule,
|
|
276
|
-
providers: [
|
|
277
|
-
{
|
|
278
|
-
provide: APP_INITIALIZER,
|
|
279
|
-
useFactory: initStyles,
|
|
280
|
-
multi: true,
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
provide: APP_INITIALIZER,
|
|
284
|
-
useFactory: initServices,
|
|
285
|
-
deps: [AbpNavbarService, AbpToolbarService, AbpSettingsService],
|
|
286
|
-
multi: true,
|
|
287
|
-
},
|
|
288
|
-
PROFILE_PICTURE_PROVIDERS,
|
|
289
|
-
{
|
|
290
|
-
provide: PAGE_RENDER_STRATEGY,
|
|
291
|
-
useClass: LeptonXPageRenderService,
|
|
292
|
-
},
|
|
293
|
-
AbpValidationErrorModule.forRoot().providers,
|
|
294
|
-
// TODO: muhammed: Create an injection token for theme settings
|
|
295
|
-
LeptonXModule.forRoot({
|
|
296
|
-
themeSettings: {
|
|
297
|
-
localStorageKey: 'LEPTON-X-THEME',
|
|
298
|
-
styles: [
|
|
299
|
-
{
|
|
300
|
-
bundleName: 'lepton-x.dim',
|
|
301
|
-
styleName: 'dim',
|
|
302
|
-
icon: 'bi bi-brightness-alt-high-fill ',
|
|
303
|
-
label: 'Semi-Dark',
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
bundleName: 'lepton-x.dark',
|
|
307
|
-
styleName: 'dark',
|
|
308
|
-
defaultTheme: true,
|
|
309
|
-
icon: 'bi bi-moon-fill',
|
|
310
|
-
label: 'Dark',
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
bundleName: 'lepton-x.light',
|
|
314
|
-
styleName: 'light',
|
|
315
|
-
icon: 'bi bi-sun-fill',
|
|
316
|
-
label: 'Light',
|
|
317
|
-
},
|
|
318
|
-
],
|
|
319
|
-
loadHandler,
|
|
320
|
-
},
|
|
321
|
-
}).providers,
|
|
322
|
-
],
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
ThemeLeptonXModule.decorators = [
|
|
327
|
-
{ type: NgModule, args: [{},] }
|
|
328
|
-
];
|
|
329
|
-
function initServices(navbar, abpToolbar, setting) {
|
|
330
|
-
function init() {
|
|
331
|
-
abpToolbar.listenNavItems();
|
|
332
|
-
setting.setUpListeners();
|
|
333
|
-
navbar.initRoutes();
|
|
334
|
-
}
|
|
335
|
-
return init;
|
|
336
|
-
}
|
|
337
|
-
function initStyles() {
|
|
338
|
-
function init() {
|
|
339
|
-
const loader = document.querySelector('#lp-page-loader');
|
|
340
|
-
if (loader) {
|
|
341
|
-
loader.style.background = 'var(--background)';
|
|
342
|
-
setTimeout(() => { var _a; return (_a = loader.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(loader); }, 500);
|
|
343
|
-
}
|
|
344
|
-
return Promise.resolve();
|
|
345
|
-
}
|
|
346
|
-
return init;
|
|
347
|
-
}
|
|
348
|
-
function loadHandler(injector) {
|
|
349
|
-
let previousThemePath = '';
|
|
350
|
-
const lazyLoadService = injector.get(LazyLoadService);
|
|
351
|
-
function changeStyle(style) {
|
|
352
|
-
const strategy = LOADING_STRATEGY.PrependAnonymousStyleToHead(`lepton-x.${style.styleName}.css`);
|
|
353
|
-
if (previousThemePath === strategy.path) {
|
|
354
|
-
return;
|
|
355
|
-
}
|
|
356
|
-
lazyLoadService.load(strategy).subscribe(_ => {
|
|
357
|
-
if (previousThemePath) {
|
|
358
|
-
lazyLoadService.remove(previousThemePath);
|
|
359
|
-
}
|
|
360
|
-
previousThemePath = strategy.path;
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
return changeStyle;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* Generated bundle index. Do not edit.
|
|
368
|
-
*/
|
|
369
|
-
|
|
370
|
-
export { AbpNavbarService, AbpSettingsService, AbpToolbarService, AbpValidationErrorComponent, AbpValidationErrorModule, LeptonXPageRenderService, PageAlertContainerComponent, PageAlertContainerModule, ThemeLeptonXModule, initServices, initStyles, loadHandler };
|
|
371
|
-
//# sourceMappingURL=volosoft-abp.ng.theme.lepton-x.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"volosoft-abp.ng.theme.lepton-x.js","sources":["../../../projects/volo-lepton-x/src/lib/components/abp-validation-error/abp-validation-error.component.ts","../../../projects/volo-lepton-x/src/lib/components/abp-validation-error/abp-validation-error.module.ts","../../../projects/volo-lepton-x/src/lib/components/page-alert-container/page-alert-container.component.ts","../../../projects/volo-lepton-x/src/lib/components/page-alert-container/page-alert-container.module.ts","../../../projects/volo-lepton-x/src/lib/services/abp-navbar.service.ts","../../../projects/volo-lepton-x/src/lib/services/abp-settings.service.ts","../../../projects/volo-lepton-x/src/lib/services/abp-toolbar.service.ts","../../../projects/volo-lepton-x/src/lib/services/page-render-strategy.service.ts","../../../projects/volo-lepton-x/src/lib/lepton-x.module.ts","../../../projects/volo-lepton-x/src/volosoft-abp.ng.theme.lepton-x.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { Validation, ValidationErrorComponent } from '@ngx-validate/core';\n@Component({\n selector: 'abp-validation-error',\n // TODO: add validation error class to span\n template: `\n <span class=\"text-danger\" data-valmsg-for=\"Role.Name\" data-valmsg-replace=\"true\"\n ><span *ngFor=\"let error of abpErrors; trackBy: trackByFn\">\n {{ error.message | abpLocalization: error.interpoliteParams }}</span\n ></span\n >\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AbpValidationErrorComponent extends ValidationErrorComponent {\n get abpErrors(): Validation.Error[] & { interpoliteParams?: string[] } {\n if (!this.errors || !this.errors.length) {\n return [];\n }\n\n return this.errors.map(error => {\n if (!error.message) {\n return error;\n }\n\n const index = error.message.indexOf('[');\n\n if (index > -1) {\n return {\n ...error,\n message: error.message.slice(0, index),\n interpoliteParams: error.message.slice(index + 1, error.message.length - 1).split(','),\n };\n }\n\n return error;\n });\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport {\n NgxValidateCoreModule,\n VALIDATION_ERROR_TEMPLATE,\n VALIDATION_INVALID_CLASSES,\n VALIDATION_TARGET_SELECTOR,\n} from '@ngx-validate/core';\nimport { CoreModule } from '@abp/ng.core';\nimport { AbpValidationErrorComponent } from './abp-validation-error.component';\n\n@NgModule({\n declarations: [AbpValidationErrorComponent],\n imports: [CommonModule, CoreModule, NgxValidateCoreModule],\n exports: [AbpValidationErrorComponent, NgxValidateCoreModule],\n})\nexport class AbpValidationErrorModule {\n static forRoot(): ModuleWithProviders<AbpValidationErrorModule> {\n return {\n ngModule: AbpValidationErrorModule,\n providers: [\n {\n provide: VALIDATION_ERROR_TEMPLATE,\n useValue: AbpValidationErrorComponent,\n },\n {\n provide: VALIDATION_INVALID_CLASSES,\n useValue: 'input-validation-error',\n },\n {\n provide: VALIDATION_TARGET_SELECTOR,\n useValue: '.form-control',\n },\n ],\n };\n }\n}\n","import { Component } from '@angular/core';\nimport { PageAlertService } from '@abp/ng.theme.shared';\n\n@Component({\n selector: 'abp-page-alert-container',\n templateUrl: './page-alert-container.component.html',\n})\nexport class PageAlertContainerComponent {\n constructor(public service: PageAlertService) {}\n}\n","import { NgModule } from '@angular/core';\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\nimport { CoreModule } from '@abp/ng.core';\nimport { PageAlertContainerComponent } from './page-alert-container.component';\n\n@NgModule({\n declarations: [PageAlertContainerComponent],\n imports: [ThemeSharedModule, CoreModule],\n exports: [PageAlertContainerComponent],\n})\nexport class PageAlertContainerModule {}\n","import { Injectable } from '@angular/core';\nimport { ABP, LocalizationService, RoutesService, TreeNode } from '@abp/ng.core';\nimport { NavbarItem, NavbarService } from '@volo/ngx-lepton-x.core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AbpNavbarService {\n constructor(\n private routes: RoutesService,\n private navbarService: NavbarService,\n private localizationService: LocalizationService,\n ) {}\n\n private mapRouteToNavItem = (route: TreeNode<ABP.Route>, index: number): NavbarItem => {\n return {\n text: this.localizationService.instant(route.name),\n link: route.children && route.children.length ? undefined : route.path,\n icon: route.iconClass,\n children: this.getRouteChildrenAsNavItems(route.children || []),\n // TODO: expose an API for following config\n showOnMobileNavbar: index === 0 || index === 1,\n };\n };\n\n initRoutes() {\n this.routes.visible$.subscribe(routes => {\n this.navbarService.setNavbarItems(...routes.map(this.mapRouteToNavItem));\n });\n }\n\n private getRouteChildrenAsNavItems(children: TreeNode<ABP.Route>[]): NavbarItem[] {\n return children.map(this.mapRouteToNavItem);\n }\n}\n","import { Inject, Injectable } from '@angular/core';\nimport { filter, map, switchMap } from 'rxjs/operators';\nimport { BehaviorSubject } from 'rxjs';\nimport { Language, LanguageService, UserProfileService } from '@volo/ngx-lepton-x.core';\nimport {\n AuthService,\n ConfigStateService,\n CurrentUserDto,\n LanguageInfo,\n NAVIGATE_TO_MANAGE_PROFILE,\n SessionStateService,\n} from '@abp/ng.core';\n\nimport {\n NAVIGATE_TO_MY_SECURITY_LOGS,\n PROFILE_PICTURE,\n ProfilePictureImage,\n} from '@volo/abp.commercial.ng.ui/config';\n\n@Injectable({ providedIn: 'root' })\nexport class AbpSettingsService {\n constructor(\n private sessionService: SessionStateService,\n private configStateService: ConfigStateService,\n private languageService: LanguageService,\n private authService: AuthService,\n private userProfileService: UserProfileService,\n @Inject(PROFILE_PICTURE) private profilePicture$: BehaviorSubject<ProfilePictureImage>,\n @Inject(NAVIGATE_TO_MANAGE_PROFILE) public navigateToManageProfile: any,\n @Inject(NAVIGATE_TO_MY_SECURITY_LOGS) public navigateToMySecurityLogs: any,\n ) {}\n\n setUpListeners() {\n this.listenToLangChange();\n this.setLanguageOptions();\n this.setUserProfile();\n }\n setUserProfile() {\n const emptyStringOnNull = (value?: string) => value || '';\n\n this.configStateService\n .getOne$('currentUser')\n .pipe(filter<CurrentUserDto>(Boolean))\n .subscribe(currentUser =>\n this.userProfileService.patchUser({\n userName: currentUser.userName,\n fullName:\n emptyStringOnNull(currentUser.name) + ' ' + emptyStringOnNull(currentUser.surName),\n email: currentUser.email,\n }),\n );\n this.profilePicture$.pipe(filter<ProfilePictureImage>(Boolean)).subscribe(avatar =>\n this.userProfileService.patchUser({\n avatar: {\n type: avatar.type,\n source: avatar.source || '',\n },\n }),\n );\n this.userProfileService.patchUser({\n userActionGroups: [\n [\n {\n icon: 'bi bi-sliders',\n text: 'Manage Your Profile',\n\n action: () => this.navigateToManageProfile(),\n },\n {\n icon: 'bi bi-list-ul',\n text: 'My Security Logs',\n action: () => this.navigateToMySecurityLogs(),\n },\n ],\n [\n {\n icon: 'bi bi-box-arrow-right',\n text: 'Sign Out',\n action: () => this.authService.logout(),\n },\n ],\n ],\n });\n }\n\n setLanguageOptions() {\n this.sessionService\n .getLanguage$()\n .pipe(\n switchMap(currentLang =>\n this.configStateService.getDeep$('localization.languages').pipe(\n filter<LanguageInfo[]>(Boolean),\n map((languages: LanguageInfo[]) =>\n languages.map<Language>(({ cultureName, displayName }) => ({\n cultureName,\n displayName,\n selected: cultureName === currentLang,\n })),\n ),\n ),\n ),\n )\n .subscribe(settings => {\n this.languageService.setLanguages(settings);\n });\n }\n\n listenToLangChange() {\n this.languageService.selectedLanguage$\n .pipe(filter<Language | undefined>(Boolean))\n .subscribe(lang => {\n this.sessionService.setLanguage(lang?.cultureName || '');\n });\n }\n}\n","import { Injectable } from '@angular/core';\nimport { ToolbarService } from '@volosoft/ngx-lepton-x/layouts';\nimport { NavItem, NavItemsService } from '@abp/ng.theme.shared';\nimport { switchMap } from 'rxjs/operators';\nimport { PermissionService } from '@abp/ng.core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AbpToolbarService {\n constructor(\n private toolbar: ToolbarService,\n private navItems: NavItemsService,\n private permissionService: PermissionService,\n ) {}\n\n listenNavItems() {\n this.navItems.items$\n .pipe(switchMap((items: NavItem[]) => this.permissionService.filterItemsByPolicy$(items)))\n .subscribe(items => {\n this.toolbar.setItems(items);\n });\n }\n}\n","import { Injectable } from '@angular/core';\nimport { PageRenderStrategy, PageParts } from '@abp/ng.components/page';\n\n@Injectable()\nexport class LeptonXPageRenderService implements PageRenderStrategy {\n constructor() {}\n\n shouldRender(type: string) {\n return type !== PageParts.breadcrumb;\n }\n}\n","import { APP_INITIALIZER, Injector, ModuleWithProviders, NgModule, Provider } from '@angular/core';\nimport { LazyLoadService, LOADING_STRATEGY } from '@abp/ng.core';\nimport { LeptonXModule, LpxStyle } from '@volosoft/ngx-lepton-x';\nimport { PROFILE_PICTURE_PROVIDERS } from '@volo/abp.commercial.ng.ui/config';\nimport { PAGE_RENDER_STRATEGY } from '@abp/ng.components/page';\n\nimport { LeptonXPageRenderService } from './services/page-render-strategy.service';\nimport { AbpNavbarService } from './services/abp-navbar.service';\nimport { AbpToolbarService } from './services/abp-toolbar.service';\nimport { AbpSettingsService } from './services/abp-settings.service';\nimport { AbpValidationErrorModule } from './components/abp-validation-error/abp-validation-error.module';\n\n@NgModule({})\nexport class ThemeLeptonXModule {\n static forRoot(): ModuleWithProviders<ThemeLeptonXModule> {\n return {\n ngModule: ThemeLeptonXModule,\n providers: [\n {\n provide: APP_INITIALIZER,\n useFactory: initStyles,\n multi: true,\n },\n {\n provide: APP_INITIALIZER,\n useFactory: initServices,\n deps: [AbpNavbarService, AbpToolbarService, AbpSettingsService],\n multi: true,\n },\n PROFILE_PICTURE_PROVIDERS,\n {\n provide: PAGE_RENDER_STRATEGY,\n useClass: LeptonXPageRenderService,\n },\n AbpValidationErrorModule.forRoot().providers as Provider,\n // TODO: muhammed: Create an injection token for theme settings\n LeptonXModule.forRoot({\n themeSettings: {\n localStorageKey: 'LEPTON-X-THEME',\n styles: [\n {\n bundleName: 'lepton-x.dim',\n styleName: 'dim',\n icon: 'bi bi-brightness-alt-high-fill ',\n label: 'Semi-Dark',\n },\n {\n bundleName: 'lepton-x.dark',\n styleName: 'dark',\n defaultTheme: true,\n icon: 'bi bi-moon-fill',\n label: 'Dark',\n },\n {\n bundleName: 'lepton-x.light',\n styleName: 'light',\n icon: 'bi bi-sun-fill',\n label: 'Light',\n },\n ],\n loadHandler,\n },\n }).providers as Provider,\n ],\n };\n }\n}\n\nexport function initServices(\n navbar: AbpNavbarService,\n abpToolbar: AbpToolbarService,\n setting: AbpSettingsService,\n) {\n function init() {\n abpToolbar.listenNavItems();\n setting.setUpListeners();\n navbar.initRoutes();\n }\n\n return init;\n}\n\nexport function initStyles() {\n function init() {\n const loader = document.querySelector('#lp-page-loader') as HTMLElement;\n if (loader) {\n loader.style.background = 'var(--background)';\n setTimeout(() => loader.parentNode?.removeChild(loader), 500);\n }\n return Promise.resolve();\n }\n\n return init;\n}\n\nexport function loadHandler(injector: Injector) {\n let previousThemePath = '';\n const lazyLoadService = injector.get(LazyLoadService);\n function changeStyle(style: LpxStyle) {\n const strategy = LOADING_STRATEGY.PrependAnonymousStyleToHead(\n `lepton-x.${style.styleName}.css`,\n );\n if (previousThemePath === strategy.path) {\n return;\n }\n lazyLoadService.load(strategy).subscribe(_ => {\n if (previousThemePath) {\n lazyLoadService.remove(previousThemePath);\n }\n previousThemePath = strategy.path;\n });\n }\n return changeStyle;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;MAea,2BAA4B,SAAQ,wBAAwB;IACvE,IAAI,SAAS;QACX,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YACvC,OAAO,EAAE,CAAC;SACX;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK;YAC1B,IAAI,CAAC,KAAK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AAK,CAAC,UAAU,GAAG,mBAAmB,CAAC;YAC9C,UAAU,CAAC,gBAAM,OAAA,MAAA,MAAM,CAAC,UAAU,0CAAE,WAAW,CAAC,MAAM,CAAC,CAAA,EAAA,EAAE,GAAG,CAAC,CAAC;SAC/D;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;KAC1B;IAED,OAAO,IAAI,CAAC;AACd,CAAC;SAEe,WAAW,CAAC,QAAkB;IAC5C,IAAI,iBAAiB,GAAG,EAAE,CAAC;IAC3B,MAAM,eAAe,GAAG,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACtD,SAAS,WAAW,CAAC,KAAe;QAClC,MAAM,QAAQ,GAAG,gBAAgB,CAAC,2BAA2B,CAC3D,YAAY,KAAK,CAAC,SAAS,MAAM,CAClC,CAAC;QACF,IAAI,iBAAiB,KAAK,QAAQ,CAAC,IAAI,EAAE;YACvC,OAAO;SACR;QACD,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;YACxC,IAAI,iBAAiB,EAAE;gBACrB,eAAe,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;aAC3C;YACD,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC;SACnC,CAAC,CAAC;KACJ;IACD,OAAO,WAAW,CAAC;AACrB;;ACjHA;;;;;;"}
|
package/layouts/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../../projects/volo-lepton-x/layouts/src/public-api.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../projects/volo-lepton-x/layouts/src/side-menu/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/volo-lepton-x/layouts/src/side-menu/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,2BAA2B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"side-menu-application-layout.component.d.ts","sourceRoot":"","sources":["../../../../../projects/volo-lepton-x/layouts/src/side-menu/layout/side-menu-application-layout.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAqB,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAEzE,qBAKa,kCAAmC,YAAW,MAAM;IAC/D,UAAU,yBAAiC;IAC3C,SAAS,yBAAkC;IAC3C,SAAS,yBAAiC;IAC1C,eAAe,yBAAmC;;IAIlD,QAAQ,IAAI,IAAI;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"side-menu-layout.module.d.ts","sourceRoot":"","sources":["../../../../../projects/volo-lepton-x/layouts/src/side-menu/layout/side-menu-layout.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,QAAQ,EAAE,mBAAmB,EAAsB,MAAM,eAAe,CAAC;AAQnG,qBAKa,uBAAuB;IAClC,MAAM,CAAC,OAAO,IAAI,mBAAmB,CAAC,uBAAuB,CAAC;CAc/D;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,cAS7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"volosoft-abp.ng.theme.lepton-x-layouts.d.ts","sourceRoot":"","sources":["../../../projects/volo-lepton-x/layouts/src/volosoft-abp.ng.theme.lepton-x-layouts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"SideMenuApplicationLayoutComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"abp-application-layout","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":6,"character":17},"member":"None"},"template":"<lpx-layout>\n <ng-template lpx-navbar-panel>\n <lpx-navbar\n *abpReplaceableTemplate=\"{\n componentKey: navbarKey\n }\"\n >\n <ng-template lpx-navbar-routes let-items>\n <lpx-navbar-routes\n *abpReplaceableTemplate=\"{\n componentKey: routesKey,\n inputs: {\n navbarItems: items\n }\n }\"\n [navbarItems]=\"items\"\n >\n </lpx-navbar-routes>\n </ng-template>\n </lpx-navbar>\n </ng-template>\n <router-outlet></router-outlet>\n <ng-template lpx-toolbar-panel>\n <lpx-toolbar-container\n *abpReplaceableTemplate=\"{\n componentKey: toolbarKey\n }\"\n >\n </lpx-toolbar-container>\n </ng-template>\n</lpx-layout>\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"AbpSideMenuLayoutModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"SideMenuApplicationLayoutComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":12},{"__symbolic":"reference","module":"@abp/ng.core","name":"CoreModule","line":10,"character":26},{"__symbolic":"reference","module":"@volosoft/ngx-lepton-x/layouts","name":"SideMenuLayoutModule","line":10,"character":38}],"exports":[{"__symbolic":"reference","name":"SideMenuApplicationLayoutComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"AbpSideMenuLayoutModule"},"providers":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":19,"character":19},"useFactory":{"__symbolic":"reference","name":"initLayouts"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":21,"character":17}],"multi":true},{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@volosoft/ngx-lepton-x/layouts","name":"SideMenuLayoutModule","line":24,"character":8},"member":"forRoot"}},"member":"providers"}]}}}},"initLayouts":{"__symbolic":"function"}},"origins":{"SideMenuApplicationLayoutComponent":"./side-menu/layout/side-menu-application-layout.component","AbpSideMenuLayoutModule":"./side-menu/layout/side-menu-layout.module","initLayouts":"./side-menu/layout/side-menu-layout.module"},"importAs":"@volosoft/abp.ng.theme.lepton-x/layouts"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abp-validation-error.component.d.ts","sourceRoot":"","sources":["../../../../../projects/volo-lepton-x/src/lib/components/abp-validation-error/abp-validation-error.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,qBAaa,2BAA4B,SAAQ,wBAAwB;IACvE,IAAI,SAAS,IAAI,UAAU,CAAC,KAAK,EAAE,GAAG;QAAE,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAsBrE;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abp-validation-error.module.d.ts","sourceRoot":"","sources":["../../../../../projects/volo-lepton-x/src/lib/components/abp-validation-error/abp-validation-error.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAW9D,qBAKa,wBAAwB;IACnC,MAAM,CAAC,OAAO,IAAI,mBAAmB,CAAC,wBAAwB,CAAC;CAmBhE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/volo-lepton-x/src/lib/components/abp-validation-error/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../projects/volo-lepton-x/src/lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/volo-lepton-x/src/lib/components/page-alert-container/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-alert-container.component.d.ts","sourceRoot":"","sources":["../../../../../projects/volo-lepton-x/src/lib/components/page-alert-container/page-alert-container.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,qBAIa,2BAA2B;IACnB,OAAO,EAAE,gBAAgB;gBAAzB,OAAO,EAAE,gBAAgB;CAC7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-alert-container.module.d.ts","sourceRoot":"","sources":["../../../../../projects/volo-lepton-x/src/lib/components/page-alert-container/page-alert-container.module.ts"],"names":[],"mappings":"AAKA,qBAKa,wBAAwB;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../projects/volo-lepton-x/src/lib/enums/components.ts"],"names":[],"mappings":"AACA,0BAAkB,sBAAsB;IACtC,aAAa,iCAAiC;IAC9C,iBAAiB,qCAAqC;IACtD,uBAAuB,2CAA2C;IAClE,uBAAuB,2CAA2C;IAClE,WAAW,+BAA+B;IAC1C,gBAAgB,oCAAoC;IACpD,WAAW,+BAA+B;IAC1C,UAAU,8BAA8B;IACxC,SAAS,6BAA6B;IACtC,IAAI,wBAAwB;IAC5B,MAAM,0BAA0B;IAChC,MAAM,0BAA0B;IAChC,YAAY,gCAAgC;IAC5C,QAAQ,4BAA4B;IACpC,OAAO,kBAAkB;CAC1B"}
|
package/lib/enums/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../projects/volo-lepton-x/src/lib/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
package/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../projects/volo-lepton-x/src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lepton-x.module.d.ts","sourceRoot":"","sources":["../../../projects/volo-lepton-x/src/lib/lepton-x.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,QAAQ,EAAE,mBAAmB,EAAsB,MAAM,eAAe,CAAC;AAEnG,OAAO,EAAiB,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAKjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAGrE,qBACa,kBAAkB;IAC7B,MAAM,CAAC,OAAO,IAAI,mBAAmB,CAAC,kBAAkB,CAAC;CAoD1D;AAED,wBAAgB,YAAY,CAC1B,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,iBAAiB,EAC7B,OAAO,EAAE,kBAAkB,cAS5B;AAED,wBAAgB,UAAU,wBAWzB;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,WAGhB,QAAQ,UAerC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LocalizationService, RoutesService } from '@abp/ng.core';
|
|
2
|
-
import { NavbarService } from '@volo/ngx-lepton-x.core';
|
|
3
|
-
export declare class AbpNavbarService {
|
|
4
|
-
private routes;
|
|
5
|
-
private navbarService;
|
|
6
|
-
private localizationService;
|
|
7
|
-
constructor(routes: RoutesService, navbarService: NavbarService, localizationService: LocalizationService);
|
|
8
|
-
private mapRouteToNavItem;
|
|
9
|
-
initRoutes(): void;
|
|
10
|
-
private getRouteChildrenAsNavItems;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=abp-navbar.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abp-navbar.service.d.ts","sourceRoot":"","sources":["../../../../projects/volo-lepton-x/src/lib/services/abp-navbar.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,mBAAmB,EAAE,aAAa,EAAY,MAAM,cAAc,CAAC;AACjF,OAAO,EAAc,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEpE,qBAGa,gBAAgB;IAEzB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,mBAAmB;gBAFnB,MAAM,EAAE,aAAa,EACrB,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,mBAAmB;IAGlD,OAAO,CAAC,iBAAiB,CASvB;IAEF,UAAU;IAMV,OAAO,CAAC,0BAA0B;CAGnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abp-settings.service.d.ts","sourceRoot":"","sources":["../../../../projects/volo-lepton-x/src/lib/services/abp-settings.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAY,eAAe,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxF,OAAO,EACL,WAAW,EACX,kBAAkB,EAIlB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAGL,mBAAmB,EACpB,MAAM,mCAAmC,CAAC;AAE3C,qBACa,kBAAkB;IAE3B,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,kBAAkB;IAC1B,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,kBAAkB;IACD,OAAO,CAAC,eAAe;IACL,uBAAuB,EAAE,GAAG;IAC1B,wBAAwB,EAAE,GAAG;gBAPlE,cAAc,EAAE,mBAAmB,EACnC,kBAAkB,EAAE,kBAAkB,EACtC,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB,EACb,eAAe,EAAE,eAAe,CAAC,mBAAmB,CAAC,EAC3C,uBAAuB,EAAE,GAAG,EAC1B,wBAAwB,EAAE,GAAG;IAG5E,cAAc;IAKd,cAAc;IAgDd,kBAAkB;IAsBlB,kBAAkB;CAOnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abp-toolbar.service.d.ts","sourceRoot":"","sources":["../../../../projects/volo-lepton-x/src/lib/services/abp-toolbar.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAW,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,qBAGa,iBAAiB;IAE1B,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,iBAAiB;gBAFjB,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,eAAe,EACzB,iBAAiB,EAAE,iBAAiB;IAG9C,cAAc;CAOf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../projects/volo-lepton-x/src/lib/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-render-strategy.service.d.ts","sourceRoot":"","sources":["../../../../projects/volo-lepton-x/src/lib/services/page-render-strategy.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAa,MAAM,yBAAyB,CAAC;AAExE,qBACa,wBAAyB,YAAW,kBAAkB;;IAGjE,YAAY,CAAC,IAAI,EAAE,MAAM;CAG1B"}
|
package/public-api.d.ts
DELETED
package/public-api.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../projects/volo-lepton-x/src/public-api.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
.lpx-theme-dark {
|
|
2
|
-
--lpx-ant-tree-hover: #1d1d1f;
|
|
3
|
-
}
|
|
4
|
-
.lpx-theme-light {
|
|
5
|
-
--lpx-ant-tree-hover: #eeeeee;
|
|
6
|
-
}
|
|
7
|
-
.lpx-theme-dim {
|
|
8
|
-
--lpx-ant-tree-hover: #f0f3f5;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.ant-tree {
|
|
12
|
-
background: lpx-var(card-bg) !important;
|
|
13
|
-
.ant-tree-node-content-wrapper:hover {
|
|
14
|
-
background-color: lpx-var(ant-tree-hover) !important;
|
|
15
|
-
}
|
|
16
|
-
}
|
package/styles/index.scss
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.entry-row {
|
|
2
|
-
@extend .lpx-page-header;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.content-header-title {
|
|
6
|
-
@extend .lpx-page-title;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
// file management breadcrumb
|
|
10
|
-
abp-file-management-breadcrumb {
|
|
11
|
-
.breadcrumb-item + .breadcrumb-item:before {
|
|
12
|
-
position: relative;
|
|
13
|
-
top: -3px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
.lpx-theme-dark {
|
|
2
|
-
--lpx-ngx-dt-hover: #1d1d1f;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.lpx-theme-light {
|
|
6
|
-
--lpx-ngx-dt-hover: #eeeeee;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.lpx-theme-dim {
|
|
10
|
-
--lpx-ngx-dt-hover: #f0f3f5;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ngx-datatable {
|
|
14
|
-
background: lpx-var(card-bg);
|
|
15
|
-
border-radius: lpx-var(radius);
|
|
16
|
-
color: lpx-var(content-text);
|
|
17
|
-
.datatable-header {
|
|
18
|
-
.datatable-header-cell {
|
|
19
|
-
background-color: lpx-var(card-bg) !important;
|
|
20
|
-
color: lpx-var(content-text) !important;
|
|
21
|
-
}
|
|
22
|
-
.resize-handle {
|
|
23
|
-
border-right: solid 1px lpx-var(ngx-dt-hover) !important;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
.datatable-body .datatable-body-row .datatable-body-cell {
|
|
27
|
-
color: lpx-var(content-text) !important;
|
|
28
|
-
}
|
|
29
|
-
.datatable-footer {
|
|
30
|
-
color: lpx-var-rgb(content-text, 0.56) !important;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&:not(.cell-selection) {
|
|
34
|
-
.datatable-body-row:hover {
|
|
35
|
-
background-color: lpx-var(ngx-dt-hover) !important;
|
|
36
|
-
.datatable-row-group {
|
|
37
|
-
background-color: lpx-var(ngx-dt-hover) !important;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|