@firestitch/system 12.5.0 → 12.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/modules/query-logs/components/query-logs/query-logs.component.d.ts +1 -1
- package/app/modules/query-logs/query-logs.module.d.ts +1 -1
- package/app/modules/system/components/crons/crons.component.d.ts +3 -3
- package/bundles/firestitch-system.umd.js +17 -12
- package/bundles/firestitch-system.umd.js.map +1 -1
- package/esm2015/app/modules/query-logs/components/query-logs/query-logs.component.js +3 -2
- package/esm2015/app/modules/query-logs/query-logs.module.js +5 -2
- package/esm2015/app/modules/system/components/crons/crons.component.js +17 -17
- package/esm2015/app/modules/system/fs-system.module.js +1 -1
- package/esm2015/public_api.js +2 -1
- package/fesm2015/firestitch-system.js +16 -12
- package/fesm2015/firestitch-system.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -16,5 +16,5 @@ export declare class QueryLogsComponent implements OnInit {
|
|
|
16
16
|
openQueryLog(queryLog: any): void;
|
|
17
17
|
ngOnInit(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueryLogsComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QueryLogsComponent, "
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QueryLogsComponent, "fs-system-query-logs", never, { "loadQueryLogs": "loadQueryLogs"; "purgeQueryLogs": "purgeQueryLogs"; }, {}, never, never>;
|
|
20
20
|
}
|
|
@@ -18,6 +18,6 @@ import * as i16 from "@firestitch/list";
|
|
|
18
18
|
import * as i17 from "@firestitch/clipboard";
|
|
19
19
|
export declare class FsSystemQueryLogsModule {
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsSystemQueryLogsModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsSystemQueryLogsModule, [typeof i1.QueryLogsComponent, typeof i2.QueryLogComponent, typeof i3.ExplainComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i4.CommonModule, typeof i6.FormsModule, typeof i7.MatTabsModule, typeof i8.MatButtonModule, typeof i9.MatDialogModule, typeof i10.FsFormModule, typeof i11.FsLabelModule, typeof i12.FsPopoverModule, typeof i13.FsCommonModule, typeof i14.FsDateModule, typeof i15.FsDialogModule, typeof i16.FsListModule, typeof i17.FsClipboardModule],
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsSystemQueryLogsModule, [typeof i1.QueryLogsComponent, typeof i2.QueryLogComponent, typeof i3.ExplainComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i4.CommonModule, typeof i6.FormsModule, typeof i7.MatTabsModule, typeof i8.MatButtonModule, typeof i9.MatDialogModule, typeof i10.FsFormModule, typeof i11.FsLabelModule, typeof i12.FsPopoverModule, typeof i13.FsCommonModule, typeof i14.FsDateModule, typeof i15.FsDialogModule, typeof i16.FsListModule, typeof i17.FsClipboardModule], [typeof i1.QueryLogsComponent]>;
|
|
22
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsSystemQueryLogsModule>;
|
|
23
23
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { FsListComponent, FsListConfig } from '@firestitch/list';
|
|
3
4
|
import { FsMessage } from '@firestitch/message';
|
|
4
|
-
import {
|
|
5
|
+
import { FsPrompt } from '@firestitch/prompt';
|
|
5
6
|
import { Observable } from 'rxjs';
|
|
6
7
|
import { CronState } from '../../enums';
|
|
7
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class CronsComponent implements OnInit, OnDestroy {
|
|
10
10
|
private _message;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/router'), require('@angular/material/button'), require('@angular/material/dialog'), require('@angular/material/tabs'), require('@firestitch/clipboard'), require('@firestitch/common'), require('@firestitch/date'), require('@firestitch/dialog'), require('@firestitch/form'), require('@firestitch/label'), require('@firestitch/list'), require('@firestitch/popover'), require('@firestitch/filter'), require('rxjs/operators'), require('@angular/material/expansion'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tooltip'), require('@firestitch/colorpicker'), require('@firestitch/datepicker'), require('@firestitch/file'), require('@firestitch/file-manager'), require('@firestitch/menu'), require('@firestitch/skeleton'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@firestitch/system', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/router', '@angular/material/button', '@angular/material/dialog', '@angular/material/tabs', '@firestitch/clipboard', '@firestitch/common', '@firestitch/date', '@firestitch/dialog', '@firestitch/form', '@firestitch/label', '@firestitch/list', '@firestitch/popover', '@firestitch/filter', 'rxjs/operators', '@angular/material/expansion', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@angular/material/select', '@angular/material/tooltip', '@firestitch/colorpicker', '@firestitch/datepicker', '@firestitch/file', '@firestitch/file-manager', '@firestitch/menu', '@firestitch/skeleton', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.system = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.router, global.ng.material.button, global.ng.material.dialog, global.ng.material.tabs, global.i2$1, global.i9, global.i4$1, global.i2, global.form, global.i3, global.i2$2, global.i7, global.filter, global.rxjs.operators, global.ng.material.expansion, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global.ng.material.select, global.ng.material.tooltip, global.i11, global.i10, global.i12, global.fileManager, global.i4$2, global.i5, global.
|
|
5
|
-
})(this, (function (exports, i8, i0, i16, router, i4, i1, i3$1, i2$1, i9, i4$1, i2, form, i3, i2$2, i7, filter, operators, i4$3, i7$1, i6, i15, i8$1, i9$1, i11, i10, i12, fileManager, i4$2, i5,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/router'), require('@angular/material/button'), require('@angular/material/dialog'), require('@angular/material/tabs'), require('@firestitch/clipboard'), require('@firestitch/common'), require('@firestitch/date'), require('@firestitch/dialog'), require('@firestitch/form'), require('@firestitch/label'), require('@firestitch/list'), require('@firestitch/popover'), require('@firestitch/filter'), require('rxjs/operators'), require('@angular/material/expansion'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tooltip'), require('@firestitch/colorpicker'), require('@firestitch/datepicker'), require('@firestitch/file'), require('@firestitch/file-manager'), require('@firestitch/menu'), require('@firestitch/skeleton'), require('@firestitch/selection'), require('rxjs'), require('date-fns'), require('@firestitch/message'), require('@firestitch/prompt'), require('@firestitch/build'), require('@angular/material/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@firestitch/system', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/router', '@angular/material/button', '@angular/material/dialog', '@angular/material/tabs', '@firestitch/clipboard', '@firestitch/common', '@firestitch/date', '@firestitch/dialog', '@firestitch/form', '@firestitch/label', '@firestitch/list', '@firestitch/popover', '@firestitch/filter', 'rxjs/operators', '@angular/material/expansion', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@angular/material/select', '@angular/material/tooltip', '@firestitch/colorpicker', '@firestitch/datepicker', '@firestitch/file', '@firestitch/file-manager', '@firestitch/menu', '@firestitch/skeleton', '@firestitch/selection', 'rxjs', 'date-fns', '@firestitch/message', '@firestitch/prompt', '@firestitch/build', '@angular/material/core'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.system = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.router, global.ng.material.button, global.ng.material.dialog, global.ng.material.tabs, global.i2$1, global.i9, global.i4$1, global.i2, global.form, global.i3, global.i2$2, global.i7, global.filter, global.rxjs.operators, global.ng.material.expansion, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global.ng.material.select, global.ng.material.tooltip, global.i11, global.i10, global.i12, global.fileManager, global.i4$2, global.i5, global.selection, global.rxjs, global.dateFns, global.i1$1, global.i3$2, global.i2$3, global.ng.material.core));
|
|
5
|
+
})(this, (function (exports, i8, i0, i16, router, i4, i1, i3$1, i2$1, i9, i4$1, i2, form, i3, i2$2, i7, filter, operators, i4$3, i7$1, i6, i15, i8$1, i9$1, i11, i10, i12, fileManager, i4$2, i5, selection, rxjs, dateFns, i1$1, i3$2, i2$3, i9$2) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -200,10 +200,11 @@
|
|
|
200
200
|
return QueryLogsComponent;
|
|
201
201
|
}());
|
|
202
202
|
QueryLogsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueryLogsComponent, deps: [{ token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
203
|
-
QueryLogsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: QueryLogsComponent, selector: "
|
|
203
|
+
QueryLogsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: QueryLogsComponent, selector: "fs-system-query-logs", inputs: { loadQueryLogs: "loadQueryLogs", purgeQueryLogs: "purgeQueryLogs" }, viewQueries: [{ propertyName: "list", first: true, predicate: i2$2.FsListComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"listConfig\">\n <fs-list-column title=\"Optimized\" name=\"optimized\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <span [ngClass]=\"{ optimized: row.optimized, 'not-optimized': !row.optimized }\">\n {{row.optimized ? 'Yes' : 'No'}}\n </span>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Duration\" name=\"duration\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.duration}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Cost\" name=\"query_cost\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.queryCost}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Query\">\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"openQueryLog(row)\">{{ row.query | fsFormatTruncate: 500 }}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Created\" name=\"query_log_id\" [sortable]=\"true\" [direction]=\"'desc'\" [sortableDefault]=\"true\">\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>", styles: [":host ::ng-deep .optimized{color:green}:host ::ng-deep .not-optimized{color:red}\n"], components: [{ type: i2__namespace$2.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i4__namespace$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i2__namespace$2.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$2.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i8__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "fsFormatTruncate": i9__namespace.FsFormatTruncatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
204
204
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueryLogsComponent, decorators: [{
|
|
205
205
|
type: i0.Component,
|
|
206
206
|
args: [{
|
|
207
|
+
selector: 'fs-system-query-logs',
|
|
207
208
|
templateUrl: './query-logs.component.html',
|
|
208
209
|
styleUrls: ['./query-logs.component.scss'],
|
|
209
210
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
@@ -239,7 +240,7 @@
|
|
|
239
240
|
i4$1.FsDateModule,
|
|
240
241
|
i2.FsDialogModule,
|
|
241
242
|
i2$2.FsListModule,
|
|
242
|
-
i2$1.FsClipboardModule] });
|
|
243
|
+
i2$1.FsClipboardModule], exports: [QueryLogsComponent] });
|
|
243
244
|
FsSystemQueryLogsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsSystemQueryLogsModule, imports: [[
|
|
244
245
|
i8.CommonModule,
|
|
245
246
|
router.RouterModule,
|
|
@@ -282,6 +283,9 @@
|
|
|
282
283
|
QueryLogComponent,
|
|
283
284
|
ExplainComponent,
|
|
284
285
|
],
|
|
286
|
+
exports: [
|
|
287
|
+
QueryLogsComponent,
|
|
288
|
+
],
|
|
285
289
|
}]
|
|
286
290
|
}] });
|
|
287
291
|
|
|
@@ -941,8 +945,8 @@
|
|
|
941
945
|
{
|
|
942
946
|
type: filter.ItemType.Keyword,
|
|
943
947
|
name: 'keyword',
|
|
944
|
-
label: 'Search'
|
|
945
|
-
}
|
|
948
|
+
label: 'Search',
|
|
949
|
+
},
|
|
946
950
|
],
|
|
947
951
|
rowActions: this.getCronActions()
|
|
948
952
|
.map(function (rowAction) {
|
|
@@ -958,7 +962,7 @@
|
|
|
958
962
|
data: crons
|
|
959
963
|
.map(function (cron) {
|
|
960
964
|
return Object.assign(Object.assign({}, cron), { runningDuration: dateFns.differenceInSeconds(i4$1.parse(cron.createDate), new Date()) });
|
|
961
|
-
})
|
|
965
|
+
}),
|
|
962
966
|
}); }));
|
|
963
967
|
},
|
|
964
968
|
};
|
|
@@ -969,12 +973,12 @@
|
|
|
969
973
|
{
|
|
970
974
|
type: selection.SelectionActionType.Action,
|
|
971
975
|
name: 'disable',
|
|
972
|
-
label: 'Disable'
|
|
976
|
+
label: 'Disable',
|
|
973
977
|
},
|
|
974
978
|
{
|
|
975
979
|
type: selection.SelectionActionType.Action,
|
|
976
980
|
name: 'enable',
|
|
977
|
-
label: 'Enable'
|
|
981
|
+
label: 'Enable',
|
|
978
982
|
},
|
|
979
983
|
],
|
|
980
984
|
actionSelected: function (action) {
|
|
@@ -995,7 +999,7 @@
|
|
|
995
999
|
loadCron: this.loadCron,
|
|
996
1000
|
cronActions: this.getCronActions(),
|
|
997
1001
|
},
|
|
998
|
-
width: '85%'
|
|
1002
|
+
width: '85%',
|
|
999
1003
|
});
|
|
1000
1004
|
};
|
|
1001
1005
|
CronsComponent.prototype.getCronActions = function () {
|
|
@@ -1888,6 +1892,7 @@
|
|
|
1888
1892
|
exports.ProcessComponent = ProcessComponent;
|
|
1889
1893
|
exports.ProcessStates = ProcessStates;
|
|
1890
1894
|
exports.ProcessesComponent = ProcessesComponent;
|
|
1895
|
+
exports.QueryLogsComponent = QueryLogsComponent;
|
|
1891
1896
|
exports.ServerLogComponent = ServerLogComponent;
|
|
1892
1897
|
exports.ServerLogsComponent = ServerLogsComponent;
|
|
1893
1898
|
exports.SettingsComponent = SettingsComponent;
|