bimplus-webclient 0.1.11 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bimplus-webclient.js +1 -1
- package/package.json +8 -8
- package/debug.log +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.add=t():e.add=t()}(self,(function(){return(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{BimExplorer:()=>i,BimFilesSelect:()=>p,BimObjectProperties:()=>d,BimPortal:()=>o,BimProjectNavigationBar:()=>c,BimTaskList:()=>l,BimTaskProperties:()=>a,ExportManager:()=>r,ExternalClient:()=>n,getUrlParameter:()=>u});var n=function e(t){this._messageHandlers={},this._clientName=t,e.prototype.initialize=function(){var e=this;window.addEventListener("message",(function(t){var n=t.data;""===n&&(n="{}"),e.messageReceived(JSON.parse(n))}))},e.prototype.addMessageHandler=function(e,t){this._messageHandlers[e]=t},e.prototype.removeMessageHandler=function(e){delete this._messageHandlers[e]},e.prototype.messageReceived=function(e){var t=this._messageHandlers[e.message];t&&t(e.data)},e.prototype.sendMessage=function(e,t,n){var s=document.getElementById(e);s&&s.contentWindow&&s.contentWindow.postMessage(JSON.stringify({messageType:"bimplusMessageIn",message:t,data:n}),"*")},e.prototype.getClientName=function(){return this._clientName}},s=function e(t,n){this._client=n,this._domId=t,e.prototype.sendMessage=function(e,t){this._client&&this._client.sendMessage(this._domId,e,t)},e.prototype.getDOMElementId=function(){return this._domId},e.prototype.initMessageHandlers=function(){},e.prototype.loadIFrame=function(e){var t=document.getElementById(this._domId);t?t.src=e:console.error("DOM Element not found: "+this._domId)}},o=function e(t,n,o,i){s.call(this,t,o),this.onTeamChanged=null,this.onProjectSelected=null,this.onAttachmentSelected=null,e.prototype.getUrl=function(){var e="https://portal";i&&("dev"===i&&(e+="-dev"),"stage"===i&&(e+="-stage"));var t=o?"&external_client=PostMessage:"+o.getClientName():"";return e+=".bimplus.net/?embedded=1&token="+n+t},e.prototype.load=function(){var e=this.getUrl();this.loadIFrame(e),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;s.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("TeamChanged",(function(t){e.onTeamChanged&&e.onTeamChanged(t.id)})),this._client.addMessageHandler("ProjectSelected",(function(t){e.onProjectSelected&&e.onProjectSelected(t.id)})),this._client.addMessageHandler("AttachmentSelected",(function(t){e.onAttachmentSelected&&e.onAttachmentSelected(t&&t.id?t.id:t)}))}};o.prototype=new s,o.prototype.constructor=s;var i=function e(t,n,o,i){s.call(this,t,o),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onPinSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,this.onClickedHyperlink=null,e.prototype.getUrl=function(e,t){var s="https://portal";i&&("dev"===i&&(s+="-dev"),"stage"===i&&(s+="-stage"),"localhost"===i&&(s="http://127.0.0.1:4200"));var l=o?"&external_client=PostMessage:"+o.getClientName():"";return s+=i&&"localhost"===i?"/#/viewer?embedded=1&token="+n+l+"&project_id="+t+"&team_id="+e:".bimplus.net/#/viewer?embedded=1&token="+n+l+"&project_id="+t+"&team_id="+e},e.prototype.load=function(e,t){var n=this.getUrl(e,t);this.loadIFrame(n),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;s.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("PinSelected",(function(t){e.onPinSelected&&e.onPinSelected(t.id)})),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()})),this._client.addMessageHandler("ClickedHyperlink",(function(t){e.onClickedHyperlink&&e.onClickedHyperlink(t.url)}))},e.prototype.resetView=function(){this.sendMessage("ResetView")},e.prototype.centerObject=function(e,t){this.sendMessage("CenterObject",{id:e,flyTo:t})},e.prototype.selectPin=function(e){this.sendMessage("PinSelected",{id:e})},e.prototype.selectObjects=function(e,t,n,s){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:s})},e.prototype.isolateObjects=function(e){this.sendMessage("ObjectsIsolated",{ids:e})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectStructure=function(e,t,n,s,o,i){this.sendMessage("StructureSelected",{id:e,visibleNodes:t,showAll:n,expandAll:s,hideUnreferencedTopology:o,isolate:i})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})},e.prototype.colorizeObjects=function(e,t){this.sendMessage("ColorizeObjects",{ids:e,color:t})}};i.prototype=new s,i.prototype.constructor=s;var l=function e(t,n,o,i){s.call(this,t,o),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,e.prototype.getUrl=function(e,t,s){var l="https://portal";i&&("dev"===i&&(l+="-dev"),"stage"===i&&(l+="-stage"));var a=o?"&external_client=PostMessage:"+o.getClientName():"";return l+=".bimplus.net/viewer/?destination=EMBEDDED_ISSUE_LIST"+(s&&"string"==typeof s?"&source="+s:"")+"&embedded=1&token="+n+a+"/#/embeddedissuelist?project_id="+t+"&team_id="+e},e.prototype.load=function(e,t,n){var s=this.getUrl(e,t,n);this.loadIFrame(s),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;s.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()}))},e.prototype.selectObjects=function(e,t,n,s){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:s})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})}};l.prototype=new s,l.prototype.constructor=s;var a=function e(t,n,o,i){s.call(this,t,o),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onPinSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,this.onClickedHyperlink=null,e.prototype.getUrl=function(e,t,s,l){var a="https://portal";i&&("dev"===i&&(a+="-dev"),"stage"===i&&(a+="-stage"));var d=o?"&external_client=PostMessage:"+o.getClientName():"";return a+=".bimplus.net/viewer/?destination=EMBEDDED_ISSUE"+(l&&"string"==typeof l?"&source="+l:"")+"&embedded=1&token="+n+d+"/#/embeddedissue?project_id="+t+"&issue_id="+s+"&team_id="+e},e.prototype.load=function(e,t,n,s){var o=this.getUrl(e,t,n,s);this.loadIFrame(o),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;s.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("PinSelected",(function(t){e.onPinSelected&&e.onPinSelected(t.id)})),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()})),this._client.addMessageHandler("ClickedHyperlink",(function(t){e.onClickedHyperlink&&e.onClickedHyperlink(t.url)}))},e.prototype.selectPin=function(e){this.sendMessage("PinSelected",{id:e})},e.prototype.selectObjects=function(e,t,n,s){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:s})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})}};a.prototype=new s,a.prototype.constructor=s;var d=function e(t,n,o,i){s.call(this,t,o),e.prototype.getUrl=function(e,t,s){var l="https://portal";i&&("dev"===i&&(l+="-dev"),"stage"===i&&(l+="-stage"));var a=o?"&external_client=PostMessage:"+o.getClientName():"";return l+=".bimplus.net/viewer/#/objproperties?embedded=1&token="+n+a+"&project_id="+t+"&team_id="+e+"&object_id="+s},e.prototype.initMessageHandlers=function(){s.prototype.initMessageHandlers.call(this)},e.prototype.load=function(e,t,n){var s=this.getUrl(e,t,n);this.loadIFrame(s),this.initMessageHandlers()}};d.prototype=new s,d.prototype.constructor=s;var c=function e(t,n,o,i){s.call(this,t,o),e.prototype.getUrl=function(e,t){var s="https://portal";i&&("dev"===i&&(s+="-dev"),"stage"===i&&(s+="-stage"));var l=o?"&external_client=PostMessage:"+o.getClientName():"";return s+=".bimplus.net/viewer/#/projectnavigationbar?embedded=1&token="+n+l+"&project_id="+t+"&team_id="+e},e.prototype.load=function(e,t){var n=this.getUrl(e,t);this.loadIFrame(n),this.initMessageHandlers()}};c.prototype=new s,c.prototype.constructor=s;var r=function e(t,n,s,o){i.call(this,t,n,s,o),this.onExportStarted=null,e.prototype.getUrl=function(e,t){var i="https://portal";o&&("dev"===o&&(i+="-dev"),"stage"===o&&(i+="-stage"),"localhost"===o&&(i="http://127.0.0.1:4200"));var l=s?"&external_client=PostMessage:"+s.getClientName():"";return i+=o&&"localhost"===o?"/#/viewer?embedded=1&token="+n+l+"&project_id="+t+"&team_id="+e:".bimplus.net/export-manager/#/viewer?embedded=1&token="+n+l+"&project_id="+t+"&team_id="+e},e.prototype.initMessageHandlers=function(){var e=this;i.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ExportStarted",(function(t){e.onExportStarted&&e.onExportStarted(t.id)}))}};r.prototype=new i,r.prototype.constructor=i;var p=function e(t,n,o,i){s.call(this,t,o),this.onAttachmentSelected=null,e.prototype.getUrl=function(e,t){var s="https://portal";i&&("dev"===i&&(s+="-dev"),"stage"===i&&(s+="-stage"));var l=o?"&external_client=PostMessage:"+o.getClientName():"";return s+=".bimplus.net/?embedded=1&token="+n+l+"/#/project/"+e+"/"+t+"/files/select"},e.prototype.load=function(e,t){var n=this.getUrl(e,t);this.loadIFrame(n),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;s.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("AttachmentSelected",(function(t){e.onAttachmentSelected&&e.onAttachmentSelected(t&&t.id?t.id:t)}))}};p.prototype=new s,p.prototype.constructor=s;var u=function(e){var t,n,s=decodeURIComponent(window.location.search.substring(1)).split("&");for(n=0;n<s.length;n++)if((t=s[n].split("="))[0]===e)return void 0===t[1]||t[1]};return t})()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.add=t():e.add=t()}(self,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{BimExplorer:()=>i,BimFilesSelect:()=>r,BimObjectProperties:()=>a,BimPortal:()=>o,BimTaskList:()=>l,BimTaskProperties:()=>d,ExportManager:()=>c,ExternalClient:()=>n,getUrlParameter:()=>p});var n=function e(t){this._messageHandlers={},this._clientName=t,e.prototype.initialize=function(){var e=this;window.addEventListener("message",(function(t){var n=t.data;""===n&&(n="{}"),e.messageReceived(JSON.parse(n))}))},e.prototype.addMessageHandler=function(e,t){this._messageHandlers[e]=t},e.prototype.removeMessageHandler=function(e){delete this._messageHandlers[e]},e.prototype.messageReceived=function(e){var t=this._messageHandlers[e.message];t&&t(e.data)},e.prototype.sendMessage=function(e,t,n){var s=document.getElementById(e);s&&s.contentWindow&&s.contentWindow.postMessage(JSON.stringify({messageType:"bimplusMessageIn",message:t,data:n}),"*")},e.prototype.getClientName=function(){return this._clientName}},s=function e(t,n){this._client=n,this._domId=t,e.prototype.sendMessage=function(e,t){this._client&&this._client.sendMessage(this._domId,e,t)},e.prototype.getDOMElementId=function(){return this._domId},e.prototype.initMessageHandlers=function(){},e.prototype.loadIFrame=function(e){var t=document.getElementById(this._domId);t?t.src=e:console.error("DOM Element not found: "+this._domId)}},o=function e(t,n,o,i){s.call(this,t,o),this.onTeamChanged=null,this.onProjectSelected=null,this.onAttachmentSelected=null,e.prototype.getUrl=function(){var e="https://portal";i&&("dev"===i&&(e+="-dev"),"stage"===i&&(e+="-stage"));var t=o?"&external_client=PostMessage:"+o.getClientName():"";return e+=".bimplus.net/?embedded=1&token="+n+t},e.prototype.load=function(){var e=this.getUrl();this.loadIFrame(e),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;s.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("TeamChanged",(function(t){e.onTeamChanged&&e.onTeamChanged(t.id)})),this._client.addMessageHandler("ProjectSelected",(function(t){e.onProjectSelected&&e.onProjectSelected(t.id)})),this._client.addMessageHandler("AttachmentSelected",(function(t){e.onAttachmentSelected&&e.onAttachmentSelected(t&&t.id?t.id:t)}))}};o.prototype=new s,o.prototype.constructor=s;var i=function e(t,n,o,i){s.call(this,t,o),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onPinSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,this.onClickedHyperlink=null,e.prototype.getUrl=function(e,t){var s="https://portal";i&&("dev"===i&&(s+="-dev"),"stage"===i&&(s+="-stage"),"localhost"===i&&(s="http://127.0.0.1:4200"));var l=o?"&external_client=PostMessage:"+o.getClientName():"";return s+=i&&"localhost"===i?"/#/viewer?embedded=1&token="+n+l+"&project_id="+t+"&team_id="+e:".bimplus.net/#/viewer?embedded=1&token="+n+l+"&project_id="+t+"&team_id="+e},e.prototype.load=function(e,t){var n=this.getUrl(e,t);this.loadIFrame(n),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;s.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("PinSelected",(function(t){e.onPinSelected&&e.onPinSelected(t.id)})),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()})),this._client.addMessageHandler("ClickedHyperlink",(function(t){e.onClickedHyperlink&&e.onClickedHyperlink(t.url)}))},e.prototype.resetView=function(){this.sendMessage("ResetView")},e.prototype.centerObject=function(e,t){this.sendMessage("CenterObject",{id:e,flyTo:t})},e.prototype.selectPin=function(e){this.sendMessage("PinSelected",{id:e})},e.prototype.selectObjects=function(e,t,n,s){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:s})},e.prototype.isolateObjects=function(e){this.sendMessage("ObjectsIsolated",{ids:e})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectStructure=function(e,t,n,s,o,i){this.sendMessage("StructureSelected",{id:e,visibleNodes:t,showAll:n,expandAll:s,hideUnreferencedTopology:o,isolate:i})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})},e.prototype.colorizeObjects=function(e,t){this.sendMessage("ColorizeObjects",{ids:e,color:t})}};i.prototype=new s,i.prototype.constructor=s;var l=function e(t,n,o,i){s.call(this,t,o),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,e.prototype.getUrl=function(e,t,s){var l="https://portal";i&&("dev"===i&&(l+="-dev"),"stage"===i&&(l+="-stage"));var d=o?"&external_client=PostMessage:"+o.getClientName():"";return l+=".bimplus.net/viewer/?destination=EMBEDDED_ISSUE_LIST"+(s&&"string"==typeof s?"&source="+s:"")+"&embedded=1&token="+n+d+"/#/embeddedissuelist?project_id="+t+"&team_id="+e},e.prototype.load=function(e,t,n){var s=this.getUrl(e,t,n);this.loadIFrame(s),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;s.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()}))},e.prototype.selectObjects=function(e,t,n,s){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:s})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})}};l.prototype=new s,l.prototype.constructor=s;var d=function e(t,n,o,i){s.call(this,t,o),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onPinSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,this.onClickedHyperlink=null,e.prototype.getUrl=function(e,t,s,l){var d="https://portal";i&&("dev"===i&&(d+="-dev"),"stage"===i&&(d+="-stage"));var a=o?"&external_client=PostMessage:"+o.getClientName():"";return d+=".bimplus.net/viewer/?destination=EMBEDDED_ISSUE"+(l&&"string"==typeof l?"&source="+l:"")+"&embedded=1&token="+n+a+"/#/embeddedissue?project_id="+t+"&issue_id="+s+"&team_id="+e},e.prototype.load=function(e,t,n,s){var o=this.getUrl(e,t,n,s);this.loadIFrame(o),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;s.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("PinSelected",(function(t){e.onPinSelected&&e.onPinSelected(t.id)})),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()})),this._client.addMessageHandler("ClickedHyperlink",(function(t){e.onClickedHyperlink&&e.onClickedHyperlink(t.url)}))},e.prototype.selectPin=function(e){this.sendMessage("PinSelected",{id:e})},e.prototype.selectObjects=function(e,t,n,s){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:s})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})}};d.prototype=new s,d.prototype.constructor=s;var a=function e(t,n,o,i){s.call(this,t,o),e.prototype.getUrl=function(e,t,s){var l="https://portal";i&&("dev"===i&&(l+="-dev"),"stage"===i&&(l+="-stage"));var d=o?"&external_client=PostMessage:"+o.getClientName():"";return l+=".bimplus.net/viewer/#/objproperties?embedded=1&token="+n+d+"&project_id="+t+"&team_id="+e+"&object_id="+s},e.prototype.initMessageHandlers=function(){s.prototype.initMessageHandlers.call(this)},e.prototype.load=function(e,t,n){var s=this.getUrl(e,t,n);this.loadIFrame(s),this.initMessageHandlers()}};a.prototype=new s,a.prototype.constructor=s;var c=function e(t,n,s,o){i.call(this,t,n,s,o),this.onExportStarted=null,e.prototype.getUrl=function(e,t){var i="https://portal";o&&("dev"===o&&(i+="-dev"),"stage"===o&&(i+="-stage"),"localhost"===o&&(i="http://127.0.0.1:4200"));var l=s?"&external_client=PostMessage:"+s.getClientName():"";return i+=o&&"localhost"===o?"/#/viewer?embedded=1&token="+n+l+"&project_id="+t+"&team_id="+e:".bimplus.net/export-manager/#/viewer?embedded=1&token="+n+l+"&project_id="+t+"&team_id="+e},e.prototype.initMessageHandlers=function(){var e=this;i.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ExportStarted",(function(t){e.onExportStarted&&e.onExportStarted(t.id)}))}};c.prototype=new i,c.prototype.constructor=i;var r=function e(t,n,o,i){s.call(this,t,o),this.onAttachmentSelected=null,e.prototype.getUrl=function(e,t){var s="https://portal";i&&("dev"===i&&(s+="-dev"),"stage"===i&&(s+="-stage"));var l=o?"&external_client=PostMessage:"+o.getClientName():"";return s+=".bimplus.net/?embedded=1&token="+n+l+"/#/project/"+e+"/"+t+"/files/select"},e.prototype.load=function(e,t){var n=this.getUrl(e,t);this.loadIFrame(n),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;s.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("AttachmentSelected",(function(t){e.onAttachmentSelected&&e.onAttachmentSelected(t&&t.id?t.id:t)}))}};r.prototype=new s,r.prototype.constructor=s;var p=function(e){var t,n,s=decodeURIComponent(window.location.search.substring(1)).split("&");for(n=0;n<s.length;n++)if((t=s[n].split("="))[0]===e)return void 0===t[1]||t[1]};return t})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bimplus-webclient",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "bim+ web client",
|
|
5
5
|
"main": "dist/bimplus-webclient.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,23 +27,23 @@
|
|
|
27
27
|
"test-watch": "npm run test -- --browsers=Chrome --single-run=false --auto-watch"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@babel/core": "^7.17.
|
|
31
|
-
"@babel/preset-env": "^7.
|
|
32
|
-
"babel-loader": "^8.2.
|
|
30
|
+
"@babel/core": "^7.17.10",
|
|
31
|
+
"@babel/preset-env": "^7.17.10",
|
|
32
|
+
"babel-loader": "^8.2.5",
|
|
33
33
|
"clean-webpack-plugin": "^4.0.0",
|
|
34
34
|
"documentation": "^13.2.5",
|
|
35
|
-
"eslint": "^8.
|
|
35
|
+
"eslint": "^8.14.0",
|
|
36
36
|
"istanbul-instrumenter-loader": "^3.0.1",
|
|
37
|
-
"karma": "^6.3.
|
|
37
|
+
"karma": "^6.3.19",
|
|
38
38
|
"karma-chrome-launcher": "^3.1.1",
|
|
39
39
|
"karma-coverage-istanbul-reporter": "^3.0.2",
|
|
40
40
|
"karma-eslint": "^2.2.0",
|
|
41
41
|
"karma-firefox-launcher": "^2.1.2",
|
|
42
42
|
"karma-qunit": "^4.1.1",
|
|
43
43
|
"karma-webpack": "^5.0.0",
|
|
44
|
-
"qunit": "^2.
|
|
44
|
+
"qunit": "^2.19.1",
|
|
45
45
|
"terser-webpack-plugin": "^5.3.1",
|
|
46
|
-
"webpack": "^5.
|
|
46
|
+
"webpack": "^5.72.0",
|
|
47
47
|
"webpack-cli": "^4.9.2"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
package/debug.log
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
[1006/111116.065:ERROR:file_io.cc(135)] WriteFile: Die Pipe wird gerade geschlossen. (0xE8)
|
|
2
|
-
[1006/133105.393:ERROR:file_io.cc(135)] WriteFile: Die Pipe wird gerade geschlossen. (0xE8)
|
|
3
|
-
[1006/135133.142:ERROR:file_io.cc(135)] WriteFile: Die Pipe wird gerade geschlossen. (0xE8)
|
|
4
|
-
[1007/073516.455:ERROR:file_io.cc(90)] ReadExactly: expected 36, observed 0
|
|
5
|
-
[1008/131440.968:ERROR:file_io.cc(135)] WriteFile: Die Pipe wird gerade geschlossen. (0xE8)
|