@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.
Files changed (200) hide show
  1. package/README.md +1 -1
  2. package/account/account/account-layout.component.d.ts +3 -1
  3. package/account/account/account-layout.module.d.ts +15 -3
  4. package/account/account/components/auth-wrapper/auth-wrapper.component.d.ts +4 -4
  5. package/account/account/components/index.d.ts +0 -1
  6. package/account/account/components/tenant-box/tenant-box.component.d.ts +3 -1
  7. package/account/account/index.d.ts +0 -1
  8. package/account/index.d.ts +1 -0
  9. package/account/package.json +5 -6
  10. package/account/volosoft-abp.ng.theme.lepton-x-account.d.ts +2 -2
  11. package/assets/css/abp-bundle.css +159 -0
  12. package/esm2020/account/account/account-layout.component.mjs +19 -0
  13. package/esm2020/account/account/account-layout.module.mjs +73 -0
  14. package/esm2020/account/account/components/auth-wrapper/auth-wrapper.component.mjs +20 -0
  15. package/esm2020/account/account/components/index.mjs +3 -0
  16. package/esm2020/account/account/components/tenant-box/tenant-box.component.mjs +20 -0
  17. package/esm2020/account/account/index.mjs +4 -0
  18. package/esm2020/account/index.mjs +2 -0
  19. package/esm2020/account/volosoft-abp.ng.theme.lepton-x-account.mjs +5 -0
  20. package/esm2020/index.mjs +2 -0
  21. package/esm2020/layouts/index.mjs +2 -0
  22. package/esm2020/layouts/side-menu/index.mjs +2 -0
  23. package/esm2020/layouts/side-menu/layout/index.mjs +3 -0
  24. package/esm2020/layouts/side-menu/layout/side-menu-application-layout.component.mjs +21 -0
  25. package/esm2020/layouts/side-menu/layout/side-menu-layout.module.mjs +50 -0
  26. package/esm2020/layouts/volosoft-abp.ng.theme.lepton-x-layouts.mjs +5 -0
  27. package/esm2020/lib/components/abp-validation-error/abp-validation-error.component.mjs +51 -0
  28. package/esm2020/lib/components/abp-validation-error/abp-validation-error.module.mjs +39 -0
  29. package/esm2020/lib/components/abp-validation-error/index.mjs +3 -0
  30. package/esm2020/lib/components/http-error/http-error.component.mjs +44 -0
  31. package/esm2020/lib/components/http-error/http-error.module.mjs +25 -0
  32. package/esm2020/lib/components/http-error/index.mjs +3 -0
  33. package/esm2020/lib/components/index.mjs +4 -0
  34. package/esm2020/lib/components/page-alert-container/index.mjs +3 -0
  35. package/esm2020/lib/components/page-alert-container/page-alert-container.component.mjs +18 -0
  36. package/esm2020/lib/components/page-alert-container/page-alert-container.module.mjs +19 -0
  37. package/esm2020/lib/enums/components.mjs +2 -0
  38. package/esm2020/lib/enums/index.mjs +2 -0
  39. package/esm2020/lib/index.mjs +5 -0
  40. package/esm2020/lib/lepton-x.module.mjs +56 -0
  41. package/esm2020/lib/providers/init-service.provider.mjs +19 -0
  42. package/esm2020/lib/providers/page-render.provider.mjs +7 -0
  43. package/esm2020/lib/providers/style.provider.mjs +18 -0
  44. package/esm2020/lib/providers/translate.provider.mjs +7 -0
  45. package/esm2020/lib/services/abp-auth.service.mjs +23 -0
  46. package/esm2020/lib/services/abp-settings.service.mjs +136 -0
  47. package/esm2020/lib/services/abp-toolbar.service.mjs +32 -0
  48. package/esm2020/lib/services/abp-translate.service.mjs +24 -0
  49. package/esm2020/lib/services/index.mjs +6 -0
  50. package/esm2020/lib/services/page-render-strategy.service.mjs +14 -0
  51. package/esm2020/styles/index.mjs +2 -0
  52. package/esm2020/styles/lib/handler/index.mjs +2 -0
  53. package/esm2020/styles/lib/handler/style-load.handler.mjs +17 -0
  54. package/esm2020/styles/lib/index.mjs +2 -0
  55. package/esm2020/styles/volosoft-abp.ng.theme.lepton-x-styles.mjs +5 -0
  56. package/esm2020/volosoft-abp.ng.theme.lepton-x.mjs +5 -0
  57. package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.mjs +123 -0
  58. package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.mjs.map +1 -0
  59. package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.mjs +75 -0
  60. package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.mjs.map +1 -0
  61. package/fesm2015/volosoft-abp.ng.theme.lepton-x-styles.mjs +23 -0
  62. package/fesm2015/volosoft-abp.ng.theme.lepton-x-styles.mjs.map +1 -0
  63. package/fesm2015/volosoft-abp.ng.theme.lepton-x.mjs +469 -0
  64. package/fesm2015/volosoft-abp.ng.theme.lepton-x.mjs.map +1 -0
  65. package/fesm2020/volosoft-abp.ng.theme.lepton-x-account.mjs +123 -0
  66. package/fesm2020/volosoft-abp.ng.theme.lepton-x-account.mjs.map +1 -0
  67. package/fesm2020/volosoft-abp.ng.theme.lepton-x-layouts.mjs +75 -0
  68. package/fesm2020/volosoft-abp.ng.theme.lepton-x-layouts.mjs.map +1 -0
  69. package/fesm2020/volosoft-abp.ng.theme.lepton-x-styles.mjs +23 -0
  70. package/fesm2020/volosoft-abp.ng.theme.lepton-x-styles.mjs.map +1 -0
  71. package/fesm2020/volosoft-abp.ng.theme.lepton-x.mjs +476 -0
  72. package/fesm2020/volosoft-abp.ng.theme.lepton-x.mjs.map +1 -0
  73. package/index.d.ts +1 -0
  74. package/layouts/index.d.ts +1 -0
  75. package/layouts/package.json +5 -6
  76. package/layouts/side-menu/index.d.ts +0 -1
  77. package/layouts/side-menu/layout/index.d.ts +0 -1
  78. package/layouts/side-menu/layout/side-menu-application-layout.component.d.ts +9 -10
  79. package/layouts/side-menu/layout/side-menu-layout.module.d.ts +10 -3
  80. package/layouts/volosoft-abp.ng.theme.lepton-x-layouts.d.ts +2 -2
  81. package/lib/components/abp-validation-error/abp-validation-error.component.d.ts +3 -1
  82. package/lib/components/abp-validation-error/abp-validation-error.module.d.ts +8 -1
  83. package/lib/components/abp-validation-error/index.d.ts +0 -1
  84. package/lib/components/http-error/http-error.component.d.ts +10 -0
  85. package/lib/components/http-error/http-error.module.d.ts +13 -0
  86. package/lib/components/http-error/index.d.ts +2 -0
  87. package/lib/components/index.d.ts +1 -1
  88. package/lib/components/page-alert-container/index.d.ts +0 -1
  89. package/lib/components/page-alert-container/page-alert-container.component.d.ts +3 -1
  90. package/lib/components/page-alert-container/page-alert-container.module.d.ts +7 -1
  91. package/lib/enums/components.d.ts +1 -2
  92. package/lib/enums/index.d.ts +0 -1
  93. package/lib/index.d.ts +0 -1
  94. package/lib/lepton-x.module.d.ts +9 -10
  95. package/lib/providers/init-service.provider.d.ts +6 -0
  96. package/lib/providers/page-render.provider.d.ts +2 -0
  97. package/lib/providers/style.provider.d.ts +3 -0
  98. package/lib/providers/translate.provider.d.ts +2 -0
  99. package/lib/services/abp-auth.service.d.ts +12 -0
  100. package/lib/services/abp-settings.service.d.ts +9 -3
  101. package/lib/services/abp-toolbar.service.d.ts +3 -1
  102. package/lib/services/abp-translate.service.d.ts +12 -0
  103. package/lib/services/index.d.ts +2 -2
  104. package/lib/services/page-render-strategy.service.d.ts +3 -2
  105. package/package.json +68 -16
  106. package/styles/index.d.ts +1 -0
  107. package/styles/lib/handler/index.d.ts +1 -0
  108. package/styles/lib/handler/style-load.handler.d.ts +3 -0
  109. package/styles/lib/index.d.ts +1 -0
  110. package/styles/package.json +10 -0
  111. package/styles/volosoft-abp.ng.theme.lepton-x-styles.d.ts +5 -0
  112. package/volosoft-abp.ng.theme.lepton-x.d.ts +2 -2
  113. package/account/account/account-layout.component.d.ts.map +0 -1
  114. package/account/account/account-layout.module.d.ts.map +0 -1
  115. package/account/account/components/auth-wrapper/auth-wrapper.component.d.ts.map +0 -1
  116. package/account/account/components/index.d.ts.map +0 -1
  117. package/account/account/components/tenant-box/tenant-box.component.d.ts.map +0 -1
  118. package/account/account/index.d.ts.map +0 -1
  119. package/account/public-api.d.ts +0 -2
  120. package/account/public-api.d.ts.map +0 -1
  121. package/account/volosoft-abp.ng.theme.lepton-x-account.d.ts.map +0 -1
  122. package/account/volosoft-abp.ng.theme.lepton-x-account.metadata.json +0 -1
  123. package/bundles/volosoft-abp.ng.theme.lepton-x-account.umd.js +0 -115
  124. package/bundles/volosoft-abp.ng.theme.lepton-x-account.umd.js.map +0 -1
  125. package/bundles/volosoft-abp.ng.theme.lepton-x-layouts.umd.js +0 -74
  126. package/bundles/volosoft-abp.ng.theme.lepton-x-layouts.umd.js.map +0 -1
  127. package/bundles/volosoft-abp.ng.theme.lepton-x.umd.js +0 -746
  128. package/bundles/volosoft-abp.ng.theme.lepton-x.umd.js.map +0 -1
  129. package/esm2015/account/account/account-layout.component.js +0 -13
  130. package/esm2015/account/account/account-layout.module.js +0 -50
  131. package/esm2015/account/account/components/auth-wrapper/auth-wrapper.component.js +0 -23
  132. package/esm2015/account/account/components/index.js +0 -3
  133. package/esm2015/account/account/components/tenant-box/tenant-box.component.js +0 -18
  134. package/esm2015/account/account/index.js +0 -4
  135. package/esm2015/account/public-api.js +0 -2
  136. package/esm2015/account/volosoft-abp.ng.theme.lepton-x-account.js +0 -5
  137. package/esm2015/layouts/public-api.js +0 -2
  138. package/esm2015/layouts/side-menu/index.js +0 -2
  139. package/esm2015/layouts/side-menu/layout/index.js +0 -3
  140. package/esm2015/layouts/side-menu/layout/side-menu-application-layout.component.js +0 -19
  141. package/esm2015/layouts/side-menu/layout/side-menu-layout.module.js +0 -39
  142. package/esm2015/layouts/volosoft-abp.ng.theme.lepton-x-layouts.js +0 -5
  143. package/esm2015/lib/components/abp-validation-error/abp-validation-error.component.js +0 -35
  144. package/esm2015/lib/components/abp-validation-error/abp-validation-error.module.js +0 -34
  145. package/esm2015/lib/components/abp-validation-error/index.js +0 -3
  146. package/esm2015/lib/components/index.js +0 -3
  147. package/esm2015/lib/components/page-alert-container/index.js +0 -3
  148. package/esm2015/lib/components/page-alert-container/page-alert-container.component.js +0 -17
  149. package/esm2015/lib/components/page-alert-container/page-alert-container.module.js +0 -14
  150. package/esm2015/lib/enums/components.js +0 -2
  151. package/esm2015/lib/enums/index.js +0 -2
  152. package/esm2015/lib/index.js +0 -5
  153. package/esm2015/lib/lepton-x.module.js +0 -104
  154. package/esm2015/lib/services/abp-navbar.service.js +0 -43
  155. package/esm2015/lib/services/abp-settings.service.js +0 -101
  156. package/esm2015/lib/services/abp-toolbar.service.js +0 -35
  157. package/esm2015/lib/services/index.js +0 -5
  158. package/esm2015/lib/services/page-render-strategy.service.js +0 -13
  159. package/esm2015/public-api.js +0 -2
  160. package/esm2015/volosoft-abp.ng.theme.lepton-x.js +0 -5
  161. package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.js +0 -104
  162. package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.js.map +0 -1
  163. package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.js +0 -63
  164. package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.js.map +0 -1
  165. package/fesm2015/volosoft-abp.ng.theme.lepton-x.js +0 -371
  166. package/fesm2015/volosoft-abp.ng.theme.lepton-x.js.map +0 -1
  167. package/layouts/public-api.d.ts +0 -2
  168. package/layouts/public-api.d.ts.map +0 -1
  169. package/layouts/side-menu/index.d.ts.map +0 -1
  170. package/layouts/side-menu/layout/index.d.ts.map +0 -1
  171. package/layouts/side-menu/layout/side-menu-application-layout.component.d.ts.map +0 -1
  172. package/layouts/side-menu/layout/side-menu-layout.module.d.ts.map +0 -1
  173. package/layouts/volosoft-abp.ng.theme.lepton-x-layouts.d.ts.map +0 -1
  174. package/layouts/volosoft-abp.ng.theme.lepton-x-layouts.metadata.json +0 -1
  175. package/lib/components/abp-validation-error/abp-validation-error.component.d.ts.map +0 -1
  176. package/lib/components/abp-validation-error/abp-validation-error.module.d.ts.map +0 -1
  177. package/lib/components/abp-validation-error/index.d.ts.map +0 -1
  178. package/lib/components/index.d.ts.map +0 -1
  179. package/lib/components/page-alert-container/index.d.ts.map +0 -1
  180. package/lib/components/page-alert-container/page-alert-container.component.d.ts.map +0 -1
  181. package/lib/components/page-alert-container/page-alert-container.module.d.ts.map +0 -1
  182. package/lib/enums/components.d.ts.map +0 -1
  183. package/lib/enums/index.d.ts.map +0 -1
  184. package/lib/index.d.ts.map +0 -1
  185. package/lib/lepton-x.module.d.ts.map +0 -1
  186. package/lib/services/abp-navbar.service.d.ts +0 -12
  187. package/lib/services/abp-navbar.service.d.ts.map +0 -1
  188. package/lib/services/abp-settings.service.d.ts.map +0 -1
  189. package/lib/services/abp-toolbar.service.d.ts.map +0 -1
  190. package/lib/services/index.d.ts.map +0 -1
  191. package/lib/services/page-render-strategy.service.d.ts.map +0 -1
  192. package/public-api.d.ts +0 -2
  193. package/public-api.d.ts.map +0 -1
  194. package/styles/ant-tree/_index.scss +0 -16
  195. package/styles/index.scss +0 -5
  196. package/styles/legacy-compatible/_index.scss +0 -15
  197. package/styles/ngx-datatable/_index.scss +0 -41
  198. package/styles/uppy/_index.scss +0 -23
  199. package/volosoft-abp.ng.theme.lepton-x.d.ts.map +0 -1
  200. package/volosoft-abp.ng.theme.lepton-x.metadata.json +0 -1
@@ -0,0 +1,469 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, ViewEncapsulation, NgModule, Injectable, Inject, Optional, APP_INITIALIZER } from '@angular/core';
3
+ import { ValidationErrorComponent, VALIDATION_ERROR_TEMPLATE, VALIDATION_INVALID_CLASSES, VALIDATION_TARGET_SELECTOR, NgxValidateCoreModule } from '@ngx-validate/core';
4
+ import * as i2 from '@angular/common';
5
+ import { CommonModule } from '@angular/common';
6
+ import * as i1 from '@abp/ng.core';
7
+ import { CoreModule, NAVIGATE_TO_MANAGE_PROFILE } from '@abp/ng.core';
8
+ import * as i1$1 from '@angular/router';
9
+ import * as i1$2 from '@abp/ng.theme.shared';
10
+ import { ThemeSharedModule } from '@abp/ng.theme.shared';
11
+ import { filter, switchMap, map } from 'rxjs/operators';
12
+ import * as i3 from 'rxjs';
13
+ import { zip, of } from 'rxjs';
14
+ import { PROFILE_PICTURE, NAVIGATE_TO_MY_SECURITY_LOGS, OPEN_MY_LINK_USERS_MODAL, PROFILE_PICTURE_PROVIDERS } from '@volo/abp.commercial.ng.ui/config';
15
+ import * as i2$1 from '@volo/ngx-lepton-x.core';
16
+ import { LPX_TRANSLATE_SERVICE_TOKEN } from '@volo/ngx-lepton-x.core';
17
+ import * as i1$3 from '@volosoft/ngx-lepton-x/layouts';
18
+ import { PageParts, PAGE_RENDER_STRATEGY } from '@abp/ng.components/page';
19
+ import { LpxModule } from '@volosoft/ngx-lepton-x';
20
+ import { themeLeptonXStyleLoader } from '@volosoft/abp.ng.theme.lepton-x/styles';
21
+ import { AbpNavbarService } from '@volo/abp.ng.lepton-x.core';
22
+
23
+ class AbpValidationErrorComponent extends ValidationErrorComponent {
24
+ get abpErrors() {
25
+ if (!this.errors || !this.errors.length) {
26
+ return [];
27
+ }
28
+ return this.errors.map(error => {
29
+ if (!error.message) {
30
+ return error;
31
+ }
32
+ const index = error.message.indexOf('[');
33
+ if (index > -1) {
34
+ return Object.assign(Object.assign({}, error), { message: error.message.slice(0, index), interpoliteParams: error.message.slice(index + 1, error.message.length - 1).split(',') });
35
+ }
36
+ return error;
37
+ });
38
+ }
39
+ }
40
+ AbpValidationErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpValidationErrorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
41
+ AbpValidationErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: AbpValidationErrorComponent, selector: "abp-validation-error", usesInheritance: true, ngImport: i0, 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
+ `, isInline: true, directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "abpLocalization": i1.LocalizationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpValidationErrorComponent, decorators: [{
49
+ type: Component,
50
+ args: [{
51
+ selector: 'abp-validation-error',
52
+ // TODO: add validation error class to span
53
+ template: `
54
+ <span class="text-danger" data-valmsg-for="Role.Name" data-valmsg-replace="true"
55
+ ><span *ngFor="let error of abpErrors; trackBy: trackByFn">
56
+ {{ error.message | abpLocalization: error.interpoliteParams }}</span
57
+ ></span
58
+ >
59
+ `,
60
+ changeDetection: ChangeDetectionStrategy.OnPush,
61
+ encapsulation: ViewEncapsulation.None,
62
+ }]
63
+ }] });
64
+
65
+ class AbpValidationErrorModule {
66
+ static forRoot() {
67
+ return {
68
+ ngModule: AbpValidationErrorModule,
69
+ providers: [
70
+ {
71
+ provide: VALIDATION_ERROR_TEMPLATE,
72
+ useValue: AbpValidationErrorComponent,
73
+ },
74
+ {
75
+ provide: VALIDATION_INVALID_CLASSES,
76
+ useValue: 'input-validation-error',
77
+ },
78
+ {
79
+ provide: VALIDATION_TARGET_SELECTOR,
80
+ useValue: '.form-control',
81
+ },
82
+ ],
83
+ };
84
+ }
85
+ }
86
+ AbpValidationErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpValidationErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
87
+ AbpValidationErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpValidationErrorModule, declarations: [AbpValidationErrorComponent], imports: [CommonModule, CoreModule, NgxValidateCoreModule], exports: [AbpValidationErrorComponent, NgxValidateCoreModule] });
88
+ AbpValidationErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpValidationErrorModule, imports: [[CommonModule, CoreModule, NgxValidateCoreModule], NgxValidateCoreModule] });
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpValidationErrorModule, decorators: [{
90
+ type: NgModule,
91
+ args: [{
92
+ declarations: [AbpValidationErrorComponent],
93
+ imports: [CommonModule, CoreModule, NgxValidateCoreModule],
94
+ exports: [AbpValidationErrorComponent, NgxValidateCoreModule],
95
+ }]
96
+ }] });
97
+
98
+ class HttpErrorComponent {
99
+ constructor() {
100
+ this.errorStatus = '401';
101
+ }
102
+ get errorStatusText() {
103
+ switch (this.errorStatus) {
104
+ case '401':
105
+ return 'AbpUi::401Message';
106
+ case '403':
107
+ return 'AbpUi::403Message';
108
+ case '404':
109
+ return 'AbpUi::404Message';
110
+ case '500':
111
+ return 'AbpUi::500Message';
112
+ default:
113
+ return '';
114
+ }
115
+ }
116
+ get errorDetail() {
117
+ switch (this.errorStatus) {
118
+ case '401':
119
+ return 'AbpUi::DefaultErrorMessage401Detail';
120
+ case '403':
121
+ return 'AbpUi::DefaultErrorMessage403Detail';
122
+ case '404':
123
+ return 'AbpUi::DefaultErrorMessage404Detail';
124
+ case '500':
125
+ return 'AbpUi::DefaultErrorMessage';
126
+ default:
127
+ return '';
128
+ }
129
+ }
130
+ }
131
+ HttpErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: HttpErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
132
+ HttpErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: HttpErrorComponent, selector: "abp-http-error", ngImport: i0, template: "<div class=\"error-page-container\">\r\n <div class=\"row\">\r\n <div class=\"col col-auto\">\r\n <div class=\"status-icon\">\r\n <i class=\"fa fa-frown-o text-danger\" aria-hidden=\"true\"></i>\r\n <span></span>\r\n </div>\r\n </div>\r\n <div class=\"col\">\r\n <div class=\"status-content\">\r\n <h1>{{ errorStatus }}</h1>\r\n <h2 class=\"text-danger mb-0\">\r\n {{ errorStatusText | abpLocalization\r\n }}<small class=\"text-muted\">{{\r\n errorDetail | abpLocalization\r\n }}</small>\r\n </h2>\r\n <p class=\"mt-3 mb-4\"></p>\r\n <a (click)=\"destroy$.next()\" routerLink=\"/\" class=\"btn btn-primary\">{{\r\n 'AbpUi::GoHomePage' | abpLocalization\r\n }}</a>\r\n <a\r\n href=\"javascript:void(0)\"\r\n class=\"mt-4 mb-1 d-block\"\r\n (click)=\"destroy$.next()\"\r\n ><i class=\"fa fa-long-arrow-left me-1\"></i\r\n >{{ 'AbpUi::GoBack' | abpLocalization }}</a\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", directives: [{ type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: HttpErrorComponent, decorators: [{
134
+ type: Component,
135
+ args: [{ selector: 'abp-http-error', template: "<div class=\"error-page-container\">\r\n <div class=\"row\">\r\n <div class=\"col col-auto\">\r\n <div class=\"status-icon\">\r\n <i class=\"fa fa-frown-o text-danger\" aria-hidden=\"true\"></i>\r\n <span></span>\r\n </div>\r\n </div>\r\n <div class=\"col\">\r\n <div class=\"status-content\">\r\n <h1>{{ errorStatus }}</h1>\r\n <h2 class=\"text-danger mb-0\">\r\n {{ errorStatusText | abpLocalization\r\n }}<small class=\"text-muted\">{{\r\n errorDetail | abpLocalization\r\n }}</small>\r\n </h2>\r\n <p class=\"mt-3 mb-4\"></p>\r\n <a (click)=\"destroy$.next()\" routerLink=\"/\" class=\"btn btn-primary\">{{\r\n 'AbpUi::GoHomePage' | abpLocalization\r\n }}</a>\r\n <a\r\n href=\"javascript:void(0)\"\r\n class=\"mt-4 mb-1 d-block\"\r\n (click)=\"destroy$.next()\"\r\n ><i class=\"fa fa-long-arrow-left me-1\"></i\r\n >{{ 'AbpUi::GoBack' | abpLocalization }}</a\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
136
+ }] });
137
+
138
+ class HttpErrorModule {
139
+ static forRoot() {
140
+ return {
141
+ ngModule: HttpErrorModule,
142
+ providers: [],
143
+ };
144
+ }
145
+ }
146
+ HttpErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: HttpErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
147
+ HttpErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: HttpErrorModule, declarations: [HttpErrorComponent], imports: [CoreModule, CommonModule], exports: [HttpErrorComponent] });
148
+ HttpErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: HttpErrorModule, imports: [[CoreModule, CommonModule]] });
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: HttpErrorModule, decorators: [{
150
+ type: NgModule,
151
+ args: [{
152
+ declarations: [HttpErrorComponent],
153
+ imports: [CoreModule, CommonModule],
154
+ exports: [HttpErrorComponent],
155
+ }]
156
+ }] });
157
+
158
+ class PageAlertContainerComponent {
159
+ constructor(service) {
160
+ this.service = service;
161
+ }
162
+ }
163
+ PageAlertContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PageAlertContainerComponent, deps: [{ token: i1$2.PageAlertService }], target: i0.ɵɵFactoryTarget.Component });
164
+ PageAlertContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: PageAlertContainerComponent, selector: "abp-page-alert-container", ngImport: i0, template: "<ng-container *ngFor=\"let alert of service.alerts$ | async; let i = index\">\r\n <div\r\n class=\"alert alert-{{ alert.type }} fade show\"\r\n [ngClass]=\"{ 'alert-dismissible fade show': alert.dismissible }\"\r\n role=\"alert\"\r\n >\r\n <h4 class=\"alert-heading\" *ngIf=\"alert.title\">\r\n {{ alert.title | abpLocalization: alert.titleLocalizationParams }}\r\n </h4>\r\n {{ alert.message | abpLocalization: alert.messageLocalizationParams }}\r\n <button\r\n *ngIf=\"alert.dismissible\"\r\n type=\"button\"\r\n class=\"close\"\r\n data-dismiss=\"alert\"\r\n aria-label=\"Close\"\r\n (click)=\"service.remove(i)\"\r\n >\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n</ng-container>\r\n", directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe, "abpLocalization": i1.LocalizationPipe } });
165
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PageAlertContainerComponent, decorators: [{
166
+ type: Component,
167
+ args: [{ selector: 'abp-page-alert-container', template: "<ng-container *ngFor=\"let alert of service.alerts$ | async; let i = index\">\r\n <div\r\n class=\"alert alert-{{ alert.type }} fade show\"\r\n [ngClass]=\"{ 'alert-dismissible fade show': alert.dismissible }\"\r\n role=\"alert\"\r\n >\r\n <h4 class=\"alert-heading\" *ngIf=\"alert.title\">\r\n {{ alert.title | abpLocalization: alert.titleLocalizationParams }}\r\n </h4>\r\n {{ alert.message | abpLocalization: alert.messageLocalizationParams }}\r\n <button\r\n *ngIf=\"alert.dismissible\"\r\n type=\"button\"\r\n class=\"close\"\r\n data-dismiss=\"alert\"\r\n aria-label=\"Close\"\r\n (click)=\"service.remove(i)\"\r\n >\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n</ng-container>\r\n" }]
168
+ }], ctorParameters: function () { return [{ type: i1$2.PageAlertService }]; } });
169
+
170
+ class PageAlertContainerModule {
171
+ }
172
+ PageAlertContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PageAlertContainerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
173
+ PageAlertContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PageAlertContainerModule, declarations: [PageAlertContainerComponent], imports: [ThemeSharedModule, CoreModule], exports: [PageAlertContainerComponent] });
174
+ PageAlertContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PageAlertContainerModule, imports: [[ThemeSharedModule, CoreModule]] });
175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: PageAlertContainerModule, decorators: [{
176
+ type: NgModule,
177
+ args: [{
178
+ declarations: [PageAlertContainerComponent],
179
+ imports: [ThemeSharedModule, CoreModule],
180
+ exports: [PageAlertContainerComponent],
181
+ }]
182
+ }] });
183
+
184
+ class AbpSettingsService {
185
+ constructor(sessionService, configStateService, languageService, authService, userProfileService, profilePicture$, navigateToManageProfile, navigateToMySecurityLogs, openMyLinkUsersModal, localizationService) {
186
+ this.sessionService = sessionService;
187
+ this.configStateService = configStateService;
188
+ this.languageService = languageService;
189
+ this.authService = authService;
190
+ this.userProfileService = userProfileService;
191
+ this.profilePicture$ = profilePicture$;
192
+ this.navigateToManageProfile = navigateToManageProfile;
193
+ this.navigateToMySecurityLogs = navigateToMySecurityLogs;
194
+ this.openMyLinkUsersModal = openMyLinkUsersModal;
195
+ this.localizationService = localizationService;
196
+ }
197
+ setUpListeners() {
198
+ this.listenToLangChange();
199
+ this.setLanguageOptions();
200
+ this.setUserProfile();
201
+ this.setProfilePicture();
202
+ this.setUserMenuGroups();
203
+ }
204
+ setUserProfile() {
205
+ const emptyStringOnNull = (value) => value || '';
206
+ this.configStateService
207
+ .getOne$('currentUser')
208
+ .pipe(filter(Boolean))
209
+ .subscribe((currentUser) => this.userProfileService.patchUser({
210
+ userName: currentUser.userName,
211
+ fullName: emptyStringOnNull(currentUser.name) +
212
+ ' ' +
213
+ emptyStringOnNull(currentUser.surName),
214
+ email: currentUser.email,
215
+ }));
216
+ }
217
+ setUserMenuGroups() {
218
+ zip(this.localizationService.get('AbpAccount::LinkedAccounts'), this.localizationService.get('AbpAccount::MyAccount'), this.localizationService.get('AbpAccount::MySecurityLogs'), this.localizationService.get('AbpUi::Logout')).subscribe(([linkedAccountsText, myAccountText, mySecurityLogsText, logoutText]) => {
219
+ this.userProfileService.patchUser({
220
+ userActionGroups: [
221
+ [
222
+ ...(this.openMyLinkUsersModal
223
+ ? [
224
+ {
225
+ icon: 'bi bi-link',
226
+ text: linkedAccountsText,
227
+ action: () => this.openMyLinkUsersModal(),
228
+ },
229
+ ]
230
+ : []),
231
+ {
232
+ icon: 'bi bi-sliders',
233
+ text: myAccountText,
234
+ action: () => {
235
+ this.navigateToManageProfile();
236
+ return of(true);
237
+ },
238
+ },
239
+ {
240
+ icon: 'bi bi-list-ul',
241
+ text: mySecurityLogsText,
242
+ action: () => {
243
+ this.navigateToMySecurityLogs();
244
+ return of(true);
245
+ },
246
+ },
247
+ ],
248
+ [
249
+ {
250
+ icon: 'bi bi-box-arrow-right',
251
+ text: logoutText,
252
+ action: () => this.authService.logout(),
253
+ },
254
+ ],
255
+ ],
256
+ });
257
+ });
258
+ }
259
+ setProfilePicture() {
260
+ this.profilePicture$
261
+ .pipe(filter(Boolean))
262
+ .subscribe((avatar) => this.userProfileService.patchUser({
263
+ avatar: {
264
+ type: avatar.type,
265
+ source: avatar.source || '',
266
+ },
267
+ }));
268
+ }
269
+ setLanguageOptions() {
270
+ this.sessionService
271
+ .getLanguage$()
272
+ .pipe(switchMap((currentLang) => this.configStateService.getDeep$('localization.languages').pipe(filter(Boolean), map((languages) => languages.map(({ cultureName, displayName }) => ({
273
+ cultureName,
274
+ displayName,
275
+ selected: cultureName === currentLang,
276
+ }))))))
277
+ .subscribe((settings) => {
278
+ this.languageService.setLanguages(settings);
279
+ });
280
+ }
281
+ listenToLangChange() {
282
+ this.languageService.selectedLanguage$
283
+ .pipe(filter(Boolean))
284
+ .subscribe((lang) => {
285
+ this.sessionService.setLanguage((lang === null || lang === void 0 ? void 0 : lang.cultureName) || '');
286
+ });
287
+ }
288
+ }
289
+ AbpSettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpSettingsService, deps: [{ token: i1.SessionStateService }, { token: i1.ConfigStateService }, { token: i2$1.LanguageService }, { token: i1.AuthService }, { token: i2$1.UserProfileService }, { token: PROFILE_PICTURE }, { token: NAVIGATE_TO_MANAGE_PROFILE }, { token: NAVIGATE_TO_MY_SECURITY_LOGS }, { token: OPEN_MY_LINK_USERS_MODAL, optional: true }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
290
+ AbpSettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpSettingsService, providedIn: 'root' });
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpSettingsService, decorators: [{
292
+ type: Injectable,
293
+ args: [{ providedIn: 'root' }]
294
+ }], ctorParameters: function () {
295
+ return [{ type: i1.SessionStateService }, { type: i1.ConfigStateService }, { type: i2$1.LanguageService }, { type: i1.AuthService }, { type: i2$1.UserProfileService }, { type: i3.BehaviorSubject, decorators: [{
296
+ type: Inject,
297
+ args: [PROFILE_PICTURE]
298
+ }] }, { type: undefined, decorators: [{
299
+ type: Inject,
300
+ args: [NAVIGATE_TO_MANAGE_PROFILE]
301
+ }] }, { type: undefined, decorators: [{
302
+ type: Inject,
303
+ args: [NAVIGATE_TO_MY_SECURITY_LOGS]
304
+ }] }, { type: undefined, decorators: [{
305
+ type: Optional
306
+ }, {
307
+ type: Inject,
308
+ args: [OPEN_MY_LINK_USERS_MODAL]
309
+ }] }, { type: i1.LocalizationService }];
310
+ } });
311
+
312
+ class AbpToolbarService {
313
+ constructor(toolbar, navItems, permissionService) {
314
+ this.toolbar = toolbar;
315
+ this.navItems = navItems;
316
+ this.permissionService = permissionService;
317
+ }
318
+ listenNavItems() {
319
+ this.navItems.items$
320
+ .pipe(switchMap((items) => this.permissionService.filterItemsByPolicy$(items)))
321
+ .subscribe((items) => {
322
+ this.toolbar.setItems(items);
323
+ });
324
+ }
325
+ }
326
+ AbpToolbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpToolbarService, deps: [{ token: i1$3.ToolbarService }, { token: i1$2.NavItemsService }, { token: i1.PermissionService }], target: i0.ɵɵFactoryTarget.Injectable });
327
+ AbpToolbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpToolbarService, providedIn: 'root' });
328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpToolbarService, decorators: [{
329
+ type: Injectable,
330
+ args: [{
331
+ providedIn: 'root',
332
+ }]
333
+ }], ctorParameters: function () { return [{ type: i1$3.ToolbarService }, { type: i1$2.NavItemsService }, { type: i1.PermissionService }]; } });
334
+
335
+ class AbpTranslateService {
336
+ constructor(localization) {
337
+ this.localization = localization;
338
+ }
339
+ get(key, defaultValue) {
340
+ return this.localization.instant({
341
+ key: `ThemeLeptonX::${key}`,
342
+ defaultValue,
343
+ });
344
+ }
345
+ get$(key, defaultValue) {
346
+ return this.localization.get({ key: `ThemeLeptonX::${key}`, defaultValue });
347
+ }
348
+ }
349
+ AbpTranslateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpTranslateService, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
350
+ AbpTranslateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpTranslateService });
351
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpTranslateService, decorators: [{
352
+ type: Injectable
353
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
354
+
355
+ class LeptonXPageRenderService {
356
+ shouldRender(type) {
357
+ return type !== PageParts.breadcrumb;
358
+ }
359
+ }
360
+ LeptonXPageRenderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: LeptonXPageRenderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
361
+ LeptonXPageRenderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: LeptonXPageRenderService });
362
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: LeptonXPageRenderService, decorators: [{
363
+ type: Injectable
364
+ }] });
365
+
366
+ class AbpAuthService {
367
+ constructor(userProfileService, authService) {
368
+ this.userProfileService = userProfileService;
369
+ this.authService = authService;
370
+ this.isUserExists$ = this.userProfileService.user$.pipe(map((user) => user && !!user.userName));
371
+ }
372
+ navigateToLogin() {
373
+ this.authService.navigateToLogin();
374
+ }
375
+ }
376
+ AbpAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpAuthService, deps: [{ token: i2$1.UserProfileService }, { token: i1.AuthService }], target: i0.ɵɵFactoryTarget.Injectable });
377
+ AbpAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpAuthService });
378
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AbpAuthService, decorators: [{
379
+ type: Injectable
380
+ }], ctorParameters: function () { return [{ type: i2$1.UserProfileService }, { type: i1.AuthService }]; } });
381
+
382
+ const LPX_STYLE_PROVIDER = {
383
+ provide: APP_INITIALIZER,
384
+ useFactory: initStyles,
385
+ multi: true,
386
+ };
387
+ function initStyles() {
388
+ function init() {
389
+ const loader = document.querySelector('#lp-page-loader');
390
+ if (loader) {
391
+ loader.style.background = 'var(--background)';
392
+ setTimeout(() => { var _a; return (_a = loader.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(loader); }, 500);
393
+ }
394
+ return Promise.resolve();
395
+ }
396
+ return init;
397
+ }
398
+
399
+ const INIT_SERVICE_PROVIDER = {
400
+ provide: APP_INITIALIZER,
401
+ useFactory: initServices,
402
+ deps: [AbpNavbarService, AbpToolbarService, AbpSettingsService],
403
+ multi: true,
404
+ };
405
+ function initServices(navbar, abpToolbar, setting) {
406
+ function init() {
407
+ abpToolbar.listenNavItems();
408
+ setting.setUpListeners();
409
+ navbar.initRoutes();
410
+ }
411
+ return init;
412
+ }
413
+
414
+ const PAGE_RENDER_PROVIDER = {
415
+ provide: PAGE_RENDER_STRATEGY,
416
+ useClass: LeptonXPageRenderService,
417
+ };
418
+
419
+ const LPX_TRANSLATE_PROVIDER = {
420
+ provide: LPX_TRANSLATE_SERVICE_TOKEN,
421
+ useClass: AbpTranslateService,
422
+ };
423
+
424
+ class ThemeLeptonXModule {
425
+ static forRoot(options) {
426
+ return {
427
+ ngModule: ThemeLeptonXModule,
428
+ providers: [
429
+ LPX_STYLE_PROVIDER,
430
+ PROFILE_PICTURE_PROVIDERS,
431
+ INIT_SERVICE_PROVIDER,
432
+ PAGE_RENDER_PROVIDER,
433
+ AbpValidationErrorModule.forRoot().providers,
434
+ // TODO: muhammed: Create an injection token for theme settings
435
+ LpxModule.forRoot(Object.assign({}, createLpxModuleOptions(options))).providers,
436
+ LPX_TRANSLATE_PROVIDER,
437
+ ],
438
+ };
439
+ }
440
+ }
441
+ ThemeLeptonXModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: ThemeLeptonXModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
442
+ ThemeLeptonXModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: ThemeLeptonXModule, imports: [HttpErrorModule], exports: [HttpErrorModule] });
443
+ ThemeLeptonXModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: ThemeLeptonXModule, imports: [[HttpErrorModule], HttpErrorModule] });
444
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: ThemeLeptonXModule, decorators: [{
445
+ type: NgModule,
446
+ args: [{
447
+ imports: [HttpErrorModule],
448
+ exports: [HttpErrorModule],
449
+ }]
450
+ }] });
451
+ function createLpxModuleOptions(options) {
452
+ return Object.assign(Object.assign({}, options), { styleFactory: (styles) => {
453
+ styles.push({
454
+ bundleName: 'abp-bundle',
455
+ handler: themeLeptonXStyleLoader,
456
+ });
457
+ if (options === null || options === void 0 ? void 0 : options.styleFactory) {
458
+ return options.styleFactory(styles);
459
+ }
460
+ return styles;
461
+ } });
462
+ }
463
+
464
+ /**
465
+ * Generated bundle index. Do not edit.
466
+ */
467
+
468
+ export { AbpAuthService, AbpSettingsService, AbpToolbarService, AbpTranslateService, AbpValidationErrorComponent, AbpValidationErrorModule, HttpErrorComponent, HttpErrorModule, LeptonXPageRenderService, PageAlertContainerComponent, PageAlertContainerModule, ThemeLeptonXModule };
469
+ //# sourceMappingURL=volosoft-abp.ng.theme.lepton-x.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volosoft-abp.ng.theme.lepton-x.mjs","sources":["../../../../libs/volo-lepton-x/src/lib/components/abp-validation-error/abp-validation-error.component.ts","../../../../libs/volo-lepton-x/src/lib/components/abp-validation-error/abp-validation-error.module.ts","../../../../libs/volo-lepton-x/src/lib/components/http-error/http-error.component.ts","../../../../libs/volo-lepton-x/src/lib/components/http-error/http-error.component.html","../../../../libs/volo-lepton-x/src/lib/components/http-error/http-error.module.ts","../../../../libs/volo-lepton-x/src/lib/components/page-alert-container/page-alert-container.component.ts","../../../../libs/volo-lepton-x/src/lib/components/page-alert-container/page-alert-container.component.html","../../../../libs/volo-lepton-x/src/lib/components/page-alert-container/page-alert-container.module.ts","../../../../libs/volo-lepton-x/src/lib/services/abp-settings.service.ts","../../../../libs/volo-lepton-x/src/lib/services/abp-toolbar.service.ts","../../../../libs/volo-lepton-x/src/lib/services/abp-translate.service.ts","../../../../libs/volo-lepton-x/src/lib/services/page-render-strategy.service.ts","../../../../libs/volo-lepton-x/src/lib/services/abp-auth.service.ts","../../../../libs/volo-lepton-x/src/lib/providers/style.provider.ts","../../../../libs/volo-lepton-x/src/lib/providers/init-service.provider.ts","../../../../libs/volo-lepton-x/src/lib/providers/page-render.provider.ts","../../../../libs/volo-lepton-x/src/lib/providers/translate.provider.ts","../../../../libs/volo-lepton-x/src/lib/lepton-x.module.ts","../../../../libs/volo-lepton-x/src/volosoft-abp.ng.theme.lepton-x.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\r\nimport { Validation, ValidationErrorComponent } from '@ngx-validate/core';\r\n@Component({\r\n selector: 'abp-validation-error',\r\n // TODO: add validation error class to span\r\n template: `\r\n <span class=\"text-danger\" data-valmsg-for=\"Role.Name\" data-valmsg-replace=\"true\"\r\n ><span *ngFor=\"let error of abpErrors; trackBy: trackByFn\">\r\n {{ error.message | abpLocalization: error.interpoliteParams }}</span\r\n ></span\r\n >\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AbpValidationErrorComponent extends ValidationErrorComponent {\r\n get abpErrors(): Validation.Error[] & { interpoliteParams?: string[] } {\r\n if (!this.errors || !this.errors.length) {\r\n return [];\r\n }\r\n\r\n return this.errors.map(error => {\r\n if (!error.message) {\r\n return error;\r\n }\r\n\r\n const index = error.message.indexOf('[');\r\n\r\n if (index > -1) {\r\n return {\r\n ...error,\r\n message: error.message.slice(0, index),\r\n interpoliteParams: error.message.slice(index + 1, error.message.length - 1).split(','),\r\n };\r\n }\r\n\r\n return error;\r\n });\r\n }\r\n}\r\n","import { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport {\r\n NgxValidateCoreModule,\r\n VALIDATION_ERROR_TEMPLATE,\r\n VALIDATION_INVALID_CLASSES,\r\n VALIDATION_TARGET_SELECTOR,\r\n} from '@ngx-validate/core';\r\nimport { CoreModule } from '@abp/ng.core';\r\nimport { AbpValidationErrorComponent } from './abp-validation-error.component';\r\n\r\n@NgModule({\r\n declarations: [AbpValidationErrorComponent],\r\n imports: [CommonModule, CoreModule, NgxValidateCoreModule],\r\n exports: [AbpValidationErrorComponent, NgxValidateCoreModule],\r\n})\r\nexport class AbpValidationErrorModule {\r\n static forRoot(): ModuleWithProviders<AbpValidationErrorModule> {\r\n return {\r\n ngModule: AbpValidationErrorModule,\r\n providers: [\r\n {\r\n provide: VALIDATION_ERROR_TEMPLATE,\r\n useValue: AbpValidationErrorComponent,\r\n },\r\n {\r\n provide: VALIDATION_INVALID_CLASSES,\r\n useValue: 'input-validation-error',\r\n },\r\n {\r\n provide: VALIDATION_TARGET_SELECTOR,\r\n useValue: '.form-control',\r\n },\r\n ],\r\n };\r\n }\r\n}\r\n","import { Component } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'abp-http-error',\r\n templateUrl: './http-error.component.html',\r\n})\r\nexport class HttpErrorComponent {\r\n errorStatus = '401';\r\n\r\n get errorStatusText(): string {\r\n switch (this.errorStatus) {\r\n case '401':\r\n return 'AbpUi::401Message';\r\n case '403':\r\n return 'AbpUi::403Message';\r\n case '404':\r\n return 'AbpUi::404Message';\r\n case '500':\r\n return 'AbpUi::500Message';\r\n default:\r\n return '';\r\n }\r\n }\r\n\r\n get errorDetail(): string {\r\n switch (this.errorStatus) {\r\n case '401':\r\n return 'AbpUi::DefaultErrorMessage401Detail';\r\n case '403':\r\n return 'AbpUi::DefaultErrorMessage403Detail';\r\n case '404':\r\n return 'AbpUi::DefaultErrorMessage404Detail';\r\n case '500':\r\n return 'AbpUi::DefaultErrorMessage';\r\n default:\r\n return '';\r\n }\r\n }\r\n\r\n destroy$: Subject<void>;\r\n}\r\n","<div class=\"error-page-container\">\r\n <div class=\"row\">\r\n <div class=\"col col-auto\">\r\n <div class=\"status-icon\">\r\n <i class=\"fa fa-frown-o text-danger\" aria-hidden=\"true\"></i>\r\n <span></span>\r\n </div>\r\n </div>\r\n <div class=\"col\">\r\n <div class=\"status-content\">\r\n <h1>{{ errorStatus }}</h1>\r\n <h2 class=\"text-danger mb-0\">\r\n {{ errorStatusText | abpLocalization\r\n }}<small class=\"text-muted\">{{\r\n errorDetail | abpLocalization\r\n }}</small>\r\n </h2>\r\n <p class=\"mt-3 mb-4\"></p>\r\n <a (click)=\"destroy$.next()\" routerLink=\"/\" class=\"btn btn-primary\">{{\r\n 'AbpUi::GoHomePage' | abpLocalization\r\n }}</a>\r\n <a\r\n href=\"javascript:void(0)\"\r\n class=\"mt-4 mb-1 d-block\"\r\n (click)=\"destroy$.next()\"\r\n ><i class=\"fa fa-long-arrow-left me-1\"></i\r\n >{{ 'AbpUi::GoBack' | abpLocalization }}</a\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CoreModule } from '@abp/ng.core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { HttpErrorComponent } from './http-error.component';\r\n\r\n@NgModule({\r\n declarations: [HttpErrorComponent],\r\n imports: [CoreModule, CommonModule],\r\n exports: [HttpErrorComponent],\r\n})\r\nexport class HttpErrorModule {\r\n static forRoot() {\r\n return {\r\n ngModule: HttpErrorModule,\r\n providers: [],\r\n };\r\n }\r\n}\r\n","import { Component } from '@angular/core';\r\nimport { PageAlertService } from '@abp/ng.theme.shared';\r\n\r\n@Component({\r\n selector: 'abp-page-alert-container',\r\n templateUrl: './page-alert-container.component.html',\r\n})\r\nexport class PageAlertContainerComponent {\r\n constructor(public service: PageAlertService) {}\r\n}\r\n","<ng-container *ngFor=\"let alert of service.alerts$ | async; let i = index\">\r\n <div\r\n class=\"alert alert-{{ alert.type }} fade show\"\r\n [ngClass]=\"{ 'alert-dismissible fade show': alert.dismissible }\"\r\n role=\"alert\"\r\n >\r\n <h4 class=\"alert-heading\" *ngIf=\"alert.title\">\r\n {{ alert.title | abpLocalization: alert.titleLocalizationParams }}\r\n </h4>\r\n {{ alert.message | abpLocalization: alert.messageLocalizationParams }}\r\n <button\r\n *ngIf=\"alert.dismissible\"\r\n type=\"button\"\r\n class=\"close\"\r\n data-dismiss=\"alert\"\r\n aria-label=\"Close\"\r\n (click)=\"service.remove(i)\"\r\n >\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n</ng-container>\r\n","import { NgModule } from '@angular/core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { CoreModule } from '@abp/ng.core';\r\nimport { PageAlertContainerComponent } from './page-alert-container.component';\r\n\r\n@NgModule({\r\n declarations: [PageAlertContainerComponent],\r\n imports: [ThemeSharedModule, CoreModule],\r\n exports: [PageAlertContainerComponent],\r\n})\r\nexport class PageAlertContainerModule {}\r\n","import { Inject, Injectable, Optional } from '@angular/core';\r\nimport { filter, map, switchMap } from 'rxjs/operators';\r\nimport { BehaviorSubject, of, zip } from 'rxjs';\r\nimport {\r\n LanguageService,\r\n LpxLanguage,\r\n UserProfileService,\r\n} from '@volo/ngx-lepton-x.core';\r\nimport {\r\n AuthService,\r\n ConfigStateService,\r\n CurrentUserDto,\r\n LanguageInfo,\r\n LocalizationService,\r\n NAVIGATE_TO_MANAGE_PROFILE,\r\n SessionStateService,\r\n} from '@abp/ng.core';\r\n\r\nimport {\r\n NAVIGATE_TO_MY_SECURITY_LOGS,\r\n OPEN_MY_LINK_USERS_MODAL,\r\n PROFILE_PICTURE,\r\n ProfilePictureImage,\r\n} from '@volo/abp.commercial.ng.ui/config';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AbpSettingsService {\r\n constructor(\r\n private sessionService: SessionStateService,\r\n private configStateService: ConfigStateService,\r\n private languageService: LanguageService,\r\n private authService: AuthService,\r\n private userProfileService: UserProfileService,\r\n @Inject(PROFILE_PICTURE)\r\n private profilePicture$: BehaviorSubject<ProfilePictureImage>,\r\n @Inject(NAVIGATE_TO_MANAGE_PROFILE) public navigateToManageProfile: any,\r\n @Inject(NAVIGATE_TO_MY_SECURITY_LOGS) public navigateToMySecurityLogs: any,\r\n @Optional() @Inject(OPEN_MY_LINK_USERS_MODAL) public openMyLinkUsersModal,\r\n private localizationService: LocalizationService\r\n ) {}\r\n\r\n setUpListeners() {\r\n this.listenToLangChange();\r\n this.setLanguageOptions();\r\n this.setUserProfile();\r\n this.setProfilePicture();\r\n this.setUserMenuGroups();\r\n }\r\n setUserProfile() {\r\n const emptyStringOnNull = (value?: string) => value || '';\r\n\r\n this.configStateService\r\n .getOne$('currentUser')\r\n .pipe(filter<CurrentUserDto>(Boolean))\r\n .subscribe((currentUser) =>\r\n this.userProfileService.patchUser({\r\n userName: currentUser.userName,\r\n fullName:\r\n emptyStringOnNull(currentUser.name) +\r\n ' ' +\r\n emptyStringOnNull(currentUser.surName),\r\n email: currentUser.email,\r\n })\r\n );\r\n }\r\n\r\n setUserMenuGroups() {\r\n zip(\r\n this.localizationService.get('AbpAccount::LinkedAccounts'),\r\n this.localizationService.get('AbpAccount::MyAccount'),\r\n this.localizationService.get('AbpAccount::MySecurityLogs'),\r\n this.localizationService.get('AbpUi::Logout')\r\n ).subscribe(\r\n ([linkedAccountsText, myAccountText, mySecurityLogsText, logoutText]) => {\r\n this.userProfileService.patchUser({\r\n userActionGroups: [\r\n [\r\n ...(this.openMyLinkUsersModal\r\n ? [\r\n {\r\n icon: 'bi bi-link',\r\n text: linkedAccountsText,\r\n action: () => this.openMyLinkUsersModal(),\r\n },\r\n ]\r\n : []),\r\n {\r\n icon: 'bi bi-sliders',\r\n text: myAccountText,\r\n action: () => {\r\n this.navigateToManageProfile();\r\n return of(true);\r\n },\r\n },\r\n {\r\n icon: 'bi bi-list-ul',\r\n text: mySecurityLogsText,\r\n action: () => {\r\n this.navigateToMySecurityLogs();\r\n return of(true);\r\n },\r\n },\r\n ],\r\n [\r\n {\r\n icon: 'bi bi-box-arrow-right',\r\n text: logoutText,\r\n action: () => this.authService.logout(),\r\n },\r\n ],\r\n ],\r\n });\r\n }\r\n );\r\n }\r\n\r\n setProfilePicture() {\r\n this.profilePicture$\r\n .pipe(filter<ProfilePictureImage>(Boolean))\r\n .subscribe((avatar) =>\r\n this.userProfileService.patchUser({\r\n avatar: {\r\n type: avatar.type,\r\n source: avatar.source || '',\r\n },\r\n })\r\n );\r\n }\r\n\r\n setLanguageOptions() {\r\n this.sessionService\r\n .getLanguage$()\r\n .pipe(\r\n switchMap((currentLang) =>\r\n this.configStateService.getDeep$('localization.languages').pipe(\r\n filter<LanguageInfo[]>(Boolean),\r\n map((languages: LanguageInfo[]) =>\r\n languages.map<LpxLanguage>(({ cultureName, displayName }) => ({\r\n cultureName,\r\n displayName,\r\n selected: cultureName === currentLang,\r\n }))\r\n )\r\n )\r\n )\r\n )\r\n .subscribe((settings) => {\r\n this.languageService.setLanguages(settings);\r\n });\r\n }\r\n\r\n listenToLangChange() {\r\n this.languageService.selectedLanguage$\r\n .pipe(filter<LpxLanguage | undefined>(Boolean))\r\n .subscribe((lang) => {\r\n this.sessionService.setLanguage(lang?.cultureName || '');\r\n });\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ToolbarItem, ToolbarService } from '@volosoft/ngx-lepton-x/layouts';\r\nimport { NavItem, NavItemsService } from '@abp/ng.theme.shared';\r\nimport { switchMap } from 'rxjs/operators';\r\nimport { PermissionService } from '@abp/ng.core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AbpToolbarService {\r\n constructor(\r\n private toolbar: ToolbarService,\r\n private navItems: NavItemsService,\r\n private permissionService: PermissionService\r\n ) {}\r\n\r\n listenNavItems() {\r\n this.navItems.items$\r\n .pipe(\r\n switchMap((items: NavItem[]) =>\r\n this.permissionService.filterItemsByPolicy$(items)\r\n )\r\n )\r\n .subscribe((items) => {\r\n this.toolbar.setItems(items as ToolbarItem[]);\r\n });\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { LocalizationService } from '@abp/ng.core';\r\nimport { TranslateService } from '@volo/ngx-lepton-x.core';\r\nimport { Observable } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class AbpTranslateService implements TranslateService {\r\n constructor(private localization: LocalizationService) {}\r\n\r\n get(key: string, defaultValue: string | undefined): string {\r\n return this.localization.instant({\r\n key: `ThemeLeptonX::${key}`,\r\n defaultValue,\r\n });\r\n }\r\n\r\n get$(key: string, defaultValue: string | undefined): Observable<string> {\r\n return this.localization.get({ key: `ThemeLeptonX::${key}`, defaultValue });\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { PageParts, PageRenderStrategy } from '@abp/ng.components/page';\r\n\r\n@Injectable()\r\nexport class LeptonXPageRenderService implements PageRenderStrategy {\r\n shouldRender(type: string) {\r\n return type !== PageParts.breadcrumb;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { AuthService, UserProfileService } from '@volo/ngx-lepton-x.core';\r\nimport { map } from 'rxjs/operators';\r\nimport { AuthService as AuthCoreService } from '@abp/ng.core';\r\n\r\n@Injectable()\r\nexport class AbpAuthService implements AuthService {\r\n constructor(\r\n private userProfileService: UserProfileService,\r\n private authService: AuthCoreService\r\n ) {}\r\n\r\n isUserExists$ = this.userProfileService.user$.pipe(\r\n map((user) => user && !!user.userName)\r\n );\r\n\r\n navigateToLogin(): void {\r\n this.authService.navigateToLogin();\r\n }\r\n}\r\n","import { APP_INITIALIZER, Provider } from '@angular/core';\r\n\r\nexport const LPX_STYLE_PROVIDER: Provider = {\r\n provide: APP_INITIALIZER,\r\n useFactory: initStyles,\r\n multi: true,\r\n};\r\n\r\nexport function initStyles() {\r\n function init() {\r\n const loader = document.querySelector('#lp-page-loader') as HTMLElement;\r\n if (loader) {\r\n loader.style.background = 'var(--background)';\r\n setTimeout(() => loader.parentNode?.removeChild(loader), 500);\r\n }\r\n return Promise.resolve();\r\n }\r\n\r\n return init;\r\n}\r\n","import { APP_INITIALIZER, Provider } from '@angular/core';\r\nimport { AbpNavbarService } from '@volo/abp.ng.lepton-x.core';\r\nimport { AbpToolbarService } from '../services/abp-toolbar.service';\r\nimport { AbpSettingsService } from '../services/abp-settings.service';\r\n\r\nexport const INIT_SERVICE_PROVIDER: Provider = {\r\n provide: APP_INITIALIZER,\r\n useFactory: initServices,\r\n deps: [AbpNavbarService, AbpToolbarService, AbpSettingsService],\r\n multi: true,\r\n};\r\n\r\nexport function initServices(\r\n navbar: AbpNavbarService,\r\n abpToolbar: AbpToolbarService,\r\n setting: AbpSettingsService\r\n) {\r\n function init() {\r\n abpToolbar.listenNavItems();\r\n setting.setUpListeners();\r\n navbar.initRoutes();\r\n }\r\n\r\n return init;\r\n}\r\n","import { Provider } from '@angular/core';\r\nimport { PAGE_RENDER_STRATEGY } from '@abp/ng.components/page';\r\nimport { LeptonXPageRenderService } from '../services/page-render-strategy.service';\r\n\r\nexport const PAGE_RENDER_PROVIDER: Provider = {\r\n provide: PAGE_RENDER_STRATEGY,\r\n useClass: LeptonXPageRenderService,\r\n};\r\n","import { Provider } from '@angular/core';\r\nimport { LPX_TRANSLATE_SERVICE_TOKEN } from '@volo/ngx-lepton-x.core';\r\nimport { AbpTranslateService } from '../services/abp-translate.service';\r\n\r\nexport const LPX_TRANSLATE_PROVIDER: Provider = {\r\n provide: LPX_TRANSLATE_SERVICE_TOKEN,\r\n useClass: AbpTranslateService,\r\n};\r\n","import { ModuleWithProviders, NgModule, Provider } from '@angular/core';\r\nimport { LpxStyles } from '@volo/ngx-lepton-x.core';\r\nimport { LpxModule, LpxOptions } from '@volosoft/ngx-lepton-x';\r\nimport { PROFILE_PICTURE_PROVIDERS } from '@volo/abp.commercial.ng.ui/config';\r\nimport { themeLeptonXStyleLoader } from '@volosoft/abp.ng.theme.lepton-x/styles';\r\nimport { AbpValidationErrorModule } from './components/abp-validation-error/abp-validation-error.module';\r\nimport { LPX_STYLE_PROVIDER } from './providers/style.provider';\r\nimport { INIT_SERVICE_PROVIDER } from './providers/init-service.provider';\r\nimport { PAGE_RENDER_PROVIDER } from './providers/page-render.provider';\r\nimport { LPX_TRANSLATE_PROVIDER } from './providers/translate.provider';\r\nimport { HttpErrorModule } from './components/http-error/http-error.module';\r\n\r\nexport type ThemeLeptonXModuleOptions = LpxOptions;\r\n\r\n@NgModule({\r\n imports: [HttpErrorModule],\r\n exports: [HttpErrorModule],\r\n})\r\nexport class ThemeLeptonXModule {\r\n static forRoot(\r\n options?: ThemeLeptonXModuleOptions\r\n ): ModuleWithProviders<ThemeLeptonXModule> {\r\n return {\r\n ngModule: ThemeLeptonXModule,\r\n providers: [\r\n LPX_STYLE_PROVIDER,\r\n PROFILE_PICTURE_PROVIDERS,\r\n INIT_SERVICE_PROVIDER,\r\n PAGE_RENDER_PROVIDER,\r\n AbpValidationErrorModule.forRoot().providers as Provider,\r\n // TODO: muhammed: Create an injection token for theme settings\r\n LpxModule.forRoot({\r\n ...createLpxModuleOptions(options),\r\n }).providers as Provider,\r\n LPX_TRANSLATE_PROVIDER,\r\n ],\r\n };\r\n }\r\n}\r\nfunction createLpxModuleOptions(options?: ThemeLeptonXModuleOptions) {\r\n return {\r\n ...options,\r\n styleFactory: (styles: LpxStyles) => {\r\n styles.push({\r\n bundleName: 'abp-bundle',\r\n handler: themeLeptonXStyleLoader,\r\n });\r\n if (options?.styleFactory) {\r\n return options.styleFactory(styles);\r\n }\r\n return styles;\r\n },\r\n };\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;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