@ibiz-template/runtime 0.0.1-alpha.3 → 0.0.1-alpha.30

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.
Files changed (59) hide show
  1. package/dist/system/index.system.js +1 -0
  2. package/out/command/app/open-app-view/open-app-view.d.ts +0 -11
  3. package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
  4. package/out/command/app/open-app-view/open-app-view.js +6 -15
  5. package/out/index.d.ts +2 -0
  6. package/out/index.d.ts.map +1 -1
  7. package/out/index.js +2 -0
  8. package/out/install.d.ts.map +1 -1
  9. package/out/install.js +6 -0
  10. package/out/interface/index.d.ts +1 -0
  11. package/out/interface/index.d.ts.map +1 -1
  12. package/out/interface/index.js +1 -0
  13. package/out/interface/register/i-register.d.ts +45 -0
  14. package/out/interface/register/i-register.d.ts.map +1 -0
  15. package/out/interface/register/i-register.js +1 -0
  16. package/out/interface/util/i-loading-util/i-loading-util.d.ts +14 -0
  17. package/out/interface/util/i-loading-util/i-loading-util.d.ts.map +1 -1
  18. package/out/register/index.d.ts +2 -0
  19. package/out/register/index.d.ts.map +1 -0
  20. package/out/register/index.js +1 -0
  21. package/out/register/register-base.d.ts +18 -0
  22. package/out/register/register-base.d.ts.map +1 -0
  23. package/out/register/register-base.js +24 -0
  24. package/out/register/register-center.d.ts +11 -0
  25. package/out/register/register-center.d.ts.map +1 -0
  26. package/out/register/register-center.js +10 -0
  27. package/out/types.d.ts +18 -0
  28. package/out/types.d.ts.map +1 -1
  29. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts +11 -10
  30. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts.map +1 -1
  31. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.js +53 -34
  32. package/out/utils/index.d.ts +2 -0
  33. package/out/utils/index.d.ts.map +1 -1
  34. package/out/utils/index.js +2 -0
  35. package/out/utils/open-redirect-view/open-redirect-view.d.ts +42 -0
  36. package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -0
  37. package/out/utils/open-redirect-view/open-redirect-view.js +149 -0
  38. package/out/utils/plugin-factory/plugin-factory.d.ts +21 -0
  39. package/out/utils/plugin-factory/plugin-factory.d.ts.map +1 -0
  40. package/out/utils/plugin-factory/plugin-factory.js +33 -0
  41. package/out/view-logic/view-logic.d.ts +7 -6
  42. package/out/view-logic/view-logic.d.ts.map +1 -1
  43. package/out/view-logic/view-logic.js +20 -10
  44. package/package.json +20 -11
  45. package/src/command/app/open-app-view/open-app-view.ts +12 -26
  46. package/src/index.ts +2 -0
  47. package/src/install.ts +6 -0
  48. package/src/interface/index.ts +1 -0
  49. package/src/interface/register/i-register.ts +47 -0
  50. package/src/interface/util/i-loading-util/i-loading-util.ts +14 -0
  51. package/src/register/index.ts +1 -0
  52. package/src/register/register-base.ts +27 -0
  53. package/src/register/register-center.ts +9 -0
  54. package/src/types.ts +18 -0
  55. package/src/utils/app-de-ui-action-util/app-de-ui-action-util.ts +65 -44
  56. package/src/utils/index.ts +2 -0
  57. package/src/utils/open-redirect-view/open-redirect-view.ts +187 -0
  58. package/src/utils/plugin-factory/plugin-factory.ts +35 -0
  59. package/src/view-logic/view-logic.ts +31 -14
@@ -0,0 +1 @@
1
+ System.register(["@ibiz-template/service","@ibiz-template/command","@ibiz-template/core","@ibiz-template/model","qx-util"],(function(e){"use strict";var t,n,r,o,i,a,c,u;return{setters:[null,function(e){t=e.commands},function(e){n=e.IBizContext},function(e){r=e.UnsupportedModelError,o=e.DefectModelError,i=e.getPSUIActionByModelObject,a=e.AppEntityModel},function(e){c=e.notNilEmpty,u=e.isNilOrEmpty}],execute:function(){e({convertNavData:v,convertNavDataByArray:h,convertNavDataByObject:g,executeNewDataAppUILogic:O,executeOpenDataAppUILogic:D,executeViewLogic:function(e,t,n,r,o){void 0===o&&(o={});return l(this,void 0,void 0,(function(){var a;return p(this,(function(c){switch(c.label){case 0:return"opendata"===e.name&&e.getPSAppUILogic()?[2,D(e.getPSAppUILogic(),t,n,r,o)]:"newdata"===e.name&&e.getPSAppUILogic()?[2,O(e.getPSAppUILogic(),t,n,r,o)]:[4,i(e.getPSAppViewUIAction())];case 1:if(!(a=c.sent()))throw new Error("找不到界面行为");return[2,A.exec(a,t,n,r,o)]}}))}))},install:function(){var e=window.ibiz;e.commands=t,e.plugin=new E,e.register=new s,V()},installCommand:V,openRedirectView:b});var s=e("RegisterCenter",(function(){}));function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))}function p(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function w(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"[object Array]"===Object.prototype.toString.call(e)?h.apply(void 0,w([e],d(t),!1)):"[object Object]"===Object.prototype.toString.call(e)?g.apply(void 0,w([e],d(t),!1)):{}}function h(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i={},a=function(e){if(c(e.value)&&!e.rawValue){var t=r.find((function(t){return!u(t)&&(t[e.value]||Object.prototype.hasOwnProperty.call(t,e.value))}));t&&(i[e.key]=t[e.value])}else i[e.key]=e.value};try{for(var s=f(e),l=s.next();!l.done;l=s.next()){var p=l.value;a(p)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return i}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r={},o=/^%(.+)%$/,i=function(n){if(c(e[n])&&o.test(e[n])){var i=e[n].substring(1,e[n].length-1),a=t.find((function(e){return Object.prototype.hasOwnProperty.call(e,i)}));a&&(r[n]=a[i])}else r[n]=e[n]};for(var a in e)i(a);return r}var A=e("AppDEUIActionUtil",function(){function e(){}return e.exec=function(e,t,n,r,o){return l(this,void 0,void 0,(function(){var i,a,c,u,s,l,f;return p(this,(function(p){switch(p.label){case 0:return e.enableConfirm&&e.confirmMsg,i=o.neuron,a={refresh:e.reloadData,closeView:e.closeEditView},"SYS"!==e.uIActionMode?[3,2]:[4,this.executeSysUIAction(e,n,o)];case 1:return f=p.sent(),Object.assign(a,f),[3,6];case 2:return[4,this.handleParams(e,t,n,r)];case 3:return c=p.sent(),u=c.resultContext,s=c.resultData,l=c.resultParams,"FRONT"!==e.uIActionMode?[3,5]:[4,this.executeFrontUIAction(e,u,s,l,o)];case 4:return f=p.sent(),Object.assign(a,f),[3,6];case 5:"BACKEND"===e.uIActionMode&&(f=this.executeBackEndUIAction(e,u,s,l),Object.assign(a,f)),p.label=6;case 6:if(e.getNextPSUIAction(),!a.refresh)return[3,8];if(!i.call.refresh)throw new Error("该视图不存在刷新能力");return[4,i.call.refresh()];case 7:p.sent(),p.label=8;case 8:if(!a.closeView)return[3,10];if(!i.call.closeView)throw new Error("该视图不存在关闭视图能力");return[4,i.call.closeView()];case 9:p.sent(),p.label=10;case 10:return[2,a]}}))}))},e.handleParams=function(e,t,r,o){return l(this,void 0,void 0,(function(){var i,a,u,s,l,f,d,w,h;return p(this,(function(p){switch(p.label){case 0:if(i=r||[],-1!==["SINGLEDATA","MULTIDATA","MULTIKEY"].indexOf(e.actionTarget))throw new Error("数据类型".concat(e.actionTarget,"暂未支持,请配置无数据或单项数据主键"));return"NONE"===e.actionTarget&&(i=[]),a={},u=e.getPSNavigateContexts()||[],(s=e.getPSAppDataEntity())&&"SINGLEKEY"===e.actionTarget?[4,null==s?void 0:s.fill(!0)]:[3,2];case 1:p.sent(),l=s.codeName.toLowerCase(),f=e.valueItem,u.unshift({key:l,value:f||"srfkey",rawValue:!1}),p.label=2;case 2:return c(u)&&(a=v(u,t,o,(null==r?void 0:r[0])||{})),d=new n(a,t),w={},h=e.getPSNavigateParams(),c(h)&&(w=v(h,t,o,(null==r?void 0:r[0])||{})),[2,{resultContext:d,resultData:i,resultParams:w}]}}))}))},e.executeSysUIAction=function(e,t,n){return l(this,void 0,void 0,(function(){var o,i,a,c,u;return p(this,(function(s){switch(s.label){case 0:if(i=(o=n).neuron,a=o.event,c=e.uIActionTag,u={},-1!==["HELP","PRINT","ViewWFStep","RefreshParent","RefreshAll","Import"].indexOf(c))throw new r(e,"".concat(c,"暂未支持"));if("New"!==c)return[3,2];if(!i.call.newData)throw new Error("该视图不存在newData能力");return[4,i.call.newData(a)];case 1:s.sent(),s.label=2;case 2:if("Edit"!==c)return[3,4];if(!i.call.openData)throw new Error("该视图不存在openData能力");return[4,i.call.openData(null==t?void 0:t[0],a)];case 3:s.sent(),s.label=4;case 4:if(-1===["SaveAndExit","Save","SaveRow"].indexOf(c))return[3,6];if(!i.call.save)throw new Error("该视图不存在save能力");return[4,i.call.save()];case 5:s.sent(),s.label=6;case 6:if("SaveAndNew"!==c)return[3,8];if(!i.call.saveAndNew)throw new Error("该视图不存在saveAndNew能力");return[4,i.call.saveAndNew()];case 7:s.sent(),s.label=8;case 8:if("Remove"!==c&&"RemoveAndExit"!==c)return[3,10];if(!i.call.remove)throw new Error("该视图不存在remove能力");return[4,i.call.remove()];case 9:s.sent(),s.label=10;case 10:if("NewRow"!==c)return[3,12];if(!i.call.newRow)throw new Error("该视图不存在newRow能力");return[4,i.call.newRow()];case 11:s.sent(),s.label=12;case 12:if("ToggleFilter"===c){if(!i.call.toggleFilter)throw new Error("该视图不存在ToggleFilter能力");i.call.toggleFilter()}if("SaveAndStart"!==c)return[3,14];if(!i.call.wfStart)throw new Error("该视图不存在SaveAndStart能力");return[4,i.call.wfStart()];case 13:s.sent(),s.label=14;case 14:if("ViewWFStep"!==c)return[3,16];if(!i.call.wfSubmit)throw new Error("该视图不存在ViewWFStep能力");return[4,i.call.wfSubmit()];case 15:s.sent(),s.label=16;case 16:return-1!==["SaveAndExit","Exit","RemoveAndExit"].indexOf(c)&&(u.closeView=!0),-1!==["Refresh"].indexOf(c)&&(u.refresh=!0),[2,u]}}))}))},e.executeFrontUIAction=function(e,t,n,r,o){return l(this,void 0,void 0,(function(){var n;return p(this,(function(i){switch(i.label){case 0:if(!(n=e.getFrontPSAppView()))throw new Error("未配置打开视图");return[4,n.fill(!0)];case 1:return i.sent(),[4,ibiz.commands.execute(S.TAG,n,t,r,o)];case 2:return i.sent(),[2,{}]}}))}))},e.executeBackEndUIAction=function(e,t,n,r){var o,i;return l(this,void 0,void 0,(function(){var n,a;return p(this,(function(c){switch(c.label){case 0:if(n=null===(o=e.getPSAppDataEntity())||void 0===o?void 0:o.codeName,a=null===(i=e.getPSAppDEMethod())||void 0===i?void 0:i.codeName,!n||!a)throw new Error("找不到实体或实体行为");return[4,ibiz.entityService.getService(n)];case 1:return[4,c.sent().exec(a,t,r)];case 2:return c.sent(),[2,{}]}}))}))},e}());function b(e,t,o,i){return void 0===t&&(t=new n),void 0===o&&(o={}),void 0===i&&(i=[]),l(this,void 0,void 0,(function(){return p(this,(function(n){if(e.instanceof("app.view.IPSAppDERedirectView"))return[2,m(e,t,o,i)];throw new r(e,"未支持的重定向视图类型: ".concat(e.viewType))}))}))}function m(e,t,r,i){return void 0===t&&(t=new n),void 0===r&&(r={}),void 0===i&&(i=[]),l(this,void 0,void 0,(function(){var a,c,u,s,l,f,d,w,h,g,A,b,m,P,E,x,V,D;return p(this,(function(p){switch(p.label){case 0:return a=e.getPSAppViewNavContexts()||[],c=v(a,t,r),t=new n(c,t),u=e.getPSAppViewNavParams()||[],s=v(u,t,r),Object.assign(r,s),[4,(l=e.getPSAppDataEntity()).fill(!0)];case 1:return p.sent(),f=l.codeName.toLowerCase(),d=i[0]||{},t[f]=d[f]||t[f]||r[f],w=e.getGetDataPSAppDEAction(),[4,ibiz.entityService.getService(l.codeName)];case 2:return h=p.sent(),ibiz.loading.showRedirect(),[4,h.exec(w?w.codeName:"Get",t,r)];case 3:return g=p.sent(),ibiz.loading.hideRedirect(),g.ok&&(d=g.data,A=d.linkurl)?A.startsWith("http://")||A.startsWith("https://")?(window.open(A,"_blank"),[2,{ok:!0,data:[]}]):[2,{ok:!1,data:[]}]:(b=!!r.srfwf,[4,y(l,e,b,d)]);case 4:return m=p.sent(),P=m,b&&(P="".concat(m.split(":")[0],":").concat(r.srfwf.toUpperCase())),E=e.getRedirectPSAppViewRefs(),x=null==E?void 0:E.find((function(e){return e.name===P})),x||(P="".concat(m.split(":")[0]),x=null==E?void 0:E.find((function(e){return e.name===P}))),x?(V=x.getRefPSAppView())?[4,ibiz.commands.execute(S.TAG,V,t,r,{data:[d]})]:[3,6]:[3,7];case 5:return(D=p.sent())?[2,D]:[3,7];case 6:throw new o(x,"未配置实际引用视图");case 7:return[2,{ok:!0,data:[]}]}}))}))}function y(e,t,n,r){return l(this,void 0,void 0,(function(){var o,i,a,c,u;return p(this,(function(s){return o=e.getFormTypePSAppDEField(),i=e.getIndexTypePSAppDEField(),"",(a=t.getTypePSAppDEField())&&(c=r[a.codeName.toLowerCase()])?[2,c]:(u="",o?u=r[o.codeName.toLowerCase()]:i&&(u=r[i.codeName.toLowerCase()]),[2,u?n?"WFEDITVIEW:".concat(u):"EDITVIEW:".concat(u):n?"WFEDITVIEW:":"EDITVIEW:"])}))}))}var P,E=e("PluginFactory",function(){function e(){}return e.prototype.loadPlugin=function(e){return l(this,void 0,void 0,(function(){var t,n;return p(this,(function(r){switch(r.label){case 0:return e.runtimeObject?"VIEW_CUSTOM:remoteView"!==(t="".concat(e.pluginType,":").concat(e.pluginCode))?[3,3]:System.has(t)?[3,2]:[4,System.import(e.pluginCode)]:[3,3];case 1:(n=r.sent())&&System.set(t,n),r.label=2;case 2:return[2,System.get(t)];case 3:return[2]}}))}))},e}()),S=e("OpenAppViewCommand",function(){function e(){ibiz.commands.register(e.TAG,this.exec.bind(this))}return e.prototype.exec=function(e,t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),l(this,void 0,void 0,(function(){var o;return p(this,(function(i){switch(i.label){case 0:return[4,e.fill(!0)];case 1:if(i.sent(),e.redirectView)return[2,b(e,t,n,r.data)];switch(o=e.openMode,void 0===o?"INDEXVIEWTAB":o){case"INDEXVIEWTAB":default:return[2,this.openIndexViewTab(e,t,n)];case"POPUP":throw new Error("未支持的视图打开模式: POPUP");case"POPUPMODAL":return[2,this.openModal(e,t,n)];case"POPUPAPP":throw new Error("未支持的视图打开模式: POPUPAPP");case"POPOVER":return[2,this.openPopover(e,t,n)];case"DRAWER_LEFT":case"DRAWER_RIGHT":case"DRAWER_TOP":case"DRAWER_BOTTOM":return[2,this.openDrawer(e,t,n)];case"USER":return[2,this.openUserCustom(e,t,n)]}return[2]}}))}))},e.prototype.openIndexViewTab=function(e,t,n){return void 0===n&&(n={}),ibiz.openView.root(e,t,n)},e.prototype.openModal=function(e,t,n){return void 0===n&&(n={}),l(this,void 0,void 0,(function(){return p(this,(function(r){return[2,ibiz.openView.modal(e,t,n)]}))}))},e.prototype.openPopover=function(e,t,n){return void 0===n&&(n={}),l(this,void 0,void 0,(function(){return p(this,(function(r){return[2,ibiz.openView.popover(e,t,n)]}))}))},e.prototype.openDrawer=function(e,t,n){return void 0===n&&(n={}),l(this,void 0,void 0,(function(){return p(this,(function(r){return[2,ibiz.openView.drawer(e,t,n)]}))}))},e.prototype.openUserCustom=function(e,t,n){return void 0===n&&(n={}),l(this,void 0,void 0,(function(){return p(this,(function(r){return[2,ibiz.openView.custom(e,t,n)]}))}))},e.TAG="ibiz.app-view.open",e}()),x=e("AppFuncCommand",function(){function e(){ibiz.commands.register(e.TAG,this.exec.bind(this))}return e.prototype.exec=function(e,t,r,o){return void 0===r&&(r={}),void 0===o&&(o={}),l(this,void 0,void 0,(function(){var i,a;return p(this,(function(c){switch((i=e.getPSNavigateContexts())&&(t?Object.assign(t,i):t=new n(i)),(a=e.getPSNavigateParams())&&Object.assign(r,a),e.appFuncType){case"APPVIEW":return[2,this.openAppView(e,t,r,o)];case"OPENHTMLPAGE":return[2,this.openHtmlPage(e)];case"PDTAPPFUNC":return[2,this.openPdAppFunc(e,t,r)];case"JAVASCRIPT":return[2,this.executeJavaScript(e,t,r)];case"CUSTOM":return[2,this.custom(e,t,r)];default:throw new Error("未知的应用功能类型: ".concat(e.appFuncType))}}))}))},e.prototype.openAppView=function(e,t,n,r){var o=e.getPSAppView();if(!o)throw new Error("应用视图不存在");return ibiz.commands.execute(S.TAG,o,t,n,r)},e.prototype.openHtmlPage=function(e){var t=e.htmlPageUrl;window.open(t,"_blank")},e.prototype.openPdAppFunc=function(e,t,n){throw console.log("openPdAppFunc",e,t,n),new Error("未实现")},e.prototype.executeJavaScript=function(e,t,n){throw console.log("executeJavaScript",e,t,n),new Error("未实现")},e.prototype.custom=function(e,t,n){throw console.log("custom",e,t,n),new Error("未实现")},e.TAG="ibiz.app-func.exec",e}());function V(){new x,new S}e("ViewMode",P),function(e){e.ROUTE="ROUTE",e.MODAL="MODAL",e.DRAWER="DRAWER",e.EMBED="EMBED",e.POPOVER="POPOVER"}(P||e("ViewMode",P={}));e("RegisterBase",function(){function e(){this.providers=new Map}return e.prototype.register=function(e,t){this.providers.set(e,t)},e.prototype.unRegister=function(e){this.providers.delete(e)},e.prototype.getByKey=function(e){return this.providers.get(e)},e}());function D(e,t,r,o,i){return void 0===i&&(i={}),l(this,void 0,void 0,(function(){var u,s,l,f,d,w,h,g;return p(this,(function(p){switch(p.label){case 0:if(!(null==r?void 0:r[0]))throw Error("没有选中数据!");if(!(u=e.getOpenDataPSAppView()))throw new Error("getOpenDataPSAppView为空");if(!(s=u.getRefPSAppView()))throw new Error("openView为空");return[4,s.fill(!0)];case 1:return p.sent(),[4,(l=new a(s.getPSAppDataEntity())).init()];case 2:return p.sent(),f=u.getPSNavigateContexts()||[],d=l.deName.toLowerCase(),-1===f.findIndex((function(e){return e.key===d}))&&f.push({key:d,value:d,rawValue:!1}),w=new n(v(f,t,o,r[0]),t),h={},g=u.getPSNavigateParams(),c(g)&&(h=v(g,o,t,r[0])),[4,ibiz.commands.execute(S.TAG,s,w,h,i)];case 3:return p.sent(),i.neuron.call.refresh(),[2,{}]}}))}))}function O(e,t,r,o,i){return void 0===i&&(i={}),l(this,void 0,void 0,(function(){var u,s,l,f,d,w,h,g;return p(this,(function(p){switch(p.label){case 0:if(!(u=e.getNewDataPSAppView()))throw new Error("getNewDataPSAppView为空");if(!(s=u.getRefPSAppView()))throw new Error("newView为空");return[4,s.fill(!0)];case 1:return p.sent(),[4,(l=new a(s.getPSAppDataEntity())).init()];case 2:return p.sent(),f={},d={},w=(null==r?void 0:r[0])||{},h=u.getPSNavigateContexts(),c(h)&&(f=v(h,t,o,w)),delete(f=new n(f,t))[l.deName.toLowerCase()],f[l.deName.toLowerCase()]=void 0,g=u.getPSNavigateParams(),c(g)&&(d=v(g,o,t,w)),e.enableWizardAdd||e.enableBatchAdd||e.batchAddOnly,[4,ibiz.commands.execute(S.TAG,s,f,d,i)];case 3:return p.sent(),i.neuron.call.refresh(),[2,{}]}}))}))}}}}));
@@ -24,17 +24,6 @@ export declare class OpenAppViewCommand {
24
24
  * @return {*} {(Promise<IModalData | void>)}
25
25
  */
26
26
  exec(appView: IPSAppView, context?: IBizContext, params?: IParams, _opts?: IData): Promise<IModalData | void>;
27
- /**
28
- * 打开重定向视图
29
- *
30
- * @author chitanda
31
- * @date 2022-07-25 20:07:24
32
- * @protected
33
- * @param {IPSAppView} appView
34
- * @param {IBizContext} [context]
35
- * @param {IParams} [params={}]
36
- */
37
- protected openRedirectView(appView: IPSAppView, context?: IBizContext, params?: IParams): void;
38
27
  /**
39
28
  * 首页导航模式打开
40
29
  *
@@ -1 +1 @@
1
- {"version":3,"file":"open-app-view.d.ts","sourceRoot":"","sources":["../../../../src/command/app/open-app-view/open-app-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,QAAQ,CAAC,GAAG,wBAAwB;;IAM3C;;;;;;;;;;OAUG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,EACpB,KAAK,GAAE,KAAU,GAChB,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IA0B7B;;;;;;;;;OASG;IACH,SAAS,CAAC,gBAAgB,CACxB,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,GACnB,IAAI;IASP;;;;;;;;;OASG;IACH,SAAS,CAAC,gBAAgB,CACxB,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,GACnB,IAAI;IAIP;;;;;;;;;;OAUG;cACa,SAAS,CACvB,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,UAAU,CAAC;IAItB;;;;;;;;;;OAUG;cACa,WAAW,CACzB,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,UAAU,CAAC;IAItB;;;;;;;;;;OAUG;cACa,UAAU,CACxB,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,UAAU,CAAC;IAItB;;;;;;;;;;OAUG;cACa,cAAc,CAC5B,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,UAAU,CAAC;CAGvB"}
1
+ {"version":3,"file":"open-app-view.d.ts","sourceRoot":"","sources":["../../../../src/command/app/open-app-view/open-app-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAsB,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD;;;;;;;GAOG;AACH,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,QAAQ,CAAC,GAAG,wBAAwB;;IAM3C;;;;;;;;;;OAUG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,EACpB,KAAK,GAAE,KAAU,GAChB,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAkC7B;;;;;;;;;OASG;IACH,SAAS,CAAC,gBAAgB,CACxB,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,GACnB,IAAI;IAIP;;;;;;;;;;OAUG;cACa,SAAS,CACvB,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,UAAU,CAAC;IAItB;;;;;;;;;;OAUG;cACa,WAAW,CACzB,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,UAAU,CAAC;IAItB;;;;;;;;;;OAUG;cACa,UAAU,CACxB,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,UAAU,CAAC;IAItB;;;;;;;;;;OAUG;cACa,cAAc,CAC5B,OAAO,EAAE,UAAU,EACnB,OAAO,CAAC,EAAE,WAAW,EACrB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,UAAU,CAAC;CAGvB"}
@@ -1,3 +1,4 @@
1
+ import { openRedirectView } from '../../../utils';
1
2
  /**
2
3
  * 打开应用视图
3
4
  *
@@ -24,7 +25,7 @@ export class OpenAppViewCommand {
24
25
  async exec(appView, context, params = {}, _opts = {}) {
25
26
  await appView.fill(true);
26
27
  if (appView.redirectView) {
27
- return this.openRedirectView(appView);
28
+ return openRedirectView(appView, context, params, _opts.data);
28
29
  }
29
30
  const { openMode = 'INDEXVIEWTAB' } = appView;
30
31
  switch (openMode) {
@@ -38,7 +39,10 @@ export class OpenAppViewCommand {
38
39
  throw new Error('未支持的视图打开模式: POPUPAPP');
39
40
  case 'POPOVER':
40
41
  return this.openPopover(appView, context, params);
41
- case 'DRAWER':
42
+ case 'DRAWER_LEFT':
43
+ case 'DRAWER_RIGHT':
44
+ case 'DRAWER_TOP':
45
+ case 'DRAWER_BOTTOM':
42
46
  return this.openDrawer(appView, context, params);
43
47
  case 'USER':
44
48
  return this.openUserCustom(appView, context, params);
@@ -46,19 +50,6 @@ export class OpenAppViewCommand {
46
50
  return this.openIndexViewTab(appView, context, params);
47
51
  }
48
52
  }
49
- /**
50
- * 打开重定向视图
51
- *
52
- * @author chitanda
53
- * @date 2022-07-25 20:07:24
54
- * @protected
55
- * @param {IPSAppView} appView
56
- * @param {IBizContext} [context]
57
- * @param {IParams} [params={}]
58
- */
59
- openRedirectView(appView, context, params = {}) {
60
- console.log('OpenAppViewCommand.openRedirectView', appView, context, params);
61
- }
62
53
  /**
63
54
  * 首页导航模式打开
64
55
  *
package/out/index.d.ts CHANGED
@@ -3,6 +3,8 @@ export { install } from './install';
3
3
  export * from './command';
4
4
  export * from './constant';
5
5
  export * from './interface';
6
+ export { RegisterCenter } from './register/register-center';
7
+ export * from './register';
6
8
  export * from './utils';
7
9
  export * from './view-logic';
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AAEjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AAEjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
package/out/index.js CHANGED
@@ -3,5 +3,7 @@ export { install } from './install';
3
3
  export * from './command';
4
4
  export * from './constant';
5
5
  export * from './interface';
6
+ export { RegisterCenter } from './register/register-center';
7
+ export * from './register';
6
8
  export * from './utils';
7
9
  export * from './view-logic';
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,OAAO,IAAI,IAAI,CAM9B"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,OAAO,IAAI,IAAI,CAU9B"}
package/out/install.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { commands } from '@ibiz-template/command';
2
+ import { RegisterCenter } from './register/register-center';
2
3
  import { installCommand } from './command';
4
+ import { PluginFactory } from './utils';
3
5
  /**
4
6
  * 安装运行时
5
7
  *
@@ -11,6 +13,10 @@ export function install() {
11
13
  const { ibiz } = window;
12
14
  // 挂载指令控制器
13
15
  ibiz.commands = commands;
16
+ // 挂载插件工厂
17
+ ibiz.plugin = new PluginFactory();
18
+ // 挂载注册中心
19
+ ibiz.register = new RegisterCenter();
14
20
  // 安装默认指令
15
21
  installCommand();
16
22
  }
@@ -2,4 +2,5 @@ export { IModal } from './i-modal/i-modal';
2
2
  export { IModalData } from './i-modal-data/i-modal-data';
3
3
  export { IUIActionResult } from './i-ui-action-result/i-ui-action-result';
4
4
  export * from './util';
5
+ export * from './register/i-register';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from './util';
2
+ export * from './register/i-register';
@@ -0,0 +1,45 @@
1
+ /**
2
+ * 注册器接口
3
+ *
4
+ * @author lxm
5
+ * @date 2022-09-19 19:09:14
6
+ * @export
7
+ * @interface IRegister
8
+ */
9
+ export interface IRegister<T> {
10
+ /**
11
+ * 适配器集合
12
+ *
13
+ * @author lxm
14
+ * @date 2022-10-17 16:10:54
15
+ * @type {Map<string, T>}
16
+ */
17
+ providers: Map<string, T>;
18
+ /**
19
+ * 注册适配器
20
+ *
21
+ * @author lxm
22
+ * @date 2022-09-19 19:09:48
23
+ * @param {string} key
24
+ * @param {T} provider
25
+ */
26
+ register(key: string, provider: T): void;
27
+ /**
28
+ * 注销适配器
29
+ *
30
+ * @author lxm
31
+ * @date 2022-09-19 19:09:59
32
+ * @param {string} key
33
+ */
34
+ unRegister(key: string): void;
35
+ /**
36
+ * 获取适配器
37
+ *
38
+ * @author lxm
39
+ * @date 2022-09-19 19:09:13
40
+ * @param {string} key
41
+ * @returns {*} {T}
42
+ */
43
+ getByKey(key: string): T | undefined;
44
+ }
45
+ //# sourceMappingURL=i-register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-register.d.ts","sourceRoot":"","sources":["../../../src/interface/register/i-register.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B;;;;;;OAMG;IACH,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAE1B;;;;;;;OAOG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC;IAEzC;;;;;;OAMG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;;;;;;OAOG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;CACtC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -22,5 +22,19 @@ export interface ILoadingUtil {
22
22
  * @date 2022-08-17 17:08:48
23
23
  */
24
24
  hide(): void;
25
+ /**
26
+ * 显示顶部全局加载动画
27
+ *
28
+ * @author chitanda
29
+ * @date 2022-10-08 16:10:18
30
+ */
31
+ showRedirect(): void;
32
+ /**
33
+ * 隐藏顶部全局加载动画
34
+ *
35
+ * @author chitanda
36
+ * @date 2022-10-08 16:10:29
37
+ */
38
+ hideRedirect(): void;
25
39
  }
26
40
  //# sourceMappingURL=i-loading-util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i-loading-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-loading-util/i-loading-util.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;;OAKG;IACH,IAAI,IAAI,IAAI,CAAC;CACd"}
1
+ {"version":3,"file":"i-loading-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-loading-util/i-loading-util.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;;OAKG;IACH,IAAI,IAAI,IAAI,CAAC;IACb;;;;;OAKG;IACH,YAAY,IAAI,IAAI,CAAC;IACrB;;;;;OAKG;IACH,YAAY,IAAI,IAAI,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export * from './register-base';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/register/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './register-base';
@@ -0,0 +1,18 @@
1
+ import { IRegister } from '../interface';
2
+ /**
3
+ * 注册器基类
4
+ *
5
+ * @author lxm
6
+ * @date 2022-10-17 16:10:54
7
+ * @export
8
+ * @class RegisterBase
9
+ * @implements {IRegister<T>}
10
+ * @template T
11
+ */
12
+ export declare class RegisterBase<T> implements IRegister<T> {
13
+ providers: Map<string, T>;
14
+ register(key: string, provider: T): void;
15
+ unRegister(key: string): void;
16
+ getByKey(key: string): T | undefined;
17
+ }
18
+ //# sourceMappingURL=register-base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-base.d.ts","sourceRoot":"","sources":["../../src/register/register-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;;;;;;;GASG;AACH,qBAAa,YAAY,CAAC,CAAC,CAAE,YAAW,SAAS,CAAC,CAAC,CAAC;IAClD,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAa;IAEtC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI;IAIxC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI7B,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;CAGrC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 注册器基类
3
+ *
4
+ * @author lxm
5
+ * @date 2022-10-17 16:10:54
6
+ * @export
7
+ * @class RegisterBase
8
+ * @implements {IRegister<T>}
9
+ * @template T
10
+ */
11
+ export class RegisterBase {
12
+ constructor() {
13
+ this.providers = new Map();
14
+ }
15
+ register(key, provider) {
16
+ this.providers.set(key, provider);
17
+ }
18
+ unRegister(key) {
19
+ this.providers.delete(key);
20
+ }
21
+ getByKey(key) {
22
+ return this.providers.get(key);
23
+ }
24
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 注册中心
3
+ *
4
+ * @author lxm
5
+ * @date 2022-09-19 19:09:10
6
+ * @export
7
+ * @class Register
8
+ */
9
+ export declare class RegisterCenter {
10
+ }
11
+ //# sourceMappingURL=register-center.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-center.d.ts","sourceRoot":"","sources":["../../src/register/register-center.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,qBAAa,cAAc;CAAG"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 注册中心
3
+ *
4
+ * @author lxm
5
+ * @date 2022-09-19 19:09:10
6
+ * @export
7
+ * @class Register
8
+ */
9
+ export class RegisterCenter {
10
+ }
package/out/types.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { CommandController } from '@ibiz-template/command';
2
2
  import '@ibiz-template/service';
3
3
  import { IMessageUtil, INotificationUtil, IOpenViewUtil, IModalUtil, ILoadingUtil } from './interface';
4
+ import { RegisterCenter } from './register/register-center';
5
+ import { PluginFactory } from './utils';
4
6
  declare module '@ibiz-template/core' {
5
7
  interface IBizSys {
6
8
  /**
@@ -55,6 +57,22 @@ declare module '@ibiz-template/core' {
55
57
  * @type {IOpenViewUtil}
56
58
  */
57
59
  openView: IOpenViewUtil;
60
+ /**
61
+ * 插件工具工厂
62
+ *
63
+ * @author chitanda
64
+ * @date 2022-10-20 16:10:36
65
+ * @type {PluginFactory}
66
+ */
67
+ plugin: PluginFactory;
68
+ /**
69
+ * 注册中心
70
+ *
71
+ * @author lxm
72
+ * @date 2022-09-19 19:09:23
73
+ * @type {Register}
74
+ */
75
+ register: RegisterCenter;
58
76
  }
59
77
  }
60
78
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,wBAAwB,CAAC;AAChC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,OAAO;QACf;;;;;;WAMG;QACH,QAAQ,EAAE,iBAAiB,CAAC;QAC5B;;;;;;WAMG;QACH,OAAO,EAAE,YAAY,CAAC;QACtB;;;;;;;WAOG;QACH,KAAK,EAAE,UAAU,CAAC;QAClB;;;;;;;WAOG;QACH,OAAO,EAAE,YAAY,CAAC;QACtB;;;;;;;WAOG;QACH,YAAY,EAAE,iBAAiB,CAAC;QAChC;;;;;;;WAOG;QACH,QAAQ,EAAE,aAAa,CAAC;KACzB;CACF"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,wBAAwB,CAAC;AAChC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,OAAO;QACf;;;;;;WAMG;QACH,QAAQ,EAAE,iBAAiB,CAAC;QAC5B;;;;;;WAMG;QACH,OAAO,EAAE,YAAY,CAAC;QACtB;;;;;;;WAOG;QACH,KAAK,EAAE,UAAU,CAAC;QAClB;;;;;;;WAOG;QACH,OAAO,EAAE,YAAY,CAAC;QACtB;;;;;;;WAOG;QACH,YAAY,EAAE,iBAAiB,CAAC;QAChC;;;;;;;WAOG;QACH,QAAQ,EAAE,aAAa,CAAC;QACxB;;;;;;WAMG;QACH,MAAM,EAAE,aAAa,CAAC;QACtB;;;;;;WAMG;QACH,QAAQ,EAAE,cAAc,CAAC;KAC1B;CACF"}
@@ -1,3 +1,4 @@
1
+ import { IBizContext } from '@ibiz-template/core';
1
2
  import { IPSAppDEUIAction } from '@ibiz-template/model';
2
3
  import { IUIActionResult } from '../../interface';
3
4
  /**
@@ -16,13 +17,13 @@ export declare class AppDEUIActionUtil {
16
17
  * @date 2022-08-29 15:08:47
17
18
  * @static
18
19
  * @param {IPSAppDEUIAction} action
19
- * @param {IContext} context
20
+ * @param {IBizContext} context
20
21
  * @param {(IData | null)} data
21
22
  * @param {IParams} [params]
22
23
  * @param {IData} [opts]
23
24
  * @return {*} {Promise<IUIActionResult>}
24
25
  */
25
- static exec(action: IPSAppDEUIAction, context: IContext, data: IData[] | null, params: IParams, opts?: IData): Promise<IUIActionResult>;
26
+ static exec(action: IPSAppDEUIAction, context: IBizContext, data: IData[] | null, params: IParams, opts?: IData): Promise<IUIActionResult>;
26
27
  /**
27
28
  * 参数处理(根据数据目标和数据参数,导航参数)
28
29
  *
@@ -31,17 +32,17 @@ export declare class AppDEUIActionUtil {
31
32
  * @protected
32
33
  * @static
33
34
  * @param {IPSAppDEUIAction} action 界面行为
34
- * @param {IContext} context 上下文
35
+ * @param {IBizContext} context 上下文
35
36
  * @param {(IData[] | null)} data 数据集合
36
37
  * @param {IParams} params 视图参数
37
38
  * @returns {*} {Promise<{
38
- * resultContext: IContext; 处理后的上下文
39
+ * resultContext: IBizContext; 处理后的上下文
39
40
  * resultData: IData[]; 处理后的数据集合
40
41
  * resultParams: IParams; 处理后的视图参数
41
42
  * }>}
42
43
  */
43
- protected static handleParams(action: IPSAppDEUIAction, context: IContext, data: IData[] | null, params: IParams): Promise<{
44
- resultContext: IContext;
44
+ protected static handleParams(action: IPSAppDEUIAction, context: IBizContext, data: IData[] | null, params: IParams): Promise<{
45
+ resultContext: IBizContext;
45
46
  resultData: IData[];
46
47
  resultParams: IParams;
47
48
  }>;
@@ -62,13 +63,13 @@ export declare class AppDEUIActionUtil {
62
63
  * @date 2022-08-29 15:08:51
63
64
  * @static
64
65
  * @param {IPSAppDEUIAction} action
65
- * @param {IContext} context
66
+ * @param {IBizContext} context
66
67
  * @param {(IData[] | null)} data
67
68
  * @param {IParams} params
68
69
  * @param {IData} [opts]
69
70
  * @returns {*} {Promise<IUIActionResult>}
70
71
  */
71
- static executeFrontUIAction(action: IPSAppDEUIAction, context: IContext, _data: IData[] | null, params: IParams, opts?: IData): Promise<IUIActionResult>;
72
+ static executeFrontUIAction(action: IPSAppDEUIAction, context: IBizContext, _data: IData[] | null, params: IParams, opts?: IData): Promise<IUIActionResult>;
72
73
  /**
73
74
  * 执行后台调用
74
75
  *
@@ -76,11 +77,11 @@ export declare class AppDEUIActionUtil {
76
77
  * @date 2022-08-28 20:08:35
77
78
  * @export
78
79
  * @param {IPSAppDEUIAction} action
79
- * @param {IContext} context
80
+ * @param {IBizContext} context
80
81
  * @param {IData[]} data
81
82
  * @param {IParams} params
82
83
  * @returns {*} {Promise<IUIActionResult>}
83
84
  */
84
- static executeBackEndUIAction(action: IPSAppDEUIAction, context: IContext, _data: IData[], params: IParams): Promise<IUIActionResult>;
85
+ static executeBackEndUIAction(action: IPSAppDEUIAction, context: IBizContext, _data: IData[], params: IParams): Promise<IUIActionResult>;
85
86
  }
86
87
  //# sourceMappingURL=app-de-ui-action-util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-de-ui-action-util.d.ts","sourceRoot":"","sources":["../../../src/utils/app-de-ui-action-util/app-de-ui-action-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsB,MAAM,sBAAsB,CAAC;AAG5E,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC5B;;;;;;;;;;;;OAYG;WACU,IAAI,CACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EACpB,MAAM,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,KAAK,GACX,OAAO,CAAC,eAAe,CAAC;IAsE3B;;;;;;;;;;;;;;;;OAgBG;qBACoB,YAAY,CACjC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EACpB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC;QACT,aAAa,EAAE,QAAQ,CAAC;QACxB,UAAU,EAAE,KAAK,EAAE,CAAC;QACpB,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;IAwDF;;;;;;;;OAQG;WACU,kBAAkB,CAC7B,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EACpB,IAAI,CAAC,EAAE,KAAK,GACX,OAAO,CAAC,eAAe,CAAC;IAoF3B;;;;;;;;;;;;OAYG;WACU,oBAAoB,CAC/B,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EACrB,MAAM,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,KAAK,GACX,OAAO,CAAC,eAAe,CAAC;IAiB3B;;;;;;;;;;;OAWG;WACU,sBAAsB,CACjC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,KAAK,EAAE,EACd,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,eAAe,CAAC;CAY5B"}
1
+ {"version":3,"file":"app-de-ui-action-util.d.ts","sourceRoot":"","sources":["../../../src/utils/app-de-ui-action-util/app-de-ui-action-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EACL,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC5B;;;;;;;;;;;;OAYG;WACU,IAAI,CACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EACpB,MAAM,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,KAAK,GACX,OAAO,CAAC,eAAe,CAAC;IAqE3B;;;;;;;;;;;;;;;;OAgBG;qBACoB,YAAY,CACjC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EACpB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC;QACT,aAAa,EAAE,WAAW,CAAC;QAC3B,UAAU,EAAE,KAAK,EAAE,CAAC;QACpB,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;IA0DF;;;;;;;;OAQG;WACU,kBAAkB,CAC7B,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EACpB,IAAI,CAAC,EAAE,KAAK,GACX,OAAO,CAAC,eAAe,CAAC;IAqG3B;;;;;;;;;;;;OAYG;WACU,oBAAoB,CAC/B,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EACrB,MAAM,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,KAAK,GACX,OAAO,CAAC,eAAe,CAAC;IAiB3B;;;;;;;;;;;OAWG;WACU,sBAAsB,CACjC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,EAAE,EACd,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,eAAe,CAAC;CAU5B"}