@kengic/vue 0.32.3 → 0.32.4
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/dist/kengic-vue.js +50407 -50562
- package/dist/src/api/api.d.ts +0 -1
- package/dist/src/api/def.d.ts +0 -1
- package/dist/src/component/KgForm/KgForm.d.ts +39 -39
- package/dist/src/component/KgImage/KgImage.d.ts +6 -6
- package/dist/src/component/KgModal/KgModal.d.ts +3 -3
- package/dist/src/component/KgModal02/KgModal02.d.ts +62 -34
- package/dist/src/component/KgResizable/KgResizable.d.ts +4 -4
- package/dist/src/i18n/i18n.setup.d.ts +6 -4
- package/dist/src/model/index.d.ts +36 -44
- package/dist/src/util/ant-design-vue.d.ts +16 -16
- package/dist/src/util/index.d.ts +29 -3
- package/dist/src/util/kg.util.d.ts +39 -2
- package/package.json +3 -3
- package/dist/src/api/WatchTower/Controllers/DashboardsController/Dashboards.d.ts +0 -16
- package/dist/src/api/WatchTower/Controllers/DashboardsController/DashboardsById.d.ts +0 -18
- package/dist/src/api/WatchTower/Controllers/DashboardsController/DashboardsByIdExport.d.ts +0 -18
- package/dist/src/api/WatchTower/Controllers/DashboardsController/DashboardsFolders.d.ts +0 -16
- package/dist/src/api/WatchTower/Controllers/DashboardsController/DashboardsFoldersById.d.ts +0 -18
- package/dist/src/api/WatchTower/Controllers/DashboardsController/DashboardsFoldersOrder.d.ts +0 -16
- package/dist/src/api/WatchTower/Controllers/DashboardsController/DashboardsImport.d.ts +0 -16
- package/dist/src/api/WatchTower/Controllers/DashboardsController/DashboardsOverview.d.ts +0 -15
- package/dist/src/api/WatchTower/Controllers/DashboardsController/DashboardsWidgets.d.ts +0 -16
- package/dist/src/api/WatchTower/Controllers/DashboardsController/DashboardsWidgetsById.d.ts +0 -18
- package/dist/src/api/WatchTower/Controllers/DashboardsController/DashboardsWidgetsByIdMove.d.ts +0 -19
- package/dist/src/api/WatchTower/Controllers/DashboardsController/DashboardsWidgetsOrder.d.ts +0 -16
- package/dist/src/api/WatchTower/Controllers/DashboardsController/index.d.ts +0 -12
- package/dist/src/api/WatchTower/Controllers/HealthController/Live.d.ts +0 -15
- package/dist/src/api/WatchTower/Controllers/HealthController/Ready.d.ts +0 -15
- package/dist/src/api/WatchTower/Controllers/HealthController/index.d.ts +0 -2
- package/dist/src/api/WatchTower/Controllers/MetricsController/History.d.ts +0 -28
- package/dist/src/api/WatchTower/Controllers/MetricsController/Realtime.d.ts +0 -22
- package/dist/src/api/WatchTower/Controllers/MetricsController/index.d.ts +0 -2
- package/dist/src/api/WatchTower/Controllers/MonitorRulesController/MonitorRules.d.ts +0 -16
- package/dist/src/api/WatchTower/Controllers/MonitorRulesController/MonitorRulesById.d.ts +0 -18
- package/dist/src/api/WatchTower/Controllers/MonitorRulesController/index.d.ts +0 -2
- package/dist/src/api/WatchTower/Controllers/PrometheusController/Reload.d.ts +0 -15
- package/dist/src/api/WatchTower/Controllers/PrometheusController/Sync.d.ts +0 -15
- package/dist/src/api/WatchTower/Controllers/PrometheusController/index.d.ts +0 -2
- package/dist/src/api/WatchTower/Controllers/SystemSettingsController/SystemSettings.d.ts +0 -16
- package/dist/src/api/WatchTower/Controllers/SystemSettingsController/index.d.ts +0 -1
- package/dist/src/api/WatchTower/Controllers/index.d.ts +0 -6
- package/dist/src/api/WatchTower/index.d.ts +0 -2
- package/dist/src/api/WatchTower/models.d.ts +0 -134
- package/dist/src/util/event.util.d.ts +0 -15
- package/dist/src/util/kg-auth.util.d.ts +0 -12
- package/dist/src/util/kg-route.util.d.ts +0 -18
- package/dist/src/util/tsx.helper.d.ts +0 -23
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IRequestConfig, IRequestOptions } from '../../../../service';
|
|
2
|
-
/** 请求参数. */
|
|
3
|
-
export declare class HistoryQuery {
|
|
4
|
-
/** Monitor Rule Id. */
|
|
5
|
-
monitorRuleId?: number | null;
|
|
6
|
-
/** From. */
|
|
7
|
-
from?: string | null;
|
|
8
|
-
/** To. */
|
|
9
|
-
to?: string | null;
|
|
10
|
-
/** Step. */
|
|
11
|
-
step?: string | null;
|
|
12
|
-
/** Metric Type. */
|
|
13
|
-
metricType?: string | null;
|
|
14
|
-
/** Metric Instance. */
|
|
15
|
-
metricInstance?: string | null;
|
|
16
|
-
constructor(obj?: HistoryQuery);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @param config 请求配置.
|
|
22
|
-
* @param option 请求选项.
|
|
23
|
-
*/
|
|
24
|
-
export declare function History(config?: IRequestConfig<HistoryQuery, {}>, option?: IRequestOptions): Promise<any>;
|
|
25
|
-
export declare namespace History {
|
|
26
|
-
var method: "GET";
|
|
27
|
-
var url: string;
|
|
28
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IRequestConfig, IRequestOptions } from '../../../../service';
|
|
2
|
-
/** 请求参数. */
|
|
3
|
-
export declare class RealtimeQuery {
|
|
4
|
-
/** Monitor Rule Id. */
|
|
5
|
-
monitorRuleId?: number | null;
|
|
6
|
-
/** Metric Type. */
|
|
7
|
-
metricType?: string | null;
|
|
8
|
-
/** Metric Instance. */
|
|
9
|
-
metricInstance?: string | null;
|
|
10
|
-
constructor(obj?: RealtimeQuery);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @param config 请求配置.
|
|
16
|
-
* @param option 请求选项.
|
|
17
|
-
*/
|
|
18
|
-
export declare function Realtime(config?: IRequestConfig<RealtimeQuery, {}>, option?: IRequestOptions): Promise<any>;
|
|
19
|
-
export declare namespace Realtime {
|
|
20
|
-
var method: "GET";
|
|
21
|
-
var url: string;
|
|
22
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IRequestConfig, IRequestOptions } from '../../../../service';
|
|
2
|
-
import * as DEF from '../../../def';
|
|
3
|
-
/** 请求参数. */
|
|
4
|
-
export declare class MonitorRulesQuery {
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @param config 请求配置.
|
|
10
|
-
* @param option 请求选项.
|
|
11
|
-
*/
|
|
12
|
-
export declare function MonitorRules(config?: IRequestConfig<MonitorRulesQuery, DEF.WatchTower.MonitorRuleUpsertRequest>, option?: IRequestOptions): Promise<any>;
|
|
13
|
-
export declare namespace MonitorRules {
|
|
14
|
-
var method: "POST";
|
|
15
|
-
var url: string;
|
|
16
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IRequestConfig, IRequestOptions } from '../../../../service';
|
|
2
|
-
/** 请求参数. */
|
|
3
|
-
export declare class MonitorRulesByIdQuery {
|
|
4
|
-
/** Id. */
|
|
5
|
-
id?: number | null;
|
|
6
|
-
constructor(obj?: MonitorRulesByIdQuery);
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @param config 请求配置.
|
|
12
|
-
* @param option 请求选项.
|
|
13
|
-
*/
|
|
14
|
-
export declare function MonitorRulesById(config?: IRequestConfig<MonitorRulesByIdQuery, {}>, option?: IRequestOptions): Promise<any>;
|
|
15
|
-
export declare namespace MonitorRulesById {
|
|
16
|
-
var method: "DELETE";
|
|
17
|
-
var url: string;
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IRequestConfig, IRequestOptions } from '../../../../service';
|
|
2
|
-
/** 请求参数. */
|
|
3
|
-
export declare class ReloadQuery {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @param config 请求配置.
|
|
9
|
-
* @param option 请求选项.
|
|
10
|
-
*/
|
|
11
|
-
export declare function Reload(config?: IRequestConfig<ReloadQuery, {}>, option?: IRequestOptions): Promise<any>;
|
|
12
|
-
export declare namespace Reload {
|
|
13
|
-
var method: "POST";
|
|
14
|
-
var url: string;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IRequestConfig, IRequestOptions } from '../../../../service';
|
|
2
|
-
/** 请求参数. */
|
|
3
|
-
export declare class SyncQuery {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @param config 请求配置.
|
|
9
|
-
* @param option 请求选项.
|
|
10
|
-
*/
|
|
11
|
-
export declare function Sync(config?: IRequestConfig<SyncQuery, {}>, option?: IRequestOptions): Promise<any>;
|
|
12
|
-
export declare namespace Sync {
|
|
13
|
-
var method: "POST";
|
|
14
|
-
var url: string;
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IRequestConfig, IRequestOptions } from '../../../../service';
|
|
2
|
-
import * as DEF from '../../../def';
|
|
3
|
-
/** 请求参数. */
|
|
4
|
-
export declare class SystemSettingsQuery {
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @param config 请求配置.
|
|
10
|
-
* @param option 请求选项.
|
|
11
|
-
*/
|
|
12
|
-
export declare function SystemSettings(config?: IRequestConfig<SystemSettingsQuery, DEF.WatchTower.SystemSettingsUpdateRequest>, option?: IRequestOptions): Promise<any>;
|
|
13
|
-
export declare namespace SystemSettings {
|
|
14
|
-
var method: "PUT";
|
|
15
|
-
var url: string;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SystemSettings, SystemSettingsQuery } from './SystemSettings';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * as DashboardsController from './DashboardsController';
|
|
2
|
-
export * as HealthController from './HealthController';
|
|
3
|
-
export * as MetricsController from './MetricsController';
|
|
4
|
-
export * as MonitorRulesController from './MonitorRulesController';
|
|
5
|
-
export * as PrometheusController from './PrometheusController';
|
|
6
|
-
export * as SystemSettingsController from './SystemSettingsController';
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
export declare class DashboardFolderReorderRequest {
|
|
2
|
-
/** Dashboard Id. */
|
|
3
|
-
dashboardId?: number | null;
|
|
4
|
-
/** Folder Ids. */
|
|
5
|
-
folderIds?: Array<number> | null;
|
|
6
|
-
constructor(obj?: DashboardFolderReorderRequest);
|
|
7
|
-
}
|
|
8
|
-
export declare class DashboardFolderUpsertRequest {
|
|
9
|
-
/** Dashboard Id. */
|
|
10
|
-
dashboardId?: number | null;
|
|
11
|
-
/** Name. */
|
|
12
|
-
name?: string | null;
|
|
13
|
-
constructor(obj?: DashboardFolderUpsertRequest);
|
|
14
|
-
}
|
|
15
|
-
export declare class DashboardImportRequest {
|
|
16
|
-
/** Json. */
|
|
17
|
-
json?: string | null;
|
|
18
|
-
constructor(obj?: DashboardImportRequest);
|
|
19
|
-
}
|
|
20
|
-
export declare class DashboardUpsertRequest {
|
|
21
|
-
/** Description. */
|
|
22
|
-
description?: string | null;
|
|
23
|
-
/** Name. */
|
|
24
|
-
name?: string | null;
|
|
25
|
-
/** Slug. */
|
|
26
|
-
slug?: string | null;
|
|
27
|
-
/** Tags. */
|
|
28
|
-
tags?: string | null;
|
|
29
|
-
constructor(obj?: DashboardUpsertRequest);
|
|
30
|
-
}
|
|
31
|
-
export declare class DashboardWidgetCreateRequest {
|
|
32
|
-
/** Critical Threshold. */
|
|
33
|
-
criticalThreshold?: number | null;
|
|
34
|
-
/** Dashboard Folder Id. */
|
|
35
|
-
dashboardFolderId?: number | null;
|
|
36
|
-
/** Dashboard Id. */
|
|
37
|
-
dashboardId?: number | null;
|
|
38
|
-
/** High Critical Threshold. */
|
|
39
|
-
highCriticalThreshold?: number | null;
|
|
40
|
-
/** High Critical Threshold Unit. */
|
|
41
|
-
highCriticalThresholdUnit?: string | null;
|
|
42
|
-
/** High Warning Threshold. */
|
|
43
|
-
highWarningThreshold?: number | null;
|
|
44
|
-
/** High Warning Threshold Unit. */
|
|
45
|
-
highWarningThresholdUnit?: string | null;
|
|
46
|
-
/** Low Critical Threshold. */
|
|
47
|
-
lowCriticalThreshold?: number | null;
|
|
48
|
-
/** Low Critical Threshold Unit. */
|
|
49
|
-
lowCriticalThresholdUnit?: string | null;
|
|
50
|
-
/** Low Warning Threshold. */
|
|
51
|
-
lowWarningThreshold?: number | null;
|
|
52
|
-
/** Low Warning Threshold Unit. */
|
|
53
|
-
lowWarningThresholdUnit?: string | null;
|
|
54
|
-
/** Metric Instance. */
|
|
55
|
-
metricInstance?: string | null;
|
|
56
|
-
/** Metric Type. */
|
|
57
|
-
metricType?: string | null;
|
|
58
|
-
/** Monitor Rule Id. */
|
|
59
|
-
monitorRuleId?: number | null;
|
|
60
|
-
/** Panel Type. */
|
|
61
|
-
panelType?: string | null;
|
|
62
|
-
/** Series Mode. */
|
|
63
|
-
seriesMode?: string | null;
|
|
64
|
-
/** Span. */
|
|
65
|
-
span?: number | null;
|
|
66
|
-
/** Title. */
|
|
67
|
-
title?: string | null;
|
|
68
|
-
/** Warning Threshold. */
|
|
69
|
-
warningThreshold?: number | null;
|
|
70
|
-
constructor(obj?: DashboardWidgetCreateRequest);
|
|
71
|
-
}
|
|
72
|
-
export declare class DashboardWidgetMoveRequest {
|
|
73
|
-
/** Dashboard Folder Id. */
|
|
74
|
-
dashboardFolderId?: number | null;
|
|
75
|
-
/** Dashboard Id. */
|
|
76
|
-
dashboardId?: number | null;
|
|
77
|
-
/** Target Widget Id. */
|
|
78
|
-
targetWidgetId?: number | null;
|
|
79
|
-
constructor(obj?: DashboardWidgetMoveRequest);
|
|
80
|
-
}
|
|
81
|
-
export declare class DashboardWidgetReorderRequest {
|
|
82
|
-
/** Dashboard Folder Id. */
|
|
83
|
-
dashboardFolderId?: number | null;
|
|
84
|
-
/** Dashboard Id. */
|
|
85
|
-
dashboardId?: number | null;
|
|
86
|
-
/** Widget Ids. */
|
|
87
|
-
widgetIds?: Array<number> | null;
|
|
88
|
-
constructor(obj?: DashboardWidgetReorderRequest);
|
|
89
|
-
}
|
|
90
|
-
export declare class MonitorRuleUpsertRequest {
|
|
91
|
-
/** Argument Match Mode. */
|
|
92
|
-
argumentMatchMode?: string | null;
|
|
93
|
-
/** Argument Pattern. */
|
|
94
|
-
argumentPattern?: string | null;
|
|
95
|
-
/** Enabled. */
|
|
96
|
-
enabled?: boolean | null;
|
|
97
|
-
/** Endpoint. */
|
|
98
|
-
endpoint?: string | null;
|
|
99
|
-
/** Exporter Type. */
|
|
100
|
-
exporterType?: number | null;
|
|
101
|
-
/** Min Process Count. */
|
|
102
|
-
minProcessCount?: number | null;
|
|
103
|
-
/** Name. */
|
|
104
|
-
name?: string | null;
|
|
105
|
-
/** Probe Type. */
|
|
106
|
-
probeType?: number | null;
|
|
107
|
-
/** Process Name. */
|
|
108
|
-
processName?: string | null;
|
|
109
|
-
/** Remark. */
|
|
110
|
-
remark?: string | null;
|
|
111
|
-
/** Rule Kind. */
|
|
112
|
-
ruleKind?: string | null;
|
|
113
|
-
/** Rule Type. */
|
|
114
|
-
ruleType?: string | null;
|
|
115
|
-
/** Scrape Interval Seconds. */
|
|
116
|
-
scrapeIntervalSeconds?: number | null;
|
|
117
|
-
/** Scrape Timeout Seconds. */
|
|
118
|
-
scrapeTimeoutSeconds?: number | null;
|
|
119
|
-
/** Service Name. */
|
|
120
|
-
serviceName?: string | null;
|
|
121
|
-
/** Target Type. */
|
|
122
|
-
targetType?: number | null;
|
|
123
|
-
constructor(obj?: MonitorRuleUpsertRequest);
|
|
124
|
-
}
|
|
125
|
-
export declare class SystemSettingsUpdateRequest {
|
|
126
|
-
/** Metric Retention Days. */
|
|
127
|
-
metricRetentionDays?: number | null;
|
|
128
|
-
constructor(obj?: SystemSettingsUpdateRequest);
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* 获取对象的属性名数组.
|
|
132
|
-
* @param obj 对象.
|
|
133
|
-
*/
|
|
134
|
-
export declare function keys<C extends object>(obj: C): Array<keyof C>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IKgEventListener, IKgRemoveEventListener } from '@kengic/core.core';
|
|
2
|
-
/**
|
|
3
|
-
* <p>构造事件监听.</p>
|
|
4
|
-
* <p>在 {@link onEventFactory} 的基础上, 支持在组件卸载时自动取消监听.</p>
|
|
5
|
-
*
|
|
6
|
-
* @param param.event 事件名称.
|
|
7
|
-
* @param param.id 唯一标识.
|
|
8
|
-
* @param param.addEventListener 添加事件监听.
|
|
9
|
-
* @param param.removeEventListener 移除事件监听.
|
|
10
|
-
*/
|
|
11
|
-
export declare function kgOnEventFactory<E extends string, L extends IKgEventListener = any>(param: {
|
|
12
|
-
event: E;
|
|
13
|
-
eventListeners: Record<string, Record<E, Array<L>>> | any;
|
|
14
|
-
id?: string | undefined;
|
|
15
|
-
}): (listener: L, isOnce?: boolean) => IKgRemoveEventListener;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { KgUtil } from './kg.util';
|
|
2
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
3
|
-
export declare class KgAuthUtil {
|
|
4
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
5
|
-
static isAdminUser: typeof KgUtil.isAdminUser;
|
|
6
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
7
|
-
static isAppAuthenticated: typeof KgUtil.isAppAuthenticated;
|
|
8
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
9
|
-
static isPathAuthenticated: typeof KgUtil.isPathAuthenticated;
|
|
10
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
11
|
-
static getPermissionType: typeof KgUtil.getPermissionType;
|
|
12
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { KgUtil } from './kg.util';
|
|
2
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
3
|
-
export declare class KgRouteUtil {
|
|
4
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
5
|
-
static translateMenus: typeof KgUtil.translateMenus;
|
|
6
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
7
|
-
static transformMenus: typeof KgUtil.transformMenus;
|
|
8
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
9
|
-
static isPathInApp: typeof KgUtil.isPathInApp;
|
|
10
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
11
|
-
static getAppByPath: typeof KgUtil.getAppByPath;
|
|
12
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
13
|
-
static getAppIndexPath: typeof KgUtil.getAppIndexPath;
|
|
14
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
15
|
-
static getFirstLeafMenu: typeof KgUtil.getFirstLeafMenu;
|
|
16
|
-
/** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
|
|
17
|
-
static getMenuByPath: typeof KgUtil.getMenuByPath;
|
|
18
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Slots } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* 根据名称渲染单个插槽.
|
|
4
|
-
*
|
|
5
|
-
* @param param.slotRecord 插槽对象.
|
|
6
|
-
* @param param.name 插槽名称.
|
|
7
|
-
*/
|
|
8
|
-
export declare function renderSlot(param: {
|
|
9
|
-
name: string;
|
|
10
|
-
slotRecord: Slots;
|
|
11
|
-
}): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}>[] | null;
|
|
14
|
-
/**
|
|
15
|
-
* 渲染插槽.
|
|
16
|
-
*
|
|
17
|
-
* @param param.slotRecord 插槽对象.
|
|
18
|
-
* @param param.excludeSlotList 要排除的插槽名称列表.
|
|
19
|
-
*/
|
|
20
|
-
export declare function renderSlotList(param: {
|
|
21
|
-
excludeSlotList?: string[];
|
|
22
|
-
slotRecord: Slots;
|
|
23
|
-
}): any;
|