New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@farris/bef

Package Overview
Dependencies
Maintainers
20
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@farris/bef - npm Package Compare versions

Comparing version 0.0.12-20210922153825-dev to 0.0.12-20211009152900-dev

esm2015/lib/dynamic_bef_repository.js

2

bundles/farris-bef.umd.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@ecp-caf/caf-common"),require("date-fns"),require("rxjs"),require("rxjs/operators"),require("rxjs/operators/map"),require("@angular/core"),require("@farris/devkit"),require("@angular/common/http")):"function"==typeof define&&define.amd?define("@farris/bef",["exports","@ecp-caf/caf-common","date-fns","rxjs","rxjs/operators","rxjs/operators/map","@angular/core","@farris/devkit","@angular/common/http"],t):t((e.farris=e.farris||{},e.farris.bef={}),e.cafCommon,e.dateFns,e.rxjs,e.rxjs.operators,e.rxjs["operators/map"],e.ng.core,e.devkit,e.ng.common.http)}(this,function(e,t,n,b,d,s,i,I,a){"use strict";var S=(r.Added="Added",r.Modify="Modify",r.Deleted="Deleted",r);function r(){}var p=new i.InjectionToken("@farris/be BE_SERVER_URL"),u=new i.InjectionToken("@farris/be BE_SESSION_HANDLING_STRATEGY_TOKEN"),C=(o.getPropInfo=function(e,t){var r,n,o,i=I.FieldMetadataUtil.getNgFields(e);Object.keys(i).forEach(function(e){e===t&&(r="NgField",n=null,o=i[e])});var a=I.FieldMetadataUtil.getNgObjects(e);Object.keys(a).forEach(function(e){e===t&&(r="NgObject",n=a[e].type,o=a[e])});var s=I.FieldMetadataUtil.getNgList(e);Object.keys(s).forEach(function(e){e===t&&(r="NgList",n=s[e].type,o=s[e])});var p=I.FieldMetadataUtil.getNgDynamic(e);return Object.keys(p).forEach(function(e){e===t&&(r="NgDynamic",n=p[e].type,o=p[e])}),{propType:r,propEntityType:n,propMetadata:o}},o.getPrimaryKey=function(e){var t=I.FieldMetadataUtil.getPrimaryFieldMetadata(e);return t?t.dataField:""},o.isObjectProp=function(e,t){var r=!1,n=I.FieldMetadataUtil.getNgObjects(e);return Object.keys(n).forEach(function(e){e===t&&(r=!0)}),r},o.isDynamicProp=function(e,t){var r=!1,n=I.FieldMetadataUtil.getNgDynamic(e);return Object.keys(n).forEach(function(e){e===t&&(r=!0)}),r},o.appendInitialData=function(e,t){var r=Object.assign({},t);delete r.id,delete r.parentID,e.initialData=r},o);function o(){}var c=(h.prototype.build=function(e){var t=this;return this.changeDetail={ChangeType:S.Modify,ChangeInfo:{DataId:""}},e.forEach(function(e){t.buildChangeDetail(e)}),this.changeDetail},h.prototype.buildChangeDetail=function(y){var d=y.path.concat();this.changeDetail.ChangeInfo.DataId||(this.changeDetail.ChangeInfo.DataId=d[0].split(":")[1]);for(var f=this.changeDetail,g=this.entityType,e=function(e){var t=v.getChangeInfo(f),r=d[e],n=C.getPropInfo(g,r),o=n.propType,i=n.propEntityType,a=n.propMetadata.dataField||r;if("NgField"===o){if(r===C.getPrimaryKey(g))return"continue";if(y.type!==I.ModifyType.ValueChange)throw Error("简单类型的属性上不支持ValueChange类型之外的变更");t[a]=y.value,f=null}else if("NgObject"===o)if(d[e+1].split(":")[1],d[e+1].split(":")[0]){var s=t[a],p=d.slice(0,e+1);s=(l=v.entityCollection.getEntityByPath(p))?l.toJSON(!0):{},t[a]=s,g=f=null}else c=(c=t[a])||{ChangeType:S.Modify,ChangeInfo:{}},t[a]=c,f=c,g=i;else if("NgList"===o){f.ChangeInfo[a]||(f.ChangeInfo[a]=[]);var u=f.ChangeInfo[a];if(e!==d.length-1){var c,h=d[e+1].split(":")[1];return(c=u.find(function(e){return e.ChangeInfo.DataId===h}))||(c=v.createEmptyChangeDetail(S.Modify,h),u.push(c)),f=c,g=i,"continue"}y.type===I.ModifyType.Add||y.type===I.ModifyType.Insert||(y.type,I.ModifyType.Remove),g=f=null}else if("NgDynamic"===o){p=d.slice(0,e+1);var l=v.entityCollection.getEntityByPath(p);t[a]={ChangeType:S.Modify,ChangeInfo:l?l.toJSON(!0):{}},g=f=null}},v=this,t=1;t<d.length&&f;t+=2)e(t)},h.prototype.getChangeInfo=function(e){return e.hasOwnProperty("ChangeInfo")?e.ChangeInfo:e},h.prototype.createEmptyChangeDetail=function(e,t){return{ChangeType:e,ChangeInfo:{DataId:t}}},h);function h(e,t){this.entityType=e,this.entityCollection=t}var l=(y.prototype.handle=function(e,t,r){this.handleChangeDetails(e,t,r)},y.prototype.handleChangeDetails=function(n,o,e){var i=this;e&&e.forEach(function(e){var t=e.ChangeInfo.dataId||e.ChangeInfo.DataId,r=i.getEntityById(o,t);r&&i.handleChangeDetail(n,r,e)})},y.prototype.handleChangeDetail=function(u,c,e){var h=this;if(e&&c&&e.ChangeType===S.Modify){var l=e.ChangeInfo;Object.keys(l).forEach(function(e){var t=C.getPropInfo(u,e),r=t.propType,n=t.propEntityType;if("NgField"===r)c[e]=l[e];else if("NgObject"===r){var o=c[e];if(o.primaryKey){var i=l[e];o.load(i)}else{var a=l[e];h.handleChangeDetail(n,o,a)}}else if("NgList"===r){var s=c[e],p=l[e];h.handleChangeDetails(n,s,p)}})}},y.prototype.getEntityById=function(e,t){return(e instanceof I.EntityCollection?e.getEntityById(t):e.get(t))||null},y);function y(){}var f=(g.prototype.getUserSessionId=function(){return this.sessionService.getUserSessionId()},g.prototype.getCurrentSessionId=function(e){var t;if(this.sessionService)if(e&&e.hasOwnProperty("tabId")){var r=e.tabId;t=this.sessionService.getCurrentSeesionId(r)}else t=this.sessionService.getCurrentSeesionId();return t=t||this.getUserSessionId()},g.decorators=[{type:i.Injectable}],g.ctorParameters=function(){return[{type:t.SessionService,decorators:[{type:i.Optional}]}]},g);function g(e){this.sessionService=e}var v=(m.prototype.getItem=function(e){return this.getAllBeSessions()[e]},m.prototype.setItem=function(e,t){var r=this.getAllBeSessions();r[e]=t,this.setAllBeSessions(r)},m.prototype.removeItem=function(e){var t=this.getAllBeSessions();t[e]&&delete t[e],this.setAllBeSessions(t)},m.prototype.clear=function(e,t){!0===this.isInFramework()?this.removeItemsByFrmSessionId(e):this.removeItem(t)},m.prototype.removeItemsByFrmSessionId=function(t){var r=this.getAllBeSessions();Object.keys(r).forEach(function(e){!0===e.startsWith(t)&&delete r[e]}),this.setAllBeSessions(r)},m.prototype.getAllBeSessions=function(){var e=window.sessionStorage.getItem(this.sessionStorageKey);return e?JSON.parse(e):{}},m.prototype.setAllBeSessions=function(e){var t=JSON.stringify(e);window.sessionStorage.setItem(this.sessionStorageKey,t)},m.prototype.isInFramework=function(){var e=window.location.hash;return!!e&&-1!==e.indexOf("tabId=")},m);function m(){this.sessionStorageKey="BE_SESSION_ID"}var E=function(e,t){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function x(e,t){function r(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var B=function(){return(B=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function P(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function R(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i["return"])&&r.call(i)}finally{if(o)throw o.error}}return a}function D(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(R(arguments[t]));return e}var q=(O.convertToHeaders=function(t){if(1==(t=t||new a.HttpHeaders)instanceof a.HttpHeaders)return t;if(0<Object.keys(t).length){var r=new a.HttpHeaders;Object.keys(t).forEach(function(e){r=r.append(e,t[e])}),t=r}else t=new a.HttpHeaders;return t},O.appendSessionId=function(e,t){return e.append("SessionId",t)},O.appendCafRuntimeCommonVariable=function(e,t){return e.append("X-CAF-Runtime-CommonVariable",t)},O.appendCafRuntimeContext=function(e,t){return e.append("X-CAF-Runtime-Context",t)},O.appendContextType=function(e,t){return t=t||"application/json",e.append("Content-Type",t)},O.appendRequireMessage=function(e,t){return void 0===t&&(t=!0),e.append("Bff-Require-Message",t.toString())},O.appendFuncInstId=function(e,t){return e.append("Func-Inst-Id",t)},O.toJson=function(r){if(!(r instanceof a.HttpHeaders))return null;var n={};return r.keys().forEach(function(e){var t=r.getAll(e);1<t.length?n[e]=t:n[e]=t[0]||""}),n},O);function O(){}var w=(M.buildParams=function(e){var t=new a.HttpParams;for(var r in e)if(e.hasOwnProperty(r)){var n=e[r].toString();t=t.append(r,n)}return t},M);function M(){}var T=(j.hasRequestInfo=function(e){if(!e||!e.body)return!1;var t=e.body;return!(!t.requestInfo||!t.requestInfo.dataChange)||!!t.dataChange},j.hasRequestInfoWithR=function(e){if(!e||!e.body)return!1;var t=e.body;return!(!t.RequestInfo||!t.RequestInfo.dataChange)||!!t.dataChange},j.buildRequestInfo=function(e){return{dataChange:e.entityManager.buildAllEntityChangeDetails(),variableChange:e.variableManager.buildChangeDetail()}},j.buildBodyWithRequestInfo=function(e,t){if(e.RequestInfo||e.requestInfo)return e;var r=this.buildRequestInfo(t);return Object.assign({},e,{requestInfo:r})},j);function j(){}var A=(U.unWrapResponseInfo=function(e){if(!e)return e;if(!1===e.hasOwnProperty("returnValue"))return e.hasOwnProperty("result")&&e.hasOwnProperty("pagination")?e.result:e;var t=e.returnValue;return t&&t.hasOwnProperty("result")&&t.hasOwnProperty("pagination")?t.result:e.returnValue},U.isReported401Error=function(e){return 401===e.status},U.parseBackEndMessage=function(e){return e&&e.message&&Array.isArray(e.message)&&0<e.message.length?e.message:null},U.parseBackEndError=function(e){var t=e&&e.error;return t&&t.hasOwnProperty("extensionMessage")&&t.extensionMessage&&t.extensionMessage.hasOwnProperty("UIMsg")&&t.extensionMessage.UIMsg&&0<t.extensionMessage.UIMsg.length?JSON.parse(t.extensionMessage.UIMsg):null},U);function U(){}var V=(H.prototype.getService=function(){for(var e=window;!e.gspframeworkService&&e!==window.top&&this.isSameOrigin(e);)e=window.parent;return e.gspframeworkService&&e.gspframeworkService.rtf||{}},H.prototype.isSameOrigin=function(e){var t=window.location.host;try{if(e&&e.location&&"undefined"!=typeof e.location.host)return e.location.host===t}catch(r){return!1}return!1},Object.defineProperty(H.prototype,"params",{get:function(){return this.rtf&&this.rtf.hasOwnProperty("session")&&"function"==typeof this.rtf.session.getCommonVariable?this.rtf.session.getCommonVariable():null},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"httpService",{get:function(){return this.rtf&&this.rtf.hasOwnProperty("http")&&"function"==typeof this.rtf.http.request?this.rtf.http:null},enumerable:!0,configurable:!0}),H.prototype.request=function(e,t,r){return void 0===r&&(r={}),this.defaultHttpClient.request(e,t,r)},H.decorators=[{type:i.Injectable}],H.ctorParameters=function(){return[{type:a.HttpClient}]},H);function H(e){this.defaultHttpClient=e,this.httpClient=e,this.rtf=this.getService()}var k=(F.prototype.getFrmSessionId=function(e){return this.frmSessionService.getCurrentSessionId(e)},Object.defineProperty(F.prototype,"frmSessionId",{get:function(){return this.frmSessionService.getCurrentSessionId()},enumerable:!0,configurable:!0}),F.prototype.getFrameworkSessionId=function(e){return this.getFrmSessionId(e)},F.prototype.getSessionIdFromStorage=function(e){var t=this.getSessionStorageKey(e);return this.storageStrategy.getItem(t)},F);function F(e,t){this.storageStrategy=e,this.frmSessionService=t}var N,_=(x(L,N=k),L.prototype.getSessionId=function(){var e=this.getSessionIdFromStorage();return e?b.of(e):this.createSession()},L.prototype.setSessionId=function(e){var t=this.getSessionStorageKey();this.storageStrategy.setItem(t,e)},L.prototype.clearSessionId=function(){var e=this.getSessionStorageKey();this.storageStrategy.clear(this.frmSessionId,e)},L.prototype.extendRequestHeaders=function(e,t){var r=this.getFrameworkSessionId(t),n=this.getSessionIdFromStorage(t);return e=q.appendCafRuntimeCommonVariable(e,r),n&&(e=q.appendCafRuntimeContext(e,n),e=q.appendSessionId(e,n)),e=q.appendFuncInstId(e,this.beSessionUri)},L.prototype.handleReponseHeaders=function(e){console.log(e)},L.prototype.createSession=function(){var t=this,e={responseType:"text"};return this.frmSessionId&&(this.injector.get(I.AppContext,null),e.headers=new a.HttpHeaders({SessionId:this.frmSessionId}),e.headers=e.headers.append("X-CAF-Runtime-CommonVariable",this.frmSessionId),e.headers=e.headers.append("Func-Inst-Id",this.beSessionUri),e.headers=q.toJson(e.headers)),this.httpService.request("POST",this.beSessionUri,e).pipe(d.tap(function(e){t.setSessionId(e)}))},L.prototype.extendHttpHeader=function(){},L.prototype.getSessionStorageKey=function(e){return(e?this.getFrameworkSessionId(e):this.frmSessionId)+"_"+this.beSessionUri},L);function L(e,t,r,n,o){var i=N.call(this,e,t)||this;return i.beSessionUri=n,i.httpClient=r,i.httpService=new V(i.httpClient),i.injector=o,i}var K,G=(x(J,K=k),J.prototype.getSessionId=function(){var e=this.getSessionStorageKey(),t=this.storageStrategy.getItem(e);return b.of(t)},J.prototype.setSessionId=function(e){var t=this.getSessionStorageKey();this.storageStrategy.setItem(t,e)},J.prototype.clearSessionId=function(){var e=this.getSessionStorageKey();this.storageStrategy.removeItem(e)},J.prototype.extendRequestHeaders=function(e,t){var r=this.getFrameworkSessionId(t),n=this.getSessionIdFromStorage(t),o=this.injector.get(I.AppContext,null);if(o){var i=o.Token;e=q.appendFuncInstId(e,i)}return e=q.appendCafRuntimeCommonVariable(e,r),n&&(e=q.appendCafRuntimeContext(e,n)),e},J.prototype.handleReponseHeaders=function(e){console.log(e)},J.prototype.getSessionStorageKey=function(e){return(e?this.getFrameworkSessionId(e):this.frmSessionId)+"_"+this.beSessionUri},J);function J(e,t,r,n){var o=K.call(this,e,t)||this;return o.beSessionUri=r,o.injector=n,o}var W=(z.prototype.create=function(e,t,r,n,o){var i=this.createStorageStrategy(),a=this.createBeSessionUri(r);return"UnifiedSession"===e?new G(i,t,a,o):new _(i,t,n,a,o)},z.prototype.createStorageStrategy=function(){return new v},z.prototype.createBeSessionUri=function(e){return e+"/service/createsession"},z.decorators=[{type:i.Injectable}],z);function z(){}var Q=(Object.defineProperty(Y.prototype,"token",{get:function(){return this.handlingStrategy.getFrameworkSessionId()},enumerable:!0,configurable:!0}),Y.prototype.getBeSessionId=function(){return this.handlingStrategy.getSessionId()},Y.prototype.setBeSessionId=function(e){this.handlingStrategy.setSessionId(e),this.setSessionId(e)},Y.prototype.clearBeSessionId=function(){this.handlingStrategy.clearSessionId()},Y.prototype.extendRequestHeaders=function(e,t){return this.handlingStrategy.extendRequestHeaders(e,t)},Y.prototype.handleResponseHeaders=function(e){return this.handlingStrategy.handleReponseHeaders(e)},Y.prototype.createBeSession=function(){return this.handlingStrategy.createSession()},Y.prototype.setSessionId=function(e){var t=this.injector.get(I.AppContext,null,i.InjectFlags.Optional);t&&e&&t.params.set("sessionId",e)},Y.prototype.createHandlingStrategy=function(e,t,r,n){var o;return o=(o=e?e.get(u,null,i.InjectFlags.Optional):"SeparatedSession")||"SeparatedSession",(new W).create(o,r,n,t,e)},Y.decorators=[{type:i.Injectable}],Y.ctorParameters=function(){return[{type:a.HttpClient},{type:String},{type:f},{type:i.Injector}]},Y);function Y(e,t,r,n){this.beBaseUri=t,this.injector=n,this.handlingStrategy=this.createHandlingStrategy(n,e,r,t)}var X,Z="@farris/bef NG_VARIABLE",$=I.makePropDecorator(Z,function(e){return e}),ee=(x(te,X=I.Repository),Object.defineProperty(te.prototype,"restService",{get:function(){return this.dataService.restService},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"changeBuilder",{get:function(){return this.entityManager.changeBuilder},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"changeHandler",{get:function(){return this.entityManager.changeHandler},enumerable:!0,configurable:!0}),te.prototype.getList=function(){return this.dataService.getList(null,null,null,null)},te.prototype.getById=function(e){return this.dataService.getById(e)},te.prototype.updateById=function(e){return this.dataService.updateById(e)},te.prototype.create=function(e){return this.dataService.create(e)},te.prototype.append=function(e){return this.dataService.append(e)},te.prototype.appendByPath=function(e){return this.dataService.appendByPath(e)},te.prototype.removeById=function(e,t){return this.dataService.removeById(e,t)},te.prototype.removeByIds=function(e,t){return this.dataService.removeByIds(e,t)},te.prototype.removeByPath=function(e,t){return this.dataService.removeByPath(e,t)},te.prototype.updateChangesById=function(e){return this.dataService.updateChangesById(e)},te.prototype.updateChangesByPath=function(e,t){throw new Error("Not Implement")},te.prototype.updateAllChanges=function(){return this.dataService.updateAllChanges()},te.prototype.applyChanges=function(){return this.dataService.applyChanges()},te.prototype.updateDataAndVariableChanges=function(){var e={FilterConditions:[],SortConditions:[],IsUsePagination:!0,Pagination:{PageIndex:1,PageSize:1,PageCount:0,TotalCount:0}},t=JSON.stringify(e),r=this.restService.buildRequestInfo();if(this.isEmptyRequestInfo(r))return b.of(null);var n=this.restService.baseUri+"/extension/query?entityFilter="+t,o={body:r};return this.restService.invoke(n,"PUT",null,o,!1,!0,!0)},te.prototype.applyChangesById=function(e){return this.dataService.applyChangesById(e)},te.prototype.cancelChanges=function(e){return this.dataService.cancelChanges(e)},te.prototype.clearAllEntityChanges=function(){return this.entityManager.clearAllEntityChanges()},te.prototype.getDataChangeDetails=function(){return this.entityManager.buildAllEntityChangeDetails()},te.prototype.handleDataChangeDetails=function(e){return this.entityManager.handleDataChangeDetails(e)},te.prototype.getVariableChangeDetail=function(){return this.variableManager.buildChangeDetail()},te.prototype.handleVariableChangeDetail=function(e){this.variableManager.handleChangeDetail(e)},te.prototype.isEmptyRequestInfo=function(e){return!e||(!e.dataChange||e.dataChange.length<1)&&(!e.variableChange||Object.keys(e.variableChange).length<1)},te.decorators=[{type:i.Injectable}],te.ctorParameters=function(){return[]},te);function te(){return X.call(this)||this}var re,ne=(x(oe,re=I.EntityManager),oe.prototype.buildAllEntityChangeDetails=function(){var r=this,n=[];return this.entityCollection.getAllEntities().forEach(function(e){if(0!==e.changes.length){var t=r.changeBuilder.build(e.changes);t&&t.ChangeInfo&&t.ChangeInfo.DataId&&n.push(t)}}),n},oe.prototype.buildEntityChangeDetailById=function(e){var t=this.entityCollection.getEntityById(e);return 0===t.changes.length?null:this.changeBuilder.build(t.changes)},oe.prototype.handleDataChangeDetails=function(e){this.changeHandler.handle(this.entityType,this.entityCollection,e)},oe.prototype.reset=function(){this.entityCollection.clear()},oe);function oe(e){var t=re.call(this,e)||this;return t.changeBuilder=new c(t.entityCollection.entityType,t.entityCollection),t.changeHandler=new l,t}var ie=(ae.createEmpty=function(e,t){var r={ChangeType:e,ChangeInfo:{}};return t&&(r.ChangeInfo.DataId=t),r},ae.getChangeInfo=function(e){return!0===this.isChangeDetail(e)?e.ChangeInfo:e},ae.isChangeDetail=function(e){var t=Object.keys(e);return 2===t.length&&-1<t.indexOf("ChangeType")&&-1<t.indexOf("ChangeInfo")},ae);function ae(){}var se=(pe.prototype.handleChangeDetail=function(e){var o=this,i=e.ChangeInfo;Object.keys(i).forEach(function(e){var t=o.ngVariableMap.get(e);if(t){var r=t.mapping,n=i[e];o.innerValueMap.get(e)!==n&&(o.setValueToUIState(r,n),o.innerValueMap.set(e,n))}})},pe.prototype.buildChangeDetail=function(){var i=this,a=ie.createEmpty(S.Modify);return this.ngVariableMap.forEach(function(e,t){var r=e.mapping,n=i.getValueFromUIState(r),o=i.innerValueMap.get(t);!1===i.isValueEqual(n,o)&&i.appendToChangeInfo(a,t,n)}),0===Object.keys(a.ChangeInfo).length?null:a},pe.prototype.reset=function(){this.innerValueMap.clear()},pe.prototype.clearChanges=function(){var i=this;this.ngVariableMap.forEach(function(e,t){var r=e.mapping,n=i.getValueFromUIState(r),o=i.innerValueMap.get(t);!1===i.isValueEqual(n,o)&&i.innerValueMap.set(t,n)})},pe.prototype.appendToChangeInfo=function(e,t,r){if(!0===this.isUdtVariable(r)){var n=ie.createEmpty(S.Modify);n.ChangeInfo=r,e.ChangeInfo[t]=n}else e.ChangeInfo[t]=r},pe.prototype.getValueFromUIState=function(e){var t=this.getRootUIState(),r=e.split(".").reduce(function(e,t){return e?e[t]:null},t);return r instanceof Date?n.format(r,"yyyy-MM-dd HH:mm:ss"):r},pe.prototype.getRootUIState=function(){var e=this.appContext.frameContextManager.getRootFrameContext();if(this.injector){var t=this.injector.get(I.FrameContext,null);t&&(e=t.getVirtualRootFrameContext()||e)}if(e)return e.uiState},pe.prototype.isValueEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},pe.prototype.isUdtVariable=function(e){return e&&e.constructor&&"[object Object]"===e.toString()&&e.constructor.prototype.hasOwnProperty("isPrototypeOf")},pe.prototype.setValueToUIState=function(e,t){this.getRootUIState()[e]=t},pe.ctorParameters=function(){return[{type:I.AppContext},{type:undefined},{type:i.Injector,decorators:[{type:i.Optional}]}]},pe);function pe(e,t,r){var n=this;this.appContext=e,this.ngVariables=t,this.injector=r,this.ngVariableMap=new Map,this.innerValueMap=new Map,Object.keys(t).forEach(function(e){n.ngVariableMap.set(e,t[e])})}var ue=(ce.buildRequestInfo=function(e){return{dataChange:e.entityManager.buildAllEntityChangeDetails(),variableChange:e.variableManager.buildChangeDetail()}},ce);function ce(){}var he=(le.convertToPathArray=function(e,t){var n=this,r=I.BindingPathConverter.toBindingPathArray(e),o=[],i=t.list.currentItem;return o.push(i.primaryKeyValue),r.forEach(function(e){var t=I.PropertyUtil.getPropertyByName(i.properties,e);if(t.type!==I.BindingPropertyType.List)throw new Error(t.name+"不是子表对应的属性");var r=i[e];i=r.currentItem,o.push(n.trimTrailingS(e)),o.push(i.primaryKeyValue)}),o},le.convertToPathUrl=function(e,t){var r=this.convertToPathArray(e,t);return r.pop(),"/"+r.join("/")},le.convertToObjectCodes=function(e,t){for(var r=this.convertToPathArray(e,t),n=r.length,o=[],i=1;i<n;i+=2)o.push(r[i]);return o},le.convertToDataIdsForUpdate=function(e,t){for(var r=this.convertToPathArray(e,t),n=r.length,o=[],i=0;i<n;i+=2)o.push(r[i]);return o},le.convertToDataIdsForAdd=function(e,t){var r=this.convertToDataIdsForUpdate(e,t);return r.pop(),r},le.convertPathToUrl=function(e){for(var t=e.split("/"),r=t.length-1;0<r;r--)t[r]&&t[r].endsWith("s")&&(t[r]=t[r].substr(0,t[r].length-1).toLowerCase());return t.join("/")},le.trimTrailingS=function(e){return e.substr(0,e.length-1)},le.convertPathsToNodeCodes=function(e){var t=[];return!e||e.length<1||e.filter(function(e){return!!e&&-1===e.indexOf(":")}).forEach(function(e){t.push(e)}),t},le.convertPathsToIds=function(e){var t=[];return!e||e.length<1||e.filter(function(e){return!!e&&-1!==e.indexOf(":")}).forEach(function(e){t.push(e.split(":")[1])}),t},le);function le(){}var ye=(Object.defineProperty(de.prototype,"restProxy",{get:function(){return this.repository.restService.proxy},enumerable:!0,configurable:!0}),de.prototype.getList=function(e,t,r,n){var p=this;0!==r&&(r=r||this.repository.entityCollection.pageSize,n=n||this.repository.entityCollection.pageIndex);var o=this.buildEntityFilter(e,t,r,n),i=this.restService.buildRequestInfo();return this.restProxy.extendQuery(o,i).pipe(d.map(function(e){var t=e.returnValue,r=t.result,n=[];r.forEach(function(e){var t=p.repository.buildEntity(e);C.appendInitialData(t,e),n.push(t)});var o=t.pagination;if(o&&0<Object.keys(o).length){var i=o.pageSize,a=o.pageIndex,s=o.totalCount;p.repository.entityCollection.updatePaginationInfoByPath("/",{pageIndex:a,pageSize:i,totalCount:s})}else p.repository.entityCollection.updatePaginationInfoByPath("/",{pageIndex:1,pageSize:0,totalCount:n.length});return p.repository.entityCollection.loadEntities(n),n}))},de.prototype.filter=function(e,t,r,n){var p=this;0!==r&&(r=r||this.repository.entityCollection.pageSize,n=n||this.repository.entityCollection.pageIndex);var o=this.buildEntityFilter(e,t,r,n),i=this.restService.buildRequestInfo();return this.restProxy.filter(o,i).pipe(d.map(function(e){var t=e.returnValue,r=t.result,n=[];r.forEach(function(e){var t=p.repository.buildEntity(e);C.appendInitialData(t,e),n.push(t)});var o=t.pagination;if(o&&0<Object.keys(o).length){var i=o.pageSize,a=o.pageIndex,s=o.totalCount;p.repository.entityCollection.updatePaginationInfoByPath("/",{pageIndex:a,pageSize:i,totalCount:s})}else p.repository.entityCollection.updatePaginationInfoByPath("/",{pageIndex:1,pageSize:0,totalCount:n.length});return p.repository.entityCollection.loadEntities(n),n}))},de.prototype.buildEntityFilter=function(e,t,r,n){return e||t||r||n?(e&&0<e.length&&(e[e.length-1].Relation=0),{FilterConditions:e,SortConditions:t,IsUsePagination:0!==r,Pagination:{PageIndex:n,PageSize:r,PageCount:0,TotalCount:0}}):null},de.prototype.getById=function(e){var n=this,t=this.restService.buildRequestInfo();return this.restService.extendRetrieve(e,t).pipe(d.map(function(e){var t=e.returnValue,r=n.repository.buildEntity(t);return n.repository.entityCollection.loadEntities([r]),r}))},de.prototype.getPagedById=function(o){var i=this,e=this.restService.buildRequestInfo(),t=this.repository.entityCollection.getPaginationConfigByPath("/"),r=this.buildChildPagination(t),n=this.buildRetrieveParam(r);return this.restService.serviceRetrieve(o,n,e).pipe(d.map(function(e){var t=e.dataResult,r=e.paginations;i.updatePagination(r);var n=i.repository.entityCollection.getEntityById(o);return i.reloadEntityData(n,t),n}))},de.prototype.queryChild=function(s,e,t,r,n){var p=this,o=this.restService.buildRequestInfo(),u=he.convertPathsToNodeCodes(s),i=u.map(function(e){return e.substring(0,e.length-1)}),a=he.convertPathsToIds(s),c=B({nodeCodes:i,ids:a,pagination:{pageIndex:e,pageSize:t}},o),h=u[u.length-1];return h=h.substring(0,h.length-1),this.restService.queryChild(c).pipe(d.map(function(e){console.log(e);var t=e.returnValue;if(!t)return null;var r=t.result,n=void 0===r?[]:r,o=t.pagination,i=void 0===o?{}:o,a=[];n.forEach(function(e){var t=new(I.FieldMetadataUtil.getNgList(p.repository.entityType)[u[u.length-1]].type)(e);C.appendInitialData(t,e),a.push(t)}),u=u.map(function(e){return e.charAt(0).toLocaleLowerCase()+e.substr(1)}),p.repository.entityCollection.resetEntities(s,a),p.repository.entityCollection.setPaginationConfigByPath("/"+h,i)}))},de.prototype.buildChildPagination=function(r){var n={};return Object.keys(r).forEach(function(e){var t=r[e];"object"==typeof t&&(n[e]=t)}),n},de.prototype.updatePagination=function(t){var r=this;t&&Object.keys(t).forEach(function(e){r.repository.entityCollection.setPaginationConfigByPath("/"+e,t[e])})},de.prototype.buildRetrieveParam=function(n){var e={};if(n&&0<Object.keys(n).length){var o=[];Object.keys(n).forEach(function(e){var t=n[e],r={};r[e]={pagination:{pageSize:t.pageSize||0,pageIndex:1}},o.push(r)}),e.filters=o}return e},de.prototype.editById=function(n){var o=this;if(!this.repository.entityCollection.getEntityById(n))return b.of(null);var e=ue.buildRequestInfo(this.repository);return this.restProxy.edit(n,e).pipe(d.map(function(e){var t=e.returnValue.data,r=o.repository.entityCollection.getEntityById(n);return r&&t&&o.reloadEntityData(r,t),r}))},de.prototype.updateById=function(n){var o=this;if(!this.repository.entityCollection.getEntityById(n))return b.of(null);var e=this.restService.buildRequestInfo();return this.restService.extendRetrieve(n,e).pipe(d.map(function(e){var t=e.returnValue,r=o.repository.entityCollection.getEntityById(n);return o.reloadEntityData(r,t),r}))},de.prototype.reloadEntityData=function(e,t){e&&(this.appContext.changeDetectionController.detach(),this.repository.entityCollection.updateEntity(e,t),e.changes.splice(0,e.changes.length),this.appContext.changeDetectionController.reattach())},de.prototype.create=function(e){var n=this,t=this.restService.buildRequestInfo();return this.restService.create(e,t).pipe(d.map(function(e){var t=e.returnValue,r=n.repository.buildEntity(t);return C.appendInitialData(r,t),n.repository.entityCollection.loadEntities([r]),r}))},de.prototype.append=function(e){var n=this,t=this.restService.buildRequestInfo();return this.restService.create(e,t).pipe(d.map(function(e){var t=e.returnValue,r=n.repository.buildEntity(t);return n.repository.entityCollection.addEntity(r),r}))},de.prototype.insert=function(n,e){var o=this,t=this.buildRequestInfo();return this.restProxy.create(e,t).pipe(d.map(function(e){var t=e.returnValue,r=o.repository.buildEntity(t);return o.repository.entityCollection.insertEntity(r,n),r}))},de.prototype.appendByPath=function(r){var n=this,e=this.restService.buildRequestInfo();return this.restService.createByPath(r,e).pipe(d.map(function(e){var t=e.returnValue;return n.repository.entityManager.appendEntityByPath(r,t,t)}))},de.prototype.insertByPath=function(r,n){var o=this,e=this.buildRequestInfo();return this.restProxy.createByPath(r,e).pipe(d.map(function(e){var t=e.returnValue;return o.repository.entityManager.insertEntityByPath(r,t,t,n)}))},de.prototype.removeById=function(e,t){var r=this;t=t===undefined||t;var n=ue.buildRequestInfo(this.repository);return t?this.restProxy.deleteAndSave(e,n).pipe(d.switchMap(function(){return r.repository.entityCollection.removeEntityById(e),b.of(!0)})):this.restService.extendDelete(e,n).pipe(d.switchMap(function(){return r.repository.entityCollection.removeEntityById(e),r.repository.dataChangeHistory.addChange({dataId:e,changeType:I.DataChangeType.Delete}),b.of(!0)}))},de.prototype.removeAndSaveById=function(e){var t=this,r=ue.buildRequestInfo(this.repository);return this.restProxy.deleteAndSave(e,r).pipe(d.switchMap(function(){return t.repository.entityCollection.removeEntityById(e),b.of(!0)}))},de.prototype.removeByIds=function(r,e){var n=this;e=e===undefined||e;var t=this.restService.buildRequestInfo();return this.restService.extendBatchDelete(r,t).pipe(d.switchMap(function(){if(e)return n.applyChangesByIdArray(r).pipe(d.tap(function(e){e&&n.repository.entityCollection.removeEntities(function(e){return n.checkEntityValueExists(e,r)})}));if(n.repository.entityCollection.removeEntities(function(e){return n.checkEntityValueExists(e,r)}),r&&0<r.length){var t=[];r.forEach(function(e){t.push({dataId:e,changeType:I.DataChangeType.Delete})}),n.repository.dataChangeHistory.addChanges(t)}return b.of(!0)}))},de.prototype.checkEntityValueExists=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.primaryValue===t[n]){r=!0;break}return r},de.prototype.removeByPath=function(e,t){var r=this,n=this.restService.buildRequestInfo();return this.restService.extendDeletByPath(e,t,n).pipe(d.map(function(){return r.repository.entityManager.removeEntityByPath(e,t),r.repository.dataChangeHistory.addChange({fpath:e,dataId:t,changeType:I.DataChangeType.Delete}),!0}))},de.prototype.batchRemoveByPath=function(t,r){var n=this,e=this.restService.buildRequestInfo();return this.restService.batchDeleteByPath(t,r,e).pipe(d.map(function(){var e=r.split(",");return 0<e.length&&e.forEach(function(e){n.repository.entityManager.removeEntityByPath(t,e),n.repository.dataChangeHistory.addChange({fPath:t,dataId:e,changeType:I.DataChangeType.Delete})}),!0}))},de.prototype.updateChangesById=function(e){var t=this,r=this.repository.entityCollection.getEntityById(e);if(!r.changes)return b.of(!0);if(0===r.changes.length)return b.of(!0);var n=this.repository.entityManager.buildEntityChangeDetailById(e),o=this.restService.buildRequestInfo();return this.restService.update(n,o).pipe(d.tap(function(){t.repository.entityManager.clearEntityChangesById(e)}),d.map(function(){return!0}))},de.prototype.updateChangesByPath=function(e,t){throw new Error("Not Implement")},de.prototype.updateAllChanges=function(){var r=this,n=[],e=this.repository.entityCollection.toArray();return 0===e.length?b.of(!0):(e.forEach(function(e){var t=r.updateChangesById(e.primaryValue);n.push(t)}),b.zip.apply(void 0,D(n)).pipe(d.map(function(){return!0})))},de.prototype.applyChanges=function(){var e=this,t=this.restService.buildRequestInfo();return this.restService.save(t).pipe(d.tap(function(){e.repository.entityManager.clearAllEntityChanges(),e.repository.clearAllVariableChanges(),e.repository.dataChangeHistory.clear()}),d.map(function(){return!0}))},de.prototype.applyChangesByIdArray=function(e){var t=this,r=this.restService.buildRequestInfo();return this.restService.save(r).pipe(d.tap(function(){t.repository.entityManager.clearEntityChangesByArray(e),t.repository.dataChangeHistory.clearByIds(e)}),d.map(function(){return!0}))},de.prototype.applyChangesById=function(e){var t=this,r=this.restService.buildRequestInfo();return this.restService.save(r).pipe(d.tap(function(){t.repository.entityManager.clearEntityChangesById(e),t.repository.dataChangeHistory.clearByIds([e])}),d.map(function(){return!0}))},de.prototype.cancelChanges=function(e){var t=this;return this.restService.cancel(e).pipe(d.tap(function(){t.repository.entityManager.clearAllEntityChanges(),t.repository.dataChangeHistory.clear()}),d.map(function(){return!0}))},de.prototype.batchAppendByPath=function(o,e){var i=this,t=this.buildRequestInfo();return this.restProxy.batchAppendByPath(o,e,t).pipe(d.map(function(e){var t=e.returnValue,r=i.repository.entityManager.createEntitiesByPath(o,t),n=o.split("/").filter(function(e){return e});return i.repository.entityManager.appendEntitiesByPath(n,r),r}))},de.prototype.batchAppend=function(e){var n=this,t=this.buildRequestInfo();return this.restProxy.batchAppend(e,t).pipe(d.map(function(e){var t=e.returnValue,r=n.repository.buildEntities(t);return n.repository.entityCollection.addEntities(r),r}))},de.prototype.buildRequestInfo=function(){return{dataChange:this.repository.entityManager.buildAllEntityChangeDetails(),variableChange:this.repository.variableManager.buildChangeDetail()}},de);function de(e,t){this.injector=e,this.repository=t;var r=e.get(f),n=e.get(a.HttpClient),o=e.get(p)+"/"+this.repository.apiUri,i=e.get(I.EventBus);this.restService=new we(n,o,r,this.repository,i),this.appContext=e.get(I.AppContext)}var fe=(ge.handleMessage=function(e,t,r){var n={ns:t.get(I.NAMESPACE,null),appContext:t.get(I.AppContext,null)},o=this.buildBackEndMessages(e),i=new I.BackEndMessage.Message(o,n),a=t.get(I.BACK_END_MESSAGE_HANDLER_TOKEN,null);a&&a.handle(i,r)},ge.isBackEndMessageHandlerExist=function(e){return!!e.get(I.BACK_END_MESSAGE_HANDLER_TOKEN,null)},ge.getFormlessMessages=function(e){return(this.buildBackEndMessages(e)||[]).filter(function(e){return!e.location||!e.location.columns||e.location.columns.length<1||!e.location.nodeCode})},ge.buildBackEndMessages=function(e){if(!e||e.length<1||!Array.isArray(e))return null;var r=[];return e.forEach(function(e){var t={level:e.level,message:e.message};e.hasOwnProperty("location")&&e.location&&(t.location={nodeCode:e.location.nodeCode,rows:e.location.dataIds,columns:e.location.columnNames}),r.push(t)}),r},ge);function ge(){}var ve=(Ie.getSessionId=function(e,t){var r=e.ApplicationId+"_"+t.beBaseUri;return this.createSessionHistory.includes(r)?b.of(null):(this.createSessionHistory.push(r),t.getBeSessionId())},Ie.createSessionHistory=[],Ie.decorators=[{type:i.Injectable}],Ie);function Ie(){}var Se=(be.prototype.onResponse=function(e,t){e&&e.innerDataChange&&!0!==t&&this.context.handleDataChangeDetails(e.innerDataChange),e&&e.innerVariableChange&&this.context.handleVariableChangeDetail(e.innerVariableChange);var r=A.parseBackEndMessage(e);return fe.handleMessage(r,this.context.getInjector()),this.context.clearAllEntityChanges(),this.context.clearAllVariableChanges(),e&&e.hasOwnProperty("returnValue")?e.returnValue:e},be.prototype.onError=function(e,t,r){var n,o,i=this.context.appContext.getFormAppContext(),a=i.ApplicationId,s=window.DEVKIT_LOADING_SERVICE,p=A.parseBackEndError(e);if(fe.handleMessage(p,this.context.getInjector()),s&&s instanceof Array&&0<s.length)try{for(var u=P(s),c=u.next();!c.done;c=u.next()){var h=c.value;"function"==typeof h.clearAll&&h.clearAll()}}catch(S){n={error:S}}finally{try{c&&!c.done&&(o=u["return"])&&o.call(u)}finally{if(n)throw n.error}}if(t)return b.throwError(e);var l=this.context.restService.eventBus,y=!!(window[a]||{}).isExceptionHandlerExist,d=A.parseBackEndError(e),f=fe.getFormlessMessages(d),g=f&&0<f.length||!1,v=!(e&&e.error&&e.error.extensionMessage&&fe.isBackEndMessageHandlerExist(this.context.getInjector())&&!g),I=!!l&&y&&v;return fe.handleMessage(d,this.context.getInjector(),{hasThrowError:I,isException:!0,eventBus:l,error:e,formAppContext:i}),l&&y&&!A.isReported401Error(e)?(v&&l.post("Exception","","onException",e,i),r?b.of(null):b.EMPTY):b.throwError(e)},be.prototype.extendHeaders=function(t,r){var n=this,e=this.context.appContext.getFormAppContext();return ve.getSessionId(e,this.context.restService.sessionService).pipe(d.switchMap(function(e){return t=n.context.restService.sessionService.extendRequestHeaders(t,r),b.of(t)}))},be.prototype.extendUrl=function(e,t){if(!t)return e;for(var r in t)if(t.hasOwnProperty(r)){var n=JSON.stringify(t[r]);e=-1===e.indexOf("?")?e+"?"+r+"="+n:e+"&"+r+"="+n}return e},be.prototype.extendBody=function(t){var r=this;return!t||"object"!=typeof t||Object.keys(t).length<1||(Object.keys(t).forEach(function(e){"requestInfo"===e&&(t.requestInfo=r.context.restService.buildRequestInfo())}),1===Object.keys(t).length&&(t=Object.values(t)[0])),t},be.prototype.parseHeaders=function(e){var t="BEFSessionID";e.headers&&e.headers.has(t)&&this.context.restService.sessionService.setBeSessionId(e.headers.get(t))},be);function be(e){this.context=e}var Ce,me=(x(Ee,Ce=ee),Object.defineProperty(Ee.prototype,"proxy",{get:function(){return this.befProxy},set:function(e){this.befProxy=e,this.befProxy.setProxyExtend(new Se(this))},enumerable:!0,configurable:!0}),Ee.prototype.getEntities=function(e,t,r,n){return this.dataService.getList(e,t,r,n)},Ee.prototype.filter=function(e,t,r,n){return void 0===e&&(e=[]),void 0===t&&(t=[]),this.dataService.filter(e,t,r,n)},Ee.prototype.getPagedById=function(e){return this.dataService.getPagedById(e)},Ee.prototype.queryChild=function(e,t,r,n,o){return this.dataService.queryChild(e,t,r,n,o)},Ee.prototype.getEntityById=function(e){return this.dataService.getById(e)},Ee.prototype.updateEntityById=function(e){return this.dataService.updateById(e)},Ee.prototype.editEntityById=function(e){return this.dataService.editById(e)},Ee.prototype.createEntity=function(e){return this.dataService.create(e)},Ee.prototype.appendEntity=function(e){return this.dataService.append(e)},Ee.prototype.insert=function(e,t){return this.dataService.insert(e,t)},Ee.prototype.insertByPath=function(e,t){return this.dataService.insertByPath(e,t)},Ee.prototype.appendEntityByPath=function(e){return this.dataService.appendByPath(e)},Ee.prototype.removeEntityById=function(e,t){return this.dataService.removeById(e,t)},Ee.prototype.removeEntityAndSaveById=function(e){return this.dataService.removeAndSaveById(e)},Ee.prototype.removeEntityByPath=function(e,t){return this.dataService.removeByPath(e,t)},Ee.prototype.batchRemoveByPath=function(e,t){return this.dataService.batchRemoveByPath(e,t)},Ee.prototype.saveEntityById=function(e){return this.dataService.applyChangesById(e)},Ee.prototype.saveEntities=function(){return this.dataService.applyChanges()},Ee.prototype.cancelEntityChanges=function(){return this.dataService.cancelChanges()},Ee.prototype.batchAppendByPath=function(e,t){return this.dataService.batchAppendByPath(e,t)},Ee.prototype.batchAppend=function(e){return this.dataService.batchAppend(e)},Ee.prototype.reset=function(){this.entityManager.reset(),this.variableManager.reset(),this.restService.sessionService.clearBeSessionId()},Ee.prototype.getInjector=function(){return this.injector},Ee.prototype.clearAllVariableChanges=function(){this.variableManager.clearChanges()},Ee.decorators=[{type:i.Injectable}],Ee.ctorParameters=function(){return[{type:i.Injector}]},Ee);function Ee(e){var t=Ce.call(this)||this;t.injector=e,t.entityManager=new ne(t.entityCollection),t.appContext=t.injector.get(I.AppContext);var r=I.MetadataUtil.getPropsMetadatasByName(t.constructor,Z);return t.variableManager=new se(t.appContext,r,t.injector),t.dataService=new ye(t.injector,t),t.serverUri=e.get(p),t}var xe=(Be.prototype.extendUri=function(e){return this.serverUri+"/"+e},Be.decorators=[{type:i.Injectable}],Be.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[p]}]}]},Be);function Be(e){this.serverUri=e}var Pe="DELETE",Re="PUT",De="POST",qe=(Oe.prototype.setBaseUri=function(e){this.baseUri=e},Oe.prototype.setProxyExtend=function(e){this.proxyExtend=e},Oe.prototype.query=function(e){var t=this.baseUri;return e&&(t=t+"?entityFilter="+JSON.stringify(e)),this.request(t,"GET")},Oe.prototype.extendQuery=function(e,t){var r=this.baseUri+"/extension/query";if(e){var n=JSON.stringify(e);r=r+"?entityFilter="+(n=I.encodeUrl(n))}var o=t,i=this.addBodyToOptions({},o);return this.request(r,Re,null,i,!1)},Oe.prototype.filter=function(e,t){var r=this.baseUri+"/extension/filter",n={requestInfo:t};e&&(n={entityFilter:e,requestInfo:t});var o=this.addBodyToOptions({},n);return this.request(r,De,null,o,!1)},Oe.prototype.retrieve=function(e){var t=this.baseUri+"/"+e;return this.request(t,"GET")},Oe.prototype.serviceRetrieve=function(e,t,r){var n=this.baseUri+"/service/retrieve/"+e,o={body:{retrieveParam:t,requestInfo:r}};return this.request(n,Re,null,o)},Oe.prototype.queryChild=function(e){var t=this.baseUri+"/service/querychild",r={body:e};return this.request(t,Re,null,r)},Oe.prototype.extendRetrieve=function(e,t){var r=this.baseUri+"/extension/retrieve/"+e,n=t,o=this.addBodyToOptions({},n);return this.request(r,Re,null,o)},Oe.prototype.edit=function(e,t){var r=this.baseUri+"/service/edit/"+e,n=t,o=this.addBodyToOptions({},n);return this.request(r,Re,null,o)},Oe.prototype.create=function(e,t){var r={defaultValue:e,requestInfo:t},n=this.addBodyToOptions({},r);return this.request(this.baseUri,De,null,n)},Oe.prototype.createByPath=function(e,t){var r=he.convertPathToUrl(e),n=""+this.baseUri+r,o=t,i=this.addBodyToOptions({},o);return this.request(n,De,null,i)},Oe.prototype.update=function(e,t){var r={changeDetail:e,requestInfo:t},n=this.addBodyToOptions({},r);return this.request(this.baseUri,"PATCH",null,n)},Oe.prototype.save=function(e){var t=e,r=this.addBodyToOptions({},t);return this.request(this.baseUri,Re,null,r)},Oe.prototype["delete"]=function(e){var t=this.baseUri+"/"+e;return this.request(t,Pe)},Oe.prototype.deleteAndSave=function(e,t){var r=this.baseUri+"/service/delete/"+e,n=t,o=this.addBodyToOptions({},n);return this.request(r,Re,null,o)},Oe.prototype.extendDelete=function(e,t){var r=this.baseUri+"/extension/delete/"+e,n=t,o=this.addBodyToOptions({},n);return this.request(r,Re,null,o)},Oe.prototype.deletByPath=function(e,t){var r=he.convertPathToUrl(e),n=""+this.baseUri+r+"/"+t;return this.request(n,Pe)},Oe.prototype.extendDeletByPath=function(e,t,r){var n=he.convertPathToUrl(e),o=this.baseUri+"/extension"+n+"/"+t,i=r,a=this.addBodyToOptions({},i);return this.request(o,Re,null,a)},Oe.prototype.batchDeleteByPath=function(e,t,r){var n=he.convertPathToUrl(e);if(n.split("/").length<3)throw Error("根据path删除实体数据出错了。传入的path["+e+"]格式不对");var o=this.baseUri+"/extension"+n+"/batch",i={ids:t.split(","),requestInfo:r},a=this.addBodyToOptions({},i);return this.request(o,Re,null,a)},Oe.prototype.batchDelete=function(e){var t={ids:e.join(",")};return this.request(this.baseUri,Pe,t)},Oe.prototype.extendBatchDelete=function(e,t){var r=this.baseUri+"/extension/batchdelete",n={ids:e.join(",")},o=t,i=this.addBodyToOptions({},o);return this.request(r,Re,n,i)},Oe.prototype.cancel=function(e){var t=this.baseUri+"/service/cancel";return this.request(t,De,null,null,!1,!1,!1,e)},Oe.prototype.batchAppendByPath=function(e,t,r){var n=he.convertPathToUrl(e),o=""+this.baseUri+n+"/batch",i={requestInfo:r,retrieveDefaultParam:{defaultValues:t}},a=this.addBodyToOptions({},i);return this.request(o,De,null,a)},Oe.prototype.batchAppend=function(e,t){var r=this.baseUri+"/batch",n={requestInfo:t,retrieveDefaultParam:{defaultValues:e}},o=this.addBodyToOptions({},n);return this.request(r,De,null,o)},Oe.prototype.request=function(t,r,e,n,o,i,a,s){var p=this;n=n||{},void 0!==o&&"boolean"==typeof o||(o=!1),void 0!==i&&"boolean"==typeof i||(i=!1),e&&(n.params=e),n.headers=q.convertToHeaders(n.headers);var u=this.hasRequestInfo(n);return n&&n.body&&n.body.hasOwnProperty("RequestInfo")&&(n.body.requestInfo=n.body.RequestInfo,delete n.body.RequestInfo),this.proxyExtend.extendHeaders(n.headers,s).pipe(d.switchMap(function(e){return n.headers=q.toJson(e),n.observe="response",p.httpService.request(r,t,n)}),d.tap(function(e){return p.proxyExtend.parseHeaders(e)}),d.map(function(e){return e.body}),d.map(function(e){return u?(p.proxyExtend.onResponse(e,a),e):p.unWrapResponseInfo(e)}),d.catchError(function(e){return p.proxyExtend.onError(e,o,i)}))},Oe.prototype.invoke=function(t,r,n){var o=this;return n.params&&(t=this.proxyExtend.extendUrl(t,n.params),n.params=null),n.body&&(n.body=this.proxyExtend.extendBody(n.body)),n.headers=q.convertToHeaders(n.headers),this.proxyExtend.extendHeaders(n.headers).pipe(d.switchMap(function(e){return n.headers=q.toJson(e),n.observe="response",o.httpService.request(r,t,n).pipe(d.tap(function(e){return o.proxyExtend.parseHeaders(e)}),d.map(function(e){return e.body}),d.map(function(e){return o.proxyExtend.onResponse(e)}),d.catchError(function(e){return o.proxyExtend.onError(e,!1,!1)}))}))},Oe.prototype.addBodyToOptions=function(e,t){return e=e||{},Object.assign(e,{body:t})},Oe.prototype.buildParams=function(e){return w.buildParams(e)},Oe.prototype.hasRequestInfo=function(e){return T.hasRequestInfo(e)||T.hasRequestInfoWithR(e)},Oe.prototype.unWrapResponseInfo=function(e){return A.unWrapResponseInfo(e)},Oe.decorators=[{type:i.Injectable}],Oe.ctorParameters=function(){return[{type:a.HttpClient},{type:xe}]},Oe);function Oe(e,t){this.httpClient=e,this.uriService=t,this.httpService=new V(this.httpClient)}var we=(Object.defineProperty(Me.prototype,"proxy",{get:function(){return this.repository.proxy?this.repository.proxy:this.createBefProxy()},enumerable:!0,configurable:!0}),Me.prototype.createBefProxy=function(){var e=this.repository.serverUri,t=new xe(e),r=new qe(this.httpClient,t);r.setBaseUri(this.baseUri);var n=new Se(this.repository);return r.setProxyExtend(n),r},Me.prototype.query=function(e){return this.proxy.query(e)},Me.prototype.extendQuery=function(e,t){return this.proxy.extendQuery(e,t)},Me.prototype.serviceRetrieve=function(e,t,r){return this.proxy.serviceRetrieve(e,t,r)},Me.prototype.queryChild=function(e){return this.proxy.queryChild(e)},Me.prototype.retrieve=function(e){return this.proxy.retrieve(e)},Me.prototype.extendRetrieve=function(e,t){return this.proxy.extendRetrieve(e,t)},Me.prototype.create=function(e,t){return this.proxy.create(e,t)},Me.prototype.createByPath=function(e,t){return this.proxy.createByPath(e,t)},Me.prototype.update=function(e,t){return this.proxy.update(e,t)},Me.prototype.save=function(e){return this.proxy.save(e)},Me.prototype["delete"]=function(e){return this.proxy["delete"](e)},Me.prototype.extendDelete=function(e,t){return this.proxy.extendDelete(e,t)},Me.prototype.deletByPath=function(e,t){return this.proxy.deletByPath(e,t)},Me.prototype.extendDeletByPath=function(e,t,r){return this.proxy.extendDeletByPath(e,t,r)},Me.prototype.batchDeleteByPath=function(e,t,r){return this.proxy.batchDeleteByPath(e,t,r)},Me.prototype.batchDelete=function(e){return this.proxy.batchDelete(e)},Me.prototype.extendBatchDelete=function(e,t){return this.proxy.extendBatchDelete(e,t)},Me.prototype.cancel=function(e){return this.proxy.cancel(e)},Me.prototype.request=function(e,t,r,n,o,i,a){return this.innerRequest(e,t,r,n,o,i,a,!1)},Me.prototype.invoke=function(e,t,r,n,o,i,a){if(n&&n.body&&n.body.RequestInfo)throw new Error("请使用requestInfo提交变更");return this.innerRequest(e,t,r,n,o,i,a,!0)},Me.prototype.innerRequest=function(t,r,e,n,o,i,a,s){var p=this;n=n||{};var u="BEFSessionID";void 0!==o&&"boolean"==typeof o||(o=!1),void 0!==i&&"boolean"==typeof i||(i=!1),void 0!==s&&"boolean"==typeof s||(s=!1);var c=s?this.existRequestInfo:this.hasRequestInfo;e&&(n.params=e);var h=c(n),l=q.convertToHeaders(n.headers),y=this.repository.appContext.getFormAppContext();return ve.getSessionId(y,this.sessionService).pipe(d.switchMap(function(e){return l=p.sessionService.extendRequestHeaders(l),n.headers=q.toJson(l),n.observe="response",p.httpService.request(r,t,n)}),d.tap(function(e){e.headers&&e.headers.has(u)&&p.sessionService.setBeSessionId(e.headers.get(u))}),d.map(function(e){return e.body}),d.map(function(e){var t=A.parseBackEndMessage(e);return fe.handleMessage(t,p.repository.getInjector()),p.handleReponseInfo(e,h,a)}),d.catchError(function(e){return p.handleErrors(e,o,i)}))},Me.prototype.handleReponseInfo=function(e,t,r){return t?(e&&e.innerDataChange&&!0!==r&&this.repository.handleDataChangeDetails(e.innerDataChange),e&&e.innerVariableChange&&this.repository.handleVariableChangeDetail(e.innerVariableChange),this.repository.clearAllEntityChanges(),this.repository.clearAllVariableChanges(),e):this.unWrapResponseInfo(e)},Me.prototype.handleErrors=function(e,t,r){if(this.clearLoading(),t)return b.throwError(e);var n=this.repository.appContext.getFormAppContext(),o=n.ApplicationId,i=window[o]||{},a=A.parseBackEndError(e),s=fe.getFormlessMessages(a),p=!!i.isExceptionHandlerExist,u=s&&0<s.length||!1,c=!(e&&e.error&&e.error.extensionMessage&&fe.isBackEndMessageHandlerExist(this.repository.getInjector())&&!u),h=!!this.eventBus&&p&&c;return fe.handleMessage(a,this.repository.getInjector(),{hasThrowError:h,isException:!0,eventBus:this.eventBus,error:e,formAppContext:n}),this.eventBus&&p&&!A.isReported401Error(e)?(c&&this.eventBus.post("Exception","","onException",e,n),r?b.of(null):b.EMPTY):b.throwError(e)},Me.prototype.clearLoading=function(){var e,t;if(!1!==(window.DEVKIT_LOADING_SERVICE&&window.DEVKIT_LOADING_SERVICE instanceof Array&&0<window.DEVKIT_LOADING_SERVICE.length||!1)){var r=window.DEVKIT_LOADING_SERVICE;try{for(var n=P(r),o=n.next();!o.done;o=n.next()){var i=o.value;"function"==typeof i.clearAll&&i.clearAll()}}catch(a){e={error:a}}finally{try{o&&!o.done&&(t=n["return"])&&t.call(n)}finally{if(e)throw e.error}}}},Me.prototype.unWrapResponseInfo=function(e){return A.unWrapResponseInfo(e)},Me.prototype.hasRequestInfo=function(e){return T.hasRequestInfoWithR(e)},Me.prototype.existRequestInfo=function(e){return T.hasRequestInfo(e)},Me.prototype.buildParams=function(e){return w.buildParams(e)},Me.prototype.buildBodyWithRequestInfo=function(e){return T.buildBodyWithRequestInfo(e,this.repository)},Me.prototype.buildRequestInfo=function(){return T.buildRequestInfo(this.repository)},Me.decorators=[{type:i.Injectable}],Me.ctorParameters=function(){return[{type:a.HttpClient},{type:String},{type:f},{type:me},{type:I.EventBus}]},Me);function Me(e,t,r,n,o){this.httpClient=e,this.httpService=new V(this.httpClient),this.baseUri=t;var i=n.getInjector();this.sessionService=new Q(e,t,r,i),this.repository=n,this.eventBus=o}var Te=(je.prototype.getData=function(e,t){var r=e.split(".")[0],n=e.split(".")[1];return t=t||{},!0===this.ifEnableExtendLoadMethod(e)?this.extendGetHelpData(n,r,t):this.getHelpData(n,r,t)},je.prototype.saveUserSettings=function(e){return this.befRepository.restService.invoke("/api/runtime/bcc/v1.0/datagrid/settings","POST",null,{body:e},!1)},je.prototype.getUserSettings=function(e){var t="/api/runtime/bcc/v1.0/datagrid/settings/"+e;return this.befRepository.restService.invoke(t,"GET",null,null,!1)},je.prototype.ifEnableExtendLoadMethod=function(e){if(this.context&&this.context.hasOwnProperty("enableExtendLoadMethod"))return this.context.enableExtendLoadMethod;var t=!1;if(this.frameContext){var r=e+"@"+this.frameContext.repository.apiUri;t=this.frameContext.getParam(r)}return t},je.prototype.getHelpData=function(e,t,r){var n=this,o=this.befRepository.restService.baseUri+"/elementhelps/"+e;return this.befRepository.updateDataAndVariableChanges().pipe(d.switchMap(function(){return n.befRepository.restService.invoke(o,"GET",{nodeCode:t,queryParam:JSON.stringify(r)},null,!1)}))},je.prototype.extendGetHelpData=function(e,t,r){var n=this.befRepository.restService.baseUri+"/extension/elementhelps",o={body:{labelId:e,nodeCode:t,queryParam:r,requestInfo:this.befRepository.restService.buildRequestInfo()}};return this.befRepository.restService.invoke(n,"PUT",null,o,!1,!0,!0).pipe(d.map(function(e){return e&&e.returnValue||null}))},je.prototype.convert2TreeDataWithPathCode=function(n,t,r){var o=this;void 0===t&&(t=1),void 0===r&&(r="01");var e=n.filter(function(e){return e.layer===t&&e.pathcode===r});if(1<t&&(e=n.filter(function(e){return e.layer===t&&e.pathcode.substr(0,2*(t-1))===r})),e.length){var i=e.map(function(e){return{data:e,children:[]}});return i.forEach(function(e){var t,r=o.convert2TreeDataWithPathCode(n,e.data.layer+1,e.data.pathcode);(t=e.children).push.apply(t,D(r))}),i}},je.decorators=[{type:i.Injectable}],je.ctorParameters=function(){return[{type:I.Repository},{type:I.FrameContext,decorators:[{type:i.Optional}]}]},je);function je(e,t){this.frameContext=t,this.befRepository=e}var Ae=(Ue.prototype.createSession=function(e){var t=this.sessionService.getUserSessionId();return t?this.befRepository.restService.invoke(e,"POST",null,{headers:new a.HttpHeaders({SessionId:t}),responseType:"text"},!1).pipe(d.switchMap(function(e){return b.of({status:!0,payload:e})})):b.of({status:!1,payload:"用户登录信息已过期,请重新登录"})},Ue.prototype.getData=function(e,t){var r=this,n={};t.condition&&(n=t.condition),"/"===e[e.length-1]&&(e=e.substr(0,e.length-1));var o=e+"/extension/query",i=e+"/service/createsession";if(n){var a=JSON.stringify(n);o=o+"?entityFilter="+a}return this.createSession(i).pipe(d.switchMap(function(e){if(e.status)return e.payload,r.befRepository.restService.invoke(o,"PUT",null,{},!1);throw new Error(e.payload)}),s.map(function(e){var t=e.returnValue,r={items:t.result};return t.pagination?Object.assign({},r,{total:t.pagination.totalCount,pageInfo:{pageSize:t.pagination.pageSize,pageIndex:t.pagination.pageIndex,enablePager:!0}}):r}))},Ue.decorators=[{type:i.Injectable}],Ue.ctorParameters=function(){return[{type:I.Repository},{type:f}]},Ue);function Ue(e,t){this.sessionService=t,this.befRepository=e}var Ve=(He.isExistUnsaveData=function(e){var t=!1;if(!e||!e.entityCollection)throw"Current Object is null or it's entityCollection is null.";var r=e.entityCollection.toArray();if(e.dataChangeHistory.isChanged())return!0;for(var n=0;n<r.length;n++)if(0<r[n].changes.length){t=!0;break}return t},He);function He(){}var ke=(Fe.prototype.toString=function(){return this.url},Fe);function Fe(e,t){void 0===t&&(t=null);var r=this;this.url=e,this.paths=t,this.paths&&Object.keys(t).forEach(function(e){-1!==r.url.indexOf("{"+e+"}")&&(r.url=r.url.replace("{"+e+"}",""+t[e]))})}var Ne=(_e.prototype.getData=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r="GET");var n=new a.HttpHeaders({"content-type":"application/json"});return"get"!==r.toLowerCase()?this.befRest.restService.invoke(e,r,null,{headers:n,body:t}):this.befRest.restService.invoke(e,r,t,{headers:n})},_e.decorators=[{type:i.Injectable}],_e.ctorParameters=function(){return[{type:I.Repository}]},_e);function _e(e){this.befRest=e}var Le=(Ke.prototype.getData=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r="GET");var n=new a.HttpHeaders({"content-type":"application/json"});return this.befRest.restService.invoke(e,r,t,{headers:n})},Ke.decorators=[{type:i.Injectable}],Ke.ctorParameters=function(){return[{type:I.Repository}]},Ke);function Ke(e){this.befRest=e}e.VERSION="ver.",e.ChangeDetailType=S,e.BE_SERVER_URI_TOKEN=p,e.BE_SESSION_HANDLING_STRATEGY_TOKEN=u,e.BefChangeBuilder=c,e.BefChangeHandler=l,e.BefSessionService=Q,e.BefRestService=we,e.BefProxy=qe,e.BefLookupRestService=Te,e.BefLookupDefaultService=Ae,e.BefRepository=me,e.FrameworkSessionService=f,e.NG_VARIABLE=Z,e.NgVariable=$,e.BefRepositoryUtil=Ve,e.BefDataPathUtil=he,e.UriService=xe,e.Uri=ke,e.DefaultComboHttpService=Ne,e.DefaultDynamiControlGroupHttpService=Le,e.ɵa=ee,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@ecp-caf/caf-common"),require("date-fns"),require("rxjs"),require("rxjs/operators"),require("rxjs/operators/map"),require("@angular/core"),require("@angular/common/http"),require("@farris/devkit")):"function"==typeof define&&define.amd?define("@farris/bef",["exports","@ecp-caf/caf-common","date-fns","rxjs","rxjs/operators","rxjs/operators/map","@angular/core","@angular/common/http","@farris/devkit"],t):t((e.farris=e.farris||{},e.farris.bef={}),e.cafCommon,e.dateFns,e.rxjs,e.rxjs.operators,e.rxjs["operators/map"],e.ng.core,e.ng.common.http,e.devkit)}(this,function(e,t,r,b,d,s,i,h,I){"use strict";var S=(n.Added="Added",n.Modify="Modify",n.Deleted="Deleted",n);function n(){}var y=new i.InjectionToken("@farris/be BE_SERVER_URL"),a=new i.InjectionToken("@farris/be BE_SESSION_HANDLING_STRATEGY_TOKEN"),C=(o.getPropInfo=function(e,t){var n,r,o,i=I.FieldMetadataUtil.getNgFields(e);Object.keys(i).forEach(function(e){e===t&&(n="NgField",r=null,o=i[e])});var a=I.FieldMetadataUtil.getNgObjects(e);Object.keys(a).forEach(function(e){e===t&&(n="NgObject",r=a[e].type,o=a[e])});var s=I.FieldMetadataUtil.getNgList(e);Object.keys(s).forEach(function(e){e===t&&(n="NgList",r=s[e].type,o=s[e])});var p=I.FieldMetadataUtil.getNgDynamic(e);return Object.keys(p).forEach(function(e){e===t&&(n="NgDynamic",r=p[e].type,o=p[e])}),{propType:n,propEntityType:r,propMetadata:o}},o.getPrimaryKey=function(e){var t=I.FieldMetadataUtil.getPrimaryFieldMetadata(e);return t?t.dataField:""},o.isObjectProp=function(e,t){var n=!1,r=I.FieldMetadataUtil.getNgObjects(e);return Object.keys(r).forEach(function(e){e===t&&(n=!0)}),n},o.isDynamicProp=function(e,t){var n=!1,r=I.FieldMetadataUtil.getNgDynamic(e);return Object.keys(r).forEach(function(e){e===t&&(n=!0)}),n},o.appendInitialData=function(e,t){var n=Object.assign({},t);delete n.id,delete n.parentID,e.initialData=n},o);function o(){}var p=(u.prototype.build=function(e){var t=this;return this.changeDetail={ChangeType:S.Modify,ChangeInfo:{DataId:""}},e.forEach(function(e){t.buildChangeDetail(e)}),this.changeDetail},u.prototype.buildChangeDetail=function(l){var d=l.path.concat();this.changeDetail.ChangeInfo.DataId||(this.changeDetail.ChangeInfo.DataId=d[0].split(":")[1]);for(var f=this.changeDetail,g=this.entityType,e=function(e){var t=v.getChangeInfo(f),n=d[e],r=C.getPropInfo(g,n),o=r.propType,i=r.propEntityType,a=r.propMetadata.dataField||n;if("NgField"===o){if(n===C.getPrimaryKey(g))return"continue";if(l.type!==I.ModifyType.ValueChange)throw Error("简单类型的属性上不支持ValueChange类型之外的变更");t[a]=l.value,f=null}else if("NgObject"===o)if(d[e+1].split(":")[1],d[e+1].split(":")[0]){var s=t[a],p=d.slice(0,e+1);s=(y=v.entityCollection.getEntityByPath(p))?y.toJSON(!0):{},t[a]=s,g=f=null}else c=(c=t[a])||{ChangeType:S.Modify,ChangeInfo:{}},t[a]=c,f=c,g=i;else if("NgList"===o){f.ChangeInfo[a]||(f.ChangeInfo[a]=[]);var u=f.ChangeInfo[a];if(e!==d.length-1){var c,h=d[e+1].split(":")[1];return(c=u.find(function(e){return e.ChangeInfo.DataId===h}))||(c=v.createEmptyChangeDetail(S.Modify,h),u.push(c)),f=c,g=i,"continue"}l.type===I.ModifyType.Add||l.type===I.ModifyType.Insert||(l.type,I.ModifyType.Remove),g=f=null}else if("NgDynamic"===o){p=d.slice(0,e+1);var y=v.entityCollection.getEntityByPath(p);t[a]={ChangeType:S.Modify,ChangeInfo:y?y.toJSON(!0):{}},g=f=null}},v=this,t=1;t<d.length&&f;t+=2)e(t)},u.prototype.getChangeInfo=function(e){return e.hasOwnProperty("ChangeInfo")?e.ChangeInfo:e},u.prototype.createEmptyChangeDetail=function(e,t){return{ChangeType:e,ChangeInfo:{DataId:t}}},u);function u(e,t){this.entityType=e,this.entityCollection=t}var c=(l.prototype.handle=function(e,t,n){this.handleChangeDetails(e,t,n)},l.prototype.handleChangeDetails=function(r,o,e){var i=this;e&&e.forEach(function(e){var t=e.ChangeInfo.dataId||e.ChangeInfo.DataId,n=i.getEntityById(o,t);n&&i.handleChangeDetail(r,n,e)})},l.prototype.handleChangeDetail=function(u,c,e){var h=this;if(e&&c&&e.ChangeType===S.Modify){var y=e.ChangeInfo;Object.keys(y).forEach(function(e){var t=C.getPropInfo(u,e),n=t.propType,r=t.propEntityType;if("NgField"===n)c[e]=y[e];else if("NgObject"===n){var o=c[e];if(o.primaryKey){var i=y[e];o.load(i)}else{var a=y[e];h.handleChangeDetail(r,o,a)}}else if("NgList"===n){var s=c[e],p=y[e];h.handleChangeDetails(r,s,p)}})}},l.prototype.getEntityById=function(e,t){return(e instanceof I.EntityCollection?e.getEntityById(t):e.get(t))||null},l);function l(){}var f=(g.prototype.getUserSessionId=function(){return this.sessionService.getUserSessionId()},g.prototype.getCurrentSessionId=function(e){var t;if(this.sessionService)if(e&&e.hasOwnProperty("tabId")){var n=e.tabId;t=this.sessionService.getCurrentSeesionId(n)}else t=this.sessionService.getCurrentSeesionId();return t=t||this.getUserSessionId()},g.decorators=[{type:i.Injectable}],g.ctorParameters=function(){return[{type:t.SessionService,decorators:[{type:i.Optional}]}]},g);function g(e){this.sessionService=e}var v=(m.prototype.getItem=function(e){return this.getAllBeSessions()[e]},m.prototype.setItem=function(e,t){var n=this.getAllBeSessions();n[e]=t,this.setAllBeSessions(n)},m.prototype.removeItem=function(e){var t=this.getAllBeSessions();t[e]&&delete t[e],this.setAllBeSessions(t)},m.prototype.clear=function(e,t){!0===this.isInFramework()?this.removeItemsByFrmSessionId(e):this.removeItem(t)},m.prototype.removeItemsByFrmSessionId=function(t){var n=this.getAllBeSessions();Object.keys(n).forEach(function(e){!0===e.startsWith(t)&&delete n[e]}),this.setAllBeSessions(n)},m.prototype.getAllBeSessions=function(){var e=window.sessionStorage.getItem(this.sessionStorageKey);return e?JSON.parse(e):{}},m.prototype.setAllBeSessions=function(e){var t=JSON.stringify(e);window.sessionStorage.setItem(this.sessionStorageKey,t)},m.prototype.isInFramework=function(){var e=window.location.hash;return!!e&&-1!==e.indexOf("tabId=")},m);function m(){this.sessionStorageKey="BE_SESSION_ID"}var E=function(e,t){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function x(e,t){function n(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var B=function(){return(B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function P(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 R(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||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(o)throw o.error}}return a}function D(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(R(arguments[t]));return e}var w=(q.convertToHeaders=function(t){if(1==(t=t||new h.HttpHeaders)instanceof h.HttpHeaders)return t;if(0<Object.keys(t).length){var n=new h.HttpHeaders;Object.keys(t).forEach(function(e){n=n.append(e,t[e])}),t=n}else t=new h.HttpHeaders;return t},q.appendSessionId=function(e,t){return e.append("SessionId",t)},q.appendCafRuntimeCommonVariable=function(e,t){return e.append("X-CAF-Runtime-CommonVariable",t)},q.appendCafRuntimeContext=function(e,t){return e.append("X-CAF-Runtime-Context",t)},q.appendContextType=function(e,t){return t=t||"application/json",e.append("Content-Type",t)},q.appendRequireMessage=function(e,t){return void 0===t&&(t=!0),e.append("Bff-Require-Message",t.toString())},q.appendFuncInstId=function(e,t){return e.append("Func-Inst-Id",t)},q.toJson=function(n){if(!(n instanceof h.HttpHeaders))return null;var r={};return n.keys().forEach(function(e){var t=n.getAll(e);1<t.length?r[e]=t:r[e]=t[0]||""}),r},q);function q(){}var O=(M.buildParams=function(e){var t=new h.HttpParams;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n].toString();t=t.append(n,r)}return t},M);function M(){}var T=(j.hasRequestInfo=function(e){if(!e||!e.body)return!1;var t=e.body;return!(!t.requestInfo||!t.requestInfo.dataChange)||!!t.dataChange},j.hasRequestInfoWithR=function(e){if(!e||!e.body)return!1;var t=e.body;return!(!t.RequestInfo||!t.RequestInfo.dataChange)||!!t.dataChange},j.buildRequestInfo=function(e){return{dataChange:e.entityManager.buildAllEntityChangeDetails(),variableChange:e.variableManager.buildChangeDetail()}},j.buildBodyWithRequestInfo=function(e,t){if(e.RequestInfo||e.requestInfo)return e;var n=this.buildRequestInfo(t);return Object.assign({},e,{requestInfo:n})},j);function j(){}var A=(U.unWrapResponseInfo=function(e){if(!e)return e;if(!1===e.hasOwnProperty("returnValue"))return e.hasOwnProperty("result")&&e.hasOwnProperty("pagination")?e.result:e;var t=e.returnValue;return t&&t.hasOwnProperty("result")&&t.hasOwnProperty("pagination")?t.result:e.returnValue},U.isReported401Error=function(e){return 401===e.status},U.parseBackEndMessage=function(e){return e&&e.message&&Array.isArray(e.message)&&0<e.message.length?e.message:null},U.parseBackEndError=function(e){var t=e&&e.error;return t&&t.hasOwnProperty("extensionMessage")&&t.extensionMessage&&t.extensionMessage.hasOwnProperty("UIMsg")&&t.extensionMessage.UIMsg&&0<t.extensionMessage.UIMsg.length?JSON.parse(t.extensionMessage.UIMsg):null},U);function U(){}var V=(H.prototype.getService=function(){for(var e=window;!e.gspframeworkService&&e!==window.top&&this.isSameOrigin(e);)e=window.parent;return e.gspframeworkService&&e.gspframeworkService.rtf||{}},H.prototype.isSameOrigin=function(e){var t=window.location.host;try{if(e&&e.location&&"undefined"!=typeof e.location.host)return e.location.host===t}catch(n){return!1}return!1},Object.defineProperty(H.prototype,"params",{get:function(){return this.rtf&&this.rtf.hasOwnProperty("session")&&"function"==typeof this.rtf.session.getCommonVariable?this.rtf.session.getCommonVariable():null},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"httpService",{get:function(){return this.rtf&&this.rtf.hasOwnProperty("http")&&"function"==typeof this.rtf.http.request?this.rtf.http:null},enumerable:!0,configurable:!0}),H.prototype.request=function(e,t,n){return void 0===n&&(n={}),this.defaultHttpClient.request(e,t,n)},H.decorators=[{type:i.Injectable}],H.ctorParameters=function(){return[{type:h.HttpClient}]},H);function H(e){this.defaultHttpClient=e,this.httpClient=e,this.rtf=this.getService()}var k=(F.prototype.getFrmSessionId=function(e){return this.frmSessionService.getCurrentSessionId(e)},Object.defineProperty(F.prototype,"frmSessionId",{get:function(){return this.frmSessionService.getCurrentSessionId()},enumerable:!0,configurable:!0}),F.prototype.getFrameworkSessionId=function(e){return this.getFrmSessionId(e)},F.prototype.getSessionIdFromStorage=function(e){var t=this.getSessionStorageKey(e);return this.storageStrategy.getItem(t)},F);function F(e,t){this.storageStrategy=e,this.frmSessionService=t}var N,_=(x(L,N=k),L.prototype.getSessionId=function(){var e=this.getSessionIdFromStorage();return e?b.of(e):this.createSession()},L.prototype.setSessionId=function(e){var t=this.getSessionStorageKey();this.storageStrategy.setItem(t,e)},L.prototype.clearSessionId=function(){var e=this.getSessionStorageKey();this.storageStrategy.clear(this.frmSessionId,e)},L.prototype.extendRequestHeaders=function(e,t){var n=this.getFrameworkSessionId(t),r=this.getSessionIdFromStorage(t);return e=w.appendCafRuntimeCommonVariable(e,n),r&&(e=w.appendCafRuntimeContext(e,r),e=w.appendSessionId(e,r)),e=w.appendFuncInstId(e,this.beSessionUri)},L.prototype.handleReponseHeaders=function(e){console.log(e)},L.prototype.createSession=function(){var t=this,e={responseType:"text"};return this.frmSessionId&&(this.injector.get(I.AppContext,null),e.headers=new h.HttpHeaders({SessionId:this.frmSessionId}),e.headers=e.headers.append("X-CAF-Runtime-CommonVariable",this.frmSessionId),e.headers=e.headers.append("Func-Inst-Id",this.beSessionUri),e.headers=w.toJson(e.headers)),this.httpService.request("POST",this.beSessionUri,e).pipe(d.tap(function(e){t.setSessionId(e)}))},L.prototype.extendHttpHeader=function(){},L.prototype.getSessionStorageKey=function(e){return(e?this.getFrameworkSessionId(e):this.frmSessionId)+"_"+this.beSessionUri},L);function L(e,t,n,r,o){var i=N.call(this,e,t)||this;return i.beSessionUri=r,i.httpClient=n,i.httpService=new V(i.httpClient),i.injector=o,i}var K,G=(x(J,K=k),J.prototype.getSessionId=function(){var e=this.getSessionStorageKey(),t=this.storageStrategy.getItem(e);return b.of(t)},J.prototype.setSessionId=function(e){var t=this.getSessionStorageKey();this.storageStrategy.setItem(t,e)},J.prototype.clearSessionId=function(){var e=this.getSessionStorageKey();this.storageStrategy.removeItem(e)},J.prototype.extendRequestHeaders=function(e,t){var n=this.getFrameworkSessionId(t),r=this.getSessionIdFromStorage(t),o=this.injector.get(I.AppContext,null);if(o){var i=o.Token;e=w.appendFuncInstId(e,i)}return e=w.appendCafRuntimeCommonVariable(e,n),r&&(e=w.appendCafRuntimeContext(e,r)),e},J.prototype.handleReponseHeaders=function(e){console.log(e)},J.prototype.getSessionStorageKey=function(e){return(e?this.getFrameworkSessionId(e):this.frmSessionId)+"_"+this.beSessionUri},J);function J(e,t,n,r){var o=K.call(this,e,t)||this;return o.beSessionUri=n,o.injector=r,o}var z=(W.prototype.create=function(e,t,n,r,o){var i=this.createStorageStrategy(),a=this.createBeSessionUri(n);return"UnifiedSession"===e?new G(i,t,a,o):new _(i,t,r,a,o)},W.prototype.createStorageStrategy=function(){return new v},W.prototype.createBeSessionUri=function(e){return e+"/service/createsession"},W.decorators=[{type:i.Injectable}],W);function W(){}var Q=(Object.defineProperty(Y.prototype,"token",{get:function(){return this.handlingStrategy.getFrameworkSessionId()},enumerable:!0,configurable:!0}),Y.prototype.getBeSessionId=function(){return this.handlingStrategy.getSessionId()},Y.prototype.setBeSessionId=function(e){this.handlingStrategy.setSessionId(e),this.setSessionId(e)},Y.prototype.clearBeSessionId=function(){this.handlingStrategy.clearSessionId()},Y.prototype.extendRequestHeaders=function(e,t){return this.handlingStrategy.extendRequestHeaders(e,t)},Y.prototype.handleResponseHeaders=function(e){return this.handlingStrategy.handleReponseHeaders(e)},Y.prototype.createBeSession=function(){return this.handlingStrategy.createSession()},Y.prototype.setSessionId=function(e){var t=this.injector.get(I.AppContext,null,i.InjectFlags.Optional);t&&e&&t.params.set("sessionId",e)},Y.prototype.createHandlingStrategy=function(e,t,n,r){var o;return o=(o=e?e.get(a,null,i.InjectFlags.Optional):"SeparatedSession")||"SeparatedSession",(new z).create(o,n,r,t,e)},Y.decorators=[{type:i.Injectable}],Y.ctorParameters=function(){return[{type:h.HttpClient},{type:String},{type:f},{type:i.Injector}]},Y);function Y(e,t,n,r){this.beBaseUri=t,this.injector=r,this.handlingStrategy=this.createHandlingStrategy(r,e,n,t)}var X,Z="@farris/bef NG_VARIABLE",$=I.makePropDecorator(Z,function(e){return e}),ee=(x(te,X=I.Repository),Object.defineProperty(te.prototype,"restService",{get:function(){return this.dataService.restService},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"changeBuilder",{get:function(){return this.entityManager.changeBuilder},enumerable:!0,configurable:!0}),Object.defineProperty(te.prototype,"changeHandler",{get:function(){return this.entityManager.changeHandler},enumerable:!0,configurable:!0}),te.prototype.getList=function(){return this.dataService.getList(null,null,null,null)},te.prototype.getById=function(e){return this.dataService.getById(e)},te.prototype.updateById=function(e){return this.dataService.updateById(e)},te.prototype.create=function(e){return this.dataService.create(e)},te.prototype.append=function(e){return this.dataService.append(e)},te.prototype.appendByPath=function(e){return this.dataService.appendByPath(e)},te.prototype.removeById=function(e,t){return this.dataService.removeById(e,t)},te.prototype.removeByIds=function(e,t){return this.dataService.removeByIds(e,t)},te.prototype.removeByPath=function(e,t){return this.dataService.removeByPath(e,t)},te.prototype.updateChangesById=function(e){return this.dataService.updateChangesById(e)},te.prototype.updateChangesByPath=function(e,t){throw new Error("Not Implement")},te.prototype.updateAllChanges=function(){return this.dataService.updateAllChanges()},te.prototype.applyChanges=function(){return this.dataService.applyChanges()},te.prototype.updateDataAndVariableChanges=function(){var e={FilterConditions:[],SortConditions:[],IsUsePagination:!0,Pagination:{PageIndex:1,PageSize:1,PageCount:0,TotalCount:0}},t=JSON.stringify(e),n=this.restService.buildRequestInfo();if(this.isEmptyRequestInfo(n))return b.of(null);var r=this.restService.baseUri+"/extension/query?entityFilter="+t,o={body:n};return this.restService.invoke(r,"PUT",null,o,!1,!0,!0)},te.prototype.applyChangesById=function(e){return this.dataService.applyChangesById(e)},te.prototype.cancelChanges=function(e){return this.dataService.cancelChanges(e)},te.prototype.clearAllEntityChanges=function(){return this.entityManager.clearAllEntityChanges()},te.prototype.getDataChangeDetails=function(){return this.entityManager.buildAllEntityChangeDetails()},te.prototype.handleDataChangeDetails=function(e){return this.entityManager.handleDataChangeDetails(e)},te.prototype.getVariableChangeDetail=function(){return this.variableManager.buildChangeDetail()},te.prototype.handleVariableChangeDetail=function(e){this.variableManager.handleChangeDetail(e)},te.prototype.isEmptyRequestInfo=function(e){return!e||(!e.dataChange||e.dataChange.length<1)&&(!e.variableChange||Object.keys(e.variableChange).length<1)},te.decorators=[{type:i.Injectable}],te.ctorParameters=function(){return[]},te);function te(){return X.call(this)||this}var ne,re=(x(oe,ne=I.EntityManager),oe.prototype.buildAllEntityChangeDetails=function(){var n=this,r=[];return this.entityCollection.getAllEntities().forEach(function(e){if(0!==e.changes.length){var t=n.changeBuilder.build(e.changes);t&&t.ChangeInfo&&t.ChangeInfo.DataId&&r.push(t)}}),r},oe.prototype.buildEntityChangeDetailById=function(e){var t=this.entityCollection.getEntityById(e);return 0===t.changes.length?null:this.changeBuilder.build(t.changes)},oe.prototype.handleDataChangeDetails=function(e){this.changeHandler.handle(this.entityType,this.entityCollection,e)},oe.prototype.reset=function(){this.entityCollection.clear()},oe);function oe(e){var t=ne.call(this,e)||this;return t.changeBuilder=new p(t.entityCollection.entityType,t.entityCollection),t.changeHandler=new c,t}var ie=(ae.createEmpty=function(e,t){var n={ChangeType:e,ChangeInfo:{}};return t&&(n.ChangeInfo.DataId=t),n},ae.getChangeInfo=function(e){return!0===this.isChangeDetail(e)?e.ChangeInfo:e},ae.isChangeDetail=function(e){var t=Object.keys(e);return 2===t.length&&-1<t.indexOf("ChangeType")&&-1<t.indexOf("ChangeInfo")},ae);function ae(){}var se=(pe.prototype.handleChangeDetail=function(e){var o=this,i=e.ChangeInfo;Object.keys(i).forEach(function(e){var t=o.ngVariableMap.get(e);if(t){var n=t.mapping,r=i[e];o.innerValueMap.get(e)!==r&&(o.setValueToUIState(n,r),o.innerValueMap.set(e,r))}})},pe.prototype.buildChangeDetail=function(){var i=this,a=ie.createEmpty(S.Modify);return this.ngVariableMap.forEach(function(e,t){var n=e.mapping,r=i.getValueFromUIState(n),o=i.innerValueMap.get(t);!1===i.isValueEqual(r,o)&&i.appendToChangeInfo(a,t,r)}),0===Object.keys(a.ChangeInfo).length?null:a},pe.prototype.reset=function(){this.innerValueMap.clear()},pe.prototype.clearChanges=function(){var i=this;this.ngVariableMap.forEach(function(e,t){var n=e.mapping,r=i.getValueFromUIState(n),o=i.innerValueMap.get(t);!1===i.isValueEqual(r,o)&&i.innerValueMap.set(t,r)})},pe.prototype.appendToChangeInfo=function(e,t,n){if(!0===this.isUdtVariable(n)){var r=ie.createEmpty(S.Modify);r.ChangeInfo=n,e.ChangeInfo[t]=r}else e.ChangeInfo[t]=n},pe.prototype.getValueFromUIState=function(e){var t=this.getRootUIState(),n=e.split(".").reduce(function(e,t){return e?e[t]:null},t);return n instanceof Date?r.format(n,"yyyy-MM-dd HH:mm:ss"):n},pe.prototype.getRootUIState=function(){var e=this.appContext.frameContextManager.getRootFrameContext();if(this.injector){var t=this.injector.get(I.FrameContext,null);t&&(e=t.getVirtualRootFrameContext()||e)}if(e)return e.uiState},pe.prototype.isValueEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},pe.prototype.isUdtVariable=function(e){return e&&e.constructor&&"[object Object]"===e.toString()&&e.constructor.prototype.hasOwnProperty("isPrototypeOf")},pe.prototype.setValueToUIState=function(e,t){this.getRootUIState()[e]=t},pe.ctorParameters=function(){return[{type:I.AppContext},{type:undefined},{type:i.Injector,decorators:[{type:i.Optional}]}]},pe);function pe(e,t,n){var r=this;this.appContext=e,this.ngVariables=t,this.injector=n,this.ngVariableMap=new Map,this.innerValueMap=new Map,Object.keys(t).forEach(function(e){r.ngVariableMap.set(e,t[e])})}var ue=(ce.buildRequestInfo=function(e){return{dataChange:e.entityManager.buildAllEntityChangeDetails(),variableChange:e.variableManager.buildChangeDetail()}},ce);function ce(){}var he=(ye.convertToPathArray=function(e,t){var r=this,n=I.BindingPathConverter.toBindingPathArray(e),o=[],i=t.list.currentItem;return o.push(i.primaryKeyValue),n.forEach(function(e){var t=I.PropertyUtil.getPropertyByName(i.properties,e);if(t.type!==I.BindingPropertyType.List)throw new Error(t.name+"不是子表对应的属性");var n=i[e];i=n.currentItem,o.push(r.trimTrailingS(e)),o.push(i.primaryKeyValue)}),o},ye.convertToPathUrl=function(e,t){var n=this.convertToPathArray(e,t);return n.pop(),"/"+n.join("/")},ye.convertToObjectCodes=function(e,t){for(var n=this.convertToPathArray(e,t),r=n.length,o=[],i=1;i<r;i+=2)o.push(n[i]);return o},ye.convertToDataIdsForUpdate=function(e,t){for(var n=this.convertToPathArray(e,t),r=n.length,o=[],i=0;i<r;i+=2)o.push(n[i]);return o},ye.convertToDataIdsForAdd=function(e,t){var n=this.convertToDataIdsForUpdate(e,t);return n.pop(),n},ye.convertPathToUrl=function(e){for(var t=e.split("/"),n=t.length-1;0<n;n--)t[n]&&t[n].endsWith("s")&&(t[n]=t[n].substr(0,t[n].length-1).toLowerCase());return t.join("/")},ye.trimTrailingS=function(e){return e.substr(0,e.length-1)},ye.convertPathsToNodeCodes=function(e){var t=[];return!e||e.length<1||e.filter(function(e){return!!e&&-1===e.indexOf(":")}).forEach(function(e){t.push(e)}),t},ye.convertPathsToIds=function(e){var t=[];return!e||e.length<1||e.filter(function(e){return!!e&&-1!==e.indexOf(":")}).forEach(function(e){t.push(e.split(":")[1])}),t},ye);function ye(){}var le=(Object.defineProperty(de.prototype,"restProxy",{get:function(){return this.repository.restService.proxy},enumerable:!0,configurable:!0}),de.prototype.getList=function(e,t,n,r){var p=this;0!==n&&(n=n||this.repository.entityCollection.pageSize,r=r||this.repository.entityCollection.pageIndex);var o=this.buildEntityFilter(e,t,n,r),i=this.restService.buildRequestInfo();return this.restProxy.extendQuery(o,i).pipe(d.map(function(e){var t=e.returnValue,n=t.result,r=[];n.forEach(function(e){var t=p.repository.buildEntity(e);C.appendInitialData(t,e),r.push(t)});var o=t.pagination;if(o&&0<Object.keys(o).length){var i=o.pageSize,a=o.pageIndex,s=o.totalCount;p.repository.entityCollection.updatePaginationInfoByPath("/",{pageIndex:a,pageSize:i,totalCount:s})}else p.repository.entityCollection.updatePaginationInfoByPath("/",{pageIndex:1,pageSize:0,totalCount:r.length});return p.repository.entityCollection.loadEntities(r),r}))},de.prototype.filter=function(e,t,n,r){var p=this;0!==n&&(n=n||this.repository.entityCollection.pageSize,r=r||this.repository.entityCollection.pageIndex);var o=this.buildEntityFilter(e,t,n,r),i=this.restService.buildRequestInfo();return this.restProxy.filter(o,i).pipe(d.map(function(e){var t=e.returnValue,n=t.result,r=[];n.forEach(function(e){var t=p.repository.buildEntity(e);C.appendInitialData(t,e),r.push(t)});var o=t.pagination;if(o&&0<Object.keys(o).length){var i=o.pageSize,a=o.pageIndex,s=o.totalCount;p.repository.entityCollection.updatePaginationInfoByPath("/",{pageIndex:a,pageSize:i,totalCount:s})}else p.repository.entityCollection.updatePaginationInfoByPath("/",{pageIndex:1,pageSize:0,totalCount:r.length});return p.repository.entityCollection.loadEntities(r),r}))},de.prototype.buildEntityFilter=function(e,t,n,r){return e||t||n||r?(e&&0<e.length&&(e[e.length-1].Relation=0),{FilterConditions:e,SortConditions:t,IsUsePagination:0!==n,Pagination:{PageIndex:r,PageSize:n,PageCount:0,TotalCount:0}}):null},de.prototype.getById=function(e){var r=this,t=this.restService.buildRequestInfo();return this.restService.extendRetrieve(e,t).pipe(d.map(function(e){var t=e.returnValue,n=r.repository.buildEntity(t);return r.repository.entityCollection.loadEntities([n]),n}))},de.prototype.getPagedById=function(o){var i=this,e=this.restService.buildRequestInfo(),t=this.repository.entityCollection.getPaginationConfigByPath("/"),n=this.buildChildPagination(t),r=this.buildRetrieveParam(n);return this.restService.serviceRetrieve(o,r,e).pipe(d.map(function(e){var t=e.dataResult,n=e.paginations;i.updatePagination(n);var r=i.repository.entityCollection.getEntityById(o);return i.reloadEntityData(r,t),r}))},de.prototype.queryChild=function(s,e,t,n,r){var p=this,o=this.restService.buildRequestInfo(),u=he.convertPathsToNodeCodes(s),i=u.map(function(e){return e.substring(0,e.length-1)}),a=he.convertPathsToIds(s),c=B({nodeCodes:i,ids:a,pagination:{pageIndex:e,pageSize:t}},o),h=u[u.length-1];return h=h.substring(0,h.length-1),this.restService.queryChild(c).pipe(d.map(function(e){console.log(e);var t=e.returnValue;if(!t)return null;var n=t.result,r=void 0===n?[]:n,o=t.pagination,i=void 0===o?{}:o,a=[];r.forEach(function(e){var t=new(I.FieldMetadataUtil.getNgList(p.repository.entityType)[u[u.length-1]].type)(e);C.appendInitialData(t,e),a.push(t)}),u=u.map(function(e){return e.charAt(0).toLocaleLowerCase()+e.substr(1)}),p.repository.entityCollection.resetEntities(s,a),p.repository.entityCollection.setPaginationConfigByPath("/"+h,i)}))},de.prototype.buildChildPagination=function(n){var r={};return Object.keys(n).forEach(function(e){var t=n[e];"object"==typeof t&&(r[e]=t)}),r},de.prototype.updatePagination=function(t){var n=this;t&&Object.keys(t).forEach(function(e){n.repository.entityCollection.setPaginationConfigByPath("/"+e,t[e])})},de.prototype.buildRetrieveParam=function(r){var e={};if(r&&0<Object.keys(r).length){var o=[];Object.keys(r).forEach(function(e){var t=r[e],n={};n[e]={pagination:{pageSize:t.pageSize||0,pageIndex:1}},o.push(n)}),e.filters=o}return e},de.prototype.editById=function(r){var o=this;if(!this.repository.entityCollection.getEntityById(r))return b.of(null);var e=ue.buildRequestInfo(this.repository);return this.restProxy.edit(r,e).pipe(d.map(function(e){var t=e.returnValue.data,n=o.repository.entityCollection.getEntityById(r);return n&&t&&o.reloadEntityData(n,t),n}))},de.prototype.updateById=function(r){var o=this;if(!this.repository.entityCollection.getEntityById(r))return b.of(null);var e=this.restService.buildRequestInfo();return this.restService.extendRetrieve(r,e).pipe(d.map(function(e){var t=e.returnValue,n=o.repository.entityCollection.getEntityById(r);return o.reloadEntityData(n,t),n}))},de.prototype.reloadEntityData=function(e,t){e&&(this.appContext.changeDetectionController.detach(),this.repository.entityCollection.updateEntity(e,t),e.changes.splice(0,e.changes.length),this.appContext.changeDetectionController.reattach())},de.prototype.create=function(e){var r=this,t=this.restService.buildRequestInfo();return this.restService.create(e,t).pipe(d.map(function(e){var t=e.returnValue,n=r.repository.buildEntity(t);return C.appendInitialData(n,t),r.repository.entityCollection.loadEntities([n]),n}))},de.prototype.append=function(e){var r=this,t=this.restService.buildRequestInfo();return this.restService.create(e,t).pipe(d.map(function(e){var t=e.returnValue,n=r.repository.buildEntity(t);return r.repository.entityCollection.addEntity(n),n}))},de.prototype.insert=function(r,e){var o=this,t=this.buildRequestInfo();return this.restProxy.create(e,t).pipe(d.map(function(e){var t=e.returnValue,n=o.repository.buildEntity(t);return o.repository.entityCollection.insertEntity(n,r),n}))},de.prototype.appendByPath=function(n){var r=this,e=this.restService.buildRequestInfo();return this.restService.createByPath(n,e).pipe(d.map(function(e){var t=e.returnValue;return r.repository.entityManager.appendEntityByPath(n,t,t)}))},de.prototype.insertByPath=function(n,r){var o=this,e=this.buildRequestInfo();return this.restProxy.createByPath(n,e).pipe(d.map(function(e){var t=e.returnValue;return o.repository.entityManager.insertEntityByPath(n,t,t,r)}))},de.prototype.removeById=function(e,t){var n=this;t=t===undefined||t;var r=ue.buildRequestInfo(this.repository);return t?this.restProxy.deleteAndSave(e,r).pipe(d.switchMap(function(){return n.repository.entityCollection.removeEntityById(e),b.of(!0)})):this.restService.extendDelete(e,r).pipe(d.switchMap(function(){return n.repository.entityCollection.removeEntityById(e),n.repository.dataChangeHistory.addChange({dataId:e,changeType:I.DataChangeType.Delete}),b.of(!0)}))},de.prototype.removeAndSaveById=function(e){var t=this,n=ue.buildRequestInfo(this.repository);return this.restProxy.deleteAndSave(e,n).pipe(d.switchMap(function(){return t.repository.entityCollection.removeEntityById(e),b.of(!0)}))},de.prototype.removeByIds=function(n,e){var r=this;e=e===undefined||e;var t=this.restService.buildRequestInfo();return this.restService.extendBatchDelete(n,t).pipe(d.switchMap(function(){if(e)return r.applyChangesByIdArray(n).pipe(d.tap(function(e){e&&r.repository.entityCollection.removeEntities(function(e){return r.checkEntityValueExists(e,n)})}));if(r.repository.entityCollection.removeEntities(function(e){return r.checkEntityValueExists(e,n)}),n&&0<n.length){var t=[];n.forEach(function(e){t.push({dataId:e,changeType:I.DataChangeType.Delete})}),r.repository.dataChangeHistory.addChanges(t)}return b.of(!0)}))},de.prototype.checkEntityValueExists=function(e,t){for(var n=!1,r=0;r<t.length;r++)if(e.primaryValue===t[r]){n=!0;break}return n},de.prototype.removeByPath=function(e,t){var n=this,r=this.restService.buildRequestInfo();return this.restService.extendDeletByPath(e,t,r).pipe(d.map(function(){return n.repository.entityManager.removeEntityByPath(e,t),n.repository.dataChangeHistory.addChange({fpath:e,dataId:t,changeType:I.DataChangeType.Delete}),!0}))},de.prototype.batchRemoveByPath=function(t,n){var r=this,e=this.restService.buildRequestInfo();return this.restService.batchDeleteByPath(t,n,e).pipe(d.map(function(){var e=n.split(",");return 0<e.length&&e.forEach(function(e){r.repository.entityManager.removeEntityByPath(t,e),r.repository.dataChangeHistory.addChange({fPath:t,dataId:e,changeType:I.DataChangeType.Delete})}),!0}))},de.prototype.updateChangesById=function(e){var t=this,n=this.repository.entityCollection.getEntityById(e);if(!n.changes)return b.of(!0);if(0===n.changes.length)return b.of(!0);var r=this.repository.entityManager.buildEntityChangeDetailById(e),o=this.restService.buildRequestInfo();return this.restService.update(r,o).pipe(d.tap(function(){t.repository.entityManager.clearEntityChangesById(e)}),d.map(function(){return!0}))},de.prototype.updateChangesByPath=function(e,t){throw new Error("Not Implement")},de.prototype.updateAllChanges=function(){var n=this,r=[],e=this.repository.entityCollection.toArray();return 0===e.length?b.of(!0):(e.forEach(function(e){var t=n.updateChangesById(e.primaryValue);r.push(t)}),b.zip.apply(void 0,D(r)).pipe(d.map(function(){return!0})))},de.prototype.applyChanges=function(){var e=this,t=this.restService.buildRequestInfo();return this.restService.save(t).pipe(d.tap(function(){e.repository.entityManager.clearAllEntityChanges(),e.repository.clearAllVariableChanges(),e.repository.dataChangeHistory.clear()}),d.map(function(){return!0}))},de.prototype.applyChangesByIdArray=function(e){var t=this,n=this.restService.buildRequestInfo();return this.restService.save(n).pipe(d.tap(function(){t.repository.entityManager.clearEntityChangesByArray(e),t.repository.dataChangeHistory.clearByIds(e)}),d.map(function(){return!0}))},de.prototype.applyChangesById=function(e){var t=this,n=this.restService.buildRequestInfo();return this.restService.save(n).pipe(d.tap(function(){t.repository.entityManager.clearEntityChangesById(e),t.repository.dataChangeHistory.clearByIds([e])}),d.map(function(){return!0}))},de.prototype.cancelChanges=function(e){var t=this;return this.restService.cancel(e).pipe(d.tap(function(){t.repository.entityManager.clearAllEntityChanges(),t.repository.dataChangeHistory.clear()}),d.map(function(){return!0}))},de.prototype.batchAppendByPath=function(o,e){var i=this,t=this.buildRequestInfo();return this.restProxy.batchAppendByPath(o,e,t).pipe(d.map(function(e){var t=e.returnValue,n=i.repository.entityManager.createEntitiesByPath(o,t),r=o.split("/").filter(function(e){return e});return i.repository.entityManager.appendEntitiesByPath(r,n),n}))},de.prototype.batchAppend=function(e){var r=this,t=this.buildRequestInfo();return this.restProxy.batchAppend(e,t).pipe(d.map(function(e){var t=e.returnValue,n=r.repository.buildEntities(t);return r.repository.entityCollection.addEntities(n),n}))},de.prototype.buildRequestInfo=function(){return{dataChange:this.repository.entityManager.buildAllEntityChangeDetails(),variableChange:this.repository.variableManager.buildChangeDetail()}},de);function de(e,t){this.injector=e,this.repository=t;var n=e.get(f),r=e.get(h.HttpClient),o=e.get(y)+"/"+this.repository.apiUri,i=e.get(I.EventBus);this.restService=new Oe(r,o,n,this.repository,i),this.appContext=e.get(I.AppContext)}var fe=(ge.handleMessage=function(e,t,n){var r={ns:t.get(I.NAMESPACE,null),appContext:t.get(I.AppContext,null)},o=this.buildBackEndMessages(e),i=new I.BackEndMessage.Message(o,r),a=t.get(I.BACK_END_MESSAGE_HANDLER_TOKEN,null);a&&a.handle(i,n)},ge.isBackEndMessageHandlerExist=function(e){return!!e.get(I.BACK_END_MESSAGE_HANDLER_TOKEN,null)},ge.getFormlessMessages=function(e){return(this.buildBackEndMessages(e)||[]).filter(function(e){return!e.location||!e.location.columns||e.location.columns.length<1||!e.location.nodeCode})},ge.buildBackEndMessages=function(e){if(!e||e.length<1||!Array.isArray(e))return null;var n=[];return e.forEach(function(e){var t={level:e.level,message:e.message};e.hasOwnProperty("location")&&e.location&&(t.location={nodeCode:e.location.nodeCode,rows:e.location.dataIds,columns:e.location.columnNames}),n.push(t)}),n},ge);function ge(){}var ve=(Ie.getSessionId=function(e,t){var n=e.ApplicationId+"_"+t.beBaseUri;return this.createSessionHistory.includes(n)?b.of(null):(this.createSessionHistory.push(n),t.getBeSessionId())},Ie.createSessionHistory=[],Ie.decorators=[{type:i.Injectable}],Ie);function Ie(){}var Se=(be.prototype.onResponse=function(e,t){e&&e.innerDataChange&&!0!==t&&this.context.handleDataChangeDetails(e.innerDataChange),e&&e.innerVariableChange&&this.context.handleVariableChangeDetail(e.innerVariableChange);var n=A.parseBackEndMessage(e);return fe.handleMessage(n,this.context.getInjector()),this.context.clearAllEntityChanges(),this.context.clearAllVariableChanges(),e&&e.hasOwnProperty("returnValue")?e.returnValue:e},be.prototype.onError=function(e,t,n){var r,o,i=this.context.appContext.getFormAppContext(),a=i.ApplicationId,s=window.DEVKIT_LOADING_SERVICE,p=A.parseBackEndError(e);if(fe.handleMessage(p,this.context.getInjector()),s&&s instanceof Array&&0<s.length)try{for(var u=P(s),c=u.next();!c.done;c=u.next()){var h=c.value;"function"==typeof h.clearAll&&h.clearAll()}}catch(S){r={error:S}}finally{try{c&&!c.done&&(o=u["return"])&&o.call(u)}finally{if(r)throw r.error}}if(t)return b.throwError(e);var y=this.context.restService.eventBus,l=!!(window[a]||{}).isExceptionHandlerExist,d=A.parseBackEndError(e),f=fe.getFormlessMessages(d),g=f&&0<f.length||!1,v=!(e&&e.error&&e.error.extensionMessage&&fe.isBackEndMessageHandlerExist(this.context.getInjector())&&!g),I=!!y&&l&&v;return fe.handleMessage(d,this.context.getInjector(),{hasThrowError:I,isException:!0,eventBus:y,error:e,formAppContext:i}),y&&l&&!A.isReported401Error(e)?(v&&y.post("Exception","","onException",e,i),n?b.of(null):b.EMPTY):b.throwError(e)},be.prototype.extendHeaders=function(t,n){var r=this,e=this.context.appContext.getFormAppContext();return ve.getSessionId(e,this.context.restService.sessionService).pipe(d.switchMap(function(e){return t=r.context.restService.sessionService.extendRequestHeaders(t,n),b.of(t)}))},be.prototype.extendUrl=function(e,t){if(!t)return e;for(var n in t)if(t.hasOwnProperty(n)){var r=JSON.stringify(t[n]);e=-1===e.indexOf("?")?e+"?"+n+"="+r:e+"&"+n+"="+r}return e},be.prototype.extendBody=function(t){var n=this;return!t||"object"!=typeof t||Object.keys(t).length<1||(Object.keys(t).forEach(function(e){"requestInfo"===e&&(t.requestInfo=n.context.restService.buildRequestInfo())}),1===Object.keys(t).length&&(t=Object.values(t)[0])),t},be.prototype.parseHeaders=function(e){var t="BEFSessionID";e.headers&&e.headers.has(t)&&this.context.restService.sessionService.setBeSessionId(e.headers.get(t))},be);function be(e){this.context=e}var Ce,me=(x(Ee,Ce=ee),Object.defineProperty(Ee.prototype,"proxy",{get:function(){return this.befProxy},set:function(e){this.befProxy=e,this.befProxy.setProxyExtend(new Se(this))},enumerable:!0,configurable:!0}),Ee.prototype.getEntities=function(e,t,n,r){return this.dataService.getList(e,t,n,r)},Ee.prototype.filter=function(e,t,n,r){return void 0===e&&(e=[]),void 0===t&&(t=[]),this.dataService.filter(e,t,n,r)},Ee.prototype.getPagedById=function(e){return this.dataService.getPagedById(e)},Ee.prototype.queryChild=function(e,t,n,r,o){return this.dataService.queryChild(e,t,n,r,o)},Ee.prototype.getEntityById=function(e){return this.dataService.getById(e)},Ee.prototype.updateEntityById=function(e){return this.dataService.updateById(e)},Ee.prototype.editEntityById=function(e){return this.dataService.editById(e)},Ee.prototype.createEntity=function(e){return this.dataService.create(e)},Ee.prototype.appendEntity=function(e){return this.dataService.append(e)},Ee.prototype.insert=function(e,t){return this.dataService.insert(e,t)},Ee.prototype.insertByPath=function(e,t){return this.dataService.insertByPath(e,t)},Ee.prototype.appendEntityByPath=function(e){return this.dataService.appendByPath(e)},Ee.prototype.removeEntityById=function(e,t){return this.dataService.removeById(e,t)},Ee.prototype.removeEntityAndSaveById=function(e){return this.dataService.removeAndSaveById(e)},Ee.prototype.removeEntityByPath=function(e,t){return this.dataService.removeByPath(e,t)},Ee.prototype.batchRemoveByPath=function(e,t){return this.dataService.batchRemoveByPath(e,t)},Ee.prototype.saveEntityById=function(e){return this.dataService.applyChangesById(e)},Ee.prototype.saveEntities=function(){return this.dataService.applyChanges()},Ee.prototype.cancelEntityChanges=function(){return this.dataService.cancelChanges()},Ee.prototype.batchAppendByPath=function(e,t){return this.dataService.batchAppendByPath(e,t)},Ee.prototype.batchAppend=function(e){return this.dataService.batchAppend(e)},Ee.prototype.reset=function(){this.entityManager.reset(),this.variableManager.reset(),this.restService.sessionService.clearBeSessionId()},Ee.prototype.getInjector=function(){return this.injector},Ee.prototype.clearAllVariableChanges=function(){this.variableManager.clearChanges()},Ee.decorators=[{type:i.Injectable}],Ee.ctorParameters=function(){return[{type:i.Injector}]},Ee);function Ee(e){var t=Ce.call(this)||this;t.injector=e,t.entityCollection&&(t.entityManager=new re(t.entityCollection)),t.appContext=t.injector.get(I.AppContext);var n=I.MetadataUtil.getPropsMetadatasByName(t.constructor,Z);return t.variableManager=new se(t.appContext,n,t.injector),t.dataService=new le(t.injector,t),t.serverUri=e.get(y),t}var xe=(Be.prototype.extendUri=function(e){return this.serverUri+"/"+e},Be.decorators=[{type:i.Injectable}],Be.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[y]}]}]},Be);function Be(e){this.serverUri=e}var Pe="DELETE",Re="PUT",De="POST",we=(qe.prototype.setBaseUri=function(e){this.baseUri=e},qe.prototype.setProxyExtend=function(e){this.proxyExtend=e},qe.prototype.query=function(e){var t=this.baseUri;return e&&(t=t+"?entityFilter="+JSON.stringify(e)),this.request(t,"GET")},qe.prototype.extendQuery=function(e,t){var n=this.baseUri+"/extension/query";if(e){var r=JSON.stringify(e);n=n+"?entityFilter="+(r=I.encodeUrl(r))}var o=t,i=this.addBodyToOptions({},o);return this.request(n,Re,null,i,!1)},qe.prototype.filter=function(e,t){var n=this.baseUri+"/extension/filter",r={requestInfo:t};e&&(r={entityFilter:e,requestInfo:t});var o=this.addBodyToOptions({},r);return this.request(n,De,null,o,!1)},qe.prototype.retrieve=function(e){var t=this.baseUri+"/"+e;return this.request(t,"GET")},qe.prototype.serviceRetrieve=function(e,t,n){var r=this.baseUri+"/service/retrieve/"+e,o={body:{retrieveParam:t,requestInfo:n}};return this.request(r,Re,null,o)},qe.prototype.queryChild=function(e){var t=this.baseUri+"/service/querychild",n={body:e};return this.request(t,Re,null,n)},qe.prototype.extendRetrieve=function(e,t){var n=this.baseUri+"/extension/retrieve/"+e,r=t,o=this.addBodyToOptions({},r);return this.request(n,Re,null,o)},qe.prototype.edit=function(e,t){var n=this.baseUri+"/service/edit/"+e,r=t,o=this.addBodyToOptions({},r);return this.request(n,Re,null,o)},qe.prototype.create=function(e,t){var n={defaultValue:e,requestInfo:t},r=this.addBodyToOptions({},n);return this.request(this.baseUri,De,null,r)},qe.prototype.createByPath=function(e,t){var n=he.convertPathToUrl(e),r=""+this.baseUri+n,o=t,i=this.addBodyToOptions({},o);return this.request(r,De,null,i)},qe.prototype.update=function(e,t){var n={changeDetail:e,requestInfo:t},r=this.addBodyToOptions({},n);return this.request(this.baseUri,"PATCH",null,r)},qe.prototype.save=function(e){var t=e,n=this.addBodyToOptions({},t);return this.request(this.baseUri,Re,null,n)},qe.prototype["delete"]=function(e){var t=this.baseUri+"/"+e;return this.request(t,Pe)},qe.prototype.deleteAndSave=function(e,t){var n=this.baseUri+"/service/delete/"+e,r=t,o=this.addBodyToOptions({},r);return this.request(n,Re,null,o)},qe.prototype.extendDelete=function(e,t){var n=this.baseUri+"/extension/delete/"+e,r=t,o=this.addBodyToOptions({},r);return this.request(n,Re,null,o)},qe.prototype.deletByPath=function(e,t){var n=he.convertPathToUrl(e),r=""+this.baseUri+n+"/"+t;return this.request(r,Pe)},qe.prototype.extendDeletByPath=function(e,t,n){var r=he.convertPathToUrl(e),o=this.baseUri+"/extension"+r+"/"+t,i=n,a=this.addBodyToOptions({},i);return this.request(o,Re,null,a)},qe.prototype.batchDeleteByPath=function(e,t,n){var r=he.convertPathToUrl(e);if(r.split("/").length<3)throw Error("根据path删除实体数据出错了。传入的path["+e+"]格式不对");var o=this.baseUri+"/extension"+r+"/batch",i={ids:t.split(","),requestInfo:n},a=this.addBodyToOptions({},i);return this.request(o,Re,null,a)},qe.prototype.batchDelete=function(e){var t={ids:e.join(",")};return this.request(this.baseUri,Pe,t)},qe.prototype.extendBatchDelete=function(e,t){var n=this.baseUri+"/extension/batchdelete",r={ids:e.join(",")},o=t,i=this.addBodyToOptions({},o);return this.request(n,Re,r,i)},qe.prototype.cancel=function(e){var t=this.baseUri+"/service/cancel";return this.request(t,De,null,null,!1,!1,!1,e)},qe.prototype.batchAppendByPath=function(e,t,n){var r=he.convertPathToUrl(e),o=""+this.baseUri+r+"/batch",i={requestInfo:n,retrieveDefaultParam:{defaultValues:t}},a=this.addBodyToOptions({},i);return this.request(o,De,null,a)},qe.prototype.batchAppend=function(e,t){var n=this.baseUri+"/batch",r={requestInfo:t,retrieveDefaultParam:{defaultValues:e}},o=this.addBodyToOptions({},r);return this.request(n,De,null,o)},qe.prototype.request=function(t,n,e,r,o,i,a,s){var p=this;r=r||{},void 0!==o&&"boolean"==typeof o||(o=!1),void 0!==i&&"boolean"==typeof i||(i=!1),e&&(r.params=e),r.headers=w.convertToHeaders(r.headers);var u=this.hasRequestInfo(r);return r&&r.body&&r.body.hasOwnProperty("RequestInfo")&&(r.body.requestInfo=r.body.RequestInfo,delete r.body.RequestInfo),this.proxyExtend.extendHeaders(r.headers,s).pipe(d.switchMap(function(e){return r.headers=w.toJson(e),r.observe="response",p.httpService.request(n,t,r)}),d.tap(function(e){return p.proxyExtend.parseHeaders(e)}),d.map(function(e){return e.body}),d.map(function(e){return u?(p.proxyExtend.onResponse(e,a),e):p.unWrapResponseInfo(e)}),d.catchError(function(e){return p.proxyExtend.onError(e,o,i)}))},qe.prototype.invoke=function(t,n,r){var o=this;return r.params&&(t=this.proxyExtend.extendUrl(t,r.params),r.params=null),r.body&&(r.body=this.proxyExtend.extendBody(r.body)),r.headers=w.convertToHeaders(r.headers),this.proxyExtend.extendHeaders(r.headers).pipe(d.switchMap(function(e){return r.headers=w.toJson(e),r.observe="response",o.httpService.request(n,t,r).pipe(d.tap(function(e){return o.proxyExtend.parseHeaders(e)}),d.map(function(e){return e.body}),d.map(function(e){return o.proxyExtend.onResponse(e)}),d.catchError(function(e){return o.proxyExtend.onError(e,!1,!1)}))}))},qe.prototype.addBodyToOptions=function(e,t){return e=e||{},Object.assign(e,{body:t})},qe.prototype.buildParams=function(e){return O.buildParams(e)},qe.prototype.hasRequestInfo=function(e){return T.hasRequestInfo(e)||T.hasRequestInfoWithR(e)},qe.prototype.unWrapResponseInfo=function(e){return A.unWrapResponseInfo(e)},qe.decorators=[{type:i.Injectable}],qe.ctorParameters=function(){return[{type:h.HttpClient},{type:xe}]},qe);function qe(e,t){this.httpClient=e,this.uriService=t,this.httpService=new V(this.httpClient)}var Oe=(Object.defineProperty(Me.prototype,"proxy",{get:function(){return this.repository.proxy?this.repository.proxy:this.createBefProxy()},enumerable:!0,configurable:!0}),Me.prototype.createBefProxy=function(){var e=this.repository.serverUri,t=new xe(e),n=new we(this.httpClient,t);n.setBaseUri(this.baseUri);var r=new Se(this.repository);return n.setProxyExtend(r),n},Me.prototype.query=function(e){return this.proxy.query(e)},Me.prototype.extendQuery=function(e,t){return this.proxy.extendQuery(e,t)},Me.prototype.serviceRetrieve=function(e,t,n){return this.proxy.serviceRetrieve(e,t,n)},Me.prototype.queryChild=function(e){return this.proxy.queryChild(e)},Me.prototype.retrieve=function(e){return this.proxy.retrieve(e)},Me.prototype.extendRetrieve=function(e,t){return this.proxy.extendRetrieve(e,t)},Me.prototype.create=function(e,t){return this.proxy.create(e,t)},Me.prototype.createByPath=function(e,t){return this.proxy.createByPath(e,t)},Me.prototype.update=function(e,t){return this.proxy.update(e,t)},Me.prototype.save=function(e){return this.proxy.save(e)},Me.prototype["delete"]=function(e){return this.proxy["delete"](e)},Me.prototype.extendDelete=function(e,t){return this.proxy.extendDelete(e,t)},Me.prototype.deletByPath=function(e,t){return this.proxy.deletByPath(e,t)},Me.prototype.extendDeletByPath=function(e,t,n){return this.proxy.extendDeletByPath(e,t,n)},Me.prototype.batchDeleteByPath=function(e,t,n){return this.proxy.batchDeleteByPath(e,t,n)},Me.prototype.batchDelete=function(e){return this.proxy.batchDelete(e)},Me.prototype.extendBatchDelete=function(e,t){return this.proxy.extendBatchDelete(e,t)},Me.prototype.cancel=function(e){return this.proxy.cancel(e)},Me.prototype.request=function(e,t,n,r,o,i,a){return this.innerRequest(e,t,n,r,o,i,a,!1)},Me.prototype.invoke=function(e,t,n,r,o,i,a){if(r&&r.body&&r.body.RequestInfo)throw new Error("请使用requestInfo提交变更");return this.innerRequest(e,t,n,r,o,i,a,!0)},Me.prototype.innerRequest=function(t,n,e,r,o,i,a,s){var p=this;r=r||{};var u="BEFSessionID";void 0!==o&&"boolean"==typeof o||(o=!1),void 0!==i&&"boolean"==typeof i||(i=!1),void 0!==s&&"boolean"==typeof s||(s=!1);var c=s?this.existRequestInfo:this.hasRequestInfo;e&&(r.params=e);var h=c(r),y=w.convertToHeaders(r.headers),l=this.repository.appContext.getFormAppContext();return ve.getSessionId(l,this.sessionService).pipe(d.switchMap(function(e){return y=p.sessionService.extendRequestHeaders(y),r.headers=w.toJson(y),r.observe="response",p.httpService.request(n,t,r)}),d.tap(function(e){e.headers&&e.headers.has(u)&&p.sessionService.setBeSessionId(e.headers.get(u))}),d.map(function(e){return e.body}),d.map(function(e){var t=A.parseBackEndMessage(e);return fe.handleMessage(t,p.repository.getInjector()),p.handleReponseInfo(e,h,a)}),d.catchError(function(e){return p.handleErrors(e,o,i)}))},Me.prototype.handleReponseInfo=function(e,t,n){return t?(e&&e.innerDataChange&&!0!==n&&this.repository.handleDataChangeDetails(e.innerDataChange),e&&e.innerVariableChange&&this.repository.handleVariableChangeDetail(e.innerVariableChange),this.repository.clearAllEntityChanges(),this.repository.clearAllVariableChanges(),e):this.unWrapResponseInfo(e)},Me.prototype.handleErrors=function(e,t,n){if(this.clearLoading(),t)return b.throwError(e);var r=this.repository.appContext.getFormAppContext(),o=r.ApplicationId,i=window[o]||{},a=A.parseBackEndError(e),s=fe.getFormlessMessages(a),p=!!i.isExceptionHandlerExist,u=s&&0<s.length||!1,c=!(e&&e.error&&e.error.extensionMessage&&fe.isBackEndMessageHandlerExist(this.repository.getInjector())&&!u),h=!!this.eventBus&&p&&c;return fe.handleMessage(a,this.repository.getInjector(),{hasThrowError:h,isException:!0,eventBus:this.eventBus,error:e,formAppContext:r}),this.eventBus&&p&&!A.isReported401Error(e)?(c&&this.eventBus.post("Exception","","onException",e,r),n?b.of(null):b.EMPTY):b.throwError(e)},Me.prototype.clearLoading=function(){var e,t;if(!1!==(window.DEVKIT_LOADING_SERVICE&&window.DEVKIT_LOADING_SERVICE instanceof Array&&0<window.DEVKIT_LOADING_SERVICE.length||!1)){var n=window.DEVKIT_LOADING_SERVICE;try{for(var r=P(n),o=r.next();!o.done;o=r.next()){var i=o.value;"function"==typeof i.clearAll&&i.clearAll()}}catch(a){e={error:a}}finally{try{o&&!o.done&&(t=r["return"])&&t.call(r)}finally{if(e)throw e.error}}}},Me.prototype.unWrapResponseInfo=function(e){return A.unWrapResponseInfo(e)},Me.prototype.hasRequestInfo=function(e){return T.hasRequestInfoWithR(e)},Me.prototype.existRequestInfo=function(e){return T.hasRequestInfo(e)},Me.prototype.buildParams=function(e){return O.buildParams(e)},Me.prototype.buildBodyWithRequestInfo=function(e){return T.buildBodyWithRequestInfo(e,this.repository)},Me.prototype.buildRequestInfo=function(){return T.buildRequestInfo(this.repository)},Me.decorators=[{type:i.Injectable}],Me.ctorParameters=function(){return[{type:h.HttpClient},{type:String},{type:f},{type:me},{type:I.EventBus}]},Me);function Me(e,t,n,r,o){this.httpClient=e,this.httpService=new V(this.httpClient),this.baseUri=t;var i=r.getInjector();this.sessionService=new Q(e,t,n,i),this.repository=r,this.eventBus=o}var Te=(je.prototype.getData=function(e,t){var n=e.split(".")[0],r=e.split(".")[1];return t=t||{},!0===this.ifEnableExtendLoadMethod(e)?this.extendGetHelpData(r,n,t):this.getHelpData(r,n,t)},je.prototype.saveUserSettings=function(e){return this.befRepository.restService.invoke("/api/runtime/bcc/v1.0/datagrid/settings","POST",null,{body:e},!1)},je.prototype.getUserSettings=function(e){var t="/api/runtime/bcc/v1.0/datagrid/settings/"+e;return this.befRepository.restService.invoke(t,"GET",null,null,!1)},je.prototype.ifEnableExtendLoadMethod=function(e){if(this.context&&this.context.hasOwnProperty("enableExtendLoadMethod"))return this.context.enableExtendLoadMethod;var t=!1;if(this.frameContext){var n=e+"@"+this.frameContext.repository.apiUri;t=this.frameContext.getParam(n)}return t},je.prototype.getHelpData=function(e,t,n){var r=this,o=this.befRepository.restService.baseUri+"/elementhelps/"+e;return this.befRepository.updateDataAndVariableChanges().pipe(d.switchMap(function(){return r.befRepository.restService.invoke(o,"GET",{nodeCode:t,queryParam:JSON.stringify(n)},null,!1)}))},je.prototype.extendGetHelpData=function(e,t,n){var r=this.befRepository.restService.baseUri+"/extension/elementhelps",o={body:{labelId:e,nodeCode:t,queryParam:n,requestInfo:this.befRepository.restService.buildRequestInfo()}};return this.befRepository.restService.invoke(r,"PUT",null,o,!1,!0,!0).pipe(d.map(function(e){return e&&e.returnValue||null}))},je.prototype.convert2TreeDataWithPathCode=function(r,t,n){var o=this;void 0===t&&(t=1),void 0===n&&(n="01");var e=r.filter(function(e){return e.layer===t&&e.pathcode===n});if(1<t&&(e=r.filter(function(e){return e.layer===t&&e.pathcode.substr(0,2*(t-1))===n})),e.length){var i=e.map(function(e){return{data:e,children:[]}});return i.forEach(function(e){var t,n=o.convert2TreeDataWithPathCode(r,e.data.layer+1,e.data.pathcode);(t=e.children).push.apply(t,D(n))}),i}},je.decorators=[{type:i.Injectable}],je.ctorParameters=function(){return[{type:I.Repository},{type:I.FrameContext,decorators:[{type:i.Optional}]}]},je);function je(e,t){this.frameContext=t,this.befRepository=e}var Ae=(Ue.prototype.createSession=function(e){var t=this.sessionService.getUserSessionId();return t?this.befRepository.restService.invoke(e,"POST",null,{headers:new h.HttpHeaders({SessionId:t}),responseType:"text"},!1).pipe(d.switchMap(function(e){return b.of({status:!0,payload:e})})):b.of({status:!1,payload:"用户登录信息已过期,请重新登录"})},Ue.prototype.getData=function(e,t){var n=this,r={};t.condition&&(r=t.condition),"/"===e[e.length-1]&&(e=e.substr(0,e.length-1));var o=e+"/extension/query",i=e+"/service/createsession";if(r){var a=JSON.stringify(r);o=o+"?entityFilter="+a}return this.createSession(i).pipe(d.switchMap(function(e){if(e.status)return e.payload,n.befRepository.restService.invoke(o,"PUT",null,{},!1);throw new Error(e.payload)}),s.map(function(e){var t=e.returnValue,n={items:t.result};return t.pagination?Object.assign({},n,{total:t.pagination.totalCount,pageInfo:{pageSize:t.pagination.pageSize,pageIndex:t.pagination.pageIndex,enablePager:!0}}):n}))},Ue.decorators=[{type:i.Injectable}],Ue.ctorParameters=function(){return[{type:I.Repository},{type:f}]},Ue);function Ue(e,t){this.sessionService=t,this.befRepository=e}var Ve=(He.isExistUnsaveData=function(e){var t=!1;if(!e||!e.entityCollection)throw"Current Object is null or it's entityCollection is null.";var n=e.entityCollection.toArray();if(e.dataChangeHistory.isChanged())return!0;for(var r=0;r<n.length;r++)if(0<n[r].changes.length){t=!0;break}return t},He);function He(){}var ke=(Fe.prototype.toString=function(){return this.url},Fe);function Fe(e,t){void 0===t&&(t=null);var n=this;this.url=e,this.paths=t,this.paths&&Object.keys(t).forEach(function(e){-1!==n.url.indexOf("{"+e+"}")&&(n.url=n.url.replace("{"+e+"}",""+t[e]))})}var Ne=(_e.prototype.getData=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n="GET");var r=new h.HttpHeaders({"content-type":"application/json"});return"get"!==n.toLowerCase()?this.befRest.restService.invoke(e,n,null,{headers:r,body:t}):this.befRest.restService.invoke(e,n,t,{headers:r})},_e.decorators=[{type:i.Injectable}],_e.ctorParameters=function(){return[{type:I.Repository}]},_e);function _e(e){this.befRest=e}var Le=(Ke.prototype.getData=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n="GET");var r=new h.HttpHeaders({"content-type":"application/json"});return this.befRest.restService.invoke(e,n,t,{headers:r})},Ke.decorators=[{type:i.Injectable}],Ke.ctorParameters=function(){return[{type:I.Repository}]},Ke);function Ke(e){this.befRest=e}var Ge,Je=(x(ze,Ge=me),ze.prototype.batchAppend=function(e){throw new Error("Method not implemented.")},ze);function ze(e,t,n,r,o){var i=Ge.call(this,e)||this;i.name=t,i.entityType=n,i.serverUri=r,i.apiUri=o,i.apiUri=o;var a={};a[n.typeName]={pageSize:20},i.paginationInfo=a,i.entityTypeInfo=new I.DataTypeInfo(i.entityType),i.entityCollection=new I.EntityCollection(i.entityType),i.entityManager=new re(i.entityCollection);var s=e.get(h.HttpClient),p=new xe(r),u=new we(s,p),c=p.extendUri(o);return u.setBaseUri(c),i.dataService=new le(e,i),i.serverUri=e.get(y),i}var We,Qe=(x(Ye,We=me),Ye.prototype.batchAppend=function(e){throw new Error("Method not implemented.")},Ye);function Ye(e,t){var n=We.call(this,e)||this;n.schema=t;var r=new I.EntityTypeFactory;return n.entityType=r.create(t),n.entityTypeInfo=new I.DataTypeInfo(n.entityType),n.entityCollection=new I.EntityCollection(n.entityType),n.entityManager=new re(n.entityCollection),n}e.VERSION="ver.",e.ChangeDetailType=S,e.BE_SERVER_URI_TOKEN=y,e.BE_SESSION_HANDLING_STRATEGY_TOKEN=a,e.BefChangeBuilder=p,e.BefChangeHandler=c,e.BefSessionService=Q,e.BefRestService=Oe,e.BefProxy=we,e.BefLookupRestService=Te,e.BefLookupDefaultService=Ae,e.BefRepository=me,e.FrameworkSessionService=f,e.NG_VARIABLE=Z,e.NgVariable=$,e.BefRepositoryUtil=Ve,e.BefDataPathUtil=he,e.UriService=xe,e.Uri=ke,e.DefaultComboHttpService=Ne,e.DefaultDynamiControlGroupHttpService=Le,e.BefEntityManager=re,e.DynamicBefRepository=Je,e.PresetBefRepository=Qe,e.ɵa=ee,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=farris-bef.umd.min.js.map

@@ -9,4 +9,4 @@ /**

*/
export { VERSION, ChangeDetailType, BE_SERVER_URI_TOKEN, BE_SESSION_HANDLING_STRATEGY_TOKEN, BefChangeBuilder, BefChangeHandler, BefSessionService, BefRestService, BefProxy, BefLookupRestService, BefLookupDefaultService, BefRepository, FrameworkSessionService, NG_VARIABLE, NgVariable, BefRepositoryUtil, BefDataPathUtil, UriService, Uri, DefaultComboHttpService, DefaultDynamiControlGroupHttpService } from './public-api';
export { VERSION, ChangeDetailType, BE_SERVER_URI_TOKEN, BE_SESSION_HANDLING_STRATEGY_TOKEN, BefChangeBuilder, BefChangeHandler, BefSessionService, BefRestService, BefProxy, BefLookupRestService, BefLookupDefaultService, BefRepository, FrameworkSessionService, NG_VARIABLE, NgVariable, BefRepositoryUtil, BefDataPathUtil, UriService, Uri, DefaultComboHttpService, DefaultDynamiControlGroupHttpService, BefEntityManager, DynamicBefRepository, PresetBefRepository } from './public-api';
export { DeprecatedBefRepository as ɵa } from './lib/deprecated/deprecated_bef_repository';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFycmlzLWJlZi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BmYXJyaXMvYmVmLyIsInNvdXJjZXMiOlsiZmFycmlzLWJlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLHdaQUFjLGNBQWMsQ0FBQztBQUU3QixPQUFPLEVBQUMsdUJBQXVCLElBQUksRUFBRSxFQUFDLE1BQU0sNENBQTRDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7RGVwcmVjYXRlZEJlZlJlcG9zaXRvcnkgYXMgybVhfSBmcm9tICcuL2xpYi9kZXByZWNhdGVkL2RlcHJlY2F0ZWRfYmVmX3JlcG9zaXRvcnknOyJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFycmlzLWJlZi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BmYXJyaXMvYmVmLyIsInNvdXJjZXMiOlsiZmFycmlzLWJlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLHFkQUFjLGNBQWMsQ0FBQztBQUU3QixPQUFPLEVBQUMsdUJBQXVCLElBQUksRUFBRSxFQUFDLE1BQU0sNENBQTRDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7RGVwcmVjYXRlZEJlZlJlcG9zaXRvcnkgYXMgybVhfSBmcm9tICcuL2xpYi9kZXByZWNhdGVkL2RlcHJlY2F0ZWRfYmVmX3JlcG9zaXRvcnknOyJdfQ==

@@ -12,6 +12,6 @@ /**

* @todo
* 1、修改command-services中的DataService,调用新的API;
* 2、移除DeprecatedBefRepository,启用新API;
* 3、修改Repository抽象类,添加新API;
* 4、对path做处理,修改为数组。
* 1、修改command-services中的DataService,调用新的API
* 2、移除DeprecatedBefRepository,启用新API
* 3、修改Repository抽象类,添加新API
* 4、对path做处理,修改为数组
*/

@@ -29,3 +29,5 @@ import { Injectable, Injector } from '@angular/core';

* BEF实体仓储
* this.apiUri:api/scm/sd/v1.0/empservice,前后均不带/
* \@description
* 负责与后端的业务实体框架交互,管理业务实体数据 \
* apiUri示例如下:api/scm/sd/v1.0/empservice,前后均不带斜杠
* @abstract

@@ -36,4 +38,3 @@ * @template T

/**
* 构造函数
* @param {?} injector
* @param {?} injector 依赖注入器
*/

@@ -43,4 +44,6 @@ constructor(injector) {

this.injector = injector;
// 初始化实体管理器
this.entityManager = new BefEntityManager(this.entityCollection);
if (this.entityCollection) {
// 初始化实体管理器
this.entityManager = new BefEntityManager(this.entityCollection);
}
// 初始化变量管理器

@@ -56,3 +59,4 @@ this.appContext = this.injector.get(AppContext);

/**
* Bef代理
* \@member {BefProxy} proxy
* \@description 每一个BefRepository都需要一个Bef代理,用来处理http请求
* @param {?} value

@@ -72,7 +76,39 @@ * @return {?}

/**
* 获取实体数组
* @param {?} filter
* @param {?} sort
* @param {?} pageSize
* @param {?} pageIndex
* 获取实体列表
* \@description
* 过滤条件的示例如下:(一般由筛选条件等组件生成,直接获取并传值即可)
* ```json
* [
* {
* "FilterField": "DomainID.DomainID_name",
* "Compare": 0,
* "Value": "人力资源部",
* "Relation": 1,
* "Expresstype": 0,
* "Lbracket": "(",
* "Rbracket": ")"
* }, {
* "FilterField": "BillDate",
* "Compare": 3,
* "Value": "2021-09-03",
* "Relation": 1,
* "Expresstype": 0
* }, {
* "FilterField": "BillDate",
* "Compare": 5,
* "Value": "2021-10-05",
* "Relation": 1,
* "Expresstype": 0
* }
* ]
* ```
* 使用示例:
* ```typescript
* // 一般会以字符串的形式获取到过滤和排序条件,所以需要进行解析
* const query$ = this.repository.getEntities(JSON.parse(filter), JSON.parse(sort), null, null);
* ```
* @param {?} filter 过滤条件
* @param {?} sort 排序条件
* @param {?} pageSize 分页大小
* @param {?} pageIndex 页码
* @return {?}

@@ -85,6 +121,10 @@ */

* 获取实体列表
* \@description
* 与getEntities方法功能相近,用法相同 \
* 区别是在发送请求时,本方法会将查询条件放到请求的body中,而getEntities方法会将查询条件扩展到请求的url上
* @see {\@link getEntities}
* @param {?=} filter 过滤条件
* @param {?=} sorts 排序条件
* @param {?=} pageSize 分页大小
* @param {?=} pageIndex 当前分页
* @param {?=} pageIndex 页码
* @return {?}

@@ -98,3 +138,10 @@ */

* 通过id获取实体数据及带分页的子表数据
* @param {?} id id
* \@description
* 实体仓库中对应的实体及其子表数据会自动更新,返回id对应的主表实体 \
* 使用示例:
* ```typescript
* const id = this.bindingData.list.currentId as string;
* const update$ = this.repository.getPagedById(id);
* ```
* @param {?} id 主表上的实体id
* @return {?}

@@ -107,3 +154,29 @@ */

* 分页查询从表/从从表数据
* @param {?} paths
* \@todo 目前并未应用排序和过滤条件
* \@description
* 通用路径格式为:['id:主表主键值', '主表实体属性名', 'id:从表主键值', '从表实体属性名'] \
* 通用路径的主键值前必须含有冒号,冒号之前的"id"则可以省略(因为通用路径除了指向从表,还可以指向从表关联等等,所以必须通过冒号来区别主键值和属性名) \
* 通用路径示例:['id:Ted', 'accounts', 'id:10816', 'logs'] 指向accounts从表下的logs从从表 \
* paths参数遵从通用路径的格式,并且指向一个从表(或者从从表) \
* 使用示例:
* ```typescript
* // 将绑定路径下当前行的路径转换为Entity可识别的通用路径
* const fullPaths = EntityPathConverter.toEntityPathArray(this.viewModel.bindingPath, this.bindingData);
* const paths = fullPaths.slice(0, fullPaths.length - 1);
* const bindingPaths = this.viewModel.bindingPath.split('/').filter(item => item);
* const bindingData = this.viewModel.bindingData;
* let nodeCode = bindingPaths[bindingPaths.length - 1];
* nodeCode = nodeCode.substr(0, nodeCode.length - 1);
* // 获取上级实体
* const parentPaths = bindingPaths.slice(0, bindingPaths.length - 1);
* const parentObject = bindingData.getValue(parentPaths) as BindingObject;
* if (!parentObject) {
* throw new Error('上级实体不存在');
* }
* const configPath = `/${nodeCode}_${parentObject[parentObject.primaryKey]}`;
* // 获取绑定路径对应的分页信息
* const { pageIndex = 1, pageSize } = this.repository.entityCollection.getPaginationConfigByPath(configPath);
* const request$ = this.repository.queryChild(paths, pageIndex, pageSize);
* ```
* @param {?} paths 通用路径
* @param {?} pageIndex 页码

@@ -120,3 +193,6 @@ * @param {?} pageSize 分页大小

* 获取主键为id的实体
* @param {?} id 实体id
* \@description
* 获取主表上对应主键的实体,调用该方法成功后实体仓库中仅包含这一个实体 \
* 如果仅仅想要将对应id的实体同步为服务器上的值,请调用 {\@link updateEntityById} 方法
* @param {?} id 主表实体主键
* @return {?}

@@ -129,3 +205,10 @@ */

* 更新实体数据
* @param {?} id
* \@description
* 重新从服务器获取主表上对应主键的实体数据 \
* 使用示例:
* ```typescript
* const rootDataId = this.bindingData.list.currentId;
* return this.repository.updateEntityById(rootDataId);
* ```
* @param {?} id 主表实体主键
* @return {?}

@@ -138,3 +221,9 @@ */

* 更新实体数据并加锁
* @param {?} id
* \@description
* 使用示例:
* ```typescript
* id = this.bindingData.list.currentId; // 编辑当前行
* const edit$ = this.repository.editEntityById(id);
* ```
* @param {?} id 主表实体主键
* @return {?}

@@ -147,3 +236,15 @@ */

* 创建实体
* @param {?=} defaultValue
* \@description
* 请求创建一个新的实体,并加载到实体仓库(加载后仓库中只会有这一个实体,适用于卡片) \
* 使用示例:
* ```typescript
* // 在创建新实体后进入编辑状态
* const create$ = this.repository.createEntity();
* create$.pipe(
* tap(() => {
* EditStateUtil.setEditState(this.frameContext, lastModifiedId);
* })
* );
* ```
* @param {?=} defaultValue 默认值,JSON对象
* @return {?}

@@ -156,3 +257,4 @@ */

* 追加实体
* @param {?=} defaultValue
* \@description 请求创建一个新的实体,并追加到实体仓库(适用于列表)
* @param {?=} defaultValue 默认值
* @return {?}

@@ -164,4 +266,7 @@ */

/**
* @param {?} position
* @param {?=} defaultValue
* 创建并插入新实体(向主表插入)
* \@description
* 关于插入位置,可选值:1或-1,1代表在当前行后,-1代表在当前行前
* @param {?} position 插入位置
* @param {?=} defaultValue 默认值
* @return {?}

@@ -173,4 +278,15 @@ */

/**
* @param {?} path
* @param {?} position
* 创建子实体并插入到指定位置(向从表或从从表插入)
* \@description
* 关于父路径格式,从表形如:"/1/edus",从从表形如:"/1/edus/12/grades" \
* 父路径是由实体主键值和实体属性名成对拼接而成的字符串(用斜杠分隔),指向要插入的那张表 \
* 父路径与实体通用路径是相似的,区别主要是格式上的不同,父路径是字符串而不是数组,主键值前面不需要加冒号,父路径必须指向从表而实体通用路径还可以指向实体的普通属性或者关联 \
* 插入位置参考 {\@link insert} \
* 使用示例:
* ```typescript
* // 我们可以通过bindingPath以及bindingData计算拼接出当前行所属从表的父路径
* const append$ = this.repository.insertByPath(path, position);
* ```
* @param {?} path 父路径
* @param {?} position 插入位置
* @return {?}

@@ -182,4 +298,6 @@ */

/**
* 创建子实体,并追加
* @param {?} fpath 父路径,格式形如:/1/edus(从表)或/1/edus/2/grades(从从表)
* 创建子实体并追加到末尾
* \@description
* 父路径格式参考 {\@link insertByPath}
* @param {?} fpath 父路径
* @return {?}

@@ -192,4 +310,6 @@ */

* 根据id删除实体
* @param {?} id
* @param {?=} ifSave
* \@description
* 如果ifSave传递为false,则会添加一个删除变更,等待以后保存
* @param {?} id 主表实体主键
* @param {?=} ifSave 是否保存,可选,默认为true
* @return {?}

@@ -202,3 +322,3 @@ */

* 根据id删除实体并执行保存
* @param {?} id
* @param {?} id 主表实体主键
* @return {?}

@@ -210,5 +330,7 @@ */

/**
* 删除子级
* @param {?} fpath
* @param {?} id
* 根据id删除父路径下子表中的实体
* \@description
* 父路径格式参考 {\@link insertByPath}
* @param {?} fpath 父路径
* @param {?} id 实体主键
* @return {?}

@@ -220,5 +342,12 @@ */

/**
* 批量删除子级
* @param {?} fPath 路径
* @param {?} ids 子集id集合
* 批量删除子级实体
* \@description
* ids中各个id之间以逗号分隔,父路径格式参考 {\@link insertByPath} \
* 使用示例:
* ```typescript
* // ids字符串可以从表单变量UIState中获取,列表组件的勾选状态变化后会自动更新表单变量
* const remove$ = this.repository.batchRemoveByPath(path, ids);
* ```
* @param {?} fPath 父路径
* @param {?} ids 子级id集合
* @return {?}

@@ -231,3 +360,9 @@ */

* 保存主键为id的实体
* @param {?} id
* \@description
* 调用该方法会应用id对应实体上的变更 \
* ```typescript
* const id = this.bindingData.list.currentId as string;
* const save$ = this.repository.saveEntityById(id); // 向服务器提交变更并应用
* ```
* @param {?} id 主表实体主键
* @return {?}

@@ -240,2 +375,5 @@ */

* 批量保存
* \@description
* 应用所有变更,比如调用了 {\@link removeEntityById} 且未保存则可以通过此方法保存 \
* 在列表服务中,我们可以通过调用该方法实现列表数据的批量保存
* @return {?}

@@ -248,2 +386,3 @@ */

* 取消实体变更
* \@description 清空所有实体变更,不希望保存变更时调用此方法
* @return {?}

@@ -256,4 +395,5 @@ */

* 批量新增从表/从从表数据
* \@description 后端接口只支持批量新增子表,批量新增主表目前不支持
* @param {?} path 实体绑定路径,like 1/childs or 1/childs/11/childchilds
* \@description
* 后端接口只支持批量新增子表,批量新增主表目前不支持
* @param {?} path 父路径,参考 {\@link insertByPath}
* @param {?} defaultValues 默认实体数据数组

@@ -267,3 +407,3 @@ * @return {?}

* 批量新增主表数据
* @param {?} defaultValues 默认值
* @param {?} defaultValues 默认实体数据数组
* @return {?}

@@ -276,2 +416,3 @@ */

* 清空Repositoy内的数据和变量
* \@description 清空所有实体、变量,并清空BeSessionId
* @return {?}

@@ -343,2 +484,2 @@ */

export { BefRepository };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVmX3JlcG9zaXRvcnkuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AZmFycmlzL2JlZi8iLCJzb3VyY2VzIjpbImxpYi9iZWZfcmVwb3NpdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBV0EsT0FBTyxFQUFFLFVBQVUsRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHckQsT0FBTyxFQUFFLFlBQVksRUFBVSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVsRSxPQUFPLE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FTZXJ2aWNlLmJhdGNoQXBwZW5kKGRlZmF1bHRWYWx1ZXMpO1xyXG4gIH1cclxuICAvKipcclxuICAgKiDmuIXnqbpSZXBvc2l0b3nlhoXnmoTmlbDmja7lkozlj5jph49cclxuICAgKiBAZGVzY3JpcHRpb24g5riF56m65omA5pyJ5a6e5L2T44CB5Y+Y6YeP77yM5bm25riF56m6QmVTZXNzaW9uSWRcclxuICAgKi9cclxuICBwdWJsaWMgcmVzZXQoKSB7XHJcbiAgICB0aGlzLmVudGl0eU1hbmFnZXIucmVzZXQoKTtcclxuICAgIHRoaXMudmFyaWFibGVNYW5hZ2VyLnJlc2V0KCk7XHJcbiAgICB0aGlzLnJlc3RTZXJ2aWNlLnNlc3Npb25TZXJ2aWNlLmNsZWFyQmVTZXNzaW9uSWQoKTtcclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIOiOt+WPlkluamVjdG9y77yI5aSW6YOo6K+35Yu/5L2/55So77yJXHJcbiAgICogQGludGVybmFsXHJcbiAgICovXHJcbiAgcHVibGljIGdldEluamVjdG9yKCk6IEluamVjdG9yIHtcclxuICAgIHJldHVybiB0aGlzLmluamVjdG9yO1xyXG4gIH1cclxuICAvKipcclxuICAgKiDmuIXnqbp2b+WPmOmHj+WPmOabtFxyXG4gICAqL1xyXG4gIHB1YmxpYyBjbGVhckFsbFZhcmlhYmxlQ2hhbmdlcygpIHtcclxuICAgIHRoaXMudmFyaWFibGVNYW5hZ2VyLmNsZWFyQ2hhbmdlcygpO1xyXG4gIH1cclxuICBcclxufVxyXG5cclxuZXhwb3J0IHsgQmVmUmVwb3NpdG9yeSB9O1xyXG4iXX0=

@@ -24,4 +24,7 @@ /**

export { DefaultDynamiControlGroupHttpService } from './lib/bef_dynamic_control_group_default.service';
export { BefEntityManager } from './lib/bef_entity_manager';
export { DynamicBefRepository } from './lib/dynamic_bef_repository';
export { PresetBefRepository } from './lib/preset_bef_repository';
/** @type {?} */
export const VERSION = 'ver.';
//# sourceMappingURL=data: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XJ2aWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvYmVmX2xvb2t1cF9kZWZhdWx0LnNlcnZpY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9iZWZfcmVwb3NpdG9yeSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2ZyYW1ld29ya19zZXNzaW9uX3NlcnZpY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9kZWNvcmF0b3JzJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvYmVmX3JlcG9zaXRvcnlfdXRpbCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2JlZl9kYXRhX3BhdGhfdXRpbCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3VyaV9zZXJ2aWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvdXJpJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvYmVmX2NvbWJvLnNlcnZpY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9iZWZfZHluYW1pY19jb250cm9sX2dyb3VwX2RlZmF1bHQuc2VydmljZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2JlZl9lbnRpdHlfbWFuYWdlcic7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2R5bmFtaWNfYmVmX3JlcG9zaXRvcnknO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9wcmVzZXRfYmVmX3JlcG9zaXRvcnknO1xyXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9ICd2ZXIuJztcclxuIl19

@@ -9,4 +9,4 @@ /**

*/
export { VERSION, ChangeDetailType, BE_SERVER_URI_TOKEN, BE_SESSION_HANDLING_STRATEGY_TOKEN, BefChangeBuilder, BefChangeHandler, BefSessionService, BefRestService, BefProxy, BefLookupRestService, BefLookupDefaultService, BefRepository, FrameworkSessionService, NG_VARIABLE, NgVariable, BefRepositoryUtil, BefDataPathUtil, UriService, Uri, DefaultComboHttpService, DefaultDynamiControlGroupHttpService } from './public-api';
export { VERSION, ChangeDetailType, BE_SERVER_URI_TOKEN, BE_SESSION_HANDLING_STRATEGY_TOKEN, BefChangeBuilder, BefChangeHandler, BefSessionService, BefRestService, BefProxy, BefLookupRestService, BefLookupDefaultService, BefRepository, FrameworkSessionService, NG_VARIABLE, NgVariable, BefRepositoryUtil, BefDataPathUtil, UriService, Uri, DefaultComboHttpService, DefaultDynamiControlGroupHttpService, BefEntityManager, DynamicBefRepository, PresetBefRepository } from './public-api';
export { DeprecatedBefRepository as ɵa } from './lib/deprecated/deprecated_bef_repository';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFycmlzLWJlZi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BmYXJyaXMvYmVmLyIsInNvdXJjZXMiOlsiZmFycmlzLWJlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLHdaQUFjLGNBQWMsQ0FBQztBQUU3QixPQUFPLEVBQUMsdUJBQXVCLElBQUksRUFBRSxFQUFDLE1BQU0sNENBQTRDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7RGVwcmVjYXRlZEJlZlJlcG9zaXRvcnkgYXMgybVhfSBmcm9tICcuL2xpYi9kZXByZWNhdGVkL2RlcHJlY2F0ZWRfYmVmX3JlcG9zaXRvcnknOyJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFycmlzLWJlZi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BmYXJyaXMvYmVmLyIsInNvdXJjZXMiOlsiZmFycmlzLWJlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUlBLHFkQUFjLGNBQWMsQ0FBQztBQUU3QixPQUFPLEVBQUMsdUJBQXVCLElBQUksRUFBRSxFQUFDLE1BQU0sNENBQTRDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7RGVwcmVjYXRlZEJlZlJlcG9zaXRvcnkgYXMgybVhfSBmcm9tICcuL2xpYi9kZXByZWNhdGVkL2RlcHJlY2F0ZWRfYmVmX3JlcG9zaXRvcnknOyJdfQ==

@@ -24,4 +24,7 @@ /**

export { DefaultDynamiControlGroupHttpService } from './lib/bef_dynamic_control_group_default.service';
export { BefEntityManager } from './lib/bef_entity_manager';
export { DynamicBefRepository } from './lib/dynamic_bef_repository';
export { PresetBefRepository } from './lib/preset_bef_repository';
/** @type {?} */
export var VERSION = 'ver.';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BmYXJyaXMvYmVmLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLGlDQUFjLGFBQWEsQ0FBQztBQUM1Qix3RUFBYyxjQUFjLENBQUM7QUFDN0IsaUNBQWMsMEJBQTBCLENBQUM7QUFDekMsaUNBQWMsMEJBQTBCLENBQUM7QUFDekMsa0NBQWMscUJBQXFCLENBQUM7QUFDcEMsK0JBQWMsd0JBQXdCLENBQUM7QUFDdkMseUJBQWMsaUJBQWlCLENBQUM7QUFDaEMscUNBQWMsMEJBQTBCLENBQUM7QUFDekMsd0NBQWMsa0NBQWtDLENBQUM7QUFDakQsOEJBQWMsc0JBQXNCLENBQUM7QUFDckMsd0NBQWMsaUNBQWlDLENBQUM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lcnZpY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9iZWZfZHluYW1pY19jb250cm9sX2dyb3VwX2RlZmF1bHQuc2VydmljZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2JlZl9lbnRpdHlfbWFuYWdlcic7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2R5bmFtaWNfYmVmX3JlcG9zaXRvcnknO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9wcmVzZXRfYmVmX3JlcG9zaXRvcnknO1xyXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9ICd2ZXIuJztcclxuIl19

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"VERSION":"ver.","ChangeDetailType":{"__symbolic":"class","members":{},"statics":{"Added":"Added","Modify":"Modify","Deleted":"Deleted"}},"ChangeDetailInfo":{"__symbolic":"interface"},"ChangeDetail":{"__symbolic":"interface"},"RequestInfo":{"__symbolic":"interface"},"Pagination":{"__symbolic":"interface"},"QueryResult":{"__symbolic":"interface"},"ResponseInfo":{"__symbolic":"interface"},"IProxyExtend":{"__symbolic":"interface"},"BodyWithRequestInfo":{"__symbolic":"interface"},"RequestOption":{"__symbolic":"interface"},"BE_SERVER_URI_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":32},"arguments":["@farris/be BE_SERVER_URL"]},"BE_SESSION_HANDLING_STRATEGY_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":15,"character":47},"arguments":["@farris/be BE_SESSION_HANDLING_STRATEGY_TOKEN"]},"BefChangeBuilder":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Type","module":"@angular/core","arguments":[{"__symbolic":"reference","module":"@farris/devkit","name":"Entity","line":28,"character":29}]},{"__symbolic":"reference","name":"EntityCollection","module":"@farris/devkit","arguments":[{"__symbolic":"reference","module":"@farris/devkit","name":"Entity","line":28,"character":29}]}]}],"build":[{"__symbolic":"method"}],"buildChangeDetail":[{"__symbolic":"method"}],"getChangeInfo":[{"__symbolic":"method"}],"createEmptyChangeDetail":[{"__symbolic":"method"}]}},"BefChangeHandler":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}],"handle":[{"__symbolic":"method"}],"handleChangeDetails":[{"__symbolic":"method"}],"handleChangeDetail":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}]}},"BefSessionService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":30,"character":16},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"FrameworkSessionService"},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":31,"character":59}]}],"getBeSessionId":[{"__symbolic":"method"}],"setBeSessionId":[{"__symbolic":"method"}],"clearBeSessionId":[{"__symbolic":"method"}],"extendRequestHeaders":[{"__symbolic":"method"}],"handleResponseHeaders":[{"__symbolic":"method"}],"createBeSession":[{"__symbolic":"method"}],"setSessionId":[{"__symbolic":"method"}],"createHandlingStrategy":[{"__symbolic":"method"}]}},"BefRestService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":34,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":67,"character":16},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"FrameworkSessionService"},{"__symbolic":"reference","name":"BefRepository"},{"__symbolic":"reference","module":"@farris/devkit","name":"EventBus","line":70,"character":15}]}],"createBefProxy":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"extendQuery":[{"__symbolic":"method"}],"serviceRetrieve":[{"__symbolic":"method"}],"queryChild":[{"__symbolic":"method"}],"retrieve":[{"__symbolic":"method"}],"extendRetrieve":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"createByPath":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"save":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"extendDelete":[{"__symbolic":"method"}],"deletByPath":[{"__symbolic":"method"}],"extendDeletByPath":[{"__symbolic":"method"}],"batchDeleteByPath":[{"__symbolic":"method"}],"batchDelete":[{"__symbolic":"method"}],"extendBatchDelete":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"request":[{"__symbolic":"method"}],"invoke":[{"__symbolic":"method"}],"innerRequest":[{"__symbolic":"method"}],"handleReponseInfo":[{"__symbolic":"method"}],"handleErrors":[{"__symbolic":"method"}],"clearLoading":[{"__symbolic":"method"}],"unWrapResponseInfo":[{"__symbolic":"method"}],"hasRequestInfo":[{"__symbolic":"method"}],"existRequestInfo":[{"__symbolic":"method"}],"buildParams":[{"__symbolic":"method"}],"buildBodyWithRequestInfo":[{"__symbolic":"method"}],"buildRequestInfo":[{"__symbolic":"method"}]}},"BefProxy":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":23,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":31,"character":33},{"__symbolic":"reference","name":"UriService"}]}],"setBaseUri":[{"__symbolic":"method"}],"setProxyExtend":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"extendQuery":[{"__symbolic":"method"}],"filter":[{"__symbolic":"method"}],"retrieve":[{"__symbolic":"method"}],"serviceRetrieve":[{"__symbolic":"method"}],"queryChild":[{"__symbolic":"method"}],"extendRetrieve":[{"__symbolic":"method"}],"edit":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"createByPath":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"save":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"deleteAndSave":[{"__symbolic":"method"}],"extendDelete":[{"__symbolic":"method"}],"deletByPath":[{"__symbolic":"method"}],"extendDeletByPath":[{"__symbolic":"method"}],"batchDeleteByPath":[{"__symbolic":"method"}],"batchDelete":[{"__symbolic":"method"}],"extendBatchDelete":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"batchAppendByPath":[{"__symbolic":"method"}],"batchAppend":[{"__symbolic":"method"}],"request":[{"__symbolic":"method"}],"invoke":[{"__symbolic":"method"}],"addBodyToOptions":[{"__symbolic":"method"}],"buildParams":[{"__symbolic":"method"}],"hasRequestInfo":[{"__symbolic":"method"}],"unWrapResponseInfo":[{"__symbolic":"method"}]}},"BefLookupRestService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":26,"character":5}}]],"parameters":[{"__symbolic":"reference","name":"Repository","module":"@farris/devkit","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@farris/devkit","name":"FrameContext","line":26,"character":38}]}],"getData":[{"__symbolic":"method"}],"saveUserSettings":[{"__symbolic":"method"}],"getUserSettings":[{"__symbolic":"method"}],"ifEnableExtendLoadMethod":[{"__symbolic":"method"}],"getHelpData":[{"__symbolic":"method"}],"extendGetHelpData":[{"__symbolic":"method"}],"convert2TreeDataWithPathCode":[{"__symbolic":"method"}]}},"BefLookupDefaultService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":14,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Repository","module":"@farris/devkit","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"FrameworkSessionService"}]}],"createSession":[{"__symbolic":"method"}],"getData":[{"__symbolic":"method"}]}},"BefRepository":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":28,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":65,"character":32}]}],"getEntities":[{"__symbolic":"method"}],"filter":[{"__symbolic":"method"}],"getPagedById":[{"__symbolic":"method"}],"queryChild":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}],"updateEntityById":[{"__symbolic":"method"}],"editEntityById":[{"__symbolic":"method"}],"createEntity":[{"__symbolic":"method"}],"appendEntity":[{"__symbolic":"method"}],"insert":[{"__symbolic":"method"}],"insertByPath":[{"__symbolic":"method"}],"appendEntityByPath":[{"__symbolic":"method"}],"removeEntityById":[{"__symbolic":"method"}],"removeEntityAndSaveById":[{"__symbolic":"method"}],"removeEntityByPath":[{"__symbolic":"method"}],"batchRemoveByPath":[{"__symbolic":"method"}],"saveEntityById":[{"__symbolic":"method"}],"saveEntities":[{"__symbolic":"method"}],"cancelEntityChanges":[{"__symbolic":"method"}],"batchAppendByPath":[{"__symbolic":"method"}],"batchAppend":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"getInjector":[{"__symbolic":"method"}],"clearAllVariableChanges":[{"__symbolic":"method"}]}},"FrameworkSessionService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":13,"character":15}}]],"parameters":[{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"SessionService","line":13,"character":50}]}],"getUserSessionId":[{"__symbolic":"method"}],"getCurrentSessionId":[{"__symbolic":"method"}]}},"NG_VARIABLE":"@farris/bef NG_VARIABLE","NgVariable":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@farris/devkit","name":"makePropDecorator","line":49,"character":2},"arguments":["@farris/bef NG_VARIABLE",{"__symbolic":"error","message":"Lambda not supported","line":49,"character":33,"module":"./lib/decorators"}]},"NgVariableDecorator":{"__symbolic":"interface"},"BefRepositoryUtil":{"__symbolic":"class","members":{}},"BefDataPathUtil":{"__symbolic":"class","members":{},"statics":{"trimTrailingS":{"__symbolic":"function","parameters":["str"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"str"},"member":"substr"},"arguments":[0,{"__symbolic":"binop","operator":"-","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"str"},"member":"length"},"right":1}]}}}},"UriService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":5,"character":17},"arguments":[{"__symbolic":"reference","name":"BE_SERVER_URI_TOKEN"}]}]],"parameters":[{"__symbolic":"reference","name":"string"}]}],"extendUri":[{"__symbolic":"method"}]}},"Uri":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":1,"character":52,"module":"./lib/uri"}]}],"toString":[{"__symbolic":"method"}]}},"DefaultComboHttpService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Repository","module":"@farris/devkit","arguments":[{"__symbolic":"reference","name":"any"}]}]}],"getData":[{"__symbolic":"method"}]}},"DefaultDynamiControlGroupHttpService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Repository","module":"@farris/devkit","arguments":[{"__symbolic":"reference","name":"any"}]}]}],"getData":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","module":"@farris/devkit","name":"Repository","line":26,"character":65},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":25,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"getList":[{"__symbolic":"method"}],"getById":[{"__symbolic":"method"}],"updateById":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"append":[{"__symbolic":"method"}],"appendByPath":[{"__symbolic":"method"}],"removeById":[{"__symbolic":"method"}],"removeByIds":[{"__symbolic":"method"}],"removeByPath":[{"__symbolic":"method"}],"updateChangesById":[{"__symbolic":"method"}],"updateChangesByPath":[{"__symbolic":"method"}],"updateAllChanges":[{"__symbolic":"method"}],"applyChanges":[{"__symbolic":"method"}],"updateDataAndVariableChanges":[{"__symbolic":"method"}],"applyChangesById":[{"__symbolic":"method"}],"cancelChanges":[{"__symbolic":"method"}],"clearAllEntityChanges":[{"__symbolic":"method"}],"getDataChangeDetails":[{"__symbolic":"method"}],"handleDataChangeDetails":[{"__symbolic":"method"}],"getVariableChangeDetail":[{"__symbolic":"method"}],"handleVariableChangeDetail":[{"__symbolic":"method"}],"isEmptyRequestInfo":[{"__symbolic":"method"}]}}},"origins":{"VERSION":"./public-api","ChangeDetailType":"./lib/types","ChangeDetailInfo":"./lib/types","ChangeDetail":"./lib/types","RequestInfo":"./lib/types","Pagination":"./lib/types","QueryResult":"./lib/types","ResponseInfo":"./lib/types","IProxyExtend":"./lib/types","BodyWithRequestInfo":"./lib/types","RequestOption":"./lib/types","BE_SERVER_URI_TOKEN":"./lib/tokens","BE_SESSION_HANDLING_STRATEGY_TOKEN":"./lib/tokens","BefChangeBuilder":"./lib/bef_change_builder","BefChangeHandler":"./lib/bef_change_handler","BefSessionService":"./lib/session/bef_session_service","BefRestService":"./lib/bef_rest_service","BefProxy":"./lib/bef_proxy","BefLookupRestService":"./lib/bef_lookup.service","BefLookupDefaultService":"./lib/bef_lookup_default.service","BefRepository":"./lib/bef_repository","FrameworkSessionService":"./lib/framework_session_service","NG_VARIABLE":"./lib/decorators","NgVariable":"./lib/decorators","NgVariableDecorator":"./lib/decorators","BefRepositoryUtil":"./lib/bef_repository_util","BefDataPathUtil":"./lib/bef_data_path_util","UriService":"./lib/uri_service","Uri":"./lib/uri","DefaultComboHttpService":"./lib/bef_combo.service","DefaultDynamiControlGroupHttpService":"./lib/bef_dynamic_control_group_default.service","ɵa":"./lib/deprecated/deprecated_bef_repository"},"importAs":"@farris/bef"}
{"__symbolic":"module","version":4,"metadata":{"VERSION":"ver.","ChangeDetailType":{"__symbolic":"class","members":{},"statics":{"Added":"Added","Modify":"Modify","Deleted":"Deleted"}},"ChangeDetailInfo":{"__symbolic":"interface"},"ChangeDetail":{"__symbolic":"interface"},"RequestInfo":{"__symbolic":"interface"},"Pagination":{"__symbolic":"interface"},"QueryResult":{"__symbolic":"interface"},"ResponseInfo":{"__symbolic":"interface"},"IProxyExtend":{"__symbolic":"interface"},"BodyWithRequestInfo":{"__symbolic":"interface"},"RequestOption":{"__symbolic":"interface"},"BE_SERVER_URI_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":32},"arguments":["@farris/be BE_SERVER_URL"]},"BE_SESSION_HANDLING_STRATEGY_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":15,"character":47},"arguments":["@farris/be BE_SESSION_HANDLING_STRATEGY_TOKEN"]},"BefChangeBuilder":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Type","module":"@angular/core","arguments":[{"__symbolic":"reference","module":"@farris/devkit","name":"Entity","line":28,"character":29}]},{"__symbolic":"reference","name":"EntityCollection","module":"@farris/devkit","arguments":[{"__symbolic":"reference","module":"@farris/devkit","name":"Entity","line":28,"character":29}]}]}],"build":[{"__symbolic":"method"}],"buildChangeDetail":[{"__symbolic":"method"}],"getChangeInfo":[{"__symbolic":"method"}],"createEmptyChangeDetail":[{"__symbolic":"method"}]}},"BefChangeHandler":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}],"handle":[{"__symbolic":"method"}],"handleChangeDetails":[{"__symbolic":"method"}],"handleChangeDetail":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}]}},"BefSessionService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":30,"character":16},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"FrameworkSessionService"},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":31,"character":59}]}],"getBeSessionId":[{"__symbolic":"method"}],"setBeSessionId":[{"__symbolic":"method"}],"clearBeSessionId":[{"__symbolic":"method"}],"extendRequestHeaders":[{"__symbolic":"method"}],"handleResponseHeaders":[{"__symbolic":"method"}],"createBeSession":[{"__symbolic":"method"}],"setSessionId":[{"__symbolic":"method"}],"createHandlingStrategy":[{"__symbolic":"method"}]}},"BefRestService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":34,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":67,"character":16},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"FrameworkSessionService"},{"__symbolic":"reference","name":"BefRepository"},{"__symbolic":"reference","module":"@farris/devkit","name":"EventBus","line":70,"character":15}]}],"createBefProxy":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"extendQuery":[{"__symbolic":"method"}],"serviceRetrieve":[{"__symbolic":"method"}],"queryChild":[{"__symbolic":"method"}],"retrieve":[{"__symbolic":"method"}],"extendRetrieve":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"createByPath":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"save":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"extendDelete":[{"__symbolic":"method"}],"deletByPath":[{"__symbolic":"method"}],"extendDeletByPath":[{"__symbolic":"method"}],"batchDeleteByPath":[{"__symbolic":"method"}],"batchDelete":[{"__symbolic":"method"}],"extendBatchDelete":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"request":[{"__symbolic":"method"}],"invoke":[{"__symbolic":"method"}],"innerRequest":[{"__symbolic":"method"}],"handleReponseInfo":[{"__symbolic":"method"}],"handleErrors":[{"__symbolic":"method"}],"clearLoading":[{"__symbolic":"method"}],"unWrapResponseInfo":[{"__symbolic":"method"}],"hasRequestInfo":[{"__symbolic":"method"}],"existRequestInfo":[{"__symbolic":"method"}],"buildParams":[{"__symbolic":"method"}],"buildBodyWithRequestInfo":[{"__symbolic":"method"}],"buildRequestInfo":[{"__symbolic":"method"}]}},"BefProxy":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":23,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":31,"character":33},{"__symbolic":"reference","name":"UriService"}]}],"setBaseUri":[{"__symbolic":"method"}],"setProxyExtend":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}],"extendQuery":[{"__symbolic":"method"}],"filter":[{"__symbolic":"method"}],"retrieve":[{"__symbolic":"method"}],"serviceRetrieve":[{"__symbolic":"method"}],"queryChild":[{"__symbolic":"method"}],"extendRetrieve":[{"__symbolic":"method"}],"edit":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"createByPath":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"save":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"deleteAndSave":[{"__symbolic":"method"}],"extendDelete":[{"__symbolic":"method"}],"deletByPath":[{"__symbolic":"method"}],"extendDeletByPath":[{"__symbolic":"method"}],"batchDeleteByPath":[{"__symbolic":"method"}],"batchDelete":[{"__symbolic":"method"}],"extendBatchDelete":[{"__symbolic":"method"}],"cancel":[{"__symbolic":"method"}],"batchAppendByPath":[{"__symbolic":"method"}],"batchAppend":[{"__symbolic":"method"}],"request":[{"__symbolic":"method"}],"invoke":[{"__symbolic":"method"}],"addBodyToOptions":[{"__symbolic":"method"}],"buildParams":[{"__symbolic":"method"}],"hasRequestInfo":[{"__symbolic":"method"}],"unWrapResponseInfo":[{"__symbolic":"method"}]}},"BefLookupRestService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":26,"character":5}}]],"parameters":[{"__symbolic":"reference","name":"Repository","module":"@farris/devkit","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@farris/devkit","name":"FrameContext","line":26,"character":38}]}],"getData":[{"__symbolic":"method"}],"saveUserSettings":[{"__symbolic":"method"}],"getUserSettings":[{"__symbolic":"method"}],"ifEnableExtendLoadMethod":[{"__symbolic":"method"}],"getHelpData":[{"__symbolic":"method"}],"extendGetHelpData":[{"__symbolic":"method"}],"convert2TreeDataWithPathCode":[{"__symbolic":"method"}]}},"BefLookupDefaultService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":14,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Repository","module":"@farris/devkit","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"FrameworkSessionService"}]}],"createSession":[{"__symbolic":"method"}],"getData":[{"__symbolic":"method"}]}},"BefRepository":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":30,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":68,"character":32}]}],"getEntities":[{"__symbolic":"method"}],"filter":[{"__symbolic":"method"}],"getPagedById":[{"__symbolic":"method"}],"queryChild":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}],"updateEntityById":[{"__symbolic":"method"}],"editEntityById":[{"__symbolic":"method"}],"createEntity":[{"__symbolic":"method"}],"appendEntity":[{"__symbolic":"method"}],"insert":[{"__symbolic":"method"}],"insertByPath":[{"__symbolic":"method"}],"appendEntityByPath":[{"__symbolic":"method"}],"removeEntityById":[{"__symbolic":"method"}],"removeEntityAndSaveById":[{"__symbolic":"method"}],"removeEntityByPath":[{"__symbolic":"method"}],"batchRemoveByPath":[{"__symbolic":"method"}],"saveEntityById":[{"__symbolic":"method"}],"saveEntities":[{"__symbolic":"method"}],"cancelEntityChanges":[{"__symbolic":"method"}],"batchAppendByPath":[{"__symbolic":"method"}],"batchAppend":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"getInjector":[{"__symbolic":"method"}],"clearAllVariableChanges":[{"__symbolic":"method"}]}},"FrameworkSessionService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":13,"character":15}}]],"parameters":[{"__symbolic":"reference","module":"@ecp-caf/caf-common","name":"SessionService","line":13,"character":50}]}],"getUserSessionId":[{"__symbolic":"method"}],"getCurrentSessionId":[{"__symbolic":"method"}]}},"NG_VARIABLE":"@farris/bef NG_VARIABLE","NgVariable":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@farris/devkit","name":"makePropDecorator","line":49,"character":2},"arguments":["@farris/bef NG_VARIABLE",{"__symbolic":"error","message":"Lambda not supported","line":49,"character":33,"module":"./lib/decorators"}]},"NgVariableDecorator":{"__symbolic":"interface"},"BefRepositoryUtil":{"__symbolic":"class","members":{}},"BefDataPathUtil":{"__symbolic":"class","members":{},"statics":{"trimTrailingS":{"__symbolic":"function","parameters":["str"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"str"},"member":"substr"},"arguments":[0,{"__symbolic":"binop","operator":"-","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"str"},"member":"length"},"right":1}]}}}},"UriService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":5,"character":17},"arguments":[{"__symbolic":"reference","name":"BE_SERVER_URI_TOKEN"}]}]],"parameters":[{"__symbolic":"reference","name":"string"}]}],"extendUri":[{"__symbolic":"method"}]}},"Uri":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":1,"character":52,"module":"./lib/uri"}]}],"toString":[{"__symbolic":"method"}]}},"DefaultComboHttpService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Repository","module":"@farris/devkit","arguments":[{"__symbolic":"reference","name":"any"}]}]}],"getData":[{"__symbolic":"method"}]}},"DefaultDynamiControlGroupHttpService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Repository","module":"@farris/devkit","arguments":[{"__symbolic":"reference","name":"any"}]}]}],"getData":[{"__symbolic":"method"}]}},"BefEntityManager":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","module":"@farris/devkit","name":"EntityManager","line":20,"character":49},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"EntityCollection","module":"@farris/devkit","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":36,"character":49,"context":{"typeName":"T"},"module":"./lib/bef_entity_manager"}]}]}],"buildAllEntityChangeDetails":[{"__symbolic":"method"}],"buildEntityChangeDetailById":[{"__symbolic":"method"}],"handleDataChangeDetails":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}]}},"DynamicBefRepository":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","name":"BefRepository"},"members":{"batchAppend":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":23,"character":24},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"}]}]}},"PresetBefRepository":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","name":"BefRepository"},"members":{"batchAppend":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":11,"character":24},{"__symbolic":"reference","name":"any"}]}]}},"ɵa":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","module":"@farris/devkit","name":"Repository","line":26,"character":65},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":25,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"getList":[{"__symbolic":"method"}],"getById":[{"__symbolic":"method"}],"updateById":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"append":[{"__symbolic":"method"}],"appendByPath":[{"__symbolic":"method"}],"removeById":[{"__symbolic":"method"}],"removeByIds":[{"__symbolic":"method"}],"removeByPath":[{"__symbolic":"method"}],"updateChangesById":[{"__symbolic":"method"}],"updateChangesByPath":[{"__symbolic":"method"}],"updateAllChanges":[{"__symbolic":"method"}],"applyChanges":[{"__symbolic":"method"}],"updateDataAndVariableChanges":[{"__symbolic":"method"}],"applyChangesById":[{"__symbolic":"method"}],"cancelChanges":[{"__symbolic":"method"}],"clearAllEntityChanges":[{"__symbolic":"method"}],"getDataChangeDetails":[{"__symbolic":"method"}],"handleDataChangeDetails":[{"__symbolic":"method"}],"getVariableChangeDetail":[{"__symbolic":"method"}],"handleVariableChangeDetail":[{"__symbolic":"method"}],"isEmptyRequestInfo":[{"__symbolic":"method"}]}}},"origins":{"VERSION":"./public-api","ChangeDetailType":"./lib/types","ChangeDetailInfo":"./lib/types","ChangeDetail":"./lib/types","RequestInfo":"./lib/types","Pagination":"./lib/types","QueryResult":"./lib/types","ResponseInfo":"./lib/types","IProxyExtend":"./lib/types","BodyWithRequestInfo":"./lib/types","RequestOption":"./lib/types","BE_SERVER_URI_TOKEN":"./lib/tokens","BE_SESSION_HANDLING_STRATEGY_TOKEN":"./lib/tokens","BefChangeBuilder":"./lib/bef_change_builder","BefChangeHandler":"./lib/bef_change_handler","BefSessionService":"./lib/session/bef_session_service","BefRestService":"./lib/bef_rest_service","BefProxy":"./lib/bef_proxy","BefLookupRestService":"./lib/bef_lookup.service","BefLookupDefaultService":"./lib/bef_lookup_default.service","BefRepository":"./lib/bef_repository","FrameworkSessionService":"./lib/framework_session_service","NG_VARIABLE":"./lib/decorators","NgVariable":"./lib/decorators","NgVariableDecorator":"./lib/decorators","BefRepositoryUtil":"./lib/bef_repository_util","BefDataPathUtil":"./lib/bef_data_path_util","UriService":"./lib/uri_service","Uri":"./lib/uri","DefaultComboHttpService":"./lib/bef_combo.service","DefaultDynamiControlGroupHttpService":"./lib/bef_dynamic_control_group_default.service","BefEntityManager":"./lib/bef_entity_manager","DynamicBefRepository":"./lib/dynamic_bef_repository","PresetBefRepository":"./lib/preset_bef_repository","ɵa":"./lib/deprecated/deprecated_bef_repository"},"importAs":"@farris/bef"}

@@ -61,3 +61,3 @@ import { Injector } from '@angular/core';

*/
getPagedById(id: string): Observable<T>;
getPagedById(id: string): Observable<any>;
/**

@@ -64,0 +64,0 @@ * ['id:xxx', 'chil1s', 'id:xxx', 'grand1s']

@@ -11,3 +11,5 @@ import { Injector } from '@angular/core';

* BEF实体仓储
* this.apiUri:api/scm/sd/v1.0/empservice,前后均不带/
* @description
* 负责与后端的业务实体框架交互,管理业务实体数据 \
* apiUri示例如下:api/scm/sd/v1.0/empservice,前后均不带斜杠
*/

@@ -18,3 +20,4 @@ declare abstract class BefRepository<T extends Entity> extends DeprecatedBefRepository<T> {

/**
* Bef代理
* @member {BefProxy} proxy
* @description 每一个BefRepository都需要一个Bef代理,用来处理http请求
*/

@@ -40,7 +43,43 @@ proxy: BefProxy;

/**
* 构造函数
* @param injector 依赖注入器
*/
constructor(injector: Injector);
/**
* 获取实体数组
* 获取实体列表
* @param filter 过滤条件
* @param sort 排序条件
* @param pageSize 分页大小
* @param pageIndex 页码
* @description
* 过滤条件的示例如下:(一般由筛选条件等组件生成,直接获取并传值即可)
* ```json
* [
* {
* "FilterField": "DomainID.DomainID_name",
* "Compare": 0,
* "Value": "人力资源部",
* "Relation": 1,
* "Expresstype": 0,
* "Lbracket": "(",
* "Rbracket": ")"
* }, {
* "FilterField": "BillDate",
* "Compare": 3,
* "Value": "2021-09-03",
* "Relation": 1,
* "Expresstype": 0
* }, {
* "FilterField": "BillDate",
* "Compare": 5,
* "Value": "2021-10-05",
* "Relation": 1,
* "Expresstype": 0
* }
* ]
* ```
* 使用示例:
* ```typescript
* // 一般会以字符串的形式获取到过滤和排序条件,所以需要进行解析
* const query$ = this.repository.getEntities(JSON.parse(filter), JSON.parse(sort), null, null);
* ```
*/

@@ -53,3 +92,7 @@ getEntities(filter: any[], sort: any[], pageSize: number | null, pageIndex: number | null): Observable<T[]>;

* @param pageSize 分页大小
* @param pageIndex 当前分页
* @param pageIndex 页码
* @description
* 与getEntities方法功能相近,用法相同 \
* 区别是在发送请求时,本方法会将查询条件放到请求的body中,而getEntities方法会将查询条件扩展到请求的url上
* @see {@link getEntities}
*/

@@ -59,3 +102,10 @@ filter(filter: any[], sorts: any[], pageSize: number | null, pageIndex: number | null): Observable<T[]>;

* 通过id获取实体数据及带分页的子表数据
* @param id id
* @param id 主表上的实体id
* @description
* 实体仓库中对应的实体及其子表数据会自动更新,返回id对应的主表实体 \
* 使用示例:
* ```typescript
* const id = this.bindingData.list.currentId as string;
* const update$ = this.repository.getPagedById(id);
* ```
*/

@@ -65,4 +115,3 @@ getPagedById(id: string): Observable<T>;

* 分页查询从表/从从表数据
* @param path 绑定路径
* @param ids 绑定路径对应的主键
* @param paths 通用路径
* @param pageIndex 页码

@@ -72,2 +121,28 @@ * @param pageSize 分页大小

* @param sort 排序
* @todo 目前并未应用排序和过滤条件
* @description
* 通用路径格式为:['id:主表主键值', '主表实体属性名', 'id:从表主键值', '从表实体属性名'] \
* 通用路径的主键值前必须含有冒号,冒号之前的"id"则可以省略(因为通用路径除了指向从表,还可以指向从表关联等等,所以必须通过冒号来区别主键值和属性名) \
* 通用路径示例:['id:Ted', 'accounts', 'id:10816', 'logs'] 指向accounts从表下的logs从从表 \
* paths参数遵从通用路径的格式,并且指向一个从表(或者从从表) \
* 使用示例:
* ```typescript
* // 将绑定路径下当前行的路径转换为Entity可识别的通用路径
* const fullPaths = EntityPathConverter.toEntityPathArray(this.viewModel.bindingPath, this.bindingData);
* const paths = fullPaths.slice(0, fullPaths.length - 1);
* const bindingPaths = this.viewModel.bindingPath.split('/').filter(item => item);
* const bindingData = this.viewModel.bindingData;
* let nodeCode = bindingPaths[bindingPaths.length - 1];
* nodeCode = nodeCode.substr(0, nodeCode.length - 1);
* // 获取上级实体
* const parentPaths = bindingPaths.slice(0, bindingPaths.length - 1);
* const parentObject = bindingData.getValue(parentPaths) as BindingObject;
* if (!parentObject) {
* throw new Error('上级实体不存在');
* }
* const configPath = `/${nodeCode}_${parentObject[parentObject.primaryKey]}`;
* // 获取绑定路径对应的分页信息
* const { pageIndex = 1, pageSize } = this.repository.entityCollection.getPaginationConfigByPath(configPath);
* const request$ = this.repository.queryChild(paths, pageIndex, pageSize);
* ```
*/

@@ -77,3 +152,6 @@ queryChild(paths: string[], pageIndex: number, pageSize: number, filter?: string, sort?: string): Observable<any>;

* 获取主键为id的实体
* @param id 实体id
* @param id 主表实体主键
* @description
* 获取主表上对应主键的实体,调用该方法成功后实体仓库中仅包含这一个实体 \
* 如果仅仅想要将对应id的实体同步为服务器上的值,请调用 {@link updateEntityById} 方法
*/

@@ -83,2 +161,10 @@ getEntityById(id: string): Observable<T>;

* 更新实体数据
* @param id 主表实体主键
* @description
* 重新从服务器获取主表上对应主键的实体数据 \
* 使用示例:
* ```typescript
* const rootDataId = this.bindingData.list.currentId;
* return this.repository.updateEntityById(rootDataId);
* ```
*/

@@ -88,2 +174,9 @@ updateEntityById(id: string): Observable<T>;

* 更新实体数据并加锁
* @param id 主表实体主键
* @description
* 使用示例:
* ```typescript
* id = this.bindingData.list.currentId; // 编辑当前行
* const edit$ = this.repository.editEntityById(id);
* ```
*/

@@ -93,2 +186,15 @@ editEntityById(id: string): Observable<T>;

* 创建实体
* @param defaultValue 默认值,JSON对象
* @description
* 请求创建一个新的实体,并加载到实体仓库(加载后仓库中只会有这一个实体,适用于卡片) \
* 使用示例:
* ```typescript
* // 在创建新实体后进入编辑状态
* const create$ = this.repository.createEntity();
* create$.pipe(
* tap(() => {
* EditStateUtil.setEditState(this.frameContext, lastModifiedId);
* })
* );
* ```
*/

@@ -98,9 +204,35 @@ createEntity(defaultValue?: any): Observable<T>;

* 追加实体
* @param defaultValue 默认值
* @description 请求创建一个新的实体,并追加到实体仓库(适用于列表)
*/
appendEntity(defaultValue?: any): Observable<T>;
/**
* 创建并插入新实体(向主表插入)
* @param position 插入位置
* @param defaultValue 默认值
* @description
* 关于插入位置,可选值:1或-1,1代表在当前行后,-1代表在当前行前
*/
insert(position: 1 | -1, defaultValue?: any): Observable<any>;
/**
* 创建子实体并插入到指定位置(向从表或从从表插入)
* @param path 父路径
* @param position 插入位置
* @description
* 关于父路径格式,从表形如:"/1/edus",从从表形如:"/1/edus/12/grades" \
* 父路径是由实体主键值和实体属性名成对拼接而成的字符串(用斜杠分隔),指向要插入的那张表 \
* 父路径与实体通用路径是相似的,区别主要是格式上的不同,父路径是字符串而不是数组,主键值前面不需要加冒号,父路径必须指向从表而实体通用路径还可以指向实体的普通属性或者关联 \
* 插入位置参考 {@link insert} \
* 使用示例:
* ```typescript
* // 我们可以通过bindingPath以及bindingData计算拼接出当前行所属从表的父路径
* const append$ = this.repository.insertByPath(path, position);
* ```
*/
insertByPath(path: string, position: 1 | -1): Observable<any>;
/**
* 创建子实体,并追加
* @param fpath 父路径,格式形如:/1/edus(从表)或/1/edus/2/grades(从从表)
* 创建子实体并追加到末尾
* @param fpath 父路径
* @description
* 父路径格式参考 {@link insertByPath}
*/

@@ -110,2 +242,6 @@ appendEntityByPath(fpath: string): Observable<Entity>;

* 根据id删除实体
* @param id 主表实体主键
* @param ifSave 是否保存,可选,默认为true
* @description
* 如果ifSave传递为false,则会添加一个删除变更,等待以后保存
*/

@@ -115,12 +251,24 @@ removeEntityById(id: string, ifSave?: boolean): Observable<boolean>;

* 根据id删除实体并执行保存
* @param id 主表实体主键
*/
removeEntityAndSaveById(id: string): Observable<boolean>;
/**
* 删除子级
* 根据id删除父路径下子表中的实体
* @param fpath 父路径
* @param id 实体主键
* @description
* 父路径格式参考 {@link insertByPath}
*/
removeEntityByPath(fpath: string, id: string): Observable<boolean>;
/**
* 批量删除子级
* @param fPath 路径
* @param ids 子集id集合
* 批量删除子级实体
* @param fPath 父路径
* @param ids 子级id集合
* @description
* ids中各个id之间以逗号分隔,父路径格式参考 {@link insertByPath} \
* 使用示例:
* ```typescript
* // ids字符串可以从表单变量UIState中获取,列表组件的勾选状态变化后会自动更新表单变量
* const remove$ = this.repository.batchRemoveByPath(path, ids);
* ```
*/

@@ -130,2 +278,9 @@ batchRemoveByPath(fPath: string, ids: string): Observable<boolean>;

* 保存主键为id的实体
* @param id 主表实体主键
* @description
* 调用该方法会应用id对应实体上的变更 \
* ```typescript
* const id = this.bindingData.list.currentId as string;
* const save$ = this.repository.saveEntityById(id); // 向服务器提交变更并应用
* ```
*/

@@ -135,2 +290,5 @@ saveEntityById(id: string): Observable<boolean>;

* 批量保存
* @description
* 应用所有变更,比如调用了 {@link removeEntityById} 且未保存则可以通过此方法保存 \
* 在列表服务中,我们可以通过调用该方法实现列表数据的批量保存
*/

@@ -140,2 +298,3 @@ saveEntities(): Observable<boolean>;

* 取消实体变更
* @description 清空所有实体变更,不希望保存变更时调用此方法
*/

@@ -145,5 +304,6 @@ cancelEntityChanges(): Observable<boolean>;

* 批量新增从表/从从表数据
* @param path 实体绑定路径,like 1/childs or 1/childs/11/childchilds
* @param path 父路径,参考 {@link insertByPath}
* @param defaultValues 默认实体数据数组
* @description 后端接口只支持批量新增子表,批量新增主表目前不支持
* @description
* 后端接口只支持批量新增子表,批量新增主表目前不支持
*/

@@ -153,4 +313,3 @@ batchAppendByPath(path: string, defaultValues: Array<any>): Observable<any>;

* 批量新增主表数据
* @param defaultValues 默认值
* @returns
* @param defaultValues 默认实体数据数组
*/

@@ -160,2 +319,3 @@ batchAppend(defaultValues: Array<any>): Observable<any>;

* 清空Repositoy内的数据和变量
* @description 清空所有实体、变量,并清空BeSessionId
*/

@@ -162,0 +322,0 @@ reset(): void;

{
"name": "@farris/bef",
"version": "0.0.12-20210922153825-dev",
"version": "0.0.12-20211009152900-dev",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^7.2.0",

@@ -19,2 +19,5 @@ export * from './lib/types';

export * from './lib/bef_dynamic_control_group_default.service';
export * from './lib/bef_entity_manager';
export * from './lib/dynamic_bef_repository';
export * from './lib/preset_bef_repository';
export declare const VERSION = "ver.";

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc