@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.
Files changed (79) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +80180 -80196
  3. package/dist/src/component/KgAppSelect/KgAppSelect.store.d.ts +2 -2
  4. package/dist/src/component/KgButton/KgButton.Copy.d.ts +3 -3
  5. package/dist/src/component/KgButton/KgButton.Create.d.ts +1 -1
  6. package/dist/src/component/KgButton/KgButton.Delete.d.ts +1 -1
  7. package/dist/src/component/KgButton/KgButton.Export.d.ts +3 -3
  8. package/dist/src/component/KgButton/KgButton.Import.d.ts +3 -3
  9. package/dist/src/component/KgButton/KgButton.ImportTemplate.d.ts +3 -3
  10. package/dist/src/component/KgButton/KgButton.Item.d.ts +1 -1
  11. package/dist/src/component/KgButton/KgButton.Other.d.ts +3 -3
  12. package/dist/src/component/KgButton/KgButton.Search.d.ts +1 -1
  13. package/dist/src/component/KgButton/KgButton.Update.d.ts +3 -3
  14. package/dist/src/component/KgButton/KgButton.model.d.ts +1 -1
  15. package/dist/src/component/KgButton/KgButton.store.d.ts +2 -2
  16. package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +2 -2
  17. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.d.ts +2 -2
  18. package/dist/src/component/KgForm/KgForm.d.ts +36 -36
  19. package/dist/src/component/KgForm/KgForm.event.d.ts +1 -1
  20. package/dist/src/component/KgForm/KgForm.store.d.ts +2 -2
  21. package/dist/src/component/KgForm/index.d.ts +1 -1
  22. package/dist/src/component/KgForm.Item/KgForm.Item.Checkbox.d.ts +2 -2
  23. package/dist/src/component/KgForm.Item/KgForm.Item.CheckboxGroup.d.ts +2 -2
  24. package/dist/src/component/KgForm.Item/KgForm.Item.Date.d.ts +2 -2
  25. package/dist/src/component/KgForm.Item/KgForm.Item.DateRange.d.ts +2 -2
  26. package/dist/src/component/KgForm.Item/KgForm.Item.Image.d.ts +6 -6
  27. package/dist/src/component/KgForm.Item/KgForm.Item.Input.d.ts +2 -2
  28. package/dist/src/component/KgForm.Item/KgForm.Item.InputNumber.d.ts +2 -2
  29. package/dist/src/component/KgForm.Item/KgForm.Item.InputPassword.d.ts +2 -2
  30. package/dist/src/component/KgForm.Item/KgForm.Item.Link.d.ts +2 -2
  31. package/dist/src/component/KgForm.Item/KgForm.Item.RadioGroup.d.ts +2 -2
  32. package/dist/src/component/KgForm.Item/KgForm.Item.Select.d.ts +2 -2
  33. package/dist/src/component/KgForm.Item/KgForm.Item.Switch.d.ts +2 -2
  34. package/dist/src/component/KgForm.Item/KgForm.Item.TextArea.d.ts +2 -2
  35. package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +2 -2
  36. package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +1 -1
  37. package/dist/src/component/KgImage/KgImage.d.ts +6 -6
  38. package/dist/src/component/KgModal/KgModal.d.ts +3 -3
  39. package/dist/src/component/KgSearch/KgSearch.store.d.ts +3 -3
  40. package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +2 -2
  41. package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +1 -1
  42. package/dist/src/component/KgSubmit/KgSubmit.model.d.ts +1 -1
  43. package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +2 -2
  44. package/dist/src/component/KgTable/KgTable.store.d.ts +2 -2
  45. package/dist/src/component/KgTable02/KgTable02.store.d.ts +2 -2
  46. package/dist/src/component/KgVar/KgVar.hooks.d.ts +1 -1
  47. package/dist/src/component/KgVar/KgVar.store.d.ts +2 -2
  48. package/dist/src/component/KgVarConfig/KgVarConfig.store.d.ts +2 -2
  49. package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +2 -2
  50. package/dist/src/component/KgWorkStation/KgWorkStation.d.ts +44 -0
  51. package/dist/src/component/KgWorkStation/KgWorkStation.event.d.ts +27 -0
  52. package/dist/src/component/KgWorkStation/KgWorkStation.hooks.d.ts +28 -0
  53. package/dist/src/component/KgWorkStation/KgWorkStation.store.d.ts +37 -0
  54. package/dist/src/component/KgWorkStation/index.d.ts +3 -0
  55. package/dist/src/component/index.d.ts +4 -3
  56. package/dist/src/config/config.hooks.d.ts +2 -2
  57. package/dist/src/config/config.store.d.ts +12 -15
  58. package/dist/src/config/index.d.ts +14 -14
  59. package/dist/src/i18n/i18n.setup.d.ts +11 -13
  60. package/dist/src/i18n/index.d.ts +1 -2
  61. package/dist/src/index.d.ts +1 -1
  62. package/dist/src/{const/const.model.d.ts → model/index.d.ts} +419 -219
  63. package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +2 -2
  64. package/dist/src/project/src/locales/helper.d.ts +3 -4
  65. package/dist/src/project/src/locales/useLocale.d.ts +3 -3
  66. package/dist/src/project/src/store/modules/locale.d.ts +9 -9
  67. package/dist/src/project/types/config.d.ts +6 -17
  68. package/dist/src/util/ant-design-vue.d.ts +15 -15
  69. package/dist/src/util/kg.util.d.ts +35 -37
  70. package/package.json +5 -5
  71. package/dist/src/const/form-id.const.d.ts +0 -44
  72. package/dist/src/const/index.d.ts +0 -2
  73. /package/dist/{caret-right-outlined-Btgsw6a_.0434903b.mjs → caret-right-outlined-Btgsw6a_.7ce8e8fe.mjs} +0 -0
  74. /package/dist/{close-outlined-DMcSQWxQ.5c3bee6f.mjs → close-outlined-DMcSQWxQ.ce961fd1.mjs} +0 -0
  75. /package/dist/{exclamation-circle-outlined-DZrXCnvM.d94561db.mjs → exclamation-circle-outlined-DZrXCnvM.07559897.mjs} +0 -0
  76. /package/dist/{fullscreen-exit-outlined-X1iYkFc4.a1640595.mjs → fullscreen-exit-outlined-X1iYkFc4.d7884311.mjs} +0 -0
  77. /package/dist/{fullscreen-outlined-DDBrsRcy.b9f9d4a1.mjs → fullscreen-outlined-DDBrsRcy.d174b06a.mjs} +0 -0
  78. /package/dist/{search-outlined-Od1M_oxf.71fb0c01.mjs → search-outlined-Od1M_oxf.4a68e7e4.mjs} +0 -0
  79. /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 '../../const';
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 '../../const';
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 '../../const';
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 '../../const';
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: (NumberConstructor | StringConstructor)[];
31
- height: (NumberConstructor | StringConstructor)[];
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: (NumberConstructor | StringConstructor)[];
63
- height: (NumberConstructor | StringConstructor)[];
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: (NumberConstructor | StringConstructor)[];
93
- height: (NumberConstructor | StringConstructor)[];
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: (NumberConstructor | StringConstructor)[];
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: (NumberConstructor | StringConstructor)[];
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: (NumberConstructor | StringConstructor)[];
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 { KgStoreDefinition } from '../../const';
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: KgStoreDefinition<IUseKgSearchStoreGetters, IUseKgSearchStoreActions>;
103
- export declare function buildKgSearchStore(fid: string | null | undefined): KgStoreDefinition<IUseKgSearchStoreGetters, IUseKgSearchStoreActions>;
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 { KgStoreDefinition } from '../../const';
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): KgStoreDefinition<IKgSimulatorStoreGetters, IKgSimulatorStoreActions>;
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 '../../const';
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 {
@@ -1,4 +1,4 @@
1
- import { KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../const';
1
+ import { KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../model';
2
2
  /**
3
3
  * 表单的左边距.
4
4
  */
@@ -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 { KgStoreDefinition } from '../../const';
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: KgStoreDefinition<IUseKgSubmitStoreGetters, IUseKgSubmitStoreActions>;
112
+ export declare const useKgSubmitStore: IKgStoreDefinition<IUseKgSubmitStoreGetters, IUseKgSubmitStoreActions>;
@@ -1,4 +1,4 @@
1
- import { KgStoreDefinition } from '../../const';
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): KgStoreDefinition<KgTableStoreGetters, KgTableStoreActions>;
91
+ export declare function buildKgTableStore(fid: string | null | undefined): IKgStoreDefinition<KgTableStoreGetters, KgTableStoreActions>;
@@ -1,4 +1,4 @@
1
- import { KgStoreDefinition } from '../../const';
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): KgStoreDefinition<KgTableStoreGetters, KgTableStoreActions>;
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 '../../const';
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, KgStoreDefinition } from '../../const';
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: KgStoreDefinition<UseKgVarStoreGetters, IUseKgVarStoreActions>;
269
+ export declare const useKgVarStore: IKgStoreDefinition<UseKgVarStoreGetters, IUseKgVarStoreActions>;
@@ -1,4 +1,4 @@
1
- import { KgStoreDefinition } from '../../const';
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: KgStoreDefinition<IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
16
+ export declare const useKgVarConfigStore: IKgStoreDefinition<IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
@@ -1,5 +1,5 @@
1
1
  import { WarehouseDTO } from '../../api/WMS/models';
2
- import { KgStoreDefinition } from '../../const';
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): KgStoreDefinition<IUseKgWarehouseStoreGetters, IUseKgWarehouseStoreActions>;
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>;
@@ -0,0 +1,3 @@
1
+ export * from './KgWorkStation';
2
+ export * from './KgWorkStation.hooks';
3
+ export * from './KgWorkStation.store';
@@ -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<LocaleType>;
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 { KG_APP, KgStoreDefinition } from '../const';
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(param: {
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
- descriptions: Array<DescriptionDTO>;
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: KgStoreDefinition<IUseKgStoreGetters, IUseKgStoreActions>;
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
- * <p>可选择的语言. 默认可选所有语言.</p>
39
- */
40
- availableLocales?: Array<LocaleType>;
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, LocaleType } from '../project/types/config';
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: LocaleType;
9
- EN: LocaleType;
10
- ES_ES: LocaleType;
11
- FR_FR: LocaleType;
12
- KM_KH: LocaleType;
13
- KO_KR: LocaleType;
14
- VI_VN: LocaleType;
15
- ZH_CN: LocaleType;
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['i18n']): void;
20
+ export declare function kgConfigLocale(param?: IKgConfigParameter): void;
@@ -1,3 +1,2 @@
1
- import { LocaleType } from '../project/types/config';
2
- export declare const I18N: Partial<Record<LocaleType, any>>;
1
+ export declare const I18N: Partial<Record<string, any>>;
3
2
  export * from './i18n.setup';
@@ -4,7 +4,7 @@ export { API } from './api';
4
4
  export * from './api/WMS/models';
5
5
  export * from './component';
6
6
  export * from './config';
7
- export * from './const';
7
+ export * from './model';
8
8
  export * from './i18n';
9
9
  export * from './page';
10
10
  export * from './service';