@indice/ng-components 0.2.146 → 0.2.147

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