@rxap/layout 12.2.2 → 13.0.0-next.0

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 (151) hide show
  1. package/_theming.scss +1 -1
  2. package/esm2020/index.mjs +59 -0
  3. package/{esm2015/lib/footer/footer.component.js → esm2020/lib/footer/footer.component.mjs} +2 -7
  4. package/esm2020/lib/footer/footer.component.module.mjs +31 -0
  5. package/esm2020/lib/footer.directive.mjs +52 -0
  6. package/esm2020/lib/header/apps-button/apps-button.component.mjs +106 -0
  7. package/esm2020/lib/header/apps-button/apps-button.component.module.mjs +47 -0
  8. package/esm2020/lib/header/header.component.mjs +130 -0
  9. package/esm2020/lib/header/header.component.module.mjs +71 -0
  10. package/esm2020/lib/header/language-selector/language-selector.component.mjs +111 -0
  11. package/esm2020/lib/header/language-selector/language-selector.component.module.mjs +31 -0
  12. package/esm2020/lib/header/navigation-progress-bar/navigation-progress-bar.component.mjs +33 -0
  13. package/esm2020/lib/header/navigation-progress-bar/navigation-progress-bar.component.module.mjs +27 -0
  14. package/esm2020/lib/header/reset-button/reset-button.component.mjs +27 -0
  15. package/esm2020/lib/header/reset-button/reset-button.component.module.mjs +27 -0
  16. package/esm2020/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.mjs +44 -0
  17. package/esm2020/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.module.mjs +31 -0
  18. package/esm2020/lib/header/sign-out/sign-out.component.mjs +31 -0
  19. package/esm2020/lib/header/sign-out/sign-out.component.module.mjs +31 -0
  20. package/esm2020/lib/header/user-profile-icon/user-profile-icon.component.mjs +111 -0
  21. package/esm2020/lib/header/user-profile-icon/user-profile-icon.component.module.mjs +39 -0
  22. package/esm2020/lib/layout/layout.component.mjs +78 -0
  23. package/esm2020/lib/layout/layout.component.module.mjs +71 -0
  24. package/esm2020/lib/layout/layout.component.service.mjs +43 -0
  25. package/esm2020/lib/navigation/navigation-item/navigation-item.component.mjs +286 -0
  26. package/esm2020/lib/navigation/navigation-item.mjs +10 -0
  27. package/esm2020/lib/navigation/navigation.component.mjs +130 -0
  28. package/esm2020/lib/navigation/navigation.component.module.mjs +73 -0
  29. package/esm2020/lib/navigation/navigation.service.mjs +143 -0
  30. package/esm2020/lib/navigation/replace-router-paths.pipe.mjs +21 -0
  31. package/esm2020/lib/navigation/replace-router-paths.service.mjs +15 -0
  32. package/esm2020/lib/sidenav/sidenav-footer.directive.mjs +19 -0
  33. package/esm2020/lib/sidenav/sidenav-header.directive.mjs +19 -0
  34. package/esm2020/lib/sidenav/sidenav.component.mjs +120 -0
  35. package/esm2020/lib/sidenav/sidenav.component.module.mjs +45 -0
  36. package/esm2020/lib/sidenav/sidenav.component.service.mjs +22 -0
  37. package/esm2020/lib/sidenav/version/version.component.mjs +62 -0
  38. package/esm2020/lib/sidenav/version/version.component.module.mjs +27 -0
  39. package/esm2020/lib/sidenav-content/sidenav-content.component.mjs +45 -0
  40. package/esm2020/lib/sidenav-content/sidenav-content.component.module.mjs +27 -0
  41. package/esm2020/lib/sidenav-content/sidenav-content.component.service.mjs +36 -0
  42. package/esm2020/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.mjs +50 -0
  43. package/esm2020/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.mjs +31 -0
  44. package/esm2020/lib/tokens.mjs +8 -0
  45. package/esm2020/lib/types.mjs +2 -0
  46. package/esm2020/lib/window-container-sidenav/window-container-sidenav.component.mjs +73 -0
  47. package/esm2020/lib/window-container-sidenav/window-container-sidenav.component.module.mjs +31 -0
  48. package/esm2020/rxap-layout.mjs +5 -0
  49. package/fesm2015/rxap-layout.mjs +2559 -0
  50. package/fesm2015/rxap-layout.mjs.map +1 -0
  51. package/{fesm2015/rxap-layout.js → fesm2020/rxap-layout.mjs} +212 -355
  52. package/fesm2020/rxap-layout.mjs.map +1 -0
  53. package/package.json +45 -31
  54. package/src/schematics/ng-add/index.js +1 -1
  55. package/src/schematics/ng-add/index.js.map +1 -1
  56. package/bundles/rxap-layout.umd.js +0 -3211
  57. package/bundles/rxap-layout.umd.js.map +0 -1
  58. package/esm2015/index.js +0 -59
  59. package/esm2015/index.js.map +0 -1
  60. package/esm2015/lib/footer/footer.component.js.map +0 -1
  61. package/esm2015/lib/footer/footer.component.module.js +0 -31
  62. package/esm2015/lib/footer/footer.component.module.js.map +0 -1
  63. package/esm2015/lib/footer.directive.js +0 -52
  64. package/esm2015/lib/footer.directive.js.map +0 -1
  65. package/esm2015/lib/header/apps-button/apps-button.component.js +0 -119
  66. package/esm2015/lib/header/apps-button/apps-button.component.js.map +0 -1
  67. package/esm2015/lib/header/apps-button/apps-button.component.module.js +0 -47
  68. package/esm2015/lib/header/apps-button/apps-button.component.module.js.map +0 -1
  69. package/esm2015/lib/header/header.component.js +0 -144
  70. package/esm2015/lib/header/header.component.js.map +0 -1
  71. package/esm2015/lib/header/header.component.module.js +0 -71
  72. package/esm2015/lib/header/header.component.module.js.map +0 -1
  73. package/esm2015/lib/header/language-selector/language-selector.component.js +0 -119
  74. package/esm2015/lib/header/language-selector/language-selector.component.js.map +0 -1
  75. package/esm2015/lib/header/language-selector/language-selector.component.module.js +0 -31
  76. package/esm2015/lib/header/language-selector/language-selector.component.module.js.map +0 -1
  77. package/esm2015/lib/header/navigation-progress-bar/navigation-progress-bar.component.js +0 -39
  78. package/esm2015/lib/header/navigation-progress-bar/navigation-progress-bar.component.js.map +0 -1
  79. package/esm2015/lib/header/navigation-progress-bar/navigation-progress-bar.component.module.js +0 -27
  80. package/esm2015/lib/header/navigation-progress-bar/navigation-progress-bar.component.module.js.map +0 -1
  81. package/esm2015/lib/header/reset-button/reset-button.component.js +0 -34
  82. package/esm2015/lib/header/reset-button/reset-button.component.js.map +0 -1
  83. package/esm2015/lib/header/reset-button/reset-button.component.module.js +0 -27
  84. package/esm2015/lib/header/reset-button/reset-button.component.module.js.map +0 -1
  85. package/esm2015/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.js +0 -50
  86. package/esm2015/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.js.map +0 -1
  87. package/esm2015/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.module.js +0 -31
  88. package/esm2015/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.module.js.map +0 -1
  89. package/esm2015/lib/header/sign-out/sign-out.component.js +0 -38
  90. package/esm2015/lib/header/sign-out/sign-out.component.js.map +0 -1
  91. package/esm2015/lib/header/sign-out/sign-out.component.module.js +0 -31
  92. package/esm2015/lib/header/sign-out/sign-out.component.module.js.map +0 -1
  93. package/esm2015/lib/header/user-profile-icon/user-profile-icon.component.js +0 -126
  94. package/esm2015/lib/header/user-profile-icon/user-profile-icon.component.js.map +0 -1
  95. package/esm2015/lib/header/user-profile-icon/user-profile-icon.component.module.js +0 -39
  96. package/esm2015/lib/header/user-profile-icon/user-profile-icon.component.module.js.map +0 -1
  97. package/esm2015/lib/layout/layout.component.js +0 -89
  98. package/esm2015/lib/layout/layout.component.js.map +0 -1
  99. package/esm2015/lib/layout/layout.component.module.js +0 -71
  100. package/esm2015/lib/layout/layout.component.module.js.map +0 -1
  101. package/esm2015/lib/layout/layout.component.service.js +0 -43
  102. package/esm2015/lib/layout/layout.component.service.js.map +0 -1
  103. package/esm2015/lib/navigation/navigation-item/navigation-item.component.js +0 -299
  104. package/esm2015/lib/navigation/navigation-item/navigation-item.component.js.map +0 -1
  105. package/esm2015/lib/navigation/navigation-item.js +0 -10
  106. package/esm2015/lib/navigation/navigation-item.js.map +0 -1
  107. package/esm2015/lib/navigation/navigation.component.js +0 -138
  108. package/esm2015/lib/navigation/navigation.component.js.map +0 -1
  109. package/esm2015/lib/navigation/navigation.component.module.js +0 -73
  110. package/esm2015/lib/navigation/navigation.component.module.js.map +0 -1
  111. package/esm2015/lib/navigation/navigation.service.js +0 -139
  112. package/esm2015/lib/navigation/navigation.service.js.map +0 -1
  113. package/esm2015/lib/navigation/replace-router-paths.pipe.js +0 -21
  114. package/esm2015/lib/navigation/replace-router-paths.pipe.js.map +0 -1
  115. package/esm2015/lib/navigation/replace-router-paths.service.js +0 -15
  116. package/esm2015/lib/navigation/replace-router-paths.service.js.map +0 -1
  117. package/esm2015/lib/sidenav/sidenav-footer.directive.js +0 -19
  118. package/esm2015/lib/sidenav/sidenav-footer.directive.js.map +0 -1
  119. package/esm2015/lib/sidenav/sidenav-header.directive.js +0 -19
  120. package/esm2015/lib/sidenav/sidenav-header.directive.js.map +0 -1
  121. package/esm2015/lib/sidenav/sidenav.component.js +0 -127
  122. package/esm2015/lib/sidenav/sidenav.component.js.map +0 -1
  123. package/esm2015/lib/sidenav/sidenav.component.module.js +0 -45
  124. package/esm2015/lib/sidenav/sidenav.component.module.js.map +0 -1
  125. package/esm2015/lib/sidenav/sidenav.component.service.js +0 -22
  126. package/esm2015/lib/sidenav/sidenav.component.service.js.map +0 -1
  127. package/esm2015/lib/sidenav/version/version.component.js +0 -70
  128. package/esm2015/lib/sidenav/version/version.component.js.map +0 -1
  129. package/esm2015/lib/sidenav/version/version.component.module.js +0 -27
  130. package/esm2015/lib/sidenav/version/version.component.module.js.map +0 -1
  131. package/esm2015/lib/sidenav-content/sidenav-content.component.js +0 -51
  132. package/esm2015/lib/sidenav-content/sidenav-content.component.js.map +0 -1
  133. package/esm2015/lib/sidenav-content/sidenav-content.component.module.js +0 -27
  134. package/esm2015/lib/sidenav-content/sidenav-content.component.module.js.map +0 -1
  135. package/esm2015/lib/sidenav-content/sidenav-content.component.service.js +0 -36
  136. package/esm2015/lib/sidenav-content/sidenav-content.component.service.js.map +0 -1
  137. package/esm2015/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.js +0 -58
  138. package/esm2015/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.js.map +0 -1
  139. package/esm2015/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.js +0 -31
  140. package/esm2015/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.js.map +0 -1
  141. package/esm2015/lib/tokens.js +0 -8
  142. package/esm2015/lib/tokens.js.map +0 -1
  143. package/esm2015/lib/types.js +0 -2
  144. package/esm2015/lib/types.js.map +0 -1
  145. package/esm2015/lib/window-container-sidenav/window-container-sidenav.component.js +0 -78
  146. package/esm2015/lib/window-container-sidenav/window-container-sidenav.component.js.map +0 -1
  147. package/esm2015/lib/window-container-sidenav/window-container-sidenav.component.module.js +0 -31
  148. package/esm2015/lib/window-container-sidenav/window-container-sidenav.component.module.js.map +0 -1
  149. package/esm2015/rxap-layout.js +0 -5
  150. package/esm2015/rxap-layout.js.map +0 -1
  151. package/fesm2015/rxap-layout.js.map +0 -1
@@ -1,3211 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@rxap/services'), require('@angular/common'), require('@angular/material/toolbar'), require('@angular/cdk/portal'), require('rxjs'), require('rxjs/operators'), require('@rxap/authentication'), require('@angular/flex-layout/extended'), require('@angular/flex-layout/flex'), require('@rxap/config'), require('@angular/material/form-field'), require('@angular/material/select'), require('@angular/forms'), require('@angular/material/core'), require('@angular/material/button'), require('@angular/cdk/overlay'), require('@angular/material/icon'), require('@angular/router'), require('@angular/material/progress-bar'), require('@angular/material/sidenav'), require('@rxap/utilities'), require('@rxap/utilities/rxjs'), require('@angular/material/menu'), require('@rxap/directives'), require('@angular/flex-layout'), require('@angular/material/grid-list'), require('@angular/material/divider'), require('@angular/animations'), require('@rxap/material-directives/icon'), require('@rxap/components'), require('@angular/material/tooltip')) :
3
- typeof define === 'function' && define.amd ? define('@rxap/layout', ['exports', '@angular/core', '@rxap/services', '@angular/common', '@angular/material/toolbar', '@angular/cdk/portal', 'rxjs', 'rxjs/operators', '@rxap/authentication', '@angular/flex-layout/extended', '@angular/flex-layout/flex', '@rxap/config', '@angular/material/form-field', '@angular/material/select', '@angular/forms', '@angular/material/core', '@angular/material/button', '@angular/cdk/overlay', '@angular/material/icon', '@angular/router', '@angular/material/progress-bar', '@angular/material/sidenav', '@rxap/utilities', '@rxap/utilities/rxjs', '@angular/material/menu', '@rxap/directives', '@angular/flex-layout', '@angular/material/grid-list', '@angular/material/divider', '@angular/animations', '@rxap/material-directives/icon', '@rxap/components', '@angular/material/tooltip'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.layout = {}), global.ng.core, global.i1, global.ng.common, global.ng.material.toolbar, global.ng.cdk.portal, global.rxjs, global.rxjs.operators, global.i2$2, global.ng.flexLayout.extended, global.ng.flexLayout.flex, global.i1$1, global.ng.material.formField, global.ng.material.select, global.ng.forms, global.ng.material.core, global.ng.material.button, global.ng.cdk.overlay, global.ng.material.icon, global.ng.router, global.ng.material.progressBar, global.ng.material.sidenav, global.utilities, global.rxjs, global.ng.material.menu, global.i3$5, global.ng.flexLayout, global.ng.material.gridList, global.ng.material.divider, global.ng.animations, global.i6$1, global.components, global.ng.material.tooltip));
5
- }(this, (function (exports, i0, i1, i2, i3, i4, rxjs$1, operators, i2$2, i2$1, i1$3, i1$1, i3$1, i4$1, i5, i6, i1$2, i3$2, i3$3, i1$4, i2$3, i3$4, utilities, rxjs, i2$4, i3$5, flexLayout, gridList, i2$5, animations, i6$1, components, i3$6) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
19
- });
20
- }
21
- });
22
- }
23
- n['default'] = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
31
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
32
- var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
33
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
34
- var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
35
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
36
- var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
37
- var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
38
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
39
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
40
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
41
- var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
42
- var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3$3);
43
- var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
44
- var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
45
- var i3__namespace$5 = /*#__PURE__*/_interopNamespace(i3$4);
46
- var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
47
- var i3__namespace$4 = /*#__PURE__*/_interopNamespace(i3$5);
48
- var i2__namespace$5 = /*#__PURE__*/_interopNamespace(i2$5);
49
- var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
50
- var i3__namespace$6 = /*#__PURE__*/_interopNamespace(i3$6);
51
-
52
- var RXAP_NAVIGATION_CONFIG = new i0.InjectionToken('rxap/layout/navigation-config');
53
- var RXAP_NAVIGATION_CONFIG_INSERTS = new i0.InjectionToken('rxap/layout/navigation-config-inserts');
54
- var RXAP_FOOTER_COMPONENT = new i0.InjectionToken('rxap/layout/footer-component');
55
- var RXAP_HEADER_COMPONENT = new i0.InjectionToken('rxap/layout/header-component');
56
- var RXAP_LOGO_CONFIG = new i0.InjectionToken('rxap/layout/logo-config');
57
- var RXAP_LAYOUT_APPS_GRID = new i0.InjectionToken('rxap/layout/apps-grid');
58
-
59
- function FooterComponent_ng_template_0_mat_toolbar_0_mat_toolbar_row_1_ng_template_1_Template(rf, ctx) { }
60
- function FooterComponent_ng_template_0_mat_toolbar_0_mat_toolbar_row_1_Template(rf, ctx) {
61
- if (rf & 1) {
62
- i0__namespace.ɵɵelementStart(0, "mat-toolbar-row");
63
- i0__namespace.ɵɵtemplate(1, FooterComponent_ng_template_0_mat_toolbar_0_mat_toolbar_row_1_ng_template_1_Template, 0, 0, "ng-template", 4);
64
- i0__namespace.ɵɵelementEnd();
65
- }
66
- if (rf & 2) {
67
- var portal_r4 = ctx.$implicit;
68
- i0__namespace.ɵɵadvance(1);
69
- i0__namespace.ɵɵproperty("cdkPortalOutlet", portal_r4);
70
- }
71
- }
72
- function FooterComponent_ng_template_0_mat_toolbar_0_Template(rf, ctx) {
73
- if (rf & 1) {
74
- i0__namespace.ɵɵelementStart(0, "mat-toolbar", 2);
75
- i0__namespace.ɵɵtemplate(1, FooterComponent_ng_template_0_mat_toolbar_0_mat_toolbar_row_1_Template, 2, 1, "mat-toolbar-row", 3);
76
- i0__namespace.ɵɵelementEnd();
77
- }
78
- if (rf & 2) {
79
- var portals_r1 = i0__namespace.ɵɵnextContext().$implicit;
80
- i0__namespace.ɵɵadvance(1);
81
- i0__namespace.ɵɵproperty("ngForOf", portals_r1);
82
- }
83
- }
84
- function FooterComponent_ng_template_0_Template(rf, ctx) {
85
- if (rf & 1) {
86
- i0__namespace.ɵɵtemplate(0, FooterComponent_ng_template_0_mat_toolbar_0_Template, 2, 1, "mat-toolbar", 1);
87
- }
88
- if (rf & 2) {
89
- var portals_r1 = ctx.$implicit;
90
- i0__namespace.ɵɵproperty("ngIf", portals_r1.length);
91
- }
92
- }
93
- var FooterComponent = /** @class */ (function () {
94
- function FooterComponent(footerService) {
95
- this.footerService = footerService;
96
- }
97
- return FooterComponent;
98
- }());
99
- FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.FooterService)); };
100
- FooterComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["rxap-footer"]], decls: 2, vars: 3, consts: [[3, "ngIf"], ["class", "footer mat-elevation-z1", 4, "ngIf"], [1, "footer", "mat-elevation-z1"], [4, "ngFor", "ngForOf"], [3, "cdkPortalOutlet"]], template: function FooterComponent_Template(rf, ctx) {
101
- if (rf & 1) {
102
- i0__namespace.ɵɵtemplate(0, FooterComponent_ng_template_0_Template, 1, 1, "ng-template", 0);
103
- i0__namespace.ɵɵpipe(1, "async");
104
- }
105
- if (rf & 2) {
106
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 1, ctx.footerService.portals$));
107
- }
108
- }, directives: [i2__namespace.NgIf, i3__namespace.MatToolbar, i2__namespace.NgForOf, i3__namespace.MatToolbarRow, i4__namespace.CdkPortalOutlet], pipes: [i2__namespace.AsyncPipe], styles: [""], changeDetection: 0 });
109
- (function () {
110
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FooterComponent, [{
111
- type: i0.Component,
112
- args: [{
113
- selector: 'rxap-footer',
114
- templateUrl: './footer.component.html',
115
- styleUrls: ['./footer.component.scss'],
116
- changeDetection: i0.ChangeDetectionStrategy.OnPush
117
- }]
118
- }], function () { return [{ type: i1__namespace.FooterService }]; }, null);
119
- })();
120
-
121
- var FooterModule = /** @class */ (function () {
122
- function FooterModule() {
123
- }
124
- return FooterModule;
125
- }());
126
- FooterModule.ɵfac = function FooterModule_Factory(t) { return new (t || FooterModule)(); };
127
- FooterModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: FooterModule });
128
- FooterModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
129
- i3.MatToolbarModule,
130
- i2.CommonModule,
131
- i4.PortalModule
132
- ]] });
133
- (function () {
134
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FooterModule, [{
135
- type: i0.NgModule,
136
- args: [{
137
- declarations: [FooterComponent],
138
- imports: [
139
- i3.MatToolbarModule,
140
- i2.CommonModule,
141
- i4.PortalModule
142
- ],
143
- exports: [FooterComponent]
144
- }]
145
- }], null, null);
146
- })();
147
- (function () {
148
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(FooterModule, { declarations: [FooterComponent], imports: [i3.MatToolbarModule,
149
- i2.CommonModule,
150
- i4.PortalModule], exports: [FooterComponent] });
151
- })();
152
-
153
- function LanguageSelectorComponent_ng_template_0_mat_option_3_Template(rf, ctx) {
154
- if (rf & 1) {
155
- i0__namespace.ɵɵelementStart(0, "mat-option", 4);
156
- i0__namespace.ɵɵtext(1);
157
- i0__namespace.ɵɵelementEnd();
158
- }
159
- if (rf & 2) {
160
- var item_r2 = ctx.$implicit;
161
- i0__namespace.ɵɵproperty("value", item_r2.key);
162
- i0__namespace.ɵɵadvance(1);
163
- i0__namespace.ɵɵtextInterpolate(item_r2.value);
164
- }
165
- }
166
- function LanguageSelectorComponent_ng_template_0_Template(rf, ctx) {
167
- if (rf & 1) {
168
- var _r4_1 = i0__namespace.ɵɵgetCurrentView();
169
- i0__namespace.ɵɵelementStart(0, "div");
170
- i0__namespace.ɵɵelementStart(1, "mat-form-field", 1);
171
- i0__namespace.ɵɵelementStart(2, "mat-select", 2);
172
- i0__namespace.ɵɵlistener("ngModelChange", function LanguageSelectorComponent_ng_template_0_Template_mat_select_ngModelChange_2_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.language.setLanguage($event); });
173
- i0__namespace.ɵɵtemplate(3, LanguageSelectorComponent_ng_template_0_mat_option_3_Template, 2, 2, "mat-option", 3);
174
- i0__namespace.ɵɵpipe(4, "keyvalue");
175
- i0__namespace.ɵɵelementEnd();
176
- i0__namespace.ɵɵelementEnd();
177
- i0__namespace.ɵɵelementEnd();
178
- }
179
- if (rf & 2) {
180
- var ctx_r0 = i0__namespace.ɵɵnextContext();
181
- i0__namespace.ɵɵadvance(2);
182
- i0__namespace.ɵɵproperty("ngModel", ctx_r0.language.selectedLanguage);
183
- i0__namespace.ɵɵadvance(1);
184
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(4, 2, ctx_r0.language.languages));
185
- }
186
- }
187
- var RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY = 'rxap__selected_language';
188
- var RXAP_SELECTED_LANGUAGE_CHANGE_LOCAL_STORAGE_KEY = 'rxap__selected_language_last_change';
189
- var LanguageSelectorService = /** @class */ (function () {
190
- function LanguageSelectorService(config) {
191
- var _a, _b, _c, _d;
192
- this.config = config;
193
- this.languages = (_a = this.config.get('i18n.languages')) !== null && _a !== void 0 ? _a : {};
194
- this.defaultLanguage =
195
- (_c = (_b = this.config.get('i18n.defaultLanguage')) !== null && _b !== void 0 ? _b : Object.keys(this.languages)[0]) !== null && _c !== void 0 ? _c : 'en';
196
- this.selectedLanguage =
197
- (_d = localStorage.getItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY)) !== null && _d !== void 0 ? _d : this.defaultLanguage;
198
- }
199
- LanguageSelectorService.prototype.setLanguage = function (language) {
200
- if (language !== this.selectedLanguage) {
201
- this.redirect(language);
202
- }
203
- };
204
- LanguageSelectorService.prototype.autoRedirect = function () {
205
- if (localStorage.getItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY)) {
206
- this.redirect(localStorage.getItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY));
207
- }
208
- };
209
- LanguageSelectorService.prototype.redirect = function (language) {
210
- var currentUrl = location.origin + location.pathname + location.search;
211
- var redirectUrl = location.origin +
212
- ("/" + language) +
213
- location.pathname.replace(new RegExp("^/" + this.selectedLanguage), '') +
214
- location.search;
215
- this.selectedLanguage = language;
216
- localStorage.setItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY, language);
217
- if (currentUrl !== redirectUrl) {
218
- if (this.checkLastChange()) {
219
- location.replace(redirectUrl);
220
- }
221
- }
222
- else {
223
- console.log('Redirect not required');
224
- }
225
- };
226
- LanguageSelectorService.prototype.checkLastChange = function () {
227
- var lastChangeString = localStorage.getItem(RXAP_SELECTED_LANGUAGE_CHANGE_LOCAL_STORAGE_KEY);
228
- if (lastChangeString) {
229
- if (Date.now() - parseInt(lastChangeString, 10) < 1000) {
230
- return false;
231
- }
232
- }
233
- localStorage.setItem(RXAP_SELECTED_LANGUAGE_CHANGE_LOCAL_STORAGE_KEY, Date.now().toFixed(0));
234
- return true;
235
- };
236
- return LanguageSelectorService;
237
- }());
238
- LanguageSelectorService.ɵfac = function LanguageSelectorService_Factory(t) { return new (t || LanguageSelectorService)(i0__namespace.ɵɵinject(i1$1.ConfigService)); };
239
- LanguageSelectorService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: LanguageSelectorService, factory: LanguageSelectorService.ɵfac, providedIn: 'root' });
240
- (function () {
241
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LanguageSelectorService, [{
242
- type: i0.Injectable,
243
- args: [{ providedIn: 'root' }]
244
- }], function () {
245
- return [{ type: i1__namespace$1.ConfigService, decorators: [{
246
- type: i0.Inject,
247
- args: [i1$1.ConfigService]
248
- }] }];
249
- }, null);
250
- })();
251
- var LanguageSelectorComponent = /** @class */ (function () {
252
- function LanguageSelectorComponent(language) {
253
- this.language = language;
254
- }
255
- return LanguageSelectorComponent;
256
- }());
257
- LanguageSelectorComponent.ɵfac = function LanguageSelectorComponent_Factory(t) { return new (t || LanguageSelectorComponent)(i0__namespace.ɵɵdirectiveInject(LanguageSelectorService)); };
258
- LanguageSelectorComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: LanguageSelectorComponent, selectors: [["rxap-language-selector"]], hostAttrs: [1, "rxap-language-selector"], decls: 2, vars: 3, consts: [[3, "ngIf"], ["appearance", "outline", 1, "language-selector"], [3, "ngModel", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function LanguageSelectorComponent_Template(rf, ctx) {
259
- if (rf & 1) {
260
- i0__namespace.ɵɵtemplate(0, LanguageSelectorComponent_ng_template_0_Template, 5, 4, "ng-template", 0);
261
- i0__namespace.ɵɵpipe(1, "keyvalue");
262
- }
263
- if (rf & 2) {
264
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 1, ctx.language.languages).length);
265
- }
266
- }, directives: [i2__namespace.NgIf, i3__namespace$1.MatFormField, i4__namespace$1.MatSelect, i5__namespace.NgControlStatus, i5__namespace.NgModel, i2__namespace.NgForOf, i6__namespace.MatOption], pipes: [i2__namespace.KeyValuePipe], styles: [".language-selector[_ngcontent-%COMP%]{width:142px}.language-selector[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:0}.language-selector[_ngcontent-%COMP%] .mat-form-field-wrapper .mat-form-field-infix{padding:12px 0;border-width:6px}.language-selector[_ngcontent-%COMP%] .mat-form-field-wrapper .mat-form-field-infix .mat-select-arrow-wrapper{transform:translateY(0)}"], changeDetection: 0 });
267
- (function () {
268
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LanguageSelectorComponent, [{
269
- type: i0.Component,
270
- args: [{
271
- selector: 'rxap-language-selector',
272
- templateUrl: './language-selector.component.html',
273
- styleUrls: ['./language-selector.component.scss'],
274
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
275
- host: { class: 'rxap-language-selector' },
276
- }]
277
- }], function () { return [{ type: LanguageSelectorService }]; }, null);
278
- })();
279
-
280
- function AppsButtonComponent_ng_template_0_ng_template_4_li_2_a_1_Template(rf, ctx) {
281
- if (rf & 1) {
282
- i0__namespace.ɵɵelementStart(0, "a", 9);
283
- i0__namespace.ɵɵelementStart(1, "span", 10);
284
- i0__namespace.ɵɵelement(2, "img", 11);
285
- i0__namespace.ɵɵelementStart(3, "span");
286
- i0__namespace.ɵɵtext(4);
287
- i0__namespace.ɵɵelementEnd();
288
- i0__namespace.ɵɵelementEnd();
289
- i0__namespace.ɵɵelementEnd();
290
- }
291
- if (rf & 2) {
292
- var item_r4 = i0__namespace.ɵɵnextContext().$implicit;
293
- i0__namespace.ɵɵproperty("href", item_r4.href, i0__namespace.ɵɵsanitizeUrl);
294
- i0__namespace.ɵɵadvance(2);
295
- i0__namespace.ɵɵproperty("src", item_r4.image, i0__namespace.ɵɵsanitizeUrl);
296
- i0__namespace.ɵɵadvance(2);
297
- i0__namespace.ɵɵtextInterpolate(item_r4.label);
298
- }
299
- }
300
- var _c0$5 = function (a0) { return { empty: a0 }; };
301
- function AppsButtonComponent_ng_template_0_ng_template_4_li_2_Template(rf, ctx) {
302
- if (rf & 1) {
303
- i0__namespace.ɵɵelementStart(0, "li", 7);
304
- i0__namespace.ɵɵtemplate(1, AppsButtonComponent_ng_template_0_ng_template_4_li_2_a_1_Template, 5, 3, "a", 8);
305
- i0__namespace.ɵɵelementEnd();
306
- }
307
- if (rf & 2) {
308
- var item_r4 = ctx.$implicit;
309
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$5, item_r4.empty));
310
- i0__namespace.ɵɵadvance(1);
311
- i0__namespace.ɵɵproperty("ngIf", !item_r4.empty);
312
- }
313
- }
314
- var _c1$4 = function (a0) { return { columns: a0 }; };
315
- function AppsButtonComponent_ng_template_0_ng_template_4_Template(rf, ctx) {
316
- if (rf & 1) {
317
- i0__namespace.ɵɵelementStart(0, "div", 4);
318
- i0__namespace.ɵɵelementStart(1, "ul", 5);
319
- i0__namespace.ɵɵtemplate(2, AppsButtonComponent_ng_template_0_ng_template_4_li_2_Template, 2, 4, "li", 6);
320
- i0__namespace.ɵɵelementEnd();
321
- i0__namespace.ɵɵelementEnd();
322
- }
323
- if (rf & 2) {
324
- var ctx_r2 = i0__namespace.ɵɵnextContext(2);
325
- i0__namespace.ɵɵadvance(1);
326
- i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction1(2, _c1$4, ctx_r2.columns));
327
- i0__namespace.ɵɵadvance(1);
328
- i0__namespace.ɵɵproperty("ngForOf", ctx_r2.gridWithPadding);
329
- }
330
- }
331
- function AppsButtonComponent_ng_template_0_Template(rf, ctx) {
332
- if (rf & 1) {
333
- var _r8_1 = i0__namespace.ɵɵgetCurrentView();
334
- i0__namespace.ɵɵelementStart(0, "button", 1, 2);
335
- i0__namespace.ɵɵlistener("click", function AppsButtonComponent_ng_template_0_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.isOpen = !ctx_r7.isOpen; });
336
- i0__namespace.ɵɵelementStart(2, "mat-icon");
337
- i0__namespace.ɵɵtext(3, "apps");
338
- i0__namespace.ɵɵelementEnd();
339
- i0__namespace.ɵɵelementEnd();
340
- i0__namespace.ɵɵtemplate(4, AppsButtonComponent_ng_template_0_ng_template_4_Template, 3, 4, "ng-template", 3);
341
- i0__namespace.ɵɵlistener("overlayOutsideClick", function AppsButtonComponent_ng_template_0_Template_ng_template_overlayOutsideClick_4_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r9 = i0__namespace.ɵɵnextContext(); return ctx_r9.isOpen = false; });
342
- }
343
- if (rf & 2) {
344
- var _r1 = i0__namespace.ɵɵreference(1);
345
- var ctx_r0 = i0__namespace.ɵɵnextContext();
346
- i0__namespace.ɵɵadvance(4);
347
- i0__namespace.ɵɵproperty("cdkConnectedOverlayOpen", ctx_r0.isOpen)("cdkConnectedOverlayOrigin", _r1);
348
- }
349
- }
350
- var AppsButtonComponent = /** @class */ (function () {
351
- function AppsButtonComponent(grid, config) {
352
- var _a;
353
- this.config = config;
354
- this.isOpen = false;
355
- this.grid = [];
356
- this.grid = (_a = grid !== null && grid !== void 0 ? grid : this.config.get('navigation.apps')) !== null && _a !== void 0 ? _a : [];
357
- }
358
- Object.defineProperty(AppsButtonComponent.prototype, "gridWithPadding", {
359
- get: function () {
360
- var gridWithPadding = this.grid.slice();
361
- while (gridWithPadding.length % this.columns !== 0) {
362
- gridWithPadding.push({ empty: true });
363
- }
364
- return gridWithPadding;
365
- },
366
- enumerable: false,
367
- configurable: true
368
- });
369
- Object.defineProperty(AppsButtonComponent.prototype, "columns", {
370
- get: function () {
371
- if (this.grid.length < 4) {
372
- return 1;
373
- }
374
- if (this.grid.length < 6) {
375
- return 2;
376
- }
377
- return 3;
378
- },
379
- enumerable: false,
380
- configurable: true
381
- });
382
- return AppsButtonComponent;
383
- }());
384
- AppsButtonComponent.ɵfac = function AppsButtonComponent_Factory(t) { return new (t || AppsButtonComponent)(i0__namespace.ɵɵdirectiveInject(RXAP_LAYOUT_APPS_GRID, 8), i0__namespace.ɵɵdirectiveInject(i1$1.ConfigService)); };
385
- AppsButtonComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: AppsButtonComponent, selectors: [["rxap-apps-button"]], hostAttrs: [1, "rxap-apps-button"], decls: 1, vars: 1, consts: [[3, "ngIf"], ["cdkOverlayOrigin", "", "mat-icon-button", "", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOpen", "cdkConnectedOverlayOrigin", "overlayOutsideClick"], [1, "grid-container"], [1, "grid", 3, "ngStyle"], [3, "ngClass", 4, "ngFor", "ngForOf"], [3, "ngClass"], [3, "href", 4, "ngIf"], [3, "href"], ["fxLayout", "column", "fxLayoutAlign", "start center", "fxLayoutGap", "12px"], ["width", "53px", 3, "src"]], template: function AppsButtonComponent_Template(rf, ctx) {
386
- if (rf & 1) {
387
- i0__namespace.ɵɵtemplate(0, AppsButtonComponent_ng_template_0_Template, 5, 2, "ng-template", 0);
388
- }
389
- if (rf & 2) {
390
- i0__namespace.ɵɵproperty("ngIf", ctx.grid && ctx.grid.length);
391
- }
392
- }, directives: [i2__namespace.NgIf, i1__namespace$2.MatButton, i3__namespace$2.CdkOverlayOrigin, i3__namespace$3.MatIcon, i3__namespace$2.CdkConnectedOverlay, i2__namespace$1.DefaultStyleDirective, i2__namespace.NgStyle, i2__namespace.NgForOf, i2__namespace$1.DefaultClassDirective, i2__namespace.NgClass, i1__namespace$3.DefaultLayoutDirective, i1__namespace$3.DefaultLayoutAlignDirective, i1__namespace$3.DefaultLayoutGapDirective], styles: [".grid-container[_ngcontent-%COMP%]{padding:8px;border:1px solid rgba(0,0,0,.2);border-radius:8px;box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 2px 6px 2px rgba(60,64,67,.15)}.grid[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}.grid[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-radius:8px;padding:6px;height:84px;width:84px;transition-delay:0s;transition-duration:.2s;transition-property:tramsform;transition-timing-function:cubic-bezier(.333,0,0,1);position:relative}.grid[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:absolute;top:6px;right:6px;left:6px;bottom:6px;text-align:center;text-decoration:none;color:#000}"], changeDetection: 0 });
393
- (function () {
394
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AppsButtonComponent, [{
395
- type: i0.Component,
396
- args: [{
397
- selector: 'rxap-apps-button',
398
- templateUrl: './apps-button.component.html',
399
- styleUrls: ['./apps-button.component.scss'],
400
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
401
- host: { class: 'rxap-apps-button' },
402
- }]
403
- }], function () {
404
- return [{ type: undefined, decorators: [{
405
- type: i0.Optional
406
- }, {
407
- type: i0.Inject,
408
- args: [RXAP_LAYOUT_APPS_GRID]
409
- }] }, { type: i1__namespace$1.ConfigService, decorators: [{
410
- type: i0.Inject,
411
- args: [i1$1.ConfigService]
412
- }] }];
413
- }, null);
414
- })();
415
-
416
- var SignOutComponent = /** @class */ (function () {
417
- function SignOutComponent(router) {
418
- this.router = router;
419
- }
420
- SignOutComponent.prototype.redirectToRoot = function () {
421
- this.router.navigate(['/']);
422
- };
423
- return SignOutComponent;
424
- }());
425
- SignOutComponent.ɵfac = function SignOutComponent_Factory(t) { return new (t || SignOutComponent)(i0__namespace.ɵɵdirectiveInject(i1$4.Router)); };
426
- SignOutComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SignOutComponent, selectors: [["rxap-sign-out"]], hostAttrs: [1, "rxap-sign-out"], decls: 3, vars: 0, consts: [["rxapSignOut", "", "mat-icon-button", "", 3, "successful"]], template: function SignOutComponent_Template(rf, ctx) {
427
- if (rf & 1) {
428
- i0__namespace.ɵɵelementStart(0, "button", 0);
429
- i0__namespace.ɵɵlistener("successful", function SignOutComponent_Template_button_successful_0_listener() { return ctx.redirectToRoot(); });
430
- i0__namespace.ɵɵelementStart(1, "mat-icon");
431
- i0__namespace.ɵɵtext(2, "login");
432
- i0__namespace.ɵɵelementEnd();
433
- i0__namespace.ɵɵelementEnd();
434
- }
435
- }, directives: [i1__namespace$2.MatButton, i2__namespace$2.SignOutDirective, i3__namespace$3.MatIcon], styles: [""], changeDetection: 0 });
436
- (function () {
437
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SignOutComponent, [{
438
- type: i0.Component,
439
- args: [{
440
- selector: 'rxap-sign-out',
441
- templateUrl: './sign-out.component.html',
442
- styleUrls: ['./sign-out.component.scss'],
443
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
444
- host: { class: 'rxap-sign-out' }
445
- }]
446
- }], function () {
447
- return [{ type: i1__namespace$4.Router, decorators: [{
448
- type: i0.Inject,
449
- args: [i1$4.Router]
450
- }] }];
451
- }, null);
452
- })();
453
-
454
- function NavigationProgressBarComponent_mat_progress_bar_0_Template(rf, ctx) {
455
- if (rf & 1) {
456
- i0__namespace.ɵɵelement(0, "mat-progress-bar", 1);
457
- }
458
- }
459
- var NavigationProgressBarComponent = /** @class */ (function () {
460
- function NavigationProgressBarComponent(router) {
461
- this.router = router;
462
- this.navigating$ = this.router.events.pipe(operators.filter(function (event) { return event instanceof i1$4.NavigationStart ||
463
- event instanceof i1$4.NavigationEnd ||
464
- event instanceof i1$4.NavigationCancel; }), operators.map(function (event) { return event instanceof i1$4.NavigationStart; }));
465
- }
466
- return NavigationProgressBarComponent;
467
- }());
468
- NavigationProgressBarComponent.ɵfac = function NavigationProgressBarComponent_Factory(t) { return new (t || NavigationProgressBarComponent)(i0__namespace.ɵɵdirectiveInject(i1$4.Router)); };
469
- NavigationProgressBarComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: NavigationProgressBarComponent, selectors: [["rxap-navigation-progress-bar"]], hostAttrs: [1, "rxap-navigation-progress-bar"], decls: 2, vars: 3, consts: [["mode", "indeterminate", "color", "accent", 4, "ngIf"], ["mode", "indeterminate", "color", "accent"]], template: function NavigationProgressBarComponent_Template(rf, ctx) {
470
- if (rf & 1) {
471
- i0__namespace.ɵɵtemplate(0, NavigationProgressBarComponent_mat_progress_bar_0_Template, 1, 0, "mat-progress-bar", 0);
472
- i0__namespace.ɵɵpipe(1, "async");
473
- }
474
- if (rf & 2) {
475
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 1, ctx.navigating$));
476
- }
477
- }, directives: [i2__namespace.NgIf, i2__namespace$3.MatProgressBar], pipes: [i2__namespace.AsyncPipe], styles: [""], changeDetection: 0 });
478
- (function () {
479
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavigationProgressBarComponent, [{
480
- type: i0.Component,
481
- args: [{
482
- selector: 'rxap-navigation-progress-bar',
483
- templateUrl: './navigation-progress-bar.component.html',
484
- styleUrls: ['./navigation-progress-bar.component.scss'],
485
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
486
- host: { class: 'rxap-navigation-progress-bar' }
487
- }]
488
- }], function () {
489
- return [{ type: i1__namespace$4.Router, decorators: [{
490
- type: i0.Inject,
491
- args: [i1$4.Router]
492
- }] }];
493
- }, null);
494
- })();
495
-
496
- /*! *****************************************************************************
497
- Copyright (c) Microsoft Corporation.
498
-
499
- Permission to use, copy, modify, and/or distribute this software for any
500
- purpose with or without fee is hereby granted.
501
-
502
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
503
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
504
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
505
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
506
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
507
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
508
- PERFORMANCE OF THIS SOFTWARE.
509
- ***************************************************************************** */
510
- /* global Reflect, Promise */
511
- var extendStatics = function (d, b) {
512
- extendStatics = Object.setPrototypeOf ||
513
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
514
- function (d, b) { for (var p in b)
515
- if (Object.prototype.hasOwnProperty.call(b, p))
516
- d[p] = b[p]; };
517
- return extendStatics(d, b);
518
- };
519
- function __extends(d, b) {
520
- if (typeof b !== "function" && b !== null)
521
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
522
- extendStatics(d, b);
523
- function __() { this.constructor = d; }
524
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
525
- }
526
- var __assign = function () {
527
- __assign = Object.assign || function __assign(t) {
528
- for (var s, i = 1, n = arguments.length; i < n; i++) {
529
- s = arguments[i];
530
- for (var p in s)
531
- if (Object.prototype.hasOwnProperty.call(s, p))
532
- t[p] = s[p];
533
- }
534
- return t;
535
- };
536
- return __assign.apply(this, arguments);
537
- };
538
- function __rest(s, e) {
539
- var t = {};
540
- for (var p in s)
541
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
542
- t[p] = s[p];
543
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
544
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
545
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
546
- t[p[i]] = s[p[i]];
547
- }
548
- return t;
549
- }
550
- function __decorate(decorators, target, key, desc) {
551
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
552
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
553
- r = Reflect.decorate(decorators, target, key, desc);
554
- else
555
- for (var i = decorators.length - 1; i >= 0; i--)
556
- if (d = decorators[i])
557
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
558
- return c > 3 && r && Object.defineProperty(target, key, r), r;
559
- }
560
- function __param(paramIndex, decorator) {
561
- return function (target, key) { decorator(target, key, paramIndex); };
562
- }
563
- function __metadata(metadataKey, metadataValue) {
564
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
565
- return Reflect.metadata(metadataKey, metadataValue);
566
- }
567
- function __awaiter(thisArg, _arguments, P, generator) {
568
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
569
- return new (P || (P = Promise))(function (resolve, reject) {
570
- function fulfilled(value) { try {
571
- step(generator.next(value));
572
- }
573
- catch (e) {
574
- reject(e);
575
- } }
576
- function rejected(value) { try {
577
- step(generator["throw"](value));
578
- }
579
- catch (e) {
580
- reject(e);
581
- } }
582
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
583
- step((generator = generator.apply(thisArg, _arguments || [])).next());
584
- });
585
- }
586
- function __generator(thisArg, body) {
587
- var _ = { label: 0, sent: function () { if (t[0] & 1)
588
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
589
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
590
- function verb(n) { return function (v) { return step([n, v]); }; }
591
- function step(op) {
592
- if (f)
593
- throw new TypeError("Generator is already executing.");
594
- while (_)
595
- try {
596
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
597
- return t;
598
- if (y = 0, t)
599
- op = [op[0] & 2, t.value];
600
- switch (op[0]) {
601
- case 0:
602
- case 1:
603
- t = op;
604
- break;
605
- case 4:
606
- _.label++;
607
- return { value: op[1], done: false };
608
- case 5:
609
- _.label++;
610
- y = op[1];
611
- op = [0];
612
- continue;
613
- case 7:
614
- op = _.ops.pop();
615
- _.trys.pop();
616
- continue;
617
- default:
618
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
619
- _ = 0;
620
- continue;
621
- }
622
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
623
- _.label = op[1];
624
- break;
625
- }
626
- if (op[0] === 6 && _.label < t[1]) {
627
- _.label = t[1];
628
- t = op;
629
- break;
630
- }
631
- if (t && _.label < t[2]) {
632
- _.label = t[2];
633
- _.ops.push(op);
634
- break;
635
- }
636
- if (t[2])
637
- _.ops.pop();
638
- _.trys.pop();
639
- continue;
640
- }
641
- op = body.call(thisArg, _);
642
- }
643
- catch (e) {
644
- op = [6, e];
645
- y = 0;
646
- }
647
- finally {
648
- f = t = 0;
649
- }
650
- if (op[0] & 5)
651
- throw op[1];
652
- return { value: op[0] ? op[1] : void 0, done: true };
653
- }
654
- }
655
- var __createBinding = Object.create ? (function (o, m, k, k2) {
656
- if (k2 === undefined)
657
- k2 = k;
658
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
659
- }) : (function (o, m, k, k2) {
660
- if (k2 === undefined)
661
- k2 = k;
662
- o[k2] = m[k];
663
- });
664
- function __exportStar(m, o) {
665
- for (var p in m)
666
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
667
- __createBinding(o, m, p);
668
- }
669
- function __values(o) {
670
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
671
- if (m)
672
- return m.call(o);
673
- if (o && typeof o.length === "number")
674
- return {
675
- next: function () {
676
- if (o && i >= o.length)
677
- o = void 0;
678
- return { value: o && o[i++], done: !o };
679
- }
680
- };
681
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
682
- }
683
- function __read(o, n) {
684
- var m = typeof Symbol === "function" && o[Symbol.iterator];
685
- if (!m)
686
- return o;
687
- var i = m.call(o), r, ar = [], e;
688
- try {
689
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
690
- ar.push(r.value);
691
- }
692
- catch (error) {
693
- e = { error: error };
694
- }
695
- finally {
696
- try {
697
- if (r && !r.done && (m = i["return"]))
698
- m.call(i);
699
- }
700
- finally {
701
- if (e)
702
- throw e.error;
703
- }
704
- }
705
- return ar;
706
- }
707
- /** @deprecated */
708
- function __spread() {
709
- for (var ar = [], i = 0; i < arguments.length; i++)
710
- ar = ar.concat(__read(arguments[i]));
711
- return ar;
712
- }
713
- /** @deprecated */
714
- function __spreadArrays() {
715
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
716
- s += arguments[i].length;
717
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
718
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
719
- r[k] = a[j];
720
- return r;
721
- }
722
- function __spreadArray(to, from) {
723
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
724
- to[j] = from[i];
725
- return to;
726
- }
727
- function __await(v) {
728
- return this instanceof __await ? (this.v = v, this) : new __await(v);
729
- }
730
- function __asyncGenerator(thisArg, _arguments, generator) {
731
- if (!Symbol.asyncIterator)
732
- throw new TypeError("Symbol.asyncIterator is not defined.");
733
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
734
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
735
- function verb(n) { if (g[n])
736
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
737
- function resume(n, v) { try {
738
- step(g[n](v));
739
- }
740
- catch (e) {
741
- settle(q[0][3], e);
742
- } }
743
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
744
- function fulfill(value) { resume("next", value); }
745
- function reject(value) { resume("throw", value); }
746
- function settle(f, v) { if (f(v), q.shift(), q.length)
747
- resume(q[0][0], q[0][1]); }
748
- }
749
- function __asyncDelegator(o) {
750
- var i, p;
751
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
752
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
753
- }
754
- function __asyncValues(o) {
755
- if (!Symbol.asyncIterator)
756
- throw new TypeError("Symbol.asyncIterator is not defined.");
757
- var m = o[Symbol.asyncIterator], i;
758
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
759
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
760
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
761
- }
762
- function __makeTemplateObject(cooked, raw) {
763
- if (Object.defineProperty) {
764
- Object.defineProperty(cooked, "raw", { value: raw });
765
- }
766
- else {
767
- cooked.raw = raw;
768
- }
769
- return cooked;
770
- }
771
- ;
772
- var __setModuleDefault = Object.create ? (function (o, v) {
773
- Object.defineProperty(o, "default", { enumerable: true, value: v });
774
- }) : function (o, v) {
775
- o["default"] = v;
776
- };
777
- function __importStar(mod) {
778
- if (mod && mod.__esModule)
779
- return mod;
780
- var result = {};
781
- if (mod != null)
782
- for (var k in mod)
783
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
784
- __createBinding(result, mod, k);
785
- __setModuleDefault(result, mod);
786
- return result;
787
- }
788
- function __importDefault(mod) {
789
- return (mod && mod.__esModule) ? mod : { default: mod };
790
- }
791
- function __classPrivateFieldGet(receiver, state, kind, f) {
792
- if (kind === "a" && !f)
793
- throw new TypeError("Private accessor was defined without a getter");
794
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
795
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
796
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
797
- }
798
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
799
- if (kind === "m")
800
- throw new TypeError("Private method is not writable");
801
- if (kind === "a" && !f)
802
- throw new TypeError("Private accessor was defined without a setter");
803
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
804
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
805
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
806
- }
807
-
808
- function SidenavToggleButtonComponent_mat_icon_1_Template(rf, ctx) {
809
- if (rf & 1) {
810
- i0__namespace.ɵɵelementStart(0, "mat-icon");
811
- i0__namespace.ɵɵtext(1, "menu");
812
- i0__namespace.ɵɵelementEnd();
813
- }
814
- }
815
- function SidenavToggleButtonComponent_mat_icon_2_Template(rf, ctx) {
816
- if (rf & 1) {
817
- i0__namespace.ɵɵelementStart(0, "mat-icon");
818
- i0__namespace.ɵɵtext(1, "menu_open");
819
- i0__namespace.ɵɵelementEnd();
820
- }
821
- }
822
- var SidenavToggleButtonComponent = /** @class */ (function () {
823
- function SidenavToggleButtonComponent() {
824
- }
825
- return SidenavToggleButtonComponent;
826
- }());
827
- SidenavToggleButtonComponent.ɵfac = function SidenavToggleButtonComponent_Factory(t) { return new (t || SidenavToggleButtonComponent)(); };
828
- SidenavToggleButtonComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SidenavToggleButtonComponent, selectors: [["rxap-sidenav-toggle-button"]], hostAttrs: [1, "rxap-sidenav-toggle-button"], inputs: { sidenav: "sidenav" }, decls: 3, vars: 2, consts: [["mat-icon-button", "", 3, "click"], [4, "ngIf"]], template: function SidenavToggleButtonComponent_Template(rf, ctx) {
829
- if (rf & 1) {
830
- i0__namespace.ɵɵelementStart(0, "button", 0);
831
- i0__namespace.ɵɵlistener("click", function SidenavToggleButtonComponent_Template_button_click_0_listener() { return ctx.sidenav.toggle(); });
832
- i0__namespace.ɵɵtemplate(1, SidenavToggleButtonComponent_mat_icon_1_Template, 2, 0, "mat-icon", 1);
833
- i0__namespace.ɵɵtemplate(2, SidenavToggleButtonComponent_mat_icon_2_Template, 2, 0, "mat-icon", 1);
834
- i0__namespace.ɵɵelementEnd();
835
- }
836
- if (rf & 2) {
837
- i0__namespace.ɵɵadvance(1);
838
- i0__namespace.ɵɵproperty("ngIf", !ctx.sidenav.opened);
839
- i0__namespace.ɵɵadvance(1);
840
- i0__namespace.ɵɵproperty("ngIf", ctx.sidenav.opened);
841
- }
842
- }, directives: [i1__namespace$2.MatButton, i2__namespace.NgIf, i3__namespace$3.MatIcon], styles: [""], changeDetection: 0 });
843
- __decorate([
844
- utilities.Required,
845
- __metadata("design:type", i3$4.MatSidenav)
846
- ], SidenavToggleButtonComponent.prototype, "sidenav", void 0);
847
- (function () {
848
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SidenavToggleButtonComponent, [{
849
- type: i0.Component,
850
- args: [{
851
- selector: 'rxap-sidenav-toggle-button',
852
- templateUrl: './sidenav-toggle-button.component.html',
853
- styleUrls: ['./sidenav-toggle-button.component.scss'],
854
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
855
- host: { class: 'rxap-sidenav-toggle-button' }
856
- }]
857
- }], null, { sidenav: [{
858
- type: i0.Input
859
- }] });
860
- })();
861
-
862
- function UserProfileIconComponent_ng_template_5_button_0_Template(rf, ctx) {
863
- if (rf & 1) {
864
- i0__namespace.ɵɵelementStart(0, "button", 5);
865
- i0__namespace.ɵɵelementStart(1, "mat-icon");
866
- i0__namespace.ɵɵtext(2, "person");
867
- i0__namespace.ɵɵelementEnd();
868
- i0__namespace.ɵɵelementStart(3, "span");
869
- i0__namespace.ɵɵtext(4);
870
- i0__namespace.ɵɵelementEnd();
871
- i0__namespace.ɵɵelementEnd();
872
- }
873
- if (rf & 2) {
874
- var user_r2 = i0__namespace.ɵɵnextContext().$implicit;
875
- i0__namespace.ɵɵadvance(4);
876
- i0__namespace.ɵɵtextInterpolate2("", user_r2.firstname, " ", user_r2.lastname, "");
877
- }
878
- }
879
- function UserProfileIconComponent_ng_template_5_button_1_Template(rf, ctx) {
880
- if (rf & 1) {
881
- i0__namespace.ɵɵelementStart(0, "button", 5);
882
- i0__namespace.ɵɵelementStart(1, "mat-icon");
883
- i0__namespace.ɵɵtext(2, "person");
884
- i0__namespace.ɵɵelementEnd();
885
- i0__namespace.ɵɵelementStart(3, "span");
886
- i0__namespace.ɵɵtext(4);
887
- i0__namespace.ɵɵelementEnd();
888
- i0__namespace.ɵɵelementEnd();
889
- }
890
- if (rf & 2) {
891
- var user_r2 = i0__namespace.ɵɵnextContext().$implicit;
892
- i0__namespace.ɵɵadvance(4);
893
- i0__namespace.ɵɵtextInterpolate(user_r2.name);
894
- }
895
- }
896
- function UserProfileIconComponent_ng_template_5_button_2_Template(rf, ctx) {
897
- if (rf & 1) {
898
- i0__namespace.ɵɵelementStart(0, "button", 5);
899
- i0__namespace.ɵɵelementStart(1, "mat-icon");
900
- i0__namespace.ɵɵtext(2, "account_circle");
901
- i0__namespace.ɵɵelementEnd();
902
- i0__namespace.ɵɵelementStart(3, "span");
903
- i0__namespace.ɵɵtext(4);
904
- i0__namespace.ɵɵelementEnd();
905
- i0__namespace.ɵɵelementEnd();
906
- }
907
- if (rf & 2) {
908
- var user_r2 = i0__namespace.ɵɵnextContext().$implicit;
909
- i0__namespace.ɵɵadvance(4);
910
- i0__namespace.ɵɵtextInterpolate(user_r2.username);
911
- }
912
- }
913
- function UserProfileIconComponent_ng_template_5_button_3_Template(rf, ctx) {
914
- if (rf & 1) {
915
- i0__namespace.ɵɵelementStart(0, "button", 5);
916
- i0__namespace.ɵɵelementStart(1, "mat-icon");
917
- i0__namespace.ɵɵtext(2, "email");
918
- i0__namespace.ɵɵelementEnd();
919
- i0__namespace.ɵɵelementStart(3, "span");
920
- i0__namespace.ɵɵtext(4);
921
- i0__namespace.ɵɵelementEnd();
922
- i0__namespace.ɵɵelementEnd();
923
- }
924
- if (rf & 2) {
925
- var user_r2 = i0__namespace.ɵɵnextContext().$implicit;
926
- i0__namespace.ɵɵadvance(4);
927
- i0__namespace.ɵɵtextInterpolate(user_r2.email);
928
- }
929
- }
930
- function UserProfileIconComponent_ng_template_5_Template(rf, ctx) {
931
- if (rf & 1) {
932
- i0__namespace.ɵɵtemplate(0, UserProfileIconComponent_ng_template_5_button_0_Template, 5, 2, "button", 4);
933
- i0__namespace.ɵɵtemplate(1, UserProfileIconComponent_ng_template_5_button_1_Template, 5, 1, "button", 4);
934
- i0__namespace.ɵɵtemplate(2, UserProfileIconComponent_ng_template_5_button_2_Template, 5, 1, "button", 4);
935
- i0__namespace.ɵɵtemplate(3, UserProfileIconComponent_ng_template_5_button_3_Template, 5, 1, "button", 4);
936
- }
937
- if (rf & 2) {
938
- var user_r2 = ctx.$implicit;
939
- i0__namespace.ɵɵproperty("ngIf", user_r2.firstname && user_r2.lastname);
940
- i0__namespace.ɵɵadvance(1);
941
- i0__namespace.ɵɵproperty("ngIf", user_r2.name);
942
- i0__namespace.ɵɵadvance(1);
943
- i0__namespace.ɵɵproperty("ngIf", user_r2.username);
944
- i0__namespace.ɵɵadvance(1);
945
- i0__namespace.ɵɵproperty("ngIf", user_r2.email);
946
- }
947
- }
948
- var UserProfileIconComponent = /** @class */ (function () {
949
- function UserProfileIconComponent(userService) {
950
- this.userService = userService;
951
- this.userProfileUrl$ = this.userService.user$.pipe(rxjs.isDefined(), operators.map(function (user) { var _a; return (_a = user.photoURL) !== null && _a !== void 0 ? _a : user.avatarUrl; }));
952
- this.userName$ = this.userService.user$.pipe(rxjs.isDefined(), operators.map(function (user) {
953
- var _a, _b;
954
- return (_b = (_a = user.name) !== null && _a !== void 0 ? _a : (user.firstname || user.lastname
955
- ? [user.firstname, user.lastname].join(' ').trim()
956
- : null)) !== null && _b !== void 0 ? _b : user.username;
957
- }));
958
- }
959
- return UserProfileIconComponent;
960
- }());
961
- UserProfileIconComponent.ɵfac = function UserProfileIconComponent_Factory(t) { return new (t || UserProfileIconComponent)(i0__namespace.ɵɵdirectiveInject(i2$2.UserService)); };
962
- UserProfileIconComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: UserProfileIconComponent, selectors: [["rxap-user-profile-icon"]], hostAttrs: [1, "rxap-user-profile-icon"], decls: 7, vars: 11, consts: [["fxLayout", "row", "fxLayoutAlign", "center center", 1, "profile-icon", 3, "matMenuTriggerFor", "rxapAvatarBackgroundImage", "name"], [3, "yPosition"], ["menu", "matMenu"], [3, "ngIf"], ["mat-menu-item", "", 4, "ngIf"], ["mat-menu-item", ""]], template: function UserProfileIconComponent_Template(rf, ctx) {
963
- if (rf & 1) {
964
- i0__namespace.ɵɵelement(0, "button", 0);
965
- i0__namespace.ɵɵpipe(1, "async");
966
- i0__namespace.ɵɵpipe(2, "async");
967
- i0__namespace.ɵɵelementStart(3, "mat-menu", 1, 2);
968
- i0__namespace.ɵɵtemplate(5, UserProfileIconComponent_ng_template_5_Template, 4, 4, "ng-template", 3);
969
- i0__namespace.ɵɵpipe(6, "async");
970
- i0__namespace.ɵɵelementEnd();
971
- }
972
- if (rf & 2) {
973
- var _r0 = i0__namespace.ɵɵreference(4);
974
- var tmp_2_0 = void 0;
975
- i0__namespace.ɵɵproperty("matMenuTriggerFor", _r0)("rxapAvatarBackgroundImage", i0__namespace.ɵɵpipeBind1(1, 5, ctx.userProfileUrl$))("name", (tmp_2_0 = i0__namespace.ɵɵpipeBind1(2, 7, ctx.userName$)) !== null && tmp_2_0 !== undefined ? tmp_2_0 : "");
976
- i0__namespace.ɵɵadvance(3);
977
- i0__namespace.ɵɵproperty("yPosition", "below");
978
- i0__namespace.ɵɵadvance(2);
979
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(6, 9, ctx.userService.user$));
980
- }
981
- }, directives: [i1__namespace$3.DefaultLayoutDirective, i1__namespace$3.DefaultLayoutAlignDirective, i2__namespace$4.MatMenuTrigger, i3__namespace$4.AvatarBackgroundImageDirective, i2__namespace$4.MatMenu, i2__namespace.NgIf, i2__namespace$4.MatMenuItem, i3__namespace$3.MatIcon], pipes: [i2__namespace.AsyncPipe], styles: [".profile-icon[_ngcontent-%COMP%]{border-radius:100%;border:none;height:32px;width:32px;overflow:hidden;background-position:50%;background-repeat:no-repeat;background-size:cover}.profile-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.profile-icon[_ngcontent-%COMP%]:focus{outline:none}"], changeDetection: 0 });
982
- (function () {
983
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UserProfileIconComponent, [{
984
- type: i0.Component,
985
- args: [{
986
- selector: 'rxap-user-profile-icon',
987
- templateUrl: './user-profile-icon.component.html',
988
- styleUrls: ['./user-profile-icon.component.scss'],
989
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
990
- host: { class: 'rxap-user-profile-icon' },
991
- }]
992
- }], function () {
993
- return [{ type: i2__namespace$2.UserService, decorators: [{
994
- type: i0.Inject,
995
- args: [i2$2.UserService]
996
- }] }];
997
- }, null);
998
- })();
999
-
1000
- function HeaderComponent_mat_toolbar_row_1_ng_container_1_Template(rf, ctx) {
1001
- if (rf & 1) {
1002
- i0__namespace.ɵɵelementContainer(0);
1003
- }
1004
- }
1005
- function HeaderComponent_mat_toolbar_row_1_Template(rf, ctx) {
1006
- if (rf & 1) {
1007
- i0__namespace.ɵɵelementStart(0, "mat-toolbar-row");
1008
- i0__namespace.ɵɵtemplate(1, HeaderComponent_mat_toolbar_row_1_ng_container_1_Template, 1, 0, "ng-container", 7);
1009
- i0__namespace.ɵɵelementEnd();
1010
- }
1011
- if (rf & 2) {
1012
- var headerComponent_r4 = ctx.$implicit;
1013
- i0__namespace.ɵɵadvance(1);
1014
- i0__namespace.ɵɵproperty("ngComponentOutlet", headerComponent_r4);
1015
- }
1016
- }
1017
- function HeaderComponent_rxap_sidenav_toggle_button_4_Template(rf, ctx) {
1018
- if (rf & 1) {
1019
- i0__namespace.ɵɵelement(0, "rxap-sidenav-toggle-button", 8);
1020
- }
1021
- if (rf & 2) {
1022
- var ctx_r1 = i0__namespace.ɵɵnextContext();
1023
- i0__namespace.ɵɵproperty("sidenav", ctx_r1.sidenav);
1024
- }
1025
- }
1026
- function HeaderComponent_rxap_user_profile_icon_9_Template(rf, ctx) {
1027
- if (rf & 1) {
1028
- i0__namespace.ɵɵelement(0, "rxap-user-profile-icon", 5);
1029
- }
1030
- }
1031
- function HeaderComponent_div_11_Template(rf, ctx) {
1032
- if (rf & 1) {
1033
- i0__namespace.ɵɵelementStart(0, "div", 5);
1034
- i0__namespace.ɵɵelementStart(1, "button", 9);
1035
- i0__namespace.ɵɵelementStart(2, "mat-icon");
1036
- i0__namespace.ɵɵtext(3, "settings");
1037
- i0__namespace.ɵɵelementEnd();
1038
- i0__namespace.ɵɵelementEnd();
1039
- i0__namespace.ɵɵelementEnd();
1040
- }
1041
- if (rf & 2) {
1042
- var ctx_r3 = i0__namespace.ɵɵnextContext();
1043
- i0__namespace.ɵɵadvance(1);
1044
- i0__namespace.ɵɵproperty("matMenuTriggerFor", ctx_r3.settingsMenuPanel);
1045
- }
1046
- }
1047
- var _c0$4 = function (a0) { return { open: a0 }; };
1048
- var _c1$3 = ["*"];
1049
- var HeaderComponent = /** @class */ (function () {
1050
- function HeaderComponent(headerComponentService, userService, headerComponent) {
1051
- this.headerComponentService = headerComponentService;
1052
- this.userService = userService;
1053
- this.headerComponent = headerComponent;
1054
- this.components = [];
1055
- this.subscriptions = new rxjs$1.Subscription();
1056
- this.color = 'primary';
1057
- this.hasUser$ = this.userService.user$.pipe(operators.map(Boolean));
1058
- }
1059
- HeaderComponent.prototype.ngOnInit = function () {
1060
- var _this = this;
1061
- this.updateComponents();
1062
- this.subscriptions.add(this.headerComponentService.update$
1063
- .pipe(operators.tap(function () { return _this.updateComponents(); }))
1064
- .subscribe());
1065
- };
1066
- HeaderComponent.prototype.updateComponents = function () {
1067
- this.components = this.headerComponentService.getComponents();
1068
- };
1069
- HeaderComponent.prototype.ngOnDestroy = function () {
1070
- this.subscriptions.unsubscribe();
1071
- };
1072
- return HeaderComponent;
1073
- }());
1074
- HeaderComponent.ɵfac = function HeaderComponent_Factory(t) { return new (t || HeaderComponent)(i0__namespace.ɵɵdirectiveInject(i1.HeaderService), i0__namespace.ɵɵdirectiveInject(i2$2.UserService), i0__namespace.ɵɵdirectiveInject(RXAP_HEADER_COMPONENT, 8)); };
1075
- HeaderComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: HeaderComponent, selectors: [["rxap-header"]], hostAttrs: [1, "rxap-layout-header"], inputs: { sidenav: "sidenav", color: "color", settingsMenuPanel: "settingsMenuPanel" }, ngContentSelectors: _c1$3, decls: 14, vars: 10, consts: [[1, "mat-elevation-z3", 3, "ngClass", "color"], [4, "ngFor", "ngForOf"], ["fxLayout", "row", "fxLayoutAlign", "space-between center", "fxLayoutGap", "16px", 1, "content"], ["fxFlex", "nogrow", 3, "sidenav", 4, "ngIf"], ["fxFlex", "grow"], ["fxFlex", "nogrow"], ["fxFlex", "nogrow", 4, "ngIf"], [4, "ngComponentOutlet"], ["fxFlex", "nogrow", 3, "sidenav"], ["mat-icon-button", "", 3, "matMenuTriggerFor"]], template: function HeaderComponent_Template(rf, ctx) {
1076
- if (rf & 1) {
1077
- i0__namespace.ɵɵprojectionDef();
1078
- i0__namespace.ɵɵelementStart(0, "mat-toolbar", 0);
1079
- i0__namespace.ɵɵtemplate(1, HeaderComponent_mat_toolbar_row_1_Template, 2, 1, "mat-toolbar-row", 1);
1080
- i0__namespace.ɵɵelementStart(2, "mat-toolbar-row");
1081
- i0__namespace.ɵɵelementStart(3, "div", 2);
1082
- i0__namespace.ɵɵtemplate(4, HeaderComponent_rxap_sidenav_toggle_button_4_Template, 1, 1, "rxap-sidenav-toggle-button", 3);
1083
- i0__namespace.ɵɵelementStart(5, "div", 4);
1084
- i0__namespace.ɵɵprojection(6);
1085
- i0__namespace.ɵɵelementEnd();
1086
- i0__namespace.ɵɵelement(7, "rxap-language-selector", 5);
1087
- i0__namespace.ɵɵelement(8, "rxap-apps-button", 5);
1088
- i0__namespace.ɵɵtemplate(9, HeaderComponent_rxap_user_profile_icon_9_Template, 1, 0, "rxap-user-profile-icon", 6);
1089
- i0__namespace.ɵɵpipe(10, "async");
1090
- i0__namespace.ɵɵtemplate(11, HeaderComponent_div_11_Template, 4, 1, "div", 6);
1091
- i0__namespace.ɵɵelement(12, "rxap-sign-out", 5);
1092
- i0__namespace.ɵɵelementEnd();
1093
- i0__namespace.ɵɵelementEnd();
1094
- i0__namespace.ɵɵelementEnd();
1095
- i0__namespace.ɵɵelement(13, "rxap-navigation-progress-bar");
1096
- }
1097
- if (rf & 2) {
1098
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$4, ctx.sidenav == null ? null : ctx.sidenav.opened))("color", ctx.color);
1099
- i0__namespace.ɵɵadvance(1);
1100
- i0__namespace.ɵɵproperty("ngForOf", ctx.components);
1101
- i0__namespace.ɵɵadvance(3);
1102
- i0__namespace.ɵɵproperty("ngIf", ctx.sidenav);
1103
- i0__namespace.ɵɵadvance(5);
1104
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(10, 6, ctx.hasUser$));
1105
- i0__namespace.ɵɵadvance(2);
1106
- i0__namespace.ɵɵproperty("ngIf", ctx.settingsMenuPanel);
1107
- }
1108
- }, directives: [i3__namespace.MatToolbar, i2__namespace$1.DefaultClassDirective, i2__namespace.NgClass, i2__namespace.NgForOf, i3__namespace.MatToolbarRow, i1__namespace$3.DefaultLayoutDirective, i1__namespace$3.DefaultLayoutAlignDirective, i1__namespace$3.DefaultLayoutGapDirective, i2__namespace.NgIf, i1__namespace$3.DefaultFlexDirective, LanguageSelectorComponent, AppsButtonComponent, SignOutComponent, NavigationProgressBarComponent, i2__namespace.NgComponentOutlet, SidenavToggleButtonComponent, UserProfileIconComponent, i1__namespace$2.MatButton, i2__namespace$4.MatMenuTrigger, i3__namespace$3.MatIcon], pipes: [i2__namespace.AsyncPipe], styles: [".content[_ngcontent-%COMP%]{width:100%;height:64px}"], changeDetection: 0 });
1109
- (function () {
1110
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(HeaderComponent, [{
1111
- type: i0.Component,
1112
- args: [{
1113
- selector: 'rxap-header',
1114
- templateUrl: './header.component.html',
1115
- styleUrls: ['./header.component.scss'],
1116
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1117
- host: {
1118
- class: 'rxap-layout-header',
1119
- },
1120
- }]
1121
- }], function () {
1122
- return [{ type: i1__namespace.HeaderService, decorators: [{
1123
- type: i0.Inject,
1124
- args: [i1.HeaderService]
1125
- }] }, { type: i2__namespace$2.UserService, decorators: [{
1126
- type: i0.Inject,
1127
- args: [i2$2.UserService]
1128
- }] }, { type: undefined, decorators: [{
1129
- type: i0.Optional
1130
- }, {
1131
- type: i0.Inject,
1132
- args: [RXAP_HEADER_COMPONENT]
1133
- }] }];
1134
- }, { sidenav: [{
1135
- type: i0.Input
1136
- }], color: [{
1137
- type: i0.Input
1138
- }], settingsMenuPanel: [{
1139
- type: i0.Input
1140
- }] });
1141
- })();
1142
-
1143
- var SignOutComponentModule = /** @class */ (function () {
1144
- function SignOutComponentModule() {
1145
- }
1146
- return SignOutComponentModule;
1147
- }());
1148
- SignOutComponentModule.ɵfac = function SignOutComponentModule_Factory(t) { return new (t || SignOutComponentModule)(); };
1149
- SignOutComponentModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: SignOutComponentModule });
1150
- SignOutComponentModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
1151
- i1$2.MatButtonModule,
1152
- i3$3.MatIconModule,
1153
- i2$2.SignOutDirectiveModule,
1154
- ]] });
1155
- (function () {
1156
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SignOutComponentModule, [{
1157
- type: i0.NgModule,
1158
- args: [{
1159
- declarations: [SignOutComponent],
1160
- imports: [
1161
- i1$2.MatButtonModule,
1162
- i3$3.MatIconModule,
1163
- i2$2.SignOutDirectiveModule,
1164
- ],
1165
- exports: [SignOutComponent]
1166
- }]
1167
- }], null, null);
1168
- })();
1169
- (function () {
1170
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SignOutComponentModule, { declarations: [SignOutComponent], imports: [i1$2.MatButtonModule,
1171
- i3$3.MatIconModule,
1172
- i2$2.SignOutDirectiveModule], exports: [SignOutComponent] });
1173
- })();
1174
-
1175
- var UserProfileIconComponentModule = /** @class */ (function () {
1176
- function UserProfileIconComponentModule() {
1177
- }
1178
- return UserProfileIconComponentModule;
1179
- }());
1180
- UserProfileIconComponentModule.ɵfac = function UserProfileIconComponentModule_Factory(t) { return new (t || UserProfileIconComponentModule)(); };
1181
- UserProfileIconComponentModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: UserProfileIconComponentModule });
1182
- UserProfileIconComponentModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
1183
- i2$4.MatMenuModule,
1184
- i3$3.MatIconModule,
1185
- i2.CommonModule,
1186
- flexLayout.FlexLayoutModule,
1187
- i3$5.AvatarBackgroundImageDirectiveModule,
1188
- ]] });
1189
- (function () {
1190
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UserProfileIconComponentModule, [{
1191
- type: i0.NgModule,
1192
- args: [{
1193
- declarations: [UserProfileIconComponent],
1194
- imports: [
1195
- i2$4.MatMenuModule,
1196
- i3$3.MatIconModule,
1197
- i2.CommonModule,
1198
- flexLayout.FlexLayoutModule,
1199
- i3$5.AvatarBackgroundImageDirectiveModule,
1200
- ],
1201
- exports: [UserProfileIconComponent]
1202
- }]
1203
- }], null, null);
1204
- })();
1205
- (function () {
1206
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(UserProfileIconComponentModule, { declarations: [UserProfileIconComponent], imports: [i2$4.MatMenuModule,
1207
- i3$3.MatIconModule,
1208
- i2.CommonModule,
1209
- flexLayout.FlexLayoutModule,
1210
- i3$5.AvatarBackgroundImageDirectiveModule], exports: [UserProfileIconComponent] });
1211
- })();
1212
-
1213
- var NavigationProgressBarComponentModule = /** @class */ (function () {
1214
- function NavigationProgressBarComponentModule() {
1215
- }
1216
- return NavigationProgressBarComponentModule;
1217
- }());
1218
- NavigationProgressBarComponentModule.ɵfac = function NavigationProgressBarComponentModule_Factory(t) { return new (t || NavigationProgressBarComponentModule)(); };
1219
- NavigationProgressBarComponentModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: NavigationProgressBarComponentModule });
1220
- NavigationProgressBarComponentModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
1221
- i2$3.MatProgressBarModule,
1222
- i2.CommonModule
1223
- ]] });
1224
- (function () {
1225
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavigationProgressBarComponentModule, [{
1226
- type: i0.NgModule,
1227
- args: [{
1228
- declarations: [NavigationProgressBarComponent],
1229
- imports: [
1230
- i2$3.MatProgressBarModule,
1231
- i2.CommonModule
1232
- ],
1233
- exports: [NavigationProgressBarComponent]
1234
- }]
1235
- }], null, null);
1236
- })();
1237
- (function () {
1238
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(NavigationProgressBarComponentModule, { declarations: [NavigationProgressBarComponent], imports: [i2$3.MatProgressBarModule,
1239
- i2.CommonModule], exports: [NavigationProgressBarComponent] });
1240
- })();
1241
-
1242
- var SidenavToggleButtonComponentModule = /** @class */ (function () {
1243
- function SidenavToggleButtonComponentModule() {
1244
- }
1245
- return SidenavToggleButtonComponentModule;
1246
- }());
1247
- SidenavToggleButtonComponentModule.ɵfac = function SidenavToggleButtonComponentModule_Factory(t) { return new (t || SidenavToggleButtonComponentModule)(); };
1248
- SidenavToggleButtonComponentModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: SidenavToggleButtonComponentModule });
1249
- SidenavToggleButtonComponentModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
1250
- i3$3.MatIconModule,
1251
- i2.CommonModule,
1252
- i1$2.MatButtonModule
1253
- ]] });
1254
- (function () {
1255
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SidenavToggleButtonComponentModule, [{
1256
- type: i0.NgModule,
1257
- args: [{
1258
- declarations: [SidenavToggleButtonComponent],
1259
- imports: [
1260
- i3$3.MatIconModule,
1261
- i2.CommonModule,
1262
- i1$2.MatButtonModule
1263
- ],
1264
- exports: [SidenavToggleButtonComponent]
1265
- }]
1266
- }], null, null);
1267
- })();
1268
- (function () {
1269
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SidenavToggleButtonComponentModule, { declarations: [SidenavToggleButtonComponent], imports: [i3$3.MatIconModule,
1270
- i2.CommonModule,
1271
- i1$2.MatButtonModule], exports: [SidenavToggleButtonComponent] });
1272
- })();
1273
-
1274
- var ResetButtonComponent = /** @class */ (function () {
1275
- function ResetButtonComponent(resetService) {
1276
- this.resetService = resetService;
1277
- }
1278
- return ResetButtonComponent;
1279
- }());
1280
- ResetButtonComponent.ɵfac = function ResetButtonComponent_Factory(t) { return new (t || ResetButtonComponent)(i0__namespace.ɵɵdirectiveInject(i1.ResetService)); };
1281
- ResetButtonComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: ResetButtonComponent, selectors: [["rxap-reset-button"]], hostAttrs: [1, "rxap-reset-button"], decls: 3, vars: 0, consts: [["mat-icon-button", "", 3, "click"]], template: function ResetButtonComponent_Template(rf, ctx) {
1282
- if (rf & 1) {
1283
- i0__namespace.ɵɵelementStart(0, "button", 0);
1284
- i0__namespace.ɵɵlistener("click", function ResetButtonComponent_Template_button_click_0_listener() { return ctx.resetService.resetAll(); });
1285
- i0__namespace.ɵɵelementStart(1, "mat-icon");
1286
- i0__namespace.ɵɵtext(2, "refresh");
1287
- i0__namespace.ɵɵelementEnd();
1288
- i0__namespace.ɵɵelementEnd();
1289
- }
1290
- }, directives: [i1__namespace$2.MatButton, i3__namespace$3.MatIcon], styles: [""], changeDetection: 0 });
1291
- (function () {
1292
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ResetButtonComponent, [{
1293
- type: i0.Component,
1294
- args: [{
1295
- selector: 'rxap-reset-button',
1296
- templateUrl: './reset-button.component.html',
1297
- styleUrls: ['./reset-button.component.scss'],
1298
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1299
- host: { class: 'rxap-reset-button' },
1300
- }]
1301
- }], function () {
1302
- return [{ type: i1__namespace.ResetService, decorators: [{
1303
- type: i0.Inject,
1304
- args: [i1.ResetService]
1305
- }] }];
1306
- }, null);
1307
- })();
1308
-
1309
- var ResetButtonComponentModule = /** @class */ (function () {
1310
- function ResetButtonComponentModule() {
1311
- }
1312
- return ResetButtonComponentModule;
1313
- }());
1314
- ResetButtonComponentModule.ɵfac = function ResetButtonComponentModule_Factory(t) { return new (t || ResetButtonComponentModule)(); };
1315
- ResetButtonComponentModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: ResetButtonComponentModule });
1316
- ResetButtonComponentModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
1317
- i3$3.MatIconModule,
1318
- i1$2.MatButtonModule
1319
- ]] });
1320
- (function () {
1321
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ResetButtonComponentModule, [{
1322
- type: i0.NgModule,
1323
- args: [{
1324
- declarations: [ResetButtonComponent],
1325
- imports: [
1326
- i3$3.MatIconModule,
1327
- i1$2.MatButtonModule
1328
- ],
1329
- exports: [ResetButtonComponent]
1330
- }]
1331
- }], null, null);
1332
- })();
1333
- (function () {
1334
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(ResetButtonComponentModule, { declarations: [ResetButtonComponent], imports: [i3$3.MatIconModule,
1335
- i1$2.MatButtonModule], exports: [ResetButtonComponent] });
1336
- })();
1337
-
1338
- var AppsButtonComponentModule = /** @class */ (function () {
1339
- function AppsButtonComponentModule() {
1340
- }
1341
- return AppsButtonComponentModule;
1342
- }());
1343
- AppsButtonComponentModule.ɵfac = function AppsButtonComponentModule_Factory(t) { return new (t || AppsButtonComponentModule)(); };
1344
- AppsButtonComponentModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: AppsButtonComponentModule });
1345
- AppsButtonComponentModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
1346
- i1$2.MatButtonModule,
1347
- i3$3.MatIconModule,
1348
- gridList.MatGridListModule,
1349
- i3$2.OverlayModule,
1350
- flexLayout.FlexLayoutModule,
1351
- i2.CommonModule,
1352
- i1$4.RouterModule
1353
- ]] });
1354
- (function () {
1355
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AppsButtonComponentModule, [{
1356
- type: i0.NgModule,
1357
- args: [{
1358
- declarations: [AppsButtonComponent],
1359
- imports: [
1360
- i1$2.MatButtonModule,
1361
- i3$3.MatIconModule,
1362
- gridList.MatGridListModule,
1363
- i3$2.OverlayModule,
1364
- flexLayout.FlexLayoutModule,
1365
- i2.CommonModule,
1366
- i1$4.RouterModule
1367
- ],
1368
- exports: [AppsButtonComponent]
1369
- }]
1370
- }], null, null);
1371
- })();
1372
- (function () {
1373
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(AppsButtonComponentModule, { declarations: [AppsButtonComponent], imports: [i1$2.MatButtonModule,
1374
- i3$3.MatIconModule,
1375
- gridList.MatGridListModule,
1376
- i3$2.OverlayModule,
1377
- flexLayout.FlexLayoutModule,
1378
- i2.CommonModule,
1379
- i1$4.RouterModule], exports: [AppsButtonComponent] });
1380
- })();
1381
-
1382
- var LanguageSelectorComponentModule = /** @class */ (function () {
1383
- function LanguageSelectorComponentModule() {
1384
- }
1385
- return LanguageSelectorComponentModule;
1386
- }());
1387
- LanguageSelectorComponentModule.ɵfac = function LanguageSelectorComponentModule_Factory(t) { return new (t || LanguageSelectorComponentModule)(); };
1388
- LanguageSelectorComponentModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: LanguageSelectorComponentModule });
1389
- LanguageSelectorComponentModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
1390
- i4$1.MatSelectModule,
1391
- i2.CommonModule,
1392
- i5.FormsModule
1393
- ]] });
1394
- (function () {
1395
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LanguageSelectorComponentModule, [{
1396
- type: i0.NgModule,
1397
- args: [{
1398
- declarations: [LanguageSelectorComponent],
1399
- imports: [
1400
- i4$1.MatSelectModule,
1401
- i2.CommonModule,
1402
- i5.FormsModule
1403
- ],
1404
- exports: [LanguageSelectorComponent]
1405
- }]
1406
- }], null, null);
1407
- })();
1408
- (function () {
1409
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(LanguageSelectorComponentModule, { declarations: [LanguageSelectorComponent], imports: [i4$1.MatSelectModule,
1410
- i2.CommonModule,
1411
- i5.FormsModule], exports: [LanguageSelectorComponent] });
1412
- })();
1413
-
1414
- var HeaderModule = /** @class */ (function () {
1415
- function HeaderModule() {
1416
- }
1417
- return HeaderModule;
1418
- }());
1419
- HeaderModule.ɵfac = function HeaderModule_Factory(t) { return new (t || HeaderModule)(); };
1420
- HeaderModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: HeaderModule });
1421
- HeaderModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
1422
- i3.MatToolbarModule,
1423
- SignOutComponentModule,
1424
- UserProfileIconComponentModule,
1425
- NavigationProgressBarComponentModule,
1426
- SidenavToggleButtonComponentModule,
1427
- ResetButtonComponentModule,
1428
- flexLayout.FlexLayoutModule,
1429
- i2.CommonModule,
1430
- i1$2.MatButtonModule,
1431
- i3$3.MatIconModule,
1432
- i2$4.MatMenuModule,
1433
- AppsButtonComponentModule,
1434
- LanguageSelectorComponentModule
1435
- ]] });
1436
- (function () {
1437
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(HeaderModule, [{
1438
- type: i0.NgModule,
1439
- args: [{
1440
- declarations: [HeaderComponent],
1441
- imports: [
1442
- i3.MatToolbarModule,
1443
- SignOutComponentModule,
1444
- UserProfileIconComponentModule,
1445
- NavigationProgressBarComponentModule,
1446
- SidenavToggleButtonComponentModule,
1447
- ResetButtonComponentModule,
1448
- flexLayout.FlexLayoutModule,
1449
- i2.CommonModule,
1450
- i1$2.MatButtonModule,
1451
- i3$3.MatIconModule,
1452
- i2$4.MatMenuModule,
1453
- AppsButtonComponentModule,
1454
- LanguageSelectorComponentModule
1455
- ],
1456
- exports: [HeaderComponent]
1457
- }]
1458
- }], null, null);
1459
- })();
1460
- (function () {
1461
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(HeaderModule, { declarations: [HeaderComponent], imports: [i3.MatToolbarModule,
1462
- SignOutComponentModule,
1463
- UserProfileIconComponentModule,
1464
- NavigationProgressBarComponentModule,
1465
- SidenavToggleButtonComponentModule,
1466
- ResetButtonComponentModule,
1467
- flexLayout.FlexLayoutModule,
1468
- i2.CommonModule,
1469
- i1$2.MatButtonModule,
1470
- i3$3.MatIconModule,
1471
- i2$4.MatMenuModule,
1472
- AppsButtonComponentModule,
1473
- LanguageSelectorComponentModule], exports: [HeaderComponent] });
1474
- })();
1475
-
1476
- var LayoutComponentService = /** @class */ (function () {
1477
- function LayoutComponentService(footerComponentService, headerComponentService, logoConfig, config) {
1478
- var _this = this;
1479
- if (logoConfig === void 0) { logoConfig = null; }
1480
- this.footerComponentService = footerComponentService;
1481
- this.headerComponentService = headerComponentService;
1482
- this.config = config;
1483
- this.opened$ = new rxjs$1.BehaviorSubject(true);
1484
- this.mode$ = new rxjs$1.BehaviorSubject('side');
1485
- this.fixedTopGap$ = new rxjs$1.BehaviorSubject(64);
1486
- this.mode$.next(this.config.get('navigation.mode', this.mode$.value));
1487
- this.opened$.next(this.config.get('navigation.open', this.opened$.value));
1488
- this.fixedBottomGap$ = this.footerComponentService.portalCount$.pipe(operators.map(function (count) { return count * 64; }));
1489
- this.fixedTopGap$.next(this.headerComponentService.countComponent * 64);
1490
- this.headerComponentService.update$.pipe(operators.tap(function () { return _this.fixedTopGap$.next(_this.headerComponentService.countComponent * 64); })).subscribe();
1491
- this.logo = logoConfig !== null && logoConfig !== void 0 ? logoConfig : {
1492
- src: '/assets/logo.png',
1493
- width: '192'
1494
- };
1495
- }
1496
- return LayoutComponentService;
1497
- }());
1498
- LayoutComponentService.ɵfac = function LayoutComponentService_Factory(t) { return new (t || LayoutComponentService)(i0__namespace.ɵɵinject(i1__namespace.FooterService), i0__namespace.ɵɵinject(i1__namespace.HeaderService), i0__namespace.ɵɵinject(RXAP_LOGO_CONFIG, 8), i0__namespace.ɵɵinject(i1$1.ConfigService)); };
1499
- LayoutComponentService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: LayoutComponentService, factory: LayoutComponentService.ɵfac, providedIn: 'root' });
1500
- (function () {
1501
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LayoutComponentService, [{
1502
- type: i0.Injectable,
1503
- args: [{ providedIn: 'root' }]
1504
- }], function () {
1505
- return [{ type: i1__namespace.FooterService }, { type: i1__namespace.HeaderService }, { type: undefined, decorators: [{
1506
- type: i0.Optional
1507
- }, {
1508
- type: i0.Inject,
1509
- args: [RXAP_LOGO_CONFIG]
1510
- }] }, { type: i1__namespace$1.ConfigService, decorators: [{
1511
- type: i0.Inject,
1512
- args: [i1$1.ConfigService]
1513
- }] }];
1514
- }, null);
1515
- })();
1516
-
1517
- var SidenavFooterDirective = /** @class */ (function () {
1518
- function SidenavFooterDirective(template) {
1519
- this.template = template;
1520
- }
1521
- return SidenavFooterDirective;
1522
- }());
1523
- SidenavFooterDirective.ɵfac = function SidenavFooterDirective_Factory(t) { return new (t || SidenavFooterDirective)(i0__namespace.ɵɵdirectiveInject(i0.TemplateRef)); };
1524
- SidenavFooterDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: SidenavFooterDirective, selectors: [["", "rxapSidenavFooter", ""]] });
1525
- (function () {
1526
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SidenavFooterDirective, [{
1527
- type: i0.Directive,
1528
- args: [{
1529
- selector: '[rxapSidenavFooter]',
1530
- }]
1531
- }], function () {
1532
- return [{ type: i0__namespace.TemplateRef, decorators: [{
1533
- type: i0.Inject,
1534
- args: [i0.TemplateRef]
1535
- }] }];
1536
- }, null);
1537
- })();
1538
-
1539
- var SidenavHeaderDirective = /** @class */ (function () {
1540
- function SidenavHeaderDirective(template) {
1541
- this.template = template;
1542
- }
1543
- return SidenavHeaderDirective;
1544
- }());
1545
- SidenavHeaderDirective.ɵfac = function SidenavHeaderDirective_Factory(t) { return new (t || SidenavHeaderDirective)(i0__namespace.ɵɵdirectiveInject(i0.TemplateRef)); };
1546
- SidenavHeaderDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: SidenavHeaderDirective, selectors: [["", "rxapSidenavHeader", ""]] });
1547
- (function () {
1548
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SidenavHeaderDirective, [{
1549
- type: i0.Directive,
1550
- args: [{
1551
- selector: '[rxapSidenavHeader]',
1552
- }]
1553
- }], function () {
1554
- return [{ type: i0__namespace.TemplateRef, decorators: [{
1555
- type: i0.Inject,
1556
- args: [i0.TemplateRef]
1557
- }] }];
1558
- }, null);
1559
- })();
1560
-
1561
- var SidenavComponentService = /** @class */ (function () {
1562
- function SidenavComponentService(config) {
1563
- this.config = config;
1564
- this.collapsed$ = new rxjs$1.BehaviorSubject(true);
1565
- this.collapsed$.next(this.config.get('navigation.collapsed', this.collapsed$.value));
1566
- }
1567
- SidenavComponentService.prototype.toggleNavigationCollapse = function () {
1568
- this.collapsed$.next(!this.collapsed$.value);
1569
- };
1570
- return SidenavComponentService;
1571
- }());
1572
- SidenavComponentService.ɵfac = function SidenavComponentService_Factory(t) { return new (t || SidenavComponentService)(i0__namespace.ɵɵinject(i1__namespace$1.ConfigService)); };
1573
- SidenavComponentService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: SidenavComponentService, factory: SidenavComponentService.ɵfac, providedIn: 'root' });
1574
- (function () {
1575
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SidenavComponentService, [{
1576
- type: i0.Injectable,
1577
- args: [{ providedIn: 'root' }]
1578
- }], function () { return [{ type: i1__namespace$1.ConfigService }]; }, null);
1579
- })();
1580
-
1581
- function IsNavigationDividerItem(item) {
1582
- return item && item.hasOwnProperty('divider') && item.divider;
1583
- }
1584
- function IsNavigationInsertItem(item) {
1585
- return item && item.hasOwnProperty('insert');
1586
- }
1587
- function IsNavigationItem(item) {
1588
- return (item && item.hasOwnProperty('routerLink') && item.hasOwnProperty('label'));
1589
- }
1590
-
1591
- var NavigationService = /** @class */ (function () {
1592
- function NavigationService(navigation, injector, inserts) {
1593
- var _this = this;
1594
- if (inserts === void 0) { inserts = null; }
1595
- this.injector = injector;
1596
- this.inserts = new Map();
1597
- this.navigation$ = new rxjs$1.ReplaySubject(1);
1598
- if (typeof navigation === 'function') {
1599
- this.navigation = navigation();
1600
- }
1601
- else {
1602
- this.navigation = navigation;
1603
- }
1604
- if (inserts) {
1605
- Object.entries(inserts).forEach(function (_b) {
1606
- var _c = __read(_b, 2), id = _c[0], insert = _c[1];
1607
- return _this.insert(id, insert, false);
1608
- });
1609
- }
1610
- this.updateNavigation();
1611
- this.config$ = this.navigation$.pipe(operators.switchMap(function (navigationWithoutStatusCheck) { return _this.checkNavigationStatusProviders(navigationWithoutStatusCheck); }));
1612
- }
1613
- /**
1614
- * @deprecated use add instead
1615
- * @param id
1616
- * @param value
1617
- * @param update
1618
- */
1619
- NavigationService.prototype.insert = function (id, value, update) {
1620
- if (update === void 0) { update = true; }
1621
- this.add(id, value, update);
1622
- };
1623
- NavigationService.prototype.add = function (id, value, update) {
1624
- if (update === void 0) { update = true; }
1625
- this.inserts.set(id, value);
1626
- if (update) {
1627
- this.updateNavigation();
1628
- }
1629
- };
1630
- NavigationService.prototype.has = function (id) {
1631
- return this.inserts.has(id);
1632
- };
1633
- NavigationService.prototype.get = function (id) {
1634
- return this.inserts.get(id);
1635
- };
1636
- NavigationService.prototype.remove = function (id, update) {
1637
- if (update === void 0) { update = true; }
1638
- this.inserts.delete(id);
1639
- if (update) {
1640
- this.updateNavigation();
1641
- }
1642
- };
1643
- NavigationService.prototype.updateNavigation = function () {
1644
- this.navigation$.next(this.replaceInserts(this.navigation));
1645
- };
1646
- /**
1647
- * @internal
1648
- * @param navigationItem
1649
- */
1650
- NavigationService.prototype.checkNavigationItemStatusProviders = function (navigationItem) {
1651
- var _this = this;
1652
- if (IsNavigationDividerItem(navigationItem) || !navigationItem.status) {
1653
- return rxjs$1.of(navigationItem);
1654
- }
1655
- var isVisibleArray$ = navigationItem.status
1656
- .map(function (statusToken) { return _this.injector.get(statusToken); })
1657
- .map(function (status) {
1658
- var isVisible = status.isVisible(navigationItem);
1659
- if (typeof isVisible === 'boolean') {
1660
- return rxjs$1.of(isVisible);
1661
- }
1662
- else {
1663
- return rxjs$1.from(isVisible);
1664
- }
1665
- }).map(function (isVisible$) { return isVisible$.pipe(operators.catchError(function (e) {
1666
- console.error('isVisible method failed: ' + e.message);
1667
- return rxjs$1.of(false);
1668
- })); });
1669
- // TODO : dont wait for all status services to complete, but cancel waiting if one returns false
1670
- return rxjs$1.combineLatest(isVisibleArray$).pipe(operators.map(function (isVisibleArray) { return isVisibleArray.reduce(function (acc, isVisible) { return acc && isVisible; }, true); }), operators.map(function (isVisible) { return (isVisible ? navigationItem : null); }), operators.switchMap(function (navigationItemOrNull) {
1671
- var _a;
1672
- if (navigationItemOrNull) {
1673
- if ((_a = navigationItemOrNull.children) === null || _a === void 0 ? void 0 : _a.length) {
1674
- return _this.checkNavigationStatusProviders(navigationItemOrNull.children).pipe(operators.map(function (children) { return (Object.assign(Object.assign({}, navigationItemOrNull), { children: children })); }));
1675
- }
1676
- return rxjs$1.of(navigationItemOrNull);
1677
- }
1678
- return rxjs$1.of(null);
1679
- }));
1680
- };
1681
- /**
1682
- * @internal
1683
- * @param navigationItem
1684
- */
1685
- NavigationService.prototype.checkNavigationStatusProviders = function (navigation) {
1686
- var _this = this;
1687
- return rxjs$1.combineLatest(navigation.map(function (navigationItem) { return _this.checkNavigationItemStatusProviders(navigationItem); })).pipe(operators.map(function (navigationWithNullItems) {
1688
- var e_1, _b;
1689
- var cleanNavigation = [];
1690
- try {
1691
- for (var navigationWithNullItems_1 = __values(navigationWithNullItems), navigationWithNullItems_1_1 = navigationWithNullItems_1.next(); !navigationWithNullItems_1_1.done; navigationWithNullItems_1_1 = navigationWithNullItems_1.next()) {
1692
- var navigationItem = navigationWithNullItems_1_1.value;
1693
- if (navigationItem !== null) {
1694
- cleanNavigation.push(navigationItem);
1695
- }
1696
- }
1697
- }
1698
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1699
- finally {
1700
- try {
1701
- if (navigationWithNullItems_1_1 && !navigationWithNullItems_1_1.done && (_b = navigationWithNullItems_1.return)) _b.call(navigationWithNullItems_1);
1702
- }
1703
- finally { if (e_1) throw e_1.error; }
1704
- }
1705
- return cleanNavigation;
1706
- }));
1707
- };
1708
- NavigationService.prototype.replaceInserts = function (navigationWithInserts) {
1709
- var e_2, _b;
1710
- var _a;
1711
- var navigation = [];
1712
- try {
1713
- for (var navigationWithInserts_1 = __values(navigationWithInserts), navigationWithInserts_1_1 = navigationWithInserts_1.next(); !navigationWithInserts_1_1.done; navigationWithInserts_1_1 = navigationWithInserts_1.next()) {
1714
- var navigationItem = navigationWithInserts_1_1.value;
1715
- if (IsNavigationInsertItem(navigationItem)) {
1716
- if (this.inserts.has(navigationItem.insert)) {
1717
- navigation.push.apply(navigation, __spreadArray([], __read(this.replaceInserts(this.inserts.get(navigationItem.insert)))));
1718
- }
1719
- }
1720
- else if (IsNavigationItem(navigationItem)) {
1721
- navigation.push(Object.assign(Object.assign({}, navigationItem), { children: this.replaceInserts((_a = navigationItem.children) !== null && _a !== void 0 ? _a : []) }));
1722
- }
1723
- else if (IsNavigationDividerItem(navigationItem)) {
1724
- navigation.push(navigationItem);
1725
- }
1726
- }
1727
- }
1728
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1729
- finally {
1730
- try {
1731
- if (navigationWithInserts_1_1 && !navigationWithInserts_1_1.done && (_b = navigationWithInserts_1.return)) _b.call(navigationWithInserts_1);
1732
- }
1733
- finally { if (e_2) throw e_2.error; }
1734
- }
1735
- return navigation;
1736
- };
1737
- return NavigationService;
1738
- }());
1739
- NavigationService.ɵfac = function NavigationService_Factory(t) { return new (t || NavigationService)(i0__namespace.ɵɵinject(RXAP_NAVIGATION_CONFIG), i0__namespace.ɵɵinject(i0.INJECTOR), i0__namespace.ɵɵinject(RXAP_NAVIGATION_CONFIG_INSERTS, 8)); };
1740
- NavigationService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: NavigationService, factory: NavigationService.ɵfac, providedIn: 'root' });
1741
- (function () {
1742
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavigationService, [{
1743
- type: i0.Injectable,
1744
- args: [{ providedIn: 'root' }]
1745
- }], function () {
1746
- return [{ type: undefined, decorators: [{
1747
- type: i0.Inject,
1748
- args: [RXAP_NAVIGATION_CONFIG]
1749
- }] }, { type: undefined, decorators: [{
1750
- type: i0.Inject,
1751
- args: [i0.INJECTOR]
1752
- }] }, { type: undefined, decorators: [{
1753
- type: i0.Optional
1754
- }, {
1755
- type: i0.Inject,
1756
- args: [RXAP_NAVIGATION_CONFIG_INSERTS]
1757
- }] }];
1758
- }, null);
1759
- })();
1760
-
1761
- var _c0$3 = ["navigationOverlay"];
1762
- var _c1$2 = ["rxap-navigation-item", ""];
1763
- function NavigationItemComponent_mat_icon_2_Template(rf, ctx) {
1764
- if (rf & 1) {
1765
- i0__namespace.ɵɵelement(0, "mat-icon", 5);
1766
- }
1767
- if (rf & 2) {
1768
- var ctx_r0 = i0__namespace.ɵɵnextContext();
1769
- i0__namespace.ɵɵproperty("rxapIcon", ctx_r0.item.icon);
1770
- }
1771
- }
1772
- function NavigationItemComponent_ng_template_3_Template(rf, ctx) {
1773
- if (rf & 1) {
1774
- i0__namespace.ɵɵelementStart(0, "span", 6);
1775
- i0__namespace.ɵɵtext(1);
1776
- i0__namespace.ɵɵelementEnd();
1777
- }
1778
- if (rf & 2) {
1779
- var ctx_r1 = i0__namespace.ɵɵnextContext();
1780
- i0__namespace.ɵɵadvance(1);
1781
- i0__namespace.ɵɵtextInterpolate(ctx_r1.item.label);
1782
- }
1783
- }
1784
- function NavigationItemComponent_ul_5_Template(rf, ctx) {
1785
- if (rf & 1) {
1786
- i0__namespace.ɵɵelement(0, "ul", 7);
1787
- }
1788
- if (rf & 2) {
1789
- var ctx_r2 = i0__namespace.ɵɵnextContext();
1790
- i0__namespace.ɵɵproperty("@sub-nav", undefined)("items", ctx_r2.children)("level", ctx_r2.level + 1);
1791
- }
1792
- }
1793
- function NavigationItemComponent_ng_template_7_li_2_a_1_mat_icon_1_Template(rf, ctx) {
1794
- if (rf & 1) {
1795
- i0__namespace.ɵɵelement(0, "mat-icon", 5);
1796
- }
1797
- if (rf & 2) {
1798
- var child_r6 = i0__namespace.ɵɵnextContext(2).$implicit;
1799
- var ctx_r8 = i0__namespace.ɵɵnextContext(2);
1800
- i0__namespace.ɵɵproperty("rxapIcon", ctx_r8.asNavigationItem(child_r6).icon);
1801
- }
1802
- }
1803
- function NavigationItemComponent_ng_template_7_li_2_a_1_Template(rf, ctx) {
1804
- if (rf & 1) {
1805
- i0__namespace.ɵɵelementStart(0, "a", 11);
1806
- i0__namespace.ɵɵtemplate(1, NavigationItemComponent_ng_template_7_li_2_a_1_mat_icon_1_Template, 1, 1, "mat-icon", 1);
1807
- i0__namespace.ɵɵelementStart(2, "span", 6);
1808
- i0__namespace.ɵɵtext(3);
1809
- i0__namespace.ɵɵelementEnd();
1810
- i0__namespace.ɵɵelementEnd();
1811
- }
1812
- if (rf & 2) {
1813
- var child_r6 = i0__namespace.ɵɵnextContext().$implicit;
1814
- var ctx_r7 = i0__namespace.ɵɵnextContext(2);
1815
- i0__namespace.ɵɵproperty("routerLink", ctx_r7.asNavigationItem(child_r6).routerLink);
1816
- i0__namespace.ɵɵadvance(1);
1817
- i0__namespace.ɵɵproperty("ngIf", ctx_r7.asNavigationItem(child_r6).icon);
1818
- i0__namespace.ɵɵadvance(2);
1819
- i0__namespace.ɵɵtextInterpolate(ctx_r7.asNavigationItem(child_r6).label);
1820
- }
1821
- }
1822
- function NavigationItemComponent_ng_template_7_li_2_Template(rf, ctx) {
1823
- if (rf & 1) {
1824
- i0__namespace.ɵɵelementStart(0, "li");
1825
- i0__namespace.ɵɵtemplate(1, NavigationItemComponent_ng_template_7_li_2_a_1_Template, 4, 3, "a", 10);
1826
- i0__namespace.ɵɵelementEnd();
1827
- }
1828
- if (rf & 2) {
1829
- var child_r6 = ctx.$implicit;
1830
- var ctx_r5 = i0__namespace.ɵɵnextContext(2);
1831
- i0__namespace.ɵɵadvance(1);
1832
- i0__namespace.ɵɵproperty("ngIf", ctx_r5.isNavigationItem(child_r6));
1833
- }
1834
- }
1835
- function NavigationItemComponent_ng_template_7_Template(rf, ctx) {
1836
- if (rf & 1) {
1837
- var _r12_1 = i0__namespace.ɵɵgetCurrentView();
1838
- i0__namespace.ɵɵelementStart(0, "div", 8);
1839
- i0__namespace.ɵɵlistener("mouseenter", function NavigationItemComponent_ng_template_7_Template_div_mouseenter_0_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(); return ctx_r11.lockeOverlay = true; })("mouseleave", function NavigationItemComponent_ng_template_7_Template_div_mouseleave_0_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r13 = i0__namespace.ɵɵnextContext(); ctx_r13.lockeOverlay = false; return ctx_r13.onMouseleave(); });
1840
- i0__namespace.ɵɵelementStart(1, "ul");
1841
- i0__namespace.ɵɵtemplate(2, NavigationItemComponent_ng_template_7_li_2_Template, 2, 1, "li", 9);
1842
- i0__namespace.ɵɵelementEnd();
1843
- i0__namespace.ɵɵelementEnd();
1844
- }
1845
- if (rf & 2) {
1846
- var ctx_r4 = i0__namespace.ɵɵnextContext();
1847
- i0__namespace.ɵɵadvance(2);
1848
- i0__namespace.ɵɵproperty("ngForOf", ctx_r4.children);
1849
- }
1850
- }
1851
- var NavigationItemComponent = /** @class */ (function () {
1852
- function NavigationItemComponent(router, sidenav, elementRef, renderer, overlay, viewContainerRef) {
1853
- this.router = router;
1854
- this.sidenav = sidenav;
1855
- this.elementRef = elementRef;
1856
- this.renderer = renderer;
1857
- this.overlay = overlay;
1858
- this.viewContainerRef = viewContainerRef;
1859
- this.children = null;
1860
- this.level = 0;
1861
- this.isActive = false;
1862
- this._subscription = new rxjs$1.Subscription();
1863
- /**
1864
- * indicates the mouse is over the
1865
- */
1866
- this.lockeOverlay = false;
1867
- }
1868
- NavigationItemComponent.prototype.ngOnChanges = function (changes) {
1869
- if (changes.item) {
1870
- var item = changes.item.currentValue;
1871
- this.children =
1872
- item.children && item.children.length ? item.children : null;
1873
- }
1874
- };
1875
- NavigationItemComponent.prototype.ngAfterViewInit = function () {
1876
- var _this = this;
1877
- this._subscription.add(this.router.events
1878
- .pipe(operators.filter(function (event) { return event instanceof i1$4.NavigationEnd; }), operators.startWith(true), operators.delay(100), operators.tap(function () {
1879
- var _a;
1880
- if (_this.routerLinkActive.isActive) {
1881
- if (!_this.sidenav.collapsed$.value) {
1882
- // only close the overlay if sidenav collapsed
1883
- (_a = _this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
1884
- }
1885
- _this.renderer.addClass(_this.elementRef.nativeElement, 'active');
1886
- }
1887
- else {
1888
- _this.renderer.removeClass(_this.elementRef.nativeElement, 'active');
1889
- }
1890
- }))
1891
- .subscribe());
1892
- };
1893
- NavigationItemComponent.prototype.ngOnInit = function () {
1894
- var _this = this;
1895
- // detach the navigation overlay if the sidenav collapsed
1896
- // state is changed
1897
- this._subscription.add(this.sidenav.collapsed$
1898
- .pipe(operators.skip(1), operators.distinctUntilChanged(), operators.tap(function () { var _a; return (_a = _this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach(); }))
1899
- .subscribe());
1900
- };
1901
- NavigationItemComponent.prototype.ngOnDestroy = function () {
1902
- var _a, _b;
1903
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
1904
- (_b = this._overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
1905
- };
1906
- NavigationItemComponent.prototype.onMouseenter = function () {
1907
- if (this.children) {
1908
- if (!this.routerLinkActive.isActive || this.sidenav.collapsed$.value) {
1909
- if (!this._overlayRef) {
1910
- this._overlayRef = this.overlay.create({
1911
- positionStrategy: this.overlay
1912
- .position()
1913
- .flexibleConnectedTo(this.elementRef)
1914
- .withPositions([
1915
- {
1916
- originY: 'top',
1917
- originX: 'end',
1918
- overlayY: 'top',
1919
- overlayX: 'start',
1920
- },
1921
- ]),
1922
- });
1923
- }
1924
- if (!this._overlayRef.hasAttached()) {
1925
- this._embeddedViewRef = this._overlayRef.attach(new i4.TemplatePortal(this._navigationOverlay, this.viewContainerRef));
1926
- }
1927
- }
1928
- }
1929
- };
1930
- NavigationItemComponent.prototype.onMouseleave = function () {
1931
- var _a;
1932
- if (!this.lockeOverlay) {
1933
- (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
1934
- }
1935
- };
1936
- // region type save item property
1937
- // required to check the type of the item property in the ngFor loop
1938
- NavigationItemComponent.prototype.isNavigationDividerItem = function (item) {
1939
- return item['divider'];
1940
- };
1941
- NavigationItemComponent.prototype.isNavigationItem = function (item) {
1942
- return !this.isNavigationDividerItem(item);
1943
- };
1944
- NavigationItemComponent.prototype.asNavigationItem = function (item) {
1945
- if (!this.isNavigationItem(item)) {
1946
- throw new Error('The item is not a NavigationItem');
1947
- }
1948
- return item;
1949
- };
1950
- return NavigationItemComponent;
1951
- }());
1952
- NavigationItemComponent.ɵfac = function NavigationItemComponent_Factory(t) { return new (t || NavigationItemComponent)(i0__namespace.ɵɵdirectiveInject(i1$4.Router), i0__namespace.ɵɵdirectiveInject(SidenavComponentService), i0__namespace.ɵɵdirectiveInject(i0.ElementRef), i0__namespace.ɵɵdirectiveInject(i0.Renderer2), i0__namespace.ɵɵdirectiveInject(i3$2.Overlay), i0__namespace.ɵɵdirectiveInject(i0.ViewContainerRef)); };
1953
- NavigationItemComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: NavigationItemComponent, selectors: [["li", "rxap-navigation-item", ""]], viewQuery: function NavigationItemComponent_Query(rf, ctx) {
1954
- if (rf & 1) {
1955
- i0__namespace.ɵɵviewQuery(i1$4.RouterLinkActive, 7);
1956
- i0__namespace.ɵɵviewQuery(_c0$3, 5);
1957
- }
1958
- if (rf & 2) {
1959
- var _t = void 0;
1960
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.routerLinkActive = _t.first);
1961
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx._navigationOverlay = _t.first);
1962
- }
1963
- }, hostAttrs: [1, "rxap-navigation-item"], hostVars: 2, hostBindings: function NavigationItemComponent_HostBindings(rf, ctx) {
1964
- if (rf & 1) {
1965
- i0__namespace.ɵɵlistener("mouseenter", function NavigationItemComponent_mouseenter_HostBindingHandler() { return ctx.onMouseenter(); })("mouseleave", function NavigationItemComponent_mouseleave_HostBindingHandler() { return ctx.onMouseleave(); });
1966
- }
1967
- if (rf & 2) {
1968
- i0__namespace.ɵɵclassProp("active", ctx.isActive);
1969
- }
1970
- }, inputs: { item: "item", level: "level" }, features: [i0__namespace.ɵɵNgOnChangesFeature], attrs: _c1$2, decls: 9, vars: 15, consts: [["routerLinkActive", "link-active", "matRipple", "", 3, "routerLink", "matTooltipDisabled", "matTooltip"], ["class", "icon", 3, "rxapIcon", 4, "ngIf"], [3, "ngIf"], ["rxap-navigation", "", "class", "sub-items", "fxFlex", "nogrow", 3, "items", "level", 4, "ngIf"], ["navigationOverlay", ""], [1, "icon", 3, "rxapIcon"], [1, "label"], ["rxap-navigation", "", "fxFlex", "nogrow", 1, "sub-items", 3, "items", "level"], [1, "navigation-overlay-container", "mat-elevation-z1", 3, "mouseenter", "mouseleave"], [4, "ngFor", "ngForOf"], ["class", "navigation-link mat-body-2 mat-body-strong", "matRipple", "", 3, "routerLink", 4, "ngIf"], ["matRipple", "", 1, "navigation-link", "mat-body-2", "mat-body-strong", 3, "routerLink"]], template: function NavigationItemComponent_Template(rf, ctx) {
1971
- if (rf & 1) {
1972
- i0__namespace.ɵɵelementStart(0, "a", 0);
1973
- i0__namespace.ɵɵpipe(1, "async");
1974
- i0__namespace.ɵɵtemplate(2, NavigationItemComponent_mat_icon_2_Template, 1, 1, "mat-icon", 1);
1975
- i0__namespace.ɵɵtemplate(3, NavigationItemComponent_ng_template_3_Template, 2, 1, "ng-template", 2);
1976
- i0__namespace.ɵɵpipe(4, "async");
1977
- i0__namespace.ɵɵelementEnd();
1978
- i0__namespace.ɵɵtemplate(5, NavigationItemComponent_ul_5_Template, 1, 3, "ul", 3);
1979
- i0__namespace.ɵɵpipe(6, "async");
1980
- i0__namespace.ɵɵtemplate(7, NavigationItemComponent_ng_template_7_Template, 3, 1, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
1981
- }
1982
- if (rf & 2) {
1983
- i0__namespace.ɵɵclassMapInterpolate1("navigation-link mat-body-2 mat-body-strong navigation-level-", ctx.level, "");
1984
- i0__namespace.ɵɵproperty("routerLink", ctx.item.routerLink)("matTooltipDisabled", !i0__namespace.ɵɵpipeBind1(1, 9, ctx.sidenav.collapsed$))("matTooltip", ctx.item.label);
1985
- i0__namespace.ɵɵadvance(2);
1986
- i0__namespace.ɵɵproperty("ngIf", ctx.item.icon);
1987
- i0__namespace.ɵɵadvance(1);
1988
- i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(4, 11, ctx.sidenav.collapsed$));
1989
- i0__namespace.ɵɵadvance(2);
1990
- i0__namespace.ɵɵproperty("ngIf", ctx.routerLinkActive.isActive && !i0__namespace.ɵɵpipeBind1(6, 13, ctx.sidenav.collapsed$) && ctx.children);
1991
- }
1992
- }, styles: [".navigation-overlay-container,.rxap-navigation-item{display:flex;flex-direction:column;min-height:48px}.navigation-overlay-container .navigation-link,.rxap-navigation-item .navigation-link{display:flex;flex-direction:row;align-items:center;text-decoration:none;height:48px}.navigation-overlay-container .navigation-link .icon,.rxap-navigation-item .navigation-link .icon{margin:0 16px}.navigation-overlay-container .navigation-link .label,.rxap-navigation-item .navigation-link .label{padding-right:12px}.navigation-overlay-container .navigation-link.navigation-level-1,.rxap-navigation-item .navigation-link.navigation-level-1{padding-left:52px}.navigation-overlay-container .navigation-link.navigation-level-1 .icon,.rxap-navigation-item .navigation-link.navigation-level-1 .icon{padding-left:0}.navigation-overlay-container .navigation-link.navigation-level-2,.rxap-navigation-item .navigation-link.navigation-level-2{padding-left:88px}.navigation-overlay-container .navigation-link.navigation-level-2 .icon,.rxap-navigation-item .navigation-link.navigation-level-2 .icon{padding-left:0}.navigation-overlay-container{padding:0 16px}.navigation-overlay-container ul{list-style-type:none;margin:0;padding:0}.navigation-overlay-container ul .navigation-link .label{padding-right:0}.navigation-overlay-container ul .navigation-link .icon{margin-left:0}"], encapsulation: 2, data: { animation: [
1993
- animations.trigger('sub-nav', [
1994
- animations.transition(':enter', [
1995
- animations.style({ display: 'block', height: '0', overflow: 'hidden' }),
1996
- animations.animate(150, animations.style({ height: '*' })),
1997
- ]),
1998
- animations.transition(':leave', [
1999
- animations.style({ overflow: 'hidden' }),
2000
- animations.animate(300, animations.style({ height: '0' })),
2001
- animations.style({ display: 'none' }),
2002
- ]),
2003
- ]),
2004
- ] }, changeDetection: 0 });
2005
- __decorate([
2006
- utilities.Required,
2007
- __metadata("design:type", Object)
2008
- ], NavigationItemComponent.prototype, "item", void 0);
2009
- __decorate([
2010
- utilities.DebounceCall(100),
2011
- __metadata("design:type", Function),
2012
- __metadata("design:paramtypes", []),
2013
- __metadata("design:returntype", void 0)
2014
- ], NavigationItemComponent.prototype, "onMouseleave", null);
2015
- (function () {
2016
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavigationItemComponent, [{
2017
- type: i0.Component,
2018
- args: [{
2019
- selector: 'li[rxap-navigation-item]',
2020
- templateUrl: './navigation-item.component.html',
2021
- styleUrls: ['./navigation-item.component.scss'],
2022
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2023
- encapsulation: i0.ViewEncapsulation.None,
2024
- host: {
2025
- class: 'rxap-navigation-item',
2026
- },
2027
- animations: [
2028
- animations.trigger('sub-nav', [
2029
- animations.transition(':enter', [
2030
- animations.style({ display: 'block', height: '0', overflow: 'hidden' }),
2031
- animations.animate(150, animations.style({ height: '*' })),
2032
- ]),
2033
- animations.transition(':leave', [
2034
- animations.style({ overflow: 'hidden' }),
2035
- animations.animate(300, animations.style({ height: '0' })),
2036
- animations.style({ display: 'none' }),
2037
- ]),
2038
- ]),
2039
- ],
2040
- }]
2041
- }], function () {
2042
- return [{ type: i1__namespace$4.Router, decorators: [{
2043
- type: i0.Inject,
2044
- args: [i1$4.Router]
2045
- }] }, { type: SidenavComponentService, decorators: [{
2046
- type: i0.Inject,
2047
- args: [SidenavComponentService]
2048
- }] }, { type: i0__namespace.ElementRef, decorators: [{
2049
- type: i0.Inject,
2050
- args: [i0.ElementRef]
2051
- }] }, { type: i0__namespace.Renderer2, decorators: [{
2052
- type: i0.Inject,
2053
- args: [i0.Renderer2]
2054
- }] }, { type: i3__namespace$2.Overlay, decorators: [{
2055
- type: i0.Inject,
2056
- args: [i3$2.Overlay]
2057
- }] }, { type: i0__namespace.ViewContainerRef, decorators: [{
2058
- type: i0.Inject,
2059
- args: [i0.ViewContainerRef]
2060
- }] }];
2061
- }, { routerLinkActive: [{
2062
- type: i0.ViewChild,
2063
- args: [i1$4.RouterLinkActive, { static: true }]
2064
- }], item: [{
2065
- type: i0.Input
2066
- }], level: [{
2067
- type: i0.Input
2068
- }], isActive: [{
2069
- type: i0.HostBinding,
2070
- args: ['class.active']
2071
- }], _navigationOverlay: [{
2072
- type: i0.ViewChild,
2073
- args: ['navigationOverlay']
2074
- }], onMouseenter: [{
2075
- type: i0.HostListener,
2076
- args: ['mouseenter']
2077
- }], onMouseleave: [{
2078
- type: i0.HostListener,
2079
- args: ['mouseleave']
2080
- }] });
2081
- })();
2082
-
2083
- var _c0$2 = ["rxap-navigation", ""];
2084
- function NavigationComponent_ng_template_0_ng_template_0_div_1_span_1_Template(rf, ctx) {
2085
- if (rf & 1) {
2086
- i0__namespace.ɵɵelementStart(0, "span", 2);
2087
- i0__namespace.ɵɵtext(1);
2088
- i0__namespace.ɵɵelementEnd();
2089
- }
2090
- if (rf & 2) {
2091
- var item_r1 = i0__namespace.ɵɵnextContext(3).$implicit;
2092
- i0__namespace.ɵɵadvance(1);
2093
- i0__namespace.ɵɵtextInterpolate(item_r1.title);
2094
- }
2095
- }
2096
- function NavigationComponent_ng_template_0_ng_template_0_div_1_Template(rf, ctx) {
2097
- if (rf & 1) {
2098
- i0__namespace.ɵɵelementStart(0, "div", 4);
2099
- i0__namespace.ɵɵtemplate(1, NavigationComponent_ng_template_0_ng_template_0_div_1_span_1_Template, 2, 1, "span", 5);
2100
- i0__namespace.ɵɵelementEnd();
2101
- }
2102
- if (rf & 2) {
2103
- var item_r1 = i0__namespace.ɵɵnextContext(2).$implicit;
2104
- i0__namespace.ɵɵadvance(1);
2105
- i0__namespace.ɵɵproperty("ngIf", item_r1.title);
2106
- }
2107
- }
2108
- function NavigationComponent_ng_template_0_ng_template_0_Template(rf, ctx) {
2109
- if (rf & 1) {
2110
- i0__namespace.ɵɵelement(0, "mat-divider", 2);
2111
- i0__namespace.ɵɵtemplate(1, NavigationComponent_ng_template_0_ng_template_0_div_1_Template, 2, 1, "div", 3);
2112
- i0__namespace.ɵɵpipe(2, "async");
2113
- }
2114
- if (rf & 2) {
2115
- var ctx_r2 = i0__namespace.ɵɵnextContext(2);
2116
- i0__namespace.ɵɵadvance(1);
2117
- i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.sidenav.collapsed$));
2118
- }
2119
- }
2120
- function NavigationComponent_ng_template_0_ng_template_1_Template(rf, ctx) {
2121
- if (rf & 1) {
2122
- i0__namespace.ɵɵelement(0, "li", 6);
2123
- }
2124
- if (rf & 2) {
2125
- var item_r1 = i0__namespace.ɵɵnextContext().$implicit;
2126
- var ctx_r3 = i0__namespace.ɵɵnextContext();
2127
- i0__namespace.ɵɵproperty("level", ctx_r3.level)("item", ctx_r3.asNavigationItem(item_r1));
2128
- }
2129
- }
2130
- function NavigationComponent_ng_template_0_Template(rf, ctx) {
2131
- if (rf & 1) {
2132
- i0__namespace.ɵɵtemplate(0, NavigationComponent_ng_template_0_ng_template_0_Template, 3, 3, "ng-template", 1);
2133
- i0__namespace.ɵɵtemplate(1, NavigationComponent_ng_template_0_ng_template_1_Template, 1, 2, "ng-template", 1);
2134
- }
2135
- if (rf & 2) {
2136
- var item_r1 = ctx.$implicit;
2137
- var ctx_r0 = i0__namespace.ɵɵnextContext();
2138
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.isNavigationDividerItem(item_r1));
2139
- i0__namespace.ɵɵadvance(1);
2140
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.isNavigationItem(item_r1));
2141
- }
2142
- }
2143
- var NavigationComponent = /** @class */ (function () {
2144
- function NavigationComponent(navigationService, cdr, sidenav) {
2145
- this.navigationService = navigationService;
2146
- this.cdr = cdr;
2147
- this.sidenav = sidenav;
2148
- this._root = false;
2149
- this.level = 0;
2150
- }
2151
- Object.defineProperty(NavigationComponent.prototype, "root", {
2152
- set: function (value) {
2153
- this._root = utilities.coerceBoolean(value);
2154
- },
2155
- enumerable: false,
2156
- configurable: true
2157
- });
2158
- NavigationComponent.prototype.ngOnInit = function () {
2159
- var _this = this;
2160
- if (this._root) {
2161
- this.items = [];
2162
- this.subscription = this.navigationService.config$
2163
- .pipe(operators.tap(function (navigation) { return (_this.items = navigation); }), operators.tap(function () { return _this.cdr.detectChanges(); }))
2164
- .subscribe();
2165
- }
2166
- };
2167
- NavigationComponent.prototype.ngOnDestroy = function () {
2168
- var _a;
2169
- (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
2170
- };
2171
- // region type save item property
2172
- // required to check the type of the item property in the ngFor loop
2173
- NavigationComponent.prototype.isNavigationDividerItem = function (item) {
2174
- return item['divider'];
2175
- };
2176
- NavigationComponent.prototype.isNavigationItem = function (item) {
2177
- return !this.isNavigationDividerItem(item);
2178
- };
2179
- NavigationComponent.prototype.asNavigationItem = function (item) {
2180
- if (!this.isNavigationItem(item)) {
2181
- throw new Error('The item is not a NavigationItem');
2182
- }
2183
- return item;
2184
- };
2185
- return NavigationComponent;
2186
- }());
2187
- NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(i0__namespace.ɵɵdirectiveInject(NavigationService), i0__namespace.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SidenavComponentService)); };
2188
- NavigationComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["ul", "rxap-navigation", ""]], hostAttrs: [1, "rxap-navigation"], hostVars: 2, hostBindings: function NavigationComponent_HostBindings(rf, ctx) {
2189
- if (rf & 2) {
2190
- i0__namespace.ɵɵclassProp("rxap-root-navigation", ctx._root);
2191
- }
2192
- }, inputs: { root: "root", items: "items", level: "level" }, attrs: _c0$2, decls: 1, vars: 1, consts: [["ngFor", "", 3, "ngForOf"], [3, "ngIf"], ["fxFlex", "nogrow"], ["class", "divider-title", "fxFlex", "nogrow", "fxLayout", "row", "fxLayoutAlign", "start end", 4, "ngIf"], ["fxFlex", "nogrow", "fxLayout", "row", "fxLayoutAlign", "start end", 1, "divider-title"], ["fxFlex", "nogrow", 4, "ngIf"], ["rxap-navigation-item", "", 1, "item", 3, "level", "item"]], template: function NavigationComponent_Template(rf, ctx) {
2193
- if (rf & 1) {
2194
- i0__namespace.ɵɵtemplate(0, NavigationComponent_ng_template_0_Template, 2, 2, "ng-template", 0);
2195
- }
2196
- if (rf & 2) {
2197
- i0__namespace.ɵɵproperty("ngForOf", ctx.items);
2198
- }
2199
- }, directives: [i2__namespace.NgForOf, i2__namespace.NgIf, i2__namespace$5.MatDivider, i1__namespace$3.DefaultFlexDirective, i1__namespace$3.DefaultLayoutDirective, i1__namespace$3.DefaultLayoutAlignDirective, NavigationItemComponent], pipes: [i2__namespace.AsyncPipe], styles: [".rxap-navigation{list-style-type:none;padding:0}.rxap-navigation .divider-title{padding-left:18px;height:28px;align-content:center}"], encapsulation: 2, changeDetection: 0 });
2200
- __decorate([
2201
- utilities.Required,
2202
- __metadata("design:type", Array)
2203
- ], NavigationComponent.prototype, "items", void 0);
2204
- (function () {
2205
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavigationComponent, [{
2206
- type: i0.Component,
2207
- args: [{
2208
- selector: 'ul[rxap-navigation]',
2209
- templateUrl: './navigation.component.html',
2210
- styleUrls: ['./navigation.component.scss'],
2211
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2212
- encapsulation: i0.ViewEncapsulation.None,
2213
- host: { class: 'rxap-navigation' },
2214
- }]
2215
- }], function () {
2216
- return [{ type: NavigationService, decorators: [{
2217
- type: i0.Inject,
2218
- args: [NavigationService]
2219
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
2220
- type: i0.Inject,
2221
- args: [i0.ChangeDetectorRef]
2222
- }] }, { type: SidenavComponentService, decorators: [{
2223
- type: i0.Inject,
2224
- args: [SidenavComponentService]
2225
- }] }];
2226
- }, { _root: [{
2227
- type: i0.HostBinding,
2228
- args: ['class.rxap-root-navigation']
2229
- }], root: [{
2230
- type: i0.Input
2231
- }], items: [{
2232
- type: i0.Input
2233
- }], level: [{
2234
- type: i0.Input
2235
- }] });
2236
- })();
2237
-
2238
- function SidenavComponent_ng_template_3_ng_container_2_Template(rf, ctx) {
2239
- if (rf & 1) {
2240
- i0__namespace.ɵɵelementContainer(0);
2241
- }
2242
- }
2243
- function SidenavComponent_ng_template_3_Template(rf, ctx) {
2244
- if (rf & 1) {
2245
- i0__namespace.ɵɵelementStart(0, "div", 11);
2246
- i0__namespace.ɵɵpipe(1, "async");
2247
- i0__namespace.ɵɵtemplate(2, SidenavComponent_ng_template_3_ng_container_2_Template, 1, 0, "ng-container", 12);
2248
- i0__namespace.ɵɵelementEnd();
2249
- i0__namespace.ɵɵelement(3, "mat-divider", 13);
2250
- i0__namespace.ɵɵpipe(4, "async");
2251
- }
2252
- if (rf & 2) {
2253
- var ctx_r0 = i0__namespace.ɵɵnextContext();
2254
- var tmp_1_0 = void 0;
2255
- i0__namespace.ɵɵproperty("fxHide", i0__namespace.ɵɵpipeBind1(1, 3, ctx_r0.sidenav.collapsed$));
2256
- i0__namespace.ɵɵadvance(2);
2257
- i0__namespace.ɵɵproperty("ngTemplateOutlet", (tmp_1_0 = ctx_r0.sidenavHeaderDirective == null ? null : ctx_r0.sidenavHeaderDirective.template) !== null && tmp_1_0 !== undefined ? tmp_1_0 : null);
2258
- i0__namespace.ɵɵadvance(1);
2259
- i0__namespace.ɵɵproperty("fxHide", i0__namespace.ɵɵpipeBind1(4, 5, ctx_r0.sidenav.collapsed$));
2260
- }
2261
- }
2262
- function SidenavComponent_ng_template_15_ng_container_4_Template(rf, ctx) {
2263
- if (rf & 1) {
2264
- i0__namespace.ɵɵelementContainer(0);
2265
- }
2266
- }
2267
- function SidenavComponent_ng_template_15_Template(rf, ctx) {
2268
- if (rf & 1) {
2269
- i0__namespace.ɵɵelement(0, "mat-divider", 13);
2270
- i0__namespace.ɵɵpipe(1, "async");
2271
- i0__namespace.ɵɵelementStart(2, "div", 14);
2272
- i0__namespace.ɵɵpipe(3, "async");
2273
- i0__namespace.ɵɵtemplate(4, SidenavComponent_ng_template_15_ng_container_4_Template, 1, 0, "ng-container", 12);
2274
- i0__namespace.ɵɵelementEnd();
2275
- }
2276
- if (rf & 2) {
2277
- var ctx_r1 = i0__namespace.ɵɵnextContext();
2278
- var tmp_2_0 = void 0;
2279
- i0__namespace.ɵɵproperty("fxHide", i0__namespace.ɵɵpipeBind1(1, 3, ctx_r1.sidenav.collapsed$));
2280
- i0__namespace.ɵɵadvance(2);
2281
- i0__namespace.ɵɵproperty("fxHide", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r1.sidenav.collapsed$));
2282
- i0__namespace.ɵɵadvance(2);
2283
- i0__namespace.ɵɵproperty("ngTemplateOutlet", (tmp_2_0 = ctx_r1.sidenavFooterDirective == null ? null : ctx_r1.sidenavFooterDirective.template) !== null && tmp_2_0 !== undefined ? tmp_2_0 : null);
2284
- }
2285
- }
2286
- var _c2$1 = function (a0) { return { "collapsed": a0 }; };
2287
- var SidenavComponent = /** @class */ (function () {
2288
- function SidenavComponent(sidenav) {
2289
- this.sidenav = sidenav;
2290
- }
2291
- return SidenavComponent;
2292
- }());
2293
- SidenavComponent.ɵfac = function SidenavComponent_Factory(t) { return new (t || SidenavComponent)(i0__namespace.ɵɵdirectiveInject(SidenavComponentService)); };
2294
- SidenavComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SidenavComponent, selectors: [["rxap-sidenav"]], contentQueries: function SidenavComponent_ContentQueries(rf, ctx, dirIndex) {
2295
- if (rf & 1) {
2296
- i0__namespace.ɵɵcontentQuery(dirIndex, SidenavFooterDirective, 5);
2297
- i0__namespace.ɵɵcontentQuery(dirIndex, SidenavHeaderDirective, 5);
2298
- }
2299
- if (rf & 2) {
2300
- var _t = void 0;
2301
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.sidenavFooterDirective = _t.first);
2302
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.sidenavHeaderDirective = _t.first);
2303
- }
2304
- }, hostAttrs: [1, "rxap-layout-sidenav"], decls: 16, vars: 15, consts: function () {
2305
- var i18n_0;
2306
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
2307
- var MSG_EXTERNAL_rxap_layout_navigation_collapse_sidebar$$LIB_SIDENAV_SIDENAV_COMPONENT_TS_1 = goog.getMsg("Collapse sidebar");
2308
- i18n_0 = MSG_EXTERNAL_rxap_layout_navigation_collapse_sidebar$$LIB_SIDENAV_SIDENAV_COMPONENT_TS_1;
2309
- }
2310
- else {
2311
- i18n_0 = $localize(templateObject_1 || (templateObject_1 = __makeTemplateObject([":@@rxap.layout.navigation.collapse-sidebar\u241F98effe6eb558f87ab061ab608a31b44adec4e2ae\u241F1144722711335201698:Collapse sidebar"], [":@@rxap.layout.navigation.collapse-sidebar\u241F98effe6eb558f87ab061ab608a31b44adec4e2ae\u241F1144722711335201698:Collapse sidebar"])));
2312
- }
2313
- return [[1, "container", 3, "ngClass"], ["fxLayout", "column", "fxLayoutAlign", "space-between stretch", 1, "inner"], [3, "ngIf"], ["fxFlex", "grow", 1, "nav-container"], ["fxLayout", "column", "root", "", "rxap-navigation", ""], ["fxFlex", "nogrow"], ["mat-button", "", "fxFlex", "nogrow", 1, "sidebar-toggle", 3, "ngClass", "click"], ["fxLayout", "row", "fxLayoutAlign", "start center", "fxLayoutGap", "16px", 1, "sidebar-toggle-inner"], ["fxFlex", "nogrow", 1, "arrow"], ["fxFlex", "grow", 1, "label", 3, "fxHide"], i18n_0, ["fxFlex", "nogrow", 1, "header", 3, "fxHide"], [4, "ngTemplateOutlet"], ["fxFlex", "nogrow", 3, "fxHide"], ["fxFlex", "nogrow", 1, "footer", 3, "fxHide"]];
2314
- }, template: function SidenavComponent_Template(rf, ctx) {
2315
- if (rf & 1) {
2316
- i0__namespace.ɵɵelementStart(0, "div", 0);
2317
- i0__namespace.ɵɵpipe(1, "async");
2318
- i0__namespace.ɵɵelementStart(2, "div", 1);
2319
- i0__namespace.ɵɵtemplate(3, SidenavComponent_ng_template_3_Template, 5, 7, "ng-template", 2);
2320
- i0__namespace.ɵɵelementStart(4, "div", 3);
2321
- i0__namespace.ɵɵelement(5, "ul", 4);
2322
- i0__namespace.ɵɵelementEnd();
2323
- i0__namespace.ɵɵelement(6, "mat-divider", 5);
2324
- i0__namespace.ɵɵelementStart(7, "button", 6);
2325
- i0__namespace.ɵɵlistener("click", function SidenavComponent_Template_button_click_7_listener() { return ctx.sidenav.toggleNavigationCollapse(); });
2326
- i0__namespace.ɵɵpipe(8, "async");
2327
- i0__namespace.ɵɵelementStart(9, "span", 7);
2328
- i0__namespace.ɵɵelementStart(10, "mat-icon", 8);
2329
- i0__namespace.ɵɵtext(11, "double_arrow");
2330
- i0__namespace.ɵɵelementEnd();
2331
- i0__namespace.ɵɵelementStart(12, "span", 9);
2332
- i0__namespace.ɵɵi18n(13, 10);
2333
- i0__namespace.ɵɵpipe(14, "async");
2334
- i0__namespace.ɵɵelementEnd();
2335
- i0__namespace.ɵɵelementEnd();
2336
- i0__namespace.ɵɵelementEnd();
2337
- i0__namespace.ɵɵtemplate(15, SidenavComponent_ng_template_15_Template, 5, 7, "ng-template", 2);
2338
- i0__namespace.ɵɵelementEnd();
2339
- i0__namespace.ɵɵelementEnd();
2340
- }
2341
- if (rf & 2) {
2342
- var tmp_4_0 = void 0;
2343
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c2$1, i0__namespace.ɵɵpipeBind1(1, 5, ctx.sidenav.collapsed$)));
2344
- i0__namespace.ɵɵadvance(3);
2345
- i0__namespace.ɵɵproperty("ngIf", ctx.sidenavHeaderDirective == null ? null : ctx.sidenavHeaderDirective.template);
2346
- i0__namespace.ɵɵadvance(4);
2347
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c2$1, i0__namespace.ɵɵpipeBind1(8, 7, ctx.sidenav.collapsed$)));
2348
- i0__namespace.ɵɵadvance(5);
2349
- i0__namespace.ɵɵproperty("fxHide", i0__namespace.ɵɵpipeBind1(14, 9, ctx.sidenav.collapsed$));
2350
- i0__namespace.ɵɵadvance(3);
2351
- i0__namespace.ɵɵproperty("ngIf", (tmp_4_0 = ctx.sidenavFooterDirective == null ? null : ctx.sidenavFooterDirective.template) !== null && tmp_4_0 !== undefined ? tmp_4_0 : null);
2352
- }
2353
- }, directives: [i2__namespace$1.DefaultClassDirective, i2__namespace.NgClass, i1__namespace$3.DefaultLayoutDirective, i1__namespace$3.DefaultLayoutAlignDirective, i2__namespace.NgIf, i1__namespace$3.DefaultFlexDirective, NavigationComponent, i2__namespace$5.MatDivider, i1__namespace$2.MatButton, i1__namespace$3.DefaultLayoutGapDirective, i3__namespace$3.MatIcon, i2__namespace$1.DefaultShowHideDirective, i2__namespace.NgTemplateOutlet], pipes: [i2__namespace.AsyncPipe], styles: [".container[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{height:100%}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding-bottom:12px}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{padding-top:12px}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .nav-container[_ngcontent-%COMP%]{overflow-y:scroll;padding-top:12px}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .nav-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .nav-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-radius:2px}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .nav-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px}.container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{min-height:48px}.container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] .sidebar-toggle-inner[_ngcontent-%COMP%]{padding:0}.container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{transform:rotate(180deg)}.container[_ngcontent-%COMP%] .sidebar-toggle.collapsed[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{transform:none}.container[_ngcontent-%COMP%] .sidebar-toggle.collapsed[_ngcontent-%COMP%] .sidebar-toggle-inner[_ngcontent-%COMP%]{justify-content:space-around!important}"], changeDetection: 0 });
2354
- (function () {
2355
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SidenavComponent, [{
2356
- type: i0.Component,
2357
- args: [{
2358
- selector: 'rxap-sidenav',
2359
- templateUrl: './sidenav.component.html',
2360
- styleUrls: ['./sidenav.component.scss'],
2361
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2362
- host: {
2363
- class: 'rxap-layout-sidenav'
2364
- }
2365
- }]
2366
- }], function () { return [{ type: SidenavComponentService }]; }, { sidenavFooterDirective: [{
2367
- type: i0.ContentChild,
2368
- args: [SidenavFooterDirective]
2369
- }], sidenavHeaderDirective: [{
2370
- type: i0.ContentChild,
2371
- args: [SidenavHeaderDirective]
2372
- }] });
2373
- })();
2374
- var templateObject_1;
2375
-
2376
- var SidenavContentComponentService = /** @class */ (function () {
2377
- function SidenavContentComponentService(footerComponentService, headerComponentService) {
2378
- var _this = this;
2379
- this.footerComponentService = footerComponentService;
2380
- this.headerComponentService = headerComponentService;
2381
- this.headerRows$ = new rxjs$1.BehaviorSubject(1);
2382
- this.headerRows$.next(this.headerComponentService.countComponent);
2383
- this.footerComponentService.portalCount$.pipe().subscribe();
2384
- this.footerRows$ = this.footerComponentService.portalCount$;
2385
- this.headerComponentService.update$.pipe(operators.tap(function () { return _this.headerRows$.next(_this.headerComponentService.countComponent); })).subscribe();
2386
- this.innerHeight$ = rxjs$1.combineLatest([
2387
- this.headerRows$,
2388
- this.footerRows$
2389
- ]).pipe(operators.map(function (_a) {
2390
- var _b = __read(_a, 2), headerRows = _b[0], footerRows = _b[1];
2391
- return "calc(100% - " + 64 * (headerRows + footerRows) + "px)";
2392
- }));
2393
- this.marginTop$ = this.headerRows$.pipe(operators.map(function (headerRows) { return headerRows * 64 + "px"; }));
2394
- this.marginBottom$ = this.footerRows$.pipe(operators.map(function (footerRows) { return footerRows * 64 + "px"; }));
2395
- }
2396
- return SidenavContentComponentService;
2397
- }());
2398
- SidenavContentComponentService.ɵfac = function SidenavContentComponentService_Factory(t) { return new (t || SidenavContentComponentService)(i0__namespace.ɵɵinject(i1.FooterService), i0__namespace.ɵɵinject(i1.HeaderService)); };
2399
- SidenavContentComponentService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: SidenavContentComponentService, factory: SidenavContentComponentService.ɵfac, providedIn: 'root' });
2400
- (function () {
2401
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SidenavContentComponentService, [{
2402
- type: i0.Injectable,
2403
- args: [{ providedIn: 'root' }]
2404
- }], function () {
2405
- return [{ type: i1__namespace.FooterService, decorators: [{
2406
- type: i0.Inject,
2407
- args: [i1.FooterService]
2408
- }] }, { type: i1__namespace.HeaderService, decorators: [{
2409
- type: i0.Inject,
2410
- args: [i1.HeaderService]
2411
- }] }];
2412
- }, null);
2413
- })();
2414
-
2415
- var _c0$1 = function (a0) { return { "open": a0 }; };
2416
- var _c1$1 = function (a0, a1, a2) { return { height: a0, marginTop: a1, marginBottom: a2 }; };
2417
- var _c2 = ["*"];
2418
- var SidenavContentComponent = /** @class */ (function () {
2419
- function SidenavContentComponent(sccs) {
2420
- this.sccs = sccs;
2421
- }
2422
- SidenavContentComponent.prototype.ngOnInit = function () {
2423
- };
2424
- return SidenavContentComponent;
2425
- }());
2426
- SidenavContentComponent.ɵfac = function SidenavContentComponent_Factory(t) { return new (t || SidenavContentComponent)(i0__namespace.ɵɵdirectiveInject(SidenavContentComponentService)); };
2427
- SidenavContentComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SidenavContentComponent, selectors: [["rxap-sidenav-content"]], inputs: { sidenav: "sidenav" }, ngContentSelectors: _c2, decls: 8, vars: 16, consts: [[1, "container", 3, "ngClass", "ngStyle"], [1, "inner"]], template: function SidenavContentComponent_Template(rf, ctx) {
2428
- if (rf & 1) {
2429
- i0__namespace.ɵɵprojectionDef();
2430
- i0__namespace.ɵɵelementStart(0, "div", 0);
2431
- i0__namespace.ɵɵpipe(1, "async");
2432
- i0__namespace.ɵɵpipe(2, "async");
2433
- i0__namespace.ɵɵpipe(3, "async");
2434
- i0__namespace.ɵɵpipe(4, "async");
2435
- i0__namespace.ɵɵelementStart(5, "div", 1);
2436
- i0__namespace.ɵɵelement(6, "router-outlet");
2437
- i0__namespace.ɵɵprojection(7);
2438
- i0__namespace.ɵɵelementEnd();
2439
- i0__namespace.ɵɵelementEnd();
2440
- }
2441
- if (rf & 2) {
2442
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$1, i0__namespace.ɵɵpipeBind1(1, 2, ctx.sidenav.openedChange)))("ngStyle", i0__namespace.ɵɵpureFunction3(12, _c1$1, i0__namespace.ɵɵpipeBind1(2, 4, ctx.sccs.innerHeight$), i0__namespace.ɵɵpipeBind1(3, 6, ctx.sccs.marginTop$), i0__namespace.ɵɵpipeBind1(4, 8, ctx.sccs.marginBottom$)));
2443
- }
2444
- }, directives: [i2__namespace.NgClass, i2__namespace.NgStyle, i1__namespace$4.RouterOutlet], pipes: [i2__namespace.AsyncPipe], styles: [".container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{padding:0;overflow:auto;height:100%}"], changeDetection: 0 });
2445
- __decorate([
2446
- utilities.Required,
2447
- __metadata("design:type", i3$4.MatSidenav)
2448
- ], SidenavContentComponent.prototype, "sidenav", void 0);
2449
- (function () {
2450
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SidenavContentComponent, [{
2451
- type: i0.Component,
2452
- args: [{
2453
- selector: 'rxap-sidenav-content',
2454
- templateUrl: './sidenav-content.component.html',
2455
- styleUrls: ['./sidenav-content.component.scss'],
2456
- changeDetection: i0.ChangeDetectionStrategy.OnPush
2457
- }]
2458
- }], function () { return [{ type: SidenavContentComponentService }]; }, { sidenav: [{
2459
- type: i0.Input
2460
- }] });
2461
- })();
2462
-
2463
- function ToggleWindowSidenavButtonComponent_ng_template_2_Template(rf, ctx) {
2464
- if (rf & 1) {
2465
- i0__namespace.ɵɵelementStart(0, "mat-icon");
2466
- i0__namespace.ɵɵtext(1, "keyboard_arrow_left");
2467
- i0__namespace.ɵɵelementEnd();
2468
- }
2469
- }
2470
- function ToggleWindowSidenavButtonComponent_ng_template_3_Template(rf, ctx) {
2471
- if (rf & 1) {
2472
- i0__namespace.ɵɵelementStart(0, "mat-icon");
2473
- i0__namespace.ɵɵtext(1, "keyboard_arrow_right");
2474
- i0__namespace.ɵɵelementEnd();
2475
- }
2476
- }
2477
- var ToggleWindowSidenavButtonComponent = /** @class */ (function () {
2478
- function ToggleWindowSidenavButtonComponent() {
2479
- this.openWindowSidenav = false;
2480
- this.openWindowSidenavChange = new i0.EventEmitter();
2481
- }
2482
- ToggleWindowSidenavButtonComponent.prototype.ngOnInit = function () {
2483
- };
2484
- ToggleWindowSidenavButtonComponent.prototype.toggle = function () {
2485
- this.openWindowSidenav = !this.openWindowSidenav;
2486
- this.openWindowSidenavChange.emit(this.openWindowSidenav);
2487
- };
2488
- return ToggleWindowSidenavButtonComponent;
2489
- }());
2490
- ToggleWindowSidenavButtonComponent.ɵfac = function ToggleWindowSidenavButtonComponent_Factory(t) { return new (t || ToggleWindowSidenavButtonComponent)(); };
2491
- ToggleWindowSidenavButtonComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: ToggleWindowSidenavButtonComponent, selectors: [["rxap-toggle-window-sidenav-button"]], hostAttrs: [1, "rxap-toggle-window-sidenav-button"], inputs: { openWindowSidenav: "openWindowSidenav" }, outputs: { openWindowSidenavChange: "openWindowSidenavChange" }, decls: 5, vars: 2, consts: [[1, "toggle-button"], ["mat-icon-button", "", 3, "click"], [3, "ngIfElse", "ngIf"], ["hide", ""]], template: function ToggleWindowSidenavButtonComponent_Template(rf, ctx) {
2492
- if (rf & 1) {
2493
- i0__namespace.ɵɵelementStart(0, "div", 0);
2494
- i0__namespace.ɵɵelementStart(1, "button", 1);
2495
- i0__namespace.ɵɵlistener("click", function ToggleWindowSidenavButtonComponent_Template_button_click_1_listener() { return ctx.toggle(); });
2496
- i0__namespace.ɵɵtemplate(2, ToggleWindowSidenavButtonComponent_ng_template_2_Template, 2, 0, "ng-template", 2);
2497
- i0__namespace.ɵɵtemplate(3, ToggleWindowSidenavButtonComponent_ng_template_3_Template, 2, 0, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
2498
- i0__namespace.ɵɵelementEnd();
2499
- i0__namespace.ɵɵelementEnd();
2500
- }
2501
- if (rf & 2) {
2502
- var _r1 = i0__namespace.ɵɵreference(4);
2503
- i0__namespace.ɵɵadvance(2);
2504
- i0__namespace.ɵɵproperty("ngIfElse", _r1)("ngIf", !ctx.openWindowSidenav);
2505
- }
2506
- }, directives: [i1__namespace$2.MatButton, i2__namespace.NgIf, i3__namespace$3.MatIcon], styles: [".toggle-button[_ngcontent-%COMP%]{position:absolute;top:70px;right:0;z-index:10000;border-radius:15px 0 0 15px;border:1px solid #000;background:#000}"], changeDetection: 0 });
2507
- (function () {
2508
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ToggleWindowSidenavButtonComponent, [{
2509
- type: i0.Component,
2510
- args: [{
2511
- selector: 'rxap-toggle-window-sidenav-button',
2512
- templateUrl: './toggle-window-sidenav-button.component.html',
2513
- styleUrls: ['./toggle-window-sidenav-button.component.scss'],
2514
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2515
- host: {
2516
- class: 'rxap-toggle-window-sidenav-button'
2517
- }
2518
- }]
2519
- }], function () { return []; }, { openWindowSidenav: [{
2520
- type: i0.Input
2521
- }], openWindowSidenavChange: [{
2522
- type: i0.Output
2523
- }] });
2524
- })();
2525
-
2526
- function WindowContainerSidenavComponent_div_1_ng_template_1_Template(rf, ctx) { }
2527
- function WindowContainerSidenavComponent_div_1_Template(rf, ctx) {
2528
- if (rf & 1) {
2529
- i0__namespace.ɵɵelementStart(0, "div", 2);
2530
- i0__namespace.ɵɵtemplate(1, WindowContainerSidenavComponent_div_1_ng_template_1_Template, 0, 0, "ng-template", 3);
2531
- i0__namespace.ɵɵelementEnd();
2532
- }
2533
- if (rf & 2) {
2534
- var portalId_r1 = ctx.$implicit;
2535
- var ctx_r0 = i0__namespace.ɵɵnextContext();
2536
- i0__namespace.ɵɵadvance(1);
2537
- i0__namespace.ɵɵproperty("cdkPortalOutlet", ctx_r0.portals.get(portalId_r1));
2538
- }
2539
- }
2540
- var WindowContainerSidenavComponent = /** @class */ (function () {
2541
- function WindowContainerSidenavComponent(service) {
2542
- this.service = service;
2543
- this.portals = new Map();
2544
- this.subscription = new rxjs$1.Subscription();
2545
- }
2546
- WindowContainerSidenavComponent.prototype.ngOnInit = function () {
2547
- var e_1, _a;
2548
- var _this = this;
2549
- var components = this.service.getAll();
2550
- try {
2551
- for (var components_1 = __values(components), components_1_1 = components_1.next(); !components_1_1.done; components_1_1 = components_1.next()) {
2552
- var component = components_1_1.value;
2553
- this.add(component);
2554
- }
2555
- }
2556
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2557
- finally {
2558
- try {
2559
- if (components_1_1 && !components_1_1.done && (_a = components_1.return)) _a.call(components_1);
2560
- }
2561
- finally { if (e_1) throw e_1.error; }
2562
- }
2563
- this.subscription.add(this.service.add$.pipe(operators.tap(function (component) { return _this.add(component); })).subscribe());
2564
- this.subscription.add(this.service.remove$.pipe(operators.tap(function (component) { return _this.remove(component); })).subscribe());
2565
- };
2566
- WindowContainerSidenavComponent.prototype.ngOnDestroy = function () {
2567
- this.subscription.unsubscribe();
2568
- };
2569
- WindowContainerSidenavComponent.prototype.trackBy = function (index, id) {
2570
- return id;
2571
- };
2572
- WindowContainerSidenavComponent.prototype.add = function (component) {
2573
- if (this.portals.has(component.id)) {
2574
- throw new Error("Component portal with id " + component.id + " already exists");
2575
- }
2576
- var portal = new i4.ComponentPortal(component.component, component.viewContainerRef, component.injector, component.componentFactoryResolver);
2577
- this.portals.set(component.id, portal);
2578
- };
2579
- WindowContainerSidenavComponent.prototype.remove = function (component) {
2580
- if (this.portals.has(component.id)) {
2581
- var portal = this.portals.get(component.id);
2582
- this.portals.delete(component.id);
2583
- portal.detach();
2584
- }
2585
- };
2586
- return WindowContainerSidenavComponent;
2587
- }());
2588
- WindowContainerSidenavComponent.ɵfac = function WindowContainerSidenavComponent_Factory(t) { return new (t || WindowContainerSidenavComponent)(i0__namespace.ɵɵdirectiveInject(i1.WindowContainerSidenavService)); };
2589
- WindowContainerSidenavComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: WindowContainerSidenavComponent, selectors: [["rxap-window-container-sidenav"]], decls: 2, vars: 2, consts: [["fxLayout", "column", "fxLayoutGap", "16px", 1, "container"], ["fxFlex", "nogrow", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["fxFlex", "nogrow"], [3, "cdkPortalOutlet"]], template: function WindowContainerSidenavComponent_Template(rf, ctx) {
2590
- if (rf & 1) {
2591
- i0__namespace.ɵɵelementStart(0, "div", 0);
2592
- i0__namespace.ɵɵtemplate(1, WindowContainerSidenavComponent_div_1_Template, 2, 1, "div", 1);
2593
- i0__namespace.ɵɵelementEnd();
2594
- }
2595
- if (rf & 2) {
2596
- i0__namespace.ɵɵadvance(1);
2597
- i0__namespace.ɵɵproperty("ngForOf", ctx.portals.keys())("ngForTrackBy", ctx.trackBy);
2598
- }
2599
- }, directives: [i1__namespace$3.DefaultLayoutDirective, i1__namespace$3.DefaultLayoutGapDirective, i2__namespace.NgForOf, i1__namespace$3.DefaultFlexDirective, i4__namespace.CdkPortalOutlet], styles: [".container[_ngcontent-%COMP%]{padding:8px}"], changeDetection: 0 });
2600
- (function () {
2601
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WindowContainerSidenavComponent, [{
2602
- type: i0.Component,
2603
- args: [{
2604
- selector: 'rxap-window-container-sidenav',
2605
- templateUrl: './window-container-sidenav.component.html',
2606
- styleUrls: ['./window-container-sidenav.component.scss'],
2607
- changeDetection: i0.ChangeDetectionStrategy.OnPush
2608
- }]
2609
- }], function () {
2610
- return [{ type: i1__namespace.WindowContainerSidenavService, decorators: [{
2611
- type: i0.Inject,
2612
- args: [i1.WindowContainerSidenavService]
2613
- }] }];
2614
- }, null);
2615
- })();
2616
-
2617
- var _c0 = function () { return ["/"]; };
2618
- function LayoutComponent_ng_template_8_Template(rf, ctx) {
2619
- if (rf & 1) {
2620
- i0__namespace.ɵɵelement(0, "img", 9);
2621
- }
2622
- if (rf & 2) {
2623
- var ctx_r0 = i0__namespace.ɵɵnextContext();
2624
- i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(3, _c0))("width", ctx_r0.layoutComponentService.logo.width)("src", ctx_r0.layoutComponentService.logo.src, i0__namespace.ɵɵsanitizeUrl);
2625
- }
2626
- }
2627
- var _c1 = ["*"];
2628
- var LayoutComponent = /** @class */ (function () {
2629
- function LayoutComponent(layoutComponentService) {
2630
- this.layoutComponentService = layoutComponentService;
2631
- this.openWindowSidenav = false;
2632
- }
2633
- return LayoutComponent;
2634
- }());
2635
- LayoutComponent.ɵfac = function LayoutComponent_Factory(t) { return new (t || LayoutComponent)(i0__namespace.ɵɵdirectiveInject(LayoutComponentService)); };
2636
- LayoutComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: LayoutComponent, selectors: [["rxap-layout"]], viewQuery: function LayoutComponent_Query(rf, ctx) {
2637
- if (rf & 1) {
2638
- i0__namespace.ɵɵviewQuery(i3$4.MatSidenav, 7);
2639
- }
2640
- if (rf & 2) {
2641
- var _t = void 0;
2642
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.sidenav = _t.first);
2643
- }
2644
- }, ngContentSelectors: _c1, decls: 18, vars: 24, consts: [[1, "header", 3, "sidenav"], ["autosize", "", 1, "container"], [1, "sidenav", 3, "fixedBottomGap", "fixedInViewport", "fixedTopGap", "mode", "opened"], ["rxapSidenavHeader", ""], [1, "content"], [3, "sidenav"], [3, "openWindowSidenav", "openWindowSidenavChange"], ["mode", "side", "position", "end", 1, "window-container-sidenav", 3, "fixedBottomGap", "fixedInViewport", "fixedTopGap", "opened"], [1, "footer"], ["alt", "logo", 1, "logo", 3, "routerLink", "width", "src"]], template: function LayoutComponent_Template(rf, ctx) {
2645
- if (rf & 1) {
2646
- i0__namespace.ɵɵprojectionDef();
2647
- i0__namespace.ɵɵelement(0, "rxap-header", 0);
2648
- i0__namespace.ɵɵelementStart(1, "mat-sidenav-container", 1);
2649
- i0__namespace.ɵɵelementStart(2, "mat-sidenav", 2);
2650
- i0__namespace.ɵɵpipe(3, "async");
2651
- i0__namespace.ɵɵpipe(4, "async");
2652
- i0__namespace.ɵɵpipe(5, "async");
2653
- i0__namespace.ɵɵpipe(6, "async");
2654
- i0__namespace.ɵɵelementStart(7, "rxap-sidenav");
2655
- i0__namespace.ɵɵtemplate(8, LayoutComponent_ng_template_8_Template, 1, 4, "ng-template", 3);
2656
- i0__namespace.ɵɵelementEnd();
2657
- i0__namespace.ɵɵelementEnd();
2658
- i0__namespace.ɵɵelementStart(9, "mat-sidenav-content", 4);
2659
- i0__namespace.ɵɵelementStart(10, "rxap-sidenav-content", 5);
2660
- i0__namespace.ɵɵprojection(11);
2661
- i0__namespace.ɵɵelementStart(12, "rxap-toggle-window-sidenav-button", 6);
2662
- i0__namespace.ɵɵlistener("openWindowSidenavChange", function LayoutComponent_Template_rxap_toggle_window_sidenav_button_openWindowSidenavChange_12_listener($event) { return ctx.openWindowSidenav = $event; });
2663
- i0__namespace.ɵɵelementEnd();
2664
- i0__namespace.ɵɵelementEnd();
2665
- i0__namespace.ɵɵelementEnd();
2666
- i0__namespace.ɵɵelementStart(13, "mat-sidenav", 7);
2667
- i0__namespace.ɵɵpipe(14, "async");
2668
- i0__namespace.ɵɵpipe(15, "async");
2669
- i0__namespace.ɵɵelement(16, "rxap-window-container-sidenav");
2670
- i0__namespace.ɵɵelementEnd();
2671
- i0__namespace.ɵɵelementEnd();
2672
- i0__namespace.ɵɵelement(17, "rxap-footer", 8);
2673
- }
2674
- if (rf & 2) {
2675
- var tmp_4_0 = void 0;
2676
- var tmp_5_0 = void 0;
2677
- i0__namespace.ɵɵproperty("sidenav", ctx.sidenav);
2678
- i0__namespace.ɵɵadvance(2);
2679
- i0__namespace.ɵɵproperty("fixedBottomGap", i0__namespace.ɵɵpipeBind1(3, 12, ctx.layoutComponentService.fixedBottomGap$))("fixedInViewport", true)("fixedTopGap", i0__namespace.ɵɵpipeBind1(4, 14, ctx.layoutComponentService.fixedTopGap$))("mode", (tmp_4_0 = i0__namespace.ɵɵpipeBind1(5, 16, ctx.layoutComponentService.mode$)) !== null && tmp_4_0 !== undefined ? tmp_4_0 : "side")("opened", (tmp_5_0 = i0__namespace.ɵɵpipeBind1(6, 18, ctx.layoutComponentService.opened$)) !== null && tmp_5_0 !== undefined ? tmp_5_0 : true);
2680
- i0__namespace.ɵɵadvance(8);
2681
- i0__namespace.ɵɵproperty("sidenav", ctx.sidenav);
2682
- i0__namespace.ɵɵadvance(2);
2683
- i0__namespace.ɵɵproperty("openWindowSidenav", ctx.openWindowSidenav);
2684
- i0__namespace.ɵɵadvance(1);
2685
- i0__namespace.ɵɵproperty("fixedBottomGap", i0__namespace.ɵɵpipeBind1(14, 20, ctx.layoutComponentService.fixedBottomGap$))("fixedInViewport", true)("fixedTopGap", i0__namespace.ɵɵpipeBind1(15, 22, ctx.layoutComponentService.fixedTopGap$))("opened", ctx.openWindowSidenav);
2686
- }
2687
- }, directives: [HeaderComponent, i3__namespace$5.MatSidenavContainer, i3__namespace$5.MatSidenav, SidenavComponent, SidenavHeaderDirective, i3__namespace$5.MatSidenavContent, SidenavContentComponent, ToggleWindowSidenavButtonComponent, WindowContainerSidenavComponent, FooterComponent, i1__namespace$4.RouterLink], pipes: [i2__namespace.AsyncPipe], styles: [".container[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]{height:100%}.sidenav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:auto}.sidenav[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{padding:16px}.footer[_ngcontent-%COMP%]{bottom:0}.footer[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]{position:fixed;left:0;right:0;z-index:100}.header[_ngcontent-%COMP%]{top:0}"], changeDetection: 0 });
2688
- (function () {
2689
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LayoutComponent, [{
2690
- type: i0.Component,
2691
- args: [{
2692
- selector: 'rxap-layout',
2693
- templateUrl: './layout.component.html',
2694
- styleUrls: ['./layout.component.scss'],
2695
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
2696
- }]
2697
- }], function () { return [{ type: LayoutComponentService }]; }, { sidenav: [{
2698
- type: i0.ViewChild,
2699
- args: [i3$4.MatSidenav, { static: true }]
2700
- }] });
2701
- })();
2702
-
2703
- var ReplaceRouterPathsService = /** @class */ (function () {
2704
- function ReplaceRouterPathsService() {
2705
- }
2706
- ReplaceRouterPathsService.prototype.transform = function (routerLink) {
2707
- return rxjs$1.of(routerLink);
2708
- };
2709
- return ReplaceRouterPathsService;
2710
- }());
2711
- ReplaceRouterPathsService.ɵfac = function ReplaceRouterPathsService_Factory(t) { return new (t || ReplaceRouterPathsService)(); };
2712
- ReplaceRouterPathsService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: ReplaceRouterPathsService, factory: ReplaceRouterPathsService.ɵfac, providedIn: 'root' });
2713
- (function () {
2714
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReplaceRouterPathsService, [{
2715
- type: i0.Injectable,
2716
- args: [{ providedIn: 'root' }]
2717
- }], null, null);
2718
- })();
2719
-
2720
- var ReplaceRouterPathsPipe = /** @class */ (function () {
2721
- function ReplaceRouterPathsPipe(rrp) {
2722
- this.rrp = rrp;
2723
- }
2724
- ReplaceRouterPathsPipe.prototype.transform = function (routerLink) {
2725
- return this.rrp.transform(routerLink);
2726
- };
2727
- return ReplaceRouterPathsPipe;
2728
- }());
2729
- ReplaceRouterPathsPipe.ɵfac = function ReplaceRouterPathsPipe_Factory(t) { return new (t || ReplaceRouterPathsPipe)(i0__namespace.ɵɵdirectiveInject(ReplaceRouterPathsService, 16)); };
2730
- ReplaceRouterPathsPipe.ɵpipe = /*@__PURE__*/ i0__namespace.ɵɵdefinePipe({ name: "replaceRouterPaths", type: ReplaceRouterPathsPipe, pure: true });
2731
- (function () {
2732
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReplaceRouterPathsPipe, [{
2733
- type: i0.Pipe,
2734
- args: [{
2735
- name: 'replaceRouterPaths'
2736
- }]
2737
- }], function () { return [{ type: ReplaceRouterPathsService }]; }, null);
2738
- })();
2739
-
2740
- var NavigationComponentModule = /** @class */ (function () {
2741
- function NavigationComponentModule() {
2742
- }
2743
- return NavigationComponentModule;
2744
- }());
2745
- NavigationComponentModule.ɵfac = function NavigationComponentModule_Factory(t) { return new (t || NavigationComponentModule)(); };
2746
- NavigationComponentModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: NavigationComponentModule });
2747
- NavigationComponentModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
2748
- i3$3.MatIconModule,
2749
- i1$2.MatButtonModule,
2750
- flexLayout.FlexLayoutModule,
2751
- i1$4.RouterModule,
2752
- i2.CommonModule,
2753
- i6$1.IconDirectiveModule,
2754
- components.ButtonComponentModule,
2755
- i6.MatRippleModule,
2756
- i2$5.MatDividerModule,
2757
- i3$5.StopPropagationDirectiveModule,
2758
- i3$6.MatTooltipModule
2759
- ]] });
2760
- (function () {
2761
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavigationComponentModule, [{
2762
- type: i0.NgModule,
2763
- args: [{
2764
- declarations: [NavigationComponent, NavigationItemComponent, ReplaceRouterPathsPipe],
2765
- imports: [
2766
- i3$3.MatIconModule,
2767
- i1$2.MatButtonModule,
2768
- flexLayout.FlexLayoutModule,
2769
- i1$4.RouterModule,
2770
- i2.CommonModule,
2771
- i6$1.IconDirectiveModule,
2772
- components.ButtonComponentModule,
2773
- i6.MatRippleModule,
2774
- i2$5.MatDividerModule,
2775
- i3$5.StopPropagationDirectiveModule,
2776
- i3$6.MatTooltipModule
2777
- ],
2778
- exports: [NavigationComponent]
2779
- }]
2780
- }], null, null);
2781
- })();
2782
- (function () {
2783
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(NavigationComponentModule, { declarations: [NavigationComponent, NavigationItemComponent, ReplaceRouterPathsPipe], imports: [i3$3.MatIconModule,
2784
- i1$2.MatButtonModule,
2785
- flexLayout.FlexLayoutModule,
2786
- i1$4.RouterModule,
2787
- i2.CommonModule,
2788
- i6$1.IconDirectiveModule,
2789
- components.ButtonComponentModule,
2790
- i6.MatRippleModule,
2791
- i2$5.MatDividerModule,
2792
- i3$5.StopPropagationDirectiveModule,
2793
- i3$6.MatTooltipModule], exports: [NavigationComponent] });
2794
- })();
2795
- i0__namespace.ɵɵsetComponentScope(NavigationItemComponent, [i1__namespace$4.RouterLinkWithHref, i1__namespace$4.RouterLinkActive, i6__namespace.MatRipple, i3__namespace$6.MatTooltip, i2__namespace.NgIf, i3__namespace$3.MatIcon, i6__namespace$1.IconDirective, NavigationComponent, i1__namespace$3.DefaultFlexDirective, i2__namespace.NgForOf], [i2__namespace.AsyncPipe]);
2796
-
2797
- var SidenavModule = /** @class */ (function () {
2798
- function SidenavModule() {
2799
- }
2800
- return SidenavModule;
2801
- }());
2802
- SidenavModule.ɵfac = function SidenavModule_Factory(t) { return new (t || SidenavModule)(); };
2803
- SidenavModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: SidenavModule });
2804
- SidenavModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
2805
- flexLayout.FlexLayoutModule,
2806
- NavigationComponentModule,
2807
- i2.CommonModule,
2808
- i2$5.MatDividerModule,
2809
- i3$3.MatIconModule,
2810
- i1$2.MatButtonModule
2811
- ]] });
2812
- (function () {
2813
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SidenavModule, [{
2814
- type: i0.NgModule,
2815
- args: [{
2816
- declarations: [SidenavComponent, SidenavHeaderDirective, SidenavFooterDirective],
2817
- imports: [
2818
- flexLayout.FlexLayoutModule,
2819
- NavigationComponentModule,
2820
- i2.CommonModule,
2821
- i2$5.MatDividerModule,
2822
- i3$3.MatIconModule,
2823
- i1$2.MatButtonModule
2824
- ],
2825
- exports: [SidenavComponent, SidenavHeaderDirective, SidenavFooterDirective],
2826
- }]
2827
- }], null, null);
2828
- })();
2829
- (function () {
2830
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SidenavModule, { declarations: [SidenavComponent, SidenavHeaderDirective, SidenavFooterDirective], imports: [flexLayout.FlexLayoutModule,
2831
- NavigationComponentModule,
2832
- i2.CommonModule,
2833
- i2$5.MatDividerModule,
2834
- i3$3.MatIconModule,
2835
- i1$2.MatButtonModule], exports: [SidenavComponent, SidenavHeaderDirective, SidenavFooterDirective] });
2836
- })();
2837
-
2838
- var SidenavContentModule = /** @class */ (function () {
2839
- function SidenavContentModule() {
2840
- }
2841
- return SidenavContentModule;
2842
- }());
2843
- SidenavContentModule.ɵfac = function SidenavContentModule_Factory(t) { return new (t || SidenavContentModule)(); };
2844
- SidenavContentModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: SidenavContentModule });
2845
- SidenavContentModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
2846
- i2.CommonModule,
2847
- i1$4.RouterModule
2848
- ]] });
2849
- (function () {
2850
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SidenavContentModule, [{
2851
- type: i0.NgModule,
2852
- args: [{
2853
- declarations: [SidenavContentComponent],
2854
- imports: [
2855
- i2.CommonModule,
2856
- i1$4.RouterModule
2857
- ],
2858
- exports: [SidenavContentComponent]
2859
- }]
2860
- }], null, null);
2861
- })();
2862
- (function () {
2863
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SidenavContentModule, { declarations: [SidenavContentComponent], imports: [i2.CommonModule,
2864
- i1$4.RouterModule], exports: [SidenavContentComponent] });
2865
- })();
2866
-
2867
- var WindowContainerSidenavModule = /** @class */ (function () {
2868
- function WindowContainerSidenavModule() {
2869
- }
2870
- return WindowContainerSidenavModule;
2871
- }());
2872
- WindowContainerSidenavModule.ɵfac = function WindowContainerSidenavModule_Factory(t) { return new (t || WindowContainerSidenavModule)(); };
2873
- WindowContainerSidenavModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: WindowContainerSidenavModule });
2874
- WindowContainerSidenavModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
2875
- flexLayout.FlexLayoutModule,
2876
- i2.CommonModule,
2877
- i4.PortalModule,
2878
- ]] });
2879
- (function () {
2880
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WindowContainerSidenavModule, [{
2881
- type: i0.NgModule,
2882
- args: [{
2883
- declarations: [WindowContainerSidenavComponent],
2884
- imports: [
2885
- flexLayout.FlexLayoutModule,
2886
- i2.CommonModule,
2887
- i4.PortalModule,
2888
- ],
2889
- exports: [WindowContainerSidenavComponent],
2890
- }]
2891
- }], null, null);
2892
- })();
2893
- (function () {
2894
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(WindowContainerSidenavModule, { declarations: [WindowContainerSidenavComponent], imports: [flexLayout.FlexLayoutModule,
2895
- i2.CommonModule,
2896
- i4.PortalModule], exports: [WindowContainerSidenavComponent] });
2897
- })();
2898
-
2899
- var ToggleWindowSidenavButtonModule = /** @class */ (function () {
2900
- function ToggleWindowSidenavButtonModule() {
2901
- }
2902
- return ToggleWindowSidenavButtonModule;
2903
- }());
2904
- ToggleWindowSidenavButtonModule.ɵfac = function ToggleWindowSidenavButtonModule_Factory(t) { return new (t || ToggleWindowSidenavButtonModule)(); };
2905
- ToggleWindowSidenavButtonModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: ToggleWindowSidenavButtonModule });
2906
- ToggleWindowSidenavButtonModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
2907
- i1$2.MatButtonModule,
2908
- i3$3.MatIconModule,
2909
- i2.CommonModule,
2910
- ]] });
2911
- (function () {
2912
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ToggleWindowSidenavButtonModule, [{
2913
- type: i0.NgModule,
2914
- args: [{
2915
- declarations: [ToggleWindowSidenavButtonComponent],
2916
- imports: [
2917
- i1$2.MatButtonModule,
2918
- i3$3.MatIconModule,
2919
- i2.CommonModule,
2920
- ],
2921
- exports: [ToggleWindowSidenavButtonComponent],
2922
- }]
2923
- }], null, null);
2924
- })();
2925
- (function () {
2926
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(ToggleWindowSidenavButtonModule, { declarations: [ToggleWindowSidenavButtonComponent], imports: [i1$2.MatButtonModule,
2927
- i3$3.MatIconModule,
2928
- i2.CommonModule], exports: [ToggleWindowSidenavButtonComponent] });
2929
- })();
2930
-
2931
- var LayoutModule = /** @class */ (function () {
2932
- function LayoutModule() {
2933
- }
2934
- LayoutModule.withNavigation = function (navigation) {
2935
- return {
2936
- ngModule: LayoutModule,
2937
- providers: [
2938
- {
2939
- provide: RXAP_NAVIGATION_CONFIG,
2940
- useValue: navigation
2941
- }
2942
- ]
2943
- };
2944
- };
2945
- return LayoutModule;
2946
- }());
2947
- LayoutModule.ɵfac = function LayoutModule_Factory(t) { return new (t || LayoutModule)(); };
2948
- LayoutModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: LayoutModule });
2949
- LayoutModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
2950
- i3$4.MatSidenavModule,
2951
- FooterModule,
2952
- HeaderModule,
2953
- i2.CommonModule,
2954
- SidenavModule,
2955
- SidenavContentModule,
2956
- WindowContainerSidenavModule,
2957
- ToggleWindowSidenavButtonModule,
2958
- flexLayout.FlexLayoutModule,
2959
- i1$4.RouterModule
2960
- ]] });
2961
- (function () {
2962
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LayoutModule, [{
2963
- type: i0.NgModule,
2964
- args: [{
2965
- declarations: [LayoutComponent],
2966
- imports: [
2967
- i3$4.MatSidenavModule,
2968
- FooterModule,
2969
- HeaderModule,
2970
- i2.CommonModule,
2971
- SidenavModule,
2972
- SidenavContentModule,
2973
- WindowContainerSidenavModule,
2974
- ToggleWindowSidenavButtonModule,
2975
- flexLayout.FlexLayoutModule,
2976
- i1$4.RouterModule
2977
- ],
2978
- exports: [LayoutComponent]
2979
- }]
2980
- }], null, null);
2981
- })();
2982
- (function () {
2983
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(LayoutModule, { declarations: [LayoutComponent], imports: [i3$4.MatSidenavModule,
2984
- FooterModule,
2985
- HeaderModule,
2986
- i2.CommonModule,
2987
- SidenavModule,
2988
- SidenavContentModule,
2989
- WindowContainerSidenavModule,
2990
- ToggleWindowSidenavButtonModule,
2991
- flexLayout.FlexLayoutModule,
2992
- i1$4.RouterModule], exports: [LayoutComponent] });
2993
- })();
2994
-
2995
- function VersionComponent_div_1_Template(rf, ctx) {
2996
- if (rf & 1) {
2997
- i0__namespace.ɵɵelementStart(0, "div", 2);
2998
- i0__namespace.ɵɵelementStart(1, "span", 3);
2999
- i0__namespace.ɵɵtext(2);
3000
- i0__namespace.ɵɵelementEnd();
3001
- i0__namespace.ɵɵelementStart(3, "span", 4);
3002
- i0__namespace.ɵɵtext(4);
3003
- i0__namespace.ɵɵelementEnd();
3004
- i0__namespace.ɵɵelementStart(5, "span", 5);
3005
- i0__namespace.ɵɵtext(6);
3006
- i0__namespace.ɵɵelementEnd();
3007
- i0__namespace.ɵɵelementEnd();
3008
- }
3009
- if (rf & 2) {
3010
- var module_r1 = ctx.$implicit;
3011
- i0__namespace.ɵɵadvance(2);
3012
- i0__namespace.ɵɵtextInterpolate(module_r1.value.name);
3013
- i0__namespace.ɵɵadvance(2);
3014
- i0__namespace.ɵɵtextInterpolate(module_r1.value.semantic);
3015
- i0__namespace.ɵɵadvance(2);
3016
- i0__namespace.ɵɵtextInterpolate(module_r1.value.hash);
3017
- }
3018
- }
3019
- var VersionComponent = /** @class */ (function () {
3020
- function VersionComponent(version) {
3021
- this.version = version;
3022
- }
3023
- VersionComponent.prototype.ngOnInit = function () {
3024
- var _this = this;
3025
- this.modules = this.version.get();
3026
- this.subscription = this.version.update$.pipe(operators.tap(function () { return _this.modules = _this.version.get(); })).subscribe();
3027
- };
3028
- VersionComponent.prototype.ngOnDestroy = function () {
3029
- var _a;
3030
- (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
3031
- };
3032
- return VersionComponent;
3033
- }());
3034
- VersionComponent.ɵfac = function VersionComponent_Factory(t) { return new (t || VersionComponent)(i0__namespace.ɵɵdirectiveInject(i1.VersionService)); };
3035
- VersionComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: VersionComponent, selectors: [["rxap-version"]], decls: 3, vars: 3, consts: [["fxFlex", "nogrow", "fxLayout", "column", "fxLayoutAlign", "start start", "fxLayoutGap", "8px", 1, "version"], ["fxFlex", "nogrow", "fxLayout", "column", 4, "ngFor", "ngForOf"], ["fxFlex", "nogrow", "fxLayout", "column"], ["fxFlex", "nogrow", 1, "name"], ["fxFlex", "nogrow", 1, "semantic"], ["fxFlex", "nogrow", 1, "hash"]], template: function VersionComponent_Template(rf, ctx) {
3036
- if (rf & 1) {
3037
- i0__namespace.ɵɵelementStart(0, "div", 0);
3038
- i0__namespace.ɵɵtemplate(1, VersionComponent_div_1_Template, 7, 3, "div", 1);
3039
- i0__namespace.ɵɵpipe(2, "keyvalue");
3040
- i0__namespace.ɵɵelementEnd();
3041
- }
3042
- if (rf & 2) {
3043
- i0__namespace.ɵɵadvance(1);
3044
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, ctx.modules));
3045
- }
3046
- }, directives: [i1__namespace$3.DefaultFlexDirective, i1__namespace$3.DefaultLayoutDirective, i1__namespace$3.DefaultLayoutAlignDirective, i1__namespace$3.DefaultLayoutGapDirective, i2__namespace.NgForOf], pipes: [i2__namespace.KeyValuePipe], styles: [".version[_ngcontent-%COMP%]{width:100%;font-size:9px;padding:8px}.version[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{padding-bottom:12px;font-size:10px}"], changeDetection: 0 });
3047
- __decorate([
3048
- utilities.Required,
3049
- __metadata("design:type", Object)
3050
- ], VersionComponent.prototype, "modules", void 0);
3051
- (function () {
3052
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(VersionComponent, [{
3053
- type: i0.Component,
3054
- args: [{
3055
- selector: 'rxap-version',
3056
- templateUrl: './version.component.html',
3057
- styleUrls: ['./version.component.scss'],
3058
- changeDetection: i0.ChangeDetectionStrategy.OnPush
3059
- }]
3060
- }], function () {
3061
- return [{ type: i1__namespace.VersionService, decorators: [{
3062
- type: i0.Inject,
3063
- args: [i1.VersionService]
3064
- }] }];
3065
- }, { modules: [] });
3066
- })();
3067
-
3068
- var VersionComponentModule = /** @class */ (function () {
3069
- function VersionComponentModule() {
3070
- }
3071
- return VersionComponentModule;
3072
- }());
3073
- VersionComponentModule.ɵfac = function VersionComponentModule_Factory(t) { return new (t || VersionComponentModule)(); };
3074
- VersionComponentModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: VersionComponentModule });
3075
- VersionComponentModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
3076
- flexLayout.FlexLayoutModule,
3077
- i2.CommonModule
3078
- ]] });
3079
- (function () {
3080
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(VersionComponentModule, [{
3081
- type: i0.NgModule,
3082
- args: [{
3083
- declarations: [VersionComponent],
3084
- imports: [
3085
- flexLayout.FlexLayoutModule,
3086
- i2.CommonModule
3087
- ],
3088
- exports: [VersionComponent]
3089
- }]
3090
- }], null, null);
3091
- })();
3092
- (function () {
3093
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(VersionComponentModule, { declarations: [VersionComponent], imports: [flexLayout.FlexLayoutModule,
3094
- i2.CommonModule], exports: [VersionComponent] });
3095
- })();
3096
-
3097
- var FooterDirective = /** @class */ (function () {
3098
- function FooterDirective(footerService, template, viewContainerRef) {
3099
- this.footerService = footerService;
3100
- this.template = template;
3101
- this.viewContainerRef = viewContainerRef;
3102
- }
3103
- FooterDirective.prototype.ngOnInit = function () {
3104
- this._portal = new i4.TemplatePortal(this.template, this.viewContainerRef);
3105
- this.footerService.pushPortal(this._portal);
3106
- };
3107
- FooterDirective.prototype.ngOnDestroy = function () {
3108
- if (this._portal) {
3109
- this.footerService.removePortal(this._portal);
3110
- }
3111
- };
3112
- return FooterDirective;
3113
- }());
3114
- FooterDirective.ɵfac = function FooterDirective_Factory(t) { return new (t || FooterDirective)(i0__namespace.ɵɵdirectiveInject(i1.FooterService), i0__namespace.ɵɵdirectiveInject(i0.TemplateRef), i0__namespace.ɵɵdirectiveInject(i0.ViewContainerRef)); };
3115
- FooterDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: FooterDirective, selectors: [["", "rxapFooter", ""]] });
3116
- (function () {
3117
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FooterDirective, [{
3118
- type: i0.Directive,
3119
- args: [{
3120
- selector: '[rxapFooter]',
3121
- }]
3122
- }], function () {
3123
- return [{ type: i1__namespace.FooterService, decorators: [{
3124
- type: i0.Inject,
3125
- args: [i1.FooterService]
3126
- }] }, { type: i0__namespace.TemplateRef, decorators: [{
3127
- type: i0.Inject,
3128
- args: [i0.TemplateRef]
3129
- }] }, { type: i0__namespace.ViewContainerRef, decorators: [{
3130
- type: i0.Inject,
3131
- args: [i0.ViewContainerRef]
3132
- }] }];
3133
- }, null);
3134
- })();
3135
- var FooterDirectiveModule = /** @class */ (function () {
3136
- function FooterDirectiveModule() {
3137
- }
3138
- return FooterDirectiveModule;
3139
- }());
3140
- FooterDirectiveModule.ɵfac = function FooterDirectiveModule_Factory(t) { return new (t || FooterDirectiveModule)(); };
3141
- FooterDirectiveModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: FooterDirectiveModule });
3142
- FooterDirectiveModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({});
3143
- (function () {
3144
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FooterDirectiveModule, [{
3145
- type: i0.NgModule,
3146
- args: [{
3147
- declarations: [FooterDirective],
3148
- exports: [FooterDirective],
3149
- }]
3150
- }], null, null);
3151
- })();
3152
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(FooterDirectiveModule, { declarations: [FooterDirective], exports: [FooterDirective] }); })();
3153
-
3154
- /**
3155
- * Generated bundle index. Do not edit.
3156
- */
3157
-
3158
- exports.AppsButtonComponent = AppsButtonComponent;
3159
- exports.AppsButtonComponentModule = AppsButtonComponentModule;
3160
- exports.FooterComponent = FooterComponent;
3161
- exports.FooterDirective = FooterDirective;
3162
- exports.FooterDirectiveModule = FooterDirectiveModule;
3163
- exports.FooterModule = FooterModule;
3164
- exports.HeaderComponent = HeaderComponent;
3165
- exports.HeaderModule = HeaderModule;
3166
- exports.IsNavigationDividerItem = IsNavigationDividerItem;
3167
- exports.IsNavigationInsertItem = IsNavigationInsertItem;
3168
- exports.IsNavigationItem = IsNavigationItem;
3169
- exports.LayoutComponent = LayoutComponent;
3170
- exports.LayoutComponentService = LayoutComponentService;
3171
- exports.LayoutModule = LayoutModule;
3172
- exports.NavigationComponent = NavigationComponent;
3173
- exports.NavigationComponentModule = NavigationComponentModule;
3174
- exports.NavigationItemComponent = NavigationItemComponent;
3175
- exports.NavigationProgressBarComponent = NavigationProgressBarComponent;
3176
- exports.NavigationProgressBarComponentModule = NavigationProgressBarComponentModule;
3177
- exports.NavigationService = NavigationService;
3178
- exports.RXAP_FOOTER_COMPONENT = RXAP_FOOTER_COMPONENT;
3179
- exports.RXAP_HEADER_COMPONENT = RXAP_HEADER_COMPONENT;
3180
- exports.RXAP_LAYOUT_APPS_GRID = RXAP_LAYOUT_APPS_GRID;
3181
- exports.RXAP_LOGO_CONFIG = RXAP_LOGO_CONFIG;
3182
- exports.RXAP_NAVIGATION_CONFIG = RXAP_NAVIGATION_CONFIG;
3183
- exports.RXAP_NAVIGATION_CONFIG_INSERTS = RXAP_NAVIGATION_CONFIG_INSERTS;
3184
- exports.ReplaceRouterPathsService = ReplaceRouterPathsService;
3185
- exports.ResetButtonComponent = ResetButtonComponent;
3186
- exports.ResetButtonComponentModule = ResetButtonComponentModule;
3187
- exports.SidenavComponent = SidenavComponent;
3188
- exports.SidenavComponentService = SidenavComponentService;
3189
- exports.SidenavContentComponent = SidenavContentComponent;
3190
- exports.SidenavContentComponentService = SidenavContentComponentService;
3191
- exports.SidenavContentModule = SidenavContentModule;
3192
- exports.SidenavFooterDirective = SidenavFooterDirective;
3193
- exports.SidenavHeaderDirective = SidenavHeaderDirective;
3194
- exports.SidenavModule = SidenavModule;
3195
- exports.SidenavToggleButtonComponent = SidenavToggleButtonComponent;
3196
- exports.SidenavToggleButtonComponentModule = SidenavToggleButtonComponentModule;
3197
- exports.SignOutComponent = SignOutComponent;
3198
- exports.SignOutComponentModule = SignOutComponentModule;
3199
- exports.ToggleWindowSidenavButtonComponent = ToggleWindowSidenavButtonComponent;
3200
- exports.ToggleWindowSidenavButtonModule = ToggleWindowSidenavButtonModule;
3201
- exports.UserProfileIconComponent = UserProfileIconComponent;
3202
- exports.UserProfileIconComponentModule = UserProfileIconComponentModule;
3203
- exports.VersionComponent = VersionComponent;
3204
- exports.VersionComponentModule = VersionComponentModule;
3205
- exports.WindowContainerSidenavComponent = WindowContainerSidenavComponent;
3206
- exports.WindowContainerSidenavModule = WindowContainerSidenavModule;
3207
-
3208
- Object.defineProperty(exports, '__esModule', { value: true });
3209
-
3210
- })));
3211
- //# sourceMappingURL=rxap-layout.umd.js.map