@indice/ng-components 0.2.142-beta → 0.2.142

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 (109) hide show
  1. package/README.md +4 -4
  2. package/_styles.css +3498 -3501
  3. package/{esm2015/indice-ng-components.js → esm2020/indice-ng-components.mjs} +0 -0
  4. package/{esm2015/lib/controls/avatar-initials/avatar-initials.component.js → esm2020/lib/controls/avatar-initials/avatar-initials.component.mjs} +5 -8
  5. package/esm2020/lib/controls/collapsible-panel/collapsible-panel.component.mjs +20 -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/{esm2015/lib/controls/list-view/list-column.component.js → esm2020/lib/controls/list-view/list-column.component.mjs} +4 -4
  10. package/{esm2015/lib/controls/list-view/list-details-section.component.js → esm2020/lib/controls/list-view/list-details-section.component.mjs} +4 -4
  11. package/{esm2015/lib/controls/list-view/list-tile.component.js → esm2020/lib/controls/list-view/list-tile.component.mjs} +4 -4
  12. package/esm2020/lib/controls/list-view/list-view-empty-state.component.mjs +29 -0
  13. package/esm2020/lib/controls/list-view/list-view.component.mjs +183 -0
  14. package/esm2020/lib/controls/nav-links-list/nav-links-list.component.mjs +37 -0
  15. package/esm2020/lib/controls/notifications-indicator/notifications-indicator.component.mjs +77 -0
  16. package/esm2020/lib/controls/pager/pager.component.mjs +130 -0
  17. package/esm2020/lib/controls/side-pane/side-pane.component.mjs +72 -0
  18. package/esm2020/lib/controls/skeleton-loader/skeleton-loader.component.mjs +25 -0
  19. package/{esm2015/lib/controls/toaster/toaster-container.component.js → esm2020/lib/controls/toaster/toaster-container.component.mjs} +5 -8
  20. package/esm2020/lib/controls/toaster/toaster.component.mjs +31 -0
  21. package/esm2020/lib/controls/toggle/toggle.component.mjs +64 -0
  22. package/{esm2015/lib/directives/click-outside.directive.js → esm2020/lib/directives/click-outside.directive.mjs} +4 -4
  23. package/{esm2015/lib/directives/dynamic-component-host.directive.js → esm2020/lib/directives/dynamic-component-host.directive.mjs} +4 -4
  24. package/esm2020/lib/helpers/base-list.component.mjs +181 -0
  25. package/{esm2015/lib/icons.js → esm2020/lib/icons.mjs} +1 -1
  26. package/esm2020/lib/layouts/shell/shell-footer/shell-footer.component.mjs +19 -0
  27. package/esm2020/lib/layouts/shell/shell-header/shell-header.component.mjs +135 -0
  28. package/esm2020/lib/layouts/shell/shell-layout/shell-layout.component.mjs +101 -0
  29. package/esm2020/lib/layouts/views/form-layout/form-layout.component.mjs +80 -0
  30. package/esm2020/lib/layouts/views/model-view-layout/model-view-layout.component.mjs +49 -0
  31. package/esm2020/lib/layouts/views/side-view-layout/side-view-layout.component.mjs +98 -0
  32. package/esm2020/lib/layouts/views/view-layout/view-layout.component.mjs +104 -0
  33. package/{esm2015/lib/ng-components.module.js → esm2020/lib/ng-components.module.mjs} +12 -12
  34. package/{esm2015/lib/pages/auth/auth-callback/auth-callback.component.js → esm2020/lib/pages/auth/auth-callback/auth-callback.component.mjs} +6 -10
  35. package/{esm2015/lib/pages/auth/auth-renew/auth-renew.component.js → esm2020/lib/pages/auth/auth-renew/auth-renew.component.mjs} +4 -4
  36. package/{esm2015/lib/pages/auth/logged-out/logged-out.component.js → esm2020/lib/pages/auth/logged-out/logged-out.component.mjs} +5 -9
  37. package/esm2020/lib/pages/http-status/error/error.component.mjs +17 -0
  38. package/esm2020/lib/pages/http-status/page-not-found/page-not-found.component.mjs +15 -0
  39. package/esm2020/lib/pages/http-status/unauthorized/unauthorized.component.mjs +14 -0
  40. package/{esm2015/lib/pipes/address.pipe.js → esm2020/lib/pipes/address.pipe.mjs} +4 -4
  41. package/{esm2015/lib/pipes/duration-format.pipe.js → esm2020/lib/pipes/duration-format.pipe.mjs} +4 -4
  42. package/esm2020/lib/services/component-loader/component-loader-options.class.mjs +8 -0
  43. package/esm2020/lib/services/component-loader/component-loader.class.mjs +188 -0
  44. package/{esm2015/lib/services/component-loader/component-loader.factory.js → esm2020/lib/services/component-loader/component-loader.factory.mjs} +4 -4
  45. package/{esm2015/lib/services/component-loader/content-ref.class.js → esm2020/lib/services/component-loader/content-ref.class.mjs} +1 -1
  46. package/{esm2015/lib/services/modal-service/modal-backdrop-component.js → esm2020/lib/services/modal-service/modal-backdrop-component.mjs} +5 -5
  47. package/esm2020/lib/services/modal-service/modal-container-component.mjs +126 -0
  48. package/esm2020/lib/services/modal-service/modal-options.class.mjs +35 -0
  49. package/esm2020/lib/services/modal-service/modal-service.mjs +219 -0
  50. package/{esm2015/lib/services/modal-service/modal-styles.class.js → esm2020/lib/services/modal-service/modal-styles.class.mjs} +1 -1
  51. package/esm2020/lib/services/modal-service/modal.class.mjs +27 -0
  52. package/{esm2015/lib/services/toaster.service.js → esm2020/lib/services/toaster.service.mjs} +4 -4
  53. package/esm2020/lib/tokens.mjs +5 -0
  54. package/esm2020/lib/types.mjs +117 -0
  55. package/esm2020/public-api.mjs +53 -0
  56. package/fesm2015/indice-ng-components.mjs +3268 -0
  57. package/fesm2015/indice-ng-components.mjs.map +1 -0
  58. package/fesm2020/indice-ng-components.mjs +3225 -0
  59. package/fesm2020/indice-ng-components.mjs.map +1 -0
  60. package/lib/controls/nav-links-list/nav-links-list.component.d.ts +15 -0
  61. package/lib/controls/notifications-indicator/notifications-indicator.component.d.ts +23 -0
  62. package/lib/layouts/shell/shell-header/shell-header.component.d.ts +21 -27
  63. package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +3 -2
  64. package/lib/layouts/views/form-layout/form-layout.component.d.ts +2 -3
  65. package/lib/ng-components.module.d.ts +10 -7
  66. package/lib/tokens.d.ts +1 -0
  67. package/lib/types.d.ts +28 -10
  68. package/modal.css +157 -157
  69. package/package.json +21 -8
  70. package/public-api.d.ts +1 -1
  71. package/bundles/indice-ng-components.umd.js +0 -3827
  72. package/bundles/indice-ng-components.umd.js.map +0 -1
  73. package/esm2015/lib/controls/collapsible-panel/collapsible-panel.component.js +0 -23
  74. package/esm2015/lib/controls/date-picker/date-picker.component.js +0 -269
  75. package/esm2015/lib/controls/drop-down-menu/drop-down-menu.component.js +0 -72
  76. package/esm2015/lib/controls/kpi-tile/kpi-tile.component.js +0 -39
  77. package/esm2015/lib/controls/list-view/list-view-empty-state.component.js +0 -32
  78. package/esm2015/lib/controls/list-view/list-view.component.js +0 -186
  79. package/esm2015/lib/controls/pager/pager.component.js +0 -133
  80. package/esm2015/lib/controls/side-pane/side-pane.component.js +0 -76
  81. package/esm2015/lib/controls/skeleton-loader/skeleton-loader.component.js +0 -29
  82. package/esm2015/lib/controls/toaster/toaster.component.js +0 -34
  83. package/esm2015/lib/controls/toggle/toggle.component.js +0 -68
  84. package/esm2015/lib/helpers/base-list.component.js +0 -182
  85. package/esm2015/lib/layouts/shell/shell-footer/shell-footer.component.js +0 -22
  86. package/esm2015/lib/layouts/shell/shell-header/shell-header.component.js +0 -146
  87. package/esm2015/lib/layouts/shell/shell-layout/shell-layout.component.js +0 -101
  88. package/esm2015/lib/layouts/views/form-layout/form-layout.component.js +0 -86
  89. package/esm2015/lib/layouts/views/model-view-layout/model-view-layout.component.js +0 -55
  90. package/esm2015/lib/layouts/views/side-view-layout/side-view-layout.component.js +0 -101
  91. package/esm2015/lib/layouts/views/view-layout/view-layout.component.js +0 -110
  92. package/esm2015/lib/pages/http-status/error/error.component.js +0 -20
  93. package/esm2015/lib/pages/http-status/page-not-found/page-not-found.component.js +0 -18
  94. package/esm2015/lib/pages/http-status/unauthorized/unauthorized.component.js +0 -17
  95. package/esm2015/lib/pipes/obs-with-status.pipe.js +0 -26
  96. package/esm2015/lib/services/component-loader/component-loader-options.class.js +0 -8
  97. package/esm2015/lib/services/component-loader/component-loader.class.js +0 -192
  98. package/esm2015/lib/services/modal-service/modal-container-component.js +0 -128
  99. package/esm2015/lib/services/modal-service/modal-options.class.js +0 -35
  100. package/esm2015/lib/services/modal-service/modal-service.js +0 -220
  101. package/esm2015/lib/services/modal-service/modal.class.js +0 -27
  102. package/esm2015/lib/services/notifications.service.js +0 -37
  103. package/esm2015/lib/tokens.js +0 -4
  104. package/esm2015/lib/types.js +0 -114
  105. package/esm2015/public-api.js +0 -53
  106. package/fesm2015/indice-ng-components.js +0 -3281
  107. package/fesm2015/indice-ng-components.js.map +0 -1
  108. package/lib/pipes/obs-with-status.pipe.d.ts +0 -13
  109. package/lib/services/notifications.service.d.ts +0 -14
@@ -0,0 +1,3225 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, PLATFORM_ID, Directive, Inject, Input, Output, Component, TemplateRef, ContentChild, ContentChildren, forwardRef, ViewChild, Injectable, InjectionToken, Injector, ElementRef, ViewChildren, Pipe, ViewEncapsulation, HostListener, Optional, 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 { NavigationStart, Router, 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, share, map, debounceTime, distinctUntilChanged } from 'rxjs/operators';
10
+ import * as i2 from '@indice/ng-auth';
11
+ import { AuthService, IndiceAuthModule } from '@indice/ng-auth';
12
+
13
+ //
14
+ // tslint:disable-next-line:directive-selector
15
+ class ClickOutsideDirective {
16
+ constructor(
17
+ // tslint:disable-next-line:variable-name
18
+ _el,
19
+ // tslint:disable-next-line:variable-name
20
+ _ngZone, platformId) {
21
+ this._el = _el;
22
+ this._ngZone = _ngZone;
23
+ this.platformId = platformId;
24
+ this.clickOutsideEnabled = true;
25
+ this.attachOutsideOnClick = false;
26
+ this.delayClickOutsideInit = false;
27
+ this.emitOnBlur = false;
28
+ this.exclude = '';
29
+ this.excludeBeforeClick = false;
30
+ this.clickOutsideEvents = '';
31
+ this.clickOutside = new EventEmitter();
32
+ // tslint:disable-next-line:variable-name
33
+ this._nodesExcluded = [];
34
+ // tslint:disable-next-line:variable-name
35
+ this._events = ['click'];
36
+ this._initOnClickBody = this._initOnClickBody.bind(this);
37
+ this._onClickBody = this._onClickBody.bind(this);
38
+ this._onWindowBlur = this._onWindowBlur.bind(this);
39
+ }
40
+ ngOnInit() {
41
+ if (!isPlatformBrowser(this.platformId)) {
42
+ return;
43
+ }
44
+ this._init();
45
+ }
46
+ ngOnDestroy() {
47
+ if (!isPlatformBrowser(this.platformId)) {
48
+ return;
49
+ }
50
+ this._removeClickOutsideListener();
51
+ this._removeAttachOutsideOnClickListener();
52
+ this._removeWindowBlurListener();
53
+ }
54
+ ngOnChanges(changes) {
55
+ if (!isPlatformBrowser(this.platformId)) {
56
+ return;
57
+ }
58
+ // tslint:disable-next-line:no-string-literal
59
+ if (changes['attachOutsideOnClick'] || changes['exclude'] || changes['emitOnBlur']) {
60
+ this._init();
61
+ }
62
+ }
63
+ _init() {
64
+ if (this.clickOutsideEvents !== '') {
65
+ this._events = this.clickOutsideEvents.split(',').map(e => e.trim());
66
+ }
67
+ this._excludeCheck();
68
+ if (this.attachOutsideOnClick) {
69
+ this._initAttachOutsideOnClickListener();
70
+ }
71
+ else {
72
+ this._initOnClickBody();
73
+ }
74
+ if (this.emitOnBlur) {
75
+ this._initWindowBlurListener();
76
+ }
77
+ }
78
+ _initOnClickBody() {
79
+ if (this.delayClickOutsideInit) {
80
+ setTimeout(this._initClickOutsideListener.bind(this));
81
+ }
82
+ else {
83
+ this._initClickOutsideListener();
84
+ }
85
+ }
86
+ _excludeCheck() {
87
+ if (this.exclude) {
88
+ try {
89
+ const nodes = Array.from(document.querySelectorAll(this.exclude));
90
+ if (nodes) {
91
+ this._nodesExcluded = nodes;
92
+ }
93
+ }
94
+ catch (err) {
95
+ console.error('[ng-click-outside] Check your exclude selector syntax.', err);
96
+ }
97
+ }
98
+ }
99
+ _onClickBody(ev) {
100
+ if (!this.clickOutsideEnabled) {
101
+ return;
102
+ }
103
+ if (this.excludeBeforeClick) {
104
+ this._excludeCheck();
105
+ }
106
+ if (!this._el.nativeElement.contains(ev.target) && !this._shouldExclude(ev.target)) {
107
+ this._emit(ev);
108
+ if (this.attachOutsideOnClick) {
109
+ this._removeClickOutsideListener();
110
+ }
111
+ }
112
+ }
113
+ /**
114
+ * Resolves problem with outside click on iframe
115
+ * @see https://github.com/arkon/ng-click-outside/issues/32
116
+ */
117
+ _onWindowBlur(ev) {
118
+ setTimeout(() => {
119
+ if (!document.hidden) {
120
+ this._emit(ev);
121
+ }
122
+ });
123
+ }
124
+ _emit(ev) {
125
+ if (!this.clickOutsideEnabled) {
126
+ return;
127
+ }
128
+ this._ngZone.run(() => this.clickOutside.emit(ev));
129
+ }
130
+ _shouldExclude(target) {
131
+ // tslint:disable-next-line:prefer-const
132
+ for (let excludedNode of this._nodesExcluded) {
133
+ if (excludedNode.contains(target)) {
134
+ return true;
135
+ }
136
+ }
137
+ return false;
138
+ }
139
+ _initClickOutsideListener() {
140
+ this._ngZone.runOutsideAngular(() => {
141
+ this._events.forEach(e => document.addEventListener(e, this._onClickBody));
142
+ });
143
+ }
144
+ _removeClickOutsideListener() {
145
+ this._ngZone.runOutsideAngular(() => {
146
+ this._events.forEach(e => document.removeEventListener(e, this._onClickBody));
147
+ });
148
+ }
149
+ _initAttachOutsideOnClickListener() {
150
+ this._ngZone.runOutsideAngular(() => {
151
+ this._events.forEach(e => this._el.nativeElement.addEventListener(e, this._initOnClickBody));
152
+ });
153
+ }
154
+ _removeAttachOutsideOnClickListener() {
155
+ this._ngZone.runOutsideAngular(() => {
156
+ this._events.forEach(e => this._el.nativeElement.removeEventListener(e, this._initOnClickBody));
157
+ });
158
+ }
159
+ _initWindowBlurListener() {
160
+ this._ngZone.runOutsideAngular(() => {
161
+ window.addEventListener('blur', this._onWindowBlur);
162
+ });
163
+ }
164
+ _removeWindowBlurListener() {
165
+ this._ngZone.runOutsideAngular(() => {
166
+ window.removeEventListener('blur', this._onWindowBlur);
167
+ });
168
+ }
169
+ }
170
+ ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive });
171
+ ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.9", 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 });
172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ClickOutsideDirective, decorators: [{
173
+ type: Directive,
174
+ args: [{ selector: '[clickOutside]' }]
175
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
176
+ type: Inject,
177
+ args: [PLATFORM_ID]
178
+ }] }]; }, propDecorators: { clickOutsideEnabled: [{
179
+ type: Input
180
+ }], attachOutsideOnClick: [{
181
+ type: Input
182
+ }], delayClickOutsideInit: [{
183
+ type: Input
184
+ }], emitOnBlur: [{
185
+ type: Input
186
+ }], exclude: [{
187
+ type: Input
188
+ }], excludeBeforeClick: [{
189
+ type: Input
190
+ }], clickOutsideEvents: [{
191
+ type: Input
192
+ }], clickOutside: [{
193
+ type: Output
194
+ }] } });
195
+
196
+ class DropDownMenuComponent {
197
+ constructor() {
198
+ this.options = [];
199
+ // tslint:disable-next-line:no-input-rename
200
+ this.selectedValue = null;
201
+ this.multiple = false;
202
+ this.placeholder = 'Παρακαλώ επιλέξτε...';
203
+ this.selectedOption$ = null;
204
+ this.selectedChange = new EventEmitter();
205
+ this.selectedChanged = new EventEmitter();
206
+ this.expanded$ = false;
207
+ }
208
+ get selectedOption() {
209
+ return this.selectedOption$;
210
+ }
211
+ set selectedOption(option) {
212
+ this.selectedOption$ = option;
213
+ this.selectedValue = option ? option.value : null;
214
+ this.expanded = false;
215
+ }
216
+ get expanded() {
217
+ return this.expanded$;
218
+ }
219
+ set expanded(value) {
220
+ this.expanded$ = value;
221
+ }
222
+ ngOnChanges(changes) {
223
+ if (this.options && this.options.length > 0 && this.selectedValue !== null && this.selectedValue !== undefined) {
224
+ this.selectedOption$ = this.options.filter((o) => o.value === this.selectedValue)[0];
225
+ }
226
+ }
227
+ ngOnInit() { }
228
+ isSelected(option) {
229
+ return option != null && this.selectedValue != null && option.value === this.selectedValue;
230
+ }
231
+ onClickOutside($event) {
232
+ this.expanded = false;
233
+ }
234
+ selectOption(option) {
235
+ this.selectedOption = option;
236
+ this.selectedChange.emit(option.value);
237
+ this.selectedChanged.emit(option.value);
238
+ }
239
+ }
240
+ DropDownMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DropDownMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
241
+ DropDownMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", directives: [{ type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
242
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DropDownMenuComponent, decorators: [{
243
+ type: Component,
244
+ 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" }]
245
+ }], ctorParameters: function () { return []; }, propDecorators: { options: [{
246
+ type: Input
247
+ }], selectedValue: [{
248
+ type: Input,
249
+ args: ['selected']
250
+ }], multiple: [{
251
+ type: Input
252
+ }], placeholder: [{
253
+ type: Input
254
+ }], selectedChange: [{
255
+ type: Output
256
+ }], selectedChanged: [{
257
+ type: Output
258
+ }] } });
259
+
260
+ class Icons {
261
+ }
262
+ // https://uifabricicons.azurewebsites.net/
263
+ Icons.Dashboard = `ms-Icon ms-Icon--HomeGroup `;
264
+ Icons.Locations = `ms-Icon ms-Icon--MapPin `;
265
+ Icons.ChargePoints = `ms-Icon ms-Icon--ChatBot `;
266
+ Icons.Transations = `ms-Icon ms-Icon--PaymentCard `;
267
+ Icons.Badges = `ms-Icon ms-Icon--IDBadge `;
268
+ Icons.Information = `ms-Icon ms-Icon--Info`;
269
+ Icons.Refresh = `ms-Icon ms-Icon--Refresh`;
270
+ Icons.Search = `ms-Icon ms-Icon--Search`;
271
+ Icons.Add = `ms-Icon ms-Icon--Add`;
272
+ Icons.Delete = `ms-Icon ms-Icon--Delete`;
273
+ Icons.SendEmail = `ms-Icon ms-Icon--NewMail`;
274
+ Icons.Filter = `ms-Icon ms-Icon--Filter`;
275
+ Icons.Export = `ms-Icon ms-Icon--ExcelDocument`;
276
+ Icons.Import = `ms-Icon ms-Icon--PeopleAdd`;
277
+ Icons.TilesView = `ms-Icon ms-Icon--AppIconDefault`;
278
+ Icons.TableView = `ms-Icon ms-Icon--Table`;
279
+ Icons.MapView = `ms-Icon ms-Icon--MapPin`;
280
+ Icons.EntryView = `ms-Icon ms-Icon--EntryView`;
281
+ Icons.Separator = `ms-Icon ms-Icon--Separator text-white`;
282
+ Icons.ItemsCount = 'ms-Icon ms-Icon--Boards';
283
+ Icons.Heart = 'ms-Icon ms-Icon--Heart';
284
+ Icons.HeartBroken = 'ms-Icon ms-Icon--HeartBroken';
285
+ Icons.DateTime = 'ms-Icon ms-Icon--ReminderTime';
286
+ Icons.Expand = 'ms-Icon ms-Icon--ChevronDown';
287
+ Icons.Collapse = 'ms-Icon ms-Icon--ChevronUp';
288
+ Icons.SortAsc = 'ms-Icon ms-Icon--Ascending';
289
+ Icons.SortDesc = 'ms-Icon ms-Icon--Descending';
290
+ Icons.Details = ' ms-Icon ms-Icon--AccountActivity';
291
+
292
+ class NavLink {
293
+ constructor(text, path, exact = false, external = false, icon, data) {
294
+ this.type = 'router';
295
+ this.text = text;
296
+ this.path = path;
297
+ this.exact = exact;
298
+ this.external = external;
299
+ this.icon = icon;
300
+ this.data = data;
301
+ }
302
+ }
303
+ class ExternalNavLink extends NavLink {
304
+ constructor(text, path, openInNewTab, icon) {
305
+ super(text, path, true, openInNewTab, icon);
306
+ this.type = 'external';
307
+ }
308
+ }
309
+ class FragmentNavLink extends NavLink {
310
+ constructor(text, path, icon) {
311
+ super(text, path, true, true, icon);
312
+ this.type = 'fragment';
313
+ }
314
+ }
315
+ class NotificationNavLink extends NavLink {
316
+ constructor(text, path, isRead, creationDate) {
317
+ super(text, path, true, false, undefined);
318
+ this.isRead = isRead;
319
+ this.creationDate = creationDate;
320
+ }
321
+ }
322
+ class ViewAction {
323
+ constructor(type, key, param, icon, tooltip) {
324
+ this.type = type;
325
+ this.key = key;
326
+ this.param = param;
327
+ this.icon = icon;
328
+ this.tooltip = tooltip;
329
+ }
330
+ }
331
+ class ListViewType {
332
+ }
333
+ ListViewType.Tiles = 'tiles';
334
+ ListViewType.Table = 'table';
335
+ ListViewType.Map = 'map';
336
+ ListViewType.Gallery = 'gallery';
337
+ class RouterViewAction extends ViewAction {
338
+ constructor(icon, link, outlet, tooltip) {
339
+ super('router-link', null, null, icon, tooltip);
340
+ this.outlet = null;
341
+ this.link = null;
342
+ this.outlet = outlet;
343
+ this.link = link;
344
+ }
345
+ }
346
+ class SwitchViewAction extends ViewAction {
347
+ constructor(view, icon, tooltip) {
348
+ super('switch-view', null, view, icon, tooltip);
349
+ }
350
+ }
351
+ class HeaderMetaItem {
352
+ constructor() {
353
+ this.key = null;
354
+ this.icon = null;
355
+ this.text = null;
356
+ }
357
+ }
358
+ class MenuOption {
359
+ constructor(text, value, description, data, icon) {
360
+ this.text = text;
361
+ this.value = value;
362
+ this.description = description;
363
+ this.data = data;
364
+ this.icon = icon;
365
+ }
366
+ }
367
+ class DefaultShellConfig {
368
+ constructor() {
369
+ this.appLogo = 'https://tailwindui.com/img/logos/workflow-mark.svg?color=white';
370
+ this.appLogoAlt = 'your app name here';
371
+ this.showHeader = true;
372
+ this.showUserNameOnHeader = false;
373
+ this.showAlertsOnHeader = false;
374
+ this.showFooter = true;
375
+ this.fluid = false;
376
+ }
377
+ }
378
+ var SCREEN_SIZE;
379
+ (function (SCREEN_SIZE) {
380
+ SCREEN_SIZE[SCREEN_SIZE["XS"] = 0] = "XS";
381
+ SCREEN_SIZE[SCREEN_SIZE["SM"] = 1] = "SM";
382
+ SCREEN_SIZE[SCREEN_SIZE["MD"] = 2] = "MD";
383
+ SCREEN_SIZE[SCREEN_SIZE["LG"] = 3] = "LG";
384
+ SCREEN_SIZE[SCREEN_SIZE["XL"] = 4] = "XL";
385
+ })(SCREEN_SIZE || (SCREEN_SIZE = {}));
386
+ var ToastType;
387
+ (function (ToastType) {
388
+ ToastType["Info"] = "info";
389
+ ToastType["Success"] = "success";
390
+ ToastType["Error"] = "error";
391
+ ToastType["Warning"] = "warning";
392
+ })(ToastType || (ToastType = {}));
393
+ const NULL_TOAST = { title: '_____NULL_____' };
394
+ var SidePaneSize;
395
+ (function (SidePaneSize) {
396
+ SidePaneSize["Default"] = "";
397
+ SidePaneSize["Small25"] = "25%";
398
+ SidePaneSize["Medium50"] = "50%";
399
+ SidePaneSize["Large75"] = "75%";
400
+ })(SidePaneSize || (SidePaneSize = {}));
401
+ var SidePaneOverlayType;
402
+ (function (SidePaneOverlayType) {
403
+ SidePaneOverlayType["Default"] = "";
404
+ SidePaneOverlayType["None"] = "-opacity-0";
405
+ SidePaneOverlayType["Light"] = "";
406
+ SidePaneOverlayType["Dark"] = "-opacity-50";
407
+ })(SidePaneOverlayType || (SidePaneOverlayType = {}));
408
+
409
+ class PagerComponent {
410
+ constructor(router) {
411
+ this.router = router;
412
+ // BUSY STATE
413
+ this.busy = false;
414
+ // PAGING
415
+ this.count = null;
416
+ this.page = 1;
417
+ // tslint:disable-next-line:no-input-rename
418
+ this.pageSize = 20;
419
+ // tslint:disable-next-line:no-input-rename
420
+ this.pageSizeOptions = [
421
+ new MenuOption('10', 10),
422
+ new MenuOption('20', 20),
423
+ new MenuOption('30', 30),
424
+ new MenuOption('50', 50),
425
+ new MenuOption('100', 100)
426
+ ];
427
+ this.pages = [];
428
+ this.pageChanged = new EventEmitter();
429
+ this.pageSizeChanged = new EventEmitter();
430
+ this.canPreviousPage = false;
431
+ this.canNextPage = false;
432
+ // SORTING
433
+ // tslint:disable-next-line:no-input-rename
434
+ this.sortOptions = [];
435
+ // tslint:disable-next-line:no-input-rename
436
+ this.sort = null;
437
+ // tslint:disable-next-line:no-input-rename
438
+ this.sortdir = 'desc';
439
+ this.sortChanged = new EventEmitter();
440
+ this.sortdirChanged = new EventEmitter();
441
+ this.sortdirIcon = Icons.SortDesc;
442
+ }
443
+ ngOnChanges(changes) {
444
+ this.calcPages();
445
+ }
446
+ ngOnInit() {
447
+ }
448
+ calcPages() {
449
+ this.pages = [];
450
+ if (this.count && this.count > 0) {
451
+ const pageCount = this.count / this.pageSize;
452
+ for (let i = 0; i < pageCount; i++) {
453
+ this.pages.push(new MenuOption(i + 1 + '', i + 1));
454
+ }
455
+ }
456
+ this.canPreviousPage = this.page > 1;
457
+ this.canNextPage = this.page < this.pages.length;
458
+ }
459
+ nextPage() {
460
+ const next = this.page + 1;
461
+ this.gotoPage(next);
462
+ }
463
+ previousPage() {
464
+ const previous = this.page - 1;
465
+ this.gotoPage(previous);
466
+ }
467
+ gotoPage(page) {
468
+ this.page = page;
469
+ this.pageChanged.emit(page);
470
+ this.calcPages();
471
+ }
472
+ pageSizeOptionChanged(pageSize) {
473
+ this.pageSizeChanged.emit(pageSize);
474
+ this.calcPages();
475
+ }
476
+ pageOptionChanged(page) {
477
+ this.pageChanged.emit(page);
478
+ this.calcPages();
479
+ }
480
+ sortOptionChanged(sort) {
481
+ this.sortChanged.emit(sort);
482
+ }
483
+ toggleSortdir() {
484
+ let sortdir = 'desc';
485
+ if (this.sortdir === 'desc') {
486
+ sortdir = 'asc';
487
+ this.sortdirIcon = Icons.SortAsc;
488
+ }
489
+ else {
490
+ sortdir = 'desc';
491
+ this.sortdirIcon = Icons.SortDesc;
492
+ }
493
+ this.sortdirChanged.emit(sortdir);
494
+ }
495
+ }
496
+ PagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PagerComponent, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
497
+ PagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", components: [{ type: DropDownMenuComponent, selector: "lib-drop-down-menu", inputs: ["options", "selected", "multiple", "placeholder"], outputs: ["selectedChange", "selectedChanged"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
498
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PagerComponent, decorators: [{
499
+ type: Component,
500
+ 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" }]
501
+ }], ctorParameters: function () { return [{ type: i1$1.Router }]; }, propDecorators: { busy: [{
502
+ type: Input
503
+ }], count: [{
504
+ type: Input
505
+ }], page: [{
506
+ type: Input
507
+ }], pageSize: [{
508
+ type: Input,
509
+ args: ['page-size']
510
+ }], pageSizeOptions: [{
511
+ type: Input,
512
+ args: ['page-size-options']
513
+ }], pageChanged: [{
514
+ type: Output
515
+ }], pageSizeChanged: [{
516
+ type: Output
517
+ }], sortOptions: [{
518
+ type: Input,
519
+ args: ['sort-options']
520
+ }], sort: [{
521
+ type: Input,
522
+ args: ['sort']
523
+ }], sortdir: [{
524
+ type: Input,
525
+ args: ['sort-dir']
526
+ }], sortChanged: [{
527
+ type: Output
528
+ }], sortdirChanged: [{
529
+ type: Output
530
+ }] } });
531
+
532
+ class ListTileComponent {
533
+ constructor() {
534
+ this.template = null;
535
+ }
536
+ }
537
+ ListTileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ListTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
538
+ ListTileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: ListTileComponent, selector: "lib-list-tile", queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
539
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ListTileComponent, decorators: [{
540
+ type: Component,
541
+ args: [{ selector: 'lib-list-tile', template: '<ng-content></ng-content>' }]
542
+ }], ctorParameters: function () { return []; }, propDecorators: { template: [{
543
+ type: ContentChild,
544
+ args: [TemplateRef]
545
+ }] } });
546
+
547
+ class ListColumnComponent {
548
+ constructor() {
549
+ this.title = null;
550
+ // tslint:disable-next-line:no-input-rename
551
+ this.fullWidth = false;
552
+ this.template = null;
553
+ }
554
+ }
555
+ ListColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ListColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
556
+ ListColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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 });
557
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ListColumnComponent, decorators: [{
558
+ type: Component,
559
+ args: [{ selector: 'lib-list-column', template: '<ng-content></ng-content>' }]
560
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
561
+ type: Input
562
+ }], fullWidth: [{
563
+ type: Input,
564
+ args: ['full-width']
565
+ }], template: [{
566
+ type: ContentChild,
567
+ args: [TemplateRef]
568
+ }] } });
569
+
570
+ class ListDetailsSectionComponent {
571
+ constructor() {
572
+ this.template = null;
573
+ }
574
+ }
575
+ ListDetailsSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ListDetailsSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
576
+ ListDetailsSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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 });
577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ListDetailsSectionComponent, decorators: [{
578
+ type: Component,
579
+ args: [{ selector: 'lib-list-details-section', template: '<ng-content></ng-content>' }]
580
+ }], ctorParameters: function () { return []; }, propDecorators: { template: [{
581
+ type: ContentChild,
582
+ args: [TemplateRef]
583
+ }] } });
584
+
585
+ class SkeletonLoaderComponent {
586
+ constructor() {
587
+ this.count = 5;
588
+ this.type = 'tiles'; // 'large-tile', 'table'
589
+ }
590
+ ngOnInit() {
591
+ }
592
+ counter(i) {
593
+ return new Array(i);
594
+ }
595
+ }
596
+ SkeletonLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SkeletonLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
597
+ SkeletonLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
598
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SkeletonLoaderComponent, decorators: [{
599
+ type: Component,
600
+ 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" }]
601
+ }], ctorParameters: function () { return []; }, propDecorators: { count: [{
602
+ type: Input
603
+ }], type: [{
604
+ type: Input
605
+ }] } });
606
+
607
+ class ListViewEmptyStateComponent {
608
+ constructor() {
609
+ this.title = 'Δεν βρέθηκαν εγγραφές.';
610
+ // tslint:disable-next-line:no-input-rename
611
+ this.subTitle = 'Παρακαλώ αλλάξτε τα κριτήρια αναζήτησης σας ή ξεκινήστε προσθέτοντας μια νέα εγγραφή';
612
+ // tslint:disable-next-line:no-input-rename
613
+ this.newItemLabel = 'Νέα εγγραφή';
614
+ }
615
+ ngOnInit() {
616
+ }
617
+ }
618
+ ListViewEmptyStateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ListViewEmptyStateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
619
+ ListViewEmptyStateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
620
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ListViewEmptyStateComponent, decorators: [{
621
+ type: Component,
622
+ 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" }]
623
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
624
+ type: Input
625
+ }], subTitle: [{
626
+ type: Input,
627
+ args: ['sub-title']
628
+ }], newItemLabel: [{
629
+ type: Input,
630
+ args: ['new-item-label']
631
+ }] } });
632
+
633
+ class ListViewComponent {
634
+ constructor() {
635
+ // BUSY STATE
636
+ this.busy = false;
637
+ this.expandIcon = Icons.Expand;
638
+ this.collapseIcon = Icons.Collapse;
639
+ // tslint:disable-next-line:no-input-rename
640
+ this.showPager = true;
641
+ // PAGING - pass through for pager component
642
+ this.count = null;
643
+ this.page = 1;
644
+ // tslint:disable-next-line:no-input-rename
645
+ this.pageSize = 20;
646
+ // tslint:disable-next-line:no-input-rename
647
+ this.pageSizeOptions = [];
648
+ this.pageChanged = new EventEmitter();
649
+ this.pageSizeChanged = new EventEmitter();
650
+ this.detailsOpened = new EventEmitter();
651
+ this.tableViewSupported = false;
652
+ this.multipleFullWidth = false;
653
+ this.fullWidthTHClass = 'list-view-th-full';
654
+ this.fullWidthTDClass = 'list-view-td-full';
655
+ this.tilesViewSupported = false;
656
+ this.detailsSectionSupported = false;
657
+ this.loaderItems = [];
658
+ // DETAILS SECTION
659
+ // Check if details section and button should be displayed according to the count of the value given
660
+ // tslint:disable-next-line:no-input-rename
661
+ this.detailsSectionPropertyCount = null;
662
+ // SORTING - pass through for pager component
663
+ // tslint:disable-next-line:no-input-rename
664
+ this.sortOptions = [];
665
+ this.sort = null;
666
+ // tslint:disable-next-line:no-input-rename
667
+ this.sortdir = '-';
668
+ this.sortChanged = new EventEmitter();
669
+ this.sortdirChanged = new EventEmitter();
670
+ this.view = ListViewType.Table;
671
+ // COLUMNS
672
+ this.columns = [];
673
+ this.tilesDeckClass = 'cards-deck-4';
674
+ // tslint:disable-next-line:no-input-rename
675
+ this.tilesCount = 4;
676
+ this.tileTemplate = null;
677
+ this.detailsTemplate = null;
678
+ for (let i = 0; i < 5; i++) {
679
+ this.loaderItems.push({});
680
+ }
681
+ }
682
+ set cols(refs) {
683
+ this.columns = refs?.toArray();
684
+ if (this.columns && this.columns.length > 0) {
685
+ this.tableViewSupported = true;
686
+ }
687
+ this.multipleFullWidth = this.columns.filter(c => c.fullWidth).length > 1;
688
+ this.fullWidthTHClass = this.multipleFullWidth ? 'list-view-th-half' : 'list-view-th-full';
689
+ this.fullWidthTDClass = this.multipleFullWidth ? 'list-view-td-half' : 'list-view-td-full';
690
+ }
691
+ set tiles(ref) {
692
+ this.tileTemplate = ref;
693
+ if (this.tileTemplate) {
694
+ this.tilesViewSupported = true;
695
+ }
696
+ }
697
+ set details(ref) {
698
+ this.detailsTemplate = ref;
699
+ if (this.detailsTemplate) {
700
+ this.detailsSectionSupported = true;
701
+ }
702
+ }
703
+ ngOnChanges(changes) {
704
+ const tilesCountChange = changes['tiles-count'] || changes.tilesCount;
705
+ if (tilesCountChange) {
706
+ this.setTilesDeckClass(tilesCountChange.currentValue);
707
+ }
708
+ }
709
+ // events
710
+ emitPageChanged($event) {
711
+ this.pageChanged.emit($event);
712
+ }
713
+ emitPageSizeChanged($event) {
714
+ this.pageSizeChanged.emit($event);
715
+ }
716
+ emitSortChanged($event) {
717
+ this.sortChanged.emit($event);
718
+ }
719
+ emitSortdirChanged($event) {
720
+ this.sortdirChanged.emit($event);
721
+ }
722
+ toggleDetails(item) {
723
+ item.detailsExpanded = !item.detailsExpanded;
724
+ this.detailsOpened.emit({ item, open: item.detailsExpanded });
725
+ }
726
+ // helpers
727
+ setTilesDeckClass(tiles) {
728
+ if (tiles >= 1 && tiles <= 4) {
729
+ this.tilesDeckClass =
730
+ this.view !== ListViewType.Gallery
731
+ ? `cards-deck-${tiles}`
732
+ : this.items && this.items.length > 0
733
+ ? `gallery-deck-${tiles}`
734
+ : 'gallery-deck';
735
+ }
736
+ else {
737
+ this.tilesDeckClass =
738
+ this.view !== ListViewType.Gallery
739
+ ? 'cards-deck-3'
740
+ : this.items && this.items.length > 0
741
+ ? 'gallery-deck-3'
742
+ : 'gallery-deck';
743
+ }
744
+ }
745
+ }
746
+ ListViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ListViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
747
+ ListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", components: [{ type: PagerComponent, selector: "lib-pager", inputs: ["busy", "count", "page", "page-size", "page-size-options", "sort-options", "sort", "sort-dir"], outputs: ["pageChanged", "pageSizeChanged", "sortChanged", "sortdirChanged"] }, { type: SkeletonLoaderComponent, selector: "lib-skeleton-loader", inputs: ["count", "type"] }, { type: ListViewEmptyStateComponent, selector: "lib-list-view-empty-state", inputs: ["title", "sub-title", "new-item-label"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
748
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ListViewComponent, decorators: [{
749
+ type: Component,
750
+ 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" }]
751
+ }], ctorParameters: function () { return []; }, propDecorators: { busy: [{
752
+ type: Input
753
+ }], items: [{
754
+ type: Input
755
+ }], showPager: [{
756
+ type: Input,
757
+ args: ['show-pager']
758
+ }], count: [{
759
+ type: Input
760
+ }], page: [{
761
+ type: Input
762
+ }], pageSize: [{
763
+ type: Input,
764
+ args: ['page-size']
765
+ }], pageSizeOptions: [{
766
+ type: Input,
767
+ args: ['page-size-options']
768
+ }], pageChanged: [{
769
+ type: Output
770
+ }], pageSizeChanged: [{
771
+ type: Output
772
+ }], detailsOpened: [{
773
+ type: Output
774
+ }], detailsSectionPropertyCount: [{
775
+ type: Input,
776
+ args: ['details-section-property-count']
777
+ }], sortOptions: [{
778
+ type: Input,
779
+ args: ['sort-options']
780
+ }], sort: [{
781
+ type: Input
782
+ }], sortdir: [{
783
+ type: Input,
784
+ args: ['sort-dir']
785
+ }], sortChanged: [{
786
+ type: Output
787
+ }], sortdirChanged: [{
788
+ type: Output
789
+ }], view: [{
790
+ type: Input
791
+ }], cols: [{
792
+ type: ContentChildren,
793
+ args: [ListColumnComponent, { read: ListColumnComponent }]
794
+ }], tilesCount: [{
795
+ type: Input,
796
+ args: ['tiles-count']
797
+ }], tiles: [{
798
+ type: ContentChild,
799
+ args: [ListTileComponent, { read: ListTileComponent }]
800
+ }], details: [{
801
+ type: ContentChild,
802
+ args: [ListDetailsSectionComponent, { read: ListDetailsSectionComponent }]
803
+ }] } });
804
+
805
+ class CollapsiblePanelComponent {
806
+ constructor() {
807
+ this.title = null;
808
+ this.visible = false;
809
+ }
810
+ ngOnInit() {
811
+ }
812
+ }
813
+ CollapsiblePanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: CollapsiblePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
814
+ CollapsiblePanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
815
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: CollapsiblePanelComponent, decorators: [{
816
+ type: Component,
817
+ 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" }]
818
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
819
+ type: Input
820
+ }] } });
821
+
822
+ class KpiTileComponent {
823
+ constructor() {
824
+ this.title = undefined;
825
+ this.busy = false;
826
+ this.kpi = undefined;
827
+ // tslint:disable-next-line:no-output-rename
828
+ this.tileAction = new EventEmitter();
829
+ }
830
+ ngOnInit() {
831
+ }
832
+ emitTileAction($event) {
833
+ $event.preventDefault();
834
+ $event.stopPropagation();
835
+ this.tileAction.emit($event);
836
+ return false;
837
+ }
838
+ }
839
+ KpiTileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: KpiTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
840
+ KpiTileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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>", directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
841
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: KpiTileComponent, decorators: [{
842
+ type: Component,
843
+ 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>" }]
844
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
845
+ type: Input
846
+ }], busy: [{
847
+ type: Input
848
+ }], kpi: [{
849
+ type: Input
850
+ }], tileAction: [{
851
+ type: Output,
852
+ args: ['tile-action']
853
+ }] } });
854
+
855
+ // freaksly simple date picker : https://tailwind-elements.com/docs/standard/forms/datepicker/
856
+ class DatepickerComponent {
857
+ constructor() {
858
+ this.readonly = false;
859
+ this.disabled = false;
860
+ this.displayFormat = 'dd/MM/yyyy';
861
+ this.placeholder = '';
862
+ this.value = null;
863
+ this.valueChange = new EventEmitter();
864
+ this.showCalendar = false;
865
+ this.showYears = false;
866
+ this.monthNames = [
867
+ 'Ιανουάριος',
868
+ 'Φεβρουάριος',
869
+ 'Μάρτιος',
870
+ 'Απρίλιος',
871
+ 'Μάϊος',
872
+ 'Ιούνιος',
873
+ 'Ιούλιος',
874
+ 'Αύγουστος',
875
+ 'Σεπτέμβριος',
876
+ 'Οκτώβριος',
877
+ 'Νοεμβριος',
878
+ 'Δεκέμβριος',
879
+ ];
880
+ this.dayNames = ['Κυρ', 'Δευ', 'Τρι', 'Τετ', 'Πεμ', 'Παρ', 'Σαβ'];
881
+ this.month = -1;
882
+ this.year = -1;
883
+ this.calendarDates = [];
884
+ this.calendarYears = [];
885
+ this.showCalendarYears = [];
886
+ this.blankDays = [];
887
+ this.calendarYearPage = 1;
888
+ this.yearsPerPage = 30;
889
+ this.onChange$ = undefined;
890
+ this.onTouched$ = undefined;
891
+ }
892
+ ngOnInit() {
893
+ let today = new Date();
894
+ this.month = today.getMonth();
895
+ this.year = today.getFullYear();
896
+ this.calendarDates = [{ day: this.value, today: this.value, selected: this.value }];
897
+ this.calendarYears = [{ year: this.value?.getFullYear(), today: this.value, selected: this.value }];
898
+ const yearsArray = [];
899
+ for (let i = 1950; i <= today.getFullYear() + 2; i++) {
900
+ yearsArray.push({ year: i, today: this.compareDates(today, null, i), selected: i == this.value?.getFullYear() });
901
+ }
902
+ this.calendarYears = yearsArray;
903
+ this.showCalendarYears = this.paginate(this.calendarYears, 1);
904
+ this.calcDays();
905
+ }
906
+ writeValue(obj) {
907
+ if (obj) {
908
+ this.value = new Date(obj);
909
+ this.month = this.value.getMonth();
910
+ this.year = this.value.getFullYear();
911
+ }
912
+ }
913
+ registerOnChange(fn) {
914
+ this.onChange$ = fn;
915
+ }
916
+ registerOnTouched(fn) {
917
+ this.onTouched$ = fn;
918
+ }
919
+ onBlur(event) {
920
+ if (this.onTouched$) {
921
+ this.onTouched$();
922
+ }
923
+ this.getDateFromInput();
924
+ }
925
+ selectDateValue(date) {
926
+ // This should be in UTC
927
+ let selectedDate = new Date(this.year, this.month, date.day, 3, 0, 0, 0);
928
+ this.value = selectedDate;
929
+ this.valueChange.emit(this.value);
930
+ if (this.onChange$) {
931
+ this.onChange$(this.value);
932
+ }
933
+ this.updateDays();
934
+ if (this.onTouched$) {
935
+ this.onTouched$();
936
+ }
937
+ this.showCalendar = false;
938
+ }
939
+ selectYearValue(year) {
940
+ // This should be in UTC
941
+ let selectedDate = new Date(year.year, this.month ?? 1, this.calendarDates?.find(x => x.selected == true).day ?? 1, 3, 0, 0, 0);
942
+ this.year = year.year;
943
+ this.value = selectedDate;
944
+ this.valueChange.emit(this.value);
945
+ if (this.onChange$) {
946
+ this.onChange$(this.value);
947
+ }
948
+ this.updateDays();
949
+ if (this.onTouched$) {
950
+ this.onTouched$();
951
+ }
952
+ this.showYears = false;
953
+ this.showCalendar = true;
954
+ this.calcDays();
955
+ }
956
+ previousMonth() {
957
+ if (this.month !== 0) {
958
+ this.month = this.month - 1;
959
+ this.calcDays();
960
+ }
961
+ else {
962
+ this.month = 11;
963
+ this.year = this.year - 1;
964
+ this.calcDays();
965
+ }
966
+ if (this.onTouched$) {
967
+ this.onTouched$();
968
+ }
969
+ }
970
+ nextMonth() {
971
+ if (this.month !== 11) {
972
+ this.month = this.month + 1;
973
+ this.calcDays();
974
+ }
975
+ else {
976
+ this.month = 0;
977
+ this.year = this.year + 1;
978
+ this.calcDays();
979
+ }
980
+ if (this.onTouched$) {
981
+ this.onTouched$();
982
+ }
983
+ }
984
+ previousYear() {
985
+ this.showCalendarYears = this.paginate(this.calendarYears, this.calendarYearPage > 1 ? --this.calendarYearPage : 1);
986
+ this.calcDays();
987
+ if (this.onTouched$) {
988
+ this.onTouched$();
989
+ }
990
+ }
991
+ nextYear() {
992
+ this.showCalendarYears = this.paginate(this.calendarYears, this.calendarYearPage <= this.calendarYears.length / this.yearsPerPage
993
+ ? ++this.calendarYearPage
994
+ : this.calendarYearPage);
995
+ this.calcDays();
996
+ if (this.onTouched$) {
997
+ this.onTouched$();
998
+ }
999
+ }
1000
+ compareDates(date1, day, year) {
1001
+ if (!date1) {
1002
+ return false;
1003
+ }
1004
+ const d = new Date(year ?? this.year, this.month, day ?? this.value?.getDay());
1005
+ return date1.toDateString() === d.toDateString();
1006
+ }
1007
+ ;
1008
+ calcDays() {
1009
+ const daysInMonth = new Date(this.year, this.month + 1, 0).getDate();
1010
+ // find where to start calendar day of week
1011
+ const dayOfWeek = new Date(this.year, this.month).getDay();
1012
+ const blankdaysArray = new Array();
1013
+ for (var i = 1; i <= dayOfWeek; i++) {
1014
+ // check if month is February
1015
+ blankdaysArray.push(this.month != 2 ? (32 - i) : (29 - i));
1016
+ blankdaysArray.reverse().sort();
1017
+ }
1018
+ const daysArray = [];
1019
+ const today = new Date();
1020
+ for (var i = 1; i <= daysInMonth; i++) {
1021
+ daysArray.push({ day: i, today: this.compareDates(today, i, null), selected: this.compareDates(this.value ?? today, i, null) });
1022
+ }
1023
+ const yearsArray = [];
1024
+ for (let i = 1950; i <= today.getFullYear() + 2; i++) {
1025
+ yearsArray.push({ year: i, today: this.compareDates(today, null, i), selected: i == this.year });
1026
+ }
1027
+ this.calendarYears = yearsArray;
1028
+ this.blankDays = blankdaysArray;
1029
+ this.calendarDates = daysArray;
1030
+ }
1031
+ updateDays() {
1032
+ const today = new Date();
1033
+ this.calendarDates.forEach(d => {
1034
+ d.today = this.compareDates(today, d, this.year);
1035
+ d.selected = this.compareDates(this.value, d, this.year);
1036
+ });
1037
+ }
1038
+ paginate(array, page_number) {
1039
+ return array.slice((page_number - 1) * this.yearsPerPage, page_number * this.yearsPerPage);
1040
+ }
1041
+ getDateFromInput() {
1042
+ if (this.dateInput?.nativeElement.value !== '') {
1043
+ var dateParts = this.dateInput?.nativeElement.value.split("/");
1044
+ let dateInGrFormat = new Date(+dateParts[2], dateParts[1] - 1, +dateParts[0], 3, 0, 0);
1045
+ if (dateInGrFormat.toString() !== 'Invalid Date') {
1046
+ this.writeValue(dateInGrFormat);
1047
+ this.calcDays();
1048
+ this.valueChange.emit(dateInGrFormat);
1049
+ }
1050
+ if (this.onChange$) {
1051
+ this.onChange$(this.value);
1052
+ }
1053
+ this.updateDays();
1054
+ if (this.onTouched$) {
1055
+ this.onTouched$();
1056
+ }
1057
+ }
1058
+ this.showCalendar = false;
1059
+ }
1060
+ openYears() {
1061
+ this.showYears = !this.showYears;
1062
+ this.calendarYearPage = Math.ceil(this.calendarYears.map(x => x.year).indexOf(this.year) / this.yearsPerPage);
1063
+ this.showCalendarYears = this.paginate(this.calendarYears, this.calendarYearPage !== 0 ? this.calendarYearPage : 1);
1064
+ this.calcDays();
1065
+ }
1066
+ openCalendar() {
1067
+ this.showCalendar = !this.showCalendar;
1068
+ this.calcDays();
1069
+ }
1070
+ closeCalendar() {
1071
+ this.showCalendar = false;
1072
+ this.getDateFromInput();
1073
+ }
1074
+ }
1075
+ DatepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1076
+ DatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: DatepickerComponent, selector: "lib-date-picker", inputs: { readonly: "readonly", disabled: "disabled", displayFormat: ["display-format", "displayFormat"], placeholder: "placeholder", value: "value" }, outputs: { valueChange: "valueChange" }, providers: [
1077
+ {
1078
+ provide: NG_VALUE_ACCESSOR,
1079
+ useExisting: forwardRef(() => DatepickerComponent),
1080
+ multi: true
1081
+ }
1082
+ ], 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>", directives: [{ type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "date": i1.DatePipe } });
1083
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DatepickerComponent, decorators: [{
1084
+ type: Component,
1085
+ args: [{ selector: 'lib-date-picker', providers: [
1086
+ {
1087
+ provide: NG_VALUE_ACCESSOR,
1088
+ useExisting: forwardRef(() => DatepickerComponent),
1089
+ multi: true
1090
+ }
1091
+ ], 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>" }]
1092
+ }], ctorParameters: function () { return []; }, propDecorators: { readonly: [{
1093
+ type: Input
1094
+ }], disabled: [{
1095
+ type: Input
1096
+ }], displayFormat: [{
1097
+ type: Input,
1098
+ args: ['display-format']
1099
+ }], placeholder: [{
1100
+ type: Input
1101
+ }], value: [{
1102
+ type: Input
1103
+ }], valueChange: [{
1104
+ type: Output
1105
+ }], dateInput: [{
1106
+ type: ViewChild,
1107
+ args: ['dateInput']
1108
+ }] } });
1109
+
1110
+ class ToasterService {
1111
+ constructor() {
1112
+ this.subject = new BehaviorSubject(NULL_TOAST);
1113
+ this.toast$ = this.subject.asObservable()
1114
+ .pipe(filter(toast => toast !== null && toast.title !== NULL_TOAST.title));
1115
+ }
1116
+ show(type, title, body, delay) {
1117
+ this.subject.next({ type, title, body, delay });
1118
+ }
1119
+ }
1120
+ ToasterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ToasterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1121
+ ToasterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ToasterService, providedIn: 'root' });
1122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ToasterService, decorators: [{
1123
+ type: Injectable,
1124
+ args: [{
1125
+ providedIn: 'root'
1126
+ }]
1127
+ }], ctorParameters: function () { return []; } });
1128
+
1129
+ class ToasterComponent {
1130
+ constructor() {
1131
+ this.i = 0;
1132
+ this.remove = new EventEmitter();
1133
+ this.isMobile = false;
1134
+ this.closed = false;
1135
+ }
1136
+ ngOnInit() {
1137
+ window.screen.width > 640 ? this.isMobile = false : this.isMobile = true;
1138
+ }
1139
+ closeToast(index) {
1140
+ this.closed = true;
1141
+ setTimeout(() => this.remove.emit(index), 100);
1142
+ }
1143
+ }
1144
+ ToasterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ToasterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1145
+ ToasterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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>", directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ToasterComponent, decorators: [{
1147
+ type: Component,
1148
+ 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>" }]
1149
+ }], ctorParameters: function () { return []; }, propDecorators: { toast: [{
1150
+ type: Input
1151
+ }], i: [{
1152
+ type: Input
1153
+ }], remove: [{
1154
+ type: Output
1155
+ }] } });
1156
+
1157
+ class ToasterContainerComponent {
1158
+ constructor(toaster) {
1159
+ this.toaster = toaster;
1160
+ this.toasts = [];
1161
+ }
1162
+ ngOnInit() {
1163
+ this.toaster.toast$
1164
+ .subscribe(toast => {
1165
+ this.toasts = [toast, ...this.toasts];
1166
+ setTimeout(() => this.toasts.pop(), toast.delay || 6000);
1167
+ });
1168
+ }
1169
+ remove(index) {
1170
+ this.toasts = this.toasts.slice(0, index).concat(this.toasts.slice(index + 1));
1171
+ }
1172
+ }
1173
+ ToasterContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ToasterContainerComponent, deps: [{ token: ToasterService }], target: i0.ɵɵFactoryTarget.Component });
1174
+ ToasterContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", components: [{ type: ToasterComponent, selector: "lib-toaster", inputs: ["toast", "i"], outputs: ["remove"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
1175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ToasterContainerComponent, decorators: [{
1176
+ type: Component,
1177
+ 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" }]
1178
+ }], ctorParameters: function () { return [{ type: ToasterService }]; } });
1179
+
1180
+ class AvatarInitialsComponent {
1181
+ constructor() {
1182
+ this.large = false;
1183
+ this.colors = [
1184
+ '#EB7181',
1185
+ '#468547',
1186
+ '#FFD558',
1187
+ '#3670B2', // blue
1188
+ ];
1189
+ }
1190
+ ngOnInit() {
1191
+ this.createInititals();
1192
+ const randomIndex = Math.floor(Math.random() * Math.floor(this.colors.length));
1193
+ // assign this to a class if you want to randomly change background colors of the circle.
1194
+ this.circleColor = this.colors[randomIndex];
1195
+ }
1196
+ createInititals() {
1197
+ if (this.name) {
1198
+ let initials = '';
1199
+ for (let i = 0; i < this.name.length; i++) {
1200
+ if (this.name.charAt(i) === ' ') {
1201
+ continue;
1202
+ }
1203
+ if (this.name.charAt(i) === this.name.charAt(i).toUpperCase()) {
1204
+ initials += this.name.charAt(i);
1205
+ if (initials.length === 2) {
1206
+ break;
1207
+ }
1208
+ }
1209
+ }
1210
+ this.initials = initials;
1211
+ }
1212
+ }
1213
+ }
1214
+ AvatarInitialsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AvatarInitialsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1215
+ AvatarInitialsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
1216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AvatarInitialsComponent, decorators: [{
1217
+ type: Component,
1218
+ 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" }]
1219
+ }], ctorParameters: function () { return []; }, propDecorators: { name: [{
1220
+ type: Input
1221
+ }], large: [{
1222
+ type: Input
1223
+ }] } });
1224
+
1225
+ class ToggleComponent {
1226
+ constructor() {
1227
+ this.valueChange = new EventEmitter();
1228
+ this.onChange$ = undefined;
1229
+ this.onTouched$ = undefined;
1230
+ }
1231
+ writeValue(obj) {
1232
+ if (obj) {
1233
+ this.value = obj || false;
1234
+ }
1235
+ }
1236
+ registerOnChange(fn) {
1237
+ this.onChange$ = fn;
1238
+ }
1239
+ registerOnTouched(fn) {
1240
+ this.onTouched$ = fn;
1241
+ }
1242
+ onBlur(event) {
1243
+ if (this.onTouched$) {
1244
+ this.onTouched$();
1245
+ }
1246
+ }
1247
+ ngOnInit() {
1248
+ }
1249
+ changeValue() {
1250
+ this.value = !this.value;
1251
+ this.valueChange.emit(this.value);
1252
+ if (this.onChange$) {
1253
+ this.onChange$(this.value);
1254
+ }
1255
+ if (this.onTouched$) {
1256
+ this.onTouched$();
1257
+ }
1258
+ }
1259
+ }
1260
+ ToggleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1261
+ ToggleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: ToggleComponent, selector: "lib-toggle", inputs: { value: "value", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, providers: [
1262
+ {
1263
+ provide: NG_VALUE_ACCESSOR,
1264
+ useExisting: forwardRef(() => ToggleComponent),
1265
+ multi: true
1266
+ }
1267
+ ], 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>", directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
1268
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ToggleComponent, decorators: [{
1269
+ type: Component,
1270
+ args: [{ selector: 'lib-toggle', providers: [
1271
+ {
1272
+ provide: NG_VALUE_ACCESSOR,
1273
+ useExisting: forwardRef(() => ToggleComponent),
1274
+ multi: true
1275
+ }
1276
+ ], 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>" }]
1277
+ }], ctorParameters: function () { return []; }, propDecorators: { value: [{
1278
+ type: Input
1279
+ }], disabled: [{
1280
+ type: Input
1281
+ }], valueChange: [{
1282
+ type: Output
1283
+ }] } });
1284
+
1285
+ class SidePaneComponent {
1286
+ constructor(router, document) {
1287
+ this.router = router;
1288
+ this.document = document;
1289
+ // tslint:disable-next-line:no-input-rename
1290
+ this.showPane = false;
1291
+ this.sizeContainerStyle = 'side-pane-box-size';
1292
+ this.overlayStyle = 'side-pane-overlay';
1293
+ this.onComplete = new EventEmitter();
1294
+ }
1295
+ ngOnDestroy() {
1296
+ }
1297
+ ngOnInit() {
1298
+ }
1299
+ onSidePaneActivated(component) {
1300
+ this.document.body.classList.add('modal-active');
1301
+ let sizeStyleSuffix = '';
1302
+ const state = this.router.getCurrentNavigation()?.extras.state;
1303
+ if (state) {
1304
+ if (state.paneSize) {
1305
+ if (state.paneSize === SidePaneSize.Small25) {
1306
+ sizeStyleSuffix = '-25';
1307
+ }
1308
+ else if (state.paneSize === SidePaneSize.Medium50) {
1309
+ sizeStyleSuffix = '-50';
1310
+ }
1311
+ else if (state.paneSize === SidePaneSize.Large75) {
1312
+ sizeStyleSuffix = '-75';
1313
+ }
1314
+ }
1315
+ if (state.paneOverlay) {
1316
+ if (state.paneOverlay === SidePaneOverlayType.None) {
1317
+ this.overlayStyle = 'side-pane-overlay-opacity-0';
1318
+ }
1319
+ else if (state.paneOverlay === SidePaneOverlayType.Dark) {
1320
+ this.overlayStyle = 'side-pane-overlay-opacity-50';
1321
+ }
1322
+ else {
1323
+ this.overlayStyle = 'side-pane-overlay';
1324
+ }
1325
+ }
1326
+ }
1327
+ this.sizeContainerStyle = `side-pane-box-size${sizeStyleSuffix}`;
1328
+ this.showPane = true;
1329
+ }
1330
+ onSidePaneDeactivated($event) {
1331
+ this.document.body.classList.remove('modal-active');
1332
+ this.showPane = false;
1333
+ this.onComplete.emit(true);
1334
+ }
1335
+ }
1336
+ SidePaneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SidePaneComponent, deps: [{ token: i1$1.Router }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
1337
+ SidePaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1338
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SidePaneComponent, decorators: [{
1339
+ type: Component,
1340
+ 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" }]
1341
+ }], ctorParameters: function () { return [{ type: i1$1.Router }, { type: undefined, decorators: [{
1342
+ type: Inject,
1343
+ args: [DOCUMENT]
1344
+ }] }]; }, propDecorators: { showPane: [{
1345
+ type: Input,
1346
+ args: ['visible']
1347
+ }], onComplete: [{
1348
+ type: Output
1349
+ }] } });
1350
+
1351
+ class NavLinksListComponent {
1352
+ constructor() {
1353
+ // tslint:disable-next-line:no-input-rename
1354
+ this.navLinkClass = 'nav-link';
1355
+ // tslint:disable-next-line:no-input-rename
1356
+ this.navLinkActiveClass = 'nav-link-active';
1357
+ // tslint:disable-next-line:no-input-rename
1358
+ this.containerClass = '';
1359
+ }
1360
+ ngOnInit() {
1361
+ }
1362
+ }
1363
+ NavLinksListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: NavLinksListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1364
+ NavLinksListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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"] }, ngImport: i0, template: "<div [class]=\"containerClass\">\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 {{ link.text }}\n </a>\n <a *ngSwitchCase=\"'external'\"\n [href]=\"link.path\"\n [attr.target]=\"link.external ? '_blank' : '_self'\"\n class=\"nav-link\">\n {{ link.text }}\n </a>\n <a *ngSwitchCase=\"'fragment'\"\n routerLink=\".\"\n [fragment]=\"link.path\"\n [class.active]=\"(activeFragment | async) === link.path\"\n class=\"nav-link\">\n {{ link.text }}\n </a>\n </ng-container>\n </ng-container>\n</div>\n", directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], pipes: { "async": i1.AsyncPipe } });
1365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: NavLinksListComponent, decorators: [{
1366
+ type: Component,
1367
+ args: [{ selector: 'lib-nav-links-list', template: "<div [class]=\"containerClass\">\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 {{ link.text }}\n </a>\n <a *ngSwitchCase=\"'external'\"\n [href]=\"link.path\"\n [attr.target]=\"link.external ? '_blank' : '_self'\"\n class=\"nav-link\">\n {{ link.text }}\n </a>\n <a *ngSwitchCase=\"'fragment'\"\n routerLink=\".\"\n [fragment]=\"link.path\"\n [class.active]=\"(activeFragment | async) === link.path\"\n class=\"nav-link\">\n {{ link.text }}\n </a>\n </ng-container>\n </ng-container>\n</div>\n" }]
1368
+ }], ctorParameters: function () { return []; }, propDecorators: { links: [{
1369
+ type: Input
1370
+ }], activeFragment: [{
1371
+ type: Input,
1372
+ args: ['active-fragment']
1373
+ }], navLinkClass: [{
1374
+ type: Input,
1375
+ args: ['link-class']
1376
+ }], navLinkActiveClass: [{
1377
+ type: Input,
1378
+ args: ['link-active-class']
1379
+ }], containerClass: [{
1380
+ type: Input,
1381
+ args: ['container-class']
1382
+ }] } });
1383
+
1384
+ const APP_LINKS = new InjectionToken('APP_LINKS');
1385
+ const APP_NOTIFICATIONS = new InjectionToken('APP_NOTIFICATIONS');
1386
+ const SHELL_CONFIG = new InjectionToken('SHELL_CONFIG');
1387
+
1388
+ class DynamicComponentHostDirective {
1389
+ constructor(viewContainerRef) {
1390
+ this.viewContainerRef = viewContainerRef;
1391
+ this.hostName = '';
1392
+ }
1393
+ }
1394
+ DynamicComponentHostDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DynamicComponentHostDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
1395
+ DynamicComponentHostDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.9", type: DynamicComponentHostDirective, selector: "[appDynamicComponentHost]", inputs: { hostName: "hostName" }, ngImport: i0 });
1396
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DynamicComponentHostDirective, decorators: [{
1397
+ type: Directive,
1398
+ args: [{ selector: '[appDynamicComponentHost]' }]
1399
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { hostName: [{
1400
+ type: Input
1401
+ }] } });
1402
+
1403
+ /**
1404
+ * Holds information about the dynamic content.
1405
+ * @remarks
1406
+ * `ComponentRef` is undefined in the case content is of `TemplateRef` type.
1407
+ */
1408
+ class ContentRef {
1409
+ constructor(nodes, viewRef, componentRef) {
1410
+ this.nodes = nodes;
1411
+ this.viewRef = viewRef;
1412
+ this.componentRef = componentRef;
1413
+ }
1414
+ }
1415
+
1416
+ /**
1417
+ * Provides ways of loading and handling dynamic content.
1418
+ *
1419
+ * @remarks
1420
+ * Do NOT use this directly, create an instance through {@link ComponentLoaderFactory}
1421
+ * You can use this loader in two ways:
1422
+ * - Attaches a component to `ViewContainerRef`.
1423
+ * - 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.
1424
+ *
1425
+ * @internal
1426
+ */
1427
+ class ComponentLoader {
1428
+ constructor(vcr, cfr, applicationRef, injector) {
1429
+ this.vcr = vcr;
1430
+ this.cfr = cfr;
1431
+ this.applicationRef = applicationRef;
1432
+ this.injector = injector;
1433
+ /**
1434
+ * Before content is shown event.
1435
+ */
1436
+ this.onBeforeShow = new Subject();
1437
+ /**
1438
+ * After show content event.
1439
+ * @returns The id of newly created component ref.
1440
+ */
1441
+ this.onShown = new Subject();
1442
+ /**
1443
+ * Before content is hidden event.
1444
+ * @returns The instance of attached component;
1445
+ */
1446
+ this.onBeforeHide = new Subject();
1447
+ /**
1448
+ * After content is hidden event.
1449
+ * @returns The id of destroyed component ref.
1450
+ */
1451
+ this.onHidden = new Subject();
1452
+ this.providers = [];
1453
+ this.containerDefaultSelector = 'body';
1454
+ }
1455
+ /**
1456
+ * Attaches component.
1457
+ * @param componentType - The type component to attach.
1458
+ * @returns Current instance of {@link ComponentLoader}
1459
+ */
1460
+ attach(componentType) {
1461
+ this.componentFactory = this.cfr.resolveComponentFactory(componentType);
1462
+ return this;
1463
+ }
1464
+ /**
1465
+ * Body will be used in nothing is provided.
1466
+ * @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.
1467
+ * @returns Current instance of {@link ComponentLoader}
1468
+ */
1469
+ to(container) {
1470
+ this.container = container || this.container;
1471
+ return this;
1472
+ }
1473
+ /**
1474
+ * Adds provider to the providers array. These providers will be injected to the attached component.
1475
+ *
1476
+ * @see {@link https://angular.io/guide/glossary#di-token | Injection Token}
1477
+ *
1478
+ * @param provider - Provider to inject.
1479
+ * @returns Current instance of {@link ComponentLoader}
1480
+ */
1481
+ provide(provider) {
1482
+ this.providers.push(provider);
1483
+ return this;
1484
+ }
1485
+ /**
1486
+ * Attaches attached component to dom and any dynamic content if provided.
1487
+ * @remarks
1488
+ * Also triggers the {@link ComponentLoader.onBeforeShow} and {@link ComponentLoader.onShown} events.
1489
+ *
1490
+ * @param options - {@link ComponentLoaderOptions}.
1491
+ * @returns A reference to the created content.
1492
+ */
1493
+ show(options = {}) {
1494
+ if (this.componentRef) {
1495
+ throw Error('Component is already shown');
1496
+ }
1497
+ if (!this.componentFactory) {
1498
+ throw Error('You must attach a component');
1499
+ }
1500
+ this.onBeforeShow.next();
1501
+ if (options.content) {
1502
+ this.contentRef = this.getContentRef(options.content, options.context, options.initialState);
1503
+ }
1504
+ this.createComponentAndAttachToView(options);
1505
+ this.appendContentToContainer();
1506
+ this.markComponentsForCheck();
1507
+ this.onShown.next(options.id);
1508
+ return this.componentRef;
1509
+ }
1510
+ /**
1511
+ * Removes attached component from dom.
1512
+ * @remarks
1513
+ * Also triggers the {@link ComponentLoader.onBeforeHide} and {@link ComponentLoader.onHidden} events.
1514
+ *
1515
+ * @param id - If provided it is returned through the {@link ComponentLoader.onHidden}.
1516
+ * @returns Current instance of {@link ComponentLoader}
1517
+ */
1518
+ hide(id, result) {
1519
+ if (!this.componentRef) {
1520
+ throw Error('No attached component found to hide');
1521
+ }
1522
+ this.onBeforeHide.next(this.componentRef.instance);
1523
+ const componentEl = this.componentRef.location.nativeElement;
1524
+ componentEl.parentNode.removeChild(componentEl);
1525
+ if (this.contentRef?.componentRef) {
1526
+ this.contentRef.componentRef.destroy();
1527
+ }
1528
+ if (this.vcr && this.contentRef?.viewRef) {
1529
+ this.vcr.remove(this.vcr.indexOf(this.contentRef.viewRef));
1530
+ }
1531
+ if (this.contentRef?.viewRef) {
1532
+ this.contentRef.viewRef.destroy();
1533
+ }
1534
+ this.contentRef = void 0;
1535
+ this.componentRef = void 0;
1536
+ this.onHidden.next(id ? { id, result } : null);
1537
+ return this;
1538
+ }
1539
+ getInnerComponent() {
1540
+ return this.innerComponent;
1541
+ }
1542
+ markComponentsForCheck() {
1543
+ if (this.contentRef?.componentRef) {
1544
+ this.innerComponent = this.contentRef.componentRef.instance;
1545
+ this.contentRef.componentRef.changeDetectorRef.markForCheck();
1546
+ this.contentRef.componentRef.changeDetectorRef.detectChanges();
1547
+ }
1548
+ this.componentRef.changeDetectorRef.markForCheck();
1549
+ this.componentRef.changeDetectorRef.detectChanges();
1550
+ }
1551
+ createComponentAndAttachToView(options) {
1552
+ const injector = Injector.create({
1553
+ providers: this.providers,
1554
+ parent: this.injector,
1555
+ });
1556
+ this.componentRef = this.componentFactory.create(injector, this.contentRef?.nodes);
1557
+ this.applicationRef.attachView(this.componentRef.hostView);
1558
+ this.instance = this.componentRef.instance;
1559
+ Object.assign(this.componentRef.instance, options);
1560
+ }
1561
+ appendContentToContainer() {
1562
+ if (this.container instanceof ElementRef) {
1563
+ this.container.nativeElement.appendChild(this.componentRef?.location.nativeElement);
1564
+ }
1565
+ if (typeof this.container === 'string' && typeof document !== 'undefined') {
1566
+ const selectedElement = document.querySelector(this.container) || document.querySelector(this.containerDefaultSelector);
1567
+ if (!selectedElement) {
1568
+ return;
1569
+ }
1570
+ selectedElement.appendChild(this.componentRef?.location.nativeElement);
1571
+ }
1572
+ }
1573
+ getContentRef(content, context, initialState) {
1574
+ //TemplateRef case
1575
+ if (content instanceof TemplateRef) {
1576
+ if (this.vcr) {
1577
+ const viewRef = this.vcr.createEmbeddedView(content, context);
1578
+ viewRef.markForCheck();
1579
+ return new ContentRef([viewRef.rootNodes], viewRef);
1580
+ }
1581
+ const viewRef = content.createEmbeddedView({});
1582
+ this.applicationRef.attachView(viewRef);
1583
+ return new ContentRef([viewRef.rootNodes], viewRef);
1584
+ }
1585
+ //Component case
1586
+ if (typeof content === 'function') {
1587
+ const contentCf = this.cfr.resolveComponentFactory(content);
1588
+ const injector = Injector.create({
1589
+ providers: this.providers,
1590
+ parent: this.injector,
1591
+ });
1592
+ const componentRef = contentCf.create(injector);
1593
+ Object.assign(componentRef.instance, initialState);
1594
+ this.applicationRef.attachView(componentRef.hostView);
1595
+ return new ContentRef([[componentRef.location.nativeElement]], componentRef.hostView, componentRef);
1596
+ }
1597
+ throw Error('Unsupported content type');
1598
+ }
1599
+ }
1600
+
1601
+ /**
1602
+ * Use to create instances of {@link ComponentLoader}.
1603
+ *
1604
+ * @public
1605
+ */
1606
+ class ComponentLoaderFactory {
1607
+ constructor(componentFactoryResolver, injector, applicationRef) {
1608
+ this.componentFactoryResolver = componentFactoryResolver;
1609
+ this.injector = injector;
1610
+ this.applicationRef = applicationRef;
1611
+ }
1612
+ /**
1613
+ * Returns a new instance of {@link ComponentLoader}
1614
+ * @param viewContainerRef - The view container the dynamic content will be attached to.
1615
+ * @returns A new instance of {@link ComponentLoader}.
1616
+ *
1617
+ * @public
1618
+ */
1619
+ createLoader(viewContainerRef) {
1620
+ return new ComponentLoader(viewContainerRef, this.componentFactoryResolver, this.applicationRef, this.injector);
1621
+ }
1622
+ }
1623
+ ComponentLoaderFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ComponentLoaderFactory, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
1624
+ ComponentLoaderFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ComponentLoaderFactory, providedIn: 'root' });
1625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ComponentLoaderFactory, decorators: [{
1626
+ type: Injectable,
1627
+ args: [{ providedIn: 'root' }]
1628
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
1629
+
1630
+ class NotificationsIndicatorComponent {
1631
+ constructor(notifications, links) {
1632
+ this.notifications = notifications;
1633
+ this.links = links;
1634
+ this.menuExpanded = false;
1635
+ this.unreadCount = 0;
1636
+ this.items = [];
1637
+ this.inboxAction = undefined;
1638
+ this.newArrival = false;
1639
+ }
1640
+ ngOnDestroy() {
1641
+ if (this.notificationsSub$) {
1642
+ this.notificationsSub$.unsubscribe();
1643
+ }
1644
+ }
1645
+ ngOnInit() {
1646
+ this.links['notifications'].subscribe(notificationsLink => {
1647
+ this.allNotificationsLink = notificationsLink;
1648
+ });
1649
+ this.notificationsSub$ = this.notifications.messages.subscribe(result => {
1650
+ if (result.items) {
1651
+ this.newArrival = true;
1652
+ this.unreadCount = result.count;
1653
+ this.items = result.items;
1654
+ setTimeout(() => { this.newArrival = false; }, 1000);
1655
+ }
1656
+ });
1657
+ }
1658
+ toggleMenu() {
1659
+ this.menuExpanded = !this.menuExpanded;
1660
+ this.unreadCount = 0;
1661
+ }
1662
+ doInboxAction() {
1663
+ if (this.notifications.inboxAction) {
1664
+ this.notifications.inboxAction();
1665
+ }
1666
+ else {
1667
+ this.menuExpanded = true;
1668
+ }
1669
+ this.unreadCount = 0;
1670
+ }
1671
+ removeItem(index) {
1672
+ this.items.splice(index, 1);
1673
+ }
1674
+ // this.notificationsSub$ = this.links.notifications?.pipe(map(result => {
1675
+ // this.allItemsLink = result.allNotifications;
1676
+ // this.items = result.items;
1677
+ // this.unreadCount = result.count;
1678
+ // }));
1679
+ // [this.notificationsLinksPath] as Observable<NotificationNavLink[]>;
1680
+ // this.allNotificationsLink = this.links[this.allNotificationsLinkPath] as Observable<NavLink>;
1681
+ // this.unreadNotificationsCountObs = this.links[this.notificationsCounterLinksPath] as Observable<number>;
1682
+ // this.getUnreadNotificationsCount();
1683
+ // tslint:disable-next-line:typedef
1684
+ onClickOutside($event) {
1685
+ this.menuExpanded = false;
1686
+ }
1687
+ }
1688
+ NotificationsIndicatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: NotificationsIndicatorComponent, deps: [{ token: APP_NOTIFICATIONS }, { token: APP_LINKS }], target: i0.ɵɵFactoryTarget.Component });
1689
+ NotificationsIndicatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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\"\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", directives: [{ type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "date": i1.DatePipe } });
1690
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: NotificationsIndicatorComponent, decorators: [{
1691
+ type: Component,
1692
+ 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\"\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" }]
1693
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1694
+ type: Inject,
1695
+ args: [APP_NOTIFICATIONS]
1696
+ }] }, { type: undefined, decorators: [{
1697
+ type: Inject,
1698
+ args: [APP_LINKS]
1699
+ }] }]; } });
1700
+
1701
+ class ShellHeaderComponent {
1702
+ constructor(authService, router, route, config, links) {
1703
+ this.authService = authService;
1704
+ this.router = router;
1705
+ this.route = route;
1706
+ this.config = config;
1707
+ this.links = links;
1708
+ // tslint:disable-next-line:no-input-rename
1709
+ this.sectionLinksPath = 'main';
1710
+ // tslint:disable-next-line:no-input-rename
1711
+ this.profileMenuVisible = true;
1712
+ // tslint:disable-next-line:no-input-rename
1713
+ this.showUserNameOnHeader = false;
1714
+ // tslint:disable-next-line:no-input-rename
1715
+ this.showAlerts = false;
1716
+ this.border = true;
1717
+ this.sectionLinks = of([]);
1718
+ this.mobileMenuExpanded = false;
1719
+ this.userMenuExpanded = false;
1720
+ this.routerSub$ = null;
1721
+ this.userSub$ = null;
1722
+ this.statusSub$ = null;
1723
+ this.user = null;
1724
+ this.avatarName = null;
1725
+ this.activeFragment = null;
1726
+ this.routeSubject = this.router.events.pipe(filter((event) => event instanceof NavigationStart));
1727
+ }
1728
+ ngOnInit() {
1729
+ this.activeFragment = this.route.fragment.pipe(share());
1730
+ this.sectionLinks = this.links[this.sectionLinksPath];
1731
+ this.routerSub$ = this.routeSubject.subscribe((event) => {
1732
+ this.mobileMenuExpanded = false;
1733
+ this.userMenuExpanded = false;
1734
+ });
1735
+ this.authService.loadUser().subscribe((user) => {
1736
+ this.setCurrentUser(user);
1737
+ }, error => {
1738
+ console.error(error);
1739
+ });
1740
+ // Detect user changes and display / or not user info accordingly...
1741
+ this.userSub$ = this.authService.user$.subscribe((user) => {
1742
+ // console.log('ShellHeaderComponent user subscription');
1743
+ this.setCurrentUser(user);
1744
+ });
1745
+ // set current lang if no current value from langs if any
1746
+ if (!this.currentLang && this.langs && this.langs.length > 0) {
1747
+ this.setCurrentLang(this.langs[0]);
1748
+ }
1749
+ }
1750
+ ngOnDestroy() {
1751
+ if (this.routerSub$) {
1752
+ this.routerSub$.unsubscribe();
1753
+ }
1754
+ // TODO: check authenticated user here before we start polling server status
1755
+ if (this.statusSub$) {
1756
+ this.statusSub$.unsubscribe();
1757
+ }
1758
+ if (this.userSub$) {
1759
+ this.userSub$.unsubscribe();
1760
+ }
1761
+ }
1762
+ // tslint:disable-next-line:typedef
1763
+ onClickOutside($event) {
1764
+ this.userMenuExpanded = false;
1765
+ }
1766
+ signin(event) {
1767
+ if (event) {
1768
+ event.preventDefault();
1769
+ }
1770
+ this.authService.signinRedirect();
1771
+ }
1772
+ setCurrentUser(user) {
1773
+ this.user = user;
1774
+ if (this.user && this.user.profile) {
1775
+ this.avatarName = `${this.user.profile.given_name?.charAt(0)}${this.user.profile.family_name?.charAt(0)}`.toUpperCase();
1776
+ }
1777
+ }
1778
+ setCurrentLang(lang) {
1779
+ this.currentLang = lang;
1780
+ }
1781
+ }
1782
+ ShellHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ShellHeaderComponent, deps: [{ token: AuthService }, { token: Router }, { token: ActivatedRoute }, { token: SHELL_CONFIG }, { token: APP_LINKS }], target: i0.ɵɵFactoryTarget.Component });
1783
+ ShellHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: ShellHeaderComponent, selector: "lib-shell-header", inputs: { sectionLinksPath: ["section-links", "sectionLinksPath"], profileMenuVisible: ["profile-menu", "profileMenuVisible"], showUserNameOnHeader: ["show-userName", "showUserNameOnHeader"], showAlerts: ["show-alerts", "showAlerts"], langs: "langs", currentLang: ["current-lang", "currentLang"], 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 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 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 *ngIf=\"langs && langs.length > 1 && currentLang\" class=\"shell-header-links-far-container\">\n <button class=\"text-blue-300 hover:text-blue-500\">\n <span>{{currentLang}}</span>\n <i class=\"text-xs ml-1 ms-Icon ms-Icon--ChevronDown\"></i>\n </button>\n </div>\n\n <div class=\"shell-header-md-visible\">\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 <!-- <ng-container *ngFor=\"let link of links.profileActions | async\">\n <a class=\"shell-header-menu-rounded-button\"\n (clickOutside)=\"onClickOutside($event)\"\n [attr.href]=\"link.path\"\n [attr.target]=\"link.external ? '_blank' : '_self'\">\n <span class=\"sr-only\">{{ link.text }}</span>\n <i *ngIf=\"link.icon\" [class]=\"link.icon\"></i>\n </a>\n </ng-container> -->\n\n <!-- Username -->\n <div *ngIf=\"profileMenuVisible\" class=\"ml-2 relative\">\n <div [ngClass]=\"{'shell-header-profile': showUserNameOnHeader}\">\n <div *ngIf=\"user && showUserNameOnHeader\" class=\"shell-header-profile-userName\">\n {{ user.profile.name }}\n </div>\n </div>\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 <!-- Profile dropdown -->\n <div *ngIf=\"profileMenuVisible\" class=\"ml-2 relative\" (clickOutside)=\"onClickOutside($event)\">\n <div [ngClass]=\"{'shell-header-profile': showUserNameOnHeader}\">\n <button type=\"button\" *ngIf=\"user\" (click)=\"userMenuExpanded = !userMenuExpanded\"\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\n <div *ngIf=\"userMenuExpanded\"\n [ngClass]=\"showUserNameOnHeader ? 'shell-header-profile-dropdown-with-username' : 'shell-header-profile-dropdown'\"\n role=\"menu\"\n aria-orientation=\"vertical\"\n aria-labelledby=\"user-menu\">\n <lib-nav-links-list\n [links]=\"links.profile\"\n [active-fragment]=\"activeFragment\"\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 </div>\n </div>\n </div>\n\n <div class=\"mobile-menu-button-container\">\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 <button class=\"mobile-menu-rounded-button\">\n <span class=\"sr-only\">View notifications</span>\n <!-- Heroicon name: outline/bell -->\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 </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", components: [{ type: NavLinksListComponent, selector: "lib-nav-links-list", inputs: ["links", "active-fragment", "link-class", "link-active-class", "container-class"] }, { type: NotificationsIndicatorComponent, selector: "lib-notifications-indicator" }], directives: [{ type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
1784
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ShellHeaderComponent, decorators: [{
1785
+ type: Component,
1786
+ 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 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 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 *ngIf=\"langs && langs.length > 1 && currentLang\" class=\"shell-header-links-far-container\">\n <button class=\"text-blue-300 hover:text-blue-500\">\n <span>{{currentLang}}</span>\n <i class=\"text-xs ml-1 ms-Icon ms-Icon--ChevronDown\"></i>\n </button>\n </div>\n\n <div class=\"shell-header-md-visible\">\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 <!-- <ng-container *ngFor=\"let link of links.profileActions | async\">\n <a class=\"shell-header-menu-rounded-button\"\n (clickOutside)=\"onClickOutside($event)\"\n [attr.href]=\"link.path\"\n [attr.target]=\"link.external ? '_blank' : '_self'\">\n <span class=\"sr-only\">{{ link.text }}</span>\n <i *ngIf=\"link.icon\" [class]=\"link.icon\"></i>\n </a>\n </ng-container> -->\n\n <!-- Username -->\n <div *ngIf=\"profileMenuVisible\" class=\"ml-2 relative\">\n <div [ngClass]=\"{'shell-header-profile': showUserNameOnHeader}\">\n <div *ngIf=\"user && showUserNameOnHeader\" class=\"shell-header-profile-userName\">\n {{ user.profile.name }}\n </div>\n </div>\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 <!-- Profile dropdown -->\n <div *ngIf=\"profileMenuVisible\" class=\"ml-2 relative\" (clickOutside)=\"onClickOutside($event)\">\n <div [ngClass]=\"{'shell-header-profile': showUserNameOnHeader}\">\n <button type=\"button\" *ngIf=\"user\" (click)=\"userMenuExpanded = !userMenuExpanded\"\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\n <div *ngIf=\"userMenuExpanded\"\n [ngClass]=\"showUserNameOnHeader ? 'shell-header-profile-dropdown-with-username' : 'shell-header-profile-dropdown'\"\n role=\"menu\"\n aria-orientation=\"vertical\"\n aria-labelledby=\"user-menu\">\n <lib-nav-links-list\n [links]=\"links.profile\"\n [active-fragment]=\"activeFragment\"\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 </div>\n </div>\n </div>\n\n <div class=\"mobile-menu-button-container\">\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 <button class=\"mobile-menu-rounded-button\">\n <span class=\"sr-only\">View notifications</span>\n <!-- Heroicon name: outline/bell -->\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 </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" }]
1787
+ }], ctorParameters: function () { return [{ type: i2.AuthService, decorators: [{
1788
+ type: Inject,
1789
+ args: [AuthService]
1790
+ }] }, { type: i1$1.Router, decorators: [{
1791
+ type: Inject,
1792
+ args: [Router]
1793
+ }] }, { type: i1$1.ActivatedRoute, decorators: [{
1794
+ type: Inject,
1795
+ args: [ActivatedRoute]
1796
+ }] }, { type: undefined, decorators: [{
1797
+ type: Inject,
1798
+ args: [SHELL_CONFIG]
1799
+ }] }, { type: undefined, decorators: [{
1800
+ type: Inject,
1801
+ args: [APP_LINKS]
1802
+ }] }]; }, propDecorators: { sectionLinksPath: [{
1803
+ type: Input,
1804
+ args: ['section-links']
1805
+ }], profileMenuVisible: [{
1806
+ type: Input,
1807
+ args: ['profile-menu']
1808
+ }], showUserNameOnHeader: [{
1809
+ type: Input,
1810
+ args: ['show-userName']
1811
+ }], showAlerts: [{
1812
+ type: Input,
1813
+ args: ['show-alerts']
1814
+ }], langs: [{
1815
+ type: Input
1816
+ }], currentLang: [{
1817
+ type: Input,
1818
+ args: ['current-lang']
1819
+ }], border: [{
1820
+ type: Input
1821
+ }] } });
1822
+
1823
+ class ShellFooterComponent {
1824
+ constructor(links) {
1825
+ this.links = links;
1826
+ }
1827
+ }
1828
+ ShellFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ShellFooterComponent, deps: [{ token: APP_LINKS }], target: i0.ɵɵFactoryTarget.Component });
1829
+ ShellFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i1.AsyncPipe } });
1830
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ShellFooterComponent, decorators: [{
1831
+ type: Component,
1832
+ 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" }]
1833
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1834
+ type: Inject,
1835
+ args: [APP_LINKS]
1836
+ }] }]; } });
1837
+
1838
+ class ShellLayoutComponent {
1839
+ constructor(document, router, location, config, componentLoaderFactory) {
1840
+ this.document = document;
1841
+ this.router = router;
1842
+ this.location = location;
1843
+ this.config = config;
1844
+ this.componentLoaderFactory = componentLoaderFactory;
1845
+ this.dynamicComponentHosts = null;
1846
+ this.showRightPaneSM = false;
1847
+ this.routerSub$ = null;
1848
+ this.activeConfig = new DefaultShellConfig();
1849
+ this.loaded = false;
1850
+ if (!config) {
1851
+ config = new DefaultShellConfig();
1852
+ }
1853
+ this.activeConfig = config;
1854
+ }
1855
+ ngAfterViewChecked() {
1856
+ setTimeout(() => { this.loaded = true; }, 200);
1857
+ }
1858
+ ngOnInit() {
1859
+ this.routerSub$ = this.router.events.pipe(filter((event) => event instanceof ActivationStart)).subscribe((e) => {
1860
+ // console.log('ShellLayoutComponent ActivationStart', e);
1861
+ if (e?.snapshot) {
1862
+ // console.log('ShellLayoutComponent ActivationStart snapshot', (e as ActivationStart)?.snapshot);
1863
+ if (e?.snapshot?.data) {
1864
+ // console.log('ShellLayoutComponent ActivationStart snapshot data', (e as ActivationStart)?.snapshot.data);
1865
+ if (e?.snapshot?.data.shell) {
1866
+ // console.log('ShellLayoutComponent ActivationStart snapshot data shell params',
1867
+ // (e as ActivationStart)?.snapshot.data.shell);
1868
+ this.activeConfig = e?.snapshot.data.shell;
1869
+ // console.log('ShellLayoutComponent activeConfig from route: ', this.activeConfig);
1870
+ if (this.activeConfig.customHeaderComponent) {
1871
+ this.initCustomComponents();
1872
+ }
1873
+ }
1874
+ else {
1875
+ this.activeConfig = this.config ? this.config : new DefaultShellConfig();
1876
+ // console.log('ShellLayoutComponent default activeConfig: ', this.activeConfig);
1877
+ }
1878
+ }
1879
+ }
1880
+ });
1881
+ }
1882
+ ngAfterViewInit() {
1883
+ this.initCustomComponents();
1884
+ }
1885
+ initCustomComponents() {
1886
+ if (this.dynamicComponentHosts && this.dynamicComponentHosts.length > 0) {
1887
+ this.loadCustomComponent(this.dynamicComponentHosts.find((_) => _.hostName === 'Header'));
1888
+ // since you're not using it...
1889
+ // this.loadCustomComponent(this.dynamicComponentHosts.find(_ => _.hostName === 'Footer'));
1890
+ }
1891
+ }
1892
+ ngOnDestroy() {
1893
+ if (this.routerSub$) {
1894
+ this.routerSub$.unsubscribe();
1895
+ }
1896
+ }
1897
+ loadCustomComponent(host) {
1898
+ if (host) {
1899
+ const viewContainerRef = host.viewContainerRef;
1900
+ if (viewContainerRef && this.activeConfig.customHeaderComponent) {
1901
+ const clf = this.componentLoaderFactory.createLoader(viewContainerRef);
1902
+ const headerCompRef = clf.attach(this.activeConfig.customHeaderComponent).to(viewContainerRef.element).show();
1903
+ }
1904
+ }
1905
+ }
1906
+ }
1907
+ ShellLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ShellLayoutComponent, deps: [{ token: DOCUMENT }, { token: i1$1.Router }, { token: i1.Location }, { token: SHELL_CONFIG }, { token: ComponentLoaderFactory }], target: i0.ɵɵFactoryTarget.Component });
1908
+ ShellLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: ShellLayoutComponent, selector: "lib-shell-layout", viewQueries: [{ propertyName: "dynamicComponentHosts", predicate: DynamicComponentHostDirective, descendants: true }], ngImport: i0, template: "<div *ngIf=\"loaded\" [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\"\n [langs]=\"activeConfig.langs\"\n [show-userName]=\"activeConfig.showUserNameOnHeader\"\n [show-alerts]=\"activeConfig.showAlertsOnHeader\"></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></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\n</div>\n", components: [{ type: ShellHeaderComponent, selector: "lib-shell-header", inputs: ["section-links", "profile-menu", "show-userName", "show-alerts", "langs", "current-lang", "border"] }, { type: ShellFooterComponent, selector: "lib-shell-footer" }, { type: SidePaneComponent, selector: "lib-side-pane", inputs: ["visible"], outputs: ["onComplete"] }, { type: ToasterContainerComponent, selector: "lib-toaster-container" }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentHostDirective, selector: "[appDynamicComponentHost]", inputs: ["hostName"] }, { type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
1909
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ShellLayoutComponent, decorators: [{
1910
+ type: Component,
1911
+ args: [{ selector: 'lib-shell-layout', template: "<div *ngIf=\"loaded\" [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\"\n [langs]=\"activeConfig.langs\"\n [show-userName]=\"activeConfig.showUserNameOnHeader\"\n [show-alerts]=\"activeConfig.showAlertsOnHeader\"></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></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\n</div>\n" }]
1912
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1913
+ type: Inject,
1914
+ args: [DOCUMENT]
1915
+ }] }, { type: i1$1.Router }, { type: i1.Location }, { type: undefined, decorators: [{
1916
+ type: Inject,
1917
+ args: [SHELL_CONFIG]
1918
+ }] }, { type: ComponentLoaderFactory }]; }, propDecorators: { dynamicComponentHosts: [{
1919
+ type: ViewChildren,
1920
+ args: [DynamicComponentHostDirective]
1921
+ }] } });
1922
+
1923
+ class ViewLayoutComponent {
1924
+ constructor(route$, router$) {
1925
+ this.route$ = route$;
1926
+ this.router$ = router$;
1927
+ // tslint:disable-next-line:no-input-rename
1928
+ this.header = true;
1929
+ this.fluid = false;
1930
+ this.title = 'no title';
1931
+ this.icon = null;
1932
+ this.actions = null;
1933
+ this.busy = false;
1934
+ // tslint:disable-next-line:no-input-rename
1935
+ this.searchPlaceholder = 'αναζήτηση';
1936
+ this.view = null;
1937
+ // tslint:disable-next-line:no-input-rename
1938
+ this.metaItems = [];
1939
+ // tslint:disable-next-line:no-output-on-prefix
1940
+ this.onAction = new EventEmitter();
1941
+ // tslint:disable-next-line:no-output-on-prefix
1942
+ this.onSearch = new EventEmitter();
1943
+ }
1944
+ ngOnInit() {
1945
+ if (this.searchInput$?.nativeElement) {
1946
+ fromEvent(this.searchInput$.nativeElement, 'keyup').pipe(map((event) => {
1947
+ return event.target.value; // Get input value.
1948
+ }), filter(inputValue => inputValue.length >= 3 || inputValue.length === 0),
1949
+ // If character length greater than minimumSearchCharacters setting.
1950
+ debounceTime(1000), // Time in milliseconds between key events.
1951
+ distinctUntilChanged() // If previous query is different from current.
1952
+ ).subscribe();
1953
+ }
1954
+ }
1955
+ emitActionClick(action) {
1956
+ this.onAction.emit(action);
1957
+ }
1958
+ routerLinkActionClick(action) {
1959
+ // console.log('routerLinkActionClick', action);
1960
+ if (action.outlet) {
1961
+ this.router$.navigate(['', { outlets: { rightpane: action.link } }]);
1962
+ }
1963
+ else {
1964
+ this.router$.navigate([action.link]);
1965
+ }
1966
+ }
1967
+ searchActionClick(action, text) {
1968
+ this.onSearch.emit(text);
1969
+ }
1970
+ searchActionType(text) {
1971
+ this.onSearch.emit(this.searchInput$?.nativeElement.value);
1972
+ }
1973
+ handleClear(event) {
1974
+ console.log('handle clear!!!');
1975
+ event.stopPropagation();
1976
+ this.onSearch.emit(event.target?.value);
1977
+ }
1978
+ switchViewActionClick(action) {
1979
+ // console.log('switchViewActionClick', action);
1980
+ this.view = action.param;
1981
+ if (action && action.param) {
1982
+ this.router$.navigate([], { queryParams: { view: action.param }, queryParamsHandling: 'merge', skipLocationChange: false });
1983
+ }
1984
+ }
1985
+ }
1986
+ ViewLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ViewLayoutComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
1987
+ ViewLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
1988
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ViewLayoutComponent, decorators: [{
1989
+ type: Component,
1990
+ 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" }]
1991
+ }], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }]; }, propDecorators: { searchInput$: [{
1992
+ type: ViewChild,
1993
+ args: ['search']
1994
+ }], header: [{
1995
+ type: Input,
1996
+ args: ['show-header']
1997
+ }], fluid: [{
1998
+ type: Input
1999
+ }], title: [{
2000
+ type: Input
2001
+ }], icon: [{
2002
+ type: Input
2003
+ }], actions: [{
2004
+ type: Input
2005
+ }], busy: [{
2006
+ type: Input
2007
+ }], searchPlaceholder: [{
2008
+ type: Input,
2009
+ args: ['search-placeholder']
2010
+ }], view: [{
2011
+ type: Input
2012
+ }], metaItems: [{
2013
+ type: Input,
2014
+ args: ['meta-items']
2015
+ }], onAction: [{
2016
+ type: Output
2017
+ }], onSearch: [{
2018
+ type: Output
2019
+ }] } });
2020
+
2021
+ class ModelViewLayoutComponent {
2022
+ constructor(location) {
2023
+ this.location = location;
2024
+ this.showRightPaneSM = false;
2025
+ this.title = 'no title';
2026
+ // tslint:disable-next-line:no-input-rename
2027
+ this.primary = null;
2028
+ // tslint:disable-next-line:no-input-rename
2029
+ this.secondary = null;
2030
+ // tslint:disable-next-line:no-input-rename
2031
+ this.metaItems = [
2032
+ // { key: 'test', icon: Icons.Badges, text: 'βρέθηκαν 200 αποτελέσματα' }
2033
+ ];
2034
+ }
2035
+ ngOnInit() {
2036
+ }
2037
+ onSidePaneActivated($event) {
2038
+ this.showRightPaneSM = true;
2039
+ }
2040
+ onSidePaneDeactivated($event) {
2041
+ this.showRightPaneSM = false;
2042
+ }
2043
+ closeSidePane() {
2044
+ this.location.back();
2045
+ }
2046
+ }
2047
+ ModelViewLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModelViewLayoutComponent, deps: [{ token: i1.Location }], target: i0.ɵɵFactoryTarget.Component });
2048
+ ModelViewLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", components: [{ type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
2049
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModelViewLayoutComponent, decorators: [{
2050
+ type: Component,
2051
+ 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" }]
2052
+ }], ctorParameters: function () { return [{ type: i1.Location }]; }, propDecorators: { title: [{
2053
+ type: Input
2054
+ }], primary: [{
2055
+ type: Input,
2056
+ args: ['primary-links']
2057
+ }], secondary: [{
2058
+ type: Input,
2059
+ args: ['secondary-links']
2060
+ }], metaItems: [{
2061
+ type: Input,
2062
+ args: ['meta-items']
2063
+ }] } });
2064
+
2065
+ class SideViewLayoutComponent {
2066
+ constructor(location, router) {
2067
+ this.location = location;
2068
+ this.router = router;
2069
+ this.title = 'Πληροφορίες';
2070
+ this.showActions = true;
2071
+ this.disabled = false;
2072
+ // tslint:disable-next-line:no-input-rename
2073
+ this.okLabel = 'Αποθήκευση';
2074
+ // tslint:disable-next-line:no-input-rename
2075
+ this.okShow = true;
2076
+ // tslint:disable-next-line:no-input-rename
2077
+ this.closeOnOk = true;
2078
+ // tslint:disable-next-line:no-input-rename
2079
+ this.cancelLabel = 'Ακύρωση';
2080
+ // tslint:disable-next-line:no-input-rename
2081
+ this.cancelShow = true;
2082
+ // tslint:disable-next-line:no-input-rename
2083
+ this.forceLocationBack = false;
2084
+ // @Output() close = new EventEmitter<any>();
2085
+ this.cancel = new EventEmitter();
2086
+ this.ok = new EventEmitter();
2087
+ }
2088
+ ngOnInit() {
2089
+ }
2090
+ closeSidePane() {
2091
+ if (this.returnPath) {
2092
+ this.router.navigateByUrl('/', { skipLocationChange: true }).then(() => this.router.navigateByUrl(this.returnPath || '/'));
2093
+ }
2094
+ else {
2095
+ if ((this.router.url.split('/(')[0] !== this.router.url) && !this.forceLocationBack) {
2096
+ this.router.navigateByUrl(this.router.url.split('/(')[0]);
2097
+ }
2098
+ else if ((this.router.url.split('(')[0] !== this.router.url) && !this.forceLocationBack) {
2099
+ this.router.navigateByUrl(this.router.url.split('(')[0]);
2100
+ }
2101
+ else {
2102
+ this.location.back();
2103
+ }
2104
+ }
2105
+ }
2106
+ emitClose() {
2107
+ this.cancel.emit(false);
2108
+ this.closeSidePane();
2109
+ }
2110
+ emitCancel() {
2111
+ this.cancel.emit(false);
2112
+ this.closeSidePane();
2113
+ }
2114
+ emitOK() {
2115
+ this.ok.emit(true);
2116
+ if (this.closeOnOk) {
2117
+ this.closeSidePane();
2118
+ }
2119
+ }
2120
+ }
2121
+ SideViewLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SideViewLayoutComponent, deps: [{ token: i1.Location }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
2122
+ SideViewLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SideViewLayoutComponent, decorators: [{
2124
+ type: Component,
2125
+ 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" }]
2126
+ }], ctorParameters: function () { return [{ type: i1.Location }, { type: i1$1.Router }]; }, propDecorators: { title: [{
2127
+ type: Input
2128
+ }], showActions: [{
2129
+ type: Input
2130
+ }], disabled: [{
2131
+ type: Input
2132
+ }], returnPath: [{
2133
+ type: Input,
2134
+ args: ['return-path']
2135
+ }], okLabel: [{
2136
+ type: Input,
2137
+ args: ['ok-label']
2138
+ }], okShow: [{
2139
+ type: Input,
2140
+ args: ['ok-show']
2141
+ }], closeOnOk: [{
2142
+ type: Input,
2143
+ args: ['ok-close-dialog']
2144
+ }], cancelLabel: [{
2145
+ type: Input,
2146
+ args: ['cancel-label']
2147
+ }], cancelShow: [{
2148
+ type: Input,
2149
+ args: ['cancel-show']
2150
+ }], forceLocationBack: [{
2151
+ type: Input,
2152
+ args: ['force-location-back']
2153
+ }], cancel: [{
2154
+ type: Output
2155
+ }], ok: [{
2156
+ type: Output
2157
+ }] } });
2158
+
2159
+ class FormLayoutComponent {
2160
+ constructor(router$) {
2161
+ this.router$ = router$;
2162
+ this.title = null;
2163
+ // tslint:disable-next-line:no-input-rename
2164
+ this.searchPlaceholder = 'αναζήτηση';
2165
+ this.actions = null;
2166
+ // tslint:disable-next-line:no-input-rename
2167
+ this.subTitle = null;
2168
+ // tslint:disable-next-line:no-output-on-prefix
2169
+ this.onAction = new EventEmitter();
2170
+ // tslint:disable-next-line:no-output-on-prefix
2171
+ this.onSearch = new EventEmitter();
2172
+ this.onComplete = new EventEmitter();
2173
+ }
2174
+ ngOnInit() {
2175
+ if (this.searchInput$?.nativeElement) {
2176
+ fromEvent(this.searchInput$.nativeElement, 'keyup').pipe(map((event) => {
2177
+ return event.target.value; // Get input value.
2178
+ }), filter(inputValue => inputValue.length >= 3 || inputValue.length === 0),
2179
+ // If character length greater than minimumSearchCharacters setting.
2180
+ debounceTime(1000), // Time in milliseconds between key events.
2181
+ distinctUntilChanged() // If previous query is different from current.
2182
+ ).subscribe();
2183
+ }
2184
+ }
2185
+ onSidePaneDeactivated($event) {
2186
+ this.onComplete.emit(true);
2187
+ }
2188
+ emitActionClick(action) {
2189
+ this.onAction.emit(action);
2190
+ }
2191
+ searchActionClick(action, text) {
2192
+ this.onSearch.emit(text);
2193
+ }
2194
+ searchActionType(text) {
2195
+ this.onSearch.emit(this.searchInput$?.nativeElement.value);
2196
+ }
2197
+ routerLinkActionClick(action, relative = false) {
2198
+ if (action.outlet) {
2199
+ this.router$.navigate(['', { outlets: { formRightPane: action.link } }]);
2200
+ }
2201
+ else {
2202
+ this.router$.navigate([action.link]);
2203
+ }
2204
+ }
2205
+ }
2206
+ FormLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: FormLayoutComponent, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
2207
+ FormLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", components: [{ type: SidePaneComponent, selector: "lib-side-pane", inputs: ["visible"], outputs: ["onComplete"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
2208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: FormLayoutComponent, decorators: [{
2209
+ type: Component,
2210
+ 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" }]
2211
+ }], ctorParameters: function () { return [{ type: i1$1.Router }]; }, propDecorators: { searchInput$: [{
2212
+ type: ViewChild,
2213
+ args: ['search']
2214
+ }], title: [{
2215
+ type: Input
2216
+ }], searchPlaceholder: [{
2217
+ type: Input,
2218
+ args: ['search-placeholder']
2219
+ }], actions: [{
2220
+ type: Input
2221
+ }], subTitle: [{
2222
+ type: Input,
2223
+ args: ['sub-title']
2224
+ }], onAction: [{
2225
+ type: Output
2226
+ }], onSearch: [{
2227
+ type: Output
2228
+ }], onComplete: [{
2229
+ type: Output
2230
+ }] } });
2231
+
2232
+ class AuthCallbackComponent {
2233
+ constructor(authService, router) {
2234
+ this.authService = authService;
2235
+ this.router = router;
2236
+ this.status = 'παρακαλώ περιμένετε...';
2237
+ }
2238
+ ngOnInit() {
2239
+ this.authService.signinRedirectCallback().subscribe((user) => {
2240
+ if (user) {
2241
+ this.router.navigateByUrl(user.state?.url || '/');
2242
+ }
2243
+ });
2244
+ }
2245
+ }
2246
+ AuthCallbackComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AuthCallbackComponent, deps: [{ token: AuthService }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
2247
+ AuthCallbackComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AuthCallbackComponent, selector: "lib-auth-callback", ngImport: i0, template: "<lib-view-layout [title]=\"status\" [busy]=\"true\"></lib-view-layout>", components: [{ type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }] });
2248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AuthCallbackComponent, decorators: [{
2249
+ type: Component,
2250
+ args: [{ selector: 'lib-auth-callback', template: "<lib-view-layout [title]=\"status\" [busy]=\"true\"></lib-view-layout>" }]
2251
+ }], ctorParameters: function () { return [{ type: i2.AuthService, decorators: [{
2252
+ type: Inject,
2253
+ args: [AuthService]
2254
+ }] }, { type: i1$1.Router }]; } });
2255
+
2256
+ class AuthRenewComponent {
2257
+ constructor(authService, router) {
2258
+ this.authService = authService;
2259
+ this.router = router;
2260
+ }
2261
+ ngOnInit() {
2262
+ this.authService.signinSilentCallback().subscribe(user => {
2263
+ if (!user) {
2264
+ this.router.navigate(['/unauthorized']);
2265
+ }
2266
+ });
2267
+ }
2268
+ }
2269
+ AuthRenewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AuthRenewComponent, deps: [{ token: AuthService }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
2270
+ AuthRenewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AuthRenewComponent, selector: "lib-auth-renew", ngImport: i0, template: '', isInline: true });
2271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AuthRenewComponent, decorators: [{
2272
+ type: Component,
2273
+ args: [{
2274
+ selector: 'lib-auth-renew',
2275
+ template: ''
2276
+ }]
2277
+ }], ctorParameters: function () { return [{ type: i2.AuthService, decorators: [{
2278
+ type: Inject,
2279
+ args: [AuthService]
2280
+ }] }, { type: i1$1.Router }]; } });
2281
+
2282
+ class LoggedOutComponent {
2283
+ constructor(authService) {
2284
+ this.authService = authService;
2285
+ this.status = 'working on it, please give me a sec...';
2286
+ this.finished = false;
2287
+ }
2288
+ ngOnInit() {
2289
+ this.authService.removeUser().subscribe(() => {
2290
+ this.status = 'Thank you!';
2291
+ this.finished = true;
2292
+ });
2293
+ }
2294
+ }
2295
+ LoggedOutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: LoggedOutComponent, deps: [{ token: AuthService }], target: i0.ɵɵFactoryTarget.Component });
2296
+ LoggedOutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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>", components: [{ type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }] });
2297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: LoggedOutComponent, decorators: [{
2298
+ type: Component,
2299
+ 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>" }]
2300
+ }], ctorParameters: function () { return [{ type: i2.AuthService, decorators: [{
2301
+ type: Inject,
2302
+ args: [AuthService]
2303
+ }] }]; } });
2304
+
2305
+ class ErrorComponent {
2306
+ constructor() {
2307
+ this.error = 'Error!';
2308
+ }
2309
+ ngOnInit() {
2310
+ }
2311
+ }
2312
+ ErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2313
+ ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", components: [{ type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }] });
2314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ErrorComponent, decorators: [{
2315
+ type: Component,
2316
+ 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" }]
2317
+ }] });
2318
+
2319
+ class PageNotFoundComponent {
2320
+ constructor() { }
2321
+ ngOnInit() {
2322
+ }
2323
+ }
2324
+ PageNotFoundComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PageNotFoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2325
+ PageNotFoundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", components: [{ type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }] });
2326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PageNotFoundComponent, decorators: [{
2327
+ type: Component,
2328
+ 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" }]
2329
+ }], ctorParameters: function () { return []; } });
2330
+
2331
+ class UnauthorizedComponent {
2332
+ constructor() { }
2333
+ ngOnInit() { }
2334
+ }
2335
+ UnauthorizedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: UnauthorizedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2336
+ UnauthorizedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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", components: [{ type: ViewLayoutComponent, selector: "lib-view-layout", inputs: ["show-header", "fluid", "title", "icon", "actions", "busy", "search-placeholder", "view", "meta-items"], outputs: ["onAction", "onSearch"] }] });
2337
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: UnauthorizedComponent, decorators: [{
2338
+ type: Component,
2339
+ 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" }]
2340
+ }], ctorParameters: function () { return []; } });
2341
+
2342
+ class AddressPipe {
2343
+ transform(value) {
2344
+ if (value === undefined || null || '') {
2345
+ return '';
2346
+ }
2347
+ // tslint:disable-next-line:no-non-null-assertion
2348
+ return `${value.street || ''}${value.streetNumber ? ' ' + value.streetNumber : ''}${value.city ? ', ' + value.city : ''}${+value.postalCode ? ', ' + +value.postalCode : ''}`;
2349
+ }
2350
+ }
2351
+ AddressPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AddressPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2352
+ AddressPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AddressPipe, name: "address", pure: false });
2353
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AddressPipe, decorators: [{
2354
+ type: Pipe,
2355
+ args: [{
2356
+ name: 'address',
2357
+ pure: false
2358
+ }]
2359
+ }] });
2360
+
2361
+ class DurationFormatPipe {
2362
+ transform(value, arg1, arg2) {
2363
+ let days;
2364
+ let seconds;
2365
+ let minutes;
2366
+ let hours;
2367
+ if (arg1 === 'ms' && arg2 === 'hhmmss') {
2368
+ seconds = Math.floor((value / 1000) % 60);
2369
+ minutes = Math.floor(((value / (1000 * 60)) % 60));
2370
+ hours = Math.floor((value / (1000 * 60 * 60)));
2371
+ return this.format(arg2, seconds, minutes, hours, days);
2372
+ }
2373
+ else if (arg1 === 's' && arg2 === 'hhmmss') {
2374
+ seconds = Math.floor((value % 60));
2375
+ minutes = Math.floor(((value / 60) % 60));
2376
+ hours = Math.floor(((value / 60) / 60));
2377
+ return this.format(arg2, seconds, minutes, hours, days);
2378
+ }
2379
+ else if (arg1 === 'ms' && (arg2 === 'ddhhmmss' || arg2 === 'ddhhmmssLong')) {
2380
+ seconds = Math.floor(((value / 1000) % 60));
2381
+ minutes = Math.floor((value / (1000 * 60) % 60));
2382
+ hours = Math.floor((value / (1000 * 60 * 60) % 24));
2383
+ days = Math.floor((value / (1000 * 60 * 60 * 24)));
2384
+ return this.format(arg2, seconds, minutes, hours, days);
2385
+ }
2386
+ else if (arg1 === 's' && (arg2 === 'ddhhmmss' || arg2 === 'ddhhmmssLong')) {
2387
+ seconds = Math.floor(value % 60);
2388
+ minutes = Math.floor(((value / 60) % 60));
2389
+ hours = Math.floor(((value / 60) / 60) % 24);
2390
+ days = Math.floor((((value / 60) / 60) / 24));
2391
+ return this.format(arg2, seconds, minutes, hours, days);
2392
+ }
2393
+ else {
2394
+ return value;
2395
+ }
2396
+ }
2397
+ format(arg2, seconds, minutes, hours, days) {
2398
+ (days < 10) ? days = '0' + days : days;
2399
+ (hours < 10) ? hours = '0' + hours : hours;
2400
+ (minutes < 10) ? minutes = '0' + minutes : minutes;
2401
+ (seconds < 10) ? seconds = '0' + seconds : seconds;
2402
+ switch (arg2) {
2403
+ case 'hhmmss':
2404
+ return `${hours}:${minutes}:${seconds}`;
2405
+ case 'ddhhmmss':
2406
+ return `${days}d, ${hours}h, ${minutes}m, ${seconds}s`;
2407
+ case 'ddhhmmssLong':
2408
+ return `${days} days, ${hours} hours, ${minutes} minutes, ${seconds} seconds`;
2409
+ }
2410
+ return undefined;
2411
+ }
2412
+ }
2413
+ DurationFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DurationFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2414
+ DurationFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DurationFormatPipe, name: "durationFormat", pure: false });
2415
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DurationFormatPipe, decorators: [{
2416
+ type: Pipe,
2417
+ args: [{
2418
+ name: 'durationFormat',
2419
+ pure: false
2420
+ }]
2421
+ }] });
2422
+
2423
+ class BaseListComponent {
2424
+ constructor(route$, router$) {
2425
+ this.route$ = route$;
2426
+ this.router$ = router$;
2427
+ this.items = null;
2428
+ this.view = ListViewType.Tiles;
2429
+ this.title = null;
2430
+ this.actions = [];
2431
+ this.loaderItems = [1, 2, 3, 4, 5];
2432
+ this.page = 1;
2433
+ this.pageSize = 20;
2434
+ this.count = 0;
2435
+ this.sort = '';
2436
+ this.sortdir = '-';
2437
+ this.search = '';
2438
+ this.sortOptions = [];
2439
+ this.metaItems = [];
2440
+ }
2441
+ ngOnDestroy() {
2442
+ if (this.routeSub$) {
2443
+ this.routeSub$.unsubscribe();
2444
+ }
2445
+ }
2446
+ getViewActions() {
2447
+ const actions = [
2448
+ new ViewAction('search', null, null, Icons.Search, 'αναζήτηση'),
2449
+ new ViewAction('refresh', null, null, Icons.Refresh, 'ανανέωση στοιχείων')
2450
+ ];
2451
+ if (this.newItemLink) {
2452
+ actions.push(new RouterViewAction(Icons.Add, this.newItemLink, 'rightpane', 'προσθήκη νέας εγγραφής;'));
2453
+ }
2454
+ return of(actions);
2455
+ }
2456
+ ngOnInit() {
2457
+ this.getViewActions().subscribe(actions => {
2458
+ this.actions = actions || [];
2459
+ });
2460
+ this.metaItems = [
2461
+ { key: 'count', icon: Icons.ItemsCount, text: 'παρακαλώ περιμένετε...' }
2462
+ ];
2463
+ // disabled external route changes monitoring due to sync issues - which is bad :) - refresh from url will not work
2464
+ // until i come up with a solution...
2465
+ this.routeSub$ = this.route$.queryParamMap.subscribe(params => {
2466
+ if (params.keys.length === 0) {
2467
+ return;
2468
+ }
2469
+ // changing the view mode does not require reloading...
2470
+ this.view = params.get('view') || ListViewType.Tiles;
2471
+ // console.log('route changes ', this.view);
2472
+ // if (params.get('search') !== this.search) {
2473
+ // this.searchChanged(params.get('search'));
2474
+ // }
2475
+ // const page = +(params.get('page') || 1);
2476
+ // if (page !== this.page) {
2477
+ // this.page = page;
2478
+ // }
2479
+ // const size = +(params.get('pagesize') || 20);
2480
+ // if (this.pageSize !== size) {
2481
+ // this.pageSize = size;
2482
+ // }
2483
+ // if (params.get('search') !== this.search) {
2484
+ // this.search = params.get('search');
2485
+ // }
2486
+ // if (params.get('sort') !== this.sort) {
2487
+ // this.sort = params.get('sort');
2488
+ // }
2489
+ // if (params.get('sortdir') !== this.sortdir) {
2490
+ // this.sortdir = params.get('sortdir');
2491
+ // }
2492
+ });
2493
+ // just to sync params in query
2494
+ this.setRouteParams(true);
2495
+ this.load();
2496
+ }
2497
+ setRouteParams(locationChange = false) {
2498
+ this.router$.navigate([], {
2499
+ relativeTo: this.route$, queryParams: {
2500
+ view: this.view,
2501
+ page: this.page,
2502
+ pagesize: this.pageSize,
2503
+ search: this.search,
2504
+ sort: this.sort,
2505
+ dir: this.sortdir
2506
+ }, queryParamsHandling: 'merge', skipLocationChange: locationChange
2507
+ });
2508
+ }
2509
+ actionHandler($event) {
2510
+ // console.log('BaseListComponent actionHandler', $event);
2511
+ if ($event.key === 'refresh') {
2512
+ this.refresh();
2513
+ }
2514
+ }
2515
+ load() {
2516
+ // console.log('BaseListComponent LOAD');
2517
+ this.count = 0;
2518
+ this.items = null;
2519
+ this.loadItems().subscribe(result => {
2520
+ this.count = result ? result.count : 0;
2521
+ this.items = result?.items;
2522
+ this.updateHeaderMeta();
2523
+ }, err => {
2524
+ this.count = 0;
2525
+ this.items = null;
2526
+ this.updateHeaderMeta();
2527
+ });
2528
+ }
2529
+ updateHeaderMeta() {
2530
+ const count = this.metaItems?.filter(m => m.key === 'count')[0];
2531
+ if (count) {
2532
+ this.count === 1 ? count.text = `${this.count} αποτέλεσμα` : count.text = `${this.count} αποτελέσματα`;
2533
+ }
2534
+ }
2535
+ clear() {
2536
+ this.count = 0;
2537
+ this.page = 1;
2538
+ this.items = null;
2539
+ this.search = null;
2540
+ this.setRouteParams();
2541
+ this.load();
2542
+ }
2543
+ refresh() {
2544
+ this.count = 0;
2545
+ this.page = 1;
2546
+ this.items = null;
2547
+ this.setRouteParams();
2548
+ this.load();
2549
+ }
2550
+ pageChanged(page) {
2551
+ if (this.page !== page) {
2552
+ this.page = page;
2553
+ this.setRouteParams();
2554
+ this.load();
2555
+ }
2556
+ }
2557
+ pageSizeChanged(pageSize) {
2558
+ if (this.pageSize !== pageSize) {
2559
+ this.pageSize = pageSize;
2560
+ this.page = 1;
2561
+ this.setRouteParams();
2562
+ this.refresh();
2563
+ }
2564
+ }
2565
+ sortChanged(sort) {
2566
+ // console.log('base-list sortChanged', sort);
2567
+ if (this.sort !== sort) {
2568
+ this.page = 1;
2569
+ this.sort = sort;
2570
+ this.setRouteParams();
2571
+ this.refresh();
2572
+ }
2573
+ }
2574
+ sortdirChanged(sortdir) {
2575
+ if (this.sortdir !== sortdir) {
2576
+ this.page = 1;
2577
+ this.sortdir = sortdir;
2578
+ this.setRouteParams();
2579
+ this.refresh();
2580
+ }
2581
+ }
2582
+ searchChanged(searchText) {
2583
+ this.count = 0;
2584
+ this.page = 1;
2585
+ this.items = null;
2586
+ this.search = searchText;
2587
+ this.setRouteParams();
2588
+ this.load();
2589
+ }
2590
+ }
2591
+ BaseListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: BaseListComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
2592
+ BaseListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: BaseListComponent, selector: "ng-component", ngImport: i0, template: '', isInline: true });
2593
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: BaseListComponent, decorators: [{
2594
+ type: Component,
2595
+ args: [{ template: '' }]
2596
+ }], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }]; } });
2597
+
2598
+ const cssClassNames = {
2599
+ backdrop: 'modal-backdrop',
2600
+ show: 'show',
2601
+ fade: 'fade',
2602
+ modalOpen: 'modal-open'
2603
+ };
2604
+ const animationTime = {
2605
+ backdrop: 150,
2606
+ modal: 300,
2607
+ };
2608
+
2609
+ /**
2610
+ * Background layer for modals.
2611
+ * Override class name to theme it.
2612
+ * @see {@link cssClassNames}
2613
+ * @internal
2614
+ */
2615
+ class ModalBackdropComponent {
2616
+ constructor(element, renderer) {
2617
+ this.element = element;
2618
+ this.renderer = renderer;
2619
+ this.animationsEnabled = false;
2620
+ }
2621
+ ngOnInit() {
2622
+ if (this.animationsEnabled) {
2623
+ this.renderer.addClass(this.element.nativeElement, cssClassNames.fade);
2624
+ this.reflow(this.element.nativeElement);
2625
+ }
2626
+ this.renderer.addClass(this.element.nativeElement, cssClassNames.show);
2627
+ }
2628
+ hide() {
2629
+ this.renderer.removeClass(this.element.nativeElement, cssClassNames.show);
2630
+ setTimeout(() => this.backdropLoader?.hide(), this.animationsEnabled ? animationTime.backdrop : 0);
2631
+ }
2632
+ reflow(element) {
2633
+ ((bs) => bs)(element.offsetHeight);
2634
+ }
2635
+ }
2636
+ ModalBackdropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModalBackdropComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
2637
+ ModalBackdropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: ModalBackdropComponent, selector: "lib-modal-backdrop", host: { classAttribute: "modal-backdrop" }, ngImport: i0, template: '', isInline: true, encapsulation: i0.ViewEncapsulation.None });
2638
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModalBackdropComponent, decorators: [{
2639
+ type: Component,
2640
+ args: [{
2641
+ selector: 'lib-modal-backdrop',
2642
+ encapsulation: ViewEncapsulation.None,
2643
+ template: '',
2644
+ host: {
2645
+ class: cssClassNames.backdrop,
2646
+ },
2647
+ }]
2648
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; } });
2649
+
2650
+ /**
2651
+ * Modals option can be passed to a specific modal from {@link ModalService.show} or
2652
+ * set globbaly using the injection token {@link MODAL_CONFIG_DEFAULT_OVERRIDE}.
2653
+ * @remarks
2654
+ * Modal specific options are merged with global options.
2655
+ * @see {@link modalConfigDefaults} for defaults.
2656
+ * @public
2657
+ */
2658
+ class ModalOptions {
2659
+ }
2660
+ ModalOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModalOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2661
+ ModalOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModalOptions });
2662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModalOptions, decorators: [{
2663
+ type: Injectable
2664
+ }] });
2665
+ /**
2666
+ * Default option values.
2667
+ */
2668
+ const modalConfigDefaults = {
2669
+ backdrop: true,
2670
+ keyboard: true,
2671
+ show: false,
2672
+ ignoreBackdropClick: false,
2673
+ class: '',
2674
+ animated: true,
2675
+ initialState: {},
2676
+ closeInterceptor: void 0,
2677
+ };
2678
+ /**
2679
+ * Use this injection token to set global options.
2680
+ */
2681
+ const MODAL_CONFIG_DEFAULT_OVERRIDE = new InjectionToken('override-default-config');
2682
+
2683
+ /**
2684
+ * Modal container component.
2685
+ * @remarks
2686
+ * All dynamic content `TemplateRef` or `Component` case will be drawn inside this.
2687
+ * You can override css classes to theme it {@link cssClassNames}
2688
+ * @internal
2689
+ */
2690
+ class ModalContainerComponent {
2691
+ constructor(options, _element, renderer) {
2692
+ this._element = _element;
2693
+ this.renderer = renderer;
2694
+ this.isShown = false;
2695
+ this.animationsEnabled = false;
2696
+ this.isModalHiding = false;
2697
+ this.clickStartedInContent = false;
2698
+ this.config = Object.assign({}, options);
2699
+ }
2700
+ ngOnInit() {
2701
+ if (this.animationsEnabled) {
2702
+ this.renderer.addClass(this._element.nativeElement, cssClassNames.fade);
2703
+ }
2704
+ this.renderer.setStyle(this._element.nativeElement, 'display', 'block');
2705
+ setTimeout(() => {
2706
+ this.isShown = true;
2707
+ this.renderer.addClass(this._element.nativeElement, cssClassNames.show);
2708
+ }, this.animationsEnabled ? animationTime.backdrop : 0);
2709
+ if (this._element.nativeElement) {
2710
+ this._element.nativeElement.focus();
2711
+ }
2712
+ }
2713
+ onClickStarted(event) {
2714
+ this.clickStartedInContent = event.target !== this._element.nativeElement;
2715
+ }
2716
+ onClickStop(event) {
2717
+ const clickedInBackdrop = event.target === this._element.nativeElement && !this.clickStartedInContent;
2718
+ if (this.config.ignoreBackdropClick || this.config.backdrop === 'static' || !clickedInBackdrop) {
2719
+ this.clickStartedInContent = false;
2720
+ return;
2721
+ }
2722
+ this.hide();
2723
+ }
2724
+ onPopState() {
2725
+ this.hide();
2726
+ }
2727
+ onEsc(event) {
2728
+ if (!this.isShown) {
2729
+ return;
2730
+ }
2731
+ if (event.keyCode === 27 || event.key === 'Escape' || event.key === 'Esc') {
2732
+ event.preventDefault();
2733
+ }
2734
+ if (this.config.keyboard && this.config.id === this.modalService?.getActiveModal().config.id) {
2735
+ this.hide();
2736
+ }
2737
+ }
2738
+ ngOnDestroy() {
2739
+ if (this.isShown) {
2740
+ this._hide();
2741
+ }
2742
+ }
2743
+ hide(result) {
2744
+ if (this.isModalHiding || !this.isShown) {
2745
+ return;
2746
+ }
2747
+ if (this.config.closeInterceptor) {
2748
+ this.config.closeInterceptor().then(() => this._hide(), () => undefined);
2749
+ return;
2750
+ }
2751
+ this._hide(result);
2752
+ }
2753
+ _hide(result) {
2754
+ this.isModalHiding = true;
2755
+ this.renderer.removeClass(this._element.nativeElement, cssClassNames.show);
2756
+ setTimeout(() => {
2757
+ this.isShown = false;
2758
+ this.modalService?.hide(this.config.id, result);
2759
+ this.isModalHiding = false;
2760
+ }, this.animationsEnabled ? animationTime.modal : 0);
2761
+ }
2762
+ }
2763
+ ModalContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModalContainerComponent, deps: [{ token: ModalOptions }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
2764
+ ModalContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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: `
2765
+ <div [class]="'modal-dialog' + (config.class ? ' ' + config.class : '')" role="document" focusTrap>
2766
+ <div class="modal-content">
2767
+ <ng-content></ng-content>
2768
+ </div>
2769
+ </div>
2770
+ `, isInline: true });
2771
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModalContainerComponent, decorators: [{
2772
+ type: Component,
2773
+ args: [{
2774
+ selector: 'lib-modal-container',
2775
+ template: `
2776
+ <div [class]="'modal-dialog' + (config.class ? ' ' + config.class : '')" role="document" focusTrap>
2777
+ <div class="modal-content">
2778
+ <ng-content></ng-content>
2779
+ </div>
2780
+ </div>
2781
+ `,
2782
+ host: {
2783
+ class: 'modal',
2784
+ role: 'dialog',
2785
+ tabindex: '-1',
2786
+ '[attr.aria-modal]': 'true',
2787
+ '[attr.aria-labelledby]': 'config.ariaLabelledBy',
2788
+ '[attr.aria-describedby]': 'config.ariaDescribedby',
2789
+ },
2790
+ }]
2791
+ }], ctorParameters: function () { return [{ type: ModalOptions }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { onClickStarted: [{
2792
+ type: HostListener,
2793
+ args: ['mousedown', ['$event']]
2794
+ }], onClickStop: [{
2795
+ type: HostListener,
2796
+ args: ['click', ['$event']]
2797
+ }], onPopState: [{
2798
+ type: HostListener,
2799
+ args: ['window:popstate']
2800
+ }], onEsc: [{
2801
+ type: HostListener,
2802
+ args: ['window:keydown.esc', ['$event']]
2803
+ }] } });
2804
+
2805
+ /**
2806
+ * Modal class.
2807
+ * @remarks
2808
+ * This is returned from {@link ModalService.show}.
2809
+ * @public
2810
+ */
2811
+ class Modal {
2812
+ constructor() {
2813
+ /**
2814
+ * Hides the modal
2815
+ * @param result - A result to the observers.
2816
+ */
2817
+ this.hide = () => void 0;
2818
+ /**
2819
+ * Sets new class to modal window.
2820
+ */
2821
+ this.setClass = () => void 0;
2822
+ }
2823
+ }
2824
+ Modal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: Modal, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2825
+ Modal.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: Modal });
2826
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: Modal, decorators: [{
2827
+ type: Injectable
2828
+ }] });
2829
+
2830
+ /**
2831
+ * A service for using modals.
2832
+ *
2833
+ * @public
2834
+ */
2835
+ class ModalService {
2836
+ constructor(clf, rendererFactory, document, modalDefaultOption) {
2837
+ this.clf = clf;
2838
+ this.document = document;
2839
+ this.onBeforeShow = new Subject();
2840
+ this.onShown = new Subject();
2841
+ this.onBeforeHide = new Subject();
2842
+ this.onHidden = new Subject();
2843
+ this.loaders = [];
2844
+ this.modalsCount = 0;
2845
+ this.initialPadding = '0px';
2846
+ this.backdropLoader = this.clf.createLoader();
2847
+ this.defaultConfig = { ...modalConfigDefaults, ...modalDefaultOption };
2848
+ this.renderer = rendererFactory.createRenderer(null, null);
2849
+ }
2850
+ ngOnDestroy() {
2851
+ this.loaders.forEach((loader) => loader.instance?.hide());
2852
+ }
2853
+ /**
2854
+ * Opens a new modal.
2855
+ *
2856
+ * @param content - `Component` or `TemplateRef` type.
2857
+ * @param config - Specific {@link ModalOptions | options} for this modal. Global and specific options are merged.
2858
+ * @returns An instance of {@link Modal}
2859
+ */
2860
+ show(content, config) {
2861
+ this.modalsCount++;
2862
+ const combinedConfig = { ...this.defaultConfig, ...config };
2863
+ combinedConfig.id = config?.id || new Date().getUTCMilliseconds();
2864
+ this.createLoaders();
2865
+ this.addBodyPadding();
2866
+ if (this.modalsCount === 1) {
2867
+ this.renderer.addClass(this.document.body, cssClassNames.modalOpen);
2868
+ }
2869
+ this.showBackdrop(combinedConfig);
2870
+ return this.showModal(content, combinedConfig);
2871
+ }
2872
+ /**
2873
+ * Hide an active modal.
2874
+ * @param id - Id of modal to hide. If not provided all active modals are hidden.
2875
+ * @param result - A result to be sent to observers.
2876
+ */
2877
+ hide(id, result) {
2878
+ if (this.modalsCount === 1 || id == null) {
2879
+ this.hideBackdrop();
2880
+ this.revertScrollbar();
2881
+ this.renderer.removeClass(this.document.body, cssClassNames.modalOpen);
2882
+ }
2883
+ this.modalsCount = this.modalsCount >= 1 && id != null ? this.modalsCount - 1 : 0;
2884
+ setTimeout(() => {
2885
+ this.hideModal(id, result);
2886
+ this.removeLoaders(id);
2887
+ },
2888
+ //Bug
2889
+ //Should use combined config but for the moment is not possible to pass it this parameter.
2890
+ //If config is an instance variable then every newly opened modal will override the config
2891
+ //resulting in opened modals to get a new configuration
2892
+ this.defaultConfig.animated ? animationTime.backdrop : 0);
2893
+ }
2894
+ getActiveModal() {
2895
+ return this.loaders[this.modalsCount - 1].instance;
2896
+ }
2897
+ showModal(content, combinedConfig) {
2898
+ const modalLoader = this.loaders[this.loaders.length - 1];
2899
+ if (combinedConfig && combinedConfig.providers) {
2900
+ combinedConfig.providers.forEach((provider) => modalLoader.provide(provider));
2901
+ }
2902
+ const modal = new Modal();
2903
+ const modalContainerRef = modalLoader
2904
+ .provide({ provide: ModalOptions, useValue: combinedConfig })
2905
+ .provide({ provide: Modal, useValue: modal })
2906
+ .attach(ModalContainerComponent)
2907
+ .to('body');
2908
+ modal.setClass = (newClass) => {
2909
+ if (modalContainerRef.instance) {
2910
+ modalContainerRef.instance.config.class = newClass;
2911
+ }
2912
+ };
2913
+ modal.onBeforeHide = new Subject();
2914
+ modal.onHidden = new Subject();
2915
+ this.copyEvent(modalLoader.onBeforeHide, modal.onBeforeHide);
2916
+ this.copyEvent(modalLoader.onHidden, modal.onHidden);
2917
+ modalContainerRef.show({
2918
+ content,
2919
+ animationsEnabled: combinedConfig.animated,
2920
+ initialState: combinedConfig.initialState,
2921
+ modalService: this,
2922
+ id: combinedConfig.id,
2923
+ });
2924
+ if (modalContainerRef.instance) {
2925
+ modalContainerRef.instance.level = this.modalsCount;
2926
+ modal.content = modalLoader.getInnerComponent();
2927
+ modal.id = modalContainerRef.instance.config?.id;
2928
+ modal.hide = (res) => modalContainerRef.instance?.hide(res);
2929
+ }
2930
+ return modal;
2931
+ }
2932
+ hideModal(id, result) {
2933
+ if (id != null) {
2934
+ const indexToRemove = this.loaders.findIndex((loader) => loader.instance?.config.id === id);
2935
+ const modalLoader = this.loaders[indexToRemove];
2936
+ if (modalLoader) {
2937
+ modalLoader.hide(id, result);
2938
+ }
2939
+ }
2940
+ else {
2941
+ this.loaders.forEach((loader) => {
2942
+ if (loader.instance) {
2943
+ loader.hide(loader.instance.config.id);
2944
+ }
2945
+ });
2946
+ }
2947
+ }
2948
+ showBackdrop(combinedConfig) {
2949
+ const isBackdropEnabled = combinedConfig.backdrop === true || combinedConfig.backdrop === 'static';
2950
+ const isBackdropInDOM = this.backdropRef != null;
2951
+ if (isBackdropEnabled && !isBackdropInDOM) {
2952
+ this.backdropLoader
2953
+ .attach(ModalBackdropComponent)
2954
+ .to('body')
2955
+ .show({ animationsEnabled: combinedConfig.animated, backdropLoader: this.backdropLoader });
2956
+ this.backdropRef = this.backdropLoader.componentRef;
2957
+ }
2958
+ }
2959
+ hideBackdrop() {
2960
+ if (!this.backdropRef) {
2961
+ return;
2962
+ }
2963
+ this.backdropRef.instance.hide();
2964
+ this.backdropRef = void 0;
2965
+ }
2966
+ removeLoaders(id) {
2967
+ if (id != null) {
2968
+ const indexToRemove = this.loaders.findIndex((loader) => loader.instance?.config.id === id);
2969
+ if (indexToRemove >= 0) {
2970
+ this.loaders.splice(indexToRemove, 1);
2971
+ this.loaders.forEach((loader, i) => {
2972
+ if (loader.instance) {
2973
+ loader.instance.level = i + 1;
2974
+ }
2975
+ });
2976
+ }
2977
+ }
2978
+ else {
2979
+ this.loaders.splice(0, this.loaders.length);
2980
+ }
2981
+ }
2982
+ addBodyPadding() {
2983
+ if (this.modalsCount === 1) {
2984
+ const width = this.getScrollbarWidth();
2985
+ if (this.isScrollBarPresent(width)) {
2986
+ this.initialPadding = this.document.body.style.paddingRight;
2987
+ const actualPadding = parseFloat(window.getComputedStyle(this.document.body).paddingRight);
2988
+ this.document.body.style.paddingRight = `${actualPadding + width}px`;
2989
+ }
2990
+ }
2991
+ }
2992
+ revertScrollbar() {
2993
+ this.document.body.style.paddingRight = this.initialPadding;
2994
+ }
2995
+ getScrollbarWidth() {
2996
+ const measurer = this.document.createElement('div');
2997
+ measurer.className = 'modal-scrollbar-measure';
2998
+ const body = this.document.body;
2999
+ body.appendChild(measurer);
3000
+ const width = measurer.getBoundingClientRect().width - measurer.clientWidth;
3001
+ body.removeChild(measurer);
3002
+ return width;
3003
+ }
3004
+ isScrollBarPresent(scrollbarWidth) {
3005
+ const rect = this.document.body.getBoundingClientRect();
3006
+ const bodyToViewportGap = window.innerWidth - (rect.left + rect.right);
3007
+ const uncertainty = 0.1 * scrollbarWidth;
3008
+ return bodyToViewportGap >= scrollbarWidth - uncertainty;
3009
+ }
3010
+ createLoaders() {
3011
+ const loader = this.clf.createLoader();
3012
+ this.copyEvent(loader.onBeforeShow, this.onBeforeShow);
3013
+ this.copyEvent(loader.onShown, this.onShown);
3014
+ this.copyEvent(loader.onBeforeHide, this.onBeforeHide);
3015
+ this.copyEvent(loader.onHidden, this.onHidden);
3016
+ this.loaders.push(loader);
3017
+ }
3018
+ copyEvent(from, to) {
3019
+ from.subscribe((data) => {
3020
+ to.next(data);
3021
+ });
3022
+ }
3023
+ }
3024
+ ModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModalService, deps: [{ token: ComponentLoaderFactory }, { token: i0.RendererFactory2 }, { token: DOCUMENT }, { token: MODAL_CONFIG_DEFAULT_OVERRIDE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3025
+ ModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModalService });
3026
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ModalService, decorators: [{
3027
+ type: Injectable
3028
+ }], ctorParameters: function () { return [{ type: ComponentLoaderFactory }, { type: i0.RendererFactory2 }, { type: undefined, decorators: [{
3029
+ type: Inject,
3030
+ args: [DOCUMENT]
3031
+ }] }, { type: ModalOptions, decorators: [{
3032
+ type: Optional
3033
+ }, {
3034
+ type: Inject,
3035
+ args: [MODAL_CONFIG_DEFAULT_OVERRIDE]
3036
+ }] }]; } });
3037
+
3038
+ class IndiceComponentsModule {
3039
+ // tslint:disable-next-line:typedef
3040
+ static forRoot() {
3041
+ return {
3042
+ ngModule: IndiceComponentsModule,
3043
+ providers: [ToasterService]
3044
+ };
3045
+ }
3046
+ }
3047
+ IndiceComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: IndiceComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3048
+ IndiceComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: IndiceComponentsModule, declarations: [
3049
+ // diectives
3050
+ ClickOutsideDirective,
3051
+ DynamicComponentHostDirective,
3052
+ // controls
3053
+ DropDownMenuComponent,
3054
+ PagerComponent,
3055
+ ListViewComponent,
3056
+ ListColumnComponent,
3057
+ ListTileComponent,
3058
+ ListDetailsSectionComponent,
3059
+ ListViewEmptyStateComponent,
3060
+ SkeletonLoaderComponent,
3061
+ CollapsiblePanelComponent,
3062
+ KpiTileComponent,
3063
+ SidePaneComponent,
3064
+ DatepickerComponent,
3065
+ AvatarInitialsComponent,
3066
+ ToggleComponent,
3067
+ // Toaster
3068
+ ToasterContainerComponent,
3069
+ ToasterComponent,
3070
+ // shell layout
3071
+ ShellLayoutComponent,
3072
+ ShellHeaderComponent,
3073
+ ShellFooterComponent,
3074
+ // view layouts
3075
+ ViewLayoutComponent,
3076
+ SideViewLayoutComponent,
3077
+ ModelViewLayoutComponent,
3078
+ FormLayoutComponent,
3079
+ // pages (common)
3080
+ AuthCallbackComponent,
3081
+ AuthRenewComponent,
3082
+ LoggedOutComponent,
3083
+ ErrorComponent,
3084
+ PageNotFoundComponent,
3085
+ UnauthorizedComponent,
3086
+ // pipes
3087
+ AddressPipe,
3088
+ DurationFormatPipe,
3089
+ NavLinksListComponent,
3090
+ NotificationsIndicatorComponent], imports: [CommonModule,
3091
+ RouterModule,
3092
+ IndiceAuthModule], exports: [ClickOutsideDirective,
3093
+ DropDownMenuComponent,
3094
+ PagerComponent,
3095
+ ListViewComponent,
3096
+ ListColumnComponent,
3097
+ ListTileComponent,
3098
+ ListDetailsSectionComponent,
3099
+ ListViewEmptyStateComponent,
3100
+ KpiTileComponent,
3101
+ SkeletonLoaderComponent,
3102
+ ShellLayoutComponent,
3103
+ ShellHeaderComponent,
3104
+ ShellFooterComponent,
3105
+ ViewLayoutComponent,
3106
+ SideViewLayoutComponent,
3107
+ ModelViewLayoutComponent,
3108
+ FormLayoutComponent,
3109
+ AuthCallbackComponent,
3110
+ AuthRenewComponent,
3111
+ LoggedOutComponent,
3112
+ ErrorComponent,
3113
+ PageNotFoundComponent,
3114
+ UnauthorizedComponent,
3115
+ AddressPipe,
3116
+ DurationFormatPipe,
3117
+ CollapsiblePanelComponent,
3118
+ SidePaneComponent,
3119
+ DatepickerComponent,
3120
+ ToasterContainerComponent,
3121
+ ToasterComponent,
3122
+ AvatarInitialsComponent,
3123
+ ToggleComponent] });
3124
+ IndiceComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: IndiceComponentsModule, imports: [[
3125
+ CommonModule,
3126
+ RouterModule,
3127
+ IndiceAuthModule
3128
+ ]] });
3129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: IndiceComponentsModule, decorators: [{
3130
+ type: NgModule,
3131
+ args: [{
3132
+ declarations: [
3133
+ // diectives
3134
+ ClickOutsideDirective,
3135
+ DynamicComponentHostDirective,
3136
+ // controls
3137
+ DropDownMenuComponent,
3138
+ PagerComponent,
3139
+ ListViewComponent,
3140
+ ListColumnComponent,
3141
+ ListTileComponent,
3142
+ ListDetailsSectionComponent,
3143
+ ListViewEmptyStateComponent,
3144
+ SkeletonLoaderComponent,
3145
+ CollapsiblePanelComponent,
3146
+ KpiTileComponent,
3147
+ SidePaneComponent,
3148
+ DatepickerComponent,
3149
+ AvatarInitialsComponent,
3150
+ ToggleComponent,
3151
+ // Toaster
3152
+ ToasterContainerComponent,
3153
+ ToasterComponent,
3154
+ // shell layout
3155
+ ShellLayoutComponent,
3156
+ ShellHeaderComponent,
3157
+ ShellFooterComponent,
3158
+ // view layouts
3159
+ ViewLayoutComponent,
3160
+ SideViewLayoutComponent,
3161
+ ModelViewLayoutComponent,
3162
+ FormLayoutComponent,
3163
+ // pages (common)
3164
+ AuthCallbackComponent,
3165
+ AuthRenewComponent,
3166
+ LoggedOutComponent,
3167
+ ErrorComponent,
3168
+ PageNotFoundComponent,
3169
+ UnauthorizedComponent,
3170
+ // pipes
3171
+ AddressPipe,
3172
+ DurationFormatPipe,
3173
+ NavLinksListComponent,
3174
+ NotificationsIndicatorComponent
3175
+ ],
3176
+ imports: [
3177
+ CommonModule,
3178
+ RouterModule,
3179
+ IndiceAuthModule
3180
+ ],
3181
+ exports: [
3182
+ ClickOutsideDirective,
3183
+ DropDownMenuComponent,
3184
+ PagerComponent,
3185
+ ListViewComponent,
3186
+ ListColumnComponent,
3187
+ ListTileComponent,
3188
+ ListDetailsSectionComponent,
3189
+ ListViewEmptyStateComponent,
3190
+ KpiTileComponent,
3191
+ SkeletonLoaderComponent,
3192
+ ShellLayoutComponent,
3193
+ ShellHeaderComponent,
3194
+ ShellFooterComponent,
3195
+ ViewLayoutComponent,
3196
+ SideViewLayoutComponent,
3197
+ ModelViewLayoutComponent,
3198
+ FormLayoutComponent,
3199
+ AuthCallbackComponent,
3200
+ AuthRenewComponent,
3201
+ LoggedOutComponent,
3202
+ ErrorComponent,
3203
+ PageNotFoundComponent,
3204
+ UnauthorizedComponent,
3205
+ AddressPipe,
3206
+ DurationFormatPipe,
3207
+ CollapsiblePanelComponent,
3208
+ SidePaneComponent,
3209
+ DatepickerComponent,
3210
+ ToasterContainerComponent,
3211
+ ToasterComponent,
3212
+ AvatarInitialsComponent,
3213
+ ToggleComponent
3214
+ ]
3215
+ }]
3216
+ }] });
3217
+
3218
+ // Public API Surface of @indice/ng-components
3219
+
3220
+ /**
3221
+ * Generated bundle index. Do not edit.
3222
+ */
3223
+
3224
+ export { APP_LINKS, APP_NOTIFICATIONS, AddressPipe, AuthCallbackComponent, AuthRenewComponent, AvatarInitialsComponent, BaseListComponent, ClickOutsideDirective, CollapsiblePanelComponent, ComponentLoaderFactory, DatepickerComponent, DefaultShellConfig, DropDownMenuComponent, DurationFormatPipe, ErrorComponent, ExternalNavLink, FormLayoutComponent, FragmentNavLink, HeaderMetaItem, Icons, IndiceComponentsModule, KpiTileComponent, 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, SidePaneComponent, SidePaneOverlayType, SidePaneSize, SideViewLayoutComponent, SkeletonLoaderComponent, SwitchViewAction, ToastType, ToasterComponent, ToasterContainerComponent, ToasterService, ToggleComponent, UnauthorizedComponent, ViewAction, ViewLayoutComponent };
3225
+ //# sourceMappingURL=indice-ng-components.mjs.map