@firestitch/system 12.0.0 → 12.1.2

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