@kengic/vue 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. package/dist/kengic-vue.js +1014 -943
  2. package/dist/src/{components → src/components}/KgForm/index.hooks.d.ts +7 -1
  3. package/dist/src/{components → src/components}/KgForm/index.store.d.ts +17 -7
  4. package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -2
  5. package/dist/src/{components → src/components}/KgSubmit/index.hooks.d.ts +7 -1
  6. package/dist/src/{components → src/components}/KgSubmit/index.store.d.ts +14 -3
  7. package/dist/src/{components → src/components}/KgTable/index.store.d.ts +5 -0
  8. package/dist/src/{components → src/components}/KgVar/index.store.d.ts +13 -2
  9. package/package.json +1 -1
  10. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Add.d.ts +0 -0
  11. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Delete.d.ts +0 -0
  12. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/DeleteBatch.d.ts +0 -0
  13. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Edit.d.ts +0 -0
  14. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/ExportXls.d.ts +0 -0
  15. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/ImportExcel.d.ts +0 -0
  16. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/List.d.ts +0 -0
  17. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/QueryById.d.ts +0 -0
  18. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/index.d.ts +0 -0
  19. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarController/GetAll.d.ts +0 -0
  20. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarController/index.d.ts +0 -0
  21. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +0 -0
  22. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/Update.d.ts +0 -0
  23. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/index.d.ts +0 -0
  24. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +0 -0
  25. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -0
  26. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Add.d.ts +0 -0
  27. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +0 -0
  28. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +0 -0
  29. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +0 -0
  30. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +0 -0
  31. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +0 -0
  32. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/List.d.ts +0 -0
  33. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +0 -0
  34. /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/index.d.ts +0 -0
  35. /package/dist/src/{apis → src/apis}/WMS/Controllers/WhController/ListVO.d.ts +0 -0
  36. /package/dist/src/{apis → src/apis}/WMS/Controllers/WhController/index.d.ts +0 -0
  37. /package/dist/src/{apis → src/apis}/WMS/Controllers/index.d.ts +0 -0
  38. /package/dist/src/{apis → src/apis}/WMS/index.d.ts +0 -0
  39. /package/dist/src/{apis → src/apis}/WMS/models.d.ts +0 -0
  40. /package/dist/src/{apis → src/apis}/api.d.ts +0 -0
  41. /package/dist/src/{apis → src/apis}/def.d.ts +0 -0
  42. /package/dist/src/{apis → src/apis}/index.d.ts +0 -0
  43. /package/dist/src/{components → src/components}/KgAppSelect/KgAppSelect.d.ts +0 -0
  44. /package/dist/src/{components → src/components}/KgAppSelect/index.d.ts +0 -0
  45. /package/dist/src/{components → src/components}/KgAppSelect/index.hooks.d.ts +0 -0
  46. /package/dist/src/{components → src/components}/KgAppSelect/index.store.d.ts +0 -0
  47. /package/dist/src/{components → src/components}/KgButton/KgButton.Item.d.ts +0 -0
  48. /package/dist/src/{components → src/components}/KgButton/KgButton.Item.data.d.ts +0 -0
  49. /package/dist/src/{components → src/components}/KgButton/KgButton.d.ts +0 -0
  50. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Copy.d.ts +0 -0
  51. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Create.d.ts +0 -0
  52. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Delete.d.ts +0 -0
  53. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Export.d.ts +0 -0
  54. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Import.d.ts +0 -0
  55. /package/dist/src/{components → src/components}/KgButton/components/KgButton.ImportTemplate.d.ts +0 -0
  56. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Other.d.ts +0 -0
  57. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Search.d.ts +0 -0
  58. /package/dist/src/{components → src/components}/KgButton/components/KgButton.Update.d.ts +0 -0
  59. /package/dist/src/{components → src/components}/KgButton/index.d.ts +0 -0
  60. /package/dist/src/{components → src/components}/KgButton/index.hooks.d.ts +0 -0
  61. /package/dist/src/{components → src/components}/KgButton/index.store.d.ts +0 -0
  62. /package/dist/src/{components → src/components}/KgForm/KgForm.d.ts +0 -0
  63. /package/dist/src/{components → src/components}/KgForm/index.d.ts +0 -0
  64. /package/dist/src/{components → src/components}/KgForm/index.vm.d.ts +0 -0
  65. /package/dist/src/{components → src/components}/KgForm.Item/KgForm.Item.d.ts +0 -0
  66. /package/dist/src/{components → src/components}/KgForm.Item/KgForm.Item.hooks.d.ts +0 -0
  67. /package/dist/src/{components → src/components}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -0
  68. /package/dist/src/{components → src/components}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -0
  69. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -0
  70. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +0 -0
  71. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -0
  72. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -0
  73. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -0
  74. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -0
  75. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -0
  76. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +0 -0
  77. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -0
  78. /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.TextArea.d.ts +0 -0
  79. /package/dist/src/{components → src/components}/KgForm.Item/index.d.ts +0 -0
  80. /package/dist/src/{components → src/components}/KgForm.Item/index.vm.d.ts +0 -0
  81. /package/dist/src/{components → src/components}/KgModal/KgModal.d.ts +0 -0
  82. /package/dist/src/{components → src/components}/KgModal/components/KgModal.Close.d.ts +0 -0
  83. /package/dist/src/{components → src/components}/KgModal/index.d.ts +0 -0
  84. /package/dist/src/{components → src/components}/KgModal/index.vm.d.ts +0 -0
  85. /package/dist/src/{components → src/components}/KgProgressA/KgProgressA.d.ts +0 -0
  86. /package/dist/src/{components → src/components}/KgProgressA/index.d.ts +0 -0
  87. /package/dist/src/{components → src/components}/KgResizable/KgResizable.d.ts +0 -0
  88. /package/dist/src/{components → src/components}/KgResizable/index.d.ts +0 -0
  89. /package/dist/src/{components → src/components}/KgSearch/KgSearch.d.ts +0 -0
  90. /package/dist/src/{components → src/components}/KgSearch/KgSearch.hooks.d.ts +0 -0
  91. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +0 -0
  92. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +0 -0
  93. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +0 -0
  94. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +0 -0
  95. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -0
  96. /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.data.d.ts +0 -0
  97. /package/dist/src/{components → src/components}/KgSearch/index.d.ts +0 -0
  98. /package/dist/src/{components → src/components}/KgSearch/index.hooks.d.ts +0 -0
  99. /package/dist/src/{components → src/components}/KgSearch/index.store.d.ts +0 -0
  100. /package/dist/src/{components → src/components}/KgSearch/index.vm.d.ts +0 -0
  101. /package/dist/src/{components → src/components}/KgSubmit/KgSubmit.d.ts +0 -0
  102. /package/dist/src/{components → src/components}/KgSubmit/KgSubmit.hooks.d.ts +0 -0
  103. /package/dist/src/{components → src/components}/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +0 -0
  104. /package/dist/src/{components → src/components}/KgSubmit/components/KgSubmit.Header.d.ts +0 -0
  105. /package/dist/src/{components → src/components}/KgSubmit/index.d.ts +0 -0
  106. /package/dist/src/{components → src/components}/KgSubmit/index.vm.d.ts +0 -0
  107. /package/dist/src/{components → src/components}/KgTable/KgTable.d.ts +0 -0
  108. /package/dist/src/{components → src/components}/KgTable/KgTable.hooks.d.ts +0 -0
  109. /package/dist/src/{components → src/components}/KgTable/components/KgTable.Cell.d.ts +0 -0
  110. /package/dist/src/{components → src/components}/KgTable/components/KgTable.Info.d.ts +0 -0
  111. /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -0
  112. /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.d.ts +0 -0
  113. /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.hooks.d.ts +0 -0
  114. /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +0 -0
  115. /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +0 -0
  116. /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +0 -0
  117. /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -0
  118. /package/dist/src/{components → src/components}/KgTable/index.d.ts +0 -0
  119. /package/dist/src/{components → src/components}/KgTable/index.hooks.d.ts +0 -0
  120. /package/dist/src/{components → src/components}/KgTable/index.vm.d.ts +0 -0
  121. /package/dist/src/{components → src/components}/KgVar/KgVar.d.ts +0 -0
  122. /package/dist/src/{components → src/components}/KgVar/index.d.ts +0 -0
  123. /package/dist/src/{components → src/components}/KgVar/index.hooks.d.ts +0 -0
  124. /package/dist/src/{components → src/components}/KgVar/index.store.service.d.ts +0 -0
  125. /package/dist/src/{components → src/components}/KgVar/index.vm.d.ts +0 -0
  126. /package/dist/src/{components → src/components}/KgVarConfig/KgVarConfig.d.ts +0 -0
  127. /package/dist/src/{components → src/components}/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +0 -0
  128. /package/dist/src/{components → src/components}/KgVarConfig/components/KgVarConfig.Modal.d.ts +0 -0
  129. /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -0
  130. /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -0
  131. /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -0
  132. /package/dist/src/{components → src/components}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +0 -0
  133. /package/dist/src/{components → src/components}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -0
  134. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -0
  135. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.d.ts +0 -0
  136. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.data.d.ts +0 -0
  137. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +0 -0
  138. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +0 -0
  139. /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +0 -0
  140. /package/dist/src/{components → src/components}/KgVarConfig/index.d.ts +0 -0
  141. /package/dist/src/{components → src/components}/KgVarConfig/index.store.d.ts +0 -0
  142. /package/dist/src/{components → src/components}/KgVarConfig/index.vm.d.ts +0 -0
  143. /package/dist/src/{components → src/components}/KgWarehouse/KgWarehouse.d.ts +0 -0
  144. /package/dist/src/{components → src/components}/KgWarehouse/index.d.ts +0 -0
  145. /package/dist/src/{components → src/components}/KgWarehouse/index.guard.d.ts +0 -0
  146. /package/dist/src/{components → src/components}/KgWarehouse/index.hooks.d.ts +0 -0
  147. /package/dist/src/{components → src/components}/KgWarehouse/index.store.d.ts +0 -0
  148. /package/dist/src/{components → src/components}/KgYesOrNo/KgYesOrNo.d.ts +0 -0
  149. /package/dist/src/{components → src/components}/KgYesOrNo/index.d.ts +0 -0
  150. /package/dist/src/{components → src/components}/index.d.ts +0 -0
  151. /package/dist/src/{components → src/components}/util.d.ts +0 -0
  152. /package/dist/src/{config → src/config}/index.d.ts +0 -0
  153. /package/dist/src/{config → src/config}/index.hooks.d.ts +0 -0
  154. /package/dist/src/{config → src/config}/index.store.d.ts +0 -0
  155. /package/dist/src/{config → src/config}/setup.d.ts +0 -0
  156. /package/dist/src/{consts → src/consts}/i18n/en.d.ts +0 -0
  157. /package/dist/src/{consts → src/consts}/i18n/index.d.ts +0 -0
  158. /package/dist/src/{consts → src/consts}/i18n/zh_CN.d.ts +0 -0
  159. /package/dist/src/{consts → src/consts}/index.d.ts +0 -0
  160. /package/dist/src/{consts → src/consts}/index.vm.d.ts +0 -0
  161. /package/dist/src/{consts → src/consts}/injection-keys.const.d.ts +0 -0
  162. /package/dist/src/{helpers → src/helpers}/ant-design-vue.d.ts +0 -0
  163. /package/dist/src/{helpers → src/helpers}/tsx.helper.d.ts +0 -0
  164. /package/dist/src/{index.d.ts → src/index.d.ts} +0 -0
  165. /package/dist/src/{services → src/services}/http-client.d.ts +0 -0
  166. /package/dist/src/{services → src/services}/index.d.ts +0 -0
  167. /package/dist/src/{utils → src/utils}/dom.util.d.ts +0 -0
  168. /package/dist/src/{utils → src/utils}/index.d.ts +0 -0
  169. /package/dist/src/{utils → src/utils}/kg.util.d.ts +0 -0
  170. /package/dist/src/{utils → src/utils}/logger.util.d.ts +0 -0
  171. /package/dist/src/{utils → src/utils}/route.util.d.ts +0 -0
  172. /package/dist/src/{utils → src/utils}/var.util.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import { IRemoveEventListenerHandler } from '../../consts';
2
- import { IKgFormLookupBeforeOkCb, IKgFormLookupOkCb, IKgFormSelectChangeCb, IKgFormStore } from './index.store';
2
+ import { IKgFormLookupBeforeOkCb, IKgFormLookupBeforeOpenCb, IKgFormLookupOkCb, IKgFormSelectChangeCb, IKgFormStore } from './index.store';
3
3
  export declare type IUseKgForm = {
4
4
  formID: string;
5
5
  /** 状态数据. */
@@ -9,6 +9,12 @@ export declare type IUseKgForm = {
9
9
  * @param once 是否只会触发一次. 默认为 undefined.
10
10
  */
11
11
  onSelectChange(cb: IKgFormSelectChangeCb, once?: boolean): IRemoveEventListenerHandler;
12
+ /**
13
+ * 监听事件: 查找弹窗打开之前.
14
+ * @param cb 回调函数.
15
+ * @param once 是否只会触发一次. 默认为 undefined.
16
+ */
17
+ onLookupBeforeOpen(cb: IKgFormLookupBeforeOpenCb, once?: boolean): IRemoveEventListenerHandler;
12
18
  /**
13
19
  * 监听事件: 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件.
14
20
  * @param cb 回调函数.
@@ -4,11 +4,12 @@ import { IKgEventCb } from '../../consts';
4
4
  import { IKgTableRow } from '../KgTable';
5
5
  /**
6
6
  * 事件类型.
7
- * 'selectChange': 下拉列表选中某个(可能多个)数据
8
- * 'lookupBeforeOk': 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件
9
- * 'lookupOk': 查找弹窗点击确定
7
+ * 'selectChange': 下拉列表选中某个(可能多个)数据
8
+ * 'lookupBeforeOpen': 查找弹窗打开之前
9
+ * 'lookupBeforeOk': 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件
10
+ * 'lookupOk': 查找弹窗点击确定
10
11
  */
11
- export declare type IKgFormEvent = 'selectChange' | 'lookupBeforeOk' | 'lookupOk';
12
+ export declare type IKgFormEvent = 'selectChange' | 'lookupBeforeOpen' | 'lookupBeforeOk' | 'lookupOk';
12
13
  /** 事件监听函数: selectChange. */
13
14
  export declare type IKgFormSelectChangeCbParam = {
14
15
  /** 变量. */
@@ -17,6 +18,14 @@ export declare type IKgFormSelectChangeCbParam = {
17
18
  rows: any | null;
18
19
  };
19
20
  export declare type IKgFormSelectChangeCb = ((param: IKgFormSelectChangeCbParam) => Promise<boolean>) & IKgEventCb;
21
+ /** 事件监听函数: lookupBeforeOpen. */
22
+ export declare type IKgFormLookupBeforeOpenCbParam = {
23
+ /** 变量. */
24
+ var_nam: string;
25
+ /** 查找弹出的界面标识. */
26
+ lookupFormID: string;
27
+ };
28
+ export declare type IKgFormLookupBeforeOpenCb = ((param: IKgFormLookupBeforeOpenCbParam) => Promise<boolean>) & IKgEventCb;
20
29
  /** 事件监听函数: lookupBeforeOk. */
21
30
  export declare type IKgFormLookupBeforeOkCbParam = {
22
31
  /** 变量. */
@@ -51,12 +60,13 @@ export declare type IKgFormLookupOkCbParam = {
51
60
  rows?: Array<IKgTableRow> | null;
52
61
  };
53
62
  export declare type IKgFormLookupOkCb = ((param: IKgFormLookupOkCbParam) => Promise<boolean>) & IKgEventCb;
54
- export declare type IKgFormCbParam = IKgFormLookupBeforeOkCbParam | IKgFormLookupOkCbParam | IKgFormSelectChangeCbParam;
55
- export declare type IKgFormCb = IKgFormLookupBeforeOkCb | IKgFormLookupOkCb | IKgFormSelectChangeCb;
63
+ export declare type IKgFormCbParam = IKgFormLookupBeforeOpenCbParam | IKgFormLookupBeforeOkCbParam | IKgFormLookupOkCbParam | IKgFormSelectChangeCbParam;
64
+ export declare type IKgFormCb = IKgFormLookupBeforeOpenCb | IKgFormLookupBeforeOkCb | IKgFormLookupOkCb | IKgFormSelectChangeCb;
56
65
  export interface IKgFormState {
57
66
  selectChangeListenersMap: Map<string, Array<IKgFormSelectChangeCb>>;
58
- lookupOkListenersMap: Map<string, Array<IKgFormLookupOkCb>>;
67
+ lookupBeforeOpenListenersMap: Map<string, Array<IKgFormLookupBeforeOpenCb>>;
59
68
  lookupBeforeOkListenersMap: Map<string, Array<IKgFormLookupBeforeOkCb>>;
69
+ lookupOkListenersMap: Map<string, Array<IKgFormLookupOkCb>>;
60
70
  }
61
71
  export declare type IKgFormStoreDefinition = StoreDefinition<'KgForm', IKgFormState, {}, {
62
72
  addEventListener(frm_id: string, event: IKgFormEvent, cb: IKgFormCb): void;
@@ -19,8 +19,8 @@ declare const _default: import("vue").DefineComponent<{
19
19
  type: import("vue").PropType<boolean>;
20
20
  default: boolean;
21
21
  };
22
- /** 获取下拉列表数据. */
23
22
  kgAllowClear: {
23
+ /** 获取下拉列表数据. */
24
24
  type: import("vue").PropType<boolean>;
25
25
  default: boolean;
26
26
  };
@@ -60,8 +60,8 @@ declare const _default: import("vue").DefineComponent<{
60
60
  type: import("vue").PropType<boolean>;
61
61
  default: boolean;
62
62
  };
63
- /** 获取下拉列表数据. */
64
63
  kgAllowClear: {
64
+ /** 获取下拉列表数据. */
65
65
  type: import("vue").PropType<boolean>;
66
66
  default: boolean;
67
67
  };
@@ -2,7 +2,7 @@ import { RuleObject } from 'ant-design-vue/es/form';
2
2
  import { FormInstance } from 'ant-design-vue/lib/form/Form';
3
3
  import { Ref } from 'vue';
4
4
  import { IRemoveEventListenerHandler, KG_VAR_SUBMIT__DISPLAY_TYPE } from '../../consts';
5
- import { IKgSubmitAfterValidateCb, IKgSubmitBeforeOkCb, IKgSubmitBeforeRequestCb, IKgSubmitCloseCb, IKgSubmitErrorCb, IKgSubmitOkCb, IKgSubmitOpenCb, IKgSubmitStore } from './index.store';
5
+ import { IKgSubmitAfterValidateCb, IKgSubmitBeforeOkCb, IKgSubmitBeforeOpenCb, IKgSubmitBeforeRequestCb, IKgSubmitCloseCb, IKgSubmitErrorCb, IKgSubmitOkCb, IKgSubmitOpenCb, IKgSubmitStore } from './index.store';
6
6
  export declare type IUseKgSubmit = {
7
7
  formID: string;
8
8
  /** 状态数据. */
@@ -13,6 +13,12 @@ export declare type IUseKgSubmit = {
13
13
  rules: Ref<Record<string, Array<RuleObject>>>;
14
14
  /** 显示方式. */
15
15
  displayType: Ref<KG_VAR_SUBMIT__DISPLAY_TYPE>;
16
+ /**
17
+ * 监听事件: 打开弹窗之前.
18
+ * @param cb 回调函数.
19
+ * @param once 是否只会触发一次. 默认为 undefined.
20
+ * */
21
+ onBeforeOpen(cb: IKgSubmitBeforeOpenCb, once?: boolean): IRemoveEventListenerHandler;
16
22
  /**
17
23
  * 监听事件: 打开弹窗.
18
24
  * @param cb 回调函数.
@@ -6,6 +6,7 @@ import { IKgEventCb } from '../../consts';
6
6
  import { IKgTableRow } from '../KgTable';
7
7
  /**
8
8
  * 事件类型.
9
+ * 'beforeOpen': 打开弹窗之前
9
10
  * 'open': 打开弹窗
10
11
  * 'beforeOk': 点击保存按钮之后, 执行默认逻辑之前
11
12
  * 'afterValidate': 表单验证成功
@@ -14,7 +15,16 @@ import { IKgTableRow } from '../KgTable';
14
15
  * 'error': 请求失败. 请求失败了, 或者请求返回了错误消息
15
16
  * 'close': 关闭弹窗
16
17
  */
17
- export declare type IKgSubmitEvent = 'open' | 'beforeOk' | 'afterValidate' | 'beforeRequest' | 'ok' | 'error' | 'close';
18
+ export declare type IKgSubmitEvent = 'beforeOpen' | 'open' | 'beforeOk' | 'afterValidate' | 'beforeRequest' | 'ok' | 'error' | 'close';
19
+ /** 事件监听函数: beforeOpen. */
20
+ export declare type IKgSubmitBeforeOpenCbParam = {
21
+ isCreating: boolean | null;
22
+ isUpdating: boolean | null;
23
+ isCopying: boolean | null;
24
+ isDeleting: boolean | null;
25
+ row: IKgTableRow | null;
26
+ };
27
+ export declare type IKgSubmitBeforeOpenCb = ((param: IKgSubmitBeforeOpenCbParam) => Promise<boolean>) & IKgEventCb;
18
28
  /** 事件监听函数: open. */
19
29
  export declare type IKgSubmitOpenCbParam = {
20
30
  isCreating: boolean | null;
@@ -74,9 +84,10 @@ export declare type IKgSubmitOkCb = ((param: IKgSubmitOkCbParam) => Promise<bool
74
84
  export declare type IKgSubmitErrorCb = ((param: any) => Promise<boolean>) & IKgEventCb;
75
85
  /** 事件监听函数: close. */
76
86
  export declare type IKgSubmitCloseCb = ((param?: any | null) => Promise<boolean>) & IKgEventCb;
77
- export declare type IKgSubmitCbParam = IKgSubmitOpenCbParam | IKgSubmitBeforeOkCbParam | IKgSubmitAfterValidateCbParam | IKgSubmitBeforeRequestCbParam | IKgSubmitOkCbParam | null;
78
- export declare type IKgSubmitCb = IKgSubmitOpenCb | IKgSubmitBeforeOkCb | IKgSubmitAfterValidateCb | IKgSubmitBeforeRequestCb | IKgSubmitOkCb | IKgSubmitErrorCb | IKgSubmitCloseCb;
87
+ export declare type IKgSubmitCbParam = IKgSubmitBeforeOpenCbParam | IKgSubmitOpenCbParam | IKgSubmitBeforeOkCbParam | IKgSubmitAfterValidateCbParam | IKgSubmitBeforeRequestCbParam | IKgSubmitOkCbParam | null;
88
+ export declare type IKgSubmitCb = IKgSubmitBeforeOpenCb | IKgSubmitOpenCb | IKgSubmitBeforeOkCb | IKgSubmitAfterValidateCb | IKgSubmitBeforeRequestCb | IKgSubmitOkCb | IKgSubmitErrorCb | IKgSubmitCloseCb;
79
89
  export interface IKgSubmitState {
90
+ beforeOpenListenersMap: Map<string, Array<IKgSubmitBeforeOpenCb>>;
80
91
  openListenersMap: Map<string, Array<IKgSubmitOpenCb>>;
81
92
  beforeOkListenersMap: Map<string, Array<IKgSubmitBeforeOkCb>>;
82
93
  afterValidateListenersMap: Map<string, Array<IKgSubmitAfterValidateCb>>;
@@ -106,6 +106,11 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
106
106
  * @param selectedRows 勾选的行.
107
107
  */
108
108
  setSelectedRows(formID: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
109
+ /**
110
+ * 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
111
+ * @param formID 界面标识.
112
+ */
113
+ refreshSelectedRows(formID: string | null | undefined): void;
109
114
  /**
110
115
  * 设置某行的勾选状态.
111
116
  * @param formID 界面标识.
@@ -82,6 +82,10 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
82
82
  getTopFormIDs(): Array<string>;
83
83
  /** 获取界面层级. */
84
84
  getFormLevel(): (frm_id?: string | null) => number;
85
+ /**
86
+ * 翻译变量.
87
+ */
88
+ t(): (frm_id?: string | null, var_nam?: string | null) => string;
85
89
  isRetrieving(): (frm_id?: string | null) => boolean | null;
86
90
  isRetrievingVarProfileMaster(): (frm_id?: string | null) => boolean | null;
87
91
  isRetrievingVarGridMaster(): (frm_id?: string | null) => boolean | null;
@@ -95,6 +99,9 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
95
99
  isDeletingRequesting(): (frm_id?: string | null) => boolean | null;
96
100
  isOtherRequesting(): (frm_id?: string | null) => boolean | null;
97
101
  getVarCatalogs(): (frm_id?: string | null) => Array<VarCatalog> | null;
102
+ /**
103
+ * 根据 frm_id 和 var_nam 获取 VarCatalog.
104
+ */
98
105
  getVarCatalog(): (frm_id?: string | null, var_nam?: string | null) => VarCatalog | null;
99
106
  getVarLookup(): (frm_id?: string | null, var_nam?: string | null) => VarLookup | null;
100
107
  getVarPossibility(): (frm_id?: string | null, var_nam?: string | null) => VarPossibility | null;
@@ -167,6 +174,11 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
167
174
  getCurrentVisibleVarGridDetails(): (frm_id?: string | null) => Array<VarGridDetail> | null;
168
175
  getCurrentVisibleVarGridDetailsTotalWidth(): (frm_id?: string | null) => number | null;
169
176
  }, {
177
+ /**
178
+ * 清理数据.
179
+ * @param frm_id 页面标识.
180
+ */
181
+ dispose(frm_id: string): void;
170
182
  /**
171
183
  * 注册事件监听.
172
184
  * @param frm_id 界面标识.
@@ -189,7 +201,6 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
189
201
  */
190
202
  emit(frm_id: string, event: IKgVarEvent, args?: any): void;
191
203
  enter(frm_id: IFormID): Promise<void>;
192
- leave(frm_id: string): void;
193
204
  /**
194
205
  * 查询所有变量配置.
195
206
  * @param frm_id 界面标识.
@@ -269,7 +280,7 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
269
280
  * @param var_nam 变量名称
270
281
  * @param properties 要修改的部分属性.
271
282
  */
272
- patchVarPossibilityCommandParameter(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): void;
283
+ patchVarPossibilityCommandParameter(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): Promise<void>;
273
284
  /**
274
285
  * 拖拽排序 VarGridDetail 列表.
275
286
  * @param frm_id 界面标识.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes