@firestitch/system 9.2.2 → 12.0.0

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 (149) hide show
  1. package/app/components/api-log/api-log.component.d.ts +13 -10
  2. package/app/components/api-log/index.d.ts +1 -0
  3. package/app/components/api-logs/api-logs.component.d.ts +23 -18
  4. package/app/components/api-logs/index.d.ts +1 -0
  5. package/app/components/cron/cron.component.d.ts +24 -21
  6. package/app/components/cron/index.d.ts +1 -1
  7. package/app/components/cron-log/cron-log.component.d.ts +12 -9
  8. package/app/components/cron-log/index.d.ts +1 -1
  9. package/app/components/crons/crons.component.d.ts +38 -33
  10. package/app/components/crons/index.d.ts +1 -0
  11. package/app/components/dashboard/dashboard.component.d.ts +30 -25
  12. package/app/components/dashboard/index.d.ts +1 -0
  13. package/app/components/file-manager/file-manager.component.d.ts +17 -14
  14. package/app/components/file-manager/index.d.ts +1 -0
  15. package/app/components/info/index.d.ts +1 -0
  16. package/app/components/info/info.component.d.ts +11 -8
  17. package/app/components/process/index.d.ts +1 -0
  18. package/app/components/process/process.component.d.ts +16 -13
  19. package/app/components/processes/index.d.ts +1 -0
  20. package/app/components/processes/processes.component.d.ts +36 -31
  21. package/app/components/server-log/index.d.ts +1 -0
  22. package/app/components/server-log/server-log.component.d.ts +10 -7
  23. package/app/components/server-logs/index.d.ts +1 -0
  24. package/app/components/server-logs/server-logs.component.d.ts +23 -18
  25. package/app/components/settings/index.d.ts +1 -0
  26. package/app/components/settings/settings.component.d.ts +32 -27
  27. package/app/components/upgrade-logs/index.d.ts +1 -0
  28. package/app/components/upgrade-logs/upgrade-logs.component.d.ts +20 -14
  29. package/app/consts/api-log-states.const.d.ts +5 -5
  30. package/app/consts/cron-log-states.const.d.ts +6 -6
  31. package/app/consts/cron-states.const.d.ts +5 -5
  32. package/app/consts/index.d.ts +3 -3
  33. package/app/consts/process-states.const.d.ts +5 -5
  34. package/app/enums/api-log-state.enum.d.ts +5 -5
  35. package/app/enums/cron-log-state.enum.d.ts +13 -13
  36. package/app/enums/cron-state.enum.d.ts +7 -7
  37. package/app/enums/index.d.ts +5 -5
  38. package/app/enums/process-state.enum.d.ts +8 -8
  39. package/app/enums/setting-interface-type.enum.d.ts +11 -13
  40. package/app/fs-system.module.d.ts +46 -5
  41. package/app/helpers/index-name-value.d.ts +1 -1
  42. package/app/injectors/system-config.injector.d.ts +2 -2
  43. package/app/interfaces/dashboard-action.d.ts +5 -5
  44. package/app/interfaces/index.d.ts +3 -3
  45. package/app/interfaces/process-action.d.ts +6 -6
  46. package/app/interfaces/system-config.d.ts +3 -2
  47. package/app/pipes/key-name-value.pipe.d.ts +8 -4
  48. package/app/services/index.d.ts +1 -0
  49. package/app/services/system.service.d.ts +10 -0
  50. package/bundles/firestitch-system.umd.js +1625 -1430
  51. package/bundles/firestitch-system.umd.js.map +1 -1
  52. package/esm2015/app/components/api-log/api-log.component.js +38 -31
  53. package/esm2015/app/components/api-log/index.js +2 -0
  54. package/esm2015/app/components/api-logs/api-logs.component.js +75 -73
  55. package/esm2015/app/components/api-logs/index.js +2 -0
  56. package/esm2015/app/components/cron/cron.component.js +103 -96
  57. package/esm2015/app/components/cron/index.js +2 -2
  58. package/esm2015/app/components/cron-log/cron-log.component.js +41 -33
  59. package/esm2015/app/components/cron-log/index.js +2 -2
  60. package/esm2015/app/components/crons/crons.component.js +191 -206
  61. package/esm2015/app/components/crons/index.js +2 -0
  62. package/esm2015/app/components/dashboard/dashboard.component.js +94 -93
  63. package/esm2015/app/components/dashboard/index.js +2 -0
  64. package/esm2015/app/components/file-manager/file-manager.component.js +54 -64
  65. package/esm2015/app/components/file-manager/index.js +2 -0
  66. package/esm2015/app/components/info/index.js +2 -0
  67. package/esm2015/app/components/info/info.component.js +36 -37
  68. package/esm2015/app/components/process/index.js +2 -0
  69. package/esm2015/app/components/process/process.component.js +49 -42
  70. package/esm2015/app/components/processes/index.js +2 -0
  71. package/esm2015/app/components/processes/processes.component.js +167 -178
  72. package/esm2015/app/components/server-log/index.js +2 -0
  73. package/esm2015/app/components/server-log/server-log.component.js +42 -34
  74. package/esm2015/app/components/server-logs/index.js +2 -0
  75. package/esm2015/app/components/server-logs/server-logs.component.js +60 -59
  76. package/esm2015/app/components/settings/index.js +2 -0
  77. package/esm2015/app/components/settings/settings.component.js +130 -132
  78. package/esm2015/app/components/upgrade-logs/index.js +2 -0
  79. package/esm2015/app/components/upgrade-logs/upgrade-logs.component.js +51 -47
  80. package/esm2015/app/consts/api-log-states.const.js +7 -7
  81. package/esm2015/app/consts/cron-log-states.const.js +15 -15
  82. package/esm2015/app/consts/cron-states.const.js +9 -9
  83. package/esm2015/app/consts/index.js +4 -4
  84. package/esm2015/app/consts/process-states.const.js +10 -10
  85. package/esm2015/app/enums/api-log-state.enum.js +7 -7
  86. package/esm2015/app/enums/cron-log-state.enum.js +15 -15
  87. package/esm2015/app/enums/cron-state.enum.js +9 -9
  88. package/esm2015/app/enums/index.js +6 -6
  89. package/esm2015/app/enums/process-state.enum.js +10 -10
  90. package/esm2015/app/enums/setting-interface-type.enum.js +13 -15
  91. package/esm2015/app/fs-system.module.js +183 -109
  92. package/esm2015/app/helpers/index-name-value.js +8 -8
  93. package/esm2015/app/injectors/system-config.injector.js +3 -3
  94. package/esm2015/app/interfaces/dashboard-action.js +2 -1
  95. package/esm2015/app/interfaces/index.js +4 -1
  96. package/esm2015/app/interfaces/process-action.js +2 -1
  97. package/esm2015/app/interfaces/system-config.js +2 -1
  98. package/esm2015/app/pipes/key-name-value.pipe.js +21 -17
  99. package/esm2015/app/services/index.js +2 -0
  100. package/esm2015/app/services/system.service.js +42 -0
  101. package/esm2015/firestitch-system.js +5 -20
  102. package/esm2015/public_api.js +20 -5
  103. package/fesm2015/firestitch-system.js +1234 -1179
  104. package/fesm2015/firestitch-system.js.map +1 -1
  105. package/firestitch-system.d.ts +5 -19
  106. package/package.json +5 -9
  107. package/public_api.d.ts +20 -5
  108. package/bundles/firestitch-system.umd.min.js +0 -16
  109. package/bundles/firestitch-system.umd.min.js.map +0 -1
  110. package/esm5/app/components/api-log/api-log.component.js +0 -32
  111. package/esm5/app/components/api-logs/api-logs.component.js +0 -75
  112. package/esm5/app/components/cron/cron.component.js +0 -98
  113. package/esm5/app/components/cron/index.js +0 -2
  114. package/esm5/app/components/cron-log/cron-log.component.js +0 -34
  115. package/esm5/app/components/cron-log/index.js +0 -2
  116. package/esm5/app/components/crons/crons.component.js +0 -209
  117. package/esm5/app/components/dashboard/dashboard.component.js +0 -98
  118. package/esm5/app/components/file-manager/file-manager.component.js +0 -67
  119. package/esm5/app/components/info/info.component.js +0 -41
  120. package/esm5/app/components/process/process.component.js +0 -44
  121. package/esm5/app/components/processes/processes.component.js +0 -180
  122. package/esm5/app/components/server-log/server-log.component.js +0 -35
  123. package/esm5/app/components/server-logs/server-logs.component.js +0 -61
  124. package/esm5/app/components/settings/settings.component.js +0 -136
  125. package/esm5/app/components/upgrade-logs/upgrade-logs.component.js +0 -49
  126. package/esm5/app/consts/api-log-states.const.js +0 -7
  127. package/esm5/app/consts/cron-log-states.const.js +0 -15
  128. package/esm5/app/consts/cron-states.const.js +0 -9
  129. package/esm5/app/consts/index.js +0 -4
  130. package/esm5/app/consts/process-states.const.js +0 -10
  131. package/esm5/app/enums/api-log-state.enum.js +0 -7
  132. package/esm5/app/enums/cron-log-state.enum.js +0 -15
  133. package/esm5/app/enums/cron-state.enum.js +0 -9
  134. package/esm5/app/enums/index.js +0 -6
  135. package/esm5/app/enums/process-state.enum.js +0 -10
  136. package/esm5/app/enums/setting-interface-type.enum.js +0 -15
  137. package/esm5/app/fs-system.module.js +0 -113
  138. package/esm5/app/helpers/index-name-value.js +0 -8
  139. package/esm5/app/injectors/system-config.injector.js +0 -3
  140. package/esm5/app/interfaces/dashboard-action.js +0 -1
  141. package/esm5/app/interfaces/index.js +0 -1
  142. package/esm5/app/interfaces/process-action.js +0 -1
  143. package/esm5/app/interfaces/system-config.js +0 -1
  144. package/esm5/app/pipes/key-name-value.pipe.js +0 -20
  145. package/esm5/firestitch-system.js +0 -20
  146. package/esm5/public_api.js +0 -5
  147. package/fesm5/firestitch-system.js +0 -1286
  148. package/fesm5/firestitch-system.js.map +0 -1
  149. package/firestitch-system.metadata.json +0 -1
@@ -1,1496 +1,1691 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/expansion'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/dialog'), require('@angular/material/tooltip'), require('@angular/material/icon'), require('@angular/flex-layout'), require('@angular/material/button'), require('@firestitch/date'), require('@firestitch/datepicker'), require('@firestitch/skeleton'), require('@firestitch/list'), require('@firestitch/file-manager'), require('@firestitch/dialog'), require('@firestitch/label'), require('@firestitch/file'), require('@firestitch/menu'), require('@firestitch/message'), require('@firestitch/build'), require('rxjs/operators'), require('rxjs'), require('date-fns'), require('@firestitch/filter'), require('@firestitch/selection'), require('@firestitch/prompt'), require('lodash-es'), require('ngx-clipboard'), require('@angular/material/tabs')) :
3
- typeof define === 'function' && define.amd ? define('@firestitch/system', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/form-field', '@angular/material/expansion', '@angular/material/input', '@angular/material/select', '@angular/material/dialog', '@angular/material/tooltip', '@angular/material/icon', '@angular/flex-layout', '@angular/material/button', '@firestitch/date', '@firestitch/datepicker', '@firestitch/skeleton', '@firestitch/list', '@firestitch/file-manager', '@firestitch/dialog', '@firestitch/label', '@firestitch/file', '@firestitch/menu', '@firestitch/message', '@firestitch/build', 'rxjs/operators', 'rxjs', 'date-fns', '@firestitch/filter', '@firestitch/selection', '@firestitch/prompt', 'lodash-es', 'ngx-clipboard', '@angular/material/tabs'], factory) :
4
- (global = global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.system = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.formField, global.ng.material.expansion, global.ng.material.input, global.ng.material.select, global.ng.material.dialog, global.ng.material.tooltip, global.ng.material.icon, global.ng.flexLayout, global.ng.material.button, global.date, global.datepicker, global.skeleton, global.list, global.fileManager, global.dialog$1, global.label, global.file, global.menu, global.message, global.build, global.rxjs.operators, global.rxjs, global.dateFns, global.filter, global.selection, global.prompt, global.lodashEs, global.ngxClipboard, global.ng.material.tabs));
5
- }(this, (function (exports, core, common, forms, formField, expansion, input, select, dialog, tooltip, icon, flexLayout, button, date, datepicker, skeleton, list, fileManager, dialog$1, label, file, menu, message, build, operators, rxjs, dateFns, filter, selection, prompt, lodashEs, ngxClipboard, tabs) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('snakecase-keys'), require('camelcase-keys'), require('lodash-es'), require('@angular/common'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/expansion'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/dialog'), require('@angular/material/tooltip'), require('@angular/material/icon'), require('@angular/flex-layout'), require('@angular/material/button'), require('@firestitch/date'), require('@firestitch/datepicker'), require('@firestitch/skeleton'), require('@firestitch/list'), require('@firestitch/file-manager'), require('@firestitch/dialog'), require('@firestitch/label'), require('@firestitch/file'), require('@firestitch/menu'), require('rxjs/operators'), require('rxjs'), require('date-fns'), require('@firestitch/message'), require('@firestitch/build'), require('@angular/flex-layout/flex'), require('@angular/flex-layout/extended'), require('@firestitch/filter'), require('@angular/material/tabs'), require('@firestitch/selection'), require('ngx-clipboard'), require('@firestitch/prompt'), require('@angular/material/core')) :
3
+ typeof define === 'function' && define.amd ? define('@firestitch/system', ['exports', '@angular/core', 'snakecase-keys', 'camelcase-keys', 'lodash-es', '@angular/common', '@angular/forms', '@angular/material/form-field', '@angular/material/expansion', '@angular/material/input', '@angular/material/select', '@angular/material/dialog', '@angular/material/tooltip', '@angular/material/icon', '@angular/flex-layout', '@angular/material/button', '@firestitch/date', '@firestitch/datepicker', '@firestitch/skeleton', '@firestitch/list', '@firestitch/file-manager', '@firestitch/dialog', '@firestitch/label', '@firestitch/file', '@firestitch/menu', 'rxjs/operators', 'rxjs', 'date-fns', '@firestitch/message', '@firestitch/build', '@angular/flex-layout/flex', '@angular/flex-layout/extended', '@firestitch/filter', '@angular/material/tabs', '@firestitch/selection', 'ngx-clipboard', '@firestitch/prompt', '@angular/material/core'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.system = {}), global.ng.core, global._snakecaseKeys, global._camelcaseKeys, global.lodashEs, global.ng.common, global.ng.forms, global.ng.material.formField, global.ng.material.expansion, global.ng.material.input, global.ng.material.select, global.ng.material.dialog, global.ng.material.tooltip, global.ng.material.icon, global.ng.flexLayout, global.ng.material.button, global.i5$2, global.i11$1, global.i5$1, global.i4$1, global.i1$2, global.i2$1, global.i2, global.i12$1, global.i5, global.rxjs.operators, global.rxjs, global.dateFns, global.i1, global.i3, global.ng.flexLayout.flex, global.ng.flexLayout.extended, global.filter, global.ng.material.tabs, global.selection, global.i3$2, global.i4$2, global.ng.material.core));
5
+ })(this, (function (exports, i0, _snakecaseKeys, _camelcaseKeys, lodashEs, i7$1, i16, i8, i5$3, i15, i9, i1$1, i12, i7, flexLayout, i4, i5$2, i11$1, i5$1, i4$1, i1$2, i2$1, i2, i12$1, i5, operators, rxjs, dateFns, i1, i3, i6, i11, filter, i3$1, selection, i3$2, i4$2, i10) { 'use strict';
6
6
 
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
-
36
- var __assign = function() {
37
- __assign = Object.assign || function __assign(t) {
38
- for (var s, i = 1, n = arguments.length; i < n; i++) {
39
- s = arguments[i];
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
- }
42
- return t;
43
- };
44
- return __assign.apply(this, arguments);
45
- };
46
-
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- }
58
-
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63
- return c > 3 && r && Object.defineProperty(target, key, r), r;
64
- }
65
-
66
- function __param(paramIndex, decorator) {
67
- return function (target, key) { decorator(target, key, paramIndex); }
68
- }
69
-
70
- function __metadata(metadataKey, metadataValue) {
71
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
- }
73
-
74
- function __awaiter(thisArg, _arguments, P, generator) {
75
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
- return new (P || (P = Promise))(function (resolve, reject) {
77
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
78
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
79
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
80
- step((generator = generator.apply(thisArg, _arguments || [])).next());
81
- });
82
- }
83
-
84
- function __generator(thisArg, body) {
85
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
86
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
87
- function verb(n) { return function (v) { return step([n, v]); }; }
88
- function step(op) {
89
- if (f) throw new TypeError("Generator is already executing.");
90
- while (_) try {
91
- 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) return t;
92
- if (y = 0, t) op = [op[0] & 2, t.value];
93
- switch (op[0]) {
94
- case 0: case 1: t = op; break;
95
- case 4: _.label++; return { value: op[1], done: false };
96
- case 5: _.label++; y = op[1]; op = [0]; continue;
97
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
98
- default:
99
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
100
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
101
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
102
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103
- if (t[2]) _.ops.pop();
104
- _.trys.pop(); continue;
105
- }
106
- op = body.call(thisArg, _);
107
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
108
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
109
- }
110
- }
111
-
112
- function __createBinding(o, m, k, k2) {
113
- if (k2 === undefined) k2 = k;
114
- o[k2] = m[k];
115
- }
116
-
117
- function __exportStar(m, exports) {
118
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
119
- }
120
-
121
- function __values(o) {
122
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
123
- if (m) return m.call(o);
124
- if (o && typeof o.length === "number") return {
125
- next: function () {
126
- if (o && i >= o.length) o = void 0;
127
- return { value: o && o[i++], done: !o };
128
- }
129
- };
130
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
131
- }
132
-
133
- function __read(o, n) {
134
- var m = typeof Symbol === "function" && o[Symbol.iterator];
135
- if (!m) return o;
136
- var i = m.call(o), r, ar = [], e;
137
- try {
138
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
139
- }
140
- catch (error) { e = { error: error }; }
141
- finally {
142
- try {
143
- if (r && !r.done && (m = i["return"])) m.call(i);
144
- }
145
- finally { if (e) throw e.error; }
146
- }
147
- return ar;
148
- }
149
-
150
- function __spread() {
151
- for (var ar = [], i = 0; i < arguments.length; i++)
152
- ar = ar.concat(__read(arguments[i]));
153
- return ar;
154
- }
155
-
156
- function __spreadArrays() {
157
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
158
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
159
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
160
- r[k] = a[j];
161
- return r;
162
- };
163
-
164
- function __await(v) {
165
- return this instanceof __await ? (this.v = v, this) : new __await(v);
166
- }
167
-
168
- function __asyncGenerator(thisArg, _arguments, generator) {
169
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
170
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
171
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
172
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
173
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
174
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
175
- function fulfill(value) { resume("next", value); }
176
- function reject(value) { resume("throw", value); }
177
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
178
- }
179
-
180
- function __asyncDelegator(o) {
181
- var i, p;
182
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
183
- 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; }
184
- }
185
-
186
- function __asyncValues(o) {
187
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
188
- var m = o[Symbol.asyncIterator], i;
189
- 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);
190
- 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); }); }; }
191
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
192
- }
193
-
194
- function __makeTemplateObject(cooked, raw) {
195
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
196
- return cooked;
197
- };
198
-
199
- function __importStar(mod) {
200
- if (mod && mod.__esModule) return mod;
201
- var result = {};
202
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
203
- result.default = mod;
204
- return result;
205
- }
206
-
207
- function __importDefault(mod) {
208
- return (mod && mod.__esModule) ? mod : { default: mod };
209
- }
210
-
211
- function __classPrivateFieldGet(receiver, privateMap) {
212
- if (!privateMap.has(receiver)) {
213
- throw new TypeError("attempted to get private field on non-instance");
214
- }
215
- return privateMap.get(receiver);
216
- }
217
-
218
- function __classPrivateFieldSet(receiver, privateMap, value) {
219
- if (!privateMap.has(receiver)) {
220
- throw new TypeError("attempted to set private field on non-instance");
221
- }
222
- privateMap.set(receiver, value);
223
- return value;
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);
224
23
  }
225
24
 
226
- var FS_SYSTEM_CONFIG = new core.InjectionToken('fs-system-config');
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var _snakecaseKeys__namespace = /*#__PURE__*/_interopNamespace(_snakecaseKeys);
27
+ var _camelcaseKeys__namespace = /*#__PURE__*/_interopNamespace(_camelcaseKeys);
28
+ var i7__namespace$1 = /*#__PURE__*/_interopNamespace(i7$1);
29
+ var i16__namespace = /*#__PURE__*/_interopNamespace(i16);
30
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
31
+ var i5__namespace$3 = /*#__PURE__*/_interopNamespace(i5$3);
32
+ var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
33
+ var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
34
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
35
+ var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
36
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
37
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
38
+ var i5__namespace$2 = /*#__PURE__*/_interopNamespace(i5$2);
39
+ var i11__namespace$1 = /*#__PURE__*/_interopNamespace(i11$1);
40
+ var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
41
+ var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
42
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
43
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
44
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
45
+ var i12__namespace$1 = /*#__PURE__*/_interopNamespace(i12$1);
46
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
47
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
48
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
49
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
50
+ var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
51
+ var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
52
+ var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
53
+ var i4__namespace$2 = /*#__PURE__*/_interopNamespace(i4$2);
54
+ var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
227
55
 
228
- var DashboardComponent = /** @class */ (function () {
229
- function DashboardComponent(_message, _cdRef, _buildService) {
230
- this._message = _message;
231
- this._cdRef = _cdRef;
232
- this._buildService = _buildService;
233
- this.buttonActions = [];
234
- this.menuActions = [];
235
- this._destroy$ = new rxjs.Subject();
236
- this.actions = [];
237
- }
238
- DashboardComponent.prototype.ngOnInit = function () {
239
- var _this = this;
240
- this._load();
241
- this.buttonActions = this.actions.filter(function (item) { return !item.menu; });
242
- this.menuActions = this.actions.filter(function (item) { return item.menu; });
243
- this.build = this._buildService.build;
244
- this._buildService.buildChange$
245
- .pipe(operators.takeUntil(this._destroy$))
246
- .subscribe(function (build) {
247
- _this.build = build;
248
- _this._cdRef.markForCheck();
249
- });
250
- };
251
- DashboardComponent.prototype._load = function () {
252
- var _this = this;
253
- this.load()
254
- .subscribe(function (dashboard) {
255
- _this.dashboard = dashboard;
256
- _this.dashboard.cronRanAttention = !dashboard.cronRan ||
257
- dateFns.differenceInMinutes(new Date(), new Date(dashboard.cronRan)) > 15;
258
- _this._cdRef.markForCheck();
259
- });
260
- };
261
- DashboardComponent.prototype.ngOnDestroy = function () {
262
- this._destroy$.next();
263
- this._destroy$.complete();
264
- };
265
- DashboardComponent.prototype.actionClick = function (action) {
266
- action.click();
267
- };
268
- DashboardComponent.prototype.initClick = function () {
269
- var _this = this;
270
- this.init()
271
- .subscribe(function () {
272
- _this._message.success('Successfully initialized the system');
273
- });
274
- };
275
- DashboardComponent.prototype.upgradeClick = function () {
276
- var _this = this;
277
- this.upgrade()
278
- .subscribe(function () {
279
- _this._load();
280
- _this._message.success('Successfully upgraded the system');
281
- });
282
- };
283
- DashboardComponent.ctorParameters = function () { return [
284
- { type: message.FsMessage },
285
- { type: core.ChangeDetectorRef },
286
- { type: build.FsBuildService }
287
- ]; };
288
- __decorate([
289
- core.Input(),
290
- __metadata("design:type", Function)
291
- ], DashboardComponent.prototype, "init", void 0);
292
- __decorate([
293
- core.Input(),
294
- __metadata("design:type", Function)
295
- ], DashboardComponent.prototype, "upgrade", void 0);
296
- __decorate([
297
- core.Input(),
298
- __metadata("design:type", Function)
299
- ], DashboardComponent.prototype, "load", void 0);
300
- __decorate([
301
- core.Input(),
302
- __metadata("design:type", Array)
303
- ], DashboardComponent.prototype, "actions", void 0);
304
- DashboardComponent = __decorate([
305
- core.Component({
306
- selector: 'fs-system-dashboard',
307
- template: "<div *fsSkeleton=\"dashboard\">\r\n\r\n <div class=\"h2-container\">\r\n\r\n <div class=\"actions\">\r\n <h2>Actions</h2>\r\n <div fxLayout=\"row\" fxLayoutGap=\"5px\" fxLayout.xs=\"column\">\r\n <button mat-raised-button (click)=\"upgradeClick()\">Run Upgrades</button>\r\n <button mat-raised-button (click)=\"initClick()\">Init System</button>\r\n\r\n <button\r\n *ngFor=\"let action of buttonActions\"\r\n mat-raised-button\r\n (click)=\"actionClick(action)\">\r\n {{action.label}}\r\n </button>\r\n\r\n <ng-container *ngIf=\"menuActions.length\">\r\n\r\n <fs-menu buttonClass=\"mat-raised-button menu-button\">\r\n <ng-template\r\n *ngFor=\"let action of menuActions\"\r\n fs-menu-item\r\n (click)=\"actionClick(action)\">\r\n {{action.label}}\r\n </ng-template>\r\n </fs-menu>\r\n\r\n\r\n </ng-container>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n fxLayout=\"row wrap\"\r\n fxLayout.xs=\"column\"\r\n fxLayoutGap.xs=\"0px\"\r\n fxLayoutAlign=\"start start\"\r\n fxLayoutGap=\"50px\">\r\n\r\n <div>\r\n <h2>Server</h2>\r\n\r\n <fs-label-field>\r\n <fs-label>Date/Time</fs-label>\r\n {{dashboard.serverTime | fsDateFormat: 'date-time'}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Timezone</fs-label>\r\n {{dashboard.serverTimezone}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Hostname</fs-label>\r\n {{dashboard.serverHostname}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Directory</fs-label>\r\n {{dashboard.appDirectory}}\r\n </fs-label-field>\r\n </div>\r\n\r\n <div>\r\n <h2>System</h2>\r\n <fs-label-field>\r\n <fs-label>Mode</fs-label>\r\n {{dashboard.appMode}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Notification Recipients</fs-label>\r\n {{dashboard.notifyRecipients.join(', ')}}\r\n </fs-label-field>\r\n </div>\r\n\r\n <div>\r\n <h2>Database</h2>\r\n\r\n <fs-label-field>\r\n <fs-label>Name</fs-label>\r\n {{dashboard.databaseName}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Date/Time</fs-label>\r\n {{dashboard.databaseTime | fsDateFormat: 'date-time'}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Timezone</fs-label>\r\n {{dashboard.databaseTimezone}}\r\n </fs-label-field>\r\n </div>\r\n\r\n <div *ngIf=\"build || dashboard.upgrades.length\">\r\n <h2>Build</h2>\r\n\r\n <ng-container *ngIf=\"build\">\r\n <fs-label-field>\r\n <fs-label>Version</fs-label>\r\n {{build.version}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Date</fs-label>\r\n {{ build.date | fsDateFormat: 'date-time' }}\r\n </fs-label-field>\r\n </ng-container>\r\n\r\n <fs-label-field *ngIf=\"dashboard.upgrades.length\">\r\n <fs-label>Pending Upgrades</fs-label>\r\n <span class=\"attention\" [ngClass]=\"{ 'needs-attention': !!dashboard.upgrades.length }\">\r\n {{dashboard.upgrades.length}}\r\n <mat-icon\r\n [matTooltip]=\"dashboard.upgrades.join('\\n')\"\r\n matTooltipClass=\"tooltip-pending-upgrades\"\r\n >\r\n warning\r\n </mat-icon>\r\n </span>\r\n </fs-label-field>\r\n </div>\r\n\r\n <div>\r\n <h2>Cron</h2>\r\n\r\n <fs-label-field>\r\n <fs-label>Last Ran</fs-label>\r\n <span class=\"attention\" [ngClass]=\"{ 'needs-attention': dashboard.cronRanAttention }\">\r\n <span *ngIf=\"!dashboard.cronRan\">Never</span>\r\n <span *ngIf=\"dashboard.cronRan\">{{dashboard.cronRan | fsDateFormat: 'date-time'}}</span>\r\n <mat-icon>warning</mat-icon>\r\n </span>\r\n </fs-label-field>\r\n </div>\r\n </div>\r\n</div>\r\n",
308
- changeDetection: core.ChangeDetectionStrategy.OnPush,
309
- styles: [".actions{margin-bottom:1.25em}table td{padding:3px}.attention{display:flex;align-items:center}.attention mat-icon{display:none;margin-left:2px}.attention.needs-attention{color:#c00}.attention.needs-attention mat-icon{display:inline}::ng-deep .tooltip-pending-upgrades{white-space:pre-line}@media (max-width:600px){:host ::ng-deep .menu-button{width:100%;border-radius:4px}}@media (min-width:600px){:host ::ng-deep .menu-button{box-shadow:none}}"]
310
- }),
311
- __metadata("design:paramtypes", [message.FsMessage,
312
- core.ChangeDetectorRef,
313
- build.FsBuildService])
314
- ], DashboardComponent);
315
- return DashboardComponent;
56
+ var FS_SYSTEM_CONFIG = new i0.InjectionToken('fs-system-config');
57
+
58
+ var snakecaseKeys = _snakecaseKeys__namespace;
59
+ var camelcaseKeys = _camelcaseKeys__namespace;
60
+ var SystemService = /** @class */ (function () {
61
+ function SystemService(_config) {
62
+ this._config = _config;
63
+ }
64
+ SystemService.prototype.input = function (data) {
65
+ var _this = this;
66
+ if (lodashEs.isArray(data)) {
67
+ return data.map(function (item) {
68
+ return _this._config.case === 'snake' ? camelcaseKeys(item, { deep: true }) : item;
69
+ });
70
+ }
71
+ else {
72
+ return this._config.case === 'snake' ? camelcaseKeys(data, { deep: true }) : data;
73
+ }
74
+ };
75
+ SystemService.prototype.output = function (data) {
76
+ var _this = this;
77
+ if (lodashEs.isArray(data)) {
78
+ return data.map(function (item) {
79
+ return _this._config.case === 'snake' ? snakecaseKeys(item, { deep: true }) : item;
80
+ });
81
+ }
82
+ else {
83
+ return this._config.case === 'snake' ? snakecaseKeys(data, { deep: true }) : data;
84
+ }
85
+ };
86
+ return SystemService;
87
+ }());
88
+ SystemService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SystemService, deps: [{ token: FS_SYSTEM_CONFIG }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
89
+ SystemService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SystemService });
90
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SystemService, decorators: [{
91
+ type: i0.Injectable
92
+ }], ctorParameters: function () {
93
+ return [{ type: undefined, decorators: [{
94
+ type: i0.Inject,
95
+ args: [FS_SYSTEM_CONFIG]
96
+ }] }];
97
+ } });
98
+
99
+ var DashboardComponent = /** @class */ (function () {
100
+ function DashboardComponent(_message, _cdRef, _systemService, _buildService) {
101
+ this._message = _message;
102
+ this._cdRef = _cdRef;
103
+ this._systemService = _systemService;
104
+ this._buildService = _buildService;
105
+ this.buttonActions = [];
106
+ this.menuActions = [];
107
+ this._destroy$ = new rxjs.Subject();
108
+ this.actions = [];
109
+ }
110
+ DashboardComponent.prototype.ngOnInit = function () {
111
+ var _this = this;
112
+ this._load();
113
+ this.buttonActions = this.actions.filter(function (item) { return !item.menu; });
114
+ this.menuActions = this.actions.filter(function (item) { return item.menu; });
115
+ this.build = this._buildService.build;
116
+ this._buildService.buildChange$
117
+ .pipe(operators.takeUntil(this._destroy$))
118
+ .subscribe(function (build) {
119
+ _this.build = build;
120
+ _this._cdRef.markForCheck();
121
+ });
122
+ };
123
+ DashboardComponent.prototype._load = function () {
124
+ var _this = this;
125
+ this.load()
126
+ .subscribe(function (dashboard) {
127
+ _this.dashboard = _this._systemService.input(dashboard);
128
+ _this.dashboard.cronRanAttention = !dashboard.cronRan ||
129
+ dateFns.differenceInMinutes(new Date(), new Date(dashboard.cronRan)) > 15;
130
+ _this._cdRef.markForCheck();
131
+ });
132
+ };
133
+ DashboardComponent.prototype.ngOnDestroy = function () {
134
+ this._destroy$.next();
135
+ this._destroy$.complete();
136
+ };
137
+ DashboardComponent.prototype.actionClick = function (action) {
138
+ action.click();
139
+ };
140
+ DashboardComponent.prototype.initClick = function () {
141
+ var _this = this;
142
+ this.init()
143
+ .subscribe(function () {
144
+ _this._message.success('Successfully initialized the system');
145
+ });
146
+ };
147
+ DashboardComponent.prototype.upgradeClick = function () {
148
+ var _this = this;
149
+ this.upgrade()
150
+ .subscribe(function () {
151
+ _this._load();
152
+ _this._message.success('Successfully upgraded the system');
153
+ });
154
+ };
155
+ return DashboardComponent;
316
156
  }());
157
+ DashboardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DashboardComponent, deps: [{ token: i1__namespace.FsMessage }, { token: i0__namespace.ChangeDetectorRef }, { token: SystemService }, { token: i3__namespace.FsBuildService }], target: i0__namespace.ɵɵFactoryTarget.Component });
158
+ DashboardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DashboardComponent, selector: "fs-system-dashboard", inputs: { init: "init", upgrade: "upgrade", load: "load", actions: "actions" }, ngImport: i0__namespace, template: "<div *fsSkeleton=\"dashboard\">\n\n <div class=\"h2-container\">\n\n <div class=\"actions\">\n <h2>Actions</h2>\n <div fxLayout=\"row\" fxLayoutGap=\"5px\" fxLayout.xs=\"column\">\n <button mat-raised-button (click)=\"upgradeClick()\">Run Upgrades</button>\n <button mat-raised-button (click)=\"initClick()\">Init System</button>\n\n <button\n *ngFor=\"let action of buttonActions\"\n mat-raised-button\n (click)=\"actionClick(action)\">\n {{action.label}}\n </button>\n\n <ng-container *ngIf=\"menuActions.length\">\n\n <fs-menu buttonClass=\"mat-raised-button menu-button\">\n <ng-template\n *ngFor=\"let action of menuActions\"\n fs-menu-item\n (click)=\"actionClick(action)\">\n {{action.label}}\n </ng-template>\n </fs-menu>\n\n\n </ng-container>\n\n </div>\n </div>\n </div>\n\n <div\n fxLayout=\"row wrap\"\n fxLayout.xs=\"column\"\n fxLayoutGap.xs=\"0px\"\n fxLayoutAlign=\"start start\"\n fxLayoutGap=\"50px\">\n\n <div>\n <h2>Server</h2>\n\n <fs-label-field>\n <fs-label>Date/Time</fs-label>\n {{dashboard.serverTime | fsDateFormat: 'date-time'}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>Timezone</fs-label>\n {{dashboard.serverTimezone}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>Hostname</fs-label>\n {{dashboard.serverHostname}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>Directory</fs-label>\n {{dashboard.appDirectory}}\n </fs-label-field>\n </div>\n\n <div>\n <h2>System</h2>\n <fs-label-field>\n <fs-label>Mode</fs-label>\n {{dashboard.appMode}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>Notification Recipients</fs-label>\n {{dashboard.notifyRecipients.join(', ')}}\n </fs-label-field>\n </div>\n\n <div>\n <h2>Database</h2>\n\n <fs-label-field>\n <fs-label>Name</fs-label>\n {{dashboard.databaseName}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>Date/Time</fs-label>\n {{dashboard.databaseTime | fsDateFormat: 'date-time'}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>Timezone</fs-label>\n {{dashboard.databaseTimezone}}\n </fs-label-field>\n </div>\n\n <div *ngIf=\"build || dashboard.upgrades.length\">\n <h2>Build</h2>\n\n <ng-container *ngIf=\"build\">\n <fs-label-field>\n <fs-label>Version</fs-label>\n {{build.version}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>Date</fs-label>\n {{ build.date | fsDateFormat: 'date-time' }}\n </fs-label-field>\n </ng-container>\n\n <fs-label-field *ngIf=\"dashboard.upgrades.length\">\n <fs-label>Pending Upgrades</fs-label>\n <span class=\"attention\" [ngClass]=\"{ 'needs-attention': !!dashboard.upgrades.length }\">\n {{dashboard.upgrades.length}}\n <mat-icon\n [matTooltip]=\"dashboard.upgrades.join('\\n')\"\n matTooltipClass=\"tooltip-pending-upgrades\"\n >\n warning\n </mat-icon>\n </span>\n </fs-label-field>\n </div>\n\n <div>\n <h2>Cron</h2>\n\n <fs-label-field>\n <fs-label>Last Ran</fs-label>\n <span class=\"attention\" [ngClass]=\"{ 'needs-attention': dashboard.cronRanAttention }\">\n <span *ngIf=\"!dashboard.cronRan\">Never</span>\n <span *ngIf=\"dashboard.cronRan\">{{dashboard.cronRan | fsDateFormat: 'date-time'}}</span>\n <mat-icon>warning</mat-icon>\n </span>\n </fs-label-field>\n </div>\n </div>\n</div>\n", styles: [".actions{margin-bottom:1.25em}table td{padding:3px}.attention{display:flex;align-items:center}.attention mat-icon{display:none;margin-left:2px}.attention.needs-attention{color:#c00}.attention.needs-attention mat-icon{display:inline}::ng-deep .tooltip-pending-upgrades{white-space:pre-line}@media (max-width: 600px){:host ::ng-deep .menu-button{width:100%;border-radius:4px}}@media (min-width: 600px){:host ::ng-deep .menu-button{box-shadow:none}}\n"], components: [{ type: i4__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5__namespace.FsMenuComponent, selector: "fs-menu", inputs: ["class", "buttonClass"], outputs: ["opened", "closed"] }, { type: i2__namespace.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i2__namespace.FsLabelComponent, selector: "fs-label" }, { type: i7__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i5__namespace$1.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i6__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i6__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i7__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.FsMenuItemDirective, selector: "fs-menu-group,[fs-menu-item]", inputs: ["fsClass", "class", "id", "label", "hidden", "groupHidden", "dismissAfterClick", "link", "target", "queryParams"], outputs: ["click"] }, { type: i6__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i7__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i11__namespace.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i12__namespace.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "fsDateFormat": i5__namespace$2.FsDateFormatPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
159
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DashboardComponent, decorators: [{
160
+ type: i0.Component,
161
+ args: [{
162
+ selector: 'fs-system-dashboard',
163
+ templateUrl: 'dashboard.component.html',
164
+ styleUrls: ['dashboard.component.scss'],
165
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
166
+ }]
167
+ }], ctorParameters: function () { return [{ type: i1__namespace.FsMessage }, { type: i0__namespace.ChangeDetectorRef }, { type: SystemService }, { type: i3__namespace.FsBuildService }]; }, propDecorators: { init: [{
168
+ type: i0.Input
169
+ }], upgrade: [{
170
+ type: i0.Input
171
+ }], load: [{
172
+ type: i0.Input
173
+ }], actions: [{
174
+ type: i0.Input
175
+ }] } });
317
176
 
318
- function indexNameValue(arry) {
319
- var obj = {};
320
- arry.forEach(function (item) {
321
- obj[item.value] = item.name;
322
- });
323
- return obj;
177
+ function indexNameValue(arry) {
178
+ var obj = {};
179
+ arry.forEach(function (item) {
180
+ obj[item.value] = item.name;
181
+ });
182
+ return obj;
324
183
  }
325
184
 
326
-
327
- (function (CronState) {
328
- CronState["Running"] = "running";
329
- CronState["Idle"] = "idle";
330
- CronState["Failed"] = "failed";
331
- CronState["Queued"] = "queued";
332
- CronState["Disabled"] = "disabled";
185
+ /*! *****************************************************************************
186
+ Copyright (c) Microsoft Corporation.
187
+
188
+ Permission to use, copy, modify, and/or distribute this software for any
189
+ purpose with or without fee is hereby granted.
190
+
191
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
192
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
193
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
194
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
195
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
196
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
197
+ PERFORMANCE OF THIS SOFTWARE.
198
+ ***************************************************************************** */
199
+ /* global Reflect, Promise */
200
+ var extendStatics = function (d, b) {
201
+ extendStatics = Object.setPrototypeOf ||
202
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
203
+ function (d, b) { for (var p in b)
204
+ if (Object.prototype.hasOwnProperty.call(b, p))
205
+ d[p] = b[p]; };
206
+ return extendStatics(d, b);
207
+ };
208
+ function __extends(d, b) {
209
+ if (typeof b !== "function" && b !== null)
210
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
211
+ extendStatics(d, b);
212
+ function __() { this.constructor = d; }
213
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
214
+ }
215
+ var __assign = function () {
216
+ __assign = Object.assign || function __assign(t) {
217
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
218
+ s = arguments[i];
219
+ for (var p in s)
220
+ if (Object.prototype.hasOwnProperty.call(s, p))
221
+ t[p] = s[p];
222
+ }
223
+ return t;
224
+ };
225
+ return __assign.apply(this, arguments);
226
+ };
227
+ function __rest(s, e) {
228
+ var t = {};
229
+ for (var p in s)
230
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
231
+ t[p] = s[p];
232
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
233
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
234
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
235
+ t[p[i]] = s[p[i]];
236
+ }
237
+ return t;
238
+ }
239
+ function __decorate(decorators, target, key, desc) {
240
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
241
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
242
+ r = Reflect.decorate(decorators, target, key, desc);
243
+ else
244
+ for (var i = decorators.length - 1; i >= 0; i--)
245
+ if (d = decorators[i])
246
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
247
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
248
+ }
249
+ function __param(paramIndex, decorator) {
250
+ return function (target, key) { decorator(target, key, paramIndex); };
251
+ }
252
+ function __metadata(metadataKey, metadataValue) {
253
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
254
+ return Reflect.metadata(metadataKey, metadataValue);
255
+ }
256
+ function __awaiter(thisArg, _arguments, P, generator) {
257
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
258
+ return new (P || (P = Promise))(function (resolve, reject) {
259
+ function fulfilled(value) { try {
260
+ step(generator.next(value));
261
+ }
262
+ catch (e) {
263
+ reject(e);
264
+ } }
265
+ function rejected(value) { try {
266
+ step(generator["throw"](value));
267
+ }
268
+ catch (e) {
269
+ reject(e);
270
+ } }
271
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
272
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
273
+ });
274
+ }
275
+ function __generator(thisArg, body) {
276
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
277
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
278
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
279
+ function verb(n) { return function (v) { return step([n, v]); }; }
280
+ function step(op) {
281
+ if (f)
282
+ throw new TypeError("Generator is already executing.");
283
+ while (_)
284
+ try {
285
+ 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)
286
+ return t;
287
+ if (y = 0, t)
288
+ op = [op[0] & 2, t.value];
289
+ switch (op[0]) {
290
+ case 0:
291
+ case 1:
292
+ t = op;
293
+ break;
294
+ case 4:
295
+ _.label++;
296
+ return { value: op[1], done: false };
297
+ case 5:
298
+ _.label++;
299
+ y = op[1];
300
+ op = [0];
301
+ continue;
302
+ case 7:
303
+ op = _.ops.pop();
304
+ _.trys.pop();
305
+ continue;
306
+ default:
307
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
308
+ _ = 0;
309
+ continue;
310
+ }
311
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
312
+ _.label = op[1];
313
+ break;
314
+ }
315
+ if (op[0] === 6 && _.label < t[1]) {
316
+ _.label = t[1];
317
+ t = op;
318
+ break;
319
+ }
320
+ if (t && _.label < t[2]) {
321
+ _.label = t[2];
322
+ _.ops.push(op);
323
+ break;
324
+ }
325
+ if (t[2])
326
+ _.ops.pop();
327
+ _.trys.pop();
328
+ continue;
329
+ }
330
+ op = body.call(thisArg, _);
331
+ }
332
+ catch (e) {
333
+ op = [6, e];
334
+ y = 0;
335
+ }
336
+ finally {
337
+ f = t = 0;
338
+ }
339
+ if (op[0] & 5)
340
+ throw op[1];
341
+ return { value: op[0] ? op[1] : void 0, done: true };
342
+ }
343
+ }
344
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
345
+ if (k2 === undefined)
346
+ k2 = k;
347
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
348
+ }) : (function (o, m, k, k2) {
349
+ if (k2 === undefined)
350
+ k2 = k;
351
+ o[k2] = m[k];
352
+ });
353
+ function __exportStar(m, o) {
354
+ for (var p in m)
355
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
356
+ __createBinding(o, m, p);
357
+ }
358
+ function __values(o) {
359
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
360
+ if (m)
361
+ return m.call(o);
362
+ if (o && typeof o.length === "number")
363
+ return {
364
+ next: function () {
365
+ if (o && i >= o.length)
366
+ o = void 0;
367
+ return { value: o && o[i++], done: !o };
368
+ }
369
+ };
370
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
371
+ }
372
+ function __read(o, n) {
373
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
374
+ if (!m)
375
+ return o;
376
+ var i = m.call(o), r, ar = [], e;
377
+ try {
378
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
379
+ ar.push(r.value);
380
+ }
381
+ catch (error) {
382
+ e = { error: error };
383
+ }
384
+ finally {
385
+ try {
386
+ if (r && !r.done && (m = i["return"]))
387
+ m.call(i);
388
+ }
389
+ finally {
390
+ if (e)
391
+ throw e.error;
392
+ }
393
+ }
394
+ return ar;
395
+ }
396
+ /** @deprecated */
397
+ function __spread() {
398
+ for (var ar = [], i = 0; i < arguments.length; i++)
399
+ ar = ar.concat(__read(arguments[i]));
400
+ return ar;
401
+ }
402
+ /** @deprecated */
403
+ function __spreadArrays() {
404
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
405
+ s += arguments[i].length;
406
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
407
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
408
+ r[k] = a[j];
409
+ return r;
410
+ }
411
+ function __spreadArray(to, from, pack) {
412
+ if (pack || arguments.length === 2)
413
+ for (var i = 0, l = from.length, ar; i < l; i++) {
414
+ if (ar || !(i in from)) {
415
+ if (!ar)
416
+ ar = Array.prototype.slice.call(from, 0, i);
417
+ ar[i] = from[i];
418
+ }
419
+ }
420
+ return to.concat(ar || Array.prototype.slice.call(from));
421
+ }
422
+ function __await(v) {
423
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
424
+ }
425
+ function __asyncGenerator(thisArg, _arguments, generator) {
426
+ if (!Symbol.asyncIterator)
427
+ throw new TypeError("Symbol.asyncIterator is not defined.");
428
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
429
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
430
+ function verb(n) { if (g[n])
431
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
432
+ function resume(n, v) { try {
433
+ step(g[n](v));
434
+ }
435
+ catch (e) {
436
+ settle(q[0][3], e);
437
+ } }
438
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
439
+ function fulfill(value) { resume("next", value); }
440
+ function reject(value) { resume("throw", value); }
441
+ function settle(f, v) { if (f(v), q.shift(), q.length)
442
+ resume(q[0][0], q[0][1]); }
443
+ }
444
+ function __asyncDelegator(o) {
445
+ var i, p;
446
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
447
+ 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; }
448
+ }
449
+ function __asyncValues(o) {
450
+ if (!Symbol.asyncIterator)
451
+ throw new TypeError("Symbol.asyncIterator is not defined.");
452
+ var m = o[Symbol.asyncIterator], i;
453
+ 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);
454
+ 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); }); }; }
455
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
456
+ }
457
+ function __makeTemplateObject(cooked, raw) {
458
+ if (Object.defineProperty) {
459
+ Object.defineProperty(cooked, "raw", { value: raw });
460
+ }
461
+ else {
462
+ cooked.raw = raw;
463
+ }
464
+ return cooked;
465
+ }
466
+ ;
467
+ var __setModuleDefault = Object.create ? (function (o, v) {
468
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
469
+ }) : function (o, v) {
470
+ o["default"] = v;
471
+ };
472
+ function __importStar(mod) {
473
+ if (mod && mod.__esModule)
474
+ return mod;
475
+ var result = {};
476
+ if (mod != null)
477
+ for (var k in mod)
478
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
479
+ __createBinding(result, mod, k);
480
+ __setModuleDefault(result, mod);
481
+ return result;
482
+ }
483
+ function __importDefault(mod) {
484
+ return (mod && mod.__esModule) ? mod : { default: mod };
485
+ }
486
+ function __classPrivateFieldGet(receiver, state, kind, f) {
487
+ if (kind === "a" && !f)
488
+ throw new TypeError("Private accessor was defined without a getter");
489
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
490
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
491
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
492
+ }
493
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
494
+ if (kind === "m")
495
+ throw new TypeError("Private method is not writable");
496
+ if (kind === "a" && !f)
497
+ throw new TypeError("Private accessor was defined without a setter");
498
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
499
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
500
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
501
+ }
502
+
503
+ exports.CronState = void 0;
504
+ (function (CronState) {
505
+ CronState["Running"] = "running";
506
+ CronState["Idle"] = "idle";
507
+ CronState["Failed"] = "failed";
508
+ CronState["Queued"] = "queued";
509
+ CronState["Disabled"] = "disabled";
333
510
  })(exports.CronState || (exports.CronState = {}));
334
511
 
335
- var SettingInterfaceType;
336
- (function (SettingInterfaceType) {
337
- SettingInterfaceType["RadioButton"] = "R";
338
- SettingInterfaceType["InputBox"] = "I";
339
- SettingInterfaceType["Textarea"] = "T";
340
- SettingInterfaceType["Select"] = "D";
341
- SettingInterfaceType["SelectMultiple"] = "W";
342
- SettingInterfaceType["Date"] = "A";
343
- SettingInterfaceType["File"] = "F";
344
- SettingInterfaceType["Static"] = "S";
345
- SettingInterfaceType["Password"] = "P";
346
- SettingInterfaceType["Time"] = "M";
347
- SettingInterfaceType["None"] = "N";
512
+ var SettingInterfaceType;
513
+ (function (SettingInterfaceType) {
514
+ SettingInterfaceType["RadioButton"] = "R";
515
+ SettingInterfaceType["InputBox"] = "I";
516
+ SettingInterfaceType["Textarea"] = "T";
517
+ SettingInterfaceType["DropDown"] = "D";
518
+ SettingInterfaceType["Date"] = "A";
519
+ SettingInterfaceType["File"] = "F";
520
+ SettingInterfaceType["Static"] = "S";
521
+ SettingInterfaceType["Password"] = "P";
522
+ SettingInterfaceType["Time"] = "M";
348
523
  })(SettingInterfaceType || (SettingInterfaceType = {}));
349
524
 
350
-
351
- (function (ApiLogState) {
352
- ApiLogState["Success"] = "success";
353
- ApiLogState["Failed"] = "failed";
354
- ApiLogState["Deleted"] = "deleted";
525
+ exports.ApiLogState = void 0;
526
+ (function (ApiLogState) {
527
+ ApiLogState["Success"] = "success";
528
+ ApiLogState["Failed"] = "failed";
529
+ ApiLogState["Deleted"] = "deleted";
355
530
  })(exports.ApiLogState || (exports.ApiLogState = {}));
356
531
 
357
-
358
- (function (ProcessState) {
359
- ProcessState["Queued"] = "Q";
360
- ProcessState["Running"] = "R";
361
- ProcessState["Completed"] = "C";
362
- ProcessState["Killed"] = "K";
363
- ProcessState["Deleted"] = "D";
364
- ProcessState["Failed"] = "F";
532
+ exports.ProcessState = void 0;
533
+ (function (ProcessState) {
534
+ ProcessState["Queued"] = "Q";
535
+ ProcessState["Running"] = "R";
536
+ ProcessState["Completed"] = "C";
537
+ ProcessState["Killed"] = "K";
538
+ ProcessState["Deleted"] = "D";
539
+ ProcessState["Failed"] = "F";
365
540
  })(exports.ProcessState || (exports.ProcessState = {}));
366
541
 
367
- var CronLogState;
368
- (function (CronLogState) {
369
- CronLogState["Message"] = "message";
370
- CronLogState["Disabled"] = "disabled";
371
- CronLogState["Started"] = "started";
372
- CronLogState["Running"] = "running";
373
- CronLogState["Completed"] = "completed";
374
- CronLogState["Failed"] = "failed";
375
- CronLogState["Killed"] = "killed";
376
- CronLogState["Queued"] = "queued";
377
- CronLogState["Reset"] = "reset";
378
- CronLogState["Stagnant"] = "stagnant";
379
- CronLogState["LongRunning"] = "long_running";
542
+ var CronLogState;
543
+ (function (CronLogState) {
544
+ CronLogState["Message"] = "message";
545
+ CronLogState["Disabled"] = "disabled";
546
+ CronLogState["Started"] = "started";
547
+ CronLogState["Running"] = "running";
548
+ CronLogState["Completed"] = "completed";
549
+ CronLogState["Failed"] = "failed";
550
+ CronLogState["Killed"] = "killed";
551
+ CronLogState["Queued"] = "queued";
552
+ CronLogState["Reset"] = "reset";
553
+ CronLogState["Stagnant"] = "stagnant";
554
+ CronLogState["LongRunning"] = "long_running";
380
555
  })(CronLogState || (CronLogState = {}));
381
556
 
382
- var CronLogStates = [
383
- { name: 'Message', value: CronLogState.Message, color: '#29B7FF' },
384
- { name: 'Disabled', value: CronLogState.Disabled, color: '#29B7FF' },
385
- { name: 'Started', value: CronLogState.Started, color: '#34BD43' },
386
- { name: 'Running', value: CronLogState.Running, color: '#34BD43' },
387
- { name: 'Completed', value: CronLogState.Completed, color: '#34BD43' },
388
- { name: 'Failed', value: CronLogState.Failed, color: '#FA7567' },
389
- { name: 'Killed', value: CronLogState.Killed, color: '#29B7FF' },
390
- { name: 'Queued', value: CronLogState.Queued, color: '#29B7FF' },
391
- { name: 'Reset', value: CronLogState.Reset, color: '#29B7FF' },
392
- { name: 'Stagnant', value: CronLogState.Stagnant, color: '#FA7567' },
393
- { name: 'Long Running', value: CronLogState.LongRunning, color: '#FA7567' },
557
+ var CronLogStates = [
558
+ { name: 'Message', value: CronLogState.Message, color: '#29B7FF' },
559
+ { name: 'Disabled', value: CronLogState.Disabled, color: '#29B7FF' },
560
+ { name: 'Started', value: CronLogState.Started, color: '#34BD43' },
561
+ { name: 'Running', value: CronLogState.Running, color: '#34BD43' },
562
+ { name: 'Completed', value: CronLogState.Completed, color: '#34BD43' },
563
+ { name: 'Failed', value: CronLogState.Failed, color: '#FA7567' },
564
+ { name: 'Killed', value: CronLogState.Killed, color: '#29B7FF' },
565
+ { name: 'Queued', value: CronLogState.Queued, color: '#29B7FF' },
566
+ { name: 'Reset', value: CronLogState.Reset, color: '#29B7FF' },
567
+ { name: 'Stagnant', value: CronLogState.Stagnant, color: '#FA7567' },
568
+ { name: 'Long Running', value: CronLogState.LongRunning, color: '#FA7567' },
394
569
  ];
395
570
 
396
- var CronStates = [
397
- { name: 'Running', value: exports.CronState.Running },
398
- { name: 'Idle', value: exports.CronState.Idle },
399
- { name: 'Failed', value: exports.CronState.Failed },
400
- { name: 'Queued', value: exports.CronState.Queued },
401
- { name: 'Disabled', value: exports.CronState.Disabled }
571
+ var CronStates = [
572
+ { name: 'Running', value: exports.CronState.Running },
573
+ { name: 'Idle', value: exports.CronState.Idle },
574
+ { name: 'Failed', value: exports.CronState.Failed },
575
+ { name: 'Queued', value: exports.CronState.Queued },
576
+ { name: 'Disabled', value: exports.CronState.Disabled }
402
577
  ];
403
578
 
404
- var ApiLogStates = [
405
- { name: 'Success', value: exports.ApiLogState.Success },
406
- { name: 'Failed', value: exports.ApiLogState.Failed },
407
- { name: 'Deleted', value: exports.ApiLogState.Deleted }
579
+ var ApiLogStates = [
580
+ { name: 'Success', value: exports.ApiLogState.Success },
581
+ { name: 'Failed', value: exports.ApiLogState.Failed },
582
+ { name: 'Deleted', value: exports.ApiLogState.Deleted }
408
583
  ];
409
584
 
410
- var ProcessStates = [
411
- { name: 'Queued', value: exports.ProcessState.Queued },
412
- { name: 'Running', value: exports.ProcessState.Running },
413
- { name: 'Completed', value: exports.ProcessState.Completed },
414
- { name: 'Killed', value: exports.ProcessState.Killed },
415
- { name: 'Failed', value: exports.ProcessState.Failed },
416
- { name: 'Deleted', value: exports.ProcessState.Deleted }
585
+ var ProcessStates = [
586
+ { name: 'Queued', value: exports.ProcessState.Queued },
587
+ { name: 'Running', value: exports.ProcessState.Running },
588
+ { name: 'Completed', value: exports.ProcessState.Completed },
589
+ { name: 'Killed', value: exports.ProcessState.Killed },
590
+ { name: 'Failed', value: exports.ProcessState.Failed },
591
+ { name: 'Deleted', value: exports.ProcessState.Deleted }
417
592
  ];
418
593
 
419
- var CronLogComponent = /** @class */ (function () {
420
- function CronLogComponent(_data) {
421
- this._data = _data;
422
- this.CronLogStates = indexNameValue(CronLogStates);
423
- this.CronLogStateColors = {};
424
- }
425
- CronLogComponent.prototype.ngOnInit = function () {
426
- this.cronLog = this._data.cronLog;
427
- this.CronLogStateColors = CronLogStates
428
- .reduce(function (accum, cronLogState) {
429
- accum[cronLogState.value] = cronLogState.color;
430
- return accum;
431
- }, {});
432
- };
433
- CronLogComponent.ctorParameters = function () { return [
434
- { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
435
- ]; };
436
- CronLogComponent = __decorate([
437
- core.Component({
438
- template: "<fs-dialog *fsSkeleton=\"cronLog\">\r\n <div mat-dialog-title>Cron Log</div>\r\n <mat-dialog-content>\r\n <div class=\"row\">\r\n <fs-label-field>\r\n <fs-label>\r\n Status\r\n </fs-label>\r\n <div [ngStyle]=\"{ color: CronLogStateColors[cronLog.state]}\">\r\n {{CronLogStates[cronLog.state] || cronLog.state}}\r\n </div>\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Date\r\n </fs-label>\r\n <fs-date-ago [date]=\"cronLog.createDate\"></fs-date-ago>\r\n </fs-label-field>\r\n </div>\r\n \r\n <fs-label-field *ngIf=\"cronLog.message\">\r\n <fs-label>\r\n Message\r\n </fs-label>\r\n <div class=\"message\">\r\n {{cronLog.message}}\r\n </div>\r\n </fs-label-field>\r\n </mat-dialog-content>\r\n <mat-dialog-actions>\r\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n",
439
- styles: [".message{white-space:pre-line}.row{display:flex;flex-wrap:wrap}.row fs-label-field:not(:last-child){margin-right:40px}"]
440
- }),
441
- __param(0, core.Inject(dialog.MAT_DIALOG_DATA)),
442
- __metadata("design:paramtypes", [Object])
443
- ], CronLogComponent);
444
- return CronLogComponent;
594
+ var CronLogComponent = /** @class */ (function () {
595
+ function CronLogComponent(_data) {
596
+ this._data = _data;
597
+ this.CronLogStates = indexNameValue(CronLogStates);
598
+ this.CronLogStateColors = {};
599
+ }
600
+ CronLogComponent.prototype.ngOnInit = function () {
601
+ this.cronLog = this._data.cronLog;
602
+ this.CronLogStateColors = CronLogStates
603
+ .reduce(function (accum, cronLogState) {
604
+ accum[cronLogState.value] = cronLogState.color;
605
+ return accum;
606
+ }, {});
607
+ };
608
+ return CronLogComponent;
445
609
  }());
610
+ CronLogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CronLogComponent, deps: [{ token: i1$1.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
611
+ CronLogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CronLogComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog *fsSkeleton=\"cronLog\">\n <div mat-dialog-title>Cron Log</div>\n <mat-dialog-content>\n <div class=\"row\">\n <fs-label-field>\n <fs-label>\n Status\n </fs-label>\n <div [ngStyle]=\"{ color: CronLogStateColors[cronLog.state]}\">\n {{CronLogStates[cronLog.state] || cronLog.state}}\n </div>\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n Date\n </fs-label>\n <fs-date-ago [date]=\"cronLog.createDate\"></fs-date-ago>\n </fs-label-field>\n </div>\n \n <fs-label-field *ngIf=\"cronLog.message\">\n <fs-label>\n Message\n </fs-label>\n <div class=\"message\">\n {{cronLog.message}}\n </div>\n </fs-label-field>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [".message{white-space:pre-line}.row{display:flex;flex-wrap:wrap}.row fs-label-field:not(:last-child){margin-right:40px}\n"], components: [{ type: i2__namespace$1.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i2__namespace.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i2__namespace.FsLabelComponent, selector: "fs-label" }, { type: i5__namespace$2.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }, { type: i4__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i5__namespace$1.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1__namespace$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i7__namespace$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i11__namespace.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i7__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
612
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CronLogComponent, decorators: [{
613
+ type: i0.Component,
614
+ args: [{
615
+ templateUrl: './cron-log.component.html',
616
+ styleUrls: ['./cron-log.component.scss']
617
+ }]
618
+ }], ctorParameters: function () {
619
+ return [{ type: undefined, decorators: [{
620
+ type: i0.Inject,
621
+ args: [i1$1.MAT_DIALOG_DATA]
622
+ }] }];
623
+ } });
446
624
 
447
- var CronComponent = /** @class */ (function () {
448
- function CronComponent(_data, _dialog, _cdRef) {
449
- this._data = _data;
450
- this._dialog = _dialog;
451
- this._cdRef = _cdRef;
452
- this.tabIndex = 0;
453
- this.CronStates = indexNameValue(CronStates);
454
- this.CronLogStates = indexNameValue(CronLogStates);
455
- this.CronLogStateColors = {};
456
- }
457
- CronComponent.prototype.ngOnInit = function () {
458
- this.load();
459
- this.CronLogStateColors = CronLogStates
460
- .reduce(function (accum, cronLogState) {
461
- accum[cronLogState.value] = cronLogState.color;
462
- return accum;
463
- }, {});
464
- };
465
- CronComponent.prototype.cronLogOpen = function (cronLog) {
466
- this._dialog.open(CronLogComponent, {
467
- data: {
468
- cronLog: cronLog,
469
- },
470
- width: '85%'
471
- });
472
- };
473
- CronComponent.prototype.cronActionClick = function (cronAction) {
474
- var _this = this;
475
- cronAction.action(this.cron)
476
- .subscribe(function () {
477
- _this.load();
478
- });
479
- };
480
- CronComponent.prototype.selectedIndexChange = function (index) {
481
- this.tabIndex = index;
482
- };
483
- CronComponent.prototype.load = function () {
484
- var _this = this;
485
- this._data.loadCron(this._data.cron)
486
- .subscribe(function (cron) {
487
- _this.cron = __assign(__assign({}, _this._data.cron), cron);
488
- if (_this._data.loadCronLogs) {
489
- _this.config = {
490
- filters: [
491
- {
492
- type: filter.ItemType.Select,
493
- name: 'state',
494
- label: 'Status',
495
- values: __spread([
496
- { name: 'All', value: null }
497
- ], CronLogStates),
498
- },
499
- {
500
- type: filter.ItemType.DateRange,
501
- name: 'date',
502
- label: ['From Date', 'To Date'],
503
- },
504
- ],
505
- fetch: function (query) {
506
- query = __assign(__assign({}, query), { cronId: _this.cron.id });
507
- return _this._data.loadCronLogs(query);
508
- },
509
- };
510
- }
511
- _this.cronActions = _this._data.cronActions
512
- .filter(function (cronLogAction) {
513
- return cronLogAction.show(_this.cron);
514
- });
515
- _this._cdRef.markForCheck();
516
- });
517
- };
518
- CronComponent.ctorParameters = function () { return [
519
- { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
520
- { type: dialog.MatDialog },
521
- { type: core.ChangeDetectorRef }
522
- ]; };
523
- CronComponent = __decorate([
524
- core.Component({
525
- template: "<fs-dialog *fsSkeleton=\"cron\">\r\n <h1 mat-dialog-title>\r\n Cron\r\n <div class=\"small\">{{cron.name}}</div>\r\n </h1>\r\n <mat-dialog-content>\r\n <mat-tab-group (selectedIndexChange)=\"selectedIndexChange($event)\">\r\n <mat-tab label=\"Overview\">\r\n <div class=\"row\">\r\n <fs-label-field>\r\n <fs-label>\r\n Status\r\n </fs-label>\r\n {{CronStates[cron.state]}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"cron.cronSetting\">\r\n <fs-label>\r\n Run Frequency\r\n </fs-label>\r\n {{cron.cronSetting.summary}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Last Ran\r\n </fs-label>\r\n <ng-container *ngIf=\"cron.duration===null; else lastRan\">\r\n Never\r\n </ng-container>\r\n <ng-template #lastRan>\r\n <fs-date-ago [date]=\"cron.createDate\"></fs-date-ago>\r\n <div><small *ngIf=\"cron.duration\">Duration: {{ cron.duration | fsDateDuration }}</small></div>\r\n </ng-template>\r\n </fs-label-field>\r\n </div>\r\n\r\n <fs-label-field *ngIf=\"cron.message\">\r\n <fs-label>\r\n Last Message\r\n </fs-label>\r\n <div class=\"message\">{{cron.message}}</div>\r\n </fs-label-field>\r\n </mat-tab>\r\n <mat-tab label=\"Logs\" *ngIf=\"config\">\r\n <ng-template matTabContent>\r\n <fs-list [config]=\"config\">\r\n <fs-list-column name=\"state\" title=\"Status\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a \r\n (click)=\"cronLogOpen(row)\"\r\n [ngStyle]=\"{ color: CronLogStateColors[row.state] }\">\r\n {{CronLogStates[row.state] || row.state}}\r\n </a>\r\n </ng-template>\r\n </fs-list-column>\r\n \r\n <fs-list-column title=\"Message\" class=\"col-message\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <div class=\"message\">{{row.message}}</div>\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column name=\"create_date\" title=\"Date\" class=\"col-date\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n </ng-template>\r\n </fs-list-column>\r\n </fs-list> \r\n </ng-template>\r\n </mat-tab>\r\n </mat-tab-group>\r\n\r\n </mat-dialog-content>\r\n <mat-dialog-actions> \r\n <button \r\n mat-button \r\n [mat-dialog-close]=\"true\" \r\n color=\"primary\">\r\n Done\r\n </button>\r\n <ng-container *ngIf=\"tabIndex === 0\">\r\n <button \r\n *ngFor=\"let cronAction of cronActions\"\r\n mat-button \r\n (click)=\"cronActionClick(cronAction)\">\r\n {{cronAction.label}}\r\n </button> \r\n </ng-container>\r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n",
526
- changeDetection: core.ChangeDetectionStrategy.OnPush,
527
- styles: [":host ::ng-deep .col-message .message{white-space:break-spaces;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}:host ::ng-deep .col-date{white-space:nowrap}h1 .small{line-height:normal}.row{display:flex;flex-wrap:wrap}.row fs-label-field:not(:last-child){margin-right:40px}.message{white-space:pre-line}"]
528
- }),
529
- __param(0, core.Inject(dialog.MAT_DIALOG_DATA)),
530
- __metadata("design:paramtypes", [Object, dialog.MatDialog,
531
- core.ChangeDetectorRef])
532
- ], CronComponent);
533
- return CronComponent;
625
+ var CronComponent = /** @class */ (function () {
626
+ function CronComponent(_data, _dialog, _cdRef) {
627
+ this._data = _data;
628
+ this._dialog = _dialog;
629
+ this._cdRef = _cdRef;
630
+ this.tabIndex = 0;
631
+ this.CronStates = indexNameValue(CronStates);
632
+ this.CronLogStates = indexNameValue(CronLogStates);
633
+ this.CronLogStateColors = {};
634
+ }
635
+ CronComponent.prototype.ngOnInit = function () {
636
+ this.load();
637
+ this.CronLogStateColors = CronLogStates
638
+ .reduce(function (accum, cronLogState) {
639
+ accum[cronLogState.value] = cronLogState.color;
640
+ return accum;
641
+ }, {});
642
+ };
643
+ CronComponent.prototype.cronLogOpen = function (cronLog) {
644
+ this._dialog.open(CronLogComponent, {
645
+ data: {
646
+ cronLog: cronLog,
647
+ },
648
+ width: '85%'
649
+ });
650
+ };
651
+ CronComponent.prototype.cronActionClick = function (cronAction) {
652
+ var _this = this;
653
+ cronAction.action(this.cron)
654
+ .subscribe(function () {
655
+ _this.load();
656
+ });
657
+ };
658
+ CronComponent.prototype.selectedIndexChange = function (index) {
659
+ this.tabIndex = index;
660
+ };
661
+ CronComponent.prototype.load = function () {
662
+ var _this = this;
663
+ this._data.loadCron(this._data.cron)
664
+ .subscribe(function (cron) {
665
+ _this.cron = Object.assign(Object.assign({}, _this._data.cron), cron);
666
+ if (_this._data.loadCronLogs) {
667
+ _this.config = {
668
+ filters: [
669
+ {
670
+ type: filter.ItemType.Select,
671
+ name: 'state',
672
+ label: 'Status',
673
+ values: __spreadArray([
674
+ { name: 'All', value: null }
675
+ ], __read(CronLogStates)),
676
+ },
677
+ {
678
+ type: filter.ItemType.DateRange,
679
+ name: 'date',
680
+ label: ['From Date', 'To Date'],
681
+ },
682
+ ],
683
+ fetch: function (query) {
684
+ query = Object.assign(Object.assign({}, query), { cronId: _this.cron.id });
685
+ return _this._data.loadCronLogs(query);
686
+ },
687
+ };
688
+ }
689
+ _this.cronActions = _this._data.cronActions
690
+ .filter(function (cronLogAction) {
691
+ return cronLogAction.show(_this.cron);
692
+ });
693
+ _this._cdRef.markForCheck();
694
+ });
695
+ };
696
+ return CronComponent;
534
697
  }());
698
+ CronComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CronComponent, deps: [{ token: i1$1.MAT_DIALOG_DATA }, { token: i1__namespace$1.MatDialog }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
699
+ CronComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CronComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog *fsSkeleton=\"cron\">\n <h1 mat-dialog-title>\n Cron\n <div class=\"small\">{{cron.name}}</div>\n </h1>\n <mat-dialog-content>\n <mat-tab-group (selectedIndexChange)=\"selectedIndexChange($event)\">\n <mat-tab label=\"Overview\">\n <div class=\"row\">\n <fs-label-field>\n <fs-label>\n Status\n </fs-label>\n {{CronStates[cron.state]}}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"cron.cronSetting\">\n <fs-label>\n Run Frequency\n </fs-label>\n {{cron.cronSetting.summary}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n Last Ran\n </fs-label>\n <ng-container *ngIf=\"cron.duration===null; else lastRan\">\n Never\n </ng-container>\n <ng-template #lastRan>\n <fs-date-ago [date]=\"cron.createDate\"></fs-date-ago>\n <div><small *ngIf=\"cron.duration\">Duration: {{ cron.duration | fsDateDuration }}</small></div>\n </ng-template>\n </fs-label-field>\n </div>\n\n <fs-label-field *ngIf=\"cron.message\">\n <fs-label>\n Last Message\n </fs-label>\n <div class=\"message\">{{cron.message}}</div>\n </fs-label-field>\n </mat-tab>\n <mat-tab label=\"Logs\" *ngIf=\"config\">\n <ng-template matTabContent>\n <fs-list [config]=\"config\">\n <fs-list-column name=\"state\" title=\"Status\">\n <ng-template fs-list-cell let-row=\"row\">\n <a \n (click)=\"cronLogOpen(row)\"\n [ngStyle]=\"{ color: CronLogStateColors[row.state] }\">\n {{CronLogStates[row.state] || row.state}}\n </a>\n </ng-template>\n </fs-list-column>\n \n <fs-list-column title=\"Message\" class=\"col-message\">\n <ng-template fs-list-cell let-row=\"row\">\n <div class=\"message\">{{row.message}}</div>\n </ng-template>\n </fs-list-column>\n\n <fs-list-column name=\"create_date\" title=\"Date\" class=\"col-date\">\n <ng-template fs-list-cell let-row=\"row\">\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\n </ng-template>\n </fs-list-column>\n </fs-list> \n </ng-template>\n </mat-tab>\n </mat-tab-group>\n\n </mat-dialog-content>\n <mat-dialog-actions> \n <button \n mat-button \n [mat-dialog-close]=\"true\" \n color=\"primary\">\n Done\n </button>\n <ng-container *ngIf=\"tabIndex === 0\">\n <button \n *ngFor=\"let cronAction of cronActions\"\n mat-button \n (click)=\"cronActionClick(cronAction)\">\n {{cronAction.label}}\n </button> \n </ng-container>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [":host ::ng-deep .col-message .message{white-space:break-spaces;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}:host ::ng-deep .col-date{white-space:nowrap}h1 .small{line-height:normal}.row{display:flex;flex-wrap:wrap}.row fs-label-field:not(:last-child){margin-right:40px}.message{white-space:pre-line}\n"], components: [{ type: i2__namespace$1.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i3__namespace$1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { type: i3__namespace$1.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby"], exportAs: ["matTab"] }, { type: i2__namespace.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i2__namespace.FsLabelComponent, selector: "fs-label" }, { type: i5__namespace$2.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }, { type: i4__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i4__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i5__namespace$1.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1__namespace$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i7__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.MatTabContent, selector: "[matTabContent]" }, { type: i4__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["title", "name", "show", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i4__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i7__namespace$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i11__namespace.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i1__namespace$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }, { type: i7__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "fsDateDuration": i5__namespace$2.FsDateDurationPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
700
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CronComponent, decorators: [{
701
+ type: i0.Component,
702
+ args: [{
703
+ templateUrl: './cron.component.html',
704
+ styleUrls: ['./cron.component.scss'],
705
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
706
+ }]
707
+ }], ctorParameters: function () {
708
+ return [{ type: undefined, decorators: [{
709
+ type: i0.Inject,
710
+ args: [i1$1.MAT_DIALOG_DATA]
711
+ }] }, { type: i1__namespace$1.MatDialog }, { type: i0__namespace.ChangeDetectorRef }];
712
+ } });
535
713
 
536
- var CronsComponent = /** @class */ (function () {
537
- function CronsComponent(_message, _dialog) {
538
- this._message = _message;
539
- this._dialog = _dialog;
540
- this.config = null;
541
- this.cronStates = indexNameValue(CronStates);
542
- }
543
- CronsComponent.prototype.ngOnInit = function () {
544
- this._configList();
545
- };
546
- CronsComponent.prototype._configList = function () {
547
- var _this = this;
548
- this.config = {
549
- paging: false,
550
- filters: [
551
- {
552
- type: filter.ItemType.Keyword,
553
- name: 'keyword',
554
- label: 'Search'
555
- }
556
- ],
557
- rowActions: this.getCronActions()
558
- .map(function (rowAction) {
559
- return __assign(__assign({}, rowAction), { click: function (cron) {
560
- rowAction.action(cron)
561
- .subscribe();
562
- } });
563
- }),
564
- fetch: function (query) {
565
- query.timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
566
- return _this.loadCrons(query)
567
- .pipe(operators.map(function (response) { return ({ data: response }); }));
568
- },
569
- };
570
- if (this.bulk) {
571
- this.config.selection = {
572
- selectAll: false,
573
- actions: [
574
- {
575
- type: selection.SelectionActionType.Action,
576
- name: 'disable',
577
- label: 'Disable'
578
- },
579
- {
580
- type: selection.SelectionActionType.Action,
581
- name: 'enable',
582
- label: 'Enable'
583
- },
584
- ],
585
- actionSelected: function (action) {
586
- return _this.bulk(action.action.name, action.selected)
587
- .pipe(operators.tap(function () {
588
- _this.list.reload();
589
- _this._message.success('Applied Changes');
590
- }));
591
- },
592
- };
593
- }
594
- };
595
- CronsComponent.prototype.open = function (cron) {
596
- this._dialog.open(CronComponent, {
597
- data: {
598
- cron: cron,
599
- loadCronLogs: this.loadCronLogs,
600
- loadCron: this.loadCron,
601
- cronActions: this.getCronActions(),
602
- },
603
- width: '85%'
604
- });
605
- };
606
- CronsComponent.prototype.getCronActions = function () {
607
- var _this = this;
608
- return [
609
- {
610
- action: function (data) {
611
- return _this.queue(data)
612
- .pipe(operators.tap(function () {
613
- _this._message.success('Queued cron');
614
- _this.list.reload();
615
- }));
616
- },
617
- label: 'Queue',
618
- show: function (cron) {
619
- return cron.state === exports.CronState.Idle || cron.state === exports.CronState.Failed;
620
- },
621
- },
622
- {
623
- action: function (data) {
624
- return _this.run(data)
625
- .pipe(operators.tap(function () {
626
- _this._message.success('Cron ran');
627
- _this.list.reload();
628
- }));
629
- },
630
- label: 'Run',
631
- show: function (cron) {
632
- return cron.state === exports.CronState.Idle || cron.state === exports.CronState.Failed;
633
- },
634
- },
635
- {
636
- action: function (data) {
637
- return _this.enable(data)
638
- .pipe(operators.tap(function () {
639
- _this._message.success('Enabled cron');
640
- _this.list.reload();
641
- }));
642
- },
643
- label: 'Enable',
644
- show: function (cron) {
645
- return cron.state === exports.CronState.Disabled;
646
- },
647
- },
648
- {
649
- action: function (data) {
650
- return _this.disable(data)
651
- .pipe(operators.tap(function () {
652
- _this._message.success('Disabled cron');
653
- _this.list.reload();
654
- }));
655
- },
656
- label: 'Disable',
657
- show: function (cron) {
658
- return cron.state === exports.CronState.Idle || cron.state === exports.CronState.Failed;
659
- },
660
- },
661
- {
662
- action: function (data) {
663
- return _this.kill(data)
664
- .pipe(operators.tap(function () {
665
- _this._message.success('Killed cron');
666
- _this.list.reload();
667
- }));
668
- },
669
- label: 'Kill',
670
- show: function (cron) {
671
- return cron.state === exports.CronState.Running;
672
- },
673
- },
674
- ];
675
- };
676
- CronsComponent.ctorParameters = function () { return [
677
- { type: message.FsMessage },
678
- { type: dialog.MatDialog }
679
- ]; };
680
- __decorate([
681
- core.ViewChild(list.FsListComponent, { static: true }),
682
- __metadata("design:type", list.FsListComponent)
683
- ], CronsComponent.prototype, "list", void 0);
684
- __decorate([
685
- core.Input(),
686
- __metadata("design:type", Function)
687
- ], CronsComponent.prototype, "enable", void 0);
688
- __decorate([
689
- core.Input(),
690
- __metadata("design:type", Function)
691
- ], CronsComponent.prototype, "disable", void 0);
692
- __decorate([
693
- core.Input(),
694
- __metadata("design:type", Function)
695
- ], CronsComponent.prototype, "kill", void 0);
696
- __decorate([
697
- core.Input(),
698
- __metadata("design:type", Function)
699
- ], CronsComponent.prototype, "queue", void 0);
700
- __decorate([
701
- core.Input(),
702
- __metadata("design:type", Function)
703
- ], CronsComponent.prototype, "run", void 0);
704
- __decorate([
705
- core.Input(),
706
- __metadata("design:type", Function)
707
- ], CronsComponent.prototype, "loadCrons", void 0);
708
- __decorate([
709
- core.Input(),
710
- __metadata("design:type", Function)
711
- ], CronsComponent.prototype, "loadCron", void 0);
712
- __decorate([
713
- core.Input(),
714
- __metadata("design:type", Function)
715
- ], CronsComponent.prototype, "loadCronLogs", void 0);
716
- __decorate([
717
- core.Input(),
718
- __metadata("design:type", Function)
719
- ], CronsComponent.prototype, "bulk", void 0);
720
- CronsComponent = __decorate([
721
- core.Component({
722
- selector: 'fs-system-crons',
723
- template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Name</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a (click)=\"open(row)\">{{row.name}}</a>\r\n <div *ngIf=\"row.cronSetting\">\r\n <small>{{row.cronSetting.summary}}</small>\r\n </div>\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Status</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{cronStates[row.state]}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Last Ran</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <ng-container *ngIf=\"row.duration===null; else lastRan\">\r\n Never\r\n </ng-container>\r\n <ng-template #lastRan>\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n <div><small *ngIf=\"row.duration\">Duration: {{ row.duration | fsDateDuration }}</small></div>\r\n </ng-template>\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>\r\n",
724
- styles: [""]
725
- }),
726
- __metadata("design:paramtypes", [message.FsMessage,
727
- dialog.MatDialog])
728
- ], CronsComponent);
729
- return CronsComponent;
714
+ var CronsComponent = /** @class */ (function () {
715
+ function CronsComponent(_message, _systemService, _dialog) {
716
+ this._message = _message;
717
+ this._systemService = _systemService;
718
+ this._dialog = _dialog;
719
+ this.config = null;
720
+ this.cronStates = indexNameValue(CronStates);
721
+ }
722
+ CronsComponent.prototype.ngOnInit = function () {
723
+ this._configList();
724
+ };
725
+ CronsComponent.prototype._configList = function () {
726
+ var _this = this;
727
+ this.config = {
728
+ paging: false,
729
+ filters: [
730
+ {
731
+ type: filter.ItemType.Keyword,
732
+ name: 'keyword',
733
+ label: 'Search'
734
+ }
735
+ ],
736
+ rowActions: this.getCronActions()
737
+ .map(function (rowAction) {
738
+ return Object.assign(Object.assign({}, rowAction), { click: function (cron) {
739
+ rowAction.action(cron)
740
+ .subscribe();
741
+ } });
742
+ }),
743
+ fetch: function (query) {
744
+ query.timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
745
+ return _this.loadCrons(query)
746
+ .pipe(operators.map(function (response) { return ({ data: _this._systemService.input(response) }); }));
747
+ },
748
+ };
749
+ if (this.bulk) {
750
+ this.config.selection = {
751
+ selectAll: false,
752
+ actions: [
753
+ {
754
+ type: selection.SelectionActionType.Action,
755
+ name: 'disable',
756
+ label: 'Disable'
757
+ },
758
+ {
759
+ type: selection.SelectionActionType.Action,
760
+ name: 'enable',
761
+ label: 'Enable'
762
+ },
763
+ ],
764
+ actionSelected: function (action) {
765
+ return _this.bulk(action.action.name, action.selected)
766
+ .pipe(operators.tap(function () {
767
+ _this.list.reload();
768
+ _this._message.success('Applied Changes');
769
+ }));
770
+ },
771
+ };
772
+ }
773
+ };
774
+ CronsComponent.prototype.open = function (cron) {
775
+ this._dialog.open(CronComponent, {
776
+ data: {
777
+ cron: cron,
778
+ loadCronLogs: this.loadCronLogs,
779
+ loadCron: this.loadCron,
780
+ cronActions: this.getCronActions(),
781
+ },
782
+ width: '85%'
783
+ });
784
+ };
785
+ CronsComponent.prototype.getCronActions = function () {
786
+ var _this = this;
787
+ return [
788
+ {
789
+ action: function (data) {
790
+ return _this.queue(_this._systemService.output(data))
791
+ .pipe(operators.tap(function () {
792
+ _this._message.success('Queued cron');
793
+ _this.list.reload();
794
+ }));
795
+ },
796
+ label: 'Queue',
797
+ show: function (cron) {
798
+ return cron.state === exports.CronState.Idle || cron.state === exports.CronState.Failed;
799
+ },
800
+ },
801
+ {
802
+ action: function (data) {
803
+ return _this.run(_this._systemService.output(data))
804
+ .pipe(operators.tap(function () {
805
+ _this._message.success('Cron ran');
806
+ _this.list.reload();
807
+ }));
808
+ },
809
+ label: 'Run',
810
+ show: function (cron) {
811
+ return cron.state === exports.CronState.Idle || cron.state === exports.CronState.Failed;
812
+ },
813
+ },
814
+ {
815
+ action: function (data) {
816
+ return _this.enable(_this._systemService.output(data))
817
+ .pipe(operators.tap(function () {
818
+ _this._message.success('Enabled cron');
819
+ _this.list.reload();
820
+ }));
821
+ },
822
+ label: 'Enable',
823
+ show: function (cron) {
824
+ return cron.state === exports.CronState.Disabled;
825
+ },
826
+ },
827
+ {
828
+ action: function (data) {
829
+ return _this.disable(_this._systemService.output(data))
830
+ .pipe(operators.tap(function () {
831
+ _this._message.success('Disabled cron');
832
+ _this.list.reload();
833
+ }));
834
+ },
835
+ label: 'Disable',
836
+ show: function (cron) {
837
+ return cron.state === exports.CronState.Idle || cron.state === exports.CronState.Failed;
838
+ },
839
+ },
840
+ {
841
+ action: function (data) {
842
+ return _this.kill(_this._systemService.output(data))
843
+ .pipe(operators.tap(function () {
844
+ _this._message.success('Killed cron');
845
+ _this.list.reload();
846
+ }));
847
+ },
848
+ label: 'Kill',
849
+ show: function (cron) {
850
+ return cron.state === exports.CronState.Running;
851
+ },
852
+ },
853
+ ];
854
+ };
855
+ return CronsComponent;
730
856
  }());
857
+ CronsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CronsComponent, deps: [{ token: i1__namespace.FsMessage }, { token: SystemService }, { token: i1__namespace$1.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
858
+ CronsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CronsComponent, selector: "fs-system-crons", inputs: { enable: "enable", disable: "disable", kill: "kill", queue: "queue", run: "run", loadCrons: "loadCrons", loadCron: "loadCron", loadCronLogs: "loadCronLogs", bulk: "bulk" }, viewQueries: [{ propertyName: "list", first: true, predicate: i4$1.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\">\n <fs-list-column>\n <ng-template fs-list-header>Name</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"open(row)\">{{row.name}}</a>\n <div *ngIf=\"row.cronSetting\">\n <small>{{row.cronSetting.summary}}</small>\n </div>\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Status</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n {{cronStates[row.state]}}\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Last Ran</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.duration===null; else lastRan\">\n Never\n </ng-container>\n <ng-template #lastRan>\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\n <div><small *ngIf=\"row.duration\">Duration: {{ row.duration | fsDateDuration }}</small></div>\n </ng-template>\n </ng-template>\n </fs-list-column>\n</fs-list>\n", styles: [""], components: [{ type: i4__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i5__namespace$2.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i4__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["title", "name", "show", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i4__namespace$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i4__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i7__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "fsDateDuration": i5__namespace$2.FsDateDurationPipe } });
859
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CronsComponent, decorators: [{
860
+ type: i0.Component,
861
+ args: [{
862
+ selector: 'fs-system-crons',
863
+ templateUrl: './crons.component.html',
864
+ styleUrls: ['./crons.component.scss'],
865
+ }]
866
+ }], ctorParameters: function () { return [{ type: i1__namespace.FsMessage }, { type: SystemService }, { type: i1__namespace$1.MatDialog }]; }, propDecorators: { list: [{
867
+ type: i0.ViewChild,
868
+ args: [i4$1.FsListComponent, { static: true }]
869
+ }], enable: [{
870
+ type: i0.Input
871
+ }], disable: [{
872
+ type: i0.Input
873
+ }], kill: [{
874
+ type: i0.Input
875
+ }], queue: [{
876
+ type: i0.Input
877
+ }], run: [{
878
+ type: i0.Input
879
+ }], loadCrons: [{
880
+ type: i0.Input
881
+ }], loadCron: [{
882
+ type: i0.Input
883
+ }], loadCronLogs: [{
884
+ type: i0.Input
885
+ }], bulk: [{
886
+ type: i0.Input
887
+ }] } });
731
888
 
732
- var SettingsComponent = /** @class */ (function () {
733
- function SettingsComponent(_message, _clipboardService, _prompt, _cdRef) {
734
- this._message = _message;
735
- this._clipboardService = _clipboardService;
736
- this._prompt = _prompt;
737
- this._cdRef = _cdRef;
738
- this.fileRemove = new core.EventEmitter();
739
- this.fileSelect = new core.EventEmitter();
740
- this.groupedSettings = [];
741
- this.groups = [];
742
- this.SettingInterfaceType = SettingInterfaceType;
743
- }
744
- SettingsComponent.prototype.ngOnInit = function () {
745
- var _this = this;
746
- this.loadSettings()
747
- .subscribe(function (settings) {
748
- settings = settings
749
- .filter(function (setting) {
750
- return setting.interfaceType !== SettingInterfaceType.None;
751
- })
752
- .map(function (setting) {
753
- switch (setting.interfaceType) {
754
- case SettingInterfaceType.Date:
755
- case SettingInterfaceType.Time:
756
- setting.value = date.parse(setting.value);
757
- case SettingInterfaceType.SelectMultiple:
758
- setting.value = Array.isArray(setting.value) ? setting.value : [];
759
- break;
760
- }
761
- return setting;
762
- });
763
- _this.groupedSettings = lodashEs.groupBy(settings, function (item) {
764
- return item.group;
765
- });
766
- _this.groups = Object.keys(_this.groupedSettings);
767
- _this._cdRef.markForCheck();
768
- });
769
- };
770
- SettingsComponent.prototype.export = function (event, settings) {
771
- event.stopPropagation();
772
- var data = settings.map(function (setting) {
773
- return {
774
- name: setting.name,
775
- value: setting.value,
776
- group: setting.group,
777
- };
778
- });
779
- this._clipboardService.copy(JSON.stringify(data));
780
- this._message.success('Copied to clipboard');
781
- };
782
- SettingsComponent.prototype.import = function (event, group) {
783
- var _this = this;
784
- event.stopPropagation();
785
- this._prompt.input({
786
- label: 'JSON Import',
787
- title: 'Import Settings',
788
- commitLabel: 'Import',
789
- required: true,
790
- }).subscribe(function (value) {
791
- if (value) {
792
- try {
793
- var settings_1 = _this.groupedSettings[group];
794
- var data = JSON.parse(value);
795
- data.forEach(function (item) {
796
- var setting = settings_1.find(function (s) {
797
- return item.name === s.name;
798
- });
799
- if (setting) {
800
- Object.assign(setting, item);
801
- }
802
- });
803
- _this._cdRef.markForCheck();
804
- }
805
- catch (e) {
806
- _this._message.error(e);
807
- }
808
- }
809
- });
810
- };
811
- SettingsComponent.prototype.saveGroup = function (group) {
812
- var _this = this;
813
- var settings = this.groupedSettings[group];
814
- var values = lodashEs.reduce(settings, function (result, value, key) {
815
- return (result[value.name] = value.value, result);
816
- }, {});
817
- this.save(group, values)
818
- .subscribe(function () {
819
- _this._message.success('Changes Saved');
820
- });
821
- };
822
- SettingsComponent.ctorParameters = function () { return [
823
- { type: message.FsMessage },
824
- { type: ngxClipboard.ClipboardService },
825
- { type: prompt.FsPrompt },
826
- { type: core.ChangeDetectorRef }
827
- ]; };
828
- __decorate([
829
- core.Input(),
830
- __metadata("design:type", Function)
831
- ], SettingsComponent.prototype, "loadSettings", void 0);
832
- __decorate([
833
- core.Input(),
834
- __metadata("design:type", Function)
835
- ], SettingsComponent.prototype, "save", void 0);
836
- __decorate([
837
- core.Output(),
838
- __metadata("design:type", Object)
839
- ], SettingsComponent.prototype, "fileRemove", void 0);
840
- __decorate([
841
- core.Output(),
842
- __metadata("design:type", Object)
843
- ], SettingsComponent.prototype, "fileSelect", void 0);
844
- SettingsComponent = __decorate([
845
- core.Component({
846
- selector: 'fs-system-settings',
847
- template: "\r\n<mat-accordion>\r\n <mat-expansion-panel hideToggle *ngFor=\"let group of groups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <div class=\"title-row\">\r\n <div class=\"title\">{{group || 'General'}}</div>\r\n <div class=\"actions\">\r\n <button\r\n type=\"button\"\r\n [matTooltip]=\"'Export ' + (group || 'General') + ' Settings'\"\r\n mat-icon-button\r\n (click)=\"export($event, groupedSettings[group])\">\r\n <mat-icon>cloud_download</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n [matTooltip]=\"'Import ' + (group || 'General') + ' Settings'\"\r\n mat-icon-button\r\n (click)=\"import($event, group)\">\r\n <mat-icon>cloud_upload</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div hideToggle *ngFor=\"let setting of groupedSettings[group]\">\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\"\r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.InputBox\">\r\n <input\r\n matInput\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Textarea\">\r\n <textarea\r\n matInput\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n </textarea>\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Select || setting.interfaceType===SettingInterfaceType.SelectMultiple\">\r\n <mat-select\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [multiple]=\"setting.interfaceType===SettingInterfaceType.SelectMultiple\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-option *ngFor=\"let item of setting.values | keyNameValue\" [value]=\"item.value\">\r\n {{item.name}}\r\n </mat-option>\r\n </mat-select>\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Date\">\r\n <input\r\n matInput\r\n fsDatePicker\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Time\">\r\n <input\r\n matInput\r\n fsTimePicker\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <fs-file-picker\r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.File\"\r\n [allowRemove]=\"true\"\r\n [allowDownload]=\"true\"\r\n (select)=\"fileSelect.emit({ setting: setting, file: $event.file })\"\r\n (remove)=\"fileRemove.emit(setting)\"\r\n [url]=\"setting.value\">\r\n <div fsFileLabel>{{setting.label}}</div>\r\n </fs-file-picker>\r\n </div>\r\n\r\n <button mat-raised-button color=\"primary\" type=\"button\" (click)=\"saveGroup(group)\">Save</button>\r\n\r\n </mat-expansion-panel>\r\n\r\n</mat-accordion>\r\n",
848
- changeDetection: core.ChangeDetectionStrategy.OnPush,
849
- styles: [".mat-expansion-panel-header{font-size:19px}.full-width{width:100%}.title-row{flex-direction:row;box-sizing:border-box;display:flex;place-content:center flex-start;align-items:center;width:100%}.title-row .title{display:flex;flex:1}:host ::ng-deep .mat-expansion-panel-header-title{margin:0}:host ::ng-deep .mat-expansion-panel .actions{display:none}:host ::ng-deep .mat-expansion-panel.mat-expanded .actions{display:block}"]
850
- }),
851
- __metadata("design:paramtypes", [message.FsMessage,
852
- ngxClipboard.ClipboardService,
853
- prompt.FsPrompt,
854
- core.ChangeDetectorRef])
855
- ], SettingsComponent);
856
- return SettingsComponent;
889
+ var KeyNameValuePipe = /** @class */ (function () {
890
+ function KeyNameValuePipe() {
891
+ }
892
+ KeyNameValuePipe.prototype.transform = function (values) {
893
+ return Object.keys(values).map(function (key) {
894
+ return { value: key, name: values[key] };
895
+ });
896
+ };
897
+ return KeyNameValuePipe;
857
898
  }());
899
+ KeyNameValuePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeyNameValuePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
900
+ KeyNameValuePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeyNameValuePipe, name: "keyNameValue" });
901
+ KeyNameValuePipe.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeyNameValuePipe });
902
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeyNameValuePipe, decorators: [{
903
+ type: i0.Pipe,
904
+ args: [{
905
+ name: 'keyNameValue'
906
+ }]
907
+ }, {
908
+ type: i0.Injectable
909
+ }] });
858
910
 
859
- var FileManagerComponent = /** @class */ (function () {
860
- function FileManagerComponent() {
861
- }
862
- FileManagerComponent.prototype.ngOnInit = function () {
863
- this._configFileManager();
864
- };
865
- FileManagerComponent.prototype._configFileManager = function () {
866
- var _this = this;
867
- this.config = {
868
- fetch: function (path) {
869
- return _this.fetch(path);
870
- },
871
- deleteFile: function (path) {
872
- return _this.deleteFile(path);
873
- },
874
- deleteDirectory: function (path) {
875
- return _this.deleteDirectory(path);
876
- },
877
- createDirectory: function (path) {
878
- return _this.createDirectory(path);
879
- },
880
- download: function (path) {
881
- return _this.download(path);
882
- },
883
- upload: function (path, file) {
884
- return _this.upload(path, file);
885
- }
886
- };
887
- };
888
- __decorate([
889
- core.Input(),
890
- __metadata("design:type", Function)
891
- ], FileManagerComponent.prototype, "fetch", void 0);
892
- __decorate([
893
- core.Input(),
894
- __metadata("design:type", Function)
895
- ], FileManagerComponent.prototype, "deleteFile", void 0);
896
- __decorate([
897
- core.Input(),
898
- __metadata("design:type", Function)
899
- ], FileManagerComponent.prototype, "deleteDirectory", void 0);
900
- __decorate([
901
- core.Input(),
902
- __metadata("design:type", Function)
903
- ], FileManagerComponent.prototype, "createDirectory", void 0);
904
- __decorate([
905
- core.Input(),
906
- __metadata("design:type", Function)
907
- ], FileManagerComponent.prototype, "download", void 0);
908
- __decorate([
909
- core.Input(),
910
- __metadata("design:type", Function)
911
- ], FileManagerComponent.prototype, "upload", void 0);
912
- FileManagerComponent = __decorate([
913
- core.Component({
914
- selector: 'fs-system-file-manager',
915
- template: "<fs-file-manager [config]=\"config\"></fs-file-manager>",
916
- styles: [""]
917
- }),
918
- __metadata("design:paramtypes", [])
919
- ], FileManagerComponent);
920
- return FileManagerComponent;
911
+ var SettingsComponent = /** @class */ (function () {
912
+ function SettingsComponent(_message, _systemService, _clipboardService, _prompt, _cdRef) {
913
+ this._message = _message;
914
+ this._systemService = _systemService;
915
+ this._clipboardService = _clipboardService;
916
+ this._prompt = _prompt;
917
+ this._cdRef = _cdRef;
918
+ this.fileRemove = new i0.EventEmitter();
919
+ this.fileSelect = new i0.EventEmitter();
920
+ this.groupedSettings = [];
921
+ this.groups = [];
922
+ this.SettingInterfaceType = SettingInterfaceType;
923
+ }
924
+ SettingsComponent.prototype.ngOnInit = function () {
925
+ var _this = this;
926
+ this.loadSettings()
927
+ .subscribe(function (settings) {
928
+ settings = _this._systemService.input(settings);
929
+ settings = settings.map(function (setting) {
930
+ switch (setting.interfaceType) {
931
+ case SettingInterfaceType.Date:
932
+ case SettingInterfaceType.Time:
933
+ setting.value = i5$2.parse(setting.value);
934
+ break;
935
+ }
936
+ return setting;
937
+ });
938
+ _this.groupedSettings = lodashEs.groupBy(settings, function (item) {
939
+ return item.group;
940
+ });
941
+ _this.groups = Object.keys(_this.groupedSettings);
942
+ _this._cdRef.markForCheck();
943
+ });
944
+ };
945
+ SettingsComponent.prototype.export = function (event, settings) {
946
+ event.stopPropagation();
947
+ var data = settings.map(function (setting) {
948
+ return {
949
+ name: setting.name,
950
+ value: setting.value,
951
+ group: setting.group,
952
+ };
953
+ });
954
+ this._clipboardService.copy(JSON.stringify(data));
955
+ this._message.success('Copied to clipboard');
956
+ };
957
+ SettingsComponent.prototype.import = function (event, group) {
958
+ var _this = this;
959
+ event.stopPropagation();
960
+ this._prompt.input({
961
+ label: 'JSON Import',
962
+ title: 'Import Settings',
963
+ commitLabel: 'Import',
964
+ required: true,
965
+ }).subscribe(function (value) {
966
+ if (value) {
967
+ try {
968
+ var settings_1 = _this.groupedSettings[group];
969
+ var data = JSON.parse(value);
970
+ data.forEach(function (item) {
971
+ var setting = settings_1.find(function (s) {
972
+ return item.name === s.name;
973
+ });
974
+ if (setting) {
975
+ Object.assign(setting, item);
976
+ }
977
+ });
978
+ _this._cdRef.markForCheck();
979
+ }
980
+ catch (e) {
981
+ _this._message.error(e);
982
+ }
983
+ }
984
+ });
985
+ };
986
+ SettingsComponent.prototype.saveGroup = function (group) {
987
+ var _this = this;
988
+ var settings = this.groupedSettings[group];
989
+ var values = lodashEs.reduce(settings, function (result, value, key) {
990
+ return (result[value.name] = value.value, result);
991
+ }, {});
992
+ this.save(group, values)
993
+ .subscribe(function () {
994
+ _this._message.success('Changes Saved');
995
+ });
996
+ };
997
+ return SettingsComponent;
921
998
  }());
999
+ SettingsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SettingsComponent, deps: [{ token: i1__namespace.FsMessage }, { token: SystemService }, { token: i3__namespace$2.ClipboardService }, { token: i4__namespace$2.FsPrompt }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
1000
+ SettingsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SettingsComponent, selector: "fs-system-settings", inputs: { loadSettings: "loadSettings", save: "save" }, outputs: { fileRemove: "fileRemove", fileSelect: "fileSelect" }, ngImport: i0__namespace, template: "\n<mat-accordion>\n <mat-expansion-panel hideToggle *ngFor=\"let group of groups\">\n <mat-expansion-panel-header>\n <mat-panel-title>\n <div class=\"title-row\">\n <div class=\"title\">{{group || 'General'}}</div>\n <div class=\"actions\">\n <button\n type=\"button\"\n [matTooltip]=\"'Export ' + (group || 'General') + ' Settings'\"\n mat-icon-button\n (click)=\"export($event, groupedSettings[group])\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n <button\n type=\"button\"\n [matTooltip]=\"'Import ' + (group || 'General') + ' Settings'\"\n mat-icon-button\n (click)=\"import($event, group)\">\n <mat-icon>cloud_upload</mat-icon>\n </button>\n </div>\n </div>\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div hideToggle *ngFor=\"let setting of groupedSettings[group]\">\n <mat-form-field class=\"full-width\" *ngIf=\"setting.interfaceType===SettingInterfaceType.InputBox\">\n <input\n matInput\n [placeholder]=\"setting.label\"\n [(ngModel)]=\"setting.value\"\n [name]=\"'setting_' + setting.id\">\n <mat-hint>{{setting.instruction}}</mat-hint>\n </mat-form-field>\n\n <mat-form-field class=\"full-width\" *ngIf=\"setting.interfaceType===SettingInterfaceType.Textarea\">\n <textarea\n matInput\n [placeholder]=\"setting.label\"\n [(ngModel)]=\"setting.value\"\n [name]=\"'setting_' + setting.id\">\n </textarea>\n <mat-hint>{{setting.instruction}}</mat-hint>\n </mat-form-field>\n\n <mat-form-field class=\"full-width\" *ngIf=\"setting.interfaceType===SettingInterfaceType.DropDown\">\n <mat-select\n [placeholder]=\"setting.label\"\n [(ngModel)]=\"setting.value\"\n [name]=\"'setting_' + setting.id\">\n <mat-option *ngFor=\"let item of setting.values | keyNameValue\" [value]=\"item.value\">\n {{item.name}}\n </mat-option>\n </mat-select>\n <mat-hint>{{setting.instruction}}</mat-hint>\n </mat-form-field>\n\n <mat-form-field class=\"full-width\" *ngIf=\"setting.interfaceType===SettingInterfaceType.Date\">\n <input\n matInput\n fsDatePicker\n [placeholder]=\"setting.label\"\n [(ngModel)]=\"setting.value\"\n [name]=\"'setting_' + setting.id\">\n <mat-hint>{{setting.instruction}}</mat-hint>\n </mat-form-field>\n\n <mat-form-field class=\"full-width\" *ngIf=\"setting.interfaceType===SettingInterfaceType.Time\">\n <input\n matInput\n fsTimePicker\n [placeholder]=\"setting.label\"\n [(ngModel)]=\"setting.value\"\n [name]=\"'setting_' + setting.id\">\n <mat-hint>{{setting.instruction}}</mat-hint>\n </mat-form-field>\n\n <fs-file-picker\n *ngIf=\"setting.interfaceType===SettingInterfaceType.File\"\n [allowRemove]=\"true\"\n [allowDownload]=\"true\"\n (select)=\"fileSelect.emit({ setting: setting, file: $event.file })\"\n (remove)=\"fileRemove.emit(setting)\"\n [url]=\"setting.value\">\n <div fsFileLabel>{{setting.label}}</div>\n </fs-file-picker>\n </div>\n\n <button mat-raised-button color=\"primary\" type=\"button\" (click)=\"saveGroup(group)\">Save</button>\n\n </mat-expansion-panel>\n\n</mat-accordion>\n", styles: [".mat-expansion-panel-header{font-size:19px}.full-width{width:100%}.title-row{flex-direction:row;box-sizing:border-box;display:flex;place-content:center flex-start;align-items:center;width:100%}.title-row .title{display:flex;flex:1}:host ::ng-deep .mat-expansion-panel-header-title{margin:0}:host ::ng-deep .mat-expansion-panel .actions{display:none}:host ::ng-deep .mat-expansion-panel.mat-expanded .actions{display:block}\n"], components: [{ type: i5__namespace$3.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i5__namespace$3.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { type: i4__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i7__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i8__namespace.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i9__namespace.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i10__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i11__namespace$1.FsDatePickerComponent, selector: "[fsDatePicker]", inputs: ["minYear", "maxYear", "minDate", "maxDate", "startOfDay", "view", "format", "minutes"], outputs: ["change"] }, { type: i11__namespace$1.FsTimePickerComponent, selector: "[fsTimePicker]", inputs: ["view"] }, { type: i12__namespace$1.FsFilePickerComponent, selector: "fs-file-picker", inputs: ["imageWidth", "imageHeight", "imageQuality", "showFilename", "url", "file", "accept", "disabled", "width", "height", "previewWidth", "previewHeight", "allowDownload", "allowReupload", "allowRemove"], outputs: ["select", "remove"] }], directives: [{ type: i5__namespace$3.MatAccordion, selector: "mat-accordion", inputs: ["multi", "displayMode", "togglePosition", "hideToggle"], exportAs: ["matAccordion"] }, { type: i7__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace$3.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i12__namespace.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i7__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i15__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i16__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i16__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i16__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i8__namespace.MatHint, selector: "mat-hint", inputs: ["align", "id"] }], pipes: { "keyNameValue": KeyNameValuePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1001
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SettingsComponent, decorators: [{
1002
+ type: i0.Component,
1003
+ args: [{
1004
+ selector: 'fs-system-settings',
1005
+ templateUrl: './settings.component.html',
1006
+ styleUrls: ['./settings.component.scss'],
1007
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1008
+ }]
1009
+ }], ctorParameters: function () { return [{ type: i1__namespace.FsMessage }, { type: SystemService }, { type: i3__namespace$2.ClipboardService }, { type: i4__namespace$2.FsPrompt }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { loadSettings: [{
1010
+ type: i0.Input
1011
+ }], save: [{
1012
+ type: i0.Input
1013
+ }], fileRemove: [{
1014
+ type: i0.Output
1015
+ }], fileSelect: [{
1016
+ type: i0.Output
1017
+ }] } });
922
1018
 
923
- var KeyNameValuePipe = /** @class */ (function () {
924
- function KeyNameValuePipe() {
925
- }
926
- KeyNameValuePipe.prototype.transform = function (values) {
927
- return Object.keys(values).map(function (key) {
928
- return { value: key, name: values[key] };
929
- });
930
- };
931
- KeyNameValuePipe = __decorate([
932
- core.Pipe({
933
- name: 'keyNameValue'
934
- }),
935
- core.Injectable()
936
- ], KeyNameValuePipe);
937
- return KeyNameValuePipe;
1019
+ var FileManagerComponent = /** @class */ (function () {
1020
+ function FileManagerComponent() {
1021
+ }
1022
+ FileManagerComponent.prototype.ngOnInit = function () {
1023
+ this._configFileManager();
1024
+ };
1025
+ FileManagerComponent.prototype._configFileManager = function () {
1026
+ var _this = this;
1027
+ this.config = {
1028
+ fetch: function (path) {
1029
+ return _this.fetch(path);
1030
+ },
1031
+ deleteFile: function (path) {
1032
+ return _this.deleteFile(path);
1033
+ },
1034
+ deleteDirectory: function (path) {
1035
+ return _this.deleteDirectory(path);
1036
+ },
1037
+ createDirectory: function (path) {
1038
+ return _this.createDirectory(path);
1039
+ },
1040
+ download: function (path) {
1041
+ return _this.download(path);
1042
+ },
1043
+ upload: function (path, file) {
1044
+ return _this.upload(path, file);
1045
+ }
1046
+ };
1047
+ };
1048
+ return FileManagerComponent;
938
1049
  }());
1050
+ FileManagerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FileManagerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1051
+ FileManagerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FileManagerComponent, selector: "fs-system-file-manager", inputs: { fetch: "fetch", deleteFile: "deleteFile", deleteDirectory: "deleteDirectory", createDirectory: "createDirectory", download: "download", upload: "upload" }, ngImport: i0__namespace, template: "<fs-file-manager [config]=\"config\"></fs-file-manager>", styles: [""], components: [{ type: i1__namespace$2.ɵa, selector: "fs-file-manager", inputs: ["config"] }] });
1052
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FileManagerComponent, decorators: [{
1053
+ type: i0.Component,
1054
+ args: [{
1055
+ selector: 'fs-system-file-manager',
1056
+ templateUrl: './file-manager.component.html',
1057
+ styleUrls: ['./file-manager.component.scss']
1058
+ }]
1059
+ }], ctorParameters: function () { return []; }, propDecorators: { fetch: [{
1060
+ type: i0.Input
1061
+ }], deleteFile: [{
1062
+ type: i0.Input
1063
+ }], deleteDirectory: [{
1064
+ type: i0.Input
1065
+ }], createDirectory: [{
1066
+ type: i0.Input
1067
+ }], download: [{
1068
+ type: i0.Input
1069
+ }], upload: [{
1070
+ type: i0.Input
1071
+ }] } });
939
1072
 
940
- var ProcessComponent = /** @class */ (function () {
941
- function ProcessComponent(_dialogRef, data) {
942
- this._dialogRef = _dialogRef;
943
- this.data = data;
944
- this.ProcessState = exports.ProcessState;
945
- }
946
- ProcessComponent.prototype.ngOnInit = function () {
947
- this.ProcessStates = indexNameValue(ProcessStates);
948
- if (this.data.loadProcess) {
949
- this.load();
950
- }
951
- else {
952
- this.process = this.data.process;
953
- }
954
- };
955
- ProcessComponent.prototype.load = function () {
956
- var _this = this;
957
- this.data.loadProcess(this.data.process)
958
- .subscribe(function (process) {
959
- _this.process = process;
960
- });
961
- };
962
- ProcessComponent.ctorParameters = function () { return [
963
- { type: dialog.MatDialogRef },
964
- { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
965
- ]; };
966
- ProcessComponent = __decorate([
967
- core.Component({
968
- template: "<fs-dialog *fsSkeleton=\"process\">\r\n <div mat-dialog-title>Process</div>\r\n <mat-dialog-content>\r\n <div fxLayout=\"column\">\r\n <fs-label-field>\r\n <fs-label>\r\n Name\r\n </fs-label>\r\n {{process.prettyName}}\r\n </fs-label-field>\r\n\r\n <div fxLayout=\"row\" fxLayoutGap=\"20px\">\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Status\r\n </fs-label>\r\n {{ProcessStates[process.state]}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.notify\">\r\n <fs-label>\r\n Notification Email\r\n </fs-label>\r\n {{process.notify}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.pid\">\r\n <fs-label>\r\n PID\r\n </fs-label>\r\n {{process.pid}}\r\n </fs-label-field>\r\n </div>\r\n\r\n <div fxLayout=\"row\" fxLayoutGap=\"20px\">\r\n <fs-label-field>\r\n <fs-label>\r\n Create Date\r\n </fs-label>\r\n {{ process.createDate | fsDateFormat: 'date-time' }}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.startDate\">\r\n <fs-label>\r\n Start Date\r\n </fs-label>\r\n {{ process.startDate | fsDateFormat: 'date-time' }}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.endDate\">\r\n <fs-label>\r\n Complete Date\r\n </fs-label>\r\n {{ process.endDate | fsDateFormat: 'date-time' }}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.duration\">\r\n <fs-label>\r\n Duration\r\n </fs-label>\r\n {{ process.duration | fsDateDuration: {hours: true, minutes: true, seconds: true} }}\r\n </fs-label-field>\r\n </div>\r\n\r\n <fs-label-field *ngIf=\"process.message\">\r\n <fs-label>\r\n Message\r\n </fs-label>\r\n {{process.message}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.log\" class=\"log\">\r\n <fs-label>\r\n Log\r\n </fs-label>{{process.log}}\r\n </fs-label-field>\r\n\r\n </div>\r\n </mat-dialog-content>\r\n <mat-dialog-actions>\r\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\r\n <button\r\n *ngIf=\"process.state===ProcessState.Running && data.loadProcess\"\r\n mat-button\r\n (click)=\"load()\">\r\n Reload\r\n </button>\r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n",
969
- styles: [":host ::ng-deep .log .field-content{white-space:pre-wrap;font-family:monospace;font-size:14px}"]
970
- }),
971
- __param(1, core.Inject(dialog.MAT_DIALOG_DATA)),
972
- __metadata("design:paramtypes", [dialog.MatDialogRef, Object])
973
- ], ProcessComponent);
974
- return ProcessComponent;
1073
+ var ProcessComponent = /** @class */ (function () {
1074
+ function ProcessComponent(_dialogRef, data) {
1075
+ this._dialogRef = _dialogRef;
1076
+ this.data = data;
1077
+ this.ProcessState = exports.ProcessState;
1078
+ }
1079
+ ProcessComponent.prototype.ngOnInit = function () {
1080
+ this.ProcessStates = indexNameValue(ProcessStates);
1081
+ if (this.data.loadProcess) {
1082
+ this.load();
1083
+ }
1084
+ else {
1085
+ this.process = this.data.process;
1086
+ }
1087
+ };
1088
+ ProcessComponent.prototype.load = function () {
1089
+ var _this = this;
1090
+ this.data.loadProcess(this.data.process)
1091
+ .subscribe(function (process) {
1092
+ _this.process = process;
1093
+ });
1094
+ };
1095
+ return ProcessComponent;
975
1096
  }());
1097
+ ProcessComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProcessComponent, deps: [{ token: i1__namespace$1.MatDialogRef }, { token: i1$1.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
1098
+ ProcessComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ProcessComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog *fsSkeleton=\"process\">\n <div mat-dialog-title>Process</div>\n <mat-dialog-content>\n <div fxLayout=\"column\">\n <fs-label-field>\n <fs-label>\n Name\n </fs-label>\n {{process.prettyName}}\n </fs-label-field>\n\n <div fxLayout=\"row\" fxLayoutGap=\"20px\">\n\n <fs-label-field>\n <fs-label>\n Status\n </fs-label>\n {{ProcessStates[process.state]}}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"process.notify\">\n <fs-label>\n Notification Email\n </fs-label>\n {{process.notify}}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"process.pid\">\n <fs-label>\n PID\n </fs-label>\n {{process.pid}}\n </fs-label-field>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"20px\">\n <fs-label-field>\n <fs-label>\n Create Date\n </fs-label>\n {{ process.createDate | fsDateFormat: 'date-time' }}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"process.startDate\">\n <fs-label>\n Start Date\n </fs-label>\n {{ process.startDate | fsDateFormat: 'date-time' }}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"process.endDate\">\n <fs-label>\n Complete Date\n </fs-label>\n {{ process.endDate | fsDateFormat: 'date-time' }}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"process.duration\">\n <fs-label>\n Duration\n </fs-label>\n {{ process.duration | fsDateDuration: {hours: true, minutes: true, seconds: true} }}\n </fs-label-field>\n </div>\n\n <fs-label-field *ngIf=\"process.message\">\n <fs-label>\n Message\n </fs-label>\n {{process.message}}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"process.log\" class=\"log\">\n <fs-label>\n Log\n </fs-label>{{process.log}}\n </fs-label-field>\n\n </div>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\n <button\n *ngIf=\"process.state===ProcessState.Running && data.loadProcess\"\n mat-button\n (click)=\"load()\">\n Reload\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [":host ::ng-deep .log .field-content{white-space:pre-wrap;font-family:monospace;font-size:14px}\n"], components: [{ type: i2__namespace$1.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i2__namespace.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i2__namespace.FsLabelComponent, selector: "fs-label" }, { type: i4__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i5__namespace$1.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1__namespace$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i6__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i6__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i7__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "fsDateFormat": i5__namespace$2.FsDateFormatPipe, "fsDateDuration": i5__namespace$2.FsDateDurationPipe } });
1099
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProcessComponent, decorators: [{
1100
+ type: i0.Component,
1101
+ args: [{
1102
+ templateUrl: './process.component.html',
1103
+ styleUrls: ['./process.component.scss']
1104
+ }]
1105
+ }], ctorParameters: function () {
1106
+ return [{ type: i1__namespace$1.MatDialogRef }, { type: undefined, decorators: [{
1107
+ type: i0.Inject,
1108
+ args: [i1$1.MAT_DIALOG_DATA]
1109
+ }] }];
1110
+ } });
976
1111
 
977
- var ProcessesComponent = /** @class */ (function () {
978
- function ProcessesComponent(_dialog, _message) {
979
- this._dialog = _dialog;
980
- this._message = _message;
981
- this.actions = [];
982
- this.config = null;
983
- this.ProcessStates = indexNameValue(ProcessStates);
984
- this.ProcessState = exports.ProcessState;
985
- this._destroy$ = new rxjs.Subject();
986
- }
987
- ProcessesComponent.prototype.ngOnInit = function () {
988
- this._configList();
989
- };
990
- ProcessesComponent.prototype._configList = function () {
991
- var _this = this;
992
- this.config = {
993
- actions: [],
994
- rowActions: [],
995
- filters: [
996
- {
997
- type: filter.ItemType.Keyword,
998
- name: 'keyword',
999
- label: 'Search'
1000
- },
1001
- {
1002
- type: filter.ItemType.Select,
1003
- name: 'state',
1004
- label: 'Status',
1005
- values: ProcessStates
1006
- },
1007
- ],
1008
- fetch: function (query) {
1009
- return _this.loadProcesses(query)
1010
- .pipe(operators.map(function (response) { return ({ data: response.data, paging: response.paging }); }));
1011
- }
1012
- };
1013
- if (this.run) {
1014
- this.config.rowActions.push({
1015
- label: 'Run',
1016
- click: function (data) {
1017
- _this._message.info('Running process...');
1018
- _this.run(data)
1019
- .subscribe(function () {
1020
- _this.list.reload();
1021
- _this._message.success('Succesfully ran process');
1022
- });
1023
- setTimeout(function () {
1024
- _this.list.reload();
1025
- }, 500);
1026
- }
1027
- });
1028
- }
1029
- if (this.kill) {
1030
- this.config.rowActions.push({
1031
- label: 'Kill',
1032
- show: function (data) {
1033
- return !!data.pid;
1034
- },
1035
- click: function (data) {
1036
- _this._message.info('Killing process...');
1037
- _this.kill(data)
1038
- .subscribe(function () {
1039
- _this.list.reload();
1040
- _this._message.success('Succesfully killed process');
1041
- });
1042
- setTimeout(function () {
1043
- _this.list.reload();
1044
- }, 500);
1045
- }
1046
- });
1047
- }
1048
- if (this.delete) {
1049
- this.config.rowActions.push({
1050
- label: 'Delete',
1051
- click: function (data) {
1052
- _this.delete(data)
1053
- .subscribe(function () {
1054
- _this.list.reload();
1055
- _this._message.success('Deleted process');
1056
- });
1057
- }
1058
- });
1059
- }
1060
- this.actions.forEach(function (action) {
1061
- _this.config.actions.push({
1062
- primary: false,
1063
- label: action.label,
1064
- menu: action.menu,
1065
- click: function () {
1066
- if (action.click) {
1067
- action.click();
1068
- }
1069
- if (action.component) {
1070
- var dialogRef = _this._dialog.open(action.component, {
1071
- width: '800px'
1072
- });
1073
- dialogRef.afterClosed()
1074
- .pipe(operators.takeUntil(_this._destroy$))
1075
- .subscribe(function (result) {
1076
- _this.list.reload();
1077
- });
1078
- }
1079
- },
1080
- });
1081
- });
1082
- };
1083
- ProcessesComponent.prototype.open = function (process) {
1084
- this._dialog.open(ProcessComponent, {
1085
- data: {
1086
- process: process,
1087
- loadProcess: this.loadProcess,
1088
- },
1089
- width: '85%'
1090
- });
1091
- };
1092
- ProcessesComponent.prototype.ngOnDestroy = function () {
1093
- this._destroy$.next();
1094
- this._destroy$.complete();
1095
- };
1096
- ProcessesComponent.ctorParameters = function () { return [
1097
- { type: dialog.MatDialog },
1098
- { type: message.FsMessage }
1099
- ]; };
1100
- __decorate([
1101
- core.ViewChild(list.FsListComponent),
1102
- __metadata("design:type", list.FsListComponent)
1103
- ], ProcessesComponent.prototype, "list", void 0);
1104
- __decorate([
1105
- core.Input(),
1106
- __metadata("design:type", Function)
1107
- ], ProcessesComponent.prototype, "loadProcesses", void 0);
1108
- __decorate([
1109
- core.Input(),
1110
- __metadata("design:type", Function)
1111
- ], ProcessesComponent.prototype, "loadProcess", void 0);
1112
- __decorate([
1113
- core.Input(),
1114
- __metadata("design:type", Function)
1115
- ], ProcessesComponent.prototype, "run", void 0);
1116
- __decorate([
1117
- core.Input(),
1118
- __metadata("design:type", Function)
1119
- ], ProcessesComponent.prototype, "kill", void 0);
1120
- __decorate([
1121
- core.Input(),
1122
- __metadata("design:type", Function)
1123
- ], ProcessesComponent.prototype, "delete", void 0);
1124
- __decorate([
1125
- core.Input(),
1126
- __metadata("design:type", Function)
1127
- ], ProcessesComponent.prototype, "download", void 0);
1128
- __decorate([
1129
- core.Input(),
1130
- __metadata("design:type", Array)
1131
- ], ProcessesComponent.prototype, "actions", void 0);
1132
- ProcessesComponent = __decorate([
1133
- core.Component({
1134
- selector: 'fs-system-processes',
1135
- template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Name</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a (click)=\"open(row)\">{{row.prettyName}}</a>\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Status</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{ProcessStates[row.state]}}\r\n <small>\r\n <div *ngIf=\"row.state===ProcessState.Running && row.percent\">Complete: {{ row.percent }}%</div>\r\n <div *ngIf=\"row.state===ProcessState.Completed && row.filename\">Download: <a href=\"javascript:;\" (click)=\"download(row)\">{{ row.filename }}</a></div>\r\n <div *ngIf=\"row.pid\">PID: {{ row.pid }}</div>\r\n <div *ngIf=\"row.state===ProcessState.Running && row.notify\">Notify: {{ row.notify }}</div>\r\n </small>\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Duration</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{ row.duration | fsDateDuration: {hours: true, minutes: true, seconds: true} }}\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Message</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.message}}\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Completed</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.endDate\"></fs-date-ago>\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>\r\n",
1136
- styles: [""]
1137
- }),
1138
- __metadata("design:paramtypes", [dialog.MatDialog,
1139
- message.FsMessage])
1140
- ], ProcessesComponent);
1141
- return ProcessesComponent;
1112
+ var ProcessesComponent = /** @class */ (function () {
1113
+ function ProcessesComponent(_systemService, _dialog, _message) {
1114
+ this._systemService = _systemService;
1115
+ this._dialog = _dialog;
1116
+ this._message = _message;
1117
+ this.actions = [];
1118
+ this.config = null;
1119
+ this.ProcessStates = indexNameValue(ProcessStates);
1120
+ this.ProcessState = exports.ProcessState;
1121
+ this._destroy$ = new rxjs.Subject();
1122
+ }
1123
+ ProcessesComponent.prototype.ngOnInit = function () {
1124
+ this._configList();
1125
+ };
1126
+ ProcessesComponent.prototype._configList = function () {
1127
+ var _this = this;
1128
+ this.config = {
1129
+ actions: [],
1130
+ rowActions: [],
1131
+ filters: [
1132
+ {
1133
+ type: filter.ItemType.Keyword,
1134
+ name: 'keyword',
1135
+ label: 'Search'
1136
+ },
1137
+ {
1138
+ type: filter.ItemType.Select,
1139
+ name: 'state',
1140
+ label: 'Status',
1141
+ values: ProcessStates
1142
+ },
1143
+ ],
1144
+ fetch: function (query) {
1145
+ return _this.loadProcesses(query)
1146
+ .pipe(operators.map(function (response) { return ({ data: _this._systemService.input(response.data), paging: response.paging }); }));
1147
+ }
1148
+ };
1149
+ if (this.run) {
1150
+ this.config.rowActions.push({
1151
+ label: 'Run',
1152
+ click: function (data) {
1153
+ _this._message.info('Running process...');
1154
+ _this.run(data)
1155
+ .subscribe(function () {
1156
+ _this.list.reload();
1157
+ _this._message.success('Succesfully ran process');
1158
+ });
1159
+ setTimeout(function () {
1160
+ _this.list.reload();
1161
+ }, 500);
1162
+ }
1163
+ });
1164
+ }
1165
+ if (this.kill) {
1166
+ this.config.rowActions.push({
1167
+ label: 'Kill',
1168
+ show: function (data) {
1169
+ return !!data.pid;
1170
+ },
1171
+ click: function (data) {
1172
+ _this._message.info('Killing process...');
1173
+ _this.kill(data)
1174
+ .subscribe(function () {
1175
+ _this.list.reload();
1176
+ _this._message.success('Succesfully killed process');
1177
+ });
1178
+ setTimeout(function () {
1179
+ _this.list.reload();
1180
+ }, 500);
1181
+ }
1182
+ });
1183
+ }
1184
+ if (this.delete) {
1185
+ this.config.rowActions.push({
1186
+ label: 'Delete',
1187
+ click: function (data) {
1188
+ _this.delete(data)
1189
+ .subscribe(function () {
1190
+ _this.list.reload();
1191
+ _this._message.success('Deleted process');
1192
+ });
1193
+ }
1194
+ });
1195
+ }
1196
+ this.actions.forEach(function (action) {
1197
+ _this.config.actions.push({
1198
+ primary: false,
1199
+ label: action.label,
1200
+ menu: action.menu,
1201
+ click: function () {
1202
+ if (action.click) {
1203
+ action.click();
1204
+ }
1205
+ if (action.component) {
1206
+ var dialogRef = _this._dialog.open(action.component, {
1207
+ width: '800px'
1208
+ });
1209
+ dialogRef.afterClosed()
1210
+ .pipe(operators.takeUntil(_this._destroy$))
1211
+ .subscribe(function (result) {
1212
+ _this.list.reload();
1213
+ });
1214
+ }
1215
+ },
1216
+ });
1217
+ });
1218
+ };
1219
+ ProcessesComponent.prototype.open = function (process) {
1220
+ this._dialog.open(ProcessComponent, {
1221
+ data: {
1222
+ process: process,
1223
+ loadProcess: this.loadProcess,
1224
+ },
1225
+ width: '85%'
1226
+ });
1227
+ };
1228
+ ProcessesComponent.prototype.ngOnDestroy = function () {
1229
+ this._destroy$.next();
1230
+ this._destroy$.complete();
1231
+ };
1232
+ return ProcessesComponent;
1142
1233
  }());
1234
+ ProcessesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProcessesComponent, deps: [{ token: SystemService }, { token: i1__namespace$1.MatDialog }, { token: i1__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
1235
+ ProcessesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ProcessesComponent, selector: "fs-system-processes", inputs: { loadProcesses: "loadProcesses", loadProcess: "loadProcess", run: "run", kill: "kill", delete: "delete", download: "download", actions: "actions" }, viewQueries: [{ propertyName: "list", first: true, predicate: i4$1.FsListComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\">\n <fs-list-column>\n <ng-template fs-list-header>Name</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"open(row)\">{{row.prettyName}}</a>\n </ng-template>\n </fs-list-column>\n\n <fs-list-column>\n <ng-template fs-list-header>Status</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n {{ProcessStates[row.state]}}\n <small>\n <div *ngIf=\"row.state===ProcessState.Running && row.percent\">Complete: {{ row.percent }}%</div>\n <div *ngIf=\"row.state===ProcessState.Completed && row.filename\">Download: <a href=\"javascript:;\" (click)=\"download(row)\">{{ row.filename }}</a></div>\n <div *ngIf=\"row.pid\">PID: {{ row.pid }}</div>\n <div *ngIf=\"row.state===ProcessState.Running && row.notify\">Notify: {{ row.notify }}</div>\n </small>\n </ng-template>\n </fs-list-column>\n\n <fs-list-column>\n <ng-template fs-list-header>Duration</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n {{ row.duration | fsDateDuration: {hours: true, minutes: true, seconds: true} }}\n </ng-template>\n </fs-list-column>\n\n\n <fs-list-column>\n <ng-template fs-list-header>Message</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n {{row.message}}\n </ng-template>\n </fs-list-column>\n\n <fs-list-column>\n <ng-template fs-list-header>Completed</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <fs-date-ago [date]=\"row.endDate\"></fs-date-ago>\n </ng-template>\n </fs-list-column>\n</fs-list>\n", styles: [""], components: [{ type: i4__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i5__namespace$2.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i4__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["title", "name", "show", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i4__namespace$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i4__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i7__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "fsDateDuration": i5__namespace$2.FsDateDurationPipe } });
1236
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProcessesComponent, decorators: [{
1237
+ type: i0.Component,
1238
+ args: [{
1239
+ selector: 'fs-system-processes',
1240
+ templateUrl: './processes.component.html',
1241
+ styleUrls: ['./processes.component.scss']
1242
+ }]
1243
+ }], ctorParameters: function () { return [{ type: SystemService }, { type: i1__namespace$1.MatDialog }, { type: i1__namespace.FsMessage }]; }, propDecorators: { list: [{
1244
+ type: i0.ViewChild,
1245
+ args: [i4$1.FsListComponent]
1246
+ }], loadProcesses: [{
1247
+ type: i0.Input
1248
+ }], loadProcess: [{
1249
+ type: i0.Input
1250
+ }], run: [{
1251
+ type: i0.Input
1252
+ }], kill: [{
1253
+ type: i0.Input
1254
+ }], delete: [{
1255
+ type: i0.Input
1256
+ }], download: [{
1257
+ type: i0.Input
1258
+ }], actions: [{
1259
+ type: i0.Input
1260
+ }] } });
1143
1261
 
1144
- var ServerLogComponent = /** @class */ (function () {
1145
- function ServerLogComponent(data) {
1146
- this.data = data;
1147
- }
1148
- ServerLogComponent.prototype.ngOnInit = function () {
1149
- if (this.data.log) {
1150
- this.log = this.data.log;
1151
- try {
1152
- this.log.backtrace = JSON.parse(this.log.backtrace);
1153
- }
1154
- catch (e) { }
1155
- try {
1156
- this.log.server = JSON.parse(this.log.server);
1157
- }
1158
- catch (e) { }
1159
- }
1160
- };
1161
- ServerLogComponent.ctorParameters = function () { return [
1162
- { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
1163
- ]; };
1164
- ServerLogComponent = __decorate([
1165
- core.Component({
1166
- template: "<fs-dialog *fsSkeleton=\"log\">\r\n <div mat-dialog-title>Log</div>\r\n <mat-dialog-content>\r\n <div fxLayout=\"column\">\r\n <fs-label-field>\r\n <fs-label>\r\n Error Type\r\n </fs-label>\r\n {{log.type}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Message\r\n </fs-label>\r\n {{log.message}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n URL\r\n </fs-label>\r\n {{log.url}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Date\r\n </fs-label>\r\n {{log.createDate|fsDateFormat: 'full-date-time'}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n File\r\n </fs-label>\r\n {{log.file}} @ {{log.line}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Backtrace\r\n </fs-label>\r\n <pre>{{log.backtrace|json}}</pre>\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n $_SERVER\r\n </fs-label>\r\n <pre>{{log.server|json}}</pre>\r\n </fs-label-field>\r\n </div>\r\n </mat-dialog-content>\r\n <mat-dialog-actions>\r\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n",
1167
- styles: [""]
1168
- }),
1169
- __param(0, core.Inject(dialog.MAT_DIALOG_DATA)),
1170
- __metadata("design:paramtypes", [Object])
1171
- ], ServerLogComponent);
1172
- return ServerLogComponent;
1262
+ var ServerLogComponent = /** @class */ (function () {
1263
+ function ServerLogComponent(data) {
1264
+ this.data = data;
1265
+ }
1266
+ ServerLogComponent.prototype.ngOnInit = function () {
1267
+ if (this.data.log) {
1268
+ this.log = this.data.log;
1269
+ try {
1270
+ this.log.backtrace = JSON.parse(this.log.backtrace);
1271
+ }
1272
+ catch (e) { }
1273
+ try {
1274
+ this.log.server = JSON.parse(this.log.server);
1275
+ }
1276
+ catch (e) { }
1277
+ }
1278
+ };
1279
+ return ServerLogComponent;
1173
1280
  }());
1281
+ ServerLogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServerLogComponent, deps: [{ token: i1$1.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
1282
+ ServerLogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ServerLogComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog *fsSkeleton=\"log\">\n <div mat-dialog-title>Log</div>\n <mat-dialog-content>\n <div fxLayout=\"column\">\n <fs-label-field>\n <fs-label>\n Error Type\n </fs-label>\n {{log.type}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n Message\n </fs-label>\n {{log.message}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n URL\n </fs-label>\n {{log.url}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n Date\n </fs-label>\n {{log.createDate|fsDateFormat: 'full-date-time'}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n File\n </fs-label>\n {{log.file}} @ {{log.line}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n Backtrace\n </fs-label>\n <pre>{{log.backtrace|json}}</pre>\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n $_SERVER\n </fs-label>\n <pre>{{log.server|json}}</pre>\n </fs-label-field>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], components: [{ type: i2__namespace$1.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i2__namespace.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i2__namespace.FsLabelComponent, selector: "fs-label" }, { type: i4__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i5__namespace$1.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1__namespace$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i6__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i1__namespace$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "fsDateFormat": i5__namespace$2.FsDateFormatPipe, "json": i7__namespace$1.JsonPipe } });
1283
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServerLogComponent, decorators: [{
1284
+ type: i0.Component,
1285
+ args: [{
1286
+ templateUrl: './server-log.component.html',
1287
+ styleUrls: ['./server-log.component.scss']
1288
+ }]
1289
+ }], ctorParameters: function () {
1290
+ return [{ type: undefined, decorators: [{
1291
+ type: i0.Inject,
1292
+ args: [i1$1.MAT_DIALOG_DATA]
1293
+ }] }];
1294
+ } });
1174
1295
 
1175
- var ServerLogsComponent = /** @class */ (function () {
1176
- function ServerLogsComponent(_dialog) {
1177
- this._dialog = _dialog;
1178
- this.config = null;
1179
- this.logTypes = [];
1180
- }
1181
- ServerLogsComponent.prototype.ngOnInit = function () {
1182
- this._configList();
1183
- };
1184
- ServerLogsComponent.prototype._configList = function () {
1185
- var _this = this;
1186
- this.config = {
1187
- filters: [
1188
- {
1189
- type: filter.ItemType.Keyword,
1190
- name: 'keyword',
1191
- label: 'Search'
1192
- }
1193
- ],
1194
- fetch: function (query) {
1195
- return _this.loadLogs(query)
1196
- .pipe(operators.map(function (response) { return ({ data: response.data, paging: response.paging }); }));
1197
- }
1198
- };
1199
- };
1200
- ServerLogsComponent.prototype.open = function (log) {
1201
- this._dialog.open(ServerLogComponent, {
1202
- data: { log: log },
1203
- width: '85%'
1204
- });
1205
- };
1206
- ServerLogsComponent.ctorParameters = function () { return [
1207
- { type: dialog.MatDialog }
1208
- ]; };
1209
- __decorate([
1210
- core.ViewChild('list', { static: true }),
1211
- __metadata("design:type", list.FsListComponent)
1212
- ], ServerLogsComponent.prototype, "list", void 0);
1213
- __decorate([
1214
- core.Input(),
1215
- __metadata("design:type", Function)
1216
- ], ServerLogsComponent.prototype, "loadLogs", void 0);
1217
- ServerLogsComponent = __decorate([
1218
- core.Component({
1219
- selector: 'fs-system-server-logs',
1220
- template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Message</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a href=\"javascript:;\" (click)=\"open(row)\">{{row.message}}</a>\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Type</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.type}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Date</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n </ng-template>\r\n </fs-list-column>\r\n </fs-list>\r\n",
1221
- styles: [""]
1222
- }),
1223
- __metadata("design:paramtypes", [dialog.MatDialog])
1224
- ], ServerLogsComponent);
1225
- return ServerLogsComponent;
1296
+ var ServerLogsComponent = /** @class */ (function () {
1297
+ function ServerLogsComponent(_dialog, _systemService) {
1298
+ this._dialog = _dialog;
1299
+ this._systemService = _systemService;
1300
+ this.config = null;
1301
+ this.logTypes = [];
1302
+ }
1303
+ ServerLogsComponent.prototype.ngOnInit = function () {
1304
+ this._configList();
1305
+ };
1306
+ ServerLogsComponent.prototype._configList = function () {
1307
+ var _this = this;
1308
+ this.config = {
1309
+ filters: [
1310
+ {
1311
+ type: filter.ItemType.Keyword,
1312
+ name: 'keyword',
1313
+ label: 'Search'
1314
+ }
1315
+ ],
1316
+ fetch: function (query) {
1317
+ return _this.loadLogs(query)
1318
+ .pipe(operators.map(function (response) { return ({ data: _this._systemService.input(response.data), paging: response.paging }); }));
1319
+ }
1320
+ };
1321
+ };
1322
+ ServerLogsComponent.prototype.open = function (log) {
1323
+ var dialogRef = this._dialog.open(ServerLogComponent, {
1324
+ data: { log: log },
1325
+ width: '85%'
1326
+ });
1327
+ };
1328
+ return ServerLogsComponent;
1226
1329
  }());
1330
+ ServerLogsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServerLogsComponent, deps: [{ token: i1__namespace$1.MatDialog }, { token: SystemService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1331
+ ServerLogsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ServerLogsComponent, selector: "fs-system-server-logs", inputs: { loadLogs: "loadLogs" }, viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\">\n <fs-list-column>\n <ng-template fs-list-header>Message</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <a href=\"javascript:;\" (click)=\"open(row)\">{{row.message}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Type</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n {{row.type}}\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Date</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\n </ng-template>\n </fs-list-column>\n </fs-list>\n", styles: [""], components: [{ type: i4__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i5__namespace$2.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i4__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["title", "name", "show", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i4__namespace$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i4__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }] });
1332
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ServerLogsComponent, decorators: [{
1333
+ type: i0.Component,
1334
+ args: [{
1335
+ selector: 'fs-system-server-logs',
1336
+ templateUrl: './server-logs.component.html',
1337
+ styleUrls: ['./server-logs.component.scss']
1338
+ }]
1339
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.MatDialog }, { type: SystemService }]; }, propDecorators: { list: [{
1340
+ type: i0.ViewChild,
1341
+ args: ['list', { static: true }]
1342
+ }], loadLogs: [{
1343
+ type: i0.Input
1344
+ }] } });
1227
1345
 
1228
- var UpgradeLogsComponent = /** @class */ (function () {
1229
- function UpgradeLogsComponent() {
1230
- this.config = null;
1231
- this.logTypes = [];
1232
- }
1233
- UpgradeLogsComponent.prototype.ngOnInit = function () {
1234
- this._configList();
1235
- };
1236
- UpgradeLogsComponent.prototype._configList = function () {
1237
- var _this = this;
1238
- this.config = {
1239
- paging: false,
1240
- filters: [
1241
- {
1242
- type: filter.ItemType.Keyword,
1243
- name: 'keyword',
1244
- label: 'Search'
1245
- }
1246
- ],
1247
- fetch: function (query) {
1248
- return _this.loadUpgradeLogs(query)
1249
- .pipe(operators.map(function (response) { return ({ data: response.data, paging: response.paging }); }));
1250
- }
1251
- };
1252
- };
1253
- __decorate([
1254
- core.ViewChild(list.FsListComponent, { static: true }),
1255
- __metadata("design:type", list.FsListComponent)
1256
- ], UpgradeLogsComponent.prototype, "list", void 0);
1257
- __decorate([
1258
- core.Input(),
1259
- __metadata("design:type", Function)
1260
- ], UpgradeLogsComponent.prototype, "loadUpgradeLogs", void 0);
1261
- UpgradeLogsComponent = __decorate([
1262
- core.Component({
1263
- selector: 'fs-system-upgrade-logs',
1264
- template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Name</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.name}}\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Function</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.function}}()\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Date</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>\r\n",
1265
- styles: [""]
1266
- })
1267
- ], UpgradeLogsComponent);
1268
- return UpgradeLogsComponent;
1346
+ var UpgradeLogsComponent = /** @class */ (function () {
1347
+ function UpgradeLogsComponent(_systemService) {
1348
+ this._systemService = _systemService;
1349
+ this.config = null;
1350
+ this.logTypes = [];
1351
+ }
1352
+ UpgradeLogsComponent.prototype.ngOnInit = function () {
1353
+ this._configList();
1354
+ };
1355
+ UpgradeLogsComponent.prototype._configList = function () {
1356
+ var _this = this;
1357
+ this.config = {
1358
+ paging: false,
1359
+ filters: [
1360
+ {
1361
+ type: filter.ItemType.Keyword,
1362
+ name: 'keyword',
1363
+ label: 'Search'
1364
+ }
1365
+ ],
1366
+ fetch: function (query) {
1367
+ return _this.loadUpgradeLogs(query)
1368
+ .pipe(operators.map(function (response) { return ({ data: _this._systemService.input(response.data), paging: response.paging }); }));
1369
+ }
1370
+ };
1371
+ };
1372
+ return UpgradeLogsComponent;
1269
1373
  }());
1374
+ UpgradeLogsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UpgradeLogsComponent, deps: [{ token: SystemService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1375
+ UpgradeLogsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: UpgradeLogsComponent, selector: "fs-system-upgrade-logs", inputs: { loadUpgradeLogs: "loadUpgradeLogs" }, viewQueries: [{ propertyName: "list", first: true, predicate: i4$1.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\">\n <fs-list-column>\n <ng-template fs-list-header>Name</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n {{row.name}}\n </ng-template>\n </fs-list-column>\n\n <fs-list-column>\n <ng-template fs-list-header>Function</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n {{row.function}}()\n </ng-template>\n </fs-list-column>\n\n <fs-list-column>\n <ng-template fs-list-header>Date</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\n </ng-template>\n </fs-list-column>\n</fs-list>\n", styles: [""], components: [{ type: i4__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i5__namespace$2.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i4__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["title", "name", "show", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i4__namespace$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i4__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }] });
1376
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UpgradeLogsComponent, decorators: [{
1377
+ type: i0.Component,
1378
+ args: [{
1379
+ selector: 'fs-system-upgrade-logs',
1380
+ templateUrl: './upgrade-logs.component.html',
1381
+ styleUrls: ['./upgrade-logs.component.scss']
1382
+ }]
1383
+ }], ctorParameters: function () { return [{ type: SystemService }]; }, propDecorators: { list: [{
1384
+ type: i0.ViewChild,
1385
+ args: [i4$1.FsListComponent, { static: true }]
1386
+ }], loadUpgradeLogs: [{
1387
+ type: i0.Input
1388
+ }] } });
1270
1389
 
1271
- var ApiLogComponent = /** @class */ (function () {
1272
- function ApiLogComponent(_dialogRef, data) {
1273
- this._dialogRef = _dialogRef;
1274
- this.data = data;
1275
- }
1276
- ApiLogComponent.prototype.ngOnInit = function () {
1277
- this.apiLogStates = indexNameValue(ApiLogStates);
1278
- if (this.data.apiLog) {
1279
- this.apiLog = this.data.apiLog;
1280
- }
1281
- };
1282
- ApiLogComponent.ctorParameters = function () { return [
1283
- { type: dialog.MatDialogRef },
1284
- { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
1285
- ]; };
1286
- ApiLogComponent = __decorate([
1287
- core.Component({
1288
- template: "<fs-dialog *fsSkeleton=\"apiLog\">\r\n <div mat-dialog-title>API Log</div>\r\n <mat-dialog-content>\r\n <div fxLayout=\"column\">\r\n <fs-label-field>\r\n <fs-label>\r\n Type\r\n </fs-label>\r\n {{apiLog.type}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Status\r\n </fs-label>\r\n {{apiLogStates[apiLog.state]}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Date\r\n </fs-label>\r\n {{apiLog.createDate|fsDateFormat: 'full-date-time'}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.length\">\r\n <fs-label>\r\n Duration\r\n </fs-label>\r\n {{ apiLog.length | fsDateDuration }}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.code\">\r\n <fs-label>\r\n Code\r\n </fs-label>\r\n {{apiLog.code}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.message\">\r\n <fs-label>\r\n Message\r\n </fs-label>\r\n {{apiLog.message}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.url\">\r\n <fs-label>\r\n URL\r\n </fs-label>\r\n {{apiLog.url}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.request\">\r\n <fs-label>\r\n Request\r\n </fs-label>\r\n <pre>{{apiLog.request|json}}</pre>\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.response\">\r\n <fs-label>\r\n Response\r\n </fs-label>\r\n <pre>{{apiLog.response|json}}</pre>\r\n </fs-label-field>\r\n\r\n </div>\r\n </mat-dialog-content>\r\n <mat-dialog-actions>\r\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n",
1289
- styles: [""]
1290
- }),
1291
- __param(1, core.Inject(dialog.MAT_DIALOG_DATA)),
1292
- __metadata("design:paramtypes", [dialog.MatDialogRef, Object])
1293
- ], ApiLogComponent);
1294
- return ApiLogComponent;
1390
+ var ApiLogComponent = /** @class */ (function () {
1391
+ function ApiLogComponent(_dialogRef, data) {
1392
+ this._dialogRef = _dialogRef;
1393
+ this.data = data;
1394
+ }
1395
+ ApiLogComponent.prototype.ngOnInit = function () {
1396
+ this.apiLogStates = indexNameValue(ApiLogStates);
1397
+ if (this.data.apiLog) {
1398
+ this.apiLog = this.data.apiLog;
1399
+ }
1400
+ };
1401
+ return ApiLogComponent;
1295
1402
  }());
1403
+ ApiLogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ApiLogComponent, deps: [{ token: i1__namespace$1.MatDialogRef }, { token: i1$1.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
1404
+ ApiLogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ApiLogComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog *fsSkeleton=\"apiLog\">\n <div mat-dialog-title>API Log</div>\n <mat-dialog-content>\n <div fxLayout=\"column\">\n <fs-label-field>\n <fs-label>\n Type\n </fs-label>\n {{apiLog.type}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n Status\n </fs-label>\n {{apiLogStates[apiLog.state]}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n Date\n </fs-label>\n {{apiLog.createDate|fsDateFormat: 'full-date-time'}}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"apiLog.length\">\n <fs-label>\n Duration\n </fs-label>\n {{ apiLog.length | fsDateDuration }}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"apiLog.code\">\n <fs-label>\n Code\n </fs-label>\n {{apiLog.code}}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"apiLog.message\">\n <fs-label>\n Message\n </fs-label>\n {{apiLog.message}}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"apiLog.url\">\n <fs-label>\n URL\n </fs-label>\n {{apiLog.url}}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"apiLog.request\">\n <fs-label>\n Request\n </fs-label>\n <pre>{{apiLog.request|json}}</pre>\n </fs-label-field>\n\n <fs-label-field *ngIf=\"apiLog.response\">\n <fs-label>\n Response\n </fs-label>\n <pre>{{apiLog.response|json}}</pre>\n </fs-label-field>\n\n </div>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], components: [{ type: i2__namespace$1.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i2__namespace.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i2__namespace.FsLabelComponent, selector: "fs-label" }, { type: i4__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i5__namespace$1.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1__namespace$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i6__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i7__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "fsDateFormat": i5__namespace$2.FsDateFormatPipe, "fsDateDuration": i5__namespace$2.FsDateDurationPipe, "json": i7__namespace$1.JsonPipe } });
1405
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ApiLogComponent, decorators: [{
1406
+ type: i0.Component,
1407
+ args: [{
1408
+ templateUrl: './api-log.component.html',
1409
+ styleUrls: ['./api-log.component.scss']
1410
+ }]
1411
+ }], ctorParameters: function () {
1412
+ return [{ type: i1__namespace$1.MatDialogRef }, { type: undefined, decorators: [{
1413
+ type: i0.Inject,
1414
+ args: [i1$1.MAT_DIALOG_DATA]
1415
+ }] }];
1416
+ } });
1296
1417
 
1297
- var ApiLogsComponent = /** @class */ (function () {
1298
- function ApiLogsComponent(_dialog) {
1299
- this._dialog = _dialog;
1300
- this.config = null;
1301
- this.apiLogStates = indexNameValue(ApiLogStates);
1302
- }
1303
- ApiLogsComponent.prototype.ngOnInit = function () {
1304
- this._configList();
1305
- };
1306
- ApiLogsComponent.prototype._configList = function () {
1307
- var _this = this;
1308
- this.config = {
1309
- filters: [
1310
- {
1311
- type: filter.ItemType.Keyword,
1312
- name: 'keyword',
1313
- label: 'Search'
1314
- },
1315
- {
1316
- type: filter.ItemType.Select,
1317
- name: 'state',
1318
- label: 'Status',
1319
- values: ApiLogStates
1320
- },
1321
- {
1322
- name: 'createDate',
1323
- type: filter.ItemType.DateRange,
1324
- label: ['From Date', 'To Date'],
1325
- }
1326
- ],
1327
- fetch: function (query) {
1328
- Object.assign(query, {});
1329
- return _this.loadApiLogs(query)
1330
- .pipe(operators.map(function (response) { return ({ data: response.data, paging: response.paging }); }));
1331
- }
1332
- };
1333
- };
1334
- ApiLogsComponent.prototype.open = function (apiLog) {
1335
- this._dialog.open(ApiLogComponent, {
1336
- data: { apiLog: apiLog },
1337
- width: '85%'
1338
- });
1339
- };
1340
- ApiLogsComponent.ctorParameters = function () { return [
1341
- { type: dialog.MatDialog }
1342
- ]; };
1343
- __decorate([
1344
- core.ViewChild(list.FsListComponent, { static: true }),
1345
- __metadata("design:type", list.FsListComponent)
1346
- ], ApiLogsComponent.prototype, "list", void 0);
1347
- __decorate([
1348
- core.Input(),
1349
- __metadata("design:type", Function)
1350
- ], ApiLogsComponent.prototype, "loadApiLogs", void 0);
1351
- ApiLogsComponent = __decorate([
1352
- core.Component({
1353
- selector: 'fs-system-api-logs',
1354
- template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Name</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a href=\"javascript:;\" (click)=\"open(row)\">{{row.type || 'Unknown'}}</a>\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Message</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.message}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Status</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{apiLogStates[row.state]}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Date</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n <div><small *ngIf=\"row.length\">Duration: {{ row.length | fsDateDuration }}</small></div>\r\n </ng-template>\r\n </fs-list-column>\r\n </fs-list>\r\n",
1355
- styles: [""]
1356
- }),
1357
- __metadata("design:paramtypes", [dialog.MatDialog])
1358
- ], ApiLogsComponent);
1359
- return ApiLogsComponent;
1418
+ var ApiLogsComponent = /** @class */ (function () {
1419
+ function ApiLogsComponent(_dialog, _systemService) {
1420
+ this._dialog = _dialog;
1421
+ this._systemService = _systemService;
1422
+ this.config = null;
1423
+ this.apiLogStates = indexNameValue(ApiLogStates);
1424
+ }
1425
+ ApiLogsComponent.prototype.ngOnInit = function () {
1426
+ this._configList();
1427
+ };
1428
+ ApiLogsComponent.prototype._configList = function () {
1429
+ var _this = this;
1430
+ this.config = {
1431
+ filters: [
1432
+ {
1433
+ type: filter.ItemType.Keyword,
1434
+ name: 'keyword',
1435
+ label: 'Search'
1436
+ },
1437
+ {
1438
+ type: filter.ItemType.Select,
1439
+ name: 'state',
1440
+ label: 'Status',
1441
+ values: ApiLogStates
1442
+ },
1443
+ {
1444
+ name: 'createDate',
1445
+ type: filter.ItemType.DateRange,
1446
+ label: ['From Date', 'To Date'],
1447
+ }
1448
+ ],
1449
+ fetch: function (query) {
1450
+ Object.assign(query, {});
1451
+ return _this.loadApiLogs(query)
1452
+ .pipe(operators.map(function (response) { return ({ data: _this._systemService.input(response.data), paging: response.paging }); }));
1453
+ }
1454
+ };
1455
+ };
1456
+ ApiLogsComponent.prototype.open = function (apiLog) {
1457
+ this._dialog.open(ApiLogComponent, {
1458
+ data: { apiLog: apiLog },
1459
+ width: '85%'
1460
+ });
1461
+ };
1462
+ return ApiLogsComponent;
1360
1463
  }());
1464
+ ApiLogsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ApiLogsComponent, deps: [{ token: i1__namespace$1.MatDialog }, { token: SystemService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1465
+ ApiLogsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ApiLogsComponent, selector: "fs-system-api-logs", inputs: { loadApiLogs: "loadApiLogs" }, viewQueries: [{ propertyName: "list", first: true, predicate: i4$1.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\">\n <fs-list-column>\n <ng-template fs-list-header>Name</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <a href=\"javascript:;\" (click)=\"open(row)\">{{row.type || 'Unknown'}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Message</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n {{row.message}}\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Status</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n {{apiLogStates[row.state]}}\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Date</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\n <div><small *ngIf=\"row.length\">Duration: {{ row.length | fsDateDuration }}</small></div>\n </ng-template>\n </fs-list-column>\n </fs-list>\n", styles: [""], components: [{ type: i4__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i5__namespace$2.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i4__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["title", "name", "show", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i4__namespace$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i4__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i7__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "fsDateDuration": i5__namespace$2.FsDateDurationPipe } });
1466
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ApiLogsComponent, decorators: [{
1467
+ type: i0.Component,
1468
+ args: [{
1469
+ selector: 'fs-system-api-logs',
1470
+ templateUrl: './api-logs.component.html',
1471
+ styleUrls: ['./api-logs.component.scss']
1472
+ }]
1473
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.MatDialog }, { type: SystemService }]; }, propDecorators: { list: [{
1474
+ type: i0.ViewChild,
1475
+ args: [i4$1.FsListComponent, { static: true }]
1476
+ }], loadApiLogs: [{
1477
+ type: i0.Input
1478
+ }] } });
1361
1479
 
1362
- var InfoComponent = /** @class */ (function () {
1363
- function InfoComponent() {
1364
- }
1365
- InfoComponent.prototype.ngAfterViewInit = function () {
1366
- this._load();
1367
- };
1368
- InfoComponent.prototype._load = function () {
1369
- var _this = this;
1370
- this.load()
1371
- .subscribe(function (info) {
1372
- info += '<style>body { background: transparent; }</style>';
1373
- var doc = _this.iframe.nativeElement.contentDocument || _this.iframe.nativeElement.contentWindow;
1374
- doc.open();
1375
- doc.write(info);
1376
- doc.close();
1377
- var scrollHeight = (_this.iframe.nativeElement.contentWindow.document.documentElement.scrollHeight + 100);
1378
- _this.iframe.nativeElement.style.height = scrollHeight + "px";
1379
- });
1380
- };
1381
- __decorate([
1382
- core.ViewChild('iframe'),
1383
- __metadata("design:type", core.ElementRef)
1384
- ], InfoComponent.prototype, "iframe", void 0);
1385
- __decorate([
1386
- core.Input(),
1387
- __metadata("design:type", Function)
1388
- ], InfoComponent.prototype, "load", void 0);
1389
- InfoComponent = __decorate([
1390
- core.Component({
1391
- selector: 'fs-system-info',
1392
- template: "<iframe #iframe></iframe>\r\n",
1393
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1394
- styles: ["iframe{width:100%;border:0}"]
1395
- })
1396
- ], InfoComponent);
1397
- return InfoComponent;
1480
+ var InfoComponent = /** @class */ (function () {
1481
+ function InfoComponent() {
1482
+ }
1483
+ InfoComponent.prototype.ngAfterViewInit = function () {
1484
+ this._load();
1485
+ };
1486
+ InfoComponent.prototype._load = function () {
1487
+ var _this = this;
1488
+ this.load()
1489
+ .subscribe(function (info) {
1490
+ info += '<style>body { background: transparent; }</style>';
1491
+ var doc = _this.iframe.nativeElement.contentDocument || _this.iframe.nativeElement.contentWindow;
1492
+ doc.open();
1493
+ doc.write(info);
1494
+ doc.close();
1495
+ var scrollHeight = (_this.iframe.nativeElement.contentWindow.document.documentElement.scrollHeight + 100);
1496
+ _this.iframe.nativeElement.style.height = scrollHeight + "px";
1497
+ });
1498
+ };
1499
+ return InfoComponent;
1398
1500
  }());
1501
+ InfoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InfoComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1502
+ InfoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: InfoComponent, selector: "fs-system-info", inputs: { load: "load" }, viewQueries: [{ propertyName: "iframe", first: true, predicate: ["iframe"], descendants: true }], ngImport: i0__namespace, template: "<iframe #iframe></iframe>\n", styles: ["iframe{width:100%;border:0}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1503
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InfoComponent, decorators: [{
1504
+ type: i0.Component,
1505
+ args: [{
1506
+ selector: 'fs-system-info',
1507
+ templateUrl: 'info.component.html',
1508
+ styleUrls: ['info.component.scss'],
1509
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1510
+ }]
1511
+ }], propDecorators: { iframe: [{
1512
+ type: i0.ViewChild,
1513
+ args: ['iframe']
1514
+ }], load: [{
1515
+ type: i0.Input
1516
+ }] } });
1399
1517
 
1400
- var FsSystemModule = /** @class */ (function () {
1401
- function FsSystemModule() {
1402
- }
1403
- FsSystemModule_1 = FsSystemModule;
1404
- FsSystemModule.forRoot = function (config) {
1405
- return {
1406
- ngModule: FsSystemModule_1,
1407
- providers: [
1408
- { provide: FS_SYSTEM_CONFIG, useValue: config || {} },
1409
- ]
1410
- };
1411
- };
1412
- var FsSystemModule_1;
1413
- FsSystemModule = FsSystemModule_1 = __decorate([
1414
- core.NgModule({
1415
- imports: [
1416
- common.CommonModule,
1417
- flexLayout.FlexLayoutModule,
1418
- forms.FormsModule,
1419
- button.MatButtonModule,
1420
- expansion.MatExpansionModule,
1421
- tooltip.MatTooltipModule,
1422
- icon.MatIconModule,
1423
- formField.MatFormFieldModule,
1424
- input.MatInputModule,
1425
- select.MatSelectModule,
1426
- dialog.MatDialogModule,
1427
- tabs.MatTabsModule,
1428
- date.FsDateModule,
1429
- skeleton.FsSkeletonModule,
1430
- list.FsListModule,
1431
- file.FsFileModule,
1432
- fileManager.FsFileManagerModule,
1433
- label.FsLabelModule,
1434
- dialog$1.FsDialogModule,
1435
- datepicker.FsDatePickerModule,
1436
- menu.FsMenuModule,
1437
- ngxClipboard.ClipboardModule,
1438
- ],
1439
- exports: [
1440
- DashboardComponent,
1441
- CronsComponent,
1442
- SettingsComponent,
1443
- FileManagerComponent,
1444
- ProcessesComponent,
1445
- ServerLogsComponent,
1446
- UpgradeLogsComponent,
1447
- ApiLogsComponent,
1448
- InfoComponent,
1449
- ],
1450
- declarations: [
1451
- DashboardComponent,
1452
- CronsComponent,
1453
- SettingsComponent,
1454
- KeyNameValuePipe,
1455
- FileManagerComponent,
1456
- ProcessesComponent,
1457
- ServerLogComponent,
1458
- ServerLogsComponent,
1459
- UpgradeLogsComponent,
1460
- ApiLogsComponent,
1461
- ApiLogComponent,
1462
- InfoComponent,
1463
- ProcessComponent,
1464
- CronComponent,
1465
- CronLogComponent,
1466
- ],
1467
- })
1468
- ], FsSystemModule);
1469
- return FsSystemModule;
1518
+ var FsSystemModule = /** @class */ (function () {
1519
+ function FsSystemModule() {
1520
+ }
1521
+ FsSystemModule.forRoot = function (config) {
1522
+ return {
1523
+ ngModule: FsSystemModule,
1524
+ providers: [
1525
+ { provide: FS_SYSTEM_CONFIG, useValue: config || {} },
1526
+ ]
1527
+ };
1528
+ };
1529
+ return FsSystemModule;
1470
1530
  }());
1531
+ FsSystemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsSystemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1532
+ FsSystemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsSystemModule, declarations: [DashboardComponent,
1533
+ CronsComponent,
1534
+ SettingsComponent,
1535
+ KeyNameValuePipe,
1536
+ FileManagerComponent,
1537
+ ProcessesComponent,
1538
+ ServerLogComponent,
1539
+ ServerLogsComponent,
1540
+ UpgradeLogsComponent,
1541
+ ApiLogsComponent,
1542
+ ApiLogComponent,
1543
+ InfoComponent,
1544
+ ProcessComponent,
1545
+ CronComponent,
1546
+ CronLogComponent], imports: [i7$1.CommonModule,
1547
+ flexLayout.FlexLayoutModule,
1548
+ i16.FormsModule,
1549
+ i4.MatButtonModule,
1550
+ i5$3.MatExpansionModule,
1551
+ i12.MatTooltipModule,
1552
+ i7.MatIconModule,
1553
+ i8.MatFormFieldModule,
1554
+ i15.MatInputModule,
1555
+ i9.MatSelectModule,
1556
+ i1$1.MatDialogModule,
1557
+ i3$1.MatTabsModule,
1558
+ i5$2.FsDateModule,
1559
+ i5$1.FsSkeletonModule,
1560
+ i4$1.FsListModule,
1561
+ i12$1.FsFileModule,
1562
+ i1$2.FsFileManagerModule,
1563
+ i2.FsLabelModule,
1564
+ i2$1.FsDialogModule,
1565
+ i11$1.FsDatePickerModule,
1566
+ i5.FsMenuModule,
1567
+ i3$2.ClipboardModule], exports: [DashboardComponent,
1568
+ CronsComponent,
1569
+ SettingsComponent,
1570
+ FileManagerComponent,
1571
+ ProcessesComponent,
1572
+ ServerLogsComponent,
1573
+ UpgradeLogsComponent,
1574
+ ApiLogsComponent,
1575
+ InfoComponent] });
1576
+ FsSystemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsSystemModule, providers: [
1577
+ SystemService
1578
+ ], imports: [[
1579
+ i7$1.CommonModule,
1580
+ flexLayout.FlexLayoutModule,
1581
+ i16.FormsModule,
1582
+ i4.MatButtonModule,
1583
+ i5$3.MatExpansionModule,
1584
+ i12.MatTooltipModule,
1585
+ i7.MatIconModule,
1586
+ i8.MatFormFieldModule,
1587
+ i15.MatInputModule,
1588
+ i9.MatSelectModule,
1589
+ i1$1.MatDialogModule,
1590
+ i3$1.MatTabsModule,
1591
+ i5$2.FsDateModule,
1592
+ i5$1.FsSkeletonModule,
1593
+ i4$1.FsListModule,
1594
+ i12$1.FsFileModule,
1595
+ i1$2.FsFileManagerModule,
1596
+ i2.FsLabelModule,
1597
+ i2$1.FsDialogModule,
1598
+ i11$1.FsDatePickerModule,
1599
+ i5.FsMenuModule,
1600
+ i3$2.ClipboardModule,
1601
+ ]] });
1602
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsSystemModule, decorators: [{
1603
+ type: i0.NgModule,
1604
+ args: [{
1605
+ imports: [
1606
+ i7$1.CommonModule,
1607
+ flexLayout.FlexLayoutModule,
1608
+ i16.FormsModule,
1609
+ i4.MatButtonModule,
1610
+ i5$3.MatExpansionModule,
1611
+ i12.MatTooltipModule,
1612
+ i7.MatIconModule,
1613
+ i8.MatFormFieldModule,
1614
+ i15.MatInputModule,
1615
+ i9.MatSelectModule,
1616
+ i1$1.MatDialogModule,
1617
+ i3$1.MatTabsModule,
1618
+ i5$2.FsDateModule,
1619
+ i5$1.FsSkeletonModule,
1620
+ i4$1.FsListModule,
1621
+ i12$1.FsFileModule,
1622
+ i1$2.FsFileManagerModule,
1623
+ i2.FsLabelModule,
1624
+ i2$1.FsDialogModule,
1625
+ i11$1.FsDatePickerModule,
1626
+ i5.FsMenuModule,
1627
+ i3$2.ClipboardModule,
1628
+ ],
1629
+ exports: [
1630
+ DashboardComponent,
1631
+ CronsComponent,
1632
+ SettingsComponent,
1633
+ FileManagerComponent,
1634
+ ProcessesComponent,
1635
+ ServerLogsComponent,
1636
+ UpgradeLogsComponent,
1637
+ ApiLogsComponent,
1638
+ InfoComponent,
1639
+ ],
1640
+ declarations: [
1641
+ DashboardComponent,
1642
+ CronsComponent,
1643
+ SettingsComponent,
1644
+ KeyNameValuePipe,
1645
+ FileManagerComponent,
1646
+ ProcessesComponent,
1647
+ ServerLogComponent,
1648
+ ServerLogsComponent,
1649
+ UpgradeLogsComponent,
1650
+ ApiLogsComponent,
1651
+ ApiLogComponent,
1652
+ InfoComponent,
1653
+ ProcessComponent,
1654
+ CronComponent,
1655
+ CronLogComponent,
1656
+ ],
1657
+ providers: [
1658
+ SystemService
1659
+ ],
1660
+ }]
1661
+ }] });
1662
+
1663
+ /**
1664
+ * Generated bundle index. Do not edit.
1665
+ */
1471
1666
 
1667
+ exports.ApiLogComponent = ApiLogComponent;
1472
1668
  exports.ApiLogStates = ApiLogStates;
1669
+ exports.ApiLogsComponent = ApiLogsComponent;
1670
+ exports.CronComponent = CronComponent;
1671
+ exports.CronLogComponent = CronLogComponent;
1473
1672
  exports.CronStates = CronStates;
1673
+ exports.CronsComponent = CronsComponent;
1674
+ exports.DashboardComponent = DashboardComponent;
1474
1675
  exports.FS_SYSTEM_CONFIG = FS_SYSTEM_CONFIG;
1676
+ exports.FileManagerComponent = FileManagerComponent;
1475
1677
  exports.FsSystemModule = FsSystemModule;
1678
+ exports.InfoComponent = InfoComponent;
1679
+ exports.KeyNameValuePipe = KeyNameValuePipe;
1680
+ exports.ProcessComponent = ProcessComponent;
1476
1681
  exports.ProcessStates = ProcessStates;
1477
- exports.ɵa = DashboardComponent;
1478
- exports.ɵb = CronsComponent;
1479
- exports.ɵc = SettingsComponent;
1480
- exports.ɵd = FileManagerComponent;
1481
- exports.ɵe = ProcessesComponent;
1482
- exports.ɵf = ServerLogsComponent;
1483
- exports.ɵg = UpgradeLogsComponent;
1484
- exports.ɵh = ApiLogsComponent;
1485
- exports.ɵi = InfoComponent;
1486
- exports.ɵj = KeyNameValuePipe;
1487
- exports.ɵk = ServerLogComponent;
1488
- exports.ɵl = ApiLogComponent;
1489
- exports.ɵm = ProcessComponent;
1490
- exports.ɵn = CronComponent;
1491
- exports.ɵo = CronLogComponent;
1682
+ exports.ProcessesComponent = ProcessesComponent;
1683
+ exports.ServerLogComponent = ServerLogComponent;
1684
+ exports.ServerLogsComponent = ServerLogsComponent;
1685
+ exports.SettingsComponent = SettingsComponent;
1686
+ exports.UpgradeLogsComponent = UpgradeLogsComponent;
1492
1687
 
1493
1688
  Object.defineProperty(exports, '__esModule', { value: true });
1494
1689
 
1495
- })));
1690
+ }));
1496
1691
  //# sourceMappingURL=firestitch-system.umd.js.map