@indice/ng-components 0.2.166 → 0.2.167

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