@kengic/vue 0.26.6-beta.0 → 0.26.6-beta.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +48590 -20429
- package/package.json +5 -4
- 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 -104
- package/dist/src/components/KgCanvas/KgCanvas.d.ts +0 -122
- package/dist/src/components/KgCanvas/KgCanvas.service.d.ts +0 -35
- package/dist/src/components/KgCanvas/index.d.ts +0 -4
- package/dist/src/components/KgCanvas/index.hooks.d.ts +0 -49
- package/dist/src/components/KgCanvas/index.store.d.ts +0 -201
- 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 -176
- 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,7 +0,0 @@
|
|
1
|
-
import { CreateStorageParams } from './storageCache';
|
2
|
-
export declare type Options = Partial<CreateStorageParams>;
|
3
|
-
export declare const WebStorage: any;
|
4
|
-
export declare const createStorage: (storage?: Storage, options?: Options) => any;
|
5
|
-
export declare const createSessionStorage: (options?: Options) => any;
|
6
|
-
export declare const createLocalStorage: (options?: Options) => any;
|
7
|
-
export default WebStorage;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
export interface Cache<V = any> {
|
2
|
-
value?: V;
|
3
|
-
timeoutId?: ReturnType<typeof setTimeout>;
|
4
|
-
time?: number;
|
5
|
-
alive?: number;
|
6
|
-
}
|
7
|
-
export declare class Memory<T = any, V = any> {
|
8
|
-
private cache;
|
9
|
-
private alive;
|
10
|
-
constructor(alive?: number);
|
11
|
-
get getCache(): { [key in keyof T]?: Cache<V> | undefined; };
|
12
|
-
setCache(cache: {
|
13
|
-
[key in keyof T]?: Cache<V>;
|
14
|
-
}): void;
|
15
|
-
get<K extends keyof T>(key: K): { [key in keyof T]?: Cache<V> | undefined; }[K];
|
16
|
-
set<K extends keyof T>(key: K, value: V, expires?: number): V;
|
17
|
-
remove<K extends keyof T>(key: K): V | undefined;
|
18
|
-
resetCache(cache: {
|
19
|
-
[K in keyof T]: Cache;
|
20
|
-
}): void;
|
21
|
-
clear(): void;
|
22
|
-
}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import type { RouteLocationNormalized } from 'vue-router';
|
2
|
-
import { SysUserWarehouseDTO } from '../../../../apis/WMS/models';
|
3
|
-
import { LoginInfo, ProjectConfig, UserInfo } from '../../../types';
|
4
|
-
import { DB_DICT_DATA_KEY, LOCK_INFO_KEY, LOGIN_INFO_KEY, MULTIPLE_TABS_KEY, PROJ_CFG_KEY, ROLES_KEY, TENANT_ID, TOKEN_KEY, USER_INFO_KEY, USER_WAREHOUSE_KEY } from '../../enums';
|
5
|
-
interface BasicStore {
|
6
|
-
[TOKEN_KEY]: string | number | null | undefined;
|
7
|
-
[USER_INFO_KEY]: UserInfo;
|
8
|
-
[ROLES_KEY]: string[];
|
9
|
-
[USER_WAREHOUSE_KEY]: SysUserWarehouseDTO[];
|
10
|
-
[LOCK_INFO_KEY]: LockInfo;
|
11
|
-
[PROJ_CFG_KEY]: ProjectConfig;
|
12
|
-
[MULTIPLE_TABS_KEY]: RouteLocationNormalized[];
|
13
|
-
[DB_DICT_DATA_KEY]: string;
|
14
|
-
[TENANT_ID]: string;
|
15
|
-
[LOGIN_INFO_KEY]: LoginInfo;
|
16
|
-
}
|
17
|
-
declare type LocalStore = BasicStore;
|
18
|
-
declare type SessionStore = BasicStore;
|
19
|
-
export declare type BasicKeys = keyof BasicStore;
|
20
|
-
declare type LocalKeys = keyof LocalStore;
|
21
|
-
declare type SessionKeys = keyof SessionStore;
|
22
|
-
export declare class Persistent {
|
23
|
-
static getLocal<T>(key: LocalKeys): Nullable<T>;
|
24
|
-
static setLocal(key: LocalKeys, value: LocalStore[LocalKeys], immediate?: boolean): void;
|
25
|
-
static removeLocal(key: LocalKeys, immediate?: boolean): void;
|
26
|
-
static clearLocal(immediate?: boolean): void;
|
27
|
-
static getSession<T>(key: SessionKeys): Nullable<T>;
|
28
|
-
static setSession(key: SessionKeys, value: SessionStore[SessionKeys], immediate?: boolean): void;
|
29
|
-
static removeSession(key: SessionKeys, immediate?: boolean): void;
|
30
|
-
static clearSession(immediate?: boolean): void;
|
31
|
-
static clearAll(immediate?: boolean): void;
|
32
|
-
}
|
33
|
-
export {};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export interface EncryptionParams {
|
2
|
-
key: string;
|
3
|
-
iv: string;
|
4
|
-
}
|
5
|
-
export declare class AesEncryption {
|
6
|
-
private key;
|
7
|
-
private iv;
|
8
|
-
constructor(opt?: Partial<EncryptionParams>);
|
9
|
-
get getOptions(): {
|
10
|
-
mode: any;
|
11
|
-
padding: any;
|
12
|
-
iv: any;
|
13
|
-
};
|
14
|
-
encryptByAES(cipherText: string): string;
|
15
|
-
decryptByAES(cipherText: string): string;
|
16
|
-
}
|
17
|
-
export declare function encryptByBase64(cipherText: string): string;
|
18
|
-
export declare function decodeByBase64(cipherText: string): string;
|
19
|
-
export declare function encryptByMd5(password: string): string;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
export declare function getCommonStoragePrefix(): string;
|
2
|
-
export declare function getStorageShortName(): string;
|
3
|
-
export declare function getAppEnvConfig(): {
|
4
|
-
VITE_GLOB_APP_TITLE: string;
|
5
|
-
VITE_GLOB_API_URL: string;
|
6
|
-
VITE_USE_MOCK: string;
|
7
|
-
VITE_GLOB_APP_SHORT_NAME: string;
|
8
|
-
VITE_GLOB_API_URL_PREFIX: string | undefined;
|
9
|
-
VITE_GLOB_APP_OPEN_SSO: string;
|
10
|
-
VITE_GLOB_APP_OPEN_QIANKUN: string;
|
11
|
-
VITE_GLOB_APP_CAS_BASE_URL: string;
|
12
|
-
VITE_GLOB_DOMAIN_URL: string;
|
13
|
-
VITE_GLOB_ONLINE_VIEW_URL: string | undefined;
|
14
|
-
};
|
15
|
-
/**
|
16
|
-
* @description: Development mode
|
17
|
-
*/
|
18
|
-
export declare const devMode = "development";
|
19
|
-
/**
|
20
|
-
* @description: Production mode
|
21
|
-
*/
|
22
|
-
export declare const prodMode = "production";
|
23
|
-
/**
|
24
|
-
* @description: Is it a development mode
|
25
|
-
* @returns:
|
26
|
-
* @example:
|
27
|
-
*/
|
28
|
-
export declare function isDevMode(): boolean;
|
29
|
-
/**
|
30
|
-
* @description: Is it a production mode
|
31
|
-
* @returns:
|
32
|
-
* @example:
|
33
|
-
*/
|
34
|
-
export declare function isProdMode(): boolean;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
export declare type ErrorMessageMode = 'none' | 'modal' | 'message' | undefined;
|
2
|
-
export declare type SuccessMessageMode = 'none' | 'success' | 'error' | undefined;
|
3
|
-
export interface RequestOptions {
|
4
|
-
joinParamsToUrl?: boolean;
|
5
|
-
formatDate?: boolean;
|
6
|
-
isTransformResponse?: boolean;
|
7
|
-
isReturnNativeResponse?: boolean;
|
8
|
-
joinPrefix?: boolean;
|
9
|
-
apiUrl?: string;
|
10
|
-
urlPrefix?: string;
|
11
|
-
errorMessageMode?: ErrorMessageMode;
|
12
|
-
successMessageMode?: SuccessMessageMode;
|
13
|
-
joinTime?: boolean;
|
14
|
-
ignoreCancelToken?: boolean;
|
15
|
-
withToken?: boolean;
|
16
|
-
}
|
17
|
-
export interface Result<T = any> {
|
18
|
-
code: number;
|
19
|
-
type: 'success' | 'error' | 'warning';
|
20
|
-
message: string;
|
21
|
-
success?: boolean | null;
|
22
|
-
timestamp?: number | null;
|
23
|
-
result: T;
|
24
|
-
}
|
25
|
-
export interface UploadFileParams {
|
26
|
-
data?: Recordable;
|
27
|
-
name?: string;
|
28
|
-
file: File | Blob;
|
29
|
-
filename?: string;
|
30
|
-
[key: string]: any;
|
31
|
-
}
|
32
|
-
export interface UploadFileCallBack {
|
33
|
-
success?: any;
|
34
|
-
isReturnResponse?: boolean;
|
35
|
-
}
|
@@ -1,121 +0,0 @@
|
|
1
|
-
import { ContentEnum, PermissionModeEnum, RouterTransitionEnum, SessionTimeoutProcessingEnum, SettingButtonPositionEnum, ThemeEnum } from '../src/enums/appEnum';
|
2
|
-
import { CacheTypeEnum } from '../src/enums/cacheEnum';
|
3
|
-
import { MenuModeEnum, MenuTypeEnum, MixSidebarTriggerEnum, TriggerEnum } from '../src/enums/menuEnum';
|
4
|
-
/**
|
5
|
-
* <p>已支持的语言.</p>
|
6
|
-
* <ul>
|
7
|
-
* <li> en: 英语</li>
|
8
|
-
* <li>es_ES: 西班牙语_西班牙</li>
|
9
|
-
* <li>fr_FR: 法语_法国</li>
|
10
|
-
* <li>km_KH: 高棉语_柬埔寨</li>
|
11
|
-
* <li>ko_KR: 韩语_韩国</li>
|
12
|
-
* <li>vi_VN: 越南语_越南</li>
|
13
|
-
* <li>zh_CN: 汉语_中国</li>
|
14
|
-
* </ul>
|
15
|
-
*/
|
16
|
-
export declare type LocaleType = 'en' | 'es_ES' | 'fr_FR' | 'km_KH' | 'ko_KR' | 'vi_VN' | 'zh_CN';
|
17
|
-
export interface MenuSetting {
|
18
|
-
bgColor: string;
|
19
|
-
fixed: boolean;
|
20
|
-
collapsed: boolean;
|
21
|
-
canDrag: boolean;
|
22
|
-
show: boolean;
|
23
|
-
hidden: boolean;
|
24
|
-
split: boolean;
|
25
|
-
menuWidth: number;
|
26
|
-
mode: MenuModeEnum;
|
27
|
-
type: MenuTypeEnum;
|
28
|
-
theme: ThemeEnum;
|
29
|
-
topMenuAlign: 'start' | 'center' | 'end';
|
30
|
-
trigger: TriggerEnum;
|
31
|
-
accordion: boolean;
|
32
|
-
closeMixSidebarOnChange: boolean;
|
33
|
-
collapsedShowTitle: boolean;
|
34
|
-
mixSideTrigger: MixSidebarTriggerEnum;
|
35
|
-
mixSideFixed: boolean;
|
36
|
-
}
|
37
|
-
export interface MultiTabsSetting {
|
38
|
-
cache: boolean;
|
39
|
-
show: boolean;
|
40
|
-
showQuick: boolean;
|
41
|
-
canDrag: boolean;
|
42
|
-
showRedo: boolean;
|
43
|
-
showFold: boolean;
|
44
|
-
theme: string;
|
45
|
-
}
|
46
|
-
export interface HeaderSetting {
|
47
|
-
bgColor: string;
|
48
|
-
fixed: boolean;
|
49
|
-
show: boolean;
|
50
|
-
theme: ThemeEnum;
|
51
|
-
showFullScreen: boolean;
|
52
|
-
useLockPage: boolean;
|
53
|
-
showDoc: boolean;
|
54
|
-
showNotice: boolean;
|
55
|
-
showSearch: boolean;
|
56
|
-
}
|
57
|
-
export interface LocaleSetting {
|
58
|
-
showPicker: boolean;
|
59
|
-
locale: LocaleType;
|
60
|
-
fallback: LocaleType;
|
61
|
-
availableLocales: LocaleType[];
|
62
|
-
}
|
63
|
-
export interface TransitionSetting {
|
64
|
-
enable: boolean;
|
65
|
-
basicTransition: RouterTransitionEnum;
|
66
|
-
openPageLoading: boolean;
|
67
|
-
openNProgress: boolean;
|
68
|
-
}
|
69
|
-
export interface ProjectConfig {
|
70
|
-
permissionCacheType: CacheTypeEnum;
|
71
|
-
showSettingButton: boolean;
|
72
|
-
showDarkModeToggle: boolean;
|
73
|
-
settingButtonPosition: SettingButtonPositionEnum;
|
74
|
-
permissionMode: PermissionModeEnum;
|
75
|
-
sessionTimeoutProcessing: SessionTimeoutProcessingEnum;
|
76
|
-
grayMode: boolean;
|
77
|
-
colorWeak: boolean;
|
78
|
-
themeColor: string;
|
79
|
-
fullContent: boolean;
|
80
|
-
contentMode: ContentEnum;
|
81
|
-
showLogo: boolean;
|
82
|
-
showFooter: boolean;
|
83
|
-
headerSetting: HeaderSetting;
|
84
|
-
menuSetting: MenuSetting;
|
85
|
-
multiTabsSetting: MultiTabsSetting;
|
86
|
-
transitionSetting: TransitionSetting;
|
87
|
-
openKeepAlive: boolean;
|
88
|
-
lockTime: number;
|
89
|
-
showBreadCrumb: boolean;
|
90
|
-
showBreadCrumbIcon: boolean;
|
91
|
-
useErrorHandle: boolean;
|
92
|
-
useOpenBackTop: boolean;
|
93
|
-
canEmbedIFramePage: boolean;
|
94
|
-
closeMessageOnSwitch: boolean;
|
95
|
-
removeAllHttpPending: boolean;
|
96
|
-
}
|
97
|
-
export interface GlobConfig {
|
98
|
-
title: string;
|
99
|
-
apiUrl: string;
|
100
|
-
domainUrl: string;
|
101
|
-
uploadUrl?: string;
|
102
|
-
openSso?: string;
|
103
|
-
openQianKun?: string;
|
104
|
-
casBaseUrl?: string;
|
105
|
-
viewUrl?: string;
|
106
|
-
urlPrefix?: string;
|
107
|
-
shortName: string;
|
108
|
-
}
|
109
|
-
export interface GlobEnvConfig {
|
110
|
-
VITE_GLOB_APP_TITLE: string;
|
111
|
-
VITE_GLOB_API_URL: string;
|
112
|
-
VITE_USE_MOCK: string;
|
113
|
-
VITE_GLOB_API_URL_PREFIX?: string;
|
114
|
-
VITE_GLOB_APP_SHORT_NAME: string;
|
115
|
-
VITE_GLOB_APP_OPEN_SSO: string;
|
116
|
-
VITE_GLOB_APP_OPEN_QIANKUN: string;
|
117
|
-
VITE_GLOB_APP_CAS_BASE_URL: string;
|
118
|
-
VITE_GLOB_DOMAIN_URL: string;
|
119
|
-
VITE_GLOB_UPLOAD_URL?: string;
|
120
|
-
VITE_GLOB_ONLINE_VIEW_URL?: string;
|
121
|
-
}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { RoleInfo } from '../src/api/sys/model/userModel';
|
2
|
-
import { ErrorTypeEnum } from '../src/enums/exceptionEnum';
|
3
|
-
import { MenuModeEnum, MenuTypeEnum } from '../src/enums/menuEnum';
|
4
|
-
export interface LockInfo {
|
5
|
-
pwd?: string | undefined;
|
6
|
-
isLock?: boolean;
|
7
|
-
}
|
8
|
-
export interface ErrorLogInfo {
|
9
|
-
type: ErrorTypeEnum;
|
10
|
-
file: string;
|
11
|
-
name?: string;
|
12
|
-
message: string;
|
13
|
-
stack?: string;
|
14
|
-
detail: string;
|
15
|
-
url: string;
|
16
|
-
time?: string;
|
17
|
-
}
|
18
|
-
export interface UserInfo {
|
19
|
-
id: string | number;
|
20
|
-
userId: string | number;
|
21
|
-
username: string;
|
22
|
-
realname: string;
|
23
|
-
avatar: string;
|
24
|
-
desc?: string;
|
25
|
-
homePath?: string;
|
26
|
-
tenantid?: string | number;
|
27
|
-
roles: RoleInfo[];
|
28
|
-
orgCode?: string;
|
29
|
-
}
|
30
|
-
export interface LoginInfo {
|
31
|
-
multi_depart?: string | number;
|
32
|
-
userInfo?: object;
|
33
|
-
departs?: [];
|
34
|
-
tenantList?: [];
|
35
|
-
isLogin?: boolean;
|
36
|
-
}
|
37
|
-
export interface BeforeMiniState {
|
38
|
-
menuCollapsed?: boolean;
|
39
|
-
menuSplit?: boolean;
|
40
|
-
menuMode?: MenuModeEnum;
|
41
|
-
menuType?: MenuTypeEnum;
|
42
|
-
}
|
@@ -1,93 +0,0 @@
|
|
1
|
-
import { AxiosInstance, type AxiosRequestConfig } from 'axios';
|
2
|
-
import dayjs from 'dayjs';
|
3
|
-
import { KG_DYNAMIC_QUERY_OPERATOR } from '../consts';
|
4
|
-
interface IHttpClient {
|
5
|
-
axiosInstance: AxiosInstance;
|
6
|
-
options: {
|
7
|
-
requestOptions?: IRequestOptions;
|
8
|
-
} & AxiosRequestConfig;
|
9
|
-
request<T = any>(config: IRequestConfig, options?: IRequestOptions): Promise<T>;
|
10
|
-
}
|
11
|
-
/** @deprecated 已弃用, 请使用 {@link kgSetupHttpClient}. */
|
12
|
-
declare function setupHttpClient(httpClient: IHttpClient | null): void;
|
13
|
-
/**
|
14
|
-
* 设置 httpClient 实例.
|
15
|
-
*/
|
16
|
-
declare function kgSetupHttpClient(httpClient: IHttpClient | null): void;
|
17
|
-
/**
|
18
|
-
* 获取 httpClient 实例.
|
19
|
-
*/
|
20
|
-
declare function httpClient(): IHttpClient;
|
21
|
-
interface IRequestConfig<P = {}, D = {}> extends AxiosRequestConfig<D> {
|
22
|
-
params?: P;
|
23
|
-
}
|
24
|
-
interface IRequestOptions {
|
25
|
-
/**
|
26
|
-
* 接口地址,如果保留为空,则使用默认值
|
27
|
-
*/
|
28
|
-
apiUrl?: string;
|
29
|
-
/**
|
30
|
-
* dayjs 实例, 必须跟 {@link IRequestOptions.dynamicQueryOperatorModel} 同时传值. 即如果参数 {@link IRequestOptions.dynamicQueryOperatorModel} 不为空, 则参数 {@link IRequestOptions.dayjs} 也必须不为空.
|
31
|
-
*/
|
32
|
-
dayjs?: typeof dayjs;
|
33
|
-
/**
|
34
|
-
* <p>高级查询时, 对应的界面标识.</p>
|
35
|
-
*/
|
36
|
-
dynamicQueryFormID?: string;
|
37
|
-
/**
|
38
|
-
* <p>高级查询时, 对应的查询条件界面标识.</p>
|
39
|
-
*/
|
40
|
-
dynamicQueryKgSearchFormID?: string;
|
41
|
-
/**
|
42
|
-
* <p>高级查询时, 各个请求参数的高级查询操作符.</p>
|
43
|
-
* <p>如果该参数不为空, 表示该请求启用了高级查询.</p>
|
44
|
-
* <p>其中的 key 表示参数名, 对应的 value 表示该参数的高级查询操作符(>,=,<...).</p>
|
45
|
-
*/
|
46
|
-
dynamicQueryOperatorModel?: Record<string, KG_DYNAMIC_QUERY_OPERATOR>;
|
47
|
-
/**
|
48
|
-
* 错误消息提示类型
|
49
|
-
*/
|
50
|
-
errorMessageMode?: 'none' | 'modal' | 'message' | undefined;
|
51
|
-
/**
|
52
|
-
* 格式化请求参数时间
|
53
|
-
*/
|
54
|
-
formatDate?: boolean;
|
55
|
-
ignoreCancelToken?: boolean;
|
56
|
-
/**
|
57
|
-
* 是否返回本地响应头,需要获取响应头时使用此属性
|
58
|
-
*/
|
59
|
-
isReturnNativeResponse?: boolean;
|
60
|
-
/**
|
61
|
-
* 是否处理请求结果
|
62
|
-
*/
|
63
|
-
isTransformResponse?: boolean;
|
64
|
-
/**
|
65
|
-
* 将请求参数拼接到url
|
66
|
-
*/
|
67
|
-
joinParamsToUrl?: boolean;
|
68
|
-
/**
|
69
|
-
* Whether to join url
|
70
|
-
*/
|
71
|
-
joinPrefix?: boolean;
|
72
|
-
/**
|
73
|
-
* 是否添加时间戳
|
74
|
-
*/
|
75
|
-
joinTime?: boolean;
|
76
|
-
/**
|
77
|
-
* <p>模拟数据. 如果不为 undefined 则不会发起请求, 而是直接返回该模拟数据.</p>
|
78
|
-
*/
|
79
|
-
mock?: any;
|
80
|
-
/**
|
81
|
-
* 成功消息提示类型
|
82
|
-
*/
|
83
|
-
successMessageMode?: 'none' | 'success' | 'error' | undefined;
|
84
|
-
/**
|
85
|
-
* 请求拼接路径
|
86
|
-
*/
|
87
|
-
urlPrefix?: string;
|
88
|
-
/**
|
89
|
-
* 是否在标头中发送令牌
|
90
|
-
*/
|
91
|
-
withToken?: boolean;
|
92
|
-
}
|
93
|
-
export { setupHttpClient, kgSetupHttpClient, httpClient, type IRequestConfig, type IRequestOptions };
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './http-client';
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { KG_APP } from '../consts';
|
2
|
-
export declare class KgAuthUtil {
|
3
|
-
/**
|
4
|
-
* 判断当前登录用户是否是管理员.
|
5
|
-
* @return {} 如果当前登录用户是管理员则返回 true, 否则返回 false.
|
6
|
-
*/
|
7
|
-
static isAdminUser(): boolean;
|
8
|
-
/**
|
9
|
-
* 判断某个模块是否具有访问权限.
|
10
|
-
* @param app 模块.
|
11
|
-
* @return {} 如果模块具有访问权限则返回 true, 否则返回 false.
|
12
|
-
*/
|
13
|
-
static isAppAuthenticated(app: KG_APP | null | undefined): boolean;
|
14
|
-
/**
|
15
|
-
* 判断某个地址是否具有访问权限.
|
16
|
-
* @param path 地址.
|
17
|
-
* @return {} 如果地址具有访问权限则返回 true, 否则返回 false.
|
18
|
-
*/
|
19
|
-
static isPathAuthenticated(path: string | null | undefined): boolean;
|
20
|
-
/**
|
21
|
-
* 获取权限策略.
|
22
|
-
* @param permissionCode 权限编码.
|
23
|
-
* @return {} 权限策略.
|
24
|
-
*/
|
25
|
-
static getPermissionType(permissionCode: string | null | undefined): number | null;
|
26
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* DOM 工具.
|
3
|
-
*/
|
4
|
-
export declare class KgDomUtil {
|
5
|
-
/**
|
6
|
-
* 判断元素是否不能响应点击事件.
|
7
|
-
* 如果不想让某个元素响应点击事件, 则可以给它的父元素加上 kg-not-clickable 样式类.
|
8
|
-
* @param el 元素.
|
9
|
-
* @param classes 除了 kg-not-clickable 之外额外需要判断的样式类.
|
10
|
-
*/
|
11
|
-
static isNotClickable(el?: Element | null, classes?: Array<string>): boolean;
|
12
|
-
}
|
@@ -1,69 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 日志服务.
|
3
|
-
*/
|
4
|
-
declare class KgLogger {
|
5
|
-
/**
|
6
|
-
* 打印弃用日志.
|
7
|
-
*
|
8
|
-
* @param message 提示消息.
|
9
|
-
* @param args 数据对象.
|
10
|
-
* @param collapsed 是否折叠.
|
11
|
-
*/
|
12
|
-
static deprecated(message: string, args?: Record<string, any>, collapsed?: boolean): void;
|
13
|
-
/**
|
14
|
-
* 打印错误日志.
|
15
|
-
*
|
16
|
-
* @param message 提示消息.
|
17
|
-
* @param args 数据对象.
|
18
|
-
* @param collapsed 是否折叠.
|
19
|
-
*/
|
20
|
-
static error(message: string, args?: Record<string, any>, collapsed?: boolean): void;
|
21
|
-
/**
|
22
|
-
* 打印普通日志.
|
23
|
-
*
|
24
|
-
* @param message 提示消息.
|
25
|
-
* @param args 数据对象.
|
26
|
-
* @param collapsed 是否折叠.
|
27
|
-
*/
|
28
|
-
static info(message: string, args?: Record<string, any>, collapsed?: boolean): void;
|
29
|
-
/**
|
30
|
-
* 打印日志.
|
31
|
-
*
|
32
|
-
* @param level 日志等级.
|
33
|
-
* @param message 提示消息.
|
34
|
-
* @param args 数据对象.
|
35
|
-
* @param collapsed 是否折叠.
|
36
|
-
* @param style 样式.
|
37
|
-
*/
|
38
|
-
static log(level: "debug" | "info" | "warn" | "error" | "deprecated" | undefined, message: string, args?: Record<string, any>, collapsed?: boolean, style?: string | null): void;
|
39
|
-
/**
|
40
|
-
* 打印警告日志.
|
41
|
-
*
|
42
|
-
* @param message 提示消息.
|
43
|
-
* @param args 数据对象.
|
44
|
-
* @param collapsed 是否折叠.
|
45
|
-
*/
|
46
|
-
static warn(message: string, args?: Record<string, any>, collapsed?: boolean): void;
|
47
|
-
/**
|
48
|
-
* 打印调试日志.
|
49
|
-
* @param message 提示消息.
|
50
|
-
* @param args 数据对象.
|
51
|
-
* @param collapsed 是否折叠.
|
52
|
-
*/
|
53
|
-
static debug(message: string, args?: Record<string, any>, collapsed?: boolean): void;
|
54
|
-
/**
|
55
|
-
* 打印调试日志: DDA.
|
56
|
-
* @param formID 界面标识.
|
57
|
-
* @param component 组件.
|
58
|
-
* @param method 方法.
|
59
|
-
* @param message 提示消息.
|
60
|
-
* @param args 数据对象.
|
61
|
-
* @param collapsed 是否折叠.
|
62
|
-
*/
|
63
|
-
static debugDDA(formID: string | null | undefined, component: string | null | undefined, method: string | null | undefined, message: string | null | undefined, args?: Record<string, any>, collapsed?: boolean): void;
|
64
|
-
}
|
65
|
-
declare const ____DEBUG____: typeof KgLogger.debug;
|
66
|
-
declare const ____INFO_____: typeof KgLogger.info;
|
67
|
-
declare const ____WARN_____: typeof KgLogger.warn;
|
68
|
-
declare const ____ERROR____: typeof KgLogger.error;
|
69
|
-
export { KgLogger, ____DEBUG____, ____INFO_____, ____WARN_____, ____ERROR____ };
|
@@ -1,57 +0,0 @@
|
|
1
|
-
import { KG_APP, Menu } from '../consts';
|
2
|
-
export declare class KgRouteUtil {
|
3
|
-
/**
|
4
|
-
* 给所有模块都添加在线表单的路由.
|
5
|
-
* 由于默认的在线表单路由是没有区分模块的, 而每个模块下都可能有在线表单, 因此给每个模块都添加在线表单的路由.
|
6
|
-
* @param routes 当前路由列表.
|
7
|
-
*/
|
8
|
-
static addOnlineRoutesForAllApps(routes: any[]): any[];
|
9
|
-
/**
|
10
|
-
* 根据菜单地址地址获取菜单.
|
11
|
-
*
|
12
|
-
* @param menus 菜单列表.
|
13
|
-
* @param path 菜单地址.
|
14
|
-
* @return {} 如果能找到某个菜单的地址等于传入的地址, 则返回该菜单, 否则返回 null.
|
15
|
-
*/
|
16
|
-
static getMenuByPath(menus: Array<Menu> | null | undefined, path: string): Menu | null;
|
17
|
-
/**
|
18
|
-
* 获取第一个类型为叶子节点的菜单, 即第一个没有下级菜单的菜单, 即第一个拥有页面的菜单.
|
19
|
-
* 如果参数 app 不为空, 表示只在该模块的菜单中找; 否则在所有的菜单中找.
|
20
|
-
* @param app 模块.
|
21
|
-
* @return {} 如果能找到, 则返回该菜单, 否则返回 null.
|
22
|
-
*/
|
23
|
-
static getFirstLeafMenu(app?: KG_APP | null): Menu | null;
|
24
|
-
/**
|
25
|
-
* 翻译菜单标题.
|
26
|
-
* @param menus 菜单列表, 树形结构.
|
27
|
-
* @param titleKey 标题的属性名, 即要将哪个属性作为菜单的标题.
|
28
|
-
*/
|
29
|
-
static translateMenus(menus: Array<Menu> | null | undefined, titleKey?: string): Array<Menu>;
|
30
|
-
/**
|
31
|
-
* <p>转换菜单列表.</p>
|
32
|
-
* <ol>
|
33
|
-
* <li>根据模块分组,</li>
|
34
|
-
* </ol>
|
35
|
-
* @param menus 菜单列表, 树形结构.
|
36
|
-
*/
|
37
|
-
static transformMenus(menus: Array<Menu> | null | undefined): Array<Menu>;
|
38
|
-
/**
|
39
|
-
* 判断某个路径是否属于某个模块.
|
40
|
-
* @param path 路径.
|
41
|
-
* @param app 模块.
|
42
|
-
*/
|
43
|
-
static isPathInApp(path: string | null | undefined, app: KG_APP | null): boolean;
|
44
|
-
/**
|
45
|
-
* 根据地址获取模块.
|
46
|
-
* @param path 地址.
|
47
|
-
* @return {} 地址所属模块.
|
48
|
-
*/
|
49
|
-
static getAppByPath(path: string | null | undefined): KG_APP | null;
|
50
|
-
/**
|
51
|
-
* 获取模块的首页地址.
|
52
|
-
* @param app 模块.
|
53
|
-
* @return {} 该模块的首页地址.
|
54
|
-
* @throws {} 如果模块无法识别, 会报错.
|
55
|
-
*/
|
56
|
-
static getAppIndexPath(app: KG_APP): string;
|
57
|
-
}
|