@kengic/vue 0.31.16 → 0.31.17-beta.1

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 (92) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/bin/postinstall.mjs +42 -13
  3. package/bin/preinstall.mjs +23 -0
  4. package/dist/index.css +1 -1
  5. package/dist/kengic-vue.js +141853 -209127
  6. package/dist/kg.config.d.ts +3 -0
  7. package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +0 -13
  8. package/dist/src/component/KgButton/KgButton.d.ts +2 -1
  9. package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +2 -1
  10. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Fullscreen.d.ts +2 -1
  11. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Mode.d.ts +2 -1
  12. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.OverviewScale.d.ts +2 -1
  13. package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +2 -1
  14. package/dist/src/component/KgCanvas/KgCanvas.d.ts +1 -1
  15. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts +2 -1
  16. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.d.ts +0 -9
  17. package/dist/src/component/KgForm/KgForm.d.ts +41 -40
  18. package/dist/src/component/KgForm.Item/KgForm.Item.Addon.DynamicQueryOperator.d.ts +1 -1
  19. package/dist/src/component/KgForm.Item/KgForm.Item.Addon.Lookup.Modal.d.ts +1 -1
  20. package/dist/src/component/KgForm.Item/KgForm.Item.Addon.Lookup.d.ts +1 -1
  21. package/dist/src/component/KgImage/KgImage.d.ts +7 -7
  22. package/dist/src/component/KgLayoutHeader/KgLayoutHeader.Locale.d.ts +1 -1
  23. package/dist/src/component/KgModal/KgModal.d.ts +10 -22
  24. package/dist/src/component/KgModal/KgModal.service.d.ts +4 -3
  25. package/dist/src/component/KgModal/KgModalHeaderButtons.d.ts +0 -29
  26. package/dist/src/component/KgModal02/KgModal02.d.ts +106 -21
  27. package/dist/src/component/KgModal02/index.d.ts +1 -1
  28. package/dist/src/component/KgProgressA/KgProgressA.d.ts +1 -1
  29. package/dist/src/component/KgResizable/KgResizable.d.ts +5 -5
  30. package/dist/src/component/KgSearch/KgSearch.d.ts +1 -1
  31. package/dist/src/component/KgSimulator/KgSimulator.Canvas.Title.d.ts +2 -1
  32. package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +2 -1
  33. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +2 -1
  34. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +2 -1
  35. package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +2 -1
  36. package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +2 -1
  37. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +2 -1
  38. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +2 -1
  39. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +2 -1
  40. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +2 -1
  41. package/dist/src/component/KgSimulator/KgSimulator.d.ts +2 -1
  42. package/dist/src/component/KgSubmit/KgSubmit.d.ts +1 -1
  43. package/dist/src/component/KgTable/KgTable.BodyCell.d.ts +0 -18
  44. package/dist/src/component/KgTable/KgTable.HeadCell.d.ts +0 -16
  45. package/dist/src/component/KgTable/KgTable.Info.d.ts +0 -18
  46. package/dist/src/component/KgTable/KgTable.Setting.d.ts +0 -6
  47. package/dist/src/component/KgTable/KgTable.d.ts +1 -1
  48. package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +0 -22
  49. package/dist/src/component/KgTable02/KgTable02.d.ts +2 -1
  50. package/dist/src/component/KgVar/KgVar.event.d.ts +1 -1
  51. package/dist/src/component/KgVar/KgVar.store.d.ts +15 -12
  52. package/dist/src/component/KgVarConfig/KgVarConfig$Modal.d.ts +2 -1
  53. package/dist/src/component/KgVarConfig/KgVarConfig$SelectFormIdModal.d.ts +2 -1
  54. package/dist/src/component/KgWarehouse/KgWarehouse.d.ts +1 -1
  55. package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +1 -1
  56. package/dist/src/component/KgWorkStation/KgWorkStation.d.ts +14 -13
  57. package/dist/src/component/KgWorkStation/KgWorkStation.store.d.ts +10 -10
  58. package/dist/src/component/KgYesOrNo/KgYesOrNo.d.ts +1 -1
  59. package/dist/src/config/config.event.d.ts +51 -0
  60. package/dist/src/config/config.hooks.d.ts +9 -1
  61. package/dist/src/config/config.model.d.ts +11 -0
  62. package/dist/src/config/config.store.d.ts +1 -1
  63. package/dist/src/config/index.d.ts +0 -1
  64. package/dist/src/i18n/i18n.setup.d.ts +6 -4
  65. package/dist/src/index.d.ts +0 -1
  66. package/dist/src/model/index.d.ts +127 -60
  67. package/dist/src/page/KgPageDda/KgPageDda.Create.Basic.SqlModal.d.ts +2 -1
  68. package/dist/src/page/KgPageDda/KgPageDda.Create.Basic.d.ts +2 -1
  69. package/dist/src/page/KgPageDda/KgPageDda.Create.Button.d.ts +2 -1
  70. package/dist/src/page/KgPageDda/KgPageDda.Create.Menu.d.ts +2 -1
  71. package/dist/src/page/KgPageDda/KgPageDda.Create.Search.d.ts +2 -1
  72. package/dist/src/page/KgPageDda/KgPageDda.Create.Submit.d.ts +2 -1
  73. package/dist/src/page/KgPageDda/KgPageDda.Create.Table.d.ts +2 -1
  74. package/dist/src/page/KgPageDda/KgPageDda.Create.d.ts +2 -1
  75. package/dist/src/page/KgPageSqlClient/components/KgSqlClient.ResultTab.d.ts +2 -1
  76. package/dist/src/project/src/utils/common/compUtils.d.ts +2 -2
  77. package/dist/src/service/http-client.d.ts +1 -1
  78. package/dist/src/util/ant-design-vue.d.ts +16 -16
  79. package/dist/src/util/index.d.ts +29 -3
  80. package/dist/src/util/kg.util.d.ts +39 -2
  81. package/package.json +33 -16
  82. package/dist/caret-right-outlined-Btgsw6a_.1cf00b77.mjs +0 -8
  83. package/dist/close-outlined-DMcSQWxQ.f7304023.mjs +0 -8
  84. package/dist/exclamation-circle-outlined-DZrXCnvM.0844874c.mjs +0 -8
  85. package/dist/fullscreen-exit-outlined-X1iYkFc4.378f8508.mjs +0 -8
  86. package/dist/fullscreen-outlined-DDBrsRcy.dcf0d8c8.mjs +0 -8
  87. package/dist/search-outlined-Od1M_oxf.a1041ffc.mjs +0 -8
  88. package/dist/src/util/event.util.d.ts +0 -15
  89. package/dist/src/util/kg-auth.util.d.ts +0 -12
  90. package/dist/src/util/kg-route.util.d.ts +0 -18
  91. package/dist/src/util/tsx.helper.d.ts +0 -23
  92. package/dist/three-dots-loading-bIlrTJYR.77291e2a.mjs +0 -8
@@ -1,21 +1,5 @@
1
1
  import { ColumnType } from 'ant-design-vue/es/table';
2
2
  import { PropType } from 'vue';
3
- export declare const getProps: () => {
4
- /**
5
- * 列的数据.
6
- */
7
- column: {
8
- type: PropType<ColumnType<any>>;
9
- };
10
- /**
11
- * 表格是否禁用.
12
- * @default undefined
13
- */
14
- kgDisabled: {
15
- type: PropType<boolean>;
16
- default: undefined;
17
- };
18
- };
19
3
  export declare const KgTableHeadCell: import("vue").DefineComponent<{
20
4
  /**
21
5
  * 列的数据.
@@ -1,22 +1,4 @@
1
1
  import { PropType } from 'vue';
2
- export declare const getProps: () => {
3
- /**
4
- * 行数.
5
- * @default 0
6
- */
7
- kgTotal: {
8
- type: PropType<number>;
9
- default: number;
10
- };
11
- /** 是否显示'清空'按钮. */
12
- kgShowClearCheck: PropType<boolean>;
13
- /** 是否显示'清空表格'按钮. */
14
- kgShowClearTable: PropType<boolean>;
15
- /** 是否禁用. */
16
- kgDisabled: PropType<boolean>;
17
- /** 是否显示'定位'按钮. */
18
- kgShowLocate: PropType<boolean>;
19
- };
20
2
  declare const _default: import("vue").DefineComponent<{
21
3
  /**
22
4
  * 行数.
@@ -1,10 +1,4 @@
1
1
  import { PropType } from 'vue';
2
- export declare const getProps: () => {
3
- kgIsDisable: {
4
- type: PropType<boolean>;
5
- default: undefined;
6
- };
7
- };
8
2
  export declare const KgTableSetting: import("vue").DefineComponent<{
9
3
  kgIsDisable: {
10
4
  type: PropType<boolean>;
@@ -1,7 +1,7 @@
1
1
  import { RowClassName } from 'ant-design-vue/es/vc-table/interface';
2
2
  import { ExtractPropTypes, PropType } from 'vue';
3
3
  import './KgTable.less';
4
- export declare const getProps: () => {
4
+ declare const getProps: () => {
5
5
  /** 是否禁用某行的勾选框. */
6
6
  kgIsCheckboxDisabled: PropType<(row: any) => boolean>;
7
7
  /** 是否禁用表格. */
@@ -1,28 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { VxeTableDefines } from 'vxe-table';
3
3
  import { KG_TABLE_CELL_CONTEXT } from '../KgTable';
4
- export declare const getProps: () => {
5
- /**
6
- * 列的数据.
7
- */
8
- column: {
9
- type: PropType<VxeTableDefines.ColumnInfo<any>>;
10
- };
11
- /**
12
- * 行的数据.
13
- */
14
- row: {
15
- type: PropType<any>;
16
- };
17
- /**
18
- * 所处环境.
19
- * @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
20
- */
21
- kgContext: {
22
- type: PropType<string>;
23
- default: KG_TABLE_CELL_CONTEXT;
24
- };
25
- };
26
4
  export declare const KgTable02BodyCell: import("vue").DefineComponent<{
27
5
  /**
28
6
  * 列的数据.
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import './KgTable02.css';
3
- export declare const getProps: () => {
3
+ declare const getProps: () => {
4
4
  /**
5
5
  * 是否禁用某行的勾选框.
6
6
  */
@@ -44,3 +44,4 @@ export declare const KgTable02: import("vue").DefineComponent<{
44
44
  }>>, {
45
45
  kgIsDisable: boolean;
46
46
  }>;
47
+ export {};
@@ -8,7 +8,7 @@ export declare type IKgVar$EventListenerParameter$onBeforeRequest = {
8
8
  /**
9
9
  * 界面标识.
10
10
  */
11
- id: string;
11
+ fid: string;
12
12
  /**
13
13
  * <p>模拟请求返回数据.</p>
14
14
  * <p>用户可以修改该属性, 如果该属性的值不为 undefined, 则不会请求变量配置数据, 而是直接使用该属性值作为变量配置数据,</p>
@@ -2,27 +2,30 @@ import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfig
2
2
  import { IKgStoreDefinition, KG__VAR_BUTTON__TYPE } from '../../model';
3
3
  import { IUseKgVar } from './KgVar.hooks';
4
4
  import { IKgProps, IKgSlots } from './KgVar.model';
5
+ export declare function transformVarDda(varDda: VarDda | null | undefined): VarDda | null;
5
6
  export declare function transformVarProfileConfig(varProfileConfig: VarProfileConfig | null | undefined): VarProfileConfig | null;
6
7
  export declare function transformVarGridConfig(varGridConfig: VarGridConfig | null | undefined): VarGridConfig | null;
7
- export declare function transformVarGridMasters(varGridMasters?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
8
+ export declare function transformVarGridMasterList(varGridMasters?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
8
9
  export declare function transformVarChildDetails(varChildDetails: Array<VarChildDetail> | null | undefined): Array<VarChildDetail>;
9
- export declare function transformVarProfileMasters(varProfileMasters?: Array<VarProfileMasterDTO> | null): Array<VarProfileMasterDTO>;
10
- export declare function transformVarSubmitConfigs(varSubmitConfigs?: Array<VarSubmitConfig> | null): Array<VarSubmitConfig>;
11
- export declare function transformVarSubmitDetails(varSubmitDetails?: Array<VarSubmitDetail> | null): Array<VarSubmitDetail>;
10
+ export declare function transformVarProfileMasterList(varProfileMasters?: Array<VarProfileMasterDTO> | null): Array<VarProfileMasterDTO>;
11
+ export declare function transformVarSubmitConfigList(varSubmitConfigs?: Array<VarSubmitConfig> | null): Array<VarSubmitConfig>;
12
+ export declare function transformVarSubmitDetailList(varSubmitDetails?: Array<VarSubmitDetail> | null): Array<VarSubmitDetail>;
13
+ export declare function transformVarVariableList(varVariableList?: Array<VarVariable> | null): Array<VarVariable>;
12
14
  export declare function transformVarButtonList(varButtonList?: Array<VarButton> | null): Array<VarButton>;
13
- export declare function transformVarConfigPossibilities(varConfigPossibilities: Array<VarConfigPossibility> | null | undefined): Array<VarConfigPossibility>;
14
- export declare function transformVarConfigControls(varConfigControls: Array<VarConfigControl> | null | undefined): Array<VarConfigControl>;
15
- export declare function transformVarConfigLookups(varConfigLookups: Array<VarConfigLookup> | null | undefined): Array<VarConfigLookup>;
16
- export declare function transformVarConfigTips(varConfigTips: Array<VarConfigTip> | null | undefined): Array<VarConfigTip>;
17
- export declare function transformVarConfigInputs(varConfigInputs: Array<VarConfigInput> | null | undefined): Array<VarConfigInput>;
15
+ export declare function transformVarConfigPossibilityList(varConfigPossibilityList: Array<VarConfigPossibility> | null | undefined): Array<VarConfigPossibility>;
16
+ export declare function transformVarConfigControlList(varConfigControls: Array<VarConfigControl> | null | undefined): Array<VarConfigControl>;
17
+ export declare function transformVarConfigDescriptionList(varConfigDescriptionList: Array<VarConfigDescription> | null | undefined): Array<VarConfigDescription>;
18
+ export declare function transformVarConfigLookupList(varConfigLookups: Array<VarConfigLookup> | null | undefined): Array<VarConfigLookup>;
19
+ export declare function transformVarConfigTipList(varConfigTips: Array<VarConfigTip> | null | undefined): Array<VarConfigTip>;
20
+ export declare function transformVarConfigInputList(varConfigInputs: Array<VarConfigInput> | null | undefined): Array<VarConfigInput>;
18
21
  export declare function transformVarButtonConfig(varButtonConfig: VarButtonConfig | null | undefined): VarButtonConfig | null;
19
22
  /**
20
23
  * 处理 VarGridDetail 数据.
21
24
  *
22
25
  * @param varGridDetails 原始数据.
23
26
  */
24
- export declare function transformVarGridDetails(varGridDetails?: Array<VarGridDetail> | null): Array<VarGridDetail>;
25
- export declare function transformVarProfileDetails(varProfileDetails?: Array<VarProfileDetail> | null): Array<VarProfileDetail>;
27
+ export declare function transformVarGridDetailList(varGridDetails?: Array<VarGridDetail> | null): Array<VarGridDetail>;
28
+ export declare function transformVarProfileDetailList(varProfileDetails?: Array<VarProfileDetail> | null): Array<VarProfileDetail>;
26
29
  /**
27
30
  * 给所有没有「提交表单字段」的「查询条件视图明细」创建一个默认的「提交表单字段」.
28
31
  *
@@ -30,7 +33,7 @@ export declare function transformVarProfileDetails(varProfileDetails?: Array<Var
30
33
  * @param varSubmitDetails 「提交表单字段」列表.
31
34
  * @param varButtons 「按钮」列表.
32
35
  */
33
- export declare function createDefaultVarSubmitDetailsForVarProfileDetails(varGridMasters: Array<VarProfileMasterDTO>, varSubmitDetails: Array<VarSubmitDetail>, varButtons: Array<VarButton>): void;
36
+ export declare function createDefaultVarSubmitDetailsForVarProfileDetailList(varGridMasters: Array<VarProfileMasterDTO>, varSubmitDetails: Array<VarSubmitDetail>, varButtons: Array<VarButton>): void;
34
37
  export interface UseKgVarStoreGetters {
35
38
  /**
36
39
  * 获取当前「表格视图」的主键.
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  export declare type IKgVarConfig$Modal$Tab = 'variable' | 'search' | 'table' | 'button' | 'submit';
3
- export declare const getProps: () => {
3
+ declare const getProps: () => {
4
4
  kgEnv: {
5
5
  type: PropType<string>;
6
6
  default: string;
@@ -31,3 +31,4 @@ export declare const KgVarConfig$Modal: import("vue").DefineComponent<{
31
31
  }, {
32
32
  kgEnv: string;
33
33
  }>;
34
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- export declare const getProps: () => {
2
+ declare const getProps: () => {
3
3
  visible: PropType<boolean>;
4
4
  'onUpdate:visible': PropType<(value: boolean) => void>;
5
5
  formIDs: PropType<string[]>;
@@ -24,3 +24,4 @@ export declare const KgVarConfig$SelectFormIdModal: import("vue").DefineComponen
24
24
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
25
25
  onKgOk?: ((...args: any[]) => any) | undefined;
26
26
  }, {}>;
27
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import './KgWarehouse.less';
3
- export declare const getProps: () => {
3
+ declare const getProps: () => {
4
4
  /**
5
5
  * <p>是否隐藏.</p>
6
6
  * <p>此组件需要在不同的地方使用,</p>
@@ -34,7 +34,7 @@ export declare type IUseKgWarehouse = {
34
34
  * 当前仓库.
35
35
  */
36
36
  warehouse: ComputedRef<WarehouseDTO | null>;
37
- };
37
+ } & ReturnType<ReturnType<typeof buildKgWarehouseStore>>;
38
38
  /**
39
39
  *
40
40
  */
@@ -1,17 +1,17 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import './KgWorkStation.css';
3
- export declare const getProps: () => {
3
+ declare const getProps: () => {
4
4
  /**
5
- * <p>是否隐藏.</p>
5
+ * 是否隐藏.
6
6
  * <p>此组件需要在不同的地方使用,</p>
7
7
  * <ul>
8
- * <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
9
- * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
8
+ * <li>在有的地方, 需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
9
+ * <li>在有的地方, 不要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
10
10
  * </ul>
11
11
  *
12
12
  * @default undefined
13
13
  */
14
- kgInvisible: PropType<boolean>;
14
+ kgHide: PropType<boolean>;
15
15
  };
16
16
  export declare type IKgWorkStationProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
17
17
  /**
@@ -19,26 +19,27 @@ export declare type IKgWorkStationProps = Partial<ExtractPropTypes<ReturnType<ty
19
19
  */
20
20
  export declare const KgWorkStation: import("vue").DefineComponent<{
21
21
  /**
22
- * <p>是否隐藏.</p>
22
+ * 是否隐藏.
23
23
  * <p>此组件需要在不同的地方使用,</p>
24
24
  * <ul>
25
- * <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
26
- * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
25
+ * <li>在有的地方, 需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
26
+ * <li>在有的地方, 不要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
27
27
  * </ul>
28
28
  *
29
29
  * @default undefined
30
30
  */
31
- kgInvisible: PropType<boolean>;
31
+ kgHide: PropType<boolean>;
32
32
  }, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
33
33
  /**
34
- * <p>是否隐藏.</p>
34
+ * 是否隐藏.
35
35
  * <p>此组件需要在不同的地方使用,</p>
36
36
  * <ul>
37
- * <li>在有的地方需要显示当前选择的仓库, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
38
- * <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
37
+ * <li>在有的地方, 需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
38
+ * <li>在有的地方, 不要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
39
39
  * </ul>
40
40
  *
41
41
  * @default undefined
42
42
  */
43
- kgInvisible: PropType<boolean>;
43
+ kgHide: PropType<boolean>;
44
44
  }>>, {}>;
45
+ export {};
@@ -2,13 +2,13 @@ import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models';
2
2
  import { IKgStoreDefinition } from '../../model';
3
3
  export interface IUseKgWorkStationStoreGetters {
4
4
  /**
5
- * 当前工作站.
5
+ * 当前工作区.
6
6
  */
7
- currentWorkStation: WorkstationDTO | null;
7
+ currentWorkArea: WorkstationAreaDTO | null;
8
8
  /**
9
- * 当前工作区.
9
+ * 当前工作站.
10
10
  */
11
- currentWorkStationArea: WorkstationAreaDTO | null;
11
+ currentWorkStation: WorkstationDTO | null;
12
12
  /**
13
13
  * 是否显示弹窗.
14
14
  */
@@ -16,17 +16,17 @@ export interface IUseKgWorkStationStoreGetters {
16
16
  }
17
17
  export interface IUseKgWorkStationStoreActions {
18
18
  /**
19
- * 设置当前工作站.
19
+ * 设置当前工作区.
20
20
  *
21
- * @param value 当前工作站.
21
+ * @param value 当前工作区.
22
22
  */
23
- setCurrentWorkStation(value?: WorkstationDTO | null): void;
23
+ setCurrentWorkArea(value?: WorkstationAreaDTO | null): void;
24
24
  /**
25
- * 设置当前工作区.
25
+ * 设置当前工作站.
26
26
  *
27
- * @param value 当前工作区.
27
+ * @param value 当前工作站.
28
28
  */
29
- setCurrentWorkStationArea(value?: WorkstationAreaDTO | null): void;
29
+ setCurrentWorkStation(value?: WorkstationDTO | null): void;
30
30
  /**
31
31
  * 设置是否显示弹窗.
32
32
  *
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import './KgYesOrNo.less';
3
- export declare const getProps: () => {
3
+ declare const getProps: () => {
4
4
  /**
5
5
  * 布尔数据.
6
6
  * @default undefined
@@ -0,0 +1,51 @@
1
+ import { IKgEventListener } from '@kengic/core.core';
2
+ import { IHttpClient, IRequestConfig, IRequestOption } from '../service';
3
+ /**
4
+ * 事件类型.
5
+ */
6
+ export declare type IKg$Event = 'onBeforeRequest';
7
+ export declare type IKg$EventListenerParameter$onBeforeRequest = {
8
+ /**
9
+ * 请求参数.
10
+ */
11
+ config: IRequestConfig;
12
+ httpClient: IHttpClient;
13
+ /**
14
+ * 当前语言.
15
+ */
16
+ locale: string;
17
+ /**
18
+ * 请求配置.
19
+ */
20
+ option: IRequestOption;
21
+ };
22
+ export declare type IKg$EventListener$onBeforeRequest = ((param: IKg$EventListenerParameter$onBeforeRequest) => void) & IKgEventListener;
23
+ export declare type IKg$EventListenerParameter = IKg$EventListenerParameter$onBeforeRequest;
24
+ export declare type IKg$EventListener = IKg$EventListener$onBeforeRequest;
25
+ export declare const eventListeners: Record<string, {
26
+ onBeforeRequest: Array<IKg$EventListener$onBeforeRequest>;
27
+ }>;
28
+ /**
29
+ * 触发事件.
30
+ *
31
+ * @param param.event 事件名称.
32
+ * @param param.id 唯一标识.
33
+ * @param param.parameter 事件参数.
34
+ */
35
+ export declare function emit<P extends IKg$EventListenerParameter>(param: {
36
+ event: IKg$Event;
37
+ id?: string | undefined;
38
+ parameter: P;
39
+ }): Promise<boolean>;
40
+ /**
41
+ * 触发事件--同步.
42
+ *
43
+ * @param param.event 事件名称.
44
+ * @param param.id 唯一标识.
45
+ * @param param.parameter 事件参数.
46
+ */
47
+ export declare function emitSync<P extends IKg$EventListenerParameter>(param: {
48
+ event: IKg$Event;
49
+ id?: string | undefined;
50
+ parameter: P;
51
+ }): void;
@@ -1,10 +1,18 @@
1
- import { IKgLocale } from '@kengic/core.core';
1
+ import { IKgLocale, IKgRemoveEventListener } from '@kengic/core.core';
2
2
  import { ComputedRef } from 'vue';
3
+ import { IKg$EventListener$onBeforeRequest } from './config.event';
3
4
  import { useKgStore } from './config.store';
4
5
  export declare type IUseKg = {
5
6
  /**
6
7
  * 当前语言.
7
8
  */
8
9
  locale: ComputedRef<IKgLocale>;
10
+ /**
11
+ * 监听事件: 发起请求之前.
12
+ *
13
+ * @param listener 事件监听函数.
14
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
15
+ */
16
+ onBeforeRequest(listener: IKg$EventListener$onBeforeRequest, isOnce?: boolean): IKgRemoveEventListener;
9
17
  } & ReturnType<typeof useKgStore>;
10
18
  export declare function useKg(): IUseKg;
@@ -0,0 +1,11 @@
1
+ declare const DB: {
2
+ dscmst: {
3
+ id: string;
4
+ codnam: string;
5
+ codval: string;
6
+ srtseq: number;
7
+ localeId: string;
8
+ shortDsc: string;
9
+ }[];
10
+ };
11
+ export { DB };
@@ -155,7 +155,7 @@ export declare type IKgOption = {
155
155
  * 数据库的类型.
156
156
  *
157
157
  * @see {@link KG.DB_TYPE}
158
- * @default {@link KG.DB_TYPE.SQLSERVER}
158
+ * @default {@link KG.DB_TYPE__SQLSERVER}
159
159
  */
160
160
  dbType?: string;
161
161
  /**
@@ -3,7 +3,6 @@ import { StoreDefinition } from 'pinia';
3
3
  import { App } from 'vue';
4
4
  import { Router } from 'vue-router';
5
5
  import { IKgOption, P } from './config.store';
6
- import '@kengic/core.react/index.css';
7
6
  declare const pinia: import("pinia").Pinia;
8
7
  declare type IKgSetupParameter = {
9
8
  app: App;
@@ -2,19 +2,21 @@ import { IKgConfigParameter } from '../config';
2
2
  import { DropMenu } from '../project/src/components/Dropdown/src/typing';
3
3
  import { LocaleSetting } from '../project/types/config';
4
4
  /** @deprecated 已弃用, 请使用 {@link KG.LOCALE} */
5
- export declare const LOCALE: {
5
+ declare const LOCALE: {
6
6
  CS_CZ: import("@kengic/core.core/src/model").IKgLocale;
7
7
  EN: import("@kengic/core.core/src/model").IKgLocale;
8
8
  ES_ES: import("@kengic/core.core/src/model").IKgLocale;
9
9
  FR_FR: import("@kengic/core.core/src/model").IKgLocale;
10
10
  KM_KH: import("@kengic/core.core/src/model").IKgLocale;
11
11
  KO_KR: import("@kengic/core.core/src/model").IKgLocale;
12
+ TH_TH: import("@kengic/core.core/src/model").IKgLocale;
12
13
  VI_VN: import("@kengic/core.core/src/model").IKgLocale;
13
14
  ZH_CN: import("@kengic/core.core/src/model").IKgLocale;
14
15
  };
15
- export declare let localeList: DropMenu[];
16
- export declare const localeSetting: LocaleSetting;
16
+ declare let localeList: DropMenu[];
17
+ declare const localeSetting: LocaleSetting;
17
18
  /**
18
19
  * 配置语言.
19
20
  */
20
- export declare function kgConfigLocale(param?: IKgConfigParameter): void;
21
+ declare function kgConfigLocale(param?: IKgConfigParameter): void;
22
+ export { LOCALE, localeList, localeSetting, kgConfigLocale };
@@ -1,5 +1,4 @@
1
1
  import './asset/index.less';
2
- export * from '@kengic/core.react';
3
2
  export { API } from './api';
4
3
  export * from './api/WMS/models';
5
4
  export * from './component';