bimplus-webclient 0.1.8 → 0.1.11

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/debug.log ADDED
@@ -0,0 +1,5 @@
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)
@@ -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()}(window,(function(){return function(e){function t(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,s){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:s})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(s,o,function(t){return e[t]}.bind(null,o));return s},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"ExternalClient",(function(){return s})),n.d(t,"BimPortal",(function(){return i})),n.d(t,"BimExplorer",(function(){return l})),n.d(t,"BimTaskList",(function(){return d})),n.d(t,"BimTaskProperties",(function(){return a})),n.d(t,"BimObjectProperties",(function(){return r})),n.d(t,"BimProjectNavigationBar",(function(){return c})),n.d(t,"ExportManager",(function(){return u})),n.d(t,"BimFilesSelect",(function(){return p})),n.d(t,"getUrlParameter",(function(){return h}));var s=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}},o=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)}},i=function e(t,n,s,i){o.call(this,t,s),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=s?"&external_client=PostMessage:"+s.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;o.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)}))}};i.prototype=new o,i.prototype.constructor=o;var l=function e(t,n,s,i){o.call(this,t,s),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 o="https://portal";i&&("dev"===i&&(o+="-dev"),"stage"===i&&(o+="-stage"),"localhost"===i&&(o="http://127.0.0.1:4200"));var l=s?"&external_client=PostMessage:"+s.getClientName():"";return o+=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;o.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})}};l.prototype=new o,l.prototype.constructor=o;var d=function e(t,n,s,i){o.call(this,t,s),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,e.prototype.getUrl=function(e,t,o){var l="https://portal";i&&("dev"===i&&(l+="-dev"),"stage"===i&&(l+="-stage"));var d=s?"&external_client=PostMessage:"+s.getClientName():"";return l+=".bimplus.net/viewer/?destination=EMBEDDED_ISSUE_LIST"+(o&&"string"==typeof o?"&source="+o:"")+"&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;o.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})}};d.prototype=new o,d.prototype.constructor=o;var a=function e(t,n,s,i){o.call(this,t,s),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,o,l){var d="https://portal";i&&("dev"===i&&(d+="-dev"),"stage"===i&&(d+="-stage"));var a=s?"&external_client=PostMessage:"+s.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="+o+"&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;o.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 o,a.prototype.constructor=o;var r=function e(t,n,s,i){o.call(this,t,s),e.prototype.getUrl=function(e,t,o){var l="https://portal";i&&("dev"===i&&(l+="-dev"),"stage"===i&&(l+="-stage"));var d=s?"&external_client=PostMessage:"+s.getClientName():"";return l+=".bimplus.net/viewer/#/objproperties?embedded=1&token="+n+d+"&project_id="+t+"&team_id="+e+"&object_id="+o},e.prototype.initMessageHandlers=function(){o.prototype.initMessageHandlers.call(this)},e.prototype.load=function(e,t,n){var s=this.getUrl(e,t,n);this.loadIFrame(s),this.initMessageHandlers()}};r.prototype=new o,r.prototype.constructor=o;var c=function e(t,n,s,i){o.call(this,t,s),e.prototype.getUrl=function(e,t){var o="https://portal";i&&("dev"===i&&(o+="-dev"),"stage"===i&&(o+="-stage"));var l=s?"&external_client=PostMessage:"+s.getClientName():"";return o+=".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 o,c.prototype.constructor=o;var u=function e(t,n,s,o){l.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;l.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ExportStarted",(function(t){e.onExportStarted&&e.onExportStarted(t.id)}))}};u.prototype=new l,u.prototype.constructor=l;var p=function e(t,n,s,i){o.call(this,t,s),this.onAttachmentSelected=null,e.prototype.getUrl=function(e,t){var o="https://portal";i&&("dev"===i&&(o+="-dev"),"stage"===i&&(o+="-stage"));var l=s?"&external_client=PostMessage:"+s.getClientName():"";return o+=".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;o.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("AttachmentSelected",(function(t){e.onAttachmentSelected&&e.onAttachmentSelected(t&&t.id?t.id:t)}))}};p.prototype=new o,p.prototype.constructor=o;var h=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]}}])}));
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})()}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimplus-webclient",
3
- "version": "0.1.8",
3
+ "version": "0.1.11",
4
4
  "description": "bim+ web client",
5
5
  "main": "dist/bimplus-webclient.js",
6
6
  "license": "MIT",
@@ -12,7 +12,8 @@
12
12
  "eslint": "eslint src/** test/**",
13
13
  "build": "npm run eslint && webpack --config webpack.dev.js",
14
14
  "build-prod": "npm run eslint && webpack --config webpack.prod.js",
15
- "npm-publish": "npm run build-prod && npm publish",
15
+ "yarn-publish": "npm run build-prod && yarn publish",
16
+ "yarn-publish-branch": "npm run build-prod && yarn publish --tag",
16
17
  "npm-pack": "npm run build-prod && npm pack",
17
18
  "build-doc": "documentation build ./src/*.js --config doc_config.yml -f html -o ./documentation",
18
19
  "build-docMd": "documentation build ./src/*.js -f md -o ./documentation/Bimplus_WebClient_doc.md",
@@ -26,26 +27,26 @@
26
27
  "test-watch": "npm run test -- --browsers=Chrome --single-run=false --auto-watch"
27
28
  },
28
29
  "devDependencies": {
29
- "@babel/core": "^7.9.6",
30
- "@babel/preset-env": "^7.9.6",
31
- "babel-loader": "^8.1.0",
32
- "babel-minify-webpack-plugin": "^0.3.1",
33
- "clean-webpack-plugin": "^3.0.0",
34
- "documentation": "^13.0.0",
35
- "eslint": "^7.0.0",
30
+ "@babel/core": "^7.17.8",
31
+ "@babel/preset-env": "^7.16.11",
32
+ "babel-loader": "^8.2.4",
33
+ "clean-webpack-plugin": "^4.0.0",
34
+ "documentation": "^13.2.5",
35
+ "eslint": "^8.12.0",
36
36
  "istanbul-instrumenter-loader": "^3.0.1",
37
- "karma": "^5.0.9",
38
- "karma-chrome-launcher": "^3.1.0",
37
+ "karma": "^6.3.17",
38
+ "karma-chrome-launcher": "^3.1.1",
39
39
  "karma-coverage-istanbul-reporter": "^3.0.2",
40
40
  "karma-eslint": "^2.2.0",
41
- "karma-firefox-launcher": "^1.3.0",
41
+ "karma-firefox-launcher": "^2.1.2",
42
42
  "karma-qunit": "^4.1.1",
43
- "karma-webpack": "^4.0.2",
44
- "qunit": "^2.10.0",
45
- "webpack": "^4.43.0",
46
- "webpack-cli": "^3.3.11"
43
+ "karma-webpack": "^5.0.0",
44
+ "qunit": "^2.18.0",
45
+ "terser-webpack-plugin": "^5.3.1",
46
+ "webpack": "^5.7.0",
47
+ "webpack-cli": "^4.9.2"
47
48
  },
48
49
  "dependencies": {
49
- "jquery": "3.5.1"
50
+ "jquery": "3.6.0"
50
51
  }
51
52
  }