@indice/ng-components 0.2.146 → 0.2.147

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 (159) hide show
  1. package/_styles.css +1 -1
  2. package/{esm2015/indice-ng-components.js → esm2020/indice-ng-components.mjs} +0 -0
  3. package/{esm2015/lib/controls/avatar-initials/avatar-initials.component.js → esm2020/lib/controls/avatar-initials/avatar-initials.component.mjs} +5 -8
  4. package/esm2020/lib/controls/collapsible-panel/collapsible-panel.component.mjs +20 -0
  5. package/esm2020/lib/controls/combobox/combobox.component.mjs +96 -0
  6. package/esm2020/lib/controls/date-picker/date-picker.component.mjs +260 -0
  7. package/esm2020/lib/controls/drop-down-menu/drop-down-menu.component.mjs +68 -0
  8. package/esm2020/lib/controls/kpi-tile/kpi-tile.component.mjs +36 -0
  9. package/esm2020/lib/controls/language-selection/language-selection.component.mjs +31 -0
  10. package/{esm2015/lib/controls/list-view/list-column.component.js → esm2020/lib/controls/list-view/list-column.component.mjs} +4 -4
  11. package/{esm2015/lib/controls/list-view/list-details-section.component.js → esm2020/lib/controls/list-view/list-details-section.component.mjs} +4 -4
  12. package/{esm2015/lib/controls/list-view/list-tile.component.js → esm2020/lib/controls/list-view/list-tile.component.mjs} +4 -4
  13. package/esm2020/lib/controls/list-view/list-view-empty-state.component.mjs +29 -0
  14. package/esm2020/lib/controls/list-view/list-view.component.mjs +183 -0
  15. package/esm2020/lib/controls/nav-links-list/nav-links-list.component.mjs +42 -0
  16. package/esm2020/lib/controls/notifications-indicator/notifications-indicator.component.mjs +73 -0
  17. package/esm2020/lib/controls/pager/pager.component.mjs +130 -0
  18. package/esm2020/lib/controls/side-pane/side-pane.component.mjs +72 -0
  19. package/esm2020/lib/controls/skeleton-loader/skeleton-loader.component.mjs +25 -0
  20. package/esm2020/lib/controls/tabs/lib-tab-group.component.mjs +59 -0
  21. package/esm2020/lib/controls/tabs/lib-tab.component.mjs +57 -0
  22. package/esm2020/lib/controls/toaster/toaster-container.component.mjs +28 -0
  23. package/esm2020/lib/controls/toaster/toaster.component.mjs +31 -0
  24. package/esm2020/lib/controls/toggle/toggle.component.mjs +64 -0
  25. package/esm2020/lib/controls/user-profile-menu/user-profile-menu.component.mjs +71 -0
  26. package/{esm2015/lib/directives/click-outside.directive.js → esm2020/lib/directives/click-outside.directive.mjs} +4 -4
  27. package/{esm2015/lib/directives/dynamic-component-host.directive.js → esm2020/lib/directives/dynamic-component-host.directive.mjs} +4 -4
  28. package/esm2020/lib/helpers/base-list.component.mjs +181 -0
  29. package/esm2020/lib/icons.mjs +34 -0
  30. package/esm2020/lib/layouts/shell/shell-footer/shell-footer.component.mjs +19 -0
  31. package/esm2020/lib/layouts/shell/shell-header/shell-header.component.mjs +131 -0
  32. package/esm2020/lib/layouts/shell/shell-layout/shell-layout.component.mjs +103 -0
  33. package/esm2020/lib/layouts/shell/shell-sidebar/shell-sidebar.component.mjs +47 -0
  34. package/esm2020/lib/layouts/views/form-layout/form-layout.component.mjs +80 -0
  35. package/esm2020/lib/layouts/views/model-view-layout/model-view-layout.component.mjs +49 -0
  36. package/esm2020/lib/layouts/views/side-view-layout/side-view-layout.component.mjs +98 -0
  37. package/esm2020/lib/layouts/views/view-layout/view-layout.component.mjs +104 -0
  38. package/esm2020/lib/ng-components.module.mjs +245 -0
  39. package/esm2020/lib/pages/auth/auth-callback/auth-callback.component.mjs +30 -0
  40. package/{esm2015/lib/pages/auth/auth-renew/auth-renew.component.js → esm2020/lib/pages/auth/auth-renew/auth-renew.component.mjs} +4 -4
  41. package/esm2020/lib/pages/auth/logged-out/logged-out.component.mjs +28 -0
  42. package/esm2020/lib/pages/http-status/error/error.component.mjs +17 -0
  43. package/esm2020/lib/pages/http-status/page-not-found/page-not-found.component.mjs +15 -0
  44. package/esm2020/lib/pages/http-status/unauthorized/unauthorized.component.mjs +14 -0
  45. package/{esm2015/lib/pipes/address.pipe.js → esm2020/lib/pipes/address.pipe.mjs} +4 -4
  46. package/{esm2015/lib/pipes/duration-format.pipe.js → esm2020/lib/pipes/duration-format.pipe.mjs} +4 -4
  47. package/{esm2015/lib/services/component-loader/component-loader-options.class.js → esm2020/lib/services/component-loader/component-loader-options.class.mjs} +0 -0
  48. package/esm2020/lib/services/component-loader/component-loader.class.mjs +188 -0
  49. package/{esm2015/lib/services/component-loader/component-loader.factory.js → esm2020/lib/services/component-loader/component-loader.factory.mjs} +4 -4
  50. package/{esm2015/lib/services/component-loader/content-ref.class.js → esm2020/lib/services/component-loader/content-ref.class.mjs} +0 -0
  51. package/esm2020/lib/services/modal-service/modal-backdrop-component.mjs +44 -0
  52. package/esm2020/lib/services/modal-service/modal-container-component.mjs +126 -0
  53. package/{esm2015/lib/services/modal-service/modal-options.class.js → esm2020/lib/services/modal-service/modal-options.class.mjs} +4 -4
  54. package/esm2020/lib/services/modal-service/modal-service.mjs +219 -0
  55. package/{esm2015/lib/services/modal-service/modal-styles.class.js → esm2020/lib/services/modal-service/modal-styles.class.mjs} +0 -0
  56. package/{esm2015/lib/services/modal-service/modal.class.js → esm2020/lib/services/modal-service/modal.class.mjs} +4 -4
  57. package/{esm2015/lib/services/toaster.service.js → esm2020/lib/services/toaster.service.mjs} +4 -4
  58. package/esm2020/lib/tokens.mjs +7 -0
  59. package/{esm2015/lib/types.js → esm2020/lib/types.mjs} +1 -1
  60. package/esm2020/public-api.mjs +56 -0
  61. package/fesm2015/indice-ng-components.mjs +3629 -0
  62. package/fesm2015/indice-ng-components.mjs.map +1 -0
  63. package/fesm2020/indice-ng-components.mjs +3572 -0
  64. package/fesm2020/indice-ng-components.mjs.map +1 -0
  65. package/{indice-ng-components.d.ts → index.d.ts} +0 -0
  66. package/lib/controls/avatar-initials/avatar-initials.component.d.ts +1 -1
  67. package/lib/controls/collapsible-panel/collapsible-panel.component.d.ts +1 -1
  68. package/lib/controls/combobox/combobox.component.d.ts +29 -0
  69. package/lib/controls/date-picker/date-picker.component.d.ts +1 -1
  70. package/lib/controls/drop-down-menu/drop-down-menu.component.d.ts +1 -1
  71. package/lib/controls/kpi-tile/kpi-tile.component.d.ts +1 -1
  72. package/lib/controls/language-selection/language-selection.component.d.ts +1 -1
  73. package/lib/controls/list-view/list-column.component.d.ts +1 -1
  74. package/lib/controls/list-view/list-details-section.component.d.ts +1 -1
  75. package/lib/controls/list-view/list-tile.component.d.ts +1 -1
  76. package/lib/controls/list-view/list-view-empty-state.component.d.ts +1 -1
  77. package/lib/controls/list-view/list-view.component.d.ts +1 -1
  78. package/lib/controls/nav-links-list/nav-links-list.component.d.ts +1 -1
  79. package/lib/controls/notifications-indicator/notifications-indicator.component.d.ts +1 -1
  80. package/lib/controls/pager/pager.component.d.ts +1 -1
  81. package/lib/controls/side-pane/side-pane.component.d.ts +1 -1
  82. package/lib/controls/skeleton-loader/skeleton-loader.component.d.ts +1 -1
  83. package/lib/controls/tabs/lib-tab-group.component.d.ts +1 -1
  84. package/lib/controls/tabs/lib-tab.component.d.ts +4 -5
  85. package/lib/controls/toaster/toaster-container.component.d.ts +1 -1
  86. package/lib/controls/toaster/toaster.component.d.ts +1 -1
  87. package/lib/controls/toggle/toggle.component.d.ts +1 -1
  88. package/lib/controls/user-profile-menu/user-profile-menu.component.d.ts +1 -1
  89. package/lib/directives/click-outside.directive.d.ts +1 -1
  90. package/lib/directives/dynamic-component-host.directive.d.ts +1 -1
  91. package/lib/helpers/base-list.component.d.ts +1 -1
  92. package/lib/icons.d.ts +2 -0
  93. package/lib/layouts/shell/shell-footer/shell-footer.component.d.ts +1 -1
  94. package/lib/layouts/shell/shell-header/shell-header.component.d.ts +1 -1
  95. package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +1 -1
  96. package/lib/layouts/shell/shell-sidebar/shell-sidebar.component.d.ts +1 -1
  97. package/lib/layouts/views/form-layout/form-layout.component.d.ts +1 -1
  98. package/lib/layouts/views/model-view-layout/model-view-layout.component.d.ts +1 -1
  99. package/lib/layouts/views/side-view-layout/side-view-layout.component.d.ts +1 -1
  100. package/lib/layouts/views/view-layout/view-layout.component.d.ts +1 -1
  101. package/lib/ng-components.module.d.ts +28 -27
  102. package/lib/pages/auth/auth-callback/auth-callback.component.d.ts +1 -1
  103. package/lib/pages/auth/auth-renew/auth-renew.component.d.ts +1 -1
  104. package/lib/pages/auth/logged-out/logged-out.component.d.ts +1 -1
  105. package/lib/pages/http-status/error/error.component.d.ts +1 -1
  106. package/lib/pages/http-status/page-not-found/page-not-found.component.d.ts +1 -1
  107. package/lib/pages/http-status/unauthorized/unauthorized.component.d.ts +1 -1
  108. package/lib/pipes/address.pipe.d.ts +1 -1
  109. package/lib/pipes/duration-format.pipe.d.ts +1 -1
  110. package/lib/services/modal-service/modal-backdrop-component.d.ts +1 -1
  111. package/lib/services/modal-service/modal-container-component.d.ts +1 -1
  112. package/lib/tokens.d.ts +2 -0
  113. package/lib/types.d.ts +2 -0
  114. package/package.json +25 -12
  115. package/public-api.d.ts +2 -1
  116. package/bundles/indice-ng-components.umd.js +0 -4181
  117. package/bundles/indice-ng-components.umd.js.map +0 -1
  118. package/esm2015/lib/controls/collapsible-panel/collapsible-panel.component.js +0 -23
  119. package/esm2015/lib/controls/date-picker/date-picker.component.js +0 -269
  120. package/esm2015/lib/controls/drop-down-menu/drop-down-menu.component.js +0 -72
  121. package/esm2015/lib/controls/kpi-tile/kpi-tile.component.js +0 -39
  122. package/esm2015/lib/controls/language-selection/language-selection.component.js +0 -35
  123. package/esm2015/lib/controls/list-view/list-view-empty-state.component.js +0 -32
  124. package/esm2015/lib/controls/list-view/list-view.component.js +0 -186
  125. package/esm2015/lib/controls/nav-links-list/nav-links-list.component.js +0 -45
  126. package/esm2015/lib/controls/notifications-indicator/notifications-indicator.component.js +0 -76
  127. package/esm2015/lib/controls/pager/pager.component.js +0 -133
  128. package/esm2015/lib/controls/side-pane/side-pane.component.js +0 -76
  129. package/esm2015/lib/controls/skeleton-loader/skeleton-loader.component.js +0 -29
  130. package/esm2015/lib/controls/tabs/lib-tab-group.component.js +0 -60
  131. package/esm2015/lib/controls/tabs/lib-tab.component.js +0 -57
  132. package/esm2015/lib/controls/toaster/toaster-container.component.js +0 -31
  133. package/esm2015/lib/controls/toaster/toaster.component.js +0 -34
  134. package/esm2015/lib/controls/toggle/toggle.component.js +0 -68
  135. package/esm2015/lib/controls/user-profile-menu/user-profile-menu.component.js +0 -75
  136. package/esm2015/lib/helpers/base-list.component.js +0 -182
  137. package/esm2015/lib/icons.js +0 -32
  138. package/esm2015/lib/layouts/shell/shell-footer/shell-footer.component.js +0 -22
  139. package/esm2015/lib/layouts/shell/shell-header/shell-header.component.js +0 -136
  140. package/esm2015/lib/layouts/shell/shell-layout/shell-layout.component.js +0 -108
  141. package/esm2015/lib/layouts/shell/shell-sidebar/shell-sidebar.component.js +0 -50
  142. package/esm2015/lib/layouts/views/form-layout/form-layout.component.js +0 -85
  143. package/esm2015/lib/layouts/views/model-view-layout/model-view-layout.component.js +0 -53
  144. package/esm2015/lib/layouts/views/side-view-layout/side-view-layout.component.js +0 -101
  145. package/esm2015/lib/layouts/views/view-layout/view-layout.component.js +0 -110
  146. package/esm2015/lib/ng-components.module.js +0 -242
  147. package/esm2015/lib/pages/auth/auth-callback/auth-callback.component.js +0 -34
  148. package/esm2015/lib/pages/auth/logged-out/logged-out.component.js +0 -32
  149. package/esm2015/lib/pages/http-status/error/error.component.js +0 -20
  150. package/esm2015/lib/pages/http-status/page-not-found/page-not-found.component.js +0 -18
  151. package/esm2015/lib/pages/http-status/unauthorized/unauthorized.component.js +0 -17
  152. package/esm2015/lib/services/component-loader/component-loader.class.js +0 -192
  153. package/esm2015/lib/services/modal-service/modal-backdrop-component.js +0 -44
  154. package/esm2015/lib/services/modal-service/modal-container-component.js +0 -128
  155. package/esm2015/lib/services/modal-service/modal-service.js +0 -220
  156. package/esm2015/lib/tokens.js +0 -6
  157. package/esm2015/public-api.js +0 -55
  158. package/fesm2015/indice-ng-components.js +0 -3600
  159. package/fesm2015/indice-ng-components.js.map +0 -1
@@ -0,0 +1,3572 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, PLATFORM_ID, Directive, Inject, Input, Output, Component, TemplateRef, ContentChild, ContentChildren, forwardRef, ViewChild, Injectable, InjectionToken, ViewEncapsulation, ChangeDetectionStrategy, Optional, Injector, ElementRef, ViewChildren, Pipe, HostListener, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';
5
+ import * as i1$1 from '@angular/router';
6
+ import { Router, NavigationStart, ActivatedRoute, ActivationStart, RouterModule } from '@angular/router';
7
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
8
+ import { BehaviorSubject, Subject, of, fromEvent } from 'rxjs';
9
+ import { filter, debounceTime, distinctUntilChanged, share, map } from 'rxjs/operators';
10
+ import * as uuid from 'uuid';
11
+ import * as i2 from '@indice/ng-auth';
12
+ import { AuthService, IndiceAuthModule } from '@indice/ng-auth';
13
+
14
+ //
15
+ // tslint:disable-next-line:directive-selector
16
+ class ClickOutsideDirective {
17
+ constructor(
18
+ // tslint:disable-next-line:variable-name
19
+ _el,
20
+ // tslint:disable-next-line:variable-name
21
+ _ngZone, platformId) {
22
+ this._el = _el;
23
+ this._ngZone = _ngZone;
24
+ this.platformId = platformId;
25
+ this.clickOutsideEnabled = true;
26
+ this.attachOutsideOnClick = false;
27
+ this.delayClickOutsideInit = false;
28
+ this.emitOnBlur = false;
29
+ this.exclude = '';
30
+ this.excludeBeforeClick = false;
31
+ this.clickOutsideEvents = '';
32
+ this.clickOutside = new EventEmitter();
33
+ // tslint:disable-next-line:variable-name
34
+ this._nodesExcluded = [];
35
+ // tslint:disable-next-line:variable-name
36
+ this._events = ['click'];
37
+ this._initOnClickBody = this._initOnClickBody.bind(this);
38
+ this._onClickBody = this._onClickBody.bind(this);
39
+ this._onWindowBlur = this._onWindowBlur.bind(this);
40
+ }
41
+ ngOnInit() {
42
+ if (!isPlatformBrowser(this.platformId)) {
43
+ return;
44
+ }
45
+ this._init();
46
+ }
47
+ ngOnDestroy() {
48
+ if (!isPlatformBrowser(this.platformId)) {
49
+ return;
50
+ }
51
+ this._removeClickOutsideListener();
52
+ this._removeAttachOutsideOnClickListener();
53
+ this._removeWindowBlurListener();
54
+ }
55
+ ngOnChanges(changes) {
56
+ if (!isPlatformBrowser(this.platformId)) {
57
+ return;
58
+ }
59
+ // tslint:disable-next-line:no-string-literal
60
+ if (changes['attachOutsideOnClick'] || changes['exclude'] || changes['emitOnBlur']) {
61
+ this._init();
62
+ }
63
+ }
64
+ _init() {
65
+ if (this.clickOutsideEvents !== '') {
66
+ this._events = this.clickOutsideEvents.split(',').map(e => e.trim());
67
+ }
68
+ this._excludeCheck();
69
+ if (this.attachOutsideOnClick) {
70
+ this._initAttachOutsideOnClickListener();
71
+ }
72
+ else {
73
+ this._initOnClickBody();
74
+ }
75
+ if (this.emitOnBlur) {
76
+ this._initWindowBlurListener();
77
+ }
78
+ }
79
+ _initOnClickBody() {
80
+ if (this.delayClickOutsideInit) {
81
+ setTimeout(this._initClickOutsideListener.bind(this));
82
+ }
83
+ else {
84
+ this._initClickOutsideListener();
85
+ }
86
+ }
87
+ _excludeCheck() {
88
+ if (this.exclude) {
89
+ try {
90
+ const nodes = Array.from(document.querySelectorAll(this.exclude));
91
+ if (nodes) {
92
+ this._nodesExcluded = nodes;
93
+ }
94
+ }
95
+ catch (err) {
96
+ console.error('[ng-click-outside] Check your exclude selector syntax.', err);
97
+ }
98
+ }
99
+ }
100
+ _onClickBody(ev) {
101
+ if (!this.clickOutsideEnabled) {
102
+ return;
103
+ }
104
+ if (this.excludeBeforeClick) {
105
+ this._excludeCheck();
106
+ }
107
+ if (!this._el.nativeElement.contains(ev.target) && !this._shouldExclude(ev.target)) {
108
+ this._emit(ev);
109
+ if (this.attachOutsideOnClick) {
110
+ this._removeClickOutsideListener();
111
+ }
112
+ }
113
+ }
114
+ /**
115
+ * Resolves problem with outside click on iframe
116
+ * @see https://github.com/arkon/ng-click-outside/issues/32
117
+ */
118
+ _onWindowBlur(ev) {
119
+ setTimeout(() => {
120
+ if (!document.hidden) {
121
+ this._emit(ev);
122
+ }
123
+ });
124
+ }
125
+ _emit(ev) {
126
+ if (!this.clickOutsideEnabled) {
127
+ return;
128
+ }
129
+ this._ngZone.run(() => this.clickOutside.emit(ev));
130
+ }
131
+ _shouldExclude(target) {
132
+ // tslint:disable-next-line:prefer-const
133
+ for (let excludedNode of this._nodesExcluded) {
134
+ if (excludedNode.contains(target)) {
135
+ return true;
136
+ }
137
+ }
138
+ return false;
139
+ }
140
+ _initClickOutsideListener() {
141
+ this._ngZone.runOutsideAngular(() => {
142
+ this._events.forEach(e => document.addEventListener(e, this._onClickBody));
143
+ });
144
+ }
145
+ _removeClickOutsideListener() {
146
+ this._ngZone.runOutsideAngular(() => {
147
+ this._events.forEach(e => document.removeEventListener(e, this._onClickBody));
148
+ });
149
+ }
150
+ _initAttachOutsideOnClickListener() {
151
+ this._ngZone.runOutsideAngular(() => {
152
+ this._events.forEach(e => this._el.nativeElement.addEventListener(e, this._initOnClickBody));
153
+ });
154
+ }
155
+ _removeAttachOutsideOnClickListener() {
156
+ this._ngZone.runOutsideAngular(() => {
157
+ this._events.forEach(e => this._el.nativeElement.removeEventListener(e, this._initOnClickBody));
158
+ });
159
+ }
160
+ _initWindowBlurListener() {
161
+ this._ngZone.runOutsideAngular(() => {
162
+ window.addEventListener('blur', this._onWindowBlur);
163
+ });
164
+ }
165
+ _removeWindowBlurListener() {
166
+ this._ngZone.runOutsideAngular(() => {
167
+ window.removeEventListener('blur', this._onWindowBlur);
168
+ });
169
+ }
170
+ }
171
+ ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive });
172
+ ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0", type: ClickOutsideDirective, selector: "[clickOutside]", inputs: { clickOutsideEnabled: "clickOutsideEnabled", attachOutsideOnClick: "attachOutsideOnClick", delayClickOutsideInit: "delayClickOutsideInit", emitOnBlur: "emitOnBlur", exclude: "exclude", excludeBeforeClick: "excludeBeforeClick", clickOutsideEvents: "clickOutsideEvents" }, outputs: { clickOutside: "clickOutside" }, usesOnChanges: true, ngImport: i0 });
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ClickOutsideDirective, decorators: [{
174
+ type: Directive,
175
+ args: [{ selector: '[clickOutside]' }]
176
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
177
+ type: Inject,
178
+ args: [PLATFORM_ID]
179
+ }] }]; }, propDecorators: { clickOutsideEnabled: [{
180
+ type: Input
181
+ }], attachOutsideOnClick: [{
182
+ type: Input
183
+ }], delayClickOutsideInit: [{
184
+ type: Input
185
+ }], emitOnBlur: [{
186
+ type: Input
187
+ }], exclude: [{
188
+ type: Input
189
+ }], excludeBeforeClick: [{
190
+ type: Input
191
+ }], clickOutsideEvents: [{
192
+ type: Input
193
+ }], clickOutside: [{
194
+ type: Output
195
+ }] } });
196
+
197
+ class DropDownMenuComponent {
198
+ constructor() {
199
+ this.options = [];
200
+ // tslint:disable-next-line:no-input-rename
201
+ this.selectedValue = null;
202
+ this.multiple = false;
203
+ this.placeholder = 'Παρακαλώ επιλέξτε...';
204
+ this.selectedOption$ = null;
205
+ this.selectedChange = new EventEmitter();
206
+ this.selectedChanged = new EventEmitter();
207
+ this.expanded$ = false;
208
+ }
209
+ get selectedOption() {
210
+ return this.selectedOption$;
211
+ }
212
+ set selectedOption(option) {
213
+ this.selectedOption$ = option;
214
+ this.selectedValue = option ? option.value : null;
215
+ this.expanded = false;
216
+ }
217
+ get expanded() {
218
+ return this.expanded$;
219
+ }
220
+ set expanded(value) {
221
+ this.expanded$ = value;
222
+ }
223
+ ngOnChanges(changes) {
224
+ if (this.options && this.options.length > 0 && this.selectedValue !== null && this.selectedValue !== undefined) {
225
+ this.selectedOption$ = this.options.filter((o) => o.value === this.selectedValue)[0];
226
+ }
227
+ }
228
+ ngOnInit() { }
229
+ isSelected(option) {
230
+ return option != null && this.selectedValue != null && option.value === this.selectedValue;
231
+ }
232
+ onClickOutside($event) {
233
+ this.expanded = false;
234
+ }
235
+ selectOption(option) {
236
+ this.selectedOption = option;
237
+ this.selectedChange.emit(option.value);
238
+ this.selectedChanged.emit(option.value);
239
+ }
240
+ }
241
+ DropDownMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DropDownMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
242
+ DropDownMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: DropDownMenuComponent, selector: "lib-drop-down-menu", inputs: { options: "options", selectedValue: ["selected", "selectedValue"], multiple: "multiple", placeholder: "placeholder" }, outputs: { selectedChange: "selectedChange", selectedChanged: "selectedChanged" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"dropdown-container\" (clickOutside)=\"onClickOutside($event)\">\n <button\n type=\"button\"\n (click)=\"expanded = !expanded\"\n class=\"dropdown-button\"\n aria-haspopup=\"listbox\"\n aria-expanded=\"true\"\n aria-labelledby=\"listbox-label\"\n >\n <span class=\"dropdown-selected-text\">\n {{ selectedOption?.text || placeholder }}\n </span>\n <span class=\"dropdown-button-icon\">\n <!-- Heroicon name: solid/selector -->\n <svg class=\"dropdown-arrow\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path\n fill-rule=\"evenodd\"\n d=\"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n </span>\n </button>\n <ul\n *ngIf=\"expanded && options && options.length > 0\"\n class=\"dropdown-ul\"\n tabindex=\"-1\"\n role=\"listbox\"\n aria-labelledby=\"listbox-label\"\n aria-activedescendant=\"listbox-option-3\"\n >\n <ng-container *ngFor=\"let option of options\">\n <li\n [class]=\"isSelected(option) ? 'dropdown-li-selected' : 'dropdown-li'\"\n (click)=\"selectOption(option)\"\n id=\"listbox-option-0\"\n role=\"option\"\n >\n <span [class]=\"isSelected(option) ? 'dropdown-li-selected-text' : 'dropdown-li-text'\">\n {{ option.text }}\n </span>\n <span *ngIf=\"isSelected(option)\" class=\"dropdown-li-selected-indicator-container\">\n <!-- Heroicon name: solid/check -->\n <svg\n class=\"dropdown-li-selected-indicator\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n >\n <path\n fill-rule=\"evenodd\"\n d=\"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n </span>\n </li>\n </ng-container>\n </ul>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }] });
243
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DropDownMenuComponent, decorators: [{
244
+ type: Component,
245
+ args: [{ selector: 'lib-drop-down-menu', template: "<div class=\"dropdown-container\" (clickOutside)=\"onClickOutside($event)\">\n <button\n type=\"button\"\n (click)=\"expanded = !expanded\"\n class=\"dropdown-button\"\n aria-haspopup=\"listbox\"\n aria-expanded=\"true\"\n aria-labelledby=\"listbox-label\"\n >\n <span class=\"dropdown-selected-text\">\n {{ selectedOption?.text || placeholder }}\n </span>\n <span class=\"dropdown-button-icon\">\n <!-- Heroicon name: solid/selector -->\n <svg class=\"dropdown-arrow\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path\n fill-rule=\"evenodd\"\n d=\"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n </span>\n </button>\n <ul\n *ngIf=\"expanded && options && options.length > 0\"\n class=\"dropdown-ul\"\n tabindex=\"-1\"\n role=\"listbox\"\n aria-labelledby=\"listbox-label\"\n aria-activedescendant=\"listbox-option-3\"\n >\n <ng-container *ngFor=\"let option of options\">\n <li\n [class]=\"isSelected(option) ? 'dropdown-li-selected' : 'dropdown-li'\"\n (click)=\"selectOption(option)\"\n id=\"listbox-option-0\"\n role=\"option\"\n >\n <span [class]=\"isSelected(option) ? 'dropdown-li-selected-text' : 'dropdown-li-text'\">\n {{ option.text }}\n </span>\n <span *ngIf=\"isSelected(option)\" class=\"dropdown-li-selected-indicator-container\">\n <!-- Heroicon name: solid/check -->\n <svg\n class=\"dropdown-li-selected-indicator\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n >\n <path\n fill-rule=\"evenodd\"\n d=\"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n </span>\n </li>\n </ng-container>\n </ul>\n</div>\n" }]
246
+ }], ctorParameters: function () { return []; }, propDecorators: { options: [{
247
+ type: Input
248
+ }], selectedValue: [{
249
+ type: Input,
250
+ args: ['selected']
251
+ }], multiple: [{
252
+ type: Input
253
+ }], placeholder: [{
254
+ type: Input
255
+ }], selectedChange: [{
256
+ type: Output
257
+ }], selectedChanged: [{
258
+ type: Output
259
+ }] } });
260
+
261
+ class Icons {
262
+ }
263
+ // https://uifabricicons.azurewebsites.net/
264
+ Icons.Dashboard = `ms-Icon ms-Icon--HomeGroup `;
265
+ Icons.Locations = `ms-Icon ms-Icon--MapPin `;
266
+ Icons.ChargePoints = `ms-Icon ms-Icon--ChatBot `;
267
+ Icons.Transations = `ms-Icon ms-Icon--PaymentCard `;
268
+ Icons.Badges = `ms-Icon ms-Icon--IDBadge `;
269
+ Icons.Information = `ms-Icon ms-Icon--Info`;
270
+ Icons.Refresh = `ms-Icon ms-Icon--Refresh`;
271
+ Icons.Search = `ms-Icon ms-Icon--Search`;
272
+ Icons.Add = `ms-Icon ms-Icon--Add`;
273
+ Icons.Delete = `ms-Icon ms-Icon--Delete`;
274
+ Icons.SendEmail = `ms-Icon ms-Icon--NewMail`;
275
+ Icons.Filter = `ms-Icon ms-Icon--Filter`;
276
+ Icons.Export = `ms-Icon ms-Icon--ExcelDocument`;
277
+ Icons.Import = `ms-Icon ms-Icon--PeopleAdd`;
278
+ Icons.TilesView = `ms-Icon ms-Icon--AppIconDefault`;
279
+ Icons.TableView = `ms-Icon ms-Icon--Table`;
280
+ Icons.MapView = `ms-Icon ms-Icon--MapPin`;
281
+ Icons.EntryView = `ms-Icon ms-Icon--EntryView`;
282
+ Icons.Separator = `ms-Icon ms-Icon--Separator text-white`;
283
+ Icons.ItemsCount = 'ms-Icon ms-Icon--Boards';
284
+ Icons.Heart = 'ms-Icon ms-Icon--Heart';
285
+ Icons.HeartBroken = 'ms-Icon ms-Icon--HeartBroken';
286
+ Icons.DateTime = 'ms-Icon ms-Icon--ReminderTime';
287
+ Icons.Expand = 'ms-Icon ms-Icon--ChevronDown';
288
+ Icons.Collapse = 'ms-Icon ms-Icon--ChevronUp';
289
+ Icons.SortAsc = 'ms-Icon ms-Icon--Ascending';
290
+ Icons.SortDesc = 'ms-Icon ms-Icon--Descending';
291
+ Icons.Details = ' ms-Icon ms-Icon--AccountActivity';
292
+ Icons.Messages = ' ms-Icon ms-Icon--Message';
293
+ Icons.MessagesUnread = ' ms-Icon ms-Icon--MessageFill';
294
+
295
+ class NavLink {
296
+ constructor(text, path, exact = false, external = false, icon, data) {
297
+ this.type = 'router';
298
+ this.text = text;
299
+ this.path = path;
300
+ this.exact = exact;
301
+ this.external = external;
302
+ this.icon = icon;
303
+ this.data = data;
304
+ }
305
+ }
306
+ class ExternalNavLink extends NavLink {
307
+ constructor(text, path, openInNewTab, icon) {
308
+ super(text, path, true, openInNewTab, icon);
309
+ this.type = 'external';
310
+ }
311
+ }
312
+ class FragmentNavLink extends NavLink {
313
+ constructor(text, path, icon) {
314
+ super(text, path, true, true, icon);
315
+ this.type = 'fragment';
316
+ }
317
+ }
318
+ class NotificationNavLink extends NavLink {
319
+ constructor(text, path, isRead, creationDate) {
320
+ super(text, path, true, false, undefined);
321
+ this.isRead = isRead;
322
+ this.creationDate = creationDate;
323
+ }
324
+ }
325
+ class ViewAction {
326
+ constructor(type, key, param, icon, tooltip) {
327
+ this.type = type;
328
+ this.key = key;
329
+ this.param = param;
330
+ this.icon = icon;
331
+ this.tooltip = tooltip;
332
+ }
333
+ }
334
+ class ListViewType {
335
+ }
336
+ ListViewType.Tiles = 'tiles';
337
+ ListViewType.Table = 'table';
338
+ ListViewType.Map = 'map';
339
+ ListViewType.Gallery = 'gallery';
340
+ class RouterViewAction extends ViewAction {
341
+ constructor(icon, link, outlet, tooltip) {
342
+ super('router-link', null, null, icon, tooltip);
343
+ this.outlet = null;
344
+ this.link = null;
345
+ this.outlet = outlet;
346
+ this.link = link;
347
+ }
348
+ }
349
+ class SwitchViewAction extends ViewAction {
350
+ constructor(view, icon, tooltip) {
351
+ super('switch-view', null, view, icon, tooltip);
352
+ }
353
+ }
354
+ class HeaderMetaItem {
355
+ constructor() {
356
+ this.key = null;
357
+ this.icon = null;
358
+ this.text = null;
359
+ }
360
+ }
361
+ class MenuOption {
362
+ constructor(text, value, description, data, icon) {
363
+ this.text = text;
364
+ this.value = value;
365
+ this.description = description;
366
+ this.data = data;
367
+ this.icon = icon;
368
+ }
369
+ }
370
+ var ShellLayoutType;
371
+ (function (ShellLayoutType) {
372
+ ShellLayoutType["Stacked"] = "Stacked";
373
+ ShellLayoutType["Sidebar"] = "Sidebar";
374
+ })(ShellLayoutType || (ShellLayoutType = {}));
375
+ class DefaultShellConfig {
376
+ constructor() {
377
+ this.layout = ShellLayoutType.Stacked;
378
+ this.appLogo = 'https://tailwindui.com/img/logos/workflow-mark.svg?color=white';
379
+ this.appLogoAlt = 'your app name here';
380
+ this.showHeader = true;
381
+ this.showUserNameOnHeader = false;
382
+ this.showAlertsOnHeader = false;
383
+ this.showFooter = true;
384
+ this.fluid = false;
385
+ }
386
+ }
387
+ var SCREEN_SIZE;
388
+ (function (SCREEN_SIZE) {
389
+ SCREEN_SIZE[SCREEN_SIZE["XS"] = 0] = "XS";
390
+ SCREEN_SIZE[SCREEN_SIZE["SM"] = 1] = "SM";
391
+ SCREEN_SIZE[SCREEN_SIZE["MD"] = 2] = "MD";
392
+ SCREEN_SIZE[SCREEN_SIZE["LG"] = 3] = "LG";
393
+ SCREEN_SIZE[SCREEN_SIZE["XL"] = 4] = "XL";
394
+ })(SCREEN_SIZE || (SCREEN_SIZE = {}));
395
+ var ToastType;
396
+ (function (ToastType) {
397
+ ToastType["Info"] = "info";
398
+ ToastType["Success"] = "success";
399
+ ToastType["Error"] = "error";
400
+ ToastType["Warning"] = "warning";
401
+ })(ToastType || (ToastType = {}));
402
+ const NULL_TOAST = { title: '_____NULL_____' };
403
+ var SidePaneSize;
404
+ (function (SidePaneSize) {
405
+ SidePaneSize["Default"] = "";
406
+ SidePaneSize["Small25"] = "25%";
407
+ SidePaneSize["Medium50"] = "50%";
408
+ SidePaneSize["Large75"] = "75%";
409
+ })(SidePaneSize || (SidePaneSize = {}));
410
+ var SidePaneOverlayType;
411
+ (function (SidePaneOverlayType) {
412
+ SidePaneOverlayType["Default"] = "";
413
+ SidePaneOverlayType["None"] = "-opacity-0";
414
+ SidePaneOverlayType["Light"] = "";
415
+ SidePaneOverlayType["Dark"] = "-opacity-50";
416
+ })(SidePaneOverlayType || (SidePaneOverlayType = {}));
417
+
418
+ class PagerComponent {
419
+ constructor(router) {
420
+ this.router = router;
421
+ // BUSY STATE
422
+ this.busy = false;
423
+ // PAGING
424
+ this.count = null;
425
+ this.page = 1;
426
+ // tslint:disable-next-line:no-input-rename
427
+ this.pageSize = 20;
428
+ // tslint:disable-next-line:no-input-rename
429
+ this.pageSizeOptions = [
430
+ new MenuOption('10', 10),
431
+ new MenuOption('20', 20),
432
+ new MenuOption('30', 30),
433
+ new MenuOption('50', 50),
434
+ new MenuOption('100', 100)
435
+ ];
436
+ this.pages = [];
437
+ this.pageChanged = new EventEmitter();
438
+ this.pageSizeChanged = new EventEmitter();
439
+ this.canPreviousPage = false;
440
+ this.canNextPage = false;
441
+ // SORTING
442
+ // tslint:disable-next-line:no-input-rename
443
+ this.sortOptions = [];
444
+ // tslint:disable-next-line:no-input-rename
445
+ this.sort = null;
446
+ // tslint:disable-next-line:no-input-rename
447
+ this.sortdir = 'desc';
448
+ this.sortChanged = new EventEmitter();
449
+ this.sortdirChanged = new EventEmitter();
450
+ this.sortdirIcon = Icons.SortDesc;
451
+ }
452
+ ngOnChanges(changes) {
453
+ this.calcPages();
454
+ }
455
+ ngOnInit() {
456
+ }
457
+ calcPages() {
458
+ this.pages = [];
459
+ if (this.count && this.count > 0) {
460
+ const pageCount = this.count / this.pageSize;
461
+ for (let i = 0; i < pageCount; i++) {
462
+ this.pages.push(new MenuOption(i + 1 + '', i + 1));
463
+ }
464
+ }
465
+ this.canPreviousPage = this.page > 1;
466
+ this.canNextPage = this.page < this.pages.length;
467
+ }
468
+ nextPage() {
469
+ const next = this.page + 1;
470
+ this.gotoPage(next);
471
+ }
472
+ previousPage() {
473
+ const previous = this.page - 1;
474
+ this.gotoPage(previous);
475
+ }
476
+ gotoPage(page) {
477
+ this.page = page;
478
+ this.pageChanged.emit(page);
479
+ this.calcPages();
480
+ }
481
+ pageSizeOptionChanged(pageSize) {
482
+ this.pageSizeChanged.emit(pageSize);
483
+ this.calcPages();
484
+ }
485
+ pageOptionChanged(page) {
486
+ this.pageChanged.emit(page);
487
+ this.calcPages();
488
+ }
489
+ sortOptionChanged(sort) {
490
+ this.sortChanged.emit(sort);
491
+ }
492
+ toggleSortdir() {
493
+ let sortdir = 'desc';
494
+ if (this.sortdir === 'desc') {
495
+ sortdir = 'asc';
496
+ this.sortdirIcon = Icons.SortAsc;
497
+ }
498
+ else {
499
+ sortdir = 'desc';
500
+ this.sortdirIcon = Icons.SortDesc;
501
+ }
502
+ this.sortdirChanged.emit(sortdir);
503
+ }
504
+ }
505
+ PagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: PagerComponent, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
506
+ PagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: PagerComponent, selector: "lib-pager", inputs: { busy: "busy", count: "count", page: "page", pageSize: ["page-size", "pageSize"], pageSizeOptions: ["page-size-options", "pageSizeOptions"], sortOptions: ["sort-options", "sortOptions"], sort: "sort", sortdir: ["sort-dir", "sortdir"] }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged", sortChanged: "sortChanged", sortdirChanged: "sortdirChanged" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"pager-container\">\n <div class=\"pager-container-inner\">\n <div class=\"inline-flex\" *ngIf=\"sortOptions && sortOptions.length > 0\">\n <lib-drop-down-menu [options]=\"sortOptions\" [selected]=\"sort\" (selectedChanged)=\"sortOptionChanged($event)\"></lib-drop-down-menu>\n <button (click)=\"toggleSortdir()\" [disabled]=\"!sort || busy\" class=\"pager-icon-button\">\n <span class=\"sr-only\">sort direction</span>\n <span class=\"inline-block relative\">\n <i [class]=\"sortdirIcon\"></i>\n </span>\n </button>\n </div>\n <div class=\"pager-pages-container\">\n <lib-drop-down-menu [options]=\"pageSizeOptions\" [selected]=\"pageSize\" (selectedChanged)=\"pageSizeOptionChanged($event)\"></lib-drop-down-menu>\n <div class=\"mx-2\" *ngIf=\"count !== null && count > pageSize\">\n <button [disabled]=\"!canPreviousPage || busy\" (click)=\"previousPage()\"\n class=\"pager-arrow-button-left\">\n <span class=\"sr-only\">Previous</span>\n <svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" d=\"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z\" clip-rule=\"evenodd\" />\n </svg>\n </button>\n <button [disabled]=\"!canNextPage || busy\" (click)=\"nextPage()\"\n class=\"pager-arrow-button-right\">\n <span class=\"sr-only\">Next</span>\n <svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" d=\"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z\" clip-rule=\"evenodd\" />\n </svg>\n </button>\n </div>\n <lib-drop-down-menu *ngIf=\"(pages && pages.length > 0) && (count !== null && count > pageSize)\" [options]=\"pages\" [selected]=\"page\" (selectedChanged)=\"pageOptionChanged($event)\"></lib-drop-down-menu>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DropDownMenuComponent, selector: "lib-drop-down-menu", inputs: ["options", "selected", "multiple", "placeholder"], outputs: ["selectedChange", "selectedChanged"] }] });
507
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: PagerComponent, decorators: [{
508
+ type: Component,
509
+ args: [{ selector: 'lib-pager', template: "<div class=\"pager-container\">\n <div class=\"pager-container-inner\">\n <div class=\"inline-flex\" *ngIf=\"sortOptions && sortOptions.length > 0\">\n <lib-drop-down-menu [options]=\"sortOptions\" [selected]=\"sort\" (selectedChanged)=\"sortOptionChanged($event)\"></lib-drop-down-menu>\n <button (click)=\"toggleSortdir()\" [disabled]=\"!sort || busy\" class=\"pager-icon-button\">\n <span class=\"sr-only\">sort direction</span>\n <span class=\"inline-block relative\">\n <i [class]=\"sortdirIcon\"></i>\n </span>\n </button>\n </div>\n <div class=\"pager-pages-container\">\n <lib-drop-down-menu [options]=\"pageSizeOptions\" [selected]=\"pageSize\" (selectedChanged)=\"pageSizeOptionChanged($event)\"></lib-drop-down-menu>\n <div class=\"mx-2\" *ngIf=\"count !== null && count > pageSize\">\n <button [disabled]=\"!canPreviousPage || busy\" (click)=\"previousPage()\"\n class=\"pager-arrow-button-left\">\n <span class=\"sr-only\">Previous</span>\n <svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" d=\"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z\" clip-rule=\"evenodd\" />\n </svg>\n </button>\n <button [disabled]=\"!canNextPage || busy\" (click)=\"nextPage()\"\n class=\"pager-arrow-button-right\">\n <span class=\"sr-only\">Next</span>\n <svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" d=\"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z\" clip-rule=\"evenodd\" />\n </svg>\n </button>\n </div>\n <lib-drop-down-menu *ngIf=\"(pages && pages.length > 0) && (count !== null && count > pageSize)\" [options]=\"pages\" [selected]=\"page\" (selectedChanged)=\"pageOptionChanged($event)\"></lib-drop-down-menu>\n </div>\n </div>\n</div>\n" }]
510
+ }], ctorParameters: function () { return [{ type: i1$1.Router }]; }, propDecorators: { busy: [{
511
+ type: Input
512
+ }], count: [{
513
+ type: Input
514
+ }], page: [{
515
+ type: Input
516
+ }], pageSize: [{
517
+ type: Input,
518
+ args: ['page-size']
519
+ }], pageSizeOptions: [{
520
+ type: Input,
521
+ args: ['page-size-options']
522
+ }], pageChanged: [{
523
+ type: Output
524
+ }], pageSizeChanged: [{
525
+ type: Output
526
+ }], sortOptions: [{
527
+ type: Input,
528
+ args: ['sort-options']
529
+ }], sort: [{
530
+ type: Input,
531
+ args: ['sort']
532
+ }], sortdir: [{
533
+ type: Input,
534
+ args: ['sort-dir']
535
+ }], sortChanged: [{
536
+ type: Output
537
+ }], sortdirChanged: [{
538
+ type: Output
539
+ }] } });
540
+
541
+ class ListTileComponent {
542
+ constructor() {
543
+ this.template = null;
544
+ }
545
+ }
546
+ ListTileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
547
+ ListTileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ListTileComponent, selector: "lib-list-tile", queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
548
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListTileComponent, decorators: [{
549
+ type: Component,
550
+ args: [{ selector: 'lib-list-tile', template: '<ng-content></ng-content>' }]
551
+ }], ctorParameters: function () { return []; }, propDecorators: { template: [{
552
+ type: ContentChild,
553
+ args: [TemplateRef]
554
+ }] } });
555
+
556
+ class ListColumnComponent {
557
+ constructor() {
558
+ this.title = null;
559
+ // tslint:disable-next-line:no-input-rename
560
+ this.fullWidth = false;
561
+ this.template = null;
562
+ }
563
+ }
564
+ ListColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
565
+ ListColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ListColumnComponent, selector: "lib-list-column", inputs: { title: "title", fullWidth: ["full-width", "fullWidth"] }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
566
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListColumnComponent, decorators: [{
567
+ type: Component,
568
+ args: [{ selector: 'lib-list-column', template: '<ng-content></ng-content>' }]
569
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
570
+ type: Input
571
+ }], fullWidth: [{
572
+ type: Input,
573
+ args: ['full-width']
574
+ }], template: [{
575
+ type: ContentChild,
576
+ args: [TemplateRef]
577
+ }] } });
578
+
579
+ class ListDetailsSectionComponent {
580
+ constructor() {
581
+ this.template = null;
582
+ }
583
+ }
584
+ ListDetailsSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListDetailsSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
585
+ ListDetailsSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ListDetailsSectionComponent, selector: "lib-list-details-section", queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
586
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListDetailsSectionComponent, decorators: [{
587
+ type: Component,
588
+ args: [{ selector: 'lib-list-details-section', template: '<ng-content></ng-content>' }]
589
+ }], ctorParameters: function () { return []; }, propDecorators: { template: [{
590
+ type: ContentChild,
591
+ args: [TemplateRef]
592
+ }] } });
593
+
594
+ class ListViewEmptyStateComponent {
595
+ constructor() {
596
+ this.title = 'Δεν βρέθηκαν εγγραφές.';
597
+ // tslint:disable-next-line:no-input-rename
598
+ this.subTitle = 'Παρακαλώ αλλάξτε τα κριτήρια αναζήτησης σας ή ξεκινήστε προσθέτοντας μια νέα εγγραφή';
599
+ // tslint:disable-next-line:no-input-rename
600
+ this.newItemLabel = 'Νέα εγγραφή';
601
+ }
602
+ ngOnInit() {
603
+ }
604
+ }
605
+ ListViewEmptyStateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListViewEmptyStateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
606
+ ListViewEmptyStateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ListViewEmptyStateComponent, selector: "lib-list-view-empty-state", inputs: { title: "title", subTitle: ["sub-title", "subTitle"], newItemLabel: ["new-item-label", "newItemLabel"] }, ngImport: i0, template: "<div class=\"p-20\">\n <div class=\"text-center p-2\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"mx-auto h-12 w-12 text-gray-400\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4\" />\n </svg>\n <h3 class=\"mt-2 text-sm font-medium text-gray-900\">{{title}}</h3>\n <p class=\"mt-1 text-sm text-gray-500\">\n {{subTitle}}\n </p>\n <div class=\"mt-6\" *ngIf=\"false\">\n <button type=\"button\" class=\"inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-gray-600 hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-gray-500\">\n <!-- Heroicon name: solid/plus -->\n <svg class=\"-ml-1 mr-2 h-6 w-6\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\">\n <path vector-effect=\"non-scaling-stroke\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z\" />\n </svg>\n {{newItemLabel}}\n </button>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
607
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListViewEmptyStateComponent, decorators: [{
608
+ type: Component,
609
+ args: [{ selector: 'lib-list-view-empty-state', template: "<div class=\"p-20\">\n <div class=\"text-center p-2\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"mx-auto h-12 w-12 text-gray-400\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4\" />\n </svg>\n <h3 class=\"mt-2 text-sm font-medium text-gray-900\">{{title}}</h3>\n <p class=\"mt-1 text-sm text-gray-500\">\n {{subTitle}}\n </p>\n <div class=\"mt-6\" *ngIf=\"false\">\n <button type=\"button\" class=\"inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-gray-600 hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-gray-500\">\n <!-- Heroicon name: solid/plus -->\n <svg class=\"-ml-1 mr-2 h-6 w-6\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\">\n <path vector-effect=\"non-scaling-stroke\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z\" />\n </svg>\n {{newItemLabel}}\n </button>\n </div>\n </div>\n</div>\n" }]
610
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
611
+ type: Input
612
+ }], subTitle: [{
613
+ type: Input,
614
+ args: ['sub-title']
615
+ }], newItemLabel: [{
616
+ type: Input,
617
+ args: ['new-item-label']
618
+ }] } });
619
+
620
+ class SkeletonLoaderComponent {
621
+ constructor() {
622
+ this.count = 5;
623
+ this.type = 'tiles'; // 'large-tile', 'table'
624
+ }
625
+ ngOnInit() {
626
+ }
627
+ counter(i) {
628
+ return new Array(i);
629
+ }
630
+ }
631
+ SkeletonLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SkeletonLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
632
+ SkeletonLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: SkeletonLoaderComponent, selector: "lib-skeleton-loader", inputs: { count: "count", type: "type" }, ngImport: i0, template: "<!-- <h1>SKELETON LOADER!</h1> -->\n<ng-container *ngSwitch=\"type\">\n <div class=\"cards-deck-4\" *ngSwitchCase=\"'tiles'\">\n <ng-container *ngFor=\"let i of counter(count)\">\n <div class=\"relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md rounded-lg\">\n <div class=\"animate-pulse flex flex-col\">\n <div class=\"rounded w-full h-32 bg-gray-200\"></div>\n <div class=\"flex flex-col mt-5\">\n <div class=\"w-full h-5 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-10/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-8/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"grid grid-cols-2 mt-5 gap-x-2 gap-y-1\">\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"flex items-center mt-5\">\n <div>\n <div class=\"rounded-full bg-gray-200 w-10 h-10\"></div>\n </div>\n <div class=\"flex justify-between w-full ml-3\">\n <div class=\"w-5/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"w-2/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <div class=\"cards-deck-3\" *ngSwitchCase=\"'large-tiles'\">\n <ng-container *ngFor=\"let i of counter(count)\">\n <div class=\"relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md rounded-lg\">\n <div class=\"animate-pulse flex flex-col\">\n <div class=\"rounded w-full h-52 bg-gray-200\"></div>\n <div class=\"flex flex-col mt-5\">\n <div class=\"w-full h-5 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-10/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-8/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"grid grid-cols-2 mt-5 gap-x-2 gap-y-1\">\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"flex items-center mt-5\">\n <div>\n <div class=\"rounded-full bg-gray-200 w-10 h-10\"></div>\n </div>\n <div class=\"flex justify-between w-full ml-3\">\n <div class=\"w-5/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"w-2/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <div class=\"cards-deck-1\" *ngSwitchCase=\"'table'\">\n <ng-container *ngFor=\"let i of counter(count)\">\n <div class=\"border border-light-blue-300 shadow rounded-sm p-4 max-w-sm w-full mx-auto mb-4\">\n <div class=\"animate-pulse flex space-x-4\">\n <div class=\"rounded-full bg-light-blue-400 h-12 w-12\">&nbsp;</div>\n <div class=\"flex-1 space-y-4 py-1\">\n <div class=\"h-4 bg-light-blue-400 rounded w-3/4\">&nbsp;</div>\n <div class=\"space-y-2\">\n <div class=\"h-4 bg-light-blue-400 rounded\">&nbsp;</div>\n <div class=\"h-4 bg-light-blue-400 rounded w-5/6\">&nbsp;</div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <div class=\"cards-deck-3\" *ngSwitchDefault>\n <ng-container *ngFor=\"let i of counter(count)\">\n <div class=\"relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md rounded-lg\">\n <div class=\"animate-pulse flex flex-col\">\n <div class=\"rounded w-full h-52 bg-gray-200\"></div>\n <div class=\"flex flex-col mt-5\">\n <div class=\"w-full h-5 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-10/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-8/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"grid grid-cols-2 mt-5 gap-x-2 gap-y-1\">\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"flex items-center mt-5\">\n <div>\n <div class=\"rounded-full bg-gray-200 w-10 h-10\"></div>\n </div>\n <div class=\"flex justify-between w-full ml-3\">\n <div class=\"w-5/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"w-2/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
633
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SkeletonLoaderComponent, decorators: [{
634
+ type: Component,
635
+ args: [{ selector: 'lib-skeleton-loader', template: "<!-- <h1>SKELETON LOADER!</h1> -->\n<ng-container *ngSwitch=\"type\">\n <div class=\"cards-deck-4\" *ngSwitchCase=\"'tiles'\">\n <ng-container *ngFor=\"let i of counter(count)\">\n <div class=\"relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md rounded-lg\">\n <div class=\"animate-pulse flex flex-col\">\n <div class=\"rounded w-full h-32 bg-gray-200\"></div>\n <div class=\"flex flex-col mt-5\">\n <div class=\"w-full h-5 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-10/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-8/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"grid grid-cols-2 mt-5 gap-x-2 gap-y-1\">\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"flex items-center mt-5\">\n <div>\n <div class=\"rounded-full bg-gray-200 w-10 h-10\"></div>\n </div>\n <div class=\"flex justify-between w-full ml-3\">\n <div class=\"w-5/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"w-2/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <div class=\"cards-deck-3\" *ngSwitchCase=\"'large-tiles'\">\n <ng-container *ngFor=\"let i of counter(count)\">\n <div class=\"relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md rounded-lg\">\n <div class=\"animate-pulse flex flex-col\">\n <div class=\"rounded w-full h-52 bg-gray-200\"></div>\n <div class=\"flex flex-col mt-5\">\n <div class=\"w-full h-5 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-10/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-8/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"grid grid-cols-2 mt-5 gap-x-2 gap-y-1\">\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"flex items-center mt-5\">\n <div>\n <div class=\"rounded-full bg-gray-200 w-10 h-10\"></div>\n </div>\n <div class=\"flex justify-between w-full ml-3\">\n <div class=\"w-5/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"w-2/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <div class=\"cards-deck-1\" *ngSwitchCase=\"'table'\">\n <ng-container *ngFor=\"let i of counter(count)\">\n <div class=\"border border-light-blue-300 shadow rounded-sm p-4 max-w-sm w-full mx-auto mb-4\">\n <div class=\"animate-pulse flex space-x-4\">\n <div class=\"rounded-full bg-light-blue-400 h-12 w-12\">&nbsp;</div>\n <div class=\"flex-1 space-y-4 py-1\">\n <div class=\"h-4 bg-light-blue-400 rounded w-3/4\">&nbsp;</div>\n <div class=\"space-y-2\">\n <div class=\"h-4 bg-light-blue-400 rounded\">&nbsp;</div>\n <div class=\"h-4 bg-light-blue-400 rounded w-5/6\">&nbsp;</div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <div class=\"cards-deck-3\" *ngSwitchDefault>\n <ng-container *ngFor=\"let i of counter(count)\">\n <div class=\"relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md rounded-lg\">\n <div class=\"animate-pulse flex flex-col\">\n <div class=\"rounded w-full h-52 bg-gray-200\"></div>\n <div class=\"flex flex-col mt-5\">\n <div class=\"w-full h-5 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-10/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-8/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"grid grid-cols-2 mt-5 gap-x-2 gap-y-1\">\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n <div class=\"mt-2 w-full h-3 bg-gray-200 rounded\"></div>\n </div>\n\n <div class=\"flex items-center mt-5\">\n <div>\n <div class=\"rounded-full bg-gray-200 w-10 h-10\"></div>\n </div>\n <div class=\"flex justify-between w-full ml-3\">\n <div class=\"w-5/12 h-3 bg-gray-200 rounded\"></div>\n <div class=\"w-2/12 h-3 bg-gray-200 rounded\"></div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n</ng-container>\n" }]
636
+ }], ctorParameters: function () { return []; }, propDecorators: { count: [{
637
+ type: Input
638
+ }], type: [{
639
+ type: Input
640
+ }] } });
641
+
642
+ class ListViewComponent {
643
+ constructor() {
644
+ // BUSY STATE
645
+ this.busy = false;
646
+ this.expandIcon = Icons.Expand;
647
+ this.collapseIcon = Icons.Collapse;
648
+ // tslint:disable-next-line:no-input-rename
649
+ this.showPager = true;
650
+ // PAGING - pass through for pager component
651
+ this.count = null;
652
+ this.page = 1;
653
+ // tslint:disable-next-line:no-input-rename
654
+ this.pageSize = 20;
655
+ // tslint:disable-next-line:no-input-rename
656
+ this.pageSizeOptions = [];
657
+ this.pageChanged = new EventEmitter();
658
+ this.pageSizeChanged = new EventEmitter();
659
+ this.detailsOpened = new EventEmitter();
660
+ this.tableViewSupported = false;
661
+ this.multipleFullWidth = false;
662
+ this.fullWidthTHClass = 'list-view-th-full';
663
+ this.fullWidthTDClass = 'list-view-td-full';
664
+ this.tilesViewSupported = false;
665
+ this.detailsSectionSupported = false;
666
+ this.loaderItems = [];
667
+ // DETAILS SECTION
668
+ // Check if details section and button should be displayed according to the count of the value given
669
+ // tslint:disable-next-line:no-input-rename
670
+ this.detailsSectionPropertyCount = null;
671
+ // SORTING - pass through for pager component
672
+ // tslint:disable-next-line:no-input-rename
673
+ this.sortOptions = [];
674
+ this.sort = null;
675
+ // tslint:disable-next-line:no-input-rename
676
+ this.sortdir = '-';
677
+ this.sortChanged = new EventEmitter();
678
+ this.sortdirChanged = new EventEmitter();
679
+ this.view = ListViewType.Table;
680
+ // COLUMNS
681
+ this.columns = [];
682
+ this.tilesDeckClass = 'cards-deck-4';
683
+ // tslint:disable-next-line:no-input-rename
684
+ this.tilesCount = 4;
685
+ this.tileTemplate = null;
686
+ this.detailsTemplate = null;
687
+ for (let i = 0; i < 5; i++) {
688
+ this.loaderItems.push({});
689
+ }
690
+ }
691
+ set cols(refs) {
692
+ this.columns = refs?.toArray();
693
+ if (this.columns && this.columns.length > 0) {
694
+ this.tableViewSupported = true;
695
+ }
696
+ this.multipleFullWidth = this.columns.filter(c => c.fullWidth).length > 1;
697
+ this.fullWidthTHClass = this.multipleFullWidth ? 'list-view-th-half' : 'list-view-th-full';
698
+ this.fullWidthTDClass = this.multipleFullWidth ? 'list-view-td-half' : 'list-view-td-full';
699
+ }
700
+ set tiles(ref) {
701
+ this.tileTemplate = ref;
702
+ if (this.tileTemplate) {
703
+ this.tilesViewSupported = true;
704
+ }
705
+ }
706
+ set details(ref) {
707
+ this.detailsTemplate = ref;
708
+ if (this.detailsTemplate) {
709
+ this.detailsSectionSupported = true;
710
+ }
711
+ }
712
+ ngOnChanges(changes) {
713
+ const tilesCountChange = changes['tiles-count'] || changes.tilesCount;
714
+ if (tilesCountChange) {
715
+ this.setTilesDeckClass(tilesCountChange.currentValue);
716
+ }
717
+ }
718
+ // events
719
+ emitPageChanged($event) {
720
+ this.pageChanged.emit($event);
721
+ }
722
+ emitPageSizeChanged($event) {
723
+ this.pageSizeChanged.emit($event);
724
+ }
725
+ emitSortChanged($event) {
726
+ this.sortChanged.emit($event);
727
+ }
728
+ emitSortdirChanged($event) {
729
+ this.sortdirChanged.emit($event);
730
+ }
731
+ toggleDetails(item) {
732
+ item.detailsExpanded = !item.detailsExpanded;
733
+ this.detailsOpened.emit({ item, open: item.detailsExpanded });
734
+ }
735
+ // helpers
736
+ setTilesDeckClass(tiles) {
737
+ if (tiles >= 1 && tiles <= 4) {
738
+ this.tilesDeckClass =
739
+ this.view !== ListViewType.Gallery
740
+ ? `cards-deck-${tiles}`
741
+ : this.items && this.items.length > 0
742
+ ? `gallery-deck-${tiles}`
743
+ : 'gallery-deck';
744
+ }
745
+ else {
746
+ this.tilesDeckClass =
747
+ this.view !== ListViewType.Gallery
748
+ ? 'cards-deck-3'
749
+ : this.items && this.items.length > 0
750
+ ? 'gallery-deck-3'
751
+ : 'gallery-deck';
752
+ }
753
+ }
754
+ }
755
+ ListViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
756
+ ListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ListViewComponent, selector: "lib-list-view", inputs: { busy: "busy", items: "items", showPager: ["show-pager", "showPager"], count: "count", page: "page", pageSize: ["page-size", "pageSize"], pageSizeOptions: ["page-size-options", "pageSizeOptions"], detailsSectionPropertyCount: ["details-section-property-count", "detailsSectionPropertyCount"], sortOptions: ["sort-options", "sortOptions"], sort: "sort", sortdir: ["sort-dir", "sortdir"], view: "view", tilesCount: ["tiles-count", "tilesCount"] }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged", detailsOpened: "detailsOpened", sortChanged: "sortChanged", sortdirChanged: "sortdirChanged" }, queries: [{ propertyName: "tiles", first: true, predicate: ListTileComponent, descendants: true, read: ListTileComponent }, { propertyName: "details", first: true, predicate: ListDetailsSectionComponent, descendants: true, read: ListDetailsSectionComponent }, { propertyName: "cols", predicate: ListColumnComponent, read: ListColumnComponent }], usesOnChanges: true, ngImport: i0, template: "<div class=\"px-2\">\n\n <lib-pager *ngIf=\"showPager\"\n [page]=\"page\"\n [page-size]=\"pageSize\"\n [count]=\"count\"\n [sort-options]=\"sortOptions\"\n [sort]=\"sort\"\n [sort-dir]=\"sortdir\"\n [busy]=\"busy\"\n (pageChanged)=\"emitPageChanged($event)\"\n (pageSizeChanged)=\"emitPageSizeChanged($event)\"\n (sortChanged)=\"emitSortChanged($event)\"\n (sortdirChanged)=\"emitSortdirChanged($event)\">\n </lib-pager>\n</div>\n\n<ng-container [ngSwitch]=\"view\">\n\n <ng-container *ngSwitchCase=\"'tiles'\">\n <div [class]=\"tilesDeckClass\">\n\n <lib-skeleton-loader *ngIf=\"busy\" [count]=\"5\" [type]=\"'tiles'\"></lib-skeleton-loader>\n\n <ng-container *ngIf=\"items && items.length > 0\">\n <ng-container *ngFor=\"let item of items\">\n <span *ngIf=\"!tileTemplate || !tileTemplate.template\">template missing..</span>\n <ng-template [ngTemplateOutlet]=\"tileTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </ng-container>\n </ng-container>\n\n </div>\n </ng-container>\n\n\n <!-- *ngSwitchCase=\"'gallery'\" -->\n <ng-container *ngSwitchCase=\"'gallery'\">\n <ul role=\"list\" [class]=\"tilesDeckClass\">\n\n <lib-skeleton-loader *ngIf=\"busy\" [count]=\"5\" [type]=\"'tiles'\"></lib-skeleton-loader>\n\n <ng-container *ngIf=\"!busy && items && items.length > 0\">\n <ng-container *ngFor=\"let item of items\">\n <span *ngIf=\"!tileTemplate || !tileTemplate.template\">template missing..</span>\n <ng-template [ngTemplateOutlet]=\"tileTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </ng-container>\n </ng-container>\n </ul>\n </ng-container>\n\n <!-- *ngSwitchCase=\"'table'\" -->\n <ng-container *ngSwitchDefault>\n\n <div class=\"list-view-container\">\n <div class=\"list-view-container-inner\">\n <table class=\"list-view-table\">\n <thead class=\"list-view-thead\">\n <tr>\n <ng-container *ngIf=\"detailsSectionSupported\">\n <th class=\"list-view-th-details\"></th>\n </ng-container>\n <ng-container *ngFor=\"let col of columns\">\n <th scope=\"col\"\n [class]=\"col.fullWidth ? fullWidthTHClass : 'list-view-th'\">\n {{col.title}}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody class=\"list-view-tbody\" *ngIf=\"busy\">\n <ng-container *ngFor=\"let item of loaderItems;let i=index\">\n <tr class=\"list-view-tr\">\n <ng-container *ngIf=\"detailsSectionSupported\">\n <td class=\"list-view-td-details\"\n *ngIf=\"detailsSectionPropertyCount !== null ? item[detailsSectionPropertyCount] !== 0 : true; else hiddenDetailsButton\">\n <button disabled\n type=\"button\"\n class=\"expand-collapse-button\">\n <!-- Heroicon name: solid/plus -->\n <i [class]=\"item.detailsExpanded ? collapseIcon : expandIcon\"></i>\n </button>\n </td>\n <ng-template #hiddenDetailsButton>\n <td class=\"list-view-td-details\"></td>\n </ng-template>\n </ng-container>\n <td *ngFor=\"let col of columns\"\n [class]=\"col.fullWidth ? fullWidthTDClass : 'list-view-td'\">\n <div class=\"w-full animate-pulse h-8 bg-gray-200 rounded\"></div>\n </td>\n </tr>\n <ng-container *ngIf=\"detailsSectionSupported\">\n <tr *ngIf=\"item.detailsExpanded\">\n <td [colSpan]=\"columns.length + 1\"\n class=\"list-view-td bg-gray-100\">\n <ng-template [ngTemplateOutlet]=\"detailsTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n <tbody class=\"list-view-tbody\" *ngIf=\"!busy\">\n <ng-container *ngFor=\"let item of items;let i=index\">\n <tr class=\"list-view-tr\">\n <ng-container *ngIf=\"detailsSectionSupported\">\n <td class=\"list-view-td-details\"\n *ngIf=\"detailsSectionPropertyCount !== null ? item[detailsSectionPropertyCount] !== 0 : true; else hiddenDetailsButton\">\n <button (click)=\"toggleDetails(item)\"\n type=\"button\"\n class=\"expand-collapse-button\">\n <!-- Heroicon name: solid/plus -->\n <i [class]=\"item.detailsExpanded ? collapseIcon : expandIcon\"></i>\n </button>\n </td>\n <ng-template #hiddenDetailsButton>\n <td class=\"list-view-td-details\"></td>\n </ng-template>\n </ng-container>\n <td *ngFor=\"let col of columns\"\n [class]=\"col.fullWidth ? fullWidthTDClass : 'list-view-td'\">\n <ng-template [ngTemplateOutlet]=\"col.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </td>\n </tr>\n <ng-container *ngIf=\"detailsSectionSupported\">\n <tr *ngIf=\"item.detailsExpanded\">\n <td [colSpan]=\"columns.length + 1\"\n class=\"list-view-td bg-gray-100\">\n <ng-template [ngTemplateOutlet]=\"detailsTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!busy && items && items.length === 0\">\n <div class=\"cards-deck-1\">\n <lib-list-view-empty-state></lib-list-view-empty-state>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-content></ng-content>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: PagerComponent, selector: "lib-pager", inputs: ["busy", "count", "page", "page-size", "page-size-options", "sort-options", "sort", "sort-dir"], outputs: ["pageChanged", "pageSizeChanged", "sortChanged", "sortdirChanged"] }, { kind: "component", type: ListViewEmptyStateComponent, selector: "lib-list-view-empty-state", inputs: ["title", "sub-title", "new-item-label"] }, { kind: "component", type: SkeletonLoaderComponent, selector: "lib-skeleton-loader", inputs: ["count", "type"] }] });
757
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListViewComponent, decorators: [{
758
+ type: Component,
759
+ args: [{ selector: 'lib-list-view', template: "<div class=\"px-2\">\n\n <lib-pager *ngIf=\"showPager\"\n [page]=\"page\"\n [page-size]=\"pageSize\"\n [count]=\"count\"\n [sort-options]=\"sortOptions\"\n [sort]=\"sort\"\n [sort-dir]=\"sortdir\"\n [busy]=\"busy\"\n (pageChanged)=\"emitPageChanged($event)\"\n (pageSizeChanged)=\"emitPageSizeChanged($event)\"\n (sortChanged)=\"emitSortChanged($event)\"\n (sortdirChanged)=\"emitSortdirChanged($event)\">\n </lib-pager>\n</div>\n\n<ng-container [ngSwitch]=\"view\">\n\n <ng-container *ngSwitchCase=\"'tiles'\">\n <div [class]=\"tilesDeckClass\">\n\n <lib-skeleton-loader *ngIf=\"busy\" [count]=\"5\" [type]=\"'tiles'\"></lib-skeleton-loader>\n\n <ng-container *ngIf=\"items && items.length > 0\">\n <ng-container *ngFor=\"let item of items\">\n <span *ngIf=\"!tileTemplate || !tileTemplate.template\">template missing..</span>\n <ng-template [ngTemplateOutlet]=\"tileTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </ng-container>\n </ng-container>\n\n </div>\n </ng-container>\n\n\n <!-- *ngSwitchCase=\"'gallery'\" -->\n <ng-container *ngSwitchCase=\"'gallery'\">\n <ul role=\"list\" [class]=\"tilesDeckClass\">\n\n <lib-skeleton-loader *ngIf=\"busy\" [count]=\"5\" [type]=\"'tiles'\"></lib-skeleton-loader>\n\n <ng-container *ngIf=\"!busy && items && items.length > 0\">\n <ng-container *ngFor=\"let item of items\">\n <span *ngIf=\"!tileTemplate || !tileTemplate.template\">template missing..</span>\n <ng-template [ngTemplateOutlet]=\"tileTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </ng-container>\n </ng-container>\n </ul>\n </ng-container>\n\n <!-- *ngSwitchCase=\"'table'\" -->\n <ng-container *ngSwitchDefault>\n\n <div class=\"list-view-container\">\n <div class=\"list-view-container-inner\">\n <table class=\"list-view-table\">\n <thead class=\"list-view-thead\">\n <tr>\n <ng-container *ngIf=\"detailsSectionSupported\">\n <th class=\"list-view-th-details\"></th>\n </ng-container>\n <ng-container *ngFor=\"let col of columns\">\n <th scope=\"col\"\n [class]=\"col.fullWidth ? fullWidthTHClass : 'list-view-th'\">\n {{col.title}}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody class=\"list-view-tbody\" *ngIf=\"busy\">\n <ng-container *ngFor=\"let item of loaderItems;let i=index\">\n <tr class=\"list-view-tr\">\n <ng-container *ngIf=\"detailsSectionSupported\">\n <td class=\"list-view-td-details\"\n *ngIf=\"detailsSectionPropertyCount !== null ? item[detailsSectionPropertyCount] !== 0 : true; else hiddenDetailsButton\">\n <button disabled\n type=\"button\"\n class=\"expand-collapse-button\">\n <!-- Heroicon name: solid/plus -->\n <i [class]=\"item.detailsExpanded ? collapseIcon : expandIcon\"></i>\n </button>\n </td>\n <ng-template #hiddenDetailsButton>\n <td class=\"list-view-td-details\"></td>\n </ng-template>\n </ng-container>\n <td *ngFor=\"let col of columns\"\n [class]=\"col.fullWidth ? fullWidthTDClass : 'list-view-td'\">\n <div class=\"w-full animate-pulse h-8 bg-gray-200 rounded\"></div>\n </td>\n </tr>\n <ng-container *ngIf=\"detailsSectionSupported\">\n <tr *ngIf=\"item.detailsExpanded\">\n <td [colSpan]=\"columns.length + 1\"\n class=\"list-view-td bg-gray-100\">\n <ng-template [ngTemplateOutlet]=\"detailsTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n <tbody class=\"list-view-tbody\" *ngIf=\"!busy\">\n <ng-container *ngFor=\"let item of items;let i=index\">\n <tr class=\"list-view-tr\">\n <ng-container *ngIf=\"detailsSectionSupported\">\n <td class=\"list-view-td-details\"\n *ngIf=\"detailsSectionPropertyCount !== null ? item[detailsSectionPropertyCount] !== 0 : true; else hiddenDetailsButton\">\n <button (click)=\"toggleDetails(item)\"\n type=\"button\"\n class=\"expand-collapse-button\">\n <!-- Heroicon name: solid/plus -->\n <i [class]=\"item.detailsExpanded ? collapseIcon : expandIcon\"></i>\n </button>\n </td>\n <ng-template #hiddenDetailsButton>\n <td class=\"list-view-td-details\"></td>\n </ng-template>\n </ng-container>\n <td *ngFor=\"let col of columns\"\n [class]=\"col.fullWidth ? fullWidthTDClass : 'list-view-td'\">\n <ng-template [ngTemplateOutlet]=\"col.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </td>\n </tr>\n <ng-container *ngIf=\"detailsSectionSupported\">\n <tr *ngIf=\"item.detailsExpanded\">\n <td [colSpan]=\"columns.length + 1\"\n class=\"list-view-td bg-gray-100\">\n <ng-template [ngTemplateOutlet]=\"detailsTemplate.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!busy && items && items.length === 0\">\n <div class=\"cards-deck-1\">\n <lib-list-view-empty-state></lib-list-view-empty-state>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-content></ng-content>\n" }]
760
+ }], ctorParameters: function () { return []; }, propDecorators: { busy: [{
761
+ type: Input
762
+ }], items: [{
763
+ type: Input
764
+ }], showPager: [{
765
+ type: Input,
766
+ args: ['show-pager']
767
+ }], count: [{
768
+ type: Input
769
+ }], page: [{
770
+ type: Input
771
+ }], pageSize: [{
772
+ type: Input,
773
+ args: ['page-size']
774
+ }], pageSizeOptions: [{
775
+ type: Input,
776
+ args: ['page-size-options']
777
+ }], pageChanged: [{
778
+ type: Output
779
+ }], pageSizeChanged: [{
780
+ type: Output
781
+ }], detailsOpened: [{
782
+ type: Output
783
+ }], detailsSectionPropertyCount: [{
784
+ type: Input,
785
+ args: ['details-section-property-count']
786
+ }], sortOptions: [{
787
+ type: Input,
788
+ args: ['sort-options']
789
+ }], sort: [{
790
+ type: Input
791
+ }], sortdir: [{
792
+ type: Input,
793
+ args: ['sort-dir']
794
+ }], sortChanged: [{
795
+ type: Output
796
+ }], sortdirChanged: [{
797
+ type: Output
798
+ }], view: [{
799
+ type: Input
800
+ }], cols: [{
801
+ type: ContentChildren,
802
+ args: [ListColumnComponent, { read: ListColumnComponent }]
803
+ }], tilesCount: [{
804
+ type: Input,
805
+ args: ['tiles-count']
806
+ }], tiles: [{
807
+ type: ContentChild,
808
+ args: [ListTileComponent, { read: ListTileComponent }]
809
+ }], details: [{
810
+ type: ContentChild,
811
+ args: [ListDetailsSectionComponent, { read: ListDetailsSectionComponent }]
812
+ }] } });
813
+
814
+ class CollapsiblePanelComponent {
815
+ constructor() {
816
+ this.title = null;
817
+ this.visible = false;
818
+ }
819
+ ngOnInit() {
820
+ }
821
+ }
822
+ CollapsiblePanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CollapsiblePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
823
+ CollapsiblePanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: CollapsiblePanelComponent, selector: "lib-collapsible-panel", inputs: { title: "title" }, ngImport: i0, template: "<div class=\"collapsible-panel-container\">\n <div class=\"collapsible-panel-container-shadow\">\n <div class=\"collapsible-panel-container-inner\">\n <button type=\"button\" class=\"collapsible-panel-button\" (click)=\"visible = !visible\">\n <div class=\"collapsible-panel-button-content-container\">\n <span>{{ title }} </span>\n <span class=\"ico-plus\"></span>\n </div>\n </button>\n <div class=\"collapsible-panel-content-container\" *ngIf=\"visible\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
824
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CollapsiblePanelComponent, decorators: [{
825
+ type: Component,
826
+ args: [{ selector: 'lib-collapsible-panel', template: "<div class=\"collapsible-panel-container\">\n <div class=\"collapsible-panel-container-shadow\">\n <div class=\"collapsible-panel-container-inner\">\n <button type=\"button\" class=\"collapsible-panel-button\" (click)=\"visible = !visible\">\n <div class=\"collapsible-panel-button-content-container\">\n <span>{{ title }} </span>\n <span class=\"ico-plus\"></span>\n </div>\n </button>\n <div class=\"collapsible-panel-content-container\" *ngIf=\"visible\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n" }]
827
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
828
+ type: Input
829
+ }] } });
830
+
831
+ class KpiTileComponent {
832
+ constructor() {
833
+ this.title = undefined;
834
+ this.busy = false;
835
+ this.kpi = undefined;
836
+ // tslint:disable-next-line:no-output-rename
837
+ this.tileAction = new EventEmitter();
838
+ }
839
+ ngOnInit() {
840
+ }
841
+ emitTileAction($event) {
842
+ $event.preventDefault();
843
+ $event.stopPropagation();
844
+ this.tileAction.emit($event);
845
+ return false;
846
+ }
847
+ }
848
+ KpiTileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: KpiTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
849
+ KpiTileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: KpiTileComponent, selector: "lib-kpi-tile", inputs: { title: "title", busy: "busy", kpi: "kpi" }, outputs: { tileAction: "tile-action" }, ngImport: i0, template: "<div class=\"card\"\n [ngClass]=\"{'card-deck-busy' : busy }\">\n <div class=\"card-body\">\n <div class=\"kpi-tile-title-container\">\n <a href=\"#\"\n class=\"kpi-tile-action\"\n (click)=\"emitTileAction($event)\">{{title || '-'}}</a>\n </div>\n <p class=\"kpi-tile-value\">{{kpi || '-'}}</p>\n <div class=\"card-footer\">\n <div class=\"text-xs\">\n <a href=\"#\"\n class=\"kpi-tile-action\"\n (click)=\"emitTileAction($event)\">\u03A0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1</a>\n </div>\n </div>\n </div>\n</div>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
850
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: KpiTileComponent, decorators: [{
851
+ type: Component,
852
+ args: [{ selector: 'lib-kpi-tile', template: "<div class=\"card\"\n [ngClass]=\"{'card-deck-busy' : busy }\">\n <div class=\"card-body\">\n <div class=\"kpi-tile-title-container\">\n <a href=\"#\"\n class=\"kpi-tile-action\"\n (click)=\"emitTileAction($event)\">{{title || '-'}}</a>\n </div>\n <p class=\"kpi-tile-value\">{{kpi || '-'}}</p>\n <div class=\"card-footer\">\n <div class=\"text-xs\">\n <a href=\"#\"\n class=\"kpi-tile-action\"\n (click)=\"emitTileAction($event)\">\u03A0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1</a>\n </div>\n </div>\n </div>\n</div>" }]
853
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
854
+ type: Input
855
+ }], busy: [{
856
+ type: Input
857
+ }], kpi: [{
858
+ type: Input
859
+ }], tileAction: [{
860
+ type: Output,
861
+ args: ['tile-action']
862
+ }] } });
863
+
864
+ // freaksly simple date picker : https://tailwind-elements.com/docs/standard/forms/datepicker/
865
+ class DatepickerComponent {
866
+ constructor() {
867
+ this.readonly = false;
868
+ this.disabled = false;
869
+ this.displayFormat = 'dd/MM/yyyy';
870
+ this.placeholder = '';
871
+ this.value = null;
872
+ this.valueChange = new EventEmitter();
873
+ this.showCalendar = false;
874
+ this.showYears = false;
875
+ this.monthNames = [
876
+ 'Ιανουάριος',
877
+ 'Φεβρουάριος',
878
+ 'Μάρτιος',
879
+ 'Απρίλιος',
880
+ 'Μάϊος',
881
+ 'Ιούνιος',
882
+ 'Ιούλιος',
883
+ 'Αύγουστος',
884
+ 'Σεπτέμβριος',
885
+ 'Οκτώβριος',
886
+ 'Νοεμβριος',
887
+ 'Δεκέμβριος',
888
+ ];
889
+ this.dayNames = ['Κυρ', 'Δευ', 'Τρι', 'Τετ', 'Πεμ', 'Παρ', 'Σαβ'];
890
+ this.month = -1;
891
+ this.year = -1;
892
+ this.calendarDates = [];
893
+ this.calendarYears = [];
894
+ this.showCalendarYears = [];
895
+ this.blankDays = [];
896
+ this.calendarYearPage = 1;
897
+ this.yearsPerPage = 30;
898
+ this.onChange$ = undefined;
899
+ this.onTouched$ = undefined;
900
+ }
901
+ ngOnInit() {
902
+ let today = new Date();
903
+ this.month = today.getMonth();
904
+ this.year = today.getFullYear();
905
+ this.calendarDates = [{ day: this.value, today: this.value, selected: this.value }];
906
+ this.calendarYears = [{ year: this.value?.getFullYear(), today: this.value, selected: this.value }];
907
+ const yearsArray = [];
908
+ for (let i = 1950; i <= today.getFullYear() + 2; i++) {
909
+ yearsArray.push({ year: i, today: this.compareDates(today, null, i), selected: i == this.value?.getFullYear() });
910
+ }
911
+ this.calendarYears = yearsArray;
912
+ this.showCalendarYears = this.paginate(this.calendarYears, 1);
913
+ this.calcDays();
914
+ }
915
+ writeValue(obj) {
916
+ if (obj) {
917
+ this.value = new Date(obj);
918
+ this.month = this.value.getMonth();
919
+ this.year = this.value.getFullYear();
920
+ }
921
+ }
922
+ registerOnChange(fn) {
923
+ this.onChange$ = fn;
924
+ }
925
+ registerOnTouched(fn) {
926
+ this.onTouched$ = fn;
927
+ }
928
+ onBlur(event) {
929
+ if (this.onTouched$) {
930
+ this.onTouched$();
931
+ }
932
+ this.getDateFromInput();
933
+ }
934
+ selectDateValue(date) {
935
+ // This should be in UTC
936
+ let selectedDate = new Date(this.year, this.month, date.day, 3, 0, 0, 0);
937
+ this.value = selectedDate;
938
+ this.valueChange.emit(this.value);
939
+ if (this.onChange$) {
940
+ this.onChange$(this.value);
941
+ }
942
+ this.updateDays();
943
+ if (this.onTouched$) {
944
+ this.onTouched$();
945
+ }
946
+ this.showCalendar = false;
947
+ }
948
+ selectYearValue(year) {
949
+ // This should be in UTC
950
+ let selectedDate = new Date(year.year, this.month ?? 1, this.calendarDates?.find(x => x.selected == true).day ?? 1, 3, 0, 0, 0);
951
+ this.year = year.year;
952
+ this.value = selectedDate;
953
+ this.valueChange.emit(this.value);
954
+ if (this.onChange$) {
955
+ this.onChange$(this.value);
956
+ }
957
+ this.updateDays();
958
+ if (this.onTouched$) {
959
+ this.onTouched$();
960
+ }
961
+ this.showYears = false;
962
+ this.showCalendar = true;
963
+ this.calcDays();
964
+ }
965
+ previousMonth() {
966
+ if (this.month !== 0) {
967
+ this.month = this.month - 1;
968
+ this.calcDays();
969
+ }
970
+ else {
971
+ this.month = 11;
972
+ this.year = this.year - 1;
973
+ this.calcDays();
974
+ }
975
+ if (this.onTouched$) {
976
+ this.onTouched$();
977
+ }
978
+ }
979
+ nextMonth() {
980
+ if (this.month !== 11) {
981
+ this.month = this.month + 1;
982
+ this.calcDays();
983
+ }
984
+ else {
985
+ this.month = 0;
986
+ this.year = this.year + 1;
987
+ this.calcDays();
988
+ }
989
+ if (this.onTouched$) {
990
+ this.onTouched$();
991
+ }
992
+ }
993
+ previousYear() {
994
+ this.showCalendarYears = this.paginate(this.calendarYears, this.calendarYearPage > 1 ? --this.calendarYearPage : 1);
995
+ this.calcDays();
996
+ if (this.onTouched$) {
997
+ this.onTouched$();
998
+ }
999
+ }
1000
+ nextYear() {
1001
+ this.showCalendarYears = this.paginate(this.calendarYears, this.calendarYearPage <= this.calendarYears.length / this.yearsPerPage
1002
+ ? ++this.calendarYearPage
1003
+ : this.calendarYearPage);
1004
+ this.calcDays();
1005
+ if (this.onTouched$) {
1006
+ this.onTouched$();
1007
+ }
1008
+ }
1009
+ compareDates(date1, day, year) {
1010
+ if (!date1) {
1011
+ return false;
1012
+ }
1013
+ const d = new Date(year ?? this.year, this.month, day ?? this.value?.getDay());
1014
+ return date1.toDateString() === d.toDateString();
1015
+ }
1016
+ ;
1017
+ calcDays() {
1018
+ const daysInMonth = new Date(this.year, this.month + 1, 0).getDate();
1019
+ // find where to start calendar day of week
1020
+ const dayOfWeek = new Date(this.year, this.month).getDay();
1021
+ const blankdaysArray = new Array();
1022
+ for (var i = 1; i <= dayOfWeek; i++) {
1023
+ // check if month is February
1024
+ blankdaysArray.push(this.month != 2 ? (32 - i) : (29 - i));
1025
+ blankdaysArray.reverse().sort();
1026
+ }
1027
+ const daysArray = [];
1028
+ const today = new Date();
1029
+ for (var i = 1; i <= daysInMonth; i++) {
1030
+ daysArray.push({ day: i, today: this.compareDates(today, i, null), selected: this.compareDates(this.value ?? today, i, null) });
1031
+ }
1032
+ const yearsArray = [];
1033
+ for (let i = 1950; i <= today.getFullYear() + 2; i++) {
1034
+ yearsArray.push({ year: i, today: this.compareDates(today, null, i), selected: i == this.year });
1035
+ }
1036
+ this.calendarYears = yearsArray;
1037
+ this.blankDays = blankdaysArray;
1038
+ this.calendarDates = daysArray;
1039
+ }
1040
+ updateDays() {
1041
+ const today = new Date();
1042
+ this.calendarDates.forEach(d => {
1043
+ d.today = this.compareDates(today, d, this.year);
1044
+ d.selected = this.compareDates(this.value, d, this.year);
1045
+ });
1046
+ }
1047
+ paginate(array, page_number) {
1048
+ return array.slice((page_number - 1) * this.yearsPerPage, page_number * this.yearsPerPage);
1049
+ }
1050
+ getDateFromInput() {
1051
+ if (this.dateInput?.nativeElement.value !== '') {
1052
+ var dateParts = this.dateInput?.nativeElement.value.split("/");
1053
+ let dateInGrFormat = new Date(+dateParts[2], dateParts[1] - 1, +dateParts[0], 3, 0, 0);
1054
+ if (dateInGrFormat.toString() !== 'Invalid Date') {
1055
+ this.writeValue(dateInGrFormat);
1056
+ this.calcDays();
1057
+ this.valueChange.emit(dateInGrFormat);
1058
+ }
1059
+ if (this.onChange$) {
1060
+ this.onChange$(this.value);
1061
+ }
1062
+ this.updateDays();
1063
+ if (this.onTouched$) {
1064
+ this.onTouched$();
1065
+ }
1066
+ }
1067
+ this.showCalendar = false;
1068
+ }
1069
+ openYears() {
1070
+ this.showYears = !this.showYears;
1071
+ this.calendarYearPage = Math.ceil(this.calendarYears.map(x => x.year).indexOf(this.year) / this.yearsPerPage);
1072
+ this.showCalendarYears = this.paginate(this.calendarYears, this.calendarYearPage !== 0 ? this.calendarYearPage : 1);
1073
+ this.calcDays();
1074
+ }
1075
+ openCalendar() {
1076
+ this.showCalendar = !this.showCalendar;
1077
+ this.calcDays();
1078
+ }
1079
+ closeCalendar() {
1080
+ this.showCalendar = false;
1081
+ this.getDateFromInput();
1082
+ }
1083
+ }
1084
+ DatepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1085
+ DatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: DatepickerComponent, selector: "lib-date-picker", inputs: { readonly: "readonly", disabled: "disabled", displayFormat: ["display-format", "displayFormat"], placeholder: "placeholder", value: "value" }, outputs: { valueChange: "valueChange" }, providers: [
1086
+ {
1087
+ provide: NG_VALUE_ACCESSOR,
1088
+ useExisting: forwardRef(() => DatepickerComponent),
1089
+ multi: true
1090
+ }
1091
+ ], viewQueries: [{ propertyName: "dateInput", first: true, predicate: ["dateInput"], descendants: true }], ngImport: i0, template: "<div class=\"relative flex\"\n (clickOutside)=\"closeCalendar()\">\n\n <input type=\"text\"\n #dateInput\n [readonly]=\"readonly\"\n name=\"dateInput\"\n (blur)=\"onBlur($event)\"\n id=\"dateInput\"\n (focus)=\"showCalendar = false\"\n [value]=\"value | date: displayFormat\"\n class=\"w-full focus:ring-0 focus:outline-none rounded-none sm:text-sm border-gray-300 focus:border-0\"\n [ngClass]=\"{'cursor-not-allowed': disabled}\"\n [placeholder]=\"disabled ? '' : placeholder\">\n\n <button type=\"button\"\n class=\"relative inline-flex items-center px-2 py-2 border border-gray-300 text-sm font-medium rounded-r-sm text-gray-700 bg-gray-50 hover:bg-gray-100 focus:outline-none focus:ring-1 focus:ring-gray-500 focus:border-gray-500\"\n [disabled]=\"disabled\"\n (click)=\"openCalendar()\"\n [ngClass]=\"{'cursor-not-allowed': disabled}\">\n <i class=\"ms-Icon ms-Icon--DateTime2\"></i>\n </button>\n\n <div *ngIf=\"showCalendar\"\n class=\"bg-gray-100 mt-10 rounded-sm shadow-md p-4 absolute left-0 z-50 w-full\"\n style=\"height:18rem;min-width:16rem;\"\n name=\"calendar\">\n <div class=\"flex justify-between items-center mb-2\">\n <div>\n <button type=\"button\"\n (click)=\"openYears()\">\n <span class=\"text-lg font-bold text-gray-800\">\n {{monthNames[month]}}\n </span>\n <span class=\"ml-1 text-lg text-gray-600 font-normal\">\n {{year}}</span>\n </button>\n </div>\n <div *ngIf=\"!showYears; else showYearsPickerTmpl\">\n <button type=\"button\"\n class=\"transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 p-1 rounded-full disabled:opacity-25\"\n (click)=\"previousMonth();\">\n <svg class=\"h-6 w-6 text-gray-500 inline-flex\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M15 19l-7-7 7-7\" />\n </svg>\n </button>\n <button type=\"button\"\n class=\"transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 p-1 rounded-full disabled:opacity-25\"\n (click)=\"nextMonth()\">\n <svg class=\"h-6 w-6 text-gray-500 inline-flex\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M9 5l7 7-7 7\" />\n </svg>\n </button>\n </div>\n <ng-template #showYearsPickerTmpl>\n <div>\n <button type=\"button\"\n class=\"transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 p-1 rounded-full disabled:opacity-25 w-1/2\"\n (click)=\"previousYear();\">\n <svg class=\"h-6 w-6 text-gray-500 inline-flex\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M15 19l-7-7 7-7\" />\n </svg>\n </button>\n <button type=\"button\"\n class=\"transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 p-1 rounded-full disabled:opacity-25 w-1/2\"\n (click)=\"nextYear()\">\n <svg class=\"h-6 w-6 text-gray-500 inline-flex\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M9 5l7 7-7 7\" />\n </svg>\n </button>\n </div>\n </ng-template>\n </div>\n\n <div class=\"flex flex-wrap mb-3 -mx-1\"\n *ngIf=\"!showYears; else showCalYearsTmpl\">\n <div *ngFor=\"let day of dayNames\"\n class=\"text-gray-800 font-medium text-center text-sm uppercase\"\n style=\"width: 14.28%\">{{day}}</div>\n </div>\n\n <ng-template #showCalYearsTmpl>\n <div class=\"flex flex-wrap -mx-1 items-center\">\n <div *ngFor=\"let year of showCalendarYears\"\n style=\"width: 18.28%\"\n class=\"px-1 mb-1\">\n <div (click)=\"selectYearValue(year)\"\n class=\"cursor-pointer text-center hover:text-blue-600 text-sm leading-none rounded-full leading-loose transition ease-in-out duration-100\"\n [class]=\"year.selected ? 'bg-gray-700 text-blue-600 font-medium' : 'text-gray-800 hover:bg-gray-800'\">{{year.year}}</div>\n </div>\n </div>\n </ng-template>\n\n <div class=\"flex flex-wrap -mx-1 items-center\"\n *ngIf=\"!showYears\">\n <div *ngFor=\"let blankday of blankDays\"\n style=\"width: 14.28%\"\n class=\"text-center border p-1 border-transparent text-sm opacity-50\">{{blankday}}</div>\n <div *ngFor=\"let date of calendarDates\"\n style=\"width: 14.28%\"\n class=\"px-1 mb-1\">\n <div (click)=\"selectDateValue(date)\"\n class=\"cursor-pointer text-center hover:text-blue-600 text-sm leading-none rounded-full leading-loose transition ease-in-out duration-100\"\n [class]=\"date.selected ? 'bg-gray-700 text-blue-600 font-medium' : 'text-gray-800 hover:bg-gray-800'\">{{date.day}}</div>\n </div>\n </div>\n </div>\n\n</div>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }] });
1092
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DatepickerComponent, decorators: [{
1093
+ type: Component,
1094
+ args: [{ selector: 'lib-date-picker', providers: [
1095
+ {
1096
+ provide: NG_VALUE_ACCESSOR,
1097
+ useExisting: forwardRef(() => DatepickerComponent),
1098
+ multi: true
1099
+ }
1100
+ ], template: "<div class=\"relative flex\"\n (clickOutside)=\"closeCalendar()\">\n\n <input type=\"text\"\n #dateInput\n [readonly]=\"readonly\"\n name=\"dateInput\"\n (blur)=\"onBlur($event)\"\n id=\"dateInput\"\n (focus)=\"showCalendar = false\"\n [value]=\"value | date: displayFormat\"\n class=\"w-full focus:ring-0 focus:outline-none rounded-none sm:text-sm border-gray-300 focus:border-0\"\n [ngClass]=\"{'cursor-not-allowed': disabled}\"\n [placeholder]=\"disabled ? '' : placeholder\">\n\n <button type=\"button\"\n class=\"relative inline-flex items-center px-2 py-2 border border-gray-300 text-sm font-medium rounded-r-sm text-gray-700 bg-gray-50 hover:bg-gray-100 focus:outline-none focus:ring-1 focus:ring-gray-500 focus:border-gray-500\"\n [disabled]=\"disabled\"\n (click)=\"openCalendar()\"\n [ngClass]=\"{'cursor-not-allowed': disabled}\">\n <i class=\"ms-Icon ms-Icon--DateTime2\"></i>\n </button>\n\n <div *ngIf=\"showCalendar\"\n class=\"bg-gray-100 mt-10 rounded-sm shadow-md p-4 absolute left-0 z-50 w-full\"\n style=\"height:18rem;min-width:16rem;\"\n name=\"calendar\">\n <div class=\"flex justify-between items-center mb-2\">\n <div>\n <button type=\"button\"\n (click)=\"openYears()\">\n <span class=\"text-lg font-bold text-gray-800\">\n {{monthNames[month]}}\n </span>\n <span class=\"ml-1 text-lg text-gray-600 font-normal\">\n {{year}}</span>\n </button>\n </div>\n <div *ngIf=\"!showYears; else showYearsPickerTmpl\">\n <button type=\"button\"\n class=\"transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 p-1 rounded-full disabled:opacity-25\"\n (click)=\"previousMonth();\">\n <svg class=\"h-6 w-6 text-gray-500 inline-flex\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M15 19l-7-7 7-7\" />\n </svg>\n </button>\n <button type=\"button\"\n class=\"transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 p-1 rounded-full disabled:opacity-25\"\n (click)=\"nextMonth()\">\n <svg class=\"h-6 w-6 text-gray-500 inline-flex\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M9 5l7 7-7 7\" />\n </svg>\n </button>\n </div>\n <ng-template #showYearsPickerTmpl>\n <div>\n <button type=\"button\"\n class=\"transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 p-1 rounded-full disabled:opacity-25 w-1/2\"\n (click)=\"previousYear();\">\n <svg class=\"h-6 w-6 text-gray-500 inline-flex\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M15 19l-7-7 7-7\" />\n </svg>\n </button>\n <button type=\"button\"\n class=\"transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 p-1 rounded-full disabled:opacity-25 w-1/2\"\n (click)=\"nextYear()\">\n <svg class=\"h-6 w-6 text-gray-500 inline-flex\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M9 5l7 7-7 7\" />\n </svg>\n </button>\n </div>\n </ng-template>\n </div>\n\n <div class=\"flex flex-wrap mb-3 -mx-1\"\n *ngIf=\"!showYears; else showCalYearsTmpl\">\n <div *ngFor=\"let day of dayNames\"\n class=\"text-gray-800 font-medium text-center text-sm uppercase\"\n style=\"width: 14.28%\">{{day}}</div>\n </div>\n\n <ng-template #showCalYearsTmpl>\n <div class=\"flex flex-wrap -mx-1 items-center\">\n <div *ngFor=\"let year of showCalendarYears\"\n style=\"width: 18.28%\"\n class=\"px-1 mb-1\">\n <div (click)=\"selectYearValue(year)\"\n class=\"cursor-pointer text-center hover:text-blue-600 text-sm leading-none rounded-full leading-loose transition ease-in-out duration-100\"\n [class]=\"year.selected ? 'bg-gray-700 text-blue-600 font-medium' : 'text-gray-800 hover:bg-gray-800'\">{{year.year}}</div>\n </div>\n </div>\n </ng-template>\n\n <div class=\"flex flex-wrap -mx-1 items-center\"\n *ngIf=\"!showYears\">\n <div *ngFor=\"let blankday of blankDays\"\n style=\"width: 14.28%\"\n class=\"text-center border p-1 border-transparent text-sm opacity-50\">{{blankday}}</div>\n <div *ngFor=\"let date of calendarDates\"\n style=\"width: 14.28%\"\n class=\"px-1 mb-1\">\n <div (click)=\"selectDateValue(date)\"\n class=\"cursor-pointer text-center hover:text-blue-600 text-sm leading-none rounded-full leading-loose transition ease-in-out duration-100\"\n [class]=\"date.selected ? 'bg-gray-700 text-blue-600 font-medium' : 'text-gray-800 hover:bg-gray-800'\">{{date.day}}</div>\n </div>\n </div>\n </div>\n\n</div>" }]
1101
+ }], ctorParameters: function () { return []; }, propDecorators: { readonly: [{
1102
+ type: Input
1103
+ }], disabled: [{
1104
+ type: Input
1105
+ }], displayFormat: [{
1106
+ type: Input,
1107
+ args: ['display-format']
1108
+ }], placeholder: [{
1109
+ type: Input
1110
+ }], value: [{
1111
+ type: Input
1112
+ }], valueChange: [{
1113
+ type: Output
1114
+ }], dateInput: [{
1115
+ type: ViewChild,
1116
+ args: ['dateInput']
1117
+ }] } });
1118
+
1119
+ class ToasterService {
1120
+ constructor() {
1121
+ this.subject = new BehaviorSubject(NULL_TOAST);
1122
+ this.toast$ = this.subject.asObservable()
1123
+ .pipe(filter(toast => toast !== null && toast.title !== NULL_TOAST.title));
1124
+ }
1125
+ show(type, title, body, delay) {
1126
+ this.subject.next({ type, title, body, delay });
1127
+ }
1128
+ }
1129
+ ToasterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToasterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1130
+ ToasterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToasterService, providedIn: 'root' });
1131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToasterService, decorators: [{
1132
+ type: Injectable,
1133
+ args: [{
1134
+ providedIn: 'root'
1135
+ }]
1136
+ }], ctorParameters: function () { return []; } });
1137
+
1138
+ class ToasterComponent {
1139
+ constructor() {
1140
+ this.i = 0;
1141
+ this.remove = new EventEmitter();
1142
+ this.isMobile = false;
1143
+ this.closed = false;
1144
+ }
1145
+ ngOnInit() {
1146
+ window.screen.width > 640 ? this.isMobile = false : this.isMobile = true;
1147
+ }
1148
+ closeToast(index) {
1149
+ this.closed = true;
1150
+ setTimeout(() => this.remove.emit(index), 100);
1151
+ }
1152
+ }
1153
+ ToasterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToasterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1154
+ ToasterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ToasterComponent, selector: "lib-toaster", inputs: { toast: "toast", i: "i" }, outputs: { remove: "remove" }, ngImport: i0, template: "<div aria-live=\"assertive\"\n [ngClass]=\"closed ? 'toast-closed': 'toast z-50'\"\n [ngStyle]=\"isMobile ? { 'margin-bottom.px': i * 85 } : {'margin-top.px': i * 85 }\">\n <div class=\"toast-container\">\n <div class=\"toast-pill\">\n <div class=\"toast-context-padding\">\n <div class=\"toast-context\"\n [ngSwitch]=\"toast?.type\">\n <div class=\"toast-icon\"\n *ngSwitchCase=\"'info'\">\n <svg class=\"h-5 w-5 text-blue-400\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z\"\n clip-rule=\"evenodd\" />\n </svg>\n </div>\n <div class=\"toast-icon\"\n *ngSwitchCase=\"'success'\">\n <svg class=\"h-5 w-5 text-green-400\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n aria-hidden=\"true\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z\" />\n </svg>\n </div>\n <div class=\"toast-icon\"\n *ngSwitchCase=\"'error'\">\n <svg class=\"h-5 w-5 text-red-400\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z\"\n clip-rule=\"evenodd\" />\n </svg>\n </div>\n <div class=\"toast-icon\"\n *ngSwitchCase=\"'warning'\">\n <svg class=\"h-5 w-5 text-yellow-400\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z\"\n clip-rule=\"evenodd\" />\n </svg>\n </div>\n <div class=\"toast-icon\"\n *ngSwitchDefault>\n <svg class=\"h-5 w-5 text-green-400\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n aria-hidden=\"true\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z\" />\n </svg>\n </div>\n\n <div class=\"ml-3 w-0 flex-1\">\n <p class=\"toast-title\"\n *ngIf=\"toast?.title\">\n {{toast?.title}}\n </p>\n <p class=\"toast-body\">\n {{toast?.body}}\n </p>\n </div>\n <div class=\"toast-close-icon\">\n <button class=\"toast-close-button\"\n (click)=\"closeToast(i)\">\n <span class=\"sr-only\">Close</span>\n <!-- Heroicon name: solid/x -->\n <svg class=\"h-5 w-5\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z\"\n clip-rule=\"evenodd\" />\n </svg>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
1155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToasterComponent, decorators: [{
1156
+ type: Component,
1157
+ args: [{ selector: 'lib-toaster', template: "<div aria-live=\"assertive\"\n [ngClass]=\"closed ? 'toast-closed': 'toast z-50'\"\n [ngStyle]=\"isMobile ? { 'margin-bottom.px': i * 85 } : {'margin-top.px': i * 85 }\">\n <div class=\"toast-container\">\n <div class=\"toast-pill\">\n <div class=\"toast-context-padding\">\n <div class=\"toast-context\"\n [ngSwitch]=\"toast?.type\">\n <div class=\"toast-icon\"\n *ngSwitchCase=\"'info'\">\n <svg class=\"h-5 w-5 text-blue-400\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z\"\n clip-rule=\"evenodd\" />\n </svg>\n </div>\n <div class=\"toast-icon\"\n *ngSwitchCase=\"'success'\">\n <svg class=\"h-5 w-5 text-green-400\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n aria-hidden=\"true\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z\" />\n </svg>\n </div>\n <div class=\"toast-icon\"\n *ngSwitchCase=\"'error'\">\n <svg class=\"h-5 w-5 text-red-400\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z\"\n clip-rule=\"evenodd\" />\n </svg>\n </div>\n <div class=\"toast-icon\"\n *ngSwitchCase=\"'warning'\">\n <svg class=\"h-5 w-5 text-yellow-400\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z\"\n clip-rule=\"evenodd\" />\n </svg>\n </div>\n <div class=\"toast-icon\"\n *ngSwitchDefault>\n <svg class=\"h-5 w-5 text-green-400\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n aria-hidden=\"true\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z\" />\n </svg>\n </div>\n\n <div class=\"ml-3 w-0 flex-1\">\n <p class=\"toast-title\"\n *ngIf=\"toast?.title\">\n {{toast?.title}}\n </p>\n <p class=\"toast-body\">\n {{toast?.body}}\n </p>\n </div>\n <div class=\"toast-close-icon\">\n <button class=\"toast-close-button\"\n (click)=\"closeToast(i)\">\n <span class=\"sr-only\">Close</span>\n <!-- Heroicon name: solid/x -->\n <svg class=\"h-5 w-5\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z\"\n clip-rule=\"evenodd\" />\n </svg>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>" }]
1158
+ }], ctorParameters: function () { return []; }, propDecorators: { toast: [{
1159
+ type: Input
1160
+ }], i: [{
1161
+ type: Input
1162
+ }], remove: [{
1163
+ type: Output
1164
+ }] } });
1165
+
1166
+ class ToasterContainerComponent {
1167
+ constructor(toaster) {
1168
+ this.toaster = toaster;
1169
+ this.toasts = [];
1170
+ }
1171
+ ngOnInit() {
1172
+ this.toaster.toast$
1173
+ .subscribe(toast => {
1174
+ this.toasts = [toast, ...this.toasts];
1175
+ setTimeout(() => this.toasts.pop(), toast.delay || 6000);
1176
+ });
1177
+ }
1178
+ remove(index) {
1179
+ this.toasts = this.toasts.slice(0, index).concat(this.toasts.slice(index + 1));
1180
+ }
1181
+ }
1182
+ ToasterContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToasterContainerComponent, deps: [{ token: ToasterService }], target: i0.ɵɵFactoryTarget.Component });
1183
+ ToasterContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ToasterContainerComponent, selector: "lib-toaster-container", ngImport: i0, template: "<lib-toaster *ngFor=\"let toast of toasts; let i=index\" [toast]=\"toast\" [i]=\"i\" (remove)=\"remove($event)\"></lib-toaster>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ToasterComponent, selector: "lib-toaster", inputs: ["toast", "i"], outputs: ["remove"] }] });
1184
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToasterContainerComponent, decorators: [{
1185
+ type: Component,
1186
+ args: [{ selector: 'lib-toaster-container', template: "<lib-toaster *ngFor=\"let toast of toasts; let i=index\" [toast]=\"toast\" [i]=\"i\" (remove)=\"remove($event)\"></lib-toaster>\n" }]
1187
+ }], ctorParameters: function () { return [{ type: ToasterService }]; } });
1188
+
1189
+ class AvatarInitialsComponent {
1190
+ constructor() {
1191
+ this.large = false;
1192
+ this.colors = [
1193
+ '#EB7181',
1194
+ '#468547',
1195
+ '#FFD558',
1196
+ '#3670B2', // blue
1197
+ ];
1198
+ }
1199
+ ngOnInit() {
1200
+ this.createInititals();
1201
+ const randomIndex = Math.floor(Math.random() * Math.floor(this.colors.length));
1202
+ // assign this to a class if you want to randomly change background colors of the circle.
1203
+ this.circleColor = this.colors[randomIndex];
1204
+ }
1205
+ createInititals() {
1206
+ if (this.name) {
1207
+ let initials = '';
1208
+ for (let i = 0; i < this.name.length; i++) {
1209
+ if (this.name.charAt(i) === ' ') {
1210
+ continue;
1211
+ }
1212
+ if (this.name.charAt(i) === this.name.charAt(i).toUpperCase()) {
1213
+ initials += this.name.charAt(i);
1214
+ if (initials.length === 2) {
1215
+ break;
1216
+ }
1217
+ }
1218
+ }
1219
+ this.initials = initials;
1220
+ }
1221
+ }
1222
+ }
1223
+ AvatarInitialsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AvatarInitialsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1224
+ AvatarInitialsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: AvatarInitialsComponent, selector: "lib-avatar-initials", inputs: { name: "name", large: "large" }, ngImport: i0, template: "<div [ngClass]=\"large ? 'avatar-container-large': 'avatar-container'\">\n <span [ngClass]=\"large ? 'avatar-text-large': 'avatar-text'\">{{ initials }}</span>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
1225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AvatarInitialsComponent, decorators: [{
1226
+ type: Component,
1227
+ args: [{ selector: 'lib-avatar-initials', template: "<div [ngClass]=\"large ? 'avatar-container-large': 'avatar-container'\">\n <span [ngClass]=\"large ? 'avatar-text-large': 'avatar-text'\">{{ initials }}</span>\n</div>\n" }]
1228
+ }], ctorParameters: function () { return []; }, propDecorators: { name: [{
1229
+ type: Input
1230
+ }], large: [{
1231
+ type: Input
1232
+ }] } });
1233
+
1234
+ class ToggleComponent {
1235
+ constructor() {
1236
+ this.valueChange = new EventEmitter();
1237
+ this.onChange$ = undefined;
1238
+ this.onTouched$ = undefined;
1239
+ }
1240
+ writeValue(obj) {
1241
+ if (obj) {
1242
+ this.value = obj || false;
1243
+ }
1244
+ }
1245
+ registerOnChange(fn) {
1246
+ this.onChange$ = fn;
1247
+ }
1248
+ registerOnTouched(fn) {
1249
+ this.onTouched$ = fn;
1250
+ }
1251
+ onBlur(event) {
1252
+ if (this.onTouched$) {
1253
+ this.onTouched$();
1254
+ }
1255
+ }
1256
+ ngOnInit() {
1257
+ }
1258
+ changeValue() {
1259
+ this.value = !this.value;
1260
+ this.valueChange.emit(this.value);
1261
+ if (this.onChange$) {
1262
+ this.onChange$(this.value);
1263
+ }
1264
+ if (this.onTouched$) {
1265
+ this.onTouched$();
1266
+ }
1267
+ }
1268
+ }
1269
+ ToggleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1270
+ ToggleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ToggleComponent, selector: "lib-toggle", inputs: { value: "value", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, providers: [
1271
+ {
1272
+ provide: NG_VALUE_ACCESSOR,
1273
+ useExisting: forwardRef(() => ToggleComponent),
1274
+ multi: true
1275
+ }
1276
+ ], ngImport: i0, template: "<button type=\"button\"\n [ngClass]=\"value ? (disabled ? 'on disabled' : 'on') : 'off'\"\n class=\"toggle-button\"\n role=\"switch\"\n aria-checked=\"false\"\n aria-labelledby=\"isPrivate\"\n (click)=\"changeValue()\"\n (blur)=\"onBlur($event)\"\n value=\"{{value}}\"\n [disabled]=\"disabled\"\n [title]=\"disabled ? '\u03A4\u03BF \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B9\u03B4\u03C9\u03C4\u03B9\u03BA\u03CC' : '\u0399\u03B4\u03B9\u03C9\u03C4\u03B9\u03BA\u03CC'\">\n <span aria-hidden=\"true\"\n [ngClass]=\"value ? 'enabled-anim' : 'disabled-anim'\"\n class=\"toggle-span\"></span>\n</button>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
1277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToggleComponent, decorators: [{
1278
+ type: Component,
1279
+ args: [{ selector: 'lib-toggle', providers: [
1280
+ {
1281
+ provide: NG_VALUE_ACCESSOR,
1282
+ useExisting: forwardRef(() => ToggleComponent),
1283
+ multi: true
1284
+ }
1285
+ ], template: "<button type=\"button\"\n [ngClass]=\"value ? (disabled ? 'on disabled' : 'on') : 'off'\"\n class=\"toggle-button\"\n role=\"switch\"\n aria-checked=\"false\"\n aria-labelledby=\"isPrivate\"\n (click)=\"changeValue()\"\n (blur)=\"onBlur($event)\"\n value=\"{{value}}\"\n [disabled]=\"disabled\"\n [title]=\"disabled ? '\u03A4\u03BF \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B9\u03B4\u03C9\u03C4\u03B9\u03BA\u03CC' : '\u0399\u03B4\u03B9\u03C9\u03C4\u03B9\u03BA\u03CC'\">\n <span aria-hidden=\"true\"\n [ngClass]=\"value ? 'enabled-anim' : 'disabled-anim'\"\n class=\"toggle-span\"></span>\n</button>" }]
1286
+ }], ctorParameters: function () { return []; }, propDecorators: { value: [{
1287
+ type: Input
1288
+ }], disabled: [{
1289
+ type: Input
1290
+ }], valueChange: [{
1291
+ type: Output
1292
+ }] } });
1293
+
1294
+ class SidePaneComponent {
1295
+ constructor(router, document) {
1296
+ this.router = router;
1297
+ this.document = document;
1298
+ // tslint:disable-next-line:no-input-rename
1299
+ this.showPane = false;
1300
+ this.sizeContainerStyle = 'side-pane-box-size';
1301
+ this.overlayStyle = 'side-pane-overlay';
1302
+ this.onComplete = new EventEmitter();
1303
+ }
1304
+ ngOnDestroy() {
1305
+ }
1306
+ ngOnInit() {
1307
+ }
1308
+ onSidePaneActivated(component) {
1309
+ this.document.body.classList.add('modal-active');
1310
+ let sizeStyleSuffix = '';
1311
+ const state = this.router.getCurrentNavigation()?.extras.state;
1312
+ if (state) {
1313
+ if (state.paneSize) {
1314
+ if (state.paneSize === SidePaneSize.Small25) {
1315
+ sizeStyleSuffix = '-25';
1316
+ }
1317
+ else if (state.paneSize === SidePaneSize.Medium50) {
1318
+ sizeStyleSuffix = '-50';
1319
+ }
1320
+ else if (state.paneSize === SidePaneSize.Large75) {
1321
+ sizeStyleSuffix = '-75';
1322
+ }
1323
+ }
1324
+ if (state.paneOverlay) {
1325
+ if (state.paneOverlay === SidePaneOverlayType.None) {
1326
+ this.overlayStyle = 'side-pane-overlay-opacity-0';
1327
+ }
1328
+ else if (state.paneOverlay === SidePaneOverlayType.Dark) {
1329
+ this.overlayStyle = 'side-pane-overlay-opacity-50';
1330
+ }
1331
+ else {
1332
+ this.overlayStyle = 'side-pane-overlay';
1333
+ }
1334
+ }
1335
+ }
1336
+ this.sizeContainerStyle = `side-pane-box-size${sizeStyleSuffix}`;
1337
+ this.showPane = true;
1338
+ }
1339
+ onSidePaneDeactivated($event) {
1340
+ this.document.body.classList.remove('modal-active');
1341
+ this.showPane = false;
1342
+ this.onComplete.emit(true);
1343
+ }
1344
+ }
1345
+ SidePaneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SidePaneComponent, deps: [{ token: i1$1.Router }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
1346
+ SidePaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: SidePaneComponent, selector: "lib-side-pane", inputs: { showPane: ["visible", "showPane"] }, outputs: { onComplete: "onComplete" }, ngImport: i0, template: "<div *ngIf=\"showPane\" class=\"side-pane-outer-container\" aria-labelledby=\"slide-over\" role=\"dialog\" aria-modal=\"true\">\n <div [class]=\"showPane ? overlayStyle : 'hidden'\" aria-hidden=\"true\"></div>\n <div [class]=\"showPane ? 'side-pane-container' : 'hidden'\">\n <div [class]=\"sizeContainerStyle\">\n <div class=\"side-pane\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SidePaneComponent, decorators: [{
1348
+ type: Component,
1349
+ args: [{ selector: 'lib-side-pane', template: "<div *ngIf=\"showPane\" class=\"side-pane-outer-container\" aria-labelledby=\"slide-over\" role=\"dialog\" aria-modal=\"true\">\n <div [class]=\"showPane ? overlayStyle : 'hidden'\" aria-hidden=\"true\"></div>\n <div [class]=\"showPane ? 'side-pane-container' : 'hidden'\">\n <div [class]=\"sizeContainerStyle\">\n <div class=\"side-pane\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n" }]
1350
+ }], ctorParameters: function () { return [{ type: i1$1.Router }, { type: undefined, decorators: [{
1351
+ type: Inject,
1352
+ args: [DOCUMENT]
1353
+ }] }]; }, propDecorators: { showPane: [{
1354
+ type: Input,
1355
+ args: ['visible']
1356
+ }], onComplete: [{
1357
+ type: Output
1358
+ }] } });
1359
+
1360
+ class NavLinksListComponent {
1361
+ constructor() {
1362
+ // tslint:disable-next-line:no-input-rename
1363
+ this.navLinkClass = 'nav-link';
1364
+ // tslint:disable-next-line:no-input-rename
1365
+ this.navLinkActiveClass = 'nav-link-active';
1366
+ // tslint:disable-next-line:no-input-rename
1367
+ this.containerClass = undefined;
1368
+ // tslint:disable-next-line:no-input-rename
1369
+ this.showIcons = false;
1370
+ }
1371
+ ngOnInit() {
1372
+ }
1373
+ }
1374
+ NavLinksListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NavLinksListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1375
+ NavLinksListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: NavLinksListComponent, selector: "lib-nav-links-list", inputs: { links: "links", activeFragment: ["active-fragment", "activeFragment"], navLinkClass: ["link-class", "navLinkClass"], navLinkActiveClass: ["link-active-class", "navLinkActiveClass"], containerClass: ["container-class", "containerClass"], showIcons: ["show-icons", "showIcons"] }, ngImport: i0, template: "\n<div [class]=\"containerClass ?? 'nav-link-list-container'\">\n <div class=\"nav-link-list-container-inner\">\n <ng-container *ngFor=\"let link of links | async\">\n <ng-container [ngSwitch]=\"link.type\">\n <a *ngSwitchCase=\"'router'\"\n href=\"#\"\n [routerLink]=\"[link.path]\"\n [routerLinkActive]=\"navLinkActiveClass\"\n [routerLinkActiveOptions]=\"{ exact: link.exact }\"\n [class]=\"navLinkClass\">\n <i *ngIf=\"showIcons && link.icon\" [class]=\"link.icon + ' mr-3'\"></i>{{ link.text }}\n </a>\n <a *ngSwitchCase=\"'external'\"\n [href]=\"link.path\"\n [attr.target]=\"link.external ? '_blank' : '_self'\"\n [class]=\"navLinkClass\">\n <i *ngIf=\"showIcons && link.icon\" [class]=\"link.icon+ ' mr-3'\"></i>{{ link.text }}\n </a>\n <a *ngSwitchCase=\"'fragment'\"\n routerLink=\".\"\n [fragment]=\"link.path\"\n [class.active]=\"(activeFragment | async) === link.path\"\n [routerLinkActive]=\"navLinkActiveClass\"\n [class]=\"navLinkClass\">\n <i *ngIf=\"showIcons && link.icon\" [class]=\"link.icon+ ' mr-3'\"></i>{{ link.text }}\n </a>\n </ng-container>\n </ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
1376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NavLinksListComponent, decorators: [{
1377
+ type: Component,
1378
+ args: [{ selector: 'lib-nav-links-list', template: "\n<div [class]=\"containerClass ?? 'nav-link-list-container'\">\n <div class=\"nav-link-list-container-inner\">\n <ng-container *ngFor=\"let link of links | async\">\n <ng-container [ngSwitch]=\"link.type\">\n <a *ngSwitchCase=\"'router'\"\n href=\"#\"\n [routerLink]=\"[link.path]\"\n [routerLinkActive]=\"navLinkActiveClass\"\n [routerLinkActiveOptions]=\"{ exact: link.exact }\"\n [class]=\"navLinkClass\">\n <i *ngIf=\"showIcons && link.icon\" [class]=\"link.icon + ' mr-3'\"></i>{{ link.text }}\n </a>\n <a *ngSwitchCase=\"'external'\"\n [href]=\"link.path\"\n [attr.target]=\"link.external ? '_blank' : '_self'\"\n [class]=\"navLinkClass\">\n <i *ngIf=\"showIcons && link.icon\" [class]=\"link.icon+ ' mr-3'\"></i>{{ link.text }}\n </a>\n <a *ngSwitchCase=\"'fragment'\"\n routerLink=\".\"\n [fragment]=\"link.path\"\n [class.active]=\"(activeFragment | async) === link.path\"\n [routerLinkActive]=\"navLinkActiveClass\"\n [class]=\"navLinkClass\">\n <i *ngIf=\"showIcons && link.icon\" [class]=\"link.icon+ ' mr-3'\"></i>{{ link.text }}\n </a>\n </ng-container>\n </ng-container>\n </div>\n</div>\n" }]
1379
+ }], ctorParameters: function () { return []; }, propDecorators: { links: [{
1380
+ type: Input
1381
+ }], activeFragment: [{
1382
+ type: Input,
1383
+ args: ['active-fragment']
1384
+ }], navLinkClass: [{
1385
+ type: Input,
1386
+ args: ['link-class']
1387
+ }], navLinkActiveClass: [{
1388
+ type: Input,
1389
+ args: ['link-active-class']
1390
+ }], containerClass: [{
1391
+ type: Input,
1392
+ args: ['container-class']
1393
+ }], showIcons: [{
1394
+ type: Input,
1395
+ args: ['show-icons']
1396
+ }] } });
1397
+
1398
+ class ComboboxComponent {
1399
+ constructor() {
1400
+ this._debouncer = new Subject();
1401
+ this._items = [];
1402
+ this._defaultItemsFilter = (item) => {
1403
+ const selectedItem = this.selectedItems.find(x => x == item);
1404
+ return selectedItem == null || selectedItem == undefined;
1405
+ };
1406
+ this.id = 'combobox';
1407
+ this.itemTemplate = null;
1408
+ this.selectedItemsFilter = () => true;
1409
+ this.selectedItemTemplate = null;
1410
+ this.busy = false;
1411
+ this.debounceMs = 1000;
1412
+ this.onSearch = new EventEmitter();
1413
+ this.onItemSelected = new EventEmitter();
1414
+ this.showOptions = false;
1415
+ this.selectedItems = [];
1416
+ }
1417
+ set items(items) {
1418
+ if (!this.itemTemplate) {
1419
+ this._items = items.filter(this._defaultItemsFilter);
1420
+ }
1421
+ else {
1422
+ this._items = items.filter(this.selectedItemsFilter);
1423
+ }
1424
+ }
1425
+ get items() {
1426
+ if (!this.itemTemplate) {
1427
+ return this._items.filter(this._defaultItemsFilter);
1428
+ }
1429
+ else {
1430
+ return this._items.filter(this.selectedItemsFilter);
1431
+ }
1432
+ }
1433
+ ngOnInit() {
1434
+ this.emitSearchEvent();
1435
+ this._debouncer
1436
+ .pipe(debounceTime(this.debounceMs), distinctUntilChanged())
1437
+ .subscribe((value) => this.emitSearchEvent(value));
1438
+ }
1439
+ onInputClick() {
1440
+ this.showOptions = true;
1441
+ }
1442
+ onInputClickOutside() {
1443
+ this.showOptions = false;
1444
+ }
1445
+ onInputKeyUp(event) {
1446
+ this._debouncer.next(event.currentTarget.value);
1447
+ }
1448
+ onListItemSelected(item) {
1449
+ this.onItemSelected.emit(item);
1450
+ this.selectedItems.push(item);
1451
+ }
1452
+ removeSelectedItem(item) {
1453
+ const index = this.selectedItems.indexOf(item);
1454
+ if (index > -1) {
1455
+ this.selectedItems.splice(index, 1);
1456
+ }
1457
+ }
1458
+ emitSearchEvent(searchTerm = undefined) {
1459
+ this.onSearch.emit(searchTerm);
1460
+ }
1461
+ }
1462
+ ComboboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ComboboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1463
+ ComboboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ComboboxComponent, selector: "lib-combobox", inputs: { id: "id", items: "items", itemTemplate: "itemTemplate", selectedItemsFilter: "selectedItemsFilter", selectedItemTemplate: "selectedItemTemplate", busy: "busy", debounceMs: "debounceMs" }, outputs: { onSearch: "onSearch", onItemSelected: "onItemSelected" }, ngImport: i0, template: "<div class=\"relative mt-1\">\n <form autocomplete=\"off\" [id]=\"id + '-form'\">\n <input [id]=\"id + '-input'\" type=\"text\" (click)=\"onInputClick()\" (clickOutside)=\"onInputClickOutside()\" (keyup)=\"onInputKeyUp($event)\"\n class=\"w-full rounded-md border border-gray-300 bg-white py-2 pl-3 pr-12 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm\" role=\"combobox\" aria-controls=\"options\"\n aria-expanded=\"false\" autocomplete=\"off\" list=\"autocomplete\">\n </form>\n <div class=\"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none\">\n <svg *ngIf=\"!busy\" xmlns=\"http://www.w3.org/2000/svg\" class=\"h-6 w-6 text-gray-400\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z\" />\n </svg>\n <svg *ngIf=\"busy\" class=\"animate-spin h-6 w-6 text-gray-400\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"></circle>\n <path class=\"opacity-75\" fill=\"currentColor\" d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"></path>\n </svg>\n </div>\n <ul [id]=\"id + '-options'\" *ngIf=\"showOptions\" class=\"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm\" role=\"listbox\">\n <li *ngFor=\"let item of items; let i = index;\" [id]=\"'option-'+ i\" (click)=\"onListItemSelected(item)\" role=\"option\" tabindex=\"-1\">\n <ng-container [ngTemplateOutlet]=\"itemTemplate || defaultItemTemplate\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </li>\n </ul>\n</div>\n<ul *ngIf=\"selectedItems.length > 0\" role=\"list\" class=\"grid grid-cols-1\">\n <li *ngFor=\"let item of selectedItems; let i = index;\" class=\"mt-3\">\n <ng-container [ngTemplateOutlet]=\"selectedItemTemplate || defaultSelectedItemTemplate\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </li>\n</ul>\n<ng-template #defaultItemTemplate let-item>\n <span class=\"hover:bg-gray-100 relative cursor-pointer select-none py-2 pl-3 pr-3 block truncate\">{{ item }}</span>\n</ng-template>\n<ng-template #defaultSelectedItemTemplate let-item>\n <div class=\"grid grid-cols-1\">\n <div class=\"relative rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm flex items-center space-x-3 hover:border-gray-400\">\n <div class=\"flex-1 min-w-0\">\n <div class=\"focus:outline-none\">\n <span class=\"absolute\" aria-hidden=\"true\"></span>\n <p class=\"text-sm font-medium text-gray-900\">{{ item }}</p>\n </div>\n </div>\n <div class=\"ml-4 flex-shrink-0 flex\">\n <button type=\"button\" (click)=\"removeSelectedItem(item)\" class=\"cursor-pointer bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500\">\n <span class=\"sr-only\">Close</span>\n <svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z\"\n clip-rule=\"evenodd\" />\n </svg>\n </button>\n </div>\n </div>\n </div>\n</ng-template>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }] });
1464
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ComboboxComponent, decorators: [{
1465
+ type: Component,
1466
+ args: [{ selector: 'lib-combobox', template: "<div class=\"relative mt-1\">\n <form autocomplete=\"off\" [id]=\"id + '-form'\">\n <input [id]=\"id + '-input'\" type=\"text\" (click)=\"onInputClick()\" (clickOutside)=\"onInputClickOutside()\" (keyup)=\"onInputKeyUp($event)\"\n class=\"w-full rounded-md border border-gray-300 bg-white py-2 pl-3 pr-12 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm\" role=\"combobox\" aria-controls=\"options\"\n aria-expanded=\"false\" autocomplete=\"off\" list=\"autocomplete\">\n </form>\n <div class=\"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none\">\n <svg *ngIf=\"!busy\" xmlns=\"http://www.w3.org/2000/svg\" class=\"h-6 w-6 text-gray-400\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z\" />\n </svg>\n <svg *ngIf=\"busy\" class=\"animate-spin h-6 w-6 text-gray-400\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <circle class=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\"></circle>\n <path class=\"opacity-75\" fill=\"currentColor\" d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"></path>\n </svg>\n </div>\n <ul [id]=\"id + '-options'\" *ngIf=\"showOptions\" class=\"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm\" role=\"listbox\">\n <li *ngFor=\"let item of items; let i = index;\" [id]=\"'option-'+ i\" (click)=\"onListItemSelected(item)\" role=\"option\" tabindex=\"-1\">\n <ng-container [ngTemplateOutlet]=\"itemTemplate || defaultItemTemplate\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </li>\n </ul>\n</div>\n<ul *ngIf=\"selectedItems.length > 0\" role=\"list\" class=\"grid grid-cols-1\">\n <li *ngFor=\"let item of selectedItems; let i = index;\" class=\"mt-3\">\n <ng-container [ngTemplateOutlet]=\"selectedItemTemplate || defaultSelectedItemTemplate\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </li>\n</ul>\n<ng-template #defaultItemTemplate let-item>\n <span class=\"hover:bg-gray-100 relative cursor-pointer select-none py-2 pl-3 pr-3 block truncate\">{{ item }}</span>\n</ng-template>\n<ng-template #defaultSelectedItemTemplate let-item>\n <div class=\"grid grid-cols-1\">\n <div class=\"relative rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm flex items-center space-x-3 hover:border-gray-400\">\n <div class=\"flex-1 min-w-0\">\n <div class=\"focus:outline-none\">\n <span class=\"absolute\" aria-hidden=\"true\"></span>\n <p class=\"text-sm font-medium text-gray-900\">{{ item }}</p>\n </div>\n </div>\n <div class=\"ml-4 flex-shrink-0 flex\">\n <button type=\"button\" (click)=\"removeSelectedItem(item)\" class=\"cursor-pointer bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500\">\n <span class=\"sr-only\">Close</span>\n <svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z\"\n clip-rule=\"evenodd\" />\n </svg>\n </button>\n </div>\n </div>\n </div>\n</ng-template>" }]
1467
+ }], ctorParameters: function () { return []; }, propDecorators: { id: [{
1468
+ type: Input
1469
+ }], items: [{
1470
+ type: Input,
1471
+ args: ['items']
1472
+ }], itemTemplate: [{
1473
+ type: Input
1474
+ }], selectedItemsFilter: [{
1475
+ type: Input
1476
+ }], selectedItemTemplate: [{
1477
+ type: Input
1478
+ }], busy: [{
1479
+ type: Input
1480
+ }], debounceMs: [{
1481
+ type: Input
1482
+ }], onSearch: [{
1483
+ type: Output
1484
+ }], onItemSelected: [{
1485
+ type: Output
1486
+ }] } });
1487
+
1488
+ const APP_LINKS = new InjectionToken('APP_LINKS');
1489
+ const APP_NOTIFICATIONS = new InjectionToken('APP_NOTIFICATIONS');
1490
+ const SHELL_CONFIG = new InjectionToken('SHELL_CONFIG');
1491
+ const APP_LANGUAGES = new InjectionToken('APP_LANGUAGES');
1492
+ const LIBTABGROUP_ACCESSOR = new InjectionToken('LibTabGroupAccessor');
1493
+
1494
+ class LibTabComponent {
1495
+ constructor(_tabGroup) {
1496
+ this._tabGroup = _tabGroup;
1497
+ this._isActive = false;
1498
+ }
1499
+ /** Indicates the index of the tab. */
1500
+ get index() {
1501
+ return this._tabGroup?.tabs?.toArray().indexOf(this) || undefined;
1502
+ }
1503
+ /** Indicates whether the tab is active. */
1504
+ get isActive() {
1505
+ return this._isActive;
1506
+ }
1507
+ /** Setter for LibTabComponent isActive property. */
1508
+ set isActive(isActive) {
1509
+ this._isActive = isActive;
1510
+ }
1511
+ ngOnInit() {
1512
+ this.id = this.id || uuid.v4();
1513
+ }
1514
+ }
1515
+ LibTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LibTabComponent, deps: [{ token: LIBTABGROUP_ACCESSOR, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1516
+ LibTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: LibTabComponent, selector: "lib-tab", inputs: { label: "label", id: "id" }, viewQueries: [{ propertyName: "content", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `
1517
+ <ng-template>
1518
+ <ng-content></ng-content>
1519
+ </ng-template>
1520
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LibTabComponent, decorators: [{
1522
+ type: Component,
1523
+ args: [{
1524
+ selector: 'lib-tab',
1525
+ template: `
1526
+ <ng-template>
1527
+ <ng-content></ng-content>
1528
+ </ng-template>
1529
+ `,
1530
+ encapsulation: ViewEncapsulation.None,
1531
+ changeDetection: ChangeDetectionStrategy.OnPush
1532
+ }]
1533
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1534
+ type: Optional
1535
+ }, {
1536
+ type: Inject,
1537
+ args: [LIBTABGROUP_ACCESSOR]
1538
+ }] }]; }, propDecorators: { content: [{
1539
+ type: ViewChild,
1540
+ args: [TemplateRef, { static: true }]
1541
+ }], label: [{
1542
+ type: Input
1543
+ }], id: [{
1544
+ type: Input
1545
+ }] } });
1546
+
1547
+ class LibTabGroupComponent {
1548
+ constructor() {
1549
+ /** The inner tabs of the group. */
1550
+ this.tabs = undefined;
1551
+ /** Emmited when a step change occurs. */
1552
+ this.tabChanged = new EventEmitter();
1553
+ }
1554
+ /** The current tab. */
1555
+ get currentTab() {
1556
+ return this.tabs?.find(x => x.isActive);
1557
+ }
1558
+ /** The index (starting from zero) of the current tab. */
1559
+ get currentΤabIndex() {
1560
+ return this.currentTab?.index || undefined;
1561
+ }
1562
+ ngOnInit() { }
1563
+ ngAfterContentInit() {
1564
+ if (!this.tabs) {
1565
+ return;
1566
+ }
1567
+ }
1568
+ ngAfterContentChecked() {
1569
+ if (this.tabs && this.tabs.length > 0) {
1570
+ const anyActive = this.tabs.filter(x => x.isActive).length > 0;
1571
+ if (!anyActive) {
1572
+ this.tabs.get(0).isActive = true;
1573
+ }
1574
+ }
1575
+ }
1576
+ onTabChanged(selectedTab) {
1577
+ this.tabs.forEach((tab) => tab.isActive = tab.id === selectedTab.id);
1578
+ this.tabChanged.emit(selectedTab);
1579
+ }
1580
+ onTabSelectChanged(selectedTabIndex) {
1581
+ this.tabs.forEach((tab, index) => tab.isActive = index === selectedTabIndex);
1582
+ this.tabChanged.emit(this.tabs?.get(selectedTabIndex));
1583
+ }
1584
+ }
1585
+ LibTabGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LibTabGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1586
+ LibTabGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: LibTabGroupComponent, selector: "lib-tab-group", outputs: { tabChanged: "tabChanged" }, providers: [
1587
+ { provide: LIBTABGROUP_ACCESSOR, useExisting: forwardRef(() => LibTabGroupComponent) }
1588
+ ], queries: [{ propertyName: "tabs", predicate: LibTabComponent, descendants: true }], ngImport: i0, template: "<div class=\"sm:hidden\">\n <label for=\"tabs\" class=\"sr-only\">Select a tab</label>\n <select id=\"tabs\" name=\"tabs\" (change)=\"onTabSelectChanged(+tabsSelect.value)\" class=\"tab-group-select\" #tabsSelect>\n <option [value]=\"i\" *ngFor=\"let tab of tabs; let i = index\">{{ tab.label }}</option>\n </select>\n</div>\n<div class=\"hidden sm:block\">\n <div class=\"tab-group-container\">\n <nav class=\"-mb-px flex space-x-8\" aria-label=\"Tabs\">\n <a *ngFor=\"let tab of tabs\" href=\"javascript:void(0)\" [class.tab]=\"!tab.isActive\" [class.tab-active]=\"tab.isActive\" (click)=\"onTabChanged(tab)\">\n {{ tab.label }}\n </a>\n </nav>\n </div>\n</div>\n<div *ngIf=\"currentTab?.content\">\n <ng-container [ngTemplateOutlet]=\"currentTab!.content\"></ng-container>\n</div>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
1589
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LibTabGroupComponent, decorators: [{
1590
+ type: Component,
1591
+ args: [{ selector: 'lib-tab-group', providers: [
1592
+ { provide: LIBTABGROUP_ACCESSOR, useExisting: forwardRef(() => LibTabGroupComponent) }
1593
+ ], template: "<div class=\"sm:hidden\">\n <label for=\"tabs\" class=\"sr-only\">Select a tab</label>\n <select id=\"tabs\" name=\"tabs\" (change)=\"onTabSelectChanged(+tabsSelect.value)\" class=\"tab-group-select\" #tabsSelect>\n <option [value]=\"i\" *ngFor=\"let tab of tabs; let i = index\">{{ tab.label }}</option>\n </select>\n</div>\n<div class=\"hidden sm:block\">\n <div class=\"tab-group-container\">\n <nav class=\"-mb-px flex space-x-8\" aria-label=\"Tabs\">\n <a *ngFor=\"let tab of tabs\" href=\"javascript:void(0)\" [class.tab]=\"!tab.isActive\" [class.tab-active]=\"tab.isActive\" (click)=\"onTabChanged(tab)\">\n {{ tab.label }}\n </a>\n </nav>\n </div>\n</div>\n<div *ngIf=\"currentTab?.content\">\n <ng-container [ngTemplateOutlet]=\"currentTab!.content\"></ng-container>\n</div>" }]
1594
+ }], ctorParameters: function () { return []; }, propDecorators: { tabs: [{
1595
+ type: ContentChildren,
1596
+ args: [LibTabComponent, { descendants: true }]
1597
+ }], tabChanged: [{
1598
+ type: Output
1599
+ }] } });
1600
+
1601
+ class DynamicComponentHostDirective {
1602
+ constructor(viewContainerRef) {
1603
+ this.viewContainerRef = viewContainerRef;
1604
+ this.hostName = '';
1605
+ }
1606
+ }
1607
+ DynamicComponentHostDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DynamicComponentHostDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
1608
+ DynamicComponentHostDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0", type: DynamicComponentHostDirective, selector: "[appDynamicComponentHost]", inputs: { hostName: "hostName" }, ngImport: i0 });
1609
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DynamicComponentHostDirective, decorators: [{
1610
+ type: Directive,
1611
+ args: [{ selector: '[appDynamicComponentHost]' }]
1612
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { hostName: [{
1613
+ type: Input
1614
+ }] } });
1615
+
1616
+ /**
1617
+ * Holds information about the dynamic content.
1618
+ * @remarks
1619
+ * `ComponentRef` is undefined in the case content is of `TemplateRef` type.
1620
+ */
1621
+ class ContentRef {
1622
+ constructor(nodes, viewRef, componentRef) {
1623
+ this.nodes = nodes;
1624
+ this.viewRef = viewRef;
1625
+ this.componentRef = componentRef;
1626
+ }
1627
+ }
1628
+
1629
+ /**
1630
+ * Provides ways of loading and handling dynamic content.
1631
+ *
1632
+ * @remarks
1633
+ * Do NOT use this directly, create an instance through {@link ComponentLoaderFactory}
1634
+ * You can use this loader in two ways:
1635
+ * - Attaches a component to `ViewContainerRef`.
1636
+ * - Attaches a component to `ViewContainerRef`. The attached component has a `<ng-content>` tag inside its view. The {@link ComponentLoaderOptions.content} will be drawn inside this tag.
1637
+ *
1638
+ * @internal
1639
+ */
1640
+ class ComponentLoader {
1641
+ constructor(vcr, cfr, applicationRef, injector) {
1642
+ this.vcr = vcr;
1643
+ this.cfr = cfr;
1644
+ this.applicationRef = applicationRef;
1645
+ this.injector = injector;
1646
+ /**
1647
+ * Before content is shown event.
1648
+ */
1649
+ this.onBeforeShow = new Subject();
1650
+ /**
1651
+ * After show content event.
1652
+ * @returns The id of newly created component ref.
1653
+ */
1654
+ this.onShown = new Subject();
1655
+ /**
1656
+ * Before content is hidden event.
1657
+ * @returns The instance of attached component;
1658
+ */
1659
+ this.onBeforeHide = new Subject();
1660
+ /**
1661
+ * After content is hidden event.
1662
+ * @returns The id of destroyed component ref.
1663
+ */
1664
+ this.onHidden = new Subject();
1665
+ this.providers = [];
1666
+ this.containerDefaultSelector = 'body';
1667
+ }
1668
+ /**
1669
+ * Attaches component.
1670
+ * @param componentType - The type component to attach.
1671
+ * @returns Current instance of {@link ComponentLoader}
1672
+ */
1673
+ attach(componentType) {
1674
+ this.componentFactory = this.cfr.resolveComponentFactory(componentType);
1675
+ return this;
1676
+ }
1677
+ /**
1678
+ * Body will be used in nothing is provided.
1679
+ * @param container - The element in which dynamic content will be drawn inside to. For string case a query to the dom will be executed to find the element.
1680
+ * @returns Current instance of {@link ComponentLoader}
1681
+ */
1682
+ to(container) {
1683
+ this.container = container || this.container;
1684
+ return this;
1685
+ }
1686
+ /**
1687
+ * Adds provider to the providers array. These providers will be injected to the attached component.
1688
+ *
1689
+ * @see {@link https://angular.io/guide/glossary#di-token | Injection Token}
1690
+ *
1691
+ * @param provider - Provider to inject.
1692
+ * @returns Current instance of {@link ComponentLoader}
1693
+ */
1694
+ provide(provider) {
1695
+ this.providers.push(provider);
1696
+ return this;
1697
+ }
1698
+ /**
1699
+ * Attaches attached component to dom and any dynamic content if provided.
1700
+ * @remarks
1701
+ * Also triggers the {@link ComponentLoader.onBeforeShow} and {@link ComponentLoader.onShown} events.
1702
+ *
1703
+ * @param options - {@link ComponentLoaderOptions}.
1704
+ * @returns A reference to the created content.
1705
+ */
1706
+ show(options = {}) {
1707
+ if (this.componentRef) {
1708
+ throw Error('Component is already shown');
1709
+ }
1710
+ if (!this.componentFactory) {
1711
+ throw Error('You must attach a component');
1712
+ }
1713
+ this.onBeforeShow.next();
1714
+ if (options.content) {
1715
+ this.contentRef = this.getContentRef(options.content, options.context, options.initialState);
1716
+ }
1717
+ this.createComponentAndAttachToView(options);
1718
+ this.appendContentToContainer();
1719
+ this.markComponentsForCheck();
1720
+ this.onShown.next(options.id);
1721
+ return this.componentRef;
1722
+ }
1723
+ /**
1724
+ * Removes attached component from dom.
1725
+ * @remarks
1726
+ * Also triggers the {@link ComponentLoader.onBeforeHide} and {@link ComponentLoader.onHidden} events.
1727
+ *
1728
+ * @param id - If provided it is returned through the {@link ComponentLoader.onHidden}.
1729
+ * @returns Current instance of {@link ComponentLoader}
1730
+ */
1731
+ hide(id, result) {
1732
+ if (!this.componentRef) {
1733
+ throw Error('No attached component found to hide');
1734
+ }
1735
+ this.onBeforeHide.next(this.componentRef.instance);
1736
+ const componentEl = this.componentRef.location.nativeElement;
1737
+ componentEl.parentNode.removeChild(componentEl);
1738
+ if (this.contentRef?.componentRef) {
1739
+ this.contentRef.componentRef.destroy();
1740
+ }
1741
+ if (this.vcr && this.contentRef?.viewRef) {
1742
+ this.vcr.remove(this.vcr.indexOf(this.contentRef.viewRef));
1743
+ }
1744
+ if (this.contentRef?.viewRef) {
1745
+ this.contentRef.viewRef.destroy();
1746
+ }
1747
+ this.contentRef = void 0;
1748
+ this.componentRef = void 0;
1749
+ this.onHidden.next(id ? { id, result } : null);
1750
+ return this;
1751
+ }
1752
+ getInnerComponent() {
1753
+ return this.innerComponent;
1754
+ }
1755
+ markComponentsForCheck() {
1756
+ if (this.contentRef?.componentRef) {
1757
+ this.innerComponent = this.contentRef.componentRef.instance;
1758
+ this.contentRef.componentRef.changeDetectorRef.markForCheck();
1759
+ this.contentRef.componentRef.changeDetectorRef.detectChanges();
1760
+ }
1761
+ this.componentRef.changeDetectorRef.markForCheck();
1762
+ this.componentRef.changeDetectorRef.detectChanges();
1763
+ }
1764
+ createComponentAndAttachToView(options) {
1765
+ const injector = Injector.create({
1766
+ providers: this.providers,
1767
+ parent: this.injector,
1768
+ });
1769
+ this.componentRef = this.componentFactory.create(injector, this.contentRef?.nodes);
1770
+ this.applicationRef.attachView(this.componentRef.hostView);
1771
+ this.instance = this.componentRef.instance;
1772
+ Object.assign(this.componentRef.instance, options);
1773
+ }
1774
+ appendContentToContainer() {
1775
+ if (this.container instanceof ElementRef) {
1776
+ this.container.nativeElement.appendChild(this.componentRef?.location.nativeElement);
1777
+ }
1778
+ if (typeof this.container === 'string' && typeof document !== 'undefined') {
1779
+ const selectedElement = document.querySelector(this.container) || document.querySelector(this.containerDefaultSelector);
1780
+ if (!selectedElement) {
1781
+ return;
1782
+ }
1783
+ selectedElement.appendChild(this.componentRef?.location.nativeElement);
1784
+ }
1785
+ }
1786
+ getContentRef(content, context, initialState) {
1787
+ //TemplateRef case
1788
+ if (content instanceof TemplateRef) {
1789
+ if (this.vcr) {
1790
+ const viewRef = this.vcr.createEmbeddedView(content, context);
1791
+ viewRef.markForCheck();
1792
+ return new ContentRef([viewRef.rootNodes], viewRef);
1793
+ }
1794
+ const viewRef = content.createEmbeddedView({});
1795
+ this.applicationRef.attachView(viewRef);
1796
+ return new ContentRef([viewRef.rootNodes], viewRef);
1797
+ }
1798
+ //Component case
1799
+ if (typeof content === 'function') {
1800
+ const contentCf = this.cfr.resolveComponentFactory(content);
1801
+ const injector = Injector.create({
1802
+ providers: this.providers,
1803
+ parent: this.injector,
1804
+ });
1805
+ const componentRef = contentCf.create(injector);
1806
+ Object.assign(componentRef.instance, initialState);
1807
+ this.applicationRef.attachView(componentRef.hostView);
1808
+ return new ContentRef([[componentRef.location.nativeElement]], componentRef.hostView, componentRef);
1809
+ }
1810
+ throw Error('Unsupported content type');
1811
+ }
1812
+ }
1813
+
1814
+ /**
1815
+ * Use to create instances of {@link ComponentLoader}.
1816
+ *
1817
+ * @public
1818
+ */
1819
+ class ComponentLoaderFactory {
1820
+ constructor(componentFactoryResolver, injector, applicationRef) {
1821
+ this.componentFactoryResolver = componentFactoryResolver;
1822
+ this.injector = injector;
1823
+ this.applicationRef = applicationRef;
1824
+ }
1825
+ /**
1826
+ * Returns a new instance of {@link ComponentLoader}
1827
+ * @param viewContainerRef - The view container the dynamic content will be attached to.
1828
+ * @returns A new instance of {@link ComponentLoader}.
1829
+ *
1830
+ * @public
1831
+ */
1832
+ createLoader(viewContainerRef) {
1833
+ return new ComponentLoader(viewContainerRef, this.componentFactoryResolver, this.applicationRef, this.injector);
1834
+ }
1835
+ }
1836
+ ComponentLoaderFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ComponentLoaderFactory, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
1837
+ ComponentLoaderFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ComponentLoaderFactory, providedIn: 'root' });
1838
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ComponentLoaderFactory, decorators: [{
1839
+ type: Injectable,
1840
+ args: [{ providedIn: 'root' }]
1841
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
1842
+
1843
+ class NotificationsIndicatorComponent {
1844
+ constructor(notifications, links) {
1845
+ this.notifications = notifications;
1846
+ this.links = links;
1847
+ this.menuExpanded = false;
1848
+ this.unreadCount = 0;
1849
+ this.items = [];
1850
+ this.inboxAction = undefined;
1851
+ this.newArrival = false;
1852
+ }
1853
+ ngOnDestroy() {
1854
+ if (this.notificationsSub$) {
1855
+ this.notificationsSub$.unsubscribe();
1856
+ }
1857
+ }
1858
+ ngOnInit() {
1859
+ this.links['notifications'].subscribe(notificationsLink => {
1860
+ this.allNotificationsLink = notificationsLink;
1861
+ });
1862
+ this.notificationsSub$ = this.notifications.messages.subscribe(result => {
1863
+ if (result.items) {
1864
+ this.newArrival = true;
1865
+ this.unreadCount = result.count;
1866
+ this.items = result.items;
1867
+ setTimeout(() => { this.newArrival = false; }, 1000);
1868
+ }
1869
+ });
1870
+ }
1871
+ doInboxAction() {
1872
+ if (this.notifications.inboxAction) {
1873
+ this.notifications.inboxAction();
1874
+ }
1875
+ else {
1876
+ this.menuExpanded = !this.menuExpanded;
1877
+ }
1878
+ this.unreadCount = 0;
1879
+ }
1880
+ removeItem(index) {
1881
+ this.items.splice(index, 1);
1882
+ }
1883
+ // this.notificationsSub$ = this.links.notifications?.pipe(map(result => {
1884
+ // this.allItemsLink = result.allNotifications;
1885
+ // this.items = result.items;
1886
+ // this.unreadCount = result.count;
1887
+ // }));
1888
+ // [this.notificationsLinksPath] as Observable<NotificationNavLink[]>;
1889
+ // this.allNotificationsLink = this.links[this.allNotificationsLinkPath] as Observable<NavLink>;
1890
+ // this.unreadNotificationsCountObs = this.links[this.notificationsCounterLinksPath] as Observable<number>;
1891
+ // this.getUnreadNotificationsCount();
1892
+ // tslint:disable-next-line:typedef
1893
+ onClickOutside($event) {
1894
+ this.menuExpanded = false;
1895
+ }
1896
+ }
1897
+ NotificationsIndicatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NotificationsIndicatorComponent, deps: [{ token: APP_NOTIFICATIONS }, { token: APP_LINKS }], target: i0.ɵɵFactoryTarget.Component });
1898
+ NotificationsIndicatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: NotificationsIndicatorComponent, selector: "lib-notifications-indicator", ngImport: i0, template: "<div class=\"relative\"\n(clickOutside)=\"onClickOutside($event)\">\n <!-- Notifications Button -->\n <button type=\"button\"\n (click)=\"doInboxAction()\"\n aria-expanded=\"false\"\n aria-haspopup=\"true\">\n <span class=\"sr-only\">View notifications</span>\n <span class=\"avatar-container\">\n <span class=\"avatar-text\">\n <i class=\"ms-Icon hover:text-blue-400\"\n [class.ms-Icon--MessageFill]=\"unreadCount > 0\"\n [class.text-sky-400]=\"unreadCount > 0\"\n [class.animate-notification]=\"newArrival\"\n [class.ms-Icon--Message]=\"unreadCount === 0\">\n </i>\n </span>\n <span\n *ngIf=\"unreadCount > 0\"\n [class.animate-pulse]=\"newArrival\"\n class=\"absolute top-0 right-0 inline-flex items-center justify-center -mt-1 ml-1 text-xs leading-none text-gray-100 ordinal\">\n {{ unreadCount }}\n </span>\n </span>\n </button>\n\n <!-- Notifications dropdown -->\n <div *ngIf=\"menuExpanded\" class=\"header-notifications-dropdown-with-username\" role=\"menu\" aria-orientation=\"vertical\" aria-labelledby=\"messages-menu\">\n <div class=\"max-h-64 overflow-y-auto notification-messages min-h\">\n <ng-container *ngIf=\"!items; else messagesDropDown\" class=\"py-5\">\n <div class=\"notifications-nav-link hover:bg-transparent\">\u0394\u03B5\u03BD \u03AD\u03C7\u03B5\u03C4\u03B5 \u03BD\u03AD\u03B5\u03C2 \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9\u03C2</div>\n </ng-container>\n <ng-template #messagesDropDown>\n <ul class=\"pr-1.5\">\n <ng-container *ngIf=\"items; else loading\">\n <ng-container *ngIf=\"items.length <= 0\" class=\"py-5\">\n <div class=\"notifications-nav-link hover:bg-transparent\">\u0394\u03B5\u03BD \u03AD\u03C7\u03B5\u03C4\u03B5 \u03BD\u03AD\u03B5\u03C2 \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9\u03C2</div>\n </ng-container>\n <ng-container *ngFor=\"let message of items; let i = index\">\n <li class=\"mb-2\" [ngClass]=\"{ 'border-l-2 border-blue-500 bg-blue-50 hover:bg-blue-50': !message.data.isRead }\">\n <div class=\"flex justify-between\">\n <div class=\"flex-grow\">\n <a\n [routerLink]=\"message.path\"\n (click)=\"removeItem(i)\"\n class=\"notifications-nav-link grid\"\n [ngClass]=\"!message.data.isRead ? ' hover:bg-blue-50' : 'border-b border-gray-100'\"\n >\n <div class=\"flex flex-col\">\n <div class=\"font-thin tracking-tighter\">\n {{ message.data.creationDate | date: \"EEE, d MMMM\" }}\n </div>\n <div class=\"font-bold\">\n {{ message.data.text }}\n </div>\n </div>\n </a>\n </div>\n </div>\n </li>\n </ng-container>\n </ng-container>\n\n <ng-template #loading>\n <div class=\"h-32 flex items-center justify-center\">\n <div class=\"animate-pulse text-s text-gray-600\">Loading...</div>\n </div>\n </ng-template>\n </ul>\n </ng-template>\n </div>\n <div class=\"p-1 rounded-sm\">\n <a [routerLink]=\"allNotificationsLink!.path\">\n <button type=\"button\" class=\"header-notifications-dropdown-view-all-button\">{{allNotificationsLink!.text}}</button>\n </a>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }] });
1899
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NotificationsIndicatorComponent, decorators: [{
1900
+ type: Component,
1901
+ args: [{ selector: 'lib-notifications-indicator', template: "<div class=\"relative\"\n(clickOutside)=\"onClickOutside($event)\">\n <!-- Notifications Button -->\n <button type=\"button\"\n (click)=\"doInboxAction()\"\n aria-expanded=\"false\"\n aria-haspopup=\"true\">\n <span class=\"sr-only\">View notifications</span>\n <span class=\"avatar-container\">\n <span class=\"avatar-text\">\n <i class=\"ms-Icon hover:text-blue-400\"\n [class.ms-Icon--MessageFill]=\"unreadCount > 0\"\n [class.text-sky-400]=\"unreadCount > 0\"\n [class.animate-notification]=\"newArrival\"\n [class.ms-Icon--Message]=\"unreadCount === 0\">\n </i>\n </span>\n <span\n *ngIf=\"unreadCount > 0\"\n [class.animate-pulse]=\"newArrival\"\n class=\"absolute top-0 right-0 inline-flex items-center justify-center -mt-1 ml-1 text-xs leading-none text-gray-100 ordinal\">\n {{ unreadCount }}\n </span>\n </span>\n </button>\n\n <!-- Notifications dropdown -->\n <div *ngIf=\"menuExpanded\" class=\"header-notifications-dropdown-with-username\" role=\"menu\" aria-orientation=\"vertical\" aria-labelledby=\"messages-menu\">\n <div class=\"max-h-64 overflow-y-auto notification-messages min-h\">\n <ng-container *ngIf=\"!items; else messagesDropDown\" class=\"py-5\">\n <div class=\"notifications-nav-link hover:bg-transparent\">\u0394\u03B5\u03BD \u03AD\u03C7\u03B5\u03C4\u03B5 \u03BD\u03AD\u03B5\u03C2 \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9\u03C2</div>\n </ng-container>\n <ng-template #messagesDropDown>\n <ul class=\"pr-1.5\">\n <ng-container *ngIf=\"items; else loading\">\n <ng-container *ngIf=\"items.length <= 0\" class=\"py-5\">\n <div class=\"notifications-nav-link hover:bg-transparent\">\u0394\u03B5\u03BD \u03AD\u03C7\u03B5\u03C4\u03B5 \u03BD\u03AD\u03B5\u03C2 \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9\u03C2</div>\n </ng-container>\n <ng-container *ngFor=\"let message of items; let i = index\">\n <li class=\"mb-2\" [ngClass]=\"{ 'border-l-2 border-blue-500 bg-blue-50 hover:bg-blue-50': !message.data.isRead }\">\n <div class=\"flex justify-between\">\n <div class=\"flex-grow\">\n <a\n [routerLink]=\"message.path\"\n (click)=\"removeItem(i)\"\n class=\"notifications-nav-link grid\"\n [ngClass]=\"!message.data.isRead ? ' hover:bg-blue-50' : 'border-b border-gray-100'\"\n >\n <div class=\"flex flex-col\">\n <div class=\"font-thin tracking-tighter\">\n {{ message.data.creationDate | date: \"EEE, d MMMM\" }}\n </div>\n <div class=\"font-bold\">\n {{ message.data.text }}\n </div>\n </div>\n </a>\n </div>\n </div>\n </li>\n </ng-container>\n </ng-container>\n\n <ng-template #loading>\n <div class=\"h-32 flex items-center justify-center\">\n <div class=\"animate-pulse text-s text-gray-600\">Loading...</div>\n </div>\n </ng-template>\n </ul>\n </ng-template>\n </div>\n <div class=\"p-1 rounded-sm\">\n <a [routerLink]=\"allNotificationsLink!.path\">\n <button type=\"button\" class=\"header-notifications-dropdown-view-all-button\">{{allNotificationsLink!.text}}</button>\n </a>\n </div>\n </div>\n</div>\n" }]
1902
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1903
+ type: Inject,
1904
+ args: [APP_NOTIFICATIONS]
1905
+ }] }, { type: undefined, decorators: [{
1906
+ type: Inject,
1907
+ args: [APP_LINKS]
1908
+ }] }]; } });
1909
+
1910
+ class LanguageSelectionComponent {
1911
+ constructor(langsService) {
1912
+ this.langsService = langsService;
1913
+ this.menuExpanded = false;
1914
+ }
1915
+ ngOnInit() {
1916
+ }
1917
+ selectLang(option) {
1918
+ if (this.langsService?.setSelected) {
1919
+ this.langsService.setSelected(option.value);
1920
+ }
1921
+ }
1922
+ onClickOutside($event) {
1923
+ this.menuExpanded = false;
1924
+ }
1925
+ }
1926
+ LanguageSelectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LanguageSelectionComponent, deps: [{ token: APP_LANGUAGES }], target: i0.ɵɵFactoryTarget.Component });
1927
+ LanguageSelectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: LanguageSelectionComponent, selector: "lib-language-selection", ngImport: i0, template: "<div class=\"relative\" (clickOutside)=\"onClickOutside($event)\">\n <button class=\"text-blue-300 hover:text-blue-400\" (click)=\"menuExpanded = !menuExpanded\">\n <i class=\"text-xs mr-1 ms-Icon ms-Icon--Globe\"></i>\n <span>{{langsService?.selected || langsService?.default}}</span>\n </button>\n\n <div\n [class]=\"menuExpanded ? 'transition ease-out duration-200 origin-top-right z-30 absolute right-0 mt-2 w-56 rounded-sm shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none':'hidden transition ease-in duration-75 origin-top-right z-30 right-0 mt-2 w-56 rounded-sm shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none'\" role=\"menu\" aria-orientation=\"vertical\" aria-labelledby=\"menu-button\" tabindex=\"-1\">\n <div class=\"py-1\" role=\"none\">\n <ng-container *ngFor=\"let lang of langsService?.options | async\">\n <a (click)=\"selectLang(lang)\" *ngIf=\"lang.value != langsService?.selected\" class=\"nav-link-profile\" role=\"menuitem\" tabindex=\"-1\" id=\"menu-item-0\">\n <i class=\"text-xs mr-1 ms-Icon ms-Icon--GlobeFavorite\"></i>\n {{lang.description}}\n </a>\n </ng-container>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
1928
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LanguageSelectionComponent, decorators: [{
1929
+ type: Component,
1930
+ args: [{ selector: 'lib-language-selection', template: "<div class=\"relative\" (clickOutside)=\"onClickOutside($event)\">\n <button class=\"text-blue-300 hover:text-blue-400\" (click)=\"menuExpanded = !menuExpanded\">\n <i class=\"text-xs mr-1 ms-Icon ms-Icon--Globe\"></i>\n <span>{{langsService?.selected || langsService?.default}}</span>\n </button>\n\n <div\n [class]=\"menuExpanded ? 'transition ease-out duration-200 origin-top-right z-30 absolute right-0 mt-2 w-56 rounded-sm shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none':'hidden transition ease-in duration-75 origin-top-right z-30 right-0 mt-2 w-56 rounded-sm shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none'\" role=\"menu\" aria-orientation=\"vertical\" aria-labelledby=\"menu-button\" tabindex=\"-1\">\n <div class=\"py-1\" role=\"none\">\n <ng-container *ngFor=\"let lang of langsService?.options | async\">\n <a (click)=\"selectLang(lang)\" *ngIf=\"lang.value != langsService?.selected\" class=\"nav-link-profile\" role=\"menuitem\" tabindex=\"-1\" id=\"menu-item-0\">\n <i class=\"text-xs mr-1 ms-Icon ms-Icon--GlobeFavorite\"></i>\n {{lang.description}}\n </a>\n </ng-container>\n </div>\n </div>\n</div>\n" }]
1931
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1932
+ type: Inject,
1933
+ args: [APP_LANGUAGES]
1934
+ }] }]; } });
1935
+
1936
+ class UserProfileMenuComponent {
1937
+ constructor(authService, router, links) {
1938
+ this.authService = authService;
1939
+ this.router = router;
1940
+ this.links = links;
1941
+ // tslint:disable-next-line:no-input-rename
1942
+ this.showUserName = false;
1943
+ this.userSub$ = null;
1944
+ this.statusSub$ = null;
1945
+ this.user = null;
1946
+ this.avatarName = null;
1947
+ this.userMenuExpanded = false;
1948
+ }
1949
+ ngOnInit() {
1950
+ this.authService.loadUser().subscribe((user) => {
1951
+ this.setCurrentUser(user);
1952
+ }, error => {
1953
+ console.error(error);
1954
+ });
1955
+ // Detect user changes and display / or not user info accordingly...
1956
+ this.userSub$ = this.authService.user$.subscribe((user) => {
1957
+ // console.log('ShellHeaderComponent user subscription');
1958
+ this.setCurrentUser(user);
1959
+ });
1960
+ }
1961
+ signin(event) {
1962
+ if (event) {
1963
+ event.preventDefault();
1964
+ }
1965
+ this.authService.signinRedirect();
1966
+ }
1967
+ setCurrentUser(user) {
1968
+ this.user = user;
1969
+ if (this.user && this.user.profile) {
1970
+ this.avatarName = `${this.user.profile.given_name?.charAt(0)}${this.user.profile.family_name?.charAt(0)}`.toUpperCase();
1971
+ }
1972
+ }
1973
+ // tslint:disable-next-line:typedef
1974
+ onClickOutside($event) {
1975
+ this.userMenuExpanded = false;
1976
+ }
1977
+ }
1978
+ UserProfileMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UserProfileMenuComponent, deps: [{ token: AuthService }, { token: Router }, { token: APP_LINKS }], target: i0.ɵɵFactoryTarget.Component });
1979
+ UserProfileMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: UserProfileMenuComponent, selector: "lib-user-profile-menu", inputs: { showUserName: ["show-user-name", "showUserName"] }, ngImport: i0, template: "<div class=\"relative\" (clickOutside)=\"onClickOutside($event)\" (click)=\"userMenuExpanded = !userMenuExpanded\">\n\n <div class=\"inline-flex\">\n <!-- Username -->\n <div [ngClass]=\"{'shell-header-profile': showUserName}\">\n <div *ngIf=\"user && showUserName\" class=\"shell-header-profile-userName\">\n {{ user.profile.name }}\n </div>\n </div>\n\n <div [class.ml-2]=\"showUserName\">\n <button type=\"button\" *ngIf=\"user\"\n class=\"shell-header-profile-dropdown-button\"\n id=\"user-menu\"\n aria-expanded=\"false\"\n aria-haspopup=\"true\">\n <span class=\"sr-only\">Open user menu</span>\n <span class=\"avatar-container\">\n <span class=\"avatar-text\">{{this.avatarName}}</span>\n </span>\n </button>\n\n <button type=\"button\"\n *ngIf=\"!user\"\n (click)=\"signin(null)\"\n class=\"shell-header-profile-dropdown-button\"\n id=\"user-menu\"\n aria-expanded=\"false\"\n aria-haspopup=\"true\">\n <span class=\"sr-only\">sign in</span>\n <span class=\"avatar-container\">\n <span class=\"avatar-text\"><i class=\"ms-Icon ms-Icon--Signin\"></i></span>\n </span>\n </button>\n </div>\n </div>\n\n <div [class]=\"userMenuExpanded ?\n 'transition ease-out duration-200 origin-top-right z-30 absolute right-0 mt-2 w-56 rounded-sm shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none'\n :\n 'hidden transition ease-in duration-75 origin-top-right z-30 right-0 mt-2 w-56 rounded-sm shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none'\"\n role=\"menu\" aria-orientation=\"vertical\" aria-labelledby=\"menu-button\" tabindex=\"-1\">\n <lib-nav-links-list\n [links]=\"links.profile\"\n [link-class]=\"'nav-link-profile'\"\n [link-active-class]=\"'nav-link-profile-active'\">\n </lib-nav-links-list>\n </div>\n\n</div>\n\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }, { kind: "component", type: NavLinksListComponent, selector: "lib-nav-links-list", inputs: ["links", "active-fragment", "link-class", "link-active-class", "container-class", "show-icons"] }] });
1980
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UserProfileMenuComponent, decorators: [{
1981
+ type: Component,
1982
+ args: [{ selector: 'lib-user-profile-menu', template: "<div class=\"relative\" (clickOutside)=\"onClickOutside($event)\" (click)=\"userMenuExpanded = !userMenuExpanded\">\n\n <div class=\"inline-flex\">\n <!-- Username -->\n <div [ngClass]=\"{'shell-header-profile': showUserName}\">\n <div *ngIf=\"user && showUserName\" class=\"shell-header-profile-userName\">\n {{ user.profile.name }}\n </div>\n </div>\n\n <div [class.ml-2]=\"showUserName\">\n <button type=\"button\" *ngIf=\"user\"\n class=\"shell-header-profile-dropdown-button\"\n id=\"user-menu\"\n aria-expanded=\"false\"\n aria-haspopup=\"true\">\n <span class=\"sr-only\">Open user menu</span>\n <span class=\"avatar-container\">\n <span class=\"avatar-text\">{{this.avatarName}}</span>\n </span>\n </button>\n\n <button type=\"button\"\n *ngIf=\"!user\"\n (click)=\"signin(null)\"\n class=\"shell-header-profile-dropdown-button\"\n id=\"user-menu\"\n aria-expanded=\"false\"\n aria-haspopup=\"true\">\n <span class=\"sr-only\">sign in</span>\n <span class=\"avatar-container\">\n <span class=\"avatar-text\"><i class=\"ms-Icon ms-Icon--Signin\"></i></span>\n </span>\n </button>\n </div>\n </div>\n\n <div [class]=\"userMenuExpanded ?\n 'transition ease-out duration-200 origin-top-right z-30 absolute right-0 mt-2 w-56 rounded-sm shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none'\n :\n 'hidden transition ease-in duration-75 origin-top-right z-30 right-0 mt-2 w-56 rounded-sm shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none'\"\n role=\"menu\" aria-orientation=\"vertical\" aria-labelledby=\"menu-button\" tabindex=\"-1\">\n <lib-nav-links-list\n [links]=\"links.profile\"\n [link-class]=\"'nav-link-profile'\"\n [link-active-class]=\"'nav-link-profile-active'\">\n </lib-nav-links-list>\n </div>\n\n</div>\n\n" }]
1983
+ }], ctorParameters: function () { return [{ type: i2.AuthService, decorators: [{
1984
+ type: Inject,
1985
+ args: [AuthService]
1986
+ }] }, { type: i1$1.Router, decorators: [{
1987
+ type: Inject,
1988
+ args: [Router]
1989
+ }] }, { type: undefined, decorators: [{
1990
+ type: Inject,
1991
+ args: [APP_LINKS]
1992
+ }] }]; }, propDecorators: { showUserName: [{
1993
+ type: Input,
1994
+ args: ['show-user-name']
1995
+ }] } });
1996
+
1997
+ class ShellHeaderComponent {
1998
+ constructor(authService, router, route, config, links) {
1999
+ this.authService = authService;
2000
+ this.router = router;
2001
+ this.route = route;
2002
+ this.config = config;
2003
+ this.links = links;
2004
+ // tslint:disable-next-line:no-input-rename
2005
+ this.sectionLinksPath = 'main';
2006
+ // tslint:disable-next-line:no-input-rename
2007
+ this.profileMenuVisible = true;
2008
+ // tslint:disable-next-line:no-input-rename
2009
+ this.showUserNameOnHeader = false;
2010
+ // tslint:disable-next-line:no-input-rename
2011
+ this.showAlerts = false;
2012
+ // tslint:disable-next-line:no-input-rename
2013
+ this.shellLayout = ShellLayoutType.Stacked;
2014
+ this.border = true;
2015
+ this.sectionLinks = of([]);
2016
+ this.mobileMenuExpanded = false;
2017
+ this.userMenuExpanded = false;
2018
+ this.routerSub$ = null;
2019
+ this.userSub$ = null;
2020
+ this.statusSub$ = null;
2021
+ this.user = null;
2022
+ this.avatarName = null;
2023
+ this.activeFragment = null;
2024
+ this.routeSubject = this.router.events.pipe(filter((event) => event instanceof NavigationStart));
2025
+ }
2026
+ ngOnInit() {
2027
+ this.activeFragment = this.route.fragment.pipe(share());
2028
+ this.sectionLinks = this.links[this.sectionLinksPath];
2029
+ this.routerSub$ = this.routeSubject.subscribe((event) => {
2030
+ this.mobileMenuExpanded = false;
2031
+ this.userMenuExpanded = false;
2032
+ });
2033
+ this.authService.loadUser().subscribe((user) => {
2034
+ this.setCurrentUser(user);
2035
+ }, error => {
2036
+ console.error(error);
2037
+ });
2038
+ // Detect user changes and display / or not user info accordingly...
2039
+ this.userSub$ = this.authService.user$.subscribe((user) => {
2040
+ // console.log('ShellHeaderComponent user subscription');
2041
+ this.setCurrentUser(user);
2042
+ });
2043
+ }
2044
+ ngOnDestroy() {
2045
+ if (this.routerSub$) {
2046
+ this.routerSub$.unsubscribe();
2047
+ }
2048
+ // TODO: check authenticated user here before we start polling server status
2049
+ if (this.statusSub$) {
2050
+ this.statusSub$.unsubscribe();
2051
+ }
2052
+ if (this.userSub$) {
2053
+ this.userSub$.unsubscribe();
2054
+ }
2055
+ }
2056
+ // tslint:disable-next-line:typedef
2057
+ onClickOutside($event) {
2058
+ this.userMenuExpanded = false;
2059
+ }
2060
+ signin(event) {
2061
+ if (event) {
2062
+ event.preventDefault();
2063
+ }
2064
+ this.authService.signinRedirect();
2065
+ }
2066
+ setCurrentUser(user) {
2067
+ this.user = user;
2068
+ if (this.user && this.user.profile) {
2069
+ this.avatarName = `${this.user.profile.given_name?.charAt(0)}${this.user.profile.family_name?.charAt(0)}`.toUpperCase();
2070
+ }
2071
+ }
2072
+ }
2073
+ ShellHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ShellHeaderComponent, deps: [{ token: AuthService }, { token: Router }, { token: ActivatedRoute }, { token: SHELL_CONFIG }, { token: APP_LINKS }], target: i0.ɵɵFactoryTarget.Component });
2074
+ ShellHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ShellHeaderComponent, selector: "lib-shell-header", inputs: { sectionLinksPath: ["section-links", "sectionLinksPath"], profileMenuVisible: ["profile-menu", "profileMenuVisible"], showUserNameOnHeader: ["show-userName", "showUserNameOnHeader"], showAlerts: ["show-alerts", "showAlerts"], shellLayout: ["shell-layout", "shellLayout"], border: "border" }, ngImport: i0, template: "<nav>\n <div class=\"shell-header-paddings\">\n <div [class]=\"border ? 'shell-header-border' : ''\">\n <div class=\"shell-header-menu-container\">\n <div *ngIf=\"shellLayout==='Stacked'\" class=\"shell-header-logo-container\">\n <div>\n <a href=\"#\" [routerLink]=\"['/']\"><img class=\"app-logo\" [src]=\"config.appLogo\" [alt]=\"config.appLogoAlt\" /></a>\n </div>\n </div>\n\n <div *ngIf=\"shellLayout==='Stacked'\" class=\"shell-header-link-container\">\n <div class=\"shell-header-link-container-inner\">\n <lib-nav-links-list\n [links]=\"sectionLinks\"\n [active-fragment]=\"activeFragment\"\n [link-class]=\"'nav-link'\"\n [link-active-class]=\"'nav-link-active'\">\n </lib-nav-links-list>\n </div>\n </div>\n\n <div class=\"shell-header-md-visible\">\n\n <div class=\"shell-header-links-far-container\" (clickOutside)=\"onClickOutside($event)\">\n\n <lib-nav-links-list\n [links]=\"links.profileActions\"\n [active-fragment]=\"activeFragment\"\n [link-class]=\"'shell-header-menu-rounded-button'\"\n [link-active-class]=\"'shell-header-menu-rounded-button-active'\">\n </lib-nav-links-list>\n\n\n <!-- Profile dropdown -->\n <div *ngIf=\"profileMenuVisible\" class=\"ml-2\">\n <lib-user-profile-menu [show-user-name]=\"showUserNameOnHeader\"></lib-user-profile-menu>\n </div>\n\n <!-- Notifications dropdown -->\n <div *ngIf=\"showAlerts && user\" class=\"ml-2\">\n <lib-notifications-indicator></lib-notifications-indicator>\n </div>\n\n <!-- languages dropdown -->\n <div *ngIf=\"config.showLangsOnHeader\" class=\"ml-2\">\n <lib-language-selection></lib-language-selection>\n </div>\n </div>\n </div>\n\n <div class=\"mobile-menu-button-container\" *ngIf=\"shellLayout === 'Stacked'\">\n <!-- Mobile menu button -->\n <button type=\"button\"\n (click)=\"mobileMenuExpanded = !mobileMenuExpanded\"\n class=\"mobile-menu-button\"\n aria-controls=\"mobile-menu\"\n [attr.aria-expanded]=\"mobileMenuExpanded\">\n <span class=\"sr-only\">Open main menu</span>\n <!--Heroicon name: outline/menu Menu open: \"hidden\", Menu closed: \"block\"-->\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n [class]=\"mobileMenuExpanded ? 'hidden':'block h-6 w-6'\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M4 6h16M4 12h16M4 18h16\" />\n </svg>\n <!--Heroicon name: outline/x Menu open: \"block\", Menu closed: \"hidden\"-->\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n [class]=\"mobileMenuExpanded ? 'block h-6 w-6':'hidden'\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </button>\n </div>\n\n </div>\n </div>\n </div>\n <!-- Mobile menu, show/hide based on menu state. -->\n <div class=\"mobile-menu-container\" *ngIf=\"mobileMenuExpanded\" id=\"mobile-menu\">\n <lib-nav-links-list\n [links]=\"sectionLinks\"\n [active-fragment]=\"activeFragment\"\n [link-class]=\"'nav-link-mobile'\"\n [link-active-class]=\"'nav-link-mobile-active'\"\n [container-class]=\"'mobile-menu-link-container'\">\n </lib-nav-links-list>\n\n <div *ngIf=\"!user\">\n <a href=\"#\" (click)=\"signin($event)\" class=\"nav-link-mobile\">\n <i class=\"ms-Icon ms-Icon--Signin mr-2\"></i>\u03A3\u03CD\u03BD\u03B4\u03B5\u03C3\u03B7\n </a>\n </div>\n\n <div class=\"mobile-menu-user-info-container\" *ngIf=\"user\">\n <div class=\"mobile-menu-user-info-container-inner\">\n <div class=\"flex-shrink-0\">\n <span class=\"mobile-menu-avatar-container\">\n <span class=\"mobile-menu-avatar-name\">{{ this.avatarName }}</span>\n </span>\n </div>\n <div class=\"ml-3\">\n <div class=\"mobile-menu-user-name\">{{ user.profile.name }}</div>\n <div class=\"mobile-menu-user-email\">{{ user.profile.email }}</div>\n </div>\n <!--\n <button class=\"mobile-menu-rounded-button\">\n <span class=\"sr-only\">View notifications</span>\n <svg class=\"mobile-menu-rounded-button-icon-style\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n aria-hidden=\"true\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9\" />\n </svg>\n </button>\n -->\n </div>\n </div>\n\n <lib-nav-links-list\n [links]=\"links.profile\"\n [active-fragment]=\"activeFragment\"\n [link-class]=\"'nav-link-mobile'\"\n [link-active-class]=\"'nav-link-mobile-active'\"\n [container-class]=\"'mobile-menu-link-container'\">\n </lib-nav-links-list>\n </div>\n</nav>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }, { kind: "component", type: NavLinksListComponent, selector: "lib-nav-links-list", inputs: ["links", "active-fragment", "link-class", "link-active-class", "container-class", "show-icons"] }, { kind: "component", type: NotificationsIndicatorComponent, selector: "lib-notifications-indicator" }, { kind: "component", type: LanguageSelectionComponent, selector: "lib-language-selection" }, { kind: "component", type: UserProfileMenuComponent, selector: "lib-user-profile-menu", inputs: ["show-user-name"] }] });
2075
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ShellHeaderComponent, decorators: [{
2076
+ type: Component,
2077
+ args: [{ selector: 'lib-shell-header', template: "<nav>\n <div class=\"shell-header-paddings\">\n <div [class]=\"border ? 'shell-header-border' : ''\">\n <div class=\"shell-header-menu-container\">\n <div *ngIf=\"shellLayout==='Stacked'\" class=\"shell-header-logo-container\">\n <div>\n <a href=\"#\" [routerLink]=\"['/']\"><img class=\"app-logo\" [src]=\"config.appLogo\" [alt]=\"config.appLogoAlt\" /></a>\n </div>\n </div>\n\n <div *ngIf=\"shellLayout==='Stacked'\" class=\"shell-header-link-container\">\n <div class=\"shell-header-link-container-inner\">\n <lib-nav-links-list\n [links]=\"sectionLinks\"\n [active-fragment]=\"activeFragment\"\n [link-class]=\"'nav-link'\"\n [link-active-class]=\"'nav-link-active'\">\n </lib-nav-links-list>\n </div>\n </div>\n\n <div class=\"shell-header-md-visible\">\n\n <div class=\"shell-header-links-far-container\" (clickOutside)=\"onClickOutside($event)\">\n\n <lib-nav-links-list\n [links]=\"links.profileActions\"\n [active-fragment]=\"activeFragment\"\n [link-class]=\"'shell-header-menu-rounded-button'\"\n [link-active-class]=\"'shell-header-menu-rounded-button-active'\">\n </lib-nav-links-list>\n\n\n <!-- Profile dropdown -->\n <div *ngIf=\"profileMenuVisible\" class=\"ml-2\">\n <lib-user-profile-menu [show-user-name]=\"showUserNameOnHeader\"></lib-user-profile-menu>\n </div>\n\n <!-- Notifications dropdown -->\n <div *ngIf=\"showAlerts && user\" class=\"ml-2\">\n <lib-notifications-indicator></lib-notifications-indicator>\n </div>\n\n <!-- languages dropdown -->\n <div *ngIf=\"config.showLangsOnHeader\" class=\"ml-2\">\n <lib-language-selection></lib-language-selection>\n </div>\n </div>\n </div>\n\n <div class=\"mobile-menu-button-container\" *ngIf=\"shellLayout === 'Stacked'\">\n <!-- Mobile menu button -->\n <button type=\"button\"\n (click)=\"mobileMenuExpanded = !mobileMenuExpanded\"\n class=\"mobile-menu-button\"\n aria-controls=\"mobile-menu\"\n [attr.aria-expanded]=\"mobileMenuExpanded\">\n <span class=\"sr-only\">Open main menu</span>\n <!--Heroicon name: outline/menu Menu open: \"hidden\", Menu closed: \"block\"-->\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n [class]=\"mobileMenuExpanded ? 'hidden':'block h-6 w-6'\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M4 6h16M4 12h16M4 18h16\" />\n </svg>\n <!--Heroicon name: outline/x Menu open: \"block\", Menu closed: \"hidden\"-->\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n [class]=\"mobileMenuExpanded ? 'block h-6 w-6':'hidden'\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </button>\n </div>\n\n </div>\n </div>\n </div>\n <!-- Mobile menu, show/hide based on menu state. -->\n <div class=\"mobile-menu-container\" *ngIf=\"mobileMenuExpanded\" id=\"mobile-menu\">\n <lib-nav-links-list\n [links]=\"sectionLinks\"\n [active-fragment]=\"activeFragment\"\n [link-class]=\"'nav-link-mobile'\"\n [link-active-class]=\"'nav-link-mobile-active'\"\n [container-class]=\"'mobile-menu-link-container'\">\n </lib-nav-links-list>\n\n <div *ngIf=\"!user\">\n <a href=\"#\" (click)=\"signin($event)\" class=\"nav-link-mobile\">\n <i class=\"ms-Icon ms-Icon--Signin mr-2\"></i>\u03A3\u03CD\u03BD\u03B4\u03B5\u03C3\u03B7\n </a>\n </div>\n\n <div class=\"mobile-menu-user-info-container\" *ngIf=\"user\">\n <div class=\"mobile-menu-user-info-container-inner\">\n <div class=\"flex-shrink-0\">\n <span class=\"mobile-menu-avatar-container\">\n <span class=\"mobile-menu-avatar-name\">{{ this.avatarName }}</span>\n </span>\n </div>\n <div class=\"ml-3\">\n <div class=\"mobile-menu-user-name\">{{ user.profile.name }}</div>\n <div class=\"mobile-menu-user-email\">{{ user.profile.email }}</div>\n </div>\n <!--\n <button class=\"mobile-menu-rounded-button\">\n <span class=\"sr-only\">View notifications</span>\n <svg class=\"mobile-menu-rounded-button-icon-style\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n aria-hidden=\"true\">\n <path stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9\" />\n </svg>\n </button>\n -->\n </div>\n </div>\n\n <lib-nav-links-list\n [links]=\"links.profile\"\n [active-fragment]=\"activeFragment\"\n [link-class]=\"'nav-link-mobile'\"\n [link-active-class]=\"'nav-link-mobile-active'\"\n [container-class]=\"'mobile-menu-link-container'\">\n </lib-nav-links-list>\n </div>\n</nav>\n" }]
2078
+ }], ctorParameters: function () { return [{ type: i2.AuthService, decorators: [{
2079
+ type: Inject,
2080
+ args: [AuthService]
2081
+ }] }, { type: i1$1.Router, decorators: [{
2082
+ type: Inject,
2083
+ args: [Router]
2084
+ }] }, { type: i1$1.ActivatedRoute, decorators: [{
2085
+ type: Inject,
2086
+ args: [ActivatedRoute]
2087
+ }] }, { type: undefined, decorators: [{
2088
+ type: Inject,
2089
+ args: [SHELL_CONFIG]
2090
+ }] }, { type: undefined, decorators: [{
2091
+ type: Inject,
2092
+ args: [APP_LINKS]
2093
+ }] }]; }, propDecorators: { sectionLinksPath: [{
2094
+ type: Input,
2095
+ args: ['section-links']
2096
+ }], profileMenuVisible: [{
2097
+ type: Input,
2098
+ args: ['profile-menu']
2099
+ }], showUserNameOnHeader: [{
2100
+ type: Input,
2101
+ args: ['show-userName']
2102
+ }], showAlerts: [{
2103
+ type: Input,
2104
+ args: ['show-alerts']
2105
+ }], shellLayout: [{
2106
+ type: Input,
2107
+ args: ['shell-layout']
2108
+ }], border: [{
2109
+ type: Input
2110
+ }] } });
2111
+
2112
+ class ShellFooterComponent {
2113
+ constructor(links) {
2114
+ this.links = links;
2115
+ }
2116
+ }
2117
+ ShellFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ShellFooterComponent, deps: [{ token: APP_LINKS }], target: i0.ɵɵFactoryTarget.Component });
2118
+ ShellFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ShellFooterComponent, selector: "lib-shell-footer", ngImport: i0, template: "<footer class=\"shell-footer-component-container\">\n <div class=\"shell-footer-paddings\">\n <div class=\"shell-footer-component-container-inner\">\n <div class=\"shell-footer-sections-container\">\n <div class=\"shell-footer-section\">\n <img class=\"shell-footer-logo-h\" src=\"assets/images/branding/indice.png\" alt=\"INDICE logo\" />\n <nav class=\"mt-4\">\n <ul class=\"space-y-2\">\n <ng-container *ngFor=\"let link of links.brand | async\">\n <li>\n <a [href]=\"link.path\" class=\"shell-footer-link\">{{ link.text }}</a>\n </li>\n </ng-container>\n </ul>\n </nav>\n </div>\n <div class=\"shell-footer-section-links\">\n <h5 class=\"shell-footer-section-title\">Legal</h5>\n <nav class=\"mt-4\">\n <ul class=\"grid lg:grid-cols-2\">\n <ng-container *ngFor=\"let link of links.legal | async\">\n <li class=\"mb-2\">\n <a [href]=\"link.path\" class=\"shell-footer-link\">{{ link.text }}</a>\n </li>\n </ng-container>\n </ul>\n </nav>\n </div>\n <div class=\"shell-footer-section-links\">\n <h5 class=\"shell-footer-section-title\">Follow us</h5>\n <nav class=\"mt-4\">\n <ul class=\"grid lg:grid-cols-2\">\n <li class=\"mb-2\">\n <a href=\"#\" class=\"shell-footer-social\">\n <svg class=\"shell-footer-social-icon\" aria-hidden=\"true\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <path d=\"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84\"/>\n </svg>\n <span> Twitter </span>\n </a>\n </li>\n <li class=\"mb-2\">\n <a href=\"#\" class=\"shell-footer-social\">\n <svg class=\"shell-footer-social-icon\" aria-hidden=\"true\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <path fill-rule=\"evenodd\" d=\"M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z\" clip-rule=\"evenodd\"/>\n </svg>\n <span> Instagram </span>\n </a>\n </li>\n <li class=\"mb-2\">\n <a href=\"#\" class=\"shell-footer-social\">\n <svg class=\"shell-footer-social-icon\" aria-hidden=\"true\" fill=\"currentColor\" viewBox=\"0 0 24 24\" >\n <path fill-rule=\"evenodd\" d=\"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z\" clip-rule=\"evenodd\"/>\n </svg>\n <span> Facebook </span>\n </a>\n </li>\n </ul>\n </nav>\n </div>\n </div>\n </div>\n <div class=\"shell-footer-copyright\">\n <!--<nav class=\"flex flex-wrap justify-center space-x-6\">\n <a href=\"#\" class=\"font-normal text-sm hover:text-gray-100 mb-2\">Cookie settings</a>\n </nav>-->\n <p class=\"text-sm text-center sm:text-right\">\n \u00A9 2021 INDICE. All rights reserved.\n </p>\n </div>\n </div>\n</footer>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
2119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ShellFooterComponent, decorators: [{
2120
+ type: Component,
2121
+ args: [{ selector: 'lib-shell-footer', template: "<footer class=\"shell-footer-component-container\">\n <div class=\"shell-footer-paddings\">\n <div class=\"shell-footer-component-container-inner\">\n <div class=\"shell-footer-sections-container\">\n <div class=\"shell-footer-section\">\n <img class=\"shell-footer-logo-h\" src=\"assets/images/branding/indice.png\" alt=\"INDICE logo\" />\n <nav class=\"mt-4\">\n <ul class=\"space-y-2\">\n <ng-container *ngFor=\"let link of links.brand | async\">\n <li>\n <a [href]=\"link.path\" class=\"shell-footer-link\">{{ link.text }}</a>\n </li>\n </ng-container>\n </ul>\n </nav>\n </div>\n <div class=\"shell-footer-section-links\">\n <h5 class=\"shell-footer-section-title\">Legal</h5>\n <nav class=\"mt-4\">\n <ul class=\"grid lg:grid-cols-2\">\n <ng-container *ngFor=\"let link of links.legal | async\">\n <li class=\"mb-2\">\n <a [href]=\"link.path\" class=\"shell-footer-link\">{{ link.text }}</a>\n </li>\n </ng-container>\n </ul>\n </nav>\n </div>\n <div class=\"shell-footer-section-links\">\n <h5 class=\"shell-footer-section-title\">Follow us</h5>\n <nav class=\"mt-4\">\n <ul class=\"grid lg:grid-cols-2\">\n <li class=\"mb-2\">\n <a href=\"#\" class=\"shell-footer-social\">\n <svg class=\"shell-footer-social-icon\" aria-hidden=\"true\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <path d=\"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84\"/>\n </svg>\n <span> Twitter </span>\n </a>\n </li>\n <li class=\"mb-2\">\n <a href=\"#\" class=\"shell-footer-social\">\n <svg class=\"shell-footer-social-icon\" aria-hidden=\"true\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <path fill-rule=\"evenodd\" d=\"M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z\" clip-rule=\"evenodd\"/>\n </svg>\n <span> Instagram </span>\n </a>\n </li>\n <li class=\"mb-2\">\n <a href=\"#\" class=\"shell-footer-social\">\n <svg class=\"shell-footer-social-icon\" aria-hidden=\"true\" fill=\"currentColor\" viewBox=\"0 0 24 24\" >\n <path fill-rule=\"evenodd\" d=\"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z\" clip-rule=\"evenodd\"/>\n </svg>\n <span> Facebook </span>\n </a>\n </li>\n </ul>\n </nav>\n </div>\n </div>\n </div>\n <div class=\"shell-footer-copyright\">\n <!--<nav class=\"flex flex-wrap justify-center space-x-6\">\n <a href=\"#\" class=\"font-normal text-sm hover:text-gray-100 mb-2\">Cookie settings</a>\n </nav>-->\n <p class=\"text-sm text-center sm:text-right\">\n \u00A9 2021 INDICE. All rights reserved.\n </p>\n </div>\n </div>\n</footer>\n" }]
2122
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2123
+ type: Inject,
2124
+ args: [APP_LINKS]
2125
+ }] }]; } });
2126
+
2127
+ class ShellSidebarComponent {
2128
+ constructor(router, route, links) {
2129
+ this.router = router;
2130
+ this.route = route;
2131
+ this.links = links;
2132
+ // tslint:disable-next-line:no-input-rename
2133
+ this.sectionLinksPath = 'main';
2134
+ this.sectionLinks = of([]);
2135
+ // tslint:disable-next-line:no-input-rename
2136
+ this.shellConfig = undefined;
2137
+ this.activeFragment = null;
2138
+ }
2139
+ ngOnInit() {
2140
+ this.activeFragment = this.route.fragment.pipe(share());
2141
+ this.sectionLinks = this.links[this.sectionLinksPath];
2142
+ }
2143
+ }
2144
+ ShellSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ShellSidebarComponent, deps: [{ token: Router }, { token: ActivatedRoute }, { token: APP_LINKS }], target: i0.ɵɵFactoryTarget.Component });
2145
+ ShellSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ShellSidebarComponent, selector: "lib-shell-sidebar", inputs: { sectionLinksPath: ["section-links", "sectionLinksPath"], shellConfig: ["config", "shellConfig"] }, ngImport: i0, template: "<!-- Sidebar component, swap this element with another sidebar if you like -->\n<div class=\"flex w-full flex-col h-full min-h-0 bg-gray-800\">\n <div class=\"flex items-center h-16 flex-shrink-0 px-4 bg-gray-900\">\n <!-- <img class=\"h-8 w-auto\" src=\"https://tailwindui.com/img/logos/workflow-logo-indigo-500-mark-white-text.svg\" alt=\"Workflow\"> -->\n <a href=\"#\" [routerLink]=\"['/']\"><img class=\"app-logo\" [src]=\"shellConfig?.appLogo\" [alt]=\"shellConfig?.appLogoAlt\" /></a>\n </div>\n <div class=\"pt-4 px-2 sidebar\">\n <lib-nav-links-list\n [show-icons]=\"true\"\n [links]=\"sectionLinks\"\n [active-fragment]=\"activeFragment\"\n [link-class]=\"'sidebar nav-link'\"\n [link-active-class]=\"'sidebar nav-link-active'\">\n </lib-nav-links-list>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "component", type: NavLinksListComponent, selector: "lib-nav-links-list", inputs: ["links", "active-fragment", "link-class", "link-active-class", "container-class", "show-icons"] }] });
2146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ShellSidebarComponent, decorators: [{
2147
+ type: Component,
2148
+ args: [{ selector: 'lib-shell-sidebar', template: "<!-- Sidebar component, swap this element with another sidebar if you like -->\n<div class=\"flex w-full flex-col h-full min-h-0 bg-gray-800\">\n <div class=\"flex items-center h-16 flex-shrink-0 px-4 bg-gray-900\">\n <!-- <img class=\"h-8 w-auto\" src=\"https://tailwindui.com/img/logos/workflow-logo-indigo-500-mark-white-text.svg\" alt=\"Workflow\"> -->\n <a href=\"#\" [routerLink]=\"['/']\"><img class=\"app-logo\" [src]=\"shellConfig?.appLogo\" [alt]=\"shellConfig?.appLogoAlt\" /></a>\n </div>\n <div class=\"pt-4 px-2 sidebar\">\n <lib-nav-links-list\n [show-icons]=\"true\"\n [links]=\"sectionLinks\"\n [active-fragment]=\"activeFragment\"\n [link-class]=\"'sidebar nav-link'\"\n [link-active-class]=\"'sidebar nav-link-active'\">\n </lib-nav-links-list>\n </div>\n</div>\n" }]
2149
+ }], ctorParameters: function () { return [{ type: i1$1.Router, decorators: [{
2150
+ type: Inject,
2151
+ args: [Router]
2152
+ }] }, { type: i1$1.ActivatedRoute, decorators: [{
2153
+ type: Inject,
2154
+ args: [ActivatedRoute]
2155
+ }] }, { type: undefined, decorators: [{
2156
+ type: Inject,
2157
+ args: [APP_LINKS]
2158
+ }] }]; }, propDecorators: { sectionLinksPath: [{
2159
+ type: Input,
2160
+ args: ['section-links']
2161
+ }], shellConfig: [{
2162
+ type: Input,
2163
+ args: ['config']
2164
+ }] } });
2165
+
2166
+ class ShellLayoutComponent {
2167
+ constructor(document, router, location, config, componentLoaderFactory) {
2168
+ this.document = document;
2169
+ this.router = router;
2170
+ this.location = location;
2171
+ this.config = config;
2172
+ this.componentLoaderFactory = componentLoaderFactory;
2173
+ this.dynamicComponentHosts = null;
2174
+ this.showRightPaneSM = false;
2175
+ this.routerSub$ = null;
2176
+ this.activeConfig = new DefaultShellConfig();
2177
+ this.loaded = false;
2178
+ this.hideSidebar = false;
2179
+ if (!config) {
2180
+ config = new DefaultShellConfig();
2181
+ }
2182
+ this.activeConfig = config;
2183
+ }
2184
+ ngAfterViewChecked() {
2185
+ setTimeout(() => { this.loaded = true; }, 200);
2186
+ }
2187
+ ngOnInit() {
2188
+ this.routerSub$ = this.router.events.pipe(filter((event) => event instanceof ActivationStart)).subscribe((e) => {
2189
+ // console.log('ShellLayoutComponent ActivationStart', e);
2190
+ if (e?.snapshot) {
2191
+ // console.log('ShellLayoutComponent ActivationStart snapshot', (e as ActivationStart)?.snapshot);
2192
+ if (e?.snapshot?.data) {
2193
+ // console.log('ShellLayoutComponent ActivationStart snapshot data', (e as ActivationStart)?.snapshot.data);
2194
+ if (e?.snapshot?.data.shell) {
2195
+ // console.log('ShellLayoutComponent ActivationStart snapshot data shell params',
2196
+ // (e as ActivationStart)?.snapshot.data.shell);
2197
+ this.activeConfig = e?.snapshot.data.shell;
2198
+ // console.log('ShellLayoutComponent activeConfig from route: ', this.activeConfig);
2199
+ if (this.activeConfig.customHeaderComponent) {
2200
+ this.initCustomComponents();
2201
+ }
2202
+ }
2203
+ else {
2204
+ this.activeConfig = this.config ? this.config : new DefaultShellConfig();
2205
+ // console.log('ShellLayoutComponent default activeConfig: ', this.activeConfig);
2206
+ }
2207
+ }
2208
+ }
2209
+ });
2210
+ }
2211
+ ngAfterViewInit() {
2212
+ this.initCustomComponents();
2213
+ }
2214
+ initCustomComponents() {
2215
+ if (this.dynamicComponentHosts && this.dynamicComponentHosts.length > 0) {
2216
+ this.loadCustomComponent(this.dynamicComponentHosts.find((_) => _.hostName === 'Header'));
2217
+ // since you're not using it...
2218
+ // this.loadCustomComponent(this.dynamicComponentHosts.find(_ => _.hostName === 'Footer'));
2219
+ }
2220
+ }
2221
+ ngOnDestroy() {
2222
+ if (this.routerSub$) {
2223
+ this.routerSub$.unsubscribe();
2224
+ }
2225
+ }
2226
+ loadCustomComponent(host) {
2227
+ if (host) {
2228
+ const viewContainerRef = host.viewContainerRef;
2229
+ if (viewContainerRef && this.activeConfig.customHeaderComponent) {
2230
+ const clf = this.componentLoaderFactory.createLoader(viewContainerRef);
2231
+ const headerCompRef = clf.attach(this.activeConfig.customHeaderComponent).to(viewContainerRef.element).show();
2232
+ }
2233
+ }
2234
+ }
2235
+ }
2236
+ ShellLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ShellLayoutComponent, deps: [{ token: DOCUMENT }, { token: i1$1.Router }, { token: i1.Location }, { token: SHELL_CONFIG }, { token: ComponentLoaderFactory }], target: i0.ɵɵFactoryTarget.Component });
2237
+ ShellLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ShellLayoutComponent, selector: "lib-shell-layout", viewQueries: [{ propertyName: "dynamicComponentHosts", predicate: DynamicComponentHostDirective, descendants: true }], ngImport: i0, template: "<div *ngIf=\"loaded && (activeConfig.layout === 'Stacked' || !activeConfig.layout)\" [style.display]=\"!loaded ? 'none':'block'\" class=\"shell-container active-side-pane\">\n\n <div class=\"shell-header-container\" *ngIf=\"activeConfig.showHeader\">\n <div [class]=\"activeConfig.fluid ? 'shell-header-container-inner-fluid' : 'shell-header-container-inner'\">\n <ng-container *ngIf=\"activeConfig.customHeaderComponent\">\n <div appDynamicComponentHost =\"Header\"></div>\n </ng-container>\n <lib-shell-header *ngIf=\"!activeConfig.customHeaderComponent\" [show-userName]=\"activeConfig.showUserNameOnHeader\"\n [show-alerts]=\"activeConfig.showAlertsOnHeader\">\n </lib-shell-header>\n </div>\n </div>\n\n <main [class]=\"activeConfig.showHeader ? 'shell-content-container' : 'shell-content-container-no-header'\">\n <div [class]=\"activeConfig.fluid ? 'shell-content-container-inner-fluid' : 'shell-content-container-inner'\">\n <router-outlet *ngIf=\"loaded && (activeConfig.layout === 'Stacked' || !activeConfig.layout)\"></router-outlet>\n </div>\n </main>\n\n <div class=\"shell-footer-container\" *ngIf=\"activeConfig.showFooter\">\n <div [class]=\"activeConfig.fluid ? 'shell-footer-container-inner-fluid' : 'shell-footer-container-inner'\">\n <ng-container *ngIf=\"activeConfig.customFooterComponent\">\n <div appDynamicComponentHost hostName=\"Footer\"></div>\n </ng-container>\n <lib-shell-footer *ngIf=\"!activeConfig.customFooterComponent\"></lib-shell-footer>\n </div>\n </div>\n\n <lib-side-pane #rightPane>\n <router-outlet name=\"rightpane\" (activate)=\"rightPane.onSidePaneActivated($event)\" (deactivate)=\"rightPane.onSidePaneDeactivated($event)\"></router-outlet>\n </lib-side-pane>\n\n <lib-toaster-container></lib-toaster-container>\n</div>\n\n<!-- SIDEBAR LAYOUT -->\n\n<div *ngIf=\"loaded && activeConfig.layout === 'Sidebar'\" [style.display]=\"!loaded ? 'none':'block'\" class=\"sidebar shell-container active-side-pane\">\n\n <!-- Static sidebar for desktop -->\n <div class=\"hidden w-0 sm:w-64 flex-col inset-y-0 bg-gray-800\" [class.hidden]=\"hideSidebar\" [class.fixed]=\"!hideSidebar\">\n <lib-shell-sidebar [config]=\"activeConfig\" ></lib-shell-sidebar>\n </div>\n\n <div class=\"flex flex-col\" [class.pl-64]=\"!hideSidebar\">\n <div class=\"sticky top-0 z-10 flex-shrink-0 flex h-16 bg-gray-800\">\n\n <button type=\"button\" class=\"hidden sm:block px-4 border-0 text-white focus:outline-none\" (click)=\"hideSidebar = !hideSidebar\">\n <span class=\"sr-only\">Open sidebar</span>\n <!-- Heroicon name: outline/menu-alt-2 -->\n <svg class=\"h-6 w-6\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" aria-hidden=\"true\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4 6h16M4 12h16M4 18h7\" />\n </svg>\n </button>\n\n <button type=\"button\" class=\"block sm:hidden px-4 border-0 text-gray-200 focus:outline-none\" (click)=\"hideSidebar = !hideSidebar\">\n <span class=\"sr-only\">Open sidebar</span>\n <!-- Heroicon name: outline/menu-alt-2 --> 111\n <svg class=\"h-6 w-6\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" aria-hidden=\"true\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4 6h16M4 12h16M4 18h7\" />\n </svg>\n </button>\n\n <div class=\"flex-1\">\n <div class=\"shell-header-container\">\n <lib-shell-header [shell-layout]=\"activeConfig.layout\" [show-userName]=\"activeConfig.showUserNameOnHeader\" [show-alerts]=\"activeConfig.showAlertsOnHeader\"></lib-shell-header>\n </div>\n </div>\n </div>\n\n <main class=\"shell-content-container-sidebar\">\n <div class=\"shell-content-container-inner\">\n <router-outlet *ngIf=\"loaded && activeConfig.layout === 'Sidebar'\"></router-outlet>\n </div>\n </main>\n </div>\n\n <lib-side-pane #rightPane>\n <router-outlet name=\"rightpane\" (activate)=\"rightPane.onSidePaneActivated($event)\" (deactivate)=\"rightPane.onSidePaneDeactivated($event)\"></router-outlet>\n </lib-side-pane>\n\n <lib-toaster-container></lib-toaster-container>\n\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: DynamicComponentHostDirective, selector: "[appDynamicComponentHost]", inputs: ["hostName"] }, { kind: "component", type: SidePaneComponent, selector: "lib-side-pane", inputs: ["visible"], outputs: ["onComplete"] }, { kind: "component", type: ToasterContainerComponent, selector: "lib-toaster-container" }, { kind: "component", type: ShellHeaderComponent, selector: "lib-shell-header", inputs: ["section-links", "profile-menu", "show-userName", "show-alerts", "shell-layout", "border"] }, { kind: "component", type: ShellFooterComponent, selector: "lib-shell-footer" }, { kind: "component", type: ShellSidebarComponent, selector: "lib-shell-sidebar", inputs: ["section-links", "config"] }] });
2238
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ShellLayoutComponent, decorators: [{
2239
+ type: Component,
2240
+ args: [{ selector: 'lib-shell-layout', template: "<div *ngIf=\"loaded && (activeConfig.layout === 'Stacked' || !activeConfig.layout)\" [style.display]=\"!loaded ? 'none':'block'\" class=\"shell-container active-side-pane\">\n\n <div class=\"shell-header-container\" *ngIf=\"activeConfig.showHeader\">\n <div [class]=\"activeConfig.fluid ? 'shell-header-container-inner-fluid' : 'shell-header-container-inner'\">\n <ng-container *ngIf=\"activeConfig.customHeaderComponent\">\n <div appDynamicComponentHost =\"Header\"></div>\n </ng-container>\n <lib-shell-header *ngIf=\"!activeConfig.customHeaderComponent\" [show-userName]=\"activeConfig.showUserNameOnHeader\"\n [show-alerts]=\"activeConfig.showAlertsOnHeader\">\n </lib-shell-header>\n </div>\n </div>\n\n <main [class]=\"activeConfig.showHeader ? 'shell-content-container' : 'shell-content-container-no-header'\">\n <div [class]=\"activeConfig.fluid ? 'shell-content-container-inner-fluid' : 'shell-content-container-inner'\">\n <router-outlet *ngIf=\"loaded && (activeConfig.layout === 'Stacked' || !activeConfig.layout)\"></router-outlet>\n </div>\n </main>\n\n <div class=\"shell-footer-container\" *ngIf=\"activeConfig.showFooter\">\n <div [class]=\"activeConfig.fluid ? 'shell-footer-container-inner-fluid' : 'shell-footer-container-inner'\">\n <ng-container *ngIf=\"activeConfig.customFooterComponent\">\n <div appDynamicComponentHost hostName=\"Footer\"></div>\n </ng-container>\n <lib-shell-footer *ngIf=\"!activeConfig.customFooterComponent\"></lib-shell-footer>\n </div>\n </div>\n\n <lib-side-pane #rightPane>\n <router-outlet name=\"rightpane\" (activate)=\"rightPane.onSidePaneActivated($event)\" (deactivate)=\"rightPane.onSidePaneDeactivated($event)\"></router-outlet>\n </lib-side-pane>\n\n <lib-toaster-container></lib-toaster-container>\n</div>\n\n<!-- SIDEBAR LAYOUT -->\n\n<div *ngIf=\"loaded && activeConfig.layout === 'Sidebar'\" [style.display]=\"!loaded ? 'none':'block'\" class=\"sidebar shell-container active-side-pane\">\n\n <!-- Static sidebar for desktop -->\n <div class=\"hidden w-0 sm:w-64 flex-col inset-y-0 bg-gray-800\" [class.hidden]=\"hideSidebar\" [class.fixed]=\"!hideSidebar\">\n <lib-shell-sidebar [config]=\"activeConfig\" ></lib-shell-sidebar>\n </div>\n\n <div class=\"flex flex-col\" [class.pl-64]=\"!hideSidebar\">\n <div class=\"sticky top-0 z-10 flex-shrink-0 flex h-16 bg-gray-800\">\n\n <button type=\"button\" class=\"hidden sm:block px-4 border-0 text-white focus:outline-none\" (click)=\"hideSidebar = !hideSidebar\">\n <span class=\"sr-only\">Open sidebar</span>\n <!-- Heroicon name: outline/menu-alt-2 -->\n <svg class=\"h-6 w-6\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" aria-hidden=\"true\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4 6h16M4 12h16M4 18h7\" />\n </svg>\n </button>\n\n <button type=\"button\" class=\"block sm:hidden px-4 border-0 text-gray-200 focus:outline-none\" (click)=\"hideSidebar = !hideSidebar\">\n <span class=\"sr-only\">Open sidebar</span>\n <!-- Heroicon name: outline/menu-alt-2 --> 111\n <svg class=\"h-6 w-6\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" aria-hidden=\"true\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4 6h16M4 12h16M4 18h7\" />\n </svg>\n </button>\n\n <div class=\"flex-1\">\n <div class=\"shell-header-container\">\n <lib-shell-header [shell-layout]=\"activeConfig.layout\" [show-userName]=\"activeConfig.showUserNameOnHeader\" [show-alerts]=\"activeConfig.showAlertsOnHeader\"></lib-shell-header>\n </div>\n </div>\n </div>\n\n <main class=\"shell-content-container-sidebar\">\n <div class=\"shell-content-container-inner\">\n <router-outlet *ngIf=\"loaded && activeConfig.layout === 'Sidebar'\"></router-outlet>\n </div>\n </main>\n </div>\n\n <lib-side-pane #rightPane>\n <router-outlet name=\"rightpane\" (activate)=\"rightPane.onSidePaneActivated($event)\" (deactivate)=\"rightPane.onSidePaneDeactivated($event)\"></router-outlet>\n </lib-side-pane>\n\n <lib-toaster-container></lib-toaster-container>\n\n</div>\n" }]
2241
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2242
+ type: Inject,
2243
+ args: [DOCUMENT]
2244
+ }] }, { type: i1$1.Router }, { type: i1.Location }, { type: undefined, decorators: [{
2245
+ type: Inject,
2246
+ args: [SHELL_CONFIG]
2247
+ }] }, { type: ComponentLoaderFactory }]; }, propDecorators: { dynamicComponentHosts: [{
2248
+ type: ViewChildren,
2249
+ args: [DynamicComponentHostDirective]
2250
+ }] } });
2251
+
2252
+ class ViewLayoutComponent {
2253
+ constructor(route$, router$) {
2254
+ this.route$ = route$;
2255
+ this.router$ = router$;
2256
+ // tslint:disable-next-line:no-input-rename
2257
+ this.header = true;
2258
+ this.fluid = false;
2259
+ this.title = 'no title';
2260
+ this.icon = null;
2261
+ this.actions = null;
2262
+ this.busy = false;
2263
+ // tslint:disable-next-line:no-input-rename
2264
+ this.searchPlaceholder = 'αναζήτηση';
2265
+ this.view = null;
2266
+ // tslint:disable-next-line:no-input-rename
2267
+ this.metaItems = [];
2268
+ // tslint:disable-next-line:no-output-on-prefix
2269
+ this.onAction = new EventEmitter();
2270
+ // tslint:disable-next-line:no-output-on-prefix
2271
+ this.onSearch = new EventEmitter();
2272
+ }
2273
+ ngOnInit() {
2274
+ if (this.searchInput$?.nativeElement) {
2275
+ fromEvent(this.searchInput$.nativeElement, 'keyup').pipe(map((event) => {
2276
+ return event.target.value; // Get input value.
2277
+ }), filter(inputValue => inputValue.length >= 3 || inputValue.length === 0),
2278
+ // If character length greater than minimumSearchCharacters setting.
2279
+ debounceTime(1000), // Time in milliseconds between key events.
2280
+ distinctUntilChanged() // If previous query is different from current.
2281
+ ).subscribe();
2282
+ }
2283
+ }
2284
+ emitActionClick(action) {
2285
+ this.onAction.emit(action);
2286
+ }
2287
+ routerLinkActionClick(action) {
2288
+ // console.log('routerLinkActionClick', action);
2289
+ if (action.outlet) {
2290
+ this.router$.navigate(['', { outlets: { rightpane: action.link } }]);
2291
+ }
2292
+ else {
2293
+ this.router$.navigate([action.link]);
2294
+ }
2295
+ }
2296
+ searchActionClick(action, text) {
2297
+ this.onSearch.emit(text);
2298
+ }
2299
+ searchActionType(text) {
2300
+ this.onSearch.emit(this.searchInput$?.nativeElement.value);
2301
+ }
2302
+ handleClear(event) {
2303
+ console.log('handle clear!!!');
2304
+ event.stopPropagation();
2305
+ this.onSearch.emit(event.target?.value);
2306
+ }
2307
+ switchViewActionClick(action) {
2308
+ // console.log('switchViewActionClick', action);
2309
+ this.view = action.param;
2310
+ if (action && action.param) {
2311
+ this.router$.navigate([], { queryParams: { view: action.param }, queryParamsHandling: 'merge', skipLocationChange: false });
2312
+ }
2313
+ }
2314
+ }
2315
+ ViewLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ViewLayoutComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
2316
+ ViewLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ViewLayoutComponent, selector: "lib-view-layout", inputs: { header: ["show-header", "header"], fluid: "fluid", title: "title", icon: "icon", actions: "actions", busy: "busy", searchPlaceholder: ["search-placeholder", "searchPlaceholder"], view: "view", metaItems: ["meta-items", "metaItems"] }, outputs: { onAction: "onAction", onSearch: "onSearch" }, viewQueries: [{ propertyName: "searchInput$", first: true, predicate: ["search"], descendants: true }], ngImport: i0, template: "<header *ngIf=\"header\" class=\"view-layout-paddings\">\n\n <div class=\"view-layout-title-container\">\n\n <div class=\"view-layout-title-container-inner\">\n <div class=\"flex items-center\">\n <i *ngIf=\"icon\" [class]=\"icon + ' title-icon'\" aria-hidden=\"true\"></i>\n <h1 [class]=\"busy ? 'view-layout-title-busy' : 'view-layout-title'\">{{title}}</h1>\n </div>\n <div *ngIf=\"metaItems && metaItems.length > 0\" class=\"meta-container\">\n <ng-container *ngFor=\"let meta of metaItems\">\n <div class=\"meta-item-container\">\n <i *ngIf=\"meta.icon\" [class]=\"meta.icon + ' meta-icon'\" aria-hidden=\"true\"></i>\n <span class=\"meta-text\">{{meta.text}}</span>\n </div>\n </ng-container>\n </div>\n </div>\n\n <div class=\"flex items-center justify-end\">\n <ng-container *ngFor=\"let action of actions\" [ngSwitch]=\"action.type\">\n\n <ng-container *ngSwitchCase=\"'switch-view'\">\n <button [disabled]=\"view === action.param\" type=\"button\" href=\"#\" class=\"ml-1 disabled:opacity-50 btn-view-header\" (click)=\"switchViewActionClick(action)\">\n <span class=\"inline-block relative\">\n <i [class]=\"action.icon\"></i>\n <span *ngIf=\"view === action.param\" class=\"selected-view-indicator\"></span>\n </span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'search'\">\n <label for=\"search\" class=\"sr-only\">Search</label>\n <div class=\"search-container\">\n <div class=\"pointer-events-none absolute inset-y-0 left-0 pl-3 flex items-center\">\n <!--<svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" d=\"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z\" clip-rule=\"evenodd\" />\n </svg>-->\n </div>\n <input id=\"search\" #search class=\"search-input\" [placeholder]=\"searchPlaceholder\"\n type=\"search\" name=\"search\" (input)=\"searchActionType(search.value)\" (onsearch)=\"handleClear($event)\">\n </div>\n <button type=\"button\" href=\"#\" class=\"btn-view-header rounded-l-none\" [title]=\"action.tooltip\" (click)=\"searchActionClick(action, search.value)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'router-link'\">\n <button type=\"button\" href=\"#\" class=\"ml-1 btn-view-header\" [title]=\"action.tooltip\" (click)=\"routerLinkActionClick(action)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n\n\n <ng-container *ngSwitchDefault>\n <button type=\"button\" class=\"ml-1 btn-view-header\" [title]=\"action.tooltip\" (click)=\"emitActionClick(action)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</header>\n\n<!-- component -->\n<div [class]=\"fluid ? 'view-container-fluid' : 'view-container'\">\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
2317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ViewLayoutComponent, decorators: [{
2318
+ type: Component,
2319
+ args: [{ selector: 'lib-view-layout', template: "<header *ngIf=\"header\" class=\"view-layout-paddings\">\n\n <div class=\"view-layout-title-container\">\n\n <div class=\"view-layout-title-container-inner\">\n <div class=\"flex items-center\">\n <i *ngIf=\"icon\" [class]=\"icon + ' title-icon'\" aria-hidden=\"true\"></i>\n <h1 [class]=\"busy ? 'view-layout-title-busy' : 'view-layout-title'\">{{title}}</h1>\n </div>\n <div *ngIf=\"metaItems && metaItems.length > 0\" class=\"meta-container\">\n <ng-container *ngFor=\"let meta of metaItems\">\n <div class=\"meta-item-container\">\n <i *ngIf=\"meta.icon\" [class]=\"meta.icon + ' meta-icon'\" aria-hidden=\"true\"></i>\n <span class=\"meta-text\">{{meta.text}}</span>\n </div>\n </ng-container>\n </div>\n </div>\n\n <div class=\"flex items-center justify-end\">\n <ng-container *ngFor=\"let action of actions\" [ngSwitch]=\"action.type\">\n\n <ng-container *ngSwitchCase=\"'switch-view'\">\n <button [disabled]=\"view === action.param\" type=\"button\" href=\"#\" class=\"ml-1 disabled:opacity-50 btn-view-header\" (click)=\"switchViewActionClick(action)\">\n <span class=\"inline-block relative\">\n <i [class]=\"action.icon\"></i>\n <span *ngIf=\"view === action.param\" class=\"selected-view-indicator\"></span>\n </span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'search'\">\n <label for=\"search\" class=\"sr-only\">Search</label>\n <div class=\"search-container\">\n <div class=\"pointer-events-none absolute inset-y-0 left-0 pl-3 flex items-center\">\n <!--<svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" d=\"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z\" clip-rule=\"evenodd\" />\n </svg>-->\n </div>\n <input id=\"search\" #search class=\"search-input\" [placeholder]=\"searchPlaceholder\"\n type=\"search\" name=\"search\" (input)=\"searchActionType(search.value)\" (onsearch)=\"handleClear($event)\">\n </div>\n <button type=\"button\" href=\"#\" class=\"btn-view-header rounded-l-none\" [title]=\"action.tooltip\" (click)=\"searchActionClick(action, search.value)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'router-link'\">\n <button type=\"button\" href=\"#\" class=\"ml-1 btn-view-header\" [title]=\"action.tooltip\" (click)=\"routerLinkActionClick(action)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n\n\n <ng-container *ngSwitchDefault>\n <button type=\"button\" class=\"ml-1 btn-view-header\" [title]=\"action.tooltip\" (click)=\"emitActionClick(action)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</header>\n\n<!-- component -->\n<div [class]=\"fluid ? 'view-container-fluid' : 'view-container'\">\n <ng-content></ng-content>\n</div>\n" }]
2320
+ }], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }]; }, propDecorators: { searchInput$: [{
2321
+ type: ViewChild,
2322
+ args: ['search']
2323
+ }], header: [{
2324
+ type: Input,
2325
+ args: ['show-header']
2326
+ }], fluid: [{
2327
+ type: Input
2328
+ }], title: [{
2329
+ type: Input
2330
+ }], icon: [{
2331
+ type: Input
2332
+ }], actions: [{
2333
+ type: Input
2334
+ }], busy: [{
2335
+ type: Input
2336
+ }], searchPlaceholder: [{
2337
+ type: Input,
2338
+ args: ['search-placeholder']
2339
+ }], view: [{
2340
+ type: Input
2341
+ }], metaItems: [{
2342
+ type: Input,
2343
+ args: ['meta-items']
2344
+ }], onAction: [{
2345
+ type: Output
2346
+ }], onSearch: [{
2347
+ type: Output
2348
+ }] } });
2349
+
2350
+ class ModelViewLayoutComponent {
2351
+ constructor(location) {
2352
+ this.location = location;
2353
+ this.showRightPaneSM = false;
2354
+ this.title = 'no title';
2355
+ // tslint:disable-next-line:no-input-rename
2356
+ this.primary = null;
2357
+ // tslint:disable-next-line:no-input-rename
2358
+ this.secondary = null;
2359
+ // tslint:disable-next-line:no-input-rename
2360
+ this.metaItems = [
2361
+ // { key: 'test', icon: Icons.Badges, text: 'βρέθηκαν 200 αποτελέσματα' }
2362
+ ];
2363
+ }
2364
+ ngOnInit() {
2365
+ }
2366
+ onSidePaneActivated($event) {
2367
+ this.showRightPaneSM = true;
2368
+ }
2369
+ onSidePaneDeactivated($event) {
2370
+ this.showRightPaneSM = false;
2371
+ }
2372
+ closeSidePane() {
2373
+ this.location.back();
2374
+ }
2375
+ }
2376
+ ModelViewLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModelViewLayoutComponent, deps: [{ token: i1.Location }], target: i0.ɵɵFactoryTarget.Component });
2377
+ ModelViewLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ModelViewLayoutComponent, selector: "lib-model-view-layout", inputs: { title: "title", primary: ["primary-links", "primary"], secondary: ["secondary-links", "secondary"], metaItems: ["meta-items", "metaItems"] }, ngImport: i0, template: "<lib-view-layout [title]=\"title\" [meta-items]=\"metaItems\">\n <main class=\"model-view-container\">\n <div class=\"model-view-container-inner\">\n <aside class=\"model-view-aside\">\n <section aria-labelledby=\"menu\" class=\"details-view-aside-header-section\">\n <div class=\"model-view-aside-header-container\">\n <div class=\"model-view-aside-header-container-inner\">\n <ng-content></ng-content>\n </div>\n <!-- menu items -->\n <div class=\"model-view-menu-container\">\n <nav class=\"model-view-menu-nav\">\n <div class=\"model-view-menu-item\">\n <ng-container *ngFor=\"let section of primary\">\n <a href=\"#\"\n [routerLinkActive]=\"['view-nav-link-active']\"\n [routerLink]=\"section.link\"\n class=\"view-nav-link\">\n {{section.text}}\n </a>\n </ng-container>\n </div>\n <div class=\"model-view-menu-item-far\">\n <ng-container *ngFor=\"let section of secondary\">\n <a href=\"#\"\n [routerLinkActive]=\"['view-nav-link-active']\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n [routerLink]=\"section.link\"\n class=\"view-nav-link\">\n {{section.text}}\n </a>\n </ng-container>\n </div>\n </nav>\n </div>\n </div>\n </section>\n </aside>\n <div class=\"model-view-details-container\">\n <router-outlet></router-outlet>\n </div>\n </div>\n </main>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }] });
2378
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModelViewLayoutComponent, decorators: [{
2379
+ type: Component,
2380
+ args: [{ selector: 'lib-model-view-layout', template: "<lib-view-layout [title]=\"title\" [meta-items]=\"metaItems\">\n <main class=\"model-view-container\">\n <div class=\"model-view-container-inner\">\n <aside class=\"model-view-aside\">\n <section aria-labelledby=\"menu\" class=\"details-view-aside-header-section\">\n <div class=\"model-view-aside-header-container\">\n <div class=\"model-view-aside-header-container-inner\">\n <ng-content></ng-content>\n </div>\n <!-- menu items -->\n <div class=\"model-view-menu-container\">\n <nav class=\"model-view-menu-nav\">\n <div class=\"model-view-menu-item\">\n <ng-container *ngFor=\"let section of primary\">\n <a href=\"#\"\n [routerLinkActive]=\"['view-nav-link-active']\"\n [routerLink]=\"section.link\"\n class=\"view-nav-link\">\n {{section.text}}\n </a>\n </ng-container>\n </div>\n <div class=\"model-view-menu-item-far\">\n <ng-container *ngFor=\"let section of secondary\">\n <a href=\"#\"\n [routerLinkActive]=\"['view-nav-link-active']\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n [routerLink]=\"section.link\"\n class=\"view-nav-link\">\n {{section.text}}\n </a>\n </ng-container>\n </div>\n </nav>\n </div>\n </div>\n </section>\n </aside>\n <div class=\"model-view-details-container\">\n <router-outlet></router-outlet>\n </div>\n </div>\n </main>\n" }]
2381
+ }], ctorParameters: function () { return [{ type: i1.Location }]; }, propDecorators: { title: [{
2382
+ type: Input
2383
+ }], primary: [{
2384
+ type: Input,
2385
+ args: ['primary-links']
2386
+ }], secondary: [{
2387
+ type: Input,
2388
+ args: ['secondary-links']
2389
+ }], metaItems: [{
2390
+ type: Input,
2391
+ args: ['meta-items']
2392
+ }] } });
2393
+
2394
+ class SideViewLayoutComponent {
2395
+ constructor(location, router) {
2396
+ this.location = location;
2397
+ this.router = router;
2398
+ this.title = 'Πληροφορίες';
2399
+ this.showActions = true;
2400
+ this.disabled = false;
2401
+ // tslint:disable-next-line:no-input-rename
2402
+ this.okLabel = 'Αποθήκευση';
2403
+ // tslint:disable-next-line:no-input-rename
2404
+ this.okShow = true;
2405
+ // tslint:disable-next-line:no-input-rename
2406
+ this.closeOnOk = true;
2407
+ // tslint:disable-next-line:no-input-rename
2408
+ this.cancelLabel = 'Ακύρωση';
2409
+ // tslint:disable-next-line:no-input-rename
2410
+ this.cancelShow = true;
2411
+ // tslint:disable-next-line:no-input-rename
2412
+ this.forceLocationBack = false;
2413
+ // @Output() close = new EventEmitter<any>();
2414
+ this.cancel = new EventEmitter();
2415
+ this.ok = new EventEmitter();
2416
+ }
2417
+ ngOnInit() {
2418
+ }
2419
+ closeSidePane() {
2420
+ if (this.returnPath) {
2421
+ this.router.navigateByUrl('/', { skipLocationChange: true }).then(() => this.router.navigateByUrl(this.returnPath || '/'));
2422
+ }
2423
+ else {
2424
+ if ((this.router.url.split('/(')[0] !== this.router.url) && !this.forceLocationBack) {
2425
+ this.router.navigateByUrl(this.router.url.split('/(')[0]);
2426
+ }
2427
+ else if ((this.router.url.split('(')[0] !== this.router.url) && !this.forceLocationBack) {
2428
+ this.router.navigateByUrl(this.router.url.split('(')[0]);
2429
+ }
2430
+ else {
2431
+ this.location.back();
2432
+ }
2433
+ }
2434
+ }
2435
+ emitClose() {
2436
+ this.cancel.emit(false);
2437
+ this.closeSidePane();
2438
+ }
2439
+ emitCancel() {
2440
+ this.cancel.emit(false);
2441
+ this.closeSidePane();
2442
+ }
2443
+ emitOK() {
2444
+ this.ok.emit(true);
2445
+ if (this.closeOnOk) {
2446
+ this.closeSidePane();
2447
+ }
2448
+ }
2449
+ }
2450
+ SideViewLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SideViewLayoutComponent, deps: [{ token: i1.Location }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
2451
+ SideViewLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: SideViewLayoutComponent, selector: "lib-side-view-layout", inputs: { title: "title", showActions: "showActions", disabled: "disabled", returnPath: ["return-path", "returnPath"], okLabel: ["ok-label", "okLabel"], okShow: ["ok-show", "okShow"], closeOnOk: ["ok-close-dialog", "closeOnOk"], cancelLabel: ["cancel-label", "cancelLabel"], cancelShow: ["cancel-show", "cancelShow"], forceLocationBack: ["force-location-back", "forceLocationBack"] }, outputs: { cancel: "cancel", ok: "ok" }, ngImport: i0, template: "<div class=\"side-view-layout-size-box\">\n <div class=\"side-view-layout-container\">\n <div class=\"side-view-layout-container-inner\">\n <div class=\"side-view-layout-header-margins\">\n <div class=\"side-view-layout-header-container\">\n <h2 class=\"side-view-layout-header-title\" id=\"slide-over-title\">\n {{title}}\n </h2>\n <div class=\"side-view-layout-close-button-container\">\n <button (click)=\"emitClose()\" class=\"side-view-layout-close-button\">\n <span class=\"sr-only\">Close panel</span>\n <!-- Heroicon name: outline/x -->\n <svg class=\"side-view-layout-close-button-icon\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </button>\n </div>\n </div>\n </div>\n <div class=\"side-view-layout-content-container\">\n <!-- Replace with your content -->\n <ng-content></ng-content>\n <!-- /End replace -->\n </div>\n </div>\n <div *ngIf=\"showActions\" class=\"side-view-layout-actions-container\">\n <button *ngIf=\"cancelShow\" (click)=\"emitCancel()\" type=\"button\" class=\"side-view-layout-action-button-cancel\">\n {{cancelLabel}}\n </button>\n <button *ngIf=\"okShow\" (click)=\"emitOK()\" class=\"side-view-layout-action-button-submit\" [disabled]=\"disabled\">\n {{okLabel}}\n </button>\n </div>\n </div>\n</div>\n\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2452
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SideViewLayoutComponent, decorators: [{
2453
+ type: Component,
2454
+ args: [{ selector: 'lib-side-view-layout', template: "<div class=\"side-view-layout-size-box\">\n <div class=\"side-view-layout-container\">\n <div class=\"side-view-layout-container-inner\">\n <div class=\"side-view-layout-header-margins\">\n <div class=\"side-view-layout-header-container\">\n <h2 class=\"side-view-layout-header-title\" id=\"slide-over-title\">\n {{title}}\n </h2>\n <div class=\"side-view-layout-close-button-container\">\n <button (click)=\"emitClose()\" class=\"side-view-layout-close-button\">\n <span class=\"sr-only\">Close panel</span>\n <!-- Heroicon name: outline/x -->\n <svg class=\"side-view-layout-close-button-icon\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n </button>\n </div>\n </div>\n </div>\n <div class=\"side-view-layout-content-container\">\n <!-- Replace with your content -->\n <ng-content></ng-content>\n <!-- /End replace -->\n </div>\n </div>\n <div *ngIf=\"showActions\" class=\"side-view-layout-actions-container\">\n <button *ngIf=\"cancelShow\" (click)=\"emitCancel()\" type=\"button\" class=\"side-view-layout-action-button-cancel\">\n {{cancelLabel}}\n </button>\n <button *ngIf=\"okShow\" (click)=\"emitOK()\" class=\"side-view-layout-action-button-submit\" [disabled]=\"disabled\">\n {{okLabel}}\n </button>\n </div>\n </div>\n</div>\n\n" }]
2455
+ }], ctorParameters: function () { return [{ type: i1.Location }, { type: i1$1.Router }]; }, propDecorators: { title: [{
2456
+ type: Input
2457
+ }], showActions: [{
2458
+ type: Input
2459
+ }], disabled: [{
2460
+ type: Input
2461
+ }], returnPath: [{
2462
+ type: Input,
2463
+ args: ['return-path']
2464
+ }], okLabel: [{
2465
+ type: Input,
2466
+ args: ['ok-label']
2467
+ }], okShow: [{
2468
+ type: Input,
2469
+ args: ['ok-show']
2470
+ }], closeOnOk: [{
2471
+ type: Input,
2472
+ args: ['ok-close-dialog']
2473
+ }], cancelLabel: [{
2474
+ type: Input,
2475
+ args: ['cancel-label']
2476
+ }], cancelShow: [{
2477
+ type: Input,
2478
+ args: ['cancel-show']
2479
+ }], forceLocationBack: [{
2480
+ type: Input,
2481
+ args: ['force-location-back']
2482
+ }], cancel: [{
2483
+ type: Output
2484
+ }], ok: [{
2485
+ type: Output
2486
+ }] } });
2487
+
2488
+ class FormLayoutComponent {
2489
+ constructor(router$) {
2490
+ this.router$ = router$;
2491
+ this.title = null;
2492
+ // tslint:disable-next-line:no-input-rename
2493
+ this.searchPlaceholder = 'αναζήτηση';
2494
+ this.actions = null;
2495
+ // tslint:disable-next-line:no-input-rename
2496
+ this.subTitle = null;
2497
+ // tslint:disable-next-line:no-output-on-prefix
2498
+ this.onAction = new EventEmitter();
2499
+ // tslint:disable-next-line:no-output-on-prefix
2500
+ this.onSearch = new EventEmitter();
2501
+ this.onComplete = new EventEmitter();
2502
+ }
2503
+ ngOnInit() {
2504
+ if (this.searchInput$?.nativeElement) {
2505
+ fromEvent(this.searchInput$.nativeElement, 'keyup').pipe(map((event) => {
2506
+ return event.target.value; // Get input value.
2507
+ }), filter(inputValue => inputValue.length >= 3 || inputValue.length === 0),
2508
+ // If character length greater than minimumSearchCharacters setting.
2509
+ debounceTime(1000), // Time in milliseconds between key events.
2510
+ distinctUntilChanged() // If previous query is different from current.
2511
+ ).subscribe();
2512
+ }
2513
+ }
2514
+ onSidePaneDeactivated($event) {
2515
+ this.onComplete.emit(true);
2516
+ }
2517
+ emitActionClick(action) {
2518
+ this.onAction.emit(action);
2519
+ }
2520
+ searchActionClick(action, text) {
2521
+ this.onSearch.emit(text);
2522
+ }
2523
+ searchActionType(text) {
2524
+ this.onSearch.emit(this.searchInput$?.nativeElement.value);
2525
+ }
2526
+ routerLinkActionClick(action, relative = false) {
2527
+ if (action.outlet) {
2528
+ this.router$.navigate(['', { outlets: { formRightPane: action.link } }]);
2529
+ }
2530
+ else {
2531
+ this.router$.navigate([action.link]);
2532
+ }
2533
+ }
2534
+ }
2535
+ FormLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: FormLayoutComponent, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
2536
+ FormLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: FormLayoutComponent, selector: "lib-form-layout", inputs: { title: "title", searchPlaceholder: ["search-placeholder", "searchPlaceholder"], actions: "actions", subTitle: ["sub-title", "subTitle"] }, outputs: { onAction: "onAction", onSearch: "onSearch", onComplete: "onComplete" }, viewQueries: [{ propertyName: "searchInput$", first: true, predicate: ["search"], descendants: true }], ngImport: i0, template: "<div class=\"form-layout-container\">\n <div class=\"form-header\" *ngIf=\"title || subTitle || actions\">\n <div class=\"form-header-inner\">\n <h3 class=\"form-title\">\n {{ title }}\n </h3>\n <p class=\"form-subtitle\">\n {{ subTitle }}\n </p>\n </div>\n <div class=\"form-header-actions\">\n <ng-container *ngFor=\"let action of actions\" [ngSwitch]=\"action.type\">\n <ng-container *ngSwitchCase=\"'search'\">\n <label for=\"search\" class=\"sr-only\">Search</label>\n <div class=\"search-container\">\n <div class=\"pointer-events-none absolute inset-y-0 left-0 pl-3 flex items-center\">\n <!--<svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" d=\"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z\" clip-rule=\"evenodd\" />\n </svg>-->\n </div>\n <input id=\"search\"\n #search\n class=\"form-search-input\"\n [placeholder]=\"searchPlaceholder\"\n type=\"search\"\n name=\"search\"\n (input)=\"searchActionType(search.value)\">\n </div>\n <button type=\"button\"\n href=\"#\"\n class=\"btn-form-view-header-search\"\n [title]=\"action.tooltip\"\n (click)=\"searchActionClick(action, search.value)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'router-link'\">\n <button type=\"button\"\n href=\"#\"\n class=\"ml-1 btn-form-view-header\"\n [title]=\"action.tooltip\"\n (click)=\"routerLinkActionClick(action)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button type=\"button\"\n class=\"ml-1 btn-form-view-header\"\n [title]=\"action.tooltip\"\n (click)=\"emitActionClick(action)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <div class=\"form-content-container\">\n <div [ngClass]=\"{'form-content-container-inner': actions}\">\n <ng-content></ng-content>\n </div>\n </div>\n <lib-side-pane #formPane (onComplete)=\"onSidePaneDeactivated($event)\">\n <router-outlet name=\"formRightPane\"\n (activate)=\"formPane.onSidePaneActivated($event)\"\n (deactivate)=\"formPane.onSidePaneDeactivated($event)\"></router-outlet>\n </lib-side-pane>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: SidePaneComponent, selector: "lib-side-pane", inputs: ["visible"], outputs: ["onComplete"] }] });
2537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: FormLayoutComponent, decorators: [{
2538
+ type: Component,
2539
+ args: [{ selector: 'lib-form-layout', template: "<div class=\"form-layout-container\">\n <div class=\"form-header\" *ngIf=\"title || subTitle || actions\">\n <div class=\"form-header-inner\">\n <h3 class=\"form-title\">\n {{ title }}\n </h3>\n <p class=\"form-subtitle\">\n {{ subTitle }}\n </p>\n </div>\n <div class=\"form-header-actions\">\n <ng-container *ngFor=\"let action of actions\" [ngSwitch]=\"action.type\">\n <ng-container *ngSwitchCase=\"'search'\">\n <label for=\"search\" class=\"sr-only\">Search</label>\n <div class=\"search-container\">\n <div class=\"pointer-events-none absolute inset-y-0 left-0 pl-3 flex items-center\">\n <!--<svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" d=\"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z\" clip-rule=\"evenodd\" />\n </svg>-->\n </div>\n <input id=\"search\"\n #search\n class=\"form-search-input\"\n [placeholder]=\"searchPlaceholder\"\n type=\"search\"\n name=\"search\"\n (input)=\"searchActionType(search.value)\">\n </div>\n <button type=\"button\"\n href=\"#\"\n class=\"btn-form-view-header-search\"\n [title]=\"action.tooltip\"\n (click)=\"searchActionClick(action, search.value)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'router-link'\">\n <button type=\"button\"\n href=\"#\"\n class=\"ml-1 btn-form-view-header\"\n [title]=\"action.tooltip\"\n (click)=\"routerLinkActionClick(action)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button type=\"button\"\n class=\"ml-1 btn-form-view-header\"\n [title]=\"action.tooltip\"\n (click)=\"emitActionClick(action)\">\n <i [class]=\"action.icon\"></i>\n </button>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <div class=\"form-content-container\">\n <div [ngClass]=\"{'form-content-container-inner': actions}\">\n <ng-content></ng-content>\n </div>\n </div>\n <lib-side-pane #formPane (onComplete)=\"onSidePaneDeactivated($event)\">\n <router-outlet name=\"formRightPane\"\n (activate)=\"formPane.onSidePaneActivated($event)\"\n (deactivate)=\"formPane.onSidePaneDeactivated($event)\"></router-outlet>\n </lib-side-pane>\n</div>\n" }]
2540
+ }], ctorParameters: function () { return [{ type: i1$1.Router }]; }, propDecorators: { searchInput$: [{
2541
+ type: ViewChild,
2542
+ args: ['search']
2543
+ }], title: [{
2544
+ type: Input
2545
+ }], searchPlaceholder: [{
2546
+ type: Input,
2547
+ args: ['search-placeholder']
2548
+ }], actions: [{
2549
+ type: Input
2550
+ }], subTitle: [{
2551
+ type: Input,
2552
+ args: ['sub-title']
2553
+ }], onAction: [{
2554
+ type: Output
2555
+ }], onSearch: [{
2556
+ type: Output
2557
+ }], onComplete: [{
2558
+ type: Output
2559
+ }] } });
2560
+
2561
+ class AuthCallbackComponent {
2562
+ constructor(authService, router) {
2563
+ this.authService = authService;
2564
+ this.router = router;
2565
+ this.status = 'παρακαλώ περιμένετε...';
2566
+ }
2567
+ ngOnInit() {
2568
+ this.authService.signinRedirectCallback().subscribe((user) => {
2569
+ if (user) {
2570
+ this.router.navigateByUrl(user.state?.url || '/');
2571
+ }
2572
+ });
2573
+ }
2574
+ }
2575
+ AuthCallbackComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AuthCallbackComponent, deps: [{ token: AuthService }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
2576
+ AuthCallbackComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: AuthCallbackComponent, selector: "lib-auth-callback", ngImport: i0, template: "<lib-view-layout [title]=\"status\" [busy]=\"true\"></lib-view-layout>", dependencies: [{ kind: "component", type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }] });
2577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AuthCallbackComponent, decorators: [{
2578
+ type: Component,
2579
+ args: [{ selector: 'lib-auth-callback', template: "<lib-view-layout [title]=\"status\" [busy]=\"true\"></lib-view-layout>" }]
2580
+ }], ctorParameters: function () { return [{ type: i2.AuthService, decorators: [{
2581
+ type: Inject,
2582
+ args: [AuthService]
2583
+ }] }, { type: i1$1.Router }]; } });
2584
+
2585
+ class AuthRenewComponent {
2586
+ constructor(authService, router) {
2587
+ this.authService = authService;
2588
+ this.router = router;
2589
+ }
2590
+ ngOnInit() {
2591
+ this.authService.signinSilentCallback().subscribe(user => {
2592
+ if (!user) {
2593
+ this.router.navigate(['/unauthorized']);
2594
+ }
2595
+ });
2596
+ }
2597
+ }
2598
+ AuthRenewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AuthRenewComponent, deps: [{ token: AuthService }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
2599
+ AuthRenewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: AuthRenewComponent, selector: "lib-auth-renew", ngImport: i0, template: '', isInline: true });
2600
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AuthRenewComponent, decorators: [{
2601
+ type: Component,
2602
+ args: [{
2603
+ selector: 'lib-auth-renew',
2604
+ template: ''
2605
+ }]
2606
+ }], ctorParameters: function () { return [{ type: i2.AuthService, decorators: [{
2607
+ type: Inject,
2608
+ args: [AuthService]
2609
+ }] }, { type: i1$1.Router }]; } });
2610
+
2611
+ class LoggedOutComponent {
2612
+ constructor(authService) {
2613
+ this.authService = authService;
2614
+ this.status = 'working on it, please give me a sec...';
2615
+ this.finished = false;
2616
+ }
2617
+ ngOnInit() {
2618
+ this.authService.removeUser().subscribe(() => {
2619
+ this.status = 'Thank you!';
2620
+ this.finished = true;
2621
+ });
2622
+ }
2623
+ }
2624
+ LoggedOutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LoggedOutComponent, deps: [{ token: AuthService }], target: i0.ɵɵFactoryTarget.Component });
2625
+ LoggedOutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: LoggedOutComponent, selector: "lib-logged-out", ngImport: i0, template: "<lib-view-layout title=\"\u0388\u03C7\u03B5\u03C4\u03B5 \u03B1\u03C0\u03BF\u03C3\u03C5\u03BD\u03B4\u03B5\u03B8\u03B5\u03AF \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1!\"></lib-view-layout>", dependencies: [{ kind: "component", type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }] });
2626
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LoggedOutComponent, decorators: [{
2627
+ type: Component,
2628
+ args: [{ selector: 'lib-logged-out', template: "<lib-view-layout title=\"\u0388\u03C7\u03B5\u03C4\u03B5 \u03B1\u03C0\u03BF\u03C3\u03C5\u03BD\u03B4\u03B5\u03B8\u03B5\u03AF \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1!\"></lib-view-layout>" }]
2629
+ }], ctorParameters: function () { return [{ type: i2.AuthService, decorators: [{
2630
+ type: Inject,
2631
+ args: [AuthService]
2632
+ }] }]; } });
2633
+
2634
+ class ErrorComponent {
2635
+ constructor() {
2636
+ this.error = 'Error!';
2637
+ }
2638
+ ngOnInit() {
2639
+ }
2640
+ }
2641
+ ErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2642
+ ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ErrorComponent, selector: "lib-error", ngImport: i0, template: "<lib-view-layout [show-header]=\"false\" title=\"500 - \u03C0\u03B1\u03C1\u03BF\u03C5\u03C3\u03B9\u03AC\u03C3\u03C4\u03B7\u03BA\u03B5 \u03C3\u03C6\u03AC\u03BB\u03BC\u03B1!\">\n <div class=\"bg-gray-600 view-container\">\n <div class=\"max-w-2xl mx-auto text-center py-16 px-4 sm:py-20 sm:px-6 lg:px-8\">\n <h2 class=\"text-3xl font-extrabold text-white sm:text-4xl\">\n <span class=\"block\">500</span>\n </h2>\n <p class=\"mt-4 text-lg leading-6 text-gray-200\">\u03C3\u03C6\u03AC\u03BB\u03BC\u03B1, \u03BA\u03B1\u03C4\u03B9 \u03B4\u03B5\u03BD \u03C0\u03AE\u03B3\u03B5 \u03BA\u03B1\u03BB\u03AC...!</p>\n <a href=\"/\" class=\"mt-8 inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-sm rounded-sm text-gray-600 bg-white hover:bg-gray-50 sm:w-auto\">\n \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B5\u03B4\u03CE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03C3\u03C4\u03C1\u03AD\u03C8\u03B5\u03C4\u03B5\n </a>\n </div>\n </div>\n</lib-view-layout>\n", dependencies: [{ kind: "component", type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }] });
2643
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ErrorComponent, decorators: [{
2644
+ type: Component,
2645
+ args: [{ selector: 'lib-error', template: "<lib-view-layout [show-header]=\"false\" title=\"500 - \u03C0\u03B1\u03C1\u03BF\u03C5\u03C3\u03B9\u03AC\u03C3\u03C4\u03B7\u03BA\u03B5 \u03C3\u03C6\u03AC\u03BB\u03BC\u03B1!\">\n <div class=\"bg-gray-600 view-container\">\n <div class=\"max-w-2xl mx-auto text-center py-16 px-4 sm:py-20 sm:px-6 lg:px-8\">\n <h2 class=\"text-3xl font-extrabold text-white sm:text-4xl\">\n <span class=\"block\">500</span>\n </h2>\n <p class=\"mt-4 text-lg leading-6 text-gray-200\">\u03C3\u03C6\u03AC\u03BB\u03BC\u03B1, \u03BA\u03B1\u03C4\u03B9 \u03B4\u03B5\u03BD \u03C0\u03AE\u03B3\u03B5 \u03BA\u03B1\u03BB\u03AC...!</p>\n <a href=\"/\" class=\"mt-8 inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-sm rounded-sm text-gray-600 bg-white hover:bg-gray-50 sm:w-auto\">\n \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B5\u03B4\u03CE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03C3\u03C4\u03C1\u03AD\u03C8\u03B5\u03C4\u03B5\n </a>\n </div>\n </div>\n</lib-view-layout>\n" }]
2646
+ }] });
2647
+
2648
+ class PageNotFoundComponent {
2649
+ constructor() { }
2650
+ ngOnInit() {
2651
+ }
2652
+ }
2653
+ PageNotFoundComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: PageNotFoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2654
+ PageNotFoundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: PageNotFoundComponent, selector: "lib-page-not-found", ngImport: i0, template: "<lib-view-layout [show-header]=\"false\" title=\"404 - \u03B4\u03B5\u03BD \u03B2\u03C1\u03AD\u03B8\u03B7\u03BA\u03B5!\">\n <div class=\"text-gray-900\">\n <div class=\"max-w-4xl mx-auto text-center py-16 px-4 sm:py-20 sm:px-6 lg:px-8\">\n <h2 class=\"text-3xl font-extrabold sm:text-4xl\">\n <span class=\"block\">404</span>\n </h2>\n <p class=\"mt-4 text-lg leading-6 text-gray-800\">\u03B4\u03B5\u03BD \u03B2\u03C1\u03AD\u03B8\u03B7\u03BA\u03B5 \u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1 \u03C0\u03BF\u03C5 \u03B6\u03B7\u03C4\u03AE\u03C3\u03B1\u03C4\u03B5!</p>\n <a href=\"/\"\n class=\"mt-8 inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-sm rounded-sm text-gray-600 bg-white hover:bg-gray-50 sm:w-auto\">\n \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B5\u03B4\u03CE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03C3\u03C4\u03C1\u03AD\u03C8\u03B5\u03C4\u03B5\n </a>\n </div>\n </div>\n</lib-view-layout>\n", dependencies: [{ kind: "component", type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }] });
2655
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: PageNotFoundComponent, decorators: [{
2656
+ type: Component,
2657
+ args: [{ selector: 'lib-page-not-found', template: "<lib-view-layout [show-header]=\"false\" title=\"404 - \u03B4\u03B5\u03BD \u03B2\u03C1\u03AD\u03B8\u03B7\u03BA\u03B5!\">\n <div class=\"text-gray-900\">\n <div class=\"max-w-4xl mx-auto text-center py-16 px-4 sm:py-20 sm:px-6 lg:px-8\">\n <h2 class=\"text-3xl font-extrabold sm:text-4xl\">\n <span class=\"block\">404</span>\n </h2>\n <p class=\"mt-4 text-lg leading-6 text-gray-800\">\u03B4\u03B5\u03BD \u03B2\u03C1\u03AD\u03B8\u03B7\u03BA\u03B5 \u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1 \u03C0\u03BF\u03C5 \u03B6\u03B7\u03C4\u03AE\u03C3\u03B1\u03C4\u03B5!</p>\n <a href=\"/\"\n class=\"mt-8 inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-sm rounded-sm text-gray-600 bg-white hover:bg-gray-50 sm:w-auto\">\n \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B5\u03B4\u03CE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03C3\u03C4\u03C1\u03AD\u03C8\u03B5\u03C4\u03B5\n </a>\n </div>\n </div>\n</lib-view-layout>\n" }]
2658
+ }], ctorParameters: function () { return []; } });
2659
+
2660
+ class UnauthorizedComponent {
2661
+ constructor() { }
2662
+ ngOnInit() { }
2663
+ }
2664
+ UnauthorizedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UnauthorizedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2665
+ UnauthorizedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: UnauthorizedComponent, selector: "lib-unauthorized", ngImport: i0, template: "<lib-view-layout [show-header]=\"false\" title=\"401 - \u03B4\u03B5\u03BD \u03B5\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03B5\u03C4\u03B1\u03B9 \u03B7 \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7!\">\n <div class=\"bg-gray-600 view-container\">\n <div class=\"max-w-2xl mx-auto text-center py-16 px-4 sm:py-20 sm:px-6 lg:px-8\">\n <h2 class=\"text-3xl font-extrabold text-white sm:text-4xl\">\n <span class=\"block\">401</span>\n </h2>\n <p class=\"mt-4 text-lg leading-6 text-gray-200\">\u03B4\u03B5\u03BD \u03AD\u03C7\u03B5\u03C4\u03B5 \u03C4\u03B1 \u03BA\u03B1\u03C4\u03AC\u03BB\u03BB\u03B7\u03BB\u03B1 \u03B4\u03B9\u03BA\u03B1\u03B9\u03CE\u03BC\u03B1\u03C4\u03B1 \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2!</p>\n <a href=\"/\" class=\"mt-8 inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-sm rounded-sm text-gray-600 bg-white hover:bg-gray-50 sm:w-auto\">\n \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B5\u03B4\u03CE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03C3\u03C4\u03C1\u03AD\u03C8\u03B5\u03C4\u03B5\n </a>\n </div>\n </div>\n </lib-view-layout>\n\n\n", dependencies: [{ kind: "component", type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }] });
2666
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UnauthorizedComponent, decorators: [{
2667
+ type: Component,
2668
+ args: [{ selector: 'lib-unauthorized', template: "<lib-view-layout [show-header]=\"false\" title=\"401 - \u03B4\u03B5\u03BD \u03B5\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03B5\u03C4\u03B1\u03B9 \u03B7 \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7!\">\n <div class=\"bg-gray-600 view-container\">\n <div class=\"max-w-2xl mx-auto text-center py-16 px-4 sm:py-20 sm:px-6 lg:px-8\">\n <h2 class=\"text-3xl font-extrabold text-white sm:text-4xl\">\n <span class=\"block\">401</span>\n </h2>\n <p class=\"mt-4 text-lg leading-6 text-gray-200\">\u03B4\u03B5\u03BD \u03AD\u03C7\u03B5\u03C4\u03B5 \u03C4\u03B1 \u03BA\u03B1\u03C4\u03AC\u03BB\u03BB\u03B7\u03BB\u03B1 \u03B4\u03B9\u03BA\u03B1\u03B9\u03CE\u03BC\u03B1\u03C4\u03B1 \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2!</p>\n <a href=\"/\" class=\"mt-8 inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-sm rounded-sm text-gray-600 bg-white hover:bg-gray-50 sm:w-auto\">\n \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B5\u03B4\u03CE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03C3\u03C4\u03C1\u03AD\u03C8\u03B5\u03C4\u03B5\n </a>\n </div>\n </div>\n </lib-view-layout>\n\n\n" }]
2669
+ }], ctorParameters: function () { return []; } });
2670
+
2671
+ class AddressPipe {
2672
+ transform(value) {
2673
+ if (value === undefined || null || '') {
2674
+ return '';
2675
+ }
2676
+ // tslint:disable-next-line:no-non-null-assertion
2677
+ return `${value.street || ''}${value.streetNumber ? ' ' + value.streetNumber : ''}${value.city ? ', ' + value.city : ''}${+value.postalCode ? ', ' + +value.postalCode : ''}`;
2678
+ }
2679
+ }
2680
+ AddressPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AddressPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2681
+ AddressPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: AddressPipe, name: "address", pure: false });
2682
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AddressPipe, decorators: [{
2683
+ type: Pipe,
2684
+ args: [{
2685
+ name: 'address',
2686
+ pure: false
2687
+ }]
2688
+ }] });
2689
+
2690
+ class DurationFormatPipe {
2691
+ transform(value, arg1, arg2) {
2692
+ let days;
2693
+ let seconds;
2694
+ let minutes;
2695
+ let hours;
2696
+ if (arg1 === 'ms' && arg2 === 'hhmmss') {
2697
+ seconds = Math.floor((value / 1000) % 60);
2698
+ minutes = Math.floor(((value / (1000 * 60)) % 60));
2699
+ hours = Math.floor((value / (1000 * 60 * 60)));
2700
+ return this.format(arg2, seconds, minutes, hours, days);
2701
+ }
2702
+ else if (arg1 === 's' && arg2 === 'hhmmss') {
2703
+ seconds = Math.floor((value % 60));
2704
+ minutes = Math.floor(((value / 60) % 60));
2705
+ hours = Math.floor(((value / 60) / 60));
2706
+ return this.format(arg2, seconds, minutes, hours, days);
2707
+ }
2708
+ else if (arg1 === 'ms' && (arg2 === 'ddhhmmss' || arg2 === 'ddhhmmssLong')) {
2709
+ seconds = Math.floor(((value / 1000) % 60));
2710
+ minutes = Math.floor((value / (1000 * 60) % 60));
2711
+ hours = Math.floor((value / (1000 * 60 * 60) % 24));
2712
+ days = Math.floor((value / (1000 * 60 * 60 * 24)));
2713
+ return this.format(arg2, seconds, minutes, hours, days);
2714
+ }
2715
+ else if (arg1 === 's' && (arg2 === 'ddhhmmss' || arg2 === 'ddhhmmssLong')) {
2716
+ seconds = Math.floor(value % 60);
2717
+ minutes = Math.floor(((value / 60) % 60));
2718
+ hours = Math.floor(((value / 60) / 60) % 24);
2719
+ days = Math.floor((((value / 60) / 60) / 24));
2720
+ return this.format(arg2, seconds, minutes, hours, days);
2721
+ }
2722
+ else {
2723
+ return value;
2724
+ }
2725
+ }
2726
+ format(arg2, seconds, minutes, hours, days) {
2727
+ (days < 10) ? days = '0' + days : days;
2728
+ (hours < 10) ? hours = '0' + hours : hours;
2729
+ (minutes < 10) ? minutes = '0' + minutes : minutes;
2730
+ (seconds < 10) ? seconds = '0' + seconds : seconds;
2731
+ switch (arg2) {
2732
+ case 'hhmmss':
2733
+ return `${hours}:${minutes}:${seconds}`;
2734
+ case 'ddhhmmss':
2735
+ return `${days}d, ${hours}h, ${minutes}m, ${seconds}s`;
2736
+ case 'ddhhmmssLong':
2737
+ return `${days} days, ${hours} hours, ${minutes} minutes, ${seconds} seconds`;
2738
+ }
2739
+ return undefined;
2740
+ }
2741
+ }
2742
+ DurationFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DurationFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2743
+ DurationFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: DurationFormatPipe, name: "durationFormat", pure: false });
2744
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DurationFormatPipe, decorators: [{
2745
+ type: Pipe,
2746
+ args: [{
2747
+ name: 'durationFormat',
2748
+ pure: false
2749
+ }]
2750
+ }] });
2751
+
2752
+ class BaseListComponent {
2753
+ constructor(route$, router$) {
2754
+ this.route$ = route$;
2755
+ this.router$ = router$;
2756
+ this.items = null;
2757
+ this.view = ListViewType.Tiles;
2758
+ this.title = null;
2759
+ this.actions = [];
2760
+ this.loaderItems = [1, 2, 3, 4, 5];
2761
+ this.page = 1;
2762
+ this.pageSize = 20;
2763
+ this.count = 0;
2764
+ this.sort = '';
2765
+ this.sortdir = '-';
2766
+ this.search = '';
2767
+ this.sortOptions = [];
2768
+ this.metaItems = [];
2769
+ }
2770
+ ngOnDestroy() {
2771
+ if (this.routeSub$) {
2772
+ this.routeSub$.unsubscribe();
2773
+ }
2774
+ }
2775
+ getViewActions() {
2776
+ const actions = [
2777
+ new ViewAction('search', null, null, Icons.Search, 'αναζήτηση'),
2778
+ new ViewAction('refresh', null, null, Icons.Refresh, 'ανανέωση στοιχείων')
2779
+ ];
2780
+ if (this.newItemLink) {
2781
+ actions.push(new RouterViewAction(Icons.Add, this.newItemLink, 'rightpane', 'προσθήκη νέας εγγραφής;'));
2782
+ }
2783
+ return of(actions);
2784
+ }
2785
+ ngOnInit() {
2786
+ this.getViewActions().subscribe(actions => {
2787
+ this.actions = actions || [];
2788
+ });
2789
+ this.metaItems = [
2790
+ { key: 'count', icon: Icons.ItemsCount, text: 'παρακαλώ περιμένετε...' }
2791
+ ];
2792
+ // disabled external route changes monitoring due to sync issues - which is bad :) - refresh from url will not work
2793
+ // until i come up with a solution...
2794
+ this.routeSub$ = this.route$.queryParamMap.subscribe(params => {
2795
+ if (params.keys.length === 0) {
2796
+ return;
2797
+ }
2798
+ // changing the view mode does not require reloading...
2799
+ this.view = params.get('view') || ListViewType.Tiles;
2800
+ // console.log('route changes ', this.view);
2801
+ if (params.get('search') !== this.search) {
2802
+ this.searchChanged(params.get('search'));
2803
+ }
2804
+ const page = +(params.get('page') || 1);
2805
+ if (page !== this.page) {
2806
+ this.page = page;
2807
+ }
2808
+ const size = +(params.get('pagesize') || 20);
2809
+ if (this.pageSize !== size) {
2810
+ this.pageSize = size;
2811
+ }
2812
+ if (params.get('search') !== this.search) {
2813
+ this.search = params.get('search');
2814
+ }
2815
+ if (params.get('sort') !== this.sort) {
2816
+ this.sort = params.get('sort');
2817
+ }
2818
+ if (params.get('sortdir') !== this.sortdir) {
2819
+ this.sortdir = params.get('sortdir');
2820
+ }
2821
+ });
2822
+ // just to sync params in query
2823
+ this.setRouteParams(true);
2824
+ this.load();
2825
+ }
2826
+ setRouteParams(locationChange = false) {
2827
+ this.router$.navigate([], {
2828
+ relativeTo: this.route$, queryParams: {
2829
+ view: this.view,
2830
+ page: this.page,
2831
+ pagesize: this.pageSize,
2832
+ search: this.search,
2833
+ sort: this.sort,
2834
+ dir: this.sortdir
2835
+ }, queryParamsHandling: 'merge', skipLocationChange: locationChange
2836
+ });
2837
+ }
2838
+ actionHandler($event) {
2839
+ // console.log('BaseListComponent actionHandler', $event);
2840
+ if ($event.key === 'refresh') {
2841
+ this.refresh();
2842
+ }
2843
+ }
2844
+ load() {
2845
+ // console.log('BaseListComponent LOAD');
2846
+ this.count = 0;
2847
+ this.items = null;
2848
+ this.loadItems().subscribe(result => {
2849
+ this.count = result ? result.count : 0;
2850
+ this.items = result?.items;
2851
+ this.updateHeaderMeta();
2852
+ }, err => {
2853
+ this.count = 0;
2854
+ this.items = null;
2855
+ this.updateHeaderMeta();
2856
+ });
2857
+ }
2858
+ updateHeaderMeta() {
2859
+ const count = this.metaItems?.filter(m => m.key === 'count')[0];
2860
+ if (count) {
2861
+ this.count === 1 ? count.text = `${this.count} αποτέλεσμα` : count.text = `${this.count} αποτελέσματα`;
2862
+ }
2863
+ }
2864
+ clear() {
2865
+ this.count = 0;
2866
+ this.page = 1;
2867
+ this.items = null;
2868
+ this.search = null;
2869
+ this.setRouteParams();
2870
+ this.load();
2871
+ }
2872
+ refresh() {
2873
+ this.count = 0;
2874
+ this.page = 1;
2875
+ this.items = null;
2876
+ this.setRouteParams();
2877
+ this.load();
2878
+ }
2879
+ pageChanged(page) {
2880
+ if (this.page !== page) {
2881
+ this.page = page;
2882
+ this.setRouteParams();
2883
+ this.load();
2884
+ }
2885
+ }
2886
+ pageSizeChanged(pageSize) {
2887
+ if (this.pageSize !== pageSize) {
2888
+ this.pageSize = pageSize;
2889
+ this.page = 1;
2890
+ this.setRouteParams();
2891
+ this.refresh();
2892
+ }
2893
+ }
2894
+ sortChanged(sort) {
2895
+ // console.log('base-list sortChanged', sort);
2896
+ if (this.sort !== sort) {
2897
+ this.page = 1;
2898
+ this.sort = sort;
2899
+ this.setRouteParams();
2900
+ this.refresh();
2901
+ }
2902
+ }
2903
+ sortdirChanged(sortdir) {
2904
+ if (this.sortdir !== sortdir) {
2905
+ this.page = 1;
2906
+ this.sortdir = sortdir;
2907
+ this.setRouteParams();
2908
+ this.refresh();
2909
+ }
2910
+ }
2911
+ searchChanged(searchText) {
2912
+ this.count = 0;
2913
+ this.page = 1;
2914
+ this.items = null;
2915
+ this.search = searchText;
2916
+ this.setRouteParams();
2917
+ this.load();
2918
+ }
2919
+ }
2920
+ BaseListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: BaseListComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
2921
+ BaseListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: BaseListComponent, selector: "ng-component", ngImport: i0, template: '', isInline: true });
2922
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: BaseListComponent, decorators: [{
2923
+ type: Component,
2924
+ args: [{ template: '' }]
2925
+ }], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }]; } });
2926
+
2927
+ const cssClassNames = {
2928
+ backdrop: 'modal-backdrop',
2929
+ show: 'show',
2930
+ fade: 'fade',
2931
+ modalOpen: 'modal-open'
2932
+ };
2933
+ const animationTime = {
2934
+ backdrop: 150,
2935
+ modal: 300,
2936
+ };
2937
+
2938
+ /**
2939
+ * Background layer for modals.
2940
+ * Override class name to theme it.
2941
+ * @see {@link cssClassNames}
2942
+ * @internal
2943
+ */
2944
+ class ModalBackdropComponent {
2945
+ constructor(element, renderer) {
2946
+ this.element = element;
2947
+ this.renderer = renderer;
2948
+ this.animationsEnabled = false;
2949
+ }
2950
+ ngOnInit() {
2951
+ if (this.animationsEnabled) {
2952
+ this.renderer.addClass(this.element.nativeElement, cssClassNames.fade);
2953
+ this.reflow(this.element.nativeElement);
2954
+ }
2955
+ this.renderer.addClass(this.element.nativeElement, cssClassNames.show);
2956
+ }
2957
+ hide() {
2958
+ this.renderer.removeClass(this.element.nativeElement, cssClassNames.show);
2959
+ setTimeout(() => this.backdropLoader?.hide(), this.animationsEnabled ? animationTime.backdrop : 0);
2960
+ }
2961
+ reflow(element) {
2962
+ ((bs) => bs)(element.offsetHeight);
2963
+ }
2964
+ }
2965
+ ModalBackdropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModalBackdropComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
2966
+ ModalBackdropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ModalBackdropComponent, selector: "lib-modal-backdrop", host: { classAttribute: "modal-backdrop" }, ngImport: i0, template: '', isInline: true, encapsulation: i0.ViewEncapsulation.None });
2967
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModalBackdropComponent, decorators: [{
2968
+ type: Component,
2969
+ args: [{
2970
+ selector: 'lib-modal-backdrop',
2971
+ encapsulation: ViewEncapsulation.None,
2972
+ template: '',
2973
+ host: {
2974
+ class: cssClassNames.backdrop,
2975
+ },
2976
+ }]
2977
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; } });
2978
+
2979
+ /**
2980
+ * Modals option can be passed to a specific modal from {@link ModalService.show} or
2981
+ * set globbaly using the injection token {@link MODAL_CONFIG_DEFAULT_OVERRIDE}.
2982
+ * @remarks
2983
+ * Modal specific options are merged with global options.
2984
+ * @see {@link modalConfigDefaults} for defaults.
2985
+ * @public
2986
+ */
2987
+ class ModalOptions {
2988
+ }
2989
+ ModalOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModalOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2990
+ ModalOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModalOptions });
2991
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModalOptions, decorators: [{
2992
+ type: Injectable
2993
+ }] });
2994
+ /**
2995
+ * Default option values.
2996
+ */
2997
+ const modalConfigDefaults = {
2998
+ backdrop: true,
2999
+ keyboard: true,
3000
+ show: false,
3001
+ ignoreBackdropClick: false,
3002
+ class: '',
3003
+ animated: true,
3004
+ initialState: {},
3005
+ closeInterceptor: void 0,
3006
+ };
3007
+ /**
3008
+ * Use this injection token to set global options.
3009
+ */
3010
+ const MODAL_CONFIG_DEFAULT_OVERRIDE = new InjectionToken('override-default-config');
3011
+
3012
+ /**
3013
+ * Modal container component.
3014
+ * @remarks
3015
+ * All dynamic content `TemplateRef` or `Component` case will be drawn inside this.
3016
+ * You can override css classes to theme it {@link cssClassNames}
3017
+ * @internal
3018
+ */
3019
+ class ModalContainerComponent {
3020
+ constructor(options, _element, renderer) {
3021
+ this._element = _element;
3022
+ this.renderer = renderer;
3023
+ this.isShown = false;
3024
+ this.animationsEnabled = false;
3025
+ this.isModalHiding = false;
3026
+ this.clickStartedInContent = false;
3027
+ this.config = Object.assign({}, options);
3028
+ }
3029
+ ngOnInit() {
3030
+ if (this.animationsEnabled) {
3031
+ this.renderer.addClass(this._element.nativeElement, cssClassNames.fade);
3032
+ }
3033
+ this.renderer.setStyle(this._element.nativeElement, 'display', 'block');
3034
+ setTimeout(() => {
3035
+ this.isShown = true;
3036
+ this.renderer.addClass(this._element.nativeElement, cssClassNames.show);
3037
+ }, this.animationsEnabled ? animationTime.backdrop : 0);
3038
+ if (this._element.nativeElement) {
3039
+ this._element.nativeElement.focus();
3040
+ }
3041
+ }
3042
+ onClickStarted(event) {
3043
+ this.clickStartedInContent = event.target !== this._element.nativeElement;
3044
+ }
3045
+ onClickStop(event) {
3046
+ const clickedInBackdrop = event.target === this._element.nativeElement && !this.clickStartedInContent;
3047
+ if (this.config.ignoreBackdropClick || this.config.backdrop === 'static' || !clickedInBackdrop) {
3048
+ this.clickStartedInContent = false;
3049
+ return;
3050
+ }
3051
+ this.hide();
3052
+ }
3053
+ onPopState() {
3054
+ this.hide();
3055
+ }
3056
+ onEsc(event) {
3057
+ if (!this.isShown) {
3058
+ return;
3059
+ }
3060
+ if (event.keyCode === 27 || event.key === 'Escape' || event.key === 'Esc') {
3061
+ event.preventDefault();
3062
+ }
3063
+ if (this.config.keyboard && this.config.id === this.modalService?.getActiveModal().config.id) {
3064
+ this.hide();
3065
+ }
3066
+ }
3067
+ ngOnDestroy() {
3068
+ if (this.isShown) {
3069
+ this._hide();
3070
+ }
3071
+ }
3072
+ hide(result) {
3073
+ if (this.isModalHiding || !this.isShown) {
3074
+ return;
3075
+ }
3076
+ if (this.config.closeInterceptor) {
3077
+ this.config.closeInterceptor().then(() => this._hide(), () => undefined);
3078
+ return;
3079
+ }
3080
+ this._hide(result);
3081
+ }
3082
+ _hide(result) {
3083
+ this.isModalHiding = true;
3084
+ this.renderer.removeClass(this._element.nativeElement, cssClassNames.show);
3085
+ setTimeout(() => {
3086
+ this.isShown = false;
3087
+ this.modalService?.hide(this.config.id, result);
3088
+ this.isModalHiding = false;
3089
+ }, this.animationsEnabled ? animationTime.modal : 0);
3090
+ }
3091
+ }
3092
+ ModalContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModalContainerComponent, deps: [{ token: ModalOptions }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
3093
+ ModalContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ModalContainerComponent, selector: "lib-modal-container", host: { attributes: { "role": "dialog", "tabindex": "-1" }, listeners: { "mousedown": "onClickStarted($event)", "click": "onClickStop($event)", "window:popstate": "onPopState()", "window:keydown.esc": "onEsc($event)" }, properties: { "attr.aria-modal": "true", "attr.aria-labelledby": "config.ariaLabelledBy", "attr.aria-describedby": "config.ariaDescribedby" }, classAttribute: "modal" }, ngImport: i0, template: `
3094
+ <div [class]="'modal-dialog' + (config.class ? ' ' + config.class : '')" role="document" focusTrap>
3095
+ <div class="modal-content">
3096
+ <ng-content></ng-content>
3097
+ </div>
3098
+ </div>
3099
+ `, isInline: true });
3100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModalContainerComponent, decorators: [{
3101
+ type: Component,
3102
+ args: [{
3103
+ selector: 'lib-modal-container',
3104
+ template: `
3105
+ <div [class]="'modal-dialog' + (config.class ? ' ' + config.class : '')" role="document" focusTrap>
3106
+ <div class="modal-content">
3107
+ <ng-content></ng-content>
3108
+ </div>
3109
+ </div>
3110
+ `,
3111
+ host: {
3112
+ class: 'modal',
3113
+ role: 'dialog',
3114
+ tabindex: '-1',
3115
+ '[attr.aria-modal]': 'true',
3116
+ '[attr.aria-labelledby]': 'config.ariaLabelledBy',
3117
+ '[attr.aria-describedby]': 'config.ariaDescribedby',
3118
+ },
3119
+ }]
3120
+ }], ctorParameters: function () { return [{ type: ModalOptions }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { onClickStarted: [{
3121
+ type: HostListener,
3122
+ args: ['mousedown', ['$event']]
3123
+ }], onClickStop: [{
3124
+ type: HostListener,
3125
+ args: ['click', ['$event']]
3126
+ }], onPopState: [{
3127
+ type: HostListener,
3128
+ args: ['window:popstate']
3129
+ }], onEsc: [{
3130
+ type: HostListener,
3131
+ args: ['window:keydown.esc', ['$event']]
3132
+ }] } });
3133
+
3134
+ /**
3135
+ * Modal class.
3136
+ * @remarks
3137
+ * This is returned from {@link ModalService.show}.
3138
+ * @public
3139
+ */
3140
+ class Modal {
3141
+ constructor() {
3142
+ /**
3143
+ * Hides the modal
3144
+ * @param result - A result to the observers.
3145
+ */
3146
+ this.hide = () => void 0;
3147
+ /**
3148
+ * Sets new class to modal window.
3149
+ */
3150
+ this.setClass = () => void 0;
3151
+ }
3152
+ }
3153
+ Modal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: Modal, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3154
+ Modal.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: Modal });
3155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: Modal, decorators: [{
3156
+ type: Injectable
3157
+ }] });
3158
+
3159
+ /**
3160
+ * A service for using modals.
3161
+ *
3162
+ * @public
3163
+ */
3164
+ class ModalService {
3165
+ constructor(clf, rendererFactory, document, modalDefaultOption) {
3166
+ this.clf = clf;
3167
+ this.document = document;
3168
+ this.onBeforeShow = new Subject();
3169
+ this.onShown = new Subject();
3170
+ this.onBeforeHide = new Subject();
3171
+ this.onHidden = new Subject();
3172
+ this.loaders = [];
3173
+ this.modalsCount = 0;
3174
+ this.initialPadding = '0px';
3175
+ this.backdropLoader = this.clf.createLoader();
3176
+ this.defaultConfig = { ...modalConfigDefaults, ...modalDefaultOption };
3177
+ this.renderer = rendererFactory.createRenderer(null, null);
3178
+ }
3179
+ ngOnDestroy() {
3180
+ this.loaders.forEach((loader) => loader.instance?.hide());
3181
+ }
3182
+ /**
3183
+ * Opens a new modal.
3184
+ *
3185
+ * @param content - `Component` or `TemplateRef` type.
3186
+ * @param config - Specific {@link ModalOptions | options} for this modal. Global and specific options are merged.
3187
+ * @returns An instance of {@link Modal}
3188
+ */
3189
+ show(content, config) {
3190
+ this.modalsCount++;
3191
+ const combinedConfig = { ...this.defaultConfig, ...config };
3192
+ combinedConfig.id = config?.id || new Date().getUTCMilliseconds();
3193
+ this.createLoaders();
3194
+ this.addBodyPadding();
3195
+ if (this.modalsCount === 1) {
3196
+ this.renderer.addClass(this.document.body, cssClassNames.modalOpen);
3197
+ }
3198
+ this.showBackdrop(combinedConfig);
3199
+ return this.showModal(content, combinedConfig);
3200
+ }
3201
+ /**
3202
+ * Hide an active modal.
3203
+ * @param id - Id of modal to hide. If not provided all active modals are hidden.
3204
+ * @param result - A result to be sent to observers.
3205
+ */
3206
+ hide(id, result) {
3207
+ if (this.modalsCount === 1 || id == null) {
3208
+ this.hideBackdrop();
3209
+ this.revertScrollbar();
3210
+ this.renderer.removeClass(this.document.body, cssClassNames.modalOpen);
3211
+ }
3212
+ this.modalsCount = this.modalsCount >= 1 && id != null ? this.modalsCount - 1 : 0;
3213
+ setTimeout(() => {
3214
+ this.hideModal(id, result);
3215
+ this.removeLoaders(id);
3216
+ },
3217
+ //Bug
3218
+ //Should use combined config but for the moment is not possible to pass it this parameter.
3219
+ //If config is an instance variable then every newly opened modal will override the config
3220
+ //resulting in opened modals to get a new configuration
3221
+ this.defaultConfig.animated ? animationTime.backdrop : 0);
3222
+ }
3223
+ getActiveModal() {
3224
+ return this.loaders[this.modalsCount - 1].instance;
3225
+ }
3226
+ showModal(content, combinedConfig) {
3227
+ const modalLoader = this.loaders[this.loaders.length - 1];
3228
+ if (combinedConfig && combinedConfig.providers) {
3229
+ combinedConfig.providers.forEach((provider) => modalLoader.provide(provider));
3230
+ }
3231
+ const modal = new Modal();
3232
+ const modalContainerRef = modalLoader
3233
+ .provide({ provide: ModalOptions, useValue: combinedConfig })
3234
+ .provide({ provide: Modal, useValue: modal })
3235
+ .attach(ModalContainerComponent)
3236
+ .to('body');
3237
+ modal.setClass = (newClass) => {
3238
+ if (modalContainerRef.instance) {
3239
+ modalContainerRef.instance.config.class = newClass;
3240
+ }
3241
+ };
3242
+ modal.onBeforeHide = new Subject();
3243
+ modal.onHidden = new Subject();
3244
+ this.copyEvent(modalLoader.onBeforeHide, modal.onBeforeHide);
3245
+ this.copyEvent(modalLoader.onHidden, modal.onHidden);
3246
+ modalContainerRef.show({
3247
+ content,
3248
+ animationsEnabled: combinedConfig.animated,
3249
+ initialState: combinedConfig.initialState,
3250
+ modalService: this,
3251
+ id: combinedConfig.id,
3252
+ });
3253
+ if (modalContainerRef.instance) {
3254
+ modalContainerRef.instance.level = this.modalsCount;
3255
+ modal.content = modalLoader.getInnerComponent();
3256
+ modal.id = modalContainerRef.instance.config?.id;
3257
+ modal.hide = (res) => modalContainerRef.instance?.hide(res);
3258
+ }
3259
+ return modal;
3260
+ }
3261
+ hideModal(id, result) {
3262
+ if (id != null) {
3263
+ const indexToRemove = this.loaders.findIndex((loader) => loader.instance?.config.id === id);
3264
+ const modalLoader = this.loaders[indexToRemove];
3265
+ if (modalLoader) {
3266
+ modalLoader.hide(id, result);
3267
+ }
3268
+ }
3269
+ else {
3270
+ this.loaders.forEach((loader) => {
3271
+ if (loader.instance) {
3272
+ loader.hide(loader.instance.config.id);
3273
+ }
3274
+ });
3275
+ }
3276
+ }
3277
+ showBackdrop(combinedConfig) {
3278
+ const isBackdropEnabled = combinedConfig.backdrop === true || combinedConfig.backdrop === 'static';
3279
+ const isBackdropInDOM = this.backdropRef != null;
3280
+ if (isBackdropEnabled && !isBackdropInDOM) {
3281
+ this.backdropLoader
3282
+ .attach(ModalBackdropComponent)
3283
+ .to('body')
3284
+ .show({ animationsEnabled: combinedConfig.animated, backdropLoader: this.backdropLoader });
3285
+ this.backdropRef = this.backdropLoader.componentRef;
3286
+ }
3287
+ }
3288
+ hideBackdrop() {
3289
+ if (!this.backdropRef) {
3290
+ return;
3291
+ }
3292
+ this.backdropRef.instance.hide();
3293
+ this.backdropRef = void 0;
3294
+ }
3295
+ removeLoaders(id) {
3296
+ if (id != null) {
3297
+ const indexToRemove = this.loaders.findIndex((loader) => loader.instance?.config.id === id);
3298
+ if (indexToRemove >= 0) {
3299
+ this.loaders.splice(indexToRemove, 1);
3300
+ this.loaders.forEach((loader, i) => {
3301
+ if (loader.instance) {
3302
+ loader.instance.level = i + 1;
3303
+ }
3304
+ });
3305
+ }
3306
+ }
3307
+ else {
3308
+ this.loaders.splice(0, this.loaders.length);
3309
+ }
3310
+ }
3311
+ addBodyPadding() {
3312
+ if (this.modalsCount === 1) {
3313
+ const width = this.getScrollbarWidth();
3314
+ if (this.isScrollBarPresent(width)) {
3315
+ this.initialPadding = this.document.body.style.paddingRight;
3316
+ const actualPadding = parseFloat(window.getComputedStyle(this.document.body).paddingRight);
3317
+ this.document.body.style.paddingRight = `${actualPadding + width}px`;
3318
+ }
3319
+ }
3320
+ }
3321
+ revertScrollbar() {
3322
+ this.document.body.style.paddingRight = this.initialPadding;
3323
+ }
3324
+ getScrollbarWidth() {
3325
+ const measurer = this.document.createElement('div');
3326
+ measurer.className = 'modal-scrollbar-measure';
3327
+ const body = this.document.body;
3328
+ body.appendChild(measurer);
3329
+ const width = measurer.getBoundingClientRect().width - measurer.clientWidth;
3330
+ body.removeChild(measurer);
3331
+ return width;
3332
+ }
3333
+ isScrollBarPresent(scrollbarWidth) {
3334
+ const rect = this.document.body.getBoundingClientRect();
3335
+ const bodyToViewportGap = window.innerWidth - (rect.left + rect.right);
3336
+ const uncertainty = 0.1 * scrollbarWidth;
3337
+ return bodyToViewportGap >= scrollbarWidth - uncertainty;
3338
+ }
3339
+ createLoaders() {
3340
+ const loader = this.clf.createLoader();
3341
+ this.copyEvent(loader.onBeforeShow, this.onBeforeShow);
3342
+ this.copyEvent(loader.onShown, this.onShown);
3343
+ this.copyEvent(loader.onBeforeHide, this.onBeforeHide);
3344
+ this.copyEvent(loader.onHidden, this.onHidden);
3345
+ this.loaders.push(loader);
3346
+ }
3347
+ copyEvent(from, to) {
3348
+ from.subscribe((data) => {
3349
+ to.next(data);
3350
+ });
3351
+ }
3352
+ }
3353
+ ModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModalService, deps: [{ token: ComponentLoaderFactory }, { token: i0.RendererFactory2 }, { token: DOCUMENT }, { token: MODAL_CONFIG_DEFAULT_OVERRIDE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3354
+ ModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModalService });
3355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ModalService, decorators: [{
3356
+ type: Injectable
3357
+ }], ctorParameters: function () { return [{ type: ComponentLoaderFactory }, { type: i0.RendererFactory2 }, { type: undefined, decorators: [{
3358
+ type: Inject,
3359
+ args: [DOCUMENT]
3360
+ }] }, { type: ModalOptions, decorators: [{
3361
+ type: Optional
3362
+ }, {
3363
+ type: Inject,
3364
+ args: [MODAL_CONFIG_DEFAULT_OVERRIDE]
3365
+ }] }]; } });
3366
+
3367
+ class IndiceComponentsModule {
3368
+ // tslint:disable-next-line:typedef
3369
+ static forRoot() {
3370
+ return {
3371
+ ngModule: IndiceComponentsModule,
3372
+ providers: [ToasterService]
3373
+ };
3374
+ }
3375
+ }
3376
+ IndiceComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: IndiceComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3377
+ IndiceComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: IndiceComponentsModule, declarations: [
3378
+ // Directives
3379
+ ClickOutsideDirective,
3380
+ DynamicComponentHostDirective,
3381
+ // Controls
3382
+ DropDownMenuComponent,
3383
+ PagerComponent,
3384
+ ListViewComponent,
3385
+ ListColumnComponent,
3386
+ ListTileComponent,
3387
+ ListDetailsSectionComponent,
3388
+ ListViewEmptyStateComponent,
3389
+ SkeletonLoaderComponent,
3390
+ CollapsiblePanelComponent,
3391
+ KpiTileComponent,
3392
+ SidePaneComponent,
3393
+ DatepickerComponent,
3394
+ AvatarInitialsComponent,
3395
+ ToggleComponent,
3396
+ ComboboxComponent,
3397
+ // Toaster
3398
+ ToasterContainerComponent,
3399
+ ToasterComponent,
3400
+ // Shell Layout
3401
+ ShellLayoutComponent,
3402
+ ShellHeaderComponent,
3403
+ ShellFooterComponent,
3404
+ // View Layouts
3405
+ ViewLayoutComponent,
3406
+ SideViewLayoutComponent,
3407
+ ModelViewLayoutComponent,
3408
+ FormLayoutComponent,
3409
+ // Pages (common)
3410
+ AuthCallbackComponent,
3411
+ AuthRenewComponent,
3412
+ LoggedOutComponent,
3413
+ ErrorComponent,
3414
+ PageNotFoundComponent,
3415
+ UnauthorizedComponent,
3416
+ // Pipes
3417
+ AddressPipe,
3418
+ DurationFormatPipe,
3419
+ NavLinksListComponent,
3420
+ NotificationsIndicatorComponent,
3421
+ LanguageSelectionComponent,
3422
+ UserProfileMenuComponent,
3423
+ ShellSidebarComponent,
3424
+ // Tab Group Component
3425
+ LibTabComponent,
3426
+ LibTabGroupComponent], imports: [CommonModule,
3427
+ RouterModule,
3428
+ IndiceAuthModule], exports: [AddressPipe,
3429
+ AuthCallbackComponent,
3430
+ AuthRenewComponent,
3431
+ AvatarInitialsComponent,
3432
+ ClickOutsideDirective,
3433
+ CollapsiblePanelComponent,
3434
+ ComboboxComponent,
3435
+ DatepickerComponent,
3436
+ DropDownMenuComponent,
3437
+ DurationFormatPipe,
3438
+ ErrorComponent,
3439
+ FormLayoutComponent,
3440
+ KpiTileComponent,
3441
+ LibTabComponent,
3442
+ LibTabGroupComponent,
3443
+ ListColumnComponent,
3444
+ ListDetailsSectionComponent,
3445
+ ListTileComponent,
3446
+ ListViewComponent,
3447
+ ListViewEmptyStateComponent,
3448
+ LoggedOutComponent,
3449
+ ModelViewLayoutComponent,
3450
+ PageNotFoundComponent,
3451
+ PagerComponent,
3452
+ ShellFooterComponent,
3453
+ ShellHeaderComponent,
3454
+ ShellLayoutComponent,
3455
+ SidePaneComponent,
3456
+ SideViewLayoutComponent,
3457
+ SkeletonLoaderComponent,
3458
+ ToasterComponent,
3459
+ ToasterContainerComponent,
3460
+ ToggleComponent,
3461
+ UnauthorizedComponent,
3462
+ ViewLayoutComponent] });
3463
+ IndiceComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: IndiceComponentsModule, imports: [CommonModule,
3464
+ RouterModule,
3465
+ IndiceAuthModule] });
3466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: IndiceComponentsModule, decorators: [{
3467
+ type: NgModule,
3468
+ args: [{
3469
+ declarations: [
3470
+ // Directives
3471
+ ClickOutsideDirective,
3472
+ DynamicComponentHostDirective,
3473
+ // Controls
3474
+ DropDownMenuComponent,
3475
+ PagerComponent,
3476
+ ListViewComponent,
3477
+ ListColumnComponent,
3478
+ ListTileComponent,
3479
+ ListDetailsSectionComponent,
3480
+ ListViewEmptyStateComponent,
3481
+ SkeletonLoaderComponent,
3482
+ CollapsiblePanelComponent,
3483
+ KpiTileComponent,
3484
+ SidePaneComponent,
3485
+ DatepickerComponent,
3486
+ AvatarInitialsComponent,
3487
+ ToggleComponent,
3488
+ ComboboxComponent,
3489
+ // Toaster
3490
+ ToasterContainerComponent,
3491
+ ToasterComponent,
3492
+ // Shell Layout
3493
+ ShellLayoutComponent,
3494
+ ShellHeaderComponent,
3495
+ ShellFooterComponent,
3496
+ // View Layouts
3497
+ ViewLayoutComponent,
3498
+ SideViewLayoutComponent,
3499
+ ModelViewLayoutComponent,
3500
+ FormLayoutComponent,
3501
+ // Pages (common)
3502
+ AuthCallbackComponent,
3503
+ AuthRenewComponent,
3504
+ LoggedOutComponent,
3505
+ ErrorComponent,
3506
+ PageNotFoundComponent,
3507
+ UnauthorizedComponent,
3508
+ // Pipes
3509
+ AddressPipe,
3510
+ DurationFormatPipe,
3511
+ NavLinksListComponent,
3512
+ NotificationsIndicatorComponent,
3513
+ LanguageSelectionComponent,
3514
+ UserProfileMenuComponent,
3515
+ ShellSidebarComponent,
3516
+ // Tab Group Component
3517
+ LibTabComponent,
3518
+ LibTabGroupComponent
3519
+ ],
3520
+ imports: [
3521
+ CommonModule,
3522
+ RouterModule,
3523
+ IndiceAuthModule
3524
+ ],
3525
+ exports: [
3526
+ AddressPipe,
3527
+ AuthCallbackComponent,
3528
+ AuthRenewComponent,
3529
+ AvatarInitialsComponent,
3530
+ ClickOutsideDirective,
3531
+ CollapsiblePanelComponent,
3532
+ ComboboxComponent,
3533
+ DatepickerComponent,
3534
+ DropDownMenuComponent,
3535
+ DurationFormatPipe,
3536
+ ErrorComponent,
3537
+ FormLayoutComponent,
3538
+ KpiTileComponent,
3539
+ LibTabComponent,
3540
+ LibTabGroupComponent,
3541
+ ListColumnComponent,
3542
+ ListDetailsSectionComponent,
3543
+ ListTileComponent,
3544
+ ListViewComponent,
3545
+ ListViewEmptyStateComponent,
3546
+ LoggedOutComponent,
3547
+ ModelViewLayoutComponent,
3548
+ PageNotFoundComponent,
3549
+ PagerComponent,
3550
+ ShellFooterComponent,
3551
+ ShellHeaderComponent,
3552
+ ShellLayoutComponent,
3553
+ SidePaneComponent,
3554
+ SideViewLayoutComponent,
3555
+ SkeletonLoaderComponent,
3556
+ ToasterComponent,
3557
+ ToasterContainerComponent,
3558
+ ToggleComponent,
3559
+ UnauthorizedComponent,
3560
+ ViewLayoutComponent
3561
+ ]
3562
+ }]
3563
+ }] });
3564
+
3565
+ // Public API Surface of @indice/ng-components
3566
+
3567
+ /**
3568
+ * Generated bundle index. Do not edit.
3569
+ */
3570
+
3571
+ export { APP_LANGUAGES, APP_LINKS, APP_NOTIFICATIONS, AddressPipe, AuthCallbackComponent, AuthRenewComponent, AvatarInitialsComponent, BaseListComponent, ClickOutsideDirective, CollapsiblePanelComponent, ComboboxComponent, ComponentLoaderFactory, DatepickerComponent, DefaultShellConfig, DropDownMenuComponent, DurationFormatPipe, ErrorComponent, ExternalNavLink, FormLayoutComponent, FragmentNavLink, HeaderMetaItem, Icons, IndiceComponentsModule, KpiTileComponent, LIBTABGROUP_ACCESSOR, LibTabComponent, LibTabGroupComponent, ListColumnComponent, ListDetailsSectionComponent, ListTileComponent, ListViewComponent, ListViewEmptyStateComponent, ListViewType, LoggedOutComponent, MODAL_CONFIG_DEFAULT_OVERRIDE, MenuOption, Modal, ModalOptions, ModalService, ModelViewLayoutComponent, NULL_TOAST, NavLink, NavLinksListComponent, NotificationNavLink, PageNotFoundComponent, PagerComponent, RouterViewAction, SCREEN_SIZE, SHELL_CONFIG, ShellFooterComponent, ShellHeaderComponent, ShellLayoutComponent, ShellLayoutType, SidePaneComponent, SidePaneOverlayType, SidePaneSize, SideViewLayoutComponent, SkeletonLoaderComponent, SwitchViewAction, ToastType, ToasterComponent, ToasterContainerComponent, ToasterService, ToggleComponent, UnauthorizedComponent, ViewAction, ViewLayoutComponent };
3572
+ //# sourceMappingURL=indice-ng-components.mjs.map