@kengic/vue 0.26.6-beta.13 → 0.26.6-beta.131
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/bulb-outlined.93f68e9f.mjs +8 -0
- package/dist/caret-right-outlined.f3fc4d46.mjs +8 -0
- package/dist/close-outlined-DMcSQWxQ.1edc9323.mjs +8 -0
- package/dist/fullscreen-exit-outlined-X1iYkFc4.cb8f38db.mjs +8 -0
- package/dist/fullscreen-exit-outlined.a75b82c2.mjs +8 -0
- package/dist/fullscreen-outlined-DDBrsRcy.04cbb1b8.mjs +8 -0
- package/dist/fullscreen-outlined.c9ba7960.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +60719 -46654
- package/dist/pause-outlined.a5f6ccbd.mjs +8 -0
- package/dist/project/build/vite/plugin/index.ts +13 -1
- package/dist/src/{apis → api}/WMS/Controllers/DescriptionController/List.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/SysPermissionController/List.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarController/GetAll.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/Create.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarGridMasterController/Update.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/VarVariableController/Delete.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/WhController/ListVO.d.ts +1 -1
- package/dist/src/{apis → api}/WMS/Controllers/WorkstationController/List.d.ts +1 -1
- package/dist/src/{components → component}/KgAppSelect/KgAppSelect.d.ts +1 -1
- package/dist/src/{components → component}/KgAppSelect/index.hooks.d.ts +4 -3
- package/dist/src/{components → component}/KgAppSelect/index.store.d.ts +4 -3
- package/dist/src/{components → component}/KgButton/KgButton.Item.d.ts +1 -1
- package/dist/src/{components → component}/KgButton/KgButton.Item.data.d.ts +2 -2
- package/dist/src/{components → component}/KgButton/KgButton.d.ts +1 -1
- package/dist/src/{components → component}/KgButton/components/KgButton.Copy.d.ts +3 -3
- package/dist/src/{components → component}/KgButton/components/KgButton.Create.d.ts +1 -1
- package/dist/src/{components → component}/KgButton/components/KgButton.Delete.d.ts +1 -1
- package/dist/src/{components → component}/KgButton/components/KgButton.Export.d.ts +3 -3
- package/dist/src/{components → component}/KgButton/components/KgButton.Import.d.ts +3 -3
- package/dist/src/{components → component}/KgButton/components/KgButton.ImportTemplate.d.ts +3 -3
- package/dist/src/{components → component}/KgButton/components/KgButton.Other.d.ts +3 -3
- package/dist/src/{components → component}/KgButton/components/KgButton.Search.d.ts +1 -1
- package/dist/src/{components → component}/KgButton/components/KgButton.Update.d.ts +3 -3
- package/dist/src/{components → component}/KgButton/index.hooks.d.ts +6 -5
- package/dist/src/{components → component}/KgButton/index.store.d.ts +5 -4
- package/dist/src/{components → component}/KgCanvas/KgCanvas.ContextMenu.d.ts +6 -12
- package/dist/src/component/KgCanvas/KgCanvas.Toolbar.Fullscreen.d.ts +38 -0
- package/dist/src/component/KgCanvas/KgCanvas.Toolbar.OverviewScale.d.ts +38 -0
- package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +28 -0
- package/dist/src/{components → component}/KgCanvas/KgCanvas.d.ts +62 -14
- package/dist/src/{components → component}/KgCanvas/KgCanvas.service.d.ts +9 -2
- package/dist/src/{components/KgCanvas/index.store.d.ts → component/KgCanvas/index.event.d.ts} +28 -54
- package/dist/src/{components → component}/KgCanvas/index.hooks.d.ts +18 -13
- package/dist/src/component/KgCanvas/index.store.d.ts +10 -0
- package/dist/src/component/KgCanvas/index.vm.d.ts +33 -0
- package/dist/src/{components → component}/KgForm/KgForm.d.ts +36 -36
- package/dist/src/{components → component}/KgForm/index.d.ts +48 -48
- package/dist/src/{components → component}/KgForm/index.hooks.d.ts +16 -9
- package/dist/src/{components → component}/KgForm/index.store.d.ts +25 -7
- package/dist/src/{components → component}/KgForm.Item/KgForm.Item.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/KgForm.Item.service.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Image.d.ts +5 -5
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Select.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Select.service.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -1
- package/dist/src/{components → component}/KgForm.Item/index.vm.d.ts +2 -2
- package/dist/src/{components → component}/KgImage/KgImage.d.ts +6 -6
- package/dist/src/{components → component}/KgModal/KgModal.d.ts +19 -13
- package/dist/src/{components/KgModal/components/KgModal.HeaderButtons.d.ts → component/KgModal/KgModalHeaderButtons.d.ts} +1 -1
- package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +12 -0
- package/dist/src/{components/KgModal/KgModal.service.d.ts → component/KgModal/hooks/useDragToResize.d.ts} +1 -11
- package/dist/src/{components → component}/KgSearch/index.hooks.d.ts +5 -5
- package/dist/src/{components → component}/KgSearch/index.store.d.ts +4 -4
- package/dist/src/{components → component}/KgStation/index.hooks.d.ts +1 -1
- package/dist/src/{components → component}/KgStation/index.store.d.ts +1 -1
- package/dist/src/{components → component}/KgSubmit/index.hooks.d.ts +13 -12
- package/dist/src/{components → component}/KgSubmit/index.store.d.ts +5 -4
- package/dist/src/{components → component}/KgSubmit/index.vm.d.ts +1 -1
- package/dist/src/{components → component}/KgTable/components/setting/KgTable.Setting.service.d.ts +1 -1
- package/dist/src/{components → component}/KgTable/index.hooks.d.ts +12 -12
- package/dist/src/{components → component}/KgTable/index.store.d.ts +4 -4
- package/dist/src/{components → component}/KgTable/index.vm.d.ts +1 -1
- package/dist/src/{pages/KgVarFactory → component/KgVar}/KgVarFactory.d.ts +9 -10
- package/dist/src/{components → component}/KgVar/index.d.ts +1 -0
- package/dist/src/component/KgVar/index.event.d.ts +39 -0
- package/dist/src/{components → component}/KgVar/index.hooks.d.ts +18 -4
- package/dist/src/{components → component}/KgVar/index.store.d.ts +9 -33
- package/dist/src/{components → component}/KgVar/index.store.service.d.ts +1 -1
- package/dist/src/{components → component}/KgVar/index.vm.d.ts +2 -0
- package/dist/src/{components/KgVarConfig/components/KgVarConfig.Modal.d.ts → component/KgVarConfig/components/KgVarConfigModal.d.ts} +1 -2
- package/dist/src/{components → component}/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +1 -1
- package/dist/src/{components → component}/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +1 -1
- package/dist/src/{components → component}/KgWarehouse/index.hooks.d.ts +2 -2
- package/dist/src/{components → component}/KgWarehouse/index.store.d.ts +2 -2
- package/dist/src/config/index.hooks.d.ts +1 -1
- package/dist/src/config/index.store.d.ts +2 -2
- package/dist/src/config/setup/setup.d.ts +3 -2
- package/dist/src/{consts → const}/i18n/en.d.ts +7 -0
- package/dist/src/{consts → const}/i18n/es_ES.d.ts +7 -0
- package/dist/src/{consts → const}/i18n/fr_FR.d.ts +7 -0
- package/dist/src/{consts → const}/i18n/km_KH.d.ts +7 -0
- package/dist/src/{consts → const}/i18n/ko_KR.d.ts +7 -0
- package/dist/src/{consts → const}/i18n/vi_VN.d.ts +7 -0
- package/dist/src/{consts → const}/i18n/zh_CN.d.ts +8 -0
- package/dist/src/{consts → const}/index.vm.d.ts +13 -9
- package/dist/src/{consts → const}/injection-keys.const.d.ts +2 -0
- package/dist/src/{helpers → helper}/ant-design-vue.d.ts +15 -15
- package/dist/src/index.d.ts +9 -10
- package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.store.d.ts +1 -1
- package/dist/src/{pages → page}/index.d.ts +0 -1
- package/dist/src/{services → service}/http-client.d.ts +1 -1
- package/dist/src/{components/util.d.ts → util/index.d.ts} +6 -2
- package/dist/src/{utils → util}/kg-auth.util.d.ts +1 -1
- package/dist/src/{utils → util}/kg-route.util.d.ts +1 -1
- package/dist/src/{utils → util}/kg-var.util.d.ts +1 -1
- package/dist/src/{utils → util}/kg.util.d.ts +5 -3
- package/package.json +33 -21
- 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
- package/dist/src/components-next/KgVarConfig/KgVarConfig.d.ts +0 -2
- package/dist/src/components-next/KgVarConfig/index.d.ts +0 -1
- package/dist/src/components-next/index.d.ts +0 -1
- package/dist/src/pages/KgVarFactory/index.d.ts +0 -1
- package/dist/src/utils/index.d.ts +0 -6
- 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/{apis → api}/WMS/Controllers/DescriptionController/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/Controllers/SysPermissionController/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/Controllers/VarConfigPossibilityController/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/Controllers/VarController/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/Controllers/VarDdaController/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/Controllers/VarGridMasterController/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/Controllers/VarVariableController/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/Controllers/WhController/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/Controllers/WorkstationController/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/Controllers/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/index.d.ts +0 -0
- /package/dist/src/{apis → api}/WMS/models.d.ts +0 -0
- /package/dist/src/{apis → api}/api.d.ts +0 -0
- /package/dist/src/{apis → api}/def.d.ts +0 -0
- /package/dist/src/{apis → api}/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgAppSelect/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgButton/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgCanvas/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgForm/index.vm.d.ts +0 -0
- /package/dist/src/{components → component}/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +0 -0
- /package/dist/src/{components → component}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -0
- /package/dist/src/{components → component}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -0
- /package/dist/src/{components → component}/KgForm.Item/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgImage/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgLayoutHeader/components/KgLayoutHeaderLocale.d.ts +0 -0
- /package/dist/src/{components → component}/KgLayoutHeader/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgLayoutHeader/index.hooks.d.ts +0 -0
- /package/dist/src/{components → component}/KgModal/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgModal/index.vm.d.ts +0 -0
- /package/dist/src/{components → component}/KgProgressA/KgProgressA.d.ts +0 -0
- /package/dist/src/{components → component}/KgProgressA/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgResizable/KgResizable.d.ts +0 -0
- /package/dist/src/{components → component}/KgResizable/KgResizable.service.d.ts +0 -0
- /package/dist/src/{components → component}/KgResizable/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgSearch/KgSearch.d.ts +0 -0
- /package/dist/src/{components → component}/KgSearch/KgSearch.service.d.ts +0 -0
- /package/dist/src/{components → component}/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -0
- /package/dist/src/{components → component}/KgSearch/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgSearch/index.vm.d.ts +0 -0
- /package/dist/src/{components → component}/KgStation/KgStation.d.ts +0 -0
- /package/dist/src/{components → component}/KgStation/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgSubmit/KgSubmit.d.ts +0 -0
- /package/dist/src/{components → component}/KgSubmit/KgSubmit.service.d.ts +0 -0
- /package/dist/src/{components → component}/KgSubmit/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgTable/KgTable.d.ts +0 -0
- /package/dist/src/{components → component}/KgTable/KgTable.service.d.ts +0 -0
- /package/dist/src/{components → component}/KgTable/components/KgTable.BodyCell.d.ts +0 -0
- /package/dist/src/{components → component}/KgTable/components/KgTable.HeaderCell.d.ts +0 -0
- /package/dist/src/{components → component}/KgTable/components/KgTable.Info.d.ts +0 -0
- /package/dist/src/{components → component}/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -0
- /package/dist/src/{components → component}/KgTable/components/setting/KgTable.Setting.d.ts +0 -0
- /package/dist/src/{components → component}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -0
- /package/dist/src/{components → component}/KgTable/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgVar/KgVar.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/KgVarConfig.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/index.hooks.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/index.store.d.ts +0 -0
- /package/dist/src/{components → component}/KgVarConfig/index.vm.d.ts +0 -0
- /package/dist/src/{components → component}/KgWarehouse/KgWarehouse.d.ts +0 -0
- /package/dist/src/{components → component}/KgWarehouse/index.d.ts +0 -0
- /package/dist/src/{components → component}/KgWarehouse/index.guard.d.ts +0 -0
- /package/dist/src/{components → component}/KgYesOrNo/KgYesOrNo.d.ts +0 -0
- /package/dist/src/{components → component}/KgYesOrNo/index.d.ts +0 -0
- /package/dist/src/{components → component}/index.d.ts +0 -0
- /package/dist/src/{consts → const}/i18n/index.d.ts +0 -0
- /package/dist/src/{consts → const}/index.d.ts +0 -0
- /package/dist/src/{helpers → helper}/tsx.helper.d.ts +0 -0
- /package/dist/src/{pages → page}/KgPageDda/KgPageDda.d.ts +0 -0
- /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +0 -0
- /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Basic.d.ts +0 -0
- /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -0
- /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Menu.d.ts +0 -0
- /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Search.d.ts +0 -0
- /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Submit.d.ts +0 -0
- /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.Table.d.ts +0 -0
- /package/dist/src/{pages → page}/KgPageDda/components/KgPageDda.Create.d.ts +0 -0
- /package/dist/src/{pages → page}/KgPageDda/index.d.ts +0 -0
- /package/dist/src/{pages → page}/KgPageDda/index.vm.d.ts +0 -0
- /package/dist/src/{services → service}/index.d.ts +0 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
import fs from 'fs';
|
2
|
+
import chalk from 'chalk';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* 更新前端项目中包的版本号.
|
6
|
+
* 当我们升级了这些包的版本后, 可以使用该方法快速将新的版本号同步到前端项目中去.
|
7
|
+
*
|
8
|
+
* @param projectPath 前端项目目录.
|
9
|
+
* @param excludes 要排除的包.
|
10
|
+
*/
|
11
|
+
function bumpVersionToProjects(projectPath: string, excludes: Array<string> = []) {
|
12
|
+
// file:///D:/foo/...
|
13
|
+
const pkgPath = `${projectPath}/package.json`;
|
14
|
+
// D:/foo/...
|
15
|
+
const absolutePkgPath = pkgPath.replace('file:///', '');
|
16
|
+
|
17
|
+
import(pkgPath)
|
18
|
+
.then(({ default: json }) => {
|
19
|
+
Promise.all([import('../package.json')])
|
20
|
+
.then(([{ version, name, dependencies, devDependencies }]) => {
|
21
|
+
if (json.dependencies[name]) {
|
22
|
+
json.dependencies[name] = version;
|
23
|
+
}
|
24
|
+
|
25
|
+
fs.writeFileSync(absolutePkgPath, `${JSON.stringify(json, null, 2)}\n`, {});
|
26
|
+
console.log();
|
27
|
+
console.log(chalk.green(`版本更新成功`) + ' | ' + chalk.blueBright(version) + ' | ' + absolutePkgPath);
|
28
|
+
})
|
29
|
+
.catch((e) => {
|
30
|
+
console.log(e);
|
31
|
+
});
|
32
|
+
})
|
33
|
+
.catch((e) => {
|
34
|
+
console.error(e);
|
35
|
+
});
|
36
|
+
}
|
37
|
+
|
38
|
+
export { bumpVersionToProjects };
|
package/script/bump.ts
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
import fs from 'fs';
|
2
|
+
import semver from 'semver';
|
3
|
+
|
4
|
+
//____________________________________________________________________________________________________
|
5
|
+
// 自动更新所有包的版本号
|
6
|
+
//____________________________________________________________________________________________________
|
7
|
+
|
8
|
+
import('../package.json').then(({ default: json }) => {
|
9
|
+
const type = process.argv[2];
|
10
|
+
let version = json.version;
|
11
|
+
|
12
|
+
switch (type) {
|
13
|
+
case 'major':
|
14
|
+
version = semver.inc(version, 'major');
|
15
|
+
break;
|
16
|
+
case 'minor':
|
17
|
+
version = semver.inc(version, 'minor');
|
18
|
+
break;
|
19
|
+
case 'patch':
|
20
|
+
version = semver.inc(version, 'patch');
|
21
|
+
break;
|
22
|
+
case 'beta':
|
23
|
+
version = semver.inc(version, 'prerelease', 'beta');
|
24
|
+
break;
|
25
|
+
default:
|
26
|
+
throw new Error('INVALID SEMVER TYPE');
|
27
|
+
}
|
28
|
+
|
29
|
+
import('../package.json').then(({ default: json }) => {
|
30
|
+
json.version = version;
|
31
|
+
fs.writeFileSync('./package.json', `${JSON.stringify(json, null, 4)}\n`, {});
|
32
|
+
});
|
33
|
+
});
|
34
|
+
|
35
|
+
export {};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import fs from 'fs';
|
2
|
+
import path from 'path';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* 开发时, 需要将打包后的文件复制到项目的 node_modules 目录下进行测试.
|
6
|
+
*
|
7
|
+
* @param projectPath 前端项目目录.
|
8
|
+
*/
|
9
|
+
function copyToProject(projectPath: string) {
|
10
|
+
const cacheDir = path.join(projectPath, '/node_modules/.vite/');
|
11
|
+
if (fs.existsSync(cacheDir)) {
|
12
|
+
fs.rmSync(cacheDir, { recursive: true, force: true });
|
13
|
+
}
|
14
|
+
|
15
|
+
const dir = path.join(projectPath, '/node_modules/@kengic/vue/dist/');
|
16
|
+
if (fs.existsSync(dir)) {
|
17
|
+
fs.rmSync(dir, { recursive: true, force: true });
|
18
|
+
}
|
19
|
+
|
20
|
+
fs.cpSync('./dist/', dir, { recursive: true });
|
21
|
+
}
|
22
|
+
|
23
|
+
export { copyToProject };
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import chalk from 'chalk';
|
2
|
+
import { execSync } from 'node:child_process';
|
3
|
+
import { name, version } from '../package.json';
|
4
|
+
|
5
|
+
/*
|
6
|
+
* 使用下面的脚本来简化打包发布流程.
|
7
|
+
*/
|
8
|
+
|
9
|
+
const PKGNAME = `${name}@${version}`;
|
10
|
+
|
11
|
+
//region 安装依赖
|
12
|
+
//____________________________________________________________________________________________________
|
13
|
+
console.log('');
|
14
|
+
execSync('npm cache clean -f', { cwd: './', stdio: 'ignore' });
|
15
|
+
execSync('pnpm install', { cwd: './', stdio: 'ignore' });
|
16
|
+
console.log(`${chalk.blueBright('INSTALL ')}| ${PKGNAME}`);
|
17
|
+
//endregion
|
18
|
+
|
19
|
+
//region 打包
|
20
|
+
//____________________________________________________________________________________________________
|
21
|
+
execSync('npm run build', { cwd: './', stdio: 'ignore' });
|
22
|
+
console.log(`${chalk.blueBright(' BUILD ')}| ${PKGNAME}`);
|
23
|
+
//endregion
|
24
|
+
|
25
|
+
//region 发布
|
26
|
+
//____________________________________________________________________________________________________
|
27
|
+
execSync('npm run publish:npm', { cwd: './', stdio: 'ignore' });
|
28
|
+
console.log(`${chalk.blueBright('PUBLISH ')}| ${PKGNAME}`);
|
29
|
+
console.log('');
|
30
|
+
//endregion
|
@@ -1,2 +0,0 @@
|
|
1
|
-
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<{}>>, {}>;
|
2
|
-
export default _default;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as KgVarConfig } from './KgVarConfig';
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export { KgVarFactory, DEFAULT as KgVar2 } from './KgVarFactory';
|
@@ -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____ };
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/src/{components → component}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/src/{components → component}/KgLayoutHeader/components/KgLayoutHeaderLocale.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/src/{components → component}/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/src/{components → component}/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/src/{components → component}/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|