@ibiz-template/runtime 0.7.11 → 0.7.12
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/dist/index.esm.js +1467 -415
- package/dist/index.system.min.js +1 -1
- package/out/app-hub.d.ts.map +1 -1
- package/out/app-hub.js +4 -4
- package/out/command/app/app-func/app-func.js +3 -3
- package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
- package/out/command/app/open-app-view/open-app-view.js +6 -4
- package/out/constant/sys-uiaction-tag.d.ts +5 -1
- package/out/constant/sys-uiaction-tag.d.ts.map +1 -1
- package/out/constant/sys-uiaction-tag.js +4 -0
- package/out/controller/common/editor/code-list-editor.controller.js +1 -1
- package/out/controller/common/view/view.controller.d.ts +7 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +18 -1
- package/out/controller/control/app-menu/app-menu.controller.js +1 -1
- package/out/controller/control/app-menu-icon-view/app-menu-icon-view.controller.js +1 -1
- package/out/controller/control/calendar/calendar.service.js +2 -2
- package/out/controller/control/chart/chart.controller.js +2 -2
- package/out/controller/control/chart/generator/bar-series-generator.js +2 -2
- package/out/controller/control/chart/generator/chart-options-generator.js +2 -2
- package/out/controller/control/chart/generator/line-series-generator.js +2 -2
- package/out/controller/control/chart/generator/scatter-series-generator.js +2 -2
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts +2 -2
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/data-view/data-view.controller.js +2 -2
- package/out/controller/control/exp-bar/tree-exp-bar.controller.js +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-md.controller.js +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.js +1 -1
- package/out/controller/control/gantt/gantt.controller.js +2 -2
- package/out/controller/control/gantt/gantt.service.js +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +4 -4
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +1 -1
- package/out/controller/control/kanban/kanban.controller.js +2 -2
- package/out/controller/control/md-ctrl/md-ctrl.controller.js +2 -2
- package/out/controller/control/report-panel/generator/generator-factory.js +1 -1
- package/out/controller/control/search-bar/search-bar-filter-items.controller.js +1 -1
- package/out/controller/control/toolbar/toolbar.controllerr.js +1 -1
- package/out/controller/control/tree/tree.controller.js +2 -2
- package/out/controller/control/tree/tree.service.js +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.js +2 -2
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +2 -2
- package/out/controller/utils/data-file-util/data-file-util.js +1 -1
- package/out/controller/utils/value-default/value-default.js +2 -2
- package/out/controller/utils/view-msg/view-msg-controller.d.ts.map +1 -1
- package/out/controller/utils/view-msg/view-msg-controller.js +2 -2
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.d.ts.map +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.js +6 -3
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.d.ts.map +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.js +10 -4
- package/out/de-logic/de-logic-node/append-param-node/append-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/append-param-node/append-param-node.js +4 -2
- package/out/de-logic/de-logic-node/bind-param-node/bind-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/bind-param-node/bind-param-node.js +5 -2
- package/out/de-logic/de-logic-node/copy-param-node/copy-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/copy-param-node/copy-param-node.js +5 -2
- package/out/de-logic/de-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/data-set-node/data-set-node.js +6 -1
- package/out/de-logic/de-logic-node/de-action-node/de-action-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/de-action-node/de-action-node.js +8 -3
- package/out/de-logic/de-logic-node/end-node/end-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/end-node/end-node.js +7 -2
- package/out/de-logic/de-logic-node/prepare-param-node/prepare-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/prepare-param-node/prepare-param-node.js +8 -2
- package/out/de-logic/de-logic-node/renew-param-node/renew-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/renew-param-node/renew-param-node.js +5 -2
- package/out/de-logic/de-logic-node/reset-param-node/reset-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/reset-param-node/reset-param-node.js +5 -2
- package/out/de-logic/de-logic-node/sort-param-node/sort-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/sort-param-node/sort-param-node.js +7 -2
- package/out/de-logic/de-logic-node/start-node/start-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/start-node/start-node.js +3 -1
- package/out/de-logic/de-logic-node/throw-exception-node/throw-exception-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/throw-exception-node/throw-exception-node.js +5 -1
- package/out/de-logic/de-logic-param/de-logic-param.d.ts.map +1 -1
- package/out/de-logic/de-logic-param/de-logic-param.js +10 -10
- package/out/de-logic/de-logic.d.ts.map +1 -1
- package/out/de-logic/de-logic.js +6 -4
- package/out/de-logic/index.d.ts.map +1 -1
- package/out/de-logic/index.js +12 -3
- package/out/de-logic/utils/handle-src-val.d.ts.map +1 -1
- package/out/de-logic/utils/handle-src-val.js +7 -3
- package/out/engine/engine-factory.d.ts.map +1 -1
- package/out/engine/engine-factory.js +1 -1
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +3 -3
- package/out/engine/view-base.engine.d.ts +1 -0
- package/out/engine/view-base.engine.d.ts.map +1 -1
- package/out/engine/view-base.engine.js +42 -5
- package/out/global/global-util/global-util.d.ts +9 -1
- package/out/global/global-util/global-util.d.ts.map +1 -1
- package/out/global/global-util/global-util.js +11 -3
- package/out/hub/config/app-view-config-service.js +2 -2
- package/out/interface/controller/state/view/i-view.state.d.ts +7 -0
- package/out/interface/controller/state/view/i-view.state.d.ts.map +1 -1
- package/out/interface/service/service/i-auth.service.d.ts +1 -1
- package/out/interface/service/service/i-auth.service.d.ts.map +1 -1
- package/out/interface/util/i-short-cut/i-short-cut.d.ts +58 -0
- package/out/interface/util/i-short-cut/i-short-cut.d.ts.map +1 -0
- package/out/interface/util/i-short-cut/i-short-cut.js +1 -0
- package/out/interface/util/index.d.ts +1 -0
- package/out/interface/util/index.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-de-ui-logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-de-ui-logic-executor.js +1 -1
- package/out/logic-scheduler/executor/app-ui-action-executor.js +1 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.js +24 -16
- package/out/logic-scheduler/executor/logic-executor-factory.d.ts.map +1 -1
- package/out/logic-scheduler/executor/logic-executor-factory.js +3 -1
- package/out/logic-scheduler/executor/logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/logic-executor.js +1 -1
- package/out/logic-scheduler/trigger/item-dyna-logic-trigger.js +1 -1
- package/out/logic-scheduler/trigger/logic-trigger-factory.d.ts.map +1 -1
- package/out/logic-scheduler/trigger/logic-trigger-factory.js +3 -1
- package/out/logic-scheduler/trigger/logic-trigger.d.ts.map +1 -1
- package/out/logic-scheduler/trigger/logic-trigger.js +3 -1
- package/out/logic-scheduler/trigger/timer-trigger.d.ts.map +1 -1
- package/out/logic-scheduler/trigger/timer-trigger.js +2 -2
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +3 -3
- package/out/model/view/view.d.ts.map +1 -1
- package/out/model/view/view.js +3 -1
- package/out/platform/provider/platform-provider-base.d.ts.map +1 -1
- package/out/platform/provider/platform-provider-base.js +4 -4
- package/out/register/helper/app-counter-register.d.ts.map +1 -1
- package/out/register/helper/app-counter-register.js +7 -3
- package/out/register/helper/app-menu-item-register.d.ts.map +1 -1
- package/out/register/helper/app-menu-item-register.js +3 -1
- package/out/register/helper/async-action-register.d.ts.map +1 -1
- package/out/register/helper/async-action-register.js +3 -1
- package/out/register/helper/common-register.d.ts.map +1 -1
- package/out/register/helper/common-register.js +3 -1
- package/out/register/helper/control-register.d.ts.map +1 -1
- package/out/register/helper/control-register.js +13 -4
- package/out/register/helper/de-method-register.d.ts.map +1 -1
- package/out/register/helper/de-method-register.js +6 -2
- package/out/register/helper/editor-register.d.ts.map +1 -1
- package/out/register/helper/editor-register.js +14 -4
- package/out/register/helper/form-detail-register.d.ts.map +1 -1
- package/out/register/helper/form-detail-register.js +9 -3
- package/out/register/helper/grid-column-register.d.ts.map +1 -1
- package/out/register/helper/grid-column-register.js +9 -3
- package/out/register/helper/internal-message-register.d.ts.map +1 -1
- package/out/register/helper/internal-message-register.js +3 -1
- package/out/register/helper/panel-item-register.d.ts.map +1 -1
- package/out/register/helper/panel-item-register.js +17 -5
- package/out/register/helper/portlet-register.d.ts.map +1 -1
- package/out/register/helper/portlet-register.js +6 -2
- package/out/register/helper/tree-grid-ex-column-register.d.ts.map +1 -1
- package/out/register/helper/tree-grid-ex-column-register.js +6 -2
- package/out/register/helper/ui-action-register.d.ts.map +1 -1
- package/out/register/helper/ui-action-register.js +6 -2
- package/out/register/helper/ui-logic-node-register.d.ts.map +1 -1
- package/out/register/helper/ui-logic-node-register.js +3 -1
- package/out/register/helper/view-register.d.ts.map +1 -1
- package/out/register/helper/view-register.js +7 -2
- package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.js +9 -3
- package/out/service/de-service-util.js +1 -1
- package/out/service/dto/method.dto.d.ts.map +1 -1
- package/out/service/dto/method.dto.js +4 -2
- package/out/service/service/auth/v7-auth.service.d.ts +1 -1
- package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
- package/out/service/service/auth/v7-auth.service.js +5 -5
- package/out/service/service/authority/authority.service.js +1 -1
- package/out/service/service/authority/de-authority.service.d.ts.map +1 -1
- package/out/service/service/authority/de-authority.service.js +13 -6
- package/out/service/service/code-list/code-list.service.d.ts.map +1 -1
- package/out/service/service/code-list/code-list.service.js +2 -2
- package/out/service/service/counter/counter.service.d.ts.map +1 -1
- package/out/service/service/counter/counter.service.js +1 -1
- package/out/service/service/entity/de.service.d.ts.map +1 -1
- package/out/service/service/entity/de.service.js +12 -4
- package/out/service/service/entity/method/de-action.d.ts.map +1 -1
- package/out/service/service/entity/method/de-action.js +10 -5
- package/out/service/service/entity/method/fetch.d.ts.map +1 -1
- package/out/service/service/entity/method/fetch.js +4 -2
- package/out/service/service/entity/method/method.d.ts.map +1 -1
- package/out/service/service/entity/method/method.js +3 -3
- package/out/service/service/util/util.service.d.ts.map +1 -1
- package/out/service/service/util/util.service.js +6 -3
- package/out/service/service/work-flow/work-flow.service.d.ts.map +1 -1
- package/out/service/service/work-flow/work-flow.service.js +1 -1
- package/out/service/utils/app-counter/app-counter.js +1 -1
- package/out/service/utils/app-counter/app-de-counter.d.ts.map +1 -1
- package/out/service/utils/app-counter/app-de-counter.js +1 -1
- package/out/service/utils/de-cache/de-cache.d.ts.map +1 -1
- package/out/service/utils/de-cache/de-cache.js +18 -6
- package/out/service/utils/de-dq-cond/ps-de-dq-cond-engine.d.ts.map +1 -1
- package/out/service/utils/de-dq-cond/ps-de-dq-cond-engine.js +3 -3
- package/out/service/utils/de-dq-cond/ps-model-group-cond-base.js +1 -1
- package/out/service/utils/de-dq-cond-util/de-dq-cond-util.d.ts.map +1 -1
- package/out/service/utils/de-dq-cond-util/de-dq-cond-util.js +3 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts.map +1 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.js +4 -4
- package/out/service/utils/service-exist-util/service-exist-util.d.ts.map +1 -1
- package/out/service/utils/service-exist-util/service-exist-util.js +2 -2
- package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-data-set-node-data.js +1 -1
- package/out/service/vo/ui-map-field.d.ts.map +1 -1
- package/out/service/vo/ui-map-field.js +3 -1
- package/out/ui-action/provider/backend-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/backend-ui-action-provider.js +1 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts +1 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +20 -13
- package/out/ui-action/provider/loginout-ui-action-provider.js +2 -2
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +7 -4
- package/out/ui-action/provider/wf-withdraw-ui-action-provider.js +2 -2
- package/out/ui-action/uiaction-util.d.ts.map +1 -1
- package/out/ui-action/uiaction-util.js +1 -1
- package/out/ui-logic/index.d.ts.map +1 -1
- package/out/ui-logic/index.js +12 -3
- package/out/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.js +6 -3
- package/out/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.js +10 -4
- package/out/ui-logic/ui-logic-link/ui-logic-link.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-link/ui-logic-link.js +4 -4
- package/out/ui-logic/ui-logic-node/append-param-node/append-param-node.js +2 -2
- package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.js +7 -2
- package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.js +8 -3
- package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.js +7 -2
- package/out/ui-logic/ui-logic-node/debug-param-node/debug-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/debug-param-node/debug-param-node.js +2 -2
- package/out/ui-logic/ui-logic-node/end-node/end-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/end-node/end-node.js +5 -2
- package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.js +10 -5
- package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.js +16 -10
- package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.js +4 -1
- package/out/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.js +10 -4
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +3 -1
- package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.js +7 -2
- package/out/ui-logic/ui-logic-node/start-node/start-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/start-node/start-node.js +3 -1
- package/out/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.js +4 -1
- package/out/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.js +12 -6
- package/out/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.js +17 -7
- package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.js +10 -4
- package/out/ui-logic/ui-logic.d.ts.map +1 -1
- package/out/ui-logic/ui-logic.js +5 -3
- package/out/ui-logic/utils/handle-src-val.d.ts.map +1 -1
- package/out/ui-logic/utils/handle-src-val.js +6 -2
- package/out/utils/anime/anime-element-util.js +1 -1
- package/out/utils/anime/anime-util/anime-util.d.ts.map +1 -1
- package/out/utils/anime/anime-util/anime-util.js +2 -2
- package/out/utils/error-handler/default-error-handler.d.ts.map +1 -1
- package/out/utils/error-handler/default-error-handler.js +1 -1
- package/out/utils/error-handler/error-handler-center.d.ts.map +1 -1
- package/out/utils/error-handler/error-handler-center.js +1 -1
- package/out/utils/file-util/file-util.d.ts.map +1 -1
- package/out/utils/file-util/file-util.js +3 -3
- package/out/utils/handlebars/handlebars.js +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +1 -0
- package/out/utils/modal/modal.d.ts.map +1 -1
- package/out/utils/modal/modal.js +2 -2
- package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +22 -9
- package/out/utils/script/script-function.d.ts.map +1 -1
- package/out/utils/script/script-function.js +1 -1
- package/out/utils/short-cut/index.d.ts +2 -0
- package/out/utils/short-cut/index.d.ts.map +1 -0
- package/out/utils/short-cut/index.js +1 -0
- package/out/utils/short-cut/short-cut-util.d.ts +89 -0
- package/out/utils/short-cut/short-cut-util.d.ts.map +1 -0
- package/out/utils/short-cut/short-cut-util.js +141 -0
- package/out/utils/ui-domain/transaction.js +2 -2
- package/out/utils/ui-domain-manager/ui-domain-manager.d.ts.map +1 -1
- package/out/utils/ui-domain-manager/ui-domain-manager.js +3 -1
- package/out/utils/verify/de-rule-verify.js +11 -11
- package/out/utils/verify/form-dynamic-logic.d.ts.map +1 -1
- package/out/utils/verify/form-dynamic-logic.js +4 -2
- package/out/utils/verify/panel-dynamic-logic.d.ts.map +1 -1
- package/out/utils/verify/panel-dynamic-logic.js +4 -2
- package/out/utils/verify/verify.d.ts.map +1 -1
- package/out/utils/verify/verify.js +3 -3
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export class AppendParamNode extends UILogicNode {
|
|
|
14
14
|
async exec(ctx) {
|
|
15
15
|
const { dstDEUILogicParamId, srcDEUILogicParamId, dstIndex, srcIndex, srcSize, } = this.model;
|
|
16
16
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
17
|
-
throw new RuntimeModelError(this.model, '
|
|
17
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.missingTargetParameter'));
|
|
18
18
|
}
|
|
19
19
|
const srcVal = handleSrcVal(ctx, this.model);
|
|
20
20
|
const insertIndex = dstIndex || 0;
|
|
@@ -22,6 +22,6 @@ export class AppendParamNode extends UILogicNode {
|
|
|
22
22
|
const _srcSize = srcSize || srcVal.length;
|
|
23
23
|
ctx.params[dstDEUILogicParamId].splice(insertIndex, 0, ...srcVal.slice(_srcIndex, _srcSize));
|
|
24
24
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
25
|
-
ibiz.log.debug(
|
|
25
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.appendedArray', { id: this.model.id }), ctx.params, ibiz.i18n.t('runtime.deLogic.deLogicNode.addedValue'), srcVal.slice(_srcIndex, _srcSize));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bind-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/bind-param-node/bind-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,aAAc,SAAQ,WAAW;IACpC,KAAK,EAAE,mBAAmB,CAAC;IAE7B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"bind-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/bind-param-node/bind-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,aAAc,SAAQ,WAAW;IACpC,KAAK,EAAE,mBAAmB,CAAC;IAE7B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAqB/C"}
|
|
@@ -14,11 +14,14 @@ export class BindParamNode extends UILogicNode {
|
|
|
14
14
|
async exec(ctx) {
|
|
15
15
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
16
16
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
17
|
-
throw new RuntimeModelError(this.model, '
|
|
17
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.missingTargetParameter'));
|
|
18
18
|
}
|
|
19
19
|
const srcVal = handleSrcVal(ctx, this.model);
|
|
20
20
|
ctx.params[dstDEUILogicParamId] = srcVal;
|
|
21
21
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
22
|
-
ibiz.log.debug(
|
|
22
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.bindingParameters', {
|
|
23
|
+
id: this.model.id,
|
|
24
|
+
dstDEUILogicParamId,
|
|
25
|
+
}), srcVal);
|
|
23
26
|
}
|
|
24
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,aAAc,SAAQ,WAAW;IACpC,KAAK,EAAE,mBAAmB,CAAC;IAE7B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"copy-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,aAAc,SAAQ,WAAW;IACpC,KAAK,EAAE,mBAAmB,CAAC;IAE7B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAqB/C"}
|
|
@@ -15,11 +15,14 @@ export class CopyParamNode extends UILogicNode {
|
|
|
15
15
|
async exec(ctx) {
|
|
16
16
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
17
17
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
18
|
-
throw new RuntimeModelError(this.model, '
|
|
18
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.missingTargetParameter'));
|
|
19
19
|
}
|
|
20
20
|
const srcVal = handleSrcVal(ctx, this.model);
|
|
21
21
|
ctx.params[dstDEUILogicParamId] = clone(srcVal);
|
|
22
22
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
23
|
-
ibiz.log.debug(
|
|
23
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.copyParameter', {
|
|
24
|
+
id: this.model.id,
|
|
25
|
+
dstDEUILogicParamId,
|
|
26
|
+
}), srcVal);
|
|
24
27
|
}
|
|
25
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-set-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAClC,KAAK,EAAE,mBAAmB,CAAC;IAE7B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"data-set-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAClC,KAAK,EAAE,mBAAmB,CAAC;IAE7B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAmC/C"}
|
|
@@ -13,7 +13,7 @@ export class DataSetNode extends UILogicNode {
|
|
|
13
13
|
async exec(ctx) {
|
|
14
14
|
const { dstAppDEDataSetId, dstAppDataEntityId, dstDEUILogicParamId, retDEUILogicParamId, } = this.model;
|
|
15
15
|
if (!dstDEUILogicParamId) {
|
|
16
|
-
throw new RuntimeModelError(this.model, '
|
|
16
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.missingfilter'));
|
|
17
17
|
}
|
|
18
18
|
const queryParams = ctx.params[dstDEUILogicParamId];
|
|
19
19
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
@@ -22,6 +22,11 @@ export class DataSetNode extends UILogicNode {
|
|
|
22
22
|
ctx.params[retDEUILogicParamId] = res.data;
|
|
23
23
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
24
24
|
}
|
|
25
|
-
ibiz.log.debug(
|
|
25
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeDataSet', {
|
|
26
|
+
id: this.model.id,
|
|
27
|
+
dstAppDataEntityId,
|
|
28
|
+
dstAppDEDataSetId,
|
|
29
|
+
retDEUILogicParamId,
|
|
30
|
+
}), ctx.params[retDEUILogicParamId]);
|
|
26
31
|
}
|
|
27
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de-action-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IACnC,KAAK,EAAE,kBAAkB,CAAC;IAE5B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"de-action-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IACnC,KAAK,EAAE,kBAAkB,CAAC;IAE5B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CA0C/C"}
|
|
@@ -13,10 +13,10 @@ export class DEActionNode extends UILogicNode {
|
|
|
13
13
|
async exec(ctx) {
|
|
14
14
|
const { dstAppDataEntityId, dstAppDEActionId, dstDEUILogicParamId, retDEUILogicParamId, } = this.model;
|
|
15
15
|
if (!dstAppDataEntityId) {
|
|
16
|
-
throw new RuntimeModelError(this.model,
|
|
16
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.deLogic.deLogicNode.unspecifiedEntity'));
|
|
17
17
|
}
|
|
18
18
|
if (!dstAppDEActionId) {
|
|
19
|
-
throw new RuntimeModelError(this.model,
|
|
19
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.deLogic.deLogicNode.unspecifiedBehavior'));
|
|
20
20
|
}
|
|
21
21
|
const requestData = ctx.params[dstDEUILogicParamId];
|
|
22
22
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
@@ -25,6 +25,11 @@ export class DEActionNode extends UILogicNode {
|
|
|
25
25
|
ctx.params[retDEUILogicParamId] = res.data;
|
|
26
26
|
ctx.setLastReturn(ctx.params[retDEUILogicParamId]);
|
|
27
27
|
}
|
|
28
|
-
ibiz.log.debug(
|
|
28
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeEntityActions', {
|
|
29
|
+
id: this.model.id,
|
|
30
|
+
dstAppDataEntityId,
|
|
31
|
+
dstAppDEActionId,
|
|
32
|
+
retDEUILogicParamId,
|
|
33
|
+
}), ctx.params[retDEUILogicParamId]);
|
|
29
34
|
}
|
|
30
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de-ui-action-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,WAAW;IACrC,KAAK,EAAE,gBAAgB,CAAC;IAE1B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"de-ui-action-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,WAAW;IACrC,KAAK,EAAE,gBAAgB,CAAC;IAE1B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAwC/C"}
|
|
@@ -15,7 +15,7 @@ export class DEUIActionNode extends UILogicNode {
|
|
|
15
15
|
const { dstAppDEUIActionId, dstDEUILogicParamId, dstAppDataEntityId } = this.model;
|
|
16
16
|
const { data, parameters } = ctx;
|
|
17
17
|
if (!dstAppDEUIActionId) {
|
|
18
|
-
throw new RuntimeModelError(this.model,
|
|
18
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.noConfiguredInterfaceBehavior'));
|
|
19
19
|
}
|
|
20
20
|
let actionData = [data];
|
|
21
21
|
if (dstDEUILogicParamId) {
|
|
@@ -27,7 +27,12 @@ export class DEUIActionNode extends UILogicNode {
|
|
|
27
27
|
actionData = [param];
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
ibiz.log.debug(
|
|
30
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeEntityInterfaceAction', {
|
|
31
|
+
id: this.model.id,
|
|
32
|
+
dstAppDEUIActionId,
|
|
33
|
+
dstAppDataEntityId,
|
|
34
|
+
dstDEUILogicParamId,
|
|
35
|
+
}));
|
|
31
36
|
await UIActionUtil.execAndResolved(dstAppDEUIActionId, Object.assign(Object.assign({}, parameters), { context: ctx.context, params: ctx.viewParam, data: actionData }), this.model.appId);
|
|
32
37
|
}
|
|
33
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,WAAW;IACrC,KAAK,EAAE,oBAAoB,CAAC;IAE9B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"debug-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,WAAW;IACrC,KAAK,EAAE,oBAAoB,CAAC;IAE9B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAc/C"}
|
|
@@ -13,9 +13,9 @@ export class DebugParamNode extends UILogicNode {
|
|
|
13
13
|
async exec(ctx) {
|
|
14
14
|
const { dstDEUILogicParamId, name } = this.model;
|
|
15
15
|
if (!dstDEUILogicParamId) {
|
|
16
|
-
throw new RuntimeModelError(this.model, '
|
|
16
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.deLogic.deLogicNode.missingConfiguration'));
|
|
17
17
|
}
|
|
18
18
|
const param = ctx.params[dstDEUILogicParamId];
|
|
19
|
-
ibiz.log.info(
|
|
19
|
+
ibiz.log.info(ibiz.i18n.t('runtime.uiLogic.logicalNodeOperation', { name }), param);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"end-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/end-node/end-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IAC9B,KAAK,EAAE,aAAa,CAAC;IAEvB,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"end-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/end-node/end-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IAC9B,KAAK,EAAE,aAAa,CAAC;IAEvB,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAuC/C"}
|
|
@@ -33,8 +33,11 @@ export class EndNode extends UILogicNode {
|
|
|
33
33
|
case 'LOGICPARAMFIELD': // 逻辑参数属性
|
|
34
34
|
case 'BREAK': // 跳出循环(BREAK)
|
|
35
35
|
default:
|
|
36
|
-
throw new ModelError(this.model,
|
|
36
|
+
throw new ModelError(this.model, ibiz.i18n.t('runtime.uiLogic.unsupportedEndNode', { returnType }));
|
|
37
37
|
}
|
|
38
|
-
ibiz.log.debug(
|
|
38
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeEndNode', {
|
|
39
|
+
id: this.model.id,
|
|
40
|
+
returnType,
|
|
41
|
+
}), ctx.result);
|
|
39
42
|
}
|
|
40
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-de-logic-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACzC,KAAK,EAAE,iBAAiB,CAAC;IAE3B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"execute-de-logic-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACzC,KAAK,EAAE,iBAAiB,CAAC;IAE3B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CA2D/C"}
|
|
@@ -15,17 +15,17 @@ export class ExecuteDELogicNode extends UILogicNode {
|
|
|
15
15
|
const { dstAppDELogicId, dstAppDataEntityId, dstDEUILogicParamId, retDEUILogicParamId, } = this.model;
|
|
16
16
|
// 配置报错
|
|
17
17
|
if (!dstAppDataEntityId) {
|
|
18
|
-
throw new RuntimeModelError(this.model, '
|
|
18
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.noEntityConfigured'));
|
|
19
19
|
}
|
|
20
20
|
if (!dstAppDELogicId) {
|
|
21
|
-
throw new RuntimeModelError(this.model, '
|
|
21
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.noEntityLogicConfigured'));
|
|
22
22
|
}
|
|
23
23
|
if (!dstDEUILogicParamId) {
|
|
24
|
-
throw new RuntimeModelError(this.model, '
|
|
24
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.noIncomingLogic'));
|
|
25
25
|
}
|
|
26
26
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
27
27
|
if (!dstParam) {
|
|
28
|
-
throw new RuntimeError(
|
|
28
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiLogic.passedParameter', { dstDEUILogicParamId }));
|
|
29
29
|
}
|
|
30
30
|
const result = await execDELogicById(dstAppDELogicId, dstAppDataEntityId, ctx.context, dstParam, ctx.params);
|
|
31
31
|
// 如果有返回值参数返回值填入。
|
|
@@ -33,6 +33,11 @@ export class ExecuteDELogicNode extends UILogicNode {
|
|
|
33
33
|
ctx.params[retDEUILogicParamId] = result;
|
|
34
34
|
ctx.setLastReturn(ctx.params[retDEUILogicParamId]);
|
|
35
35
|
}
|
|
36
|
-
ibiz.log.debug(
|
|
36
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeExecutingEntityLogic', {
|
|
37
|
+
id: this.model.id,
|
|
38
|
+
dstAppDELogicId,
|
|
39
|
+
dstAppDataEntityId,
|
|
40
|
+
retDEUILogicParamId,
|
|
41
|
+
}), result);
|
|
37
42
|
}
|
|
38
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"msg-box-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/msg-box-node/msg-box-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACjC,KAAK,EAAE,gBAAgB,CAAC;IAEhC,SAAS,CAAC,OAAO;;;;;MAKN;IAEL,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"msg-box-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/msg-box-node/msg-box-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACjC,KAAK,EAAE,gBAAgB,CAAC;IAEhC,SAAS,CAAC,OAAO;;;;;MAKN;IAEL,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CA+E/C"}
|
|
@@ -22,10 +22,10 @@ export class MsgBoxNode extends UILogicNode {
|
|
|
22
22
|
async exec(ctx) {
|
|
23
23
|
const { msgBoxType, buttonsType, msgBoxParamId } = this.model;
|
|
24
24
|
if (!msgBoxType) {
|
|
25
|
-
throw new RuntimeModelError(this.model, '
|
|
25
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.missingMessageTypeConfiguration'));
|
|
26
26
|
}
|
|
27
27
|
if (!buttonsType) {
|
|
28
|
-
throw new RuntimeModelError(this.model, '
|
|
28
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.missingButtonTypeConfiguration'));
|
|
29
29
|
}
|
|
30
30
|
// 处理标题和内容
|
|
31
31
|
let { title, message } = this.model;
|
|
@@ -42,36 +42,42 @@ export class MsgBoxNode extends UILogicNode {
|
|
|
42
42
|
const type = this.typeMap[msgBoxType];
|
|
43
43
|
const modalParams = {
|
|
44
44
|
type,
|
|
45
|
-
title: title || '
|
|
45
|
+
title: title || ibiz.i18n.t('runtime.uiLogic.message'),
|
|
46
46
|
desc: message,
|
|
47
47
|
};
|
|
48
48
|
let resultTags = [];
|
|
49
49
|
// 处理按钮类型
|
|
50
50
|
switch (buttonsType) {
|
|
51
51
|
case 'YESNO':
|
|
52
|
-
modalParams.confirmButtonText = '
|
|
53
|
-
modalParams.cancelButtonText = '
|
|
52
|
+
modalParams.confirmButtonText = ibiz.i18n.t('runtime.uiLogic.yes');
|
|
53
|
+
modalParams.cancelButtonText = ibiz.i18n.t('runtime.uiLogic.no');
|
|
54
54
|
modalParams.showConfirmButton = true;
|
|
55
55
|
modalParams.showCancelButton = true;
|
|
56
56
|
resultTags = ['yes', 'no'];
|
|
57
57
|
break;
|
|
58
58
|
case 'OK':
|
|
59
|
-
modalParams.confirmButtonText = '
|
|
59
|
+
modalParams.confirmButtonText = ibiz.i18n.t('control.common.determine');
|
|
60
60
|
modalParams.showConfirmButton = true;
|
|
61
61
|
modalParams.showCancelButton = false;
|
|
62
62
|
resultTags = ['ok'];
|
|
63
63
|
break;
|
|
64
64
|
case 'OKCANCEL':
|
|
65
|
-
modalParams.confirmButtonText = '
|
|
66
|
-
modalParams.cancelButtonText = '
|
|
65
|
+
modalParams.confirmButtonText = ibiz.i18n.t('control.common.determine');
|
|
66
|
+
modalParams.cancelButtonText = ibiz.i18n.t('app.cancel');
|
|
67
67
|
modalParams.showConfirmButton = true;
|
|
68
68
|
modalParams.showCancelButton = true;
|
|
69
69
|
resultTags = ['ok', 'cancel'];
|
|
70
70
|
break;
|
|
71
71
|
default:
|
|
72
|
-
throw new ModelError(this.model,
|
|
72
|
+
throw new ModelError(this.model, ibiz.i18n.t('control.common.noSupportItem', {
|
|
73
|
+
name: buttonsType,
|
|
74
|
+
}));
|
|
73
75
|
}
|
|
74
|
-
ibiz.log.debug(
|
|
76
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeMessagePopup', {
|
|
77
|
+
id: this.model.id,
|
|
78
|
+
type,
|
|
79
|
+
message,
|
|
80
|
+
}));
|
|
75
81
|
const result = await ibiz.modal.confirm(modalParams);
|
|
76
82
|
ctx.setLastReturn(resultTags[result ? 0 : 1]);
|
|
77
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pf-plugin-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IACnC,KAAK,EAAE,kBAAkB,CAAC;IAE5B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"pf-plugin-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IACnC,KAAK,EAAE,kBAAkB,CAAC;IAE5B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAY/C"}
|
|
@@ -11,7 +11,10 @@ import { getUILogicNodeProvider } from '../../../register';
|
|
|
11
11
|
*/
|
|
12
12
|
export class PFPluginNode extends UILogicNode {
|
|
13
13
|
async exec(ctx) {
|
|
14
|
-
ibiz.log.debug(
|
|
14
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeFrontendPlugin', {
|
|
15
|
+
id: this.model.id,
|
|
16
|
+
sysPFPluginId: this.model.sysPFPluginId,
|
|
17
|
+
}));
|
|
15
18
|
const provider = await getUILogicNodeProvider(this.model);
|
|
16
19
|
if (provider) {
|
|
17
20
|
await provider.exec(this.model, ctx);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-js-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IAC3C,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"prepare-js-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IAC3C,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA6D9C;;;;;;;OAOG;IACH,SAAS,CAAC,aAAa,CACrB,SAAS,EAAE,mBAAmB,EAC9B,GAAG,EAAE,cAAc,GAClB,IAAI;IAwCP;;;;;;;;OAQG;IACH,SAAS,CAAC,SAAS,CACjB,SAAS,EAAE,mBAAmB,EAC9B,GAAG,EAAE,cAAc,GAClB,IAAI;IAMP;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,CACjB,SAAS,EAAE,mBAAmB,EAC9B,GAAG,EAAE,cAAc,GAClB,IAAI;IAKP;;;;;;;OAOG;IACH,SAAS,CAAC,UAAU,CAClB,SAAS,EAAE,mBAAmB,EAC9B,GAAG,EAAE,cAAc,GAClB,IAAI;IAKP;;;;;;;OAOG;IACH,SAAS,CAAC,UAAU,CAClB,SAAS,EAAE,mBAAmB,EAC9B,GAAG,EAAE,cAAc,GAClB,IAAI;IAKP;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,CACnB,SAAS,EAAE,mBAAmB,EAC9B,GAAG,EAAE,cAAc,GAClB,IAAI;IAaP;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,CACjB,SAAS,EAAE,mBAAmB,EAC9B,GAAG,EAAE,cAAc,GAClB,IAAI;CAQR"}
|
|
@@ -55,9 +55,15 @@ export class PrepareJSParamNode extends UILogicNode {
|
|
|
55
55
|
await this.sortParam(nodeParam, ctx);
|
|
56
56
|
break;
|
|
57
57
|
default:
|
|
58
|
-
throw new ModelError(nodeParam,
|
|
58
|
+
throw new ModelError(nodeParam, ibiz.i18n.t('runtime.deLogic.deLogicNode.noSupportedLogic', {
|
|
59
|
+
paramAction: nodeParam.paramAction,
|
|
60
|
+
}));
|
|
59
61
|
}
|
|
60
|
-
ibiz.log.debug(
|
|
62
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodePreparationParameter', {
|
|
63
|
+
id: this.model.id,
|
|
64
|
+
paramAction: nodeParam.paramAction,
|
|
65
|
+
dstDEUILogicParamId: nodeParam.dstDEUILogicParamId,
|
|
66
|
+
}), originValue, ibiz.i18n.t('runtime.deLogic.deLogicNode.targetParameter'), ctx.params[nodeParam.dstDEUILogicParamId]);
|
|
61
67
|
}
|
|
62
68
|
}
|
|
63
69
|
/**
|
|
@@ -71,7 +77,7 @@ export class PrepareJSParamNode extends UILogicNode {
|
|
|
71
77
|
setParamValue(nodeParam, ctx) {
|
|
72
78
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
73
79
|
if (!dstDEUILogicParamId) {
|
|
74
|
-
throw new RuntimeError('
|
|
80
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiLogic.noTargetParameter'));
|
|
75
81
|
}
|
|
76
82
|
// 目标参数
|
|
77
83
|
let dstField = dstFieldName;
|
|
@@ -90,7 +96,7 @@ export class PrepareJSParamNode extends UILogicNode {
|
|
|
90
96
|
});
|
|
91
97
|
}
|
|
92
98
|
catch (error) {
|
|
93
|
-
ibiz.log.error(
|
|
99
|
+
ibiz.log.error(ibiz.i18n.t('runtime.uiLogic.targetParameter', { dstFieldName }), ctx.params[dstDEUILogicParamId]);
|
|
94
100
|
throw error;
|
|
95
101
|
}
|
|
96
102
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raw-js-code-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,qBAAa,aAAc,SAAQ,WAAW;IACpC,KAAK,EAAE,iBAAiB,CAAC;IAE3B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"raw-js-code-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,qBAAa,aAAc,SAAQ,WAAW;IACpC,KAAK,EAAE,iBAAiB,CAAC;IAE3B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAkB/C"}
|
|
@@ -2,7 +2,9 @@ import { ScriptFactory } from '../../../utils';
|
|
|
2
2
|
import { UILogicNode } from '../ui-logic-node';
|
|
3
3
|
export class RawJSCodeNode extends UILogicNode {
|
|
4
4
|
async exec(ctx) {
|
|
5
|
-
ibiz.log.debug(
|
|
5
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeDirectCode', {
|
|
6
|
+
id: this.model.id,
|
|
7
|
+
}), this.model.code);
|
|
6
8
|
ScriptFactory.execScriptFn({
|
|
7
9
|
view: ctx.view,
|
|
8
10
|
context: ctx.context,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renew-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/renew-param-node/renew-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,WAAW;IACrC,KAAK,EAAE,oBAAoB,CAAC;IAE9B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"renew-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/renew-param-node/renew-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,WAAW;IACrC,KAAK,EAAE,oBAAoB,CAAC;IAE9B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAiB/C"}
|
|
@@ -13,10 +13,13 @@ export class RenewParamNode extends UILogicNode {
|
|
|
13
13
|
async exec(ctx) {
|
|
14
14
|
const { dstDEUILogicParamId } = this.model;
|
|
15
15
|
if (!dstDEUILogicParamId) {
|
|
16
|
-
throw new RuntimeModelError(this.model, '
|
|
16
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.deLogic.deLogicNode.missingConfiguration'));
|
|
17
17
|
}
|
|
18
18
|
ctx.renewParam(dstDEUILogicParamId);
|
|
19
19
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
20
|
-
ibiz.log.debug(
|
|
20
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeRebuildParameter', {
|
|
21
|
+
id: this.model.id,
|
|
22
|
+
dstDEUILogicParamId,
|
|
23
|
+
}));
|
|
21
24
|
}
|
|
22
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/reset-param-node/reset-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,WAAW;IACrC,KAAK,EAAE,oBAAoB,CAAC;IAE9B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"reset-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/reset-param-node/reset-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,WAAW;IACrC,KAAK,EAAE,oBAAoB,CAAC;IAE9B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAiB/C"}
|
|
@@ -13,10 +13,13 @@ export class ResetParamNode extends UILogicNode {
|
|
|
13
13
|
async exec(ctx) {
|
|
14
14
|
const { dstDEUILogicParamId } = this.model;
|
|
15
15
|
if (!dstDEUILogicParamId) {
|
|
16
|
-
throw new RuntimeModelError(this.model, '
|
|
16
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.deLogic.deLogicNode.missingConfiguration'));
|
|
17
17
|
}
|
|
18
18
|
ctx.resetParam(dstDEUILogicParamId);
|
|
19
19
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
20
|
-
ibiz.log.debug(
|
|
20
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeResetParameter', {
|
|
21
|
+
id: this.model.id,
|
|
22
|
+
dstDEUILogicParamId,
|
|
23
|
+
}));
|
|
21
24
|
}
|
|
22
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/sort-param-node/sort-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,aAAc,SAAQ,WAAW;IACpC,KAAK,EAAE,mBAAmB,CAAC;IAE7B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"sort-param-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/sort-param-node/sort-param-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,aAAc,SAAQ,WAAW;IACpC,KAAK,EAAE,mBAAmB,CAAC;IAE7B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CA0B/C"}
|
|
@@ -13,7 +13,7 @@ export class SortParamNode extends UILogicNode {
|
|
|
13
13
|
async exec(ctx) {
|
|
14
14
|
const { dstDEUILogicParamId, dstSortDir, dstFieldName } = this.model;
|
|
15
15
|
if (!dstDEUILogicParamId || !dstFieldName) {
|
|
16
|
-
throw new RuntimeModelError(this.model, '
|
|
16
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.deLogic.deLogicNode.missingParameterProperty'));
|
|
17
17
|
}
|
|
18
18
|
const key = dstFieldName;
|
|
19
19
|
const arr = ctx.params[dstDEUILogicParamId];
|
|
@@ -21,6 +21,11 @@ export class SortParamNode extends UILogicNode {
|
|
|
21
21
|
return dstSortDir === 'ASC' ? a[key] - b[key] : b[key] - a[key];
|
|
22
22
|
});
|
|
23
23
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
24
|
-
ibiz.log.debug(
|
|
24
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeSortedArrayParameters', {
|
|
25
|
+
id: this.model.id,
|
|
26
|
+
dstFieldName,
|
|
27
|
+
dstSortDir,
|
|
28
|
+
dstDEUILogicParamId,
|
|
29
|
+
}), arr);
|
|
25
30
|
}
|
|
26
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/start-node/start-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,SAAU,SAAQ,WAAW;IAClC,IAAI,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"start-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/start-node/start-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,SAAU,SAAQ,WAAW;IAClC,IAAI,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAQhD"}
|
|
@@ -11,6 +11,8 @@ import { UILogicNode } from '../ui-logic-node';
|
|
|
11
11
|
export class StartNode extends UILogicNode {
|
|
12
12
|
async exec(_ctx) {
|
|
13
13
|
// 启动节点,无任何操作
|
|
14
|
-
ibiz.log.debug(
|
|
14
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeStartupNode', {
|
|
15
|
+
id: this.model.id,
|
|
16
|
+
}));
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"throw-exception-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACzC,KAAK,EAAE,wBAAwB,CAAC;IAElC,IAAI,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"throw-exception-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACzC,KAAK,EAAE,wBAAwB,CAAC;IAElC,IAAI,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAUhD"}
|
|
@@ -12,7 +12,10 @@ import { UILogicNode } from '../ui-logic-node';
|
|
|
12
12
|
export class ThrowExceptionNode extends UILogicNode {
|
|
13
13
|
async exec(_ctx) {
|
|
14
14
|
const { errorInfo } = this.model;
|
|
15
|
-
ibiz.log.debug(
|
|
15
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeThrowingExceptions', {
|
|
16
|
+
id: this.model.id,
|
|
17
|
+
errorInfo,
|
|
18
|
+
}));
|
|
16
19
|
throw new RuntimeError(errorInfo);
|
|
17
20
|
}
|
|
18
21
|
}
|
package/out/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-ctrl-fire-event-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;GAOG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IAC5C,KAAK,EAAE,uBAAuB,CAAC;IAEjC,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"view-ctrl-fire-event-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;GAOG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IAC5C,KAAK,EAAE,uBAAuB,CAAC;IAEjC,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAwD/C"}
|
|
@@ -14,23 +14,29 @@ export class ViewCtrlFireEventNode extends UILogicNode {
|
|
|
14
14
|
const { eventName, eventParamId, fireCtrlId } = this.model;
|
|
15
15
|
// 配置报错
|
|
16
16
|
if (!fireCtrlId) {
|
|
17
|
-
throw new RuntimeModelError(this.model, '
|
|
17
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.noConfiguredTriggerObject'));
|
|
18
18
|
}
|
|
19
19
|
if (!eventName) {
|
|
20
|
-
throw new RuntimeModelError(this.model, '
|
|
20
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.noConfiguredEvent'));
|
|
21
21
|
}
|
|
22
22
|
if (!eventParamId) {
|
|
23
|
-
throw new RuntimeModelError(this.model, '
|
|
23
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.noConfiguredEventParameters'));
|
|
24
24
|
}
|
|
25
25
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
26
26
|
if (!invokeCtrl) {
|
|
27
|
-
throw new RuntimeError(
|
|
27
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiLogic.noFoundTriggerObject', { fireCtrlId }));
|
|
28
28
|
}
|
|
29
29
|
const eventParam = ctx.params[eventParamId];
|
|
30
30
|
if (!eventParam) {
|
|
31
|
-
throw new RuntimeError(
|
|
31
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiLogic.noFoundEventParameterObject', {
|
|
32
|
+
eventParamId,
|
|
33
|
+
}));
|
|
32
34
|
}
|
|
33
|
-
ibiz.log.debug(
|
|
35
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeViewWidgetEventTriggerLogic', {
|
|
36
|
+
id: this.model.id,
|
|
37
|
+
fireCtrlId,
|
|
38
|
+
eventName,
|
|
39
|
+
}), eventParam);
|
|
34
40
|
// 触发部件事件
|
|
35
41
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36
42
|
await invokeCtrl.evt.emit(eventName, eventParam);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-ctrl-invoke-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;GAOG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACzC,KAAK,EAAE,oBAAoB,CAAC;IAE9B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"view-ctrl-invoke-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;;;GAOG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACzC,KAAK,EAAE,oBAAoB,CAAC;IAE9B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CA6D/C"}
|
|
@@ -15,26 +15,36 @@ export class ViewCtrlInvokeNode extends UILogicNode {
|
|
|
15
15
|
const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
|
|
16
16
|
// 配置报错
|
|
17
17
|
if (!invokeCtrlId) {
|
|
18
|
-
throw new RuntimeModelError(this.model, '
|
|
18
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.noConfiguredInterfaceObject'));
|
|
19
19
|
}
|
|
20
20
|
if (!invokeParamId) {
|
|
21
|
-
throw new RuntimeModelError(this.model, '
|
|
21
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.noConfiguredOperatingParameters'));
|
|
22
22
|
}
|
|
23
23
|
if (!invokeMethod) {
|
|
24
|
-
throw new RuntimeModelError(this.model, '
|
|
24
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.noConfiguredCallMethod'));
|
|
25
25
|
}
|
|
26
26
|
const invokeParam = ctx.params[invokeParamId];
|
|
27
27
|
if (!invokeParam) {
|
|
28
|
-
throw new RuntimeError(
|
|
28
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiLogic.noFoundOperationParameter', {
|
|
29
|
+
invokeParamId,
|
|
30
|
+
}));
|
|
29
31
|
}
|
|
30
32
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
31
33
|
if (!invokeCtrl) {
|
|
32
|
-
throw new RuntimeError(
|
|
34
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiLogic.noFoundInterfaceObject', {
|
|
35
|
+
invokeCtrlId,
|
|
36
|
+
}));
|
|
33
37
|
}
|
|
34
38
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
35
|
-
throw new RuntimeError(
|
|
39
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiLogic.noFoundInvokeMethod', {
|
|
40
|
+
invokeMethod,
|
|
41
|
+
}));
|
|
36
42
|
}
|
|
37
|
-
ibiz.log.debug(
|
|
43
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeViewWidgetInvocation', {
|
|
44
|
+
id: this.model.id,
|
|
45
|
+
invokeCtrlId,
|
|
46
|
+
invokeMethod,
|
|
47
|
+
}), invokeParam);
|
|
38
48
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
39
49
|
}
|
|
40
50
|
}
|