@ibiz-template/runtime 0.0.3-beta.5 → 0.0.3-beta.6
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/system/index.system.js +1 -1
- package/out/controller/control/dataview.d.ts +1 -1
- package/out/controller/control/dataview.d.ts.map +1 -1
- package/out/controller/control/dataview.js +2 -2
- package/out/controller/control/form/form-detail.d.ts.map +1 -1
- package/out/controller/control/form/form-detail.js +1 -0
- package/out/controller/control/form/form-group-panel.d.ts +20 -0
- package/out/controller/control/form/form-group-panel.d.ts.map +1 -1
- package/out/controller/control/form/form-group-panel.js +60 -0
- package/out/controller/control/form/form.d.ts +3 -3
- package/out/controller/control/form/form.d.ts.map +1 -1
- package/out/controller/control/grid/grid-field-column.js +1 -1
- package/out/controller/control/grid/grid.d.ts.map +1 -1
- package/out/controller/control/grid/grid.js +18 -0
- package/out/controller/control/index.d.ts +1 -1
- package/out/controller/control/index.d.ts.map +1 -1
- package/out/controller/control/index.js +1 -1
- package/out/controller/control/kanban.d.ts +1 -1
- package/out/controller/control/kanban.d.ts.map +1 -1
- package/out/controller/control/kanban.js +12 -6
- package/out/controller/control/list.d.ts +1 -1
- package/out/controller/control/list.d.ts.map +1 -1
- package/out/controller/control/list.js +2 -2
- package/out/controller/control/md/md.d.ts +10 -19
- package/out/controller/control/md/md.d.ts.map +1 -1
- package/out/controller/control/md/md.js +29 -42
- package/out/controller/control/panel/index.d.ts +4 -1
- package/out/controller/control/panel/index.d.ts.map +1 -1
- package/out/controller/control/panel/index.js +4 -1
- package/out/controller/control/panel/panel-button.d.ts +1 -10
- package/out/controller/control/panel/panel-button.d.ts.map +1 -1
- package/out/controller/control/panel/panel-button.js +3 -12
- package/out/controller/control/panel/panel-control.d.ts +23 -0
- package/out/controller/control/panel/panel-control.d.ts.map +1 -0
- package/out/controller/control/panel/panel-control.js +16 -0
- package/out/controller/control/panel/panel-ctrl-pos.d.ts +14 -0
- package/out/controller/control/panel/panel-ctrl-pos.d.ts.map +1 -0
- package/out/controller/control/panel/panel-ctrl-pos.js +12 -0
- package/out/controller/control/panel/panel-item.d.ts +5 -5
- package/out/controller/control/panel/panel-item.d.ts.map +1 -1
- package/out/controller/control/panel/panel-user-control.d.ts +14 -0
- package/out/controller/control/panel/panel-user-control.d.ts.map +1 -0
- package/out/controller/control/panel/panel-user-control.js +12 -0
- package/out/controller/control/panel/{layout-panel.d.ts → panel.d.ts} +17 -17
- package/out/controller/control/panel/panel.d.ts.map +1 -0
- package/out/controller/control/panel/{layout-panel.js → panel.js} +12 -12
- package/out/controller/control/panel/view-layout-panel.d.ts +3 -4
- package/out/controller/control/panel/view-layout-panel.d.ts.map +1 -1
- package/out/controller/control/panel/view-layout-panel.js +3 -6
- package/out/controller/control/pickup-view-panel.d.ts +2 -2
- package/out/controller/control/pickup-view-panel.d.ts.map +1 -1
- package/out/controller/control/pickup-view-panel.js +1 -1
- package/out/controller/control/portlet/portlet-part.d.ts +1 -1
- package/out/controller/control/portlet/portlet-part.d.ts.map +1 -1
- package/out/controller/control/portlet/portlet-part.js +10 -4
- package/out/controller/editor/autocomplete.d.ts +5 -5
- package/out/controller/editor/autocomplete.d.ts.map +1 -1
- package/out/controller/editor/autocomplete.js +3 -3
- package/out/controller/editor/date-range.d.ts +27 -0
- package/out/controller/editor/date-range.d.ts.map +1 -0
- package/out/controller/editor/date-range.js +24 -0
- package/out/controller/editor/editor.d.ts +0 -3
- package/out/controller/editor/editor.d.ts.map +1 -1
- package/out/controller/editor/editor.js +0 -16
- package/out/controller/editor/index.d.ts +1 -0
- package/out/controller/editor/index.d.ts.map +1 -1
- package/out/controller/editor/index.js +1 -0
- package/out/controller/editor/list-box-picker.d.ts +3 -3
- package/out/controller/editor/list-box-picker.d.ts.map +1 -1
- package/out/controller/editor/list-box-picker.js +2 -2
- package/out/controller/editor/picker.d.ts +6 -6
- package/out/controller/editor/picker.d.ts.map +1 -1
- package/out/controller/editor/picker.js +3 -3
- package/out/controller/editor/span.d.ts +17 -1
- package/out/controller/editor/span.d.ts.map +1 -1
- package/out/controller/editor/span.js +41 -0
- package/out/controller/interface/ability/control/i-main-control-ability.d.ts +2 -2
- package/out/controller/interface/ability/control/i-main-control-ability.d.ts.map +1 -1
- package/out/controller/interface/ability/control/i-md-control-ability.d.ts +4 -4
- package/out/controller/interface/ability/control/i-md-control-ability.d.ts.map +1 -1
- package/out/controller/interface/ability/control/i-panel-ability.d.ts +11 -0
- package/out/controller/interface/ability/control/i-panel-ability.d.ts.map +1 -0
- package/out/controller/interface/ability/control/i-pickup-view-panel-ability.d.ts +2 -2
- package/out/controller/interface/ability/control/i-pickup-view-panel-ability.d.ts.map +1 -1
- package/out/controller/interface/ability/control/i-view-layout-panel-ability.d.ts +2 -2
- package/out/controller/interface/ability/control/i-view-layout-panel-ability.d.ts.map +1 -1
- package/out/controller/interface/ability/control/index.d.ts +1 -1
- package/out/controller/interface/ability/control/index.d.ts.map +1 -1
- package/out/controller/interface/ability/control/index.js +1 -1
- package/out/controller/interface/ability/view/i-pickup-grid-view-ability.d.ts +2 -2
- package/out/controller/interface/ability/view/i-pickup-grid-view-ability.d.ts.map +1 -1
- package/out/controller/interface/event/common/i-view-data-change-event.d.ts +2 -2
- package/out/controller/interface/event/common/i-view-data-change-event.d.ts.map +1 -1
- package/out/controller/interface/event/control/i-form-event.d.ts +2 -2
- package/out/controller/interface/event/control/i-form-event.d.ts.map +1 -1
- package/out/controller/interface/event/control/i-grid-event.d.ts +2 -2
- package/out/controller/interface/event/control/i-grid-event.d.ts.map +1 -1
- package/out/controller/interface/event/control/i-md-control-event.d.ts +8 -8
- package/out/controller/interface/event/control/i-md-control-event.d.ts.map +1 -1
- package/out/controller/interface/event/control/i-panel-event.d.ts +11 -0
- package/out/controller/interface/event/control/i-panel-event.d.ts.map +1 -0
- package/out/controller/interface/event/control/i-pickup-view-panel-event.d.ts +4 -4
- package/out/controller/interface/event/control/i-pickup-view-panel-event.d.ts.map +1 -1
- package/out/controller/interface/event/control/i-view-layout-panel-event.d.ts +2 -2
- package/out/controller/interface/event/control/i-view-layout-panel-event.d.ts.map +1 -1
- package/out/controller/interface/event/control/index.d.ts +1 -1
- package/out/controller/interface/event/control/index.d.ts.map +1 -1
- package/out/controller/interface/event/control/index.js +1 -1
- package/out/controller/interface/event/view/i-pickup-grid-view-event.d.ts +2 -2
- package/out/controller/interface/event/view/i-pickup-grid-view-event.d.ts.map +1 -1
- package/out/controller/interface/event/view/i-view-event.d.ts +2 -2
- package/out/controller/interface/event/view/i-view-event.d.ts.map +1 -1
- package/out/controller/interface/provider/i-panel-item-provider.d.ts +2 -2
- package/out/controller/interface/provider/i-panel-item-provider.d.ts.map +1 -1
- package/out/controller/neuron/nerve/control/daraview-nerve.d.ts +3 -3
- package/out/controller/neuron/nerve/control/edit-form-nerve.d.ts +2 -2
- package/out/controller/neuron/nerve/control/form-nerve.d.ts +2 -2
- package/out/controller/neuron/nerve/control/grid-nerve.d.ts +3 -3
- package/out/controller/neuron/nerve/control/index.d.ts +1 -1
- package/out/controller/neuron/nerve/control/index.d.ts.map +1 -1
- package/out/controller/neuron/nerve/control/index.js +1 -1
- package/out/controller/neuron/nerve/control/md-control-nerve.d.ts +3 -3
- package/out/controller/neuron/nerve/control/panel-nerve.d.ts +20 -0
- package/out/controller/neuron/nerve/control/panel-nerve.d.ts.map +1 -0
- package/out/controller/neuron/nerve/control/{layout-panel-nerve.js → panel-nerve.js} +5 -5
- package/out/controller/neuron/nerve/control/pickup-view-panel-nerve.d.ts +1 -1
- package/out/controller/neuron/nerve/control/search-form-nerve.d.ts +2 -2
- package/out/controller/neuron/nerve/control/view-layout-panel-nerve.d.ts +2 -3
- package/out/controller/neuron/nerve/control/view-layout-panel-nerve.d.ts.map +1 -1
- package/out/controller/neuron/nerve/control/view-layout-panel-nerve.js +2 -3
- package/out/controller/neuron/nerve/view/pickup-grid-view-nerve.d.ts +1 -1
- package/out/controller/neuron/neuron/widget.d.ts +3 -3
- package/out/controller/neuron/neuron/widget.d.ts.map +1 -1
- package/out/controller/neuron/neuron/widget.js +1 -1
- package/out/controller/state/control/dataview-state.d.ts +1 -1
- package/out/controller/state/control/dataview-state.d.ts.map +1 -1
- package/out/controller/state/control/form/form-detail/form-button-state.d.ts +0 -2
- package/out/controller/state/control/form/form-detail/form-button-state.d.ts.map +1 -1
- package/out/controller/state/control/form/form-detail/form-button-state.js +0 -4
- package/out/controller/state/control/form/form-detail/form-container-state.d.ts +9 -2
- package/out/controller/state/control/form/form-detail/form-container-state.d.ts.map +1 -1
- package/out/controller/state/control/form/form-detail/form-container-state.js +7 -0
- package/out/controller/state/control/form/form-detail/form-detail-state.d.ts +10 -2
- package/out/controller/state/control/form/form-detail/form-detail-state.d.ts.map +1 -1
- package/out/controller/state/control/form/form-detail/form-detail-state.js +19 -3
- package/out/controller/state/control/form/form-detail/form-druipart-state.d.ts +0 -2
- package/out/controller/state/control/form/form-detail/form-druipart-state.d.ts.map +1 -1
- package/out/controller/state/control/form/form-detail/form-druipart-state.js +0 -4
- package/out/controller/state/control/form/form-detail/form-group-panel-state.d.ts +8 -0
- package/out/controller/state/control/form/form-detail/form-group-panel-state.d.ts.map +1 -1
- package/out/controller/state/control/form/form-detail/form-group-panel-state.js +10 -0
- package/out/controller/state/control/form/form-detail/form-item-state.d.ts +3 -2
- package/out/controller/state/control/form/form-detail/form-item-state.d.ts.map +1 -1
- package/out/controller/state/control/form/form-detail/form-raw-item-state.d.ts +0 -2
- package/out/controller/state/control/form/form-detail/form-raw-item-state.d.ts.map +1 -1
- package/out/controller/state/control/form/form-detail/form-raw-item-state.js +0 -4
- package/out/controller/state/control/form/form-detail/form-tab-page-state.d.ts +0 -2
- package/out/controller/state/control/form/form-detail/form-tab-page-state.d.ts.map +1 -1
- package/out/controller/state/control/form/form-detail/form-tab-page-state.js +0 -4
- package/out/controller/state/control/form/form-detail/form-tab-panel-state.d.ts +0 -2
- package/out/controller/state/control/form/form-detail/form-tab-panel-state.d.ts.map +1 -1
- package/out/controller/state/control/form/form-detail/form-tab-panel-state.js +0 -4
- package/out/controller/state/control/kanban-state.d.ts +1 -1
- package/out/controller/state/control/kanban-state.d.ts.map +1 -1
- package/out/controller/state/control/list-state.d.ts +1 -1
- package/out/controller/state/control/list-state.d.ts.map +1 -1
- package/out/controller/state/control/md-state.d.ts +2 -2
- package/out/controller/state/control/md-state.d.ts.map +1 -1
- package/out/controller/state/control/md-state.js +1 -1
- package/out/controller/state/control/panel/{layout-panel-state.d.ts → panel-state.d.ts} +5 -5
- package/out/controller/state/control/panel/panel-state.d.ts.map +1 -0
- package/out/controller/state/control/panel/{layout-panel-state.js → panel-state.js} +4 -4
- package/out/controller/state/view/md-view-state.d.ts +2 -2
- package/out/controller/state/view/md-view-state.d.ts.map +1 -1
- package/out/controller/state/view/md-view-state.js +1 -1
- package/out/controller/state/view/mpickup-view-state.d.ts +4 -4
- package/out/controller/state/view/mpickup-view-state.d.ts.map +1 -1
- package/out/controller/state/view/mpickup-view-state.js +2 -2
- package/out/controller/utils/button-state/button-state.d.ts +10 -1
- package/out/controller/utils/button-state/button-state.d.ts.map +1 -1
- package/out/controller/utils/button-state/button-state.js +28 -0
- package/out/controller/utils/value-rule/value-rule.d.ts +2 -2
- package/out/controller/utils/value-rule/value-rule.d.ts.map +1 -1
- package/out/controller/utils/value-rule/value-rule.js +1 -1
- package/out/controller/view/dataview-view.d.ts +1 -1
- package/out/controller/view/dataview-view.d.ts.map +1 -1
- package/out/controller/view/edit-view.d.ts +1 -1
- package/out/controller/view/edit-view.d.ts.map +1 -1
- package/out/controller/view/grid-exp-view.d.ts +2 -2
- package/out/controller/view/grid-exp-view.d.ts.map +1 -1
- package/out/controller/view/grid-exp-view.js +5 -2
- package/out/controller/view/grid-view.d.ts +1 -1
- package/out/controller/view/grid-view.d.ts.map +1 -1
- package/out/controller/view/kanban-view.d.ts +1 -1
- package/out/controller/view/kanban-view.d.ts.map +1 -1
- package/out/controller/view/list-exp-view.d.ts +2 -2
- package/out/controller/view/list-exp-view.d.ts.map +1 -1
- package/out/controller/view/list-exp-view.js +5 -2
- package/out/controller/view/list-view.d.ts +1 -1
- package/out/controller/view/list-view.d.ts.map +1 -1
- package/out/controller/view/md-view.d.ts +8 -8
- package/out/controller/view/md-view.d.ts.map +1 -1
- package/out/controller/view/md-view.js +3 -3
- package/out/controller/view/mpickup-view.d.ts +6 -6
- package/out/controller/view/mpickup-view.d.ts.map +1 -1
- package/out/controller/view/mpickup-view.js +3 -3
- package/out/controller/view/pickup-grid-view.d.ts +4 -4
- package/out/controller/view/pickup-grid-view.d.ts.map +1 -1
- package/out/controller/view/pickup-grid-view.js +2 -2
- package/out/controller/view/pickup-view.d.ts +2 -2
- package/out/controller/view/pickup-view.d.ts.map +1 -1
- package/out/controller/view/pickup-view.js +1 -1
- package/out/controller/view/tree-exp-view.d.ts +1 -1
- package/out/controller/view/tree-exp-view.d.ts.map +1 -1
- package/out/controller/view/view.d.ts +4 -4
- package/out/controller/view/view.d.ts.map +1 -1
- package/out/controller/view/view.js +10 -5
- package/out/de-logic/de-logic-context.d.ts +25 -0
- package/out/de-logic/de-logic-context.d.ts.map +1 -1
- package/out/de-logic/de-logic-context.js +24 -1
- package/out/de-logic/de-logic-node/end-node/end-node.js +1 -0
- package/out/de-logic/de-logic-node/prepare-param-node/prepare-param-node.d.ts +19 -1
- 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 +92 -2
- package/out/de-logic/de-logic.d.ts.map +1 -1
- package/out/de-logic/de-logic.js +11 -2
- package/out/de-logic/index.d.ts +16 -3
- package/out/de-logic/index.d.ts.map +1 -1
- package/out/de-logic/index.js +17 -2
- package/out/index.d.ts +1 -0
- package/out/index.d.ts.map +1 -1
- package/out/index.js +1 -0
- package/out/interface/i-modal/i-modal.d.ts +2 -2
- package/out/interface/i-modal/i-modal.d.ts.map +1 -1
- package/out/interface/i-modal-data/i-modal-data.d.ts +2 -2
- package/out/interface/i-modal-data/i-modal-data.d.ts.map +1 -1
- package/out/interface/i-ui-action-handler/i-ui-action-handler.d.ts +2 -2
- package/out/interface/i-ui-action-handler/i-ui-action-handler.d.ts.map +1 -1
- package/out/interface/i-ui-action-result/i-ui-action-result.d.ts +19 -2
- package/out/interface/i-ui-action-result/i-ui-action-result.d.ts.map +1 -1
- package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts +18 -0
- package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts.map +1 -1
- package/out/plugin/plugin-static-resource/plugin-static-resource.js +36 -0
- package/out/service/authority/authority.service.d.ts.map +1 -1
- package/out/service/authority/authority.service.js +1 -15
- package/out/service/dto/method.dto.d.ts +2 -2
- package/out/service/dto/method.dto.d.ts.map +1 -1
- package/out/service/dto/method.dto.js +1 -1
- package/out/service/service/code-list/code-list.service.d.ts +1 -1
- package/out/service/service/code-list/code-list.service.js +1 -1
- package/out/service/service/entity/method/de-action.d.ts.map +1 -1
- package/out/service/service/entity/method/de-action.js +44 -13
- package/out/service/service/entity/method/fetch.d.ts.map +1 -1
- package/out/service/service/entity/method/fetch.js +14 -0
- package/out/service/service/work-flow/work-flow.service.d.ts +23 -23
- package/out/service/service/work-flow/work-flow.service.d.ts.map +1 -1
- package/out/service/service/work-flow/work-flow.service.js +14 -14
- package/out/service/utils/de-dq-cond/ps-model-cond-engine-base.d.ts +1 -1
- package/out/service/utils/de-dq-cond/ps-model-cond-engine-base.js +1 -1
- package/out/service/vo/index.d.ts +1 -0
- package/out/service/vo/index.d.ts.map +1 -1
- package/out/service/vo/index.js +1 -0
- package/out/ui-logic/index.d.ts +2 -2
- package/out/ui-logic/index.d.ts.map +1 -1
- package/out/ui-logic/index.js +1 -1
- package/out/ui-logic/ui-logic-context.d.ts +17 -0
- package/out/ui-logic/ui-logic-context.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-context.js +17 -0
- package/out/ui-logic/ui-logic-link/ui-logic-link.d.ts +1 -1
- package/out/ui-logic/ui-logic-link/ui-logic-link.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.d.ts +1 -1
- 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-ui-action-node/de-ui-action-node.d.ts +1 -1
- 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/end-node/end-node.d.ts +1 -1
- 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 +1 -0
- package/out/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.d.ts +1 -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/start-node/start-node.d.ts +1 -1
- package/out/ui-logic/ui-logic-node/start-node/start-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/ui-logic-node.d.ts +1 -1
- package/out/ui-logic/ui-logic-node/ui-logic-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts.map +1 -1
- package/out/ui-logic/ui-logic.d.ts +4 -4
- package/out/ui-logic/ui-logic.d.ts.map +1 -1
- package/out/ui-logic/ui-logic.js +11 -2
- package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts +1 -1
- package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts.map +1 -1
- package/out/utils/app-de-ui-action-util/app-de-ui-action-util.js +1 -1
- package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.d.ts +1 -1
- package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.d.ts.map +1 -1
- package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.js +8 -4
- package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.d.ts +1 -1
- package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.d.ts.map +1 -1
- package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.d.ts +1 -1
- package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.d.ts.map +1 -1
- package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.js +4 -4
- package/out/utils/app-de-ui-action-util/handler/ui-action-handler.d.ts +19 -9
- package/out/utils/app-de-ui-action-util/handler/ui-action-handler.d.ts.map +1 -1
- package/out/utils/app-de-ui-action-util/handler/ui-action-handler.js +81 -50
- package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.d.ts +1 -1
- package/out/utils/app-de-ui-action-util/handler/wf-withdraw-handler.d.ts.map +1 -1
- package/out/utils/nav-params/nav-params.js +2 -2
- package/out/utils/open-redirect-view/open-redirect-view.d.ts +3 -3
- package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +1 -1
- package/out/view-logic/view-logic.d.ts +3 -3
- package/out/view-logic/view-logic.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/controller/control/dataview.ts +5 -5
- package/src/controller/control/form/form-detail.ts +2 -0
- package/src/controller/control/form/form-group-panel.ts +80 -0
- package/src/controller/control/form/form-item.ts +1 -1
- package/src/controller/control/form/form.ts +3 -3
- package/src/controller/control/grid/grid-edit-item.ts +1 -1
- package/src/controller/control/grid/grid-field-column.ts +1 -1
- package/src/controller/control/grid/grid.ts +21 -0
- package/src/controller/control/index.ts +1 -1
- package/src/controller/control/kanban.ts +25 -10
- package/src/controller/control/list.ts +5 -5
- package/src/controller/control/md/md.ts +40 -54
- package/src/controller/control/panel/index.ts +4 -1
- package/src/controller/control/panel/panel-button.ts +3 -26
- package/src/controller/control/panel/panel-control.ts +27 -0
- package/src/controller/control/panel/panel-ctrl-pos.ts +13 -0
- package/src/controller/control/panel/panel-item.ts +5 -9
- package/src/controller/control/panel/panel-user-control.ts +13 -0
- package/src/controller/control/panel/{layout-panel.ts → panel.ts} +18 -18
- package/src/controller/control/panel/view-layout-panel.ts +3 -7
- package/src/controller/control/pickup-view-panel.ts +2 -2
- package/src/controller/control/portlet/portlet-part.ts +21 -6
- package/src/controller/editor/autocomplete.ts +7 -7
- package/src/controller/editor/date-range.ts +32 -0
- package/src/controller/editor/editor.ts +0 -19
- package/src/controller/editor/index.ts +1 -0
- package/src/controller/editor/list-box-picker.ts +4 -4
- package/src/controller/editor/picker.ts +7 -7
- package/src/controller/editor/span.ts +54 -1
- package/src/controller/interface/ability/control/i-main-control-ability.ts +2 -2
- package/src/controller/interface/ability/control/i-md-control-ability.ts +4 -4
- package/src/controller/interface/ability/control/{i-layout-panel-ability.ts → i-panel-ability.ts} +3 -3
- package/src/controller/interface/ability/control/i-pickup-view-panel-ability.ts +2 -2
- package/src/controller/interface/ability/control/i-view-layout-panel-ability.ts +2 -2
- package/src/controller/interface/ability/control/index.ts +1 -1
- package/src/controller/interface/ability/view/i-pickup-grid-view-ability.ts +2 -2
- package/src/controller/interface/event/common/i-view-data-change-event.ts +2 -2
- package/src/controller/interface/event/control/i-form-event.ts +2 -2
- package/src/controller/interface/event/control/i-grid-event.ts +2 -2
- package/src/controller/interface/event/control/i-md-control-event.ts +8 -8
- package/src/controller/interface/event/control/{i-layout-panel-event.ts → i-panel-event.ts} +3 -3
- package/src/controller/interface/event/control/i-pickup-view-panel-event.ts +4 -4
- package/src/controller/interface/event/control/i-view-layout-panel-event.ts +2 -2
- package/src/controller/interface/event/control/index.ts +1 -1
- package/src/controller/interface/event/view/i-pickup-grid-view-event.ts +2 -2
- package/src/controller/interface/event/view/i-view-event.ts +2 -2
- package/src/controller/interface/provider/i-panel-item-provider.ts +2 -2
- package/src/controller/neuron/nerve/control/index.ts +1 -1
- package/src/controller/neuron/nerve/control/panel-nerve.ts +27 -0
- package/src/controller/neuron/nerve/control/view-layout-panel-nerve.ts +2 -3
- package/src/controller/neuron/neuron/widget.ts +3 -6
- package/src/controller/state/control/dataview-state.ts +1 -1
- package/src/controller/state/control/form/form-detail/form-button-state.ts +1 -5
- package/src/controller/state/control/form/form-detail/form-container-state.ts +9 -1
- package/src/controller/state/control/form/form-detail/form-detail-state.ts +22 -3
- package/src/controller/state/control/form/form-detail/form-druipart-state.ts +0 -4
- package/src/controller/state/control/form/form-detail/form-group-panel-state.ts +10 -1
- package/src/controller/state/control/form/form-detail/form-item-state.ts +2 -1
- package/src/controller/state/control/form/form-detail/form-raw-item-state.ts +1 -5
- package/src/controller/state/control/form/form-detail/form-tab-page-state.ts +1 -5
- package/src/controller/state/control/form/form-detail/form-tab-panel-state.ts +1 -5
- package/src/controller/state/control/kanban-state.ts +1 -1
- package/src/controller/state/control/list-state.ts +1 -1
- package/src/controller/state/control/md-state.ts +2 -2
- package/src/controller/state/control/panel/{layout-panel-state.ts → panel-state.ts} +4 -4
- package/src/controller/state/view/md-view-state.ts +2 -2
- package/src/controller/state/view/mpickup-view-state.ts +4 -4
- package/src/controller/utils/button-state/button-state.ts +33 -2
- package/src/controller/utils/value-rule/value-rule.ts +3 -3
- package/src/controller/view/dataview-view.ts +1 -1
- package/src/controller/view/edit-view.ts +1 -1
- package/src/controller/view/grid-exp-view.ts +6 -3
- package/src/controller/view/grid-view.ts +1 -1
- package/src/controller/view/kanban-view.ts +1 -1
- package/src/controller/view/list-exp-view.ts +6 -3
- package/src/controller/view/list-view.ts +1 -1
- package/src/controller/view/md-view.ts +7 -7
- package/src/controller/view/mpickup-view.ts +6 -6
- package/src/controller/view/pickup-grid-view.ts +4 -4
- package/src/controller/view/pickup-view.ts +2 -2
- package/src/controller/view/tree-exp-view.ts +1 -1
- package/src/controller/view/view.ts +13 -7
- package/src/de-logic/de-logic-context.ts +28 -0
- package/src/de-logic/de-logic-node/end-node/end-node.ts +1 -1
- package/src/de-logic/de-logic-node/prepare-param-node/prepare-param-node.ts +129 -7
- package/src/de-logic/de-logic.ts +11 -2
- package/src/de-logic/index.ts +28 -6
- package/src/index.ts +1 -0
- package/src/interface/i-modal/i-modal.ts +2 -2
- package/src/interface/i-modal-data/i-modal-data.ts +2 -2
- package/src/interface/i-ui-action-handler/i-ui-action-handler.ts +2 -2
- package/src/interface/i-ui-action-result/i-ui-action-result.ts +22 -2
- package/src/plugin/plugin-static-resource/plugin-static-resource.ts +38 -0
- package/src/service/authority/authority.service.ts +1 -18
- package/src/service/dto/method.dto.ts +4 -4
- package/src/service/service/code-list/code-list.service.ts +1 -1
- package/src/service/service/entity/method/de-action.ts +53 -13
- package/src/service/service/entity/method/fetch.ts +21 -1
- package/src/service/service/widget/md-control-service.ts +2 -2
- package/src/service/service/work-flow/work-flow.service.ts +29 -29
- package/src/service/utils/de-dq-cond/ps-model-cond-engine-base.ts +1 -1
- package/src/service/vo/index.ts +1 -0
- package/src/ui-logic/index.ts +2 -2
- package/src/ui-logic/ui-logic-context.ts +19 -0
- package/src/ui-logic/ui-logic-link/ui-logic-link.ts +1 -1
- package/src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts +1 -1
- package/src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts +1 -1
- package/src/ui-logic/ui-logic-node/end-node/end-node.ts +2 -1
- package/src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts +1 -1
- package/src/ui-logic/ui-logic-node/start-node/start-node.ts +1 -1
- package/src/ui-logic/ui-logic-node/ui-logic-node.ts +1 -1
- package/src/ui-logic/ui-logic-param/ui-logic-param.ts +1 -1
- package/src/ui-logic/ui-logic.ts +14 -5
- package/src/utils/app-de-ui-action-util/app-de-ui-action-util.ts +2 -2
- package/src/utils/app-de-ui-action-util/handler/backend-ui-action-handler.ts +8 -5
- package/src/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.ts +1 -1
- package/src/utils/app-de-ui-action-util/handler/front-ui-action-handler.ts +5 -5
- package/src/utils/app-de-ui-action-util/handler/ui-action-handler.ts +104 -76
- package/src/utils/app-de-ui-action-util/handler/wf-withdraw-handler.ts +1 -1
- package/src/utils/nav-params/nav-params.ts +2 -2
- package/src/utils/open-redirect-view/open-redirect-view.ts +3 -3
- package/src/view-logic/view-logic.ts +3 -3
- package/out/controller/control/panel/layout-panel.d.ts.map +0 -1
- package/out/controller/interface/ability/control/i-layout-panel-ability.d.ts +0 -11
- package/out/controller/interface/ability/control/i-layout-panel-ability.d.ts.map +0 -1
- package/out/controller/interface/event/control/i-layout-panel-event.d.ts +0 -11
- package/out/controller/interface/event/control/i-layout-panel-event.d.ts.map +0 -1
- package/out/controller/neuron/nerve/control/layout-panel-nerve.d.ts +0 -20
- package/out/controller/neuron/nerve/control/layout-panel-nerve.d.ts.map +0 -1
- package/out/controller/state/control/panel/layout-panel-state.d.ts.map +0 -1
- package/src/controller/neuron/nerve/control/layout-panel-nerve.ts +0 -27
- /package/out/controller/interface/ability/control/{i-layout-panel-ability.js → i-panel-ability.js} +0 -0
- /package/out/controller/interface/event/control/{i-layout-panel-event.js → i-panel-event.js} +0 -0
|
@@ -32,9 +32,9 @@ export class GridExpViewController extends MDViewController<GridExpViewModel> {
|
|
|
32
32
|
*
|
|
33
33
|
* @author chitanda
|
|
34
34
|
* @date 2022-12-28 16:12:23
|
|
35
|
-
* @return {*} {Promise<
|
|
35
|
+
* @return {*} {Promise<IDatum[]>}
|
|
36
36
|
*/
|
|
37
|
-
async load(): Promise<
|
|
37
|
+
async load(): Promise<IDatum[]> {
|
|
38
38
|
const { grid } = this.nerve;
|
|
39
39
|
return grid.call.load();
|
|
40
40
|
}
|
|
@@ -93,7 +93,10 @@ export class GridExpViewController extends MDViewController<GridExpViewModel> {
|
|
|
93
93
|
|
|
94
94
|
// 路由模式下跳转视图,变更路由
|
|
95
95
|
if (this.context.isRouter) {
|
|
96
|
-
Object.assign(tempContext, {
|
|
96
|
+
Object.assign(tempContext, {
|
|
97
|
+
toRouteLevel: this.modal.level! + 1,
|
|
98
|
+
currentSrfNav: data.srfkey,
|
|
99
|
+
});
|
|
97
100
|
ibiz.openView.root(grid.navView.source, tempContext, tempParams);
|
|
98
101
|
} else {
|
|
99
102
|
this.state.navItem.context = tempContext;
|
|
@@ -37,7 +37,7 @@ export class GridViewController extends MDViewController<GridViewModel> {
|
|
|
37
37
|
* @date 2022-08-30 19:08:59
|
|
38
38
|
* @returns {*} {Promise<void>}
|
|
39
39
|
*/
|
|
40
|
-
async load(): Promise<
|
|
40
|
+
async load(): Promise<IDatum[]> {
|
|
41
41
|
const { grid } = this.nerve;
|
|
42
42
|
return grid.call.load();
|
|
43
43
|
}
|
|
@@ -35,7 +35,7 @@ export class KanbanViewController extends MDViewController<KanbanViewModel> {
|
|
|
35
35
|
* @date 2022-08-30 19:08:59
|
|
36
36
|
* @returns {*} {Promise<void>}
|
|
37
37
|
*/
|
|
38
|
-
async load(): Promise<
|
|
38
|
+
async load(): Promise<IDatum[]> {
|
|
39
39
|
const { kanban } = this.nerve;
|
|
40
40
|
return kanban.call.load();
|
|
41
41
|
}
|
|
@@ -32,9 +32,9 @@ export class ListExpViewController extends MDViewController<ListExpViewModel> {
|
|
|
32
32
|
*
|
|
33
33
|
* @author chitanda
|
|
34
34
|
* @date 2022-12-28 16:12:23
|
|
35
|
-
* @return {*} {Promise<
|
|
35
|
+
* @return {*} {Promise<IDatum[]>}
|
|
36
36
|
*/
|
|
37
|
-
async load(): Promise<
|
|
37
|
+
async load(): Promise<IDatum[]> {
|
|
38
38
|
const { list } = this.nerve;
|
|
39
39
|
return list.call.load();
|
|
40
40
|
}
|
|
@@ -80,7 +80,10 @@ export class ListExpViewController extends MDViewController<ListExpViewModel> {
|
|
|
80
80
|
|
|
81
81
|
// 路由模式下跳转视图,变更路由
|
|
82
82
|
if (this.context.isRouter) {
|
|
83
|
-
Object.assign(tempContext, {
|
|
83
|
+
Object.assign(tempContext, {
|
|
84
|
+
toRouteLevel: this.modal.level! + 1,
|
|
85
|
+
currentSrfNav: data.srfkey,
|
|
86
|
+
});
|
|
84
87
|
ibiz.openView.root(list.navView.source, tempContext, tempParams);
|
|
85
88
|
} else {
|
|
86
89
|
this.state.navItem.context = tempContext;
|
|
@@ -35,7 +35,7 @@ export class ListViewController extends MDViewController<ListViewModel> {
|
|
|
35
35
|
* @date 2022-08-30 19:08:59
|
|
36
36
|
* @returns {*} {Promise<void>}
|
|
37
37
|
*/
|
|
38
|
-
async load(): Promise<
|
|
38
|
+
async load(): Promise<IDatum[]> {
|
|
39
39
|
const { list } = this.nerve;
|
|
40
40
|
return list.call.load();
|
|
41
41
|
}
|
|
@@ -59,7 +59,7 @@ export class MDViewController<
|
|
|
59
59
|
* @author lxm
|
|
60
60
|
* @date 2022-08-31 11:08:10
|
|
61
61
|
*/
|
|
62
|
-
async load(): Promise<
|
|
62
|
+
async load(): Promise<IDatum[]> {
|
|
63
63
|
// 具体部件调用各自的数据部件加载
|
|
64
64
|
return [];
|
|
65
65
|
}
|
|
@@ -148,9 +148,9 @@ export class MDViewController<
|
|
|
148
148
|
*
|
|
149
149
|
* @author lxm
|
|
150
150
|
* @date 2022-08-28 18:08:50
|
|
151
|
-
* @param {
|
|
151
|
+
* @param {IDatum[]} data 选中的数据集合
|
|
152
152
|
*/
|
|
153
|
-
onSelectionChange(data:
|
|
153
|
+
onSelectionChange(data: IDatum[]) {
|
|
154
154
|
this.state.selectedData = data;
|
|
155
155
|
if (this.state.toolbarState) {
|
|
156
156
|
this.state.toolbarState.update(data[0]?.getOrigin());
|
|
@@ -190,13 +190,13 @@ export class MDViewController<
|
|
|
190
190
|
*
|
|
191
191
|
* @author lxm
|
|
192
192
|
* @date 2022-11-15 18:11:26
|
|
193
|
-
* @param {
|
|
193
|
+
* @param {IDatum[]} data 保存的数据
|
|
194
194
|
* @param {boolean} isCreate 是否是创建
|
|
195
195
|
* @param {string} controlName 部件名称
|
|
196
196
|
* @returns {*} {Promise<void>}
|
|
197
197
|
*/
|
|
198
198
|
async onAfterSave(
|
|
199
|
-
data:
|
|
199
|
+
data: IDatum[],
|
|
200
200
|
isCreate: boolean,
|
|
201
201
|
controlName: string,
|
|
202
202
|
): Promise<void> {
|
|
@@ -212,11 +212,11 @@ export class MDViewController<
|
|
|
212
212
|
*
|
|
213
213
|
* @author lxm
|
|
214
214
|
* @date 2022-11-15 18:11:07
|
|
215
|
-
* @param {
|
|
215
|
+
* @param {IDatum[]} data 删除的数据
|
|
216
216
|
* @param {string} controlName 部件名称
|
|
217
217
|
* @returns {*} {Promise<void>}
|
|
218
218
|
*/
|
|
219
|
-
async onAfterRemove(data:
|
|
219
|
+
async onAfterRemove(data: IDatum[], controlName: string): Promise<void> {
|
|
220
220
|
this.nerve.self.evt.asyncEmit('viewDataChange', {
|
|
221
221
|
type: 'REMOVE',
|
|
222
222
|
data,
|
|
@@ -33,9 +33,9 @@ export class MPickupViewController extends PickupViewController<MPickupViewModel
|
|
|
33
33
|
*
|
|
34
34
|
* @author lxm
|
|
35
35
|
* @date 2022-09-12 01:09:06
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {IDatum[]} data
|
|
37
37
|
*/
|
|
38
|
-
onSelectionChange(data:
|
|
38
|
+
onSelectionChange(data: IDatum[]) {
|
|
39
39
|
this.state.embedSelection = data;
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -57,9 +57,9 @@ export class MPickupViewController extends PickupViewController<MPickupViewModel
|
|
|
57
57
|
*
|
|
58
58
|
* @author lxm
|
|
59
59
|
* @date 2022-09-12 19:09:27
|
|
60
|
-
* @param {
|
|
60
|
+
* @param {IDatum[]} data
|
|
61
61
|
*/
|
|
62
|
-
addSelections(data:
|
|
62
|
+
addSelections(data: IDatum[]) {
|
|
63
63
|
if (data.length > 0) {
|
|
64
64
|
// 去重,过滤已经选中的数据
|
|
65
65
|
const addData = data.filter(item => {
|
|
@@ -76,9 +76,9 @@ export class MPickupViewController extends PickupViewController<MPickupViewModel
|
|
|
76
76
|
*
|
|
77
77
|
* @author lxm
|
|
78
78
|
* @date 2022-09-12 19:09:19
|
|
79
|
-
* @param {
|
|
79
|
+
* @param {IDatum[]} data
|
|
80
80
|
*/
|
|
81
|
-
removeSelections(data:
|
|
81
|
+
removeSelections(data: IDatum[]) {
|
|
82
82
|
if (data.length > 0) {
|
|
83
83
|
data.forEach(item => {
|
|
84
84
|
const findIndex = this.state.selfSelection.findIndex(selection => {
|
|
@@ -22,9 +22,9 @@ export class PickupGridViewController extends GridViewController {
|
|
|
22
22
|
*
|
|
23
23
|
* @author lxm
|
|
24
24
|
* @date 2022-08-28 18:08:50
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {IDatum[]} data 选中的数据集合
|
|
26
26
|
*/
|
|
27
|
-
onSelectionChange(data:
|
|
27
|
+
onSelectionChange(data: IDatum[]) {
|
|
28
28
|
super.onSelectionChange(data);
|
|
29
29
|
this.nerve.self.evt.asyncEmit('selectionChange', this.state.selectedData);
|
|
30
30
|
}
|
|
@@ -34,9 +34,9 @@ export class PickupGridViewController extends GridViewController {
|
|
|
34
34
|
*
|
|
35
35
|
* @author lxm
|
|
36
36
|
* @date 2022-09-12 19:09:12
|
|
37
|
-
* @returns {*} {Promise<
|
|
37
|
+
* @returns {*} {Promise<IDatum[]>}
|
|
38
38
|
*/
|
|
39
|
-
async selectAll(): Promise<
|
|
39
|
+
async selectAll(): Promise<IDatum[]> {
|
|
40
40
|
return this.nerve.grid.call.selectAll();
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -39,9 +39,9 @@ export class PickupViewController<
|
|
|
39
39
|
*
|
|
40
40
|
* @author lxm
|
|
41
41
|
* @date 2022-09-12 01:09:06
|
|
42
|
-
* @param {
|
|
42
|
+
* @param {IDatum[]} data
|
|
43
43
|
*/
|
|
44
|
-
onSelectionChange(data:
|
|
44
|
+
onSelectionChange(data: IDatum[]) {
|
|
45
45
|
this.nerve.self.evt.asyncEmit('closeView', { ok: true, data });
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -201,6 +201,13 @@ export class ViewController<T extends ViewModel = ViewModel> {
|
|
|
201
201
|
this.handleViewParams();
|
|
202
202
|
|
|
203
203
|
this.initToolbarState();
|
|
204
|
+
|
|
205
|
+
// 初始化视图布局面板适配器
|
|
206
|
+
const { useDefaultLayout, viewLayoutPanel } = this.model;
|
|
207
|
+
if (!useDefaultLayout) {
|
|
208
|
+
const provider = await ibiz.register.control.get(viewLayoutPanel!);
|
|
209
|
+
this.providers.viewLayoutPanel = provider;
|
|
210
|
+
}
|
|
204
211
|
}
|
|
205
212
|
|
|
206
213
|
/**
|
|
@@ -240,11 +247,10 @@ export class ViewController<T extends ViewModel = ViewModel> {
|
|
|
240
247
|
* @protected
|
|
241
248
|
*/
|
|
242
249
|
protected handleViewParams(): void {
|
|
243
|
-
// 识别上下文的srfkey
|
|
250
|
+
// 识别上下文的srfkey并转成实体名称,然后置空srfkey
|
|
244
251
|
if (this.context.srfkey && this.model.appEntity) {
|
|
245
252
|
this.context[this.model.appEntity.deName] = this.context.srfkey;
|
|
246
|
-
this.context.srfkey = undefined;
|
|
247
|
-
delete this.context.srfkey;
|
|
253
|
+
this.context.srfkey = undefined;
|
|
248
254
|
}
|
|
249
255
|
|
|
250
256
|
// 路由打开的设置srfsessionid
|
|
@@ -298,9 +304,9 @@ export class ViewController<T extends ViewModel = ViewModel> {
|
|
|
298
304
|
*
|
|
299
305
|
* @author lxm
|
|
300
306
|
* @date 2022-08-28 17:08:56
|
|
301
|
-
* @returns {*} {
|
|
307
|
+
* @returns {*} {IDatum[]}
|
|
302
308
|
*/
|
|
303
|
-
getData():
|
|
309
|
+
getData(): IDatum[] {
|
|
304
310
|
return [];
|
|
305
311
|
}
|
|
306
312
|
|
|
@@ -384,12 +390,12 @@ export class ViewController<T extends ViewModel = ViewModel> {
|
|
|
384
390
|
* @author lxm
|
|
385
391
|
* @date 2022-09-08 10:09:38
|
|
386
392
|
* @param {IPSAppViewLogic} appViewLogic 视图逻辑
|
|
387
|
-
* @param {
|
|
393
|
+
* @param {IDatum[]} data 数据
|
|
388
394
|
* @param {MouseEvent} event 原生事件
|
|
389
395
|
*/
|
|
390
396
|
async executeViewLogic(
|
|
391
397
|
appViewLogic: IPSAppViewLogic,
|
|
392
|
-
data:
|
|
398
|
+
data: IDatum[],
|
|
393
399
|
event?: MouseEvent,
|
|
394
400
|
): Promise<void> {
|
|
395
401
|
const result = await executeViewLogic(
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { DELogicParam } from './de-logic-param/de-logic-param';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* 实体逻辑执行上下文
|
|
3
5
|
*
|
|
@@ -7,6 +9,14 @@
|
|
|
7
9
|
* @class DELogicContext
|
|
8
10
|
*/
|
|
9
11
|
export class DELogicContext {
|
|
12
|
+
/**
|
|
13
|
+
* Creates an instance of DELogicContext.
|
|
14
|
+
* @author lxm
|
|
15
|
+
* @date 2023-03-17 05:55:18
|
|
16
|
+
* @param {Map<string, DELogicParam>} deLogicParams 实体逻辑参数集合
|
|
17
|
+
*/
|
|
18
|
+
constructor(public deLogicParams: Map<string, DELogicParam>) {}
|
|
19
|
+
|
|
10
20
|
/**
|
|
11
21
|
* 实体逻辑参数
|
|
12
22
|
*
|
|
@@ -25,4 +35,22 @@ export class DELogicContext {
|
|
|
25
35
|
* @type {unknown}
|
|
26
36
|
*/
|
|
27
37
|
result: unknown = null;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 是否存在结束节点
|
|
41
|
+
*
|
|
42
|
+
* @author lxm
|
|
43
|
+
* @date 2023-03-16 12:08:58
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
*/
|
|
46
|
+
isEndNode: boolean = false;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 默认参数节点
|
|
50
|
+
*
|
|
51
|
+
* @author lxm
|
|
52
|
+
* @date 2023-03-16 12:11:14
|
|
53
|
+
* @type {string}
|
|
54
|
+
*/
|
|
55
|
+
defaultParamName: string = 'Default';
|
|
28
56
|
}
|
|
@@ -19,9 +19,9 @@ export class EndNode extends DELogicNode {
|
|
|
19
19
|
_params: IParams,
|
|
20
20
|
_opt?: IParams | undefined,
|
|
21
21
|
): Promise<void> {
|
|
22
|
+
ctx.isEndNode = true;
|
|
22
23
|
const source = this.model.source as IPSDEEndLogic;
|
|
23
24
|
const { returnType, rawValue } = source;
|
|
24
|
-
|
|
25
25
|
// eslint-disable-next-line default-case
|
|
26
26
|
switch (returnType) {
|
|
27
27
|
case 'NONEVALUE': // 无值(NONE)
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IPSDELogicNodeParam,
|
|
3
|
+
UnsupportedModelError,
|
|
4
|
+
} from '@ibiz-template/model';
|
|
1
5
|
import { DELogicContext } from '../../de-logic-context';
|
|
2
6
|
import { DELogicNode } from '../de-logic-node';
|
|
3
7
|
|
|
@@ -11,13 +15,131 @@ import { DELogicNode } from '../de-logic-node';
|
|
|
11
15
|
* @extends {DELogicNode}
|
|
12
16
|
*/
|
|
13
17
|
export class PrepareParamNode extends DELogicNode {
|
|
14
|
-
exec(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
async exec(
|
|
19
|
+
ctx: DELogicContext,
|
|
20
|
+
context: IParams,
|
|
21
|
+
data: IData | null,
|
|
22
|
+
params: IParams,
|
|
23
|
+
opt?: IParams | undefined,
|
|
20
24
|
): Promise<void> {
|
|
21
|
-
|
|
25
|
+
const nodeParams = this.model.source.getPSDELogicNodeParams();
|
|
26
|
+
if (nodeParams?.length) {
|
|
27
|
+
await Promise.all(
|
|
28
|
+
nodeParams.map(nodeParam => {
|
|
29
|
+
switch (nodeParam.paramAction) {
|
|
30
|
+
// 设置变量
|
|
31
|
+
case 'SETPARAMVALUE':
|
|
32
|
+
return this.doSetParamValue(nodeParam, ctx, params);
|
|
33
|
+
// 重置变量
|
|
34
|
+
case 'RESETPARAM':
|
|
35
|
+
return this.doResetParam(
|
|
36
|
+
nodeParam,
|
|
37
|
+
ctx,
|
|
38
|
+
context,
|
|
39
|
+
data,
|
|
40
|
+
params,
|
|
41
|
+
opt,
|
|
42
|
+
);
|
|
43
|
+
// // 拷贝变量
|
|
44
|
+
// case 'COPYPARAM':
|
|
45
|
+
// break;
|
|
46
|
+
// // 绑定参数
|
|
47
|
+
// case 'BINDPARAM':
|
|
48
|
+
// break;
|
|
49
|
+
// // 重新建立变量
|
|
50
|
+
// case 'RENEWPARAM':
|
|
51
|
+
// break;
|
|
52
|
+
// // 附加到数组变量
|
|
53
|
+
// case 'APPENDPARAM':
|
|
54
|
+
// break;
|
|
55
|
+
// // 排序数组变量
|
|
56
|
+
// case 'SORTPARAM':
|
|
57
|
+
// break;
|
|
58
|
+
default:
|
|
59
|
+
throw new UnsupportedModelError(
|
|
60
|
+
nodeParam,
|
|
61
|
+
`暂未支持逻辑处理参数操作${nodeParam.paramAction}`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
}),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* 设置变量
|
|
71
|
+
* @author lxm
|
|
72
|
+
* @date 2023-03-17 03:34:02
|
|
73
|
+
* @protected
|
|
74
|
+
* @param {IPSDELogicNodeParam} nodeParam
|
|
75
|
+
* @param {DELogicContext} ctx
|
|
76
|
+
* @param {IParams} params
|
|
77
|
+
*/
|
|
78
|
+
protected doSetParamValue(
|
|
79
|
+
nodeParam: IPSDELogicNodeParam,
|
|
80
|
+
ctx: DELogicContext,
|
|
81
|
+
params: IParams,
|
|
82
|
+
) {
|
|
83
|
+
const { srcValueType, dstFieldName, srcFieldName, srcValue } = nodeParam;
|
|
84
|
+
// 目标参数
|
|
85
|
+
const dstParam = nodeParam.getDstPSDELogicParam()!;
|
|
86
|
+
const dstField = dstFieldName.toLowerCase();
|
|
87
|
+
// 源参数
|
|
88
|
+
let value: unknown;
|
|
89
|
+
switch (srcValueType) {
|
|
90
|
+
// 源逻辑参数
|
|
91
|
+
case 'SRCDLPARAM':
|
|
92
|
+
{
|
|
93
|
+
const srcParam = nodeParam.getSrcPSDELogicParam()!;
|
|
94
|
+
const srcField = srcFieldName.toLowerCase();
|
|
95
|
+
value = srcField
|
|
96
|
+
? ctx.params[srcParam.codeName]
|
|
97
|
+
: ctx.params[srcParam.codeName][srcField];
|
|
98
|
+
}
|
|
99
|
+
break;
|
|
100
|
+
// 空值类型
|
|
101
|
+
case 'NULLVALUE':
|
|
102
|
+
value = null;
|
|
103
|
+
break;
|
|
104
|
+
// 无值类型
|
|
105
|
+
case 'NONEVALUE':
|
|
106
|
+
value = undefined;
|
|
107
|
+
break;
|
|
108
|
+
// 直接值
|
|
109
|
+
case 'SRCVALUE':
|
|
110
|
+
value = srcValue;
|
|
111
|
+
break;
|
|
112
|
+
// 视图参数
|
|
113
|
+
case 'VIEWPARAM':
|
|
114
|
+
value = params[srcFieldName.toLowerCase()];
|
|
115
|
+
break;
|
|
116
|
+
|
|
117
|
+
default:
|
|
118
|
+
throw new UnsupportedModelError(
|
|
119
|
+
nodeParam,
|
|
120
|
+
`暂未支持源值类型${srcValueType}`,
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
ctx.params[dstParam.codeName][dstField] = value;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* 重置变量
|
|
128
|
+
* @author lxm
|
|
129
|
+
* @date 2023-03-17 06:05:20
|
|
130
|
+
* @protected
|
|
131
|
+
*/
|
|
132
|
+
protected doResetParam(
|
|
133
|
+
nodeParam: IPSDELogicNodeParam,
|
|
134
|
+
ctx: DELogicContext,
|
|
135
|
+
context: IParams,
|
|
136
|
+
data: IData | null,
|
|
137
|
+
params: IParams,
|
|
138
|
+
opt?: IParams | undefined,
|
|
139
|
+
) {
|
|
140
|
+
const dstParam = nodeParam.getDstPSDELogicParam()!;
|
|
141
|
+
ctx.deLogicParams
|
|
142
|
+
.get(dstParam.codeName)!
|
|
143
|
+
.calc(ctx, context, data, params, opt);
|
|
22
144
|
}
|
|
23
145
|
}
|
package/src/de-logic/de-logic.ts
CHANGED
|
@@ -118,6 +118,9 @@ export class DELogic {
|
|
|
118
118
|
opt?: IParams,
|
|
119
119
|
): void {
|
|
120
120
|
this.params.forEach(param => {
|
|
121
|
+
if (param.model.source.default) {
|
|
122
|
+
ctx.defaultParamName = param.model.name;
|
|
123
|
+
}
|
|
121
124
|
param.calc(ctx, context, data, params, opt);
|
|
122
125
|
});
|
|
123
126
|
}
|
|
@@ -138,7 +141,7 @@ export class DELogic {
|
|
|
138
141
|
params: IParams,
|
|
139
142
|
opt?: IParams,
|
|
140
143
|
): Promise<unknown> {
|
|
141
|
-
const ctx = new DELogicContext();
|
|
144
|
+
const ctx = new DELogicContext(this.params);
|
|
142
145
|
this.initLogicParams(ctx, context, data, params, opt);
|
|
143
146
|
if (this.model.startNode && this.nodes.has(this.model.startNode.codeName)) {
|
|
144
147
|
const start = this.nodes.get(this.model.startNode.codeName)!;
|
|
@@ -146,7 +149,13 @@ export class DELogic {
|
|
|
146
149
|
} else {
|
|
147
150
|
throw new UnsupportedModelError(this.model.source, `未设置起始节点`);
|
|
148
151
|
}
|
|
149
|
-
|
|
152
|
+
if (ctx.isEndNode) {
|
|
153
|
+
return ctx.result;
|
|
154
|
+
}
|
|
155
|
+
if (ctx.params[ctx.defaultParamName]) {
|
|
156
|
+
return ctx.params[ctx.defaultParamName];
|
|
157
|
+
}
|
|
158
|
+
return null;
|
|
150
159
|
}
|
|
151
160
|
|
|
152
161
|
/**
|
package/src/de-logic/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HttpError, HttpResponse } from '@ibiz-template/core';
|
|
2
|
-
import {
|
|
2
|
+
import { IPSAppDELogic, DELogicModel } from '@ibiz-template/model';
|
|
3
3
|
import { DELogic } from './de-logic';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* 实体处理逻辑实例缓存
|
|
7
7
|
*/
|
|
8
|
-
const deLogicMap: WeakMap<
|
|
8
|
+
const deLogicMap: WeakMap<IPSAppDELogic, DELogic> = new Map();
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* 执行实体处理逻辑
|
|
@@ -13,7 +13,7 @@ const deLogicMap: WeakMap<IPSDELogic, DELogic> = new Map();
|
|
|
13
13
|
* @author lxm
|
|
14
14
|
* @date 2023-02-09 11:02:23
|
|
15
15
|
* @export
|
|
16
|
-
* @param {
|
|
16
|
+
* @param {IPSAppDELogic} deDELogic
|
|
17
17
|
* @param {IParams} context
|
|
18
18
|
* @param {(IData | null)} data
|
|
19
19
|
* @param {IParams} params
|
|
@@ -21,20 +21,42 @@ const deLogicMap: WeakMap<IPSDELogic, DELogic> = new Map();
|
|
|
21
21
|
* @return {*} {Promise<HttpResponse<IData>>}
|
|
22
22
|
*/
|
|
23
23
|
export async function execDELogic(
|
|
24
|
-
deDELogic:
|
|
24
|
+
deDELogic: IPSAppDELogic,
|
|
25
25
|
context: IParams,
|
|
26
26
|
data: IData | null,
|
|
27
27
|
params: IParams,
|
|
28
28
|
opt?: IParams,
|
|
29
|
-
): Promise<
|
|
29
|
+
): Promise<unknown> {
|
|
30
30
|
if (!deLogicMap.has(deDELogic)) {
|
|
31
31
|
const deLogicModel = new DELogicModel(deDELogic);
|
|
32
32
|
await deLogicModel.init();
|
|
33
33
|
deLogicMap.set(deDELogic, new DELogic(deLogicModel));
|
|
34
34
|
}
|
|
35
35
|
const deLogic = deLogicMap.get(deDELogic)!;
|
|
36
|
+
return deLogic.exec(context, data, params, opt);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 执行实体方法的实体逻辑并返回对应的response
|
|
41
|
+
* @author lxm
|
|
42
|
+
* @date 2023-03-16 12:44:43
|
|
43
|
+
* @export
|
|
44
|
+
* @param {IPSAppDELogic} deDELogic
|
|
45
|
+
* @param {IParams} context
|
|
46
|
+
* @param {(IData | null)} data
|
|
47
|
+
* @param {IParams} params
|
|
48
|
+
* @param {IParams} [opt]
|
|
49
|
+
* @return {*} {Promise<HttpResponse<IData>>}
|
|
50
|
+
*/
|
|
51
|
+
export async function execDELogicResponse(
|
|
52
|
+
deDELogic: IPSAppDELogic,
|
|
53
|
+
context: IParams,
|
|
54
|
+
data: IData | null,
|
|
55
|
+
params: IParams,
|
|
56
|
+
opt?: IParams,
|
|
57
|
+
): Promise<HttpResponse<IData>> {
|
|
36
58
|
try {
|
|
37
|
-
const result = await
|
|
59
|
+
const result = await execDELogic(deDELogic, context, data, params, opt);
|
|
38
60
|
return new HttpResponse(result);
|
|
39
61
|
} catch (err) {
|
|
40
62
|
if (err instanceof HttpError) {
|
package/src/index.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface IModal {
|
|
|
31
31
|
*
|
|
32
32
|
* @author chitanda
|
|
33
33
|
* @date 2022-08-17 18:08:58
|
|
34
|
-
* @param {(
|
|
34
|
+
* @param {(IDatum | IDatum[])} data
|
|
35
35
|
*/
|
|
36
|
-
dismiss?: (data?:
|
|
36
|
+
dismiss?: (data?: IDatum | IDatum[]) => void;
|
|
37
37
|
}
|
|
@@ -18,7 +18,7 @@ export interface IUIActionHandler {
|
|
|
18
18
|
* @date 2022-10-25 14:10:15
|
|
19
19
|
* @param {IPSAppDEUIAction} action 界面行为模型
|
|
20
20
|
* @param {IBizContext} context 上下文
|
|
21
|
-
* @param {(
|
|
21
|
+
* @param {(IDatum[])} data 数据集合
|
|
22
22
|
* @param {IParams} params 视图参数
|
|
23
23
|
* @param {IData} [opts] 额外参数
|
|
24
24
|
* @returns {*} {Promise<IUIActionResult>}
|
|
@@ -26,7 +26,7 @@ export interface IUIActionHandler {
|
|
|
26
26
|
exec(
|
|
27
27
|
action: IPSAppDEUIAction,
|
|
28
28
|
context: IBizContext,
|
|
29
|
-
data:
|
|
29
|
+
data: IDatum[],
|
|
30
30
|
params: IParams,
|
|
31
31
|
opts?: IData,
|
|
32
32
|
): Promise<IUIActionResult>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IBizContext } from '@ibiz-template/core';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* 界面行为执行返回值
|
|
3
5
|
*
|
|
@@ -40,7 +42,25 @@ export interface IUIActionResult {
|
|
|
40
42
|
*
|
|
41
43
|
* @author chitanda
|
|
42
44
|
* @date 2022-08-17 18:08:20
|
|
43
|
-
* @type {
|
|
45
|
+
* @type {IDatum[]}
|
|
46
|
+
*/
|
|
47
|
+
data?: IDatum[];
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 后续逻辑使用的上下文
|
|
51
|
+
* @author lxm
|
|
52
|
+
* @date 2023-03-15 07:26:38
|
|
53
|
+
* @type {IBizContext}
|
|
54
|
+
* @memberof IUIActionResult
|
|
55
|
+
*/
|
|
56
|
+
nextContext?: IBizContext;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* 后续逻辑使用的视图参数
|
|
60
|
+
* @author lxm
|
|
61
|
+
* @date 2023-03-15 07:26:38
|
|
62
|
+
* @type {IParams}
|
|
63
|
+
* @memberof IUIActionResult
|
|
44
64
|
*/
|
|
45
|
-
|
|
65
|
+
nextParams?: IParams;
|
|
46
66
|
}
|