@ibiz-template/runtime 0.0.1-alpha.8 → 0.0.1-beta.1

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 (183) hide show
  1. package/dist/system/index.system.js +1 -0
  2. package/out/command/app/app-func/app-func.js +3 -3
  3. package/out/command/app/open-app-view/open-app-view.d.ts +2 -13
  4. package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
  5. package/out/command/app/open-app-view/open-app-view.js +6 -18
  6. package/out/index.d.ts +3 -1
  7. package/out/index.d.ts.map +1 -1
  8. package/out/index.js +3 -1
  9. package/out/install.d.ts.map +1 -1
  10. package/out/install.js +5 -2
  11. package/out/interface/i-drawer-options/i-drawer-options.d.ts +29 -0
  12. package/out/interface/i-drawer-options/i-drawer-options.d.ts.map +1 -0
  13. package/out/interface/{provider/i-editor-provider.js → i-drawer-options/i-drawer-options.js} +0 -0
  14. package/out/interface/i-modal-data/i-modal-data.d.ts +1 -1
  15. package/out/interface/i-modal-data/i-modal-data.d.ts.map +1 -1
  16. package/out/interface/i-modal-options/i-modal-options.d.ts +35 -0
  17. package/out/interface/i-modal-options/i-modal-options.d.ts.map +1 -0
  18. package/out/interface/{register/i-editor-register.js → i-modal-options/i-modal-options.js} +0 -0
  19. package/out/interface/i-plugin-factory/i-plugin-factory.d.ts +39 -0
  20. package/out/interface/i-plugin-factory/i-plugin-factory.d.ts.map +1 -0
  21. package/out/interface/i-plugin-factory/i-plugin-factory.js +1 -0
  22. package/out/interface/i-popover-options/i-popover-options.d.ts +84 -0
  23. package/out/interface/i-popover-options/i-popover-options.d.ts.map +1 -0
  24. package/out/interface/i-popover-options/i-popover-options.js +1 -0
  25. package/out/interface/i-ui-action-handler/i-ui-action-handler.d.ts +27 -0
  26. package/out/interface/i-ui-action-handler/i-ui-action-handler.d.ts.map +1 -0
  27. package/out/interface/i-ui-action-handler/i-ui-action-handler.js +1 -0
  28. package/out/interface/index.d.ts +7 -3
  29. package/out/interface/index.d.ts.map +1 -1
  30. package/out/interface/index.js +2 -3
  31. package/out/interface/provider/i-ui-action-provider.d.ts +20 -0
  32. package/out/interface/provider/i-ui-action-provider.d.ts.map +1 -0
  33. package/out/interface/provider/i-ui-action-provider.js +1 -0
  34. package/out/interface/provider/index.d.ts +2 -0
  35. package/out/interface/provider/index.d.ts.map +1 -0
  36. package/out/interface/provider/index.js +1 -0
  37. package/out/interface/register/i-register.d.ts +8 -1
  38. package/out/interface/register/i-register.d.ts.map +1 -1
  39. package/out/interface/register/i-ui-action-register.d.ts +15 -0
  40. package/out/interface/register/i-ui-action-register.d.ts.map +1 -0
  41. package/out/interface/register/i-ui-action-register.js +1 -0
  42. package/out/interface/register/index.d.ts +3 -0
  43. package/out/interface/register/index.d.ts.map +1 -0
  44. package/out/interface/register/index.js +2 -0
  45. package/out/interface/util/i-loading-util/i-loading-util.d.ts +14 -0
  46. package/out/interface/util/i-loading-util/i-loading-util.d.ts.map +1 -1
  47. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts +1 -1
  48. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts.map +1 -1
  49. package/out/interface/util/i-overlay-container/i-overlay-container.d.ts +37 -0
  50. package/out/interface/util/i-overlay-container/i-overlay-container.d.ts.map +1 -0
  51. package/out/interface/util/i-overlay-container/i-overlay-container.js +1 -0
  52. package/out/interface/util/i-overlay-controller/i-overlay-controller.d.ts +86 -0
  53. package/out/interface/util/i-overlay-controller/i-overlay-controller.d.ts.map +1 -0
  54. package/out/interface/util/i-overlay-controller/i-overlay-controller.js +1 -0
  55. package/out/interface/util/i-overlay-popover-container/i-overlay-popover-container.d.ts +23 -0
  56. package/out/interface/util/i-overlay-popover-container/i-overlay-popover-container.d.ts.map +1 -0
  57. package/out/interface/util/i-overlay-popover-container/i-overlay-popover-container.js +1 -0
  58. package/out/interface/util/index.d.ts +3 -0
  59. package/out/interface/util/index.d.ts.map +1 -1
  60. package/out/plugin/index.d.ts +3 -0
  61. package/out/plugin/index.d.ts.map +1 -0
  62. package/out/plugin/index.js +2 -0
  63. package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts +37 -0
  64. package/out/plugin/plugin-static-resource/plugin-static-resource.d.ts.map +1 -0
  65. package/out/plugin/plugin-static-resource/plugin-static-resource.js +31 -0
  66. package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts +102 -0
  67. package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts.map +1 -0
  68. package/out/plugin/remote-plugin-item/remote-plugin-item.js +22 -0
  69. package/out/provider/index.d.ts +2 -0
  70. package/out/provider/index.d.ts.map +1 -0
  71. package/out/provider/index.js +1 -0
  72. package/out/provider/ui-action/backend-ui-action-provider.d.ts +15 -0
  73. package/out/provider/ui-action/backend-ui-action-provider.d.ts.map +1 -0
  74. package/out/provider/ui-action/backend-ui-action-provider.js +18 -0
  75. package/out/provider/ui-action/common-sys-ui-action-provider.d.ts +15 -0
  76. package/out/provider/ui-action/common-sys-ui-action-provider.d.ts.map +1 -0
  77. package/out/provider/ui-action/common-sys-ui-action-provider.js +18 -0
  78. package/out/provider/ui-action/front-ui-action-provider.d.ts +15 -0
  79. package/out/provider/ui-action/front-ui-action-provider.d.ts.map +1 -0
  80. package/out/provider/ui-action/front-ui-action-provider.js +18 -0
  81. package/out/provider/ui-action/index.d.ts +13 -0
  82. package/out/provider/ui-action/index.d.ts.map +1 -0
  83. package/out/provider/ui-action/index.js +44 -0
  84. package/out/register/index.d.ts +4 -0
  85. package/out/register/index.d.ts.map +1 -0
  86. package/out/register/index.js +3 -0
  87. package/out/register/register-base.d.ts +18 -0
  88. package/out/register/register-base.d.ts.map +1 -0
  89. package/out/register/register-base.js +24 -0
  90. package/out/register/register-center.d.ts +20 -0
  91. package/out/register/register-center.d.ts.map +1 -0
  92. package/out/register/register-center.js +21 -0
  93. package/out/register/ui-action-register.d.ts +17 -0
  94. package/out/register/ui-action-register.d.ts.map +1 -0
  95. package/out/register/ui-action-register.js +41 -0
  96. package/out/types.d.ts +19 -3
  97. package/out/types.d.ts.map +1 -1
  98. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts +3 -61
  99. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.d.ts.map +1 -1
  100. package/out/utils/app-de-ui-action-util/app-de-ui-action-util.js +4 -241
  101. package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.d.ts +17 -0
  102. package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.d.ts.map +1 -0
  103. package/out/utils/app-de-ui-action-util/handler/backend-ui-action-handler.js +28 -0
  104. package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.d.ts +17 -0
  105. package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.d.ts.map +1 -0
  106. package/out/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.js +103 -0
  107. package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.d.ts +17 -0
  108. package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.d.ts.map +1 -0
  109. package/out/utils/app-de-ui-action-util/handler/front-ui-action-handler.js +24 -0
  110. package/out/utils/app-de-ui-action-util/handler/index.d.ts +5 -0
  111. package/out/utils/app-de-ui-action-util/handler/index.d.ts.map +1 -0
  112. package/out/utils/app-de-ui-action-util/handler/index.js +4 -0
  113. package/out/utils/app-de-ui-action-util/handler/ui-action-handler.d.ts +82 -0
  114. package/out/utils/app-de-ui-action-util/handler/ui-action-handler.d.ts.map +1 -0
  115. package/out/utils/app-de-ui-action-util/handler/ui-action-handler.js +143 -0
  116. package/out/utils/app-de-ui-action-util/index.d.ts +3 -0
  117. package/out/utils/app-de-ui-action-util/index.d.ts.map +1 -0
  118. package/out/utils/app-de-ui-action-util/index.js +2 -0
  119. package/out/utils/index.d.ts +2 -1
  120. package/out/utils/index.d.ts.map +1 -1
  121. package/out/utils/index.js +2 -1
  122. package/out/utils/open-redirect-view/open-redirect-view.d.ts +43 -0
  123. package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -0
  124. package/out/utils/open-redirect-view/open-redirect-view.js +139 -0
  125. package/out/view-logic/view-logic.d.ts +7 -6
  126. package/out/view-logic/view-logic.d.ts.map +1 -1
  127. package/out/view-logic/view-logic.js +19 -13
  128. package/package.json +22 -12
  129. package/src/command/app/app-func/app-func.ts +3 -3
  130. package/src/command/app/open-app-view/open-app-view.ts +12 -28
  131. package/src/index.ts +3 -1
  132. package/src/install.ts +5 -2
  133. package/src/interface/i-drawer-options/i-drawer-options.ts +28 -0
  134. package/src/interface/i-modal-data/i-modal-data.ts +1 -1
  135. package/src/interface/i-modal-options/i-modal-options.ts +35 -0
  136. package/src/interface/i-plugin-factory/i-plugin-factory.ts +39 -0
  137. package/src/interface/i-popover-options/i-popover-options.ts +85 -0
  138. package/src/interface/i-ui-action-handler/i-ui-action-handler.ts +33 -0
  139. package/src/interface/index.ts +10 -3
  140. package/src/interface/provider/i-ui-action-provider.ts +20 -0
  141. package/src/interface/provider/index.ts +1 -0
  142. package/src/interface/register/i-register.ts +8 -1
  143. package/src/interface/register/i-ui-action-register.ts +15 -0
  144. package/src/interface/register/index.ts +2 -0
  145. package/src/interface/util/i-loading-util/i-loading-util.ts +14 -0
  146. package/src/interface/util/i-open-view-util/i-open-view-util.ts +1 -0
  147. package/src/interface/util/i-overlay-container/i-overlay-container.ts +38 -0
  148. package/src/interface/util/i-overlay-controller/i-overlay-controller.ts +116 -0
  149. package/src/interface/util/i-overlay-popover-container/i-overlay-popover-container.ts +23 -0
  150. package/src/interface/util/index.ts +3 -0
  151. package/src/plugin/index.ts +5 -0
  152. package/src/plugin/plugin-static-resource/plugin-static-resource.ts +42 -0
  153. package/src/plugin/remote-plugin-item/remote-plugin-item.ts +107 -0
  154. package/src/provider/index.ts +1 -0
  155. package/src/provider/ui-action/backend-ui-action-provider.ts +22 -0
  156. package/src/provider/ui-action/common-sys-ui-action-provider.ts +22 -0
  157. package/src/provider/ui-action/front-ui-action-provider.ts +22 -0
  158. package/src/provider/ui-action/index.ts +50 -0
  159. package/src/register/index.ts +3 -0
  160. package/src/register/register-base.ts +27 -0
  161. package/src/register/register-center.ts +20 -0
  162. package/src/register/ui-action-register.ts +48 -0
  163. package/src/types.ts +20 -3
  164. package/src/utils/app-de-ui-action-util/app-de-ui-action-util.ts +6 -330
  165. package/src/utils/app-de-ui-action-util/handler/backend-ui-action-handler.ts +43 -0
  166. package/src/utils/app-de-ui-action-util/handler/common-sys-ui-action-handler.ts +125 -0
  167. package/src/utils/app-de-ui-action-util/handler/front-ui-action-handler.ts +46 -0
  168. package/src/utils/app-de-ui-action-util/handler/index.ts +4 -0
  169. package/src/utils/app-de-ui-action-util/handler/ui-action-handler.ts +215 -0
  170. package/src/utils/app-de-ui-action-util/index.ts +2 -0
  171. package/src/utils/index.ts +2 -1
  172. package/src/utils/open-redirect-view/open-redirect-view.ts +180 -0
  173. package/src/view-logic/view-logic.ts +30 -17
  174. package/out/interface/provider/i-editor-provider.d.ts +0 -38
  175. package/out/interface/provider/i-editor-provider.d.ts.map +0 -1
  176. package/out/interface/register/i-editor-register.d.ts +0 -23
  177. package/out/interface/register/i-editor-register.d.ts.map +0 -1
  178. package/out/register/register.d.ts +0 -20
  179. package/out/register/register.d.ts.map +0 -1
  180. package/out/register/register.js +0 -10
  181. package/src/interface/provider/i-editor-provider.ts +0 -44
  182. package/src/interface/register/i-editor-register.ts +0 -23
  183. package/src/register/register.ts +0 -20
@@ -0,0 +1 @@
1
+ System.register(["@ibiz-template/service","@ibiz-template/command","@ibiz-template/core","qx-util","@ibiz-template/model"],(function(e){"use strict";var t,n,r,i,o,a,c,u,s;return{setters:[null,function(e){t=e.commands},function(e){n=e.RuntimeError,r=e.IBizContext},function(e){i=e.notNilEmpty,o=e.isNilOrEmpty},function(e){a=e.UnsupportedModelError,c=e.DefectModelError,u=e.getPSUIActionByModelObject,s=e.AppEntityModel}],execute:function(){e({convertNavData:A,convertNavDataByArray:m,convertNavDataByObject:P,executeNewDataAppUILogic:k,executeOpenDataAppUILogic:M,executeViewLogic:function(e,t,n,r,i){void 0===i&&(i={});return f(this,void 0,void 0,(function(){var o;return d(this,(function(a){switch(a.label){case 0:return"opendata"===e.name&&e.getPSAppUILogic()?[2,M(e.getPSAppUILogic(),t,n,r,i)]:"newdata"===e.name&&e.getPSAppUILogic()?[2,k(e.getPSAppUILogic(),t,n,r,i)]:[4,u(e.getPSAppViewUIAction())];case 1:if(!(o=a.sent()))throw new Error("找不到界面行为");return[2,b.exec(o,t,n,r,i)]}}))}))},install:function(){var e=window.ibiz;e.commands=t,e.register=new y,U(),L()},installCommand:U,openRedirectView:O,presetUIActionProvider:L});var l=function(e,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},l(e,t)};function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function f(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function c(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(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 d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}function w(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 h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var g=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}()),S=e("UIActionRegister",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.get=function(e){return f(this,void 0,void 0,(function(){var t,r,i,o,a,c;return d(this,(function(u){switch(u.label){case 0:return e.getPSSysPFPlugin()?[4,ibiz.plugin.loadPlugin(e.getPSSysPFPlugin())]:[3,2];case 1:if(u.sent(),t=e.getPSSysPFPlugin(),r=t.pluginType,i=t.pluginCode,c="".concat(r,"_").concat(i),this.providers.has(c))return[2,this.providers.get(c)];throw new n("找不到插件标识".concat(c,"对应的适配器"));case 2:if(o=e.uIActionMode,a=e.uIActionTag,"SYS"===o){if(c="".concat(o,"_").concat(a),this.providers.has(c))return[2,this.providers.get(c)];throw new n("找不到系统预置界面行为".concat(a,"对应的适配器"))}if(this.providers.has(o))return[2,this.providers.get(o)];throw new n("找不界面行为模式".concat(o,"对应的适配器"))}}))}))},t}(g)),y=e("RegisterCenter",(function(){this.uiAction=new S}));function A(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"[object Array]"===Object.prototype.toString.call(e)?m.apply(void 0,v([e],h(t),!1)):"[object Object]"===Object.prototype.toString.call(e)?P.apply(void 0,v([e],h(t),!1)):{}}function m(e){for(var t,n,r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];var c={},u=function(e){if(i(e.value)&&!e.rawValue){var t=r.find((function(t){return!o(t)&&(t[e.value]||Object.prototype.hasOwnProperty.call(t,e.value))}));t&&(c[e.key]=t[e.value])}else c[e.key]=e.value};try{for(var s=w(e),l=s.next();!l.done;l=s.next()){var p=l.value;u(p)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return c}function P(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r={},o=/^%(.+)%$/,a=function(n){if(i(e[n])&&o.test(e[n])){var a=e[n].substring(1,e[n].length-1),c=t.find((function(e){return Object.prototype.hasOwnProperty.call(e,a)}));c&&(r[n]=c[a])}else r[n]=e[n]};for(var c in e)a(c);return r}var b=e("AppDEUIActionUtil",function(){function e(){}return e.exec=function(e,t,n,r,i){return f(this,void 0,void 0,(function(){return d(this,(function(o){switch(o.label){case 0:return[4,ibiz.register.uiAction.get(e)];case 1:return[4,o.sent().getHandler()];case 2:return[2,o.sent().exec(e,t,n,r,i)]}}))}))},e}()),E=e("UIActionHandler",function(){function e(){}return e.prototype.exec=function(e,t,n,r,i){return f(this,void 0,void 0,(function(){var o,a,c;return d(this,(function(u){switch(u.label){case 0:return[4,this.isConfirm(e)];case 1:return u.sent()?(o=i.neuron,a={refresh:e.reloadData,closeView:e.closeEditView},[4,this.execAction(e,t,n,r,i)]):[2,{}];case 2:return c=u.sent(),Object.assign(a,c),[4,this.doNextAction(e,t,n,r,i)];case 3:return u.sent(),[4,this.handleResult(a,o)];case 4:return u.sent(),[2,a]}}))}))},e.prototype.isConfirm=function(e){return f(this,void 0,void 0,(function(){return d(this,(function(t){return e.enableConfirm&&e.confirmMsg?[2,ibiz.modal.confirm({title:e.confirmMsg})]:[2,!0]}))}))},e.prototype.doNextAction=function(e,t,n,r,i){return f(this,void 0,void 0,(function(){var o;return d(this,(function(a){switch(a.label){case 0:return(o=e.getNextPSUIAction())?[4,b.exec(o,t,n,r,i)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}}))}))},e.prototype.handleResult=function(e,t){return f(this,void 0,void 0,(function(){return d(this,(function(r){switch(r.label){case 0:if(!e.closeView)return[3,2];if(!t.call.closeView)throw new n("该视图不存在关闭视图能力");return[4,t.call.closeView()];case 1:return r.sent(),[2];case 2:if(!e.refresh)return[3,4];if(!t.call.refresh)throw new n("该视图不存在刷新能力");return[4,t.call.refresh()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.handleParams=function(e,t,n,o){return f(this,void 0,void 0,(function(){var a,c,u,s,l,p,f,w,h;return d(this,(function(d){switch(d.label){case 0:if(a=n||[],-1!==["SINGLEDATA","MULTIDATA","MULTIKEY"].indexOf(e.actionTarget))throw new Error("数据类型".concat(e.actionTarget,"暂未支持,请配置无数据或单项数据主键"));return"NONE"===e.actionTarget&&(a=[]),c={},u=e.getPSNavigateContexts()||[],(s=e.getPSAppDataEntity())&&"SINGLEKEY"===e.actionTarget?[4,null==s?void 0:s.fill(!0)]:[3,2];case 1:d.sent(),l=s.codeName.toLowerCase(),p=e.valueItem,u.unshift({key:l,value:p||"srfkey",rawValue:!1}),d.label=2;case 2:return i(u)&&(c=A(u,t,o,(null==n?void 0:n[0])||{})),f=new r(c,t),w={},h=e.getPSNavigateParams(),i(h)&&(w=A(h,t,o,(null==n?void 0:n[0])||{})),[2,{resultContext:f,resultData:a,resultParams:w}]}}))}))},e}()),x=e("CommonSysUIActionHandler",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.execAction=function(e,t,n,r,i){return f(this,void 0,void 0,(function(){var t,r,o,a,c;return d(this,(function(u){switch(u.label){case 0:if(r=(t=i).neuron,o=t.event,a=e.uIActionTag,c={},"New"!==a)return[3,2];if(!r.call.newData)throw new Error("该视图不存在newData能力");return[4,r.call.newData(o)];case 1:u.sent(),u.label=2;case 2:if("Edit"!==a)return[3,4];if(!r.call.openData)throw new Error("该视图不存在openData能力");return[4,r.call.openData(null==n?void 0:n[0],o)];case 3:u.sent(),u.label=4;case 4:if(-1===["SaveAndExit","Save","SaveRow"].indexOf(a))return[3,6];if(!r.call.save)throw new Error("该视图不存在save能力");return[4,r.call.save()];case 5:u.sent(),u.label=6;case 6:if("SaveAndNew"!==a)return[3,8];if(!r.call.saveAndNew)throw new Error("该视图不存在saveAndNew能力");return[4,r.call.saveAndNew()];case 7:u.sent(),u.label=8;case 8:if("Remove"!==a&&"RemoveAndExit"!==a)return[3,10];if(!r.call.remove)throw new Error("该视图不存在remove能力");return[4,r.call.remove()];case 9:u.sent(),u.label=10;case 10:if("NewRow"!==a)return[3,12];if(!r.call.newRow)throw new Error("该视图不存在newRow能力");return[4,r.call.newRow()];case 11:u.sent(),u.label=12;case 12:if("ToggleFilter"===a){if(!r.call.toggleFilter)throw new Error("该视图不存在ToggleFilter能力");r.call.toggleFilter()}if("Import"===a){if(!r.call.importData)throw new Error("该视图不存在Import能力");r.call.importData()}if("ExportExcel"===a){if(!r.call.exportData)throw new Error("该视图不存在ExportExcel能力");r.call.exportData(o)}if("SaveAndStart"!==a)return[3,14];if(!r.call.wfStart)throw new Error("该视图不存在SaveAndStart能力");return[4,r.call.wfStart()];case 13:u.sent(),u.label=14;case 14:if("ViewWFStep"!==a)return[3,16];if(!r.call.wfSubmit)throw new Error("该视图不存在ViewWFStep能力");return[4,r.call.wfSubmit()];case 15:u.sent(),u.label=16;case 16:return-1!==["SaveAndExit","Exit","RemoveAndExit"].indexOf(a)&&(c.closeView=!0),-1!==["Refresh"].indexOf(a)&&(c.refresh=!0),[2,c]}}))}))},t}(E)),D=e("BackendUIActionHandler",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.execAction=function(e,t,n,r,i){var o,a,c;return f(this,void 0,void 0,(function(){var i,u,s,l,p,f,w,h;return d(this,(function(d){switch(d.label){case 0:if(i=null===(o=e.getPSAppDataEntity())||void 0===o?void 0:o.codeName,u=null===(a=e.getPSAppDEMethod())||void 0===a?void 0:a.codeName,!i||!u)throw new Error("找不到实体或实体行为");return[4,this.handleParams(e,t,n,r)];case 1:return s=d.sent(),l=s.resultContext,p=s.resultParams,f=s.resultData,[4,ibiz.entityService.getService(i)];case 2:return w=d.sent(),h=f.length>0?(null===(c=f[0])||void 0===c?void 0:c.getRequestData())||f[0]:{},[4,w.exec(u,l,h,p)];case 3:return d.sent(),[2,{}]}}))}))},t}(E)),R=e("FrontUIActionHandler",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.execAction=function(e,t,n,r,i){return f(this,void 0,void 0,(function(){var o,a,c,u;return d(this,(function(s){switch(s.label){case 0:if(!(o=e.getFrontPSAppView()))throw new Error("未配置打开视图");return[4,o.fill(!0)];case 1:return s.sent(),[4,this.handleParams(e,t,n,r)];case 2:return a=s.sent(),c=a.resultContext,u=a.resultParams,[4,ibiz.commands.execute(I.TAG,o,c,u,i)];case 3:return s.sent(),[2,{}]}}))}))},t}(E));function O(e,t,n,i){return void 0===t&&(t=new r),void 0===n&&(n={}),void 0===i&&(i=[]),f(this,void 0,void 0,(function(){return d(this,(function(r){if(e.instanceof("app.view.IPSAppDERedirectView"))return[2,V(e,t,n,i)];throw new a(e,"未支持的重定向视图类型: ".concat(e.viewType))}))}))}function V(e,t,n,i){return void 0===t&&(t=new r),void 0===n&&(n={}),void 0===i&&(i=[]),f(this,void 0,void 0,(function(){var o,a,u,s,l,p,f,w,h,v,g,S,y,m,P,b,E;return d(this,(function(d){switch(d.label){case 0:return o=e.getPSAppViewNavContexts()||[],a=A(o,t,n),t=new r(a,t),u=e.getPSAppViewNavParams()||[],s=A(u,t,n),Object.assign(n,s),[4,(l=e.getPSAppDataEntity()).fill(!0)];case 1:return d.sent(),p=l.codeName.toLowerCase(),f=i[0]||{},t[p]=f[p]||t[p]||n[p],w=e.getGetDataPSAppDEAction(),[4,ibiz.entityService.getService(l.codeName)];case 2:return h=d.sent(),ibiz.loading.showRedirect(),[4,h.exec(w?w.codeName:"Get",t,n)];case 3:return v=d.sent(),ibiz.loading.hideRedirect(),v.ok&&(f=v.data,g=f.linkurl)?g.startsWith("http://")||g.startsWith("https://")?(window.open(g,"_blank"),[2,{ok:!0,data:[]}]):[2,{ok:!1,data:[]}]:[4,N(l,e,n.srfwf,f)];case 4:return S=d.sent(),y="".concat(l.name.toUpperCase(),":").concat(S),m=e.getRedirectPSAppViewRefs(),P=null==m?void 0:m.find((function(e){return e.name===y||e.name===S})),P?(b=P.getRefPSAppView())?[4,ibiz.commands.execute(I.TAG,b,t,n,{data:[f]})]:[3,6]:[3,7];case 5:return(E=d.sent())?[2,E]:[3,7];case 6:throw new c(P,"未配置实际引用视图");case 7:return[2,{ok:!0,data:[]}]}}))}))}function N(e,t,n,r){return f(this,void 0,void 0,(function(){var a,c,u,s,l;return d(this,(function(p){return"",(a=t.getTypePSAppDEField())&&(c=r[a.codeName.toLowerCase()],i(c))?[2,c]:i(n)?[2,"EDITVIEW:".concat(n.toUpperCase())]:(u="",(s=e.getIndexTypePSAppDEField())&&(u=r[s.codeName.toLowerCase()]),o(u)&&(l=e.getFormTypePSAppDEField())&&(u=r[l.codeName.toLowerCase()]),[2,i(u)?"EDITVIEW:".concat(u):"EDITVIEW"])}))}))}var I=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={}),f(this,void 0,void 0,(function(){var i;return d(this,(function(o){switch(o.label){case 0:return[4,e.fill(!0)];case 1:if(o.sent(),e.redirectView)return[2,O(e,t,n,r.data)];switch(i=e.openMode,void 0===i?"INDEXVIEWTAB":i){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,r.event,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={}),f(this,void 0,void 0,(function(){return d(this,(function(r){return[2,ibiz.openView.modal(e,t,n)]}))}))},e.prototype.openPopover=function(e,t,n,r){return void 0===r&&(r={}),f(this,void 0,void 0,(function(){return d(this,(function(i){return[2,ibiz.openView.popover(e,t,n,r)]}))}))},e.prototype.openDrawer=function(e,t,n){return void 0===n&&(n={}),f(this,void 0,void 0,(function(){return d(this,(function(r){return[2,ibiz.openView.drawer(e,t,n)]}))}))},e.prototype.openUserCustom=function(e,t,n){return void 0===n&&(n={}),f(this,void 0,void 0,(function(){return d(this,(function(r){return[2,ibiz.openView.custom(e,t,n)]}))}))},e.TAG="ibiz.app-view.open",e}()),T=e("AppFuncCommand",function(){function e(){ibiz.commands.register(e.TAG,this.exec.bind(this))}return e.prototype.exec=function(e,t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),f(this,void 0,void 0,(function(){var o,a;return d(this,(function(c){switch((o=e.getPSNavigateContexts())&&(t?Object.assign(t,o):t=new r(o)),(a=e.getPSNavigateParams())&&Object.assign(n,a),e.appFuncType){case"APPVIEW":return[2,this.openAppView(e,t,n,i)];case"OPENHTMLPAGE":return[2,this.openHtmlPage(e)];case"PDTAPPFUNC":return[2,this.openPdAppFunc(e,t,n)];case"JAVASCRIPT":return[2,this.executeJavaScript(e,t,n)];case"CUSTOM":return[2,this.custom(e,t,n)];default:throw new Error("未知的应用功能类型: ".concat(e.appFuncType))}}))}))},e.prototype.openAppView=function(e,t,n,r){var i=e.getPSAppView();if(!i)throw new Error("应用视图不存在");return ibiz.commands.execute(I.TAG,i,t,n,r)},e.prototype.openHtmlPage=function(e){var t=e.htmlPageUrl;window.open(t,"_blank")},e.prototype.openPdAppFunc=function(e,t,n){throw ibiz.log.warn("openPdAppFunc",e,t,n),new Error("未实现")},e.prototype.executeJavaScript=function(e,t,n){throw ibiz.log.warn("executeJavaScript",e,t,n),new Error("未实现")},e.prototype.custom=function(e,t,n){throw ibiz.log.warn("custom",e,t,n),new Error("未实现")},e.TAG="ibiz.app-func.exec",e}());function U(){new T,new I}var C,z=e("BackendUIActionProvider",function(){function e(){}return e.prototype.getHandler=function(){return f(this,void 0,void 0,(function(){return d(this,(function(e){return this.handler||(this.handler=new D),[2,this.handler]}))}))},e}()),_=e("CommonSysUIActionProvider",function(){function e(){}return e.prototype.getHandler=function(){return f(this,void 0,void 0,(function(){return d(this,(function(e){return this.handler||(this.handler=new x),[2,this.handler]}))}))},e}()),F=e("FrontUIActionProvider",function(){function e(){}return e.prototype.getHandler=function(){return f(this,void 0,void 0,(function(){return d(this,(function(e){return this.handler||(this.handler=new R),[2,this.handler]}))}))},e}());function L(){var e=ibiz.register.uiAction;e&&(e.register("FRONT",new F),e.register("BACKEND",new z),e.register("SYS_New",new _),e.register("SYS_Edit",new _),e.register("SYS_Save",new _),e.register("SYS_SaveAndExit",new _),e.register("SYS_SaveRow",new _),e.register("SYS_SaveAndNew",new _),e.register("SYS_Remove",new _),e.register("SYS_RemoveAndExit",new _),e.register("SYS_NewRow",new _),e.register("SYS_SaveAndStart",new _),e.register("SYS_ViewWFStep",new _),e.register("SYS_ToggleFilter",new _),e.register("SYS_Exit",new _),e.register("SYS_Refresh",new _),e.register("SYS_Import",new _),e.register("SYS_ExportExcel",new _))}e("ViewMode",C),function(e){e.ROUTE="ROUTE",e.MODAL="MODAL",e.DRAWER="DRAWER",e.EMBED="EMBED",e.POPOVER="POPOVER"}(C||e("ViewMode",C={}));e("PluginStaticResource",function(){function e(e){this.baseDir=e.substring(0,e.lastIndexOf("/"))}return e.prototype.dir=function(e){return this.baseDir+e},e}()),e("RemotePluginItem",(function(e,t){this.tag=e,this.config=t}));function M(e,t,n,o,a){return void 0===a&&(a={}),f(this,void 0,void 0,(function(){var c,u,l,p,f,w,h,v;return d(this,(function(d){switch(d.label){case 0:if(!(null==n?void 0:n[0]))throw Error("没有选中数据!");if(!(c=e.getOpenDataPSAppView()))throw new Error("getOpenDataPSAppView为空");if(!(u=c.getRefPSAppView()))throw new Error("openView为空");return[4,u.fill(!0)];case 1:return d.sent(),[4,(l=new s(u.getPSAppDataEntity())).init()];case 2:return d.sent(),p=c.getPSNavigateContexts()||[],f=l.deName.toLowerCase(),-1===p.findIndex((function(e){return e.key===f}))&&p.push({key:f,value:f,rawValue:!1}),w=new r(A(p,t,o,n[0]),t),h={},v=c.getPSNavigateParams(),i(v)&&(h=A(v,o,t,n[0])),[4,ibiz.commands.execute(I.TAG,u,w,h,a)];case 3:return d.sent(),a.neuron.call.refresh(),[2,{}]}}))}))}function k(e,t,n,o,a){return void 0===a&&(a={}),f(this,void 0,void 0,(function(){var c,u,l,p,f,w,h,v;return d(this,(function(d){switch(d.label){case 0:if(!(c=e.getNewDataPSAppView()))throw new Error("getNewDataPSAppView为空");if(!(u=c.getRefPSAppView()))throw new Error("newView为空");return[4,u.fill(!0)];case 1:return d.sent(),[4,(l=new s(u.getPSAppDataEntity())).init()];case 2:return d.sent(),p={},f={},w=(null==n?void 0:n[0])||{},h=c.getPSNavigateContexts(),i(h)&&(p=A(h,t,o,w)),delete(p=new r(p,t))[l.deName.toLowerCase()],p[l.deName.toLowerCase()]=void 0,v=c.getPSNavigateParams(),i(v)&&(f=A(v,o,t,w)),e.enableWizardAdd||e.enableBatchAdd||e.batchAddOnly,[4,ibiz.commands.execute(I.TAG,u,p,f,a)];case 3:return d.sent(),a.neuron.call.refresh(),[2,{}]}}))}))}}}}));
@@ -93,7 +93,7 @@ export class AppFuncCommand {
93
93
  * @param {IParams} [params]
94
94
  */
95
95
  openPdAppFunc(appFunc, context, params) {
96
- console.log('openPdAppFunc', appFunc, context, params);
96
+ ibiz.log.warn('openPdAppFunc', appFunc, context, params);
97
97
  throw new Error('未实现');
98
98
  }
99
99
  /**
@@ -107,7 +107,7 @@ export class AppFuncCommand {
107
107
  * @param {IParams} [params]
108
108
  */
109
109
  executeJavaScript(appFunc, context, params) {
110
- console.log('executeJavaScript', appFunc, context, params);
110
+ ibiz.log.warn('executeJavaScript', appFunc, context, params);
111
111
  throw new Error('未实现');
112
112
  }
113
113
  /**
@@ -121,7 +121,7 @@ export class AppFuncCommand {
121
121
  * @param {IParams} [params]
122
122
  */
123
123
  custom(appFunc, context, params) {
124
- console.log('custom', appFunc, context, params);
124
+ ibiz.log.warn('custom', appFunc, context, params);
125
125
  throw new Error('未实现');
126
126
  }
127
127
  }
@@ -23,18 +23,7 @@ export declare class OpenAppViewCommand {
23
23
  * @param {IData} [_opts={}]
24
24
  * @return {*} {(Promise<IModalData | void>)}
25
25
  */
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;
26
+ exec(appView: IPSAppView, context?: IBizContext, params?: IParams, opts?: IData): Promise<IModalData | void>;
38
27
  /**
39
28
  * 首页导航模式打开
40
29
  *
@@ -69,7 +58,7 @@ export declare class OpenAppViewCommand {
69
58
  * @param {IParams} [params={}]
70
59
  * @return {*} {Promise<IModalData>}
71
60
  */
72
- protected openPopover(appView: IPSAppView, context?: IBizContext, params?: IParams): Promise<IModalData>;
61
+ protected openPopover(appView: IPSAppView, event: MouseEvent, context?: IBizContext, params?: IParams): Promise<IModalData>;
73
62
  /**
74
63
  * 抽屉模式打开
75
64
  *
@@ -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;IA6B7B;;;;;;;;;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,IAAI,GAAE,KAAU,GACf,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,KAAK,EAAE,UAAU,EACjB,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
  *
@@ -21,10 +22,10 @@ export class OpenAppViewCommand {
21
22
  * @param {IData} [_opts={}]
22
23
  * @return {*} {(Promise<IModalData | void>)}
23
24
  */
24
- async exec(appView, context, params = {}, _opts = {}) {
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) {
@@ -37,7 +38,7 @@ export class OpenAppViewCommand {
37
38
  case 'POPUPAPP':
38
39
  throw new Error('未支持的视图打开模式: POPUPAPP');
39
40
  case 'POPOVER':
40
- return this.openPopover(appView, context, params);
41
+ return this.openPopover(appView, opts.event, context, params);
41
42
  case 'DRAWER_LEFT':
42
43
  case 'DRAWER_RIGHT':
43
44
  case 'DRAWER_TOP':
@@ -49,19 +50,6 @@ export class OpenAppViewCommand {
49
50
  return this.openIndexViewTab(appView, context, params);
50
51
  }
51
52
  }
52
- /**
53
- * 打开重定向视图
54
- *
55
- * @author chitanda
56
- * @date 2022-07-25 20:07:24
57
- * @protected
58
- * @param {IPSAppView} appView
59
- * @param {IBizContext} [context]
60
- * @param {IParams} [params={}]
61
- */
62
- openRedirectView(appView, context, params = {}) {
63
- console.log('OpenAppViewCommand.openRedirectView', appView, context, params);
64
- }
65
53
  /**
66
54
  * 首页导航模式打开
67
55
  *
@@ -100,8 +88,8 @@ export class OpenAppViewCommand {
100
88
  * @param {IParams} [params={}]
101
89
  * @return {*} {Promise<IModalData>}
102
90
  */
103
- async openPopover(appView, context, params = {}) {
104
- return ibiz.openView.popover(appView, context, params);
91
+ async openPopover(appView, event, context, params = {}) {
92
+ return ibiz.openView.popover(appView, event, context, params);
105
93
  }
106
94
  /**
107
95
  * 抽屉模式打开
package/out/index.d.ts CHANGED
@@ -3,7 +3,9 @@ export { install } from './install';
3
3
  export * from './command';
4
4
  export * from './constant';
5
5
  export * from './interface';
6
- export * from './register/register';
6
+ export * from './plugin';
7
+ export * from './provider';
8
+ export * from './register';
7
9
  export * from './utils';
8
10
  export * from './view-logic';
9
11
  //# 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,qBAAqB,CAAC;AACpC,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,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
package/out/index.js 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 * from './register/register';
6
+ export * from './plugin';
7
+ export * from './provider';
8
+ export * from './register';
7
9
  export * from './utils';
8
10
  export * from './view-logic';
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,OAAO,IAAI,IAAI,CAQ9B"}
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,6 +1,7 @@
1
1
  import { commands } from '@ibiz-template/command';
2
- import { Register } from './register/register';
2
+ import { RegisterCenter } from './register/register-center';
3
3
  import { installCommand } from './command';
4
+ import { presetUIActionProvider } from './provider';
4
5
  /**
5
6
  * 安装运行时
6
7
  *
@@ -13,7 +14,9 @@ export function install() {
13
14
  // 挂载指令控制器
14
15
  ibiz.commands = commands;
15
16
  // 挂载注册中心
16
- ibiz.register = new Register();
17
+ ibiz.register = new RegisterCenter();
17
18
  // 安装默认指令
18
19
  installCommand();
20
+ // 注册预置的界面行为适配器
21
+ presetUIActionProvider();
19
22
  }
@@ -0,0 +1,29 @@
1
+ export interface IDrawerOptions {
2
+ /**
3
+ * 抽屉宽度
4
+ * 左、右方向时可用。当其值不大于 100 时以百分比显示,大于 100 时为像素
5
+ *
6
+ * @author lxm
7
+ * @date 2022-09-12 20:09:20
8
+ * @type {string | number}
9
+ */
10
+ width?: string | number;
11
+ /**
12
+ * 抽屉高度
13
+ * 上、下方向时可用。当其值不大于 100 时以百分比显示,大于 100 时为像素
14
+ *
15
+ * @author lxm
16
+ * @date 2022-09-12 20:09:22
17
+ * @type {string | number}
18
+ */
19
+ height?: string | number;
20
+ /**
21
+ * 抽屉的方向
22
+ *
23
+ * @author lxm
24
+ * @date 2022-09-15 14:09:13
25
+ * @type {('left' | 'right' | 'top' | 'bottom')}
26
+ */
27
+ placement?: 'left' | 'right' | 'top' | 'bottom';
28
+ }
29
+ //# sourceMappingURL=i-drawer-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-drawer-options.d.ts","sourceRoot":"","sources":["../../../src/interface/i-drawer-options/i-drawer-options.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;CACjD"}
@@ -22,7 +22,7 @@ export interface IModalData {
22
22
  * @date 2022-08-17 18:08:20
23
23
  * @type {IData[]}
24
24
  */
25
- data: IData[];
25
+ data?: IData[];
26
26
  /**
27
27
  * 额外参数
28
28
  *
@@ -1 +1 @@
1
- {"version":3,"file":"i-modal-data.d.ts","sourceRoot":"","sources":["../../../src/interface/i-modal-data/i-modal-data.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,EAAE,EAAE,OAAO,CAAC;IACZ;;;;;;OAMG;IACH,IAAI,EAAE,KAAK,EAAE,CAAC;IACd;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
1
+ {"version":3,"file":"i-modal-data.d.ts","sourceRoot":"","sources":["../../../src/interface/i-modal-data/i-modal-data.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,EAAE,EAAE,OAAO,CAAC;IACZ;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IACf;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,35 @@
1
+ export interface IModalOptions {
2
+ /**
3
+ * 宽度
4
+ *
5
+ * @author lxm
6
+ * @date 2022-09-12 20:09:20
7
+ * @type {string | number}
8
+ */
9
+ width?: string | number;
10
+ /**
11
+ * 高度
12
+ *
13
+ * @author lxm
14
+ * @date 2022-09-12 20:09:22
15
+ * @type {string | number}
16
+ */
17
+ height?: string | number;
18
+ /**
19
+ * 是否隐藏底部按钮(默认false)
20
+ *
21
+ * @author lxm
22
+ * @date 2022-09-12 20:09:23
23
+ * @type {boolean}
24
+ */
25
+ footerHide?: boolean;
26
+ /**
27
+ * 显示位置
28
+ *
29
+ * @author lxm
30
+ * @date 2022-11-08 16:11:38
31
+ * @type {'center'}
32
+ */
33
+ placement?: 'center';
34
+ }
35
+ //# sourceMappingURL=i-modal-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-modal-options.d.ts","sourceRoot":"","sources":["../../../src/interface/i-modal-options/i-modal-options.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC;CACtB"}
@@ -0,0 +1,39 @@
1
+ import { IPSAppPFPluginRef, IPSSysPFPlugin } from '@ibiz-template/model';
2
+ /**
3
+ * 插件工厂
4
+ *
5
+ * @author chitanda
6
+ * @date 2022-10-21 16:10:19
7
+ * @export
8
+ * @interface IPluginFactory
9
+ */
10
+ export interface IPluginFactory {
11
+ /**
12
+ * 设置开发插件,用于本地调试
13
+ *
14
+ * @author chitanda
15
+ * @date 2022-11-02 21:11:01
16
+ * @param {string} name
17
+ * @param {() => Promise<unknown>} fn
18
+ */
19
+ setDevPlugin(name: string, fn: () => Promise<unknown>): void;
20
+ /**
21
+ * 加载插件
22
+ *
23
+ * @author chitanda
24
+ * @date 2022-10-21 16:10:27
25
+ * @param {IPSSysPFPlugin} plugin
26
+ * @return {*} {Promise<boolean>}
27
+ */
28
+ loadPlugin(plugin: IPSSysPFPlugin): Promise<boolean>;
29
+ /**
30
+ * 加载应用饮用插件
31
+ *
32
+ * @author chitanda
33
+ * @date 2022-10-31 16:10:58
34
+ * @param {IPSAppPFPluginRef} pluginRef
35
+ * @return {*} {Promise<boolean>}
36
+ */
37
+ loadPluginRef(pluginRef: IPSAppPFPluginRef): Promise<boolean>;
38
+ }
39
+ //# sourceMappingURL=i-plugin-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-plugin-factory.d.ts","sourceRoot":"","sources":["../../../src/interface/i-plugin-factory/i-plugin-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEzE;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;OAOG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC7D;;;;;;;OAOG;IACH,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrD;;;;;;;OAOG;IACH,aAAa,CAAC,SAAS,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,84 @@
1
+ export declare type Alignment = 'start' | 'end';
2
+ export declare type Side = 'top' | 'right' | 'bottom' | 'left';
3
+ export declare type AlignedPlacement = `${Side}-${Alignment}`;
4
+ export declare type Placement = Side | AlignedPlacement;
5
+ interface AxesOffsets {
6
+ /**
7
+ * 浮动元素与参考元素之间的间距
8
+ *
9
+ * @author lxm
10
+ * @date 2022-11-16 18:11:27
11
+ * @type {number}
12
+ */
13
+ mainAxis?: number;
14
+ /**
15
+ * 浮动元素与参考元素之间的偏移量,与mainAxis垂直
16
+ *
17
+ * @author lxm
18
+ * @date 2022-11-16 18:11:49
19
+ * @type {number}
20
+ */
21
+ crossAxis?: number;
22
+ alignmentAxis?: number | null;
23
+ }
24
+ /**
25
+ * 飘窗参数
26
+ *
27
+ * @author chitanda
28
+ * @date 2022-11-08 16:11:37
29
+ * @export
30
+ * @interface IPopoverOptions
31
+ */
32
+ export interface IPopoverOptions {
33
+ /**
34
+ * 宽度
35
+ *
36
+ * @author chitanda
37
+ * @date 2022-11-08 16:11:26
38
+ * @type {string}
39
+ */
40
+ width?: string;
41
+ /**
42
+ * 高度
43
+ *
44
+ * @author chitanda
45
+ * @date 2022-11-08 16:11:33
46
+ * @type {string}
47
+ */
48
+ height?: string;
49
+ /**
50
+ * 展示方向
51
+ *
52
+ * @author chitanda
53
+ * @date 2022-11-08 16:11:41
54
+ * @type {Placement}
55
+ */
56
+ placement?: Placement;
57
+ /**
58
+ * 是否自动关闭
59
+ *
60
+ * @default true
61
+ * @author chitanda
62
+ * @date 2022-11-08 16:11:43
63
+ * @type {boolean}
64
+ */
65
+ autoClose?: boolean;
66
+ /**
67
+ * offset的参数
68
+ *
69
+ * @author lxm
70
+ * @date 2022-11-16 18:11:13
71
+ * @type {(AxesOffsets | number)}
72
+ */
73
+ offsetOpts?: AxesOffsets | number;
74
+ /**
75
+ * 不显示箭头
76
+ *
77
+ * @author lxm
78
+ * @date 2022-11-16 20:11:58
79
+ * @type {boolean}
80
+ */
81
+ noArrow?: boolean;
82
+ }
83
+ export {};
84
+ //# sourceMappingURL=i-popover-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-popover-options.d.ts","sourceRoot":"","sources":["../../../src/interface/i-popover-options/i-popover-options.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;AAChD,MAAM,CAAC,OAAO,MAAM,IAAI,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC/D,MAAM,CAAC,OAAO,MAAM,gBAAgB,GAAG,GAAG,IAAI,IAAI,SAAS,EAAE,CAAC;AAC9D,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG,IAAI,GAAG,gBAAgB,CAAC;AACxD,UAAU,WAAW;IACnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IAElC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,27 @@
1
+ import { IBizContext } from '@ibiz-template/core';
2
+ import { IPSAppDEUIAction } from '@ibiz-template/model';
3
+ import { IUIActionResult } from '../i-ui-action-result/i-ui-action-result';
4
+ /**
5
+ * 界面行为处理器接口
6
+ *
7
+ * @author lxm
8
+ * @date 2022-10-25 14:10:59
9
+ * @export
10
+ * @interface IUIActionHandler
11
+ */
12
+ export interface IUIActionHandler {
13
+ /**
14
+ * 执行界面行为
15
+ *
16
+ * @author lxm
17
+ * @date 2022-10-25 14:10:15
18
+ * @param {IPSAppDEUIAction} action 界面行为模型
19
+ * @param {IBizContext} context 上下文
20
+ * @param {(IData[] | null)} data 数据集合
21
+ * @param {IParams} params 视图参数
22
+ * @param {IData} [opts] 额外参数
23
+ * @returns {*} {Promise<IUIActionResult>}
24
+ */
25
+ exec(action: IPSAppDEUIAction, context: IBizContext, data: IData[] | null, params: IParams, opts?: IData): Promise<IUIActionResult>;
26
+ }
27
+ //# sourceMappingURL=i-ui-action-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-ui-action-handler.d.ts","sourceRoot":"","sources":["../../../src/interface/i-ui-action-handler/i-ui-action-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;OAWG;IACH,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,CAAC;CAC7B"}
@@ -1,8 +1,12 @@
1
+ export { IDrawerOptions } from './i-drawer-options/i-drawer-options';
2
+ export { IPopoverOptions, Placement, } from './i-popover-options/i-popover-options';
1
3
  export { IModal } from './i-modal/i-modal';
2
4
  export { IModalData } from './i-modal-data/i-modal-data';
5
+ export { IModalOptions } from './i-modal-options/i-modal-options';
6
+ export { IPluginFactory } from './i-plugin-factory/i-plugin-factory';
3
7
  export { IUIActionResult } from './i-ui-action-result/i-ui-action-result';
8
+ export { IUIActionHandler } from './i-ui-action-handler/i-ui-action-handler';
4
9
  export * from './util';
5
- export * from './provider/i-editor-provider';
6
- export * from './register/i-register';
7
- export * from './register/i-editor-register';
10
+ export * from './provider';
11
+ export * from './register';
8
12
  //# 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;AACvB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EACL,eAAe,EACf,SAAS,GACV,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
@@ -1,4 +1,3 @@
1
1
  export * from './util';
2
- export * from './provider/i-editor-provider';
3
- export * from './register/i-register';
4
- export * from './register/i-editor-register';
2
+ export * from './provider';
3
+ export * from './register';
@@ -0,0 +1,20 @@
1
+ import { IUIActionHandler } from '../i-ui-action-handler/i-ui-action-handler';
2
+ /**
3
+ * 界面行为适配器的接口
4
+ *
5
+ * @author lxm
6
+ * @date 2022-10-25 13:10:45
7
+ * @export
8
+ * @interface IUIActionProvider
9
+ */
10
+ export interface IUIActionProvider {
11
+ /**
12
+ * 获取界面行为处理器
13
+ *
14
+ * @author lxm
15
+ * @date 2022-10-25 15:10:52
16
+ * @returns {*} {Promise<IUIActionHandler>}
17
+ */
18
+ getHandler(): Promise<IUIActionHandler>;
19
+ }
20
+ //# sourceMappingURL=i-ui-action-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/interface/provider/i-ui-action-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,UAAU,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACzC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './i-ui-action-provider';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './i-ui-action-provider';
@@ -7,6 +7,13 @@
7
7
  * @interface IRegister
8
8
  */
9
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
+ */
10
17
  providers: Map<string, T>;
11
18
  /**
12
19
  * 注册适配器
@@ -33,6 +40,6 @@ export interface IRegister<T> {
33
40
  * @param {string} key
34
41
  * @returns {*} {T}
35
42
  */
36
- get(key: string): T | undefined;
43
+ getByKey(key: string): T | undefined;
37
44
  }
38
45
  //# sourceMappingURL=i-register.d.ts.map
@@ -1 +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,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,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;CACjC"}
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,15 @@
1
+ import { IPSAppUIAction } from '@ibiz-template/model';
2
+ import { IUIActionProvider } from '../provider';
3
+ import { IRegister } from './i-register';
4
+ export interface IUIActionRegister extends IRegister<IUIActionProvider> {
5
+ /**
6
+ * 获取适配器
7
+ *
8
+ * @author lxm
9
+ * @date 2022-09-20 00:09:57
10
+ * @param {IPSAppUIAction} model 界面行为模型
11
+ * @returns {*} {(IEditorProvider)}
12
+ */
13
+ get(model: IPSAppUIAction): Promise<IUIActionProvider>;
14
+ }
15
+ //# sourceMappingURL=i-ui-action-register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-ui-action-register.d.ts","sourceRoot":"","sources":["../../../src/interface/register/i-ui-action-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,WAAW,iBAAkB,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACrE;;;;;;;OAOG;IACH,GAAG,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACxD"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './i-register';
2
+ export * from './i-ui-action-register';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/register/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './i-register';
2
+ export * from './i-ui-action-register';