@gct-paas/core 0.0.1-dev.0 → 0.0.1-dev.10
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/LICENSE +21 -0
- package/dist/index.min.cjs +1 -0
- package/dist/index.system.min.js +1 -0
- package/es/_virtual/_commonjsHelpers.mjs +40 -0
- package/es/_virtual/index.mjs +7 -0
- package/es/constants/core.d.ts +3 -0
- package/es/constants/core.mjs +6 -0
- package/es/constants/index.d.ts +9 -0
- package/es/constants/index.mjs +7 -0
- package/es/enums/app-designer/index.d.ts +80 -0
- package/es/enums/app-designer/index.mjs +58 -0
- package/es/enums/appEnum.d.ts +605 -0
- package/es/enums/appEnum.mjs +356 -0
- package/es/enums/appStateEnum.d.ts +14 -0
- package/es/enums/appStateEnum.mjs +12 -0
- package/es/enums/authActionEnum.d.ts +50 -0
- package/es/enums/authActionEnum.mjs +55 -0
- package/es/enums/breakpointEnum.d.ts +18 -0
- package/es/enums/breakpointEnum.mjs +28 -0
- package/es/enums/cacheEnum.d.ts +19 -0
- package/es/enums/cacheEnum.mjs +23 -0
- package/es/enums/designEnum.d.ts +82 -0
- package/es/enums/designEnum.mjs +72 -0
- package/es/enums/exceptionEnum.d.ts +17 -0
- package/es/enums/exceptionEnum.mjs +19 -0
- package/es/enums/httpEnum.d.ts +65 -0
- package/es/enums/httpEnum.mjs +63 -0
- package/es/enums/index.d.ts +16 -0
- package/es/enums/index.mjs +22 -0
- package/es/enums/menuEnum.d.ts +35 -0
- package/es/enums/menuEnum.mjs +40 -0
- package/es/enums/page-designer/designer.d.ts +277 -0
- package/es/enums/page-designer/designer.mjs +330 -0
- package/es/enums/page-designer/index.d.ts +4 -0
- package/es/enums/page-designer/index.mjs +6 -0
- package/es/enums/page-designer/panel.d.ts +243 -0
- package/es/enums/page-designer/panel.mjs +195 -0
- package/es/enums/page-designer/toolkit.d.ts +10 -0
- package/es/enums/page-designer/toolkit.mjs +14 -0
- package/es/enums/page-designer/widget.d.ts +316 -0
- package/es/enums/page-designer/widget.mjs +335 -0
- package/es/enums/pageEnum.d.ts +11 -0
- package/es/enums/pageEnum.mjs +15 -0
- package/es/enums/plugin-enum.d.ts +20 -0
- package/es/enums/plugin-enum.mjs +9 -0
- package/es/enums/processEnum.d.ts +35 -0
- package/es/enums/processEnum.mjs +28 -0
- package/es/enums/roleEnum.d.ts +4 -0
- package/es/enums/roleEnum.mjs +8 -0
- package/es/enums/sizeEnum.d.ts +5 -0
- package/es/enums/sizeEnum.mjs +9 -0
- package/es/global/gct/gct.d.ts +63 -0
- package/es/global/gct/gct.mjs +64 -0
- package/es/global/index.d.ts +1 -0
- package/es/global/index.mjs +3 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +3 -0
- package/es/hooks/use-namespace/use-namespace.d.ts +9 -0
- package/es/hooks/use-namespace/use-namespace.mjs +9 -0
- package/es/index.d.ts +17 -1
- package/es/index.mjs +49 -3
- package/es/interface/controller/i-designer-controller.d.ts +116 -0
- package/es/interface/controller/i-designer-controller.mjs +1 -0
- package/es/interface/controller/index.d.ts +1 -0
- package/es/interface/controller/index.mjs +1 -0
- package/es/interface/hooks/i-designer-hooks.d.ts +26 -0
- package/es/interface/hooks/i-designer-hooks.mjs +3 -0
- package/es/interface/hooks/index.d.ts +1 -0
- package/es/interface/hooks/index.mjs +1 -0
- package/es/interface/i-http-response/i-http-response.d.ts +29 -0
- package/es/interface/i-http-response/i-http-response.mjs +1 -0
- package/es/interface/i-import-style-map/i-import-style-map.d.ts +15 -0
- package/es/interface/i-import-style-map/i-import-style-map.mjs +1 -0
- package/es/interface/i-message-util/i-message-util.d.ts +78 -0
- package/es/interface/i-message-util/i-message-util.mjs +1 -0
- package/es/interface/i-pinia-action/i-global-actions.d.ts +33 -0
- package/es/interface/i-pinia-action/i-global-actions.mjs +1 -0
- package/es/interface/i-pinia-getter/i-global-getters.d.ts +16 -0
- package/es/interface/i-pinia-getter/i-global-getters.mjs +1 -0
- package/es/interface/i-pinia-state/i-global-state.d.ts +35 -0
- package/es/interface/i-pinia-state/i-global-state.mjs +1 -0
- package/es/interface/index.d.ts +10 -0
- package/es/interface/index.mjs +6 -0
- package/es/interface/low-code-types/index.d.ts +4 -0
- package/es/interface/low-code-types/index.mjs +5 -0
- package/es/interface/low-code-types/modal-types.d.ts +67 -0
- package/es/interface/low-code-types/modal-types.mjs +3 -0
- package/es/interface/low-code-types/model/index.d.ts +5338 -0
- package/es/interface/low-code-types/model/index.mjs +1 -0
- package/es/interface/low-code-types/schema/index.d.ts +12 -0
- package/es/interface/low-code-types/schema/index.mjs +1 -0
- package/es/interface/low-code-types/widget-basic-types.d.ts +655 -0
- package/es/interface/low-code-types/widget-basic-types.mjs +3 -0
- package/es/interface/state/i-designer-state.d.ts +39 -0
- package/es/interface/state/i-designer-state.mjs +1 -0
- package/es/interface/state/index.d.ts +1 -0
- package/es/interface/state/index.mjs +1 -0
- package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +541 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/async-series-hook/async-series-hook.mjs +73 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +2 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.mjs +100 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +2 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +47 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +5 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +24 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +94 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event-emitter/qx-event-emitter.mjs +146 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +149 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +227 -0
- package/es/provider/i-designer-provider/i-designer-provider.d.ts +102 -0
- package/es/provider/i-designer-provider/i-designer-provider.mjs +1 -0
- package/es/provider/index.d.ts +1 -0
- package/es/provider/index.mjs +1 -0
- package/es/register/designer-register/designer-register.d.ts +58 -0
- package/es/register/designer-register/designer-register.mjs +70 -0
- package/es/register/index.d.ts +2 -0
- package/es/register/index.mjs +4 -0
- package/es/register/render-register/render-register.d.ts +59 -0
- package/es/register/render-register/render-register.mjs +65 -0
- package/es/service/base/apaas-base.service.d.ts +11 -0
- package/es/service/base/apaas-base.service.mjs +11 -0
- package/es/service/base/base.service.d.ts +16 -0
- package/es/service/base/base.service.mjs +32 -0
- package/es/service/base/platform-base.service.d.ts +11 -0
- package/es/service/base/platform-base.service.mjs +11 -0
- package/es/service/gct-apaas/api.service.d.ts +51 -0
- package/es/service/gct-apaas/api.service.mjs +58 -0
- package/es/service/gct-apaas/app-branch.service.d.ts +25 -0
- package/es/service/gct-apaas/app-branch.service.mjs +34 -0
- package/es/service/gct-apaas/app-global-settings.service.d.ts +27 -0
- package/es/service/gct-apaas/app-global-settings.service.mjs +30 -0
- package/es/service/gct-apaas/app-granted-user.service.d.ts +23 -0
- package/es/service/gct-apaas/app-granted-user.service.mjs +38 -0
- package/es/service/gct-apaas/app-org.service.d.ts +35 -0
- package/es/service/gct-apaas/app-org.service.mjs +46 -0
- package/es/service/gct-apaas/app-publish-log.service.d.ts +25 -0
- package/es/service/gct-apaas/app-publish-log.service.mjs +34 -0
- package/es/service/gct-apaas/app-state.service.d.ts +7 -0
- package/es/service/gct-apaas/app-state.service.mjs +14 -0
- package/es/service/gct-apaas/app-user.service.d.ts +35 -0
- package/es/service/gct-apaas/app-user.service.mjs +42 -0
- package/es/service/gct-apaas/approval-log.service.d.ts +25 -0
- package/es/service/gct-apaas/approval-log.service.mjs +34 -0
- package/es/service/gct-apaas/audit-log.service.d.ts +19 -0
- package/es/service/gct-apaas/audit-log.service.mjs +38 -0
- package/es/service/gct-apaas/basic-config.service.d.ts +17 -0
- package/es/service/gct-apaas/basic-config.service.mjs +30 -0
- package/es/service/gct-apaas/biz-event.service.d.ts +29 -0
- package/es/service/gct-apaas/biz-event.service.mjs +34 -0
- package/es/service/gct-apaas/biz-process-definition-version.service.d.ts +26 -0
- package/es/service/gct-apaas/biz-process-definition-version.service.mjs +42 -0
- package/es/service/gct-apaas/biz-process-definition.service.d.ts +30 -0
- package/es/service/gct-apaas/biz-process-definition.service.mjs +34 -0
- package/es/service/gct-apaas/biz-service-crud.service.d.ts +52 -0
- package/es/service/gct-apaas/biz-service-crud.service.mjs +46 -0
- package/es/service/gct-apaas/biz-service.service.d.ts +21 -0
- package/es/service/gct-apaas/biz-service.service.mjs +26 -0
- package/es/service/gct-apaas/bom.service.d.ts +6 -0
- package/es/service/gct-apaas/bom.service.mjs +14 -0
- package/es/service/gct-apaas/category-relation.service.d.ts +30 -0
- package/es/service/gct-apaas/category-relation.service.mjs +38 -0
- package/es/service/gct-apaas/category.service.d.ts +64 -0
- package/es/service/gct-apaas/category.service.mjs +46 -0
- package/es/service/gct-apaas/code-ts.service.d.ts +6 -0
- package/es/service/gct-apaas/code-ts.service.mjs +14 -0
- package/es/service/gct-apaas/commit-log.service.d.ts +39 -0
- package/es/service/gct-apaas/commit-log.service.mjs +62 -0
- package/es/service/gct-apaas/data-model.service.d.ts +41 -0
- package/es/service/gct-apaas/data-model.service.mjs +50 -0
- package/es/service/gct-apaas/designer-common.service.d.ts +99 -0
- package/es/service/gct-apaas/designer-common.service.mjs +62 -0
- package/es/service/gct-apaas/designer-lock.service.d.ts +15 -0
- package/es/service/gct-apaas/designer-lock.service.mjs +30 -0
- package/es/service/gct-apaas/designer-operate-log.service.d.ts +17 -0
- package/es/service/gct-apaas/designer-operate-log.service.mjs +14 -0
- package/es/service/gct-apaas/devops.service.d.ts +8 -0
- package/es/service/gct-apaas/devops.service.mjs +18 -0
- package/es/service/gct-apaas/doc-outline.service.d.ts +49 -0
- package/es/service/gct-apaas/doc-outline.service.mjs +58 -0
- package/es/service/gct-apaas/document.service.d.ts +47 -0
- package/es/service/gct-apaas/document.service.mjs +66 -0
- package/es/service/gct-apaas/edhr-instance-relation.service.d.ts +15 -0
- package/es/service/gct-apaas/edhr-instance-relation.service.mjs +22 -0
- package/es/service/gct-apaas/edhr-instance.service.d.ts +45 -0
- package/es/service/gct-apaas/edhr-instance.service.mjs +38 -0
- package/es/service/gct-apaas/edhr-tmpl.service.d.ts +31 -0
- package/es/service/gct-apaas/edhr-tmpl.service.mjs +50 -0
- package/es/service/gct-apaas/ele-search.service.d.ts +10 -0
- package/es/service/gct-apaas/ele-search.service.mjs +14 -0
- package/es/service/gct-apaas/entities.d.ts +23766 -0
- package/es/service/gct-apaas/entities.mjs +1 -0
- package/es/service/gct-apaas/enum-model-field.service.d.ts +34 -0
- package/es/service/gct-apaas/enum-model-field.service.mjs +38 -0
- package/es/service/gct-apaas/enum-model.service.d.ts +31 -0
- package/es/service/gct-apaas/enum-model.service.mjs +42 -0
- package/es/service/gct-apaas/event-log.service.d.ts +20 -0
- package/es/service/gct-apaas/event-log.service.mjs +26 -0
- package/es/service/gct-apaas/event.service.d.ts +29 -0
- package/es/service/gct-apaas/event.service.mjs +34 -0
- package/es/service/gct-apaas/excel-tmpl.service.d.ts +51 -0
- package/es/service/gct-apaas/excel-tmpl.service.mjs +58 -0
- package/es/service/gct-apaas/excel.service.d.ts +18 -0
- package/es/service/gct-apaas/excel.service.mjs +18 -0
- package/es/service/gct-apaas/field-meta.service.d.ts +45 -0
- package/es/service/gct-apaas/field-meta.service.mjs +66 -0
- package/es/service/gct-apaas/field.service.d.ts +9 -0
- package/es/service/gct-apaas/field.service.mjs +14 -0
- package/es/service/gct-apaas/file-resource.service.d.ts +12 -0
- package/es/service/gct-apaas/file-resource.service.mjs +22 -0
- package/es/service/gct-apaas/file.service.d.ts +9 -0
- package/es/service/gct-apaas/file.service.mjs +14 -0
- package/es/service/gct-apaas/formRelate.service.d.ts +48 -0
- package/es/service/gct-apaas/formRelate.service.mjs +46 -0
- package/es/service/gct-apaas/front-operate-log.service.d.ts +17 -0
- package/es/service/gct-apaas/front-operate-log.service.mjs +14 -0
- package/es/service/gct-apaas/global-method.service.d.ts +25 -0
- package/es/service/gct-apaas/global-method.service.mjs +34 -0
- package/es/service/gct-apaas/i18n-info.service.d.ts +26 -0
- package/es/service/gct-apaas/i18n-info.service.mjs +34 -0
- package/es/service/gct-apaas/index.d.ts +254 -0
- package/es/service/gct-apaas/index.mjs +258 -0
- package/es/service/gct-apaas/job-log.service.d.ts +22 -0
- package/es/service/gct-apaas/job-log.service.mjs +22 -0
- package/es/service/gct-apaas/job.service.d.ts +42 -0
- package/es/service/gct-apaas/job.service.mjs +46 -0
- package/es/service/gct-apaas/js-engine.service.d.ts +11 -0
- package/es/service/gct-apaas/js-engine.service.mjs +18 -0
- package/es/service/gct-apaas/label-log.service.d.ts +30 -0
- package/es/service/gct-apaas/label-log.service.mjs +34 -0
- package/es/service/gct-apaas/label.service.d.ts +64 -0
- package/es/service/gct-apaas/label.service.mjs +86 -0
- package/es/service/gct-apaas/medPro.service.d.ts +12 -0
- package/es/service/gct-apaas/medPro.service.mjs +18 -0
- package/es/service/gct-apaas/menu-config.service.d.ts +33 -0
- package/es/service/gct-apaas/menu-config.service.mjs +42 -0
- package/es/service/gct-apaas/merge-log.service.d.ts +20 -0
- package/es/service/gct-apaas/merge-log.service.mjs +30 -0
- package/es/service/gct-apaas/message-record.service.d.ts +29 -0
- package/es/service/gct-apaas/message-record.service.mjs +30 -0
- package/es/service/gct-apaas/message-setting.service.d.ts +11 -0
- package/es/service/gct-apaas/message-setting.service.mjs +18 -0
- package/es/service/gct-apaas/message-tmpl.service.d.ts +33 -0
- package/es/service/gct-apaas/message-tmpl.service.mjs +46 -0
- package/es/service/gct-apaas/mobile-homepage.service.d.ts +28 -0
- package/es/service/gct-apaas/mobile-homepage.service.mjs +46 -0
- package/es/service/gct-apaas/mobile-page.service.d.ts +36 -0
- package/es/service/gct-apaas/mobile-page.service.mjs +42 -0
- package/es/service/gct-apaas/model-comprehensive.service.d.ts +81 -0
- package/es/service/gct-apaas/model-comprehensive.service.mjs +98 -0
- package/es/service/gct-apaas/model-data.service.d.ts +22 -0
- package/es/service/gct-apaas/model-data.service.mjs +35 -0
- package/es/service/gct-apaas/model-meta.service.d.ts +76 -0
- package/es/service/gct-apaas/model-meta.service.mjs +102 -0
- package/es/service/gct-apaas/model-method.service.d.ts +30 -0
- package/es/service/gct-apaas/model-method.service.mjs +42 -0
- package/es/service/gct-apaas/model.service.d.ts +9 -0
- package/es/service/gct-apaas/model.service.mjs +14 -0
- package/es/service/gct-apaas/online-form-change-history.service.d.ts +13 -0
- package/es/service/gct-apaas/online-form-change-history.service.mjs +18 -0
- package/es/service/gct-apaas/online-form-instance.service.d.ts +65 -0
- package/es/service/gct-apaas/online-form-instance.service.mjs +70 -0
- package/es/service/gct-apaas/online-form-log.service.d.ts +11 -0
- package/es/service/gct-apaas/online-form-log.service.mjs +14 -0
- package/es/service/gct-apaas/online-form-tmpl-log.service.d.ts +29 -0
- package/es/service/gct-apaas/online-form-tmpl-log.service.mjs +34 -0
- package/es/service/gct-apaas/online-form-tmpl.service.d.ts +41 -0
- package/es/service/gct-apaas/online-form-tmpl.service.mjs +78 -0
- package/es/service/gct-apaas/online-form.service.d.ts +10 -0
- package/es/service/gct-apaas/online-form.service.mjs +26 -0
- package/es/service/gct-apaas/online.service.d.ts +22 -0
- package/es/service/gct-apaas/online.service.mjs +22 -0
- package/es/service/gct-apaas/openapi.service.d.ts +33 -0
- package/es/service/gct-apaas/openapi.service.mjs +42 -0
- package/es/service/gct-apaas/page-designer-log.service.d.ts +33 -0
- package/es/service/gct-apaas/page-designer-log.service.mjs +34 -0
- package/es/service/gct-apaas/permission.service.d.ts +28 -0
- package/es/service/gct-apaas/permission.service.mjs +34 -0
- package/es/service/gct-apaas/pm-process-definition-version.service.d.ts +27 -0
- package/es/service/gct-apaas/pm-process-definition-version.service.mjs +46 -0
- package/es/service/gct-apaas/pm-process-definition.service.d.ts +30 -0
- package/es/service/gct-apaas/pm-process-definition.service.mjs +34 -0
- package/es/service/gct-apaas/pm-process-engine.service.d.ts +51 -0
- package/es/service/gct-apaas/pm-process-engine.service.mjs +78 -0
- package/es/service/gct-apaas/print-designer.service.d.ts +31 -0
- package/es/service/gct-apaas/print-designer.service.mjs +26 -0
- package/es/service/gct-apaas/print-log.service.d.ts +8 -0
- package/es/service/gct-apaas/print-log.service.mjs +18 -0
- package/es/service/gct-apaas/print.service.d.ts +10 -0
- package/es/service/gct-apaas/print.service.mjs +26 -0
- package/es/service/gct-apaas/process-approval-log.service.d.ts +29 -0
- package/es/service/gct-apaas/process-approval-log.service.mjs +38 -0
- package/es/service/gct-apaas/process-approve-user.service.d.ts +25 -0
- package/es/service/gct-apaas/process-approve-user.service.mjs +34 -0
- package/es/service/gct-apaas/process-definition-version.service.d.ts +26 -0
- package/es/service/gct-apaas/process-definition-version.service.mjs +42 -0
- package/es/service/gct-apaas/process-definition.service.d.ts +25 -0
- package/es/service/gct-apaas/process-definition.service.mjs +34 -0
- package/es/service/gct-apaas/process-engine.service.d.ts +24 -0
- package/es/service/gct-apaas/process-engine.service.mjs +34 -0
- package/es/service/gct-apaas/process-event.service.d.ts +25 -0
- package/es/service/gct-apaas/process-event.service.mjs +34 -0
- package/es/service/gct-apaas/process-graph.service.d.ts +10 -0
- package/es/service/gct-apaas/process-graph.service.mjs +14 -0
- package/es/service/gct-apaas/process-instance.service.d.ts +25 -0
- package/es/service/gct-apaas/process-instance.service.mjs +34 -0
- package/es/service/gct-apaas/process-message-user.service.d.ts +25 -0
- package/es/service/gct-apaas/process-message-user.service.mjs +34 -0
- package/es/service/gct-apaas/process-node-definition.service.d.ts +25 -0
- package/es/service/gct-apaas/process-node-definition.service.mjs +34 -0
- package/es/service/gct-apaas/process-path-user.service.d.ts +25 -0
- package/es/service/gct-apaas/process-path-user.service.mjs +34 -0
- package/es/service/gct-apaas/process-path.service.d.ts +10 -0
- package/es/service/gct-apaas/process-path.service.mjs +14 -0
- package/es/service/gct-apaas/process-task-done.service.d.ts +19 -0
- package/es/service/gct-apaas/process-task-done.service.mjs +14 -0
- package/es/service/gct-apaas/process-task-todo.service.d.ts +32 -0
- package/es/service/gct-apaas/process-task-todo.service.mjs +18 -0
- package/es/service/gct-apaas/process-version.service.d.ts +22 -0
- package/es/service/gct-apaas/process-version.service.mjs +34 -0
- package/es/service/gct-apaas/process.service.d.ts +24 -0
- package/es/service/gct-apaas/process.service.mjs +30 -0
- package/es/service/gct-apaas/processTest.service.d.ts +36 -0
- package/es/service/gct-apaas/processTest.service.mjs +38 -0
- package/es/service/gct-apaas/product-release.service.d.ts +24 -0
- package/es/service/gct-apaas/product-release.service.mjs +18 -0
- package/es/service/gct-apaas/publish-log.service.d.ts +29 -0
- package/es/service/gct-apaas/publish-log.service.mjs +46 -0
- package/es/service/gct-apaas/regexp.service.d.ts +31 -0
- package/es/service/gct-apaas/regexp.service.mjs +34 -0
- package/es/service/gct-apaas/role-permission.service.d.ts +14 -0
- package/es/service/gct-apaas/role-permission.service.mjs +26 -0
- package/es/service/gct-apaas/role.service.d.ts +31 -0
- package/es/service/gct-apaas/role.service.mjs +34 -0
- package/es/service/gct-apaas/script-version-log.service.d.ts +26 -0
- package/es/service/gct-apaas/script-version-log.service.mjs +26 -0
- package/es/service/gct-apaas/script-version.service.d.ts +34 -0
- package/es/service/gct-apaas/script-version.service.mjs +38 -0
- package/es/service/gct-apaas/script.service.d.ts +37 -0
- package/es/service/gct-apaas/script.service.mjs +38 -0
- package/es/service/gct-apaas/service-orchestration-version-log.service.d.ts +27 -0
- package/es/service/gct-apaas/service-orchestration-version-log.service.mjs +30 -0
- package/es/service/gct-apaas/service-orchestration-version.service.d.ts +34 -0
- package/es/service/gct-apaas/service-orchestration-version.service.mjs +38 -0
- package/es/service/gct-apaas/service-orchestration.service.d.ts +37 -0
- package/es/service/gct-apaas/service-orchestration.service.mjs +38 -0
- package/es/service/gct-apaas/sign-history.service.d.ts +25 -0
- package/es/service/gct-apaas/sign-history.service.mjs +34 -0
- package/es/service/gct-apaas/signature.service.d.ts +7 -0
- package/es/service/gct-apaas/signature.service.mjs +14 -0
- package/es/service/gct-apaas/sql-view-model.service.d.ts +24 -0
- package/es/service/gct-apaas/sql-view-model.service.mjs +30 -0
- package/es/service/gct-apaas/sql-view.service.d.ts +9 -0
- package/es/service/gct-apaas/sql-view.service.mjs +14 -0
- package/es/service/gct-apaas/stash.service.d.ts +23 -0
- package/es/service/gct-apaas/stash.service.mjs +30 -0
- package/es/service/gct-apaas/sub-model-process.service.d.ts +6 -0
- package/es/service/gct-apaas/sub-model-process.service.mjs +14 -0
- package/es/service/gct-apaas/sys-config.service.d.ts +25 -0
- package/es/service/gct-apaas/sys-config.service.mjs +34 -0
- package/es/service/gct-apaas/system-var.service.d.ts +40 -0
- package/es/service/gct-apaas/system-var.service.mjs +46 -0
- package/es/service/gct-apaas/trace-log-details.service.d.ts +34 -0
- package/es/service/gct-apaas/trace-log-details.service.mjs +42 -0
- package/es/service/gct-apaas/trace-log.service.d.ts +36 -0
- package/es/service/gct-apaas/trace-log.service.mjs +38 -0
- package/es/service/gct-apaas/trace-mainline-ext.service.d.ts +25 -0
- package/es/service/gct-apaas/trace-mainline-ext.service.mjs +34 -0
- package/es/service/gct-apaas/trace-mainline.service.d.ts +25 -0
- package/es/service/gct-apaas/trace-mainline.service.mjs +34 -0
- package/es/service/gct-apaas/trace-setting.service.d.ts +19 -0
- package/es/service/gct-apaas/trace-setting.service.mjs +26 -0
- package/es/service/gct-apaas/user-group-relation.service.d.ts +16 -0
- package/es/service/gct-apaas/user-group-relation.service.mjs +26 -0
- package/es/service/gct-apaas/user-group.service.d.ts +27 -0
- package/es/service/gct-apaas/user-group.service.mjs +42 -0
- package/es/service/gct-apaas/view-model.service.d.ts +50 -0
- package/es/service/gct-apaas/view-model.service.mjs +62 -0
- package/es/service/gct-apaas/wash.service.d.ts +7 -0
- package/es/service/gct-apaas/wash.service.mjs +18 -0
- package/es/service/gct-apaas/webpage.service.d.ts +41 -0
- package/es/service/gct-apaas/webpage.service.mjs +62 -0
- package/es/service/gct-platform/api.service.d.ts +118 -0
- package/es/service/gct-platform/api.service.mjs +130 -0
- package/es/service/gct-platform/apk.service.d.ts +23 -0
- package/es/service/gct-platform/apk.service.mjs +42 -0
- package/es/service/gct-platform/app-member.service.d.ts +32 -0
- package/es/service/gct-platform/app-member.service.mjs +38 -0
- package/es/service/gct-platform/app-setting.service.d.ts +34 -0
- package/es/service/gct-platform/app-setting.service.mjs +42 -0
- package/es/service/gct-platform/app.service.d.ts +114 -0
- package/es/service/gct-platform/app.service.mjs +130 -0
- package/es/service/gct-platform/assets.service.d.ts +30 -0
- package/es/service/gct-platform/assets.service.mjs +34 -0
- package/es/service/gct-platform/audit-log.service.d.ts +15 -0
- package/es/service/gct-platform/audit-log.service.mjs +34 -0
- package/es/service/gct-platform/category.service.d.ts +29 -0
- package/es/service/gct-platform/category.service.mjs +38 -0
- package/es/service/gct-platform/data-source.service.d.ts +33 -0
- package/es/service/gct-platform/data-source.service.mjs +46 -0
- package/es/service/gct-platform/datasource-devops.service.d.ts +21 -0
- package/es/service/gct-platform/datasource-devops.service.mjs +34 -0
- package/es/service/gct-platform/datasource-move-data.service.d.ts +25 -0
- package/es/service/gct-platform/datasource-move-data.service.mjs +34 -0
- package/es/service/gct-platform/datasource-move-detail.service.d.ts +25 -0
- package/es/service/gct-platform/datasource-move-detail.service.mjs +34 -0
- package/es/service/gct-platform/datasource-move.service.d.ts +25 -0
- package/es/service/gct-platform/datasource-move.service.mjs +38 -0
- package/es/service/gct-platform/entities.d.ts +14800 -0
- package/es/service/gct-platform/entities.mjs +1 -0
- package/es/service/gct-platform/external-message.service.d.ts +25 -0
- package/es/service/gct-platform/external-message.service.mjs +34 -0
- package/es/service/gct-platform/file.service.d.ts +9 -0
- package/es/service/gct-platform/file.service.mjs +14 -0
- package/es/service/gct-platform/i18n-config.service.d.ts +14 -0
- package/es/service/gct-platform/i18n-config.service.mjs +18 -0
- package/es/service/gct-platform/i18n-info.service.d.ts +26 -0
- package/es/service/gct-platform/i18n-info.service.mjs +34 -0
- package/es/service/gct-platform/index.d.ts +128 -0
- package/es/service/gct-platform/index.mjs +132 -0
- package/es/service/gct-platform/internal-message.service.d.ts +27 -0
- package/es/service/gct-platform/internal-message.service.mjs +34 -0
- package/es/service/gct-platform/invoke-log.service.d.ts +25 -0
- package/es/service/gct-platform/invoke-log.service.mjs +22 -0
- package/es/service/gct-platform/ldap.service.d.ts +6 -0
- package/es/service/gct-platform/ldap.service.mjs +14 -0
- package/es/service/gct-platform/license-unbind-log.service.d.ts +7 -0
- package/es/service/gct-platform/license-unbind-log.service.mjs +14 -0
- package/es/service/gct-platform/license.service.d.ts +57 -0
- package/es/service/gct-platform/license.service.mjs +54 -0
- package/es/service/gct-platform/login-log.service.d.ts +15 -0
- package/es/service/gct-platform/login-log.service.mjs +14 -0
- package/es/service/gct-platform/login.service.d.ts +15 -0
- package/es/service/gct-platform/login.service.mjs +30 -0
- package/es/service/gct-platform/manager.service.d.ts +16 -0
- package/es/service/gct-platform/manager.service.mjs +18 -0
- package/es/service/gct-platform/message-setting.service.d.ts +41 -0
- package/es/service/gct-platform/message-setting.service.mjs +50 -0
- package/es/service/gct-platform/nav-menu.service.d.ts +28 -0
- package/es/service/gct-platform/nav-menu.service.mjs +46 -0
- package/es/service/gct-platform/nav-page.service.d.ts +26 -0
- package/es/service/gct-platform/nav-page.service.mjs +38 -0
- package/es/service/gct-platform/openapi-group.service.d.ts +38 -0
- package/es/service/gct-platform/openapi-group.service.mjs +34 -0
- package/es/service/gct-platform/openapi-key-grant.service.d.ts +26 -0
- package/es/service/gct-platform/openapi-key-grant.service.mjs +38 -0
- package/es/service/gct-platform/org-user-picker.service.d.ts +14 -0
- package/es/service/gct-platform/org-user-picker.service.mjs +18 -0
- package/es/service/gct-platform/org.service.d.ts +38 -0
- package/es/service/gct-platform/org.service.mjs +54 -0
- package/es/service/gct-platform/permission.service.d.ts +21 -0
- package/es/service/gct-platform/permission.service.mjs +30 -0
- package/es/service/gct-platform/plat.service.d.ts +28 -0
- package/es/service/gct-platform/plat.service.mjs +74 -0
- package/es/service/gct-platform/plugin-version.service.d.ts +25 -0
- package/es/service/gct-platform/plugin-version.service.mjs +34 -0
- package/es/service/gct-platform/plugin.service.d.ts +26 -0
- package/es/service/gct-platform/plugin.service.mjs +38 -0
- package/es/service/gct-platform/pm-process-delegate-detail.service.d.ts +25 -0
- package/es/service/gct-platform/pm-process-delegate-detail.service.mjs +34 -0
- package/es/service/gct-platform/pm-process-delegate.service.d.ts +25 -0
- package/es/service/gct-platform/pm-process-delegate.service.mjs +34 -0
- package/es/service/gct-platform/pm-process-instance.service.d.ts +29 -0
- package/es/service/gct-platform/pm-process-instance.service.mjs +38 -0
- package/es/service/gct-platform/pm-task-done.service.d.ts +29 -0
- package/es/service/gct-platform/pm-task-done.service.mjs +38 -0
- package/es/service/gct-platform/pm-task-todo.service.d.ts +28 -0
- package/es/service/gct-platform/pm-task-todo.service.mjs +38 -0
- package/es/service/gct-platform/print-log.service.d.ts +33 -0
- package/es/service/gct-platform/print-log.service.mjs +26 -0
- package/es/service/gct-platform/print-resource.service.d.ts +37 -0
- package/es/service/gct-platform/print-resource.service.mjs +54 -0
- package/es/service/gct-platform/regexp.service.d.ts +31 -0
- package/es/service/gct-platform/regexp.service.mjs +34 -0
- package/es/service/gct-platform/released.service.d.ts +23 -0
- package/es/service/gct-platform/released.service.mjs +22 -0
- package/es/service/gct-platform/role-permission.service.d.ts +16 -0
- package/es/service/gct-platform/role-permission.service.mjs +26 -0
- package/es/service/gct-platform/role.service.d.ts +33 -0
- package/es/service/gct-platform/role.service.mjs +46 -0
- package/es/service/gct-platform/seat-message.service.d.ts +6 -0
- package/es/service/gct-platform/seat-message.service.mjs +14 -0
- package/es/service/gct-platform/seat.service.d.ts +26 -0
- package/es/service/gct-platform/seat.service.mjs +30 -0
- package/es/service/gct-platform/shortcut.service.d.ts +25 -0
- package/es/service/gct-platform/shortcut.service.mjs +26 -0
- package/es/service/gct-platform/sms.service.d.ts +8 -0
- package/es/service/gct-platform/sms.service.mjs +18 -0
- package/es/service/gct-platform/started-process.service.d.ts +23 -0
- package/es/service/gct-platform/started-process.service.mjs +26 -0
- package/es/service/gct-platform/task-delegate.service.d.ts +31 -0
- package/es/service/gct-platform/task-delegate.service.mjs +42 -0
- package/es/service/gct-platform/task-done.service.d.ts +22 -0
- package/es/service/gct-platform/task-done.service.mjs +26 -0
- package/es/service/gct-platform/task-todo.service.d.ts +22 -0
- package/es/service/gct-platform/task-todo.service.mjs +26 -0
- package/es/service/gct-platform/tenant-developer.service.d.ts +36 -0
- package/es/service/gct-platform/tenant-developer.service.mjs +42 -0
- package/es/service/gct-platform/tenant.service.d.ts +54 -0
- package/es/service/gct-platform/tenant.service.mjs +70 -0
- package/es/service/gct-platform/user-extra.service.d.ts +25 -0
- package/es/service/gct-platform/user-extra.service.mjs +34 -0
- package/es/service/gct-platform/user-info-log.service.d.ts +26 -0
- package/es/service/gct-platform/user-info-log.service.mjs +34 -0
- package/es/service/gct-platform/user-password-history.service.d.ts +25 -0
- package/es/service/gct-platform/user-password-history.service.mjs +34 -0
- package/es/service/gct-platform/user.service.d.ts +47 -0
- package/es/service/gct-platform/user.service.mjs +66 -0
- package/es/service/gct-platform/workbench-component-relation.service.d.ts +34 -0
- package/es/service/gct-platform/workbench-component-relation.service.mjs +46 -0
- package/es/service/gct-platform/workbench-component.service.d.ts +29 -0
- package/es/service/gct-platform/workbench-component.service.mjs +34 -0
- package/es/state/global-pinia-state/global-pinia-state.d.ts +35 -0
- package/es/state/global-pinia-state/global-pinia-state.mjs +32 -0
- package/es/state/index.d.ts +1 -0
- package/es/state/index.mjs +3 -0
- package/es/store/global-store.d.ts +2 -0
- package/es/store/global-store.mjs +31 -0
- package/es/store/index.d.ts +20 -0
- package/es/store/index.mjs +21 -0
- package/es/types/index.d.ts +48 -0
- package/es/utils/axios/axios.d.ts +24 -0
- package/es/utils/axios/axios.mjs +75 -0
- package/es/utils/axios/interceptors.d.ts +8 -0
- package/es/utils/axios/interceptors.mjs +41 -0
- package/es/utils/index.d.ts +5 -0
- package/es/utils/index.mjs +7 -0
- package/es/utils/namespace/namespace.d.ts +116 -0
- package/es/utils/namespace/namespace.mjs +167 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +78 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +134 -0
- package/es/utils/plugin-static-resource/plugin-static-resource.d.ts +37 -0
- package/es/utils/plugin-static-resource/plugin-static-resource.mjs +44 -0
- package/es/utils/tools/tools.d.ts +46 -0
- package/es/utils/tools/tools.mjs +52 -0
- package/package.json +24 -10
- package/dist/core.cjs +0 -1
- package/dist/core.system.js +0 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { LowCodeWidget } from '../low-code-types';
|
|
2
|
+
/**
|
|
3
|
+
* 设计器状态接口
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-05-09 14:05:44
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IDesignerState
|
|
9
|
+
*/
|
|
10
|
+
export interface IDesignerState {
|
|
11
|
+
/**
|
|
12
|
+
* 设计页面是否正在拖拽中
|
|
13
|
+
*/
|
|
14
|
+
isDragging: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 当前正在拖拽中的数据(旧拖拽)
|
|
17
|
+
*
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
20
|
+
draggingData: IData | null;
|
|
21
|
+
/**
|
|
22
|
+
* 当前鼠标容器悬浮元素(旧拖拽)
|
|
23
|
+
*
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
26
|
+
hoverEL: HTMLDivElement | null;
|
|
27
|
+
/**
|
|
28
|
+
* 拖拽放置目标容器
|
|
29
|
+
*/
|
|
30
|
+
dropContainer: LowCodeWidget.BasicSchema | null;
|
|
31
|
+
/**
|
|
32
|
+
* 需要扩张的容器列表
|
|
33
|
+
*/
|
|
34
|
+
expansionContainerList: LowCodeWidget.BasicSchema[];
|
|
35
|
+
/**
|
|
36
|
+
* 数据变更次数,主要用于复杂结构下,数据变更后的设计界面重绘
|
|
37
|
+
*/
|
|
38
|
+
count: number;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { IDesignerState } from './i-designer-state';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
import '../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
+
|
|
3
|
+
var pathBrowserify;
|
|
4
|
+
var hasRequiredPathBrowserify;
|
|
5
|
+
|
|
6
|
+
function requirePathBrowserify () {
|
|
7
|
+
if (hasRequiredPathBrowserify) return pathBrowserify;
|
|
8
|
+
hasRequiredPathBrowserify = 1;
|
|
9
|
+
// 'path' module extracted from Node.js v8.11.1 (only the posix part)
|
|
10
|
+
// transplited with Babel
|
|
11
|
+
|
|
12
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
13
|
+
//
|
|
14
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
15
|
+
// copy of this software and associated documentation files (the
|
|
16
|
+
// "Software"), to deal in the Software without restriction, including
|
|
17
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
18
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
19
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
20
|
+
// following conditions:
|
|
21
|
+
//
|
|
22
|
+
// The above copyright notice and this permission notice shall be included
|
|
23
|
+
// in all copies or substantial portions of the Software.
|
|
24
|
+
//
|
|
25
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
26
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
27
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
28
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
29
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
30
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
31
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
32
|
+
|
|
33
|
+
'use strict';
|
|
34
|
+
|
|
35
|
+
function assertPath(path) {
|
|
36
|
+
if (typeof path !== 'string') {
|
|
37
|
+
throw new TypeError('Path must be a string. Received ' + JSON.stringify(path));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Resolves . and .. elements in a path with directory names
|
|
42
|
+
function normalizeStringPosix(path, allowAboveRoot) {
|
|
43
|
+
var res = '';
|
|
44
|
+
var lastSegmentLength = 0;
|
|
45
|
+
var lastSlash = -1;
|
|
46
|
+
var dots = 0;
|
|
47
|
+
var code;
|
|
48
|
+
for (var i = 0; i <= path.length; ++i) {
|
|
49
|
+
if (i < path.length)
|
|
50
|
+
code = path.charCodeAt(i);
|
|
51
|
+
else if (code === 47 /*/*/)
|
|
52
|
+
break;
|
|
53
|
+
else
|
|
54
|
+
code = 47 /*/*/;
|
|
55
|
+
if (code === 47 /*/*/) {
|
|
56
|
+
if (lastSlash === i - 1 || dots === 1) {
|
|
57
|
+
// NOOP
|
|
58
|
+
} else if (lastSlash !== i - 1 && dots === 2) {
|
|
59
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) {
|
|
60
|
+
if (res.length > 2) {
|
|
61
|
+
var lastSlashIndex = res.lastIndexOf('/');
|
|
62
|
+
if (lastSlashIndex !== res.length - 1) {
|
|
63
|
+
if (lastSlashIndex === -1) {
|
|
64
|
+
res = '';
|
|
65
|
+
lastSegmentLength = 0;
|
|
66
|
+
} else {
|
|
67
|
+
res = res.slice(0, lastSlashIndex);
|
|
68
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf('/');
|
|
69
|
+
}
|
|
70
|
+
lastSlash = i;
|
|
71
|
+
dots = 0;
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
} else if (res.length === 2 || res.length === 1) {
|
|
75
|
+
res = '';
|
|
76
|
+
lastSegmentLength = 0;
|
|
77
|
+
lastSlash = i;
|
|
78
|
+
dots = 0;
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (allowAboveRoot) {
|
|
83
|
+
if (res.length > 0)
|
|
84
|
+
res += '/..';
|
|
85
|
+
else
|
|
86
|
+
res = '..';
|
|
87
|
+
lastSegmentLength = 2;
|
|
88
|
+
}
|
|
89
|
+
} else {
|
|
90
|
+
if (res.length > 0)
|
|
91
|
+
res += '/' + path.slice(lastSlash + 1, i);
|
|
92
|
+
else
|
|
93
|
+
res = path.slice(lastSlash + 1, i);
|
|
94
|
+
lastSegmentLength = i - lastSlash - 1;
|
|
95
|
+
}
|
|
96
|
+
lastSlash = i;
|
|
97
|
+
dots = 0;
|
|
98
|
+
} else if (code === 46 /*.*/ && dots !== -1) {
|
|
99
|
+
++dots;
|
|
100
|
+
} else {
|
|
101
|
+
dots = -1;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return res;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function _format(sep, pathObject) {
|
|
108
|
+
var dir = pathObject.dir || pathObject.root;
|
|
109
|
+
var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || '');
|
|
110
|
+
if (!dir) {
|
|
111
|
+
return base;
|
|
112
|
+
}
|
|
113
|
+
if (dir === pathObject.root) {
|
|
114
|
+
return dir + base;
|
|
115
|
+
}
|
|
116
|
+
return dir + sep + base;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
var posix = {
|
|
120
|
+
// path.resolve([from ...], to)
|
|
121
|
+
resolve: function resolve() {
|
|
122
|
+
var resolvedPath = '';
|
|
123
|
+
var resolvedAbsolute = false;
|
|
124
|
+
var cwd;
|
|
125
|
+
|
|
126
|
+
for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
|
127
|
+
var path;
|
|
128
|
+
if (i >= 0)
|
|
129
|
+
path = arguments[i];
|
|
130
|
+
else {
|
|
131
|
+
if (cwd === undefined)
|
|
132
|
+
cwd = process.cwd();
|
|
133
|
+
path = cwd;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
assertPath(path);
|
|
137
|
+
|
|
138
|
+
// Skip empty entries
|
|
139
|
+
if (path.length === 0) {
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
resolvedPath = path + '/' + resolvedPath;
|
|
144
|
+
resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// At this point the path should be resolved to a full absolute path, but
|
|
148
|
+
// handle relative paths to be safe (might happen when process.cwd() fails)
|
|
149
|
+
|
|
150
|
+
// Normalize the path
|
|
151
|
+
resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);
|
|
152
|
+
|
|
153
|
+
if (resolvedAbsolute) {
|
|
154
|
+
if (resolvedPath.length > 0)
|
|
155
|
+
return '/' + resolvedPath;
|
|
156
|
+
else
|
|
157
|
+
return '/';
|
|
158
|
+
} else if (resolvedPath.length > 0) {
|
|
159
|
+
return resolvedPath;
|
|
160
|
+
} else {
|
|
161
|
+
return '.';
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
normalize: function normalize(path) {
|
|
166
|
+
assertPath(path);
|
|
167
|
+
|
|
168
|
+
if (path.length === 0) return '.';
|
|
169
|
+
|
|
170
|
+
var isAbsolute = path.charCodeAt(0) === 47 /*/*/;
|
|
171
|
+
var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/;
|
|
172
|
+
|
|
173
|
+
// Normalize the path
|
|
174
|
+
path = normalizeStringPosix(path, !isAbsolute);
|
|
175
|
+
|
|
176
|
+
if (path.length === 0 && !isAbsolute) path = '.';
|
|
177
|
+
if (path.length > 0 && trailingSeparator) path += '/';
|
|
178
|
+
|
|
179
|
+
if (isAbsolute) return '/' + path;
|
|
180
|
+
return path;
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
isAbsolute: function isAbsolute(path) {
|
|
184
|
+
assertPath(path);
|
|
185
|
+
return path.length > 0 && path.charCodeAt(0) === 47 /*/*/;
|
|
186
|
+
},
|
|
187
|
+
|
|
188
|
+
join: function join() {
|
|
189
|
+
if (arguments.length === 0)
|
|
190
|
+
return '.';
|
|
191
|
+
var joined;
|
|
192
|
+
for (var i = 0; i < arguments.length; ++i) {
|
|
193
|
+
var arg = arguments[i];
|
|
194
|
+
assertPath(arg);
|
|
195
|
+
if (arg.length > 0) {
|
|
196
|
+
if (joined === undefined)
|
|
197
|
+
joined = arg;
|
|
198
|
+
else
|
|
199
|
+
joined += '/' + arg;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
if (joined === undefined)
|
|
203
|
+
return '.';
|
|
204
|
+
return posix.normalize(joined);
|
|
205
|
+
},
|
|
206
|
+
|
|
207
|
+
relative: function relative(from, to) {
|
|
208
|
+
assertPath(from);
|
|
209
|
+
assertPath(to);
|
|
210
|
+
|
|
211
|
+
if (from === to) return '';
|
|
212
|
+
|
|
213
|
+
from = posix.resolve(from);
|
|
214
|
+
to = posix.resolve(to);
|
|
215
|
+
|
|
216
|
+
if (from === to) return '';
|
|
217
|
+
|
|
218
|
+
// Trim any leading backslashes
|
|
219
|
+
var fromStart = 1;
|
|
220
|
+
for (; fromStart < from.length; ++fromStart) {
|
|
221
|
+
if (from.charCodeAt(fromStart) !== 47 /*/*/)
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
var fromEnd = from.length;
|
|
225
|
+
var fromLen = fromEnd - fromStart;
|
|
226
|
+
|
|
227
|
+
// Trim any leading backslashes
|
|
228
|
+
var toStart = 1;
|
|
229
|
+
for (; toStart < to.length; ++toStart) {
|
|
230
|
+
if (to.charCodeAt(toStart) !== 47 /*/*/)
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
var toEnd = to.length;
|
|
234
|
+
var toLen = toEnd - toStart;
|
|
235
|
+
|
|
236
|
+
// Compare paths to find the longest common path from root
|
|
237
|
+
var length = fromLen < toLen ? fromLen : toLen;
|
|
238
|
+
var lastCommonSep = -1;
|
|
239
|
+
var i = 0;
|
|
240
|
+
for (; i <= length; ++i) {
|
|
241
|
+
if (i === length) {
|
|
242
|
+
if (toLen > length) {
|
|
243
|
+
if (to.charCodeAt(toStart + i) === 47 /*/*/) {
|
|
244
|
+
// We get here if `from` is the exact base path for `to`.
|
|
245
|
+
// For example: from='/foo/bar'; to='/foo/bar/baz'
|
|
246
|
+
return to.slice(toStart + i + 1);
|
|
247
|
+
} else if (i === 0) {
|
|
248
|
+
// We get here if `from` is the root
|
|
249
|
+
// For example: from='/'; to='/foo'
|
|
250
|
+
return to.slice(toStart + i);
|
|
251
|
+
}
|
|
252
|
+
} else if (fromLen > length) {
|
|
253
|
+
if (from.charCodeAt(fromStart + i) === 47 /*/*/) {
|
|
254
|
+
// We get here if `to` is the exact base path for `from`.
|
|
255
|
+
// For example: from='/foo/bar/baz'; to='/foo/bar'
|
|
256
|
+
lastCommonSep = i;
|
|
257
|
+
} else if (i === 0) {
|
|
258
|
+
// We get here if `to` is the root.
|
|
259
|
+
// For example: from='/foo'; to='/'
|
|
260
|
+
lastCommonSep = 0;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
var fromCode = from.charCodeAt(fromStart + i);
|
|
266
|
+
var toCode = to.charCodeAt(toStart + i);
|
|
267
|
+
if (fromCode !== toCode)
|
|
268
|
+
break;
|
|
269
|
+
else if (fromCode === 47 /*/*/)
|
|
270
|
+
lastCommonSep = i;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
var out = '';
|
|
274
|
+
// Generate the relative path based on the path difference between `to`
|
|
275
|
+
// and `from`
|
|
276
|
+
for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
|
|
277
|
+
if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) {
|
|
278
|
+
if (out.length === 0)
|
|
279
|
+
out += '..';
|
|
280
|
+
else
|
|
281
|
+
out += '/..';
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// Lastly, append the rest of the destination (`to`) path that comes after
|
|
286
|
+
// the common path parts
|
|
287
|
+
if (out.length > 0)
|
|
288
|
+
return out + to.slice(toStart + lastCommonSep);
|
|
289
|
+
else {
|
|
290
|
+
toStart += lastCommonSep;
|
|
291
|
+
if (to.charCodeAt(toStart) === 47 /*/*/)
|
|
292
|
+
++toStart;
|
|
293
|
+
return to.slice(toStart);
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
|
|
297
|
+
_makeLong: function _makeLong(path) {
|
|
298
|
+
return path;
|
|
299
|
+
},
|
|
300
|
+
|
|
301
|
+
dirname: function dirname(path) {
|
|
302
|
+
assertPath(path);
|
|
303
|
+
if (path.length === 0) return '.';
|
|
304
|
+
var code = path.charCodeAt(0);
|
|
305
|
+
var hasRoot = code === 47 /*/*/;
|
|
306
|
+
var end = -1;
|
|
307
|
+
var matchedSlash = true;
|
|
308
|
+
for (var i = path.length - 1; i >= 1; --i) {
|
|
309
|
+
code = path.charCodeAt(i);
|
|
310
|
+
if (code === 47 /*/*/) {
|
|
311
|
+
if (!matchedSlash) {
|
|
312
|
+
end = i;
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
} else {
|
|
316
|
+
// We saw the first non-path separator
|
|
317
|
+
matchedSlash = false;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
if (end === -1) return hasRoot ? '/' : '.';
|
|
322
|
+
if (hasRoot && end === 1) return '//';
|
|
323
|
+
return path.slice(0, end);
|
|
324
|
+
},
|
|
325
|
+
|
|
326
|
+
basename: function basename(path, ext) {
|
|
327
|
+
if (ext !== undefined && typeof ext !== 'string') throw new TypeError('"ext" argument must be a string');
|
|
328
|
+
assertPath(path);
|
|
329
|
+
|
|
330
|
+
var start = 0;
|
|
331
|
+
var end = -1;
|
|
332
|
+
var matchedSlash = true;
|
|
333
|
+
var i;
|
|
334
|
+
|
|
335
|
+
if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {
|
|
336
|
+
if (ext.length === path.length && ext === path) return '';
|
|
337
|
+
var extIdx = ext.length - 1;
|
|
338
|
+
var firstNonSlashEnd = -1;
|
|
339
|
+
for (i = path.length - 1; i >= 0; --i) {
|
|
340
|
+
var code = path.charCodeAt(i);
|
|
341
|
+
if (code === 47 /*/*/) {
|
|
342
|
+
// If we reached a path separator that was not part of a set of path
|
|
343
|
+
// separators at the end of the string, stop now
|
|
344
|
+
if (!matchedSlash) {
|
|
345
|
+
start = i + 1;
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
} else {
|
|
349
|
+
if (firstNonSlashEnd === -1) {
|
|
350
|
+
// We saw the first non-path separator, remember this index in case
|
|
351
|
+
// we need it if the extension ends up not matching
|
|
352
|
+
matchedSlash = false;
|
|
353
|
+
firstNonSlashEnd = i + 1;
|
|
354
|
+
}
|
|
355
|
+
if (extIdx >= 0) {
|
|
356
|
+
// Try to match the explicit extension
|
|
357
|
+
if (code === ext.charCodeAt(extIdx)) {
|
|
358
|
+
if (--extIdx === -1) {
|
|
359
|
+
// We matched the extension, so mark this as the end of our path
|
|
360
|
+
// component
|
|
361
|
+
end = i;
|
|
362
|
+
}
|
|
363
|
+
} else {
|
|
364
|
+
// Extension does not match, so our result is the entire path
|
|
365
|
+
// component
|
|
366
|
+
extIdx = -1;
|
|
367
|
+
end = firstNonSlashEnd;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;
|
|
374
|
+
return path.slice(start, end);
|
|
375
|
+
} else {
|
|
376
|
+
for (i = path.length - 1; i >= 0; --i) {
|
|
377
|
+
if (path.charCodeAt(i) === 47 /*/*/) {
|
|
378
|
+
// If we reached a path separator that was not part of a set of path
|
|
379
|
+
// separators at the end of the string, stop now
|
|
380
|
+
if (!matchedSlash) {
|
|
381
|
+
start = i + 1;
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
} else if (end === -1) {
|
|
385
|
+
// We saw the first non-path separator, mark this as the end of our
|
|
386
|
+
// path component
|
|
387
|
+
matchedSlash = false;
|
|
388
|
+
end = i + 1;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
if (end === -1) return '';
|
|
393
|
+
return path.slice(start, end);
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
|
|
397
|
+
extname: function extname(path) {
|
|
398
|
+
assertPath(path);
|
|
399
|
+
var startDot = -1;
|
|
400
|
+
var startPart = 0;
|
|
401
|
+
var end = -1;
|
|
402
|
+
var matchedSlash = true;
|
|
403
|
+
// Track the state of characters (if any) we see before our first dot and
|
|
404
|
+
// after any path separator we find
|
|
405
|
+
var preDotState = 0;
|
|
406
|
+
for (var i = path.length - 1; i >= 0; --i) {
|
|
407
|
+
var code = path.charCodeAt(i);
|
|
408
|
+
if (code === 47 /*/*/) {
|
|
409
|
+
// If we reached a path separator that was not part of a set of path
|
|
410
|
+
// separators at the end of the string, stop now
|
|
411
|
+
if (!matchedSlash) {
|
|
412
|
+
startPart = i + 1;
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
continue;
|
|
416
|
+
}
|
|
417
|
+
if (end === -1) {
|
|
418
|
+
// We saw the first non-path separator, mark this as the end of our
|
|
419
|
+
// extension
|
|
420
|
+
matchedSlash = false;
|
|
421
|
+
end = i + 1;
|
|
422
|
+
}
|
|
423
|
+
if (code === 46 /*.*/) {
|
|
424
|
+
// If this is our first dot, mark it as the start of our extension
|
|
425
|
+
if (startDot === -1)
|
|
426
|
+
startDot = i;
|
|
427
|
+
else if (preDotState !== 1)
|
|
428
|
+
preDotState = 1;
|
|
429
|
+
} else if (startDot !== -1) {
|
|
430
|
+
// We saw a non-dot and non-path separator before our dot, so we should
|
|
431
|
+
// have a good chance at having a non-empty extension
|
|
432
|
+
preDotState = -1;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
if (startDot === -1 || end === -1 ||
|
|
437
|
+
// We saw a non-dot character immediately before the dot
|
|
438
|
+
preDotState === 0 ||
|
|
439
|
+
// The (right-most) trimmed path component is exactly '..'
|
|
440
|
+
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
441
|
+
return '';
|
|
442
|
+
}
|
|
443
|
+
return path.slice(startDot, end);
|
|
444
|
+
},
|
|
445
|
+
|
|
446
|
+
format: function format(pathObject) {
|
|
447
|
+
if (pathObject === null || typeof pathObject !== 'object') {
|
|
448
|
+
throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
|
|
449
|
+
}
|
|
450
|
+
return _format('/', pathObject);
|
|
451
|
+
},
|
|
452
|
+
|
|
453
|
+
parse: function parse(path) {
|
|
454
|
+
assertPath(path);
|
|
455
|
+
|
|
456
|
+
var ret = { root: '', dir: '', base: '', ext: '', name: '' };
|
|
457
|
+
if (path.length === 0) return ret;
|
|
458
|
+
var code = path.charCodeAt(0);
|
|
459
|
+
var isAbsolute = code === 47 /*/*/;
|
|
460
|
+
var start;
|
|
461
|
+
if (isAbsolute) {
|
|
462
|
+
ret.root = '/';
|
|
463
|
+
start = 1;
|
|
464
|
+
} else {
|
|
465
|
+
start = 0;
|
|
466
|
+
}
|
|
467
|
+
var startDot = -1;
|
|
468
|
+
var startPart = 0;
|
|
469
|
+
var end = -1;
|
|
470
|
+
var matchedSlash = true;
|
|
471
|
+
var i = path.length - 1;
|
|
472
|
+
|
|
473
|
+
// Track the state of characters (if any) we see before our first dot and
|
|
474
|
+
// after any path separator we find
|
|
475
|
+
var preDotState = 0;
|
|
476
|
+
|
|
477
|
+
// Get non-dir info
|
|
478
|
+
for (; i >= start; --i) {
|
|
479
|
+
code = path.charCodeAt(i);
|
|
480
|
+
if (code === 47 /*/*/) {
|
|
481
|
+
// If we reached a path separator that was not part of a set of path
|
|
482
|
+
// separators at the end of the string, stop now
|
|
483
|
+
if (!matchedSlash) {
|
|
484
|
+
startPart = i + 1;
|
|
485
|
+
break;
|
|
486
|
+
}
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
if (end === -1) {
|
|
490
|
+
// We saw the first non-path separator, mark this as the end of our
|
|
491
|
+
// extension
|
|
492
|
+
matchedSlash = false;
|
|
493
|
+
end = i + 1;
|
|
494
|
+
}
|
|
495
|
+
if (code === 46 /*.*/) {
|
|
496
|
+
// If this is our first dot, mark it as the start of our extension
|
|
497
|
+
if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;
|
|
498
|
+
} else if (startDot !== -1) {
|
|
499
|
+
// We saw a non-dot and non-path separator before our dot, so we should
|
|
500
|
+
// have a good chance at having a non-empty extension
|
|
501
|
+
preDotState = -1;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
if (startDot === -1 || end === -1 ||
|
|
506
|
+
// We saw a non-dot character immediately before the dot
|
|
507
|
+
preDotState === 0 ||
|
|
508
|
+
// The (right-most) trimmed path component is exactly '..'
|
|
509
|
+
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
510
|
+
if (end !== -1) {
|
|
511
|
+
if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);
|
|
512
|
+
}
|
|
513
|
+
} else {
|
|
514
|
+
if (startPart === 0 && isAbsolute) {
|
|
515
|
+
ret.name = path.slice(1, startDot);
|
|
516
|
+
ret.base = path.slice(1, end);
|
|
517
|
+
} else {
|
|
518
|
+
ret.name = path.slice(startPart, startDot);
|
|
519
|
+
ret.base = path.slice(startPart, end);
|
|
520
|
+
}
|
|
521
|
+
ret.ext = path.slice(startDot, end);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/';
|
|
525
|
+
|
|
526
|
+
return ret;
|
|
527
|
+
},
|
|
528
|
+
|
|
529
|
+
sep: '/',
|
|
530
|
+
delimiter: ':',
|
|
531
|
+
win32: null,
|
|
532
|
+
posix: null
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
posix.posix = posix;
|
|
536
|
+
|
|
537
|
+
pathBrowserify = posix;
|
|
538
|
+
return pathBrowserify;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export { requirePathBrowserify as __require };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import '../../utils/index.mjs';
|
|
2
|
+
import { SyncSeriesHook } from '../sync-series-hook/sync-series-hook.mjs';
|
|
3
|
+
import { isPromise, isFunc, isAsync } from '../../utils/type-util/type-util.mjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 串联钩子,按照注册顺序执行
|
|
7
|
+
*
|
|
8
|
+
* @export
|
|
9
|
+
* @class AsyncSeriesHook
|
|
10
|
+
* @template T 输入值类型
|
|
11
|
+
* @template C 上下文声明对象
|
|
12
|
+
*/
|
|
13
|
+
class AsyncSeriesHook extends SyncSeriesHook {
|
|
14
|
+
/**
|
|
15
|
+
* 触发钩子,当某个钩子返回「null」时,中断后续执行。
|
|
16
|
+
*
|
|
17
|
+
* @param {C} context
|
|
18
|
+
* @param {...AsArray<T>} args
|
|
19
|
+
* @return {*} {Promise<C>}
|
|
20
|
+
* @memberof AsyncSeriesHook
|
|
21
|
+
*/
|
|
22
|
+
async call(context, ...args) {
|
|
23
|
+
const _context = context || Object.create({});
|
|
24
|
+
let obj;
|
|
25
|
+
for (let i = 0; i < this.items.length; i++) {
|
|
26
|
+
const item = this.items[i];
|
|
27
|
+
if (item.fn) {
|
|
28
|
+
if (item.mode === 'promise') {
|
|
29
|
+
obj = item.fn(_context, ...args);
|
|
30
|
+
if (isPromise(obj)) {
|
|
31
|
+
// eslint-disable-next-line no-await-in-loop
|
|
32
|
+
obj = await obj;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
obj = item.fn(_context, ...args);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (obj === null) {
|
|
40
|
+
console.warn(`因${item.fn ? item.fn.name : null}方法返回值为「null」,钩子中断执行。`, item);
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return _context;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 注册异步钩子
|
|
48
|
+
*
|
|
49
|
+
* @param {((...args: AsArray<T>) => Promise<void>)} fn 回调
|
|
50
|
+
* @memberof AsyncSeriesHook
|
|
51
|
+
*/
|
|
52
|
+
tapPromise(fn) {
|
|
53
|
+
if (fn && (isFunc(fn) || isAsync(fn))) {
|
|
54
|
+
const opt = {
|
|
55
|
+
mode: 'promise',
|
|
56
|
+
};
|
|
57
|
+
opt.fn = fn;
|
|
58
|
+
this.items.push(opt);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* 删除异步钩子注册
|
|
63
|
+
*
|
|
64
|
+
* @author chitanda
|
|
65
|
+
* @date 2021-04-30 14:04:42
|
|
66
|
+
* @param {(context: C, ...args: AsArray<T>) => Promise<void>} callBack
|
|
67
|
+
*/
|
|
68
|
+
removeTapPromise(callBack) {
|
|
69
|
+
this.removeTap(callBack);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { AsyncSeriesHook };
|