@abp/ng.theme.basic 7.2.2 → 7.3.0-rc.1

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 (92) hide show
  1. package/{esm2020 → esm2022}/abp-ng.theme.basic.mjs +4 -4
  2. package/esm2022/lib/components/account-layout/account-layout.component.mjs +32 -0
  3. package/esm2022/lib/components/account-layout/auth-wrapper/auth-wrapper.component.mjs +20 -0
  4. package/esm2022/lib/components/account-layout/tenant-box/tenant-box.component.mjs +21 -0
  5. package/esm2022/lib/components/application-layout/application-layout.component.mjs +31 -0
  6. package/esm2022/lib/components/empty-layout/empty-layout.component.mjs +24 -0
  7. package/{esm2020 → esm2022}/lib/components/index.mjs +12 -12
  8. package/esm2022/lib/components/logo/logo.component.mjs +53 -0
  9. package/esm2022/lib/components/nav-items/current-user.component.mjs +40 -0
  10. package/esm2022/lib/components/nav-items/languages.component.mjs +108 -0
  11. package/{esm2020 → esm2022}/lib/components/nav-items/nav-items.component.mjs +20 -19
  12. package/esm2022/lib/components/page-alert-container/page-alert-container.component.mjs +19 -0
  13. package/esm2022/lib/components/routes/routes.component.mjs +38 -0
  14. package/esm2022/lib/components/validation-error/validation-error.component.mjs +45 -0
  15. package/{esm2020 → esm2022}/lib/constants/styles.mjs +1 -1
  16. package/{esm2020 → esm2022}/lib/enums/components.mjs +1 -1
  17. package/{esm2020 → esm2022}/lib/enums/index.mjs +2 -2
  18. package/{esm2020 → esm2022}/lib/enums/user-menu-items.mjs +1 -1
  19. package/{esm2020 → esm2022}/lib/handlers/index.mjs +1 -1
  20. package/esm2022/lib/handlers/lazy-style.handler.mjs +83 -0
  21. package/{esm2020 → esm2022}/lib/models/index.mjs +1 -1
  22. package/{esm2020 → esm2022}/lib/models/layout.mjs +1 -1
  23. package/{esm2020 → esm2022}/lib/providers/index.mjs +3 -3
  24. package/{esm2020 → esm2022}/lib/providers/nav-item.provider.mjs +28 -28
  25. package/{esm2020 → esm2022}/lib/providers/styles.provider.mjs +34 -34
  26. package/{esm2020 → esm2022}/lib/providers/user-menu.provider.mjs +40 -40
  27. package/esm2022/lib/services/layout.service.mjs +42 -0
  28. package/esm2022/lib/theme-basic.module.mjs +128 -0
  29. package/{esm2020 → esm2022}/lib/tokens/index.mjs +1 -1
  30. package/{esm2020 → esm2022}/lib/tokens/lazy-styles.token.mjs +2 -2
  31. package/{esm2020 → esm2022}/public-api.mjs +10 -10
  32. package/{esm2020 → esm2022}/testing/abp-ng.theme.basic-testing.mjs +4 -4
  33. package/esm2022/testing/lib/theme-basic-testing.module.mjs +39 -0
  34. package/{esm2020 → esm2022}/testing/public-api.mjs +1 -1
  35. package/{fesm2015 → fesm2022}/abp-ng.theme.basic-testing.mjs +34 -34
  36. package/{fesm2015 → fesm2022}/abp-ng.theme.basic-testing.mjs.map +1 -1
  37. package/{fesm2020 → fesm2022}/abp-ng.theme.basic.mjs +520 -520
  38. package/{fesm2020 → fesm2022}/abp-ng.theme.basic.mjs.map +1 -1
  39. package/index.d.ts +5 -5
  40. package/lib/components/account-layout/account-layout.component.d.ts +13 -13
  41. package/lib/components/account-layout/auth-wrapper/auth-wrapper.component.d.ts +8 -8
  42. package/lib/components/account-layout/tenant-box/tenant-box.component.d.ts +8 -8
  43. package/lib/components/application-layout/application-layout.component.d.ts +12 -12
  44. package/lib/components/empty-layout/empty-layout.component.d.ts +7 -7
  45. package/lib/components/index.d.ts +12 -12
  46. package/lib/components/logo/logo.component.d.ts +9 -9
  47. package/lib/components/nav-items/current-user.component.d.ts +21 -21
  48. package/lib/components/nav-items/languages.component.d.ts +16 -16
  49. package/lib/components/nav-items/nav-items.component.d.ts +10 -10
  50. package/lib/components/page-alert-container/page-alert-container.component.d.ts +8 -8
  51. package/lib/components/routes/routes.component.d.ts +18 -18
  52. package/lib/components/validation-error/validation-error.component.d.ts +9 -9
  53. package/lib/constants/styles.d.ts +2 -2
  54. package/lib/enums/components.d.ts +10 -10
  55. package/lib/enums/index.d.ts +2 -2
  56. package/lib/enums/user-menu-items.d.ts +4 -4
  57. package/lib/handlers/index.d.ts +1 -1
  58. package/lib/handlers/lazy-style.handler.d.ts +23 -23
  59. package/lib/models/index.d.ts +1 -1
  60. package/lib/models/layout.d.ts +11 -11
  61. package/lib/providers/index.d.ts +3 -3
  62. package/lib/providers/nav-item.provider.d.ts +8 -8
  63. package/lib/providers/styles.provider.d.ts +8 -8
  64. package/lib/providers/user-menu.provider.d.ts +8 -8
  65. package/lib/services/layout.service.d.ts +18 -18
  66. package/lib/theme-basic.module.d.ts +32 -32
  67. package/lib/tokens/index.d.ts +1 -1
  68. package/lib/tokens/lazy-styles.token.d.ts +2 -2
  69. package/package.json +11 -19
  70. package/public-api.d.ts +7 -7
  71. package/testing/index.d.ts +5 -5
  72. package/testing/lib/theme-basic-testing.module.d.ts +9 -9
  73. package/testing/public-api.d.ts +1 -1
  74. package/esm2020/lib/components/account-layout/account-layout.component.mjs +0 -32
  75. package/esm2020/lib/components/account-layout/auth-wrapper/auth-wrapper.component.mjs +0 -19
  76. package/esm2020/lib/components/account-layout/tenant-box/tenant-box.component.mjs +0 -20
  77. package/esm2020/lib/components/application-layout/application-layout.component.mjs +0 -31
  78. package/esm2020/lib/components/empty-layout/empty-layout.component.mjs +0 -23
  79. package/esm2020/lib/components/logo/logo.component.mjs +0 -52
  80. package/esm2020/lib/components/nav-items/current-user.component.mjs +0 -39
  81. package/esm2020/lib/components/nav-items/languages.component.mjs +0 -107
  82. package/esm2020/lib/components/page-alert-container/page-alert-container.component.mjs +0 -18
  83. package/esm2020/lib/components/routes/routes.component.mjs +0 -37
  84. package/esm2020/lib/components/validation-error/validation-error.component.mjs +0 -44
  85. package/esm2020/lib/handlers/lazy-style.handler.mjs +0 -82
  86. package/esm2020/lib/services/layout.service.mjs +0 -41
  87. package/esm2020/lib/theme-basic.module.mjs +0 -126
  88. package/esm2020/testing/lib/theme-basic-testing.module.mjs +0 -38
  89. package/fesm2015/abp-ng.theme.basic.mjs +0 -834
  90. package/fesm2015/abp-ng.theme.basic.mjs.map +0 -1
  91. package/fesm2020/abp-ng.theme.basic-testing.mjs +0 -45
  92. package/fesm2020/abp-ng.theme.basic-testing.mjs.map +0 -1
@@ -1,834 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, Component, Input, ViewChildren, ViewEncapsulation, Inject, ChangeDetectionStrategy, InjectionToken, APP_INITIALIZER, Injector, NgModule } from '@angular/core';
3
- import * as i1 from '@abp/ng.core';
4
- import { SubscriptionService, NAVIGATE_TO_MANAGE_PROFILE, LazyLoadService, LOADING_STRATEGY, DomInsertionService, ReplaceableComponentsService, CONTENT_STRATEGY, AuthService, CoreModule, noop } from '@abp/ng.core';
5
- import { fromEvent } from 'rxjs';
6
- import { debounceTime, map } from 'rxjs/operators';
7
- import * as i2 from '@angular/common';
8
- import * as i3 from '@angular/router';
9
- import * as i5 from '@ng-bootstrap/ng-bootstrap';
10
- import { NgbCollapseModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
11
- import * as i1$1 from '@abp/ng.theme.shared';
12
- import { slideFromBottom, collapseWithMargin, DocumentDirHandlerService, NavItemsService, UserMenuService, ThemeSharedModule } from '@abp/ng.theme.shared';
13
- import * as i1$2 from '@abp/ng.account.core';
14
- import { TenantBoxService, AuthWrapperService } from '@abp/ng.account.core';
15
- import * as i3$1 from '@angular/forms';
16
- import { ValidationErrorComponent as ValidationErrorComponent$1, NgxValidateCoreModule, VALIDATION_ERROR_TEMPLATE, VALIDATION_TARGET_SELECTOR, VALIDATION_INVALID_CLASSES } from '@ngx-validate/core';
17
-
18
- class LayoutService {
19
- constructor(subscription, cdRef, routerEvents) {
20
- this.subscription = subscription;
21
- this.cdRef = cdRef;
22
- this.isCollapsed = true;
23
- this.logoComponentKey = "Theme.LogoComponent" /* eThemeBasicComponents.Logo */;
24
- this.routesComponentKey = "Theme.RoutesComponent" /* eThemeBasicComponents.Routes */;
25
- this.navItemsComponentKey = "Theme.NavItemsComponent" /* eThemeBasicComponents.NavItems */;
26
- subscription.addOne(routerEvents.getNavigationEvents("End"), () => {
27
- this.isCollapsed = true;
28
- });
29
- }
30
- checkWindowWidth() {
31
- const isSmallScreen = window.innerWidth < 992;
32
- if (isSmallScreen && this.smallScreen === false) {
33
- this.isCollapsed = false;
34
- setTimeout(() => {
35
- this.isCollapsed = true;
36
- }, 100);
37
- }
38
- this.smallScreen = isSmallScreen;
39
- this.cdRef.detectChanges();
40
- }
41
- subscribeWindowSize() {
42
- this.checkWindowWidth();
43
- const resize$ = fromEvent(window, 'resize').pipe(debounceTime(150));
44
- this.subscription.addOne(resize$, () => this.checkWindowWidth());
45
- }
46
- }
47
- LayoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LayoutService, deps: [{ token: i1.SubscriptionService }, { token: i0.ChangeDetectorRef }, { token: i1.RouterEvents }], target: i0.ɵɵFactoryTarget.Injectable });
48
- LayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LayoutService });
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LayoutService, decorators: [{
50
- type: Injectable
51
- }], ctorParameters: function () { return [{ type: i1.SubscriptionService }, { type: i0.ChangeDetectorRef }, { type: i1.RouterEvents }]; } });
52
-
53
- class LogoComponent {
54
- constructor(environment) {
55
- this.environment = environment;
56
- }
57
- get appInfo() {
58
- return this.environment.getEnvironment().application;
59
- }
60
- }
61
- LogoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LogoComponent, deps: [{ token: i1.EnvironmentService }], target: i0.ɵɵFactoryTarget.Component });
62
- LogoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: LogoComponent, selector: "abp-logo", ngImport: i0, template: `
63
- <a class="navbar-brand" routerLink="/">
64
- <img
65
- *ngIf="appInfo.logoUrl; else appName"
66
- [src]="appInfo.logoUrl"
67
- [alt]="appInfo.name"
68
- width="100%"
69
- height="auto"
70
- />
71
- </a>
72
-
73
- <ng-template #appName>
74
- {{ appInfo.name }}
75
- </ng-template>
76
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LogoComponent, decorators: [{
78
- type: Component,
79
- args: [{
80
- selector: 'abp-logo',
81
- template: `
82
- <a class="navbar-brand" routerLink="/">
83
- <img
84
- *ngIf="appInfo.logoUrl; else appName"
85
- [src]="appInfo.logoUrl"
86
- [alt]="appInfo.name"
87
- width="100%"
88
- height="auto"
89
- />
90
- </a>
91
-
92
- <ng-template #appName>
93
- {{ appInfo.name }}
94
- </ng-template>
95
- `,
96
- }]
97
- }], ctorParameters: function () { return [{ type: i1.EnvironmentService }]; } });
98
-
99
- class NavItemsComponent {
100
- constructor(navItems) {
101
- this.navItems = navItems;
102
- this.trackByFn = (_, element) => element.id;
103
- }
104
- }
105
- NavItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavItemsComponent, deps: [{ token: i1$1.NavItemsService }], target: i0.ɵɵFactoryTarget.Component });
106
- NavItemsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NavItemsComponent, selector: "abp-nav-items", ngImport: i0, template: "<ul class=\"navbar-nav\">\r\n <ng-container *ngFor=\"let item of navItems.items$ | async; trackBy: trackByFn\">\r\n <ng-container *abpVisible=\"!item.visible || item.visible(item)\">\r\n <li class=\"nav-item d-flex align-items-center\" *abpPermission=\"item.requiredPolicy\">\r\n <ng-container \r\n \r\n *ngIf=\"item.component; else htmlTemplate\" \r\n [ngComponentOutlet]=\"item.component\"\r\n [ngComponentOutletInjector]=\"item | toInjector\"\r\n ></ng-container>\r\n \r\n <ng-template #htmlTemplate>\r\n <div [innerHTML]=\"item.html\" (click)=\"item.action ? item.action() : null\"></div>\r\n </ng-template>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n</ul>", dependencies: [{ kind: "directive", type: i2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: i1$1.AbpVisibleDirective, selector: "[abpVisible]", inputs: ["abpVisible"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.ToInjectorPipe, name: "toInjector" }] });
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavItemsComponent, decorators: [{
108
- type: Component,
109
- args: [{ selector: 'abp-nav-items', template: "<ul class=\"navbar-nav\">\r\n <ng-container *ngFor=\"let item of navItems.items$ | async; trackBy: trackByFn\">\r\n <ng-container *abpVisible=\"!item.visible || item.visible(item)\">\r\n <li class=\"nav-item d-flex align-items-center\" *abpPermission=\"item.requiredPolicy\">\r\n <ng-container \r\n \r\n *ngIf=\"item.component; else htmlTemplate\" \r\n [ngComponentOutlet]=\"item.component\"\r\n [ngComponentOutletInjector]=\"item | toInjector\"\r\n ></ng-container>\r\n \r\n <ng-template #htmlTemplate>\r\n <div [innerHTML]=\"item.html\" (click)=\"item.action ? item.action() : null\"></div>\r\n </ng-template>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n</ul>" }]
110
- }], ctorParameters: function () { return [{ type: i1$1.NavItemsService }]; } });
111
-
112
- class RoutesComponent {
113
- constructor(routesService, renderer) {
114
- this.routesService = routesService;
115
- this.renderer = renderer;
116
- this.rootDropdownExpand = {};
117
- this.trackByFn = (_, item) => item.name;
118
- }
119
- isDropdown(node) {
120
- return !(node === null || node === void 0 ? void 0 : node.isLeaf) || this.routesService.hasChildren(node.name);
121
- }
122
- closeDropdown() {
123
- this.childrenContainers.forEach(({ nativeElement }) => {
124
- this.renderer.addClass(nativeElement, 'd-none');
125
- setTimeout(() => this.renderer.removeClass(nativeElement, 'd-none'), 0);
126
- });
127
- }
128
- }
129
- RoutesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: RoutesComponent, deps: [{ token: i1.RoutesService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
130
- RoutesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: RoutesComponent, selector: "abp-routes", inputs: { smallScreen: "smallScreen" }, viewQueries: [{ propertyName: "childrenContainers", predicate: ["childrenContainer"], descendants: true }], ngImport: i0, template: "<ul class=\"navbar-nav\">\r\n <ng-container\r\n *ngFor=\"let route of routesService.visible$ | async; trackBy: trackByFn\"\r\n [ngTemplateOutlet]=\"isDropdown(route) ? dropdownLink : defaultLink\"\r\n [ngTemplateOutletContext]=\"{ $implicit: route }\"\r\n >\r\n </ng-container>\r\n\r\n <ng-template #defaultLink let-route>\r\n <li class=\"nav-item\" *abpPermission=\"route.requiredPolicy\">\r\n <a class=\"nav-link\" [routerLink]=\"[route.path]\"\r\n ><i *ngIf=\"route.iconClass\" [ngClass]=\"route.iconClass\"></i>\r\n {{ route.name | abpLocalization }}</a\r\n >\r\n </li>\r\n </ng-template>\r\n\r\n <ng-template #dropdownLink let-route>\r\n <ng-container *ngIf=\"route.children?.length\">\r\n <li\r\n class=\"nav-item dropdown\"\r\n display=\"static\"\r\n *abpPermission=\"route.requiredPolicy\"\r\n (click)=\"\r\n rootDropdownExpand[route.name]\r\n ? (rootDropdownExpand[route.name] = false)\r\n : (rootDropdownExpand[route.name] = true)\r\n \"\r\n >\r\n <a\r\n class=\"nav-link dropdown-toggle\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\r\n aria-expanded=\"false\"\r\n href=\"javascript:void(0)\"\r\n >\r\n <i *ngIf=\"route.iconClass\" [ngClass]=\"route.iconClass\"></i>\r\n {{ route.name | abpLocalization }}\r\n </a>\r\n <div\r\n #routeContainer\r\n class=\"dropdown-menu border-0 shadow-sm\"\r\n (click)=\"$event.preventDefault(); $event.stopPropagation()\"\r\n [class.d-block]=\"smallScreen && rootDropdownExpand[route.name]\"\r\n >\r\n <ng-container\r\n *ngTemplateOutlet=\"forTemplate; context: { $implicit: route }\"\r\n ></ng-container>\r\n </div>\r\n </li>\r\n </ng-container>\r\n </ng-template>\r\n\r\n <ng-template #forTemplate let-route>\r\n <ng-container *ngFor=\"let child of route.children\">\r\n <ng-template\r\n [ngTemplateOutlet]=\"child.children?.length ? dropdownChild : defaultChild\"\r\n [ngTemplateOutletContext]=\"{ $implicit: child }\"\r\n ></ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n <ng-template #defaultChild let-child>\r\n <ng-container *ngIf=\"child.path\">\r\n <div class=\"dropdown-submenu\" *abpPermission=\"child.requiredPolicy\">\r\n <a class=\"dropdown-item\" [routerLink]=\"[child.path]\" (click)=\"closeDropdown()\">\r\n <i *ngIf=\"child.iconClass\" [ngClass]=\"child.iconClass\"></i>\r\n {{ child.name | abpLocalization }}</a\r\n >\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n\r\n <ng-template #dropdownChild let-child>\r\n <div\r\n class=\"dropdown-submenu\"\r\n ngbDropdown\r\n #dropdownSubmenu=\"ngbDropdown\"\r\n placement=\"right-top\"\r\n [autoClose]=\"true\"\r\n *abpPermission=\"child.requiredPolicy\"\r\n >\r\n <div ngbDropdownToggle [class.dropdown-toggle]=\"false\">\r\n <a\r\n abpEllipsis=\"210px\"\r\n [abpEllipsisEnabled]=\"!smallScreen\"\r\n role=\"button\"\r\n class=\"btn d-block text-start dropdown-toggle\"\r\n >\r\n <i *ngIf=\"child.iconClass\" [ngClass]=\"child.iconClass\"></i>\r\n {{ child.name | abpLocalization }}\r\n </a>\r\n </div>\r\n <div\r\n #childrenContainer\r\n class=\"dropdown-menu dropdown-menu-start border-0 shadow-sm\"\r\n [class.d-block]=\"smallScreen && dropdownSubmenu.isOpen()\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"forTemplate; context: { $implicit: child }\"></ng-container>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</ul>\r\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: i1$1.EllipsisDirective, selector: "[abpEllipsis]", inputs: ["abpEllipsis", "title", "abpEllipsisEnabled"] }, { kind: "directive", type: i5.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i5.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: RoutesComponent, decorators: [{
132
- type: Component,
133
- args: [{ selector: 'abp-routes', template: "<ul class=\"navbar-nav\">\r\n <ng-container\r\n *ngFor=\"let route of routesService.visible$ | async; trackBy: trackByFn\"\r\n [ngTemplateOutlet]=\"isDropdown(route) ? dropdownLink : defaultLink\"\r\n [ngTemplateOutletContext]=\"{ $implicit: route }\"\r\n >\r\n </ng-container>\r\n\r\n <ng-template #defaultLink let-route>\r\n <li class=\"nav-item\" *abpPermission=\"route.requiredPolicy\">\r\n <a class=\"nav-link\" [routerLink]=\"[route.path]\"\r\n ><i *ngIf=\"route.iconClass\" [ngClass]=\"route.iconClass\"></i>\r\n {{ route.name | abpLocalization }}</a\r\n >\r\n </li>\r\n </ng-template>\r\n\r\n <ng-template #dropdownLink let-route>\r\n <ng-container *ngIf=\"route.children?.length\">\r\n <li\r\n class=\"nav-item dropdown\"\r\n display=\"static\"\r\n *abpPermission=\"route.requiredPolicy\"\r\n (click)=\"\r\n rootDropdownExpand[route.name]\r\n ? (rootDropdownExpand[route.name] = false)\r\n : (rootDropdownExpand[route.name] = true)\r\n \"\r\n >\r\n <a\r\n class=\"nav-link dropdown-toggle\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\r\n aria-expanded=\"false\"\r\n href=\"javascript:void(0)\"\r\n >\r\n <i *ngIf=\"route.iconClass\" [ngClass]=\"route.iconClass\"></i>\r\n {{ route.name | abpLocalization }}\r\n </a>\r\n <div\r\n #routeContainer\r\n class=\"dropdown-menu border-0 shadow-sm\"\r\n (click)=\"$event.preventDefault(); $event.stopPropagation()\"\r\n [class.d-block]=\"smallScreen && rootDropdownExpand[route.name]\"\r\n >\r\n <ng-container\r\n *ngTemplateOutlet=\"forTemplate; context: { $implicit: route }\"\r\n ></ng-container>\r\n </div>\r\n </li>\r\n </ng-container>\r\n </ng-template>\r\n\r\n <ng-template #forTemplate let-route>\r\n <ng-container *ngFor=\"let child of route.children\">\r\n <ng-template\r\n [ngTemplateOutlet]=\"child.children?.length ? dropdownChild : defaultChild\"\r\n [ngTemplateOutletContext]=\"{ $implicit: child }\"\r\n ></ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n <ng-template #defaultChild let-child>\r\n <ng-container *ngIf=\"child.path\">\r\n <div class=\"dropdown-submenu\" *abpPermission=\"child.requiredPolicy\">\r\n <a class=\"dropdown-item\" [routerLink]=\"[child.path]\" (click)=\"closeDropdown()\">\r\n <i *ngIf=\"child.iconClass\" [ngClass]=\"child.iconClass\"></i>\r\n {{ child.name | abpLocalization }}</a\r\n >\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n\r\n <ng-template #dropdownChild let-child>\r\n <div\r\n class=\"dropdown-submenu\"\r\n ngbDropdown\r\n #dropdownSubmenu=\"ngbDropdown\"\r\n placement=\"right-top\"\r\n [autoClose]=\"true\"\r\n *abpPermission=\"child.requiredPolicy\"\r\n >\r\n <div ngbDropdownToggle [class.dropdown-toggle]=\"false\">\r\n <a\r\n abpEllipsis=\"210px\"\r\n [abpEllipsisEnabled]=\"!smallScreen\"\r\n role=\"button\"\r\n class=\"btn d-block text-start dropdown-toggle\"\r\n >\r\n <i *ngIf=\"child.iconClass\" [ngClass]=\"child.iconClass\"></i>\r\n {{ child.name | abpLocalization }}\r\n </a>\r\n </div>\r\n <div\r\n #childrenContainer\r\n class=\"dropdown-menu dropdown-menu-start border-0 shadow-sm\"\r\n [class.d-block]=\"smallScreen && dropdownSubmenu.isOpen()\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"forTemplate; context: { $implicit: child }\"></ng-container>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</ul>\r\n" }]
134
- }], ctorParameters: function () { return [{ type: i1.RoutesService }, { type: i0.Renderer2 }]; }, propDecorators: { smallScreen: [{
135
- type: Input
136
- }], childrenContainers: [{
137
- type: ViewChildren,
138
- args: ['childrenContainer']
139
- }] } });
140
-
141
- class PageAlertContainerComponent {
142
- constructor(service) {
143
- this.service = service;
144
- }
145
- }
146
- PageAlertContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PageAlertContainerComponent, deps: [{ token: i1$1.PageAlertService }], target: i0.ɵɵFactoryTarget.Component });
147
- PageAlertContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", 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\r\n class=\"alert-heading\"\r\n *ngIf=\"alert.title\"\r\n [innerHTML]=\"alert.title | abpSafeHtml | abpLocalization: alert.titleLocalizationParams\"\r\n ></h4>\r\n <span\r\n [innerHTML]=\"alert.message | abpSafeHtml | abpLocalization: alert.messageLocalizationParams\"\r\n ></span>\r\n <button\r\n *ngIf=\"alert.dismissible\"\r\n type=\"button\"\r\n class=\"btn-close\"\r\n data-dismiss=\"alert\"\r\n aria-label=\"Close\"\r\n (click)=\"service.remove(i)\"\r\n ></button>\r\n </div>\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: i1.SafeHtmlPipe, name: "abpSafeHtml" }], encapsulation: i0.ViewEncapsulation.None });
148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PageAlertContainerComponent, decorators: [{
149
- type: Component,
150
- args: [{ selector: 'abp-page-alert-container', encapsulation: ViewEncapsulation.None, 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\r\n class=\"alert-heading\"\r\n *ngIf=\"alert.title\"\r\n [innerHTML]=\"alert.title | abpSafeHtml | abpLocalization: alert.titleLocalizationParams\"\r\n ></h4>\r\n <span\r\n [innerHTML]=\"alert.message | abpSafeHtml | abpLocalization: alert.messageLocalizationParams\"\r\n ></span>\r\n <button\r\n *ngIf=\"alert.dismissible\"\r\n type=\"button\"\r\n class=\"btn-close\"\r\n data-dismiss=\"alert\"\r\n aria-label=\"Close\"\r\n (click)=\"service.remove(i)\"\r\n ></button>\r\n </div>\r\n</ng-container>\r\n" }]
151
- }], ctorParameters: function () { return [{ type: i1$1.PageAlertService }]; } });
152
-
153
- class TenantBoxComponent {
154
- constructor(service) {
155
- this.service = service;
156
- }
157
- }
158
- TenantBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: TenantBoxComponent, deps: [{ token: i1$2.TenantBoxService }], target: i0.ɵɵFactoryTarget.Component });
159
- TenantBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: TenantBoxComponent, selector: "abp-tenant-box", providers: [TenantBoxService], ngImport: i0, template: "<ng-container *ngIf=\"(service.currentTenant$ | async) || { name: '' } as currentTenant\">\r\n <div class=\"card shadow-sm rounded mb-3\">\r\n <div class=\"card-body px-5\">\r\n <div class=\"row\">\r\n <div class=\"col\">\r\n <span style=\"font-size: 0.8em\" class=\"text-uppercase text-muted\">{{\r\n 'AbpUiMultiTenancy::Tenant' | abpLocalization\r\n }}</span\r\n ><br />\r\n <h6 class=\"m-0 d-inline-block\">\r\n <i>{{ currentTenant.name || ('AbpUiMultiTenancy::NotSelected' | abpLocalization) }}</i>\r\n </h6>\r\n </div>\r\n <div class=\"col-auto\">\r\n <a\r\n id=\"AbpTenantSwitchLink\"\r\n href=\"javascript:void(0);\"\r\n class=\"btn btn-sm mt-3 btn-outline-primary\"\r\n (click)=\"service.onSwitch()\"\r\n >{{ 'AbpUiMultiTenancy::Switch' | abpLocalization }}</a\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <abp-modal [(visible)]=\"service.isModalVisible\" [busy]=\"service.modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5>Switch Tenant</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form (ngSubmit)=\"service.save()\">\r\n <div class=\"mt-2\">\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"name\" class=\"form-label\">{{\r\n 'AbpUiMultiTenancy::Name' | abpLocalization\r\n }}</label>\r\n <input\r\n [(ngModel)]=\"service.name\"\r\n type=\"text\"\r\n id=\"name\"\r\n name=\"tenant\"\r\n class=\"form-control\"\r\n autofocus\r\n />\r\n </div>\r\n <p>{{ 'AbpUiMultiTenancy::SwitchTenantHint' | abpLocalization }}</p>\r\n </div>\r\n </form>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-secondary\">\r\n {{ 'AbpTenantManagement::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n type=\"abp-button\"\r\n iconClass=\"fa fa-check\"\r\n (click)=\"service.save()\"\r\n [disabled]=\"currentTenant?.name === service.name\"\r\n >\r\n <span>{{ 'AbpTenantManagement::Save' | abpLocalization }}</span>\r\n </abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "component", type: i1$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i1$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i1$1.ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: TenantBoxComponent, decorators: [{
161
- type: Component,
162
- args: [{ selector: 'abp-tenant-box', providers: [TenantBoxService], template: "<ng-container *ngIf=\"(service.currentTenant$ | async) || { name: '' } as currentTenant\">\r\n <div class=\"card shadow-sm rounded mb-3\">\r\n <div class=\"card-body px-5\">\r\n <div class=\"row\">\r\n <div class=\"col\">\r\n <span style=\"font-size: 0.8em\" class=\"text-uppercase text-muted\">{{\r\n 'AbpUiMultiTenancy::Tenant' | abpLocalization\r\n }}</span\r\n ><br />\r\n <h6 class=\"m-0 d-inline-block\">\r\n <i>{{ currentTenant.name || ('AbpUiMultiTenancy::NotSelected' | abpLocalization) }}</i>\r\n </h6>\r\n </div>\r\n <div class=\"col-auto\">\r\n <a\r\n id=\"AbpTenantSwitchLink\"\r\n href=\"javascript:void(0);\"\r\n class=\"btn btn-sm mt-3 btn-outline-primary\"\r\n (click)=\"service.onSwitch()\"\r\n >{{ 'AbpUiMultiTenancy::Switch' | abpLocalization }}</a\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <abp-modal [(visible)]=\"service.isModalVisible\" [busy]=\"service.modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5>Switch Tenant</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form (ngSubmit)=\"service.save()\">\r\n <div class=\"mt-2\">\r\n <div class=\"mb-3 form-group\">\r\n <label for=\"name\" class=\"form-label\">{{\r\n 'AbpUiMultiTenancy::Name' | abpLocalization\r\n }}</label>\r\n <input\r\n [(ngModel)]=\"service.name\"\r\n type=\"text\"\r\n id=\"name\"\r\n name=\"tenant\"\r\n class=\"form-control\"\r\n autofocus\r\n />\r\n </div>\r\n <p>{{ 'AbpUiMultiTenancy::SwitchTenantHint' | abpLocalization }}</p>\r\n </div>\r\n </form>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-secondary\">\r\n {{ 'AbpTenantManagement::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n type=\"abp-button\"\r\n iconClass=\"fa fa-check\"\r\n (click)=\"service.save()\"\r\n [disabled]=\"currentTenant?.name === service.name\"\r\n >\r\n <span>{{ 'AbpTenantManagement::Save' | abpLocalization }}</span>\r\n </abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n" }]
163
- }], ctorParameters: function () { return [{ type: i1$2.TenantBoxService }]; } });
164
-
165
- class AuthWrapperComponent {
166
- constructor(service) {
167
- this.service = service;
168
- }
169
- }
170
- AuthWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AuthWrapperComponent, deps: [{ token: i1$2.AuthWrapperService }], target: i0.ɵɵFactoryTarget.Component });
171
- AuthWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AuthWrapperComponent, selector: "abp-auth-wrapper", providers: [AuthWrapperService], ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"mx-auto col col-md-5\">\r\n <ng-container *ngIf=\"(service.isMultiTenancyEnabled$ | async) && service.isTenantBoxVisible\">\r\n <abp-tenant-box\r\n *abpReplaceableTemplate=\"{ componentKey: service.tenantBoxKey }\"\r\n ></abp-tenant-box>\r\n </ng-container>\r\n\r\n <div class=\"abp-account-container\">\r\n <div\r\n *ngIf=\"service.enableLocalLogin$ | async; else disableLocalLoginTemplate\"\r\n class=\"card mt-3 shadow-sm rounded\"\r\n >\r\n <div class=\"card-body p-5\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #disableLocalLoginTemplate>\r\n <div class=\"alert alert-warning\">\r\n <strong>{{ 'AbpAccount::InvalidLoginRequest' | abpLocalization }}</strong>\r\n {{ 'AbpAccount::ThereAreNoLoginSchemesConfiguredForThisClient' | abpLocalization }}\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: TenantBoxComponent, selector: "abp-tenant-box" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AuthWrapperComponent, decorators: [{
173
- type: Component,
174
- args: [{ selector: 'abp-auth-wrapper', providers: [AuthWrapperService], template: "<div class=\"row\">\r\n <div class=\"mx-auto col col-md-5\">\r\n <ng-container *ngIf=\"(service.isMultiTenancyEnabled$ | async) && service.isTenantBoxVisible\">\r\n <abp-tenant-box\r\n *abpReplaceableTemplate=\"{ componentKey: service.tenantBoxKey }\"\r\n ></abp-tenant-box>\r\n </ng-container>\r\n\r\n <div class=\"abp-account-container\">\r\n <div\r\n *ngIf=\"service.enableLocalLogin$ | async; else disableLocalLoginTemplate\"\r\n class=\"card mt-3 shadow-sm rounded\"\r\n >\r\n <div class=\"card-body p-5\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #disableLocalLoginTemplate>\r\n <div class=\"alert alert-warning\">\r\n <strong>{{ 'AbpAccount::InvalidLoginRequest' | abpLocalization }}</strong>\r\n {{ 'AbpAccount::ThereAreNoLoginSchemesConfiguredForThisClient' | abpLocalization }}\r\n </div>\r\n</ng-template>\r\n" }]
175
- }], ctorParameters: function () { return [{ type: i1$2.AuthWrapperService }]; } });
176
-
177
- class AccountLayoutComponent {
178
- constructor(service) {
179
- this.service = service;
180
- this.authWrapperKey = 'Account.AuthWrapperComponent';
181
- }
182
- ngAfterViewInit() {
183
- this.service.subscribeWindowSize();
184
- }
185
- }
186
- // required for dynamic component
187
- AccountLayoutComponent.type = "account" /* eLayoutType.account */;
188
- AccountLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AccountLayoutComponent, deps: [{ token: LayoutService }], target: i0.ɵɵFactoryTarget.Component });
189
- AccountLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AccountLayoutComponent, selector: "abp-layout-account", providers: [LayoutService, SubscriptionService], ngImport: i0, template: "<nav\r\n class=\"navbar navbar-expand-lg navbar-dark bg-dark shadow-sm flex-column flex-md-row mb-4\"\r\n id=\"main-navbar\"\r\n style=\"min-height: 4rem\"\r\n>\r\n <div class=\"container\">\r\n <abp-logo *abpReplaceableTemplate=\"{ componentKey: service.logoComponentKey }\"></abp-logo>\r\n <button\r\n class=\"navbar-toggler\"\r\n type=\"button\"\r\n [attr.aria-expanded]=\"!service.isCollapsed\"\r\n (click)=\"service.isCollapsed = !service.isCollapsed\"\r\n >\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n <div\r\n class=\"navbar-collapse\"\r\n [class.overflow-hidden]=\"service.smallScreen\"\r\n id=\"main-navbar-collapse\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"!service.smallScreen ? navigations : null\"></ng-container>\r\n\r\n <div\r\n *ngIf=\"service.smallScreen\"\r\n [@collapseWithMargin]=\"service.isCollapsed ? 'collapsed' : 'expanded'\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"navigations\"></ng-container>\r\n </div>\r\n\r\n <ng-template #navigations>\r\n <abp-routes\r\n *abpReplaceableTemplate=\"{\r\n componentKey: service.routesComponentKey,\r\n inputs: {\r\n smallScreen: { value: service.smallScreen }\r\n }\r\n }\"\r\n class=\"mx-auto\"\r\n [smallScreen]=\"service.smallScreen\"\r\n ></abp-routes>\r\n\r\n <abp-nav-items\r\n *abpReplaceableTemplate=\"{\r\n componentKey: service.navItemsComponentKey\r\n }\"\r\n ></abp-nav-items>\r\n </ng-template>\r\n </div>\r\n </div>\r\n</nav>\r\n\r\n<!-- [@slideFromBottom]=\"outlet.isActivated && outlet.activatedRoute?.routeConfig?.path\" TODO: throws ExpressionChangedAfterItHasBeenCheck when animation is active. It should be fixed -->\r\n<div class=\"container\">\r\n <abp-page-alert-container></abp-page-alert-container>\r\n <abp-auth-wrapper\r\n *abpReplaceableTemplate=\"{\r\n componentKey: authWrapperKey\r\n }\"\r\n >\r\n <router-outlet #outlet=\"outlet\"></router-outlet>\r\n </abp-auth-wrapper>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "directive", type: i5.NgbNavbar, selector: ".navbar" }, { kind: "component", type: LogoComponent, selector: "abp-logo" }, { kind: "component", type: NavItemsComponent, selector: "abp-nav-items" }, { kind: "component", type: RoutesComponent, selector: "abp-routes", inputs: ["smallScreen"] }, { kind: "component", type: PageAlertContainerComponent, selector: "abp-page-alert-container" }, { kind: "component", type: AuthWrapperComponent, selector: "abp-auth-wrapper" }] });
190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AccountLayoutComponent, decorators: [{
191
- type: Component,
192
- args: [{ selector: 'abp-layout-account', providers: [LayoutService, SubscriptionService], template: "<nav\r\n class=\"navbar navbar-expand-lg navbar-dark bg-dark shadow-sm flex-column flex-md-row mb-4\"\r\n id=\"main-navbar\"\r\n style=\"min-height: 4rem\"\r\n>\r\n <div class=\"container\">\r\n <abp-logo *abpReplaceableTemplate=\"{ componentKey: service.logoComponentKey }\"></abp-logo>\r\n <button\r\n class=\"navbar-toggler\"\r\n type=\"button\"\r\n [attr.aria-expanded]=\"!service.isCollapsed\"\r\n (click)=\"service.isCollapsed = !service.isCollapsed\"\r\n >\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n <div\r\n class=\"navbar-collapse\"\r\n [class.overflow-hidden]=\"service.smallScreen\"\r\n id=\"main-navbar-collapse\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"!service.smallScreen ? navigations : null\"></ng-container>\r\n\r\n <div\r\n *ngIf=\"service.smallScreen\"\r\n [@collapseWithMargin]=\"service.isCollapsed ? 'collapsed' : 'expanded'\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"navigations\"></ng-container>\r\n </div>\r\n\r\n <ng-template #navigations>\r\n <abp-routes\r\n *abpReplaceableTemplate=\"{\r\n componentKey: service.routesComponentKey,\r\n inputs: {\r\n smallScreen: { value: service.smallScreen }\r\n }\r\n }\"\r\n class=\"mx-auto\"\r\n [smallScreen]=\"service.smallScreen\"\r\n ></abp-routes>\r\n\r\n <abp-nav-items\r\n *abpReplaceableTemplate=\"{\r\n componentKey: service.navItemsComponentKey\r\n }\"\r\n ></abp-nav-items>\r\n </ng-template>\r\n </div>\r\n </div>\r\n</nav>\r\n\r\n<!-- [@slideFromBottom]=\"outlet.isActivated && outlet.activatedRoute?.routeConfig?.path\" TODO: throws ExpressionChangedAfterItHasBeenCheck when animation is active. It should be fixed -->\r\n<div class=\"container\">\r\n <abp-page-alert-container></abp-page-alert-container>\r\n <abp-auth-wrapper\r\n *abpReplaceableTemplate=\"{\r\n componentKey: authWrapperKey\r\n }\"\r\n >\r\n <router-outlet #outlet=\"outlet\"></router-outlet>\r\n </abp-auth-wrapper>\r\n</div>\r\n" }]
193
- }], ctorParameters: function () { return [{ type: LayoutService }]; } });
194
-
195
- class ApplicationLayoutComponent {
196
- constructor(service) {
197
- this.service = service;
198
- }
199
- ngAfterViewInit() {
200
- this.service.subscribeWindowSize();
201
- }
202
- }
203
- // required for dynamic component
204
- ApplicationLayoutComponent.type = "application" /* eLayoutType.application */;
205
- ApplicationLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ApplicationLayoutComponent, deps: [{ token: LayoutService }], target: i0.ɵɵFactoryTarget.Component });
206
- ApplicationLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ApplicationLayoutComponent, selector: "abp-layout-application", providers: [LayoutService, SubscriptionService], ngImport: i0, template: "<nav\r\n class=\"navbar navbar-expand-lg navbar-dark bg-dark shadow-sm flex-column flex-md-row mb-4\"\r\n id=\"main-navbar\"\r\n style=\"min-height: 4rem\"\r\n>\r\n <div class=\"container\">\r\n <abp-logo *abpReplaceableTemplate=\"{ componentKey: service.logoComponentKey }\"></abp-logo>\r\n <button\r\n class=\"navbar-toggler\"\r\n type=\"button\"\r\n [attr.aria-expanded]=\"!service.isCollapsed\"\r\n (click)=\"service.isCollapsed = !service.isCollapsed\"\r\n >\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n <div class=\"navbar-collapse\" [class.overflow-hidden]=\"service.smallScreen\" id=\"main-navbar-collapse\">\r\n <ng-container *ngTemplateOutlet=\"!service.smallScreen ? navigations : null\"></ng-container>\r\n\r\n <div *ngIf=\"service.smallScreen\" [@collapseWithMargin]=\"service.isCollapsed ? 'collapsed' : 'expanded'\">\r\n <ng-container *ngTemplateOutlet=\"navigations\"></ng-container>\r\n </div>\r\n\r\n <ng-template #navigations>\r\n <abp-routes\r\n *abpReplaceableTemplate=\"{\r\n componentKey: service.routesComponentKey,\r\n inputs: {\r\n smallScreen: { value: service.smallScreen }\r\n }\r\n }\"\r\n class=\"mx-auto\"\r\n [smallScreen]=\"service.smallScreen\"\r\n ></abp-routes>\r\n\r\n <abp-nav-items\r\n *abpReplaceableTemplate=\"{\r\n componentKey: service.navItemsComponentKey\r\n }\"\r\n ></abp-nav-items>\r\n </ng-template>\r\n </div>\r\n </div>\r\n</nav>\r\n\r\n<!-- [@slideFromBottom]=\"outlet.isActivated && outlet.activatedRoute?.routeConfig?.path\" TODO: throws ExpressionChangedAfterItHasBeenCheck when animation is active. It should be fixed -->\r\n<div class=\"container\">\r\n <abp-page-alert-container></abp-page-alert-container>\r\n\r\n <router-outlet #outlet=\"outlet\"></router-outlet>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "directive", type: i5.NgbNavbar, selector: ".navbar" }, { kind: "component", type: LogoComponent, selector: "abp-logo" }, { kind: "component", type: NavItemsComponent, selector: "abp-nav-items" }, { kind: "component", type: RoutesComponent, selector: "abp-routes", inputs: ["smallScreen"] }, { kind: "component", type: PageAlertContainerComponent, selector: "abp-page-alert-container" }], animations: [slideFromBottom, collapseWithMargin] });
207
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ApplicationLayoutComponent, decorators: [{
208
- type: Component,
209
- args: [{ selector: 'abp-layout-application', animations: [slideFromBottom, collapseWithMargin], providers: [LayoutService, SubscriptionService], template: "<nav\r\n class=\"navbar navbar-expand-lg navbar-dark bg-dark shadow-sm flex-column flex-md-row mb-4\"\r\n id=\"main-navbar\"\r\n style=\"min-height: 4rem\"\r\n>\r\n <div class=\"container\">\r\n <abp-logo *abpReplaceableTemplate=\"{ componentKey: service.logoComponentKey }\"></abp-logo>\r\n <button\r\n class=\"navbar-toggler\"\r\n type=\"button\"\r\n [attr.aria-expanded]=\"!service.isCollapsed\"\r\n (click)=\"service.isCollapsed = !service.isCollapsed\"\r\n >\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n <div class=\"navbar-collapse\" [class.overflow-hidden]=\"service.smallScreen\" id=\"main-navbar-collapse\">\r\n <ng-container *ngTemplateOutlet=\"!service.smallScreen ? navigations : null\"></ng-container>\r\n\r\n <div *ngIf=\"service.smallScreen\" [@collapseWithMargin]=\"service.isCollapsed ? 'collapsed' : 'expanded'\">\r\n <ng-container *ngTemplateOutlet=\"navigations\"></ng-container>\r\n </div>\r\n\r\n <ng-template #navigations>\r\n <abp-routes\r\n *abpReplaceableTemplate=\"{\r\n componentKey: service.routesComponentKey,\r\n inputs: {\r\n smallScreen: { value: service.smallScreen }\r\n }\r\n }\"\r\n class=\"mx-auto\"\r\n [smallScreen]=\"service.smallScreen\"\r\n ></abp-routes>\r\n\r\n <abp-nav-items\r\n *abpReplaceableTemplate=\"{\r\n componentKey: service.navItemsComponentKey\r\n }\"\r\n ></abp-nav-items>\r\n </ng-template>\r\n </div>\r\n </div>\r\n</nav>\r\n\r\n<!-- [@slideFromBottom]=\"outlet.isActivated && outlet.activatedRoute?.routeConfig?.path\" TODO: throws ExpressionChangedAfterItHasBeenCheck when animation is active. It should be fixed -->\r\n<div class=\"container\">\r\n <abp-page-alert-container></abp-page-alert-container>\r\n\r\n <router-outlet #outlet=\"outlet\"></router-outlet>\r\n</div>\r\n" }]
210
- }], ctorParameters: function () { return [{ type: LayoutService }]; } });
211
-
212
- class EmptyLayoutComponent {
213
- }
214
- EmptyLayoutComponent.type = "empty" /* eLayoutType.empty */;
215
- EmptyLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EmptyLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
216
- EmptyLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: EmptyLayoutComponent, selector: "abp-layout-empty", ngImport: i0, template: `
217
- <router-outlet></router-outlet>
218
- <abp-confirmation></abp-confirmation>
219
- `, isInline: true, dependencies: [{ kind: "directive", type: i3.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i1$1.ConfirmationComponent, selector: "abp-confirmation" }] });
220
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EmptyLayoutComponent, decorators: [{
221
- type: Component,
222
- args: [{
223
- selector: 'abp-layout-empty',
224
- template: `
225
- <router-outlet></router-outlet>
226
- <abp-confirmation></abp-confirmation>
227
- `,
228
- }]
229
- }] });
230
-
231
- class CurrentUserComponent {
232
- constructor(navigateToManageProfile, userMenu, authService, configState, sessionState) {
233
- this.navigateToManageProfile = navigateToManageProfile;
234
- this.userMenu = userMenu;
235
- this.authService = authService;
236
- this.configState = configState;
237
- this.sessionState = sessionState;
238
- this.currentUser$ = this.configState.getOne$('currentUser');
239
- this.selectedTenant$ = this.sessionState.getTenant$();
240
- this.trackByFn = (_, element) => element.id;
241
- }
242
- get smallScreen() {
243
- return window.innerWidth < 992;
244
- }
245
- navigateToLogin() {
246
- this.authService.navigateToLogin();
247
- }
248
- logout() {
249
- this.authService.logout().subscribe();
250
- }
251
- }
252
- CurrentUserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CurrentUserComponent, deps: [{ token: NAVIGATE_TO_MANAGE_PROFILE }, { token: i1$1.UserMenuService }, { token: i1.AuthService }, { token: i1.ConfigStateService }, { token: i1.SessionStateService }], target: i0.ɵɵFactoryTarget.Component });
253
- CurrentUserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: CurrentUserComponent, selector: "abp-current-user", ngImport: i0, template: "<ng-template #loginBtn>\r\n <a role=\"button\" class=\"nav-link pointer\" (click)=\"navigateToLogin()\">{{\r\n 'AbpAccount::Login' | abpLocalization\r\n }}</a>\r\n</ng-template>\r\n<div\r\n *ngIf=\"(currentUser$ | async)?.isAuthenticated; else loginBtn\"\r\n ngbDropdown\r\n class=\"dropdown\"\r\n #currentUserDropdown=\"ngbDropdown\"\r\n display=\"static\"\r\n>\r\n <a\r\n ngbDropdownToggle\r\n class=\"nav-link\"\r\n href=\"javascript:void(0)\"\r\n role=\"button\"\r\n id=\"dropdownMenuLink\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\r\n aria-expanded=\"false\"\r\n >\r\n <small *ngIf=\"(selectedTenant$ | async)?.name as tenantName\"\r\n ><i>{{ tenantName }}</i\r\n >\\</small\r\n >\r\n <strong>{{ (currentUser$ | async)?.userName }}</strong>\r\n </a>\r\n <div\r\n class=\"dropdown-menu dropdown-menu-end border-0 shadow-sm\"\r\n aria-labelledby=\"dropdownMenuLink\"\r\n [class.d-block]=\"smallScreen && currentUserDropdown.isOpen()\"\r\n >\r\n <ng-container *ngFor=\"let item of userMenu.items$ | async; trackBy: trackByFn\">\r\n <ng-container *abpVisible=\"!item.visible || item.visible(item)\">\r\n <li class=\"nav-item d-flex align-items-center\" *abpPermission=\"item.requiredPolicy\">\r\n <ng-container\r\n *ngIf=\"item.component; else htmlTemplate\"\r\n [ngComponentOutlet]=\"item.component\"\r\n [ngComponentOutletInjector]=\"item | toInjector\"\r\n ></ng-container>\r\n\r\n <ng-template #htmlTemplate>\r\n <div\r\n *ngIf=\"item.html; else textTemplate\"\r\n [innerHTML]=\"item.html\"\r\n (click)=\"item.action ? item.action() : null\"\r\n ></div>\r\n </ng-template>\r\n\r\n <ng-template #textTemplate>\r\n <a\r\n *ngIf=\"item.textTemplate\"\r\n (click)=\"item.action ? item.action() : null\"\r\n class=\"dropdown-item pointer\"\r\n >\r\n <i *ngIf=\"item.textTemplate.icon\" class=\"me-1 {{ item.textTemplate.icon }}\"></i>\r\n {{ item.textTemplate.text | abpLocalization }}</a\r\n >\r\n </ng-template>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: i1$1.AbpVisibleDirective, selector: "[abpVisible]", inputs: ["abpVisible"] }, { kind: "directive", type: i5.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i5.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: i1.ToInjectorPipe, name: "toInjector" }] });
254
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CurrentUserComponent, decorators: [{
255
- type: Component,
256
- args: [{ selector: 'abp-current-user', template: "<ng-template #loginBtn>\r\n <a role=\"button\" class=\"nav-link pointer\" (click)=\"navigateToLogin()\">{{\r\n 'AbpAccount::Login' | abpLocalization\r\n }}</a>\r\n</ng-template>\r\n<div\r\n *ngIf=\"(currentUser$ | async)?.isAuthenticated; else loginBtn\"\r\n ngbDropdown\r\n class=\"dropdown\"\r\n #currentUserDropdown=\"ngbDropdown\"\r\n display=\"static\"\r\n>\r\n <a\r\n ngbDropdownToggle\r\n class=\"nav-link\"\r\n href=\"javascript:void(0)\"\r\n role=\"button\"\r\n id=\"dropdownMenuLink\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\r\n aria-expanded=\"false\"\r\n >\r\n <small *ngIf=\"(selectedTenant$ | async)?.name as tenantName\"\r\n ><i>{{ tenantName }}</i\r\n >\\</small\r\n >\r\n <strong>{{ (currentUser$ | async)?.userName }}</strong>\r\n </a>\r\n <div\r\n class=\"dropdown-menu dropdown-menu-end border-0 shadow-sm\"\r\n aria-labelledby=\"dropdownMenuLink\"\r\n [class.d-block]=\"smallScreen && currentUserDropdown.isOpen()\"\r\n >\r\n <ng-container *ngFor=\"let item of userMenu.items$ | async; trackBy: trackByFn\">\r\n <ng-container *abpVisible=\"!item.visible || item.visible(item)\">\r\n <li class=\"nav-item d-flex align-items-center\" *abpPermission=\"item.requiredPolicy\">\r\n <ng-container\r\n *ngIf=\"item.component; else htmlTemplate\"\r\n [ngComponentOutlet]=\"item.component\"\r\n [ngComponentOutletInjector]=\"item | toInjector\"\r\n ></ng-container>\r\n\r\n <ng-template #htmlTemplate>\r\n <div\r\n *ngIf=\"item.html; else textTemplate\"\r\n [innerHTML]=\"item.html\"\r\n (click)=\"item.action ? item.action() : null\"\r\n ></div>\r\n </ng-template>\r\n\r\n <ng-template #textTemplate>\r\n <a\r\n *ngIf=\"item.textTemplate\"\r\n (click)=\"item.action ? item.action() : null\"\r\n class=\"dropdown-item pointer\"\r\n >\r\n <i *ngIf=\"item.textTemplate.icon\" class=\"me-1 {{ item.textTemplate.icon }}\"></i>\r\n {{ item.textTemplate.text | abpLocalization }}</a\r\n >\r\n </ng-template>\r\n </li>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n</div>\r\n" }]
257
- }], ctorParameters: function () {
258
- return [{ type: undefined, decorators: [{
259
- type: Inject,
260
- args: [NAVIGATE_TO_MANAGE_PROFILE]
261
- }] }, { type: i1$1.UserMenuService }, { type: i1.AuthService }, { type: i1.ConfigStateService }, { type: i1.SessionStateService }];
262
- } });
263
-
264
- class LanguagesComponent {
265
- constructor(sessionState, configState) {
266
- this.sessionState = sessionState;
267
- this.configState = configState;
268
- this.languages$ = this.configState.getDeep$('localization.languages');
269
- }
270
- get smallScreen() {
271
- return window.innerWidth < 992;
272
- }
273
- get defaultLanguage$() {
274
- return this.languages$.pipe(map(languages => { var _a; return ((_a = languages === null || languages === void 0 ? void 0 : languages.find(lang => lang.cultureName === this.selectedLangCulture)) === null || _a === void 0 ? void 0 : _a.displayName) || ''; }));
275
- }
276
- get dropdownLanguages$() {
277
- return this.languages$.pipe(map(languages => (languages === null || languages === void 0 ? void 0 : languages.filter(lang => lang.cultureName !== this.selectedLangCulture)) || []));
278
- }
279
- get selectedLangCulture() {
280
- return this.sessionState.getLanguage();
281
- }
282
- onChangeLang(cultureName) {
283
- this.sessionState.setLanguage(cultureName);
284
- }
285
- }
286
- LanguagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LanguagesComponent, deps: [{ token: i1.SessionStateService }, { token: i1.ConfigStateService }], target: i0.ɵɵFactoryTarget.Component });
287
- LanguagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: LanguagesComponent, selector: "abp-languages", ngImport: i0, template: `
288
- <div
289
- *ngIf="((dropdownLanguages$ | async)?.length || 0) > 0"
290
- class="dropdown"
291
- ngbDropdown
292
- #languageDropdown="ngbDropdown"
293
- display="static"
294
- >
295
- <a
296
- ngbDropdownToggle
297
- class="nav-link"
298
- href="javascript:void(0)"
299
- role="button"
300
- id="dropdownMenuLink"
301
- data-toggle="dropdown"
302
- aria-haspopup="true"
303
- aria-expanded="false"
304
- >
305
- {{ defaultLanguage$ | async }}
306
- </a>
307
- <div
308
- class="dropdown-menu dropdown-menu-end border-0 shadow-sm"
309
- aria-labelledby="dropdownMenuLink"
310
- [class.d-block]="smallScreen && languageDropdown.isOpen()"
311
- >
312
- <a
313
- *ngFor="let lang of dropdownLanguages$ | async"
314
- href="javascript:void(0)"
315
- class="dropdown-item"
316
- (click)="onChangeLang(lang.cultureName || '')"
317
- >{{ lang?.displayName }}</a
318
- >
319
- </div>
320
- </div>
321
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i5.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] });
322
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LanguagesComponent, decorators: [{
323
- type: Component,
324
- args: [{
325
- selector: 'abp-languages',
326
- template: `
327
- <div
328
- *ngIf="((dropdownLanguages$ | async)?.length || 0) > 0"
329
- class="dropdown"
330
- ngbDropdown
331
- #languageDropdown="ngbDropdown"
332
- display="static"
333
- >
334
- <a
335
- ngbDropdownToggle
336
- class="nav-link"
337
- href="javascript:void(0)"
338
- role="button"
339
- id="dropdownMenuLink"
340
- data-toggle="dropdown"
341
- aria-haspopup="true"
342
- aria-expanded="false"
343
- >
344
- {{ defaultLanguage$ | async }}
345
- </a>
346
- <div
347
- class="dropdown-menu dropdown-menu-end border-0 shadow-sm"
348
- aria-labelledby="dropdownMenuLink"
349
- [class.d-block]="smallScreen && languageDropdown.isOpen()"
350
- >
351
- <a
352
- *ngFor="let lang of dropdownLanguages$ | async"
353
- href="javascript:void(0)"
354
- class="dropdown-item"
355
- (click)="onChangeLang(lang.cultureName || '')"
356
- >{{ lang?.displayName }}</a
357
- >
358
- </div>
359
- </div>
360
- `,
361
- }]
362
- }], ctorParameters: function () { return [{ type: i1.SessionStateService }, { type: i1.ConfigStateService }]; } });
363
-
364
- class ValidationErrorComponent extends ValidationErrorComponent$1 {
365
- get abpErrors() {
366
- if (!this.errors || !this.errors.length)
367
- return [];
368
- return this.errors.map(error => {
369
- if (!error.message)
370
- return error;
371
- const index = error.message.indexOf('[');
372
- if (index > -1) {
373
- return Object.assign(Object.assign({}, error), { message: error.message.slice(0, index), interpoliteParams: error.message.slice(index + 1, error.message.length - 1).split(',') });
374
- }
375
- return error;
376
- });
377
- }
378
- }
379
- ValidationErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ValidationErrorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
380
- ValidationErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ValidationErrorComponent, selector: "abp-validation-error", usesInheritance: true, ngImport: i0, template: `
381
- <div class="invalid-feedback" *ngFor="let error of abpErrors; trackBy: trackByFn">
382
- {{ error.message | abpLocalization: error.interpoliteParams }}
383
- </div>
384
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
385
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ValidationErrorComponent, decorators: [{
386
- type: Component,
387
- args: [{
388
- selector: 'abp-validation-error',
389
- template: `
390
- <div class="invalid-feedback" *ngFor="let error of abpErrors; trackBy: trackByFn">
391
- {{ error.message | abpLocalization: error.interpoliteParams }}
392
- </div>
393
- `,
394
- changeDetection: ChangeDetectionStrategy.OnPush,
395
- encapsulation: ViewEncapsulation.None,
396
- }]
397
- }] });
398
-
399
- const LAZY_STYLES = new InjectionToken('LAZY_STYLES');
400
-
401
- const BOOTSTRAP = 'bootstrap-{{dir}}.min.css';
402
- class LazyStyleHandler {
403
- constructor(injector) {
404
- this._dir = 'ltr';
405
- this.loaded = new Map();
406
- this.setStyles(injector);
407
- this.setLazyLoad(injector);
408
- this.listenToDirectionChanges(injector);
409
- }
410
- set dir(dir) {
411
- if (dir === this._dir)
412
- return;
413
- this.switchCSS(dir);
414
- this._dir = dir;
415
- }
416
- get dir() {
417
- return this._dir;
418
- }
419
- getHrefFromLink(link) {
420
- if (!link)
421
- return '';
422
- const a = document.createElement('a');
423
- a.href = link.href;
424
- return a.pathname.replace(/^\//, '');
425
- }
426
- getLoadedBootstrap() {
427
- const href = createLazyStyleHref(BOOTSTRAP, this.dir);
428
- const selector = `[href*="${href.replace(/\.css$/, '')}"]`;
429
- const link = document.querySelector(selector);
430
- return { href, link };
431
- }
432
- listenToDirectionChanges(injector) {
433
- const docDirHandler = injector.get(DocumentDirHandlerService);
434
- // will always listen, no need to unsubscribe
435
- docDirHandler.dir$.subscribe(dir => {
436
- this.dir = dir;
437
- });
438
- }
439
- setLazyLoad(injector) {
440
- this.lazyLoad = injector.get(LazyLoadService);
441
- const { href, link } = this.getLoadedBootstrap();
442
- this.lazyLoad.loaded.set(href, link);
443
- }
444
- setStyles(injector) {
445
- this.styles = injector.get(LAZY_STYLES, [BOOTSTRAP]);
446
- }
447
- switchCSS(dir) {
448
- this.styles.forEach(style => {
449
- const oldHref = createLazyStyleHref(style, this.dir);
450
- const newHref = createLazyStyleHref(style, dir);
451
- const link = this.loaded.get(newHref);
452
- const href = this.getHrefFromLink(link) || newHref;
453
- const strategy = LOADING_STRATEGY.PrependAnonymousStyleToHead(href);
454
- this.lazyLoad.load(strategy).subscribe(() => {
455
- const oldLink = this.lazyLoad.loaded.get(oldHref);
456
- this.loaded.delete(newHref);
457
- this.loaded.set(oldHref, oldLink);
458
- const newLink = this.lazyLoad.loaded.get(href);
459
- this.lazyLoad.loaded.delete(href);
460
- this.lazyLoad.loaded.set(newHref, newLink);
461
- this.lazyLoad.remove(oldHref);
462
- });
463
- });
464
- }
465
- }
466
- LazyStyleHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LazyStyleHandler, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
467
- LazyStyleHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LazyStyleHandler });
468
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LazyStyleHandler, decorators: [{
469
- type: Injectable
470
- }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
471
- function createLazyStyleHref(style, dir) {
472
- return style.replace(/{{\s*dir\s*}}/g, dir);
473
- }
474
- function initLazyStyleHandler(injector) {
475
- return () => new LazyStyleHandler(injector);
476
- }
477
-
478
- const BASIC_THEME_NAV_ITEM_PROVIDERS = [
479
- {
480
- provide: APP_INITIALIZER,
481
- useFactory: configureNavItems,
482
- deps: [NavItemsService],
483
- multi: true,
484
- },
485
- ];
486
- function configureNavItems(navItems) {
487
- return () => {
488
- navItems.addItems([
489
- {
490
- id: "Theme.LanguagesComponent" /* eThemeBasicComponents.Languages */,
491
- order: 100,
492
- component: LanguagesComponent,
493
- },
494
- {
495
- id: "Theme.CurrentUserComponent" /* eThemeBasicComponents.CurrentUser */,
496
- order: 100,
497
- component: CurrentUserComponent,
498
- },
499
- ]);
500
- };
501
- }
502
-
503
- var styles = `
504
- .content-header-title {
505
- font-size: 24px;
506
- }
507
- .entry-row {
508
- margin-bottom: 15px;
509
- }
510
- #main-navbar-tools a.dropdown-toggle {
511
- text-decoration: none;
512
- color: #fff;
513
- }
514
- .navbar .dropdown-submenu {
515
- position: relative;
516
- }
517
- .navbar .dropdown-menu {
518
- margin: 0;
519
- padding: 0;
520
- }
521
- .navbar .dropdown-menu a {
522
- font-size: .9em;
523
- padding: 10px 15px;
524
- display: block;
525
- min-width: 210px;
526
- text-align: left;
527
- border-radius: 0.25rem;
528
- min-height: 44px;
529
- }
530
- [dir=rtl] .navbar .dropdown-menu a {
531
- text-align: right!important;
532
- }
533
- .navbar .dropdown-submenu a::after {
534
- transform: rotate(-90deg);
535
- position: absolute;
536
- right: 16px;
537
- top: 18px;
538
- }
539
- [dir=rtl] .navbar .dropdown-submenu a::after {
540
- transform: rotate(90deg);
541
- left: 16px;
542
- right: auto;
543
- top: 20px;
544
- }
545
- .navbar .dropdown-submenu .dropdown-menu {
546
- top: 0;
547
- left: 100%;
548
- }
549
- /* work around for rtl. Track https://github.com/ng-bootstrap/ng-bootstrap/issues/4100 issue */
550
- [dir=rtl] .navbar .dropdown-submenu .dropdown-menu {
551
- top: 0;
552
- right: 100%;
553
- }
554
- .card-header .btn {
555
- padding: 2px 6px;
556
- }
557
- .card-header h5 {
558
- margin: 0;
559
- }
560
- .container > .card {
561
- box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
562
- }
563
- @media screen and (min-width: 992px) {
564
- .navbar .dropdown:hover > .dropdown-menu {
565
- display: block;
566
- }
567
-
568
- .navbar .dropdown-submenu:hover > .dropdown-menu {
569
- display: block;
570
- }
571
- }
572
- .input-validation-error {
573
- border-color: #dc3545;
574
- }
575
- .field-validation-error {
576
- font-size: 0.8em;
577
- }
578
- .ui-table .ui-table-tbody > tr.empty-row > div.empty-row-content {
579
- border: 1px solid #c8c8c8;
580
- }
581
- .abp-loading {
582
- background: rgba(0, 0, 0, 0.05);
583
- }
584
- .modal-backdrop {
585
- background-color: rgba(0, 0, 0, 0.6);
586
- }
587
-
588
- .confirmation .confirmation-backdrop {
589
- background: rgba(0, 0, 0, 0.7) !important;
590
- }
591
- .confirmation .confirmation-dialog {
592
- border: none;
593
- border-radius: 10px;
594
- background-color: #fff;
595
- box-shadow: 0 0 10px -5px rgba(0, 0, 0, 0.5);
596
- }
597
- .confirmation .confirmation-dialog .icon-container .icon {
598
- stroke: #fff;
599
- color: #fff;
600
- }
601
- .confirmation .confirmation-dialog .icon-container.info .icon {
602
- stroke: #2f96b4;
603
- color: #2f96b4;
604
- }
605
- .confirmation .confirmation-dialog .icon-container.success .icon {
606
- stroke: #51a351;
607
- color: #51a351;
608
- }
609
- .confirmation .confirmation-dialog .icon-container.warning .icon {
610
- stroke: #f89406;
611
- color: #f89406;
612
- }
613
- .confirmation .confirmation-dialog .icon-container.error .icon {
614
- stroke: #bd362f;
615
- color: #bd362f;
616
- }
617
- .confirmation .confirmation-dialog .content .title {
618
- color: #222;
619
- }
620
- .confirmation .confirmation-dialog .content .message {
621
- color: #777;
622
- }
623
- .confirmation .confirmation-dialog .footer {
624
- background: transparent;
625
- }
626
- .confirmation .confirmation-dialog .footer .confirmation-button {
627
- background-color: #eee;
628
- color: #777;
629
- }
630
- .confirmation .confirmation-dialog .footer .confirmation-button:hover, .confirmation .confirmation-dialog .footer .confirmation-button:focus, .confirmation .confirmation-dialog .footer .confirmation-button:active {
631
- background-color: #bbb;
632
- }
633
- .confirmation .confirmation-dialog .footer .confirmation-button--confirm {
634
- background-color: #2f96b4;
635
- color: #fff;
636
- }
637
- .confirmation .confirmation-dialog .footer .confirmation-button--confirm:hover {
638
- background-color: #2e819b;
639
- }
640
- .ui-table .pagination-wrapper {
641
- background-color: #f4f4f4;
642
- border: 1px solid #c8c8c8;
643
- }
644
- .bordered .datatable-body-row {
645
- border-top: 1px solid #eee;
646
- margin-top: -1px;
647
- }
648
- .breadcrumb {
649
- background-color: transparent;
650
- padding: 0.27rem;
651
- }
652
- `;
653
-
654
- const BASIC_THEME_STYLES_PROVIDERS = [
655
- {
656
- provide: APP_INITIALIZER,
657
- useFactory: configureStyles,
658
- deps: [DomInsertionService, ReplaceableComponentsService],
659
- multi: true,
660
- },
661
- ];
662
- function configureStyles(domInsertion, replaceableComponents) {
663
- return () => {
664
- domInsertion.insertContent(CONTENT_STRATEGY.AppendStyleToHead(styles));
665
- initLayouts(replaceableComponents);
666
- };
667
- }
668
- function initLayouts(replaceableComponents) {
669
- replaceableComponents.add({
670
- key: "Theme.ApplicationLayoutComponent" /* eThemeBasicComponents.ApplicationLayout */,
671
- component: ApplicationLayoutComponent,
672
- });
673
- replaceableComponents.add({
674
- key: "Theme.AccountLayoutComponent" /* eThemeBasicComponents.AccountLayout */,
675
- component: AccountLayoutComponent,
676
- });
677
- replaceableComponents.add({
678
- key: "Theme.EmptyLayoutComponent" /* eThemeBasicComponents.EmptyLayout */,
679
- component: EmptyLayoutComponent,
680
- });
681
- }
682
-
683
- const BASIC_THEME_USER_MENU_PROVIDERS = [
684
- {
685
- provide: APP_INITIALIZER,
686
- useFactory: configureUserMenu,
687
- deps: [Injector],
688
- multi: true,
689
- },
690
- ];
691
- function configureUserMenu(injector) {
692
- const userMenu = injector.get(UserMenuService);
693
- const authService = injector.get(AuthService);
694
- const navigateToManageProfile = injector.get(NAVIGATE_TO_MANAGE_PROFILE);
695
- return () => {
696
- userMenu.addItems([
697
- {
698
- id: "UserMenu.MyAccount" /* eUserMenuItems.MyAccount */,
699
- order: 100,
700
- textTemplate: {
701
- text: 'AbpAccount::MyAccount',
702
- icon: 'fa fa-cog',
703
- },
704
- action: () => navigateToManageProfile(),
705
- },
706
- {
707
- id: "UserMenu.Logout" /* eUserMenuItems.Logout */,
708
- order: 101,
709
- textTemplate: {
710
- text: 'AbpUi::Logout',
711
- icon: 'fa fa-power-off',
712
- },
713
- action: () => {
714
- authService.logout().subscribe();
715
- },
716
- },
717
- ]);
718
- };
719
- }
720
-
721
- const LAYOUTS = [ApplicationLayoutComponent, AccountLayoutComponent, EmptyLayoutComponent];
722
- class BaseThemeBasicModule {
723
- }
724
- BaseThemeBasicModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BaseThemeBasicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
725
- BaseThemeBasicModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: BaseThemeBasicModule, declarations: [ApplicationLayoutComponent, AccountLayoutComponent, EmptyLayoutComponent, ValidationErrorComponent,
726
- LogoComponent,
727
- NavItemsComponent,
728
- RoutesComponent,
729
- CurrentUserComponent,
730
- LanguagesComponent,
731
- PageAlertContainerComponent,
732
- TenantBoxComponent,
733
- AuthWrapperComponent], imports: [CoreModule,
734
- ThemeSharedModule,
735
- NgbCollapseModule,
736
- NgbDropdownModule,
737
- NgxValidateCoreModule], exports: [ApplicationLayoutComponent, AccountLayoutComponent, EmptyLayoutComponent, ValidationErrorComponent,
738
- LogoComponent,
739
- NavItemsComponent,
740
- RoutesComponent,
741
- CurrentUserComponent,
742
- LanguagesComponent,
743
- PageAlertContainerComponent] });
744
- BaseThemeBasicModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BaseThemeBasicModule, imports: [CoreModule,
745
- ThemeSharedModule,
746
- NgbCollapseModule,
747
- NgbDropdownModule,
748
- NgxValidateCoreModule] });
749
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BaseThemeBasicModule, decorators: [{
750
- type: NgModule,
751
- args: [{
752
- declarations: [
753
- ...LAYOUTS,
754
- ValidationErrorComponent,
755
- LogoComponent,
756
- NavItemsComponent,
757
- RoutesComponent,
758
- CurrentUserComponent,
759
- LanguagesComponent,
760
- PageAlertContainerComponent,
761
- TenantBoxComponent,
762
- AuthWrapperComponent,
763
- ],
764
- exports: [
765
- ...LAYOUTS,
766
- ValidationErrorComponent,
767
- LogoComponent,
768
- NavItemsComponent,
769
- RoutesComponent,
770
- CurrentUserComponent,
771
- LanguagesComponent,
772
- PageAlertContainerComponent,
773
- ],
774
- imports: [
775
- CoreModule,
776
- ThemeSharedModule,
777
- NgbCollapseModule,
778
- NgbDropdownModule,
779
- NgxValidateCoreModule,
780
- ],
781
- }]
782
- }] });
783
- class ThemeBasicModule {
784
- static forRoot() {
785
- return {
786
- ngModule: ThemeBasicModule,
787
- providers: [
788
- BASIC_THEME_NAV_ITEM_PROVIDERS,
789
- BASIC_THEME_USER_MENU_PROVIDERS,
790
- BASIC_THEME_STYLES_PROVIDERS,
791
- {
792
- provide: VALIDATION_ERROR_TEMPLATE,
793
- useValue: ValidationErrorComponent,
794
- },
795
- {
796
- provide: VALIDATION_TARGET_SELECTOR,
797
- useValue: '.form-group',
798
- },
799
- {
800
- provide: VALIDATION_INVALID_CLASSES,
801
- useValue: 'is-invalid',
802
- },
803
- LazyStyleHandler,
804
- {
805
- provide: APP_INITIALIZER,
806
- useFactory: noop,
807
- multi: true,
808
- deps: [LazyStyleHandler],
809
- },
810
- ],
811
- };
812
- }
813
- }
814
- ThemeBasicModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ThemeBasicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
815
- ThemeBasicModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: ThemeBasicModule, imports: [BaseThemeBasicModule], exports: [BaseThemeBasicModule] });
816
- ThemeBasicModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ThemeBasicModule, imports: [BaseThemeBasicModule, BaseThemeBasicModule] });
817
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ThemeBasicModule, decorators: [{
818
- type: NgModule,
819
- args: [{
820
- exports: [BaseThemeBasicModule],
821
- imports: [BaseThemeBasicModule],
822
- }]
823
- }] });
824
-
825
- /*
826
- * Public API Surface of theme-basic
827
- */
828
-
829
- /**
830
- * Generated bundle index. Do not edit.
831
- */
832
-
833
- export { AccountLayoutComponent, ApplicationLayoutComponent, AuthWrapperComponent, BASIC_THEME_NAV_ITEM_PROVIDERS, BASIC_THEME_STYLES_PROVIDERS, BASIC_THEME_USER_MENU_PROVIDERS, BOOTSTRAP, BaseThemeBasicModule, CurrentUserComponent, EmptyLayoutComponent, LAYOUTS, LAZY_STYLES, LanguagesComponent, LazyStyleHandler, LogoComponent, NavItemsComponent, PageAlertContainerComponent, RoutesComponent, TenantBoxComponent, ThemeBasicModule, ValidationErrorComponent, configureNavItems, configureStyles, configureUserMenu, createLazyStyleHref, initLazyStyleHandler };
834
- //# sourceMappingURL=abp-ng.theme.basic.mjs.map