@kengic/vue 0.26.6-beta.8 → 0.26.6-beta.81
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/close-outlined-DMcSQWxQ.5aef1ccf.mjs +8 -0
- package/dist/fullscreen-exit-outlined-X1iYkFc4.b68e0247.mjs +8 -0
- package/dist/fullscreen-exit-outlined.a75b82c2.mjs +8 -0
- package/dist/fullscreen-outlined-DDBrsRcy.2e48e278.mjs +8 -0
- package/dist/fullscreen-outlined.c9ba7960.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +60620 -44325
- package/dist/src/api/WMS/Controllers/DescriptionController/List.d.ts +51 -0
- package/dist/src/api/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/DescriptionController/index.d.ts +2 -0
- package/dist/src/api/WMS/Controllers/SysPermissionController/List.d.ts +73 -0
- package/dist/src/api/WMS/Controllers/SysPermissionController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
- package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarController/GetAll.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/Create.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/index.d.ts +9 -0
- package/dist/src/api/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
- package/dist/src/api/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
- package/dist/src/api/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +19 -0
- package/dist/src/api/WMS/Controllers/VarProfileMasterController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarVariableController/Delete.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarVariableController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/WhController/ListVO.d.ts +54 -0
- package/dist/src/api/WMS/Controllers/WhController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/WorkstationController/List.d.ts +25 -0
- package/dist/src/api/WMS/Controllers/WorkstationController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/index.d.ts +11 -0
- package/dist/src/api/WMS/index.d.ts +2 -0
- package/dist/src/api/WMS/models.d.ts +1018 -0
- package/dist/src/api/api.d.ts +1 -0
- package/dist/src/api/def.d.ts +1 -0
- package/dist/src/api/index.d.ts +2 -0
- package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +47 -0
- package/dist/src/component/KgAppSelect/index.d.ts +3 -0
- package/dist/src/component/KgAppSelect/index.hooks.d.ts +41 -0
- package/dist/src/component/KgAppSelect/index.store.d.ts +74 -0
- package/dist/src/component/KgButton/KgButton.Item.d.ts +41 -0
- package/dist/src/component/KgButton/KgButton.Item.data.d.ts +31 -0
- package/dist/src/component/KgButton/KgButton.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Copy.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Create.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Delete.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Export.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Import.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.ImportTemplate.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Other.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Search.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Update.d.ts +40 -0
- package/dist/src/component/KgButton/index.d.ts +62 -0
- package/dist/src/component/KgButton/index.hooks.d.ts +183 -0
- package/dist/src/component/KgButton/index.store.d.ts +116 -0
- package/dist/src/component/KgCanvas/KgCanvas.d.ts +122 -0
- package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +43 -0
- package/dist/src/component/KgCanvas/KgCanvasContextMenu.d.ts +107 -0
- package/dist/src/component/KgCanvas/KgCanvasToolbarFullscreen.d.ts +38 -0
- package/dist/src/component/KgCanvas/KgCanvasTooltip.d.ts +31 -0
- package/dist/src/component/KgCanvas/index.d.ts +4 -0
- package/dist/src/component/KgCanvas/index.hooks.d.ts +67 -0
- package/dist/src/component/KgCanvas/index.store.d.ts +239 -0
- package/dist/src/component/KgForm/KgForm.d.ts +414 -0
- package/dist/src/component/KgForm/index.d.ts +604 -0
- package/dist/src/component/KgForm/index.hooks.d.ts +73 -0
- package/dist/src/component/KgForm/index.store.d.ts +221 -0
- package/dist/src/component/KgForm/index.vm.d.ts +9 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +97 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +17 -0
- package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +49 -0
- package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +16 -0
- package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +31 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +100 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +99 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +97 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +97 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +92 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +96 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +96 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +96 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +98 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +98 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.service.d.ts +29 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +96 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +96 -0
- package/dist/src/component/KgForm.Item/index.d.ts +2 -0
- package/dist/src/component/KgForm.Item/index.vm.d.ts +124 -0
- package/dist/src/component/KgImage/KgImage.d.ts +100 -0
- package/dist/src/component/KgImage/index.d.ts +1 -0
- package/dist/src/component/KgLayoutHeader/components/KgLayoutHeaderLocale.d.ts +38 -0
- package/dist/src/component/KgLayoutHeader/index.d.ts +2 -0
- package/dist/src/component/KgLayoutHeader/index.hooks.d.ts +4 -0
- package/dist/src/component/KgModal/KgModal.d.ts +823 -0
- package/dist/src/component/KgModal/KgModalHeaderButtons.d.ts +92 -0
- package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +12 -0
- package/dist/src/component/KgModal/hooks/useDragToResize.d.ts +29 -0
- package/dist/src/component/KgModal/index.d.ts +1 -0
- package/dist/src/component/KgModal/index.vm.d.ts +8 -0
- package/dist/src/component/KgProgressA/KgProgressA.d.ts +85 -0
- package/dist/src/component/KgProgressA/index.d.ts +1 -0
- package/dist/src/component/KgResizable/KgResizable.d.ts +91 -0
- package/dist/src/component/KgResizable/KgResizable.service.d.ts +12 -0
- package/dist/src/component/KgResizable/index.d.ts +1 -0
- package/dist/src/component/KgSearch/KgSearch.d.ts +26 -0
- package/dist/src/component/KgSearch/KgSearch.service.d.ts +32 -0
- package/dist/src/component/KgSearch/components/KgSearch.ConfigModal.d.ts +16 -0
- package/dist/src/component/KgSearch/index.d.ts +3 -0
- package/dist/src/component/KgSearch/index.hooks.d.ts +67 -0
- package/dist/src/component/KgSearch/index.store.d.ts +147 -0
- package/dist/src/component/KgSearch/index.vm.d.ts +1 -0
- package/dist/src/component/KgStation/KgStation.d.ts +47 -0
- package/dist/src/component/KgStation/index.d.ts +3 -0
- package/dist/src/component/KgStation/index.hooks.d.ts +29 -0
- package/dist/src/component/KgStation/index.store.d.ts +45 -0
- package/dist/src/component/KgSubmit/KgSubmit.d.ts +21 -0
- package/dist/src/component/KgSubmit/KgSubmit.service.d.ts +29 -0
- package/dist/src/component/KgSubmit/index.d.ts +4 -0
- package/dist/src/component/KgSubmit/index.hooks.d.ts +295 -0
- package/dist/src/component/KgSubmit/index.store.d.ts +194 -0
- package/dist/src/component/KgSubmit/index.vm.d.ts +57 -0
- package/dist/src/component/KgTable/KgTable.d.ts +39 -0
- package/dist/src/component/KgTable/KgTable.service.d.ts +34 -0
- package/dist/src/component/KgTable/components/KgTable.BodyCell.d.ts +60 -0
- package/dist/src/component/KgTable/components/KgTable.HeaderCell.d.ts +52 -0
- package/dist/src/component/KgTable/components/KgTable.Info.d.ts +57 -0
- package/dist/src/component/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +5 -0
- package/dist/src/component/KgTable/components/setting/KgTable.Setting.d.ts +21 -0
- package/dist/src/component/KgTable/components/setting/KgTable.Setting.service.d.ts +22 -0
- package/dist/src/component/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +16 -0
- package/dist/src/component/KgTable/index.d.ts +4 -0
- package/dist/src/component/KgTable/index.hooks.d.ts +148 -0
- package/dist/src/component/KgTable/index.store.d.ts +241 -0
- package/dist/src/component/KgTable/index.vm.d.ts +67 -0
- package/dist/src/component/KgVar/KgVar.d.ts +114 -0
- package/dist/src/component/KgVar/KgVarFactory.d.ts +61 -0
- package/dist/src/component/KgVar/index.d.ts +5 -0
- package/dist/src/component/KgVar/index.hooks.d.ts +189 -0
- package/dist/src/component/KgVar/index.store.d.ts +266 -0
- package/dist/src/component/KgVar/index.store.service.d.ts +30 -0
- package/dist/src/component/KgVar/index.vm.d.ts +57 -0
- package/dist/src/component/KgVarConfig/KgVarConfig.d.ts +3 -0
- package/dist/src/component/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +27 -0
- package/dist/src/component/KgVarConfig/components/KgVarConfigModal.d.ts +15 -0
- package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +23 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
- package/dist/src/component/KgVarConfig/index.d.ts +3 -0
- package/dist/src/component/KgVarConfig/index.hooks.d.ts +17 -0
- package/dist/src/component/KgVarConfig/index.store.d.ts +16 -0
- package/dist/src/component/KgVarConfig/index.vm.d.ts +50 -0
- package/dist/src/component/KgWarehouse/KgWarehouse.d.ts +47 -0
- package/dist/src/component/KgWarehouse/index.d.ts +4 -0
- package/dist/src/component/KgWarehouse/index.guard.d.ts +8 -0
- package/dist/src/component/KgWarehouse/index.hooks.d.ts +27 -0
- package/dist/src/component/KgWarehouse/index.store.d.ts +63 -0
- package/dist/src/component/KgYesOrNo/KgYesOrNo.d.ts +60 -0
- package/dist/src/component/KgYesOrNo/index.d.ts +1 -0
- package/dist/src/component/index.d.ts +21 -0
- package/dist/src/component/util.d.ts +14 -0
- package/dist/src/config/index.d.ts +3 -0
- package/dist/src/config/index.hooks.d.ts +36 -0
- package/dist/src/config/index.store.d.ts +315 -0
- package/dist/src/config/setup/index.d.ts +3 -0
- package/dist/src/config/setup/setup.d.ts +28 -0
- package/dist/src/config/setup/setupKgLocale.d.ts +29 -0
- package/dist/src/config/setup/setupKgStore.d.ts +18 -0
- package/dist/src/const/i18n/en.d.ts +278 -0
- package/dist/src/const/i18n/es_ES.d.ts +278 -0
- package/dist/src/const/i18n/fr_FR.d.ts +278 -0
- package/dist/src/const/i18n/index.d.ts +2 -0
- package/dist/src/const/i18n/km_KH.d.ts +278 -0
- package/dist/src/const/i18n/ko_KR.d.ts +278 -0
- package/dist/src/const/i18n/vi_VN.d.ts +278 -0
- package/dist/src/const/i18n/zh_CN.d.ts +278 -0
- package/dist/src/const/index.d.ts +3 -0
- package/dist/src/const/index.vm.d.ts +733 -0
- package/dist/src/const/injection-keys.const.d.ts +9 -0
- package/dist/src/helper/ant-design-vue.d.ts +347 -0
- package/dist/src/helper/tsx.helper.d.ts +23 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/page/KgPageDda/KgPageDda.d.ts +8 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +32 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Button.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Menu.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Search.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Submit.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Table.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.d.ts +33 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +1322 -0
- package/dist/src/page/KgPageDda/index.d.ts +5 -0
- package/dist/src/page/KgPageDda/index.vm.d.ts +12 -0
- package/dist/src/page/index.d.ts +8 -0
- package/dist/src/project/build/getConfigFileName.d.ts +5 -0
- package/dist/src/project/build/index.d.ts +1 -0
- package/dist/src/project/index.d.ts +3 -0
- package/dist/src/project/types/axios.d.ts +35 -0
- package/dist/src/project/types/config.d.ts +121 -0
- package/dist/src/project/types/index.d.ts +4 -0
- package/dist/src/project/types/store.d.ts +42 -0
- package/dist/src/project/types/utils.d.ts +4 -0
- package/dist/src/service/http-client.d.ts +93 -0
- package/dist/src/service/index.d.ts +1 -0
- package/dist/src/util/index.d.ts +4 -0
- package/dist/src/util/kg-auth.util.d.ts +26 -0
- package/dist/src/util/kg-route.util.d.ts +57 -0
- package/dist/src/util/kg-var.util.d.ts +76 -0
- package/dist/src/util/kg.util.d.ts +150 -0
- package/package.json +31 -20
- package/script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
- package/script/bump-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +3 -0
- package/script/bump-to.ts +38 -0
- package/script/bump.ts +35 -0
- package/script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
- package/script/copy-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +3 -0
- package/script/copy-to.luotao.smartfactory.tyre.haohua.gantry.was-java--main.ts +3 -0
- package/script/copy-to.ts +23 -0
- package/script/publish.ts +30 -0
@@ -0,0 +1,189 @@
|
|
1
|
+
import { ComputedRef } from 'vue';
|
2
|
+
import { VarConfigControl, VarConfigDescription, VarConfigPossibility } from '../../api/WMS/models';
|
3
|
+
import { IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE } from '../../const';
|
4
|
+
import { IUseKgButton } from '../KgButton';
|
5
|
+
import { IUseKgForm } from '../KgForm';
|
6
|
+
import { type IUseKgSearch } from '../KgSearch';
|
7
|
+
import { IUseKgSubmit } from '../KgSubmit';
|
8
|
+
import { IUseKgTable } from '../KgTable';
|
9
|
+
import { IUseKgVarConfig } from '../KgVarConfig';
|
10
|
+
import { IKgVarRequestEventListener, IKgVarStore } from './index.store';
|
11
|
+
import { IKgProps, IKgSlots } from './index.vm';
|
12
|
+
export declare type IUseKgVar = {
|
13
|
+
/**
|
14
|
+
* <p>添加一个「变量配置:表单控件」.</p>
|
15
|
+
* <p>使用场景: 一般用于开发自定义页面时, 需要动态添加表单字段.</p>
|
16
|
+
*
|
17
|
+
* @param varConfigControl 要添加的「变量配置:表单控件」.
|
18
|
+
*/
|
19
|
+
createVarConfigControl(varConfigControl: VarConfigControl): void;
|
20
|
+
/**
|
21
|
+
* <p>添加一个「变量配置:变量翻译」.</p>
|
22
|
+
* <p>使用场景: 一般用于开发自定义页面时, 需要动态添加表单字段.</p>
|
23
|
+
*
|
24
|
+
* @param varConfigDescription 要添加的「变量配置:变量翻译」.
|
25
|
+
*/
|
26
|
+
createVarConfigDescription(varConfigDescription: VarConfigDescription): void;
|
27
|
+
/**
|
28
|
+
* <p>添加一个「变量配置:列表数据」.</p>
|
29
|
+
* <p>使用场景: 一般用于开发自定义页面时, 需要动态添加表单字段.</p>
|
30
|
+
*
|
31
|
+
* @param varConfigPossibility 要添加的「变量配置:列表数据」.
|
32
|
+
*/
|
33
|
+
createVarConfigPossibility(varConfigPossibility: VarConfigPossibility): void;
|
34
|
+
/** 当前的 VarGridDetail 列表. */
|
35
|
+
currentVarGridDetails: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridDetails']>>;
|
36
|
+
/** 当前的 VarGridMaster ID. */
|
37
|
+
currentVarGridMasteID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMasterID']>>;
|
38
|
+
/** 当前的 VarGridMaster. */
|
39
|
+
currentVarGridMaster: ComputedRef<ReturnType<IKgVarStore['getCurrentVarGridMaster']>>;
|
40
|
+
/** 当前的 VarProfileMaster ID. */
|
41
|
+
currentVarProfileMasterID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMasterID']>>;
|
42
|
+
/**
|
43
|
+
* 界面标识.
|
44
|
+
*/
|
45
|
+
formID: string;
|
46
|
+
/**
|
47
|
+
* <p>获取「变量配置:表单控件」, 根据所传参数进行过滤.</p>
|
48
|
+
*
|
49
|
+
* <ul>
|
50
|
+
* <li>
|
51
|
+
* <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
|
52
|
+
* </li>
|
53
|
+
* <li>
|
54
|
+
* <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
|
55
|
+
* </li>
|
56
|
+
* <li>
|
57
|
+
* <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} === <code>undefined</code>, 则先获取「当前按钮」, 然后根据「当前按钮」的 {@link VarButton.var_nam} 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
|
58
|
+
* </li>
|
59
|
+
* <li>
|
60
|
+
* <p>参数 {@link param.varName} 必传, 将根据 {@link param.varName} 和 {@link VarConfigControl.var_nam} 是否匹配进行过滤.</p>
|
61
|
+
* </li>
|
62
|
+
* </ul>
|
63
|
+
*
|
64
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
65
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
66
|
+
* @param param.varName 提交表单字段的变量名, 对应的是 {@link VarConfigControl.var_nam} 属性.
|
67
|
+
*/
|
68
|
+
getVarConfigControl(param: {
|
69
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
70
|
+
buttonVarName?: string | null;
|
71
|
+
varName: string | null | undefined;
|
72
|
+
}): ReturnType<IKgVarStore['getVarConfigControl']>;
|
73
|
+
/**
|
74
|
+
* 获取「变量配置:列表数据」.
|
75
|
+
*
|
76
|
+
* @param param.varName 变量名称.
|
77
|
+
*/
|
78
|
+
getVarConfigPossibility(param: {
|
79
|
+
varName: string;
|
80
|
+
}): VarConfigPossibility | null;
|
81
|
+
/**
|
82
|
+
* 是否正在复制.
|
83
|
+
*/
|
84
|
+
isCopying: ComputedRef<boolean>;
|
85
|
+
/** 正在复制:正在调用接口. */
|
86
|
+
isCopyingRequesting: ComputedRef<ReturnType<IKgVarStore['isCopyingRequesting']>>;
|
87
|
+
/**
|
88
|
+
* 是否正在创建.
|
89
|
+
*/
|
90
|
+
isCreating: ComputedRef<boolean>;
|
91
|
+
/** 正在创建:正在调用接口. */
|
92
|
+
isCreatingRequesting: ComputedRef<ReturnType<IKgVarStore['isCreatingRequesting']>>;
|
93
|
+
/**
|
94
|
+
* 是否正在删除.
|
95
|
+
*/
|
96
|
+
isDeleting: ComputedRef<boolean>;
|
97
|
+
/** 正在删除:正在调用接口. */
|
98
|
+
isDeletingRequesting: ComputedRef<ReturnType<IKgVarStore['isDeletingRequesting']>>;
|
99
|
+
/** 其他按钮:正在调用接口. */
|
100
|
+
isOtherRequesting: ComputedRef<ReturnType<IKgVarStore['isOtherRequesting']>>;
|
101
|
+
/** 变量配置是否查询完成. */
|
102
|
+
isRequested: ComputedRef<ReturnType<IKgVarStore['isRequested']>>;
|
103
|
+
/** 正在查询变量配置. */
|
104
|
+
isRetrieving: ComputedRef<ReturnType<IKgVarStore['isRetrieving']>>;
|
105
|
+
/** 正在查询 VarGridMaster. */
|
106
|
+
isRetrievingVarGridMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarGridMaster']>>;
|
107
|
+
/** 正在查询 VarProfileMaster. */
|
108
|
+
isRetrievingVarProfileMaster: ComputedRef<ReturnType<IKgVarStore['isRetrievingVarProfileMaster']>>;
|
109
|
+
/**
|
110
|
+
* 是否正在更新.
|
111
|
+
*/
|
112
|
+
isUpdating: ComputedRef<boolean>;
|
113
|
+
/** 正在更新:正在调用接口. */
|
114
|
+
isUpdatingRequesting: ComputedRef<ReturnType<IKgVarStore['isUpdatingRequesting']>>;
|
115
|
+
kgButton: IUseKgButton;
|
116
|
+
kgForm: IUseKgForm;
|
117
|
+
kgSearch: IUseKgSearch;
|
118
|
+
kgSubmit: IUseKgSubmit;
|
119
|
+
kgTable: IUseKgTable;
|
120
|
+
kgVarConfig: IUseKgVarConfig;
|
121
|
+
/**
|
122
|
+
* 界面层级.
|
123
|
+
*/
|
124
|
+
level: ComputedRef<ReturnType<IKgVarStore['getLevel']>>;
|
125
|
+
/**
|
126
|
+
* 监听事件: 变量配置数据查询完成.
|
127
|
+
*
|
128
|
+
* @param listener 事件监听函数.
|
129
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
130
|
+
*/
|
131
|
+
onRetrieve(listener: IKgVarRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
132
|
+
/**
|
133
|
+
* 父亲界面.
|
134
|
+
*/
|
135
|
+
parent: ComputedRef<ReturnType<IKgVarStore['getParent']>>;
|
136
|
+
props: ComputedRef<ReturnType<IKgVarStore['getProps']>>;
|
137
|
+
/**
|
138
|
+
* 查询所有变量配置.
|
139
|
+
*
|
140
|
+
* @param param.isForceRequest 是否强制查询. 默认为 false, 即如果该界面的变量配置已经查询过了, 则不再查询; 否则, 重新查询所有变量配置.
|
141
|
+
*/
|
142
|
+
requestAll(param?: {
|
143
|
+
isForceRequest?: boolean;
|
144
|
+
}): Promise<void>;
|
145
|
+
setProps(props: IKgProps): void;
|
146
|
+
setSlots(slots: IKgSlots): void;
|
147
|
+
slots: ComputedRef<ReturnType<IKgVarStore['getSlots']>>;
|
148
|
+
/** 状态数据. */
|
149
|
+
store: IKgVarStore;
|
150
|
+
/**
|
151
|
+
* <p>根据变量名称获取对应翻译.</p>
|
152
|
+
*
|
153
|
+
* @param varName 变量名称.
|
154
|
+
*/
|
155
|
+
t(varName: string | null | undefined): ComputedRef<string>;
|
156
|
+
varButtonCopy: ComputedRef<ReturnType<IKgVarStore['getVarButtonCopy']>>;
|
157
|
+
varButtonCreate: ComputedRef<ReturnType<IKgVarStore['getVarButtonCreate']>>;
|
158
|
+
varButtonDelete: ComputedRef<ReturnType<IKgVarStore['getVarButtonDelete']>>;
|
159
|
+
varButtonUpdate: ComputedRef<ReturnType<IKgVarStore['getVarButtonUpdate']>>;
|
160
|
+
varChildDetails: ComputedRef<ReturnType<IKgVarStore['getVarChildDetails']>>;
|
161
|
+
varDda: ComputedRef<ReturnType<IKgVarStore['getVarDda']>>;
|
162
|
+
varGridConfig: ComputedRef<ReturnType<IKgVarStore['getVarGridConfig']>>;
|
163
|
+
/** 所有的 VarGridMaster 列表. */
|
164
|
+
varGridMasters: ComputedRef<ReturnType<IKgVarStore['getVarGridMasters']>>;
|
165
|
+
varProfileConfig: ComputedRef<ReturnType<IKgVarStore['getVarProfileConfig']>>;
|
166
|
+
/** 所有的 VarProfileMaster 列表. */
|
167
|
+
varProfileMasters: ComputedRef<ReturnType<IKgVarStore['getVarProfileMasters']>>;
|
168
|
+
varVariables: ComputedRef<ReturnType<IKgVarStore['getVarVariables']>>;
|
169
|
+
};
|
170
|
+
/**
|
171
|
+
* <p>使用变量配置.</p>
|
172
|
+
* <ol>
|
173
|
+
* <li>在下级界面中调用时, 可以不传该参数, 此时会通过依赖注入获取,</li>
|
174
|
+
* <li>在任意页面中, 想要访问其他界面标识对应的页面的数据, 需要传入该'界面标识',</li>
|
175
|
+
* <li>在组件外(setup 外面)调用时, 必须传入'界面标识',</li>
|
176
|
+
* </ol>
|
177
|
+
*
|
178
|
+
* <p>术语解释:</p>
|
179
|
+
* <ol>
|
180
|
+
* <li>宿主界面: 某个'界面标识'对应的顶级组件, 可以是菜单页面, 也可以是普通组件,</li>
|
181
|
+
* <li>寄生界面: 通常是指'查找弹窗', '查找弹窗'是'宿主界面'中的某个变量弹出来的, 它的'界面标识'就是该变量的'lookupID'. '寄生界面'是它的'下级界面'的'宿主界面',</li>
|
182
|
+
* <li>下级界面: '宿主界面'下的所有界面, 都是它的'下级界面',</li>
|
183
|
+
* </ol>
|
184
|
+
*
|
185
|
+
* @param formID 界面标识.
|
186
|
+
* @param isInit 是否要初始化界面. 在'宿主界面'第一次调用时, 需要传 true, 对该页面做初始化. 默认为 undefined.
|
187
|
+
* @param level 界面层级. 比如普通界面的层级为 0, 弹窗的界面的层级为 1, 弹窗中的弹窗的界面层级为 2, 以此类推. 默认为 0.
|
188
|
+
*/
|
189
|
+
export declare function useKgVar(formID?: string | null, isInit?: boolean, level?: number): IUseKgVar;
|
@@ -0,0 +1,266 @@
|
|
1
|
+
import { StoreDefinition } from 'pinia';
|
2
|
+
import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarDda, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail, VarVariable } from '../../api/WMS/models';
|
3
|
+
import { IKgEventListener, KG__VAR_BUTTON__TYPE } from '../../const';
|
4
|
+
import { IUseKgVar } from './index.hooks';
|
5
|
+
import { IKgProps, IKgSlots } from './index.vm';
|
6
|
+
/**
|
7
|
+
* 事件类型.
|
8
|
+
* 'onRequest': 变量配置查询完成
|
9
|
+
*/
|
10
|
+
export declare type IKgVarEvent = 'onRequest';
|
11
|
+
export declare type IKgVarRequestEventListenerParameter = {
|
12
|
+
/**
|
13
|
+
* 界面标识.
|
14
|
+
*/
|
15
|
+
formID: string;
|
16
|
+
};
|
17
|
+
export declare type IKgVarRequestEventListener = ((param: IKgVarRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
18
|
+
export declare type IKgVarEventListenerParameter = IKgVarRequestEventListenerParameter;
|
19
|
+
export declare type IKgVarEventListener = IKgVarRequestEventListener;
|
20
|
+
export interface IUseKgVarStoreState {
|
21
|
+
/** 正在复制: 正在调用接口. */
|
22
|
+
isCopyingRequestingMap: Map<string, boolean>;
|
23
|
+
/** 正在创建: 正在调用接口. */
|
24
|
+
isCreatingRequestingMap: Map<string, boolean>;
|
25
|
+
/** 正在删除: 正在调用接口. */
|
26
|
+
isDeletingRequestingMap: Map<string, boolean>;
|
27
|
+
/** 其他按钮: 正在调用接口. */
|
28
|
+
isOtherRequestingMap: Map<string, boolean>;
|
29
|
+
/** 变量配置是否查询完成. */
|
30
|
+
isRequestedMap: Map<string, boolean>;
|
31
|
+
/**
|
32
|
+
* 正在查询所有变量配置.
|
33
|
+
*/
|
34
|
+
isRequestingAllMap: Map<string, boolean>;
|
35
|
+
/** 正在查询 VarGridMaster. */
|
36
|
+
isRetrievingVarGridMasterMap: Map<string, boolean>;
|
37
|
+
/** 正在查询 VarProfileMaster. */
|
38
|
+
isRetrievingVarProfileMasterMap: Map<string, boolean>;
|
39
|
+
/** 正在更新: 正在调用接口. */
|
40
|
+
isUpdatingRequestingMap: Map<string, boolean>;
|
41
|
+
/**
|
42
|
+
* 界面层级.
|
43
|
+
*/
|
44
|
+
levelMap: Map<string, number>;
|
45
|
+
/** 事件监听函数列表: onRequest. */
|
46
|
+
onRequestEventListenerMap: Map<string, Array<IKgVarRequestEventListener>>;
|
47
|
+
propsMap: Map<string, IKgProps>;
|
48
|
+
slotsMap: Map<string, IKgSlots>;
|
49
|
+
varButtonConfigMap: Map<string, VarButtonConfig | null>;
|
50
|
+
varButtonMap: Map<string, Array<VarButton>>;
|
51
|
+
varChildDetailMap: Map<string, Array<VarChildDetail>>;
|
52
|
+
varConfigControlMap: Map<string, Array<VarConfigControl>>;
|
53
|
+
varConfigDescriptionMap: Map<string, Array<VarConfigDescription>>;
|
54
|
+
varConfigInputMap: Map<string, Array<VarConfigInput>>;
|
55
|
+
varConfigLookupMap: Map<string, Array<VarConfigLookup>>;
|
56
|
+
varConfigPossibilityMap: Map<string, Array<VarConfigPossibility>>;
|
57
|
+
varConfigTipMap: Map<string, Array<VarConfigTip>>;
|
58
|
+
varDdaMap: Map<string, VarDda | null>;
|
59
|
+
varGridConfigMap: Map<string, VarGridConfig | null>;
|
60
|
+
varGridMasterMap: Map<string, {
|
61
|
+
varGridMasters: Array<VarGridMasterDTO> | null;
|
62
|
+
/** 当前表格视图. */
|
63
|
+
currentVarGridMasterID: string | null;
|
64
|
+
}>;
|
65
|
+
varProfileConfigMap: Map<string, VarProfileConfig | null>;
|
66
|
+
varProfileMasterMap: Map<string, {
|
67
|
+
varProfileMasters: Array<VarProfileMasterDTO> | null;
|
68
|
+
/** 当前选中的 VarProfileMaster ID. */
|
69
|
+
currentVarProfileMasterID: string | null;
|
70
|
+
}>;
|
71
|
+
varSubmitConfigMap: Map<string, Array<VarSubmitConfig>>;
|
72
|
+
varSubmitDetailMap: Map<string, Array<VarSubmitDetail>>;
|
73
|
+
varVariableMap: Map<string, Array<VarVariable> | null>;
|
74
|
+
}
|
75
|
+
export interface IUseKgVarStoreGetters {
|
76
|
+
/**
|
77
|
+
* 获取当前的 VarGridDetail 列表.
|
78
|
+
*/
|
79
|
+
getCurrentVarGridDetails(): (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
80
|
+
getCurrentVarGridMaster(): (formID: string | null | undefined) => VarGridMasterDTO | null;
|
81
|
+
/** 获取当前'表格视图'的 ID. */
|
82
|
+
getCurrentVarGridMasterID(): (formID: string | null | undefined) => string | null;
|
83
|
+
/**
|
84
|
+
* 获取当前的 VarProfileMaster.
|
85
|
+
*/
|
86
|
+
getCurrentVarProfileMaster(): (formID: string | null | undefined) => VarProfileMasterDTO | null;
|
87
|
+
/** 获取当前 VarProfileMaster 的 ID. */
|
88
|
+
getCurrentVarProfileMasterID(): (formID: string | null | undefined) => string | null;
|
89
|
+
/**
|
90
|
+
* 获取当前视图下可显示的 VarGridDetail 列表.
|
91
|
+
*/
|
92
|
+
getCurrentVisibleVarGridDetails(): (formID: string | null | undefined) => Array<VarGridDetail> | null;
|
93
|
+
/**
|
94
|
+
* 获取当前视图下可显示的 VarGridDetail 的宽度之和.
|
95
|
+
*/
|
96
|
+
getCurrentVisibleVarGridDetailsTotalWidth(): (formID: string | null | undefined) => number | null;
|
97
|
+
/**
|
98
|
+
* 获取界面层级.
|
99
|
+
*/
|
100
|
+
getLevel(): (formID: string | null | undefined) => number;
|
101
|
+
getParent(): (formID: string | null | undefined) => IUseKgVar | null;
|
102
|
+
getProps(): (formID: string | null | undefined) => IKgProps | null;
|
103
|
+
getSlots(): (formID: string | null | undefined) => IKgSlots | null;
|
104
|
+
/**
|
105
|
+
* 和 var_nam 获取 VarButton.
|
106
|
+
*/
|
107
|
+
getVarButton(): (formID: string | null | undefined, varName: string | null | undefined) => VarButton | null;
|
108
|
+
getVarButtonCopy(): (formID: string | null | undefined) => VarButton | null;
|
109
|
+
getVarButtonCreate(): (formID: string | null | undefined) => VarButton | null;
|
110
|
+
getVarButtonDelete(): (formID: string | null | undefined) => VarButton | null;
|
111
|
+
getVarButtonUpdate(): (formID: string | null | undefined) => VarButton | null;
|
112
|
+
getVarChildDetails(): (formID: string | null | undefined) => Array<VarChildDetail>;
|
113
|
+
getVarConfigControl(): (formID: string | null | undefined, param: {
|
114
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
115
|
+
buttonVarName?: string | null;
|
116
|
+
varName: string | null | undefined;
|
117
|
+
}) => VarConfigControl | null;
|
118
|
+
getVarConfigInput(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigInput | null;
|
119
|
+
getVarConfigLookup(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigLookup | null;
|
120
|
+
getVarConfigPossibility(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigPossibility | null;
|
121
|
+
getVarConfigTip(): (formID: string | null | undefined, varName: string | null | undefined) => VarConfigTip | null;
|
122
|
+
getVarDda(): (formID: string | null | undefined) => VarDda | null;
|
123
|
+
/**
|
124
|
+
* 获取'表格配置'.
|
125
|
+
*/
|
126
|
+
getVarGridConfig(): (formID: string | null | undefined) => VarGridConfig | null;
|
127
|
+
/** 获取所有的 VarGridConfig. */
|
128
|
+
getVarGridConfigMap(): Map<string, VarGridConfig | null>;
|
129
|
+
/**
|
130
|
+
* 获取 VarGridMaster 列表.
|
131
|
+
*/
|
132
|
+
getVarGridMasters(): (formID: string | null | undefined) => Array<VarGridMasterDTO> | null;
|
133
|
+
getVarProfileConfig(): (formID: string | null | undefined) => VarProfileConfig | null;
|
134
|
+
/**
|
135
|
+
* 和 var_nam 获取当前 VarProfileMaster 下的某个 VarProfileDetail.
|
136
|
+
*/
|
137
|
+
getVarProfileDetail(): (formID: string | null | undefined, varName: string | null | undefined) => VarProfileDetail | null;
|
138
|
+
/**
|
139
|
+
* 获取 VarProfileMasterDTO 列表.
|
140
|
+
*/
|
141
|
+
getVarProfileMasters(): (formID: string | null | undefined) => Array<VarProfileMasterDTO> | null;
|
142
|
+
getVarVariables(): (formID: string | null | undefined) => Array<VarVariable>;
|
143
|
+
isCopyingRequesting(): (formID: string | null | undefined) => boolean | null;
|
144
|
+
isCreatingRequesting(): (formID: string | null | undefined) => boolean | null;
|
145
|
+
isDeletingRequesting(): (formID: string | null | undefined) => boolean | null;
|
146
|
+
isOtherRequesting(): (formID: string | null | undefined) => boolean | null;
|
147
|
+
/** 变量配置是否查询完成. */
|
148
|
+
isRequested(): (formID: string | null | undefined) => boolean;
|
149
|
+
isRetrieving(): (formID: string | null | undefined) => boolean | null;
|
150
|
+
isRetrievingVarGridMaster(): (formID: string | null | undefined) => boolean | null;
|
151
|
+
isRetrievingVarProfileMaster(): (formID: string | null | undefined) => boolean | null;
|
152
|
+
isUpdatingRequesting(): (formID: string | null | undefined) => boolean | null;
|
153
|
+
/**
|
154
|
+
* 翻译变量.
|
155
|
+
*/
|
156
|
+
t(): (formID: string | null | undefined, varName: string | null | undefined) => string;
|
157
|
+
}
|
158
|
+
export interface IUseKgVarStoreActions {
|
159
|
+
/**
|
160
|
+
* 注册事件监听.
|
161
|
+
* @param formID 界面标识.
|
162
|
+
* @param event 事件名称.
|
163
|
+
* @param listener 事件监听函数.
|
164
|
+
*/
|
165
|
+
addEventListener(formID: string | null | undefined, event: IKgVarEvent, listener: any): void;
|
166
|
+
createVarConfigControl(formID: string | null | undefined, varConfigControl: VarConfigControl): void;
|
167
|
+
createVarConfigDescription(formID: string | null | undefined, varConfigDescription: VarConfigDescription): void;
|
168
|
+
createVarConfigPossibility(formID: string | null | undefined, varConfigPossibility: VarConfigPossibility): void;
|
169
|
+
/**
|
170
|
+
* <p>离开一个界面, 即销毁一个界面.</p>
|
171
|
+
* <p>删除它的变量配置数据.</p>
|
172
|
+
*
|
173
|
+
* @param formID 界面标识.
|
174
|
+
*/
|
175
|
+
dispose(formID: string): void;
|
176
|
+
/**
|
177
|
+
* 拖拽排序 VarGridDetail 列表.
|
178
|
+
* @param formID 界面标识.
|
179
|
+
* @param fromVarName 被拽起的变量名称
|
180
|
+
* @param toVarName 被放下的变量名称.
|
181
|
+
*/
|
182
|
+
dragSortCurrentVarGridDetails(formID: string | null | undefined, fromVarName: string | null | undefined, toVarName: string | null | undefined): void;
|
183
|
+
/**
|
184
|
+
* 触发事件.
|
185
|
+
* @param formID 界面标识.
|
186
|
+
* @param event 事件名称.
|
187
|
+
* @param param 事件参数.
|
188
|
+
*/
|
189
|
+
emit<T = IKgVarEventListenerParameter>(formID: string, event: IKgVarEvent, param: T): Promise<boolean>;
|
190
|
+
/**
|
191
|
+
* 进入一个界面. 同一个界面不允许进入多次.
|
192
|
+
* @param param.formID 界面标识.
|
193
|
+
* @param param.level 界面层级.
|
194
|
+
*/
|
195
|
+
init(param: {
|
196
|
+
formID: string;
|
197
|
+
level: number;
|
198
|
+
}): Promise<void>;
|
199
|
+
/**
|
200
|
+
* 修改 VarConfigPossibility 的接口参数 cmd_prm 的部分属性.
|
201
|
+
* @param formID 界面标识.
|
202
|
+
* @param var_nam 变量名称
|
203
|
+
* @param properties 要修改的部分属性.
|
204
|
+
*/
|
205
|
+
patchVarPossibilityCommandParameter(formID: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): Promise<void>;
|
206
|
+
/**
|
207
|
+
* 修改 VarProfileDetail 的部分属性.
|
208
|
+
* @param formID 界面标识.
|
209
|
+
* @param var_nam 变量名称.
|
210
|
+
* @param properties 要修改的部分属性.
|
211
|
+
*/
|
212
|
+
patchVarProfileDetail(formID: string, var_nam: string | null | undefined, properties: VarProfileDetail): Promise<void>;
|
213
|
+
/**
|
214
|
+
* 退订事件监听.
|
215
|
+
* @param formID 界面标识.
|
216
|
+
* @param event 事件名称.
|
217
|
+
* @param listener 事件监听函数.
|
218
|
+
*/
|
219
|
+
removeEventListener(formID: string, event: IKgVarEvent, listener?: any): void;
|
220
|
+
/**
|
221
|
+
* 查询所有变量配置.
|
222
|
+
*
|
223
|
+
* @param formID 界面标识.
|
224
|
+
* @param param 参数.
|
225
|
+
* @param param.isForceRequest 是否强制查询. 默认为 false, 即如果该界面的变量配置已经查询过了, 则不再查询; 否则, 重新查询所有变量配置.
|
226
|
+
*/
|
227
|
+
requestAll(formID: string | null | undefined, param?: {
|
228
|
+
isForceRequest?: boolean;
|
229
|
+
}): Promise<void>;
|
230
|
+
/**
|
231
|
+
* 设置当前选择的表格视图的 ID.
|
232
|
+
* @param formID 界面标识.
|
233
|
+
* @param currentVarGridMasterID 当前选择的表格视图的 ID.
|
234
|
+
*/
|
235
|
+
setCurrentVarGridMasterID(formID?: string | null, currentVarGridMasterID?: string | null): Promise<void>;
|
236
|
+
/**
|
237
|
+
* 设置当前选择的查询条件的 ID.
|
238
|
+
* @param formID 界面标识.
|
239
|
+
* @param currentVarProfileMasterID 当前选择的查询条件的 ID.
|
240
|
+
*/
|
241
|
+
setCurrentVarProfileMasterID(formID?: string | null, currentVarProfileMasterID?: string | null): Promise<void>;
|
242
|
+
setIsCopyingRequesting(formID: string, value: boolean): void;
|
243
|
+
setIsCreatingRequesting(formID: string, value: boolean): void;
|
244
|
+
setIsDeletingRequesting(formID: string, value: boolean): void;
|
245
|
+
setIsOtherRequesting(formID: string, value: boolean): void;
|
246
|
+
setIsUpdatingRequesting(formID: string, value: boolean): void;
|
247
|
+
setProps(formID: string, value: IKgProps): void;
|
248
|
+
setSlots(formID: string, value: IKgSlots): void;
|
249
|
+
/**
|
250
|
+
* 设置某个 VarConfigPossibility 配置.
|
251
|
+
* @param formID 界面标识.
|
252
|
+
* @param var_nam 变量名称
|
253
|
+
* @param varConfigPossibility 配置.
|
254
|
+
*/
|
255
|
+
setVarPossibility(formID: string | null | undefined, var_nam: string | null | undefined, varConfigPossibility: VarConfigPossibility): void;
|
256
|
+
/**
|
257
|
+
* 设置查询字段是否启用.
|
258
|
+
* @param formID 界面标识.
|
259
|
+
* @param var_nam 变量名称.
|
260
|
+
* @param enable 是否启用.
|
261
|
+
*/
|
262
|
+
setVarProfileDetailEnable(formID: string, var_nam: string | null | undefined, enable: number): void;
|
263
|
+
}
|
264
|
+
export declare type IUseKgVarStore = StoreDefinition<'KgVar', IUseKgVarStoreState, IUseKgVarStoreGetters, IUseKgVarStoreActions>;
|
265
|
+
export declare type IKgVarStore = ReturnType<IUseKgVarStore>;
|
266
|
+
export declare const useKgVarStore: IUseKgVarStore;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail } from '../../api/WMS/models';
|
2
|
+
export declare function transformVarProfileConfig(varProfileConfig: VarProfileConfig | null | undefined): VarProfileConfig | null;
|
3
|
+
export declare function transformVarGridConfig(varGridConfig: VarGridConfig | null | undefined): VarGridConfig | null;
|
4
|
+
export declare function transformVarGridMasters(varGridMasters?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
|
5
|
+
export declare function transformVarChildDetails(varChildDetails: Array<VarChildDetail> | null | undefined): Array<VarChildDetail>;
|
6
|
+
export declare function transformVarProfileMasters(varProfileMasters?: Array<VarProfileMasterDTO> | null): Array<VarProfileMasterDTO>;
|
7
|
+
export declare function transformVarSubmitConfigs(varSubmitConfigs?: Array<VarSubmitConfig> | null): Array<VarSubmitConfig>;
|
8
|
+
export declare function transformVarSubmitDetails(varSubmitDetails?: Array<VarSubmitDetail> | null): Array<VarSubmitDetail>;
|
9
|
+
export declare function transformVarButtons(varButtons?: Array<VarButton> | null): Array<VarButton>;
|
10
|
+
export declare function transformVarConfigPossibilities(varConfigPossibilities: Array<VarConfigPossibility> | null | undefined): Array<VarConfigPossibility>;
|
11
|
+
export declare function transformVarConfigControls(varConfigControls: Array<VarConfigControl> | null | undefined): Array<VarConfigControl>;
|
12
|
+
export declare function transformVarConfigLookups(varConfigLookups: Array<VarConfigLookup> | null | undefined): Array<VarConfigLookup>;
|
13
|
+
export declare function transformVarConfigTips(varConfigTips: Array<VarConfigTip> | null | undefined): Array<VarConfigTip>;
|
14
|
+
export declare function transformVarConfigInputs(varConfigInputs: Array<VarConfigInput> | null | undefined): Array<VarConfigInput>;
|
15
|
+
export declare function transformVarButtonConfig(varButtonConfig: VarButtonConfig | null | undefined): VarButtonConfig | null;
|
16
|
+
/**
|
17
|
+
* 处理 VarGridDetail 数据.
|
18
|
+
*
|
19
|
+
* @param varGridDetails 原始数据.
|
20
|
+
*/
|
21
|
+
export declare function transformVarGridDetails(varGridDetails?: Array<VarGridDetail> | null): Array<VarGridDetail>;
|
22
|
+
export declare function transformVarProfileDetails(varProfileDetails?: Array<VarProfileDetail> | null): Array<VarProfileDetail>;
|
23
|
+
/**
|
24
|
+
* 给所有没有「提交表单字段」的「查询条件视图明细」创建一个默认的「提交表单字段」.
|
25
|
+
*
|
26
|
+
* @param varGridMasters 「查询条件视图」列表.
|
27
|
+
* @param varSubmitDetails 「提交表单字段」列表.
|
28
|
+
* @param varButtons 「按钮」列表.
|
29
|
+
*/
|
30
|
+
export declare function createDefaultVarSubmitDetailsForVarProfileDetails(varGridMasters: Array<VarProfileMasterDTO>, varSubmitDetails: Array<VarSubmitDetail>, varButtons: Array<VarButton>): void;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
2
|
+
import { IKgButtonProps } from '../KgButton';
|
3
|
+
import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/index.vm';
|
4
|
+
import { IKgSearchProps } from '../KgSearch';
|
5
|
+
import { KgSubmitProps } from '../KgSubmit';
|
6
|
+
import { IKgTableSlotParams } from '../KgTable';
|
7
|
+
import { IKgTableProps } from '../KgTable/KgTable';
|
8
|
+
export declare type IKgSlots = {
|
9
|
+
KgButton?: {
|
10
|
+
/** 右侧. */
|
11
|
+
right?: () => any;
|
12
|
+
};
|
13
|
+
KgSearch?: {
|
14
|
+
/** 左侧. */
|
15
|
+
left?: () => any;
|
16
|
+
};
|
17
|
+
KgSubmit?: {
|
18
|
+
/**
|
19
|
+
* 某个表单控件.
|
20
|
+
*/
|
21
|
+
'KgForm.Item.control'?: {
|
22
|
+
[variable: string]: (param: IKgFormItemSlotControlParameter) => any;
|
23
|
+
};
|
24
|
+
/** 某个表单控件右侧. */
|
25
|
+
'KgForm.Item.controlRight'?: {
|
26
|
+
[variable: string]: (param: IKgFormItemSlotControlRightParameter) => any;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
KgTable?: {
|
30
|
+
/** 单元格. */
|
31
|
+
bodyCell?: (param: IKgTableSlotParams['bodyCell']) => any;
|
32
|
+
/** 展开行. */
|
33
|
+
expandedRowRender?: (param: IKgTableSlotParams['expandedRowRender']) => any;
|
34
|
+
/** 表格底部的汇总行.单元格. */
|
35
|
+
'summary.bodyCell'?: (param: IKgTableSlotParams['summary.bodyCell']) => any;
|
36
|
+
};
|
37
|
+
/** KgTable 下面. */
|
38
|
+
afterKgTable?: () => any;
|
39
|
+
/** 底部. */
|
40
|
+
bottom?: () => any;
|
41
|
+
/**
|
42
|
+
* 孩子页面.
|
43
|
+
*/
|
44
|
+
children?: {
|
45
|
+
[childFormID: string]: () => any;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
/** 注入 kgSlots 参数. */
|
49
|
+
export declare const KG__DI__KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
|
50
|
+
export declare type IKgProps = {
|
51
|
+
KgButton?: IKgButtonProps;
|
52
|
+
KgSearch?: IKgSearchProps;
|
53
|
+
KgSubmit?: KgSubmitProps;
|
54
|
+
KgTable?: IKgTableProps;
|
55
|
+
};
|
56
|
+
/** 注入 kgProps 参数. */
|
57
|
+
export declare const KG__DI__KG_VAR__KG_PROPS: InjectionKey<ComputedRef<IKgProps | undefined>>;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import './KgVarConfig.less';
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
3
|
+
export default _default;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
export declare const getProps: () => {
|
3
|
+
visible: PropType<boolean>;
|
4
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
5
|
+
formIDs: PropType<string[]>;
|
6
|
+
onKgOk: PropType<(formID: string) => void>;
|
7
|
+
};
|
8
|
+
export declare type KgVarConfigSelectFormIdModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
9
|
+
/**
|
10
|
+
* <p>界面标识选择弹窗.</p>
|
11
|
+
* <p>当前界面存在多个界面标识时, 需要用户手动选择要配置哪个弹窗.</p>
|
12
|
+
*/
|
13
|
+
declare const _default: import("vue").DefineComponent<{
|
14
|
+
visible: PropType<boolean>;
|
15
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
16
|
+
formIDs: PropType<string[]>;
|
17
|
+
onKgOk: PropType<(formID: string) => void>;
|
18
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "kgOk")[], "update:visible" | "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
19
|
+
visible: PropType<boolean>;
|
20
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
21
|
+
formIDs: PropType<string[]>;
|
22
|
+
onKgOk: PropType<(formID: string) => void>;
|
23
|
+
}>> & {
|
24
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
25
|
+
onKgOk?: ((...args: any[]) => any) | undefined;
|
26
|
+
}, {}>;
|
27
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
export declare const getProps: () => {
|
3
|
+
visible: PropType<boolean>;
|
4
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
5
|
+
};
|
6
|
+
export declare type KgVarConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
7
|
+
export declare const KgVarConfigModal: import("vue").DefineComponent<{
|
8
|
+
visible: PropType<boolean>;
|
9
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
10
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
11
|
+
visible: PropType<boolean>;
|
12
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
13
|
+
}>> & {
|
14
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
15
|
+
}, {}>;
|
package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const getProps: () => any;
|
3
|
+
export declare type KgVarConfigModalButtonVarButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
4
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
|
+
[x: string]: any;
|
6
|
+
}>;
|
7
|
+
export default _default;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const getProps: () => any;
|
3
|
+
export declare type KgVarConfigModalButtonVarButtonConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
4
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
|
+
[x: string]: any;
|
6
|
+
}>;
|
7
|
+
export default _default;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const getProps: () => any;
|
2
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
3
|
+
[x: string]: any;
|
4
|
+
}>;
|
5
|
+
export default _default;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const getProps: () => any;
|
3
|
+
export declare type KgVarConfigModalChildProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
4
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
|
+
[x: string]: any;
|
6
|
+
}>;
|
7
|
+
export default _default;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const getProps: () => any;
|
3
|
+
export declare type KgVarConfigModalSearchVarProfileConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
4
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
|
+
[x: string]: any;
|
6
|
+
}>;
|
7
|
+
export default _default;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const getProps: () => any;
|
3
|
+
export declare type KgVarConfigModalSearchVarProfileMasterProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
4
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
|
+
[x: string]: any;
|
6
|
+
}>;
|
7
|
+
export default _default;
|