@kengic/vue 0.30.1-beta.20 → 0.30.1-beta.22
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/index.css +1 -1
- package/dist/kengic-vue.js +56381 -54664
- package/dist/palette-swatch-variant.f7258843.mjs +8 -0
- package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +15 -3
- package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +7 -1
- package/dist/src/component/KgLayoutHeader/{components/KgLayoutHeaderLocale.d.ts → KgLayoutHeader.Locale.d.ts} +1 -1
- package/dist/src/component/KgLayoutHeader/index.d.ts +1 -1
- package/dist/src/component/KgModal/KgModal.d.ts +6 -6
- package/dist/src/component/KgModal/{hooks/useDragToResize.d.ts → KgModal.service.d.ts} +13 -2
- package/dist/src/component/KgModal02/KgModal02.d.ts +591 -0
- package/dist/src/component/KgModal02/KgModal02.model.d.ts +1 -0
- package/dist/src/component/KgModal02/index.d.ts +1 -0
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +11 -0
- package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +36 -0
- package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +27 -0
- package/dist/src/component/KgSimulator/KgSimulator.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.icons.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +355 -0
- package/dist/src/component/KgSimulator/KgSimulator.service.d.ts +3 -29
- package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +45 -3
- package/dist/src/component/KgTable/{components/KgTable.BodyCell.d.ts → KgTable.BodyCell.d.ts} +1 -1
- package/dist/src/component/KgTable/{components/setting/KgTable.Setting.service.d.ts → KgTable.Setting.service.d.ts} +1 -1
- package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +32 -3
- package/dist/src/component/KgTable02/KgTable02.event.d.ts +13 -3
- package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +9 -0
- package/dist/src/component/KgVar/{KgVarFactory.d.ts → KgVar.Factory.d.ts} +13 -12
- package/dist/src/component/KgVar/KgVar.d.ts +23 -17
- package/dist/src/component/KgVar/KgVar.event.d.ts +19 -6
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +15 -2
- package/dist/src/component/KgVar/index.d.ts +1 -1
- package/dist/src/component/index.d.ts +1 -0
- package/dist/src/config/index.d.ts +9 -3
- package/dist/src/const/const.model.d.ts +6 -2
- package/dist/src/const/form-id.const.d.ts +8 -0
- package/dist/src/i18n/i18n.setup.d.ts +1 -1
- package/dist/src/page/KgPageCircularShuttleMonitor/components/KgCircularShuttleMonitor.store.d.ts +1 -1
- package/dist/src/service/http-client.d.ts +5 -1
- package/dist/src/util/tsx.helper.d.ts +7 -7
- package/package.json +2 -2
- package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +0 -12
- /package/dist/src/component/KgTable/{components/KgTable.HeadCell.d.ts → KgTable.HeadCell.d.ts} +0 -0
- /package/dist/src/component/KgTable/{components/KgTable.Info.d.ts → KgTable.Info.d.ts} +0 -0
- /package/dist/src/component/KgTable/{components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts → KgTable.Setting.VarGridMaster.SaveAs.d.ts} +0 -0
- /package/dist/src/component/KgTable/{components/setting/KgTable.Setting.d.ts → KgTable.Setting.d.ts} +0 -0
|
@@ -2,6 +2,12 @@ import { ExtractPropTypes, PropType } from 'vue';
|
|
|
2
2
|
import { IKgProps, IKgSlots } from './KgVar.model';
|
|
3
3
|
import './KgVar.css';
|
|
4
4
|
export declare function getProps(): {
|
|
5
|
+
/**
|
|
6
|
+
* 界面标识.
|
|
7
|
+
*
|
|
8
|
+
* @default undefined
|
|
9
|
+
*/
|
|
10
|
+
id: PropType<string>;
|
|
5
11
|
/**
|
|
6
12
|
* 是否使用灰色背景.
|
|
7
13
|
*
|
|
@@ -11,11 +17,7 @@ export declare function getProps(): {
|
|
|
11
17
|
type: PropType<boolean>;
|
|
12
18
|
default: undefined;
|
|
13
19
|
};
|
|
14
|
-
/**
|
|
15
|
-
* 界面标识.
|
|
16
|
-
*
|
|
17
|
-
* @default undefined
|
|
18
|
-
*/
|
|
20
|
+
/** @deprecated 已弃用, 请使用 id */
|
|
19
21
|
kgFormID: PropType<string>;
|
|
20
22
|
/**
|
|
21
23
|
* <p>界面层级.</p>
|
|
@@ -36,10 +38,16 @@ export declare function getProps(): {
|
|
|
36
38
|
*/
|
|
37
39
|
kgSlots: PropType<IKgSlots>;
|
|
38
40
|
};
|
|
39
|
-
/** @deprecated */
|
|
40
|
-
export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
41
41
|
export declare type KgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
42
|
+
/** @deprecated 已弃用, 请使用 {@link KgVarProps} */
|
|
43
|
+
export declare type IKgVarProps = KgVarProps;
|
|
42
44
|
declare const _default: import("vue").DefineComponent<{
|
|
45
|
+
/**
|
|
46
|
+
* 界面标识.
|
|
47
|
+
*
|
|
48
|
+
* @default undefined
|
|
49
|
+
*/
|
|
50
|
+
id: PropType<string>;
|
|
43
51
|
/**
|
|
44
52
|
* 是否使用灰色背景.
|
|
45
53
|
*
|
|
@@ -49,11 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
57
|
type: PropType<boolean>;
|
|
50
58
|
default: undefined;
|
|
51
59
|
};
|
|
52
|
-
/**
|
|
53
|
-
* 界面标识.
|
|
54
|
-
*
|
|
55
|
-
* @default undefined
|
|
56
|
-
*/
|
|
60
|
+
/** @deprecated 已弃用, 请使用 id */
|
|
57
61
|
kgFormID: PropType<string>;
|
|
58
62
|
/**
|
|
59
63
|
* <p>界面层级.</p>
|
|
@@ -74,6 +78,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
78
|
*/
|
|
75
79
|
kgSlots: PropType<IKgSlots>;
|
|
76
80
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
81
|
+
/**
|
|
82
|
+
* 界面标识.
|
|
83
|
+
*
|
|
84
|
+
* @default undefined
|
|
85
|
+
*/
|
|
86
|
+
id: PropType<string>;
|
|
77
87
|
/**
|
|
78
88
|
* 是否使用灰色背景.
|
|
79
89
|
*
|
|
@@ -83,11 +93,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
93
|
type: PropType<boolean>;
|
|
84
94
|
default: undefined;
|
|
85
95
|
};
|
|
86
|
-
/**
|
|
87
|
-
* 界面标识.
|
|
88
|
-
*
|
|
89
|
-
* @default undefined
|
|
90
|
-
*/
|
|
96
|
+
/** @deprecated 已弃用, 请使用 id */
|
|
91
97
|
kgFormID: PropType<string>;
|
|
92
98
|
/**
|
|
93
99
|
* <p>界面层级.</p>
|
|
@@ -2,14 +2,26 @@ import { IKgEventListener } from '@kengic/core.core';
|
|
|
2
2
|
/**
|
|
3
3
|
* 事件类型.
|
|
4
4
|
*/
|
|
5
|
-
export declare type IKgVarEvent = '
|
|
6
|
-
export declare type
|
|
5
|
+
export declare type IKgVarEvent = 'onBeforeRequest' | 'onAfterRequest' | 'onSetup' | 'onUnmounted';
|
|
6
|
+
export declare type IKgVarOnBeforeRequestEventListenerParameter = {
|
|
7
|
+
/**
|
|
8
|
+
* 界面标识.
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* <p>模拟请求返回数据.</p>
|
|
13
|
+
* <p>用户可以修改该属性, 如果该属性的值不为 undefined, 则不会请求变量配置数据, 而是直接使用该属性值作为变量配置数据,</p>
|
|
14
|
+
*/
|
|
15
|
+
mock: any | undefined;
|
|
16
|
+
};
|
|
17
|
+
export declare type IKgVarOnBeforeRequestEventListener = ((param: IKgVarOnBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
18
|
+
export declare type IKgVarOnAfterRequestEventListenerParameter = {
|
|
7
19
|
/**
|
|
8
20
|
* 界面标识.
|
|
9
21
|
*/
|
|
10
22
|
formID: string;
|
|
11
23
|
};
|
|
12
|
-
export declare type
|
|
24
|
+
export declare type IKgVarOnAfterRequestEventListener = ((param: IKgVarOnAfterRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
13
25
|
export declare type IKgVarOnSetupEventListenerParameter = {
|
|
14
26
|
/**
|
|
15
27
|
* 界面标识.
|
|
@@ -24,10 +36,11 @@ export declare type IKgVarOnUnmountedEventListenerParameter = {
|
|
|
24
36
|
formID: string;
|
|
25
37
|
};
|
|
26
38
|
export declare type IKgVarOnUnmountedEventListener = ((param: IKgVarOnUnmountedEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
27
|
-
export declare type IKgVarEventListenerParameter =
|
|
28
|
-
export declare type IKgVarEventListener =
|
|
39
|
+
export declare type IKgVarEventListenerParameter = IKgVarOnBeforeRequestEventListenerParameter | IKgVarOnAfterRequestEventListenerParameter | IKgVarOnSetupEventListenerParameter | IKgVarOnUnmountedEventListenerParameter;
|
|
40
|
+
export declare type IKgVarEventListener = IKgVarOnBeforeRequestEventListener | IKgVarOnAfterRequestEventListener | IKgVarOnSetupEventListener | IKgVarOnUnmountedEventListener;
|
|
29
41
|
export declare const eventListeners: Record<string, {
|
|
30
|
-
|
|
42
|
+
onAfterRequest: Array<IKgVarOnAfterRequestEventListener>;
|
|
43
|
+
onBeforeRequest: Array<IKgVarOnBeforeRequestEventListener>;
|
|
31
44
|
onSetup: Array<IKgVarOnSetupEventListener>;
|
|
32
45
|
onUnmounted: Array<IKgVarOnUnmountedEventListener>;
|
|
33
46
|
}>;
|
|
@@ -9,7 +9,7 @@ import { IUseKgSubmit } from '../KgSubmit';
|
|
|
9
9
|
import { IUseKgTable } from '../KgTable';
|
|
10
10
|
import { IUseKgTable02 } from '../KgTable02';
|
|
11
11
|
import { IUseKgVarConfig } from '../KgVarConfig';
|
|
12
|
-
import { eventListeners,
|
|
12
|
+
import { eventListeners, IKgVarOnAfterRequestEventListener, IKgVarOnBeforeRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './KgVar.event';
|
|
13
13
|
import { IKgProps, IKgSlots } from './KgVar.model';
|
|
14
14
|
import { useKgVarStore } from './KgVar.store';
|
|
15
15
|
export declare type IUseKgVar = {
|
|
@@ -95,6 +95,10 @@ export declare type IUseKgVar = {
|
|
|
95
95
|
getVarGridDetail(param: {
|
|
96
96
|
varName: string | null | undefined;
|
|
97
97
|
}): VarGridDetail | null;
|
|
98
|
+
/**
|
|
99
|
+
* 界面标识.
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
98
102
|
/**
|
|
99
103
|
* 是否正在复制.
|
|
100
104
|
*/
|
|
@@ -148,7 +152,16 @@ export declare type IUseKgVar = {
|
|
|
148
152
|
* @param listener 事件监听函数.
|
|
149
153
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
150
154
|
*/
|
|
151
|
-
|
|
155
|
+
onAfterRequest(listener: IKgVarOnAfterRequestEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
156
|
+
/**
|
|
157
|
+
* 监听事件: 变量配置数据查询之前.
|
|
158
|
+
*
|
|
159
|
+
* @param listener 事件监听函数.
|
|
160
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
161
|
+
*/
|
|
162
|
+
onBeforeRequest(listener: IKgVarOnBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
163
|
+
/** @deprecated 已废弃, 请使用 {@link kgTable.onAfterRequest()} */
|
|
164
|
+
onRetrieve(listener: IKgVarOnAfterRequestEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
152
165
|
/**
|
|
153
166
|
* 监听事件: 页面创建.
|
|
154
167
|
*
|
|
@@ -32,7 +32,7 @@ export declare function setup(options: IKgOptions): Promise<void>;
|
|
|
32
32
|
export declare type KgConfig = {
|
|
33
33
|
app: App<Element>;
|
|
34
34
|
axios: any;
|
|
35
|
-
i18n
|
|
35
|
+
i18n?: {
|
|
36
36
|
/**
|
|
37
37
|
* 语言数据.
|
|
38
38
|
*/
|
|
@@ -48,10 +48,16 @@ export declare type KgConfig = {
|
|
|
48
48
|
*/
|
|
49
49
|
defaultLocale?: LocaleType;
|
|
50
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* 是否请求翻译数据.
|
|
53
|
+
*
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
isRequestDescriptionList?: boolean;
|
|
51
57
|
};
|
|
52
58
|
/**
|
|
53
59
|
* 配置.
|
|
54
60
|
*
|
|
55
|
-
* @param
|
|
61
|
+
* @param param 配置.
|
|
56
62
|
*/
|
|
57
|
-
export declare function kgConfig(
|
|
63
|
+
export declare function kgConfig(param: KgConfig): Promise<void>;
|
|
@@ -88,7 +88,9 @@ export declare const KG: {
|
|
|
88
88
|
}>>>;
|
|
89
89
|
};
|
|
90
90
|
kgIsEditable: {
|
|
91
|
-
type: import("vue").PropType<boolean>;
|
|
91
|
+
type: import("vue").PropType<boolean>; /**
|
|
92
|
+
* 画布.
|
|
93
|
+
*/
|
|
92
94
|
default: boolean;
|
|
93
95
|
};
|
|
94
96
|
kgIsEnableOverview: {
|
|
@@ -442,7 +444,9 @@ export declare const KG_CONST: {
|
|
|
442
444
|
}>>>;
|
|
443
445
|
};
|
|
444
446
|
kgIsEditable: {
|
|
445
|
-
type: import("vue").PropType<boolean>;
|
|
447
|
+
type: import("vue").PropType<boolean>; /**
|
|
448
|
+
* 画布.
|
|
449
|
+
*/
|
|
446
450
|
default: boolean;
|
|
447
451
|
};
|
|
448
452
|
kgIsEnableOverview: {
|
|
@@ -23,6 +23,14 @@ export declare const FORM_IDS: {
|
|
|
23
23
|
*/
|
|
24
24
|
KG_CIRCULAR_SHUTTLE_MONITOR__TASK_SUMMARY: string;
|
|
25
25
|
KG_PAGE_DDA__CREATE__BUTTON: string;
|
|
26
|
+
/**
|
|
27
|
+
* 模拟器--环形输送线--打开场景.
|
|
28
|
+
*/
|
|
29
|
+
KG_SIMULATOR__CIRCULAR_CONVEYOR__OPEN_SCENE: string;
|
|
30
|
+
/**
|
|
31
|
+
* 模拟器--环形穿梭车--打开场景.
|
|
32
|
+
*/
|
|
33
|
+
KG_SIMULATOR__CIRCULAR_SHUTTLE__OPEN_SCENE: string;
|
|
26
34
|
KG_SQL_CLIENT__RESULT_TAB: string;
|
|
27
35
|
/**
|
|
28
36
|
* 变量配置弹窗:按钮:按钮管理.
|
package/dist/src/page/KgPageCircularShuttleMonitor/components/KgCircularShuttleMonitor.store.d.ts
CHANGED
|
@@ -348,7 +348,7 @@ export interface IKgCircularShuttleMonitorStoreActions {
|
|
|
348
348
|
$Tab$insertRgvList(value: Array<StatusRgvVO> | null | undefined): void;
|
|
349
349
|
$Tab$setActiveKey(value: string | number | null | undefined): void;
|
|
350
350
|
$Tab$setRgvList(value: Array<StatusRgvVO> | null | undefined): void;
|
|
351
|
-
|
|
351
|
+
set$graph(value: Q.Graph | null | undefined): void;
|
|
352
352
|
setProps(value: IKgCircularShuttleMonitorProps | null | undefined): void;
|
|
353
353
|
}
|
|
354
354
|
export declare const useKgCircularShuttleMonitorStore: KgStoreDefinition<IKgCircularShuttleMonitorStoreGetters, IKgCircularShuttleMonitorStoreActions>;
|
|
@@ -73,7 +73,11 @@ interface IRequestOption {
|
|
|
73
73
|
*/
|
|
74
74
|
joinTime?: boolean;
|
|
75
75
|
/**
|
|
76
|
-
* <p
|
|
76
|
+
* <p>模拟数据.</p>
|
|
77
|
+
* <ul>
|
|
78
|
+
* <li>如果是为 undefined, 则是会发起请求,</li>
|
|
79
|
+
* <li>如果不为 undefined, 则不会发起请求, 而是直接返回该模拟数据,</li>
|
|
80
|
+
* </ul>
|
|
77
81
|
*/
|
|
78
82
|
mock?: any;
|
|
79
83
|
/**
|
|
@@ -2,22 +2,22 @@ import { Slots } from 'vue';
|
|
|
2
2
|
/**
|
|
3
3
|
* 根据名称渲染单个插槽.
|
|
4
4
|
*
|
|
5
|
-
* @param param.
|
|
5
|
+
* @param param.slotRecord 插槽对象.
|
|
6
6
|
* @param param.name 插槽名称.
|
|
7
7
|
*/
|
|
8
8
|
export declare function renderSlot(param: {
|
|
9
|
-
slots: Slots;
|
|
10
9
|
name: string;
|
|
10
|
+
slotRecord: Slots;
|
|
11
11
|
}): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
12
|
[key: string]: any;
|
|
13
13
|
}>[] | null;
|
|
14
14
|
/**
|
|
15
15
|
* 渲染插槽.
|
|
16
16
|
*
|
|
17
|
-
* @param param.
|
|
18
|
-
* @param param.
|
|
17
|
+
* @param param.slotRecord 插槽对象.
|
|
18
|
+
* @param param.excludeSlotList 要排除的插槽名称列表.
|
|
19
19
|
*/
|
|
20
|
-
export declare function
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
export declare function renderSlotList(param: {
|
|
21
|
+
excludeSlotList?: string[];
|
|
22
|
+
slotRecord: Slots;
|
|
23
23
|
}): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.30.1-beta.
|
|
3
|
+
"version": "0.30.1-beta.22",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "npm run use-node && rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@kengic/core.react": "0.0.2-beta.42",
|
|
48
48
|
"@kengic/pont": "1.2.17-beta.5",
|
|
49
49
|
"@rys-fe/vite-plugin-theme": "0.8.6",
|
|
50
|
-
"@thymine/xunee": "0.4.9-beta.
|
|
50
|
+
"@thymine/xunee": "0.4.9-beta.19",
|
|
51
51
|
"@types/crypto-js": "4.1.1",
|
|
52
52
|
"@types/fs-extra": "9.0.13",
|
|
53
53
|
"@types/inquirer": "8.2.5",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComputedRef, Ref } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* 拖拽改变位置.
|
|
4
|
-
*
|
|
5
|
-
* @param param.getProps 组件参数.
|
|
6
|
-
* @param param.domRef 页面特殊元素对象.
|
|
7
|
-
*/
|
|
8
|
-
export declare function useDragToMove(param: {
|
|
9
|
-
domRef: Ref<HTMLDivElement | null>;
|
|
10
|
-
getKgIsDragToMove: ComputedRef<boolean>;
|
|
11
|
-
getVisible: ComputedRef<boolean>;
|
|
12
|
-
}): void;
|
/package/dist/src/component/KgTable/{components/KgTable.HeadCell.d.ts → KgTable.HeadCell.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/src/component/KgTable/{components/setting/KgTable.Setting.d.ts → KgTable.Setting.d.ts}
RENAMED
|
File without changes
|