@kengic/vue 0.26.6-beta.1 → 0.26.6-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +126 -118
- package/package.json +4 -3
- package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +0 -51
- package/dist/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +0 -2
- package/dist/src/apis/WMS/Controllers/SysPermissionController/List.d.ts +0 -73
- package/dist/src/apis/WMS/Controllers/SysPermissionController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +0 -18
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/VarDdaController/Create.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/index.d.ts +0 -9
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +0 -19
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +0 -2
- package/dist/src/apis/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +0 -19
- package/dist/src/apis/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/VarVariableController/Delete.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarVariableController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +0 -54
- package/dist/src/apis/WMS/Controllers/WhController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/WorkstationController/List.d.ts +0 -25
- package/dist/src/apis/WMS/Controllers/WorkstationController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/index.d.ts +0 -11
- package/dist/src/apis/WMS/index.d.ts +0 -2
- package/dist/src/apis/WMS/models.d.ts +0 -1012
- package/dist/src/apis/api.d.ts +0 -1
- package/dist/src/apis/def.d.ts +0 -1
- package/dist/src/apis/index.d.ts +0 -2
- package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +0 -47
- package/dist/src/components/KgAppSelect/index.d.ts +0 -3
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +0 -41
- package/dist/src/components/KgAppSelect/index.store.d.ts +0 -74
- package/dist/src/components/KgButton/KgButton.Item.d.ts +0 -41
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +0 -31
- package/dist/src/components/KgButton/KgButton.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +0 -40
- package/dist/src/components/KgButton/index.d.ts +0 -62
- package/dist/src/components/KgButton/index.hooks.d.ts +0 -183
- package/dist/src/components/KgButton/index.store.d.ts +0 -116
- package/dist/src/components/KgCanvas/KgCanvas.ContextMenu.d.ts +0 -107
- package/dist/src/components/KgCanvas/KgCanvas.d.ts +0 -122
- package/dist/src/components/KgCanvas/KgCanvas.service.d.ts +0 -36
- package/dist/src/components/KgCanvas/index.d.ts +0 -4
- package/dist/src/components/KgCanvas/index.hooks.d.ts +0 -67
- package/dist/src/components/KgCanvas/index.store.d.ts +0 -239
- package/dist/src/components/KgForm/KgForm.d.ts +0 -414
- package/dist/src/components/KgForm/index.d.ts +0 -604
- package/dist/src/components/KgForm/index.hooks.d.ts +0 -73
- package/dist/src/components/KgForm/index.store.d.ts +0 -221
- package/dist/src/components/KgForm/index.vm.d.ts +0 -9
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +0 -97
- package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +0 -17
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +0 -49
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -16
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -31
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -100
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +0 -99
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -97
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -97
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +0 -92
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -96
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -96
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +0 -96
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -98
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +0 -98
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +0 -29
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -96
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +0 -96
- package/dist/src/components/KgForm.Item/index.d.ts +0 -2
- package/dist/src/components/KgForm.Item/index.vm.d.ts +0 -124
- package/dist/src/components/KgImage/KgImage.d.ts +0 -100
- package/dist/src/components/KgImage/index.d.ts +0 -1
- package/dist/src/components/KgLayoutHeader/components/KgLayoutHeaderLocale.d.ts +0 -38
- package/dist/src/components/KgLayoutHeader/index.d.ts +0 -2
- package/dist/src/components/KgLayoutHeader/index.hooks.d.ts +0 -4
- package/dist/src/components/KgModal/KgModal.d.ts +0 -817
- package/dist/src/components/KgModal/KgModal.service.d.ts +0 -39
- package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +0 -92
- package/dist/src/components/KgModal/index.d.ts +0 -1
- package/dist/src/components/KgModal/index.vm.d.ts +0 -8
- package/dist/src/components/KgProgressA/KgProgressA.d.ts +0 -85
- package/dist/src/components/KgProgressA/index.d.ts +0 -1
- package/dist/src/components/KgResizable/KgResizable.d.ts +0 -91
- package/dist/src/components/KgResizable/KgResizable.service.d.ts +0 -12
- package/dist/src/components/KgResizable/index.d.ts +0 -1
- package/dist/src/components/KgSearch/KgSearch.d.ts +0 -26
- package/dist/src/components/KgSearch/KgSearch.service.d.ts +0 -32
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -16
- package/dist/src/components/KgSearch/index.d.ts +0 -3
- package/dist/src/components/KgSearch/index.hooks.d.ts +0 -67
- package/dist/src/components/KgSearch/index.store.d.ts +0 -147
- package/dist/src/components/KgSearch/index.vm.d.ts +0 -1
- package/dist/src/components/KgStation/KgStation.d.ts +0 -47
- package/dist/src/components/KgStation/index.d.ts +0 -3
- package/dist/src/components/KgStation/index.hooks.d.ts +0 -29
- package/dist/src/components/KgStation/index.store.d.ts +0 -45
- package/dist/src/components/KgSubmit/KgSubmit.d.ts +0 -21
- package/dist/src/components/KgSubmit/KgSubmit.service.d.ts +0 -29
- package/dist/src/components/KgSubmit/index.d.ts +0 -4
- package/dist/src/components/KgSubmit/index.hooks.d.ts +0 -295
- package/dist/src/components/KgSubmit/index.store.d.ts +0 -194
- package/dist/src/components/KgSubmit/index.vm.d.ts +0 -57
- package/dist/src/components/KgTable/KgTable.d.ts +0 -39
- package/dist/src/components/KgTable/KgTable.service.d.ts +0 -34
- package/dist/src/components/KgTable/components/KgTable.BodyCell.d.ts +0 -60
- package/dist/src/components/KgTable/components/KgTable.HeaderCell.d.ts +0 -52
- package/dist/src/components/KgTable/components/KgTable.Info.d.ts +0 -57
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -5
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -21
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +0 -22
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -16
- package/dist/src/components/KgTable/index.d.ts +0 -4
- package/dist/src/components/KgTable/index.hooks.d.ts +0 -148
- package/dist/src/components/KgTable/index.store.d.ts +0 -241
- package/dist/src/components/KgTable/index.vm.d.ts +0 -67
- package/dist/src/components/KgVar/KgVar.d.ts +0 -114
- package/dist/src/components/KgVar/index.d.ts +0 -4
- package/dist/src/components/KgVar/index.hooks.d.ts +0 -184
- package/dist/src/components/KgVar/index.store.d.ts +0 -253
- package/dist/src/components/KgVar/index.store.service.d.ts +0 -30
- package/dist/src/components/KgVar/index.vm.d.ts +0 -55
- package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +0 -3
- package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +0 -16
- package/dist/src/components/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +0 -27
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -5
- package/dist/src/components/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +0 -5
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -5
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +0 -23
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +0 -5
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +0 -2
- package/dist/src/components/KgVarConfig/index.d.ts +0 -3
- package/dist/src/components/KgVarConfig/index.hooks.d.ts +0 -17
- package/dist/src/components/KgVarConfig/index.store.d.ts +0 -16
- package/dist/src/components/KgVarConfig/index.vm.d.ts +0 -50
- package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +0 -47
- package/dist/src/components/KgWarehouse/index.d.ts +0 -4
- package/dist/src/components/KgWarehouse/index.guard.d.ts +0 -8
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +0 -27
- package/dist/src/components/KgWarehouse/index.store.d.ts +0 -63
- package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +0 -60
- package/dist/src/components/KgYesOrNo/index.d.ts +0 -1
- package/dist/src/components/index.d.ts +0 -21
- package/dist/src/components/util.d.ts +0 -14
- package/dist/src/config/index.d.ts +0 -3
- package/dist/src/config/index.hooks.d.ts +0 -36
- package/dist/src/config/index.store.d.ts +0 -315
- package/dist/src/config/setup/index.d.ts +0 -3
- package/dist/src/config/setup/setup.d.ts +0 -27
- package/dist/src/config/setup/setupKgLocale.d.ts +0 -29
- package/dist/src/config/setup/setupKgStore.d.ts +0 -18
- package/dist/src/consts/i18n/en.d.ts +0 -274
- package/dist/src/consts/i18n/es_ES.d.ts +0 -274
- package/dist/src/consts/i18n/fr_FR.d.ts +0 -274
- package/dist/src/consts/i18n/index.d.ts +0 -2
- package/dist/src/consts/i18n/km_KH.d.ts +0 -274
- package/dist/src/consts/i18n/ko_KR.d.ts +0 -274
- package/dist/src/consts/i18n/vi_VN.d.ts +0 -274
- package/dist/src/consts/i18n/zh_CN.d.ts +0 -274
- package/dist/src/consts/index.d.ts +0 -3
- package/dist/src/consts/index.vm.d.ts +0 -725
- package/dist/src/consts/injection-keys.const.d.ts +0 -9
- package/dist/src/helpers/ant-design-vue.d.ts +0 -347
- package/dist/src/helpers/tsx.helper.d.ts +0 -23
- package/dist/src/index.d.ts +0 -10
- package/dist/src/pages/KgPageDda/KgPageDda.d.ts +0 -8
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +0 -32
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Menu.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Search.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Submit.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Table.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.d.ts +0 -33
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +0 -1322
- package/dist/src/pages/KgPageDda/index.d.ts +0 -5
- package/dist/src/pages/KgPageDda/index.vm.d.ts +0 -12
- package/dist/src/pages/KgVarFactory/KgVarFactory.d.ts +0 -62
- package/dist/src/pages/KgVarFactory/index.d.ts +0 -1
- package/dist/src/pages/index.d.ts +0 -9
- package/dist/src/project/build/getConfigFileName.d.ts +0 -5
- package/dist/src/project/build/index.d.ts +0 -1
- package/dist/src/project/index.d.ts +0 -3
- package/dist/src/project/src/api/index.d.ts +0 -3
- package/dist/src/project/src/api/sys/model/menuModel.d.ts +0 -15
- package/dist/src/project/src/api/sys/model/uploadModel.d.ts +0 -5
- package/dist/src/project/src/api/sys/model/userModel.d.ts +0 -46
- package/dist/src/project/src/components/Dropdown/index.d.ts +0 -1
- package/dist/src/project/src/components/Dropdown/src/typing.d.ts +0 -9
- package/dist/src/project/src/components/index.d.ts +0 -1
- package/dist/src/project/src/enums/CompTypeEnum.d.ts +0 -19
- package/dist/src/project/src/enums/DateTypeEnum.d.ts +0 -8
- package/dist/src/project/src/enums/appEnum.d.ts +0 -40
- package/dist/src/project/src/enums/breakpointEnum.d.ts +0 -18
- package/dist/src/project/src/enums/cacheEnum.d.ts +0 -18
- package/dist/src/project/src/enums/exceptionEnum.d.ts +0 -17
- package/dist/src/project/src/enums/httpEnum.d.ts +0 -38
- package/dist/src/project/src/enums/index.d.ts +0 -13
- package/dist/src/project/src/enums/jeecgEnum.d.ts +0 -16
- package/dist/src/project/src/enums/menuEnum.d.ts +0 -35
- package/dist/src/project/src/enums/pageEnum.d.ts +0 -14
- package/dist/src/project/src/enums/roleEnum.d.ts +0 -4
- package/dist/src/project/src/enums/sizeEnum.d.ts +0 -18
- package/dist/src/project/src/hooks/index.d.ts +0 -1
- package/dist/src/project/src/hooks/web/useI18n.d.ts +0 -13
- package/dist/src/project/src/index.d.ts +0 -13
- package/dist/src/project/src/locales/helper.d.ts +0 -5
- package/dist/src/project/src/locales/index.d.ts +0 -3
- package/dist/src/project/src/locales/setupI18n.d.ts +0 -4
- package/dist/src/project/src/locales/useLocale.d.ts +0 -10
- package/dist/src/project/src/settings/componentSetting.d.ts +0 -44
- package/dist/src/project/src/settings/designSetting.d.ts +0 -6
- package/dist/src/project/src/settings/encryptionSetting.d.ts +0 -6
- package/dist/src/project/src/settings/index.d.ts +0 -3
- package/dist/src/project/src/store/index.d.ts +0 -1
- package/dist/src/project/src/store/modules/index.d.ts +0 -1
- package/dist/src/project/src/store/modules/locale.d.ts +0 -38
- package/dist/src/project/src/utils/cache/index.d.ts +0 -7
- package/dist/src/project/src/utils/cache/memory.d.ts +0 -22
- package/dist/src/project/src/utils/cache/persistent.d.ts +0 -33
- package/dist/src/project/src/utils/cache/storageCache.d.ts +0 -8
- package/dist/src/project/src/utils/cipher.d.ts +0 -19
- package/dist/src/project/src/utils/env.d.ts +0 -34
- package/dist/src/project/types/axios.d.ts +0 -35
- package/dist/src/project/types/config.d.ts +0 -121
- package/dist/src/project/types/index.d.ts +0 -4
- package/dist/src/project/types/store.d.ts +0 -42
- package/dist/src/project/types/utils.d.ts +0 -4
- package/dist/src/services/http-client.d.ts +0 -93
- package/dist/src/services/index.d.ts +0 -1
- package/dist/src/utils/index.d.ts +0 -6
- package/dist/src/utils/kg-auth.util.d.ts +0 -26
- package/dist/src/utils/kg-dom.util.d.ts +0 -12
- package/dist/src/utils/kg-logger.util.d.ts +0 -69
- package/dist/src/utils/kg-route.util.d.ts +0 -57
- package/dist/src/utils/kg-var.util.d.ts +0 -76
- package/dist/src/utils/kg.util.d.ts +0 -150
@@ -1,76 +0,0 @@
|
|
1
|
-
import dayjs from 'dayjs';
|
2
|
-
import { KG__VAR_CONFIG_CONTROL__CONTROL_TYPE } from '../consts';
|
3
|
-
/**
|
4
|
-
* 变量相关工具.
|
5
|
-
*/
|
6
|
-
export declare class KgVarUtil {
|
7
|
-
/**
|
8
|
-
* <p>将 JSON 字符串形式的参数 `'{"foo":1,"bar":2}'` 转换为对象形式的参数 `{ "foo": 1, "bar": 2 }`.</p>
|
9
|
-
*
|
10
|
-
* @param params JSON 字符串形式的参数.
|
11
|
-
* @return {} 参数对象.
|
12
|
-
*/
|
13
|
-
static parseRequestParamsToJSON(params: string | null | undefined): Record<string, any>;
|
14
|
-
/**
|
15
|
-
* <p>根据控件类型, 将表单控件的默认值转换为合法的值.</p>
|
16
|
-
*
|
17
|
-
* @param param.$dayjs dayjs.
|
18
|
-
* @param param.buttonVarName 「变量配置:表单控件」所属的按钮的变量名称.
|
19
|
-
* @param param.formID 界面标识.
|
20
|
-
* @param param.value 原始的值.
|
21
|
-
* @param param.varName 变量名称.
|
22
|
-
* @return {} 转换之后的值.
|
23
|
-
*/
|
24
|
-
static transformFormItemDefaultValue(param: {
|
25
|
-
$dayjs: typeof dayjs;
|
26
|
-
buttonVarName: string | null | undefined;
|
27
|
-
formID: string;
|
28
|
-
value: any;
|
29
|
-
varName: string;
|
30
|
-
}): any;
|
31
|
-
/**
|
32
|
-
* 根据控件类型, 将任意的高级查询操作符(可能非法)转换为合法的值.
|
33
|
-
*
|
34
|
-
* @param param.formID 界面标识.
|
35
|
-
* @param param.value 原始的高级查询操作符.
|
36
|
-
* @param param.varName 变量名称.
|
37
|
-
* @return {} 转换后的合法的值.
|
38
|
-
*/
|
39
|
-
static transformFormItemDynamicQueryOperator(param: {
|
40
|
-
formID: string;
|
41
|
-
value: string | null | undefined;
|
42
|
-
varName: string;
|
43
|
-
}): string;
|
44
|
-
/**
|
45
|
-
* 根据控件类型获取高级查询操作符的下拉列表.
|
46
|
-
* @param controlType 控件类型.
|
47
|
-
*/
|
48
|
-
static getDynamicQueryOperatorSelectOptions(controlType: KG__VAR_CONFIG_CONTROL__CONTROL_TYPE | null | undefined): any;
|
49
|
-
/**
|
50
|
-
* <p>根据查询条件拼接 SQL 语句片段.</p>
|
51
|
-
* <p>根据查询参数拼接 SQL, 格式如下: `WHERE ... ORDER BY ...OFFSET...`, 每一个片段会单独作为一个属性返回.</p>
|
52
|
-
* <ul>
|
53
|
-
* <li>如果 dynamicQueryOperatorModel 传值, 表示直接使用传入的 dynamicQueryOperatorModel 作为高级查询操作符.</li>
|
54
|
-
* <li>如果 dynamicQueryOperatorModel 没有传值, 但是 formID 传值, 表示通过变量配置获取高级查询操作符.</li>
|
55
|
-
* </ul>
|
56
|
-
*
|
57
|
-
* @param param.$dayjs dayjs.
|
58
|
-
* @param param.dynamicQueryOperatorModel 各个字段的高级查询操作符.
|
59
|
-
* @param param.formID 界面标识.
|
60
|
-
* @param param.kgSearchFormID 查询条件的界面标识.
|
61
|
-
* @param param.params 请求参数.
|
62
|
-
*/
|
63
|
-
static getQueryHeaders(param: {
|
64
|
-
$dayjs: typeof dayjs;
|
65
|
-
dynamicQueryOperatorModel: Record<string, any> | null | undefined;
|
66
|
-
formID: string | null | undefined;
|
67
|
-
kgSearchFormID: string | null | undefined;
|
68
|
-
params: Record<string, any> | null | undefined;
|
69
|
-
}): {
|
70
|
-
offsetSql: string;
|
71
|
-
operatorJSON: string;
|
72
|
-
orderBySql: string;
|
73
|
-
sql: string;
|
74
|
-
whereSql: string;
|
75
|
-
};
|
76
|
-
}
|
@@ -1,150 +0,0 @@
|
|
1
|
-
import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
2
|
-
import dayjs, { Dayjs } from 'dayjs';
|
3
|
-
import { IKgVarButtonModalProperties } from '../consts';
|
4
|
-
/**
|
5
|
-
* 通用工具.
|
6
|
-
*/
|
7
|
-
export declare class KgUtil {
|
8
|
-
/**
|
9
|
-
* 根据'文件大小数值'获取'文件大小文本'.
|
10
|
-
* @param size 文件大小数值.
|
11
|
-
*/
|
12
|
-
static getFileSize(size: any): string;
|
13
|
-
/**
|
14
|
-
* BASE64 转换为 BLOB.
|
15
|
-
* @param base64 base64 字符串.
|
16
|
-
* @param contentType 文件类型.
|
17
|
-
* @param sliceSize 分块大小.
|
18
|
-
*/
|
19
|
-
static base64toBlob(base64: string, contentType: string, sliceSize?: number): Blob;
|
20
|
-
/**
|
21
|
-
* 下载文件.
|
22
|
-
* @param data 文件数据.
|
23
|
-
* @param fileName 文件名称, 包含后缀.
|
24
|
-
* @param contentType <p>文件类型. 如果为空, 则根据文件名的后缀自动设置.</p>
|
25
|
-
* <ul>
|
26
|
-
* <li>{@link KG__VAR_BUTTON__EXPORT_EXCEL_SUFFIX.XLS}: <code>application/vnd.ms-excel</code></li>
|
27
|
-
* <li>{@link KG__VAR_BUTTON__EXPORT_EXCEL_SUFFIX.XLSX}: <code>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</code></li>
|
28
|
-
* </ul>
|
29
|
-
*/
|
30
|
-
static downloadFile(data: string | BlobPart, fileName: string, contentType?: string): void;
|
31
|
-
/**
|
32
|
-
* <p>处理请求参数.</p>
|
33
|
-
* <ul>
|
34
|
-
* <li>删除无用属性,</li>
|
35
|
-
* <li>日期转换为字符串,</li>
|
36
|
-
* <li>解析动态属性, 比如「仓库号」,</li>
|
37
|
-
* </ul>
|
38
|
-
*
|
39
|
-
* @param params 请求参数.
|
40
|
-
* @param formID 界面标识.
|
41
|
-
* @param $dayjs dayjs.
|
42
|
-
*/
|
43
|
-
static parseParams(params: Record<string, any> | null | undefined, formID?: string | null, $dayjs?: typeof dayjs): Record<string, any>;
|
44
|
-
/**
|
45
|
-
* 处理请求参数: 解析字符串类型的参数值.
|
46
|
-
*
|
47
|
-
* <ol>
|
48
|
-
* <li>填充通用参数的值:
|
49
|
-
* <ul>
|
50
|
-
* <li>{WAREHOUSE}: 当前仓库编号</li>
|
51
|
-
* <li>{WORK_STATION}: 当前工作站</li>
|
52
|
-
* <li>{WORK_AREA}: 当前工作区</li>
|
53
|
-
* <li>{LOCALE}: 当前语言</li>
|
54
|
-
* <li>{NOW}: 当前时间</li>
|
55
|
-
* <li>{USER}: 当前用户</li>
|
56
|
-
* <li>{ROW}: 当前勾选行对应的属性</li>
|
57
|
-
* </ul>
|
58
|
-
* </li>
|
59
|
-
* </ol>
|
60
|
-
*
|
61
|
-
* @param param.$dayjs dayjs.
|
62
|
-
* @param param.formID 界面标识.
|
63
|
-
* @param param.value 参数的原始值.
|
64
|
-
* @param param.varName 变量名称.
|
65
|
-
*/
|
66
|
-
static parseParamFromString(param: {
|
67
|
-
$dayjs?: typeof dayjs;
|
68
|
-
formID?: string | null;
|
69
|
-
value: string;
|
70
|
-
varName?: string | null;
|
71
|
-
}): string;
|
72
|
-
/**
|
73
|
-
* 处理请求参数: 解析 Dayjs 类型的参数值.
|
74
|
-
* @param param.formID 界面标识.
|
75
|
-
* @param param.isPad 是否补齐日期格式. 即将 `YYYY-MM-DD` 补齐为 `YYYY-MM-DD 00:00:00`, 将 `HH:mm:ss` 补齐为 `1900-01-01 HH:mm:ss`.
|
76
|
-
* @param param.key 属性名.
|
77
|
-
* @param param.value 参数的原始值.
|
78
|
-
*/
|
79
|
-
static parseParamFromDayjs(param: {
|
80
|
-
formID?: string | null;
|
81
|
-
isPad?: boolean;
|
82
|
-
key: string;
|
83
|
-
value: any;
|
84
|
-
}): string;
|
85
|
-
/**
|
86
|
-
* 确认弹窗.
|
87
|
-
* 设置了多个属性的默认值, 简化使用.
|
88
|
-
* https://www.antdv.com/components/modal
|
89
|
-
* @param props
|
90
|
-
*/
|
91
|
-
static confirm(props: IKgVarButtonModalProperties): ModalFunc;
|
92
|
-
/**
|
93
|
-
* @deprecated 已弃用, 请使用 {@link KgUtil.throwNotFormValidationError()} 方法.
|
94
|
-
*/
|
95
|
-
static throwIfNotFormError(e: any): void;
|
96
|
-
/**
|
97
|
-
* <p>如果不是表单验证错误, 则直接抛出该错误.</p>
|
98
|
-
* <p>如果是表单验证错误, 则弹框提示表单验证失败消息.</p>
|
99
|
-
*
|
100
|
-
* @param param.error 错误对象.
|
101
|
-
* @param param.formID 界面标识. 通过界面标识可以显示对应字段的翻译, 否则只能显示对应字段的变量名称.
|
102
|
-
* @param param.isShowFormValidationErrorMessage 是否弹框提示表单验证失败消息. 默认为 true.
|
103
|
-
*/
|
104
|
-
static throwNotFormValidationError(param: {
|
105
|
-
error: {
|
106
|
-
errorFields: Array<{
|
107
|
-
errors: Array<string>;
|
108
|
-
name: Array<string>;
|
109
|
-
warnings: Array<any>;
|
110
|
-
}>;
|
111
|
-
outOfDate: boolean;
|
112
|
-
values: Record<string, any>;
|
113
|
-
} | any;
|
114
|
-
formID?: string;
|
115
|
-
isShowFormValidationErrorMessage?: boolean;
|
116
|
-
}): void;
|
117
|
-
/**
|
118
|
-
* 将 JSON 字符串转换为 JSON 对象, 如果转化失败, 则返回空对象.
|
119
|
-
* @param str JSON 字符串.
|
120
|
-
*/
|
121
|
-
static tryParseJSON<T = Record<string, any>>(str?: string | null): T;
|
122
|
-
/**
|
123
|
-
* 将值转换为 Dayjs 对象.
|
124
|
-
* @param value 值.
|
125
|
-
*/
|
126
|
-
static toDayjs(value: any): Dayjs | undefined;
|
127
|
-
/** 显示全局遮罩. */
|
128
|
-
static showLoading(): void;
|
129
|
-
/** 隐藏全局遮罩. */
|
130
|
-
static hideLoading(): void;
|
131
|
-
/**
|
132
|
-
* <p>使用 lodash 的 snakeCase() 将字符串转换为 snake_case 的命名方式. 但是数字前面不加下划线.</p>
|
133
|
-
*
|
134
|
-
* @param value 转换前的字符串.
|
135
|
-
* @return 转换后的字符串.
|
136
|
-
*/
|
137
|
-
static snakeCase(value: any): string;
|
138
|
-
/**
|
139
|
-
* 获取唯一标识.
|
140
|
-
*
|
141
|
-
* @return UUID.
|
142
|
-
*/
|
143
|
-
static uuid(): string;
|
144
|
-
}
|
145
|
-
export declare type ModalFunc = {
|
146
|
-
destroy: () => void;
|
147
|
-
update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
|
148
|
-
showLoading(): void;
|
149
|
-
hideLoading(): void;
|
150
|
-
};
|