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