@kengic/vue 0.23.0 → 0.23.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +9391 -8199
  4. package/dist/project/build/script/buildConf.ts +1 -2
  5. package/dist/project/build/script/postBuild.ts +1 -1
  6. package/dist/project/src/api/sys/model/userModel.ts +1 -0
  7. package/dist/setting-outlined.7f72790b.mjs +8 -0
  8. package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +2 -0
  9. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -7
  10. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
  11. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
  12. package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +2 -0
  13. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
  14. package/dist/src/apis/WMS/models.d.ts +27 -11
  15. package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
  16. package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
  17. package/dist/src/components/KgButton/KgButton.Item.d.ts +15 -15
  18. package/dist/src/components/KgButton/KgButton.Item.data.d.ts +15 -15
  19. package/dist/src/components/KgButton/KgButton.d.ts +18 -12
  20. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +14 -14
  21. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +14 -14
  22. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +15 -15
  23. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +14 -14
  24. package/dist/src/components/KgButton/components/KgButton.ExportTemplate.d.ts +14 -14
  25. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +14 -14
  26. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +15 -15
  27. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +15 -15
  28. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +14 -14
  29. package/dist/src/components/KgButton/index.d.ts +4 -4
  30. package/dist/src/components/KgButton/index.hooks.d.ts +7 -5
  31. package/dist/src/components/KgButton/index.store.d.ts +19 -16
  32. package/dist/src/components/KgForm/KgForm.d.ts +3 -3
  33. package/dist/src/components/KgForm/index.d.ts +4 -4
  34. package/dist/src/components/KgForm/index.hooks.d.ts +21 -8
  35. package/dist/src/components/KgForm/index.store.d.ts +74 -34
  36. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
  37. package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +3 -3
  38. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
  39. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -7
  40. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
  41. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
  42. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
  43. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
  44. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
  45. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -5
  46. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -3
  47. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +16 -13
  48. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
  49. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
  50. package/dist/src/components/KgForm.Item/index.d.ts +1 -1
  51. package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
  52. package/dist/src/components/KgModal/KgModal.d.ts +105 -21
  53. package/dist/src/components/KgModal/KgModal.service.d.ts +1 -1
  54. package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +18 -0
  55. package/dist/src/components/KgResizable/KgResizable.d.ts +55 -55
  56. package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
  57. package/dist/src/components/KgSearch/KgSearch.service.d.ts +20 -16
  58. package/dist/src/components/KgSearch/index.hooks.d.ts +30 -12
  59. package/dist/src/components/KgSearch/index.store.d.ts +44 -37
  60. package/dist/src/components/KgSubmit/index.hooks.d.ts +48 -15
  61. package/dist/src/components/KgSubmit/index.store.d.ts +53 -47
  62. package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
  63. package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +1 -1
  64. package/dist/src/components/KgTable/index.hooks.d.ts +23 -8
  65. package/dist/src/components/KgTable/index.store.d.ts +48 -34
  66. package/dist/src/components/KgTable/index.vm.d.ts +1 -1
  67. package/dist/src/components/KgVar/index.hooks.d.ts +15 -11
  68. package/dist/src/components/KgVar/index.store.d.ts +55 -60
  69. package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
  70. package/dist/src/components/KgVar/index.vm.d.ts +7 -7
  71. package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +1 -1
  72. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +6 -23
  73. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -16
  74. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +4 -21
  75. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
  76. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
  77. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
  78. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
  79. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
  80. package/dist/src/components/KgVarConfig/index.d.ts +1 -0
  81. package/dist/src/components/KgVarConfig/index.hooks.d.ts +17 -0
  82. package/dist/src/components/KgVarConfig/index.store.d.ts +29 -16
  83. package/dist/src/components/KgVarConfig/index.vm.d.ts +40 -0
  84. package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
  85. package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
  86. package/dist/src/components/util.d.ts +7 -7
  87. package/dist/src/consts/i18n/en.d.ts +31 -11
  88. package/dist/src/consts/i18n/zh_CN.d.ts +31 -11
  89. package/dist/src/consts/index.d.ts +0 -284
  90. package/dist/src/consts/index.vm.d.ts +435 -24
  91. package/dist/src/helpers/ant-design-vue.d.ts +1 -1
  92. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -1
  93. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +117 -192
  94. package/dist/src/pages/KgPageDda/{index.const.d.ts → index.vm.d.ts} +1 -0
  95. package/dist/src/services/http-client.d.ts +2 -2
  96. package/dist/src/utils/kg-var.util.d.ts +4 -3
  97. package/dist/src/utils/kg.util.d.ts +42 -25
  98. package/package.json +2 -2
  99. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
  100. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
  101. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
  102. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
  103. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
  104. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
  105. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
  106. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
  107. /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
  108. /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.Vars.d.ts → KgVarConfig.Modal.Var.VarConfigControl.d.ts} +0 -0
@@ -1,15 +1,14 @@
1
- import { Pinia, StoreDefinition } from 'pinia';
1
+ import { StoreDefinition } from 'pinia';
2
2
  import { WhDTO } from '../../apis/WMS/models';
3
- import { IKgEventCb } from '../../consts';
3
+ import { IKgEventListener } from '../../consts';
4
4
  /**
5
5
  * 事件类型.
6
6
  * 'mounted': 组件加载完成
7
7
  */
8
8
  export declare type IKgWarehouseEvent = 'mounted';
9
- /** 事件监听函数: mounted. */
10
- export declare type IKgWarehouseMountedCb = (() => void) & IKgEventCb;
11
- export declare type IKgWarehouseCb = IKgWarehouseMountedCb;
12
- export interface IKgWarehouseState {
9
+ export declare type IKgWarehouseMountedEventListener = (() => void) & IKgEventListener;
10
+ export declare type IKgWarehouseEventListener = IKgWarehouseMountedEventListener;
11
+ export interface IUseKgWarehouseStoreState {
13
12
  /**
14
13
  * 弹窗当前是否显示.
15
14
  */
@@ -18,27 +17,28 @@ export interface IKgWarehouseState {
18
17
  * 当前仓库.
19
18
  */
20
19
  warehouse: WhDTO | null;
21
- mountedListeners: Array<IKgWarehouseMountedCb>;
20
+ mountedListeners: Array<IKgWarehouseMountedEventListener>;
22
21
  }
23
- export declare type IKgWarehouseStoreDefinition = StoreDefinition<'KgWarehouse', IKgWarehouseState, {
22
+ export interface IUseKgWarehouseStoreGetters {
24
23
  /**
25
24
  * 弹窗当前是否显示.
26
25
  */
27
26
  getVisible: boolean;
28
27
  getWarehouse: WhDTO | null;
29
- }, {
28
+ }
29
+ export interface IUseKgWarehouseStoreActions {
30
30
  /**
31
31
  * 注册事件监听.
32
32
  * @param event 事件名称.
33
33
  * @param cb 回调函数.
34
34
  */
35
- addEventListener(event: IKgWarehouseEvent, cb: IKgWarehouseCb): void;
35
+ addEventListener(event: IKgWarehouseEvent, cb: IKgWarehouseEventListener): void;
36
36
  /**
37
37
  * 退订事件监听.
38
38
  * @param event 事件名称.
39
39
  * @param cb 回调函数.
40
40
  */
41
- removeEventListener(event: IKgWarehouseEvent, cb?: IKgWarehouseCb): void;
41
+ removeEventListener(event: IKgWarehouseEvent, cb?: IKgWarehouseEventListener): void;
42
42
  /**
43
43
  * 触发事件.
44
44
  * @param event 事件名称.
@@ -55,6 +55,7 @@ export declare type IKgWarehouseStoreDefinition = StoreDefinition<'KgWarehouse',
55
55
  * @param warehouse 当前仓库.
56
56
  */
57
57
  setWarehouse(warehouse?: WhDTO | null): void;
58
- }>;
59
- export declare type IKgWarehouseStore = ReturnType<IKgWarehouseStoreDefinition>;
60
- export declare const useKgWarehouseStore: (_pinia?: Pinia) => IKgWarehouseStoreDefinition;
58
+ }
59
+ export declare type IUseKgWarehouseStore = StoreDefinition<'KgWarehouse', IUseKgWarehouseStoreState, IUseKgWarehouseStoreGetters, IUseKgWarehouseStoreActions>;
60
+ export declare type IKgWarehouseStore = ReturnType<IUseKgWarehouseStore>;
61
+ export declare const useKgWarehouseStore: IUseKgWarehouseStore;
@@ -1,14 +1,14 @@
1
- import { IKgEventCb, IRemoveEventListenerHandler } from '../consts';
1
+ import { IKgEventListener, IRemoveEventListenerHandler } from '../consts';
2
2
  /**
3
3
  * 构造事件监听.
4
- * @param frmId 界面标识.
4
+ * @param formID 界面标识.
5
5
  * @param store 状态管理.
6
6
  * @param event 事件名称.
7
7
  */
8
8
  export declare function onEventFactory<S extends {
9
- addEventListener(frmId: string, event: E, cb: C): void;
10
- removeEventListener(frmId: string, event: E, cb?: C): void;
9
+ addEventListener(formID: string, event: E, cb: L): void;
10
+ removeEventListener(formID: string, event: E, cb?: L): void;
11
11
  } | {
12
- addEventListener(event: E, cb: C): void;
13
- removeEventListener(event: E, cb?: C): void;
14
- } = any, E = any, C extends IKgEventCb = any>(frmId: string | null, store: S, event: E): (cb: C, once?: boolean) => IRemoveEventListenerHandler;
12
+ addEventListener(event: E, cb: L): void;
13
+ removeEventListener(event: E, cb?: L): void;
14
+ } = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (cb: L, once?: boolean) => IRemoveEventListenerHandler;
@@ -6,11 +6,23 @@ declare const _default: {
6
6
  sys: string;
7
7
  tooltip: string;
8
8
  };
9
+ KgButton: {
10
+ noApiUrl: string;
11
+ noVarSubmitConfig: string;
12
+ };
9
13
  KgFormItem: {
10
- mustGT: string;
11
- mustGTE: string;
12
- mustLT: string;
13
- mustLTE: string;
14
+ formValidationMessageForGT: string;
15
+ formValidationMessageForGTE: string;
16
+ formValidationMessageForInvalidFloat: string;
17
+ formValidationMessageForInvalidInteger: string;
18
+ formValidationMessageForInvalidJSON: string;
19
+ formValidationMessageForInvalidLetter: string;
20
+ formValidationMessageForInvalidLowerLetter: string;
21
+ formValidationMessageForInvalidUpperLetter: string;
22
+ formValidationMessageForLT: string;
23
+ formValidationMessageForLTE: string;
24
+ formValidationMessageForMaxLength: string;
25
+ formValidationMessageForMinLength: string;
14
26
  };
15
27
  KgPageDdaCreate: {
16
28
  'confirm-cancel': string;
@@ -90,12 +102,13 @@ declare const _default: {
90
102
  invalidWidthForSpan: string;
91
103
  };
92
104
  KgTable: {
105
+ apiNotSupportDynamicQuery: string;
93
106
  canNotUpdateSystemVarGridMaster: string;
94
107
  column: string;
95
108
  config: string;
96
- 'dynamic-query-is-off-in-server': string;
97
109
  emptyText: string;
98
- 'is-show-description': string;
110
+ isShowDescription: string;
111
+ other: string;
99
112
  'request-fail-error': string;
100
113
  'request-fail-no-data': string;
101
114
  rowHeight: string;
@@ -142,12 +155,11 @@ declare const _default: {
142
155
  KgTableSettingVarGridMasterSaveAs: {
143
156
  title: string;
144
157
  };
158
+ KgVar: {};
145
159
  KgVarConfig: {
146
160
  action: string;
147
161
  allForm: string;
148
162
  allLanguage: string;
149
- applyTo: string;
150
- catalog: string;
151
163
  confirm: string;
152
164
  createConfig: string;
153
165
  createSuccess: string;
@@ -157,19 +169,26 @@ declare const _default: {
157
169
  deleteConfirmMessage: string;
158
170
  deleteSuccess: string;
159
171
  discardConfirmMessage: string;
160
- form: string;
161
172
  formId: string;
173
+ formValidationMessageForMaxAndMin: string;
174
+ formValidationMessageForMaxLengthAndMinLength: string;
162
175
  groupName: string;
163
- language: string;
176
+ pleaseSelectVariableFromLeft: string;
164
177
  required: string;
165
178
  saveSuccess: string;
166
179
  tabButton: string;
167
180
  tabSearch: string;
168
181
  tabSubmit: string;
169
182
  tabTable: string;
183
+ varConfigControl: string;
184
+ varConfigDescription: string;
185
+ varConfigInput: string;
186
+ varConfigLookup: string;
187
+ varConfigPossibility: string;
188
+ varConfigTip: string;
189
+ varVariable: string;
170
190
  variable: string;
171
191
  variableName: string;
172
- variables: string;
173
192
  };
174
193
  KgVarConfigModalButton: {
175
194
  VarButton: string;
@@ -211,6 +230,7 @@ declare const _default: {
211
230
  export: string;
212
231
  exportSuccess: string;
213
232
  formId: string;
233
+ formValidationFail: string;
214
234
  import: string;
215
235
  'import-template': string;
216
236
  importSuccess: string;
@@ -6,11 +6,23 @@ declare const _default: {
6
6
  sys: string;
7
7
  tooltip: string;
8
8
  };
9
+ KgButton: {
10
+ noApiUrl: string;
11
+ noVarSubmitConfig: string;
12
+ };
9
13
  KgFormItem: {
10
- mustGT: string;
11
- mustGTE: string;
12
- mustLT: string;
13
- mustLTE: string;
14
+ formValidationMessageForGT: string;
15
+ formValidationMessageForGTE: string;
16
+ formValidationMessageForInvalidFloat: string;
17
+ formValidationMessageForInvalidInteger: string;
18
+ formValidationMessageForInvalidJSON: string;
19
+ formValidationMessageForInvalidLetter: string;
20
+ formValidationMessageForInvalidLowerLetter: string;
21
+ formValidationMessageForInvalidUpperLetter: string;
22
+ formValidationMessageForLT: string;
23
+ formValidationMessageForLTE: string;
24
+ formValidationMessageForMaxLength: string;
25
+ formValidationMessageForMinLength: string;
14
26
  };
15
27
  KgPageDdaCreate: {
16
28
  'confirm-cancel': string;
@@ -90,12 +102,13 @@ declare const _default: {
90
102
  invalidWidthForSpan: string;
91
103
  };
92
104
  KgTable: {
105
+ apiNotSupportDynamicQuery: string;
93
106
  canNotUpdateSystemVarGridMaster: string;
94
107
  column: string;
95
108
  config: string;
96
- 'dynamic-query-is-off-in-server': string;
97
109
  emptyText: string;
98
- 'is-show-description': string;
110
+ isShowDescription: string;
111
+ other: string;
99
112
  'request-fail-error': string;
100
113
  'request-fail-no-data': string;
101
114
  rowHeight: string;
@@ -142,12 +155,11 @@ declare const _default: {
142
155
  KgTableSettingVarGridMasterSaveAs: {
143
156
  title: string;
144
157
  };
158
+ KgVar: {};
145
159
  KgVarConfig: {
146
160
  action: string;
147
161
  allForm: string;
148
162
  allLanguage: string;
149
- applyTo: string;
150
- catalog: string;
151
163
  confirm: string;
152
164
  createConfig: string;
153
165
  createSuccess: string;
@@ -157,18 +169,25 @@ declare const _default: {
157
169
  deleteConfirmMessage: string;
158
170
  deleteSuccess: string;
159
171
  discardConfirmMessage: string;
160
- form: string;
161
172
  formId: string;
173
+ formValidationMessageForMaxAndMin: string;
174
+ formValidationMessageForMaxLengthAndMinLength: string;
162
175
  groupName: string;
163
- language: string;
176
+ pleaseSelectVariableFromLeft: string;
164
177
  saveSuccess: string;
165
178
  tabButton: string;
166
179
  tabSearch: string;
167
180
  tabSubmit: string;
168
181
  tabTable: string;
182
+ varConfigControl: string;
183
+ varConfigDescription: string;
184
+ varConfigInput: string;
185
+ varConfigLookup: string;
186
+ varConfigPossibility: string;
187
+ varConfigTip: string;
188
+ varVariable: string;
169
189
  variable: string;
170
190
  variableName: string;
171
- variables: string;
172
191
  };
173
192
  KgVarConfigModalButton: {
174
193
  VarButton: string;
@@ -210,6 +229,7 @@ declare const _default: {
210
229
  export: string;
211
230
  exportSuccess: string;
212
231
  formId: string;
232
+ formValidationFail: string;
213
233
  import: string;
214
234
  'import-template': string;
215
235
  importSuccess: string;
@@ -1,287 +1,3 @@
1
1
  export * from './i18n';
2
2
  export * from './index.vm';
3
3
  export * from './injection-keys.const';
4
- /** 模块. */
5
- export declare const enum KG_APP {
6
- /** 数据管理. */
7
- WMS_DATA_MANAGER = "data-manager",
8
- /** 仓库管理. */
9
- WMS_BUSINESS_MANAGER = "business-manager",
10
- /** WCS. */
11
- WCS = "wcs",
12
- /** 系统管理. */
13
- SYS = "sys"
14
- }
15
- /** 模块路径前缀. */
16
- export declare const enum KG_APP_PREFIX {
17
- /** 数据管理. */
18
- WMS_DATA_MANAGER = "/wms/data-manager",
19
- /** 仓库管理. */
20
- WMS_BUSINESS_MANAGER = "/wms/business-manager",
21
- /** WCS. */
22
- WCS = "/wcs",
23
- /** 系统管理. */
24
- SYS = "/sys"
25
- }
26
- /** 所有模块. */
27
- export declare const KG_APPS: Array<KG_APP>;
28
- /** 所有模块路径前缀. */
29
- export declare const KG_APP_PREFIXS: Array<KG_APP_PREFIX>;
30
- /**
31
- * 表单控件类型.
32
- * @see VarConfigControl.ctrl_prop
33
- * @see IKgVarConfigControlProperties
34
- */
35
- export declare const enum KG_FORM_ITEM_CONTROL_TYPE {
36
- /** 文本. */
37
- INPUT = "INPUT",
38
- /** 密码. */
39
- INPUT_PASSWORD = "INPUT_PASSWORD",
40
- /** 数字. */
41
- INPUT_NUMBER = "INPUT_NUMBER",
42
- /**
43
- * <p>多行文本.</p>
44
- * <p>配置属性参见 {@link IKgVarConfigControlProperties.TEXT_AREA}.</p>
45
- */
46
- TEXT_AREA = "TEXT_AREA",
47
- /** 多选框. */
48
- CHECKBOX = "CHECKBOX",
49
- /**
50
- * <p>多选框列表.</p>
51
- * <p>配置属性参见 {@link IKgVarConfigControlProperties.CHECKBOX_GROUP}.</p>
52
- */
53
- CHECKBOX_GROUP = "CHECKBOX_GROUP",
54
- /**
55
- * <p>单选框列表.</p>
56
- * <p>配置属性参见 {@link IKgVarConfigControlProperties.RADIO_GROUP}.</p>
57
- */
58
- RADIO_GROUP = "RADIO_GROUP",
59
- /** 开关. */
60
- SWITCH = "SWITCH",
61
- /**
62
- * <p>下拉列表单选.<p>
63
- * <p>配置属性参见 {@link IKgVarConfigControlProperties.SELECT}.</p>
64
- */
65
- SELECT = "SELECT",
66
- /** 下拉列表多选. */
67
- SELECT_MULTIPLE = "SELECT_MULTIPLE",
68
- /** 年月日, 2020-05-01. */
69
- DATE_DATE = "DATE_DATE",
70
- /** 年月日的范围, [DATE_DATE, DATE_DATE] */
71
- DATE_DATE_RANGE = "DATE_DATE_RANGE",
72
- /** 时分秒, 11:59:59. */
73
- DATE_TIME = "DATE_TIME",
74
- /** 时分秒的范围, [DATE_TIME, DATE_TIME]. */
75
- DATE_TIME_RANGE = "DATE_TIME_RANGE",
76
- /** 年月日时分秒, 2020-05-01 11:59:59. */
77
- DATE_DATETIME = "DATE_DATETIME",
78
- /** 年月日时分秒的范围, [DATE_DATETIME, DATE_DATETIME] */
79
- DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE",
80
- DATE_WEEK = "DATE_WEEK",
81
- DATE_MONTH = "DATE_MONTH",
82
- DATE_YEAR = "DATE_YEAR",
83
- /**
84
- * <p>图片.</p>
85
- * <p>点击可以预览.</p>
86
- */
87
- IMAGE = "IMAGE",
88
- /** 文件上传按钮. */
89
- BUTTON_UPLOAD = "BUTTON_UPLOAD"
90
- }
91
- /** 表单控件所处环境. */
92
- export declare const enum KG_FORM_CONTEXT {
93
- /** 位于查询条件. */
94
- SEARCH = "SEARCH",
95
- /** 位于表单. */
96
- SUBMIT = "SUBMIT",
97
- /** 位于表格内的表单. */
98
- TABLE = "TABLE"
99
- }
100
- /**
101
- * 表格单元格的显示类型.
102
- * @see VarGridDetail.display_type_properties
103
- * @see IKgVarGridDetailDisplayTypeProperties
104
- */
105
- export declare const enum KG_TABLE_CELL_DISPLAY_TYPE {
106
- /** 布尔数据, 使用 KgYesOrNo 组件显示. */
107
- YN = "YN",
108
- /** 枚举数据, 使用 Tag 组件显示. */
109
- ENUM = "ENUM",
110
- /** 进度条, 使用 KgProgressA 组件显示. */
111
- PROGRESS = "PROGRESS",
112
- /** 文件大小, 将以字节(byte)为单位的数字格式化显示(XXX MB, XXX GB, ...). */
113
- FILE_SIZE = "FILE_SIZE",
114
- /** 超链接, 点击打开更新弹窗. */
115
- UPDATE_LINK = "UPDATE_LINK",
116
- /** 超链接, 点击跳转到其他路由. */
117
- ROUTE_LINK = "ROUTE_LINK",
118
- /**
119
- * <p>描述. 显示该列的值所对应的描述, 而不是直接显示该列的值.</p>
120
- * <p>
121
- * 描述的来源有 2 种, 按优先级从高到低依次为:
122
- * <ul>
123
- * <li>如果 {@link IKgVarGridDetailDisplayTypeProperties.DESC.description.codeName} 不为空, 则描述来源于系统描述表, 并且默认的 codeValue 就是该列的值,</li>
124
- * <li>
125
- * <p>否则, 描述来源于描述列.</p>
126
- * <p>默认情况下, 描述列的列名为原始列的列名加上 _dsc 或者 Dsc 后缀, 比如原始列的列名为 xyz, 则描述列的列名为 xyz_dsc 或者 xyzDsc, 可以通过 {@link IKgVarGridDetailDisplayTypeProperties.DESC.dscFieldName} 将描述列的列名配置为其他值,</p>
127
- * </li>
128
- * </ul>
129
- * </p>
130
- */
131
- DESC = "DESC",
132
- /**
133
- * <p>图片, 可以点击预览大图.</p>
134
- */
135
- IMAGE = "IMAGE"
136
- }
137
- /** 按钮类型. */
138
- export declare const enum KG_BUTTON_TYPE {
139
- /** 查询. */
140
- SEARCH = "SEARCH",
141
- /** 创建. */
142
- CREATE = "CREATE",
143
- /** 更新. */
144
- UPDATE = "UPDATE",
145
- /** 复制. */
146
- COPY = "COPY",
147
- /** 删除. */
148
- DELETE = "DELETE",
149
- /** 导入. */
150
- IMPORT = "IMPORT",
151
- /** 下载导入模板. */
152
- IMPORT_TEMPLATE = "IMPORT_TEMPLATE",
153
- /** 导出. */
154
- EXPORT = "EXPORT",
155
- /** 其他. */
156
- OTHER = "OTHER"
157
- }
158
- /** 按钮颜色. */
159
- export declare const enum KG_BUTTON_COLOR {
160
- /** 错误. */
161
- DANGER = "DANGER",
162
- /** 警告. */
163
- WARN = "WARN"
164
- }
165
- /** 按钮显示方式. */
166
- export declare const enum KG_BUTTON_DISPLAY_TYPE {
167
- /** 按钮依次排列在一横排. */
168
- DEFAULT = "DEFAULT",
169
- /** 显示为下拉的菜单列表. */
170
- SELECT = "SELECT"
171
- }
172
- /** 表单显示方式. */
173
- export declare const enum KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE {
174
- /** 弹窗. */
175
- MODAL = "MODAL",
176
- /** 抽屉. */
177
- DRAWER = "DRAWER",
178
- /** 在表格内. */
179
- TABLE = "TABLE"
180
- }
181
- /** 表单布局方式. */
182
- export declare const enum KG_VAR_SUBMIT__LAYOUT {
183
- /** 垂直. */
184
- VERTICAL = "vertical",
185
- /** 水平. */
186
- HORIZONTAL = "horizontal"
187
- }
188
- /** 变量表单输入验证: 数据类型. */
189
- export declare const enum KG_VAR_INPUT__DATA_TYPE {
190
- /** 数字(整数, 小数). */
191
- NUMBER = "NUMBER"
192
- }
193
- /** 定制级别. */
194
- export declare const enum KG_CUSTOM_LEVEL {
195
- /** 系统. */
196
- L0 = 0,
197
- /** 用户. */
198
- L10 = 10
199
- }
200
- /** 下拉列表数据中值的类型. */
201
- export declare const enum KG_POSSIBILITY_DATA_TYPE {
202
- STRING = "string",
203
- NUMBER = "number",
204
- BOOLEAN = "boolean"
205
- }
206
- /** 宽度单位. */
207
- export declare const enum KG_WIDTH_UNIT {
208
- /** 网格. */
209
- SPAN = "SPAN",
210
- /** 像素. */
211
- PX = "PX"
212
- }
213
- /** EXCEL 文件后缀. */
214
- export declare const enum KG_EXCEL_SUFFIX {
215
- XLS = "xls",
216
- XLSX = "xlsx"
217
- }
218
- /** 系统描述表中的键. */
219
- export declare const enum KG_DESCRIPTION_CODE_NAME {
220
- /** 是否. */
221
- YN = "yn",
222
- /** 表单布局方式. */
223
- VAR_SUBMIT_LAYOUT = "var_submit_layout",
224
- /** 网格布局可选的列. */
225
- VAR_SPAN = "var_span",
226
- /** 按钮显示样式. */
227
- VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type",
228
- /** 宽度单位. */
229
- VAR_WIDTH_UNIT = "var_width_unit"
230
- }
231
- /** 高级查询的操作符. */
232
- export declare enum KG_DYNAMIC_QUERY_OPERATOR {
233
- /** 等于. */
234
- EQ = "eq",
235
- /** 不等于. */
236
- NE = "ne",
237
- /** 大于. */
238
- GT = "gt",
239
- /** 小于. */
240
- LT = "lt",
241
- /** 大于等于. */
242
- GTE = "gte",
243
- /** 小于等于. */
244
- LTE = "lte",
245
- /** 以之开始. */
246
- START_WITH = "start",
247
- /** 以之结束. */
248
- END_WITH = "end",
249
- /** 包含. */
250
- CONTAIN = "contain",
251
- /** 属于. */
252
- IN = "in",
253
- /** 范围之内. */
254
- BETWEEN = "between"
255
- }
256
- /** 请求头部. */
257
- export declare enum KG_HTTP_HEADERS {
258
- /** 是否启用高级查询. */
259
- KG_IS_DYNAMIC_QUERY = "Kg-Is-Dynamic-Query",
260
- /** 拼接后的查询 SQL: WHERE + ORDER BY. */
261
- KG_QUERY_SQL = "Kg-Query-Sql",
262
- /** 拼接后的查询 SQL: WHERE. */
263
- KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql",
264
- /** 拼接后的查询 SQL: ORDER BY. */
265
- KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql",
266
- /**
267
- * <p>高级查询时, 每个查询字段的操作符(=,>,<...).</p>
268
- * <p>是一个 JSON 字符串, 由后端进行解析. 其中的 key 表示查询字段的名称, 其中的 value 表示查询字段的操作符.</p>
269
- */
270
- KG_QUERY_OPERATOR = "Kg-Query-Operator",
271
- /**
272
- * 仓库编号.
273
- */
274
- KG_WAREHOUSE = "Kg-Warehouse"
275
- }
276
- /** 特殊属性:请求返回的原始响应数据. */
277
- export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
278
- /** 模块菜单的临时ID:数据管理. */
279
- export declare const KG_TMP_MENU_ID__DATA_MANAGER = "KG_TMP_MENU_ID__DATA_MANAGER";
280
- /** 模块菜单的临时ID:仓库管理. */
281
- export declare const KG_TMP_MENU_ID__BUSINESS_MANAGER = "KG_TMP_MENU_ID__BUSINESS_MANAGER";
282
- /** 模块菜单的临时ID:WCS. */
283
- export declare const KG_TMP_MENU_ID__WCS = "KG_TMP_MENU_ID__WCS";
284
- /** 模块菜单的临时ID:系统配置. */
285
- export declare const KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS";
286
- /** 模块菜单的临时ID:PDA. */
287
- export declare const KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";