@firestitch/system 12.1.0 → 12.1.3

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