ace-front-end 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +8 -0
- package/.hintrc +9 -0
- package/.run/build-app-bolts.run.xml +12 -0
- package/.run/build-app-manager-ui.run.xml +12 -0
- package/.run/build-cloud-shell.run.xml +12 -0
- package/.run/build-element-plus-component.run.xml +12 -0
- package/.run/build-monnolith-shell.run.xml +12 -0
- package/.run/dev-app-manager.run.xml +12 -0
- package/.run/dev-monolith-shell.run.xml +12 -0
- package/README.md +59 -0
- package/ace-app-bolts-ui/.eslintrc.cjs +15 -0
- package/ace-app-bolts-ui/.vscode/extensions.json +3 -0
- package/ace-app-bolts-ui/.vscode/settings.json +27 -0
- package/ace-app-bolts-ui/folder-alias.json +1 -0
- package/ace-app-bolts-ui/package.json +76 -0
- package/ace-app-bolts-ui/src/api/apiCache.ts +26 -0
- package/ace-app-bolts-ui/src/api/appService/aceInstall.ts +29 -0
- package/ace-app-bolts-ui/src/api/appService/appAdmin.ts +58 -0
- package/ace-app-bolts-ui/src/api/appService/appInstance.ts +186 -0
- package/ace-app-bolts-ui/src/api/appService/appMessage.ts +123 -0
- package/ace-app-bolts-ui/src/api/appService/appRoute.ts +128 -0
- package/ace-app-bolts-ui/src/api/appService/appService.ts +135 -0
- package/ace-app-bolts-ui/src/api/appService/appSetting.ts +163 -0
- package/ace-app-bolts-ui/src/api/appService/appSettingGroup.ts +129 -0
- package/ace-app-bolts-ui/src/api/appService/appliedPasswordPolicy.ts +77 -0
- package/ace-app-bolts-ui/src/api/appService/eventCompensation.ts +61 -0
- package/ace-app-bolts-ui/src/api/appService/externalApp.ts +209 -0
- package/ace-app-bolts-ui/src/api/auditService/auditLog.ts +63 -0
- package/ace-app-bolts-ui/src/api/bizFlow/flowComment.ts +76 -0
- package/ace-app-bolts-ui/src/api/bizFlow/flowDefinition.ts +321 -0
- package/ace-app-bolts-ui/src/api/bizFlow/taskQuery.ts +91 -0
- package/ace-app-bolts-ui/src/api/domainModel/aggregate.ts +107 -0
- package/ace-app-bolts-ui/src/api/domainModel/command.ts +257 -0
- package/ace-app-bolts-ui/src/api/domainModel/constraint.ts +101 -0
- package/ace-app-bolts-ui/src/api/domainModel/dataScope.ts +84 -0
- package/ace-app-bolts-ui/src/api/domainModel/dataSource.ts +194 -0
- package/ace-app-bolts-ui/src/api/domainModel/dto.ts +243 -0
- package/ace-app-bolts-ui/src/api/domainModel/dtoConstraint.ts +101 -0
- package/ace-app-bolts-ui/src/api/domainModel/entity.ts +207 -0
- package/ace-app-bolts-ui/src/api/domainModel/enum.ts +170 -0
- package/ace-app-bolts-ui/src/api/domainModel/indexDef.ts +82 -0
- package/ace-app-bolts-ui/src/api/domainModel/query.ts +292 -0
- package/ace-app-bolts-ui/src/api/domainModel/release.ts +97 -0
- package/ace-app-bolts-ui/src/api/fileService/fileConfiguration.ts +161 -0
- package/ace-app-bolts-ui/src/api/fileService/fileStorage.ts +165 -0
- package/ace-app-bolts-ui/src/api/fileService/files.ts +207 -0
- package/ace-app-bolts-ui/src/api/idGenService/leafSegment.ts +55 -0
- package/ace-app-bolts-ui/src/api/idGenService/stringIdTemplate.ts +170 -0
- package/ace-app-bolts-ui/src/api/orgService/customGroup.ts +73 -0
- package/ace-app-bolts-ui/src/api/orgService/department.ts +186 -0
- package/ace-app-bolts-ui/src/api/orgService/departmentAttrDef.ts +90 -0
- package/ace-app-bolts-ui/src/api/orgService/group.ts +249 -0
- package/ace-app-bolts-ui/src/api/orgService/realm.ts +70 -0
- package/ace-app-bolts-ui/src/api/orgService/resourceScope.ts +132 -0
- package/ace-app-bolts-ui/src/api/orgService/role.ts +145 -0
- package/ace-app-bolts-ui/src/api/orgService/roleCategory.ts +77 -0
- package/ace-app-bolts-ui/src/api/orgService/session.ts +74 -0
- package/ace-app-bolts-ui/src/api/orgService/user.ts +1187 -0
- package/ace-app-bolts-ui/src/api/orgService/userAttrDef.ts +86 -0
- package/ace-app-bolts-ui/src/api/orgService/userAvatar.ts +32 -0
- package/ace-app-bolts-ui/src/api/pushService/MessageTemplate.ts +109 -0
- package/ace-app-bolts-ui/src/api/pushService/MessengerTemplateMap.ts +68 -0
- package/ace-app-bolts-ui/src/api/pushService/channel.ts +109 -0
- package/ace-app-bolts-ui/src/api/pushService/messenger.ts +82 -0
- package/ace-app-bolts-ui/src/api/pushService/sockJs.ts +43 -0
- package/ace-app-bolts-ui/src/api/pushService/soketIo.ts +50 -0
- package/ace-app-bolts-ui/src/api/pushService/userSubscription.ts +62 -0
- package/ace-app-bolts-ui/src/global.ts +238 -0
- package/ace-app-bolts-ui/src/http/IAceAxios.ts +183 -0
- package/ace-app-bolts-ui/src/http/types.ts +154 -0
- package/ace-app-bolts-ui/src/http/useAxios.ts +42 -0
- package/ace-app-bolts-ui/src/http/useLoading.ts +18 -0
- package/ace-app-bolts-ui/src/index.ts +250 -0
- package/ace-app-bolts-ui/src/locales/i18nLoader.ts +42 -0
- package/ace-app-bolts-ui/src/locales/setupI18n.ts +77 -0
- package/ace-app-bolts-ui/src/locales/useLocale.ts +70 -0
- package/ace-app-bolts-ui/src/models/AppBridge.ts +68 -0
- package/ace-app-bolts-ui/src/models/EntityBase.ts +10 -0
- package/ace-app-bolts-ui/src/models/LinkTreeNodeAddParam.ts +9 -0
- package/ace-app-bolts-ui/src/models/Page.ts +49 -0
- package/ace-app-bolts-ui/src/models/PageModel.ts +30 -0
- package/ace-app-bolts-ui/src/models/ProjectedSortPathTreeNode.ts +21 -0
- package/ace-app-bolts-ui/src/models/ProjectedUser.ts +17 -0
- package/ace-app-bolts-ui/src/models/Roles.ts +223 -0
- package/ace-app-bolts-ui/src/models/SortPathTreeNode.ts +21 -0
- package/ace-app-bolts-ui/src/models/SortPathTreeNodeAddParam.ts +13 -0
- package/ace-app-bolts-ui/src/models/SysSetting.ts +35 -0
- package/ace-app-bolts-ui/src/models/SystemSetting.ts +0 -0
- package/ace-app-bolts-ui/src/models/appService/AceInstallInfo.ts +43 -0
- package/ace-app-bolts-ui/src/models/appService/AppAdmin.ts +71 -0
- package/ace-app-bolts-ui/src/models/appService/AppInstance.ts +210 -0
- package/ace-app-bolts-ui/src/models/appService/AppMessage.ts +64 -0
- package/ace-app-bolts-ui/src/models/appService/AppRouter.ts +121 -0
- package/ace-app-bolts-ui/src/models/appService/AppService.ts +113 -0
- package/ace-app-bolts-ui/src/models/appService/AppSettingGroup.ts +81 -0
- package/ace-app-bolts-ui/src/models/appService/AppSettings.ts +163 -0
- package/ace-app-bolts-ui/src/models/appService/AppliedPasswordPolicy.ts +87 -0
- package/ace-app-bolts-ui/src/models/appService/ExternalApp.ts +272 -0
- package/ace-app-bolts-ui/src/models/appService/FailedEvent.ts +85 -0
- package/ace-app-bolts-ui/src/models/auditService/Audit.ts +160 -0
- package/ace-app-bolts-ui/src/models/bizFlow/CandidateNode.ts +43 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowCommentDto.ts +45 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowDefinitionDto.ts +80 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowInstanceDto.ts +84 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowProcessRequest.ts +80 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowVariableValueDto.ts +21 -0
- package/ace-app-bolts-ui/src/models/bizFlow/NodeInstanceDto.ts +56 -0
- package/ace-app-bolts-ui/src/models/bizFlow/NodeLinkDto.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/ProjectedFlowDefinitionDto.ts +62 -0
- package/ace-app-bolts-ui/src/models/bizFlow/ReplyCommentCommand.ts +47 -0
- package/ace-app-bolts-ui/src/models/bizFlow/SearchFlowDefinitionDto.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/TaskInstanceDto.ts +57 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/AbstractNode.ts +37 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CancelCheckoutFlowDefinitionCommand.ts +18 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CheckinFlowDefinitionCommand.ts +26 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CheckoutFlowDefinitionCommand.ts +18 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CreateFlowDefinitionCommand.ts +58 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/DeleteWorkflowDefinitionCommand.ts +18 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/EndNode.ts +24 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/Flow.ts +95 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/ForwardCriteria.ts +24 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/Link.ts +40 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/StartNode.ts +82 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/TaskNode.ts +180 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/UpdateFlowModelCommand.ts +28 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/Variable.ts +33 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/index.ts +24 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BaseParty.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyAll.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyByGroup.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyByUserAttribute.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyCustomFilter.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyDeptSpecifiedByVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyEntityOfDeptSpecifiedByVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyHasRole.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInDept.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInInitiatorDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInInitiatorEntityDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInitiator.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfElResult.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfPrevNode.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfPrevOwnerDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfPrevOwnerEntityDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfSpecificNode.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecific.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecificNodeDept.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecificNodeEntityDept.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecifiedByGroupVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecifiedByVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/ConditionalParty.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/MergeParty.ts +25 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/Party.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/index.ts +31 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/AbstractCompareRule.ts +28 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/AndOrRule.ts +28 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/BizRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/ExpressionRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/IsNullOrEmptyRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/NotRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/NumberCompareRule.ts +21 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/ReferencedRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/StringCompareRule.ts +21 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/index.ts +15 -0
- package/ace-app-bolts-ui/src/models/bizFlow/enums.ts +219 -0
- package/ace-app-bolts-ui/src/models/bizFlow/index.ts +21 -0
- package/ace-app-bolts-ui/src/models/domainModel/index.ts +4145 -0
- package/ace-app-bolts-ui/src/models/expr/ExpressionBuilder.ts +654 -0
- package/ace-app-bolts-ui/src/models/expr/Interfaces.ts +1081 -0
- package/ace-app-bolts-ui/src/models/expr/impls/agg.ts +192 -0
- package/ace-app-bolts-ui/src/models/expr/impls/any.ts +92 -0
- package/ace-app-bolts-ui/src/models/expr/impls/base.ts +24 -0
- package/ace-app-bolts-ui/src/models/expr/impls/bool.ts +321 -0
- package/ace-app-bolts-ui/src/models/expr/impls/collection.ts +14 -0
- package/ace-app-bolts-ui/src/models/expr/impls/constant.ts +85 -0
- package/ace-app-bolts-ui/src/models/expr/impls/dateTime.ts +59 -0
- package/ace-app-bolts-ui/src/models/expr/impls/nullfun.ts +170 -0
- package/ace-app-bolts-ui/src/models/expr/impls/num.ts +75 -0
- package/ace-app-bolts-ui/src/models/expr/impls/path.ts +317 -0
- package/ace-app-bolts-ui/src/models/expr/impls/strfun.ts +112 -0
- package/ace-app-bolts-ui/src/models/expr/impls/subQuery.ts +211 -0
- package/ace-app-bolts-ui/src/models/expr/impls/when.ts +125 -0
- package/ace-app-bolts-ui/src/models/expr/mixins.ts +1946 -0
- package/ace-app-bolts-ui/src/models/expr/querySpecification.ts +136 -0
- package/ace-app-bolts-ui/src/models/fileService/index.ts +1060 -0
- package/ace-app-bolts-ui/src/models/idGenService/LeafSegment.ts +48 -0
- package/ace-app-bolts-ui/src/models/idGenService/StringIdTemplate.ts +199 -0
- package/ace-app-bolts-ui/src/models/orgService/CustomGroup.ts +62 -0
- package/ace-app-bolts-ui/src/models/orgService/Department.ts +125 -0
- package/ace-app-bolts-ui/src/models/orgService/DepartmentAttributeDef.ts +121 -0
- package/ace-app-bolts-ui/src/models/orgService/Group.ts +244 -0
- package/ace-app-bolts-ui/src/models/orgService/Realm.ts +34 -0
- package/ace-app-bolts-ui/src/models/orgService/Role.ts +284 -0
- package/ace-app-bolts-ui/src/models/orgService/Session.ts +33 -0
- package/ace-app-bolts-ui/src/models/orgService/User.ts +650 -0
- package/ace-app-bolts-ui/src/models/orgService/UserAttributeDef.ts +53 -0
- package/ace-app-bolts-ui/src/models/orgService/dsl.ts +254 -0
- package/ace-app-bolts-ui/src/models/pushService/Messenger.ts +519 -0
- package/ace-app-bolts-ui/src/settings/cacheSetting.ts +20 -0
- package/ace-app-bolts-ui/src/settings/localeSetting.ts +133 -0
- package/ace-app-bolts-ui/src/stores/index.ts +19 -0
- package/ace-app-bolts-ui/src/stores/loginUserStore.ts +35 -0
- package/ace-app-bolts-ui/src/stores/useEnums.ts +45 -0
- package/ace-app-bolts-ui/src/utils/LRUCache.ts +52 -0
- package/ace-app-bolts-ui/src/utils/cache/index.ts +50 -0
- package/ace-app-bolts-ui/src/utils/cache/storageCache.ts +124 -0
- package/ace-app-bolts-ui/src/utils/cipher.ts +81 -0
- package/ace-app-bolts-ui/src/utils/common.ts +13 -0
- package/ace-app-bolts-ui/src/utils/treeSort.ts +0 -0
- package/ace-app-bolts-ui/src/vite-env.d.ts +2 -0
- package/ace-app-bolts-ui/tsconfig.json +22 -0
- package/ace-app-bolts-ui/tsconfig.tsbuildinfo +1 -0
- package/ace-app-manager-ui/.env +5 -0
- package/ace-app-manager-ui/.env.development +1 -0
- package/ace-app-manager-ui/.env.production +1 -0
- package/ace-app-manager-ui/.eslintrc.cjs +48 -0
- package/ace-app-manager-ui/README.md +18 -0
- package/ace-app-manager-ui/auto-imports.d.ts +11 -0
- package/ace-app-manager-ui/components.d.ts +118 -0
- package/ace-app-manager-ui/customVitePlugin.d.ts +6 -0
- package/ace-app-manager-ui/customVitePlugin.js +37 -0
- package/ace-app-manager-ui/customVitePlugin.ts +44 -0
- package/ace-app-manager-ui/index.html +12 -0
- package/ace-app-manager-ui/jsconfig.json +19 -0
- package/ace-app-manager-ui/package.json +66 -0
- package/ace-app-manager-ui/src/App.vue +32 -0
- package/ace-app-manager-ui/src/assets/baseData/AppManageMenu.ts +284 -0
- package/ace-app-manager-ui/src/assets/baseData/GlobalManageMenu.ts +75 -0
- package/ace-app-manager-ui/src/assets/logo.png +0 -0
- package/ace-app-manager-ui/src/assets/scss/element/element-var.scss +1117 -0
- package/ace-app-manager-ui/src/assets/scss/element/index.scss +72 -0
- package/ace-app-manager-ui/src/assets/scss/normalize.scss +524 -0
- package/ace-app-manager-ui/src/assets/scss/vars.scss +12 -0
- package/ace-app-manager-ui/src/components/appSelector/Index.vue +23 -0
- package/ace-app-manager-ui/src/components/departmentPicker/index.ts +3 -0
- package/ace-app-manager-ui/src/components/departmentPicker/src/SinglePicker.vue +102 -0
- package/ace-app-manager-ui/src/components/departmentSelector/index.ts +4 -0
- package/ace-app-manager-ui/src/components/departmentSelector/src/SingleSelector.vue +123 -0
- package/ace-app-manager-ui/src/components/departmentSelector/src/consts.ts +2 -0
- package/ace-app-manager-ui/src/components/enumPicker/EnumPicker.vue +57 -0
- package/ace-app-manager-ui/src/components/fieldControl/index.ts +2 -0
- package/ace-app-manager-ui/src/components/fieldControl/src/FieldControl.vue +130 -0
- package/ace-app-manager-ui/src/components/header/ManageHeader.vue +43 -0
- package/ace-app-manager-ui/src/components/icon/JaIcon.vue +50 -0
- package/ace-app-manager-ui/src/components/icon/svg/SvgIcon.vue +56 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/index.ts +7 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/IconColorPicker.vue +104 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/colorPicker/ColorPicker.vue +128 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/colorPicker/baseData/colors.ts +155 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/iconPicker/IconPicker.vue +221 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/iconPicker/baseData/icons.json +1364 -0
- package/ace-app-manager-ui/src/components/multipleSelector/MultipleSelector.vue +136 -0
- package/ace-app-manager-ui/src/components/pages/AppEnter.vue +358 -0
- package/ace-app-manager-ui/src/components/pages/PageEnter.vue +227 -0
- package/ace-app-manager-ui/src/components/pages/components/topBar.vue +93 -0
- package/ace-app-manager-ui/src/components/realmPicker/index.ts +3 -0
- package/ace-app-manager-ui/src/components/realmPicker/src/RealmPicker.vue +194 -0
- package/ace-app-manager-ui/src/components/realmPicker/src/components/RealmEditor.vue +149 -0
- package/ace-app-manager-ui/src/components/roleSelector/index.ts +3 -0
- package/ace-app-manager-ui/src/components/roleSelector/src/RoleMultiSelector.vue +194 -0
- package/ace-app-manager-ui/src/components/settingValueEditor/ValueEditor.vue +180 -0
- package/ace-app-manager-ui/src/components/subPage/index.ts +3 -0
- package/ace-app-manager-ui/src/components/subPage/src/SubPage.vue +90 -0
- package/ace-app-manager-ui/src/components/userGroupSelector/index.ts +3 -0
- package/ace-app-manager-ui/src/components/userGroupSelector/src/UserGroupMultiSelector.vue +131 -0
- package/ace-app-manager-ui/src/hooks/useAppState.ts +31 -0
- package/ace-app-manager-ui/src/hooks/useDateFormats.ts +34 -0
- package/ace-app-manager-ui/src/hooks/usePageSize.ts +1 -0
- package/ace-app-manager-ui/src/hooks/useRealms.ts +27 -0
- package/ace-app-manager-ui/src/hooks/useUserQuery.ts +133 -0
- package/ace-app-manager-ui/src/init.ts +18 -0
- package/ace-app-manager-ui/src/locales/lang/en/common.json +3 -0
- package/ace-app-manager-ui/src/locales/lang/en/errors.json +42 -0
- package/ace-app-manager-ui/src/locales/lang/en.ts +14 -0
- package/ace-app-manager-ui/src/locales/lang/zh-CN/common.json +218 -0
- package/ace-app-manager-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-app-manager-ui/src/locales/lang/zh-CN.ts +13 -0
- package/ace-app-manager-ui/src/locales/setupI18n.ts +14 -0
- package/ace-app-manager-ui/src/main.ts +114 -0
- package/ace-app-manager-ui/src/public-path.js +10 -0
- package/ace-app-manager-ui/src/router/index.ts +33 -0
- package/ace-app-manager-ui/src/router/modules/appRoutes.ts +24 -0
- package/ace-app-manager-ui/src/router/modules/demoRoutes.ts +22 -0
- package/ace-app-manager-ui/src/router/routes.ts +690 -0
- package/ace-app-manager-ui/src/stores/index.ts +3 -0
- package/ace-app-manager-ui/src/stores/modules/locale.ts +60 -0
- package/ace-app-manager-ui/src/stores/modules/system.ts +51 -0
- package/ace-app-manager-ui/src/types/ext.d.ts +13 -0
- package/ace-app-manager-ui/src/types/style.d.ts +7 -0
- package/ace-app-manager-ui/src/types/window.d.ts +24 -0
- package/ace-app-manager-ui/src/utils/index.ts +7 -0
- package/ace-app-manager-ui/src/utils/vxeTable.ts +58 -0
- package/ace-app-manager-ui/src/vars.scss +12 -0
- package/ace-app-manager-ui/src/views/appManage/AppManage.vue +266 -0
- package/ace-app-manager-ui/src/views/appManage/appInfo/AppInfo.vue +309 -0
- package/ace-app-manager-ui/src/views/appManage/appRelease/AppRelease.vue +181 -0
- package/ace-app-manager-ui/src/views/appManage/appRelease/components/Editor.vue +253 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/AppRouter.vue +381 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/base/index.ts +204 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/components/Editor.vue +368 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/components/MenuSelector.vue +12 -0
- package/ace-app-manager-ui/src/views/appManage/assignAppAdmin/AssignAppAdmin.vue +231 -0
- package/ace-app-manager-ui/src/views/appManage/assignAppAdmin/components/Editor.vue +135 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/Index.vue +53 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/CommandEditor.vue +209 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/CommandParamEditor.vue +246 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/ConstraintsEditor.vue +239 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/CreateEntityOperationsEditor.vue +90 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/LeftPanel.vue +282 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/RightPanel.vue +249 -0
- package/ace-app-manager-ui/src/views/appManage/components/AppManageLayout.vue +94 -0
- package/ace-app-manager-ui/src/views/appManage/components/GlobalUserGroupSingleSelector.vue +124 -0
- package/ace-app-manager-ui/src/views/appManage/components/SelectRealmForApp.vue +59 -0
- package/ace-app-manager-ui/src/views/appManage/components/ServiceSelector.vue +34 -0
- package/ace-app-manager-ui/src/views/appManage/components/SubMenu.vue +32 -0
- package/ace-app-manager-ui/src/views/appManage/components/UserGroupAuthSFC.vue +453 -0
- package/ace-app-manager-ui/src/views/appManage/components/UserGroupSingleSelector.vue +115 -0
- package/ace-app-manager-ui/src/views/appManage/configDefine/ConfigDefine.vue +392 -0
- package/ace-app-manager-ui/src/views/appManage/configDefine/GroupEditor.vue +133 -0
- package/ace-app-manager-ui/src/views/appManage/configDefine/SettingEditor.vue +231 -0
- package/ace-app-manager-ui/src/views/appManage/dataSourceDefine/DataSourceDefine.vue +198 -0
- package/ace-app-manager-ui/src/views/appManage/dataSourceDefine/createNewDidalog.vue +177 -0
- package/ace-app-manager-ui/src/views/appManage/dataSourceDefine/editDialog.vue +137 -0
- package/ace-app-manager-ui/src/views/appManage/digitalSequence/DigitalSequence.vue +163 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/AppendEntityPropToDtoDlg.vue +351 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/CreateDtoPropFromEntityPropEditor.vue +516 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/CreateFromEntityEditor.vue +217 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/DtoDefine.vue +77 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/DtoEditor.vue +144 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/LeftPanel.vue +283 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/PropertyEditor.vue +586 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/RightPanel.vue +574 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/uilts.ts +108 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/types.ts +42 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/EntityDefine.vue +80 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/AggregateEditor.vue +93 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/EntityEditor.vue +281 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/ImportEditor.vue +329 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/IndexDefinitionEditor.vue +424 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/LeftPanel.vue +343 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/MonacoEditor.vue +1659 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/PropertyEditor.vue +956 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/RightPanel.vue +660 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/monacoEditorType.ts +74 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/uilts.ts +108 -0
- package/ace-app-manager-ui/src/views/appManage/enumDefine/EnumDefine.vue +169 -0
- package/ace-app-manager-ui/src/views/appManage/enumDefine/editDialog.vue +266 -0
- package/ace-app-manager-ui/src/views/appManage/extendedDepartmentAttr/ExtendedDepartmentAttr.vue +272 -0
- package/ace-app-manager-ui/src/views/appManage/extendedDepartmentAttr/components/Editor.vue +267 -0
- package/ace-app-manager-ui/src/views/appManage/extendedUserAttr/ExtendedUserAttr.vue +270 -0
- package/ace-app-manager-ui/src/views/appManage/extendedUserAttr/components/Editor.vue +291 -0
- package/ace-app-manager-ui/src/views/appManage/globalUserGroupAuth/GlobalUserGroupAuth.vue +18 -0
- package/ace-app-manager-ui/src/views/appManage/i18nDefine/BundleEditor.vue +77 -0
- package/ace-app-manager-ui/src/views/appManage/i18nDefine/Editor.vue +78 -0
- package/ace-app-manager-ui/src/views/appManage/i18nDefine/I18nDefine.vue +173 -0
- package/ace-app-manager-ui/src/views/appManage/messageTemplate/Editor.vue +191 -0
- package/ace-app-manager-ui/src/views/appManage/messageTemplate/MessageTemplate.vue +142 -0
- package/ace-app-manager-ui/src/views/appManage/numberTemplate/NumberTemplate.vue +166 -0
- package/ace-app-manager-ui/src/views/appManage/numberTemplate/components/Editor.vue +373 -0
- package/ace-app-manager-ui/src/views/appManage/processDefinition/Editor.vue +168 -0
- package/ace-app-manager-ui/src/views/appManage/processDefinition/ProcessDefinition.vue +362 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/Index.vue +52 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/ConstraintsEditor.vue +239 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/JpqlEditor.vue +229 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/LeftPanel.vue +282 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/QueryEditor.vue +294 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/QueryParamEditor.vue +253 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/RightPanel.vue +247 -0
- package/ace-app-manager-ui/src/views/appManage/registerMessenger/Editor.vue +108 -0
- package/ace-app-manager-ui/src/views/appManage/registerMessenger/RegisterMessenger.vue +127 -0
- package/ace-app-manager-ui/src/views/appManage/registerPassageway/Editor.vue +117 -0
- package/ace-app-manager-ui/src/views/appManage/registerPassageway/RegisterPassageway.vue +150 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/RegisterUpload.vue +267 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/components/Editor.vue +425 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/components/QuotaEditor.vue +202 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/components/WebHookEditor.vue +174 -0
- package/ace-app-manager-ui/src/views/appManage/reverseAuth/ReverseAuth.vue +620 -0
- package/ace-app-manager-ui/src/views/appManage/reverseAuth/components/AddRoleUserDialog.vue +59 -0
- package/ace-app-manager-ui/src/views/appManage/reverseAuth/types.d.ts +7 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/RoleDefine.vue +272 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/components/CompositeRole.vue +195 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/components/RoleEditor.vue +161 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/components/RoleSelector.vue +135 -0
- package/ace-app-manager-ui/src/views/appManage/serviceManage/AppServiceManage.vue +204 -0
- package/ace-app-manager-ui/src/views/appManage/serviceManage/components/Editor.vue +153 -0
- package/ace-app-manager-ui/src/views/appManage/thirdPartyAppAuth/ThirdPartyAppAuth.vue +178 -0
- package/ace-app-manager-ui/src/views/appManage/types.ts +1 -0
- package/ace-app-manager-ui/src/views/appManage/userAuth/UserAuth.vue +668 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupAuth/UserGroupAuth.vue +18 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupManage/UserGroupManage.vue +326 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupManage/components/Editor.vue +217 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupManage/components/MemberUsers.vue +101 -0
- package/ace-app-manager-ui/src/views/demo/enumPicker/Index.vue +94 -0
- package/ace-app-manager-ui/src/views/demo/enumPicker/components/enumPicker/index.ts +1 -0
- package/ace-app-manager-ui/src/views/demo/enumPicker/components/enumPicker/src/EnumPicker.vue +103 -0
- package/ace-app-manager-ui/src/views/globalManage/GlobalManage.vue +150 -0
- package/ace-app-manager-ui/src/views/globalManage/aboutPlatform/AboutPlatform.vue +7 -0
- package/ace-app-manager-ui/src/views/globalManage/auditLogsManage/AuditLogDetail.vue +127 -0
- package/ace-app-manager-ui/src/views/globalManage/auditLogsManage/AuditLogsManage.vue +387 -0
- package/ace-app-manager-ui/src/views/globalManage/components/ExtendedAttrRender.vue +311 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/DepartmentManage.vue +336 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/RecycleBin.vue +127 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/components/DefaultGroupEditor.vue +191 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/components/Editor.vue +164 -0
- package/ace-app-manager-ui/src/views/globalManage/eventCompensate/Index.vue +189 -0
- package/ace-app-manager-ui/src/views/globalManage/externalAppManage/ExternalAppManage.vue +305 -0
- package/ace-app-manager-ui/src/views/globalManage/externalAppManage/components/Editor.vue +227 -0
- package/ace-app-manager-ui/src/views/globalManage/externalAppManage/components/RenewSecret.vue +91 -0
- package/ace-app-manager-ui/src/views/globalManage/globalSetting/Editor.vue +177 -0
- package/ace-app-manager-ui/src/views/globalManage/globalSetting/GlobalSettingManage.vue +201 -0
- package/ace-app-manager-ui/src/views/globalManage/globalSetting/types.ts +14 -0
- package/ace-app-manager-ui/src/views/globalManage/passwordManage/PasswordManage.vue +224 -0
- package/ace-app-manager-ui/src/views/globalManage/passwordManage/ValueEditor.vue +92 -0
- package/ace-app-manager-ui/src/views/globalManage/sessionManage/SessionManage.vue +251 -0
- package/ace-app-manager-ui/src/views/globalManage/userGroupManage/UserGroupManage.vue +332 -0
- package/ace-app-manager-ui/src/views/globalManage/userGroupManage/components/Editor.vue +160 -0
- package/ace-app-manager-ui/src/views/globalManage/userGroupManage/components/MemberUsers.vue +100 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/RecycleBin.vue +344 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/UserManage.vue +631 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/AttributeEditor.vue +191 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/ClassifiedLevelEditor.vue +79 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/DepartmentEditor.vue +70 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/Editor.vue +475 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/ExpirationEditor.vue +82 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/MaxSessionEditor.vue +76 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/PasswordEditor.vue +107 -0
- package/ace-app-manager-ui/src/views/home/Index.vue +457 -0
- package/ace-app-manager-ui/src/views/home/components/AppEditor.vue +208 -0
- package/ace-app-manager-ui/src/views/home/components/AppManage.vue +252 -0
- package/ace-app-manager-ui/src/views/home/components/FileRepositoryEditor.vue +292 -0
- package/ace-app-manager-ui/src/views/home/components/FileRepositoryManage.vue +246 -0
- package/ace-app-manager-ui/src/vite-env.d.ts +4 -0
- package/ace-app-manager-ui/tsconfig.json +41 -0
- package/ace-app-manager-ui/tsconfig.node.json +15 -0
- package/ace-app-manager-ui/tsconfig.node.tsbuildinfo +1 -0
- package/ace-app-manager-ui/vite.config.d.ts +2 -0
- package/ace-app-manager-ui/vite.config.js +112 -0
- package/ace-app-manager-ui/vite.config.ts +116 -0
- package/ace-app-manager-ui/vue-image-crop-upload.d.ts +1 -0
- package/ace-cloud-shell-ui/.env +2 -0
- package/ace-cloud-shell-ui/.env.development +5 -0
- package/ace-cloud-shell-ui/.env.production +1 -0
- package/ace-cloud-shell-ui/.eslintrc.js +33 -0
- package/ace-cloud-shell-ui/.vscode/extensions.json +6 -0
- package/ace-cloud-shell-ui/.vscode/settings.json +27 -0
- package/ace-cloud-shell-ui/auto-imports.d.ts +9 -0
- package/ace-cloud-shell-ui/components.d.ts +58 -0
- package/ace-cloud-shell-ui/doc/issue.md +6 -0
- package/ace-cloud-shell-ui/index.html +19 -0
- package/ace-cloud-shell-ui/package.json +72 -0
- package/ace-cloud-shell-ui/public/res/build/shell/favicon.ico +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/.keep +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/index.html +156 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.css +2583 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.eot +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.glyph.json +1 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.less +2585 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.module.less +2567 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.scss +5103 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.styl +2554 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.svg +7633 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.symbol.svg +11 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.ttf +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff2 +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/symbol.html +17913 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/tags.json +1364 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/unicode.html +175 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/hidden-right-sidebar.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/icon/deliver.svg +1 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/icon/logout.svg +28 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/jari-logo-2.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/jari-logo.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/public-code.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/show-right-sidebar.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/svg/shezhi.svg +11 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/svg/tuichu.svg +13 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/svg/xiaoxi.svg +13 -0
- package/ace-cloud-shell-ui/src/App.vue +24 -0
- package/ace-cloud-shell-ui/src/assets/base.css +80 -0
- package/ace-cloud-shell-ui/src/assets/element/index.scss +13 -0
- package/ace-cloud-shell-ui/src/assets/element/var.scss +1123 -0
- package/ace-cloud-shell-ui/src/assets/logo.svg +7 -0
- package/ace-cloud-shell-ui/src/assets/main.scss +128 -0
- package/ace-cloud-shell-ui/src/env.d.ts +14 -0
- package/ace-cloud-shell-ui/src/hooks/useSockJs.ts +146 -0
- package/ace-cloud-shell-ui/src/init.ts +21 -0
- package/ace-cloud-shell-ui/src/layout/Main.vue +160 -0
- package/ace-cloud-shell-ui/src/layout/components/AppMenu.vue +329 -0
- package/ace-cloud-shell-ui/src/layout/components/Fillet.vue +105 -0
- package/ace-cloud-shell-ui/src/layout/components/Sidebar.vue +194 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/common.json +17 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/errors.json +42 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/layout.json +8 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/updatePsw.json +9 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/userProfile.json +3 -0
- package/ace-cloud-shell-ui/src/locales/lang/en.ts +14 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/common.json +17 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/layout.json +8 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/updatePsw.json +9 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/userProfile.json +3 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN.ts +14 -0
- package/ace-cloud-shell-ui/src/locales/setupI18n.ts +14 -0
- package/ace-cloud-shell-ui/src/main.ts +130 -0
- package/ace-cloud-shell-ui/src/router/index.ts +107 -0
- package/ace-cloud-shell-ui/src/shims-vue.d.ts +21 -0
- package/ace-cloud-shell-ui/src/stores/modules/accessibleApps.ts +149 -0
- package/ace-cloud-shell-ui/src/stores/modules/app.ts +147 -0
- package/ace-cloud-shell-ui/src/stores/modules/appContext.ts +53 -0
- package/ace-cloud-shell-ui/src/stores/modules/locale.ts +63 -0
- package/ace-cloud-shell-ui/src/stores/modules/oidc.ts +71 -0
- package/ace-cloud-shell-ui/src/stores/modules/system.ts +32 -0
- package/ace-cloud-shell-ui/src/types/ext.d.ts +35 -0
- package/ace-cloud-shell-ui/src/types/router.d.ts +12 -0
- package/ace-cloud-shell-ui/src/types/window.d.ts +15 -0
- package/ace-cloud-shell-ui/src/utils/axios/AceAxios.ts +657 -0
- package/ace-cloud-shell-ui/src/utils/axios/cache.ts +11 -0
- package/ace-cloud-shell-ui/src/utils/axios/index.ts +37 -0
- package/ace-cloud-shell-ui/src/utils/microApp/index.ts +6 -0
- package/ace-cloud-shell-ui/src/views/AboutView.vue +140 -0
- package/ace-cloud-shell-ui/src/views/DlgUpdatePassword.vue +120 -0
- package/ace-cloud-shell-ui/src/views/ExtendedAttrRender.vue +311 -0
- package/ace-cloud-shell-ui/src/views/MicroApp.vue +234 -0
- package/ace-cloud-shell-ui/src/views/UserProfileEditor.vue +303 -0
- package/ace-cloud-shell-ui/src/views/WorkBench.vue +10 -0
- package/ace-cloud-shell-ui/src/views/errors/HttpState404.vue +136 -0
- package/ace-cloud-shell-ui/src/views/errors/NoAppAvailable.vue +16 -0
- package/ace-cloud-shell-ui/src/vite-env.d.ts +3 -0
- package/ace-cloud-shell-ui/tsconfig.app.json +33 -0
- package/ace-cloud-shell-ui/tsconfig.app.tsbuildinfo +1 -0
- package/ace-cloud-shell-ui/tsconfig.config.json +23 -0
- package/ace-cloud-shell-ui/tsconfig.config.tsbuildinfo +1 -0
- package/ace-cloud-shell-ui/tsconfig.json +11 -0
- package/ace-cloud-shell-ui/vbuild/vite/proxy.ts +46 -0
- package/ace-cloud-shell-ui/vite.config.ts +119 -0
- package/ace-cloud-shell-ui/vue-image-crop-upload.d.ts +1 -0
- package/ace-element-plus-component/.babelrc +8 -0
- package/ace-element-plus-component/.env +1 -0
- package/ace-element-plus-component/.env.development +3 -0
- package/ace-element-plus-component/.env.production +1 -0
- package/ace-element-plus-component/.vscode/extensions.json +3 -0
- package/ace-element-plus-component/CHANGE.md +16 -0
- package/ace-element-plus-component/README.md +1 -0
- package/ace-element-plus-component/index.html +14 -0
- package/ace-element-plus-component/index.ts +20 -0
- package/ace-element-plus-component/package.json +72 -0
- package/ace-element-plus-component/packages/components/autoComplete/JaAutoComplete.vue +57 -0
- package/ace-element-plus-component/packages/components/autoComplete/README.md +35 -0
- package/ace-element-plus-component/packages/components/autoComplete/index.ts +5 -0
- package/ace-element-plus-component/packages/components/avatar/JaAvatar.vue +137 -0
- package/ace-element-plus-component/packages/components/avatar/README.md +45 -0
- package/ace-element-plus-component/packages/components/avatar/avatarToken.ts +11 -0
- package/ace-element-plus-component/packages/components/avatar/defaultImg.ts +14 -0
- package/ace-element-plus-component/packages/components/avatar/index.ts +7 -0
- package/ace-element-plus-component/packages/components/button/JaButton.vue +76 -0
- package/ace-element-plus-component/packages/components/button/README.md +57 -0
- package/ace-element-plus-component/packages/components/button/index.ts +4 -0
- package/ace-element-plus-component/packages/components/channelPicker/index.ts +7 -0
- package/ace-element-plus-component/packages/components/channelPicker/src/ChannelPicker.vue +43 -0
- package/ace-element-plus-component/packages/components/channelPicker/src/JaChannelPicker.vue +42 -0
- package/ace-element-plus-component/packages/components/checkbox/JaCheckbox.vue +63 -0
- package/ace-element-plus-component/packages/components/checkbox/README.md +21 -0
- package/ace-element-plus-component/packages/components/checkbox/index.ts +4 -0
- package/ace-element-plus-component/packages/components/checkboxGroup/JaCheckboxGroup.vue +56 -0
- package/ace-element-plus-component/packages/components/checkboxGroup/README.md +24 -0
- package/ace-element-plus-component/packages/components/checkboxGroup/index.ts +4 -0
- package/ace-element-plus-component/packages/components/customGroupTree/index.ts +10 -0
- package/ace-element-plus-component/packages/components/customGroupTree/src/customGroupTree.vue +91 -0
- package/ace-element-plus-component/packages/components/datePicker/JaDatePicker.vue +65 -0
- package/ace-element-plus-component/packages/components/datePicker/README.md +21 -0
- package/ace-element-plus-component/packages/components/datePicker/index.ts +4 -0
- package/ace-element-plus-component/packages/components/departmentPicker/index.ts +4 -0
- package/ace-element-plus-component/packages/components/departmentPicker/src/DepartmentPicker.vue +107 -0
- package/ace-element-plus-component/packages/components/departmentPicker/src/consts.ts +2 -0
- package/ace-element-plus-component/packages/components/departmentTree/index.ts +10 -0
- package/ace-element-plus-component/packages/components/departmentTree/src/departmentTree.vue +135 -0
- package/ace-element-plus-component/packages/components/dropdownButton/JaDropdownButton.vue +77 -0
- package/ace-element-plus-component/packages/components/dropdownButton/README.md +30 -0
- package/ace-element-plus-component/packages/components/dropdownButton/index.ts +4 -0
- package/ace-element-plus-component/packages/components/enumList/EnumListInput.vue +107 -0
- package/ace-element-plus-component/packages/components/enumList/JaEnumList.vue +39 -0
- package/ace-element-plus-component/packages/components/enumList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/enumPicker/index.ts +5 -0
- package/ace-element-plus-component/packages/components/enumPicker/src/EnumPicker.vue +103 -0
- package/ace-element-plus-component/packages/components/flowShell/FlowFormShell.vue +628 -0
- package/ace-element-plus-component/packages/components/flowShell/index.ts +5 -0
- package/ace-element-plus-component/packages/components/form/JaForm.vue +186 -0
- package/ace-element-plus-component/packages/components/form/README.md +30 -0
- package/ace-element-plus-component/packages/components/form/index.ts +5 -0
- package/ace-element-plus-component/packages/components/form/types.ts +4 -0
- package/ace-element-plus-component/packages/components/formItem/JaFormItem.vue +123 -0
- package/ace-element-plus-component/packages/components/formItem/README.md +28 -0
- package/ace-element-plus-component/packages/components/formItem/index.ts +4 -0
- package/ace-element-plus-component/packages/components/index.ts +35 -0
- package/ace-element-plus-component/packages/components/input/JaInput.vue +107 -0
- package/ace-element-plus-component/packages/components/input/README.md +23 -0
- package/ace-element-plus-component/packages/components/input/index.ts +4 -0
- package/ace-element-plus-component/packages/components/inputI18n/I18nBundleEditor.vue +76 -0
- package/ace-element-plus-component/packages/components/inputI18n/InputI18n.vue +152 -0
- package/ace-element-plus-component/packages/components/inputI18n/JaInputI18n.vue +50 -0
- package/ace-element-plus-component/packages/components/inputI18n/index.ts +8 -0
- package/ace-element-plus-component/packages/components/inputNumber/JaInputNumber.vue +79 -0
- package/ace-element-plus-component/packages/components/inputNumber/README.md +21 -0
- package/ace-element-plus-component/packages/components/inputNumber/index.ts +4 -0
- package/ace-element-plus-component/packages/components/mapItemList/JaMapItemList.vue +35 -0
- package/ace-element-plus-component/packages/components/mapItemList/MapItemListInput.vue +191 -0
- package/ace-element-plus-component/packages/components/mapItemList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/numberList/JaNumberList.vue +36 -0
- package/ace-element-plus-component/packages/components/numberList/NumberListInput.vue +111 -0
- package/ace-element-plus-component/packages/components/numberList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/properyPicker/JaPropertyPicker.vue +38 -0
- package/ace-element-plus-component/packages/components/properyPicker/PropertyPicker.vue +310 -0
- package/ace-element-plus-component/packages/components/properyPicker/index.ts +7 -0
- package/ace-element-plus-component/packages/components/radioGroup/JaRadioGroup.vue +61 -0
- package/ace-element-plus-component/packages/components/radioGroup/README.md +24 -0
- package/ace-element-plus-component/packages/components/radioGroup/index.ts +4 -0
- package/ace-element-plus-component/packages/components/rolePicker/RoleCategorySelector.vue +154 -0
- package/ace-element-plus-component/packages/components/rolePicker/RoleEditor.vue +138 -0
- package/ace-element-plus-component/packages/components/rolePicker/RolePicker.vue +44 -0
- package/ace-element-plus-component/packages/components/rolePicker/RolePickerRaw.vue +56 -0
- package/ace-element-plus-component/packages/components/rolePicker/baseRolePicker.vue +84 -0
- package/ace-element-plus-component/packages/components/rolePicker/index.ts +13 -0
- package/ace-element-plus-component/packages/components/scrollbar/README.md +23 -0
- package/ace-element-plus-component/packages/components/scrollbar/Scrollbar.vue +100 -0
- package/ace-element-plus-component/packages/components/scrollbar/index.ts +5 -0
- package/ace-element-plus-component/packages/components/scrollbar/utils.ts +17 -0
- package/ace-element-plus-component/packages/components/select/JaSelect.vue +60 -0
- package/ace-element-plus-component/packages/components/select/README.md +24 -0
- package/ace-element-plus-component/packages/components/select/index.ts +4 -0
- package/ace-element-plus-component/packages/components/stringList/JaStringList.vue +36 -0
- package/ace-element-plus-component/packages/components/stringList/StringListInput.vue +96 -0
- package/ace-element-plus-component/packages/components/stringList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/switch/JaSwitch.vue +61 -0
- package/ace-element-plus-component/packages/components/switch/README.md +21 -0
- package/ace-element-plus-component/packages/components/switch/index.ts +4 -0
- package/ace-element-plus-component/packages/components/timePicker/JaTimePicker.vue +65 -0
- package/ace-element-plus-component/packages/components/timePicker/README.md +21 -0
- package/ace-element-plus-component/packages/components/timePicker/index.ts +5 -0
- package/ace-element-plus-component/packages/components/tip/README.md +20 -0
- package/ace-element-plus-component/packages/components/tip/index.ts +4 -0
- package/ace-element-plus-component/packages/components/tip/src/AceTip.vue +51 -0
- package/ace-element-plus-component/packages/components/upload/FilePreviewer.vue +245 -0
- package/ace-element-plus-component/packages/components/upload/JaUploader.vue +72 -0
- package/ace-element-plus-component/packages/components/upload/README.md +24 -0
- package/ace-element-plus-component/packages/components/upload/index.ts +8 -0
- package/ace-element-plus-component/packages/components/upload/pdf-viewer/PdfViewerModal.vue +32 -0
- package/ace-element-plus-component/packages/components/upload/types.ts +4 -0
- package/ace-element-plus-component/packages/components/upload/uploader-locale-zh-cn.ts +223 -0
- package/ace-element-plus-component/packages/components/upload/uploader.vue +876 -0
- package/ace-element-plus-component/packages/components/userGroupPicker/index.ts +4 -0
- package/ace-element-plus-component/packages/components/userGroupPicker/src/UserGroupPicker.vue +94 -0
- package/ace-element-plus-component/packages/components/userGroupTree/index.ts +10 -0
- package/ace-element-plus-component/packages/components/userGroupTree/src/userGroupTree.vue +193 -0
- package/ace-element-plus-component/packages/components/userPicker/index.ts +10 -0
- package/ace-element-plus-component/packages/components/userPicker/src/CustomGroupManager.vue +189 -0
- package/ace-element-plus-component/packages/components/userPicker/src/JaUserList.vue +328 -0
- package/ace-element-plus-component/packages/components/userPicker/src/JaUserPicker.vue +40 -0
- package/ace-element-plus-component/packages/components/userPicker/src/UserPicker.vue +515 -0
- package/ace-element-plus-component/packages/components/userSelectDialog/index.ts +6 -0
- package/ace-element-plus-component/packages/components/userSelectDialog/src/userSelectDialog.vue +499 -0
- package/ace-element-plus-component/packages/components/userTag/UserInfoTag.vue +419 -0
- package/ace-element-plus-component/packages/components/userTag/index.ts +6 -0
- package/ace-element-plus-component/packages/components/userTag/sharedAxios.ts +8 -0
- package/ace-element-plus-component/packages/directives/auth/index.ts +41 -0
- package/ace-element-plus-component/packages/directives/autofocus/index.ts +29 -0
- package/ace-element-plus-component/packages/directives/index.ts +10 -0
- package/ace-element-plus-component/packages/directives/shortcut/index.ts +192 -0
- package/ace-element-plus-component/packages/hooks/useAppInstances.ts +130 -0
- package/ace-element-plus-component/packages/hooks/useBackendValidations.ts +81 -0
- package/ace-element-plus-component/packages/hooks/useBridage.ts +157 -0
- package/ace-element-plus-component/packages/hooks/useClassificationLevels.ts +86 -0
- package/ace-element-plus-component/packages/hooks/useConstraintProviders.ts +36 -0
- package/ace-element-plus-component/packages/hooks/useDateTimeShortCuts.ts +65 -0
- package/ace-element-plus-component/packages/hooks/useEntities.ts +44 -0
- package/ace-element-plus-component/packages/hooks/useEntityPropDataTypes.ts +37 -0
- package/ace-element-plus-component/packages/hooks/useFileConfigurations.ts +41 -0
- package/ace-element-plus-component/packages/hooks/useGroups.ts +81 -0
- package/ace-element-plus-component/packages/hooks/useNumberTemplates.ts +43 -0
- package/ace-element-plus-component/packages/hooks/useProperties.ts +44 -0
- package/ace-element-plus-component/packages/hooks/useRealms.ts +28 -0
- package/ace-element-plus-component/packages/hooks/useRoleCategories.ts +42 -0
- package/ace-element-plus-component/packages/hooks/useRoles.ts +44 -0
- package/ace-element-plus-component/packages/hooks/useRouteableVisible.ts +35 -0
- package/ace-element-plus-component/packages/hooks/useTreeData.ts +45 -0
- package/ace-element-plus-component/packages/hooks/useUserRefQuery.ts +232 -0
- package/ace-element-plus-component/packages/index.ts +34 -0
- package/ace-element-plus-component/packages/list.json +8 -0
- package/ace-element-plus-component/packages/types/custom.d.ts +13 -0
- package/ace-element-plus-component/packages/types/window.d.ts +16 -0
- package/ace-element-plus-component/packages/utils/formUtils.ts +57 -0
- package/ace-element-plus-component/packages/utils/install.ts +43 -0
- package/ace-element-plus-component/packages/utils/objectUtils.ts +31 -0
- package/ace-element-plus-component/public/vite.svg +1 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.js +1 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.json +5196 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.ttf +0 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.woff +0 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.woff2 +0 -0
- package/ace-element-plus-component/theme-style/index.scss +11 -0
- package/ace-element-plus-component/theme-style/styles/element-plus-var.scss +1419 -0
- package/ace-element-plus-component/theme-style/styles/iconfont.css +2979 -0
- package/ace-element-plus-component/theme-style/styles/reset.scss +0 -0
- package/ace-element-plus-component/theme-style/styles/theme-var.scss +72 -0
- package/ace-element-plus-component/theme-style/styles/transition.scss +122 -0
- package/ace-element-plus-component/tsconfig.json +42 -0
- package/ace-element-plus-component/tsconfig.node.json +9 -0
- package/ace-element-plus-component/tsconfig.node.tsbuildinfo +1 -0
- package/ace-element-plus-component/vite.config.d.ts +2 -0
- package/ace-element-plus-component/vite.config.js +55 -0
- package/ace-element-plus-component/vite.config.ts +59 -0
- package/ace-install-system-ui/.env +2 -0
- package/ace-install-system-ui/.env.development +5 -0
- package/ace-install-system-ui/.env.production +1 -0
- package/ace-install-system-ui/.eslintrc.cjs +18 -0
- package/ace-install-system-ui/CHANGE.md +1 -0
- package/ace-install-system-ui/README.md +18 -0
- package/ace-install-system-ui/index.html +13 -0
- package/ace-install-system-ui/lib.zip +0 -0
- package/ace-install-system-ui/package.json +45 -0
- package/ace-install-system-ui/public/images/desktopAppInstall/not-data.svg +1 -0
- package/ace-install-system-ui/public/images/login/Line.png +0 -0
- package/ace-install-system-ui/public/images/login/Path.png +0 -0
- package/ace-install-system-ui/public/images/login/Vector.png +0 -0
- package/ace-install-system-ui/public/images/login/down_line.png +0 -0
- package/ace-install-system-ui/public/images/login/exclamation.png +0 -0
- package/ace-install-system-ui/public/images/login/login_bg_img.png +0 -0
- package/ace-install-system-ui/public/images/title_01.png +0 -0
- package/ace-install-system-ui/public/images/title_02.png +0 -0
- package/ace-install-system-ui/public/images/title_03.png +0 -0
- package/ace-install-system-ui/public/images/title_04.png +0 -0
- package/ace-install-system-ui/public/images/uploader/upload-empty.svg +1 -0
- package/ace-install-system-ui/public/images/uploader/upload-files.svg +1710 -0
- package/ace-install-system-ui/public/logo.svg +1 -0
- package/ace-install-system-ui/public/vite.svg +1 -0
- package/ace-install-system-ui/src/App.vue +7 -0
- package/ace-install-system-ui/src/api/apiCache.ts +25 -0
- package/ace-install-system-ui/src/api/cache.ts +9 -0
- package/ace-install-system-ui/src/api/desktopAppApi.ts +149 -0
- package/ace-install-system-ui/src/api/desktopMachineApi.ts +75 -0
- package/ace-install-system-ui/src/api/loginApi.ts +46 -0
- package/ace-install-system-ui/src/api/taskReportApi.ts +46 -0
- package/ace-install-system-ui/src/assets/vue.svg +1 -0
- package/ace-install-system-ui/src/components/AppsManage/AddApp.vue +283 -0
- package/ace-install-system-ui/src/components/AppsManage/AppForm.vue +321 -0
- package/ace-install-system-ui/src/components/AppsManage/AppManageDrawer.vue +164 -0
- package/ace-install-system-ui/src/components/AppsManage/AppSelector.vue +93 -0
- package/ace-install-system-ui/src/components/AppsManage/AppsManage.vue +441 -0
- package/ace-install-system-ui/src/components/AppsManage/EditAppMetaData.vue +203 -0
- package/ace-install-system-ui/src/components/AppsManage/EnvForm.vue +180 -0
- package/ace-install-system-ui/src/components/AppsManage/IniForm.vue +294 -0
- package/ace-install-system-ui/src/components/AppsManage/UpdateAppForm.vue +218 -0
- package/ace-install-system-ui/src/components/CustomDialog.vue +170 -0
- package/ace-install-system-ui/src/components/HostMachineManage/AddHostMachine.vue +173 -0
- package/ace-install-system-ui/src/components/HostMachineManage/HostMachineManage.vue +509 -0
- package/ace-install-system-ui/src/components/HostMachineManage/HostMachineManageDrawer.vue +143 -0
- package/ace-install-system-ui/src/components/HostMachineManage/MachineSelector.vue +119 -0
- package/ace-install-system-ui/src/components/InstallModuleHeader.vue +36 -0
- package/ace-install-system-ui/src/components/Log/ViewAllLog.vue +175 -0
- package/ace-install-system-ui/src/components/Log/ViewLog.vue +80 -0
- package/ace-install-system-ui/src/components/TaskList/AppInstallTask.vue +33 -0
- package/ace-install-system-ui/src/components/TaskList/AppInstallTaskGroup.vue +152 -0
- package/ace-install-system-ui/src/components/TaskList/AppScanTask.vue +80 -0
- package/ace-install-system-ui/src/components/TaskList/AppUninstallTask.vue +33 -0
- package/ace-install-system-ui/src/components/TaskList/AppUninstallTaskGroup.vue +152 -0
- package/ace-install-system-ui/src/components/TaskList/TaskList.vue +314 -0
- package/ace-install-system-ui/src/components/TaskList/TaskListDrawer.vue +127 -0
- package/ace-install-system-ui/src/components/Uploader/GlobalUploader.vue +297 -0
- package/ace-install-system-ui/src/components/Uploader/Uploader.vue +346 -0
- package/ace-install-system-ui/src/components/WebTerminal/MachineTerminals.vue +187 -0
- package/ace-install-system-ui/src/components/WebTerminal/WebTerminal.vue +136 -0
- package/ace-install-system-ui/src/components/WebTerminal/WebTerminalDialog.vue +80 -0
- package/ace-install-system-ui/src/env.d.ts +15 -0
- package/ace-install-system-ui/src/init.ts +22 -0
- package/ace-install-system-ui/src/locales/lang/en/common.json +17 -0
- package/ace-install-system-ui/src/locales/lang/en/errors.json +40 -0
- package/ace-install-system-ui/src/locales/lang/en/layout.json +7 -0
- package/ace-install-system-ui/src/locales/lang/en.ts +14 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN/common.json +17 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN/layout.json +7 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN.ts +15 -0
- package/ace-install-system-ui/src/locales/setupI18n.ts +14 -0
- package/ace-install-system-ui/src/main.ts +28 -0
- package/ace-install-system-ui/src/model/Common.ts +8 -0
- package/ace-install-system-ui/src/model/DesktopApp.ts +472 -0
- package/ace-install-system-ui/src/model/TaskLog.ts +64 -0
- package/ace-install-system-ui/src/model/TaskReport.ts +136 -0
- package/ace-install-system-ui/src/pages/Home/Home.vue +307 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/InstallDesktopApp.vue +363 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/DependentApp.vue +138 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep1 copy.vue +232 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep1.vue +577 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep2.vue +267 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep3.vue +176 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/ViewDependencies.vue +74 -0
- package/ace-install-system-ui/src/pages/UninstallDesktopApp.vue +167 -0
- package/ace-install-system-ui/src/router/index.ts +118 -0
- package/ace-install-system-ui/src/stores/index.ts +181 -0
- package/ace-install-system-ui/src/stores/modules/locale.ts +60 -0
- package/ace-install-system-ui/src/styles/main.scss +73 -0
- package/ace-install-system-ui/src/styles/modules/cutom-element-table-cell.scss +33 -0
- package/ace-install-system-ui/src/styles/modules/element-dark-theme.scss +126 -0
- package/ace-install-system-ui/src/styles/modules/task-install-detail.scss +127 -0
- package/ace-install-system-ui/src/styles/modules/var-notused.scss +156 -0
- package/ace-install-system-ui/src/styles/modules/var.scss +151 -0
- package/ace-install-system-ui/src/types/global.d.ts +10 -0
- package/ace-install-system-ui/src/types/shims-vue-simple-uploader.d.ts +4 -0
- package/ace-install-system-ui/src/utils/EventBus.ts +5 -0
- package/ace-install-system-ui/src/utils/axios/AceAxios.ts +535 -0
- package/ace-install-system-ui/src/utils/axios/cache.ts +9 -0
- package/ace-install-system-ui/src/utils/axios/index.ts +35 -0
- package/ace-install-system-ui/src/views/Layout/Layout.vue +140 -0
- package/ace-install-system-ui/src/views/Layout/components/Header.vue +198 -0
- package/ace-install-system-ui/src/views/Login/Login.vue +283 -0
- package/ace-install-system-ui/src/views/NotFound/NotFound.vue +7 -0
- package/ace-install-system-ui/src/views/SignUp/SignUp.vue +204 -0
- package/ace-install-system-ui/src/views/WebSsh.vue +12 -0
- package/ace-install-system-ui/tsconfig.json +24 -0
- package/ace-install-system-ui/tsconfig.node.json +11 -0
- package/ace-install-system-ui/vite.config.ts +114 -0
- package/ace-monolith-shell-ui/.env +3 -0
- package/ace-monolith-shell-ui/.env.development +5 -0
- package/ace-monolith-shell-ui/.env.production +1 -0
- package/ace-monolith-shell-ui/.eslintrc.cjs +15 -0
- package/ace-monolith-shell-ui/.prettierrc.json +8 -0
- package/ace-monolith-shell-ui/.vscode/extensions.json +7 -0
- package/ace-monolith-shell-ui/.vscode/launch.json +22 -0
- package/ace-monolith-shell-ui/.vscode/settings.json +26 -0
- package/ace-monolith-shell-ui/README.md +7 -0
- package/ace-monolith-shell-ui/auto-imports.d.ts +9 -0
- package/ace-monolith-shell-ui/components.d.ts +45 -0
- package/ace-monolith-shell-ui/index.html +20 -0
- package/ace-monolith-shell-ui/package.json +67 -0
- package/ace-monolith-shell-ui/public/res/build/shell/favicon.ico +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/.keep +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/index.html +5348 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.css +2583 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.eot +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.glyph.json +1 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.less +2585 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.module.less +2567 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.scss +5103 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.styl +2554 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.svg +7633 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.symbol.svg +11 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.ttf +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff2 +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/symbol.html +18032 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/tags.json +1364 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/unicode.html +175 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/hidden-right-sidebar.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/icon/deliver.svg +1 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/icon/logout.svg +28 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/icon/notification.svg +17 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/jari-logo-2.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/jari-logo.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/public-code.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/show-right-sidebar.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/svg/shezhi.svg +11 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/svg/tuichu.svg +13 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/svg/xiaoxi.svg +13 -0
- package/ace-monolith-shell-ui/public/res/build/shell/styles/element-plus.css +1 -0
- package/ace-monolith-shell-ui/src/App.vue +25 -0
- package/ace-monolith-shell-ui/src/assets/base.css +80 -0
- package/ace-monolith-shell-ui/src/assets/element/index.scss +18 -0
- package/ace-monolith-shell-ui/src/assets/element/var.scss +1123 -0
- package/ace-monolith-shell-ui/src/assets/logo.svg +7 -0
- package/ace-monolith-shell-ui/src/assets/main.scss +123 -0
- package/ace-monolith-shell-ui/src/demo/Bridge.vue +176 -0
- package/ace-monolith-shell-ui/src/env.d.ts +17 -0
- package/ace-monolith-shell-ui/src/hooks/useBridge.ts +148 -0
- package/ace-monolith-shell-ui/src/hooks/usePreferences.ts +116 -0
- package/ace-monolith-shell-ui/src/hooks/useSockJs.ts +123 -0
- package/ace-monolith-shell-ui/src/http/AceAxios.ts +645 -0
- package/ace-monolith-shell-ui/src/http/cache.ts +11 -0
- package/ace-monolith-shell-ui/src/http/index.ts +33 -0
- package/ace-monolith-shell-ui/src/init.ts +21 -0
- package/ace-monolith-shell-ui/src/layout/Main.vue +176 -0
- package/ace-monolith-shell-ui/src/layout/components/AppMenu.vue +334 -0
- package/ace-monolith-shell-ui/src/layout/components/Fillet.vue +105 -0
- package/ace-monolith-shell-ui/src/layout/components/Sidebar.vue +213 -0
- package/ace-monolith-shell-ui/src/layout/widgets/notification/Notification.vue +307 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/common.json +17 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/errors.json +42 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/layout.json +8 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/updatePsw.json +9 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/userProfile.json +3 -0
- package/ace-monolith-shell-ui/src/locales/lang/en.ts +14 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/common.json +17 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/layout.json +8 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/updatePsw.json +9 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/userProfile.json +3 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN.ts +14 -0
- package/ace-monolith-shell-ui/src/locales/setupI18n.ts +14 -0
- package/ace-monolith-shell-ui/src/main.ts +164 -0
- package/ace-monolith-shell-ui/src/router/index.ts +111 -0
- package/ace-monolith-shell-ui/src/shims-vue.d.ts +22 -0
- package/ace-monolith-shell-ui/src/stores/modules/accessibleApps.ts +149 -0
- package/ace-monolith-shell-ui/src/stores/modules/app.ts +164 -0
- package/ace-monolith-shell-ui/src/stores/modules/appContext.ts +57 -0
- package/ace-monolith-shell-ui/src/stores/modules/auth.ts +65 -0
- package/ace-monolith-shell-ui/src/stores/modules/locale.ts +63 -0
- package/ace-monolith-shell-ui/src/stores/modules/system.ts +41 -0
- package/ace-monolith-shell-ui/src/types/ext.d.ts +13 -0
- package/ace-monolith-shell-ui/src/types/router.d.ts +12 -0
- package/ace-monolith-shell-ui/src/types/window.d.ts +16 -0
- package/ace-monolith-shell-ui/src/views/AboutView.vue +141 -0
- package/ace-monolith-shell-ui/src/views/DlgUpdatePassword.vue +119 -0
- package/ace-monolith-shell-ui/src/views/ExtendedAttrRender.vue +311 -0
- package/ace-monolith-shell-ui/src/views/MicroAppContainer.vue +270 -0
- package/ace-monolith-shell-ui/src/views/UserProfileEditor.vue +303 -0
- package/ace-monolith-shell-ui/src/views/WorkBench.vue +10 -0
- package/ace-monolith-shell-ui/src/views/errors/HttpState404.vue +137 -0
- package/ace-monolith-shell-ui/src/views/errors/NoAppAvailable.vue +16 -0
- package/ace-monolith-shell-ui/src/vite-env.d.ts +3 -0
- package/ace-monolith-shell-ui/tsconfig.app.json +26 -0
- package/ace-monolith-shell-ui/tsconfig.json +11 -0
- package/ace-monolith-shell-ui/tsconfig.node.json +25 -0
- package/ace-monolith-shell-ui/vbuild/vite/proxy.ts +47 -0
- package/ace-monolith-shell-ui/vite.config.ts +127 -0
- package/ace-monolith-shell-ui/vue-image-crop-upload.d.ts +1 -0
- package/ace-vue-frame/.env +2 -0
- package/ace-vue-frame/.env.development +1 -0
- package/ace-vue-frame/.env.production +1 -0
- package/ace-vue-frame/.eslintrc.cjs +29 -0
- package/ace-vue-frame/.vscode/extensions.json +3 -0
- package/ace-vue-frame/README.md +18 -0
- package/ace-vue-frame/auto-imports.d.ts +9 -0
- package/ace-vue-frame/components.d.ts +16 -0
- package/ace-vue-frame/folder-alias.json +1 -0
- package/ace-vue-frame/index.html +13 -0
- package/ace-vue-frame/jsconfig.json +13 -0
- package/ace-vue-frame/package.json +30 -0
- package/ace-vue-frame/prettier.config.js +17 -0
- package/ace-vue-frame/public/vite.svg +1 -0
- package/ace-vue-frame/src/App.vue +30 -0
- package/ace-vue-frame/src/api/demo.ts +24 -0
- package/ace-vue-frame/src/assets/vue.svg +1 -0
- package/ace-vue-frame/src/components/HelloWorld.vue +38 -0
- package/ace-vue-frame/src/main.ts +38 -0
- package/ace-vue-frame/src/router/index.ts +18 -0
- package/ace-vue-frame/src/router/routes.ts +7 -0
- package/ace-vue-frame/src/router/whiteList.ts +4 -0
- package/ace-vue-frame/src/stores/index.ts +3 -0
- package/ace-vue-frame/src/stores/modules/main.ts +19 -0
- package/ace-vue-frame/src/style.css +80 -0
- package/ace-vue-frame/src/types/ext.d.ts +13 -0
- package/ace-vue-frame/src/types/style.d.ts +7 -0
- package/ace-vue-frame/src/types/window.d.ts +16 -0
- package/ace-vue-frame/src/utils/axios/index.ts +20 -0
- package/ace-vue-frame/src/utils/index.ts +7 -0
- package/ace-vue-frame/src/vite-env.d.ts +1 -0
- package/ace-vue-frame/tsconfig.json +52 -0
- package/ace-vue-frame/tsconfig.node.json +10 -0
- package/ace-vue-frame/vite.config.ts +75 -0
- package/folder-alias.json +1 -0
- package/frontends.code-workspace +10 -0
- package/package.json +35 -0
- package/pnpm-workspace.yaml +11 -0
- package/pom.xml +114 -0
|
@@ -0,0 +1,1946 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type BooleanResultExpression,
|
|
3
|
+
type CollectionExpression,
|
|
4
|
+
type CollectionExpressionProperties,
|
|
5
|
+
type CollectionPath,
|
|
6
|
+
type Comparable,
|
|
7
|
+
type ComparableResultExpression,
|
|
8
|
+
type DateOperations,
|
|
9
|
+
type DateResultExpression,
|
|
10
|
+
type DateTimeResultExpression,
|
|
11
|
+
type EntityExpressionProperties,
|
|
12
|
+
type EntityResultExpression,
|
|
13
|
+
type EnumExpressionProperties,
|
|
14
|
+
type EnumResultExpression,
|
|
15
|
+
type JavaType,
|
|
16
|
+
javaTypes,
|
|
17
|
+
type ListResultExpression,
|
|
18
|
+
type MapExpressionProperties,
|
|
19
|
+
type MapResultExpression,
|
|
20
|
+
type NumberExpressionProperties,
|
|
21
|
+
type NumberResultExpression,
|
|
22
|
+
type PathExpression,
|
|
23
|
+
type QEntity,
|
|
24
|
+
type QEntityConstructor,
|
|
25
|
+
type ScalarResultExpression,
|
|
26
|
+
type StringResultExpression,
|
|
27
|
+
type TimeOperations,
|
|
28
|
+
type TimeResultExpression,
|
|
29
|
+
type TupleExpressionProperties,
|
|
30
|
+
type TupleResultExpression,
|
|
31
|
+
} from "./Interfaces";
|
|
32
|
+
import {
|
|
33
|
+
AvgFunctionBase,
|
|
34
|
+
CountFunctionBase,
|
|
35
|
+
MaxBooleanFunctionBase,
|
|
36
|
+
MaxDateFunctionBase,
|
|
37
|
+
MaxDateTimeFunctionBase,
|
|
38
|
+
MaxEnumFunctionBase,
|
|
39
|
+
MaxNumberFunctionBase,
|
|
40
|
+
MaxStringFunctionBase,
|
|
41
|
+
MaxTimeFunctionBase,
|
|
42
|
+
MinDateFunctionBase,
|
|
43
|
+
MinDateTimeFunctionBase,
|
|
44
|
+
MinEnumFunctionBase,
|
|
45
|
+
MinNumberFunctionBase,
|
|
46
|
+
MinStringFunctionBase,
|
|
47
|
+
MinTimeFunctionBase,
|
|
48
|
+
SizeFunctionBase,
|
|
49
|
+
SumFunctionBase,
|
|
50
|
+
} from "./impls/agg";
|
|
51
|
+
import {
|
|
52
|
+
AnyBooleanFunctionBase,
|
|
53
|
+
AnyDateFunctionBase,
|
|
54
|
+
AnyDateTimeFunctionBase,
|
|
55
|
+
AnyEntityFunctionBase,
|
|
56
|
+
AnyEnumFunctionBase,
|
|
57
|
+
AnyNumberFunctionBase,
|
|
58
|
+
AnyStringFunctionBase,
|
|
59
|
+
AnyTimeFunctionBase,
|
|
60
|
+
} from "./impls/any";
|
|
61
|
+
import { Expression } from "./impls/base";
|
|
62
|
+
import {
|
|
63
|
+
AndOrBooleanExpressionBase,
|
|
64
|
+
BetweenBooleanExpressionBase,
|
|
65
|
+
CollectionContainsExpressionBase,
|
|
66
|
+
CompareCollectionExpressionBase,
|
|
67
|
+
CompareExpressionBase,
|
|
68
|
+
CompareSubQueryExpressionBase,
|
|
69
|
+
ExistsExpressionBase,
|
|
70
|
+
IsEmptyExpressionBase,
|
|
71
|
+
IsNullExpressionBase,
|
|
72
|
+
MapContainsExpressionBase,
|
|
73
|
+
NotBooleanExpressionBase,
|
|
74
|
+
StringCompareExpressionBase,
|
|
75
|
+
SubQueryCompareExpressionBase,
|
|
76
|
+
SubQueryContainsExpressionBase,
|
|
77
|
+
} from "./impls/bool";
|
|
78
|
+
import {
|
|
79
|
+
BooleanListPathBase,
|
|
80
|
+
BooleanPathBase,
|
|
81
|
+
BooleanSetPathBase,
|
|
82
|
+
CollectionPathExpressionBase,
|
|
83
|
+
DateListPathBase,
|
|
84
|
+
DatePathBase,
|
|
85
|
+
DateSetPathBase,
|
|
86
|
+
DateTimeListPathBase,
|
|
87
|
+
DateTimePathBase,
|
|
88
|
+
DateTimeSetPathBase,
|
|
89
|
+
EntityListPathBase,
|
|
90
|
+
EntityPathBase,
|
|
91
|
+
EntitySetPathBase,
|
|
92
|
+
EnumListPathBase,
|
|
93
|
+
EnumPathBase,
|
|
94
|
+
EnumSetPathBase,
|
|
95
|
+
MapPathBase,
|
|
96
|
+
NumberListPathBase,
|
|
97
|
+
NumberPathBase,
|
|
98
|
+
NumberSetPathBase,
|
|
99
|
+
StringListPathBase,
|
|
100
|
+
StringPathBase,
|
|
101
|
+
StringSetPathBase,
|
|
102
|
+
TimeListPathBase,
|
|
103
|
+
TimePathBase,
|
|
104
|
+
TimeSetPathBase,
|
|
105
|
+
} from "./impls/path";
|
|
106
|
+
import { TupleExpressionBase } from "./impls/collection";
|
|
107
|
+
import {
|
|
108
|
+
BooleanConstBase,
|
|
109
|
+
DateConstBase,
|
|
110
|
+
DateTimeConstBase,
|
|
111
|
+
EnumConstBase,
|
|
112
|
+
NumberConstBase,
|
|
113
|
+
StringConstBase,
|
|
114
|
+
TimeConstBase,
|
|
115
|
+
} from "./impls/constant";
|
|
116
|
+
import {
|
|
117
|
+
CurrentDateFunctionBase,
|
|
118
|
+
CurrentDateTimeFunctionBase,
|
|
119
|
+
CurrentTimeFunctionBase,
|
|
120
|
+
DateTransformFunctionBase,
|
|
121
|
+
TimeTransformFunctionBase,
|
|
122
|
+
} from "./impls/dateTime";
|
|
123
|
+
import {
|
|
124
|
+
CoalesceBooleanFunctionBase,
|
|
125
|
+
CoalesceDateFunctionBase,
|
|
126
|
+
CoalesceDateTimeFunctionBase,
|
|
127
|
+
CoalesceEntityFunctionBase,
|
|
128
|
+
CoalesceEnumFunctionBase,
|
|
129
|
+
CoalesceNumberFunctionBase,
|
|
130
|
+
CoalesceStringFunctionBase,
|
|
131
|
+
CoalesceTimeFunctionBase,
|
|
132
|
+
NullIfBooleanFunctionBase,
|
|
133
|
+
NullIfDateFunctionBase,
|
|
134
|
+
NullIfDateTimeFunctionBase,
|
|
135
|
+
NullIfEntityFunctionBase,
|
|
136
|
+
NullIfEnumFunctionBase,
|
|
137
|
+
NullIfNumberFunctionBase,
|
|
138
|
+
NullIfStringFunctionBase,
|
|
139
|
+
NullIfTimeFunctionBase,
|
|
140
|
+
} from "./impls/nullfun";
|
|
141
|
+
import {
|
|
142
|
+
AbsFunctionBase,
|
|
143
|
+
ArithmeticExpressionBase,
|
|
144
|
+
CastToNumFunctionBase,
|
|
145
|
+
CeilFunctionBase,
|
|
146
|
+
FloorFunctionBase,
|
|
147
|
+
NegateFunctionBase,
|
|
148
|
+
RoundFunctionBase,
|
|
149
|
+
SqrtFunctionBase,
|
|
150
|
+
} from "./impls/num";
|
|
151
|
+
import {
|
|
152
|
+
ConcatStringFunctionBase,
|
|
153
|
+
IndexOfStringFunctionBase,
|
|
154
|
+
LengthOfStringFunctionBase,
|
|
155
|
+
StringTransformFunctionBase,
|
|
156
|
+
SubstringFunctionBase,
|
|
157
|
+
ToStringFunctionBase,
|
|
158
|
+
} from "./impls/strfun";
|
|
159
|
+
import {
|
|
160
|
+
BooleanCaseExpressionBase,
|
|
161
|
+
DateCaseExpressionBase,
|
|
162
|
+
DateTimeCaseExpressionBase,
|
|
163
|
+
EntityCaseExpressionBase,
|
|
164
|
+
EnumCaseExpressionBase,
|
|
165
|
+
NumberCaseExpressionBase,
|
|
166
|
+
StringCaseExpressionBase,
|
|
167
|
+
TimeCaseExpressionBase,
|
|
168
|
+
} from "./impls/when";
|
|
169
|
+
import moment from "moment";
|
|
170
|
+
import type { WithQueryEntityFunction } from "../orgService/dsl";
|
|
171
|
+
import type { Instance } from "element-plus";
|
|
172
|
+
|
|
173
|
+
interface ExpressionConstructor {
|
|
174
|
+
new (...args: any[]): Expression;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
interface CollectionExpressionConstructor {
|
|
178
|
+
new (...args: any[]): Expression & CollectionExpressionProperties;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
interface CollectionPathExpressionConstructor {
|
|
182
|
+
new (...args: any[]): CollectionPathExpressionBase;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
interface EntityExpressionConstructor {
|
|
186
|
+
new (...args: any[]): Expression & EntityExpressionProperties;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
interface EnumExpressionConstructor {
|
|
190
|
+
new (...args: any[]): Expression & EnumExpressionProperties;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
interface NumberExpressionConstructor {
|
|
194
|
+
new (...args: any[]): Expression & NumberExpressionProperties;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
interface TupleExpressionConstructor {
|
|
198
|
+
new (...args: any[]): Expression & TupleExpressionProperties;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
interface MapExpressionConstructor {
|
|
202
|
+
new (...args: any[]): Expression & MapExpressionProperties;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface EntityPathConstructor {
|
|
206
|
+
new (...args: any[]): Expression & EntityExpressionProperties & PathExpression;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface IEntityPath extends PathExpression {
|
|
210
|
+
boolPath(path: string): BooleanResultExpression;
|
|
211
|
+
|
|
212
|
+
stringPath(path: string): StringResultExpression;
|
|
213
|
+
|
|
214
|
+
datePath(path: string): DateResultExpression;
|
|
215
|
+
|
|
216
|
+
dateTimePath(path: string): DateTimeResultExpression;
|
|
217
|
+
|
|
218
|
+
timePath(path: string): TimeResultExpression;
|
|
219
|
+
|
|
220
|
+
enumPath(path: string): EnumResultExpression;
|
|
221
|
+
|
|
222
|
+
numberPath(path: string): NumberResultExpression;
|
|
223
|
+
|
|
224
|
+
mapPath(path: string, keyType: string, valueType: string): MapResultExpression;
|
|
225
|
+
|
|
226
|
+
booleanListPath(path: string): InstanceType<typeof BooleanListPath>;
|
|
227
|
+
|
|
228
|
+
stringListPath(path: string): InstanceType<typeof StringListPath>;
|
|
229
|
+
|
|
230
|
+
dateListPath(path: string): InstanceType<typeof DateListPath>;
|
|
231
|
+
|
|
232
|
+
dateTimeListPath(path: string): InstanceType<typeof DateTimeListPath>;
|
|
233
|
+
|
|
234
|
+
timeListPath(path: string): InstanceType<typeof TimeListPath>;
|
|
235
|
+
|
|
236
|
+
enumListPath(path: string): InstanceType<typeof EnumListPath>;
|
|
237
|
+
|
|
238
|
+
numberListPath(path: string): InstanceType<typeof NumberListPath>;
|
|
239
|
+
|
|
240
|
+
entityListPath(path: string): InstanceType<typeof EntityListPath>;
|
|
241
|
+
|
|
242
|
+
boolSetPath(path: string): InstanceType<typeof BooleanSetPath>;
|
|
243
|
+
|
|
244
|
+
stringSetPath(path: string): InstanceType<typeof StringSetPath>;
|
|
245
|
+
|
|
246
|
+
dateSetPath(path: string): InstanceType<typeof DateSetPath>;
|
|
247
|
+
|
|
248
|
+
dateTimeSetPath(path: string): InstanceType<typeof DateTimeSetPath>;
|
|
249
|
+
|
|
250
|
+
timeSetPath(path: string): InstanceType<typeof TimeSetPath>;
|
|
251
|
+
|
|
252
|
+
enumSetPath(path: string): InstanceType<typeof EnumSetPath>;
|
|
253
|
+
|
|
254
|
+
numberSetPath(path: string): InstanceType<typeof NumberSetPath>;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface EntityPathConstructor2 {
|
|
258
|
+
new (...args: any[]): Expression & EntityExpressionProperties & PathExpression & IEntityPath;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function resolveConstExpression(value: Comparable): ComparableResultExpression {
|
|
262
|
+
if (typeof value === "boolean") {
|
|
263
|
+
return new BooleanConst(value);
|
|
264
|
+
} else if (typeof value === "number") {
|
|
265
|
+
if (Math.round(value) === value) {
|
|
266
|
+
return new NumberConst(value.toString(), javaTypes.long);
|
|
267
|
+
} else {
|
|
268
|
+
return new NumberConst(value.toString(), javaTypes.decimal);
|
|
269
|
+
}
|
|
270
|
+
} else if (value instanceof Date) {
|
|
271
|
+
const dt = value as Date;
|
|
272
|
+
const bs = moment(dt).format("YYYY-MM-DD HH:mm:ss");
|
|
273
|
+
return new DateTimeConst(bs);
|
|
274
|
+
} else {
|
|
275
|
+
return new StringConst(value as string);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
function withComparableOperations<T extends ExpressionConstructor>(Base: T) {
|
|
280
|
+
return class extends Base implements ComparableResultExpression {
|
|
281
|
+
/**
|
|
282
|
+
* 获取记录数
|
|
283
|
+
*/
|
|
284
|
+
count(): NumberResultExpression;
|
|
285
|
+
/**
|
|
286
|
+
* 获取去除重复值后的记录数
|
|
287
|
+
* @param distinct 是否去重
|
|
288
|
+
*/
|
|
289
|
+
count(distinct: boolean): NumberResultExpression;
|
|
290
|
+
/**
|
|
291
|
+
* 获取去除重复值后的记录数
|
|
292
|
+
* @param distinct 是否去重
|
|
293
|
+
*/
|
|
294
|
+
count(distinct?: boolean): NumberResultExpression {
|
|
295
|
+
return new CountFunction(this, distinct ?? false);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* 等于
|
|
300
|
+
* @param right 等号右侧表达式
|
|
301
|
+
*/
|
|
302
|
+
eq(right: ComparableResultExpression): BooleanResultExpression;
|
|
303
|
+
/**
|
|
304
|
+
* 等于
|
|
305
|
+
* @param constValue 等号右侧常量值
|
|
306
|
+
*/
|
|
307
|
+
eq<T extends Comparable>(constValue: T): BooleanResultExpression;
|
|
308
|
+
/**
|
|
309
|
+
* 等于
|
|
310
|
+
* @param right 等号右侧的表达式
|
|
311
|
+
*/
|
|
312
|
+
eq(right: unknown): BooleanResultExpression {
|
|
313
|
+
if (right instanceof Expression) {
|
|
314
|
+
return new CompareExpression(
|
|
315
|
+
"EQUAL",
|
|
316
|
+
this,
|
|
317
|
+
right as any as ComparableResultExpression,
|
|
318
|
+
);
|
|
319
|
+
} else {
|
|
320
|
+
return new CompareExpression(
|
|
321
|
+
"EQUAL",
|
|
322
|
+
this,
|
|
323
|
+
resolveConstExpression(right as Comparable),
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* 小于
|
|
330
|
+
* @param right 小于号右侧的表达式
|
|
331
|
+
*/
|
|
332
|
+
lt(right: ComparableResultExpression): BooleanResultExpression;
|
|
333
|
+
/**
|
|
334
|
+
* 小于
|
|
335
|
+
* @param constValue 小于号右侧的常量值
|
|
336
|
+
*/
|
|
337
|
+
lt<T extends Comparable>(constValue: T): BooleanResultExpression;
|
|
338
|
+
/**
|
|
339
|
+
* 小于
|
|
340
|
+
* @param right 小于号右侧的表达式或常量值
|
|
341
|
+
*/
|
|
342
|
+
lt(right: unknown): BooleanResultExpression {
|
|
343
|
+
if (right instanceof Expression) {
|
|
344
|
+
return new CompareExpression(
|
|
345
|
+
"LESS_THAN",
|
|
346
|
+
this,
|
|
347
|
+
right as any as ComparableResultExpression,
|
|
348
|
+
);
|
|
349
|
+
} else {
|
|
350
|
+
return new CompareExpression(
|
|
351
|
+
"LESS_THAN",
|
|
352
|
+
this,
|
|
353
|
+
resolveConstExpression(right as Comparable),
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* 大于
|
|
360
|
+
* @param right 大于号右侧的表达式
|
|
361
|
+
*/
|
|
362
|
+
gt(right: ComparableResultExpression): BooleanResultExpression;
|
|
363
|
+
/**
|
|
364
|
+
* 大于
|
|
365
|
+
* @param constValue 大于号右侧的常量值
|
|
366
|
+
*/
|
|
367
|
+
gt<T extends Comparable>(constValue: T): BooleanResultExpression;
|
|
368
|
+
/**
|
|
369
|
+
* 大于
|
|
370
|
+
* @param right 大于号右侧表达式或常量值
|
|
371
|
+
*/
|
|
372
|
+
gt(right: unknown): BooleanResultExpression {
|
|
373
|
+
if (right instanceof Expression) {
|
|
374
|
+
return new CompareExpression(
|
|
375
|
+
"GREAT_THAN",
|
|
376
|
+
this,
|
|
377
|
+
right as any as ComparableResultExpression,
|
|
378
|
+
);
|
|
379
|
+
} else {
|
|
380
|
+
return new CompareExpression(
|
|
381
|
+
"GREAT_THAN",
|
|
382
|
+
this,
|
|
383
|
+
resolveConstExpression(right as Comparable),
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
ne(right: ComparableResultExpression): BooleanResultExpression;
|
|
389
|
+
ne<T extends Comparable>(constValue: T): BooleanResultExpression;
|
|
390
|
+
ne(right: unknown): BooleanResultExpression {
|
|
391
|
+
if (right instanceof Expression) {
|
|
392
|
+
return new CompareExpression(
|
|
393
|
+
"NOT_EQUAL",
|
|
394
|
+
this,
|
|
395
|
+
right as any as ComparableResultExpression,
|
|
396
|
+
);
|
|
397
|
+
} else {
|
|
398
|
+
return new CompareExpression(
|
|
399
|
+
"NOT_EQUAL",
|
|
400
|
+
this,
|
|
401
|
+
resolveConstExpression(right as Comparable),
|
|
402
|
+
);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
loe(right: ComparableResultExpression): BooleanResultExpression;
|
|
407
|
+
loe<T extends Comparable>(constValue: T): BooleanResultExpression;
|
|
408
|
+
loe(right: unknown): BooleanResultExpression {
|
|
409
|
+
if (right instanceof Expression) {
|
|
410
|
+
return new CompareExpression(
|
|
411
|
+
"LESS_THAN_OR_EQUAL",
|
|
412
|
+
this,
|
|
413
|
+
right as any as ComparableResultExpression,
|
|
414
|
+
);
|
|
415
|
+
} else {
|
|
416
|
+
return new CompareExpression(
|
|
417
|
+
"LESS_THAN_OR_EQUAL",
|
|
418
|
+
this,
|
|
419
|
+
resolveConstExpression(right as Comparable),
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
goe(right: ComparableResultExpression): BooleanResultExpression;
|
|
425
|
+
goe<T extends Comparable>(constValue: T): BooleanResultExpression;
|
|
426
|
+
goe(right: unknown): BooleanResultExpression {
|
|
427
|
+
if (right instanceof Expression) {
|
|
428
|
+
return new CompareExpression(
|
|
429
|
+
"GREAT_THAN_OR_EQUAL",
|
|
430
|
+
this,
|
|
431
|
+
right as any as ComparableResultExpression,
|
|
432
|
+
);
|
|
433
|
+
} else {
|
|
434
|
+
return new CompareExpression(
|
|
435
|
+
"GREAT_THAN_OR_EQUAL",
|
|
436
|
+
this,
|
|
437
|
+
resolveConstExpression(right as Comparable),
|
|
438
|
+
);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
between<T extends ComparableResultExpression>(low: T, high: T): BooleanResultExpression;
|
|
443
|
+
between<T extends Comparable>(low: T, high: T): BooleanResultExpression;
|
|
444
|
+
between<T extends Comparable>(
|
|
445
|
+
low: ComparableResultExpression,
|
|
446
|
+
high: T,
|
|
447
|
+
): BooleanResultExpression;
|
|
448
|
+
between<T extends Comparable>(
|
|
449
|
+
low: T,
|
|
450
|
+
high: ComparableResultExpression,
|
|
451
|
+
): BooleanResultExpression;
|
|
452
|
+
between(low: unknown, high: unknown): BooleanResultExpression {
|
|
453
|
+
let lowExpr: ComparableResultExpression;
|
|
454
|
+
let highExpr: ComparableResultExpression;
|
|
455
|
+
if (low instanceof Expression) {
|
|
456
|
+
lowExpr = low as any as ComparableResultExpression;
|
|
457
|
+
} else {
|
|
458
|
+
lowExpr = resolveConstExpression(low as Comparable);
|
|
459
|
+
}
|
|
460
|
+
if (high instanceof Expression) {
|
|
461
|
+
highExpr = high as any as ComparableResultExpression;
|
|
462
|
+
} else {
|
|
463
|
+
highExpr = resolveConstExpression(high as Comparable);
|
|
464
|
+
}
|
|
465
|
+
return new BetweenBooleanExpression(this, lowExpr, highExpr);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
isNull(): BooleanResultExpression {
|
|
469
|
+
return new IsNullExpression(false, this);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
isNotNull(): BooleanResultExpression {
|
|
473
|
+
return new IsNullExpression(true, this);
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
function withScalarOperations<T extends ExpressionConstructor>(Base: T) {
|
|
479
|
+
return class extends withComparableOperations(Base) implements ScalarResultExpression {
|
|
480
|
+
coalesce(right: BooleanResultExpression): BooleanResultExpression;
|
|
481
|
+
coalesce(right: StringResultExpression): StringResultExpression;
|
|
482
|
+
coalesce(right: NumberResultExpression): NumberResultExpression;
|
|
483
|
+
coalesce(right: EnumResultExpression): EnumResultExpression;
|
|
484
|
+
coalesce(right: DateResultExpression): DateResultExpression;
|
|
485
|
+
coalesce(right: DateTimeResultExpression): DateTimeResultExpression;
|
|
486
|
+
coalesce(right: TimeResultExpression): TimeResultExpression;
|
|
487
|
+
coalesce(right: EntityResultExpression): EntityResultExpression;
|
|
488
|
+
coalesce(right: boolean): BooleanResultExpression;
|
|
489
|
+
coalesce(right: string): StringResultExpression;
|
|
490
|
+
coalesce(right: number): NumberResultExpression;
|
|
491
|
+
coalesce(
|
|
492
|
+
right: unknown,
|
|
493
|
+
):
|
|
494
|
+
| NumberResultExpression
|
|
495
|
+
| BooleanResultExpression
|
|
496
|
+
| StringResultExpression
|
|
497
|
+
| EnumResultExpression
|
|
498
|
+
| DateResultExpression
|
|
499
|
+
| DateTimeResultExpression
|
|
500
|
+
| TimeResultExpression
|
|
501
|
+
| EntityResultExpression {
|
|
502
|
+
if (right instanceof Expression) {
|
|
503
|
+
switch (right.resultType) {
|
|
504
|
+
case javaTypes.bool:
|
|
505
|
+
return new CoalesceBooleanFunction(
|
|
506
|
+
this,
|
|
507
|
+
right as any as BooleanResultExpression,
|
|
508
|
+
);
|
|
509
|
+
case javaTypes.byte:
|
|
510
|
+
case javaTypes.long:
|
|
511
|
+
case javaTypes.int:
|
|
512
|
+
case javaTypes.short:
|
|
513
|
+
case javaTypes.float:
|
|
514
|
+
case javaTypes.double:
|
|
515
|
+
case javaTypes.decimal:
|
|
516
|
+
case javaTypes.bigInt:
|
|
517
|
+
return new CoalesceNumberFunction(
|
|
518
|
+
this,
|
|
519
|
+
right as any as NumberResultExpression,
|
|
520
|
+
);
|
|
521
|
+
case javaTypes.dateTime:
|
|
522
|
+
return new CoalesceDateTimeFunction(
|
|
523
|
+
this,
|
|
524
|
+
right as any as DateTimeResultExpression,
|
|
525
|
+
);
|
|
526
|
+
case javaTypes.date:
|
|
527
|
+
return new CoalesceDateFunction(this, right as any as DateResultExpression);
|
|
528
|
+
case javaTypes.time:
|
|
529
|
+
return new CoalesceTimeFunction(this, right as any as TimeResultExpression);
|
|
530
|
+
case javaTypes.object:
|
|
531
|
+
return new CoalesceEntityFunction(
|
|
532
|
+
this,
|
|
533
|
+
right as any as EntityResultExpression,
|
|
534
|
+
);
|
|
535
|
+
case javaTypes.enum:
|
|
536
|
+
return new CoalesceEnumFunction(this, right as any as EnumResultExpression);
|
|
537
|
+
case javaTypes.string:
|
|
538
|
+
return new CoalesceStringFunction(
|
|
539
|
+
this,
|
|
540
|
+
right as any as StringResultExpression,
|
|
541
|
+
);
|
|
542
|
+
default:
|
|
543
|
+
throw new Error(
|
|
544
|
+
`Cannot coalesce ${right.resultType} with ${this.resultType}`,
|
|
545
|
+
);
|
|
546
|
+
}
|
|
547
|
+
} else {
|
|
548
|
+
const constExpression = resolveConstExpression(right as any as Comparable);
|
|
549
|
+
switch (constExpression.resultType) {
|
|
550
|
+
case javaTypes.bool:
|
|
551
|
+
return new CoalesceBooleanFunction(
|
|
552
|
+
this,
|
|
553
|
+
constExpression as BooleanResultExpression,
|
|
554
|
+
);
|
|
555
|
+
case javaTypes.byte:
|
|
556
|
+
case javaTypes.long:
|
|
557
|
+
case javaTypes.int:
|
|
558
|
+
case javaTypes.short:
|
|
559
|
+
case javaTypes.float:
|
|
560
|
+
case javaTypes.double:
|
|
561
|
+
case javaTypes.decimal:
|
|
562
|
+
case javaTypes.bigInt:
|
|
563
|
+
return new CoalesceNumberFunction(
|
|
564
|
+
this,
|
|
565
|
+
constExpression as NumberResultExpression,
|
|
566
|
+
);
|
|
567
|
+
case javaTypes.string:
|
|
568
|
+
return new CoalesceStringFunction(
|
|
569
|
+
this,
|
|
570
|
+
constExpression as StringResultExpression,
|
|
571
|
+
);
|
|
572
|
+
default:
|
|
573
|
+
throw new Error(
|
|
574
|
+
`Cannot coalesce ${constExpression.resultType} with ${this.resultType}`,
|
|
575
|
+
);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
nullIf(right: BooleanResultExpression): BooleanResultExpression;
|
|
581
|
+
nullIf(right: StringResultExpression): StringResultExpression;
|
|
582
|
+
nullIf(right: NumberResultExpression): NumberResultExpression;
|
|
583
|
+
nullIf(right: EnumResultExpression): EnumResultExpression;
|
|
584
|
+
nullIf(right: DateResultExpression): DateResultExpression;
|
|
585
|
+
nullIf(right: DateTimeResultExpression): DateTimeResultExpression;
|
|
586
|
+
nullIf(right: TimeResultExpression): TimeResultExpression;
|
|
587
|
+
nullIf(right: EntityResultExpression): EntityResultExpression;
|
|
588
|
+
nullIf(right: boolean): BooleanResultExpression;
|
|
589
|
+
nullIf(right: string): StringResultExpression;
|
|
590
|
+
nullIf(right: number): NumberResultExpression;
|
|
591
|
+
nullIf(
|
|
592
|
+
right: unknown,
|
|
593
|
+
):
|
|
594
|
+
| NumberResultExpression
|
|
595
|
+
| BooleanResultExpression
|
|
596
|
+
| StringResultExpression
|
|
597
|
+
| EnumResultExpression
|
|
598
|
+
| DateResultExpression
|
|
599
|
+
| DateTimeResultExpression
|
|
600
|
+
| TimeResultExpression
|
|
601
|
+
| EntityResultExpression {
|
|
602
|
+
if (right instanceof Expression) {
|
|
603
|
+
switch (right.resultType) {
|
|
604
|
+
case javaTypes.bool:
|
|
605
|
+
return new NullIfBooleanFunction(
|
|
606
|
+
this,
|
|
607
|
+
right as any as BooleanResultExpression,
|
|
608
|
+
);
|
|
609
|
+
case javaTypes.byte:
|
|
610
|
+
case javaTypes.long:
|
|
611
|
+
case javaTypes.int:
|
|
612
|
+
case javaTypes.short:
|
|
613
|
+
case javaTypes.float:
|
|
614
|
+
case javaTypes.double:
|
|
615
|
+
case javaTypes.decimal:
|
|
616
|
+
case javaTypes.bigInt:
|
|
617
|
+
return new NullIfNumberFunction(
|
|
618
|
+
this,
|
|
619
|
+
right as any as NumberResultExpression,
|
|
620
|
+
);
|
|
621
|
+
case javaTypes.dateTime:
|
|
622
|
+
return new NullIfDateTimeFunction(
|
|
623
|
+
this,
|
|
624
|
+
right as any as DateTimeResultExpression,
|
|
625
|
+
);
|
|
626
|
+
case javaTypes.date:
|
|
627
|
+
return new NullIfDateFunction(this, right as any as DateResultExpression);
|
|
628
|
+
case javaTypes.time:
|
|
629
|
+
return new NullIfTimeFunction(this, right as any as TimeResultExpression);
|
|
630
|
+
case javaTypes.object:
|
|
631
|
+
return new NullIfEntityFunction(
|
|
632
|
+
this,
|
|
633
|
+
right as any as EntityResultExpression,
|
|
634
|
+
);
|
|
635
|
+
case javaTypes.enum:
|
|
636
|
+
return new NullIfEnumFunction(this, right as any as EnumResultExpression);
|
|
637
|
+
case javaTypes.string:
|
|
638
|
+
return new NullIfStringFunction(
|
|
639
|
+
this,
|
|
640
|
+
right as any as StringResultExpression,
|
|
641
|
+
);
|
|
642
|
+
default:
|
|
643
|
+
throw new Error(
|
|
644
|
+
`Cannot nullIf ${right.resultType} with ${this.resultType}`,
|
|
645
|
+
);
|
|
646
|
+
}
|
|
647
|
+
} else {
|
|
648
|
+
const constExpression = resolveConstExpression(right as any as Comparable);
|
|
649
|
+
switch (constExpression.resultType) {
|
|
650
|
+
case javaTypes.bool:
|
|
651
|
+
return new NullIfBooleanFunction(
|
|
652
|
+
this,
|
|
653
|
+
constExpression as BooleanResultExpression,
|
|
654
|
+
);
|
|
655
|
+
case javaTypes.byte:
|
|
656
|
+
case javaTypes.long:
|
|
657
|
+
case javaTypes.int:
|
|
658
|
+
case javaTypes.short:
|
|
659
|
+
case javaTypes.float:
|
|
660
|
+
case javaTypes.double:
|
|
661
|
+
case javaTypes.decimal:
|
|
662
|
+
case javaTypes.bigInt:
|
|
663
|
+
return new NullIfNumberFunction(
|
|
664
|
+
this,
|
|
665
|
+
constExpression as NumberResultExpression,
|
|
666
|
+
);
|
|
667
|
+
case javaTypes.string:
|
|
668
|
+
return new NullIfStringFunction(
|
|
669
|
+
this,
|
|
670
|
+
constExpression as StringResultExpression,
|
|
671
|
+
);
|
|
672
|
+
default:
|
|
673
|
+
throw new Error(
|
|
674
|
+
`Cannot nullIf ${constExpression.resultType} with ${this.resultType}`,
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
str(): StringResultExpression {
|
|
681
|
+
return new ToStringFunction(this);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
castToNum(numberType: JavaType): NumberResultExpression {
|
|
685
|
+
throw new CastToNumFunction(this, numberType);
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export function withBooleanOperations<T extends ExpressionConstructor>(Base: T) {
|
|
691
|
+
return class extends withScalarOperations(Base) implements BooleanResultExpression {
|
|
692
|
+
and(right: BooleanResultExpression): BooleanResultExpression;
|
|
693
|
+
and(right: boolean): BooleanResultExpression;
|
|
694
|
+
and(right: unknown): BooleanResultExpression {
|
|
695
|
+
if (right instanceof Expression) {
|
|
696
|
+
return new AndOrBooleanExpression(
|
|
697
|
+
"AND",
|
|
698
|
+
this,
|
|
699
|
+
right as any as BooleanResultExpression,
|
|
700
|
+
);
|
|
701
|
+
} else {
|
|
702
|
+
return new AndOrBooleanExpression("AND", this, new BooleanConst(right as boolean));
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
or(right: BooleanResultExpression): BooleanResultExpression;
|
|
707
|
+
or(right: boolean): BooleanResultExpression;
|
|
708
|
+
or(right: unknown): BooleanResultExpression {
|
|
709
|
+
if (right instanceof Expression) {
|
|
710
|
+
return new AndOrBooleanExpression(
|
|
711
|
+
"OR",
|
|
712
|
+
this,
|
|
713
|
+
right as any as BooleanResultExpression,
|
|
714
|
+
);
|
|
715
|
+
} else {
|
|
716
|
+
return new AndOrBooleanExpression("OR", this, new BooleanConst(right as boolean));
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
min(): BooleanResultExpression {
|
|
721
|
+
return new MinBooleanFunction(this);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
max(): BooleanResultExpression {
|
|
725
|
+
throw new MaxBooleanFunction(this);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
not(): BooleanResultExpression {
|
|
729
|
+
throw new NotBooleanExpression(this);
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
function withCollectionResult<T extends CollectionExpressionConstructor>(Base: T) {
|
|
735
|
+
return class extends Base implements CollectionExpression {
|
|
736
|
+
size(): NumberResultExpression {
|
|
737
|
+
throw new SizeFunction(this);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
contains(value: ComparableResultExpression): BooleanResultExpression {
|
|
741
|
+
return new CollectionContainsExpression(this, value);
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
function withCollectionPath<T extends CollectionPathExpressionConstructor>(Base: T) {
|
|
747
|
+
return class extends withCollectionResult(Base) implements CollectionPath {};
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
function withDateOperations<T extends ExpressionConstructor>(Base: T) {
|
|
751
|
+
return class extends withScalarOperations(Base) implements DateOperations {
|
|
752
|
+
dayOfWeek(): NumberResultExpression {
|
|
753
|
+
return new DateTransformFunction("DAY_OF_WEEK", this);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
dayOfMonth(): NumberResultExpression {
|
|
757
|
+
return new DateTransformFunction("DAY_OF_MONTH", this);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
dayOfYear(): NumberResultExpression {
|
|
761
|
+
return new DateTransformFunction("DAY_OF_YEAR", this);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
month(): NumberResultExpression {
|
|
765
|
+
return new DateTransformFunction("MONTH", this);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
year(): NumberResultExpression {
|
|
769
|
+
return new DateTransformFunction("YEAR", this);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
week(): NumberResultExpression {
|
|
773
|
+
return new DateTransformFunction("WEEK", this);
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
yearMonth(): NumberResultExpression {
|
|
777
|
+
return new DateTransformFunction("YEAR_MONTH", this);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
yearWeek(): NumberResultExpression {
|
|
781
|
+
return new DateTransformFunction("YEAR_WEEK", this);
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
function withTimeOperations<T extends ExpressionConstructor>(Base: T) {
|
|
787
|
+
return class extends withScalarOperations(Base) implements TimeOperations {
|
|
788
|
+
hour(): NumberResultExpression {
|
|
789
|
+
return new TimeTransformFunction("HOUR", this);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
minute(): NumberResultExpression {
|
|
793
|
+
return new TimeTransformFunction("MINUTE", this);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
second(): NumberResultExpression {
|
|
797
|
+
return new TimeTransformFunction("SECOND", this);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
milliSecond(): NumberResultExpression {
|
|
801
|
+
return new TimeTransformFunction("MILLISECOND", this);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
min(): TimeResultExpression {
|
|
805
|
+
return new MinTimeFunction(this);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
max(): TimeResultExpression {
|
|
809
|
+
return new MaxTimeFunction(this);
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
function withDateResult<T extends ExpressionConstructor>(Base: T) {
|
|
815
|
+
return class extends withDateOperations(Base) implements DateResultExpression {
|
|
816
|
+
min(): DateResultExpression {
|
|
817
|
+
return new MinDateFunction(this);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
max(): DateResultExpression {
|
|
821
|
+
return new MaxDateFunction(this);
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
function withTimeResult<T extends ExpressionConstructor>(Base: T) {
|
|
827
|
+
return class extends withTimeOperations(Base) implements TimeResultExpression {
|
|
828
|
+
min(): TimeResultExpression {
|
|
829
|
+
return new MinTimeFunction(this);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
max(): TimeResultExpression {
|
|
833
|
+
return new MaxTimeFunction(this);
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
function withDateTimeResult<T extends ExpressionConstructor>(Base: T) {
|
|
839
|
+
return class
|
|
840
|
+
extends withDateOperations(withTimeOperations(Base))
|
|
841
|
+
implements DateTimeResultExpression
|
|
842
|
+
{
|
|
843
|
+
min(): DateTimeResultExpression {
|
|
844
|
+
return new MinDateTimeFunction(this);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
max(): DateTimeResultExpression {
|
|
848
|
+
return new MaxDateTimeFunction(this);
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
function withEntityResult<T extends EntityExpressionConstructor>(Base: T) {
|
|
854
|
+
return class extends withScalarOperations(Base) implements EntityResultExpression {};
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
function withEnumResult<T extends EnumExpressionConstructor>(Base: T) {
|
|
858
|
+
return class extends withScalarOperations(Base) implements EnumResultExpression {
|
|
859
|
+
min(): EnumResultExpression {
|
|
860
|
+
return new MinEnumFunction(this);
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
max(): EnumResultExpression {
|
|
864
|
+
return new MaxEnumFunction(this);
|
|
865
|
+
}
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
function withEntityPath<T extends EntityPathConstructor>(Base: T) {
|
|
870
|
+
return class extends withEntityResult(Base) implements PathExpression {
|
|
871
|
+
boolPath(path: string) {
|
|
872
|
+
return new BooleanPath(path, this.entityType__, this, this.alias__);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
stringPath(path: string) {
|
|
876
|
+
return new StringPath(path, this.entityType__, this, this.alias__);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
datePath(path: string) {
|
|
880
|
+
return new DatePath(path, this.entityType__, this, this.alias__);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
dateTimePath(path: string) {
|
|
884
|
+
return new DateTimePath(path, this.entityType__, this, this.alias__);
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
timePath(path: string) {
|
|
888
|
+
return new TimePath(path, this.entityType__, this, this.alias__);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
enumPath(path: string) {
|
|
892
|
+
return new EnumPath(path, this.entityType__, this, this.alias__);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
numberPath(path: string) {
|
|
896
|
+
return new NumberPath(path, this.entityType__, this, this.alias__);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
entityPath(path: string) {
|
|
900
|
+
return new EntityPath(path, this.entityType__, this, this.alias__);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
booleanListPath(path: string) {
|
|
904
|
+
return new BooleanListPath(path, this.entityType__, this, this.alias__);
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
stringListPath(path: string) {
|
|
908
|
+
return new StringListPath(path, this.entityType__, this, this.alias__);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
dateListPath(path: string) {
|
|
912
|
+
return new DateListPath(path, this.entityType__, this, this.alias__);
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
dateTimeListPath(path: string) {
|
|
916
|
+
return new DateTimeListPath(path, this.entityType__, this, this.alias__);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
timeListPath(path: string) {
|
|
920
|
+
return new TimeListPath(path, this.entityType__, this, this.alias__);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
enumListPath(path: string) {
|
|
924
|
+
return new EnumListPath(path, this.entityType__, this, this.alias__);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
numberListPath(path: string) {
|
|
928
|
+
return new NumberListPath(path, this.entityType__, this, this.alias__);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
entityListPath(path: string) {
|
|
932
|
+
return new EntityListPath(path, this.entityType__, this, undefined, this.alias__);
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
boolSetPath(path: string) {
|
|
936
|
+
return new BooleanSetPath(path, this.entityType__, this, this.alias__);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
stringSetPath(path: string) {
|
|
940
|
+
return new StringSetPath(path, this.entityType__, this, this.alias__);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
dateSetPath(path: string) {
|
|
944
|
+
return new DateSetPath(path, this.entityType__, this, this.alias__);
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
dateTimeSetPath(path: string) {
|
|
948
|
+
return new DateTimeSetPath(path, this.entityType__, this, this.alias__);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
timeSetPath(path: string) {
|
|
952
|
+
return new TimeSetPath(path, this.entityType__, this, this.alias__);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
enumSetPath(path: string) {
|
|
956
|
+
return new EnumSetPath(path, this.entityType__, this, this.alias__);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
numberSetPath(path: string) {
|
|
960
|
+
return new NumberSetPath(path, this.entityType__, this, this.alias__);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
entitySetPath(path: string) {
|
|
964
|
+
return new EntitySetPath(path, this.entityType__, this, undefined, this.alias__);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
mapPath(path: string, keyType: string, valueType: string) {
|
|
968
|
+
return new MapPath(path, this.entityType__, keyType, valueType, this, this.alias__);
|
|
969
|
+
}
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
function withMapResult<T extends MapExpressionConstructor>(Base: T) {
|
|
974
|
+
return class extends Base implements MapResultExpression {
|
|
975
|
+
get<T extends ScalarResultExpression>(key: ScalarResultExpression): T {
|
|
976
|
+
switch (this.valueType__) {
|
|
977
|
+
case javaTypes.bool:
|
|
978
|
+
return new MapGetBooleanFunction(this, key) as unknown as T;
|
|
979
|
+
case javaTypes.byte:
|
|
980
|
+
case javaTypes.long:
|
|
981
|
+
case javaTypes.int:
|
|
982
|
+
case javaTypes.short:
|
|
983
|
+
case javaTypes.float:
|
|
984
|
+
case javaTypes.double:
|
|
985
|
+
case javaTypes.decimal:
|
|
986
|
+
case javaTypes.bigInt:
|
|
987
|
+
return new MapGetNumberFunction(this, key) as unknown as T;
|
|
988
|
+
case javaTypes.dateTime:
|
|
989
|
+
return new MapGetDateTimeFunction(this, key) as unknown as T;
|
|
990
|
+
case javaTypes.date:
|
|
991
|
+
return new MapGetDateFunction(this, key) as unknown as T;
|
|
992
|
+
case javaTypes.time:
|
|
993
|
+
return new MapGetTimeFunction(this, key) as unknown as T;
|
|
994
|
+
case javaTypes.object:
|
|
995
|
+
return new MapGetEntityFunction(this, key) as unknown as T;
|
|
996
|
+
case javaTypes.enum:
|
|
997
|
+
return new MapGetEnumFunction(this, key) as unknown as T;
|
|
998
|
+
case javaTypes.string:
|
|
999
|
+
return new MapGetStringFunction(this, key) as unknown as T;
|
|
1000
|
+
default:
|
|
1001
|
+
throw new Error(`Cannot mapGet ${this.valueType__} with ${key}`);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
contains(
|
|
1006
|
+
key: ScalarResultExpression,
|
|
1007
|
+
value: ComparableResultExpression,
|
|
1008
|
+
): BooleanResultExpression;
|
|
1009
|
+
contains(key: Comparable, value: Comparable): BooleanResultExpression;
|
|
1010
|
+
contains(key: unknown, value: unknown): BooleanResultExpression {
|
|
1011
|
+
let keyExpr, valueExpr;
|
|
1012
|
+
if (key instanceof Expression) {
|
|
1013
|
+
keyExpr = key as unknown as ScalarResultExpression;
|
|
1014
|
+
} else {
|
|
1015
|
+
keyExpr = resolveConstExpression(key as Comparable);
|
|
1016
|
+
}
|
|
1017
|
+
if (value instanceof Expression) {
|
|
1018
|
+
valueExpr = value as unknown as ComparableResultExpression;
|
|
1019
|
+
} else {
|
|
1020
|
+
valueExpr = resolveConstExpression(value as Comparable);
|
|
1021
|
+
}
|
|
1022
|
+
return new MapContainsExpression(this, keyExpr as ScalarResultExpression, valueExpr);
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
containsKey(key: ScalarResultExpression): BooleanResultExpression;
|
|
1026
|
+
containsKey(key: Comparable): BooleanResultExpression;
|
|
1027
|
+
containsKey(key: unknown): BooleanResultExpression {
|
|
1028
|
+
let keyExpr;
|
|
1029
|
+
if (key instanceof Expression) {
|
|
1030
|
+
keyExpr = key as unknown as ScalarResultExpression;
|
|
1031
|
+
} else {
|
|
1032
|
+
keyExpr = resolveConstExpression(key as Comparable);
|
|
1033
|
+
}
|
|
1034
|
+
return new MapContainsExpression(this, keyExpr as ScalarResultExpression);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
containsValue(value: ComparableResultExpression): BooleanResultExpression;
|
|
1038
|
+
containsValue(value: Comparable): BooleanResultExpression;
|
|
1039
|
+
containsValue(value: unknown): BooleanResultExpression {
|
|
1040
|
+
let valueExpr;
|
|
1041
|
+
if (value instanceof Expression) {
|
|
1042
|
+
valueExpr = value as unknown as ComparableResultExpression;
|
|
1043
|
+
} else {
|
|
1044
|
+
valueExpr = resolveConstExpression(value as Comparable);
|
|
1045
|
+
}
|
|
1046
|
+
return new MapContainsExpression(this, undefined, valueExpr);
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
function withNumberResult<T extends NumberExpressionConstructor>(Base: T) {
|
|
1052
|
+
return class extends withScalarOperations(Base) implements NumberResultExpression {
|
|
1053
|
+
add(right: NumberResultExpression): NumberResultExpression;
|
|
1054
|
+
add(right: number): NumberResultExpression;
|
|
1055
|
+
add(right: unknown): NumberResultExpression {
|
|
1056
|
+
if (right instanceof Expression) {
|
|
1057
|
+
return new ArithmeticExpression(
|
|
1058
|
+
this,
|
|
1059
|
+
right as unknown as NumberResultExpression,
|
|
1060
|
+
"ADD",
|
|
1061
|
+
);
|
|
1062
|
+
} else {
|
|
1063
|
+
return new ArithmeticExpression(
|
|
1064
|
+
this,
|
|
1065
|
+
resolveConstExpression(right as Comparable) as NumberResultExpression,
|
|
1066
|
+
"ADD",
|
|
1067
|
+
);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
minus(right: NumberResultExpression): NumberResultExpression;
|
|
1072
|
+
minus(right: number): NumberResultExpression;
|
|
1073
|
+
minus(right: unknown): NumberResultExpression {
|
|
1074
|
+
if (right instanceof Expression) {
|
|
1075
|
+
return new ArithmeticExpression(
|
|
1076
|
+
this,
|
|
1077
|
+
right as unknown as NumberResultExpression,
|
|
1078
|
+
"MINUS",
|
|
1079
|
+
);
|
|
1080
|
+
} else {
|
|
1081
|
+
return new ArithmeticExpression(
|
|
1082
|
+
this,
|
|
1083
|
+
resolveConstExpression(right as Comparable) as NumberResultExpression,
|
|
1084
|
+
"MINUS",
|
|
1085
|
+
);
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
multiply(right: number): NumberResultExpression;
|
|
1090
|
+
multiply(right: NumberResultExpression): NumberResultExpression;
|
|
1091
|
+
multiply(right: unknown): NumberResultExpression {
|
|
1092
|
+
if (right instanceof Expression) {
|
|
1093
|
+
return new ArithmeticExpression(
|
|
1094
|
+
this,
|
|
1095
|
+
right as unknown as NumberResultExpression,
|
|
1096
|
+
"MULTIPLY",
|
|
1097
|
+
);
|
|
1098
|
+
} else {
|
|
1099
|
+
return new ArithmeticExpression(
|
|
1100
|
+
this,
|
|
1101
|
+
resolveConstExpression(right as Comparable) as NumberResultExpression,
|
|
1102
|
+
"MULTIPLY",
|
|
1103
|
+
);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
divide(right: NumberResultExpression): NumberResultExpression;
|
|
1108
|
+
divide(right: number): NumberResultExpression;
|
|
1109
|
+
divide(right: unknown): NumberResultExpression {
|
|
1110
|
+
if (right instanceof Expression) {
|
|
1111
|
+
return new ArithmeticExpression(
|
|
1112
|
+
this,
|
|
1113
|
+
right as unknown as NumberResultExpression,
|
|
1114
|
+
"DIVIDE",
|
|
1115
|
+
);
|
|
1116
|
+
} else {
|
|
1117
|
+
return new ArithmeticExpression(
|
|
1118
|
+
this,
|
|
1119
|
+
resolveConstExpression(right as Comparable) as NumberResultExpression,
|
|
1120
|
+
"DIVIDE",
|
|
1121
|
+
);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
mod(right: NumberResultExpression): NumberResultExpression;
|
|
1126
|
+
mod(right: number): NumberResultExpression;
|
|
1127
|
+
mod(right: unknown): NumberResultExpression {
|
|
1128
|
+
if (right instanceof Expression) {
|
|
1129
|
+
return new ArithmeticExpression(
|
|
1130
|
+
this,
|
|
1131
|
+
right as unknown as NumberResultExpression,
|
|
1132
|
+
"MOD",
|
|
1133
|
+
);
|
|
1134
|
+
} else {
|
|
1135
|
+
return new ArithmeticExpression(
|
|
1136
|
+
this,
|
|
1137
|
+
resolveConstExpression(right as Comparable) as NumberResultExpression,
|
|
1138
|
+
"MOD",
|
|
1139
|
+
);
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
avg(): NumberResultExpression {
|
|
1144
|
+
return new AvgFunction(this);
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
sum(): NumberResultExpression {
|
|
1148
|
+
return new SumFunction(this);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
min(): NumberResultExpression {
|
|
1152
|
+
return new MinNumberFunction(this);
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
max(): NumberResultExpression {
|
|
1156
|
+
return new MaxNumberFunction(this);
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
function withStringResult<T extends ExpressionConstructor>(Base: T) {
|
|
1162
|
+
return class extends withScalarOperations(Base) implements StringResultExpression {
|
|
1163
|
+
concat(right: StringResultExpression): StringResultExpression;
|
|
1164
|
+
concat(right: string): StringResultExpression;
|
|
1165
|
+
concat(right: unknown): StringResultExpression {
|
|
1166
|
+
if (right instanceof Expression) {
|
|
1167
|
+
return new ConcatStringFunction(this, right as unknown as StringResultExpression);
|
|
1168
|
+
} else {
|
|
1169
|
+
return new ConcatStringFunction(this, new StringConst(right as string));
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
trim(): StringResultExpression {
|
|
1174
|
+
return new StringTransformFunction(this, "TRIM");
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
lowerCase(): StringResultExpression {
|
|
1178
|
+
return new StringTransformFunction(this, "LOWER");
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
upperCase(): StringResultExpression {
|
|
1182
|
+
return new StringTransformFunction(this, "UPPER");
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
like(right: StringResultExpression): BooleanResultExpression;
|
|
1186
|
+
like(right: string): BooleanResultExpression;
|
|
1187
|
+
like(right: unknown): BooleanResultExpression {
|
|
1188
|
+
if (right instanceof Expression) {
|
|
1189
|
+
return new StringCompareExpression(
|
|
1190
|
+
"LIKE",
|
|
1191
|
+
this,
|
|
1192
|
+
right as unknown as StringResultExpression,
|
|
1193
|
+
);
|
|
1194
|
+
} else {
|
|
1195
|
+
return new StringCompareExpression("LIKE", this, new StringConst(right as string));
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
contains(right: StringResultExpression): BooleanResultExpression;
|
|
1200
|
+
contains(right: string): BooleanResultExpression;
|
|
1201
|
+
contains(right: unknown): BooleanResultExpression {
|
|
1202
|
+
if (right instanceof Expression) {
|
|
1203
|
+
return new StringCompareExpression(
|
|
1204
|
+
"CONTAIN",
|
|
1205
|
+
this,
|
|
1206
|
+
right as unknown as StringResultExpression,
|
|
1207
|
+
);
|
|
1208
|
+
} else {
|
|
1209
|
+
return new StringCompareExpression(
|
|
1210
|
+
"CONTAIN",
|
|
1211
|
+
this,
|
|
1212
|
+
new StringConst(right as string),
|
|
1213
|
+
);
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
startWith(right: string): BooleanResultExpression;
|
|
1218
|
+
startWith(right: StringResultExpression): BooleanResultExpression;
|
|
1219
|
+
startWith(right: unknown): BooleanResultExpression {
|
|
1220
|
+
if (right instanceof Expression) {
|
|
1221
|
+
return new StringCompareExpression(
|
|
1222
|
+
"START_WITH",
|
|
1223
|
+
this,
|
|
1224
|
+
right as unknown as StringResultExpression,
|
|
1225
|
+
);
|
|
1226
|
+
} else {
|
|
1227
|
+
return new StringCompareExpression(
|
|
1228
|
+
"START_WITH",
|
|
1229
|
+
this,
|
|
1230
|
+
new StringConst(right as string),
|
|
1231
|
+
);
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
endWith(right: StringResultExpression): BooleanResultExpression;
|
|
1236
|
+
endWith(right: string): BooleanResultExpression;
|
|
1237
|
+
endWith(right: unknown): BooleanResultExpression {
|
|
1238
|
+
if (right instanceof Expression) {
|
|
1239
|
+
return new StringCompareExpression(
|
|
1240
|
+
"END_WITH",
|
|
1241
|
+
this,
|
|
1242
|
+
right as unknown as StringResultExpression,
|
|
1243
|
+
);
|
|
1244
|
+
} else {
|
|
1245
|
+
return new StringCompareExpression(
|
|
1246
|
+
"END_WITH",
|
|
1247
|
+
this,
|
|
1248
|
+
new StringConst(right as string),
|
|
1249
|
+
);
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
match(right: string): BooleanResultExpression;
|
|
1254
|
+
match(right: StringResultExpression): BooleanResultExpression;
|
|
1255
|
+
match(right: unknown): BooleanResultExpression {
|
|
1256
|
+
if (right instanceof Expression) {
|
|
1257
|
+
return new StringCompareExpression(
|
|
1258
|
+
"MATCH",
|
|
1259
|
+
this,
|
|
1260
|
+
right as unknown as StringResultExpression,
|
|
1261
|
+
);
|
|
1262
|
+
} else {
|
|
1263
|
+
return new StringCompareExpression("MATCH", this, new StringConst(right as string));
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
likeIgnoreCase(right: StringResultExpression): BooleanResultExpression;
|
|
1268
|
+
likeIgnoreCase(right: string): BooleanResultExpression;
|
|
1269
|
+
likeIgnoreCase(right: unknown): BooleanResultExpression {
|
|
1270
|
+
if (right instanceof Expression) {
|
|
1271
|
+
return new StringCompareExpression(
|
|
1272
|
+
"LIKE_IGNORE_CASE",
|
|
1273
|
+
this,
|
|
1274
|
+
right as unknown as StringResultExpression,
|
|
1275
|
+
);
|
|
1276
|
+
} else {
|
|
1277
|
+
return new StringCompareExpression(
|
|
1278
|
+
"LIKE_IGNORE_CASE",
|
|
1279
|
+
this,
|
|
1280
|
+
new StringConst(right as string),
|
|
1281
|
+
);
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
containIgnoreCase(right: StringResultExpression): BooleanResultExpression;
|
|
1286
|
+
containIgnoreCase(right: string): BooleanResultExpression;
|
|
1287
|
+
containIgnoreCase(right: unknown): BooleanResultExpression {
|
|
1288
|
+
if (right instanceof Expression) {
|
|
1289
|
+
return new StringCompareExpression(
|
|
1290
|
+
"CONTAIN_IGNORE_CASE",
|
|
1291
|
+
this,
|
|
1292
|
+
right as unknown as StringResultExpression,
|
|
1293
|
+
);
|
|
1294
|
+
} else {
|
|
1295
|
+
return new StringCompareExpression(
|
|
1296
|
+
"CONTAIN_IGNORE_CASE",
|
|
1297
|
+
this,
|
|
1298
|
+
new StringConst(right as string),
|
|
1299
|
+
);
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
startWithIgnoreCase(right: StringResultExpression): BooleanResultExpression;
|
|
1304
|
+
startWithIgnoreCase(right: string): BooleanResultExpression;
|
|
1305
|
+
startWithIgnoreCase(right: unknown): BooleanResultExpression {
|
|
1306
|
+
if (right instanceof Expression) {
|
|
1307
|
+
return new StringCompareExpression(
|
|
1308
|
+
"START_WITH_IGNORE_CASE",
|
|
1309
|
+
this,
|
|
1310
|
+
right as unknown as StringResultExpression,
|
|
1311
|
+
);
|
|
1312
|
+
} else {
|
|
1313
|
+
return new StringCompareExpression(
|
|
1314
|
+
"START_WITH_IGNORE_CASE",
|
|
1315
|
+
this,
|
|
1316
|
+
new StringConst(right as string),
|
|
1317
|
+
);
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
endWithIgnoreCase(right: StringResultExpression): BooleanResultExpression;
|
|
1322
|
+
endWithIgnoreCase(right: string): BooleanResultExpression;
|
|
1323
|
+
endWithIgnoreCase(right: unknown): BooleanResultExpression {
|
|
1324
|
+
if (right instanceof Expression) {
|
|
1325
|
+
return new StringCompareExpression(
|
|
1326
|
+
"END_WITH_IGNORE_CASE",
|
|
1327
|
+
this,
|
|
1328
|
+
right as unknown as StringResultExpression,
|
|
1329
|
+
);
|
|
1330
|
+
} else {
|
|
1331
|
+
return new StringCompareExpression(
|
|
1332
|
+
"END_WITH_IGNORE_CASE",
|
|
1333
|
+
this,
|
|
1334
|
+
new StringConst(right as string),
|
|
1335
|
+
);
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
notLike(right: StringResultExpression): BooleanResultExpression;
|
|
1340
|
+
notLike(right: string): BooleanResultExpression;
|
|
1341
|
+
notLike(right: unknown): BooleanResultExpression {
|
|
1342
|
+
if (right instanceof Expression) {
|
|
1343
|
+
return new StringCompareExpression(
|
|
1344
|
+
"NOT_LIKE",
|
|
1345
|
+
this,
|
|
1346
|
+
right as unknown as StringResultExpression,
|
|
1347
|
+
);
|
|
1348
|
+
} else {
|
|
1349
|
+
return new StringCompareExpression(
|
|
1350
|
+
"NOT_LIKE",
|
|
1351
|
+
this,
|
|
1352
|
+
new StringConst(right as string),
|
|
1353
|
+
);
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
eqIgnoreCase(right: StringResultExpression): BooleanResultExpression;
|
|
1358
|
+
eqIgnoreCase(right: string): BooleanResultExpression;
|
|
1359
|
+
eqIgnoreCase(right: unknown): BooleanResultExpression {
|
|
1360
|
+
if (right instanceof Expression) {
|
|
1361
|
+
return new StringCompareExpression(
|
|
1362
|
+
"EQUAL_IGNORE_CASE",
|
|
1363
|
+
this,
|
|
1364
|
+
right as unknown as StringResultExpression,
|
|
1365
|
+
);
|
|
1366
|
+
} else {
|
|
1367
|
+
return new StringCompareExpression(
|
|
1368
|
+
"EQUAL_IGNORE_CASE",
|
|
1369
|
+
this,
|
|
1370
|
+
new StringConst(right as string),
|
|
1371
|
+
);
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
neIgnoreCase(right: StringResultExpression): BooleanResultExpression;
|
|
1376
|
+
neIgnoreCase(right: string): BooleanResultExpression;
|
|
1377
|
+
neIgnoreCase(right: unknown): BooleanResultExpression {
|
|
1378
|
+
if (right instanceof Expression) {
|
|
1379
|
+
return new StringCompareExpression(
|
|
1380
|
+
"NOT_EQUAL_IGNORE_CASE",
|
|
1381
|
+
this,
|
|
1382
|
+
right as unknown as StringResultExpression,
|
|
1383
|
+
);
|
|
1384
|
+
} else {
|
|
1385
|
+
return new StringCompareExpression(
|
|
1386
|
+
"NOT_EQUAL_IGNORE_CASE",
|
|
1387
|
+
this,
|
|
1388
|
+
new StringConst(right as string),
|
|
1389
|
+
);
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
indexOf(sub: StringResultExpression): NumberResultExpression;
|
|
1394
|
+
indexOf(
|
|
1395
|
+
sub: StringResultExpression,
|
|
1396
|
+
startFrom: NumberResultExpression,
|
|
1397
|
+
): NumberResultExpression;
|
|
1398
|
+
indexOf(sub: StringResultExpression, startFrom: number): NumberResultExpression;
|
|
1399
|
+
indexOf(sub: string, startFrom: NumberResultExpression): NumberResultExpression;
|
|
1400
|
+
indexOf(sub: string): NumberResultExpression;
|
|
1401
|
+
indexOf(sub: string, startFrom: number): NumberResultExpression;
|
|
1402
|
+
indexOf(sub: unknown, startFrom?: unknown): NumberResultExpression {
|
|
1403
|
+
let subExpr, startFromExpr;
|
|
1404
|
+
if (typeof sub === "string") {
|
|
1405
|
+
subExpr = new StringConst(sub);
|
|
1406
|
+
} else {
|
|
1407
|
+
subExpr = sub as StringResultExpression;
|
|
1408
|
+
}
|
|
1409
|
+
if (startFrom) {
|
|
1410
|
+
if (typeof startFrom === "number") {
|
|
1411
|
+
startFromExpr = resolveConstExpression(startFrom) as NumberResultExpression;
|
|
1412
|
+
} else {
|
|
1413
|
+
startFromExpr = startFrom as NumberResultExpression;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
return new IndexOfStringFunction(this, subExpr, startFromExpr);
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
length(): NumberResultExpression {
|
|
1420
|
+
return new LengthOfStringFunction(this);
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
subString(beginIndex: NumberResultExpression): StringResultExpression;
|
|
1424
|
+
subString(beginIndex: number): string;
|
|
1425
|
+
subString(
|
|
1426
|
+
beginIndex: NumberResultExpression,
|
|
1427
|
+
endIndex: NumberResultExpression,
|
|
1428
|
+
): StringResultExpression;
|
|
1429
|
+
subString(beginIndex: number, endIndex: NumberResultExpression): StringResultExpression;
|
|
1430
|
+
subString(beginIndex: NumberResultExpression, endIndex: number): StringResultExpression;
|
|
1431
|
+
subString(beginIndex: number, endIndex: number): StringResultExpression;
|
|
1432
|
+
subString(beginIndex: unknown, endIndex?: unknown): string | StringResultExpression {
|
|
1433
|
+
let beginIndexExpr, endIndexExpr;
|
|
1434
|
+
if (typeof beginIndex === "number") {
|
|
1435
|
+
beginIndexExpr = resolveConstExpression(beginIndex) as NumberResultExpression;
|
|
1436
|
+
} else {
|
|
1437
|
+
beginIndexExpr = beginIndex as NumberResultExpression;
|
|
1438
|
+
}
|
|
1439
|
+
if (endIndex) {
|
|
1440
|
+
if (typeof endIndex === "number") {
|
|
1441
|
+
endIndexExpr = resolveConstExpression(endIndex) as NumberResultExpression;
|
|
1442
|
+
} else {
|
|
1443
|
+
endIndexExpr = endIndex as NumberResultExpression;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
return new SubstringFunction(this, beginIndexExpr, endIndexExpr);
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
isEmpty(not: boolean): BooleanResultExpression {
|
|
1450
|
+
return new IsEmptyExpression(not, this);
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
min(): StringResultExpression {
|
|
1454
|
+
return new MinStringFunction(this);
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
max(): StringResultExpression {
|
|
1458
|
+
throw new MaxStringFunction(this);
|
|
1459
|
+
}
|
|
1460
|
+
};
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
function withTupleResult<T extends TupleExpressionConstructor>(Base: T) {
|
|
1464
|
+
return class extends withScalarOperations(Base) implements TupleResultExpression {};
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
//#region agg
|
|
1468
|
+
export const AvgFunction = withNumberResult(AvgFunctionBase);
|
|
1469
|
+
|
|
1470
|
+
export const CountFunction = withNumberResult(CountFunctionBase);
|
|
1471
|
+
|
|
1472
|
+
export const MaxBooleanFunction = withBooleanOperations(MaxBooleanFunctionBase);
|
|
1473
|
+
|
|
1474
|
+
export const MaxDateFunction = withDateResult(MaxDateFunctionBase);
|
|
1475
|
+
|
|
1476
|
+
export const MaxDateTimeFunction = withDateTimeResult(MaxDateTimeFunctionBase);
|
|
1477
|
+
|
|
1478
|
+
export const MaxEnumFunction = withEnumResult(MaxEnumFunctionBase);
|
|
1479
|
+
|
|
1480
|
+
export const MaxNumberFunction = withNumberResult(MaxNumberFunctionBase);
|
|
1481
|
+
|
|
1482
|
+
export const MaxStringFunction = withStringResult(MaxStringFunctionBase);
|
|
1483
|
+
|
|
1484
|
+
export const MaxTimeFunction = withTimeResult(MaxTimeFunctionBase);
|
|
1485
|
+
|
|
1486
|
+
export const MinBooleanFunction = withBooleanOperations(MaxBooleanFunctionBase);
|
|
1487
|
+
|
|
1488
|
+
export const MinDateFunction = withDateResult(MinDateFunctionBase);
|
|
1489
|
+
|
|
1490
|
+
export const MinDateTimeFunction = withDateTimeResult(MinDateTimeFunctionBase);
|
|
1491
|
+
|
|
1492
|
+
export const MinEnumFunction = withEnumResult(MinEnumFunctionBase);
|
|
1493
|
+
|
|
1494
|
+
export const MinNumberFunction = withNumberResult(MinNumberFunctionBase);
|
|
1495
|
+
|
|
1496
|
+
export const MinStringFunction = withStringResult(MinStringFunctionBase);
|
|
1497
|
+
|
|
1498
|
+
export const MinTimeFunction = withTimeResult(MinTimeFunctionBase);
|
|
1499
|
+
|
|
1500
|
+
export const SizeFunction = withNumberResult(SizeFunctionBase);
|
|
1501
|
+
|
|
1502
|
+
export const SumFunction = class extends withNumberResult(SumFunctionBase) {};
|
|
1503
|
+
//#endregion
|
|
1504
|
+
|
|
1505
|
+
//#region any
|
|
1506
|
+
export const AnyBooleanFunction = withBooleanOperations(AnyBooleanFunctionBase);
|
|
1507
|
+
|
|
1508
|
+
export const AnyDateFunction = withDateResult(AnyDateFunctionBase);
|
|
1509
|
+
|
|
1510
|
+
export const AnyDateTimeFunction = withDateTimeResult(AnyDateTimeFunctionBase);
|
|
1511
|
+
|
|
1512
|
+
export const AnyEntityFunction = withEntityResult(withEntityPath(AnyEntityFunctionBase));
|
|
1513
|
+
|
|
1514
|
+
export const AnyEnumFunction = withEnumResult(AnyEnumFunctionBase);
|
|
1515
|
+
|
|
1516
|
+
export const AnyNumberFunction = withNumberResult(AnyNumberFunctionBase);
|
|
1517
|
+
|
|
1518
|
+
export const AnyStringFunction = withStringResult(AnyStringFunctionBase);
|
|
1519
|
+
|
|
1520
|
+
export const AnyTimeFunction = withTimeResult(AnyTimeFunctionBase);
|
|
1521
|
+
//#endregion
|
|
1522
|
+
|
|
1523
|
+
//#region boolean functions
|
|
1524
|
+
export const AndOrBooleanExpression = withBooleanOperations(AndOrBooleanExpressionBase);
|
|
1525
|
+
export const BetweenBooleanExpression = withBooleanOperations(BetweenBooleanExpressionBase);
|
|
1526
|
+
export const CollectionContainsExpression = withBooleanOperations(CollectionContainsExpressionBase);
|
|
1527
|
+
export const CompareCollectionExpression = withBooleanOperations(CompareCollectionExpressionBase);
|
|
1528
|
+
export const CompareExpression = withBooleanOperations(CompareExpressionBase);
|
|
1529
|
+
export const CompareSubQueryExpression = withBooleanOperations(CompareSubQueryExpressionBase);
|
|
1530
|
+
export const ExistsExpression = withBooleanOperations(ExistsExpressionBase);
|
|
1531
|
+
export const IsEmptyExpression = withBooleanOperations(IsEmptyExpressionBase);
|
|
1532
|
+
export const IsNullExpression = withBooleanOperations(IsNullExpressionBase);
|
|
1533
|
+
export const MapContainsExpression = withBooleanOperations(MapContainsExpressionBase);
|
|
1534
|
+
export const NotBooleanExpression = withBooleanOperations(NotBooleanExpressionBase);
|
|
1535
|
+
export const StringCompareExpression = withBooleanOperations(StringCompareExpressionBase);
|
|
1536
|
+
export const SubQueryCompareExpression = withBooleanOperations(SubQueryCompareExpressionBase);
|
|
1537
|
+
export const SubQueryContainsExpression = withBooleanOperations(SubQueryContainsExpressionBase);
|
|
1538
|
+
//#endregion
|
|
1539
|
+
//#region collection
|
|
1540
|
+
export const TupleExpression = withTupleResult(TupleExpressionBase);
|
|
1541
|
+
//#endregion
|
|
1542
|
+
//#region
|
|
1543
|
+
export const BooleanConst = withBooleanOperations(BooleanConstBase);
|
|
1544
|
+
export const DateConst = withDateResult(DateConstBase);
|
|
1545
|
+
export const DateTimeConst = withDateTimeResult(DateTimeConstBase);
|
|
1546
|
+
export const NumberConst = withNumberResult(NumberConstBase);
|
|
1547
|
+
export const StringConst = withStringResult(StringConstBase);
|
|
1548
|
+
export const TimeConst = withTimeResult(TimeConstBase);
|
|
1549
|
+
export const EnumConst = withEnumResult(EnumConstBase);
|
|
1550
|
+
//#endregion
|
|
1551
|
+
|
|
1552
|
+
//#region dateTime
|
|
1553
|
+
export const CurrentDateFunction = withDateResult(CurrentDateFunctionBase);
|
|
1554
|
+
export const CurrentDateTimeFunction = withDateTimeResult(CurrentDateTimeFunctionBase);
|
|
1555
|
+
export const CurrentTimeFunction = withTimeResult(CurrentTimeFunctionBase);
|
|
1556
|
+
export const DateTransformFunction = withNumberResult(DateTransformFunctionBase);
|
|
1557
|
+
export const TimeTransformFunction = withNumberResult(TimeTransformFunctionBase);
|
|
1558
|
+
//#endregion
|
|
1559
|
+
|
|
1560
|
+
//#region mapGet
|
|
1561
|
+
abstract class MapGetFunction extends Expression {
|
|
1562
|
+
readonly mapPath: MapResultExpression;
|
|
1563
|
+
readonly key: ScalarResultExpression;
|
|
1564
|
+
|
|
1565
|
+
constructor(mapPath: MapResultExpression, key: ScalarResultExpression, resultType: JavaType) {
|
|
1566
|
+
super(resultType);
|
|
1567
|
+
this.mapPath = mapPath;
|
|
1568
|
+
this.key = key;
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
validate(): void {
|
|
1572
|
+
if (this.mapPath == null || this.key == null) {
|
|
1573
|
+
throw new Error("MapGetFunction的mapPath和key 参数不能为空");
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
export const MapGetBooleanFunction = withBooleanOperations(
|
|
1579
|
+
class extends MapGetFunction {
|
|
1580
|
+
constructor(mapPath: MapResultExpression, key: ScalarResultExpression) {
|
|
1581
|
+
super(mapPath, key, javaTypes.bool);
|
|
1582
|
+
}
|
|
1583
|
+
},
|
|
1584
|
+
);
|
|
1585
|
+
|
|
1586
|
+
export const MapGetDateFunction = withDateResult(
|
|
1587
|
+
class extends MapGetFunction {
|
|
1588
|
+
constructor(mapPath: MapResultExpression, key: ScalarResultExpression) {
|
|
1589
|
+
super(mapPath, key, javaTypes.date);
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
);
|
|
1593
|
+
|
|
1594
|
+
export const MapGetDateTimeFunction = withDateTimeResult(
|
|
1595
|
+
class extends MapGetFunction {
|
|
1596
|
+
constructor(mapPath: MapResultExpression, key: ScalarResultExpression) {
|
|
1597
|
+
super(mapPath, key, javaTypes.dateTime);
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1600
|
+
);
|
|
1601
|
+
|
|
1602
|
+
export const MapGetNumberFunction = withNumberResult(
|
|
1603
|
+
class extends MapGetFunction implements NumberExpressionProperties {
|
|
1604
|
+
readonly numberType__: JavaType = javaTypes.number;
|
|
1605
|
+
|
|
1606
|
+
constructor(mapPath: MapResultExpression, key: ScalarResultExpression) {
|
|
1607
|
+
super(mapPath, key, javaTypes.number);
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
);
|
|
1611
|
+
|
|
1612
|
+
export const MapGetStringFunction = withStringResult(
|
|
1613
|
+
class extends MapGetFunction {
|
|
1614
|
+
constructor(mapPath: MapResultExpression, key: ScalarResultExpression) {
|
|
1615
|
+
super(mapPath, key, javaTypes.string);
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1618
|
+
);
|
|
1619
|
+
|
|
1620
|
+
export const MapGetTimeFunction = withTimeResult(
|
|
1621
|
+
class extends MapGetFunction {
|
|
1622
|
+
constructor(mapPath: MapResultExpression, key: ScalarResultExpression) {
|
|
1623
|
+
super(mapPath, key, javaTypes.time);
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
);
|
|
1627
|
+
|
|
1628
|
+
export const MapGetEnumFunction = withEnumResult(
|
|
1629
|
+
class extends MapGetFunction implements EnumExpressionProperties {
|
|
1630
|
+
readonly enumType__: string = javaTypes.enum;
|
|
1631
|
+
|
|
1632
|
+
constructor(mapPath: MapResultExpression, key: ScalarResultExpression) {
|
|
1633
|
+
super(mapPath, key, javaTypes.enum);
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
);
|
|
1637
|
+
|
|
1638
|
+
export const MapGetEntityFunction = withEntityResult(
|
|
1639
|
+
class extends MapGetFunction implements EntityExpressionProperties {
|
|
1640
|
+
readonly entityType__: string = javaTypes.object;
|
|
1641
|
+
|
|
1642
|
+
constructor(mapPath: MapResultExpression, key: ScalarResultExpression) {
|
|
1643
|
+
super(mapPath, key, javaTypes.object);
|
|
1644
|
+
}
|
|
1645
|
+
},
|
|
1646
|
+
);
|
|
1647
|
+
|
|
1648
|
+
//#endregion
|
|
1649
|
+
|
|
1650
|
+
//#region nullfun
|
|
1651
|
+
export const CoalesceBooleanFunction = withBooleanOperations(CoalesceBooleanFunctionBase);
|
|
1652
|
+
|
|
1653
|
+
export const CoalesceDateFunction = withDateResult(CoalesceDateFunctionBase);
|
|
1654
|
+
|
|
1655
|
+
export const CoalesceDateTimeFunction = withDateTimeResult(CoalesceDateTimeFunctionBase);
|
|
1656
|
+
|
|
1657
|
+
export const CoalesceNumberFunction = withNumberResult(CoalesceNumberFunctionBase);
|
|
1658
|
+
|
|
1659
|
+
export const CoalesceStringFunction = withStringResult(CoalesceStringFunctionBase);
|
|
1660
|
+
|
|
1661
|
+
export const CoalesceTimeFunction = withTimeResult(CoalesceTimeFunctionBase);
|
|
1662
|
+
|
|
1663
|
+
export const CoalesceEnumFunction = withEnumResult(CoalesceEnumFunctionBase);
|
|
1664
|
+
|
|
1665
|
+
export const CoalesceEntityFunction = withEntityResult(CoalesceEntityFunctionBase);
|
|
1666
|
+
|
|
1667
|
+
export const NullIfBooleanFunction = withBooleanOperations(NullIfBooleanFunctionBase);
|
|
1668
|
+
|
|
1669
|
+
export const NullIfDateFunction = withDateResult(NullIfDateFunctionBase);
|
|
1670
|
+
|
|
1671
|
+
export const NullIfDateTimeFunction = withDateTimeResult(NullIfDateTimeFunctionBase);
|
|
1672
|
+
|
|
1673
|
+
export const NullIfNumberFunction = withNumberResult(NullIfNumberFunctionBase);
|
|
1674
|
+
|
|
1675
|
+
export const NullIfStringFunction = withStringResult(NullIfStringFunctionBase);
|
|
1676
|
+
|
|
1677
|
+
export const NullIfTimeFunction = withTimeResult(NullIfTimeFunctionBase);
|
|
1678
|
+
|
|
1679
|
+
export const NullIfEnumFunction = withEnumResult(NullIfEnumFunctionBase);
|
|
1680
|
+
|
|
1681
|
+
export const NullIfEntityFunction = withEntityResult(NullIfEntityFunctionBase);
|
|
1682
|
+
|
|
1683
|
+
//#endregion
|
|
1684
|
+
|
|
1685
|
+
//#region path
|
|
1686
|
+
export class BooleanListPath extends withCollectionPath(BooleanListPathBase) {
|
|
1687
|
+
/**
|
|
1688
|
+
* 集合中的任何元素
|
|
1689
|
+
*/
|
|
1690
|
+
any() {
|
|
1691
|
+
return new AnyBooleanFunction(this);
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
export const BooleanPath = withBooleanOperations(BooleanPathBase);
|
|
1696
|
+
|
|
1697
|
+
export class BooleanSetPath extends withCollectionPath(BooleanSetPathBase) {
|
|
1698
|
+
/**
|
|
1699
|
+
* 集合中的任何元素
|
|
1700
|
+
*/
|
|
1701
|
+
any() {
|
|
1702
|
+
return new AnyBooleanFunction(this);
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
export class DateListPath extends withCollectionPath(DateListPathBase) {
|
|
1707
|
+
/**
|
|
1708
|
+
* 集合中的任何元素
|
|
1709
|
+
*/
|
|
1710
|
+
any() {
|
|
1711
|
+
return new AnyDateFunction(this);
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
export const DatePath = withDateResult(DatePathBase);
|
|
1716
|
+
|
|
1717
|
+
export class DateSetPath extends withCollectionPath(DateSetPathBase) {
|
|
1718
|
+
/**
|
|
1719
|
+
* 集合中的任何元素
|
|
1720
|
+
*/
|
|
1721
|
+
any() {
|
|
1722
|
+
return new AnyDateFunction(this);
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
export class DateTimeListPath extends withCollectionPath(DateTimeListPathBase) {
|
|
1727
|
+
/**
|
|
1728
|
+
* 集合中的任何元素
|
|
1729
|
+
*/
|
|
1730
|
+
any() {
|
|
1731
|
+
return new AnyDateTimeFunction(this);
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
export const DateTimePath = withDateTimeResult(DateTimePathBase);
|
|
1736
|
+
|
|
1737
|
+
export class DateTimeSetPath extends withCollectionPath(DateTimeSetPathBase) {
|
|
1738
|
+
/**
|
|
1739
|
+
* 集合中的任何元素
|
|
1740
|
+
*/
|
|
1741
|
+
any() {
|
|
1742
|
+
return new AnyDateTimeFunction(this);
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
export class EntityListPath<T extends QEntity> extends withCollectionPath(EntityListPathBase) {
|
|
1747
|
+
private readonly withQueryEntity?: WithQueryEntityFunction;
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* 构造实体集合路径
|
|
1751
|
+
* @param path 属性名
|
|
1752
|
+
* @param fromEntity 所属的Java实体类型
|
|
1753
|
+
* @param parent 上级路径对象
|
|
1754
|
+
* @param withFun 用于生成QueryEntity的mixin方法
|
|
1755
|
+
* @param alias 别名
|
|
1756
|
+
*/
|
|
1757
|
+
constructor(
|
|
1758
|
+
path: string,
|
|
1759
|
+
fromEntity: string,
|
|
1760
|
+
parent?: PathExpression,
|
|
1761
|
+
withFun?: WithQueryEntityFunction,
|
|
1762
|
+
alias?: string,
|
|
1763
|
+
) {
|
|
1764
|
+
super(path, fromEntity, parent, alias);
|
|
1765
|
+
this.withQueryEntity = withFun;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
/**
|
|
1769
|
+
* 集合中的任何元素,此方法适用与无指定QEntiy类型的动态查询构造
|
|
1770
|
+
*/
|
|
1771
|
+
anyQ(): InstanceType<typeof AnyEntityFunction> {
|
|
1772
|
+
return new AnyEntityFunction("", "", this);
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* 类型化的any方法,返回指定的QEntity类型
|
|
1777
|
+
*/
|
|
1778
|
+
any(): T & ScalarResultExpression {
|
|
1779
|
+
if (this.withQueryEntity) {
|
|
1780
|
+
return new (this.withQueryEntity(AnyEntityFunction))(this) as T &
|
|
1781
|
+
ScalarResultExpression;
|
|
1782
|
+
} else {
|
|
1783
|
+
throw new Error("any()方法要求必须使用withQueryEntityFunction参数不能为空");
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
export const EntityPath = withEntityPath(EntityPathBase);
|
|
1789
|
+
|
|
1790
|
+
export class EntitySetPath<T extends QEntity> extends withCollectionPath(EntitySetPathBase) {
|
|
1791
|
+
private readonly withQueryEntity?: WithQueryEntityFunction;
|
|
1792
|
+
|
|
1793
|
+
/**
|
|
1794
|
+
* 构造实体集合路径
|
|
1795
|
+
* @param path 属性名
|
|
1796
|
+
* @param fromEntity 所属的Java实体类型
|
|
1797
|
+
* @param parent 上级路径对象
|
|
1798
|
+
* @param withFun 用于生成QueryEntity的mixin方法
|
|
1799
|
+
* @param alias 别名
|
|
1800
|
+
*/
|
|
1801
|
+
constructor(
|
|
1802
|
+
path: string,
|
|
1803
|
+
fromEntity: string,
|
|
1804
|
+
parent?: PathExpression,
|
|
1805
|
+
withFun?: WithQueryEntityFunction,
|
|
1806
|
+
alias?: string,
|
|
1807
|
+
) {
|
|
1808
|
+
super(path, fromEntity, parent, alias);
|
|
1809
|
+
this.withQueryEntity = withFun;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* 集合中的任何元素,此方法适用与无指定QEntiy类型的动态查询构造
|
|
1814
|
+
*/
|
|
1815
|
+
anyQ() {
|
|
1816
|
+
return new AnyEntityFunction("", "", this);
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* 类型化的any方法,返回指定的QEntity类型
|
|
1821
|
+
*/
|
|
1822
|
+
any(): T & ScalarResultExpression {
|
|
1823
|
+
if (this.withQueryEntity) {
|
|
1824
|
+
return new (this.withQueryEntity(AnyEntityFunction))(this) as T &
|
|
1825
|
+
ScalarResultExpression;
|
|
1826
|
+
} else {
|
|
1827
|
+
throw new Error("any()方法要求必须使用withQueryEntityFunction参数不能为空");
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
export class EnumListPath extends withCollectionPath(EnumListPathBase) {
|
|
1833
|
+
/**
|
|
1834
|
+
* 集合中的任何元素
|
|
1835
|
+
*/
|
|
1836
|
+
any() {
|
|
1837
|
+
return new AnyEnumFunction(this);
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
export const EnumPath = withEnumResult(EnumPathBase);
|
|
1842
|
+
|
|
1843
|
+
export class EnumSetPath extends withCollectionPath(EnumSetPathBase) {
|
|
1844
|
+
/**
|
|
1845
|
+
* 集合中的任何元素
|
|
1846
|
+
*/
|
|
1847
|
+
any() {
|
|
1848
|
+
return new AnyEnumFunction(this);
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
export const MapPath = withMapResult(MapPathBase);
|
|
1853
|
+
|
|
1854
|
+
export class NumberListPath extends withCollectionPath(NumberListPathBase) {
|
|
1855
|
+
/**
|
|
1856
|
+
* 集合中的任何元素
|
|
1857
|
+
*/
|
|
1858
|
+
any() {
|
|
1859
|
+
return new AnyNumberFunction(this, this.elementType__ as JavaType);
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
export const NumberPath = withNumberResult(NumberPathBase);
|
|
1864
|
+
|
|
1865
|
+
export class NumberSetPath extends withCollectionPath(NumberSetPathBase) {
|
|
1866
|
+
/**
|
|
1867
|
+
* 集合中的任何元素
|
|
1868
|
+
*/
|
|
1869
|
+
any() {
|
|
1870
|
+
return new AnyNumberFunction(this, this.elementType__ as JavaType);
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
export class StringListPath extends withCollectionPath(StringListPathBase) {
|
|
1875
|
+
/**
|
|
1876
|
+
* 集合中的任何元素
|
|
1877
|
+
*/
|
|
1878
|
+
any() {
|
|
1879
|
+
return new AnyStringFunction(this);
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
export const StringPath = withStringResult(StringPathBase);
|
|
1884
|
+
|
|
1885
|
+
export class StringSetPath extends withCollectionPath(StringSetPathBase) {
|
|
1886
|
+
/**
|
|
1887
|
+
* 集合中的任何元素
|
|
1888
|
+
*/
|
|
1889
|
+
any() {
|
|
1890
|
+
return new AnyStringFunction(this);
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
export class TimeListPath extends withCollectionPath(TimeListPathBase) {
|
|
1895
|
+
/**
|
|
1896
|
+
* 集合中的任何元素
|
|
1897
|
+
*/
|
|
1898
|
+
any() {
|
|
1899
|
+
return new AnyTimeFunction(this);
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
export const TimePath = withTimeOperations(TimePathBase);
|
|
1904
|
+
|
|
1905
|
+
export class TimeSetPath extends withCollectionPath(TimeSetPathBase) {
|
|
1906
|
+
/**
|
|
1907
|
+
* 集合中的任何元素
|
|
1908
|
+
*/
|
|
1909
|
+
any() {
|
|
1910
|
+
return new AnyTimeFunction(this);
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
//#endregion
|
|
1915
|
+
|
|
1916
|
+
//#region num
|
|
1917
|
+
export const AbsFunction = withNumberResult(AbsFunctionBase);
|
|
1918
|
+
export const ArithmeticExpression = withNumberResult(ArithmeticExpressionBase);
|
|
1919
|
+
export const CastToNumFunction = withNumberResult(CastToNumFunctionBase);
|
|
1920
|
+
export const CeilFunction = withNumberResult(CeilFunctionBase);
|
|
1921
|
+
export const FloorFunction = withNumberResult(FloorFunctionBase);
|
|
1922
|
+
export const NegateFunction = withNumberResult(NegateFunctionBase);
|
|
1923
|
+
export const RoundFunction = withNumberResult(RoundFunctionBase);
|
|
1924
|
+
export const SqrtFunction = withNumberResult(SqrtFunctionBase);
|
|
1925
|
+
//#endregion
|
|
1926
|
+
|
|
1927
|
+
//#region str function
|
|
1928
|
+
export const ConcatStringFunction = withStringResult(ConcatStringFunctionBase);
|
|
1929
|
+
export const IndexOfStringFunction = withNumberResult(IndexOfStringFunctionBase);
|
|
1930
|
+
export const LengthOfStringFunction = withNumberResult(LengthOfStringFunctionBase);
|
|
1931
|
+
export const StringTransformFunction = withStringResult(StringTransformFunctionBase);
|
|
1932
|
+
export const SubstringFunction = withStringResult(SubstringFunctionBase);
|
|
1933
|
+
export const ToStringFunction = withStringResult(ToStringFunctionBase);
|
|
1934
|
+
//#endregion
|
|
1935
|
+
|
|
1936
|
+
//#region when
|
|
1937
|
+
export const BooleanCaseExpression = withBooleanOperations(BooleanCaseExpressionBase);
|
|
1938
|
+
export const DateCaseExpression = withDateResult(DateCaseExpressionBase);
|
|
1939
|
+
export const DateTimeCaseExpression = withDateTimeResult(DateTimeCaseExpressionBase);
|
|
1940
|
+
export const TimeCaseExpression = withTimeResult(TimeCaseExpressionBase);
|
|
1941
|
+
export const StringCaseExpression = withStringResult(StringCaseExpressionBase);
|
|
1942
|
+
export const EnumCaseExpression = withEnumResult(EnumCaseExpressionBase);
|
|
1943
|
+
export const EntityCaseExpression = withEntityResult(EntityCaseExpressionBase);
|
|
1944
|
+
export const NumberCaseExpression = withNumberResult(NumberCaseExpressionBase);
|
|
1945
|
+
|
|
1946
|
+
//#endregion
|