@kengic/vue 0.30.0 → 0.30.1-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 (75) hide show
  1. package/dist/bubble-loading.cd2fe007.mjs +8 -0
  2. package/dist/close-circle-outlined.85f75690.mjs +8 -0
  3. package/dist/close-outlined.5757472a.mjs +8 -0
  4. package/dist/index.css +1 -1
  5. package/dist/kengic-vue.js +112696 -55743
  6. package/dist/src/component/KgAppSelect/KgAppSelect.store.d.ts +2 -2
  7. package/dist/src/component/KgButton/KgButton.hooks.d.ts +2 -2
  8. package/dist/src/component/KgButton/KgButton.store.d.ts +2 -2
  9. package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +2 -2
  10. package/dist/src/component/KgForm/KgForm.store.d.ts +2 -2
  11. package/dist/src/component/KgSearch/KgSearch.service.d.ts +1 -1
  12. package/dist/src/component/KgSearch/KgSearch.store.d.ts +2 -2
  13. package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +2 -2
  14. package/dist/src/component/KgTable/KgTable.hooks.d.ts +3 -3
  15. package/dist/src/component/KgTable/KgTable.store.d.ts +4 -4
  16. package/dist/src/component/KgTable02/KgTable02.d.ts +46 -0
  17. package/dist/src/component/KgTable02/KgTable02.event.d.ts +97 -0
  18. package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +32 -0
  19. package/dist/src/component/KgTable02/KgTable02.model.d.ts +1 -0
  20. package/dist/src/component/KgTable02/KgTable02.store.d.ts +62 -0
  21. package/dist/src/component/KgTable02/index.d.ts +4 -0
  22. package/dist/src/component/KgVar/KgVar.hooks.d.ts +2 -0
  23. package/dist/src/component/KgVar/KgVar.model.d.ts +2 -0
  24. package/dist/src/component/KgVar/KgVar.store.d.ts +31 -2
  25. package/dist/src/component/KgVar/KgVarFactory.d.ts +4 -12
  26. package/dist/src/component/KgVarConfig/KgVarConfig.store.d.ts +2 -2
  27. package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +2 -2
  28. package/dist/src/config/config.store.d.ts +2 -2
  29. package/dist/src/config/index.d.ts +33 -2
  30. package/dist/src/const/const.model.d.ts +7 -1
  31. package/dist/src/i18n/i18n.setup.d.ts +2 -17
  32. package/dist/src/index.d.ts +0 -1
  33. package/dist/src/page/KgCircleVis/components/KgCircleVis.store.d.ts +2 -2
  34. package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +2 -2
  35. package/dist/src/service/http-client.d.ts +2 -2
  36. package/package.json +7 -5
  37. package/dist/close-circle-outlined.247eef63.mjs +0 -8
  38. package/dist/close-outlined.b338331c.mjs +0 -8
  39. package/dist/src/component/KgVar/KgVar.store.service.d.ts +0 -30
  40. package/dist/src/store/index.d.ts +0 -8
  41. /package/dist/{aim-outlined.c49e7018.mjs → aim-outlined.8d38a0f9.mjs} +0 -0
  42. /package/dist/{audit-outlined.f37f7da2.mjs → audit-outlined.4555f723.mjs} +0 -0
  43. /package/dist/{bulb-outlined.93f68e9f.mjs → bulb-outlined.a5bf22d8.mjs} +0 -0
  44. /package/dist/{caret-right-filled.bfffd471.mjs → caret-right-filled.dbbda237.mjs} +0 -0
  45. /package/dist/{caret-right-outlined.f3fc4d46.mjs → caret-right-outlined.12fe6699.mjs} +0 -0
  46. /package/dist/{check-circle-outlined.7d48e8e7.mjs → check-circle-outlined.b219949f.mjs} +0 -0
  47. /package/dist/{check-outlined.9928ff0c.mjs → check-outlined.59c42074.mjs} +0 -0
  48. /package/dist/{check-square-outlined.d21c4d4e.mjs → check-square-outlined.233589d8.mjs} +0 -0
  49. /package/dist/{clock-circle-outline.c90a0ae1.mjs → clock-circle-outline.b9d0b3dc.mjs} +0 -0
  50. /package/dist/{control-outlined.69345ce9.mjs → control-outlined.d66ac4d2.mjs} +0 -0
  51. /package/dist/{copy-filled.28f04bba.mjs → copy-filled.a3dcd299.mjs} +0 -0
  52. /package/dist/{copy-outlined.ca34e717.mjs → copy-outlined.6a695d8a.mjs} +0 -0
  53. /package/dist/{delete-outlined.d1c5c60d.mjs → delete-outlined.20afb717.mjs} +0 -0
  54. /package/dist/{delete-twotone.8485a948.mjs → delete-twotone.1d40696a.mjs} +0 -0
  55. /package/dist/{down-circle-outlined.1e7e4a7b.mjs → down-circle-outlined.8ba93393.mjs} +0 -0
  56. /package/dist/{download-outlined.f13eae9a.mjs → download-outlined.e78b5364.mjs} +0 -0
  57. /package/dist/{edit-outlined.c08469a0.mjs → edit-outlined.0aae2217.mjs} +0 -0
  58. /package/dist/{edit-twotone.8e37fd1c.mjs → edit-twotone.67c952fa.mjs} +0 -0
  59. /package/dist/{exception-outlined.6dede184.mjs → exception-outlined.8c0003a2.mjs} +0 -0
  60. /package/dist/{eye-outlined.649899dc.mjs → eye-outlined.b25b4d28.mjs} +0 -0
  61. /package/dist/{file-text-outline.bae206dd.mjs → file-text-outline.2fbccab6.mjs} +0 -0
  62. /package/dist/{fullscreen-exit-outlined.a75b82c2.mjs → fullscreen-exit-outlined.b77fa876.mjs} +0 -0
  63. /package/dist/{fullscreen-outlined.c9ba7960.mjs → fullscreen-outlined.cd572ef8.mjs} +0 -0
  64. /package/dist/{info-circle-outlined.c59a629f.mjs → info-circle-outlined.7ddbd554.mjs} +0 -0
  65. /package/dist/{one-to-one-outlined.4f97e62a.mjs → one-to-one-outlined.ac265beb.mjs} +0 -0
  66. /package/dist/{pause-circle-outlined.c32a598a.mjs → pause-circle-outlined.cd534f5f.mjs} +0 -0
  67. /package/dist/{pause-outlined.a5f6ccbd.mjs → pause-outlined.fca0d0f9.mjs} +0 -0
  68. /package/dist/{plus-outlined.2ff6998c.mjs → plus-outlined.bdaa6481.mjs} +0 -0
  69. /package/dist/{printer-outlined.d9d087d5.mjs → printer-outlined.a8d0d92b.mjs} +0 -0
  70. /package/dist/{reload-outlined.abae07b1.mjs → reload-outlined.d320578b.mjs} +0 -0
  71. /package/dist/{retweet-outlined.a2c4bb1a.mjs → retweet-outlined.bfa9b123.mjs} +0 -0
  72. /package/dist/{search-outlined.8364f123.mjs → search-outlined.ba5c5a3f.mjs} +0 -0
  73. /package/dist/{setting-outlined.7f72790b.mjs → setting-outlined.a3caf743.mjs} +0 -0
  74. /package/dist/{stop-outlined.facea37d.mjs → stop-outlined.9f2c4f61.mjs} +0 -0
  75. /package/dist/{upload-outlined.7ffb99b8.mjs → upload-outlined.c576b26a.mjs} +0 -0
@@ -1,4 +1,4 @@
1
- import { KG_APP, KgUseStore } from '../../const';
1
+ import { KG_APP, KgStoreDefinition } from '../../const';
2
2
  import { Menu } from '../../project/src/router/types';
3
3
  export interface IUseKgAppSelectStoreGetters {
4
4
  currentApp: KG_APP | null;
@@ -30,4 +30,4 @@ export interface IUseKgAppSelectStoreActions {
30
30
  */
31
31
  isMenuInCurrentApp(menu: Menu): boolean;
32
32
  }
33
- export declare const useKgAppSelectStore: KgUseStore<IUseKgAppSelectStoreGetters, IUseKgAppSelectStoreActions>;
33
+ export declare const useKgAppSelectStore: KgStoreDefinition<IUseKgAppSelectStoreGetters, IUseKgAppSelectStoreActions>;
@@ -1,6 +1,6 @@
1
1
  import { IRemoveEventListener } from '@kengic/core.core';
2
2
  import { eventListeners, IKgButtonOnAfterRequestEventListener, IKgButtonOnBeforeRequestEventListener, IKgButtonOnClickEventListener, IKgButtonOnErrorEventListener, IKgButtonOnImportBeforeUploadEventListener, IKgButtonOnImportOkEventListener } from './KgButton.event';
3
- import { buildUseKgButtonStore } from './KgButton.store';
3
+ import { buildKgButtonStore } from './KgButton.store';
4
4
  export declare type IUseKgButton = {
5
5
  /**
6
6
  * 所有事件监听函数.
@@ -53,7 +53,7 @@ export declare type IUseKgButton = {
53
53
  * @param isOnce 是否只会触发一次. 默认为 undefined.
54
54
  */
55
55
  onImportOk(listener: IKgButtonOnImportOkEventListener, isOnce?: boolean): IRemoveEventListener;
56
- } & ReturnType<ReturnType<typeof buildUseKgButtonStore>>;
56
+ } & ReturnType<ReturnType<typeof buildKgButtonStore>>;
57
57
  /**
58
58
  * @param formID 界面标识.
59
59
  */
@@ -1,5 +1,5 @@
1
1
  import { VarButton } from '../../api/WMS/models';
2
- import { KG__VAR_BUTTON__TYPE, KgUseStore } from '../../const';
2
+ import { KG__VAR_BUTTON__TYPE, KgStoreDefinition } from '../../const';
3
3
  export interface IUseKgButtonStoreGetters {
4
4
  /**
5
5
  * <p>当前按钮.</p>
@@ -89,4 +89,4 @@ export interface IUseKgButtonStoreActions {
89
89
  isRequesting: boolean;
90
90
  }): void;
91
91
  }
92
- export declare function buildUseKgButtonStore(formID: string | null | undefined): KgUseStore<IUseKgButtonStoreGetters, IUseKgButtonStoreActions>;
92
+ export declare function buildKgButtonStore(formID: string | null | undefined): KgStoreDefinition<IUseKgButtonStoreGetters, IUseKgButtonStoreActions>;
@@ -1,6 +1,6 @@
1
- import { KgUseStore } from '../../const';
1
+ import { KgStoreDefinition } from '../../const';
2
2
  export interface IUseKgCanvasStoreGetters {
3
3
  }
4
4
  export interface IUseKgCanvasStoreActions {
5
5
  }
6
- export declare const useKgCanvasStore: KgUseStore<IUseKgCanvasStoreGetters, IUseKgCanvasStoreActions>;
6
+ export declare const useKgCanvasStore: KgStoreDefinition<IUseKgCanvasStoreGetters, IUseKgCanvasStoreActions>;
@@ -1,4 +1,4 @@
1
- import { KgUseStore } from '../../const';
1
+ import { KgStoreDefinition } from '../../const';
2
2
  export interface IUseKgFormStoreState {
3
3
  }
4
4
  export interface IUseKgFormStoreGetters {
@@ -20,4 +20,4 @@ export interface IUseKgFormStoreActions {
20
20
  */
21
21
  dispose(formID: string | null | undefined): void;
22
22
  }
23
- export declare const useKgFormStore: KgUseStore<IUseKgFormStoreGetters, IUseKgFormStoreActions>;
23
+ export declare const useKgFormStore: KgStoreDefinition<IUseKgFormStoreGetters, IUseKgFormStoreActions>;
@@ -9,7 +9,7 @@ export declare const PADDING_BOTTOM = 6;
9
9
  /**
10
10
  * 下边框的高度.
11
11
  */
12
- export declare const BORDER_BOTTOM_WIDTH = 1;
12
+ export declare const BORDER_BOTTOM_WIDTH = 2;
13
13
  /**
14
14
  * 一个查询字段的高度.
15
15
  */
@@ -1,5 +1,5 @@
1
1
  import { VarProfileMasterDTO } from '../../api/WMS/models';
2
- import { KgUseStore } from '../../const';
2
+ import { KgStoreDefinition } from '../../const';
3
3
  import { IKgTableRequestParameter } from '../KgTable';
4
4
  /** 查询方法. */
5
5
  export declare type IKgSearchOnSearchFn = (param?: IKgTableRequestParameter) => void;
@@ -99,4 +99,4 @@ export interface IUseKgSearchStoreActions {
99
99
  */
100
100
  setSearchFn(formID: string | null | undefined, fn?: IKgSearchOnSearchFn | null): void;
101
101
  }
102
- export declare const useKgSearchStore: KgUseStore<IUseKgSearchStoreGetters, IUseKgSearchStoreActions>;
102
+ export declare const useKgSearchStore: KgStoreDefinition<IUseKgSearchStoreGetters, IUseKgSearchStoreActions>;
@@ -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 { KgUseStore } from '../../const';
6
+ import { KgStoreDefinition } from '../../const';
7
7
  export interface IUseKgSubmitStoreState {
8
8
  /** 表单数据对象. */
9
9
  formModelMap: Map<string, Record<string, any>>;
@@ -63,4 +63,4 @@ export interface IUseKgSubmitStoreActions {
63
63
  }
64
64
  export declare type IUseKgSubmitStore = StoreDefinition<'KgSubmit', IUseKgSubmitStoreState, IUseKgSubmitStoreGetters, IUseKgSubmitStoreActions>;
65
65
  export declare type IKgSubmitStore = ReturnType<IUseKgSubmitStore>;
66
- export declare const useKgSubmitStore: KgUseStore<IUseKgSubmitStoreGetters, IUseKgSubmitStoreActions>;
66
+ export declare const useKgSubmitStore: KgStoreDefinition<IUseKgSubmitStoreGetters, IUseKgSubmitStoreActions>;
@@ -2,7 +2,7 @@ import { IRemoveEventListener } from '@kengic/core.core';
2
2
  import { ComputedRef } from 'vue';
3
3
  import { eventListeners, IKgTableOnAfterRequestEventListener, IKgTableOnBeforeParseRequestParameterEventListener, IKgTableOnBeforeRequestEventListener, IKgTableOnBeforeSetDatasEventListener, IKgTableOnBeforeTransformDatasEventListener, IKgTableOnReadyEventListener, IKgTableOnRequestErrorEventListener, IKgTableOnRowDoubleClickEventListener } from './KgTable.event';
4
4
  import { IKgTableRow } from './KgTable.model';
5
- import { buildUseKgTableStore } from './KgTable.store';
5
+ import { buildKgTableStore } from './KgTable.store';
6
6
  export declare type IUseKgTable = {
7
7
  /**
8
8
  * 所有事件监听函数.
@@ -123,8 +123,8 @@ export declare type IUseKgTable = {
123
123
  /** 当前勾选的行列表. */
124
124
  selectedRows: ComputedRef<IKgTableRow[] | null>;
125
125
  /** @deprecated 已废弃, 请使用 `kgVar.kgTable.xxx` 替换 `kgVar.kgTable.store.xxx`. */
126
- store: ReturnType<ReturnType<typeof buildUseKgTableStore>>;
127
- } & ReturnType<ReturnType<typeof buildUseKgTableStore>>;
126
+ store: ReturnType<ReturnType<typeof buildKgTableStore>>;
127
+ } & ReturnType<ReturnType<typeof buildKgTableStore>>;
128
128
  /**
129
129
  * @param formID 界面标识.
130
130
  */
@@ -1,6 +1,6 @@
1
- import { KgUseStore } from '../../const';
1
+ import { KgStoreDefinition } from '../../const';
2
2
  import { IKgTableRowHeight } from './KgTable.model';
3
- export interface UseKgTableStoreGetters {
3
+ export interface KgTableStoreGetters {
4
4
  /**
5
5
  * 列表数据.
6
6
  */
@@ -36,7 +36,7 @@ export interface UseKgTableStoreGetters {
36
36
  */
37
37
  getTableWidth: number;
38
38
  }
39
- export interface UseKgTableStoreActions {
39
+ export interface KgTableStoreActions {
40
40
  /**
41
41
  * 清空表格数据.
42
42
  */
@@ -88,4 +88,4 @@ export interface UseKgTableStoreActions {
88
88
  setSelectedRowKeys(selectedRowKeys: Array<string>): void;
89
89
  setTableWidth(value: number): void;
90
90
  }
91
- export declare function buildUseKgTableStore(formID: string | null | undefined): KgUseStore<UseKgTableStoreGetters, UseKgTableStoreActions>;
91
+ export declare function buildKgTableStore(formID: string | null | undefined): KgStoreDefinition<KgTableStoreGetters, KgTableStoreActions>;
@@ -0,0 +1,46 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import './KgTable02.css';
3
+ export declare const getProps: () => {
4
+ /**
5
+ * 是否禁用某行的勾选框.
6
+ */
7
+ kgIsCheckboxDisable: PropType<(row: any) => boolean>;
8
+ /**
9
+ * 是否禁用表格.
10
+ */
11
+ kgIsDisable: {
12
+ type: PropType<boolean>;
13
+ default: undefined;
14
+ };
15
+ };
16
+ export declare type KgTable02Props = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
17
+ /**
18
+ * 表格.
19
+ */
20
+ export declare const KgTable02: import("vue").DefineComponent<{
21
+ /**
22
+ * 是否禁用某行的勾选框.
23
+ */
24
+ kgIsCheckboxDisable: PropType<(row: any) => boolean>;
25
+ /**
26
+ * 是否禁用表格.
27
+ */
28
+ kgIsDisable: {
29
+ type: PropType<boolean>;
30
+ default: undefined;
31
+ };
32
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
33
+ /**
34
+ * 是否禁用某行的勾选框.
35
+ */
36
+ kgIsCheckboxDisable: PropType<(row: any) => boolean>;
37
+ /**
38
+ * 是否禁用表格.
39
+ */
40
+ kgIsDisable: {
41
+ type: PropType<boolean>;
42
+ default: undefined;
43
+ };
44
+ }>>, {
45
+ kgIsDisable: boolean;
46
+ }>;
@@ -0,0 +1,97 @@
1
+ import { IKgEventListener } from '@kengic/core.core';
2
+ import { AxiosResponse } from 'axios';
3
+ import { Ref } from 'vue';
4
+ import { IPage } from '../../api/WMS/models';
5
+ import { IKgTableRow } from '../KgTable';
6
+ /**
7
+ * 事件类型.
8
+ */
9
+ export declare type KgTable02Event = 'onReady' | 'onRowDoubleClick' | 'onBeforeParseRequestParameter' | 'onBeforeRequest' | 'onBeforeTransformDatas' | 'onBeforeSetDatas' | 'onAfterRequest' | 'onRequestError';
10
+ export declare type KgTable02OnReadyEventListenerParameter = {};
11
+ export declare type KgTable02OnReadyEventListener = ((param: KgTable02OnReadyEventListenerParameter) => Promise<boolean>) & IKgEventListener;
12
+ export declare type KgTable02OnRowDoubleClickEventListenerParameter = {
13
+ /** 双击的行. */
14
+ row: IKgTableRow;
15
+ };
16
+ export declare type KgTable02OnRowDoubleClickEventListener = ((param: KgTable02OnRowDoubleClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
17
+ export declare type KgTable02OnBeforeParseRequestParameterEventListenerParameter = {
18
+ /**
19
+ * 高级查询的操作符对象.
20
+ */
21
+ dynamicQueryOperatorModel$: Ref<Record<string, string> | null>;
22
+ /**
23
+ * 查询接口请求参数, 尚未解析.
24
+ */
25
+ params: Record<string, any>;
26
+ };
27
+ export declare type KgTable02OnBeforeParseRequestParameterEventListener = ((param: KgTable02OnBeforeParseRequestParameterEventListenerParameter) => Promise<boolean>) & IKgEventListener;
28
+ export declare type KgTable02OnBeforeRequestEventListenerParameter = {
29
+ /** 查询接口请求参数. */
30
+ params: Record<string, any>;
31
+ /** 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供表格数据. */
32
+ response$: Ref;
33
+ };
34
+ export declare type KgTable02OnBeforeRequestEventListener = ((param: KgTable02OnBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
35
+ export declare type KgTable02OnBeforeTransformDatasEventListenerParameter = {
36
+ /** 查询接口返回的数据, 调用者可以直接修改该数据. */
37
+ response: Ref;
38
+ };
39
+ export declare type KgTable02OnBeforeTransformDatasEventListener = ((param: KgTable02OnBeforeTransformDatasEventListenerParameter) => Promise<boolean>) & IKgEventListener;
40
+ export declare type KgTable02OnBeforeSetDatasEventListenerParameter = {
41
+ /**
42
+ * 列表数据.
43
+ */
44
+ datas: Ref<Array<IKgTableRow>>;
45
+ /** 查询接口请求参数. */
46
+ params: Record<string, any>;
47
+ /**
48
+ * 数据总数.
49
+ */
50
+ total: Ref<Number>;
51
+ };
52
+ export declare type KgTable02OnBeforeSetDatasEventListener = ((param: KgTable02OnBeforeSetDatasEventListenerParameter) => Promise<boolean>) & IKgEventListener;
53
+ export declare type KgTable02OnAfterRequestEventListenerParameter = {
54
+ /** 列表数据. */
55
+ datas: Ref<Array<IKgTableRow>>;
56
+ /** 查询接口请求参数. */
57
+ params: Record<string, any>;
58
+ /** 接口返回的分页数据. */
59
+ response: IPage<IKgTableRow> | null | undefined;
60
+ };
61
+ export declare type KgTable02OnAfterRequestEventListener = ((param: KgTable02OnAfterRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
62
+ export declare type KgTable02OnRequestErrorEventListenerParameter = {
63
+ /**
64
+ * <p>请求返回对象.</p>
65
+ * <p>可以手动修改该对象中的数据.</p>
66
+ */
67
+ axiosResponse: AxiosResponse<any>;
68
+ /**
69
+ * 错误对象.
70
+ */
71
+ e: Error;
72
+ };
73
+ export declare type KgTable02OnRequestErrorEventListener = ((param: KgTable02OnRequestErrorEventListenerParameter) => Promise<boolean>) & IKgEventListener;
74
+ export declare type KgTable02EventListenerParameter = KgTable02OnReadyEventListenerParameter | KgTable02OnRowDoubleClickEventListenerParameter | KgTable02OnBeforeParseRequestParameterEventListenerParameter | KgTable02OnBeforeRequestEventListenerParameter | KgTable02OnBeforeTransformDatasEventListenerParameter | KgTable02OnBeforeSetDatasEventListenerParameter | KgTable02OnRequestErrorEventListenerParameter | KgTable02OnAfterRequestEventListenerParameter;
75
+ export declare type KgTable02EventListener = KgTable02OnReadyEventListener | KgTable02OnRowDoubleClickEventListener | KgTable02OnBeforeParseRequestParameterEventListener | KgTable02OnBeforeRequestEventListener | KgTable02OnBeforeTransformDatasEventListener | KgTable02OnBeforeSetDatasEventListener | KgTable02OnRequestErrorEventListener | KgTable02OnAfterRequestEventListener;
76
+ export declare const eventListeners: Record<string, {
77
+ onAfterRequest: Array<KgTable02OnAfterRequestEventListener>;
78
+ onBeforeParseRequestParameter: Array<KgTable02OnBeforeParseRequestParameterEventListener>;
79
+ onBeforeRequest: Array<KgTable02OnBeforeRequestEventListener>;
80
+ onBeforeSetDatas: Array<KgTable02OnBeforeSetDatasEventListener>;
81
+ onBeforeTransformDatas: Array<KgTable02OnBeforeTransformDatasEventListener>;
82
+ onReady: Array<KgTable02OnReadyEventListener>;
83
+ onRequestError: Array<KgTable02OnRequestErrorEventListener>;
84
+ onRowDoubleClick: Array<KgTable02OnRowDoubleClickEventListener>;
85
+ }>;
86
+ /**
87
+ * 触发事件.
88
+ *
89
+ * @param param.event 事件名称.
90
+ * @param param.id 唯一标识.
91
+ * @param param.parameter 事件参数.
92
+ */
93
+ export declare function emit<P extends KgTable02EventListenerParameter>(param: {
94
+ event: KgTable02Event;
95
+ id?: string | undefined;
96
+ parameter: P;
97
+ }): Promise<boolean>;
@@ -0,0 +1,32 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { buildKgTable02Store } from './KgTable02.store';
3
+ export declare type IUseKgTable02 = {
4
+ /**
5
+ * 界面标识.
6
+ */
7
+ formID: string;
8
+ /**
9
+ * 作为主键的属性名.
10
+ */
11
+ idKey$$: ComputedRef<string>;
12
+ /**
13
+ * 是否自动查询.
14
+ */
15
+ isAutoRequest$$: ComputedRef<boolean>;
16
+ /**
17
+ * 查询条件的界面标识.
18
+ */
19
+ kgSearchFormId$$: ComputedRef<string>;
20
+ /**
21
+ * 当前分页选项.
22
+ */
23
+ pageSizeOption$$: ComputedRef<number>;
24
+ /**
25
+ * 所有分页选项.
26
+ */
27
+ pageSizeOptionList$$: ComputedRef<Array<number>>;
28
+ } & ReturnType<ReturnType<typeof buildKgTable02Store>>;
29
+ /**
30
+ * @param formID 界面标识.
31
+ */
32
+ export declare function useKgTable02(formID?: string | null): IUseKgTable02;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,62 @@
1
+ import { KgStoreDefinition } from '../../const';
2
+ export interface KgTableStoreGetters {
3
+ /**
4
+ * 列表数据.
5
+ */
6
+ dataList: Array<any>;
7
+ /**
8
+ * 是否就绪.
9
+ */
10
+ isReady: boolean;
11
+ /**
12
+ * 是否已经查询过一次了.
13
+ */
14
+ isRequested: boolean;
15
+ /**
16
+ * 是否正在查询.
17
+ */
18
+ isRequesting: boolean;
19
+ /**
20
+ * <p>查询参数.</p>
21
+ * <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
22
+ */
23
+ requestParamRecord: Record<string, any>;
24
+ /**
25
+ * 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null.
26
+ */
27
+ selectedData: any | null;
28
+ /**
29
+ * 已勾选的列表数据.
30
+ */
31
+ selectedDataList: Array<any>;
32
+ }
33
+ export interface KgTableStoreActions {
34
+ /**
35
+ * 清空表格数据.
36
+ */
37
+ clearDataList(): void;
38
+ /**
39
+ * 清理数据.
40
+ */
41
+ dispose(): void;
42
+ /**
43
+ * 设置列表数据.
44
+ *
45
+ * @param param.dataList 列表数据.
46
+ * @param param.isPreserveSelectedRows 是否保留行的勾选状态. 默认为 false.
47
+ */
48
+ setDataList(param: {
49
+ dataList: Array<any>;
50
+ isPreserveSelectedRows?: boolean;
51
+ }): void;
52
+ setIsReady(value: boolean): void;
53
+ setIsRequested(value: boolean): void;
54
+ setIsRequesting(value: boolean): void;
55
+ /**
56
+ * 设置查询参数.
57
+ *
58
+ * @param requestParamRecord 查询参数.
59
+ */
60
+ setRequestParamRecord(requestParamRecord: Record<string, any> | null | undefined): void;
61
+ }
62
+ export declare function buildKgTable02Store(formID: string | null | undefined): KgStoreDefinition<KgTableStoreGetters, KgTableStoreActions>;
@@ -0,0 +1,4 @@
1
+ export { KgTable02 } from './KgTable02';
2
+ export * from './KgTable02.hooks';
3
+ export * from './KgTable02.store';
4
+ export * from './KgTable02.model';
@@ -7,6 +7,7 @@ import { IUseKgForm } from '../KgForm';
7
7
  import { type IUseKgSearch } from '../KgSearch';
8
8
  import { IUseKgSubmit } from '../KgSubmit';
9
9
  import { IUseKgTable } from '../KgTable';
10
+ import { IUseKgTable02 } from '../KgTable02';
10
11
  import { IUseKgVarConfig } from '../KgVarConfig';
11
12
  import { eventListeners, IKgVarOnRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './KgVar.event';
12
13
  import { IKgProps, IKgSlots } from './KgVar.model';
@@ -135,6 +136,7 @@ export declare type IUseKgVar = {
135
136
  kgSearch: IUseKgSearch;
136
137
  kgSubmit: IUseKgSubmit;
137
138
  kgTable: IUseKgTable;
139
+ kgTable02: IUseKgTable02;
138
140
  kgVarConfig: IUseKgVarConfig;
139
141
  /**
140
142
  * 界面层级.
@@ -5,6 +5,7 @@ import { IKgSearchProps } from '../KgSearch';
5
5
  import { KgSubmitProps } from '../KgSubmit';
6
6
  import { IKgTableSlotParams } from '../KgTable';
7
7
  import { IKgTableProps } from '../KgTable/KgTable';
8
+ import { KgTable02Props } from '../KgTable02/KgTable02';
8
9
  import { KgVarProps } from './KgVar';
9
10
  export declare type IKgSlots = {
10
11
  /** 按钮. */
@@ -67,6 +68,7 @@ export declare type IKgProps = {
67
68
  KgSearch?: IKgSearchProps;
68
69
  KgSubmit?: KgSubmitProps;
69
70
  KgTable?: IKgTableProps;
71
+ KgTable02?: KgTable02Props;
70
72
  KgVar?: KgVarProps;
71
73
  };
72
74
  /** 注入 kgProps 参数. */
@@ -1,7 +1,36 @@
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, KgUseStore } from '../../const';
2
+ import { KG__VAR_BUTTON__TYPE, KgStoreDefinition } from '../../const';
3
3
  import { IUseKgVar } from './KgVar.hooks';
4
4
  import { IKgProps, IKgSlots } from './KgVar.model';
5
+ export declare function transformVarProfileConfig(varProfileConfig: VarProfileConfig | null | undefined): VarProfileConfig | null;
6
+ 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 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>;
12
+ export declare function transformVarButtons(varButtons?: 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>;
18
+ export declare function transformVarButtonConfig(varButtonConfig: VarButtonConfig | null | undefined): VarButtonConfig | null;
19
+ /**
20
+ * 处理 VarGridDetail 数据.
21
+ *
22
+ * @param varGridDetails 原始数据.
23
+ */
24
+ export declare function transformVarGridDetails(varGridDetails?: Array<VarGridDetail> | null): Array<VarGridDetail>;
25
+ export declare function transformVarProfileDetails(varProfileDetails?: Array<VarProfileDetail> | null): Array<VarProfileDetail>;
26
+ /**
27
+ * 给所有没有「提交表单字段」的「查询条件视图明细」创建一个默认的「提交表单字段」.
28
+ *
29
+ * @param varGridMasters 「查询条件视图」列表.
30
+ * @param varSubmitDetails 「提交表单字段」列表.
31
+ * @param varButtons 「按钮」列表.
32
+ */
33
+ export declare function createDefaultVarSubmitDetailsForVarProfileDetails(varGridMasters: Array<VarProfileMasterDTO>, varSubmitDetails: Array<VarSubmitDetail>, varButtons: Array<VarButton>): void;
5
34
  export interface UseKgVarStoreGetters {
6
35
  /** 获取当前'表格视图'的 ID. */
7
36
  getCurrentVarGridMasterID: (formID: string | null | undefined) => string | null;
@@ -235,4 +264,4 @@ export interface IUseKgVarStoreActions {
235
264
  */
236
265
  setVarProfileDetailEnable(formID: string, varName: string | null | undefined, enable: number): void;
237
266
  }
238
- export declare const useKgVarStore: KgUseStore<UseKgVarStoreGetters, IUseKgVarStoreActions>;
267
+ export declare const useKgVarStore: KgStoreDefinition<UseKgVarStoreGetters, IUseKgVarStoreActions>;
@@ -2,9 +2,7 @@ export declare function KgVarFactory(param?: {
2
2
  formID?: string | null | undefined;
3
3
  }): import("vue").DefineComponent<{
4
4
  kgBackgroundGray: {
5
- type: import("vue").PropType<boolean>; /**
6
- * 子页面的组件.
7
- */
5
+ type: import("vue").PropType<boolean>;
8
6
  default: undefined;
9
7
  };
10
8
  kgFormID: import("vue").PropType<string>;
@@ -16,9 +14,7 @@ export declare function KgVarFactory(param?: {
16
14
  kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
17
15
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
16
  kgBackgroundGray: {
19
- type: import("vue").PropType<boolean>; /**
20
- * 子页面的组件.
21
- */
17
+ type: import("vue").PropType<boolean>;
22
18
  default: undefined;
23
19
  };
24
20
  kgFormID: import("vue").PropType<string>;
@@ -37,9 +33,7 @@ export declare function KgVarFactory(param?: {
37
33
  */
38
34
  export declare const KgVar2: import("vue").DefineComponent<{
39
35
  kgBackgroundGray: {
40
- type: import("vue").PropType<boolean>; /**
41
- * 子页面的组件.
42
- */
36
+ type: import("vue").PropType<boolean>;
43
37
  default: undefined;
44
38
  };
45
39
  kgFormID: import("vue").PropType<string>;
@@ -51,9 +45,7 @@ export declare const KgVar2: import("vue").DefineComponent<{
51
45
  kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
52
46
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
53
47
  kgBackgroundGray: {
54
- type: import("vue").PropType<boolean>; /**
55
- * 子页面的组件.
56
- */
48
+ type: import("vue").PropType<boolean>;
57
49
  default: undefined;
58
50
  };
59
51
  kgFormID: import("vue").PropType<string>;
@@ -1,4 +1,4 @@
1
- import { KgUseStore } from '../../const';
1
+ import { KgStoreDefinition } from '../../const';
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: KgUseStore<IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
16
+ export declare const useKgVarConfigStore: KgStoreDefinition<IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
@@ -1,5 +1,5 @@
1
1
  import { WhDTO } from '../../api/WMS/models';
2
- import { KgUseStore } from '../../const';
2
+ import { KgStoreDefinition } from '../../const';
3
3
  export interface IUseKgWarehouseStoreState {
4
4
  /**
5
5
  * 是否显示弹窗.
@@ -31,4 +31,4 @@ export interface IUseKgWarehouseStoreActions {
31
31
  */
32
32
  setWarehouse(warehouse?: WhDTO | null): void;
33
33
  }
34
- export declare const useKgWarehouseStore: KgUseStore<IUseKgWarehouseStoreGetters, IUseKgWarehouseStoreActions>;
34
+ export declare const useKgWarehouseStore: KgStoreDefinition<IUseKgWarehouseStoreGetters, IUseKgWarehouseStoreActions>;
@@ -1,7 +1,7 @@
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, KgUseStore } from '../const';
4
+ import { KG_APP, KgStoreDefinition } from '../const';
5
5
  import { Menu } from '../project/src/router/types';
6
6
  import { UserInfo } from '../project/types/store';
7
7
  export declare type IKgOption = {
@@ -291,5 +291,5 @@ export interface IUseKgStoreActions {
291
291
  */
292
292
  t: T;
293
293
  }
294
- export declare const useKgStore: KgUseStore<IUseKgStoreGetters, IUseKgStoreActions>;
294
+ export declare const useKgStore: KgStoreDefinition<IUseKgStoreGetters, IUseKgStoreActions>;
295
295
  export {};
@@ -1,8 +1,15 @@
1
1
  import { StoreDefinition } from 'pinia';
2
2
  import { App } from 'vue';
3
3
  import { Router } from 'vue-router';
4
+ import { LocaleType } from '../project/types/config';
4
5
  import { IKgOption, P } from './config.store';
5
6
  import '@kengic/core.react/index.css';
7
+ export * from './config.hooks';
8
+ export * from './config.store';
9
+ /**
10
+ * 由于许多数据是由项目维护的, 组件库需要用到这些数据, 则必须让项目调用下面的这些配置方法, 将这些数据设置进来.
11
+ */
12
+ export declare const pinia: import("pinia").Pinia;
6
13
  export declare type IKgOptions = {
7
14
  app: App;
8
15
  i18n: any;
@@ -22,5 +29,29 @@ export declare type IKgOptions = {
22
29
  * @param options 选项参数.
23
30
  */
24
31
  export declare function setup(options: IKgOptions): Promise<void>;
25
- export * from './config.hooks';
26
- export * from './config.store';
32
+ export declare type KgConfig = {
33
+ app: App<Element>;
34
+ axios: any;
35
+ i18n: {
36
+ /**
37
+ * 语言数据.
38
+ */
39
+ I18N?: Record<string, any>;
40
+ /**
41
+ * <p>可选择的语言. 默认可选所有语言.</p>
42
+ */
43
+ availableLocales?: Array<LocaleType>;
44
+ /**
45
+ * 默认语言.
46
+ *
47
+ * @default 'zh_CN'.
48
+ */
49
+ defaultLocale?: LocaleType;
50
+ };
51
+ };
52
+ /**
53
+ * 配置.
54
+ *
55
+ * @param config 配置.
56
+ */
57
+ export declare function kgConfig(config: KgConfig): Promise<void>;
@@ -856,6 +856,12 @@ export interface IKgVarGridConfigProperties {
856
856
  * @default false
857
857
  */
858
858
  bordered?: boolean;
859
+ /**
860
+ * 组件版本, 默认为 '01'.
861
+ *
862
+ * @default '01'
863
+ */
864
+ componentVersion?: '01' | '02' | '03';
859
865
  /**
860
866
  * <p>是否禁用某行的勾选框.</p>
861
867
  * <p>该属性的值是一个字符串, 这个字符串会被作为方法体的代码来解析, 即作为 new Function() 构造函数的最后一个参数.</p>
@@ -1176,6 +1182,6 @@ export declare const KG_COMMON_CONST: {
1176
1182
  /**
1177
1183
  * 状态管理类型定义.
1178
1184
  */
1179
- export declare type KgUseStore<GETTERS, ACTIONS> = (pinia?: Pinia | null | undefined) => GETTERS & ACTIONS & {
1185
+ export declare type KgStoreDefinition<GETTERS, ACTIONS> = (pinia?: Pinia | null | undefined) => GETTERS & ACTIONS & {
1180
1186
  $onAction(callback: StoreOnActionListener<any, any, any, any>, detached?: boolean): () => void;
1181
1187
  };