@kengic/vue 0.16.7-beta.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +3476 -2938
  4. package/dist/src/apis/WMS/Controllers/VarContextController/Add.d.ts +16 -0
  5. package/dist/src/apis/WMS/Controllers/VarContextController/Delete.d.ts +18 -0
  6. package/dist/src/apis/WMS/Controllers/VarContextController/DeleteBatch.d.ts +18 -0
  7. package/dist/src/apis/WMS/Controllers/VarContextController/Edit.d.ts +16 -0
  8. package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +24 -0
  9. package/dist/src/apis/WMS/Controllers/VarContextController/ImportExcel.d.ts +15 -0
  10. package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +31 -0
  11. package/dist/src/apis/WMS/Controllers/VarContextController/QueryById.d.ts +19 -0
  12. package/dist/src/apis/WMS/Controllers/VarContextController/index.d.ts +8 -0
  13. package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +19 -0
  14. package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +1 -0
  15. package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
  16. package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
  17. package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
  18. package/dist/src/apis/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +19 -0
  19. package/dist/src/apis/WMS/Controllers/VarProfileMasterController/index.d.ts +1 -0
  20. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Add.d.ts +16 -0
  21. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +18 -0
  22. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +18 -0
  23. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +16 -0
  24. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +30 -0
  25. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +15 -0
  26. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/List.d.ts +37 -0
  27. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +19 -0
  28. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/index.d.ts +8 -0
  29. package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +52 -0
  30. package/dist/src/apis/WMS/Controllers/WhController/index.d.ts +1 -0
  31. package/dist/src/apis/WMS/Controllers/index.d.ts +6 -0
  32. package/dist/src/apis/WMS/index.d.ts +2 -0
  33. package/dist/src/apis/WMS/models.d.ts +728 -0
  34. package/dist/src/apis/api.d.ts +1 -0
  35. package/dist/src/apis/def.d.ts +1 -0
  36. package/dist/src/apis/index.d.ts +2 -0
  37. package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +47 -0
  38. package/dist/src/components/KgAppSelect/index.d.ts +3 -0
  39. package/dist/src/components/KgAppSelect/index.hooks.d.ts +41 -0
  40. package/dist/src/components/KgAppSelect/index.store.d.ts +73 -0
  41. package/dist/src/components/KgButton/KgButton.Item.d.ts +41 -0
  42. package/dist/src/components/KgButton/KgButton.Item.data.d.ts +31 -0
  43. package/dist/src/components/KgButton/KgButton.d.ts +34 -0
  44. package/dist/src/components/KgButton/KgButton.hooks.d.ts +61 -0
  45. package/dist/src/components/KgButton/KgButton.store.d.ts +89 -0
  46. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +39 -0
  47. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +39 -0
  48. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +40 -0
  49. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +39 -0
  50. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +39 -0
  51. package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +39 -0
  52. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +40 -0
  53. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +40 -0
  54. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +39 -0
  55. package/dist/src/components/KgButton/index.d.ts +62 -0
  56. package/dist/src/components/KgForm/KgForm.d.ts +414 -0
  57. package/dist/src/components/KgForm/index.d.ts +604 -0
  58. package/dist/src/components/KgForm/index.hooks.d.ts +42 -0
  59. package/dist/src/components/KgForm/index.store.d.ts +107 -0
  60. package/dist/src/components/KgForm/index.vm.d.ts +9 -0
  61. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +100 -0
  62. package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +17 -0
  63. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +17 -0
  64. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +32 -0
  65. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +103 -0
  66. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +102 -0
  67. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +100 -0
  68. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +100 -0
  69. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +99 -0
  70. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +99 -0
  71. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +99 -0
  72. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +104 -0
  73. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +27 -0
  74. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +99 -0
  75. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +99 -0
  76. package/dist/src/components/KgForm.Item/index.d.ts +2 -0
  77. package/dist/src/components/KgForm.Item/index.vm.d.ts +104 -0
  78. package/dist/src/components/KgModal/KgModal.d.ts +395 -0
  79. package/dist/src/components/KgModal/components/KgModal.Close.d.ts +41 -0
  80. package/dist/src/components/KgModal/index.d.ts +2 -0
  81. package/dist/src/components/KgModal/index.vm.d.ts +194 -0
  82. package/dist/src/components/KgProgressA/KgProgressA.d.ts +85 -0
  83. package/dist/src/components/KgProgressA/index.d.ts +1 -0
  84. package/dist/src/components/KgResizable/KgResizable.d.ts +143 -0
  85. package/dist/src/components/KgResizable/index.d.ts +1 -0
  86. package/dist/src/components/KgSearch/KgSearch.d.ts +42 -0
  87. package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +39 -0
  88. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +22 -0
  89. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +8 -0
  90. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +24 -0
  91. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +7 -0
  92. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +32 -0
  93. package/dist/src/components/KgSearch/index.d.ts +3 -0
  94. package/dist/src/components/KgSearch/index.hooks.d.ts +41 -0
  95. package/dist/src/components/KgSearch/index.store.d.ts +86 -0
  96. package/dist/src/components/KgSearch/index.vm.d.ts +1 -0
  97. package/dist/src/components/KgSubmit/KgSubmit.d.ts +41 -0
  98. package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +20 -0
  99. package/dist/src/components/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +28 -0
  100. package/dist/src/components/KgSubmit/components/KgSubmit.Header.d.ts +82 -0
  101. package/dist/src/components/KgSubmit/index.d.ts +4 -0
  102. package/dist/src/components/KgSubmit/index.hooks.d.ts +74 -0
  103. package/dist/src/components/KgSubmit/index.store.d.ts +130 -0
  104. package/dist/src/components/KgSubmit/index.vm.d.ts +10 -0
  105. package/dist/src/components/KgTable/KgTable.d.ts +39 -0
  106. package/dist/src/components/KgTable/KgTable.hooks.d.ts +43 -0
  107. package/dist/src/components/KgTable/components/KgTable.Cell.d.ts +61 -0
  108. package/dist/src/components/KgTable/components/KgTable.Info.d.ts +58 -0
  109. package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +5 -0
  110. package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +22 -0
  111. package/dist/src/components/KgTable/components/setting/KgTable.Setting.hooks.d.ts +14 -0
  112. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +22 -0
  113. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +21 -0
  114. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +24 -0
  115. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts +23 -0
  116. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +33 -0
  117. package/dist/src/components/KgTable/index.d.ts +4 -0
  118. package/dist/src/components/KgTable/index.hooks.d.ts +84 -0
  119. package/dist/src/components/KgTable/index.store.d.ts +157 -0
  120. package/dist/src/components/KgTable/index.vm.d.ts +66 -0
  121. package/dist/src/components/KgVar/KgVar.d.ts +28 -0
  122. package/dist/src/components/KgVar/index.d.ts +4 -0
  123. package/dist/src/components/KgVar/index.hooks.d.ts +242 -0
  124. package/dist/src/components/KgVar/index.store.d.ts +315 -0
  125. package/dist/src/components/KgVar/index.store.service.d.ts +21 -0
  126. package/dist/src/components/KgVar/index.vm.d.ts +47 -0
  127. package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +2 -0
  128. package/dist/src/components/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +24 -0
  129. package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +17 -0
  130. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +25 -0
  131. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +29 -0
  132. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +22 -0
  133. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +25 -0
  134. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +22 -0
  135. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +33 -0
  136. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.d.ts +3 -0
  137. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.data.d.ts +3 -0
  138. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +3 -0
  139. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +3 -0
  140. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +3 -0
  141. package/dist/src/components/KgVarConfig/index.d.ts +2 -0
  142. package/dist/src/components/KgVarConfig/index.store.d.ts +20 -0
  143. package/dist/src/components/KgVarConfig/index.vm.d.ts +3 -0
  144. package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +38 -0
  145. package/dist/src/components/KgWarehouse/index.d.ts +4 -0
  146. package/dist/src/components/KgWarehouse/index.guard.d.ts +8 -0
  147. package/dist/src/components/KgWarehouse/index.hooks.d.ts +27 -0
  148. package/dist/src/components/KgWarehouse/index.store.d.ts +63 -0
  149. package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +60 -0
  150. package/dist/src/components/KgYesOrNo/index.d.ts +1 -0
  151. package/dist/src/components/index.d.ts +16 -0
  152. package/dist/src/components/util.d.ts +14 -0
  153. package/dist/src/config/index.d.ts +3 -0
  154. package/dist/src/config/index.hooks.d.ts +43 -0
  155. package/dist/src/config/index.store.d.ts +192 -0
  156. package/dist/src/config/setup.d.ts +45 -0
  157. package/dist/src/consts/i18n/en.d.ts +228 -0
  158. package/dist/src/consts/i18n/index.d.ts +2 -0
  159. package/dist/src/consts/i18n/zh_CN.d.ts +227 -0
  160. package/dist/src/consts/index.d.ts +253 -0
  161. package/dist/src/consts/index.vm.d.ts +170 -0
  162. package/dist/src/consts/injection-keys.const.d.ts +9 -0
  163. package/dist/src/helpers/ant-design-vue.d.ts +316 -0
  164. package/dist/src/helpers/tsx.helper.d.ts +13 -0
  165. package/dist/src/index.d.ts +9 -0
  166. package/dist/src/pages/KgPageDda/KgPageDda.d.ts +8 -0
  167. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +32 -0
  168. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.d.ts +7 -0
  169. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +8 -0
  170. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Child.d.ts +7 -0
  171. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Menu.d.ts +7 -0
  172. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Search.d.ts +7 -0
  173. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Submit.d.ts +7 -0
  174. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Table.d.ts +7 -0
  175. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.d.ts +29 -0
  176. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +26 -0
  177. package/dist/src/pages/KgPageDda/index.const.d.ts +11 -0
  178. package/dist/src/pages/KgPageDda/index.d.ts +5 -0
  179. package/dist/src/pages/index.d.ts +2 -0
  180. package/dist/src/services/http-client.d.ts +46 -0
  181. package/dist/src/services/index.d.ts +1 -0
  182. package/dist/src/utils/index.d.ts +6 -0
  183. package/dist/src/utils/kg-auth.util.d.ts +26 -0
  184. package/dist/src/utils/kg-dom.util.d.ts +12 -0
  185. package/dist/src/utils/kg-logger.util.d.ts +65 -0
  186. package/dist/src/utils/kg-route.util.d.ts +54 -0
  187. package/dist/src/utils/kg-var.util.d.ts +36 -0
  188. package/dist/src/utils/kg.util.d.ts +114 -0
  189. package/package.json +6 -5
@@ -0,0 +1 @@
1
+ export { WMSAPI as WMS } from './WMS';
@@ -0,0 +1 @@
1
+ export { WMSDEF as WMS } from './WMS';
@@ -0,0 +1,2 @@
1
+ export * as API from './api';
2
+ export * as DEF from './def';
@@ -0,0 +1,47 @@
1
+ import { PropType } from 'vue';
2
+ import { KG_APP } from '../../consts';
3
+ import './KgAppSelect.less';
4
+ export declare const getProps: () => {
5
+ /** 模块列表. */
6
+ kgApps: {
7
+ type: PropType<{
8
+ id: KG_APP;
9
+ i18n: string;
10
+ }[]>;
11
+ default: () => Array<{
12
+ id: KG_APP;
13
+ i18n: string;
14
+ }>;
15
+ };
16
+ };
17
+ declare const _default: import("vue").DefineComponent<{
18
+ /** 模块列表. */
19
+ kgApps: {
20
+ type: PropType<{
21
+ id: KG_APP;
22
+ i18n: string;
23
+ }[]>;
24
+ default: () => {
25
+ id: KG_APP;
26
+ i18n: string;
27
+ }[];
28
+ };
29
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
+ /** 模块列表. */
31
+ kgApps: {
32
+ type: PropType<{
33
+ id: KG_APP;
34
+ i18n: string;
35
+ }[]>;
36
+ default: () => {
37
+ id: KG_APP;
38
+ i18n: string;
39
+ }[];
40
+ };
41
+ }>>, {
42
+ kgApps: {
43
+ id: KG_APP;
44
+ i18n: string;
45
+ }[];
46
+ }>;
47
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export { default as KgAppSelect } from './KgAppSelect';
2
+ export * from './index.hooks';
3
+ export * from './index.store';
@@ -0,0 +1,41 @@
1
+ import { IRemoveEventListenerHandler, KG_APP, Menu } from '../../consts';
2
+ import { IKgAppSelectGotoAppCb, IKgAppSelectGotoPathCb, IKgAppSelectStore } from './index.store';
3
+ export declare type IUseKgAppSelect = {
4
+ /** 状态数据. */
5
+ store: IKgAppSelectStore;
6
+ /**
7
+ * 进入某个模块.
8
+ * @param app 要进入的模块.
9
+ */
10
+ gotoApp(app: KG_APP): Promise<void>;
11
+ /**
12
+ * 进入某个地址.
13
+ * 如果该地址不属于当前模块, 则先切换到对应的模块, 再进入该地址.
14
+ * @param path 要进入的地址.
15
+ */
16
+ gotoPath(path: string): Promise<void>;
17
+ /**
18
+ * 判断某个菜单是否属于当前模块.
19
+ * @param menu 菜单.
20
+ * @return {} 如果菜单属于当前模块则返回 true, 否则返回 false.
21
+ */
22
+ isMenuInCurrentApp(menu: Menu): boolean;
23
+ /**
24
+ * 初始化.
25
+ * 1. 需要根据当前地址设置当前模块.
26
+ */
27
+ init(): void;
28
+ /**
29
+ * 事件: 进入某个模块.
30
+ * @param cb 回调函数.
31
+ * @param once 是否只会触发一次. 默认为 undefined.
32
+ */
33
+ onGotoApp(cb: IKgAppSelectGotoAppCb, once?: boolean): IRemoveEventListenerHandler;
34
+ /**
35
+ * 事件: 进入某个地址.
36
+ * @param cb 回调函数.
37
+ * @param once 是否只会触发一次. 默认为 undefined.
38
+ */
39
+ onGotoPath(cb: IKgAppSelectGotoPathCb, once?: boolean): IRemoveEventListenerHandler;
40
+ };
41
+ export declare function useKgAppSelect(): IUseKgAppSelect;
@@ -0,0 +1,73 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ import { IKgEventCb, KG_APP, Menu } from '../../consts';
3
+ /**
4
+ * 事件类型.
5
+ * 'gotoApp': 进入某个模块
6
+ * 'gotoPath': 进入某个地址
7
+ */
8
+ export declare type IKgAppSelectEvent = 'gotoApp' | 'gotoPath';
9
+ /** 事件监听函数: gotoApp. */
10
+ export declare type IKgAppSelectGotoAppCbParam = {
11
+ app: string;
12
+ };
13
+ export declare type IKgAppSelectGotoAppCb = ((param: IKgAppSelectGotoAppCbParam) => Promise<boolean>) & IKgEventCb;
14
+ /** 事件监听函数: gotoPath. */
15
+ export declare type IKgAppSelectGotoPathCbParam = {
16
+ path: string;
17
+ };
18
+ export declare type IKgAppSelectGotoPathCb = ((param: IKgAppSelectGotoPathCbParam) => Promise<boolean>) & IKgEventCb;
19
+ export declare type IKgAppSelectCb = IKgAppSelectGotoAppCb | IKgAppSelectGotoPathCb;
20
+ export interface IKgAppSelectState {
21
+ currentApp: KG_APP | null;
22
+ gotoAppListenersMap: Map<string, Array<IKgAppSelectGotoAppCb>>;
23
+ gotoPathListenersMap: Map<string, Array<IKgAppSelectGotoPathCb>>;
24
+ }
25
+ export declare type IKgAppSelectStoreDefinition = StoreDefinition<'KgAppSelect', IKgAppSelectState, {
26
+ /**
27
+ * 当前模块.
28
+ */
29
+ getCurrentApp(): KG_APP;
30
+ }, {
31
+ /**
32
+ * 注册事件监听.
33
+ * @param event 事件名称.
34
+ * @param cb 回调函数.
35
+ */
36
+ addEventListener(event: IKgAppSelectEvent, cb: IKgAppSelectCb): void;
37
+ /**
38
+ * 退订事件监听.
39
+ * @param event 事件名称.
40
+ * @param cb 回调函数.
41
+ */
42
+ removeEventListener(event: IKgAppSelectEvent, cb?: IKgAppSelectCb): void;
43
+ /**
44
+ * 触发事件.
45
+ * @param event 事件名称.
46
+ * @param param 参数.
47
+ */
48
+ emit(event: IKgAppSelectEvent, param?: any | null): Promise<boolean>;
49
+ /**
50
+ * 进入某个模块.
51
+ * @param app 要进入的模块.
52
+ */
53
+ gotoApp(app: KG_APP): Promise<void>;
54
+ /**
55
+ * 进入某个地址.
56
+ * 如果该地址不属于当前模块, 则先切换到对应的模块, 再进入该地址.
57
+ * @param path 要进入的地址.
58
+ */
59
+ gotoPath(path: string): Promise<void>;
60
+ /**
61
+ * 判断某个菜单是否属于当前模块.
62
+ * @param menu 菜单.
63
+ * @return {} 如果菜单属于当前模块则返回 true, 否则返回 false.
64
+ */
65
+ isMenuInCurrentApp(menu: Menu): boolean;
66
+ /**
67
+ * 初始化.
68
+ * 1. 需要根据当前地址设置当前模块.
69
+ */
70
+ init(): void;
71
+ }>;
72
+ export declare type IKgAppSelectStore = ReturnType<IKgAppSelectStoreDefinition>;
73
+ export declare const useKgAppSelectStore: () => IKgAppSelectStoreDefinition;
@@ -0,0 +1,41 @@
1
+ import { KG_BUTTON_COLOR, KG_BUTTON_TYPE } from '../../consts';
2
+ import './KgButton.Item.less';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ kgButton: import("vue").PropType<import("../..").VarButton>;
5
+ kgVarName: import("vue").PropType<string | null>;
6
+ kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
7
+ kgPrimary: {
8
+ type: import("vue").PropType<boolean | null | undefined>;
9
+ default: undefined;
10
+ };
11
+ kgIcon: import("vue").PropType<string | null>;
12
+ kgText: import("vue").PropType<string | null>;
13
+ kgColor: import("vue").PropType<KG_BUTTON_COLOR | null>;
14
+ kgDisabled: {
15
+ type: import("vue").PropType<boolean | null | undefined>;
16
+ default: undefined;
17
+ };
18
+ kgLoading: import("vue").PropType<boolean>;
19
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
20
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ kgButton: import("vue").PropType<import("../..").VarButton>;
22
+ kgVarName: import("vue").PropType<string | null>;
23
+ kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
24
+ kgPrimary: {
25
+ type: import("vue").PropType<boolean | null | undefined>;
26
+ default: undefined;
27
+ };
28
+ kgIcon: import("vue").PropType<string | null>;
29
+ kgText: import("vue").PropType<string | null>;
30
+ kgColor: import("vue").PropType<KG_BUTTON_COLOR | null>;
31
+ kgDisabled: {
32
+ type: import("vue").PropType<boolean | null | undefined>;
33
+ default: undefined;
34
+ };
35
+ kgLoading: import("vue").PropType<boolean>;
36
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
37
+ }>>, {
38
+ kgDisabled: boolean | null | undefined;
39
+ kgPrimary: boolean | null | undefined;
40
+ }>;
41
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { VarButton } from '../../apis/WMS/models';
3
+ import { KG_BUTTON_COLOR, KG_BUTTON_TYPE } from '../../consts';
4
+ export declare const getProps: () => {
5
+ /** 按钮. */
6
+ kgButton: PropType<VarButton>;
7
+ /** 变量名称. */
8
+ kgVarName: PropType<string | null>;
9
+ /** 按钮类型. */
10
+ kgType: PropType<KG_BUTTON_TYPE | null>;
11
+ /** 是否使用主要按钮样式. */
12
+ kgPrimary: {
13
+ type: PropType<boolean | null | undefined>;
14
+ default: undefined;
15
+ };
16
+ /** 图标. */
17
+ kgIcon: PropType<string | null>;
18
+ /** 文本. */
19
+ kgText: PropType<string | null>;
20
+ /** 颜色. */
21
+ kgColor: PropType<KG_BUTTON_COLOR | null>;
22
+ /** 是否禁用. */
23
+ kgDisabled: {
24
+ type: PropType<boolean | null | undefined>;
25
+ default: undefined;
26
+ };
27
+ /** 是否正在加载. */
28
+ kgLoading: PropType<boolean>;
29
+ onKgClick: PropType<(args?: any) => Promise<boolean>>;
30
+ };
31
+ export declare type IKgButtonItemProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
@@ -0,0 +1,34 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { VarButton } from '../../apis/WMS/models';
3
+ import './KgButton.less';
4
+ export declare const getProps: () => {
5
+ /**
6
+ * 按钮是否禁用. 返回 true 表示禁用.
7
+ */
8
+ kgDisabled: PropType<(button: VarButton) => boolean | undefined>;
9
+ /**
10
+ * 按钮是否处于加载状态. 返回 true 表示处于加载状态.
11
+ */
12
+ KgLoading: PropType<(button: VarButton) => boolean | undefined>;
13
+ };
14
+ export declare type IKgButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
15
+ declare const _default: import("vue").DefineComponent<{
16
+ /**
17
+ * 按钮是否禁用. 返回 true 表示禁用.
18
+ */
19
+ kgDisabled: PropType<(button: VarButton) => boolean | undefined>;
20
+ /**
21
+ * 按钮是否处于加载状态. 返回 true 表示处于加载状态.
22
+ */
23
+ KgLoading: PropType<(button: VarButton) => boolean | undefined>;
24
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
25
+ /**
26
+ * 按钮是否禁用. 返回 true 表示禁用.
27
+ */
28
+ kgDisabled: PropType<(button: VarButton) => boolean | undefined>;
29
+ /**
30
+ * 按钮是否处于加载状态. 返回 true 表示处于加载状态.
31
+ */
32
+ KgLoading: PropType<(button: VarButton) => boolean | undefined>;
33
+ }>>, {}>;
34
+ export default _default;
@@ -0,0 +1,61 @@
1
+ import { IRemoveEventListenerHandler, KG_BUTTON_TYPE } from '../../consts';
2
+ import { IKgButtonClickCb, IKgButtonDeleteOkCb, IKgButtonImportOkCb, IKgButtonOtherOkCb, IKgButtonStore, IKgButtonSubmitCancelCb, IKgButtonSubmitSaveCb, IKgButtonUpdateBeforeClickCb } from './KgButton.store';
3
+ export declare type IUseKgButton = {
4
+ formID: string;
5
+ /** 状态数据. */
6
+ store: IKgButtonStore;
7
+ /**
8
+ * 点击某个按钮, 即通过代码的方式, 手动触发某个按钮的点击事件.
9
+ * @param formID 界面标识.
10
+ * @param type 按钮类型.
11
+ * @param var_nam 按钮变量名称.
12
+ * @param args 数据.
13
+ */
14
+ click(formID: string, type: KG_BUTTON_TYPE, var_nam?: string, args?: any | null): void;
15
+ /**
16
+ * 事件: 点击按钮.
17
+ * @param cb 回调函数.
18
+ * @param once 是否只会触发一次. 默认为 undefined.
19
+ */
20
+ onClick(cb: IKgButtonClickCb, once?: boolean): IRemoveEventListenerHandler;
21
+ /**
22
+ * 事件: 点击更新按钮之后, 执行默认逻辑之前. 如果返回 true, 则不再执行后续的默认逻辑.
23
+ * @param cb 回调函数.
24
+ * @param once 是否只会触发一次. 默认为 undefined.
25
+ */
26
+ onUpdateBeforeClick(cb: IKgButtonUpdateBeforeClickCb, once?: boolean): IRemoveEventListenerHandler;
27
+ /**
28
+ * 事件: 删除成功, 删除接口调用成功.
29
+ * @param cb 回调函数.
30
+ * @param once 是否只会触发一次. 默认为 undefined.
31
+ */
32
+ onDeleteOk(cb: IKgButtonDeleteOkCb, once?: boolean): IRemoveEventListenerHandler;
33
+ /**
34
+ * 事件: 导入成功, 导入接口调用成功.
35
+ * @param cb 回调函数.
36
+ * @param once 是否只会触发一次. 默认为 undefined.
37
+ */
38
+ onImportOk(cb: IKgButtonImportOkCb, once?: boolean): IRemoveEventListenerHandler;
39
+ /**
40
+ * 事件: other 类型的按钮接口调用成功.
41
+ * @param cb 回调函数.
42
+ * @param once 是否只会触发一次. 默认为 undefined.
43
+ */
44
+ onOtherOk(cb: IKgButtonOtherOkCb, once?: boolean): IRemoveEventListenerHandler;
45
+ /**
46
+ * 事件: 表格内编辑时, 点击保存按钮.
47
+ * @param cb 回调函数.
48
+ * @param once 是否只会触发一次. 默认为 undefined.
49
+ */
50
+ onSubmitSave(cb: IKgButtonSubmitSaveCb, once?: boolean): IRemoveEventListenerHandler;
51
+ /**
52
+ * 事件: 表格内编辑时, 点击取消按钮.
53
+ * @param cb 回调函数.
54
+ * @param once 是否只会触发一次. 默认为 undefined.
55
+ */
56
+ onSubmitCancel(cb: IKgButtonSubmitCancelCb, once?: boolean): IRemoveEventListenerHandler;
57
+ };
58
+ /**
59
+ * @param formID 界面标识.
60
+ */
61
+ export declare function useKgButton(formID?: string | null): IUseKgButton;
@@ -0,0 +1,89 @@
1
+ import { StoreDefinition } from 'pinia';
2
+ import { VarButton } from '../../apis/WMS/models';
3
+ import { IKgEventCb, KG_BUTTON_TYPE } from '../../consts';
4
+ import { IKgTableRow } from '../KgTable';
5
+ /**
6
+ * 事件类型.
7
+ * 'click': 点击按钮
8
+ * 'updateBeforeClick': 点击更新按钮之后, 执行默认逻辑之前. 如果返回 Promise.resolve(false), 则不执行默认逻辑
9
+ * 'deleteOk': 删除成功, 删除接口调用成功
10
+ * 'importOk': 导入成功, 导入接口调用成功
11
+ * 'otherOk': other 类型的按钮接口调用成功
12
+ * 'submitSave': 表格内编辑时, 点击保存按钮
13
+ * 'submitCancel': 表格内编辑时, 点击取消按钮
14
+ */
15
+ export declare type IKgButtonEvent = 'click' | 'updateBeforeClick' | 'deleteOk' | 'importOk' | 'otherOk' | 'submitSave' | 'submitCancel';
16
+ export declare type IKgButtonClickCbParam = {
17
+ button: VarButton;
18
+ };
19
+ export declare type IKgButtonClickCb = ((button: VarButton) => Promise<boolean>) & IKgEventCb;
20
+ export declare type IKgButtonUpdateBeforeClickCbParam = {
21
+ button?: VarButton | null;
22
+ row?: IKgTableRow | null;
23
+ };
24
+ export declare type IKgButtonUpdateBeforeClickCb = ((args: IKgButtonUpdateBeforeClickCbParam) => Promise<boolean>) & IKgEventCb;
25
+ export declare type IKgButtonDeleteOkCbParam = {
26
+ button?: VarButton | null;
27
+ /** 删除的行. */
28
+ rows: Array<IKgTableRow> | null;
29
+ };
30
+ export declare type IKgButtonDeleteOkCb = ((args: IKgButtonDeleteOkCbParam) => Promise<boolean>) & IKgEventCb;
31
+ export declare type IKgButtonImportOkCbParam = {
32
+ button?: VarButton | null;
33
+ };
34
+ export declare type IKgButtonImportOkCb = ((args: IKgButtonImportOkCbParam) => Promise<boolean>) & IKgEventCb;
35
+ export declare type IKgButtonOtherOkCbParam = {
36
+ button?: VarButton | null;
37
+ /** 接口返回的数据. */
38
+ data: any;
39
+ };
40
+ export declare type IKgButtonOtherOkCb = ((args: IKgButtonOtherOkCbParam) => Promise<boolean>) & IKgEventCb;
41
+ export declare type IKgButtonSubmitSaveCb = (() => Promise<boolean>) & IKgEventCb;
42
+ export declare type IKgButtonSubmitCancelCb = (() => Promise<boolean>) & IKgEventCb;
43
+ export declare type IKgButtonCbParam = IKgButtonClickCbParam | IKgButtonUpdateBeforeClickCbParam | IKgButtonDeleteOkCbParam | IKgButtonImportOkCbParam | IKgButtonOtherOkCbParam | any;
44
+ export declare type IKgButtonCb = IKgButtonClickCb | IKgButtonUpdateBeforeClickCb | IKgButtonDeleteOkCb | IKgButtonImportOkCb | IKgButtonOtherOkCb | IKgButtonSubmitSaveCb | IKgButtonSubmitCancelCb;
45
+ export interface IKgButtonState {
46
+ clickListenersMap: Map<string, Array<IKgButtonClickCb>>;
47
+ updateBeforeClickListenersMap: Map<string, Array<IKgButtonUpdateBeforeClickCb>>;
48
+ deleteOkListenersMap: Map<string, Array<IKgButtonDeleteOkCb>>;
49
+ importOkListenersMap: Map<string, Array<IKgButtonImportOkCb>>;
50
+ otherOkListenersMap: Map<string, Array<IKgButtonOtherOkCb>>;
51
+ submitSaveListenersMap: Map<string, Array<IKgButtonSubmitSaveCb>>;
52
+ submitCancelListenersMap: Map<string, Array<IKgButtonSubmitCancelCb>>;
53
+ }
54
+ export declare type IKgButtonStoreDefinition = StoreDefinition<'KgButton', IKgButtonState, {
55
+ getClickListeners(): (formID?: string | null) => Array<IKgButtonClickCb> | null;
56
+ }, {
57
+ dispose(formID: string | null | undefined): void;
58
+ /**
59
+ * 注册事件监听.
60
+ * @param formID 界面标识.
61
+ * @param event 事件名称.
62
+ * @param cb 回调函数.
63
+ */
64
+ addEventListener(formID: string, event: IKgButtonEvent, cb: IKgButtonCb): void;
65
+ /**
66
+ * 退订事件监听.
67
+ * @param formID 界面标识.
68
+ * @param event 事件名称.
69
+ * @param cb 回调函数.
70
+ */
71
+ removeEventListener(formID: string, event: IKgButtonEvent, cb?: IKgButtonCb): void;
72
+ /**
73
+ * 触发事件.
74
+ * @param formID 界面标识.
75
+ * @param event 事件名称.
76
+ * @param param 数据.
77
+ */
78
+ emit(formID: string, event: IKgButtonEvent, param: IKgButtonCbParam): Promise<boolean>;
79
+ /**
80
+ * 点击某个按钮, 即通过代码的方式, 手动触发某个按钮的点击事件.
81
+ * @param formID 界面标识.
82
+ * @param type 按钮类型.
83
+ * @param var_nam 按钮变量名称.
84
+ * @param args 数据.
85
+ */
86
+ click(formID: string, type: KG_BUTTON_TYPE, var_nam?: string, args?: any | null): void;
87
+ }>;
88
+ export declare type IKgButtonStore = ReturnType<IKgButtonStoreDefinition>;
89
+ export declare const useKgButtonStore: () => IKgButtonStoreDefinition;
@@ -0,0 +1,39 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ kgButton: import("vue").PropType<import("../../..").VarButton>;
3
+ kgVarName: import("vue").PropType<string | null>;
4
+ kgType: import("vue").PropType<import("../../..").KG_BUTTON_TYPE | null>;
5
+ kgPrimary: {
6
+ type: import("vue").PropType<boolean | null | undefined>;
7
+ default: undefined;
8
+ };
9
+ kgIcon: import("vue").PropType<string | null>;
10
+ kgText: import("vue").PropType<string | null>;
11
+ kgColor: import("vue").PropType<import("../../..").KG_BUTTON_COLOR | null>;
12
+ kgDisabled: {
13
+ type: import("vue").PropType<boolean | null | undefined>;
14
+ default: undefined;
15
+ };
16
+ kgLoading: import("vue").PropType<boolean>;
17
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ kgButton: import("vue").PropType<import("../../..").VarButton>;
20
+ kgVarName: import("vue").PropType<string | null>;
21
+ kgType: import("vue").PropType<import("../../..").KG_BUTTON_TYPE | null>;
22
+ kgPrimary: {
23
+ type: import("vue").PropType<boolean | null | undefined>;
24
+ default: undefined;
25
+ };
26
+ kgIcon: import("vue").PropType<string | null>;
27
+ kgText: import("vue").PropType<string | null>;
28
+ kgColor: import("vue").PropType<import("../../..").KG_BUTTON_COLOR | null>;
29
+ kgDisabled: {
30
+ type: import("vue").PropType<boolean | null | undefined>;
31
+ default: undefined;
32
+ };
33
+ kgLoading: import("vue").PropType<boolean>;
34
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
35
+ }>>, {
36
+ kgDisabled: boolean | null | undefined;
37
+ kgPrimary: boolean | null | undefined;
38
+ }>;
39
+ export default _default;
@@ -0,0 +1,39 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ kgButton: import("vue").PropType<import("../../..").VarButton>;
3
+ kgVarName: import("vue").PropType<string | null>;
4
+ kgType: import("vue").PropType<import("../../../consts").KG_BUTTON_TYPE | null>;
5
+ kgPrimary: {
6
+ type: import("vue").PropType<boolean | null | undefined>;
7
+ default: undefined;
8
+ };
9
+ kgIcon: import("vue").PropType<string | null>;
10
+ kgText: import("vue").PropType<string | null>;
11
+ kgColor: import("vue").PropType<import("../../../consts").KG_BUTTON_COLOR | null>;
12
+ kgDisabled: {
13
+ type: import("vue").PropType<boolean | null | undefined>;
14
+ default: undefined;
15
+ };
16
+ kgLoading: import("vue").PropType<boolean>;
17
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ kgButton: import("vue").PropType<import("../../..").VarButton>;
20
+ kgVarName: import("vue").PropType<string | null>;
21
+ kgType: import("vue").PropType<import("../../../consts").KG_BUTTON_TYPE | null>;
22
+ kgPrimary: {
23
+ type: import("vue").PropType<boolean | null | undefined>;
24
+ default: undefined;
25
+ };
26
+ kgIcon: import("vue").PropType<string | null>;
27
+ kgText: import("vue").PropType<string | null>;
28
+ kgColor: import("vue").PropType<import("../../../consts").KG_BUTTON_COLOR | null>;
29
+ kgDisabled: {
30
+ type: import("vue").PropType<boolean | null | undefined>;
31
+ default: undefined;
32
+ };
33
+ kgLoading: import("vue").PropType<boolean>;
34
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
35
+ }>>, {
36
+ kgDisabled: boolean | null | undefined;
37
+ kgPrimary: boolean | null | undefined;
38
+ }>;
39
+ export default _default;
@@ -0,0 +1,40 @@
1
+ import { KG_BUTTON_COLOR } from '../../../consts';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ kgButton: import("vue").PropType<import("../../..").VarButton>;
4
+ kgVarName: import("vue").PropType<string | null>;
5
+ kgType: import("vue").PropType<import("../../../consts").KG_BUTTON_TYPE | null>;
6
+ kgPrimary: {
7
+ type: import("vue").PropType<boolean | null | undefined>;
8
+ default: undefined;
9
+ };
10
+ kgIcon: import("vue").PropType<string | null>;
11
+ kgText: import("vue").PropType<string | null>;
12
+ kgColor: import("vue").PropType<KG_BUTTON_COLOR | null>;
13
+ kgDisabled: {
14
+ type: import("vue").PropType<boolean | null | undefined>;
15
+ default: undefined;
16
+ };
17
+ kgLoading: import("vue").PropType<boolean>;
18
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
19
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ kgButton: import("vue").PropType<import("../../..").VarButton>;
21
+ kgVarName: import("vue").PropType<string | null>;
22
+ kgType: import("vue").PropType<import("../../../consts").KG_BUTTON_TYPE | null>;
23
+ kgPrimary: {
24
+ type: import("vue").PropType<boolean | null | undefined>;
25
+ default: undefined;
26
+ };
27
+ kgIcon: import("vue").PropType<string | null>;
28
+ kgText: import("vue").PropType<string | null>;
29
+ kgColor: import("vue").PropType<KG_BUTTON_COLOR | null>;
30
+ kgDisabled: {
31
+ type: import("vue").PropType<boolean | null | undefined>;
32
+ default: undefined;
33
+ };
34
+ kgLoading: import("vue").PropType<boolean>;
35
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
36
+ }>>, {
37
+ kgDisabled: boolean | null | undefined;
38
+ kgPrimary: boolean | null | undefined;
39
+ }>;
40
+ export default _default;
@@ -0,0 +1,39 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ kgButton: import("vue").PropType<import("../../..").VarButton>;
3
+ kgVarName: import("vue").PropType<string | null>;
4
+ kgType: import("vue").PropType<import("../../..").KG_BUTTON_TYPE | null>;
5
+ kgPrimary: {
6
+ type: import("vue").PropType<boolean | null | undefined>;
7
+ default: undefined;
8
+ };
9
+ kgIcon: import("vue").PropType<string | null>;
10
+ kgText: import("vue").PropType<string | null>;
11
+ kgColor: import("vue").PropType<import("../../..").KG_BUTTON_COLOR | null>;
12
+ kgDisabled: {
13
+ type: import("vue").PropType<boolean | null | undefined>;
14
+ default: undefined;
15
+ };
16
+ kgLoading: import("vue").PropType<boolean>;
17
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ kgButton: import("vue").PropType<import("../../..").VarButton>;
20
+ kgVarName: import("vue").PropType<string | null>;
21
+ kgType: import("vue").PropType<import("../../..").KG_BUTTON_TYPE | null>;
22
+ kgPrimary: {
23
+ type: import("vue").PropType<boolean | null | undefined>;
24
+ default: undefined;
25
+ };
26
+ kgIcon: import("vue").PropType<string | null>;
27
+ kgText: import("vue").PropType<string | null>;
28
+ kgColor: import("vue").PropType<import("../../..").KG_BUTTON_COLOR | null>;
29
+ kgDisabled: {
30
+ type: import("vue").PropType<boolean | null | undefined>;
31
+ default: undefined;
32
+ };
33
+ kgLoading: import("vue").PropType<boolean>;
34
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
35
+ }>>, {
36
+ kgDisabled: boolean | null | undefined;
37
+ kgPrimary: boolean | null | undefined;
38
+ }>;
39
+ export default _default;
@@ -0,0 +1,39 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ kgButton: import("vue").PropType<import("../../..").VarButton>;
3
+ kgVarName: import("vue").PropType<string | null>;
4
+ kgType: import("vue").PropType<import("../../..").KG_BUTTON_TYPE | null>;
5
+ kgPrimary: {
6
+ type: import("vue").PropType<boolean | null | undefined>;
7
+ default: undefined;
8
+ };
9
+ kgIcon: import("vue").PropType<string | null>;
10
+ kgText: import("vue").PropType<string | null>;
11
+ kgColor: import("vue").PropType<import("../../..").KG_BUTTON_COLOR | null>;
12
+ kgDisabled: {
13
+ type: import("vue").PropType<boolean | null | undefined>;
14
+ default: undefined;
15
+ };
16
+ kgLoading: import("vue").PropType<boolean>;
17
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ kgButton: import("vue").PropType<import("../../..").VarButton>;
20
+ kgVarName: import("vue").PropType<string | null>;
21
+ kgType: import("vue").PropType<import("../../..").KG_BUTTON_TYPE | null>;
22
+ kgPrimary: {
23
+ type: import("vue").PropType<boolean | null | undefined>;
24
+ default: undefined;
25
+ };
26
+ kgIcon: import("vue").PropType<string | null>;
27
+ kgText: import("vue").PropType<string | null>;
28
+ kgColor: import("vue").PropType<import("../../..").KG_BUTTON_COLOR | null>;
29
+ kgDisabled: {
30
+ type: import("vue").PropType<boolean | null | undefined>;
31
+ default: undefined;
32
+ };
33
+ kgLoading: import("vue").PropType<boolean>;
34
+ onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
35
+ }>>, {
36
+ kgDisabled: boolean | null | undefined;
37
+ kgPrimary: boolean | null | undefined;
38
+ }>;
39
+ export default _default;