@indice/ng-components 0.2.153-beta.8 → 0.2.154

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