@kengic/vue 0.30.1-beta.82 → 0.30.1-beta.84
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 +80180 -80196
- package/dist/src/component/KgAppSelect/KgAppSelect.store.d.ts +2 -2
- package/dist/src/component/KgButton/KgButton.Copy.d.ts +3 -3
- package/dist/src/component/KgButton/KgButton.Create.d.ts +1 -1
- package/dist/src/component/KgButton/KgButton.Delete.d.ts +1 -1
- package/dist/src/component/KgButton/KgButton.Export.d.ts +3 -3
- package/dist/src/component/KgButton/KgButton.Import.d.ts +3 -3
- package/dist/src/component/KgButton/KgButton.ImportTemplate.d.ts +3 -3
- package/dist/src/component/KgButton/KgButton.Item.d.ts +1 -1
- package/dist/src/component/KgButton/KgButton.Other.d.ts +3 -3
- package/dist/src/component/KgButton/KgButton.Search.d.ts +1 -1
- package/dist/src/component/KgButton/KgButton.Update.d.ts +3 -3
- package/dist/src/component/KgButton/KgButton.model.d.ts +1 -1
- package/dist/src/component/KgButton/KgButton.store.d.ts +2 -2
- package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +2 -2
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.d.ts +2 -2
- package/dist/src/component/KgForm/KgForm.d.ts +36 -36
- package/dist/src/component/KgForm/KgForm.event.d.ts +1 -1
- package/dist/src/component/KgForm/KgForm.store.d.ts +2 -2
- package/dist/src/component/KgForm/index.d.ts +1 -1
- package/dist/src/component/KgForm.Item/KgForm.Item.Checkbox.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.CheckboxGroup.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.Date.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.DateRange.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.Image.d.ts +6 -6
- package/dist/src/component/KgForm.Item/KgForm.Item.Input.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.InputNumber.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.InputPassword.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.Link.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.RadioGroup.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.Select.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.Switch.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.TextArea.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +1 -1
- package/dist/src/component/KgImage/KgImage.d.ts +6 -6
- package/dist/src/component/KgModal/KgModal.d.ts +3 -3
- package/dist/src/component/KgSearch/KgSearch.store.d.ts +3 -3
- package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +2 -2
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +1 -1
- package/dist/src/component/KgSubmit/KgSubmit.model.d.ts +1 -1
- package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +2 -2
- package/dist/src/component/KgTable/KgTable.store.d.ts +2 -2
- package/dist/src/component/KgTable02/KgTable02.store.d.ts +2 -2
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +1 -1
- package/dist/src/component/KgVar/KgVar.store.d.ts +2 -2
- package/dist/src/component/KgVarConfig/KgVarConfig.store.d.ts +2 -2
- package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +2 -2
- package/dist/src/component/KgWorkStation/KgWorkStation.d.ts +44 -0
- package/dist/src/component/KgWorkStation/KgWorkStation.event.d.ts +27 -0
- package/dist/src/component/KgWorkStation/KgWorkStation.hooks.d.ts +28 -0
- package/dist/src/component/KgWorkStation/KgWorkStation.store.d.ts +37 -0
- package/dist/src/component/KgWorkStation/index.d.ts +3 -0
- package/dist/src/component/index.d.ts +4 -3
- package/dist/src/config/config.hooks.d.ts +2 -2
- package/dist/src/config/config.store.d.ts +12 -15
- package/dist/src/config/index.d.ts +14 -14
- package/dist/src/i18n/i18n.setup.d.ts +11 -13
- package/dist/src/i18n/index.d.ts +1 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/{const/const.model.d.ts → model/index.d.ts} +419 -219
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +2 -2
- package/dist/src/project/src/locales/helper.d.ts +3 -4
- package/dist/src/project/src/locales/useLocale.d.ts +3 -3
- package/dist/src/project/src/store/modules/locale.d.ts +9 -9
- package/dist/src/project/types/config.d.ts +6 -17
- package/dist/src/util/ant-design-vue.d.ts +15 -15
- package/dist/src/util/kg.util.d.ts +35 -37
- package/package.json +5 -5
- package/dist/src/const/form-id.const.d.ts +0 -44
- package/dist/src/const/index.d.ts +0 -2
- /package/dist/{caret-right-outlined-Btgsw6a_.0434903b.mjs → caret-right-outlined-Btgsw6a_.7ce8e8fe.mjs} +0 -0
- /package/dist/{close-outlined-DMcSQWxQ.5c3bee6f.mjs → close-outlined-DMcSQWxQ.ce961fd1.mjs} +0 -0
- /package/dist/{exclamation-circle-outlined-DZrXCnvM.d94561db.mjs → exclamation-circle-outlined-DZrXCnvM.07559897.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined-X1iYkFc4.a1640595.mjs → fullscreen-exit-outlined-X1iYkFc4.d7884311.mjs} +0 -0
- /package/dist/{fullscreen-outlined-DDBrsRcy.b9f9d4a1.mjs → fullscreen-outlined-DDBrsRcy.d174b06a.mjs} +0 -0
- /package/dist/{search-outlined-Od1M_oxf.71fb0c01.mjs → search-outlined-Od1M_oxf.4a68e7e4.mjs} +0 -0
- /package/dist/{three-dots-loading-bIlrTJYR.f189f620.mjs → three-dots-loading-bIlrTJYR.ebceb73e.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KG_FORM_CONTEXT } from '../../
|
|
1
|
+
import { KG_FORM_CONTEXT } from '../../model';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
kgAllowClear: {
|
|
4
4
|
type: import("vue").PropType<boolean>;
|
|
@@ -84,9 +84,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
84
|
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
value: import("./KgForm.Item.model").IKgFormItemValue;
|
|
87
|
-
kgDisabled: boolean;
|
|
88
87
|
kgAllowClear: boolean;
|
|
89
88
|
kgContext: KG_FORM_CONTEXT;
|
|
89
|
+
kgDisabled: boolean;
|
|
90
90
|
kgPicker: import("ant-design-vue/lib/vc-picker/interface").PickerMode;
|
|
91
91
|
kgShowLabel: boolean;
|
|
92
92
|
kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KG_FORM_CONTEXT } from '../../
|
|
1
|
+
import { KG_FORM_CONTEXT } from '../../model';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
kgAllowClear: {
|
|
4
4
|
type: import("vue").PropType<boolean>;
|
|
@@ -84,9 +84,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
84
|
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
value: import("./KgForm.Item.model").IKgFormItemValue;
|
|
87
|
-
kgDisabled: boolean;
|
|
88
87
|
kgAllowClear: boolean;
|
|
89
88
|
kgContext: KG_FORM_CONTEXT;
|
|
89
|
+
kgDisabled: boolean;
|
|
90
90
|
kgPicker: import("ant-design-vue/lib/vc-picker/interface").PickerMode;
|
|
91
91
|
kgShowLabel: boolean;
|
|
92
92
|
kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KG_FORM_CONTEXT } from '../../
|
|
1
|
+
import { KG_FORM_CONTEXT } from '../../model';
|
|
2
2
|
import './KgForm.Item.less';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
kgAllowClear: {
|
|
@@ -85,9 +85,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
85
|
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
|
86
86
|
}, {
|
|
87
87
|
value: import("./KgForm.Item.model").IKgFormItemValue;
|
|
88
|
-
kgDisabled: boolean;
|
|
89
88
|
kgAllowClear: boolean;
|
|
90
89
|
kgContext: KG_FORM_CONTEXT;
|
|
90
|
+
kgDisabled: boolean;
|
|
91
91
|
kgPicker: import("ant-design-vue/lib/vc-picker/interface").PickerMode;
|
|
92
92
|
kgShowLabel: boolean;
|
|
93
93
|
kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
|
|
@@ -4,7 +4,7 @@ import { PickerMode } from 'ant-design-vue/lib/vc-picker/interface';
|
|
|
4
4
|
import { Dayjs } from 'dayjs';
|
|
5
5
|
import { ComputedRef, ExtractPropTypes, PropType } from 'vue';
|
|
6
6
|
import { VarConfigControl, VarProfileDetail, VarSubmitDetail } from '../../api/WMS/models';
|
|
7
|
-
import { KG_FORM_CONTEXT } from '../../
|
|
7
|
+
import { KG_FORM_CONTEXT } from '../../model';
|
|
8
8
|
export declare type IKgFormItemValue = string | number | Array<string | number>;
|
|
9
9
|
export declare const getProps: () => {
|
|
10
10
|
/**
|
|
@@ -27,8 +27,8 @@ export declare const getProps: () => {
|
|
|
27
27
|
type: import("vue").PropType<(event: string | Event, source?: string | undefined, lineno?: number | undefined, colno?: number | undefined, error?: Error | undefined) => any>;
|
|
28
28
|
};
|
|
29
29
|
id: StringConstructor;
|
|
30
|
-
width: (
|
|
31
|
-
height: (
|
|
30
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
31
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
32
32
|
style: StringConstructor;
|
|
33
33
|
};
|
|
34
34
|
export declare type KgImageProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
@@ -59,8 +59,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
type: import("vue").PropType<(event: string | Event, source?: string | undefined, lineno?: number | undefined, colno?: number | undefined, error?: Error | undefined) => any>;
|
|
60
60
|
};
|
|
61
61
|
id: StringConstructor;
|
|
62
|
-
width: (
|
|
63
|
-
height: (
|
|
62
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
63
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
64
64
|
style: StringConstructor;
|
|
65
65
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
66
66
|
src: StringConstructor;
|
|
@@ -89,8 +89,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
89
|
type: import("vue").PropType<(event: string | Event, source?: string | undefined, lineno?: number | undefined, colno?: number | undefined, error?: Error | undefined) => any>;
|
|
90
90
|
};
|
|
91
91
|
id: StringConstructor;
|
|
92
|
-
width: (
|
|
93
|
-
height: (
|
|
92
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
93
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
94
94
|
style: StringConstructor;
|
|
95
95
|
}>>, {
|
|
96
96
|
wrapperStyle: import("vue").CSSProperties;
|
|
@@ -116,7 +116,7 @@ export declare const getProps: () => {
|
|
|
116
116
|
type: BooleanConstructor;
|
|
117
117
|
default: undefined;
|
|
118
118
|
};
|
|
119
|
-
width: (
|
|
119
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
120
120
|
footer: PropType<any>;
|
|
121
121
|
okText: PropType<any>;
|
|
122
122
|
okType: PropType<import("ant-design-vue/es/button/buttonTypes").LegacyButtonType>;
|
|
@@ -380,7 +380,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
380
380
|
type: BooleanConstructor;
|
|
381
381
|
default: undefined;
|
|
382
382
|
};
|
|
383
|
-
width: (
|
|
383
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
384
384
|
footer: PropType<any>;
|
|
385
385
|
okText: PropType<any>;
|
|
386
386
|
okType: PropType<import("ant-design-vue/es/button/buttonTypes").LegacyButtonType>;
|
|
@@ -642,7 +642,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
642
642
|
type: BooleanConstructor;
|
|
643
643
|
default: undefined;
|
|
644
644
|
};
|
|
645
|
-
width: (
|
|
645
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
646
646
|
footer: PropType<any>;
|
|
647
647
|
okText: PropType<any>;
|
|
648
648
|
okType: PropType<import("ant-design-vue/es/button/buttonTypes").LegacyButtonType>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VarProfileMasterDTO } from '../../api/WMS/models';
|
|
2
|
-
import {
|
|
2
|
+
import { IKgStoreDefinition } from '../../model';
|
|
3
3
|
import { IKgTableRequestParameter } from '../KgTable';
|
|
4
4
|
/** 查询方法. */
|
|
5
5
|
export declare type IKgSearchOnSearchFn = (param?: IKgTableRequestParameter) => void;
|
|
@@ -99,5 +99,5 @@ export interface IUseKgSearchStoreActions {
|
|
|
99
99
|
*/
|
|
100
100
|
setSearchFn(fid: string | null | undefined, fn?: IKgSearchOnSearchFn | null): void;
|
|
101
101
|
}
|
|
102
|
-
export declare const useKgSearchStore:
|
|
103
|
-
export declare function buildKgSearchStore(fid: string | null | undefined):
|
|
102
|
+
export declare const useKgSearchStore: IKgStoreDefinition<IUseKgSearchStoreGetters, IUseKgSearchStoreActions>;
|
|
103
|
+
export declare function buildKgSearchStore(fid: string | null | undefined): IKgStoreDefinition<IUseKgSearchStoreGetters, IUseKgSearchStoreActions>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Q } from '@thymine/xunee';
|
|
2
2
|
import { WebSocketResult } from '@vueuse/core';
|
|
3
|
-
import {
|
|
3
|
+
import { IKgStoreDefinition } from '../../model';
|
|
4
4
|
import { IToolbarPlacement, Scene } from './KgSimulator.model';
|
|
5
5
|
export interface IKgSimulatorStoreGetters {
|
|
6
6
|
/**
|
|
@@ -471,4 +471,4 @@ export interface IKgSimulatorStoreActions {
|
|
|
471
471
|
set$Mode$Simulate$IsRunning(value: boolean | null | undefined): void;
|
|
472
472
|
set$graph(value: Q.Graph | null | undefined): void;
|
|
473
473
|
}
|
|
474
|
-
export declare function buildKgSimulatorStore(id: string | null | undefined):
|
|
474
|
+
export declare function buildKgSimulatorStore(id: string | null | undefined): IKgStoreDefinition<IKgSimulatorStoreGetters, IKgSimulatorStoreActions>;
|
|
@@ -3,7 +3,7 @@ import { FormInstance } from 'ant-design-vue';
|
|
|
3
3
|
import { RuleObject } from 'ant-design-vue/es/form';
|
|
4
4
|
import { ComputedRef, Ref } from 'vue';
|
|
5
5
|
import { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../api/WMS/models';
|
|
6
|
-
import { IKgVarSubmitConfigProperties, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../
|
|
6
|
+
import { IKgVarSubmitConfigProperties, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../model';
|
|
7
7
|
import { eventListeners, IKgSubmit$EventListener$onAfterSetFormModel, IKgSubmit$EventListener$onAfterValidate, IKgSubmit$EventListener$onBeforeCancel, IKgSubmit$EventListener$onBeforeOk, IKgSubmit$EventListener$onBeforeOpen, IKgSubmit$EventListener$onBeforeRequest, IKgSubmit$EventListener$onCancel, IKgSubmit$EventListener$onClose, IKgSubmit$EventListener$onError, IKgSubmit$EventListener$onOk, IKgSubmit$EventListener$onOpen, IKgSubmit$EventListener$onSubmitCancel, IKgSubmit$EventListener$onSubmitSave } from './KgSubmit.event';
|
|
8
8
|
import { useKgSubmitStore } from './KgSubmit.store';
|
|
9
9
|
export interface IUseKgSubmit {
|
|
@@ -3,7 +3,7 @@ import { FormInstance } from 'ant-design-vue/lib/form/Form';
|
|
|
3
3
|
import { StoreDefinition } from 'pinia';
|
|
4
4
|
import { Ref } from 'vue';
|
|
5
5
|
import { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../api/WMS/models';
|
|
6
|
-
import {
|
|
6
|
+
import { IKgStoreDefinition } from '../../model';
|
|
7
7
|
export interface IUseKgSubmitStoreState {
|
|
8
8
|
/** 表单数据对象. */
|
|
9
9
|
formModelMap: Map<string, Record<string, any>>;
|
|
@@ -109,4 +109,4 @@ export interface IUseKgSubmitStoreActions {
|
|
|
109
109
|
}
|
|
110
110
|
export declare type IUseKgSubmitStore = StoreDefinition<'KgSubmit', IUseKgSubmitStoreState, IUseKgSubmitStoreGetters, IUseKgSubmitStoreActions>;
|
|
111
111
|
export declare type IKgSubmitStore = ReturnType<IUseKgSubmitStore>;
|
|
112
|
-
export declare const useKgSubmitStore:
|
|
112
|
+
export declare const useKgSubmitStore: IKgStoreDefinition<IUseKgSubmitStoreGetters, IUseKgSubmitStoreActions>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IKgStoreDefinition } from '../../model';
|
|
2
2
|
import { IKgTableRowHeight } from './KgTable.model';
|
|
3
3
|
export interface KgTableStoreGetters {
|
|
4
4
|
/**
|
|
@@ -88,4 +88,4 @@ export interface KgTableStoreActions {
|
|
|
88
88
|
setSelectedRowKeys(selectedRowKeys: Array<string>): void;
|
|
89
89
|
setTableWidth(value: number): void;
|
|
90
90
|
}
|
|
91
|
-
export declare function buildKgTableStore(fid: string | null | undefined):
|
|
91
|
+
export declare function buildKgTableStore(fid: string | null | undefined): IKgStoreDefinition<KgTableStoreGetters, KgTableStoreActions>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IKgStoreDefinition } from '../../model';
|
|
2
2
|
export interface KgTableStoreGetters {
|
|
3
3
|
/**
|
|
4
4
|
* 列表数据.
|
|
@@ -59,4 +59,4 @@ export interface KgTableStoreActions {
|
|
|
59
59
|
*/
|
|
60
60
|
setRequestParamRecord(requestParamRecord: Record<string, any> | null | undefined): void;
|
|
61
61
|
}
|
|
62
|
-
export declare function buildKgTable02Store(formID: string | null | undefined):
|
|
62
|
+
export declare function buildKgTable02Store(formID: string | null | undefined): IKgStoreDefinition<KgTableStoreGetters, KgTableStoreActions>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
3
|
import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigPossibility, VarDda, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileMasterDTO, VarVariable } from '../../api/WMS/models';
|
|
4
|
-
import { IKgVarButtonConfigProperties, IKgVarDdaProperties, IKgVarGridConfigProperties, IKgVarProfileConfigProperties, KG__VAR_BUTTON__TYPE } from '../../
|
|
4
|
+
import { IKgVarButtonConfigProperties, IKgVarDdaProperties, IKgVarGridConfigProperties, IKgVarProfileConfigProperties, KG__VAR_BUTTON__TYPE } from '../../model';
|
|
5
5
|
import { IUseKgButton } from '../KgButton';
|
|
6
6
|
import { IUseKgForm } from '../KgForm';
|
|
7
7
|
import { type IUseKgSearch } from '../KgSearch';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarDda, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail, VarVariable } from '../../api/WMS/models';
|
|
2
|
-
import { KG__VAR_BUTTON__TYPE,
|
|
2
|
+
import { KG__VAR_BUTTON__TYPE, IKgStoreDefinition } from '../../model';
|
|
3
3
|
import { IUseKgVar } from './KgVar.hooks';
|
|
4
4
|
import { IKgProps, IKgSlots } from './KgVar.model';
|
|
5
5
|
export declare function transformVarProfileConfig(varProfileConfig: VarProfileConfig | null | undefined): VarProfileConfig | null;
|
|
@@ -266,4 +266,4 @@ export interface IUseKgVarStoreActions {
|
|
|
266
266
|
*/
|
|
267
267
|
setVarProfileDetailEnable(fid: string, varName: string | null | undefined, enable: number): void;
|
|
268
268
|
}
|
|
269
|
-
export declare const useKgVarStore:
|
|
269
|
+
export declare const useKgVarStore: IKgStoreDefinition<UseKgVarStoreGetters, IUseKgVarStoreActions>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IKgStoreDefinition } from '../../model';
|
|
2
2
|
export interface IUseKgVarConfigStoreGetters {
|
|
3
3
|
}
|
|
4
4
|
export interface IUseKgVarConfigStoreActions {
|
|
@@ -13,4 +13,4 @@ export interface IUseKgVarConfigStoreActions {
|
|
|
13
13
|
kgContext?: string;
|
|
14
14
|
}): void;
|
|
15
15
|
}
|
|
16
|
-
export declare const useKgVarConfigStore:
|
|
16
|
+
export declare const useKgVarConfigStore: IKgStoreDefinition<IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WarehouseDTO } from '../../api/WMS/models';
|
|
2
|
-
import {
|
|
2
|
+
import { IKgStoreDefinition } from '../../model';
|
|
3
3
|
export interface IUseKgWarehouseStoreGetters {
|
|
4
4
|
/**
|
|
5
5
|
* 是否显示弹窗.
|
|
@@ -24,4 +24,4 @@ export interface IUseKgWarehouseStoreActions {
|
|
|
24
24
|
*/
|
|
25
25
|
setWarehouse(value?: WarehouseDTO | null): void;
|
|
26
26
|
}
|
|
27
|
-
export declare function buildKgWarehouseStore(id: string | null | undefined):
|
|
27
|
+
export declare function buildKgWarehouseStore(id: string | null | undefined): IKgStoreDefinition<IUseKgWarehouseStoreGetters, IUseKgWarehouseStoreActions>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import './KgWorkStation.css';
|
|
3
|
+
export declare const getProps: () => {
|
|
4
|
+
/**
|
|
5
|
+
* <p>是否隐藏.</p>
|
|
6
|
+
* <p>此组件需要在不同的地方使用,</p>
|
|
7
|
+
* <ul>
|
|
8
|
+
* <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
|
|
9
|
+
* <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
|
|
10
|
+
* </ul>
|
|
11
|
+
*
|
|
12
|
+
* @default undefined
|
|
13
|
+
*/
|
|
14
|
+
kgInvisible: PropType<boolean>;
|
|
15
|
+
};
|
|
16
|
+
export declare type IKgWorkStationProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
17
|
+
/**
|
|
18
|
+
* 工作站选择.
|
|
19
|
+
*/
|
|
20
|
+
export declare const KgWorkStation: import("vue").DefineComponent<{
|
|
21
|
+
/**
|
|
22
|
+
* <p>是否隐藏.</p>
|
|
23
|
+
* <p>此组件需要在不同的地方使用,</p>
|
|
24
|
+
* <ul>
|
|
25
|
+
* <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
|
|
26
|
+
* <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
|
|
27
|
+
* </ul>
|
|
28
|
+
*
|
|
29
|
+
* @default undefined
|
|
30
|
+
*/
|
|
31
|
+
kgInvisible: PropType<boolean>;
|
|
32
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
33
|
+
/**
|
|
34
|
+
* <p>是否隐藏.</p>
|
|
35
|
+
* <p>此组件需要在不同的地方使用,</p>
|
|
36
|
+
* <ul>
|
|
37
|
+
* <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
|
|
38
|
+
* <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
|
|
39
|
+
* </ul>
|
|
40
|
+
*
|
|
41
|
+
* @default undefined
|
|
42
|
+
*/
|
|
43
|
+
kgInvisible: PropType<boolean>;
|
|
44
|
+
}>>, {}>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IKgEventListener } from '@kengic/core.core';
|
|
2
|
+
/**
|
|
3
|
+
* 事件类型.
|
|
4
|
+
*/
|
|
5
|
+
export declare type IKgWorkStation$Event = 'onOk' | 'onCancel';
|
|
6
|
+
export declare type IKgWorkStation$EventListenerParameter$onOk = {};
|
|
7
|
+
export declare type IKgWorkStation$EventListener$onOk = ((param: IKgWorkStation$EventListenerParameter$onOk) => void) & IKgEventListener;
|
|
8
|
+
export declare type IKgWorkStation$EventListenerParameter$onCancel = {};
|
|
9
|
+
export declare type IKgWorkStation$EventListener$onCancel = ((param: IKgWorkStation$EventListenerParameter$onCancel) => void) & IKgEventListener;
|
|
10
|
+
export declare type IKgWorkStation$EventListenerParameter = IKgWorkStation$EventListenerParameter$onOk | IKgWorkStation$EventListenerParameter$onCancel;
|
|
11
|
+
export declare type IKgWorkStation$EventListener = IKgWorkStation$EventListener$onOk | IKgWorkStation$EventListener$onCancel;
|
|
12
|
+
export declare const eventListeners: Record<string, {
|
|
13
|
+
onCancel: Array<IKgWorkStation$EventListener$onCancel>;
|
|
14
|
+
onOk: Array<IKgWorkStation$EventListener$onOk>;
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* 触发事件.
|
|
18
|
+
*
|
|
19
|
+
* @param param.event 事件名称.
|
|
20
|
+
* @param param.id 唯一标识.
|
|
21
|
+
* @param param.parameter 事件参数.
|
|
22
|
+
*/
|
|
23
|
+
export declare function emit<P extends IKgWorkStation$EventListenerParameter>(param: {
|
|
24
|
+
event: IKgWorkStation$Event;
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
parameter: P;
|
|
27
|
+
}): Promise<boolean>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IRemoveEventListener } from '@kengic/core.core';
|
|
2
|
+
import { IKgWorkStation$EventListener$onCancel, IKgWorkStation$EventListener$onOk } from './KgWorkStation.event';
|
|
3
|
+
import { buildKgWorkStationStore } from './KgWorkStation.store';
|
|
4
|
+
export declare type IUseKgWorkStation = {
|
|
5
|
+
/**
|
|
6
|
+
* 标识.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* 监听事件: 点击取消按钮.
|
|
11
|
+
*
|
|
12
|
+
* @param listener 事件监听函数.
|
|
13
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
14
|
+
*/
|
|
15
|
+
onCancel(listener: IKgWorkStation$EventListener$onCancel, isOnce?: boolean): IRemoveEventListener;
|
|
16
|
+
/**
|
|
17
|
+
* 监听事件: 点击确定按钮.
|
|
18
|
+
*
|
|
19
|
+
* @param listener 事件监听函数.
|
|
20
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
21
|
+
*/
|
|
22
|
+
onOk(listener: IKgWorkStation$EventListener$onOk, isOnce?: boolean): IRemoveEventListener;
|
|
23
|
+
store: ReturnType<ReturnType<typeof buildKgWorkStationStore>>;
|
|
24
|
+
} & ReturnType<ReturnType<typeof buildKgWorkStationStore>>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare function useKgWorkStation(): IUseKgWorkStation;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models';
|
|
2
|
+
import { IKgStoreDefinition } from '../../model';
|
|
3
|
+
export interface IUseKgWorkStationStoreGetters {
|
|
4
|
+
/**
|
|
5
|
+
* 当前工作站.
|
|
6
|
+
*/
|
|
7
|
+
currentWorkStation: WorkstationDTO | null;
|
|
8
|
+
/**
|
|
9
|
+
* 当前工作区.
|
|
10
|
+
*/
|
|
11
|
+
currentWorkStationArea: WorkstationAreaDTO | null;
|
|
12
|
+
/**
|
|
13
|
+
* 是否显示弹窗.
|
|
14
|
+
*/
|
|
15
|
+
isVisible: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface IUseKgWorkStationStoreActions {
|
|
18
|
+
/**
|
|
19
|
+
* 设置当前工作站.
|
|
20
|
+
*
|
|
21
|
+
* @param value 当前工作站.
|
|
22
|
+
*/
|
|
23
|
+
setCurrentWorkStation(value?: WorkstationDTO | null): void;
|
|
24
|
+
/**
|
|
25
|
+
* 设置当前工作区.
|
|
26
|
+
*
|
|
27
|
+
* @param value 当前工作区.
|
|
28
|
+
*/
|
|
29
|
+
setCurrentWorkStationArea(value?: WorkstationAreaDTO | null): void;
|
|
30
|
+
/**
|
|
31
|
+
* 设置是否显示弹窗.
|
|
32
|
+
*
|
|
33
|
+
* @param value 是否显示.
|
|
34
|
+
*/
|
|
35
|
+
setIsVisible(value?: boolean | null): void;
|
|
36
|
+
}
|
|
37
|
+
export declare function buildKgWorkStationStore(id: string | null | undefined): IKgStoreDefinition<IUseKgWorkStationStoreGetters, IUseKgWorkStationStoreActions>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './KgAppSelect';
|
|
2
|
+
export * from './KgButton';
|
|
2
3
|
export * from './KgCanvas';
|
|
3
4
|
export * from './KgCircularShuttleMonitor';
|
|
5
|
+
export * from './KgForm';
|
|
6
|
+
export * from './KgForm.Item';
|
|
4
7
|
export * from './KgImage';
|
|
5
8
|
export * from './KgLayoutHeader';
|
|
6
9
|
export * from './KgModal';
|
|
@@ -14,8 +17,6 @@ export * from './KgTable';
|
|
|
14
17
|
export * from './KgVar';
|
|
15
18
|
export * from './KgVarConfig';
|
|
16
19
|
export * from './KgWarehouse';
|
|
20
|
+
export * from './KgWorkStation';
|
|
17
21
|
export * from './KgYesOrNo';
|
|
18
|
-
export * from './KgButton';
|
|
19
|
-
export * from './KgForm';
|
|
20
|
-
export * from './KgForm.Item';
|
|
21
22
|
export { Q } from '@thymine/xunee';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { IKgLocale } from '@kengic/core.core';
|
|
1
2
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import { LocaleType } from '../project/types/config';
|
|
3
3
|
import { useKgStore } from './config.store';
|
|
4
4
|
export declare type IUseKg = {
|
|
5
5
|
/**
|
|
6
6
|
* 当前语言.
|
|
7
7
|
*/
|
|
8
|
-
locale: ComputedRef<
|
|
8
|
+
locale: ComputedRef<IKgLocale>;
|
|
9
9
|
} & ReturnType<typeof useKgStore>;
|
|
10
10
|
export declare function useKg(): IUseKg;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
|
2
2
|
import { Router } from 'vue-router';
|
|
3
3
|
import { DescriptionDTO, SysUserWarehouseDTO } from '../api/WMS/models';
|
|
4
|
-
import {
|
|
4
|
+
import { IKgStoreDefinition, KG_APP } from '../model';
|
|
5
5
|
import { Menu } from '../project/src/router/types';
|
|
6
6
|
import { UserInfo } from '../project/types/store';
|
|
7
7
|
export declare type IKgOption = {
|
|
8
|
+
/**
|
|
9
|
+
* 工作站选择--是否启用功能, 默认为 true.
|
|
10
|
+
*/
|
|
11
|
+
$KgWorkStation$isOn?: boolean;
|
|
8
12
|
/**
|
|
9
13
|
* 多标签页.
|
|
10
14
|
*/
|
|
@@ -46,12 +50,9 @@ export declare type IKgOption = {
|
|
|
46
50
|
on?: boolean;
|
|
47
51
|
};
|
|
48
52
|
};
|
|
49
|
-
/**
|
|
53
|
+
/** @deprecated 已弃用, 请使用 {@link IKgOption.$KgWorkStation$isOn}. */
|
|
50
54
|
KgStation?: {
|
|
51
|
-
/**
|
|
52
|
-
* 是否启用功能.
|
|
53
|
-
* @default true
|
|
54
|
-
*/
|
|
55
|
+
/** @deprecated 已弃用, 请使用 {@link IKgOption.$KgWorkStation$isOn}. */
|
|
55
56
|
isOn?: boolean;
|
|
56
57
|
};
|
|
57
58
|
KgTable?: {
|
|
@@ -269,22 +270,18 @@ export interface IUseKgStoreActions {
|
|
|
269
270
|
isForceRequest?: boolean | null | undefined;
|
|
270
271
|
}): Promise<void>;
|
|
271
272
|
/**
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
* @param param.fid 界面标识.
|
|
273
|
+
* 请求翻译数据.
|
|
275
274
|
*/
|
|
276
|
-
requestVarConfigDescriptionList(
|
|
277
|
-
fid: string | null | undefined;
|
|
278
|
-
}): Promise<void>;
|
|
275
|
+
requestVarConfigDescriptionList(): Promise<void>;
|
|
279
276
|
/**
|
|
280
277
|
* 设置某组描述的数据.
|
|
281
278
|
*
|
|
282
279
|
* @param param.codeName 描述组名.
|
|
283
|
-
* @param param.descriptions
|
|
280
|
+
* @param param.descriptions 描述数据列表.
|
|
284
281
|
*/
|
|
285
282
|
setDescriptionList(param: {
|
|
286
283
|
codeName: string | null | undefined;
|
|
287
|
-
|
|
284
|
+
descriptionList: Array<DescriptionDTO>;
|
|
288
285
|
}): void;
|
|
289
286
|
setI18N(I18N?: Record<string, any>): void;
|
|
290
287
|
setI18n(i18n: any): void;
|
|
@@ -303,5 +300,5 @@ export interface IUseKgStoreActions {
|
|
|
303
300
|
*/
|
|
304
301
|
t(key: string | null | undefined, param?: Record<string, any> | null | undefined, defaultValue?: string | null | undefined): string;
|
|
305
302
|
}
|
|
306
|
-
export declare const useKgStore:
|
|
303
|
+
export declare const useKgStore: IKgStoreDefinition<IUseKgStoreGetters, IUseKgStoreActions>;
|
|
307
304
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { IKgLocale } from '@kengic/core.core';
|
|
1
2
|
import { StoreDefinition } from 'pinia';
|
|
2
3
|
import { App } from 'vue';
|
|
3
4
|
import { Router } from 'vue-router';
|
|
4
|
-
import { LocaleType } from '../project/types/config';
|
|
5
5
|
import { IKgOption, P } from './config.store';
|
|
6
6
|
import '@kengic/core.react/index.css';
|
|
7
7
|
declare const pinia: import("pinia").Pinia;
|
|
@@ -27,6 +27,14 @@ declare type IKgOptions = IKgSetupParameter;
|
|
|
27
27
|
*/
|
|
28
28
|
declare function setup(param: IKgSetupParameter): Promise<void>;
|
|
29
29
|
declare type IKgConfigParameter = {
|
|
30
|
+
/**
|
|
31
|
+
* 可选择的语言列表. 默认为所有语言.
|
|
32
|
+
*/
|
|
33
|
+
$i18n$AvailableLocaleList?: Array<IKgLocale>;
|
|
34
|
+
/**
|
|
35
|
+
* 默认语言. 默认为简体中文(zh_CN).
|
|
36
|
+
*/
|
|
37
|
+
$i18n$DefaultLocale?: IKgLocale;
|
|
30
38
|
app: App<Element>;
|
|
31
39
|
axios: any;
|
|
32
40
|
i18n?: {
|
|
@@ -34,21 +42,13 @@ declare type IKgConfigParameter = {
|
|
|
34
42
|
* 语言数据.
|
|
35
43
|
*/
|
|
36
44
|
I18N?: Record<string, any>;
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* 默认语言.
|
|
43
|
-
*
|
|
44
|
-
* @default 'zh_CN'.
|
|
45
|
-
*/
|
|
46
|
-
defaultLocale?: LocaleType;
|
|
45
|
+
/** @deprecated 已弃用, 请使用 {@link IKgConfigParameter.$i18n$AvailableLocaleList} */
|
|
46
|
+
availableLocales?: Array<IKgLocale>;
|
|
47
|
+
/** @deprecated 已弃用, 请使用 {@link IKgConfigParameter.$i18n$DefaultLocale} */
|
|
48
|
+
defaultLocale?: IKgLocale;
|
|
47
49
|
};
|
|
48
50
|
/**
|
|
49
|
-
* 是否请求翻译数据.
|
|
50
|
-
*
|
|
51
|
-
* @default true
|
|
51
|
+
* 是否请求翻译数据. 默认为 true.
|
|
52
52
|
*/
|
|
53
53
|
isRequestDescriptionList?: boolean;
|
|
54
54
|
};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { IKgConfigParameter } from '../config';
|
|
2
2
|
import { DropMenu } from '../project/src/components/Dropdown/src/typing';
|
|
3
|
-
import { LocaleSetting
|
|
4
|
-
/**
|
|
5
|
-
* @see LocaleType
|
|
6
|
-
*/
|
|
3
|
+
import { LocaleSetting } from '../project/types/config';
|
|
4
|
+
/** @deprecated 已弃用, 请使用 {@link KG.LOCALE} */
|
|
7
5
|
export declare const LOCALE: {
|
|
8
|
-
CS_CZ:
|
|
9
|
-
EN:
|
|
10
|
-
ES_ES:
|
|
11
|
-
FR_FR:
|
|
12
|
-
KM_KH:
|
|
13
|
-
KO_KR:
|
|
14
|
-
VI_VN:
|
|
15
|
-
ZH_CN:
|
|
6
|
+
CS_CZ: import("@kengic/core.core/src/model").IKgLocale;
|
|
7
|
+
EN: import("@kengic/core.core/src/model").IKgLocale;
|
|
8
|
+
ES_ES: import("@kengic/core.core/src/model").IKgLocale;
|
|
9
|
+
FR_FR: import("@kengic/core.core/src/model").IKgLocale;
|
|
10
|
+
KM_KH: import("@kengic/core.core/src/model").IKgLocale;
|
|
11
|
+
KO_KR: import("@kengic/core.core/src/model").IKgLocale;
|
|
12
|
+
VI_VN: import("@kengic/core.core/src/model").IKgLocale;
|
|
13
|
+
ZH_CN: import("@kengic/core.core/src/model").IKgLocale;
|
|
16
14
|
};
|
|
17
15
|
export declare let localeList: DropMenu[];
|
|
18
16
|
export declare const localeSetting: LocaleSetting;
|
|
19
17
|
/**
|
|
20
18
|
* 配置语言.
|
|
21
19
|
*/
|
|
22
|
-
export declare function kgConfigLocale(param?: IKgConfigParameter
|
|
20
|
+
export declare function kgConfigLocale(param?: IKgConfigParameter): void;
|
package/dist/src/i18n/index.d.ts
CHANGED
package/dist/src/index.d.ts
CHANGED