@ibiz-template/runtime 0.0.3-beta.1 → 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 +5 -5
- 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,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
IPSDETreeDataSetNode,
|
|
4
|
-
IPSDETreeNode,
|
|
5
|
-
IPSDETreeStaticNode,
|
|
2
|
+
TreeDataSetNodeModel,
|
|
6
3
|
TreeModel,
|
|
4
|
+
TreeNodeRSModel,
|
|
5
|
+
TreeStaticNodeModel,
|
|
7
6
|
} from '@ibiz-template/model';
|
|
8
|
-
import {
|
|
7
|
+
import { ITreeNodeData } from '../../interface/i-tree-node-data/i-tree-node-data';
|
|
8
|
+
import { TreeDataSetNodeData, TreeStaticNodeData } from '../../vo';
|
|
9
9
|
import { MDControlService } from './md-control-service';
|
|
10
10
|
|
|
11
|
-
interface TreeFetchOpts {
|
|
11
|
+
export interface TreeFetchOpts {
|
|
12
12
|
/**
|
|
13
13
|
* 是否有过滤搜索
|
|
14
14
|
*
|
|
@@ -56,50 +56,46 @@ export class TreeService extends MDControlService<TreeModel> {
|
|
|
56
56
|
/**
|
|
57
57
|
* 获取子节点数据
|
|
58
58
|
*
|
|
59
|
-
* @param {
|
|
59
|
+
* @param {ITreeNodeData} [parentNodeData] 父节点数据
|
|
60
60
|
* @param {boolean} [hasQuery=false] 是否搜索
|
|
61
61
|
* @returns {*}
|
|
62
62
|
* @memberof TreeService
|
|
63
63
|
*/
|
|
64
64
|
async fetchChildNodes(
|
|
65
|
-
|
|
65
|
+
parentNodeData: ITreeNodeData | undefined,
|
|
66
66
|
opts: TreeFetchOpts,
|
|
67
67
|
) {
|
|
68
|
-
const
|
|
69
|
-
|
|
68
|
+
const childNodeRSs = this.model.getChildNodeRSs(
|
|
69
|
+
parentNodeData?.nodeId || this.model.rootNode.id,
|
|
70
70
|
opts.hasQuery,
|
|
71
71
|
);
|
|
72
72
|
|
|
73
|
-
if (
|
|
73
|
+
if (childNodeRSs.length === 0) {
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
const results = await Promise.allSettled(
|
|
78
|
-
|
|
78
|
+
childNodeRSs.map(async childNodeRS => {
|
|
79
|
+
const { childNode } = childNodeRS;
|
|
79
80
|
if (childNode.treeNodeType === 'STATIC') {
|
|
80
81
|
const nodeData = await this.getStaticNodeData(
|
|
81
|
-
|
|
82
|
+
childNodeRS,
|
|
83
|
+
parentNodeData,
|
|
82
84
|
opts,
|
|
83
85
|
);
|
|
84
86
|
return [nodeData];
|
|
85
87
|
}
|
|
86
88
|
if (childNode.treeNodeType === 'DE') {
|
|
87
|
-
return this.getDENodeDatas(
|
|
88
|
-
childNode.source as IPSDETreeDataSetNode,
|
|
89
|
-
opts,
|
|
90
|
-
);
|
|
89
|
+
return this.getDENodeDatas(childNodeRS, parentNodeData, opts);
|
|
91
90
|
}
|
|
92
91
|
if (childNode.treeNodeType === 'CODELIST') {
|
|
93
|
-
return this.getCodeListNodeDatas(
|
|
94
|
-
childNode.source as IPSDETreeCodeListNode,
|
|
95
|
-
opts,
|
|
96
|
-
);
|
|
92
|
+
return this.getCodeListNodeDatas(childNodeRS, parentNodeData, opts);
|
|
97
93
|
}
|
|
98
|
-
return
|
|
94
|
+
return undefined;
|
|
99
95
|
}),
|
|
100
96
|
);
|
|
101
97
|
|
|
102
|
-
const childrenNodes:
|
|
98
|
+
const childrenNodes: ITreeNodeData[] = [];
|
|
103
99
|
results.forEach(result => {
|
|
104
100
|
if (result.status === 'fulfilled' && result.value) {
|
|
105
101
|
childrenNodes.push(...result.value);
|
|
@@ -111,37 +107,26 @@ export class TreeService extends MDControlService<TreeModel> {
|
|
|
111
107
|
// todo 查询回来之后,看是否默认打开,默认展开继续递归加载子节点。
|
|
112
108
|
}
|
|
113
109
|
|
|
114
|
-
getBaseNodeData(nodeModel: IPSDETreeNode, opts: TreeFetchOpts) {
|
|
115
|
-
const nodeData: TreeNodeData = {
|
|
116
|
-
nodeId: nodeModel.nodeType,
|
|
117
|
-
id: nodeModel.nodeType,
|
|
118
|
-
text: '',
|
|
119
|
-
leaf:
|
|
120
|
-
this.model.getChildNodes(nodeModel.nodeType, opts.hasQuery).length ===
|
|
121
|
-
0,
|
|
122
|
-
};
|
|
123
|
-
if (nodeData.leaf === false) {
|
|
124
|
-
nodeData.children = [];
|
|
125
|
-
// nodeData.loading = false;
|
|
126
|
-
}
|
|
127
|
-
return nodeData;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
110
|
/**
|
|
131
111
|
* 获取静态节点数据
|
|
132
112
|
*
|
|
133
113
|
* @protected
|
|
134
|
-
* @param {
|
|
114
|
+
* @param {TreeStaticNodeModel} nodeModel
|
|
135
115
|
* @param {boolean} [hasQuery=false]
|
|
136
116
|
* @returns {*}
|
|
137
117
|
* @memberof TreeService
|
|
138
118
|
*/
|
|
139
119
|
protected async getStaticNodeData(
|
|
140
|
-
|
|
120
|
+
nodeRS: TreeNodeRSModel,
|
|
121
|
+
parentNodeData: ITreeNodeData | undefined,
|
|
141
122
|
opts: TreeFetchOpts,
|
|
142
|
-
): Promise<
|
|
143
|
-
const
|
|
144
|
-
nodeData
|
|
123
|
+
): Promise<ITreeNodeData> {
|
|
124
|
+
const nodeModel = nodeRS.childNode as TreeStaticNodeModel;
|
|
125
|
+
const nodeData: ITreeNodeData = new TreeStaticNodeData(
|
|
126
|
+
nodeModel,
|
|
127
|
+
parentNodeData,
|
|
128
|
+
opts,
|
|
129
|
+
);
|
|
145
130
|
|
|
146
131
|
// todo 仅展开首节点
|
|
147
132
|
if (nodeModel.expanded) {
|
|
@@ -151,28 +136,64 @@ export class TreeService extends MDControlService<TreeModel> {
|
|
|
151
136
|
return nodeData;
|
|
152
137
|
}
|
|
153
138
|
|
|
139
|
+
/**
|
|
140
|
+
* 获取父值过滤的视图参数
|
|
141
|
+
*
|
|
142
|
+
* @param {TreeNodeRSModel} nodeRS 节点关系模型
|
|
143
|
+
* @param {(ITreeNodeData | undefined)} parentNodeData 父节点数据
|
|
144
|
+
* @returns {*} {(IParams | undefined)}
|
|
145
|
+
* @memberof TreeService
|
|
146
|
+
*/
|
|
147
|
+
getParentFilterParams(
|
|
148
|
+
nodeRS: TreeNodeRSModel,
|
|
149
|
+
parentNodeData: ITreeNodeData | undefined,
|
|
150
|
+
): IParams | undefined {
|
|
151
|
+
// 处理父值过滤项
|
|
152
|
+
const { parentFilter, parentValueLevel } = nodeRS;
|
|
153
|
+
if (parentNodeData && parentFilter) {
|
|
154
|
+
// 根据父值级别查找父数据的value
|
|
155
|
+
let parent: ITreeNodeData | undefined | undefined = parentNodeData;
|
|
156
|
+
for (let index = 1; index < parentValueLevel; index++) {
|
|
157
|
+
parent = parent?.parent;
|
|
158
|
+
}
|
|
159
|
+
if (parent?.value) {
|
|
160
|
+
return { [`n_${parentFilter}_eq`]: parent.value };
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
154
165
|
/**
|
|
155
166
|
* 获取实体数据集数据
|
|
156
167
|
*
|
|
157
168
|
* @protected
|
|
158
|
-
* @param {
|
|
159
|
-
* @param {
|
|
169
|
+
* @param {TreeNodeRSModel} nodeRS
|
|
170
|
+
* @param {TreeFetchOpts} opts
|
|
171
|
+
* @returns {*}
|
|
160
172
|
* @memberof TreeService
|
|
161
173
|
*/
|
|
162
174
|
protected async getDENodeDatas(
|
|
163
|
-
|
|
175
|
+
nodeRS: TreeNodeRSModel,
|
|
176
|
+
parentNodeData: ITreeNodeData | undefined,
|
|
164
177
|
opts: TreeFetchOpts,
|
|
165
178
|
) {
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
const
|
|
179
|
+
const nodeModel = nodeRS.childNode as TreeDataSetNodeModel;
|
|
180
|
+
const { methodName, appEntity } = nodeModel;
|
|
181
|
+
const service = await this.app.es.getService(appEntity.codeName);
|
|
182
|
+
|
|
183
|
+
// 处理查询视图参数
|
|
184
|
+
const tempParams = {
|
|
185
|
+
...opts.params,
|
|
186
|
+
...(this.getParentFilterParams(nodeRS, parentNodeData) || {}),
|
|
187
|
+
};
|
|
169
188
|
|
|
170
|
-
|
|
171
|
-
const response = await service.exec(methodName, opts.context,
|
|
172
|
-
const baseNodeData: TreeNodeData = this.getBaseNodeData(nodeModel, opts);
|
|
189
|
+
// 请求实体数据
|
|
190
|
+
const response = await service.exec(methodName, opts.context, tempParams);
|
|
173
191
|
if (response.data.length) {
|
|
174
192
|
const nodeDatas = response.data.map((item: IData) => {
|
|
175
|
-
return
|
|
193
|
+
return new TreeDataSetNodeData(nodeModel, parentNodeData, {
|
|
194
|
+
...opts,
|
|
195
|
+
data: item,
|
|
196
|
+
});
|
|
176
197
|
});
|
|
177
198
|
return nodeDatas;
|
|
178
199
|
}
|
|
@@ -183,12 +204,13 @@ export class TreeService extends MDControlService<TreeModel> {
|
|
|
183
204
|
* 获取代码表节点数据
|
|
184
205
|
*
|
|
185
206
|
* @protected
|
|
186
|
-
* @param {
|
|
207
|
+
* @param {TreeCodeListNodeModel} _nodeModel
|
|
187
208
|
* @param {TreeFetchOpts} _opts
|
|
188
209
|
* @memberof TreeService
|
|
189
210
|
*/
|
|
190
211
|
protected async getCodeListNodeDatas(
|
|
191
|
-
|
|
212
|
+
_nodeRS: TreeNodeRSModel,
|
|
213
|
+
_parentNodeData: ITreeNodeData | undefined,
|
|
192
214
|
_opts: TreeFetchOpts,
|
|
193
215
|
) {
|
|
194
216
|
// todo 代码表查询
|
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
ModelService,
|
|
5
5
|
} from '@ibiz-template/model';
|
|
6
6
|
import { EntityService } from './service';
|
|
7
|
-
import { ServicePathUtil } from './utils';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* 应用服务工具类
|
|
@@ -72,10 +71,7 @@ export class ServiceUtil {
|
|
|
72
71
|
* @param {IContext} [context] 上下文,用于计算模型所属沙箱环境
|
|
73
72
|
* @return {*} {Promise<EntityService>}
|
|
74
73
|
*/
|
|
75
|
-
async getService(
|
|
76
|
-
entityCodeName: string,
|
|
77
|
-
context?: IContext,
|
|
78
|
-
): Promise<EntityService> {
|
|
74
|
+
async getService(entityCodeName: string): Promise<EntityService> {
|
|
79
75
|
if (!this.cache.has(entityCodeName)) {
|
|
80
76
|
await this.initAllEntities();
|
|
81
77
|
const entity = this.allEntities.get(entityCodeName);
|
|
@@ -85,10 +81,8 @@ export class ServiceUtil {
|
|
|
85
81
|
await entity.fill(true);
|
|
86
82
|
const entityModel = new AppEntityModel(entity);
|
|
87
83
|
await entityModel.init();
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
entityCodeName,
|
|
91
|
-
);
|
|
84
|
+
const app = ibiz.hub.getApp(this.modelService.app);
|
|
85
|
+
const paths = app.resourcePathUtil.calcPaths(entityCodeName);
|
|
92
86
|
const service = await new EntityService(entityModel, paths);
|
|
93
87
|
this.cache.set(entityCodeName, service);
|
|
94
88
|
}
|
|
@@ -3,11 +3,12 @@ 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 {
|
|
8
11
|
ServicePathDeep,
|
|
9
12
|
ServicePathItem,
|
|
10
13
|
ServicePathUtil,
|
|
11
14
|
} from './service-path-util/service-path-util';
|
|
12
|
-
export { IBizVerify } from './ibiz-verify/ibiz-verify';
|
|
13
|
-
export * from './res-path/res-path';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ServicePathItem } from '../service-path-util/service-path-util';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 计算放置到路径中的资源上下文参数
|
|
5
|
+
*
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2023-01-10 14:01:51
|
|
8
|
+
* @export
|
|
9
|
+
* @param {IContext} context
|
|
10
|
+
* @param {ServicePathItem[][]} pathItems
|
|
11
|
+
* @return {*} {Record<string, unknown>}
|
|
12
|
+
*/
|
|
13
|
+
export function calcRouteContext(
|
|
14
|
+
context: IContext,
|
|
15
|
+
pathItems: ServicePathItem[][],
|
|
16
|
+
): Record<string, unknown> {
|
|
17
|
+
let paths: string[][][] = [];
|
|
18
|
+
pathItems.forEach(items => {
|
|
19
|
+
const values: string[][] = [];
|
|
20
|
+
for (let i = 0; i < items.length; i++) {
|
|
21
|
+
const arr: string[] = [];
|
|
22
|
+
const item = items[i];
|
|
23
|
+
const val = context[item.name];
|
|
24
|
+
if (val) {
|
|
25
|
+
arr.push(item.name);
|
|
26
|
+
arr.push(val);
|
|
27
|
+
values.push(arr);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
paths.push(values);
|
|
31
|
+
});
|
|
32
|
+
paths = paths.sort((a, b) => b.length - a.length);
|
|
33
|
+
const [pathArr] = paths;
|
|
34
|
+
if (pathArr) {
|
|
35
|
+
const obj: Record<string, unknown> = {};
|
|
36
|
+
pathArr.forEach(([key, val]) => {
|
|
37
|
+
obj[key] = val;
|
|
38
|
+
});
|
|
39
|
+
return obj;
|
|
40
|
+
}
|
|
41
|
+
return {};
|
|
42
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pluralLower } from '@ibiz-template/core';
|
|
2
|
-
import { IPSAppDERS } from '@ibiz-template/model';
|
|
2
|
+
import { IPSAppDERS, ModelService } from '@ibiz-template/model';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* 获取服务拼接递归对象
|
|
@@ -45,7 +45,7 @@ export type ServicePathItem = {
|
|
|
45
45
|
* @class ServicePathUtil
|
|
46
46
|
*/
|
|
47
47
|
export class ServicePathUtil {
|
|
48
|
-
protected
|
|
48
|
+
protected allDERss: IPSAppDERS[] = [];
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* 应用实体关系
|
|
@@ -55,7 +55,7 @@ export class ServicePathUtil {
|
|
|
55
55
|
* @protected
|
|
56
56
|
* @type {Map<string, IPSAppDERS[]>} <应用实体, 应用实体父关系>
|
|
57
57
|
*/
|
|
58
|
-
protected
|
|
58
|
+
protected entityRsMap: Map<string, IPSAppDERS[]> = new Map();
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* 实体资源路径
|
|
@@ -65,24 +65,30 @@ export class ServicePathUtil {
|
|
|
65
65
|
* @protected
|
|
66
66
|
* @type {Map<string, ServicePathItem[][]>}
|
|
67
67
|
*/
|
|
68
|
-
protected
|
|
69
|
-
|
|
68
|
+
protected entityRsPathMap: Map<string, ServicePathItem[][]> = new Map();
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Creates an instance of ServicePathUtil.
|
|
72
|
+
*
|
|
73
|
+
* @author chitanda
|
|
74
|
+
* @date 2023-01-10 16:01:18
|
|
75
|
+
* @param {ModelService} modelService 当前应用所归属的模型服务
|
|
76
|
+
*/
|
|
77
|
+
constructor(protected modelService: ModelService) {}
|
|
70
78
|
|
|
71
79
|
/**
|
|
72
80
|
* 初始化工具参数
|
|
73
81
|
*
|
|
74
82
|
* @author chitanda
|
|
75
83
|
* @date 2022-08-22 21:08:47
|
|
76
|
-
* @protected
|
|
77
84
|
* @param {IContext} context
|
|
78
85
|
* @return {*} {Promise<void>}
|
|
79
86
|
*/
|
|
80
|
-
|
|
87
|
+
async init(): Promise<void> {
|
|
81
88
|
if (this.allDERss.length > 0) {
|
|
82
89
|
return;
|
|
83
90
|
}
|
|
84
|
-
const
|
|
85
|
-
const { app } = service;
|
|
91
|
+
const { app } = this.modelService;
|
|
86
92
|
const allPSAppEntities = app.getAllPSAppDataEntities() || [];
|
|
87
93
|
this.allDERss = app.getAllPSAppDERSs() || [];
|
|
88
94
|
allPSAppEntities.forEach(entity => {
|
|
@@ -105,30 +111,32 @@ export class ServicePathUtil {
|
|
|
105
111
|
* @author chitanda
|
|
106
112
|
* @date 2022-08-22 22:08:54
|
|
107
113
|
* @param {IParams} context
|
|
108
|
-
* @param {string}
|
|
109
|
-
* @return {*} {Promise<
|
|
114
|
+
* @param {string} codeName
|
|
115
|
+
* @return {*} {Promise<ServicePathItem[][]>} 返回顺序为 [祖父实体,爷爷实体,父实体,当前实体]
|
|
110
116
|
*/
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
): Promise<ServicePathItem[][]> {
|
|
115
|
-
if (this.entityRsPathMap.has(deName)) {
|
|
116
|
-
return this.entityRsPathMap.get(deName)!;
|
|
117
|
+
calcPaths(codeName: string): ServicePathItem[][] {
|
|
118
|
+
if (this.entityRsPathMap.has(codeName)) {
|
|
119
|
+
return this.entityRsPathMap.get(codeName)!;
|
|
117
120
|
}
|
|
118
|
-
|
|
119
|
-
const deRss = this.entityRsMap.get(deName);
|
|
121
|
+
const deRss = this.entityRsMap.get(codeName);
|
|
120
122
|
if (deRss) {
|
|
121
123
|
const arr = this.calcDeepPath(deRss);
|
|
122
|
-
this.deepFillPath(
|
|
123
|
-
const paths = this.entityRsPathMap.get(
|
|
124
|
+
this.deepFillPath(codeName, [codeName], arr);
|
|
125
|
+
const paths = this.entityRsPathMap.get(codeName);
|
|
124
126
|
if (paths) {
|
|
125
127
|
const sortedPaths = this.sortPath(paths);
|
|
126
|
-
this.entityRsPathMap.set(
|
|
128
|
+
this.entityRsPathMap.set(codeName, sortedPaths);
|
|
127
129
|
return sortedPaths;
|
|
128
130
|
}
|
|
129
131
|
}
|
|
130
132
|
return [
|
|
131
|
-
[
|
|
133
|
+
[
|
|
134
|
+
{
|
|
135
|
+
deName: codeName,
|
|
136
|
+
name: codeName.toLowerCase(),
|
|
137
|
+
plural: pluralLower(codeName),
|
|
138
|
+
},
|
|
139
|
+
],
|
|
132
140
|
];
|
|
133
141
|
}
|
|
134
142
|
|
|
@@ -141,7 +149,7 @@ export class ServicePathUtil {
|
|
|
141
149
|
* @param {IPSAppDERS[]} deRss
|
|
142
150
|
* @return {*} {ServicePathDeep[]}
|
|
143
151
|
*/
|
|
144
|
-
protected
|
|
152
|
+
protected calcDeepPath(
|
|
145
153
|
deRss: IPSAppDERS[],
|
|
146
154
|
num: number = 0,
|
|
147
155
|
): ServicePathDeep[] {
|
|
@@ -167,7 +175,7 @@ export class ServicePathUtil {
|
|
|
167
175
|
* @param {string[]} pathNames
|
|
168
176
|
* @param {ServicePathDeep[]} items
|
|
169
177
|
*/
|
|
170
|
-
protected
|
|
178
|
+
protected deepFillPath(
|
|
171
179
|
deName: string,
|
|
172
180
|
pathNames: string[],
|
|
173
181
|
items: ServicePathDeep[],
|
|
@@ -211,7 +219,7 @@ export class ServicePathUtil {
|
|
|
211
219
|
* @param {ServicePathItem[][]} paths
|
|
212
220
|
* @return {*} {ServicePathItem[][]}
|
|
213
221
|
*/
|
|
214
|
-
protected
|
|
222
|
+
protected sortPath(paths: ServicePathItem[][]): ServicePathItem[][] {
|
|
215
223
|
return paths.sort((a, b) => {
|
|
216
224
|
return b.length - a.length;
|
|
217
225
|
});
|
|
@@ -80,11 +80,13 @@ export class ControlVO {
|
|
|
80
80
|
|
|
81
81
|
Object.defineProperty(this, '$origin', {
|
|
82
82
|
enumerable: false,
|
|
83
|
+
configurable: true,
|
|
83
84
|
value: $origin || {},
|
|
84
85
|
});
|
|
85
86
|
|
|
86
87
|
Object.defineProperty(this, '$dataUIMap', {
|
|
87
88
|
enumerable: false,
|
|
89
|
+
configurable: true,
|
|
88
90
|
value: $dataUIMap || new Map(),
|
|
89
91
|
});
|
|
90
92
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TreeDataSetNodeModel } from '@ibiz-template/model';
|
|
2
|
+
import { ITreeNodeData } from '../../interface';
|
|
3
|
+
import { TreeNodeData } from './tree-node-data';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 实体数据集树节点数据
|
|
7
|
+
*
|
|
8
|
+
* @export
|
|
9
|
+
* @class TreeDataSetNodeData
|
|
10
|
+
* @extends {TreeNodeData}
|
|
11
|
+
* @implements {ITreeNodeData}
|
|
12
|
+
*/
|
|
13
|
+
export class TreeDataSetNodeData extends TreeNodeData implements ITreeNodeData {
|
|
14
|
+
text: string;
|
|
15
|
+
|
|
16
|
+
id: string;
|
|
17
|
+
|
|
18
|
+
value: string;
|
|
19
|
+
|
|
20
|
+
deData: IData;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
model: TreeDataSetNodeModel,
|
|
24
|
+
parentNodeData: ITreeNodeData | undefined,
|
|
25
|
+
opts: { hasQuery: boolean; data: IData },
|
|
26
|
+
) {
|
|
27
|
+
super(model, parentNodeData, opts);
|
|
28
|
+
const { data } = opts;
|
|
29
|
+
this.deData = data;
|
|
30
|
+
this.text = data.srfmajortext;
|
|
31
|
+
this.value = data.srfkey;
|
|
32
|
+
this.id = parentNodeData
|
|
33
|
+
? `${parentNodeData.id}:${data.srfkey}`
|
|
34
|
+
: data.srfkey;
|
|
35
|
+
// id小写
|
|
36
|
+
this.id = this.id.toLowerCase();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { TreeNodeModel } from '@ibiz-template/model';
|
|
2
|
+
import { ITreeNodeData } from '../../interface';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 树节点数据基类
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @abstract
|
|
9
|
+
* @class TreeNodeData
|
|
10
|
+
*/
|
|
11
|
+
export abstract class TreeNodeData {
|
|
12
|
+
/**
|
|
13
|
+
* 节点标识
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof TreeNodeData
|
|
17
|
+
*/
|
|
18
|
+
nodeId: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 是否是叶子节点(没有子节点的节点)
|
|
22
|
+
*
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof TreeNodeData
|
|
25
|
+
*/
|
|
26
|
+
leaf: boolean;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 父节点数据对象
|
|
30
|
+
*
|
|
31
|
+
* @type {ITreeNodeData}
|
|
32
|
+
* @memberof ITreeNodeData
|
|
33
|
+
*/
|
|
34
|
+
parent?: ITreeNodeData;
|
|
35
|
+
|
|
36
|
+
constructor(
|
|
37
|
+
model: TreeNodeModel,
|
|
38
|
+
parentNodeData: ITreeNodeData | undefined,
|
|
39
|
+
opts: { hasQuery: boolean },
|
|
40
|
+
) {
|
|
41
|
+
this.parent = parentNodeData;
|
|
42
|
+
this.nodeId = model.nodeId;
|
|
43
|
+
this.leaf =
|
|
44
|
+
model.tree.getChildNodes(model.nodeId, opts.hasQuery).length === 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TreeStaticNodeModel } from '@ibiz-template/model';
|
|
2
|
+
import { ITreeNodeData } from '../../interface';
|
|
3
|
+
import { TreeNodeData } from './tree-node-data';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 静态树节点数据
|
|
7
|
+
*
|
|
8
|
+
* @export
|
|
9
|
+
* @class TreeStaticNodeData
|
|
10
|
+
* @extends {TreeNodeData}
|
|
11
|
+
* @implements {ITreeNodeData}
|
|
12
|
+
*/
|
|
13
|
+
export class TreeStaticNodeData extends TreeNodeData implements ITreeNodeData {
|
|
14
|
+
text: string;
|
|
15
|
+
|
|
16
|
+
id: string;
|
|
17
|
+
|
|
18
|
+
value: string;
|
|
19
|
+
|
|
20
|
+
constructor(
|
|
21
|
+
model: TreeStaticNodeModel,
|
|
22
|
+
parentNodeData: ITreeNodeData | undefined,
|
|
23
|
+
opts: { hasQuery: boolean },
|
|
24
|
+
) {
|
|
25
|
+
super(model, parentNodeData, opts);
|
|
26
|
+
// 静态节点值不存在时,取父数据的值
|
|
27
|
+
this.value = model.nodeValue || parentNodeData!.value;
|
|
28
|
+
this.id = parentNodeData
|
|
29
|
+
? `${parentNodeData.id}:${model.nodeId}`
|
|
30
|
+
: model.nodeId;
|
|
31
|
+
// id小写
|
|
32
|
+
this.id = this.id.toLowerCase();
|
|
33
|
+
this.text = model.text;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -173,7 +173,6 @@ export async function executeNewDataAppUILogic(
|
|
|
173
173
|
}
|
|
174
174
|
tempContext = new IBizContext(tempContext, context);
|
|
175
175
|
// 删除上下文内的主键
|
|
176
|
-
delete tempContext[appDataEntity.deName.toLowerCase()];
|
|
177
176
|
tempContext[appDataEntity.deName.toLowerCase()] = undefined;
|
|
178
177
|
|
|
179
178
|
const navParams = newViewRef.getPSNavigateParams();
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 树节点数据格式
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @class TreeNodeData
|
|
6
|
-
*/
|
|
7
|
-
export interface TreeNodeData {
|
|
8
|
-
/**
|
|
9
|
-
* 节点标识(节点模型的标识)
|
|
10
|
-
*
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof TreeNodeData
|
|
13
|
-
*/
|
|
14
|
-
nodeId: string;
|
|
15
|
-
/**
|
|
16
|
-
* 节点数据主键
|
|
17
|
-
*
|
|
18
|
-
* @type {string}
|
|
19
|
-
* @memberof TreeNodeData
|
|
20
|
-
*/
|
|
21
|
-
id: string;
|
|
22
|
-
/**
|
|
23
|
-
* 节点显示名称
|
|
24
|
-
*
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof TreeNodeData
|
|
27
|
-
*/
|
|
28
|
-
text: string;
|
|
29
|
-
/**
|
|
30
|
-
* 是否是叶子节点(没有子节点的节点)
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof TreeNodeData
|
|
34
|
-
*/
|
|
35
|
-
leaf: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* 子节点集合(没有子节点则不存在)
|
|
38
|
-
*
|
|
39
|
-
* @type {TreeNodeData[]}
|
|
40
|
-
* @memberof TreeNodeData
|
|
41
|
-
*/
|
|
42
|
-
children?: TreeNodeData[];
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=tree-node-data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree-node-data.d.ts","sourceRoot":"","sources":["../../../src/service/vo/tree-node-data.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;CAG3B"}
|