@indice/ng-components 0.2.160-beta.4 → 0.2.160-beta.7

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