bimplus-webcomponents 0.0.66 → 0.0.68
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.
|
@@ -45,4 +45,4 @@ ${i.map((n,o)=>`${o+1}) ${n.toString()}`).join(`
|
|
|
45
45
|
`],encapsulation:3});let t=e;return t})(),sx=(()=>{let e=class e{constructor(n){this.elementRef=n,this.clickOutside=new x}onClick(n){this.elementRef.nativeElement.contains(n)||this.clickOutside.emit()}};e.\u0275fac=function(o){return new(o||e)(w($))},e.\u0275dir=te({type:e,selectors:[["","libClickOutside",""]],hostBindings:function(o,r){o&1&&_("click",function(a){return r.onClick(a.target)},!1,nn)},outputs:{clickOutside:"clickOutside"},standalone:!0});let t=e;return t})(),fu=(()=>{let e=class e{get items(){return this._items}set items(n){n&&(this._items=n)}constructor(n){this.el=n,this.triggerSelected=new x,this.showIcons=!0,this.triggerTitle="",this._showDropdown=!1,this._items=new Array,this._data=void 0,this._position={posX:-2e3,posY:-2e3},this._element=this.el.nativeElement.shadowRoot}get data(){return this._data}set data(n){this._data=n}_clickOutside(){this._stopTriggerPositionTracking(),this._showDropdown=!1}_actionClick(n){if(this._showDropdown=!1,typeof n.disabled=="function"){if(n.disabled?.(this._data))return;n.action?.(this._data);return}n.disabled||n.action?.(this._data)}_disabled(n){return n.disabled?typeof n.disabled=="function"?n.disabled?.(this._data):n.disabled:!1}_calculateContextMenuPosition(){let n=this._element.querySelector(".context-menu-trigger");if(!n)return;let o=n.getBoundingClientRect();this._position.posX=o.right,this._position.posY=o.top}_stopTriggerPositionTracking(){this._interval&&(clearInterval(this._interval),this._interval=void 0)}_startTriggerPositionTracking(){this._interval||(this._interval=setInterval(()=>{this._calculateContextMenuPosition()},50))}_toggleDropdown(n){this._showDropdown=!this._showDropdown,this._calculateContextMenuPosition(),this._startTriggerPositionTracking(),tt(this,"triggerSelected"),n.stopPropagation()}};e.\u0275fac=function(o){return new(o||e)(w($))},e.\u0275cmp=S({type:e,selectors:[["lib-bimplus-context-menu"]],inputs:{showIcons:[b.HasDecoratorInputTransform,"showIcons","showIcons",v],triggerTitle:"triggerTitle",items:"items",data:"data"},outputs:{triggerSelected:"triggerSelected"},standalone:!0,features:[oe,A],decls:3,vars:2,consts:[["libClickOutside","",1,"basic-context-menu",3,"clickOutside"],[1,"context-menu-trigger",3,"click","title"],["class","basic-context-menu__list",3,"ngStyle",4,"ngIf"],[1,"basic-context-menu__list",3,"ngStyle"],[4,"ngFor","ngForOf"],["class","basic-context-menu__item",3,"basic-context-menu__item--disabled","click",4,"ngIf"],["class","basic-context-menu__item__separator",4,"ngIf"],[1,"basic-context-menu__item",3,"click"],["class","basic-context-menu__item__icon",3,"background-image",4,"ngIf"],[1,"basic-context-menu__item__label",3,"title"],[1,"basic-context-menu__item__icon"],[1,"basic-context-menu__item__separator"]],template:function(o,r){o&1&&(d(0,"div",0),_("clickOutside",function(){return r._clickOutside()}),d(1,"div",1),_("click",function(a){return r._toggleDropdown(a)}),p(),C(2,zw,2,5,"ul",2),p()),o&2&&(c(),Z("title",r.triggerTitle),c(),u("ngIf",r._showDropdown))},dependencies:[re,Ee,rn,sx],styles:[`.text-selected{color:#fe5000}.ui-icon22px{width:2.2rem;height:2.2rem;display:inline-block;float:right;border-radius:.4rem;background-position:center center;background-repeat:no-repeat;cursor:pointer}.ui-icon-sidemenu{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat}.touch-ui-icon-sidemenu{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat;width:3.2rem;height:3.2rem}.ui-icon-sidemenu-important{width:2.4rem!important;height:2.4rem!important;background-size:1.8rem 1.8rem!important;background-position:center center;background-repeat:no-repeat}.no-transition{-moz-transition:none;-webkit-transition:none;-o-transition:color 0 ease-in;transition:none}.ml-1{margin-left:1rem}.mr-1{margin-right:1rem}.h-full{height:100%}.fixed{position:fixed}.basic-context-menu{display:block;font-family:var(--context-menu-font-family, "Source Sans Pro", Helvetica, Arial, tahoma, sans-serif);font-size:var(--context-menu-font-size, 1.4rem)}.basic-context-menu>.context-menu-trigger{min-width:var(--context-menu-trigger-width, 2.5rem);max-width:var(--context-menu-trigger-width, 2.5rem);min-height:var(--context-menu-trigger-height, 2.5rem);max-height:var(--context-menu-trigger-height, 2.5rem);background-repeat:no-repeat;background-position:center;background-image:url('data:image/svg+xml,<svg width="4" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4 2a2 2 0 11-4 0 2 2 0 014 0zm0 7a2 2 0 11-4 0 2 2 0 014 0zm-2 9a2 2 0 100-4 2 2 0 000 4z" fill="%23444"/></svg>');background-color:var(--context-menu-trigger-bkg-color, transparent)}.basic-context-menu>.context-menu-trigger:hover{background-image:url('data:image/svg+xml,<svg width="4" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4 2a2 2 0 11-4 0 2 2 0 014 0zm0 7a2 2 0 11-4 0 2 2 0 014 0zm-2 9a2 2 0 100-4 2 2 0 000 4z" fill="%23FE5000"/></svg>')}.basic-context-menu>.basic-context-menu__list{z-index:1;margin:0;position:fixed;top:-2000;left:-2000;translate:var(--context-menu-translate-x, 0) var(--context-menu-translate-y, 0);border:thin solid var(--context-menu-border-color, #E0E0E0);border-top-width:0;padding-top:.8rem;padding-bottom:.8rem;padding-left:0;padding-right:0;border-bottom-left-radius:var(--context-menu-border-radius, .6rem);border-bottom-right-radius:var(--context-menu-border-radius, .6rem);border-top-left-radius:var(--context-menu-border-radius, .6rem);border-top-right-radius:var(--context-menu-border-radius, .6rem);-webkit-box-shadow:0 .2rem .6rem rgba(0,0,0,.5);-moz-box-shadow:0 .2rem .6rem rgba(0,0,0,.5);box-shadow:0 .2rem .6rem #00000080;width:fit-content;min-width:var(--context-menu-min-width, 10rem);max-width:var(--context-menu-max-width, 30rem);background-color:var(--context-menu-bkg-color, #ffffff)}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item{display:flex;flex-direction:row;cursor:pointer;line-height:var(--context-menu-item-line-height, 3.2rem);list-style-type:none;padding-left:1.2rem;padding-right:2.1rem}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item>.basic-context-menu__item__label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:var(--context-menu-font-weight, 700);color:#333}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item>.basic-context-menu__item__icon{height:var(--context-menu-item-line-height, 3.2rem);width:var(--context-menu-item-line-height, 3.2rem);min-width:var(--context-menu-item-line-height, 3.2rem);background-repeat:no-repeat;background-size:var(--context-menu-item-icon-size, 1.8rem);margin-right:.6rem;background-position:center;background-image:url('data:image/svg+xml,<?xml version="1.0" encoding="utf-8"?>%0D%0A<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0D%0A<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"%0D%0A%09 viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">%0D%0A<style type="text/css">%0D%0A%09.st0{fill:%23F05423;}%0D%0A%09.st1{fill:%23FFFFFF;}%0D%0A<\\/style>%0D%0A<path class="st0" d="M15,0C6.7,0,0,6.7,0,15s6.7,15,15,15s15-6.7,15-15S23.3,0,15,0z"/>%0D%0A<g>%0D%0A%09<rect x="14" y="6" class="st1" width="3" height="3"/>%0D%0A</g>%0D%0A<g>%0D%0A%09<polygon class="st1" points="19,23 12,23 12,21 14,21 14,13 12,13 12,11 17,11 17,21 19,21 %09"/>%0D%0A</g>%0D%0A</svg>%0D%0A')}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item:hover{background-color:var(--context-menu-hover-color, #F5F5F5)}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item__separator{border-top:solid .2rem var(--context-menu-separator-color, #f5f5f5)}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item--disabled{background-color:transparent;cursor:default}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item--disabled>*{opacity:var(--context-menu-item-disabled-opacity, .3)}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item--disabled:hover{cursor:default;background-color:var(--context-menu-hover-color, #F5F5F5)}
|
|
46
46
|
`],encapsulation:3});let t=e;return t})(),Qf=(()=>{let e=class e{constructor(n){this.el=n,this.treeDataStringified=null,this.treeTitle="",this.paddingIndent="2.8rem",this.multiSelect=!1,this.oneLevelMultiSelect=!1,this.showFoldersIcons=!1,this.showObjectsIcons=!1,this.enableSelect=!0,this.enableParentHighlighting=!0,this.enableDragAndDrop=!1,this.dataTestPrefix="",this.contextMenus=null,this.customNodeTemplate=null,this.selectedNodes=new x,this._selectionList=void 0,this._transformer=(o,r)=>({expandable:o.children!==void 0,children_count:o.children?.length,name:o.name,id:o.id,level:r,parent:o.parent,nodeType:o.nodeType}),this._treeControl=new bo(o=>o.level,o=>o.expandable),this._treeFlattener=new _o(this._transformer,o=>o.level,o=>o.expandable,o=>o.children),this._dataSource=new Co(this._treeControl,this._treeFlattener),this._isExpendable=(o,r)=>r.expandable}get treeData(){return this._dataSource.data}set treeData(n){this.treeDataStringified=null,this._dataSource.data=n}ngOnInit(){let n=this.el.nativeElement;n&&(n.get_node=this.get_node.bind(this),n.select_node=this.select_node.bind(this)),this._selectionList=new an(this.multiSelect||this.oneLevelMultiSelect),this.treeDataStringified&&this._setNewData(this.treeDataStringified)}expandTree(){this._treeControl.expandAll()}_getNode(n,o){for(let r of o){if(r.id===n)return r;if(r.children){let s=this._getNode(n,r.children);if(s)return s}}return null}get_node(n,o=!1){return typeof n=="string"?this._getNode(n,this._dataSource.data):o?this.el.nativeElement.querySelector(`[node-id='${n.id}']`):this._getNode(n.id,this._dataSource.data)}select_node(n,o=!1){let r=this._treeControl.dataNodes.find(s=>s.id===n);if(r&&this._selectionList&&(this.oneLevelMultiSelect&&this._selectionList.selected.length>0&&this._selectionList.selected[0].parent!==r.parent&&this._selectionList.clear(),!this._selectionList.isSelected(r))){if(this._selectionList.select(r),!this.multiSelect&&!this.oneLevelMultiSelect&&!o){tt(this,"selectedNodes",this._selectionList.selected);return}this.oneLevelMultiSelect||this._toggleDescendantsNodes(r),this.enableParentHighlighting&&this._updateParentSelections(r),o||tt(this,"selectedNodes",this._selectionList.selected)}}reset_selection(){this._selectionList?.clear()}expand_node(n){let o=this._treeControl.dataNodes.find(r=>r.id===n);o&&this._treeControl.expand(o)}is_expanded(n){let o=this._treeControl.dataNodes.find(r=>r.id===n);return o?this._treeControl.isExpanded(o):!1}is_selected(n){if(!this._selectionList)return;let o=this._treeControl.dataNodes.find(r=>r.id===n);return o?this._selectionList?.isSelected(o):!1}_setNewData(n){let o=JSON.parse(n);this._dataSource.data=o??[]}_changedTreeData(n){this._setNewData(n.currentValue)}ngOnChanges(n){(n.multiSelect||n.oneLevelMultiSelect)&&(this._selectionList=new an(this.multiSelect||this.oneLevelMultiSelect)),n.treeDataStringified&&this._changedTreeData(n.treeDataStringified)}_isCustomNodeType(n){return n.nodeType!=null&&n.nodeType!=""}_hasChildren(n){return!n.expandable||n.children_count===void 0?!1:n.children_count>0}_descendantsAllSelected(n){if(!this._selectionList)return!1;let o=this._selectionList,r=this._treeControl.getDescendants(n);return r.length===0?!0:r.length>0&&r.every(a=>o.isSelected(a))}_descendantsPartiallySelected(n){if(!this._selectionList)return!1;let o=this._selectionList;return this._treeControl.getDescendants(n).some(a=>o.isSelected(a))&&!this._descendantsAllSelected(n)}_toggleDescendantsNodes(n){if(!this._selectionList)return;this._selectionList.isSelected(n)?this._selectionList.select(...this._treeControl.getDescendants(n)):this._selectionList.deselect(...this._treeControl.getDescendants(n))}_updateParentSelections(n){if(!this._selectionList)return;let o=n.parent,r=this._treeControl.dataNodes.find(s=>s.id===o);for(;r;)this._descendantsAllSelected(r)?this._selectionList.select(r):this._selectionList.deselect(r),o=r.parent,r=this._treeControl.dataNodes.find(s=>s.id===o)}_toggleNode(n,o){if(o&&this.enableSelect&&this._selectionList){if(n?.ctrlKey||this._selectionList.clear(),this.oneLevelMultiSelect&&this._selectionList.selected.length>0&&this._selectionList.selected[0].parent!==o.parent&&this._selectionList.clear(),this._selectionList.toggle(o),!this.multiSelect&&!this.oneLevelMultiSelect){tt(this,"selectedNodes",this._selectionList.selected);return}this.oneLevelMultiSelect||this._toggleDescendantsNodes(o),this.enableParentHighlighting&&this._updateParentSelections(o),tt(this,"selectedNodes",this._selectionList.selected)}}_isSelected(n){return this._selectionList?this._selectionList?.isSelected(n):!1}};e.\u0275fac=function(o){return new(o||e)(w($))},e.\u0275cmp=S({type:e,selectors:[["lib-bimplus-flat-tree"]],inputs:{treeDataStringified:"treeDataStringified",treeTitle:"treeTitle",paddingIndent:"paddingIndent",multiSelect:[b.HasDecoratorInputTransform,"multiSelect","multiSelect",v],oneLevelMultiSelect:[b.HasDecoratorInputTransform,"oneLevelMultiSelect","oneLevelMultiSelect",v],showFoldersIcons:[b.HasDecoratorInputTransform,"showFoldersIcons","showFoldersIcons",v],showObjectsIcons:[b.HasDecoratorInputTransform,"showObjectsIcons","showObjectsIcons",v],enableSelect:[b.HasDecoratorInputTransform,"enableSelect","enableSelect",v],enableParentHighlighting:[b.HasDecoratorInputTransform,"enableParentHighlighting","enableParentHighlighting",v],enableDragAndDrop:[b.HasDecoratorInputTransform,"enableDragAndDrop","enableDragAndDrop",v],dataTestPrefix:"dataTestPrefix",contextMenus:"contextMenus",treeData:"treeData",customNodeTemplate:"customNodeTemplate"},outputs:{selectedNodes:"selectedNodes"},standalone:!0,features:[oe,Oe,A],decls:5,vars:4,consts:[[1,"tree-container"],["class","tree-title",4,"ngIf"],[3,"dataSource","treeControl"],["matTreeNodePadding","","class","object-node",3,"matTreeNodePaddingIndent","dragable-node","selected-node","title","click",4,"matTreeNodeDef"],["matTreeNodePadding","","class","folder-node",3,"matTreeNodePaddingIndent","dragable-node","selected-node","title","click",4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"tree-title"],["matTreeNodePadding","",1,"object-node",3,"click","matTreeNodePaddingIndent","title"],["mat-icon-button","","disabled",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"items","data","triggerSelected",4,"ngIf"],["class","icon object-icon",4,"ngIf"],[1,"node-label"],["class","custom-drag-placeholder",4,"cdkDragPlaceholder"],[1,"icon","object-icon"],[1,"custom-drag-placeholder"],[3,"triggerSelected","items","data"],["matTreeNodePadding","",1,"folder-node",3,"click","matTreeNodePaddingIndent","title"],["mat-icon-button","","matTreeNodeToggle",""],[1,"icon","expand-collapse-icon"],["class","icon folder-icon",4,"ngIf"],[1,"icon","folder-icon"]],template:function(o,r){o&1&&(d(0,"div",0),C(1,Zw,2,1,"div",1),d(2,"cdk-tree",2),C(3,Yw,5,10,"cdk-tree-node",3)(4,tx,6,15,"cdk-tree-node",4),p()()),o&2&&(c(),u("ngIf",r.treeTitle),c(),u("dataSource",r._dataSource)("treeControl",r._treeControl),c(2),u("matTreeNodeDefWhen",r._isExpendable))},dependencies:[Na,Ta,Fa,Va,Ea,Aa,Sa,vo,Zn,bn,fu,N,Ee,kt],styles:[`.text-selected[_ngcontent-%COMP%]{color:#fe5000}.ui-icon22px[_ngcontent-%COMP%]{width:2.2rem;height:2.2rem;display:inline-block;float:right;border-radius:.4rem;background-position:center center;background-repeat:no-repeat;cursor:pointer}.ui-icon-sidemenu[_ngcontent-%COMP%]{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat}.touch-ui-icon-sidemenu[_ngcontent-%COMP%]{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat;width:3.2rem;height:3.2rem}.ui-icon-sidemenu-important[_ngcontent-%COMP%]{width:2.4rem!important;height:2.4rem!important;background-size:1.8rem 1.8rem!important;background-position:center center;background-repeat:no-repeat}.tree-container[_ngcontent-%COMP%]{background-color:var(--flat-tree-bkg-color, #ffffff);width:calc(100% - 2 * var(--flat-tree-node-indent, 1rem));padding:var(--flat-tree-node-indent, 1rem);font-family:var(--flat-tree-font-family, "Source Sans Pro", Helvetica, Arial, tahoma, sans-serif);font-size:var(--flat-tree-font-size, 1.3rem);font-weight:var(--flat-tree-font-weight, 700);color:var(--flat-tree-color, #444444)}.tree-container[_ngcontent-%COMP%] > .tree-title[_ngcontent-%COMP%]{background-color:transparent;font-size:var(--flat-tree-title-font-size, 1.6rem);margin-bottom:1rem}.cdk-tree[_ngcontent-%COMP%]{background-color:transparent;width:100%}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node[_ngcontent-%COMP%]{--mat-icon-button-touch-target-display: none;background-color:transparent;display:flex;align-items:center;cursor:pointer;line-height:var(--flat-tree-node-line-height, 2.4rem)}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node.folder-node[_ngcontent-%COMP%]{font-weight:var(--flat-tree-folder-font-weight, 700)}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node.object-node[_ngcontent-%COMP%]{font-weight:var(--flat-tree-object-font-weight, 400)}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node[_ngcontent-%COMP%] > span.node-label[_ngcontent-%COMP%]{overflow:hidden;flex:1}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node[_ngcontent-%COMP%] > span.node-label[_ngcontent-%COMP%] > div.node-label[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node[_ngcontent-%COMP%] lib-bimplus-context-menu[_ngcontent-%COMP%]{--context-menu-trigger-width: 2.4rem;--context-menu-trigger-height: var(--flat-tree-node-line-height, 2.4rem);--context-menu-trigger-bkg-color: transparent;--context-menu-translate-x: 1rem}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node[_ngcontent-%COMP%]:not(.selected-node):not(:hover) lib-bimplus-context-menu[_ngcontent-%COMP%]{display:none}.cdk-tree-node.dragable-node[_ngcontent-%COMP%]:hover{background-color:var(--flat-tree-hover-color, #F5F5F5);background-image:url('data:image/svg+xml,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">%0D%0A<rect x="11" y="2" width="2" height="2" fill="%237B7B7B"/>%0D%0A<rect x="6" y="2" width="2" height="2" fill="%237B7B7B"/>%0D%0A<rect x="11" y="8" width="2" height="2" fill="%237B7B7B"/>%0D%0A<rect x="6" y="8" width="2" height="2" fill="%237B7B7B"/>%0D%0A<rect x="11" y="14" width="2" height="2" fill="%237B7B7B"/>%0D%0A<rect x="6" y="14" width="2" height="2" fill="%237B7B7B"/>%0D%0A</svg>%0D%0A');background-repeat:no-repeat;background-size:var(--flat-tree-node-icon-size, 1.8rem);background-position:left center}.mat-mdc-icon-button[_ngcontent-%COMP%]{padding:.2rem;width:var(--flat-tree-node-line-height, 2.4rem);height:var(--flat-tree-node-line-height, 2.4rem)}.selected-node[_ngcontent-%COMP%]{color:var(--flat-tree-selected-node-color, #2188ca);font-weight:var(--flat-tree-selected-node-font-weight, 700)!important}.selected-all-descendants-nodes[_ngcontent-%COMP%]{color:var(--flat-tree-selected-node-color, #2188ca)}.selected-partially-descendants-nodes[_ngcontent-%COMP%]{color:var(--flat-tree-partially-selected-node-color, rgba(0, 71, 171, .55))}.custom-drag-placeholder[_ngcontent-%COMP%]{height:0px}.icon[_ngcontent-%COMP%]{width:var(--flat-tree-node-icon-size, 1.8rem);height:var(--flat-tree-node-icon-size, 1.8rem);margin-right:.4rem;background-position:center;background-size:var(--flat-tree-node-icon-size, 1.8rem)}.icon.folder-icon[_ngcontent-%COMP%]{background:var(--flat-tree-folder-icon, url('data:image/svg+xml,<?xml version="1.0" encoding="utf-8"?>%0D%0A<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0D%0A<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"%0D%0A%09 viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">%0D%0A<style type="text/css">%0D%0A%09.st0{fill:%23444444;}%0D%0A<\\/style>%0D%0A<path class="st0" d="M17,7V5V4V1h-6L8,3H0v16h2h15l3-12H17z M8,5h0.6l0.5-0.3L11.6,3H15v1v1v2H3l-1,4V5H8z M15.4,17H2.6l2-8H15h2%0D%0A%09h0.4L15.4,17z"/>%0D%0A</svg>%0D%0A') no-repeat);background-size:var(--flat-tree-folder-icon-size, 1.6rem);background-position:center}.icon.object-icon[_ngcontent-%COMP%]{background:var(--flat-tree-object-icon, url('data:image/svg+xml,<?xml version="1.0" encoding="utf-8"?>%0D%0A<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0D%0A<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"%0D%0A%09 viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">%0D%0A<style type="text/css">%0D%0A%09.st0{fill:%23444;}%0D%0A<\\/style>%0D%0A<g>%0D%0A%09<path class="st0" d="M6,9h4V7H6V9z"/>%0D%0A%09<path class="st0" d="M6,4v2h8V4H6z"/>%0D%0A%09<path class="st0" d="M6,12h4v-2H6V12z"/>%0D%0A%09<path class="st0" d="M17,1H3v18h10l0,0l0,0l4-4h0l0,0V1z M13,15v2H5V3h10v12H13z"/>%0D%0A</g>%0D%0A</svg>%0D%0A') no-repeat);background-size:var(--flat-tree-object-icon-size, 1.6rem);background-position:center}.icon.expand-collapse-icon.expand-more-icon[_ngcontent-%COMP%]{background:var(--flat-tree-node-expand-icon, url('data:image/svg+xml,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">%0D%0A<path d="M7.81235 5.64988C7.48497 5.38797 7 5.62106 7 6.04031L7 11.9597C7 12.3789 7.48497 12.612 7.81235 12.3501L11.512 9.39043C11.7622 9.19027 11.7622 8.80973 11.512 8.60957L7.81235 5.64988Z" fill="%23ADADAD"/>%0D%0A</svg>%0D%0A') no-repeat);background-size:var(--flat-tree-expand-collapse-icon-size, 1.8rem);background-position:center}.icon.expand-collapse-icon.collapse-icon[_ngcontent-%COMP%]{background:var(--flat-tree-node-collapse-icon, url('data:image/svg+xml,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">%0D%0A<path d="M12.3501 7.81235C12.612 7.48497 12.3789 7 11.9597 7H6.04031C5.62106 7 5.38797 7.48497 5.64988 7.81235L8.60957 11.512C8.80973 11.7622 9.19027 11.7622 9.39043 11.512L12.3501 7.81235Z" fill="%23444444"/>%0D%0A</svg>%0D%0A') no-repeat);background-size:var(--flat-tree-expand-collapse-icon-size, 1.8rem);background-position:center}`]});let t=e;return t})();var Xf=(()=>{let e=class e extends bi{constructor(n){super(n),this._menuItemsList=[{mode:"touch",class:"icon-touch-mode-toolbar",textId:"_Touch_Mode"},{mode:"desktop",class:"icon-desktop-mode-toolbar",textId:"_Desktop_Mode"}],this._menuOpened=!1,this.isTouch=!1,this.selectedMode="desktop",this.bimplusTouchModeSelected=new x}get _selectedItem(){return this._menuItemsList.find(n=>n.mode==this.selectedMode)}ngOnChanges(n){n.localizedStrings&&(this.localizedStrings=n.localizedStrings.currentValue)}_menuItemClicked(n){tt(this,"bimplusTouchModeSelected",n)}_toggleOpened(){this._menuOpened=!this._menuOpened}};e.\u0275fac=function(o){return new(o||e)(w(E))},e.\u0275cmp=S({type:e,selectors:[["lib-bimplus-touch-menu"]],inputs:{isTouch:[b.HasDecoratorInputTransform,"isTouch","isTouch",v],selectedMode:"selectedMode"},outputs:{bimplusTouchModeSelected:"bimplusTouchModeSelected"},standalone:!0,features:[Q([E]),oe,H,Oe,A],decls:7,vars:10,consts:[[1,"bimcomp-overlay",3,"click","ngClass"],[1,"dropdown",3,"click","ngClass"],[1,"dropdown-toggle"],[1,"main-icon",3,"ngClass"],[1,"caret"],[1,"bimcomp-dropdown-menu",3,"ngClass"],["class","bimcomp-dropdown-menu-item",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"bimcomp-dropdown-menu-item",3,"click","ngClass"],[1,"icon",3,"ngClass"]],template:function(o,r){o&1&&(d(0,"div",0),_("click",function(){return r._toggleOpened()}),p(),d(1,"div",1),_("click",function(){return r._toggleOpened()}),d(2,"div",2),O(3,"div",3)(4,"span",4),p(),d(5,"ul",5),C(6,ox,5,7,"li",6),p()()),o&2&&(u("ngClass",r._menuOpened?"open":""),c(),u("ngClass",Ze(5,Bf,r._menuOpened,r.isTouch)),c(2),u("ngClass",r._selectedItem!=null&&r._selectedItem.class?r._selectedItem==null?null:r._selectedItem.class:""),c(2),u("ngClass",le(8,nx,r._menuOpened)),c(),u("ngForOf",r._menuItemsList))},dependencies:[N,q,re,J,ue],styles:[`.dropdown{position:relative;cursor:pointer;display:flex;justify-content:space-around;align-items:center;width:4em;height:3.25em;font-family:Source Sans Pro,Helvetica,Arial,tahoma,sans-serif}.dropdown.open{color:#555;background-color:#e7e7e7}.dropdown-toggle{position:relative;margin-left:1em;margin-right:.3em;background-size:1.4em 1.4em;padding-top:.31em;display:flex;flex-direction:row;align-items:center;font-weight:600;color:#777;min-width:2.8em;min-height:2.81em}.dropdown-toggle .caret{display:inline-block;width:0;height:0;margin-left:.4em;vertical-align:middle;border-top:.25em dashed;border-top:.25em solid;border-right:.25em solid transparent;border-left:.25em solid transparent}.dropdown-toggle .main-icon{padding-top:.1em}.dropdown-toggle .icon{margin:0}.is-touch .dropdown-toggle{position:relative;margin-left:.44em;margin-right:.44em;padding-bottom:.22em;min-width:0;min-height:0;padding-top:0;padding-left:0}.is-touch .dropdown-toggle .caret{display:none}.dropdown-toggle:hover{color:#333}.bimcomp-dropdown-menu{font-family:Source Sans Pro,Helvetica,Arial,tahoma,sans-serif;position:absolute;top:100%;right:0;z-index:1;display:none;min-width:11.43em;padding:.5em 0 .57em;margin:0;font-size:.875em;list-style:none;background-color:#fff;border:thin solid rgba(0,0,0,.15);border-radius:0 0 .29em .29em;-webkit-box-shadow:0 .43em .86em rgba(0,0,0,.175);box-shadow:0 .43em .86em #0000002d;text-decoration-color:#333;text-decoration-line:none;text-decoration-style:solid;line-height:2.71em;font-weight:400}.bimcomp-dropdown-menu div{font-size:1em}.bimcomp-dropdown-menu .noselect{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.bimcomp-dropdown-menu li{display:flex;flex-direction:row;align-items:center;cursor:pointer;box-sizing:content-box;padding:.2em 2.2em .2em 2em;white-space:nowrap}.bimcomp-dropdown-menu li span{display:inline-block;flex:1 0 auto;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.bimcomp-dropdown-menu li.selected,.bimcomp-dropdown-menu li.selected:hover{background-color:#ffe6da}.bimcomp-dropdown-menu li:hover{background-color:#f5f5f5}.bimcomp-dropdown-menu ul,.bimcomp-dropdown-menu li{list-style:none}.bimcomp-dropdown-menu .divider{height:1px;margin:.5em 0;overflow:hidden;background-color:#e5e5e5;cursor:auto;padding:0}.bimcomp-dropdown-menu.open{display:flex;flex-direction:column}.icon{flex-shrink:0;display:inline-block;vertical-align:middle;margin:0 1.36em 0 0;width:1.57em;height:1.57em;background-position:center;background-repeat:no-repeat}.main-icon{flex-shrink:0;display:inline-block;vertical-align:middle;width:1.375em;height:1.375em;background-size:contain;background-position:center;background-repeat:no-repeat}.icon-touch-mode-toolbar{background:url('data:image/svg+xml,<?xml version="1.0" encoding="utf-8"?>%0D%0A<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0D%0A<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"%0D%0A%09 viewBox="0 0 18 18" style="enable-background:new 0 0 18 18;" xml:space="preserve">%0D%0A<style type="text/css">%0D%0A%09.st0{fill:%23444444;}%0D%0A<\\/style>%0D%0A<g>%0D%0A%09<path class="st0" d="M14.4,11.9L11.1,10c-0.2,0-0.4,0-0.5,0L10,10.7V6c0-1-2-2-2,0v7.8L5,13c-0.1,0-0.1,0-0.2,0%0D%0A%09%09c-0.2,0-0.5,0.3-0.6,0.4L3.7,14l3.8,3.7C7.7,18,8,18,8.3,18h5.3c0.6,0,0.9-0.2,0.9-0.8l0.4-4c0-0.1,0-0.1,0-0.1%0D%0A%09%09C15,12.6,14.9,12.2,14.4,11.9z"/>%0D%0A%09<polygon class="st0" points="3,2 5,2 5,0 1,0 1,4 3,4 %09"/>%0D%0A%09<polygon class="st0" points="5,10 3,10 3,8 1,8 1,12 5,12 %09"/>%0D%0A%09<polygon class="st0" points="15,4 17,4 17,0 13,0 13,2 15,2 %09"/>%0D%0A</g>%0D%0A</svg>%0D%0A') no-repeat center}.icon-desktop-mode-toolbar{background:url('data:image/svg+xml,<?xml version="1.0" encoding="utf-8"?>%0D%0A<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0D%0A<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"%0D%0A%09 viewBox="0 0 18 18" style="enable-background:new 0 0 18 18;" xml:space="preserve">%0D%0A<style type="text/css">%0D%0A%09.st0{fill:%23444444;}%0D%0A<\\/style>%0D%0A<g>%0D%0A%09<polygon class="st0" points="3,2 5,2 5,0 1,0 1,4 3,4 %09"/>%0D%0A%09<polygon class="st0" points="5,10 3,10 3,8 1,8 1,12 5,12 %09"/>%0D%0A%09<polygon class="st0" points="15,4 17,4 17,0 13,0 13,2 15,2 %09"/>%0D%0A%09<path class="st0" d="M11.5,12.6C11.3,12.7,8,14.9,8,15.1C8,11.4,8,7.7,8,4c0,0,8.6,7.6,8.7,7.7c-1.3,0.1-2.5,0.2-3.9,0.4%0D%0A%09%09c0.1,0.1,2,4.6,2.2,4.8c0.1,0.1-1,0.4-1.4,0.7C13.7,17.4,11.5,12.6,11.5,12.6z"/>%0D%0A</g>%0D%0A</svg>%0D%0A') no-repeat center}.bimcomp-overlay{position:fixed;width:100vw;height:100vh;left:0;top:0;display:none}.bimcomp-overlay.open{display:block;z-index:1}
|
|
47
47
|
`],encapsulation:3});let t=e;return t})(),Kf=(()=>{let e=class e{constructor(){this.defaultLang="en",this.currentLanguage$=new Ye(this.defaultLang),this.currentLanguageStrings$=new Ye({}),this._languageFilesUri="/assets"}set languageFilesUri(n){this._languageFilesUri=n}get currentLanguage(){return this.currentLanguage$.getValue()}set currentLanguageStrings(n){this.currentLanguageStrings$.next(n)}get currentLanguageStrings(){return this.currentLanguageStrings$.getValue()}setCurrentLanguage(n){return _i(this,null,function*(){this.currentLanguage$.next(n),yield this.fetchLanguageStrings(n)})}extractLocalizedStrings(n){let o={};for(let[r,s]of Object.entries(this.currentLanguageStrings))typeof s=="string"&&n.find(a=>a===r)&&(o[r]=s);return o}fetchLanguageStrings(n){return _i(this,null,function*(){let r=yield(yield fetch(`${this._languageFilesUri}/strings_${n}.json`)).json();if(n!==this.defaultLang){let a=yield(yield fetch(`${this._languageFilesUri}/strings_en.json`))?.json?.(),l=a&&Object.keys(a);if(l?.length)for(let m in l){let f=l[m];r[f]||(r[f]=a[f])}}this.currentLanguageStrings$.next(r)})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $a(t){t||(pp($a),t=_e(js));let e=new ge(i=>t.onDestroy(i.next.bind(i)));return i=>i.pipe(lt(e))}function lx(t,e){if(t&1){let i=P();d(0,"lib-bimplus-main-menu",18),_("bimplusMainMenuClicked",function(o){y(i);let r=g();return M(r.bimplusMainMenuClicked(o))})("bimplusMainMenuOverlayClicked",function(){y(i);let o=g();return M(o.bimplusMainMenuOverlayClicked())}),p()}if(t&2){let i=g();u("selectedLanguage",i.languageStringsService.currentLanguage)("localizedStrings",i.languageStringsService.currentLanguageStrings)("isTouch",i.isTouch)("showHorizontalMenuIcons",i.isTouch)}}var Jf=(()=>{let e=class e{constructor(n,o){this.translateService=n,this.languageStringsService=o,this.isTouch=!1,this.isBimplusMainMenuVisible=!0,this.isNavbarMenuActive=!0,this.selectedZoom="100",this.messages="",this.contextMenuItems=[],this.contextMenuData=[],this.treeData=[],this.treeDataStringified=null,this.treeDataContextMenu=null,this.languageStringsService.currentLanguage$.pipe($a()).subscribe({next:r=>{this.translateService.use(r)}}),this.languageStringsService.currentLanguageStrings$.pipe($a()).subscribe({next:r=>{this.translateService.setTranslation(this.languageStringsService.currentLanguage,r)}})}log(n,o,r,s){let a=`EVENT : ${n}. `+(r?`INDEX: ${o?.detail?.index} ACTION: ${o?.detail?.action}`:`VALUE: ${o?.detail}`);s?window.alert(a):console.log(a)}ngOnInit(){this.initLanguage(),window.BimPlus={bimplusNavbarClicked:n=>{this.log("Navbar clicked",n),n?.detail==="menu"&&(this.isNavbarMenuActive=!this.isNavbarMenuActive)}},this.initMessages(),this.initContextMenu()}bimplusLanguageSelected(n){this.log("bimplusLanguageSelected",{detail:n}),this._switchLanguage(n)}_switchLanguage(n){n&&this.languageStringsService.setCurrentLanguage(n)}bimplusUserMenuClicked(n){this.log("bimplusUserMenuClicked",n,!0)}bimplusTouchModeSelected(n){this.log("bimplusTouchModeSelected",{detail:n}),this.isTouch=n==="touch"}bimplusMainMenuClicked(n){this.log("bimplusUserMenuClicked",{detail:n},!0,!0)}bimplusMainMenuOverlayClicked(){this.log("bimplusMainMenuOverlayClicked",{detail:""},!1,!0)}bimplusStorageInfoClicked(n){this.log("bimplusStorageInfoClicked",{detail:n},!1,!0)}bimplusContactClicked(n){this.log("bimplusContactClicked",{detail:n},!1,!0)}bimplusZoomSelected(n){this.log("bimplusZoomSelected",{detail:n}),this.selectedZoom=n;let o=62.5*(Number(n)/100),r=document.querySelector("html");r&&(r.style.fontSize=o+"%")}bimplusNotifyDeleteMessage(n){let o=JSON.parse(n),r=this.messages&&JSON.parse(this.messages)?.messages?.filter?.(s=>s.id!==o.id);this.messages=r&&JSON.stringify({messages:r})||""}bimplusNotifyDeleteAllMessages(){this.messages=""}bimplusNotifyMessageAction(n){this.log("This is notify message action handler",{detail:n},!1,!0)}selectedNodes(n){this.log("selectedNodes",{detail:JSON.stringify(n)})}initLanguage(){this.languageStringsService.languageFilesUri="/assets/languages",this._switchLanguage("en")}initMessages(){this.messages=JSON.stringify({messages:[{id:"ALFA",type:"info",title:"Import successful",text:"kolizia.ifc has been imported",linkText:"Click here to open the project",link:"#/"},{id:"BETA",type:"info",title:"Clash detection done",text:"Clash detection on the project House1 with preset has been done.",linkText:"Click here to open the project"},{id:"OMEGA",type:"info",title:"Model export finished",text:"",linkText:"Click here to download `00 EMPTY__revision_comparison1.ifc` model."},{id:"OMEGA1",type:"info",title:"Model export finished",text:"Structural model included. Reinforcement of Hospital.ifc has been imported.",linkText:["Click here to download `XXXX` model.","Click here to download `YYYYY` model."],links:["#/1","#/2"]},{id:"TEST3",type:"info",title:"Clash detection done",text:"Clash detection on the project Bridge with preset has been done."},{id:"TEST4",type:"info",title:"Clash detection done",text:"Clash detection on the project Bridge with preset has been done."},{id:"TEST5",type:"info",title:"Clash detection done",text:"Clash detection on the project Bridge with preset has been done."},{id:"TEST6",type:"info",title:"Clash detection done",text:"Clash detection on the project Bridge with preset has been done."}]})}initContextMenu(){this.contextMenuItems=[{id:"openFile",title:"Open file",icon:"./favicon.ico",tooltip:"Open file tooltip",disabled:!0},{id:"separator"},{id:"closeFile",title:"Close file",icon:"./favicon.ico",disabled:()=>!0},{id:"deleteFile",title:"Delete file",icon:"./favicon.ico"},{id:"separator"},{id:"renameFile",title:"Rename file",icon:"./favicon.ico",action:n=>{console.log(n)},tooltip:"Rename file tooltip"},{id:"renameFile",title:"Looooooooooooooooooooooooooooooooooooooooooooooooooooong item name",icon:"./favicon.ico",action:n=>{console.log(n)},tooltip:"Looooooooooooooooooooooooooooooooooooooooooooooooooooong item name"}],this.contextMenuData=[{name:"Folder 5",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"File 3 - 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-24",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23"}]}]}setupTreeData(n){let o=[];switch(n){case"Folders3":o.push({name:"Folders3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07",children:[{name:"Folder 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"Folder 1 - 1 very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong name",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",children:[{name:"File 1 - 1 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-03",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"},{name:"File 1 - 1 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-04",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"},{name:"File 1 - 1 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-05",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"}]},{name:"File 1 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-06",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01"},{name:"File 1 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-07",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01"}]},{name:"Folder 4",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-22",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[]},{name:"Folder 5",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"File 3 - 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-24",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23"},{name:"File 3 - 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-25",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23"}]}]});break;case"Folders2":o.push({name:"Folders2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07",children:[{name:"Folder 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"Folder 1 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",children:[{name:"File 1 - 1 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-03",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"},{name:"File 1 - 1 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-04",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"},{name:"File 1 - 1 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-05",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"}]},{name:"Folder 1 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-06",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",children:[]},{name:"Folder 1 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-07",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",children:[]}]},{name:"Folder 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-08",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"File 2 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-09",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-08"},{name:"Folder 2 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-10",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-08",children:[{name:"File 2 - 2 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-11",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-10"},{name:"File 2 - 2 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-12",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-10"},{name:"File 2 - 2 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-13",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-10"}]},{name:"File 2 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-14",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-08"}]},{name:"Folder 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-15",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"File 3 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-16",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-15"},{name:"File 3 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-17",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-15"},{name:"Folder 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-18",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-15",children:[{name:"File 3 - 3 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-19",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-18"},{name:"File 3 - 3 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-20",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-18"},{name:"File 3 - 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-21",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-18"}]}]},{name:"Folder 4",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-22",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[]},{name:"Folder 5",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"File 3 - 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-24",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23"}]}]});break;default:o.push({id:"dbc08cd2-9f50-465b-9b54-da29c4988d07",children:[{id:"78b8109a-aac3-4307-8ddb-745a64710d36",children:[],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07",name:"General folder",type:"DocumentFolder",number:1,level:1,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"123756a8-c06f-4954-8851-93f95b1629c1",children:[{id:"36a92f23-98e7-42db-b150-b0dae491d355",children:[{id:"2bbfbce5-beb8-49b1-bbef-430b061318c9",structureElementId:"86b65d1e-0490-45f2-abd6-402a176bc219",parent:"36a92f23-98e7-42db-b150-b0dae491d355",name:"Allplan_QTO-QTO-2024-02-16-08-27-15.xlsx",type:"Attachment",number:0,level:3},{id:"9eb72c59-f019-4679-9bf4-07f8055388d4",structureElementId:"cc9c8694-4d70-4066-9475-d4375e67d7a0",parent:"36a92f23-98e7-42db-b150-b0dae491d355",name:"Allplan_QTO-QTO-2024-02-16-08-24-49.xlsx",type:"Attachment",number:0,level:3}],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"ELEMENTS",type:"DocumentFolder",number:1,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"73ad9d94-3ace-4124-b533-b4e2cbe07ab1",children:[],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"IFC",type:"DocumentFolder",number:2,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"0378d1be-7b77-4705-a347-adda0ec04674",children:[],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"LOG",type:"DocumentFolder",number:3,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"abfd2209-225b-452d-91c9-d33269e47334",children:[],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"ISSUES",type:"DocumentFolder",number:4,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"094c8e91-7023-4c1e-8afb-6480d34cd4d1",children:[],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"SLIDESHOWS",type:"DocumentFolder",number:5,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"d5d9ea2f-0337-4321-8917-3d485a76247a",children:[],color:4285988983,folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"OTHER MODELS",type:"DocumentFolder",number:6,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}}],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07",name:"MY DOCUMENTS",type:"DocumentFolder",number:2,level:1,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}}],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,parent:"d71d6daf-1114-42c4-84ad-5807837cac7b",name:"Folders1",type:"DocumentFolder",number:0,level:0});break}n==="Folders3"?(this.treeData=o,this.treeDataStringified=null,this.treeDataContextMenu={objectContextMenuitems:[{id:"openFile",title:"Open file",icon:"./favicon.ico",tooltip:"Open file tooltip"},{id:"separator"},{id:"closeFile",title:"Close file",icon:"./favicon.ico",disabled:()=>!0},{id:"deleteFile",title:"Delete file",icon:"./favicon.ico",disabled:()=>!1},{id:"separator"},{id:"renameFile",title:"Rename file",icon:"./favicon.ico",action:r=>{console.log(r)},tooltip:"Rename file tooltip"}],folderContextMenuitems:[{id:"renameFolder",title:"Rename folder",icon:"./favicon.ico",tooltip:"Rename folder tooltip"},{id:"deletFolder",title:"Delete folder",tooltip:"Delete folder tooltip"}]}):(this.treeData=[],this.treeDataStringified=JSON.stringify(o),this.treeDataContextMenu=null)}getNode(){let o=document.querySelector("lib-bimplus-flat-tree")?.get_node?.({id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23"},!1);console.log(o)}selectNode(){document.querySelector("lib-bimplus-flat-tree")?.select_node?.("dbc08cd2-9f50-465b-9b54-da29c4988d07-24")}};e.\u0275fac=function(o){return new(o||e)(w(E),w(Kf))},e.\u0275cmp=S({type:e,selectors:[["app-root"]],standalone:!0,features:[A],decls:24,vars:23,consts:[[1,"bimplus-components-navbar","visible"],["isNavbarMessageVisible","false","teamInfo","test_team","projectInfo","00 Quickstart project and some very very long text","teamInfoOffset","0.9rem","isDev","true","isStage","true","isNavbarInfoVisible","true",3,"isNavbarMenuVisible","isNavbarMenuActive","isTouch"],["showIcons","true","triggerTitle","File context menu",3,"items","data"],[3,"bimplusNotifyMessageAction","bimplusNotifyDeleteMessage","bimplusNotifyDeleteAllMessages","selectedLanguage","localizedStrings","messages"],[3,"bimplusStorageInfoClicked","selectedLanguage","localizedStrings","usedStorage"],[3,"bimplusContactClicked"],[3,"bimplusZoomSelected","selectedZoom"],[3,"bimplusTouchModeSelected","selectedMode","selectedLanguage","localizedStrings"],[3,"bimplusLanguageSelected","selectedLanguage"],["userName","Test User","userPhotoUrl","https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTMS36RRWYaTysG471mlormL1bYN3-QIabbo30rDitKRoaDs3EA&s","buttonTitle","testuser@allplan.com","allowRcaItem","true",3,"bimplusLanguageSelected","bimplusUserMenuClicked","selectedLanguage","localizedStrings","isTouch"],["projectName","00 Quickstart project and some very very long text","projectImageUrl","https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTMS36RRWYaTysG471mlormL1bYN3-QIabbo30rDitKRoaDs3EA&s","isDev","true","isStage","true","teammembersSubscribed","true","propertymanagerSubscribed","true","projectActiveItem","projectlist","menuActiveItem","projectmembers",3,"selectedLanguage","localizedStrings","isTouch","showHorizontalMenuIcons"],[1,"tree-data","tree-data-1",3,"click"],[1,"tree-data","tree-data-2",3,"click"],[1,"tree-data","tree-data-3",3,"click"],[1,"tree-data","tree-data-3","get-node",3,"click"],[1,"tree-data","tree-data-3","select-node",3,"click"],[1,"tree"],["enableSelect","true","enableParentHighlighting","true","multiSelect","true","oneLevelMultiSelect","false","showFoldersIcons","true","showObjectsIcons","true","enableDragAndDrop","true","treeTitle","FLAT TREE","paddingIndent","2.8rem",1,"flat-tree",3,"selectedNodes","treeData","treeDataStringified","contextMenus"],["projectName","00 Quickstart project and some very very long text","projectImageUrl","https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTMS36RRWYaTysG471mlormL1bYN3-QIabbo30rDitKRoaDs3EA&s","isDev","true","isStage","true","teammembersSubscribed","true","propertymanagerSubscribed","true","projectActiveItem","projectlist","menuActiveItem","projectmembers",3,"bimplusMainMenuClicked","bimplusMainMenuOverlayClicked","selectedLanguage","localizedStrings","isTouch","showHorizontalMenuIcons"]],template:function(o,r){o&1&&(d(0,"div",0)(1,"lib-bimplus-navbar",1),O(2,"lib-bimplus-context-menu",2),d(3,"lib-bimplus-notify",3),_("bimplusNotifyMessageAction",function(a){return r.bimplusNotifyMessageAction(a)})("bimplusNotifyDeleteMessage",function(a){return r.bimplusNotifyDeleteMessage(a)})("bimplusNotifyDeleteAllMessages",function(){return r.bimplusNotifyDeleteAllMessages()}),p(),d(4,"lib-bimplus-storage-info",4),_("bimplusStorageInfoClicked",function(a){return r.bimplusStorageInfoClicked(a)}),p(),d(5,"lib-bimplus-contact",5),_("bimplusContactClicked",function(a){return r.bimplusContactClicked(a)}),p(),d(6,"lib-bimplus-zoom",6),_("bimplusZoomSelected",function(a){return r.bimplusZoomSelected(a)}),p(),d(7,"lib-bimplus-touch-menu",7),_("bimplusTouchModeSelected",function(a){return r.bimplusTouchModeSelected(a)}),p(),d(8,"lib-bimplus-language-menu",8),_("bimplusLanguageSelected",function(a){return r.bimplusLanguageSelected(a)}),p(),d(9,"lib-bimplus-user-menu",9),_("bimplusLanguageSelected",function(a){return r.bimplusLanguageSelected(a)})("bimplusUserMenuClicked",function(a){return r.bimplusUserMenuClicked(a)}),p()()(),C(10,lx,1,4,"lib-bimplus-main-menu",10),d(11,"div",11),_("click",function(){return r.setupTreeData("Folders1")}),D(12,"Folders1"),p(),d(13,"div",12),_("click",function(){return r.setupTreeData("Folders2")}),D(14,"Folders2"),p(),d(15,"div",13),_("click",function(){return r.setupTreeData("Folders3")}),D(16,"Folders3"),p(),d(17,"div",14),_("click",function(){return r.getNode()}),D(18,"get_node (from Folders3)"),p(),d(19,"div",15),_("click",function(){return r.selectNode()}),D(20,"select_node (from Folders3)"),p(),d(21,"div",16)(22,"lib-bimplus-scrollable-container")(23,"lib-bimplus-flat-tree",17),_("selectedNodes",function(a){return r.selectedNodes(a)}),p()()()),o&2&&(c(),u("isNavbarMenuVisible",r.isBimplusMainMenuVisible)("isNavbarMenuActive",r.isNavbarMenuActive)("isTouch",r.isTouch),c(),u("items",r.contextMenuItems)("data",r.contextMenuData),c(),u("selectedLanguage",r.languageStringsService.currentLanguage)("localizedStrings",r.languageStringsService.currentLanguageStrings)("messages",r.messages),c(),u("selectedLanguage",r.languageStringsService.currentLanguage)("localizedStrings",r.languageStringsService.currentLanguageStrings)("usedStorage",90),c(2),u("selectedZoom",r.selectedZoom),c(),u("selectedMode",r.isTouch?"touch":"desktop")("selectedLanguage",r.languageStringsService.currentLanguage)("localizedStrings",r.languageStringsService.currentLanguageStrings),c(),u("selectedLanguage",r.languageStringsService.currentLanguage),c(),u("selectedLanguage",r.languageStringsService.currentLanguage)("localizedStrings",r.languageStringsService.currentLanguageStrings)("isTouch",r.isTouch),c(),j(10,r.isNavbarMenuActive?10:-1),c(13),u("treeData",r.treeData)("treeDataStringified",r.treeDataStringified)("contextMenus",r.treeDataContextMenu))},dependencies:[zf,Zf,$f,Uf,Gf,Wf,qf,Yf,Qf,fu,Hf,Xf],styles:[`*,html{font-size:100%;margin:0;padding:0}html{font-size:62.5%}body{background-color:gray}.hidden{display:none}bimplus-main-menu{height:50vh}.tree-data{background-color:#fff;font-size:1.5rem;width:fit-content;padding:.5rem;border-style:solid;border-width:.2rem;border-radius:.5rem;margin:.5rem;cursor:pointer}.tree{width:20%;height:250px}
|
|
48
|
-
`],encapsulation:2});let t=e;return t})();var hu=class{handle(e){return console.warn("Missing translation string "+e.key),e.key}};_i(void 0,null,function*(){let t=yield wg({providers:[Tc(J.forRoot({missingTranslationHandler:{provide:di,useClass:hu},isolate:!0,defaultLanguage:"en"}))]}),e=Re(k1,{injector:t.injector});customElements.define("bimplus-connection-designer",e);let i=Re(D1,{injector:t.injector});customElements.define("bimplus-connection-designer-result",i);let n=Re(I1,{injector:t.injector});customElements.define("bimplus-contact",n);let o=Re(O1,{injector:t.injector});customElements.define("bimplus-floating-bar-hide-objects",o);let r=Re(S1,{injector:t.injector});customElements.define("bimplus-floating-bar-isolation-objects",r);let s=Re(T1,{injector:t.injector});customElements.define("bimplus-floating-bar-project-navigator",s);let a=Re(F1,{injector:t.injector});customElements.define("bimplus-language-menu",a);let l=Re(N1,{injector:t.injector});customElements.define("bimplus-main-menu",l);let m=Re(j1,{injector:t.injector});customElements.define("bimplus-navbar",m);let f=Re(H1,{injector:t.injector});customElements.define("bimplus-notify",f);let h=Re(ya,{injector:t.injector});customElements.define("bimplus-project-menu",h);let k=Re($1,{injector:t.injector});customElements.define("bimplus-sidenav",k);let I=Re(ro,{injector:t.injector});customElements.define("bimplus-sidenav-drawer-content",I);let L=Re(U1,{injector:t.injector});customElements.define("bimplus-storage-info",L);let B=Re(Y1,{injector:t.injector});customElements.define("bimplus-tool-hub",B);let W=Re(Q1,{injector:t.injector});customElements.define("bimplus-touch-menu",W);let G=Re(X1,{injector:t.injector});customElements.define("bimplus-user-menu",G);let Me=Re(K1,{injector:t.injector});customElements.define("bimplus-zoom",Me);let De=Re(Tf,{injector:t.injector});customElements.define("bimplus-object-navigator",De);let $e=Re(qt,{injector:t.injector});customElements.define("bimplus-flat-tree",$e);let st=Re(wo,{injector:t.injector});customElements.define("bimplus-context-menu",st);let pe=Re(ba,{injector:t.injector});customElements.define("loading-spinner",pe);let et=Re(Ff,{injector:t.injector});customElements.define("bimplus-tooltip-message-element",et);let at=Re(Rn,{injector:t.injector});customElements.define("bimplus-scrollable-container-element",at);let vi=Re(Jf,{injector:t.injector});customElements.define("app-
|
|
48
|
+
`],encapsulation:2});let t=e;return t})();var hu=class{handle(e){return console.warn("Missing translation string "+e.key),e.key}};_i(void 0,null,function*(){let t=yield wg({providers:[Tc(J.forRoot({missingTranslationHandler:{provide:di,useClass:hu},isolate:!0,defaultLanguage:"en"}))]}),e=Re(k1,{injector:t.injector});customElements.define("bimplus-connection-designer",e);let i=Re(D1,{injector:t.injector});customElements.define("bimplus-connection-designer-result",i);let n=Re(I1,{injector:t.injector});customElements.define("bimplus-contact",n);let o=Re(O1,{injector:t.injector});customElements.define("bimplus-floating-bar-hide-objects",o);let r=Re(S1,{injector:t.injector});customElements.define("bimplus-floating-bar-isolation-objects",r);let s=Re(T1,{injector:t.injector});customElements.define("bimplus-floating-bar-project-navigator",s);let a=Re(F1,{injector:t.injector});customElements.define("bimplus-language-menu",a);let l=Re(N1,{injector:t.injector});customElements.define("bimplus-main-menu",l);let m=Re(j1,{injector:t.injector});customElements.define("bimplus-navbar",m);let f=Re(H1,{injector:t.injector});customElements.define("bimplus-notify",f);let h=Re(ya,{injector:t.injector});customElements.define("bimplus-project-menu",h);let k=Re($1,{injector:t.injector});customElements.define("bimplus-sidenav",k);let I=Re(ro,{injector:t.injector});customElements.define("bimplus-sidenav-drawer-content",I);let L=Re(U1,{injector:t.injector});customElements.define("bimplus-storage-info",L);let B=Re(Y1,{injector:t.injector});customElements.define("bimplus-tool-hub",B);let W=Re(Q1,{injector:t.injector});customElements.define("bimplus-touch-menu",W);let G=Re(X1,{injector:t.injector});customElements.define("bimplus-user-menu",G);let Me=Re(K1,{injector:t.injector});customElements.define("bimplus-zoom",Me);let De=Re(Tf,{injector:t.injector});customElements.define("bimplus-object-navigator",De);let $e=Re(qt,{injector:t.injector});customElements.define("bimplus-flat-tree",$e);let st=Re(wo,{injector:t.injector});customElements.define("bimplus-context-menu",st);let pe=Re(ba,{injector:t.injector});customElements.define("loading-spinner",pe);let et=Re(Ff,{injector:t.injector});customElements.define("bimplus-tooltip-message-element",et);let at=Re(Rn,{injector:t.injector});customElements.define("bimplus-scrollable-container-element",at);let vi=Re(Jf,{injector:t.injector});customElements.define("bimplus-app-wrapper-internal-element",vi)});export{hu as BimplusMissingTranslationHandler};
|