@kengic/core.react 0.0.1-beta.8 → 0.0.1-beta.81
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/exclamation-circle-outlined-DZrXCnvM.js +8 -0
- package/index.css +1 -1
- package/kengic-core.react.js +54632 -33989
- package/package.json +1 -1
- package/search-outlined-Od1M_oxf.js +8 -0
- package/src/api/WMS/Controllers/WorkstationController/List.d.ts +25 -0
- package/src/api/WMS/Controllers/WorkstationController/index.d.ts +1 -0
- package/src/api/WMS/Controllers/index.d.ts +1 -0
- package/src/api/WMS/index.d.ts +2 -0
- package/src/api/WMS/models.d.ts +62 -0
- package/src/api/api.d.ts +1 -0
- package/src/api/def.d.ts +1 -0
- package/src/api/index.d.ts +2 -0
- package/src/component/Kg/KgProvider.d.ts +6 -1
- package/src/component/Kg/index.d.ts +2 -2
- package/src/component/Kg/index.store.d.ts +23 -0
- package/src/component/KgModal/KgModal.d.ts +4 -4
- package/src/component/KgModal/hook/useDragToResize.d.ts +13 -0
- package/src/component/KgVarConfig/KgVarConfig.d.ts +1 -5
- package/src/component/KgVarConfig/index.vm.d.ts +2 -0
- package/src/component/KgVarConfig/index.wc.d.ts +1 -1
- package/src/component/KgWorkStation/KgWorkStation.d.ts +1 -2
- package/src/component/KgWorkStation/KgWorkStationModal.d.ts +2 -1
- package/src/component/KgWorkStation/index.d.ts +1 -0
- package/src/component/KgWorkStation/index.event.d.ts +11 -28
- package/src/component/KgWorkStation/index.hooks.d.ts +29 -4
- package/src/component/KgWorkStation/index.store.d.ts +99 -11
- package/src/component/KgWorkStation/index.vm.d.ts +0 -2
- package/src/component/KgWorkStation/index.wc.d.ts +1 -1
- package/src/component/index.d.ts +2 -5
- package/src/const/index.vm.d.ts +8 -1
- package/src/hook/index.d.ts +1 -0
- package/src/hook/kg.hook.d.ts +12 -0
- package/src/i18n/en.d.ts +9 -1
- package/src/i18n/es_ES.d.ts +12 -0
- package/src/i18n/fr_FR.d.ts +12 -0
- package/src/i18n/km_KH.d.ts +12 -0
- package/src/i18n/ko_KR.d.ts +12 -0
- package/src/i18n/vi_VN.d.ts +12 -0
- package/src/i18n/zh_CN.d.ts +9 -1
- package/src/index.d.ts +15 -2
- package/src/index.store.d.ts +15 -0
- package/src/service/http-client.d.ts +32 -0
- package/src/service/index.d.ts +1 -0
- package/src/util/index.d.ts +1 -1
- package/src/util/kg.util.d.ts +28 -0
- package/src/component/Kg/Kg.d.ts +0 -4
- package/src/component/KgWorkStation/KgWorkStation.service.d.ts +0 -2
package/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
width: 1024,
|
|
3
|
+
height: 1024,
|
|
4
|
+
body: '<path fill="currentColor" d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1c-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"/>'
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
t as default
|
|
8
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../service';
|
|
2
|
+
import * as DEF from '../../../def';
|
|
3
|
+
/** 请求参数. */
|
|
4
|
+
export declare class ListQuery {
|
|
5
|
+
/** 排序字段. */
|
|
6
|
+
column?: string | null;
|
|
7
|
+
/** 排序方式. */
|
|
8
|
+
order?: 'asc' | 'desc' | null;
|
|
9
|
+
/** 当前页数. */
|
|
10
|
+
pageNo?: number | null;
|
|
11
|
+
/** 每页条数. */
|
|
12
|
+
pageSize?: number | null;
|
|
13
|
+
constructor(obj?: ListQuery);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 工作站-分页列表查询.
|
|
17
|
+
*
|
|
18
|
+
* @param config 请求配置.
|
|
19
|
+
* @param option 请求选项.
|
|
20
|
+
*/
|
|
21
|
+
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WorkstationDTO>>;
|
|
22
|
+
export declare namespace List {
|
|
23
|
+
var method: "GET";
|
|
24
|
+
var url: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { List, ListQuery } from './List';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as WorkstationController from './WorkstationController';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare class IPage<T0> {
|
|
2
|
+
/** Current. */
|
|
3
|
+
current?: number | null;
|
|
4
|
+
/** Pages. */
|
|
5
|
+
pages?: number | null;
|
|
6
|
+
/** Records. */
|
|
7
|
+
records?: Array<T0> | null;
|
|
8
|
+
/** Size. */
|
|
9
|
+
size?: number | null;
|
|
10
|
+
/** Total. */
|
|
11
|
+
total?: number | null;
|
|
12
|
+
constructor(obj?: IPage<T0>);
|
|
13
|
+
}
|
|
14
|
+
/** 工作站区域数据传输对象. */
|
|
15
|
+
export declare class WorkstationAreaDTO {
|
|
16
|
+
/** 主键. */
|
|
17
|
+
id?: string | null;
|
|
18
|
+
/** 创建日期. */
|
|
19
|
+
insDt?: string | null;
|
|
20
|
+
/** 创建用户. */
|
|
21
|
+
insUsrId?: string | null;
|
|
22
|
+
/** 修改日期. */
|
|
23
|
+
modUsrId?: string | null;
|
|
24
|
+
/** 修改用户. */
|
|
25
|
+
moddte?: string | null;
|
|
26
|
+
/** 仓库. */
|
|
27
|
+
whId?: string | null;
|
|
28
|
+
/** 工作区. */
|
|
29
|
+
wrkare?: string | null;
|
|
30
|
+
/** 工作区描述. */
|
|
31
|
+
wrkareDsc?: string | null;
|
|
32
|
+
constructor(obj?: WorkstationAreaDTO);
|
|
33
|
+
}
|
|
34
|
+
/** 工作站数据传输对象. */
|
|
35
|
+
export declare class WorkstationDTO {
|
|
36
|
+
/** 工作站. */
|
|
37
|
+
devcod?: string | null;
|
|
38
|
+
/** 工作站描述. */
|
|
39
|
+
devcodDsc?: string | null;
|
|
40
|
+
/** 主工作区. */
|
|
41
|
+
hmewrkare?: string | null;
|
|
42
|
+
/** 主键. */
|
|
43
|
+
id?: string | null;
|
|
44
|
+
/** 创建日期. */
|
|
45
|
+
insDt?: string | null;
|
|
46
|
+
/** 创建用户. */
|
|
47
|
+
insUsrId?: string | null;
|
|
48
|
+
/** 修改日期. */
|
|
49
|
+
modUsrId?: string | null;
|
|
50
|
+
/** 修改用户. */
|
|
51
|
+
moddte?: string | null;
|
|
52
|
+
/** 仓库. */
|
|
53
|
+
whId?: string | null;
|
|
54
|
+
/** 工作站与工作区域关系. */
|
|
55
|
+
workstationAreas?: Array<WorkstationAreaDTO> | null;
|
|
56
|
+
constructor(obj?: WorkstationDTO);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 获取对象的属性名数组.
|
|
60
|
+
* @param obj 对象.
|
|
61
|
+
*/
|
|
62
|
+
export declare function keys<C extends object>(obj: C): Array<keyof C>;
|
package/src/api/api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WMSAPI as WMS } from './WMS';
|
package/src/api/def.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WMSDEF as WMS } from './WMS';
|
|
@@ -2,6 +2,11 @@ import React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* 组件通用逻辑.
|
|
4
4
|
*/
|
|
5
|
-
export declare function KgProvider({ children }: {
|
|
5
|
+
export declare function KgProvider({ children, id }: {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
+
id: string;
|
|
7
8
|
}): React.JSX.Element;
|
|
9
|
+
/**
|
|
10
|
+
* 获取组件标识.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useID(): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './KgProvider
|
|
1
|
+
export * from './index.store';
|
|
2
|
+
export * from './KgProvider';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PayloadAction, Slice, SliceSelectors } from '@reduxjs/toolkit';
|
|
2
|
+
import { type IState } from '../../index.store.ts';
|
|
3
|
+
export interface IKgOption {
|
|
4
|
+
/** 选择工作站. */
|
|
5
|
+
KgWorkStation?: {
|
|
6
|
+
/**
|
|
7
|
+
* 是否启用功能.
|
|
8
|
+
* @default true
|
|
9
|
+
*/
|
|
10
|
+
isOn?: boolean;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export type IKgState = {
|
|
14
|
+
/**
|
|
15
|
+
* 选项.
|
|
16
|
+
*/
|
|
17
|
+
option: IKgOption;
|
|
18
|
+
};
|
|
19
|
+
export declare const KgSlice: Slice<IKgState, {
|
|
20
|
+
optionReducer(state: IKgState, action: PayloadAction<IKgOption | null | undefined>): void;
|
|
21
|
+
}, string, string, SliceSelectors<IKgState>>;
|
|
22
|
+
export declare const optionReducer: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<IKgOption | null | undefined, `${string}/optionReducer`>;
|
|
23
|
+
export declare function optionSelector(state: IState): IKgOption;
|
|
@@ -34,19 +34,19 @@ export interface KgModalProps extends ModalProps {
|
|
|
34
34
|
/**
|
|
35
35
|
* 最大高度.
|
|
36
36
|
*/
|
|
37
|
-
kgMaxHeight?:
|
|
37
|
+
kgMaxHeight?: number;
|
|
38
38
|
/**
|
|
39
39
|
* 最大宽度.
|
|
40
40
|
*/
|
|
41
|
-
kgMaxWidth?:
|
|
41
|
+
kgMaxWidth?: number;
|
|
42
42
|
/**
|
|
43
43
|
* 最小高度.
|
|
44
44
|
*/
|
|
45
|
-
kgMinHeight?:
|
|
45
|
+
kgMinHeight?: number;
|
|
46
46
|
/**
|
|
47
47
|
* 最小宽度.
|
|
48
48
|
*/
|
|
49
|
-
kgMinWidth?:
|
|
49
|
+
kgMinWidth?: number;
|
|
50
50
|
/**
|
|
51
51
|
* 是否显示取消按钮.
|
|
52
52
|
*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { KgModalProps } from '../KgModal';
|
|
3
|
+
/**
|
|
4
|
+
* 拖拽改变大小.
|
|
5
|
+
*
|
|
6
|
+
* @param param.props 组件参数.
|
|
7
|
+
* @param param.domRef 页面上的那个特殊元素对象, 专门用于获取其他元素对象.
|
|
8
|
+
* @param param.getProps 计算后的组件参数.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useDragToResize(param: {
|
|
11
|
+
domRef: MutableRefObject<HTMLDivElement | null>;
|
|
12
|
+
getProps: KgModalProps;
|
|
13
|
+
}): void;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export interface KgVarConfigProps {
|
|
3
|
-
/** 该组件实例的唯一标识. */
|
|
4
|
-
id: string;
|
|
5
|
-
}
|
|
6
2
|
/**
|
|
7
3
|
* 变量配置.
|
|
8
4
|
*/
|
|
9
|
-
export declare function KgVarConfig(
|
|
5
|
+
export declare function KgVarConfig(): React.JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './KgWorkStation.css';
|
|
3
|
-
import { KgWorkStationProps } from './index.vm';
|
|
4
3
|
/**
|
|
5
4
|
* 选择工作站.
|
|
6
5
|
*/
|
|
7
|
-
export declare function KgWorkStation(
|
|
6
|
+
export declare function KgWorkStation(): React.JSX.Element | null;
|
|
@@ -1,37 +1,20 @@
|
|
|
1
1
|
import { IKgEventListener } from '@kengic/core.core';
|
|
2
2
|
/**
|
|
3
3
|
* 事件类型.
|
|
4
|
-
* 'onMount':
|
|
4
|
+
* 'onMount': 挂载
|
|
5
|
+
* 'onOk': 确定
|
|
5
6
|
*/
|
|
6
|
-
export type IKgWorkStationEvent = 'onMount';
|
|
7
|
+
export type IKgWorkStationEvent = 'onMount' | 'onOk';
|
|
7
8
|
export type IKgWorkStationOnMountEventListenerParameter = {};
|
|
8
9
|
export type IKgWorkStationOnMountEventListener = ((param: IKgWorkStationOnMountEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
export declare function addEventListener<L extends IKgWorkStationEventListener>(param: {
|
|
19
|
-
event: IKgWorkStationEvent;
|
|
20
|
-
id?: string | undefined;
|
|
21
|
-
listener: L;
|
|
22
|
-
}): void;
|
|
23
|
-
/**
|
|
24
|
-
* 移除事件监听.
|
|
25
|
-
*
|
|
26
|
-
* @param param.event 事件名称.
|
|
27
|
-
* @param param.id 唯一标识.
|
|
28
|
-
* @param param.listener 事件监听函数.
|
|
29
|
-
*/
|
|
30
|
-
export declare function removeEventListener<L extends IKgWorkStationEventListener>(param: {
|
|
31
|
-
event: IKgWorkStationEvent;
|
|
32
|
-
id?: string | undefined;
|
|
33
|
-
listener?: L;
|
|
34
|
-
}): void;
|
|
10
|
+
export type IKgWorkStationOnOkEventListenerParameter = {};
|
|
11
|
+
export type IKgWorkStationOnOkEventListener = ((param: IKgWorkStationOnOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
12
|
+
export type IKgWorkStationEventListenerParameter = IKgWorkStationOnMountEventListenerParameter | IKgWorkStationOnOkEventListenerParameter;
|
|
13
|
+
export type IKgWorkStationEventListener = IKgWorkStationOnMountEventListener | IKgWorkStationOnOkEventListener;
|
|
14
|
+
export declare const eventListenerListRecordRecord: Record<string, {
|
|
15
|
+
onMount: Array<IKgWorkStationOnMountEventListener>;
|
|
16
|
+
onOk: Array<IKgWorkStationOnOkEventListener>;
|
|
17
|
+
}>;
|
|
35
18
|
/**
|
|
36
19
|
* 触发事件.
|
|
37
20
|
*
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { IKgWorkStationState, store } from './index.store';
|
|
2
|
-
import { IKgWorkStationOnMountEventListener } from './index.event.ts';
|
|
3
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
|
2
|
+
import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models.ts';
|
|
3
|
+
import { store } from '../../index.store.ts';
|
|
4
|
+
import { IKgWorkStationOnMountEventListener, IKgWorkStationOnOkEventListener } from './index.event';
|
|
5
|
+
import { IKgWorkStationState } from './index.store';
|
|
4
6
|
export interface IDoKgWorkStation {
|
|
5
7
|
/**
|
|
6
8
|
* 关闭弹窗.
|
|
@@ -9,11 +11,13 @@ export interface IDoKgWorkStation {
|
|
|
9
11
|
/**
|
|
10
12
|
* <p>获取某个状态数据. 在 vue 项目中使用.</p>
|
|
11
13
|
*
|
|
12
|
-
* @param ref vue 中的 ref() 函数.
|
|
13
14
|
* @param fn 获取函数, 该函数由框架调用并传入状态数据作为参数, 调用者从参数中获取想要的数据.
|
|
14
15
|
* @return 返回一个数组, 包含两个元素, 第一个元素是要获取的数据, 是一个 ref 数据, 第二个元素是一个退订函数, 由调用者负责在合适的时候调用, 用于移除对该数据的变更监听.
|
|
15
16
|
*/
|
|
16
|
-
get<T
|
|
17
|
+
get<T extends {
|
|
18
|
+
value: any;
|
|
19
|
+
}>(fn: (state: IKgWorkStationState[string]) => any): [T, () => void];
|
|
20
|
+
id: string;
|
|
17
21
|
/**
|
|
18
22
|
* 监听事件: 挂载.
|
|
19
23
|
*
|
|
@@ -21,6 +25,13 @@ export interface IDoKgWorkStation {
|
|
|
21
25
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
22
26
|
*/
|
|
23
27
|
onMount(listener: IKgWorkStationOnMountEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
28
|
+
/**
|
|
29
|
+
* 监听事件: 确定.
|
|
30
|
+
*
|
|
31
|
+
* @param listener 事件监听函数.
|
|
32
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
33
|
+
*/
|
|
34
|
+
onOk(listener: IKgWorkStationOnOkEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
24
35
|
/**
|
|
25
36
|
* 打开弹窗.
|
|
26
37
|
*/
|
|
@@ -38,6 +49,20 @@ export interface IDoKgWorkStation {
|
|
|
38
49
|
* @param fn 回调函数, 可以通过参数 state 获取到最新的数据.
|
|
39
50
|
*/
|
|
40
51
|
subscribe(fn: (state: IKgWorkStationState[string]) => void): () => void;
|
|
52
|
+
/**
|
|
53
|
+
* <p>获取「当前选择的工作站」快照. 在 vue 项目中使用.</p>
|
|
54
|
+
*/
|
|
55
|
+
workStation: WorkstationDTO | null;
|
|
56
|
+
/**
|
|
57
|
+
* <p>获取「当前选择的工作站」. 在 vue 项目中使用.</p>
|
|
58
|
+
*/
|
|
59
|
+
workStation$: [{
|
|
60
|
+
value: WorkstationDTO | null;
|
|
61
|
+
}, () => void];
|
|
62
|
+
/**
|
|
63
|
+
* <p>获取「当前选择的工作区」快照. 在 vue 项目中使用.</p>
|
|
64
|
+
*/
|
|
65
|
+
workStationArea: WorkstationAreaDTO | null;
|
|
41
66
|
}
|
|
42
67
|
/**
|
|
43
68
|
*
|
|
@@ -1,21 +1,109 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models.ts';
|
|
3
|
+
import { type IState } from '../../index.store.ts';
|
|
1
4
|
import { KgWorkStationProps } from './index.vm';
|
|
2
5
|
export type IKgWorkStationState = Record<string, {
|
|
6
|
+
/**
|
|
7
|
+
* 是否已经完成挂载.
|
|
8
|
+
*/
|
|
9
|
+
isMount: boolean;
|
|
3
10
|
props?: KgWorkStationProps;
|
|
11
|
+
/**
|
|
12
|
+
* 当前选择的工作站.
|
|
13
|
+
*/
|
|
14
|
+
workStation: WorkstationDTO | null;
|
|
15
|
+
/**
|
|
16
|
+
* 当前选择的工作区.
|
|
17
|
+
*/
|
|
18
|
+
workStationArea: WorkstationAreaDTO | null;
|
|
4
19
|
}>;
|
|
5
|
-
export declare const
|
|
20
|
+
export declare const KgWorkStationSlice: import("@reduxjs/toolkit").Slice<IKgWorkStationState, {
|
|
21
|
+
/**
|
|
22
|
+
* 关闭弹窗.
|
|
23
|
+
*
|
|
24
|
+
* @param state
|
|
25
|
+
* @param action
|
|
26
|
+
*/
|
|
27
|
+
closeModalReducer(state: IKgWorkStationState, action: PayloadAction<{
|
|
28
|
+
id: string | null | undefined;
|
|
29
|
+
}>): void;
|
|
30
|
+
/**
|
|
31
|
+
* 挂载. 组件做初始化.
|
|
32
|
+
*
|
|
33
|
+
* @param state
|
|
34
|
+
* @param action
|
|
35
|
+
*/
|
|
36
|
+
mountReducer(state: IKgWorkStationState, action: PayloadAction<{
|
|
37
|
+
id: string | null | undefined;
|
|
38
|
+
}>): void;
|
|
39
|
+
/**
|
|
40
|
+
* 打开弹窗.
|
|
41
|
+
*
|
|
42
|
+
* @param state
|
|
43
|
+
* @param action
|
|
44
|
+
*/
|
|
45
|
+
openModalReducer(state: IKgWorkStationState, action: PayloadAction<{
|
|
46
|
+
id: string | null | undefined;
|
|
47
|
+
}>): void;
|
|
48
|
+
/**
|
|
49
|
+
* 设置数据.
|
|
50
|
+
*
|
|
51
|
+
* @param state
|
|
52
|
+
* @param action
|
|
53
|
+
*/
|
|
54
|
+
setReducer(state: IKgWorkStationState, action: PayloadAction<{
|
|
55
|
+
id: string | null | undefined;
|
|
56
|
+
fn: (state: IKgWorkStationState[string]) => void;
|
|
57
|
+
}>): void;
|
|
58
|
+
/**
|
|
59
|
+
* 设置当前选择的工作区.
|
|
60
|
+
*
|
|
61
|
+
* @param state
|
|
62
|
+
* @param action
|
|
63
|
+
*/
|
|
64
|
+
setWorkStationAreaReducer(state: IKgWorkStationState, action: PayloadAction<{
|
|
65
|
+
id?: string | null | undefined;
|
|
66
|
+
workStationArea: WorkstationAreaDTO | null;
|
|
67
|
+
}>): void;
|
|
68
|
+
/**
|
|
69
|
+
* 设置当前选择的工作站.
|
|
70
|
+
*
|
|
71
|
+
* @param state
|
|
72
|
+
* @param action
|
|
73
|
+
*/
|
|
74
|
+
setWorkStationReducer(state: IKgWorkStationState, action: PayloadAction<{
|
|
75
|
+
id?: string | null | undefined;
|
|
76
|
+
workStation: WorkstationDTO | null;
|
|
77
|
+
}>): void;
|
|
78
|
+
/**
|
|
79
|
+
* 卸载. 释放组件资源.
|
|
80
|
+
*
|
|
81
|
+
* @param state
|
|
82
|
+
* @param action
|
|
83
|
+
*/
|
|
84
|
+
unmountReducer(state: IKgWorkStationState, action: PayloadAction<{
|
|
85
|
+
id: string | null | undefined;
|
|
86
|
+
}>): void;
|
|
87
|
+
}, "KgWorkStation", "KgWorkStation", import("@reduxjs/toolkit").SliceSelectors<IKgWorkStationState>>;
|
|
88
|
+
export declare const setReducer: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
6
89
|
id: string | null | undefined;
|
|
7
90
|
fn: (state: IKgWorkStationState[string]) => void;
|
|
8
|
-
}, "KgWorkStation/
|
|
91
|
+
}, "KgWorkStation/setReducer">, mountReducer: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
9
92
|
id: string | null | undefined;
|
|
10
|
-
}, "KgWorkStation/
|
|
93
|
+
}, "KgWorkStation/mountReducer">, openModalReducer: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
11
94
|
id: string | null | undefined;
|
|
12
|
-
}, "KgWorkStation/
|
|
95
|
+
}, "KgWorkStation/openModalReducer">, closeModalReducer: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
13
96
|
id: string | null | undefined;
|
|
14
|
-
}, "KgWorkStation/
|
|
97
|
+
}, "KgWorkStation/closeModalReducer">, setWorkStationReducer: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
98
|
+
id?: string | null | undefined;
|
|
99
|
+
workStation: WorkstationDTO | null;
|
|
100
|
+
}, "KgWorkStation/setWorkStationReducer">, setWorkStationAreaReducer: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
101
|
+
id?: string | null | undefined;
|
|
102
|
+
workStationArea: WorkstationAreaDTO | null;
|
|
103
|
+
}, "KgWorkStation/setWorkStationAreaReducer">, unmountReducer: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
15
104
|
id: string | null | undefined;
|
|
16
|
-
}, "KgWorkStation/
|
|
17
|
-
export declare
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare
|
|
21
|
-
export declare const useReduxSelector: import("react-redux").UseSelector<IKgWorkStationState>;
|
|
105
|
+
}, "KgWorkStation/unmountReducer">;
|
|
106
|
+
export declare function isVisibleSelector(id: string): (state: IState) => boolean;
|
|
107
|
+
export declare function isOpenSelector(id: string): (state: IState) => boolean;
|
|
108
|
+
export declare function workStationSelector(id?: string): (state: IState) => WorkstationDTO | null;
|
|
109
|
+
export declare function workStationAreaSelector(id?: string): (state: IState) => WorkstationAreaDTO | null;
|
package/src/component/index.d.ts
CHANGED
package/src/const/index.vm.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './kg.hook.tsx';
|
package/src/i18n/en.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export declare const en: {
|
|
2
|
-
'KgVarConfig.xxx': string;
|
|
3
2
|
'KgWorkStation.modalTitle': string;
|
|
3
|
+
'KgWorkStation.reloadMessage': string;
|
|
4
|
+
'KgWorkStation.selectWorkStation': string;
|
|
5
|
+
'KgWorkStation.workStation': string;
|
|
6
|
+
'KgWorkStation.workStationAndWorkStationArea': string;
|
|
7
|
+
'KgWorkStation.workStationArea': string;
|
|
8
|
+
'kg.cancel': string;
|
|
9
|
+
'kg.confirm': string;
|
|
10
|
+
'kg.confirmDelete': string;
|
|
11
|
+
'kg.refresh': string;
|
|
4
12
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const es_ES: {
|
|
2
|
+
'KgWorkStation.modalTitle': string;
|
|
3
|
+
'KgWorkStation.reloadMessage': string;
|
|
4
|
+
'KgWorkStation.selectWorkStation': string;
|
|
5
|
+
'KgWorkStation.workStation': string;
|
|
6
|
+
'KgWorkStation.workStationAndWorkStationArea': string;
|
|
7
|
+
'KgWorkStation.workStationArea': string;
|
|
8
|
+
'kg.cancel': string;
|
|
9
|
+
'kg.confirm': string;
|
|
10
|
+
'kg.confirmDelete': string;
|
|
11
|
+
'kg.refresh': string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const fr_FR: {
|
|
2
|
+
'KgWorkStation.modalTitle': string;
|
|
3
|
+
'KgWorkStation.reloadMessage': string;
|
|
4
|
+
'KgWorkStation.selectWorkStation': string;
|
|
5
|
+
'KgWorkStation.workStation': string;
|
|
6
|
+
'KgWorkStation.workStationAndWorkStationArea': string;
|
|
7
|
+
'KgWorkStation.workStationArea': string;
|
|
8
|
+
'kg.cancel': string;
|
|
9
|
+
'kg.confirm': string;
|
|
10
|
+
'kg.confirmDelete': string;
|
|
11
|
+
'kg.refresh': string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const km_KH: {
|
|
2
|
+
'KgWorkStation.modalTitle': string;
|
|
3
|
+
'KgWorkStation.reloadMessage': string;
|
|
4
|
+
'KgWorkStation.selectWorkStation': string;
|
|
5
|
+
'KgWorkStation.workStation': string;
|
|
6
|
+
'KgWorkStation.workStationAndWorkStationArea': string;
|
|
7
|
+
'KgWorkStation.workStationArea': string;
|
|
8
|
+
'kg.cancel': string;
|
|
9
|
+
'kg.confirm': string;
|
|
10
|
+
'kg.confirmDelete': string;
|
|
11
|
+
'kg.refresh': string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const ko_KR: {
|
|
2
|
+
'KgWorkStation.modalTitle': string;
|
|
3
|
+
'KgWorkStation.reloadMessage': string;
|
|
4
|
+
'KgWorkStation.selectWorkStation': string;
|
|
5
|
+
'KgWorkStation.workStation': string;
|
|
6
|
+
'KgWorkStation.workStationAndWorkStationArea': string;
|
|
7
|
+
'KgWorkStation.workStationArea': string;
|
|
8
|
+
'kg.cancel': string;
|
|
9
|
+
'kg.confirm': string;
|
|
10
|
+
'kg.confirmDelete': string;
|
|
11
|
+
'kg.refresh': string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const vi_VN: {
|
|
2
|
+
'KgWorkStation.modalTitle': string;
|
|
3
|
+
'KgWorkStation.reloadMessage': string;
|
|
4
|
+
'KgWorkStation.selectWorkStation': string;
|
|
5
|
+
'KgWorkStation.workStation': string;
|
|
6
|
+
'KgWorkStation.workStationAndWorkStationArea': string;
|
|
7
|
+
'KgWorkStation.workStationArea': string;
|
|
8
|
+
'kg.cancel': string;
|
|
9
|
+
'kg.confirm': string;
|
|
10
|
+
'kg.confirmDelete': string;
|
|
11
|
+
'kg.refresh': string;
|
|
12
|
+
};
|
package/src/i18n/zh_CN.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export declare const zh_CN: {
|
|
2
|
-
'KgVarConfig.xxx': string;
|
|
3
2
|
'KgWorkStation.modalTitle': string;
|
|
3
|
+
'KgWorkStation.reloadMessage': string;
|
|
4
|
+
'KgWorkStation.selectWorkStation': string;
|
|
5
|
+
'KgWorkStation.workStation': string;
|
|
6
|
+
'KgWorkStation.workStationAndWorkStationArea': string;
|
|
7
|
+
'KgWorkStation.workStationArea': string;
|
|
8
|
+
'kg.cancel': string;
|
|
9
|
+
'kg.confirm': string;
|
|
10
|
+
'kg.confirmDelete': string;
|
|
11
|
+
'kg.refresh': string;
|
|
4
12
|
};
|