@ibiz-template/runtime 0.0.3-beta.0 → 0.0.3-beta.2
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/application.d.ts +9 -1
- package/out/application.d.ts.map +1 -1
- package/out/application.js +3 -1
- package/out/controller/control/app-menu.d.ts +3 -0
- package/out/controller/control/app-menu.d.ts.map +1 -1
- package/out/controller/control/app-menu.js +4 -1
- package/out/controller/control/control.d.ts +8 -0
- package/out/controller/control/control.d.ts.map +1 -1
- package/out/controller/control/control.js +9 -1
- package/out/controller/control/form/edit-form.d.ts +2 -0
- package/out/controller/control/form/edit-form.d.ts.map +1 -1
- package/out/controller/control/form/edit-form.js +5 -3
- package/out/controller/control/form/form-button.d.ts +3 -0
- package/out/controller/control/form/form-button.d.ts.map +1 -1
- package/out/controller/control/form/form-button.js +5 -0
- package/out/controller/control/form/form-container.d.ts +3 -0
- package/out/controller/control/form/form-container.d.ts.map +1 -1
- package/out/controller/control/form/form-container.js +5 -0
- package/out/controller/control/form/form-detail.d.ts +18 -43
- package/out/controller/control/form/form-detail.d.ts.map +1 -1
- package/out/controller/control/form/form-detail.js +25 -66
- package/out/controller/control/form/form-druipart.d.ts +3 -24
- package/out/controller/control/form/form-druipart.d.ts.map +1 -1
- package/out/controller/control/form/form-druipart.js +12 -11
- package/out/controller/control/form/form-group-panel.d.ts +3 -0
- package/out/controller/control/form/form-group-panel.d.ts.map +1 -1
- package/out/controller/control/form/form-group-panel.js +5 -0
- package/out/controller/control/form/form-item.d.ts +3 -25
- package/out/controller/control/form/form-item.d.ts.map +1 -1
- package/out/controller/control/form/form-item.js +14 -41
- package/out/controller/control/form/form-page.d.ts +3 -8
- package/out/controller/control/form/form-page.d.ts.map +1 -1
- package/out/controller/control/form/form-page.js +4 -9
- package/out/controller/control/form/form-raw-item.d.ts +3 -0
- package/out/controller/control/form/form-raw-item.d.ts.map +1 -1
- package/out/controller/control/form/form-raw-item.js +5 -0
- package/out/controller/control/form/form-tab-page.d.ts +3 -0
- package/out/controller/control/form/form-tab-page.d.ts.map +1 -1
- package/out/controller/control/form/form-tab-page.js +5 -0
- package/out/controller/control/form/form-tab-panel.d.ts +3 -0
- package/out/controller/control/form/form-tab-panel.d.ts.map +1 -1
- package/out/controller/control/form/form-tab-panel.js +5 -0
- package/out/controller/control/form/form.d.ts +12 -17
- package/out/controller/control/form/form.d.ts.map +1 -1
- package/out/controller/control/form/form.js +17 -21
- package/out/controller/control/form/search-form.d.ts +2 -0
- package/out/controller/control/form/search-form.d.ts.map +1 -1
- package/out/controller/control/form/search-form.js +7 -2
- package/out/controller/control/grid/grid.d.ts +15 -0
- package/out/controller/control/grid/grid.d.ts.map +1 -1
- package/out/controller/control/grid/grid.js +33 -13
- package/out/controller/control/md.d.ts +46 -0
- package/out/controller/control/md.d.ts.map +1 -1
- package/out/controller/control/md.js +109 -19
- package/out/controller/control/tree.d.ts +20 -9
- package/out/controller/control/tree.d.ts.map +1 -1
- package/out/controller/control/tree.js +52 -14
- package/out/controller/control/view-panel.d.ts.map +1 -1
- package/out/controller/control/view-panel.js +0 -4
- package/out/controller/editor/editor.d.ts +1 -1
- package/out/controller/editor/picker.d.ts +13 -2
- package/out/controller/editor/picker.d.ts.map +1 -1
- package/out/controller/editor/picker.js +24 -11
- package/out/controller/editor/upload.js +2 -2
- package/out/controller/index.d.ts +2 -1
- package/out/controller/index.d.ts.map +1 -1
- package/out/controller/index.js +2 -1
- package/out/controller/interface/ability/view/i-dashboard-view-ability.d.ts +12 -0
- package/out/controller/interface/ability/view/i-dashboard-view-ability.d.ts.map +1 -0
- package/out/{service/vo/tree-node-data.js → controller/interface/ability/view/i-dashboard-view-ability.js} +0 -0
- package/out/controller/interface/ability/view/i-grid-exp-view-ability.d.ts +27 -0
- package/out/controller/interface/ability/view/i-grid-exp-view-ability.d.ts.map +1 -0
- package/out/controller/interface/ability/view/i-grid-exp-view-ability.js +1 -0
- package/out/controller/interface/ability/view/i-tree-exp-view-ability.d.ts +3 -3
- package/out/controller/interface/ability/view/i-tree-exp-view-ability.d.ts.map +1 -1
- package/out/controller/interface/ability/view/index.d.ts +2 -0
- package/out/controller/interface/ability/view/index.d.ts.map +1 -1
- package/out/controller/interface/ability/view/index.js +2 -0
- package/out/controller/interface/event/view/i-dashboard-view-event.d.ts +12 -0
- package/out/controller/interface/event/view/i-dashboard-view-event.d.ts.map +1 -0
- package/out/controller/interface/event/view/i-dashboard-view-event.js +1 -0
- package/out/controller/interface/event/view/i-grid-exp-view-event.d.ts +10 -0
- package/out/controller/interface/event/view/i-grid-exp-view-event.d.ts.map +1 -0
- package/out/controller/interface/event/view/i-grid-exp-view-event.js +1 -0
- package/out/controller/interface/event/view/i-tree-exp-view-event.d.ts +3 -3
- package/out/controller/interface/event/view/i-tree-exp-view-event.d.ts.map +1 -1
- package/out/controller/interface/event/view/index.d.ts +2 -0
- package/out/controller/interface/event/view/index.d.ts.map +1 -1
- package/out/controller/interface/event/view/index.js +2 -0
- package/out/controller/neuron/nerve/view/dashboard-view-nerve.d.ts +19 -0
- package/out/controller/neuron/nerve/view/dashboard-view-nerve.d.ts.map +1 -0
- package/out/controller/neuron/nerve/view/dashboard-view-nerve.js +28 -0
- package/out/controller/neuron/nerve/view/grid-exp-view-nerve.d.ts +28 -0
- package/out/controller/neuron/nerve/view/grid-exp-view-nerve.d.ts.map +1 -0
- package/out/controller/neuron/nerve/view/grid-exp-view-nerve.js +48 -0
- package/out/controller/neuron/nerve/view/index.d.ts +2 -0
- package/out/controller/neuron/nerve/view/index.d.ts.map +1 -1
- package/out/controller/neuron/nerve/view/index.js +2 -0
- package/out/controller/neuron/nerve/view/tree-exp-view-nerve.d.ts +2 -2
- package/out/controller/neuron/nerve/view/tree-exp-view-nerve.d.ts.map +1 -1
- package/out/controller/neuron/nerve/view/tree-exp-view-nerve.js +7 -2
- package/out/controller/neuron/neuron/view.d.ts +6 -2
- package/out/controller/neuron/neuron/view.d.ts.map +1 -1
- package/out/controller/neuron/neuron/view.js +4 -0
- package/out/controller/register/view-register.d.ts.map +1 -1
- package/out/controller/register/view-register.js +5 -4
- package/out/controller/state/control/app-menu-state.d.ts +24 -0
- package/out/controller/state/control/app-menu-state.d.ts.map +1 -0
- package/out/controller/state/control/app-menu-state.js +21 -0
- package/out/controller/state/control/control-state.d.ts +17 -0
- package/out/controller/state/control/control-state.d.ts.map +1 -0
- package/out/controller/state/control/control-state.js +18 -0
- package/out/controller/state/control/form/edit-form-state.d.ts +13 -0
- package/out/controller/state/control/form/edit-form-state.d.ts.map +1 -0
- package/out/controller/state/control/form/edit-form-state.js +12 -0
- package/out/controller/state/control/form/form-detail/form-button-state.d.ts +12 -0
- package/out/controller/state/control/form/form-detail/form-button-state.d.ts.map +1 -0
- package/out/controller/state/control/form/form-detail/form-button-state.js +13 -0
- package/out/controller/state/control/form/form-detail/form-container-state.d.ts +15 -0
- package/out/controller/state/control/form/form-detail/form-container-state.d.ts.map +1 -0
- package/out/controller/state/control/form/form-detail/form-container-state.js +16 -0
- package/out/controller/state/control/form/form-detail/form-detail-state.d.ts +43 -0
- package/out/controller/state/control/form/form-detail/form-detail-state.d.ts.map +1 -0
- package/out/controller/state/control/form/form-detail/form-detail-state.js +56 -0
- package/out/controller/state/control/form/form-detail/form-druipart-state.d.ts +36 -0
- package/out/controller/state/control/form/form-detail/form-druipart-state.d.ts.map +1 -0
- package/out/controller/state/control/form/form-detail/form-druipart-state.js +13 -0
- package/out/controller/state/control/form/form-detail/form-group-panel-state.d.ts +13 -0
- package/out/controller/state/control/form/form-detail/form-group-panel-state.d.ts.map +1 -0
- package/out/controller/state/control/form/form-detail/form-group-panel-state.js +12 -0
- package/out/controller/state/control/form/form-detail/form-item-state.d.ts +36 -0
- package/out/controller/state/control/form/form-detail/form-item-state.d.ts.map +1 -0
- package/out/controller/state/control/form/form-detail/form-item-state.js +44 -0
- package/out/controller/state/control/form/form-detail/form-page-state.d.ts +22 -0
- package/out/controller/state/control/form/form-detail/form-page-state.d.ts.map +1 -0
- package/out/controller/state/control/form/form-detail/form-page-state.js +23 -0
- package/out/controller/state/control/form/form-detail/form-raw-item-state.d.ts +12 -0
- package/out/controller/state/control/form/form-detail/form-raw-item-state.d.ts.map +1 -0
- package/out/controller/state/control/form/form-detail/form-raw-item-state.js +13 -0
- package/out/controller/state/control/form/form-detail/form-tab-page-state.d.ts +12 -0
- package/out/controller/state/control/form/form-detail/form-tab-page-state.d.ts.map +1 -0
- package/out/controller/state/control/form/form-detail/form-tab-page-state.js +13 -0
- package/out/controller/state/control/form/form-detail/form-tab-panel-state.d.ts +12 -0
- package/out/controller/state/control/form/form-detail/form-tab-panel-state.d.ts.map +1 -0
- package/out/controller/state/control/form/form-detail/form-tab-panel-state.js +13 -0
- package/out/controller/state/control/form/form-state.d.ts +30 -0
- package/out/controller/state/control/form/form-state.d.ts.map +1 -0
- package/out/controller/state/control/form/form-state.js +32 -0
- package/out/controller/state/control/form/search-form-state.d.ts +13 -0
- package/out/controller/state/control/form/search-form-state.d.ts.map +1 -0
- package/out/controller/state/control/form/search-form-state.js +12 -0
- package/out/controller/state/control/grid-state.d.ts +20 -0
- package/out/controller/state/control/grid-state.d.ts.map +1 -0
- package/out/controller/state/control/grid-state.js +21 -0
- package/out/controller/state/control/index.d.ts +19 -0
- package/out/controller/state/control/index.d.ts.map +1 -0
- package/out/controller/state/control/index.js +21 -0
- package/out/controller/state/control/md-state.d.ts +51 -0
- package/out/controller/state/control/md-state.d.ts.map +1 -0
- package/out/controller/state/control/md-state.js +52 -0
- package/out/controller/state/control/tree-state.d.ts +26 -0
- package/out/controller/state/control/tree-state.d.ts.map +1 -0
- package/out/controller/state/control/tree-state.js +30 -0
- package/out/controller/state/index.d.ts +3 -0
- package/out/controller/state/index.d.ts.map +1 -0
- package/out/controller/state/index.js +2 -0
- package/out/controller/state/view/edit-view-state.d.ts +13 -0
- package/out/controller/state/view/edit-view-state.d.ts.map +1 -0
- package/out/controller/state/view/edit-view-state.js +12 -0
- package/out/controller/state/view/edit-view3-state.d.ts +10 -0
- package/out/controller/state/view/edit-view3-state.d.ts.map +1 -0
- package/out/controller/state/view/edit-view3-state.js +9 -0
- package/out/controller/state/view/grid-exp-view-state.d.ts +17 -0
- package/out/controller/state/view/grid-exp-view-state.d.ts.map +1 -0
- package/out/controller/state/view/grid-exp-view-state.js +19 -0
- package/out/controller/state/view/grid-view-state.d.ts +11 -0
- package/out/controller/state/view/grid-view-state.d.ts.map +1 -0
- package/out/controller/state/view/grid-view-state.js +10 -0
- package/out/controller/state/view/index-view-state.d.ts +18 -0
- package/out/controller/state/view/index-view-state.d.ts.map +1 -0
- package/out/controller/state/view/index-view-state.js +20 -0
- package/out/controller/state/view/index.d.ts +10 -0
- package/out/controller/state/view/index.d.ts.map +1 -0
- package/out/controller/state/view/index.js +9 -0
- package/out/controller/state/view/md-view-state.d.ts +28 -0
- package/out/controller/state/view/md-view-state.d.ts.map +1 -0
- package/out/controller/state/view/md-view-state.js +30 -0
- package/out/controller/state/view/mpickup-view-state.d.ts +27 -0
- package/out/controller/state/view/mpickup-view-state.d.ts.map +1 -0
- package/out/controller/state/view/mpickup-view-state.js +29 -0
- package/out/controller/state/view/pickup-view-state.d.ts +11 -0
- package/out/controller/state/view/pickup-view-state.d.ts.map +1 -0
- package/out/controller/state/view/pickup-view-state.js +10 -0
- package/out/controller/state/view/tree-exp-view-state.d.ts +11 -0
- package/out/controller/state/view/tree-exp-view-state.d.ts.map +1 -0
- package/out/controller/state/view/tree-exp-view-state.js +10 -0
- package/out/controller/state/view/view-state.d.ts +41 -0
- package/out/controller/state/view/view-state.d.ts.map +1 -0
- package/out/controller/state/view/view-state.js +33 -0
- package/out/controller/utils/counter/counter.d.ts +1 -1
- package/out/controller/utils/counter/counter.d.ts.map +1 -1
- package/out/controller/utils/counter/counter.js +7 -2
- package/out/controller/utils/loading/loading-state.d.ts +1 -2
- package/out/controller/utils/loading/loading-state.d.ts.map +1 -1
- package/out/controller/utils/loading/loading-state.js +15 -17
- package/out/controller/view/dashboard-view.d.ts +18 -0
- package/out/controller/view/dashboard-view.d.ts.map +1 -0
- package/out/controller/view/dashboard-view.js +24 -0
- package/out/controller/view/edit-view.d.ts +2 -0
- package/out/controller/view/edit-view.d.ts.map +1 -1
- package/out/controller/view/edit-view.js +9 -5
- package/out/controller/view/edit-view3.d.ts +2 -0
- package/out/controller/view/edit-view3.d.ts.map +1 -1
- package/out/controller/view/edit-view3.js +2 -0
- package/out/controller/view/grid-exp-view.d.ts +60 -0
- package/out/controller/view/grid-exp-view.d.ts.map +1 -0
- package/out/controller/view/grid-exp-view.js +160 -0
- package/out/controller/view/grid-view.d.ts +2 -0
- package/out/controller/view/grid-view.d.ts.map +1 -1
- package/out/controller/view/grid-view.js +5 -0
- package/out/controller/view/index-view.d.ts +4 -1
- package/out/controller/view/index-view.d.ts.map +1 -1
- package/out/controller/view/index-view.js +4 -1
- package/out/controller/view/index.d.ts +2 -0
- package/out/controller/view/index.d.ts.map +1 -1
- package/out/controller/view/index.js +2 -0
- package/out/controller/view/main-view.d.ts.map +1 -1
- package/out/controller/view/main-view.js +3 -3
- package/out/controller/view/md-view.d.ts +5 -0
- package/out/controller/view/md-view.d.ts.map +1 -1
- package/out/controller/view/md-view.js +13 -9
- package/out/controller/view/mpickup-view.d.ts +3 -16
- package/out/controller/view/mpickup-view.d.ts.map +1 -1
- package/out/controller/view/mpickup-view.js +14 -22
- package/out/controller/view/pickup-view.d.ts +2 -0
- package/out/controller/view/pickup-view.d.ts.map +1 -1
- package/out/controller/view/pickup-view.js +5 -0
- package/out/controller/view/tab-exp-view.d.ts.map +1 -1
- package/out/controller/view/tab-exp-view.js +1 -2
- package/out/controller/view/tree-exp-view.d.ts +6 -2
- package/out/controller/view/tree-exp-view.d.ts.map +1 -1
- package/out/controller/view/tree-exp-view.js +53 -8
- package/out/controller/view/view.d.ts +11 -2
- package/out/controller/view/view.d.ts.map +1 -1
- package/out/controller/view/view.js +18 -6
- package/out/controller/view/wf-step-trace-view.d.ts.map +1 -1
- package/out/controller/view/wf-step-trace-view.js +1 -1
- package/out/service/dto/method.dto.d.ts.map +1 -1
- package/out/service/dto/method.dto.js +1 -1
- package/out/service/entity/entity.d.ts.map +1 -1
- package/out/service/entity/entity.js +2 -0
- package/out/service/index.d.ts +1 -2
- package/out/service/index.d.ts.map +1 -1
- package/out/service/index.js +1 -2
- package/out/service/interface/i-tree-node-data/i-tree-node-data.d.ts +66 -0
- package/out/service/interface/i-tree-node-data/i-tree-node-data.d.ts.map +1 -0
- package/out/service/interface/i-tree-node-data/i-tree-node-data.js +1 -0
- package/out/service/interface/index.d.ts +1 -0
- package/out/service/interface/index.d.ts.map +1 -1
- package/out/service/service/widget/control-service.d.ts +1 -1
- package/out/service/service/widget/control-service.d.ts.map +1 -1
- package/out/service/service/widget/control-service.js +2 -2
- package/out/service/service/widget/tree-service.d.ts +22 -14
- package/out/service/service/widget/tree-service.d.ts.map +1 -1
- package/out/service/service/widget/tree-service.js +51 -39
- package/out/service/service-util.d.ts +1 -1
- package/out/service/service-util.d.ts.map +1 -1
- package/out/service/service-util.js +3 -3
- package/out/service/utils/index.d.ts +3 -2
- package/out/service/utils/index.d.ts.map +1 -1
- package/out/service/utils/index.js +3 -2
- package/out/service/utils/route-context/route-context.d.ts +13 -0
- package/out/service/utils/route-context/route-context.d.ts.map +1 -0
- package/out/service/utils/route-context/route-context.js +37 -0
- package/out/service/utils/service-path-util/service-path-util.d.ts +20 -12
- package/out/service/utils/service-path-util/service-path-util.d.ts.map +1 -1
- package/out/service/utils/service-path-util/service-path-util.js +50 -37
- package/out/service/vo/control.vo.d.ts.map +1 -1
- package/out/service/vo/control.vo.js +2 -0
- package/out/service/vo/index.d.ts +3 -0
- package/out/service/vo/index.d.ts.map +1 -0
- package/out/service/vo/index.js +2 -0
- package/out/service/vo/tree-node-data/index.d.ts +3 -0
- package/out/service/vo/tree-node-data/index.d.ts.map +1 -0
- package/out/service/vo/tree-node-data/index.js +2 -0
- package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts +22 -0
- package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -0
- package/out/service/vo/tree-node-data/tree-data-set-node-data.js +23 -0
- package/out/service/vo/tree-node-data/tree-node-data.d.ts +36 -0
- package/out/service/vo/tree-node-data/tree-node-data.d.ts.map +1 -0
- package/out/service/vo/tree-node-data/tree-node-data.js +15 -0
- package/out/service/vo/tree-node-data/tree-static-node-data.d.ts +20 -0
- package/out/service/vo/tree-node-data/tree-static-node-data.d.ts.map +1 -0
- package/out/service/vo/tree-node-data/tree-static-node-data.js +22 -0
- package/out/view-logic/view-logic.d.ts.map +1 -1
- package/out/view-logic/view-logic.js +0 -1
- package/package.json +7 -7
- package/src/application.ts +17 -1
- package/src/controller/control/app-menu.ts +5 -1
- package/src/controller/control/control.ts +10 -1
- package/src/controller/control/form/edit-form.ts +6 -3
- package/src/controller/control/form/form-button.ts +7 -0
- package/src/controller/control/form/form-container.ts +8 -1
- package/src/controller/control/form/form-detail.ts +34 -74
- package/src/controller/control/form/form-druipart.ts +12 -36
- package/src/controller/control/form/form-group-panel.ts +8 -1
- package/src/controller/control/form/form-item.ts +16 -45
- package/src/controller/control/form/form-page.ts +5 -9
- package/src/controller/control/form/form-raw-item.ts +8 -1
- package/src/controller/control/form/form-tab-page.ts +8 -1
- package/src/controller/control/form/form-tab-panel.ts +8 -1
- package/src/controller/control/form/form.ts +20 -23
- package/src/controller/control/form/search-form.ts +5 -3
- package/src/controller/control/grid/grid.ts +42 -13
- package/src/controller/control/md.ts +123 -21
- package/src/controller/control/tree.ts +63 -18
- package/src/controller/control/view-panel.ts +0 -4
- package/src/controller/editor/editor.ts +1 -1
- package/src/controller/editor/picker.ts +38 -18
- package/src/controller/editor/upload.ts +2 -2
- package/src/controller/index.ts +2 -1
- package/src/controller/interface/ability/view/i-dashboard-view-ability.ts +12 -0
- package/src/controller/interface/ability/view/i-grid-exp-view-ability.ts +28 -0
- package/src/controller/interface/ability/view/i-tree-exp-view-ability.ts +3 -3
- package/src/controller/interface/ability/view/index.ts +2 -0
- package/src/controller/interface/event/view/i-dashboard-view-event.ts +12 -0
- package/src/controller/interface/event/view/i-grid-exp-view-event.ts +10 -0
- package/src/controller/interface/event/view/i-tree-exp-view-event.ts +3 -3
- package/src/controller/interface/event/view/index.ts +2 -0
- package/src/controller/neuron/nerve/view/dashboard-view-nerve.ts +38 -0
- package/src/controller/neuron/nerve/view/grid-exp-view-nerve.ts +87 -0
- package/src/controller/neuron/nerve/view/index.ts +2 -0
- package/src/controller/neuron/nerve/view/tree-exp-view-nerve.ts +13 -2
- package/src/controller/neuron/neuron/view.ts +12 -0
- package/src/controller/register/view-register.ts +5 -5
- package/src/controller/state/control/app-menu-state.ts +20 -0
- package/src/controller/state/control/control-state.ts +16 -0
- package/src/controller/state/control/form/edit-form-state.ts +12 -0
- package/src/controller/state/control/form/form-detail/form-button-state.ts +13 -0
- package/src/controller/state/control/form/form-detail/form-container-state.ts +16 -0
- package/src/controller/state/control/form/form-detail/form-detail-state.ts +63 -0
- package/src/controller/state/control/form/form-detail/form-druipart-state.ts +40 -0
- package/src/controller/state/control/form/form-detail/form-group-panel-state.ts +12 -0
- package/src/controller/state/control/form/form-detail/form-item-state.ts +48 -0
- package/src/controller/state/control/form/form-detail/form-page-state.ts +24 -0
- package/src/controller/state/control/form/form-detail/form-raw-item-state.ts +13 -0
- package/src/controller/state/control/form/form-detail/form-tab-page-state.ts +13 -0
- package/src/controller/state/control/form/form-detail/form-tab-panel-state.ts +13 -0
- package/src/controller/state/control/form/form-state.ts +31 -0
- package/src/controller/state/control/form/search-form-state.ts +12 -0
- package/src/controller/state/control/grid-state.ts +20 -0
- package/src/controller/state/control/index.ts +22 -0
- package/src/controller/state/control/md-state.ts +57 -0
- package/src/controller/state/control/tree-state.ts +29 -0
- package/src/controller/state/index.ts +2 -0
- package/src/controller/state/view/edit-view-state.ts +12 -0
- package/src/controller/state/view/edit-view3-state.ts +9 -0
- package/src/controller/state/view/grid-exp-view-state.ts +17 -0
- package/src/controller/state/view/grid-view-state.ts +10 -0
- package/src/controller/state/view/index-view-state.ts +18 -0
- package/src/controller/state/view/index.ts +9 -0
- package/src/controller/state/view/md-view-state.ts +30 -0
- package/src/controller/state/view/mpickup-view-state.ts +28 -0
- package/src/controller/state/view/pickup-view-state.ts +10 -0
- package/src/controller/state/view/tree-exp-view-state.ts +10 -0
- package/src/controller/state/view/view-state.ts +44 -0
- package/src/controller/utils/counter/counter.ts +6 -2
- package/src/controller/utils/loading/loading-state.ts +7 -10
- package/src/controller/view/dashboard-view.ts +33 -0
- package/src/controller/view/edit-view.ts +6 -5
- package/src/controller/view/edit-view3.ts +3 -0
- package/src/controller/view/grid-exp-view.ts +191 -0
- package/src/controller/view/grid-view.ts +3 -0
- package/src/controller/view/index-view.ts +5 -1
- package/src/controller/view/index.ts +2 -0
- package/src/controller/view/main-view.ts +2 -3
- package/src/controller/view/md-view.ts +14 -9
- package/src/controller/view/mpickup-view.ts +15 -23
- package/src/controller/view/pickup-view.ts +3 -0
- package/src/controller/view/tab-exp-view.ts +1 -2
- package/src/controller/view/tree-exp-view.ts +74 -8
- package/src/controller/view/view.ts +20 -6
- package/src/controller/view/wf-step-trace-view.ts +1 -4
- package/src/service/dto/method.dto.ts +1 -4
- package/src/service/entity/entity.ts +2 -0
- package/src/service/index.ts +1 -2
- package/src/service/interface/i-tree-node-data/i-tree-node-data.ts +74 -0
- package/src/service/interface/index.ts +1 -0
- package/src/service/service/widget/control-service.ts +1 -2
- package/src/service/service/widget/tree-service.ts +78 -56
- package/src/service/service-util.ts +3 -9
- package/src/service/utils/index.ts +3 -2
- package/src/service/utils/route-context/route-context.ts +42 -0
- package/src/service/utils/service-path-util/service-path-util.ts +34 -26
- package/src/service/vo/control.vo.ts +2 -0
- package/src/service/vo/index.ts +2 -0
- package/src/service/vo/tree-node-data/index.ts +2 -0
- package/src/service/vo/tree-node-data/tree-data-set-node-data.ts +38 -0
- package/src/service/vo/tree-node-data/tree-node-data.ts +46 -0
- package/src/service/vo/tree-node-data/tree-static-node-data.ts +35 -0
- package/src/view-logic/view-logic.ts +0 -1
- package/out/service/vo/tree-node-data.d.ts +0 -44
- package/out/service/vo/tree-node-data.d.ts.map +0 -1
- package/src/service/vo/tree-node-data.ts +0 -49
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TreeDataSetNodeData, TreeStaticNodeData } from '../../vo';
|
|
1
2
|
import { MDControlService } from './md-control-service';
|
|
2
3
|
/**
|
|
3
4
|
* 树部件服务
|
|
@@ -22,28 +23,29 @@ export class TreeService extends MDControlService {
|
|
|
22
23
|
/**
|
|
23
24
|
* 获取子节点数据
|
|
24
25
|
*
|
|
25
|
-
* @param {
|
|
26
|
+
* @param {ITreeNodeData} [parentNodeData] 父节点数据
|
|
26
27
|
* @param {boolean} [hasQuery=false] 是否搜索
|
|
27
28
|
* @returns {*}
|
|
28
29
|
* @memberof TreeService
|
|
29
30
|
*/
|
|
30
|
-
async fetchChildNodes(
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
31
|
+
async fetchChildNodes(parentNodeData, opts) {
|
|
32
|
+
const childNodeRSs = this.model.getChildNodeRSs((parentNodeData === null || parentNodeData === void 0 ? void 0 : parentNodeData.nodeId) || this.model.rootNode.id, opts.hasQuery);
|
|
33
|
+
if (childNodeRSs.length === 0) {
|
|
33
34
|
return;
|
|
34
35
|
}
|
|
35
|
-
const results = await Promise.allSettled(
|
|
36
|
+
const results = await Promise.allSettled(childNodeRSs.map(async (childNodeRS) => {
|
|
37
|
+
const { childNode } = childNodeRS;
|
|
36
38
|
if (childNode.treeNodeType === 'STATIC') {
|
|
37
|
-
const nodeData = await this.getStaticNodeData(
|
|
39
|
+
const nodeData = await this.getStaticNodeData(childNodeRS, parentNodeData, opts);
|
|
38
40
|
return [nodeData];
|
|
39
41
|
}
|
|
40
42
|
if (childNode.treeNodeType === 'DE') {
|
|
41
|
-
return this.getDENodeDatas(
|
|
43
|
+
return this.getDENodeDatas(childNodeRS, parentNodeData, opts);
|
|
42
44
|
}
|
|
43
45
|
if (childNode.treeNodeType === 'CODELIST') {
|
|
44
|
-
return this.getCodeListNodeDatas(
|
|
46
|
+
return this.getCodeListNodeDatas(childNodeRS, parentNodeData, opts);
|
|
45
47
|
}
|
|
46
|
-
return
|
|
48
|
+
return undefined;
|
|
47
49
|
}));
|
|
48
50
|
const childrenNodes = [];
|
|
49
51
|
results.forEach(result => {
|
|
@@ -54,56 +56,66 @@ export class TreeService extends MDControlService {
|
|
|
54
56
|
return childrenNodes;
|
|
55
57
|
// todo 查询回来之后,看是否默认打开,默认展开继续递归加载子节点。
|
|
56
58
|
}
|
|
57
|
-
getBaseNodeData(nodeModel, opts) {
|
|
58
|
-
const nodeData = {
|
|
59
|
-
nodeId: nodeModel.nodeType,
|
|
60
|
-
id: nodeModel.nodeType,
|
|
61
|
-
text: '',
|
|
62
|
-
leaf: this.model.getChildNodes(nodeModel.nodeType, opts.hasQuery).length ===
|
|
63
|
-
0,
|
|
64
|
-
};
|
|
65
|
-
if (nodeData.leaf === false) {
|
|
66
|
-
nodeData.children = [];
|
|
67
|
-
// nodeData.loading = false;
|
|
68
|
-
}
|
|
69
|
-
return nodeData;
|
|
70
|
-
}
|
|
71
59
|
/**
|
|
72
60
|
* 获取静态节点数据
|
|
73
61
|
*
|
|
74
62
|
* @protected
|
|
75
|
-
* @param {
|
|
63
|
+
* @param {TreeStaticNodeModel} nodeModel
|
|
76
64
|
* @param {boolean} [hasQuery=false]
|
|
77
65
|
* @returns {*}
|
|
78
66
|
* @memberof TreeService
|
|
79
67
|
*/
|
|
80
|
-
async getStaticNodeData(
|
|
81
|
-
const
|
|
82
|
-
nodeData
|
|
68
|
+
async getStaticNodeData(nodeRS, parentNodeData, opts) {
|
|
69
|
+
const nodeModel = nodeRS.childNode;
|
|
70
|
+
const nodeData = new TreeStaticNodeData(nodeModel, parentNodeData, opts);
|
|
83
71
|
// todo 仅展开首节点
|
|
84
72
|
if (nodeModel.expanded) {
|
|
85
73
|
nodeData.children = await this.fetchChildNodes(nodeData, opts);
|
|
86
74
|
}
|
|
87
75
|
return nodeData;
|
|
88
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* 获取父值过滤的视图参数
|
|
79
|
+
*
|
|
80
|
+
* @param {TreeNodeRSModel} nodeRS 节点关系模型
|
|
81
|
+
* @param {(ITreeNodeData | undefined)} parentNodeData 父节点数据
|
|
82
|
+
* @returns {*} {(IParams | undefined)}
|
|
83
|
+
* @memberof TreeService
|
|
84
|
+
*/
|
|
85
|
+
getParentFilterParams(nodeRS, parentNodeData) {
|
|
86
|
+
// 处理父值过滤项
|
|
87
|
+
const { parentFilter, parentValueLevel } = nodeRS;
|
|
88
|
+
if (parentNodeData && parentFilter) {
|
|
89
|
+
// 根据父值级别查找父数据的value
|
|
90
|
+
let parent = parentNodeData;
|
|
91
|
+
for (let index = 1; index < parentValueLevel; index++) {
|
|
92
|
+
parent = parent === null || parent === void 0 ? void 0 : parent.parent;
|
|
93
|
+
}
|
|
94
|
+
if (parent === null || parent === void 0 ? void 0 : parent.value) {
|
|
95
|
+
return { [`n_${parentFilter}_eq`]: parent.value };
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
89
99
|
/**
|
|
90
100
|
* 获取实体数据集数据
|
|
91
101
|
*
|
|
92
102
|
* @protected
|
|
93
|
-
* @param {
|
|
94
|
-
* @param {
|
|
103
|
+
* @param {TreeNodeRSModel} nodeRS
|
|
104
|
+
* @param {TreeFetchOpts} opts
|
|
105
|
+
* @returns {*}
|
|
95
106
|
* @memberof TreeService
|
|
96
107
|
*/
|
|
97
|
-
async getDENodeDatas(
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
const
|
|
103
|
-
|
|
108
|
+
async getDENodeDatas(nodeRS, parentNodeData, opts) {
|
|
109
|
+
const nodeModel = nodeRS.childNode;
|
|
110
|
+
const { methodName, appEntity } = nodeModel;
|
|
111
|
+
const service = await this.app.es.getService(appEntity.codeName);
|
|
112
|
+
// 处理查询视图参数
|
|
113
|
+
const tempParams = Object.assign(Object.assign({}, opts.params), (this.getParentFilterParams(nodeRS, parentNodeData) || {}));
|
|
114
|
+
// 请求实体数据
|
|
115
|
+
const response = await service.exec(methodName, opts.context, tempParams);
|
|
104
116
|
if (response.data.length) {
|
|
105
117
|
const nodeDatas = response.data.map((item) => {
|
|
106
|
-
return Object.assign(Object.assign({},
|
|
118
|
+
return new TreeDataSetNodeData(nodeModel, parentNodeData, Object.assign(Object.assign({}, opts), { data: item }));
|
|
107
119
|
});
|
|
108
120
|
return nodeDatas;
|
|
109
121
|
}
|
|
@@ -113,11 +125,11 @@ export class TreeService extends MDControlService {
|
|
|
113
125
|
* 获取代码表节点数据
|
|
114
126
|
*
|
|
115
127
|
* @protected
|
|
116
|
-
* @param {
|
|
128
|
+
* @param {TreeCodeListNodeModel} _nodeModel
|
|
117
129
|
* @param {TreeFetchOpts} _opts
|
|
118
130
|
* @memberof TreeService
|
|
119
131
|
*/
|
|
120
|
-
async getCodeListNodeDatas(
|
|
132
|
+
async getCodeListNodeDatas(_nodeRS, _parentNodeData, _opts) {
|
|
121
133
|
// todo 代码表查询
|
|
122
134
|
}
|
|
123
135
|
}
|
|
@@ -54,7 +54,7 @@ export declare class ServiceUtil {
|
|
|
54
54
|
* @param {IContext} [context] 上下文,用于计算模型所属沙箱环境
|
|
55
55
|
* @return {*} {Promise<EntityService>}
|
|
56
56
|
*/
|
|
57
|
-
getService(entityCodeName: string
|
|
57
|
+
getService(entityCodeName: string): Promise<EntityService>;
|
|
58
58
|
/**
|
|
59
59
|
* 清理所有服务, 当前临时域下的所有临时数据缓存
|
|
60
60
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-util.d.ts","sourceRoot":"","sources":["../../src/service/service-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,YAAY,EACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"service-util.d.ts","sourceRoot":"","sources":["../../src/service/service-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,YAAY,EACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;;;;GAOG;AACH,qBAAa,WAAW;IA4BV,SAAS,CAAC,YAAY,EAAE,YAAY;IA3BhD;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAa;IAExD;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAa;IAEjE;;;;;;OAMG;gBACmB,YAAY,EAAE,YAAY;IAEhD;;;;;;;OAOG;cACa,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAWhD;;;;;;;;OAQG;IACG,UAAU,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAkBhE;;;;;;;OAOG;IACH,cAAc,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI;CAKxC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AppEntityModel, } from '@ibiz-template/model';
|
|
2
2
|
import { EntityService } from './service';
|
|
3
|
-
import { ServicePathUtil } from './utils';
|
|
4
3
|
/**
|
|
5
4
|
* 应用服务工具类
|
|
6
5
|
*
|
|
@@ -65,7 +64,7 @@ export class ServiceUtil {
|
|
|
65
64
|
* @param {IContext} [context] 上下文,用于计算模型所属沙箱环境
|
|
66
65
|
* @return {*} {Promise<EntityService>}
|
|
67
66
|
*/
|
|
68
|
-
async getService(entityCodeName
|
|
67
|
+
async getService(entityCodeName) {
|
|
69
68
|
if (!this.cache.has(entityCodeName)) {
|
|
70
69
|
await this.initAllEntities();
|
|
71
70
|
const entity = this.allEntities.get(entityCodeName);
|
|
@@ -75,7 +74,8 @@ export class ServiceUtil {
|
|
|
75
74
|
await entity.fill(true);
|
|
76
75
|
const entityModel = new AppEntityModel(entity);
|
|
77
76
|
await entityModel.init();
|
|
78
|
-
const
|
|
77
|
+
const app = ibiz.hub.getApp(this.modelService.app);
|
|
78
|
+
const paths = app.resourcePathUtil.calcPaths(entityCodeName);
|
|
79
79
|
const service = await new EntityService(entityModel, paths);
|
|
80
80
|
this.cache.set(entityCodeName, service);
|
|
81
81
|
}
|
|
@@ -3,8 +3,9 @@ export * from './de-dq-cond';
|
|
|
3
3
|
export { DEDQCondUtil } from './de-dq-cond-util/de-dq-cond-util';
|
|
4
4
|
export { DynamicCodeListCache } from './dynamic-code-list/dynamic-code-list';
|
|
5
5
|
export { EntityCache } from './entity-cache/entity-cache';
|
|
6
|
+
export { IBizVerify } from './ibiz-verify/ibiz-verify';
|
|
7
|
+
export { calcResPath } from './res-path/res-path';
|
|
8
|
+
export { calcRouteContext } from './route-context/route-context';
|
|
6
9
|
export { SearchFilter } from './search-filter/search-filter';
|
|
7
10
|
export { ServicePathDeep, ServicePathItem, ServicePathUtil, } from './service-path-util/service-path-util';
|
|
8
|
-
export { IBizVerify } from './ibiz-verify/ibiz-verify';
|
|
9
|
-
export * from './res-path/res-path';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EACL,eAAe,EACf,eAAe,EACf,eAAe,GAChB,MAAM,uCAAuC,CAAC"}
|
|
@@ -3,7 +3,8 @@ export * from './de-dq-cond';
|
|
|
3
3
|
export { DEDQCondUtil } from './de-dq-cond-util/de-dq-cond-util';
|
|
4
4
|
export { DynamicCodeListCache } from './dynamic-code-list/dynamic-code-list';
|
|
5
5
|
export { EntityCache } from './entity-cache/entity-cache';
|
|
6
|
+
export { IBizVerify } from './ibiz-verify/ibiz-verify';
|
|
7
|
+
export { calcResPath } from './res-path/res-path';
|
|
8
|
+
export { calcRouteContext } from './route-context/route-context';
|
|
6
9
|
export { SearchFilter } from './search-filter/search-filter';
|
|
7
10
|
export { ServicePathUtil, } from './service-path-util/service-path-util';
|
|
8
|
-
export { IBizVerify } from './ibiz-verify/ibiz-verify';
|
|
9
|
-
export * from './res-path/res-path';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServicePathItem } from '../service-path-util/service-path-util';
|
|
2
|
+
/**
|
|
3
|
+
* 计算放置到路径中的资源上下文参数
|
|
4
|
+
*
|
|
5
|
+
* @author chitanda
|
|
6
|
+
* @date 2023-01-10 14:01:51
|
|
7
|
+
* @export
|
|
8
|
+
* @param {IContext} context
|
|
9
|
+
* @param {ServicePathItem[][]} pathItems
|
|
10
|
+
* @return {*} {Record<string, unknown>}
|
|
11
|
+
*/
|
|
12
|
+
export declare function calcRouteContext(context: IContext, pathItems: ServicePathItem[][]): Record<string, unknown>;
|
|
13
|
+
//# sourceMappingURL=route-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-context.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/route-context/route-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAE,eAAe,EAAE,EAAE,GAC7B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BzB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 计算放置到路径中的资源上下文参数
|
|
3
|
+
*
|
|
4
|
+
* @author chitanda
|
|
5
|
+
* @date 2023-01-10 14:01:51
|
|
6
|
+
* @export
|
|
7
|
+
* @param {IContext} context
|
|
8
|
+
* @param {ServicePathItem[][]} pathItems
|
|
9
|
+
* @return {*} {Record<string, unknown>}
|
|
10
|
+
*/
|
|
11
|
+
export function calcRouteContext(context, pathItems) {
|
|
12
|
+
let paths = [];
|
|
13
|
+
pathItems.forEach(items => {
|
|
14
|
+
const values = [];
|
|
15
|
+
for (let i = 0; i < items.length; i++) {
|
|
16
|
+
const arr = [];
|
|
17
|
+
const item = items[i];
|
|
18
|
+
const val = context[item.name];
|
|
19
|
+
if (val) {
|
|
20
|
+
arr.push(item.name);
|
|
21
|
+
arr.push(val);
|
|
22
|
+
values.push(arr);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
paths.push(values);
|
|
26
|
+
});
|
|
27
|
+
paths = paths.sort((a, b) => b.length - a.length);
|
|
28
|
+
const [pathArr] = paths;
|
|
29
|
+
if (pathArr) {
|
|
30
|
+
const obj = {};
|
|
31
|
+
pathArr.forEach(([key, val]) => {
|
|
32
|
+
obj[key] = val;
|
|
33
|
+
});
|
|
34
|
+
return obj;
|
|
35
|
+
}
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPSAppDERS } from '@ibiz-template/model';
|
|
1
|
+
import { IPSAppDERS, ModelService } from '@ibiz-template/model';
|
|
2
2
|
/**
|
|
3
3
|
* 获取服务拼接递归对象
|
|
4
4
|
*/
|
|
@@ -41,7 +41,8 @@ export type ServicePathItem = {
|
|
|
41
41
|
* @class ServicePathUtil
|
|
42
42
|
*/
|
|
43
43
|
export declare class ServicePathUtil {
|
|
44
|
-
protected
|
|
44
|
+
protected modelService: ModelService;
|
|
45
|
+
protected allDERss: IPSAppDERS[];
|
|
45
46
|
/**
|
|
46
47
|
* 应用实体关系
|
|
47
48
|
*
|
|
@@ -50,7 +51,7 @@ export declare class ServicePathUtil {
|
|
|
50
51
|
* @protected
|
|
51
52
|
* @type {Map<string, IPSAppDERS[]>} <应用实体, 应用实体父关系>
|
|
52
53
|
*/
|
|
53
|
-
protected
|
|
54
|
+
protected entityRsMap: Map<string, IPSAppDERS[]>;
|
|
54
55
|
/**
|
|
55
56
|
* 实体资源路径
|
|
56
57
|
*
|
|
@@ -59,27 +60,34 @@ export declare class ServicePathUtil {
|
|
|
59
60
|
* @protected
|
|
60
61
|
* @type {Map<string, ServicePathItem[][]>}
|
|
61
62
|
*/
|
|
62
|
-
protected
|
|
63
|
+
protected entityRsPathMap: Map<string, ServicePathItem[][]>;
|
|
64
|
+
/**
|
|
65
|
+
* Creates an instance of ServicePathUtil.
|
|
66
|
+
*
|
|
67
|
+
* @author chitanda
|
|
68
|
+
* @date 2023-01-10 16:01:18
|
|
69
|
+
* @param {ModelService} modelService 当前应用所归属的模型服务
|
|
70
|
+
*/
|
|
71
|
+
constructor(modelService: ModelService);
|
|
63
72
|
/**
|
|
64
73
|
* 初始化工具参数
|
|
65
74
|
*
|
|
66
75
|
* @author chitanda
|
|
67
76
|
* @date 2022-08-22 21:08:47
|
|
68
|
-
* @protected
|
|
69
77
|
* @param {IContext} context
|
|
70
78
|
* @return {*} {Promise<void>}
|
|
71
79
|
*/
|
|
72
|
-
|
|
80
|
+
init(): Promise<void>;
|
|
73
81
|
/**
|
|
74
82
|
* 计算指定实体所有资源路径
|
|
75
83
|
*
|
|
76
84
|
* @author chitanda
|
|
77
85
|
* @date 2022-08-22 22:08:54
|
|
78
86
|
* @param {IParams} context
|
|
79
|
-
* @param {string}
|
|
80
|
-
* @return {*} {Promise<
|
|
87
|
+
* @param {string} codeName
|
|
88
|
+
* @return {*} {Promise<ServicePathItem[][]>} 返回顺序为 [祖父实体,爷爷实体,父实体,当前实体]
|
|
81
89
|
*/
|
|
82
|
-
|
|
90
|
+
calcPaths(codeName: string): ServicePathItem[][];
|
|
83
91
|
/**
|
|
84
92
|
* 计算递归资源路径
|
|
85
93
|
*
|
|
@@ -89,7 +97,7 @@ export declare class ServicePathUtil {
|
|
|
89
97
|
* @param {IPSAppDERS[]} deRss
|
|
90
98
|
* @return {*} {ServicePathDeep[]}
|
|
91
99
|
*/
|
|
92
|
-
protected
|
|
100
|
+
protected calcDeepPath(deRss: IPSAppDERS[], num?: number): ServicePathDeep[];
|
|
93
101
|
/**
|
|
94
102
|
* 递归填充计算所有资源路径
|
|
95
103
|
*
|
|
@@ -100,7 +108,7 @@ export declare class ServicePathUtil {
|
|
|
100
108
|
* @param {string[]} pathNames
|
|
101
109
|
* @param {ServicePathDeep[]} items
|
|
102
110
|
*/
|
|
103
|
-
protected
|
|
111
|
+
protected deepFillPath(deName: string, pathNames: string[], items: ServicePathDeep[]): void;
|
|
104
112
|
/**
|
|
105
113
|
* 排序资源路径顺序
|
|
106
114
|
*
|
|
@@ -110,6 +118,6 @@ export declare class ServicePathUtil {
|
|
|
110
118
|
* @param {ServicePathItem[][]} paths
|
|
111
119
|
* @return {*} {ServicePathItem[][]}
|
|
112
120
|
*/
|
|
113
|
-
protected
|
|
121
|
+
protected sortPath(paths: ServicePathItem[][]): ServicePathItem[][];
|
|
114
122
|
}
|
|
115
123
|
//# sourceMappingURL=service-path-util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-path-util.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/service-path-util/service-path-util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"service-path-util.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/service-path-util/service-path-util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,qBAAa,eAAe;IA8Bd,SAAS,CAAC,YAAY,EAAE,YAAY;IA7BhD,SAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAM;IAEtC;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,CAAa;IAE7D;;;;;;;OAOG;IACH,SAAS,CAAC,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,CAAC,CAAa;IAExE;;;;;;OAMG;gBACmB,YAAY,EAAE,YAAY;IAEhD;;;;;;;OAOG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB3B;;;;;;;;OAQG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,EAAE,EAAE;IA0BhD;;;;;;;;OAQG;IACH,SAAS,CAAC,YAAY,CACpB,KAAK,EAAE,UAAU,EAAE,EACnB,GAAG,GAAE,MAAU,GACd,eAAe,EAAE;IAapB;;;;;;;;;OASG;IACH,SAAS,CAAC,YAAY,CACpB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EAAE,EACnB,KAAK,EAAE,eAAe,EAAE,GACvB,IAAI;IA+BP;;;;;;;;OAQG;IACH,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,GAAG,eAAe,EAAE,EAAE;CAKpE"}
|
|
@@ -8,21 +8,48 @@ import { pluralLower } from '@ibiz-template/core';
|
|
|
8
8
|
* @class ServicePathUtil
|
|
9
9
|
*/
|
|
10
10
|
export class ServicePathUtil {
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of ServicePathUtil.
|
|
13
|
+
*
|
|
14
|
+
* @author chitanda
|
|
15
|
+
* @date 2023-01-10 16:01:18
|
|
16
|
+
* @param {ModelService} modelService 当前应用所归属的模型服务
|
|
17
|
+
*/
|
|
18
|
+
constructor(modelService) {
|
|
19
|
+
this.modelService = modelService;
|
|
20
|
+
this.allDERss = [];
|
|
21
|
+
/**
|
|
22
|
+
* 应用实体关系
|
|
23
|
+
*
|
|
24
|
+
* @author chitanda
|
|
25
|
+
* @date 2022-08-22 22:08:18
|
|
26
|
+
* @protected
|
|
27
|
+
* @type {Map<string, IPSAppDERS[]>} <应用实体, 应用实体父关系>
|
|
28
|
+
*/
|
|
29
|
+
this.entityRsMap = new Map();
|
|
30
|
+
/**
|
|
31
|
+
* 实体资源路径
|
|
32
|
+
*
|
|
33
|
+
* @author chitanda
|
|
34
|
+
* @date 2022-08-22 22:08:58
|
|
35
|
+
* @protected
|
|
36
|
+
* @type {Map<string, ServicePathItem[][]>}
|
|
37
|
+
*/
|
|
38
|
+
this.entityRsPathMap = new Map();
|
|
39
|
+
}
|
|
11
40
|
/**
|
|
12
41
|
* 初始化工具参数
|
|
13
42
|
*
|
|
14
43
|
* @author chitanda
|
|
15
44
|
* @date 2022-08-22 21:08:47
|
|
16
|
-
* @protected
|
|
17
45
|
* @param {IContext} context
|
|
18
46
|
* @return {*} {Promise<void>}
|
|
19
47
|
*/
|
|
20
|
-
|
|
48
|
+
async init() {
|
|
21
49
|
if (this.allDERss.length > 0) {
|
|
22
50
|
return;
|
|
23
51
|
}
|
|
24
|
-
const
|
|
25
|
-
const { app } = service;
|
|
52
|
+
const { app } = this.modelService;
|
|
26
53
|
const allPSAppEntities = app.getAllPSAppDataEntities() || [];
|
|
27
54
|
this.allDERss = app.getAllPSAppDERSs() || [];
|
|
28
55
|
allPSAppEntities.forEach(entity => {
|
|
@@ -44,27 +71,32 @@ export class ServicePathUtil {
|
|
|
44
71
|
* @author chitanda
|
|
45
72
|
* @date 2022-08-22 22:08:54
|
|
46
73
|
* @param {IParams} context
|
|
47
|
-
* @param {string}
|
|
48
|
-
* @return {*} {Promise<
|
|
74
|
+
* @param {string} codeName
|
|
75
|
+
* @return {*} {Promise<ServicePathItem[][]>} 返回顺序为 [祖父实体,爷爷实体,父实体,当前实体]
|
|
49
76
|
*/
|
|
50
|
-
|
|
51
|
-
if (this.entityRsPathMap.has(
|
|
52
|
-
return this.entityRsPathMap.get(
|
|
77
|
+
calcPaths(codeName) {
|
|
78
|
+
if (this.entityRsPathMap.has(codeName)) {
|
|
79
|
+
return this.entityRsPathMap.get(codeName);
|
|
53
80
|
}
|
|
54
|
-
|
|
55
|
-
const deRss = this.entityRsMap.get(deName);
|
|
81
|
+
const deRss = this.entityRsMap.get(codeName);
|
|
56
82
|
if (deRss) {
|
|
57
83
|
const arr = this.calcDeepPath(deRss);
|
|
58
|
-
this.deepFillPath(
|
|
59
|
-
const paths = this.entityRsPathMap.get(
|
|
84
|
+
this.deepFillPath(codeName, [codeName], arr);
|
|
85
|
+
const paths = this.entityRsPathMap.get(codeName);
|
|
60
86
|
if (paths) {
|
|
61
87
|
const sortedPaths = this.sortPath(paths);
|
|
62
|
-
this.entityRsPathMap.set(
|
|
88
|
+
this.entityRsPathMap.set(codeName, sortedPaths);
|
|
63
89
|
return sortedPaths;
|
|
64
90
|
}
|
|
65
91
|
}
|
|
66
92
|
return [
|
|
67
|
-
[
|
|
93
|
+
[
|
|
94
|
+
{
|
|
95
|
+
deName: codeName,
|
|
96
|
+
name: codeName.toLowerCase(),
|
|
97
|
+
plural: pluralLower(codeName),
|
|
98
|
+
},
|
|
99
|
+
],
|
|
68
100
|
];
|
|
69
101
|
}
|
|
70
102
|
/**
|
|
@@ -76,7 +108,7 @@ export class ServicePathUtil {
|
|
|
76
108
|
* @param {IPSAppDERS[]} deRss
|
|
77
109
|
* @return {*} {ServicePathDeep[]}
|
|
78
110
|
*/
|
|
79
|
-
|
|
111
|
+
calcDeepPath(deRss, num = 0) {
|
|
80
112
|
if (num > 10) {
|
|
81
113
|
throw new Error('服务路径计算超过最大层级 10');
|
|
82
114
|
}
|
|
@@ -98,7 +130,7 @@ export class ServicePathUtil {
|
|
|
98
130
|
* @param {string[]} pathNames
|
|
99
131
|
* @param {ServicePathDeep[]} items
|
|
100
132
|
*/
|
|
101
|
-
|
|
133
|
+
deepFillPath(deName, pathNames, items) {
|
|
102
134
|
items.forEach(item => {
|
|
103
135
|
const [rs, children] = item;
|
|
104
136
|
if (children.length > 0) {
|
|
@@ -135,28 +167,9 @@ export class ServicePathUtil {
|
|
|
135
167
|
* @param {ServicePathItem[][]} paths
|
|
136
168
|
* @return {*} {ServicePathItem[][]}
|
|
137
169
|
*/
|
|
138
|
-
|
|
170
|
+
sortPath(paths) {
|
|
139
171
|
return paths.sort((a, b) => {
|
|
140
172
|
return b.length - a.length;
|
|
141
173
|
});
|
|
142
174
|
}
|
|
143
175
|
}
|
|
144
|
-
ServicePathUtil.allDERss = [];
|
|
145
|
-
/**
|
|
146
|
-
* 应用实体关系
|
|
147
|
-
*
|
|
148
|
-
* @author chitanda
|
|
149
|
-
* @date 2022-08-22 22:08:18
|
|
150
|
-
* @protected
|
|
151
|
-
* @type {Map<string, IPSAppDERS[]>} <应用实体, 应用实体父关系>
|
|
152
|
-
*/
|
|
153
|
-
ServicePathUtil.entityRsMap = new Map();
|
|
154
|
-
/**
|
|
155
|
-
* 实体资源路径
|
|
156
|
-
*
|
|
157
|
-
* @author chitanda
|
|
158
|
-
* @date 2022-08-22 22:08:58
|
|
159
|
-
* @protected
|
|
160
|
-
* @type {Map<string, ServicePathItem[][]>}
|
|
161
|
-
*/
|
|
162
|
-
ServicePathUtil.entityRsPathMap = new Map();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.vo.d.ts","sourceRoot":"","sources":["../../../src/service/vo/control.vo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;GAOG;AACH,qBAAa,SAAS;IAEpB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B;;;;;;;OAOG;IACK,OAAO,EAAE,KAAK,CAAC;IAEvB;;;;;;;OAOG;IACK,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE5C;;;;;;OAMG;IACH,IAAI,KAAK,IAAI,KAAK,CAKjB;IAED;;;;;;OAMG;IACK,MAAM,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACK,YAAY,EAAE,MAAM,CAAC;IAE7B;;;;;;OAMG;gBACS,OAAO,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"control.vo.d.ts","sourceRoot":"","sources":["../../../src/service/vo/control.vo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;GAOG;AACH,qBAAa,SAAS;IAEpB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B;;;;;;;OAOG;IACK,OAAO,EAAE,KAAK,CAAC;IAEvB;;;;;;;OAOG;IACK,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE5C;;;;;;OAMG;IACH,IAAI,KAAK,IAAI,KAAK,CAKjB;IAED;;;;;;OAMG;IACK,MAAM,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACK,YAAY,EAAE,MAAM,CAAC;IAE7B;;;;;;OAMG;gBACS,OAAO,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC;IAiCjE;;;;;;;;;;OAUG;IACH,OAAO,CAAC,YAAY;IAgCpB;;;;;;OAMG;IACH,SAAS;IAIT;;;;;;OAMG;IACH,cAAc;IAUd;;;;;;OAMG;IACH,SAAS,CAAC,IAAI,EAAE,KAAK,GAAG,SAAS;IAIjC;;;;;;OAMG;IACH,WAAW,CAAC,IAAI,EAAE,KAAK,GAAG,SAAS;IAOnC;;;;;OAKG;IACH,YAAY;CAQb"}
|
|
@@ -35,10 +35,12 @@ export class ControlVO {
|
|
|
35
35
|
}
|
|
36
36
|
Object.defineProperty(this, '$origin', {
|
|
37
37
|
enumerable: false,
|
|
38
|
+
configurable: true,
|
|
38
39
|
value: $origin || {},
|
|
39
40
|
});
|
|
40
41
|
Object.defineProperty(this, '$dataUIMap', {
|
|
41
42
|
enumerable: false,
|
|
43
|
+
configurable: true,
|
|
42
44
|
value: $dataUIMap || new Map(),
|
|
43
45
|
});
|
|
44
46
|
// 先转换映射的属性
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/vo/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/tree-node-data/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TreeDataSetNodeModel } from '@ibiz-template/model';
|
|
2
|
+
import { ITreeNodeData } from '../../interface';
|
|
3
|
+
import { TreeNodeData } from './tree-node-data';
|
|
4
|
+
/**
|
|
5
|
+
* 实体数据集树节点数据
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class TreeDataSetNodeData
|
|
9
|
+
* @extends {TreeNodeData}
|
|
10
|
+
* @implements {ITreeNodeData}
|
|
11
|
+
*/
|
|
12
|
+
export declare class TreeDataSetNodeData extends TreeNodeData implements ITreeNodeData {
|
|
13
|
+
text: string;
|
|
14
|
+
id: string;
|
|
15
|
+
value: string;
|
|
16
|
+
deData: IData;
|
|
17
|
+
constructor(model: TreeDataSetNodeModel, parentNodeData: ITreeNodeData | undefined, opts: {
|
|
18
|
+
hasQuery: boolean;
|
|
19
|
+
data: IData;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=tree-data-set-node-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-data-set-node-data.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/tree-node-data/tree-data-set-node-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,YAAa,YAAW,aAAa;IAC5E,IAAI,EAAE,MAAM,CAAC;IAEb,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,EAAE,KAAK,CAAC;gBAGZ,KAAK,EAAE,oBAAoB,EAC3B,cAAc,EAAE,aAAa,GAAG,SAAS,EACzC,IAAI,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,KAAK,CAAA;KAAE;CAa3C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TreeNodeData } from './tree-node-data';
|
|
2
|
+
/**
|
|
3
|
+
* 实体数据集树节点数据
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @class TreeDataSetNodeData
|
|
7
|
+
* @extends {TreeNodeData}
|
|
8
|
+
* @implements {ITreeNodeData}
|
|
9
|
+
*/
|
|
10
|
+
export class TreeDataSetNodeData extends TreeNodeData {
|
|
11
|
+
constructor(model, parentNodeData, opts) {
|
|
12
|
+
super(model, parentNodeData, opts);
|
|
13
|
+
const { data } = opts;
|
|
14
|
+
this.deData = data;
|
|
15
|
+
this.text = data.srfmajortext;
|
|
16
|
+
this.value = data.srfkey;
|
|
17
|
+
this.id = parentNodeData
|
|
18
|
+
? `${parentNodeData.id}:${data.srfkey}`
|
|
19
|
+
: data.srfkey;
|
|
20
|
+
// id小写
|
|
21
|
+
this.id = this.id.toLowerCase();
|
|
22
|
+
}
|
|
23
|
+
}
|