smarteye-e-components 0.0.23 → 0.0.25
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");exports.RecursionDeviceGroup=void 0;(e=>{(n=>{function i(a){const l=[];for(let c=0;c<a;c++)l.push({id:"testId",pid:"",name:`device-${c}`,online:c%2==0,channels:[]});return l}function o(a){const l=[];for(let c=0;c<a;c++)l.push({id:`groupid-${c}`,name:`group-${c}`,pid:"",onlineCount:0,totalCount:0,devices:i(10),items:o(a-c-1)});return l}function s(a){return{name:"hah",onlineCount:0,totalCount:0,items:o(a)}}n.RandomDeviceGroup=s})(e.Test||(e.Test={}));function r(n,i){for(let o=0;o<n.length;o++)i(n[o]),r(n[o].items,i)}(n=>{function i(o){const s={},a={};return r(o.items,l=>{s[l.id]=l;for(let c=0;c<l.devices.length;c++)a[l.devices[c].id]=l.devices[c]}),{getGroup(l){return s[l]},getDevice(l){return a[l]},foreachGroup(l){for(let c in s)l(s[c])}}}n.AccessSession=i})(e.Utils||(e.Utils={}))})(exports.RecursionDeviceGroup||(exports.RecursionDeviceGroup={}));const z=t.defineComponent({props:{countInfo:Object,controlParams:Object},setup(e){function r(o,s){if(s){let a=0;return s.items.forEach(l=>{a+=r(o,l)}),o(s)+a}return 0}const n=t.computed(()=>r(o=>o.onlineCount,e.countInfo));return{totalCount:t.computed(()=>r(o=>o.totalCount,e.countInfo)),onlineCount:n}}});const y=(e,r)=>{const n=e.__vccOpts||e;for(const[i,o]of r)n[i]=o;return n},H={class:"root"},A={class:"count-show"};function T(e,r,n,i,o,s){return t.openBlock(),t.createElementBlock("div",H,[t.renderSlot(e.$slots,"default",{},void 0,!0),t.createElementVNode("span",A,t.toDisplayString(e.onlineCount)+"/"+t.toDisplayString(e.totalCount),1)])}const O=y(z,[["render",T],["__scopeId","data-v-56ab9f59"]]),N=Object.freeze({left:0,top:0,width:16,height:16}),V=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),C=Object.freeze({...N,...V});Object.freeze({...C,body:"",hidden:!1});({...N});const F=Object.freeze({width:null,height:null}),j=Object.freeze({...F,...V});function L(e,r){const n={...e};for(const i in r){const o=r[i],s=typeof o;i in F?(o===null||o&&(s==="string"||s==="number"))&&(n[i]=o):s===typeof n[i]&&(n[i]=i==="rotate"?o%4:o)}return n}const R=/[\s,]+/;function x(e,r){r.split(R).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function U(e,r=0){const n=e.replace(/^-?[0-9.]*/,"");function i(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:i(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?i(s):0)}}return r}const W=/(-?[0-9.]*[0-9]+[0-9.]*)/g,q=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function $(e,r,n){if(r===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*r*n)/n;if(typeof e!="string")return e;const i=e.split(W);if(i===null||!i.length)return e;const o=[];let s=i.shift(),a=q.test(s);for(;;){if(a){const l=parseFloat(s);isNaN(l)?o.push(s):o.push(Math.ceil(l*r*n)/n)}else o.push(s);if(s=i.shift(),s===void 0)return o.join("");a=!a}}function K(e,r){const n={...C,...e},i={...j,...r},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,i].forEach(g=>{const p=[],f=g.hFlip,u=g.vFlip;let w=g.rotate;f?u?w+=2:(p.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),p.push("scale(-1 1)"),o.top=o.left=0):u&&(p.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),p.push("scale(1 -1)"),o.top=o.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=o.height/2+o.top,p.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:p.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:S=o.width/2+o.left,p.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(o.left!==o.top&&(S=o.left,o.left=o.top,o.top=S),o.width!==o.height&&(S=o.width,o.width=o.height,o.height=S)),p.length&&(s='<g transform="'+p.join(" ")+'">'+s+"</g>")});const a=i.width,l=i.height,c=o.width,h=o.height;let m,d;return a===null?(d=l===null?"1em":l==="auto"?h:l,m=$(d,c/h)):(m=a==="auto"?c:a,d=l===null?$(m,h/c):l==="auto"?h:l),{attributes:{width:m.toString(),height:d.toString(),viewBox:o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+h.toString()},body:s}}const J=/\sid="(\S+)"/g,Q="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let X=0;function Y(e,r=Q){const n=[];let i;for(;i=J.exec(e);)n.push(i[1]);return n.length&&n.forEach(o=>{const s=typeof r=="function"?r(o):r+(X++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+"$3")}),e}function Z(e,r){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in r)n+=" "+i+'="'+r[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function ee(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function te(e){return'url("data:image/svg+xml,'+ee(e)+'")'}const I={...j,inline:!1},oe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ne={display:"inline-block"},k={backgroundColor:"currentColor"},M={backgroundColor:"transparent"},B={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},E={webkitMask:k,mask:k,background:M};for(const e in E){const r=E[e];for(const n in B)r[e+n]=B[n]}const b={};["horizontal","vertical"].forEach(e=>{const r=e.slice(0,1)+"Flip";b[e+"-flip"]=r,b[e.slice(0,1)+"-flip"]=r,b[e+"Flip"]=r});function P(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const re=(e,r)=>{const n=L(I,r),i={...oe},o=r.mode||"svg",s={},a=r.style,l=typeof a=="object"&&!(a instanceof Array)?a:{};for(let f in r){const u=r[f];if(u!==void 0)switch(f){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[f]=u===!0||u==="true"||u===1;break;case"flip":typeof u=="string"&&x(n,u);break;case"color":s.color=u;break;case"rotate":typeof u=="string"?n[f]=U(u):typeof u=="number"&&(n[f]=u);break;case"ariaHidden":case"aria-hidden":u!==!0&&u!=="true"&&delete i["aria-hidden"];break;default:{const w=b[f];w?(u===!0||u==="true"||u===1)&&(n[w]=!0):I[f]===void 0&&(i[f]=u)}}}const c=K(e,n),h=c.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){i.style={...s,...l},Object.assign(i,h);let f=0,u=r.id;return typeof u=="string"&&(u=u.replace(/-/g,"_")),i.innerHTML=Y(c.body,u?()=>u+"ID"+f++:"iconifyVue"),t.h("svg",i)}const{body:m,width:d,height:v}=e,g=o==="mask"||(o==="bg"?!1:m.indexOf("currentColor")!==-1),p=Z(m,{...h,width:d+"",height:v+""});return i.style={...s,"--svg":te(p),width:P(h.width),height:P(h.height),...ne,...g?k:M,...l},t.h("span",i)},D=Object.create(null);function _(e,r){D[e]=r}const ie=t.defineComponent({inheritAttrs:!1,render(){const e=this.$attrs,r=e.icon,n=typeof r=="string"?D[r]:typeof r=="object"?r:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:re({...C,...n},e)}}),se=t.defineComponent({components:{CountShow:O,Icon:ie},name:"group-show",props:{deviceGroup:Object,controlParams:Object},setup(e){const r=t.inject("theme");function n(s){var a;return((a=s&&s.filter(l=>{var c;return!((c=e.controlParams)!=null&&c.onlyShowOnline)||l.online}))==null?void 0:a.filter(l=>{var c,h;return e.controlParams?l.name.indexOf((c=e.controlParams)==null?void 0:c.searchStr)>=0||l.id.indexOf((h=e.controlParams)==null?void 0:h.searchStr)>=0:!0}))||[]}const i=t.computed(()=>{var s,a;const l=e.controlParams.searchStr;return l.length==0||e.deviceGroup&&((s=e.deviceGroup)==null?void 0:s.name.indexOf(l))>0?!0:(a=e.deviceGroup)==null?void 0:a.devices.find(c=>c.name.indexOf(e.controlParams.searchStr)>=0||c.id.indexOf(e.controlParams.searchStr)>=0)}),o=t.ref(!1);return{showGroup:i,FilterDevice:n,bShow:o,theme:r}}});const le={key:0,class:"head-op"},ce=["title"],ae={class:"group-slot"},ue={key:0,style:{"margin-left":"26px"}},de={class:"device-show-div"},he=["title"],pe={class:"device-slot"};function fe(e,r,n,i,o,s){var a,l;const c=t.resolveComponent("Icon"),h=t.resolveComponent("CountShow"),m=t.resolveComponent("group-show");return e.showGroup?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("group "+e.theme)},[t.createVNode(h,{countInfo:e.deviceGroup,controlParams:e.controlParams},{default:t.withCtx(()=>{var d,v,g,p,f;return[e.deviceGroup&&e.deviceGroup.devices.length+e.deviceGroup.items.length>0?(t.openBlock(),t.createElementBlock("span",le,[e.bShow?(t.openBlock(),t.createBlock(c,{key:1,icon:"minus",width:"20",onClick:r[1]||(r[1]=u=>e.bShow=!e.bShow),class:"handle-ls-svg"})):(t.openBlock(),t.createBlock(c,{key:0,icon:"plus",width:"20",onClick:r[0]||(r[0]=u=>e.bShow=!e.bShow),class:"handle-ls-svg"}))])):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"group-head-db-click",onDblclick:r[2]||(r[2]=u=>e.bShow=!e.bShow)},[t.createVNode(c,{icon:"group",width:"24",class:"group-avatar"}),t.createElementVNode("span",{class:"group-name",title:(d=e.deviceGroup)==null?void 0:d.name},t.toDisplayString(((v=e.deviceGroup)==null?void 0:v.name)&&((g=e.deviceGroup)==null?void 0:g.name.length)>0?(p=e.deviceGroup)==null?void 0:p.name:(f=e.deviceGroup)==null?void 0:f.id),9,ce)],32),t.createElementVNode("div",ae,[t.renderSlot(e.$slots,"group",{group:e.deviceGroup},void 0,!0)])]}),_:3},8,["countInfo","controlParams"]),e.bShow?(t.openBlock(),t.createElementBlock("div",ue,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((a=e.deviceGroup)==null?void 0:a.items,(d,v)=>(t.openBlock(),t.createBlock(m,{key:v,deviceGroup:d,controlParams:e.controlParams},{group:t.withCtx(({group:g})=>[t.renderSlot(e.$slots,"group",{group:g},void 0,!0)]),device:t.withCtx(({device:g,group:p})=>[t.renderSlot(e.$slots,"device",{device:g,group:p},void 0,!0)]),_:2},1032,["deviceGroup","controlParams"]))),128)),t.createElementVNode("div",de,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.FilterDevice((l=e.deviceGroup)==null?void 0:l.devices),(d,v)=>(t.openBlock(),t.createElementBlock("div",{key:v,class:t.normalizeClass(["device",d.online&&"online-device"])},[t.createVNode(c,{icon:"user",width:"16",class:"device-avatar"}),t.createElementVNode("span",{title:d.id,class:"device-name"},t.toDisplayString(d.name.length>0?d.name:d.id),9,he),t.createElementVNode("div",pe,[t.renderSlot(e.$slots,"device",{device:d,group:e.deviceGroup},void 0,!0)])],2))),128))])])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)}const ge=y(se,[["render",fe],["__scopeId","data-v-100c06ff"]]),me={width:1024,height:1024,body:'<path fill="currentColor" d="M384 192v640l384-320.064z"/>'},ve={width:1024,height:1024,body:'<path fill="currentColor" d="M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"/>'},we={width:1024,height:1024,body:'<path fill="currentColor" d="M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0a208 208 0 0 1 416 0z"/>'},Se={width:1024,height:1024,body:'<path fill="currentColor" d="M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"/>'},_e={width:1024,height:1024,body:'<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'};_("right",me);_("group",ve);_("user",we);_("plus",Se);_("minus",_e);const be=t.defineComponent({components:{CountShow:O,GroupShow:ge},props:{deviceGroup:Object,theme:{type:String,default:""}},methods:{onCheckBoxChange(){this.controlParams.onlyShowOnline=!this.controlParams.onlyShowOnline},onSearchChange(){var e;this.inputSearchRef&&(this.controlParams.searchStr=(e=this.inputSearchRef)==null?void 0:e.value)},search(e){this.controlParams.searchStr=e}},setup(e){t.provide("theme",e.theme);const r=t.ref({onlyShowOnline:!1,searchStr:""});return{inputSearchRef:t.ref(),controlParams:r}}});const ke=e=>(t.pushScopeId("data-v-7e0a8034"),e=e(),t.popScopeId(),e),ye={class:"device-group-list"},Ce={class:"search-panel"},$e=ke(()=>t.createElementVNode("label",{for:"onlineShow"},"\u53EA\u663E\u793A\u5728\u7EBF\u8BBE\u5907",-1)),Ie={class:"device-panel"};function Be(e,r,n,i,o,s){var a;const l=t.resolveComponent("CountShow"),c=t.resolveComponent("group-show");return t.openBlock(),t.createElementBlock("div",ye,[t.createElementVNode("div",Ce,[t.createVNode(l,{countInfo:e.deviceGroup},{default:t.withCtx(()=>[t.createElementVNode("input",{type:"checkbox",id:"onlineShow",value:"onlineShow",onChange:r[0]||(r[0]=(...h)=>e.onCheckBoxChange&&e.onCheckBoxChange(...h))},null,32),$e]),_:1},8,["countInfo"])]),t.createElementVNode("div",Ie,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((a=e.deviceGroup)==null?void 0:a.items,(h,m)=>(t.openBlock(),t.createBlock(c,{controlParams:e.controlParams,key:m,deviceGroup:h},{group:t.withCtx(({group:d})=>[t.renderSlot(e.$slots,"group",{group:d},void 0,!0)]),device:t.withCtx(({device:d,group:v})=>[t.renderSlot(e.$slots,"device",{device:d,group:v},void 0,!0)]),_:2},1032,["controlParams","deviceGroup"]))),128))])])}const Ee=y(be,[["render",Be],["__scopeId","data-v-7e0a8034"]]),G={RecursionDeviceGroup:Ee},Pe={install(e){for(const r in G){const n=G[r];e.component(r,n)}}};exports.default=Pe;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");exports.RecursionDeviceGroup=void 0;(e=>{(n=>{function i(l){const a=[];for(let c=0;c<l;c++)a.push({id:"testId",pid:"",name:`device-${c}`,online:c%2==0,channels:[]});return a}function o(l){const a=[];for(let c=0;c<l;c++)a.push({id:`groupid-${c}`,name:`group-${c}`,pid:"",onlineCount:0,totalCount:0,devices:i(4),items:o(l-c-1)});return a}function s(l){return{name:"hah",onlineCount:0,totalCount:0,items:o(l)}}n.RandomDeviceGroup=s})(e.Test||(e.Test={}));function r(n,i){for(let o=0;o<n.length;o++)i(n[o]),r(n[o].items,i)}(n=>{function i(o){const s={},l={};return r(o.items,a=>{s[a.id]=a;for(let c=0;c<a.devices.length;c++)l[a.devices[c].id]=a.devices[c]}),{getGroup(a){return s[a]},getDevice(a){return l[a]},foreachGroup(a){for(let c in s)a(s[c])}}}n.AccessSession=i})(e.Utils||(e.Utils={}))})(exports.RecursionDeviceGroup||(exports.RecursionDeviceGroup={}));const L=t.defineComponent({props:{countInfo:Object,controlParams:Object},setup(e){function r(o,s){if(s){let l=0;return s.items.forEach(a=>{l+=r(o,a)}),o(s)+l}return 0}const n=t.computed(()=>r(o=>o.onlineCount,e.countInfo));return{totalCount:t.computed(()=>r(o=>o.totalCount,e.countInfo)),onlineCount:n}}});const y=(e,r)=>{const n=e.__vccOpts||e;for(const[i,o]of r)n[i]=o;return n},T={class:"root"},x={class:"count-show"};function A(e,r,n,i,o,s){return t.openBlock(),t.createElementBlock("div",T,[t.renderSlot(e.$slots,"default",{},void 0,!0),t.createElementVNode("span",x,t.toDisplayString(e.onlineCount)+"/"+t.toDisplayString(e.totalCount),1)])}const z=y(L,[["render",A],["__scopeId","data-v-6a3c7483"]]),G=Object.freeze({left:0,top:0,width:16,height:16}),D=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),C=Object.freeze({...G,...D});Object.freeze({...C,body:"",hidden:!1});({...G});const H=Object.freeze({width:null,height:null}),j=Object.freeze({...H,...D});function R(e,r){const n={...e};for(const i in r){const o=r[i],s=typeof o;i in H?(o===null||o&&(s==="string"||s==="number"))&&(n[i]=o):s===typeof n[i]&&(n[i]=i==="rotate"?o%4:o)}return n}const U=/[\s,]+/;function W(e,r){r.split(U).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function q(e,r=0){const n=e.replace(/^-?[0-9.]*/,"");function i(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:i(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?i(s):0)}}return r}const K=/(-?[0-9.]*[0-9]+[0-9.]*)/g,J=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function $(e,r,n){if(r===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*r*n)/n;if(typeof e!="string")return e;const i=e.split(K);if(i===null||!i.length)return e;const o=[];let s=i.shift(),l=J.test(s);for(;;){if(l){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*r*n)/n)}else o.push(s);if(s=i.shift(),s===void 0)return o.join("");l=!l}}function Q(e,r){const n={...C,...e},i={...j,...r},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,i].forEach(v=>{const p=[],f=v.hFlip,u=v.vFlip;let g=v.rotate;f?u?g+=2:(p.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),p.push("scale(-1 1)"),o.top=o.left=0):u&&(p.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),p.push("scale(1 -1)"),o.top=o.left=0);let _;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:_=o.height/2+o.top,p.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:p.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:_=o.width/2+o.left,p.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}g%2===1&&(o.left!==o.top&&(_=o.left,o.left=o.top,o.top=_),o.width!==o.height&&(_=o.width,o.width=o.height,o.height=_)),p.length&&(s='<g transform="'+p.join(" ")+'">'+s+"</g>")});const l=i.width,a=i.height,c=o.width,d=o.height;let m,h;return l===null?(h=a===null?"1em":a==="auto"?d:a,m=$(h,c/d)):(m=l==="auto"?c:l,h=a===null?$(m,d/c):a==="auto"?d:a),{attributes:{width:m.toString(),height:h.toString(),viewBox:o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+d.toString()},body:s}}const X=/\sid="(\S+)"/g,Y="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Z=0;function ee(e,r=Y){const n=[];let i;for(;i=X.exec(e);)n.push(i[1]);return n.length&&n.forEach(o=>{const s=typeof r=="function"?r(o):r+(Z++).toString(),l=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+s+"$3")}),e}function te(e,r){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in r)n+=" "+i+'="'+r[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function oe(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ne(e){return'url("data:image/svg+xml,'+oe(e)+'")'}const E={...j,inline:!1},re={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ie={display:"inline-block"},k={backgroundColor:"currentColor"},F={backgroundColor:"transparent"},P={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},I={webkitMask:k,mask:k,background:F};for(const e in I){const r=I[e];for(const n in P)r[e+n]=P[n]}const b={};["horizontal","vertical"].forEach(e=>{const r=e.slice(0,1)+"Flip";b[e+"-flip"]=r,b[e.slice(0,1)+"-flip"]=r,b[e+"Flip"]=r});function O(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const se=(e,r)=>{const n=R(E,r),i={...re},o=r.mode||"svg",s={},l=r.style,a=typeof l=="object"&&!(l instanceof Array)?l:{};for(let f in r){const u=r[f];if(u!==void 0)switch(f){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[f]=u===!0||u==="true"||u===1;break;case"flip":typeof u=="string"&&W(n,u);break;case"color":s.color=u;break;case"rotate":typeof u=="string"?n[f]=q(u):typeof u=="number"&&(n[f]=u);break;case"ariaHidden":case"aria-hidden":u!==!0&&u!=="true"&&delete i["aria-hidden"];break;default:{const g=b[f];g?(u===!0||u==="true"||u===1)&&(n[g]=!0):E[f]===void 0&&(i[f]=u)}}}const c=Q(e,n),d=c.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){i.style={...s,...a},Object.assign(i,d);let f=0,u=r.id;return typeof u=="string"&&(u=u.replace(/-/g,"_")),i.innerHTML=ee(c.body,u?()=>u+"ID"+f++:"iconifyVue"),t.h("svg",i)}const{body:m,width:h,height:S}=e,v=o==="mask"||(o==="bg"?!1:m.indexOf("currentColor")!==-1),p=te(m,{...d,width:h+"",height:S+""});return i.style={...s,"--svg":ne(p),width:O(d.width),height:O(d.height),...ie,...v?k:F,...a},t.h("span",i)},M=Object.create(null);function w(e,r){M[e]=r}const le=t.defineComponent({inheritAttrs:!1,render(){const e=this.$attrs,r=e.icon,n=typeof r=="string"?M[r]:typeof r=="object"?r:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:se({...C,...n},e)}});var ae=Object.defineProperty,B=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,V=(e,r,n)=>r in e?ae(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,de=(e,r)=>{for(var n in r||(r={}))ce.call(r,n)&&V(e,n,r[n]);if(B)for(var n of B(r))ue.call(r,n)&&V(e,n,r[n]);return e};const he={name:"VirtualList",props:{listData:{type:Object,default:()=>[]},itemSize:{type:Number,default:200}},computed:{listHeight(){return this.listData.length*this.itemSize},visibleCount(){return Math.ceil(this.screenHeight/this.itemSize)},getTransform(){return`translate3d(0,${this.startOffset}px,0)`},visibleData(){return this.listData.slice(this.start,Math.min(this.end,this.listData.length))}},setup(){const e={screenHeight:t.ref(0),startOffset:t.ref(0),start:t.ref(0),end:t.ref(0)},r=t.ref();return de({virList:r},e)},mounted(){this.screenHeight=this.$el.clientHeight,this.screenHeight==0&&(this.screenHeight=400),this.start=0,this.end=this.start+this.visibleCount,console.log("x")},methods:{scrollEvent(){if(this.virList){let e=this.virList.scrollTop;this.start=Math.floor(e/this.itemSize),this.end=this.start+this.visibleCount,this.startOffset=e-e%this.itemSize}}}};function pe(e,r,n,i,o,s){return t.openBlock(),t.createElementBlock("div",{ref:"virList",class:"infinite-list-container",onScroll:r[0]||(r[0]=l=>s.scrollEvent())},[t.createElementVNode("div",{class:"infinite-list-phantom",style:t.normalizeStyle({height:s.listHeight+"px"})},null,4),t.createElementVNode("div",{class:"infinite-list",style:t.normalizeStyle({transform:s.getTransform})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.visibleData,l=>(t.openBlock(),t.createElementBlock("div",{ref_for:!0,ref:"items",class:"infinite-list-item",key:l.id,style:t.normalizeStyle({height:n.itemSize+"px",lineHeight:n.itemSize+"px"})},[t.renderSlot(e.$slots,"default",{data:l},void 0,!0)],4))),128))],4)],544)}const fe=y(he,[["render",pe],["__scopeId","data-v-aa3fae6b"]]),me=t.defineComponent({components:{VirtualList:fe,CountShow:z,Icon:le},name:"group-show",props:{deviceGroup:Object,controlParams:Object},setup(e){const r=t.inject("theme"),n=t.computed(()=>{var l;return i((l=e.deviceGroup)==null?void 0:l.devices)});function i(l){var a;return((a=l&&l.filter(c=>{var d;return!((d=e.controlParams)!=null&&d.onlyShowOnline)||c.online}))==null?void 0:a.filter(c=>{var d,m;return e.controlParams?c.name.indexOf((d=e.controlParams)==null?void 0:d.searchStr)>=0||c.id.indexOf((m=e.controlParams)==null?void 0:m.searchStr)>=0:!0}))||[]}const o=t.computed(()=>{var l,a;const c=e.controlParams.searchStr;return c.length==0||e.deviceGroup&&((l=e.deviceGroup)==null?void 0:l.name.indexOf(c))>0?!0:(a=e.deviceGroup)==null?void 0:a.devices.find(d=>d.name.indexOf(e.controlParams.searchStr)>=0||d.id.indexOf(e.controlParams.searchStr)>=0)}),s=t.ref(!1);return{filteredDevices:n,showGroup:o,FilterDevice:i,bShow:s,theme:r}}});const ve={key:0,class:"head-op"},ge=["title"],_e={class:"group-slot"},Se={key:0,style:{"margin-left":"26px"}},we=["title"],be={class:"device-slot"};function ye(e,r,n,i,o,s){var l;const a=t.resolveComponent("Icon"),c=t.resolveComponent("CountShow"),d=t.resolveComponent("group-show"),m=t.resolveComponent("VirtualList");return e.showGroup?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass("group "+e.theme)},[t.createVNode(c,{countInfo:e.deviceGroup,controlParams:e.controlParams},{default:t.withCtx(()=>{var h,S,v,p,f;return[e.deviceGroup&&e.deviceGroup.devices.length+e.deviceGroup.items.length>0?(t.openBlock(),t.createElementBlock("span",ve,[e.bShow?(t.openBlock(),t.createBlock(a,{key:1,icon:"minus",width:"20",onClick:r[1]||(r[1]=u=>e.bShow=!e.bShow),class:"handle-ls-svg"})):(t.openBlock(),t.createBlock(a,{key:0,icon:"plus",width:"20",onClick:r[0]||(r[0]=u=>e.bShow=!e.bShow),class:"handle-ls-svg"}))])):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"group-head-db-click",onDblclick:r[2]||(r[2]=u=>e.bShow=!e.bShow)},[t.createVNode(a,{icon:"group",width:"24",class:"group-avatar"}),t.createElementVNode("span",{class:"group-name",title:(h=e.deviceGroup)==null?void 0:h.name},t.toDisplayString(((S=e.deviceGroup)==null?void 0:S.name)&&((v=e.deviceGroup)==null?void 0:v.name.length)>0?(p=e.deviceGroup)==null?void 0:p.name:(f=e.deviceGroup)==null?void 0:f.id),9,ge)],32),t.createElementVNode("div",_e,[t.renderSlot(e.$slots,"group",{group:e.deviceGroup},void 0,!0)])]}),_:3},8,["countInfo","controlParams"]),e.bShow?(t.openBlock(),t.createElementBlock("div",Se,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((l=e.deviceGroup)==null?void 0:l.items,(h,S)=>(t.openBlock(),t.createBlock(d,{key:S,deviceGroup:h,controlParams:e.controlParams},{group:t.withCtx(({group:v})=>[t.renderSlot(e.$slots,"group",{group:v},void 0,!0)]),device:t.withCtx(({device:v,group:p})=>[t.renderSlot(e.$slots,"device",{device:v,group:p},void 0,!0)]),_:2},1032,["deviceGroup","controlParams"]))),128)),t.createElementVNode("div",{class:"device-show-div",style:t.normalizeStyle(`height: ${e.filteredDevices.length>10?"400px":`${e.filteredDevices.length*40}px`}`)},[t.createVNode(m,{"list-data":e.filteredDevices,"item-size":40},{default:t.withCtx(({data:h})=>[t.createElementVNode("div",{class:t.normalizeClass(h.online&&"online-device")},[t.createVNode(a,{icon:"user",width:"16",class:"device-avatar"}),t.createElementVNode("span",{title:h.id,class:"device-name"},t.toDisplayString(h.name.length>0?h.name:h.id),9,we),t.createElementVNode("div",be,[t.renderSlot(e.$slots,"device",{device:h,group:e.deviceGroup},void 0,!0)])],2)]),_:3},8,["list-data"])],4)])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)}const ke=y(me,[["render",ye],["__scopeId","data-v-3b55c8be"]]),Ce={width:1024,height:1024,body:'<path fill="currentColor" d="M384 192v640l384-320.064z"/>'},$e={width:1024,height:1024,body:'<path fill="currentColor" d="M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"/>'},Ee={width:1024,height:1024,body:'<path fill="currentColor" d="M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0a208 208 0 0 1 416 0z"/>'},Pe={width:1024,height:1024,body:'<path fill="currentColor" d="M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"/>'},Ie={width:1024,height:1024,body:'<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'};w("right",Ce);w("group",$e);w("user",Ee);w("plus",Pe);w("minus",Ie);const Oe=t.defineComponent({components:{CountShow:z,GroupShow:ke},props:{deviceGroup:Object,theme:{type:String,default:""}},methods:{onCheckBoxChange(){this.controlParams.onlyShowOnline=!this.controlParams.onlyShowOnline},onSearchChange(){var e;this.inputSearchRef&&(this.controlParams.searchStr=(e=this.inputSearchRef)==null?void 0:e.value)},search(e){this.controlParams.searchStr=e}},setup(e){t.provide("theme",e.theme);const r=t.ref({onlyShowOnline:!1,searchStr:""});return{inputSearchRef:t.ref(),controlParams:r}}});const Be=e=>(t.pushScopeId("data-v-7e0a8034"),e=e(),t.popScopeId(),e),Ve={class:"device-group-list"},Ne={class:"search-panel"},ze=Be(()=>t.createElementVNode("label",{for:"onlineShow"},"\u53EA\u663E\u793A\u5728\u7EBF\u8BBE\u5907",-1)),Ge={class:"device-panel"};function De(e,r,n,i,o,s){var l;const a=t.resolveComponent("CountShow"),c=t.resolveComponent("group-show");return t.openBlock(),t.createElementBlock("div",Ve,[t.createElementVNode("div",Ne,[t.createVNode(a,{countInfo:e.deviceGroup},{default:t.withCtx(()=>[t.createElementVNode("input",{type:"checkbox",id:"onlineShow",value:"onlineShow",onChange:r[0]||(r[0]=(...d)=>e.onCheckBoxChange&&e.onCheckBoxChange(...d))},null,32),ze]),_:1},8,["countInfo"])]),t.createElementVNode("div",Ge,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((l=e.deviceGroup)==null?void 0:l.items,(d,m)=>(t.openBlock(),t.createBlock(c,{controlParams:e.controlParams,key:m,deviceGroup:d},{group:t.withCtx(({group:h})=>[t.renderSlot(e.$slots,"group",{group:h},void 0,!0)]),device:t.withCtx(({device:h,group:S})=>[t.renderSlot(e.$slots,"device",{device:h,group:S},void 0,!0)]),_:2},1032,["controlParams","deviceGroup"]))),128))])])}const He=y(Oe,[["render",De],["__scopeId","data-v-7e0a8034"]]),N={RecursionDeviceGroup:He},je={install(e){for(const r in N){const n=N[r];e.component(r,n)}}};exports.default=je;
|
|
2
2
|
//# sourceMappingURL=smarteye-e-components.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smarteye-e-components.js","sources":["../src/components/recursion-device-group/model/index.ts","../src/components-global/count-show/index.vue","../src/components-global/count-show/index.vue","../node_modules/.pnpm/@iconify+vue@4.0.0_vue@3.2.39/node_modules/@iconify/vue/dist/offline.mjs","../src/components-global/group-show/index.vue","../src/components-global/group-show/index.vue","../node_modules/.pnpm/@iconify-icons+ep@1.2.8/node_modules/@iconify-icons/ep/caret-right.js","../node_modules/.pnpm/@iconify-icons+ep@1.2.8/node_modules/@iconify-icons/ep/folder-opened.js","../node_modules/.pnpm/@iconify-icons+ep@1.2.8/node_modules/@iconify-icons/ep/avatar.js","../node_modules/.pnpm/@iconify-icons+ep@1.2.8/node_modules/@iconify-icons/ep/plus.js","../node_modules/.pnpm/@iconify-icons+ep@1.2.8/node_modules/@iconify-icons/ep/minus.js","../src/components/recursion-device-group/index.vue","../src/components/recursion-device-group/index.vue","../src/index.ts"],"sourcesContent":["export namespace RecursionDeviceGroup {\r\n export interface IChannelInfo {\r\n index: number;\r\n name: string;\r\n mediaDir: number;\r\n }\r\n\r\n export interface DeviceInfo<T = any> {\r\n id: string;\r\n name: string;\r\n pid: string;\r\n online: boolean;\r\n channels: Array<IChannelInfo>;\r\n tag?: T;\r\n }\r\n\r\n export interface DeviceGroup<T = any, DT = any> extends ICountInfo {\r\n id: string;\r\n name: string;\r\n pid: string;\r\n devices: Array<DeviceInfo<DT>>;\r\n items: Array<DeviceGroup<T, DT>>;\r\n tag?: T;\r\n }\r\n\r\n export interface SessionDeviceGroup<\r\n GroupTag = any,\r\n DeviceTag = any,\r\n SessionTag = any\r\n > extends ICountInfo {\r\n name: string;\r\n items: Array<DeviceGroup>;\r\n tag?: SessionTag;\r\n }\r\n\r\n export interface ICountInfo {\r\n totalCount: number;\r\n onlineCount: number;\r\n items: Array<ICountInfo>;\r\n }\r\n\r\n export interface IControlParams {\r\n onlyShowOnline: boolean;\r\n searchStr: string;\r\n }\r\n\r\n export namespace Test {\r\n let startIndex = 0;\r\n function CreateDevice(count: number): Array<DeviceInfo> {\r\n const deviceList: Array<DeviceInfo> = [];\r\n for (let i = 0; i < count; i++) {\r\n deviceList.push({\r\n id: \"testId\",\r\n pid: \"\",\r\n name: `device-${i}`,\r\n online: i % 2 == 0,\r\n channels: [],\r\n });\r\n }\r\n return deviceList;\r\n }\r\n\r\n function CreateGroup(count: number) {\r\n const deviceList: Array<DeviceGroup> = [];\r\n for (let i = 0; i < count; i++) {\r\n deviceList.push({\r\n id: `groupid-${i}`,\r\n name: `group-${i}`,\r\n pid: \"\",\r\n onlineCount: 0,\r\n totalCount: 0,\r\n devices: CreateDevice(10),\r\n items: CreateGroup(count - i - 1),\r\n });\r\n }\r\n return deviceList;\r\n }\r\n\r\n export function RandomDeviceGroup(count: number): SessionDeviceGroup {\r\n return {\r\n name: \"hah\",\r\n onlineCount: 0,\r\n totalCount: 0,\r\n items: CreateGroup(count),\r\n };\r\n }\r\n }\r\n\r\n function ForeachDeviceGroup(\r\n deviceGroup: DeviceGroup[],\r\n handleDeviceGroup: (deviceGroup: DeviceGroup) => void\r\n ) {\r\n for (let i = 0; i < deviceGroup.length; i++) {\r\n handleDeviceGroup(deviceGroup[i]);\r\n ForeachDeviceGroup(deviceGroup[i].items, handleDeviceGroup);\r\n }\r\n }\r\n\r\n export namespace Utils {\r\n export function AccessSession(session: SessionDeviceGroup) {\r\n const groupMap: { [k in string]: DeviceGroup } = {};\r\n const deviceMap: { [k in string]: DeviceInfo } = {};\r\n\r\n ForeachDeviceGroup(session.items, (deviceGroup) => {\r\n groupMap[deviceGroup.id] = deviceGroup;\r\n for (let i = 0; i < deviceGroup.devices.length; i++) {\r\n deviceMap[deviceGroup.devices[i].id] = deviceGroup.devices[i];\r\n }\r\n });\r\n\r\n return {\r\n getGroup(id: string) {\r\n return groupMap[id];\r\n },\r\n getDevice(id: string) {\r\n return deviceMap[id];\r\n },\r\n foreachGroup(handle: (item: DeviceGroup) => void) {\r\n for (let i in groupMap) {\r\n handle(groupMap[i]);\r\n }\r\n },\r\n };\r\n }\r\n }\r\n}\r\n","<template>\r\n <div class=\"root\">\r\n <slot></slot>\r\n <!-- <button @click=\"countInfo&&countInfo.onlineCount++\">add</button> -->\r\n <span class=\"count-show\">\r\n {{onlineCount}}/{{totalCount}}\r\n </span>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { computed, defineComponent, PropType } from 'vue'\r\nimport { RecursionDeviceGroup } from '../../components/recursion-device-group/model'\r\n\r\nexport default defineComponent({\r\n props: {\r\n countInfo: Object as PropType<RecursionDeviceGroup.ICountInfo>,\r\n controlParams: Object as PropType<RecursionDeviceGroup.IControlParams>\r\n },\r\n setup(props) {\r\n function ForeachICountInfo(handle: (countInfo: RecursionDeviceGroup.ICountInfo) => number, countInfo?: RecursionDeviceGroup.ICountInfo) {\r\n if (countInfo) {\r\n let countItem = 0;\r\n countInfo.items.forEach(item => {\r\n countItem += ForeachICountInfo(handle, item);\r\n })\r\n return handle(countInfo) + countItem;\r\n }\r\n return 0;\r\n }\r\n\r\n const onlineCount = computed(() => {\r\n return ForeachICountInfo((item) => {\r\n return item.onlineCount;\r\n }, props.countInfo)\r\n })\r\n\r\n const totalCount = computed(() => {\r\n return ForeachICountInfo((item) => item.totalCount, props.countInfo)\r\n })\r\n\r\n return {\r\n totalCount,\r\n onlineCount\r\n }\r\n },\r\n})\r\n</script>\r\n\r\n<style scoped>\r\n.root {\r\n position: relative;\r\n}\r\n\r\n.count-show {\r\n position: absolute;\r\n right: 0px;\r\n color: rgb(183, 183, 183)\r\n}\r\n</style>","<template>\r\n <div class=\"root\">\r\n <slot></slot>\r\n <!-- <button @click=\"countInfo&&countInfo.onlineCount++\">add</button> -->\r\n <span class=\"count-show\">\r\n {{onlineCount}}/{{totalCount}}\r\n </span>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { computed, defineComponent, PropType } from 'vue'\r\nimport { RecursionDeviceGroup } from '../../components/recursion-device-group/model'\r\n\r\nexport default defineComponent({\r\n props: {\r\n countInfo: Object as PropType<RecursionDeviceGroup.ICountInfo>,\r\n controlParams: Object as PropType<RecursionDeviceGroup.IControlParams>\r\n },\r\n setup(props) {\r\n function ForeachICountInfo(handle: (countInfo: RecursionDeviceGroup.ICountInfo) => number, countInfo?: RecursionDeviceGroup.ICountInfo) {\r\n if (countInfo) {\r\n let countItem = 0;\r\n countInfo.items.forEach(item => {\r\n countItem += ForeachICountInfo(handle, item);\r\n })\r\n return handle(countInfo) + countItem;\r\n }\r\n return 0;\r\n }\r\n\r\n const onlineCount = computed(() => {\r\n return ForeachICountInfo((item) => {\r\n return item.onlineCount;\r\n }, props.countInfo)\r\n })\r\n\r\n const totalCount = computed(() => {\r\n return ForeachICountInfo((item) => item.totalCount, props.countInfo)\r\n })\r\n\r\n return {\r\n totalCount,\r\n onlineCount\r\n }\r\n },\r\n})\r\n</script>\r\n\r\n<style scoped>\r\n.root {\r\n position: relative;\r\n}\r\n\r\n.count-show {\r\n position: absolute;\r\n right: 0px;\r\n color: rgb(183, 183, 183)\r\n}\r\n</style>","import { h, defineComponent } from 'vue';\n\nconst defaultIconDimensions = Object.freeze(\n {\n left: 0,\n top: 0,\n width: 16,\n height: 16\n }\n);\nconst defaultIconTransformations = Object.freeze({\n rotate: 0,\n vFlip: false,\n hFlip: false\n});\nconst defaultIconProps = Object.freeze({\n ...defaultIconDimensions,\n ...defaultIconTransformations\n});\nconst defaultExtendedIconProps = Object.freeze({\n ...defaultIconProps,\n body: \"\",\n hidden: false\n});\n\nfunction mergeIconTransformations(obj1, obj2) {\n const result = {};\n if (!obj1.hFlip !== !obj2.hFlip) {\n result.hFlip = true;\n }\n if (!obj1.vFlip !== !obj2.vFlip) {\n result.vFlip = true;\n }\n const rotate = ((obj1.rotate || 0) + (obj2.rotate || 0)) % 4;\n if (rotate) {\n result.rotate = rotate;\n }\n return result;\n}\n\nfunction mergeIconData(parent, child) {\n const result = mergeIconTransformations(parent, child);\n for (const key in defaultExtendedIconProps) {\n if (key in defaultIconTransformations) {\n if (key in parent && !(key in result)) {\n result[key] = defaultIconTransformations[key];\n }\n } else if (key in child) {\n result[key] = child[key];\n } else if (key in parent) {\n result[key] = parent[key];\n }\n }\n return result;\n}\n\nfunction getIconsTree(data, names) {\n const icons = data.icons;\n const aliases = data.aliases || {};\n const resolved = /* @__PURE__ */ Object.create(null);\n function resolve(name) {\n if (icons[name]) {\n return resolved[name] = [];\n }\n if (!(name in resolved)) {\n resolved[name] = null;\n const parent = aliases[name] && aliases[name].parent;\n const value = parent && resolve(parent);\n if (value) {\n resolved[name] = [parent].concat(value);\n }\n }\n return resolved[name];\n }\n (names || Object.keys(icons).concat(Object.keys(aliases))).forEach(resolve);\n return resolved;\n}\n\nfunction internalGetIconData(data, name, tree) {\n const icons = data.icons;\n const aliases = data.aliases || {};\n let currentProps = {};\n function parse(name2) {\n currentProps = mergeIconData(\n icons[name2] || aliases[name2],\n currentProps\n );\n }\n parse(name);\n tree.forEach(parse);\n return mergeIconData(data, currentProps);\n}\n\nfunction parseIconSet(data, callback) {\n const names = [];\n if (typeof data !== \"object\" || typeof data.icons !== \"object\") {\n return names;\n }\n if (data.not_found instanceof Array) {\n data.not_found.forEach((name) => {\n callback(name, null);\n names.push(name);\n });\n }\n const tree = getIconsTree(data);\n for (const name in tree) {\n const item = tree[name];\n if (item) {\n callback(name, internalGetIconData(data, name, item));\n names.push(name);\n }\n }\n return names;\n}\n\nconst matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/;\n\nconst optionalPropertyDefaults = {\n provider: \"\",\n aliases: {},\n not_found: {},\n ...defaultIconDimensions\n};\nfunction checkOptionalProps(item, defaults) {\n for (const prop in defaults) {\n if (prop in item && typeof item[prop] !== typeof defaults[prop]) {\n return false;\n }\n }\n return true;\n}\nfunction quicklyValidateIconSet(obj) {\n if (typeof obj !== \"object\" || obj === null) {\n return null;\n }\n const data = obj;\n if (typeof data.prefix !== \"string\" || !obj.icons || typeof obj.icons !== \"object\") {\n return null;\n }\n if (!checkOptionalProps(obj, optionalPropertyDefaults)) {\n return null;\n }\n const icons = data.icons;\n for (const name in icons) {\n const icon = icons[name];\n if (!name.match(matchIconName) || typeof icon.body !== \"string\" || !checkOptionalProps(\n icon,\n defaultExtendedIconProps\n )) {\n return null;\n }\n }\n const aliases = data.aliases || {};\n for (const name in aliases) {\n const icon = aliases[name];\n const parent = icon.parent;\n if (!name.match(matchIconName) || typeof parent !== \"string\" || !icons[parent] && !aliases[parent] || !checkOptionalProps(\n icon,\n defaultExtendedIconProps\n )) {\n return null;\n }\n }\n return data;\n}\n\nconst defaultIconSizeCustomisations = Object.freeze({\n width: null,\n height: null\n});\nconst defaultIconCustomisations = Object.freeze({\n ...defaultIconSizeCustomisations,\n ...defaultIconTransformations\n});\n\nfunction mergeCustomisations(defaults, item) {\n const result = {\n ...defaults\n };\n for (const key in item) {\n const value = item[key];\n const valueType = typeof value;\n if (key in defaultIconSizeCustomisations) {\n if (value === null || value && (valueType === \"string\" || valueType === \"number\")) {\n result[key] = value;\n }\n } else if (valueType === typeof result[key]) {\n result[key] = key === \"rotate\" ? value % 4 : value;\n }\n }\n return result;\n}\n\nconst separator = /[\\s,]+/;\nfunction flipFromString(custom, flip) {\n flip.split(separator).forEach((str) => {\n const value = str.trim();\n switch (value) {\n case \"horizontal\":\n custom.hFlip = true;\n break;\n case \"vertical\":\n custom.vFlip = true;\n break;\n }\n });\n}\n\nfunction rotateFromString(value, defaultValue = 0) {\n const units = value.replace(/^-?[0-9.]*/, \"\");\n function cleanup(value2) {\n while (value2 < 0) {\n value2 += 4;\n }\n return value2 % 4;\n }\n if (units === \"\") {\n const num = parseInt(value);\n return isNaN(num) ? 0 : cleanup(num);\n } else if (units !== value) {\n let split = 0;\n switch (units) {\n case \"%\":\n split = 25;\n break;\n case \"deg\":\n split = 90;\n }\n if (split) {\n let num = parseFloat(value.slice(0, value.length - units.length));\n if (isNaN(num)) {\n return 0;\n }\n num = num / split;\n return num % 1 === 0 ? cleanup(num) : 0;\n }\n }\n return defaultValue;\n}\n\nconst unitsSplit = /(-?[0-9.]*[0-9]+[0-9.]*)/g;\nconst unitsTest = /^-?[0-9.]*[0-9]+[0-9.]*$/g;\nfunction calculateSize(size, ratio, precision) {\n if (ratio === 1) {\n return size;\n }\n precision = precision || 100;\n if (typeof size === \"number\") {\n return Math.ceil(size * ratio * precision) / precision;\n }\n if (typeof size !== \"string\") {\n return size;\n }\n const oldParts = size.split(unitsSplit);\n if (oldParts === null || !oldParts.length) {\n return size;\n }\n const newParts = [];\n let code = oldParts.shift();\n let isNumber = unitsTest.test(code);\n while (true) {\n if (isNumber) {\n const num = parseFloat(code);\n if (isNaN(num)) {\n newParts.push(code);\n } else {\n newParts.push(Math.ceil(num * ratio * precision) / precision);\n }\n } else {\n newParts.push(code);\n }\n code = oldParts.shift();\n if (code === void 0) {\n return newParts.join(\"\");\n }\n isNumber = !isNumber;\n }\n}\n\nfunction iconToSVG(icon, customisations) {\n const fullIcon = {\n ...defaultIconProps,\n ...icon\n };\n const fullCustomisations = {\n ...defaultIconCustomisations,\n ...customisations\n };\n const box = {\n left: fullIcon.left,\n top: fullIcon.top,\n width: fullIcon.width,\n height: fullIcon.height\n };\n let body = fullIcon.body;\n [fullIcon, fullCustomisations].forEach((props) => {\n const transformations = [];\n const hFlip = props.hFlip;\n const vFlip = props.vFlip;\n let rotation = props.rotate;\n if (hFlip) {\n if (vFlip) {\n rotation += 2;\n } else {\n transformations.push(\n \"translate(\" + (box.width + box.left).toString() + \" \" + (0 - box.top).toString() + \")\"\n );\n transformations.push(\"scale(-1 1)\");\n box.top = box.left = 0;\n }\n } else if (vFlip) {\n transformations.push(\n \"translate(\" + (0 - box.left).toString() + \" \" + (box.height + box.top).toString() + \")\"\n );\n transformations.push(\"scale(1 -1)\");\n box.top = box.left = 0;\n }\n let tempValue;\n if (rotation < 0) {\n rotation -= Math.floor(rotation / 4) * 4;\n }\n rotation = rotation % 4;\n switch (rotation) {\n case 1:\n tempValue = box.height / 2 + box.top;\n transformations.unshift(\n \"rotate(90 \" + tempValue.toString() + \" \" + tempValue.toString() + \")\"\n );\n break;\n case 2:\n transformations.unshift(\n \"rotate(180 \" + (box.width / 2 + box.left).toString() + \" \" + (box.height / 2 + box.top).toString() + \")\"\n );\n break;\n case 3:\n tempValue = box.width / 2 + box.left;\n transformations.unshift(\n \"rotate(-90 \" + tempValue.toString() + \" \" + tempValue.toString() + \")\"\n );\n break;\n }\n if (rotation % 2 === 1) {\n if (box.left !== box.top) {\n tempValue = box.left;\n box.left = box.top;\n box.top = tempValue;\n }\n if (box.width !== box.height) {\n tempValue = box.width;\n box.width = box.height;\n box.height = tempValue;\n }\n }\n if (transformations.length) {\n body = '<g transform=\"' + transformations.join(\" \") + '\">' + body + \"</g>\";\n }\n });\n const customisationsWidth = fullCustomisations.width;\n const customisationsHeight = fullCustomisations.height;\n const boxWidth = box.width;\n const boxHeight = box.height;\n let width;\n let height;\n if (customisationsWidth === null) {\n height = customisationsHeight === null ? \"1em\" : customisationsHeight === \"auto\" ? boxHeight : customisationsHeight;\n width = calculateSize(height, boxWidth / boxHeight);\n } else {\n width = customisationsWidth === \"auto\" ? boxWidth : customisationsWidth;\n height = customisationsHeight === null ? calculateSize(width, boxHeight / boxWidth) : customisationsHeight === \"auto\" ? boxHeight : customisationsHeight;\n }\n const result = {\n attributes: {\n width: width.toString(),\n height: height.toString(),\n viewBox: box.left.toString() + \" \" + box.top.toString() + \" \" + boxWidth.toString() + \" \" + boxHeight.toString()\n },\n body\n };\n return result;\n}\n\nconst regex = /\\sid=\"(\\S+)\"/g;\nconst randomPrefix = \"IconifyId\" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);\nlet counter = 0;\nfunction replaceIDs(body, prefix = randomPrefix) {\n const ids = [];\n let match;\n while (match = regex.exec(body)) {\n ids.push(match[1]);\n }\n if (!ids.length) {\n return body;\n }\n ids.forEach((id) => {\n const newID = typeof prefix === \"function\" ? prefix(id) : prefix + (counter++).toString();\n const escapedID = id.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n body = body.replace(\n new RegExp('([#;\"])(' + escapedID + ')([\")]|\\\\.[a-z])', \"g\"),\n \"$1\" + newID + \"$3\"\n );\n });\n return body;\n}\n\nfunction iconToHTML(body, attributes) {\n let renderAttribsHTML = body.indexOf(\"xlink:\") === -1 ? \"\" : ' xmlns:xlink=\"http://www.w3.org/1999/xlink\"';\n for (const attr in attributes) {\n renderAttribsHTML += \" \" + attr + '=\"' + attributes[attr] + '\"';\n }\n return '<svg xmlns=\"http://www.w3.org/2000/svg\"' + renderAttribsHTML + \">\" + body + \"</svg>\";\n}\n\nfunction encodeSVGforURL(svg) {\n return svg.replace(/\"/g, \"'\").replace(/%/g, \"%25\").replace(/#/g, \"%23\").replace(/</g, \"%3C\").replace(/>/g, \"%3E\").replace(/\\s+/g, \" \");\n}\nfunction svgToURL(svg) {\n return 'url(\"data:image/svg+xml,' + encodeSVGforURL(svg) + '\")';\n}\n\nconst defaultExtendedIconCustomisations = {\n ...defaultIconCustomisations,\n inline: false,\n};\n\n/**\n * Default SVG attributes\n */\nconst svgDefaults = {\n 'xmlns': 'http://www.w3.org/2000/svg',\n 'xmlns:xlink': 'http://www.w3.org/1999/xlink',\n 'aria-hidden': true,\n 'role': 'img',\n};\n/**\n * Style modes\n */\nconst commonProps = {\n display: 'inline-block',\n};\nconst monotoneProps = {\n backgroundColor: 'currentColor',\n};\nconst coloredProps = {\n backgroundColor: 'transparent',\n};\n// Dynamically add common props to variables above\nconst propsToAdd = {\n Image: 'var(--svg)',\n Repeat: 'no-repeat',\n Size: '100% 100%',\n};\nconst propsToAddTo = {\n webkitMask: monotoneProps,\n mask: monotoneProps,\n background: coloredProps,\n};\nfor (const prefix in propsToAddTo) {\n const list = propsToAddTo[prefix];\n for (const prop in propsToAdd) {\n list[prefix + prop] = propsToAdd[prop];\n }\n}\n/**\n * Aliases for customisations.\n * In Vue 'v-' properties are reserved, so v-flip must be renamed\n */\nconst customisationAliases = {};\n['horizontal', 'vertical'].forEach((prefix) => {\n const attr = prefix.slice(0, 1) + 'Flip';\n // vertical-flip\n customisationAliases[prefix + '-flip'] = attr;\n // v-flip\n customisationAliases[prefix.slice(0, 1) + '-flip'] = attr;\n // verticalFlip\n customisationAliases[prefix + 'Flip'] = attr;\n});\n/**\n * Fix size: add 'px' to numbers\n */\nfunction fixSize(value) {\n return value + (value.match(/^[-0-9.]+$/) ? 'px' : '');\n}\n/**\n * Render icon\n */\nconst render = (\n// Icon must be validated before calling this function\nicon, \n// Partial properties\nprops) => {\n // Split properties\n const customisations = mergeCustomisations(defaultExtendedIconCustomisations, props);\n const componentProps = { ...svgDefaults };\n // Check mode\n const mode = props.mode || 'svg';\n // Copy style\n const style = {};\n const propsStyle = props.style;\n const customStyle = typeof propsStyle === 'object' && !(propsStyle instanceof Array)\n ? propsStyle\n : {};\n // Get element properties\n for (let key in props) {\n const value = props[key];\n if (value === void 0) {\n continue;\n }\n switch (key) {\n // Properties to ignore\n case 'icon':\n case 'style':\n case 'onLoad':\n case 'mode':\n break;\n // Boolean attributes\n case 'inline':\n case 'hFlip':\n case 'vFlip':\n customisations[key] =\n value === true || value === 'true' || value === 1;\n break;\n // Flip as string: 'horizontal,vertical'\n case 'flip':\n if (typeof value === 'string') {\n flipFromString(customisations, value);\n }\n break;\n // Color: override style\n case 'color':\n style.color = value;\n break;\n // Rotation as string\n case 'rotate':\n if (typeof value === 'string') {\n customisations[key] = rotateFromString(value);\n }\n else if (typeof value === 'number') {\n customisations[key] = value;\n }\n break;\n // Remove aria-hidden\n case 'ariaHidden':\n case 'aria-hidden':\n // Vue transforms 'aria-hidden' property to 'ariaHidden'\n if (value !== true && value !== 'true') {\n delete componentProps['aria-hidden'];\n }\n break;\n default: {\n const alias = customisationAliases[key];\n if (alias) {\n // Aliases for boolean customisations\n if (value === true || value === 'true' || value === 1) {\n customisations[alias] = true;\n }\n }\n else if (defaultExtendedIconCustomisations[key] === void 0) {\n // Copy missing property if it does not exist in customisations\n componentProps[key] = value;\n }\n }\n }\n }\n // Generate icon\n const item = iconToSVG(icon, customisations);\n const renderAttribs = item.attributes;\n // Inline display\n if (customisations.inline) {\n style.verticalAlign = '-0.125em';\n }\n if (mode === 'svg') {\n // Add style\n componentProps.style = {\n ...style,\n ...customStyle,\n };\n // Add icon stuff\n Object.assign(componentProps, renderAttribs);\n // Counter for ids based on \"id\" property to render icons consistently on server and client\n let localCounter = 0;\n let id = props.id;\n if (typeof id === 'string') {\n // Convert '-' to '_' to avoid errors in animations\n id = id.replace(/-/g, '_');\n }\n // Add innerHTML and style to props\n componentProps['innerHTML'] = replaceIDs(item.body, id ? () => id + 'ID' + localCounter++ : 'iconifyVue');\n // Render icon\n return h('svg', componentProps);\n }\n // Render <span> with style\n const { body, width, height } = icon;\n const useMask = mode === 'mask' ||\n (mode === 'bg' ? false : body.indexOf('currentColor') !== -1);\n // Generate SVG\n const html = iconToHTML(body, {\n ...renderAttribs,\n width: width + '',\n height: height + '',\n });\n // Generate style\n componentProps.style = {\n ...style,\n '--svg': svgToURL(html),\n 'width': fixSize(renderAttribs.width),\n 'height': fixSize(renderAttribs.height),\n ...commonProps,\n ...(useMask ? monotoneProps : coloredProps),\n ...customStyle,\n };\n return h('span', componentProps);\n};\n\n/**\n * Storage for icons referred by name\n */\nconst storage = Object.create(null);\n/**\n * Add icon to storage, allowing to call it by name\n *\n * @param name\n * @param data\n */\nfunction addIcon(name, data) {\n storage[name] = data;\n}\n/**\n * Add collection to storage, allowing to call icons by name\n *\n * @param data Icon set\n * @param prefix Optional prefix to add to icon names, true (default) if prefix from icon set should be used.\n */\nfunction addCollection(data, prefix) {\n const iconPrefix = typeof prefix === 'string'\n ? prefix\n : prefix !== false && typeof data.prefix === 'string'\n ? data.prefix + ':'\n : '';\n quicklyValidateIconSet(data) &&\n parseIconSet(data, (name, icon) => {\n if (icon) {\n storage[iconPrefix + name] = icon;\n }\n });\n}\n/**\n * Component\n */\nconst Icon = defineComponent({\n // Do not inherit other attributes: it is handled by render()\n inheritAttrs: false,\n // Render icon\n render() {\n const props = this.$attrs;\n // Check icon\n const propsIcon = props.icon;\n const icon = typeof propsIcon === 'string'\n ? storage[propsIcon]\n : typeof propsIcon === 'object'\n ? propsIcon\n : null;\n // Validate icon object\n if (icon === null ||\n typeof icon !== 'object' ||\n typeof icon.body !== 'string') {\n return this.$slots.default ? this.$slots.default() : null;\n }\n // Valid icon: render it\n return render({\n ...defaultIconProps,\n ...icon,\n }, props);\n },\n});\n\nexport { Icon, addCollection, addIcon };\n","<template>\r\n <div :class=\"'group ' + theme\" v-if=\"showGroup\">\r\n <CountShow :countInfo=\"deviceGroup\" :controlParams=\"controlParams\">\r\n <span v-if=\"deviceGroup && (deviceGroup.devices.length + deviceGroup.items.length > 0)\" class=\"head-op\">\r\n <Icon icon=\"plus\" width=\"20\" @click=\"bShow = !bShow\" v-if=\"!bShow\" class=\"handle-ls-svg\" />\r\n <Icon icon=\"minus\" width=\"20\" @click=\"bShow = !bShow\" v-else class=\"handle-ls-svg\" />\r\n </span>\r\n <span class=\"group-head-db-click\" @dblclick=\"bShow = !bShow\">\r\n <Icon icon=\"group\" width=\"24\" class=\"group-avatar\" />\r\n <span class=\"group-name\" :title=\"deviceGroup?.name\">\r\n {{(deviceGroup?.name && deviceGroup?.name.length > 0)?deviceGroup?.name:deviceGroup?.id}}\r\n </span>\r\n </span>\r\n <div class=\"group-slot\">\r\n <slot name=\"group\" :group=\"deviceGroup\"></slot>\r\n </div>\r\n </CountShow>\r\n\r\n <div style=\"margin-left: 26px\" v-if=\"bShow\">\r\n <group-show v-for=\"group, index in (deviceGroup?.items)\" :key=\"index\" :deviceGroup=\"group\"\r\n :controlParams=\"controlParams\">\r\n <template #group=\"{group}\">\r\n <slot name=\"group\" :group=\"group\"></slot>\r\n </template>\r\n <template #device=\"{device, group}\">\r\n <slot name=\"device\" :device=\"device\" :group=\"group\"></slot>\r\n </template>\r\n </group-show>\r\n <div class=\"device-show-div\">\r\n <div v-for=\"(item, index) in FilterDevice(deviceGroup?.devices)\" :key=\"index\" class=\"device\"\r\n :class=\"item.online&&'online-device'\">\r\n <Icon icon=\"user\" width=\"16\" class=\"device-avatar\" />\r\n <span :title=\"item.id\" class=\"device-name\">{{item.name.length > 0 ? item.name : item.id}}</span>\r\n <div class=\"device-slot\">\r\n <slot name=\"device\" :device=\"item\" :group=\"deviceGroup\"></slot>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { computed, defineComponent, PropType, ref, inject } from 'vue'\r\nimport { RecursionDeviceGroup } from '/@/components/recursion-device-group/model'\r\nimport CountShow from \"../count-show/index.vue\"\r\nimport { Icon } from '@iconify/vue/offline';\r\n\r\nexport default defineComponent({\r\n components: {\r\n CountShow,\r\n Icon\r\n },\r\n name: \"group-show\",\r\n props: {\r\n deviceGroup: Object as PropType<RecursionDeviceGroup.DeviceGroup>,\r\n controlParams: Object as PropType<RecursionDeviceGroup.IControlParams>\r\n },\r\n setup(props) {\r\n\r\n const theme = inject(\"theme\") as string\r\n\r\n function FilterDevice(devices?: RecursionDeviceGroup.DeviceInfo[]) {\r\n return (devices && devices.filter(item => !props.controlParams?.onlyShowOnline || item.online))?.filter((item) => {\r\n if (props.controlParams) {\r\n return item.name.indexOf(props.controlParams?.searchStr) >= 0 || item.id.indexOf(props.controlParams?.searchStr) >= 0\r\n }\r\n return true;\r\n }) || []\r\n }\r\n\r\n const showGroup = computed(() => {\r\n const strSearch = (props.controlParams as any).searchStr as string;\r\n\r\n if (strSearch.length == 0) {\r\n return true;\r\n }\r\n\r\n if (props.deviceGroup && props.deviceGroup?.name.indexOf(strSearch) > 0) {\r\n return true;\r\n }\r\n\r\n return props.deviceGroup?.devices.find(item => item.name.indexOf((props.controlParams as any).searchStr) >= 0 || item.id.indexOf((props.controlParams as any).searchStr) >= 0)\r\n })\r\n\r\n const bShow = ref(false);\r\n return {\r\n showGroup,\r\n FilterDevice,\r\n bShow,\r\n theme\r\n }\r\n },\r\n})\r\n</script>\r\n\r\n<style>\r\n:root {\r\n --device-offline-color: rgb(168, 168, 168);\r\n --device-online-color: rgb(1, 172, 1);\r\n --group-name-width: 160px;\r\n\r\n}\r\n</style>\r\n\r\n<style scoped>\r\n.group-head-db-click,\r\n.group-head-db-click .group-name {\r\n cursor: pointer;\r\n user-select: none;\r\n}\r\n\r\n.device-show-div {\r\n max-height: 400px;\r\n overflow-y: auto;\r\n}\r\n\r\n.dark .handle-ls-svg {\r\n color: white;\r\n}\r\n\r\n\r\n.handle-ls-svg {\r\n vertical-align: -5px;\r\n cursor: pointer;\r\n margin-right: 5px;\r\n color: rgb(56, 56, 56)\r\n}\r\n\r\n.group-avatar {\r\n vertical-align: -6px;\r\n color: gray;\r\n}\r\n\r\n.device,\r\n.group {\r\n margin: 5px 0px;\r\n}\r\n\r\n.group-name {\r\n display: inline-block;\r\n width: var(--group-name-width);\r\n cursor: default;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n vertical-align: middle;\r\n line-height: 24px;\r\n padding-left: 5px;\r\n}\r\n\r\n.group-slot {\r\n display: inline-block;\r\n width: calc(100% - var(--group-name-width) - 100px);\r\n}\r\n\r\n.device-slot {\r\n display: inline-block;\r\n width: calc(100% - var(--group-name-width) - 42px);\r\n}\r\n\r\n.device-avatar {\r\n vertical-align: -2px;\r\n margin-right: 4px;\r\n margin-left: 2px;\r\n color: var(--device-offline-color);\r\n}\r\n\r\n.device-name {\r\n display: inline-block;\r\n width: var(--group-name-width);\r\n cursor: default;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n vertical-align: bottom;\r\n color: var(--device-offline-color);\r\n padding-left: 5px;\r\n}\r\n\r\n.online-device .device-avatar,\r\n.online-device .device-name {\r\n color: var(--device-online-color)\r\n}\r\n</style>\r\n","<template>\r\n <div :class=\"'group ' + theme\" v-if=\"showGroup\">\r\n <CountShow :countInfo=\"deviceGroup\" :controlParams=\"controlParams\">\r\n <span v-if=\"deviceGroup && (deviceGroup.devices.length + deviceGroup.items.length > 0)\" class=\"head-op\">\r\n <Icon icon=\"plus\" width=\"20\" @click=\"bShow = !bShow\" v-if=\"!bShow\" class=\"handle-ls-svg\" />\r\n <Icon icon=\"minus\" width=\"20\" @click=\"bShow = !bShow\" v-else class=\"handle-ls-svg\" />\r\n </span>\r\n <span class=\"group-head-db-click\" @dblclick=\"bShow = !bShow\">\r\n <Icon icon=\"group\" width=\"24\" class=\"group-avatar\" />\r\n <span class=\"group-name\" :title=\"deviceGroup?.name\">\r\n {{(deviceGroup?.name && deviceGroup?.name.length > 0)?deviceGroup?.name:deviceGroup?.id}}\r\n </span>\r\n </span>\r\n <div class=\"group-slot\">\r\n <slot name=\"group\" :group=\"deviceGroup\"></slot>\r\n </div>\r\n </CountShow>\r\n\r\n <div style=\"margin-left: 26px\" v-if=\"bShow\">\r\n <group-show v-for=\"group, index in (deviceGroup?.items)\" :key=\"index\" :deviceGroup=\"group\"\r\n :controlParams=\"controlParams\">\r\n <template #group=\"{group}\">\r\n <slot name=\"group\" :group=\"group\"></slot>\r\n </template>\r\n <template #device=\"{device, group}\">\r\n <slot name=\"device\" :device=\"device\" :group=\"group\"></slot>\r\n </template>\r\n </group-show>\r\n <div class=\"device-show-div\">\r\n <div v-for=\"(item, index) in FilterDevice(deviceGroup?.devices)\" :key=\"index\" class=\"device\"\r\n :class=\"item.online&&'online-device'\">\r\n <Icon icon=\"user\" width=\"16\" class=\"device-avatar\" />\r\n <span :title=\"item.id\" class=\"device-name\">{{item.name.length > 0 ? item.name : item.id}}</span>\r\n <div class=\"device-slot\">\r\n <slot name=\"device\" :device=\"item\" :group=\"deviceGroup\"></slot>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { computed, defineComponent, PropType, ref, inject } from 'vue'\r\nimport { RecursionDeviceGroup } from '/@/components/recursion-device-group/model'\r\nimport CountShow from \"../count-show/index.vue\"\r\nimport { Icon } from '@iconify/vue/offline';\r\n\r\nexport default defineComponent({\r\n components: {\r\n CountShow,\r\n Icon\r\n },\r\n name: \"group-show\",\r\n props: {\r\n deviceGroup: Object as PropType<RecursionDeviceGroup.DeviceGroup>,\r\n controlParams: Object as PropType<RecursionDeviceGroup.IControlParams>\r\n },\r\n setup(props) {\r\n\r\n const theme = inject(\"theme\") as string\r\n\r\n function FilterDevice(devices?: RecursionDeviceGroup.DeviceInfo[]) {\r\n return (devices && devices.filter(item => !props.controlParams?.onlyShowOnline || item.online))?.filter((item) => {\r\n if (props.controlParams) {\r\n return item.name.indexOf(props.controlParams?.searchStr) >= 0 || item.id.indexOf(props.controlParams?.searchStr) >= 0\r\n }\r\n return true;\r\n }) || []\r\n }\r\n\r\n const showGroup = computed(() => {\r\n const strSearch = (props.controlParams as any).searchStr as string;\r\n\r\n if (strSearch.length == 0) {\r\n return true;\r\n }\r\n\r\n if (props.deviceGroup && props.deviceGroup?.name.indexOf(strSearch) > 0) {\r\n return true;\r\n }\r\n\r\n return props.deviceGroup?.devices.find(item => item.name.indexOf((props.controlParams as any).searchStr) >= 0 || item.id.indexOf((props.controlParams as any).searchStr) >= 0)\r\n })\r\n\r\n const bShow = ref(false);\r\n return {\r\n showGroup,\r\n FilterDevice,\r\n bShow,\r\n theme\r\n }\r\n },\r\n})\r\n</script>\r\n\r\n<style>\r\n:root {\r\n --device-offline-color: rgb(168, 168, 168);\r\n --device-online-color: rgb(1, 172, 1);\r\n --group-name-width: 160px;\r\n\r\n}\r\n</style>\r\n\r\n<style scoped>\r\n.group-head-db-click,\r\n.group-head-db-click .group-name {\r\n cursor: pointer;\r\n user-select: none;\r\n}\r\n\r\n.device-show-div {\r\n max-height: 400px;\r\n overflow-y: auto;\r\n}\r\n\r\n.dark .handle-ls-svg {\r\n color: white;\r\n}\r\n\r\n\r\n.handle-ls-svg {\r\n vertical-align: -5px;\r\n cursor: pointer;\r\n margin-right: 5px;\r\n color: rgb(56, 56, 56)\r\n}\r\n\r\n.group-avatar {\r\n vertical-align: -6px;\r\n color: gray;\r\n}\r\n\r\n.device,\r\n.group {\r\n margin: 5px 0px;\r\n}\r\n\r\n.group-name {\r\n display: inline-block;\r\n width: var(--group-name-width);\r\n cursor: default;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n vertical-align: middle;\r\n line-height: 24px;\r\n padding-left: 5px;\r\n}\r\n\r\n.group-slot {\r\n display: inline-block;\r\n width: calc(100% - var(--group-name-width) - 100px);\r\n}\r\n\r\n.device-slot {\r\n display: inline-block;\r\n width: calc(100% - var(--group-name-width) - 42px);\r\n}\r\n\r\n.device-avatar {\r\n vertical-align: -2px;\r\n margin-right: 4px;\r\n margin-left: 2px;\r\n color: var(--device-offline-color);\r\n}\r\n\r\n.device-name {\r\n display: inline-block;\r\n width: var(--group-name-width);\r\n cursor: default;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n vertical-align: bottom;\r\n color: var(--device-offline-color);\r\n padding-left: 5px;\r\n}\r\n\r\n.online-device .device-avatar,\r\n.online-device .device-name {\r\n color: var(--device-online-color)\r\n}\r\n</style>\r\n","const data = {\n\t\"width\": 1024,\n\t\"height\": 1024,\n\t\"body\": \"<path fill=\\\"currentColor\\\" d=\\\"M384 192v640l384-320.064z\\\"/>\"\n};\nexport default data;\n","const data = {\n\t\"width\": 1024,\n\t\"height\": 1024,\n\t\"body\": \"<path fill=\\\"currentColor\\\" d=\\\"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z\\\"/>\"\n};\nexport default data;\n","const data = {\n\t\"width\": 1024,\n\t\"height\": 1024,\n\t\"body\": \"<path fill=\\\"currentColor\\\" d=\\\"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0a208 208 0 0 1 416 0z\\\"/>\"\n};\nexport default data;\n","const data = {\n\t\"width\": 1024,\n\t\"height\": 1024,\n\t\"body\": \"<path fill=\\\"currentColor\\\" d=\\\"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z\\\"/>\"\n};\nexport default data;\n","const data = {\n\t\"width\": 1024,\n\t\"height\": 1024,\n\t\"body\": \"<path fill=\\\"currentColor\\\" d=\\\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\\\"/>\"\n};\nexport default data;\n","<template>\r\n <div class=\"device-group-list\">\r\n <div class=\"search-panel\">\r\n <!-- <div style=\"height: 32px; line-height: 32px;\">\r\n <img src=\"\" />\r\n <input type=\"text\" @change=\"onSearchChange\" ref=\"inputSearchRef\" />\r\n </div> -->\r\n <CountShow :countInfo=\"deviceGroup\">\r\n <input type=\"checkbox\" id=\"onlineShow\" value=\"onlineShow\" @change=\"onCheckBoxChange\" />\r\n <label for=\"onlineShow\">只显示在线设备</label>\r\n </CountShow>\r\n </div>\r\n <div class=\"device-panel\">\r\n <group-show :controlParams=\"controlParams\" v-for=\"itemGroup, index in deviceGroup?.items\" :key=\"index\"\r\n :deviceGroup=\"itemGroup\">\r\n <template #group=\"{group}\">\r\n <slot name=\"group\" :group=\"group\"></slot>\r\n </template>\r\n <template #device=\"{device, group}\">\r\n <slot name=\"device\" :device=\"device\" :group=\"group\"></slot>\r\n </template>\r\n </group-show>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { defineComponent, PropType, ref, provide } from 'vue'\r\nimport { RecursionDeviceGroup } from \"./model\"\r\nimport GroupShow from \"/@/components-global/group-show/index.vue\"\r\nimport CountShow from \"/@/components-global/count-show/index.vue\"\r\n\r\nimport { addIcon } from \"@iconify/vue/offline\"\r\nimport right from \"@iconify-icons/ep/caret-right\"\r\nimport group from \"@iconify-icons/ep/folder-opened\"\r\nimport avatar from \"@iconify-icons/ep/avatar\"\r\nimport plus from \"@iconify-icons/ep/plus\"\r\nimport minus from \"@iconify-icons/ep/minus\"\r\n\r\naddIcon('right', right);\r\naddIcon('group', group);\r\naddIcon('user', avatar);\r\naddIcon('plus', plus);\r\naddIcon('minus', minus);\r\n\r\n\r\nexport default defineComponent({\r\n components: {\r\n CountShow,\r\n GroupShow\r\n },\r\n props: {\r\n deviceGroup: Object as PropType<RecursionDeviceGroup.SessionDeviceGroup>,\r\n theme: {\r\n type: String as PropType<\"dark\" | ''>,\r\n default: \"\"\r\n },\r\n },\r\n methods: {\r\n onCheckBoxChange() {\r\n this.controlParams.onlyShowOnline = !this.controlParams.onlyShowOnline;\r\n },\r\n onSearchChange() {\r\n if (this.inputSearchRef) {\r\n this.controlParams.searchStr = this.inputSearchRef?.value\r\n }\r\n },\r\n search(str: string) {\r\n this.controlParams.searchStr = str;\r\n }\r\n },\r\n setup(props) {\r\n\r\n provide(\"theme\", props.theme)\r\n\r\n const controlParams = ref<RecursionDeviceGroup.IControlParams>({\r\n onlyShowOnline: false,\r\n searchStr: \"\"\r\n });\r\n const inputSearchRef = ref<HTMLInputElement>()\r\n return {\r\n inputSearchRef,\r\n controlParams\r\n }\r\n },\r\n})\r\n\r\n</script>\r\n\r\n\r\n<style>\r\n:root {\r\n --sec-main-search-height: 32px\r\n}\r\n</style>\r\n\r\n\r\n<style scoped>\r\n.device-group-list {\r\n height: 100%;\r\n}\r\n\r\n.device-group-list .search-panel {\r\n height: var(--sec-main-search-height);\r\n}\r\n\r\n.device-group-list .device-panel {\r\n height: calc(100% - var(--sec-main-search-height));\r\n overflow-y: auto;\r\n}\r\n</style>\r\n\r\n","<template>\r\n <div class=\"device-group-list\">\r\n <div class=\"search-panel\">\r\n <!-- <div style=\"height: 32px; line-height: 32px;\">\r\n <img src=\"\" />\r\n <input type=\"text\" @change=\"onSearchChange\" ref=\"inputSearchRef\" />\r\n </div> -->\r\n <CountShow :countInfo=\"deviceGroup\">\r\n <input type=\"checkbox\" id=\"onlineShow\" value=\"onlineShow\" @change=\"onCheckBoxChange\" />\r\n <label for=\"onlineShow\">只显示在线设备</label>\r\n </CountShow>\r\n </div>\r\n <div class=\"device-panel\">\r\n <group-show :controlParams=\"controlParams\" v-for=\"itemGroup, index in deviceGroup?.items\" :key=\"index\"\r\n :deviceGroup=\"itemGroup\">\r\n <template #group=\"{group}\">\r\n <slot name=\"group\" :group=\"group\"></slot>\r\n </template>\r\n <template #device=\"{device, group}\">\r\n <slot name=\"device\" :device=\"device\" :group=\"group\"></slot>\r\n </template>\r\n </group-show>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { defineComponent, PropType, ref, provide } from 'vue'\r\nimport { RecursionDeviceGroup } from \"./model\"\r\nimport GroupShow from \"/@/components-global/group-show/index.vue\"\r\nimport CountShow from \"/@/components-global/count-show/index.vue\"\r\n\r\nimport { addIcon } from \"@iconify/vue/offline\"\r\nimport right from \"@iconify-icons/ep/caret-right\"\r\nimport group from \"@iconify-icons/ep/folder-opened\"\r\nimport avatar from \"@iconify-icons/ep/avatar\"\r\nimport plus from \"@iconify-icons/ep/plus\"\r\nimport minus from \"@iconify-icons/ep/minus\"\r\n\r\naddIcon('right', right);\r\naddIcon('group', group);\r\naddIcon('user', avatar);\r\naddIcon('plus', plus);\r\naddIcon('minus', minus);\r\n\r\n\r\nexport default defineComponent({\r\n components: {\r\n CountShow,\r\n GroupShow\r\n },\r\n props: {\r\n deviceGroup: Object as PropType<RecursionDeviceGroup.SessionDeviceGroup>,\r\n theme: {\r\n type: String as PropType<\"dark\" | ''>,\r\n default: \"\"\r\n },\r\n },\r\n methods: {\r\n onCheckBoxChange() {\r\n this.controlParams.onlyShowOnline = !this.controlParams.onlyShowOnline;\r\n },\r\n onSearchChange() {\r\n if (this.inputSearchRef) {\r\n this.controlParams.searchStr = this.inputSearchRef?.value\r\n }\r\n },\r\n search(str: string) {\r\n this.controlParams.searchStr = str;\r\n }\r\n },\r\n setup(props) {\r\n\r\n provide(\"theme\", props.theme)\r\n\r\n const controlParams = ref<RecursionDeviceGroup.IControlParams>({\r\n onlyShowOnline: false,\r\n searchStr: \"\"\r\n });\r\n const inputSearchRef = ref<HTMLInputElement>()\r\n return {\r\n inputSearchRef,\r\n controlParams\r\n }\r\n },\r\n})\r\n\r\n</script>\r\n\r\n\r\n<style>\r\n:root {\r\n --sec-main-search-height: 32px\r\n}\r\n</style>\r\n\r\n\r\n<style scoped>\r\n.device-group-list {\r\n height: 100%;\r\n}\r\n\r\n.device-group-list .search-panel {\r\n height: var(--sec-main-search-height);\r\n}\r\n\r\n.device-group-list .device-panel {\r\n height: calc(100% - var(--sec-main-search-height));\r\n overflow-y: auto;\r\n}\r\n</style>\r\n\r\n","import { Plugin, App } from \"vue\";\r\n\r\nexport * from \"./comp.d\";\r\nexport * from \"./components\";\r\n\r\nimport RecursionDeviceGroup from \"/@/components/recursion-device-group/index.vue\";\r\n\r\nconst components = {\r\n RecursionDeviceGroup,\r\n};\r\n\r\nconst _default: Plugin = {\r\n install(app: App) {\r\n for (const itemKey in components) {\r\n const item = components[itemKey as keyof typeof components];\r\n app.component(itemKey, item);\r\n }\r\n },\r\n};\r\n\r\nexport default _default;\r\n"],"names":["RecursionDeviceGroup","Test","CreateDevice","count","deviceList","i","CreateGroup","RandomDeviceGroup","ForeachDeviceGroup","deviceGroup","handleDeviceGroup","Utils","AccessSession","session","groupMap","deviceMap","id","handle","_sfc_main$2","defineComponent","props","ForeachICountInfo","countInfo","countItem","item","onlineCount","computed","_openBlock","_createElementBlock","_hoisted_1","_renderSlot","_ctx","defaultIconDimensions","defaultIconTransformations","defaultIconProps","defaultIconSizeCustomisations","defaultIconCustomisations","mergeCustomisations","defaults","result","key","value","valueType","separator","flipFromString","custom","flip","str","rotateFromString","defaultValue","units","cleanup","value2","num","split","unitsSplit","unitsTest","calculateSize","size","ratio","precision","oldParts","newParts","code","isNumber","iconToSVG","icon","customisations","fullIcon","fullCustomisations","box","body","transformations","hFlip","vFlip","rotation","tempValue","customisationsWidth","customisationsHeight","boxWidth","boxHeight","width","height","regex","randomPrefix","counter","replaceIDs","prefix","ids","match","newID","escapedID","iconToHTML","attributes","renderAttribsHTML","attr","encodeSVGforURL","svg","svgToURL","defaultExtendedIconCustomisations","svgDefaults","commonProps","monotoneProps","coloredProps","propsToAdd","propsToAddTo","list","prop","customisationAliases","fixSize","render","componentProps","mode","style","propsStyle","customStyle","alias","renderAttribs","localCounter","h","useMask","html","storage","addIcon","name","data","Icon","propsIcon","_sfc_main$1","CountShow","theme","inject","FilterDevice","devices","_a","_a2","_b","showGroup","strSearch","bShow","ref","_hoisted_4","_hoisted_5","_component_group_show","_resolveComponent","_withCtx","_cache","$event","_createBlock","_component_Icon","_createCommentVNode","_createElementVNode","_createVNode","_toDisplayString","_b2","_c","_d","_e","_hoisted_2","_hoisted_3","_Fragment","_renderList","group","index","device","group2","_hoisted_6","_hoisted_7","right","avatar","plus","minus","_sfc_main","GroupShow","provide","controlParams","_withScopeId","n","_pushScopeId","_popScopeId","_component_CountShow","itemGroup","components","_default","app","itemKey"],"mappings":"mIAAiBA,QAAA,qBAAA,QAAAA,GAAV,EA8CYC,GAAV,CAEL,SAASC,EAAaC,EAAkC,CACtD,MAAMC,EAAgC,CAAA,EACtC,QAASC,EAAI,EAAGA,EAAIF,EAAOE,IACzBD,EAAW,KAAK,CACd,GAAI,SACJ,IAAK,GACL,KAAM,UAAUC,IAChB,OAAQA,EAAI,GAAK,EACjB,SAAU,CAAC,CAAA,CACZ,EAEI,OAAAD,CACT,CAEA,SAASE,EAAYH,EAAe,CAClC,MAAMC,EAAiC,CAAA,EACvC,QAASC,EAAI,EAAGA,EAAIF,EAAOE,IACzBD,EAAW,KAAK,CACd,GAAI,WAAWC,IACf,KAAM,SAASA,IACf,IAAK,GACL,YAAa,EACb,WAAY,EACZ,QAASH,EAAa,EAAE,EACxB,MAAOI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,GAAA,CAAuB0H,EAAA,mBAAA,MAAAO,GAAA,CACoEN,EAAAA,YAAA4B,EAAA,CAAA,UAAArJ,EAAA,WAAA,EAAA,CAAA,QAAAkH,EAAA,QAAA,IAAA,CAAjEM,EAAAA,mBAAA,QAAA,CAAgB,KAAA,WAAM,GAAA,aAAe,MAAA,uFACpB,EAAA,KAAA,EAAA,4BAazC,CAAA,kCADW5H,EAAA,UAAA,EAAA,EAAAC,EAAA,mBAAAoI,EAAA,SAAA,KAAAC,EAAA,YAAA3B,EAAAvG,EAAA,cAAA,KAAA,OAAAuG,EAAA,MAAA,CAAA+C,EAAAlB,oCARwF,cAAApI,EAAA,cACnF,IAAAoI,eACE,EAAA,iFAGiB,CAAA,EACR,OAAAlB,EAAAA,QAAA,CAAA,CAAA,OAAAmB,EAAA,MAAAF,CAAA,IAAA,CAAcpI,aAAAC,EAAA,OAAA,SAAA,CAAe,OAAAqI,8ICZhEkB,EAAa,CACjB,qBAAAtL,EACF,EAEMuL,GAAmB,CACvB,QAAQC,EAAU,CAChB,UAAWC,KAAWH,EAAY,CAChC,MAAM9J,EAAO8J,EAAWG,GACpBD,EAAA,UAAUC,EAASjK,CAAI,CAC7B,CACF,CACF"}
|
|
1
|
+
{"version":3,"file":"smarteye-e-components.js","sources":["../src/components/recursion-device-group/model/index.ts","../src/components-global/count-show/index.vue","../src/components-global/count-show/index.vue","../node_modules/.pnpm/@iconify+vue@4.0.0_vue@3.2.39/node_modules/@iconify/vue/dist/offline.mjs","../src/components-global/VirtualList/index.vue","../src/components-global/VirtualList/index.vue","../src/components-global/group-show/index.vue","../src/components-global/group-show/index.vue","../node_modules/.pnpm/@iconify-icons+ep@1.2.8/node_modules/@iconify-icons/ep/caret-right.js","../node_modules/.pnpm/@iconify-icons+ep@1.2.8/node_modules/@iconify-icons/ep/folder-opened.js","../node_modules/.pnpm/@iconify-icons+ep@1.2.8/node_modules/@iconify-icons/ep/avatar.js","../node_modules/.pnpm/@iconify-icons+ep@1.2.8/node_modules/@iconify-icons/ep/plus.js","../node_modules/.pnpm/@iconify-icons+ep@1.2.8/node_modules/@iconify-icons/ep/minus.js","../src/components/recursion-device-group/index.vue","../src/components/recursion-device-group/index.vue","../src/index.ts"],"sourcesContent":["export namespace RecursionDeviceGroup {\r\n export interface IChannelInfo {\r\n index: number;\r\n name: string;\r\n mediaDir: number;\r\n }\r\n\r\n export interface DeviceInfo<T = any> {\r\n id: string;\r\n name: string;\r\n pid: string;\r\n online: boolean;\r\n channels: Array<IChannelInfo>;\r\n tag?: T;\r\n }\r\n\r\n export interface DeviceGroup<T = any, DT = any> extends ICountInfo {\r\n id: string;\r\n name: string;\r\n pid: string;\r\n devices: Array<DeviceInfo<DT>>;\r\n items: Array<DeviceGroup<T, DT>>;\r\n tag?: T;\r\n }\r\n\r\n export interface SessionDeviceGroup<\r\n GroupTag = any,\r\n DeviceTag = any,\r\n SessionTag = any\r\n > extends ICountInfo {\r\n name: string;\r\n items: Array<DeviceGroup>;\r\n tag?: SessionTag;\r\n }\r\n\r\n export interface ICountInfo {\r\n totalCount: number;\r\n onlineCount: number;\r\n items: Array<ICountInfo>;\r\n }\r\n\r\n export interface IControlParams {\r\n onlyShowOnline: boolean;\r\n searchStr: string;\r\n }\r\n\r\n export namespace Test {\r\n let startIndex = 0;\r\n function CreateDevice(count: number): Array<DeviceInfo> {\r\n const deviceList: Array<DeviceInfo> = [];\r\n for (let i = 0; i < count; i++) {\r\n deviceList.push({\r\n id: \"testId\",\r\n pid: \"\",\r\n name: `device-${i}`,\r\n online: i % 2 == 0,\r\n channels: [],\r\n });\r\n }\r\n return deviceList;\r\n }\r\n\r\n function CreateGroup(count: number) {\r\n const deviceList: Array<DeviceGroup> = [];\r\n for (let i = 0; i < count; i++) {\r\n deviceList.push({\r\n id: `groupid-${i}`,\r\n name: `group-${i}`,\r\n pid: \"\",\r\n onlineCount: 0,\r\n totalCount: 0,\r\n devices: CreateDevice(4),\r\n items: CreateGroup(count - i - 1),\r\n });\r\n }\r\n return deviceList;\r\n }\r\n\r\n export function RandomDeviceGroup(count: number): SessionDeviceGroup {\r\n return {\r\n name: \"hah\",\r\n onlineCount: 0,\r\n totalCount: 0,\r\n items: CreateGroup(count),\r\n };\r\n }\r\n }\r\n\r\n function ForeachDeviceGroup(\r\n deviceGroup: DeviceGroup[],\r\n handleDeviceGroup: (deviceGroup: DeviceGroup) => void\r\n ) {\r\n for (let i = 0; i < deviceGroup.length; i++) {\r\n handleDeviceGroup(deviceGroup[i]);\r\n ForeachDeviceGroup(deviceGroup[i].items, handleDeviceGroup);\r\n }\r\n }\r\n\r\n export namespace Utils {\r\n export function AccessSession(session: SessionDeviceGroup) {\r\n const groupMap: { [k in string]: DeviceGroup } = {};\r\n const deviceMap: { [k in string]: DeviceInfo } = {};\r\n\r\n ForeachDeviceGroup(session.items, (deviceGroup) => {\r\n groupMap[deviceGroup.id] = deviceGroup;\r\n for (let i = 0; i < deviceGroup.devices.length; i++) {\r\n deviceMap[deviceGroup.devices[i].id] = deviceGroup.devices[i];\r\n }\r\n });\r\n\r\n return {\r\n getGroup(id: string) {\r\n return groupMap[id];\r\n },\r\n getDevice(id: string) {\r\n return deviceMap[id];\r\n },\r\n foreachGroup(handle: (item: DeviceGroup) => void) {\r\n for (let i in groupMap) {\r\n handle(groupMap[i]);\r\n }\r\n },\r\n };\r\n }\r\n }\r\n}\r\n","<template>\r\n <div class=\"root\">\r\n <slot></slot>\r\n <!-- <button @click=\"countInfo&&countInfo.onlineCount++\">add</button> -->\r\n <span class=\"count-show\">\r\n {{onlineCount}}/{{totalCount}}\r\n </span>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { computed, defineComponent, PropType } from 'vue'\r\nimport { RecursionDeviceGroup } from '../../components/recursion-device-group/model'\r\n\r\nexport default defineComponent({\r\n props: {\r\n countInfo: Object as PropType<RecursionDeviceGroup.ICountInfo>,\r\n controlParams: Object as PropType<RecursionDeviceGroup.IControlParams>\r\n },\r\n setup(props) {\r\n function ForeachICountInfo(handle: (countInfo: RecursionDeviceGroup.ICountInfo) => number, countInfo?: RecursionDeviceGroup.ICountInfo) {\r\n if (countInfo) {\r\n let countItem = 0;\r\n countInfo.items.forEach(item => {\r\n countItem += ForeachICountInfo(handle, item);\r\n })\r\n return handle(countInfo) + countItem;\r\n }\r\n return 0;\r\n }\r\n\r\n const onlineCount = computed(() => {\r\n return ForeachICountInfo((item) => {\r\n return item.onlineCount;\r\n }, props.countInfo)\r\n })\r\n\r\n const totalCount = computed(() => {\r\n return ForeachICountInfo((item) => item.totalCount, props.countInfo)\r\n })\r\n\r\n return {\r\n totalCount,\r\n onlineCount\r\n }\r\n },\r\n})\r\n</script>\r\n\r\n<style scoped>\r\n.root {\r\n position: relative;\r\n}\r\n\r\n.count-show {\r\n position: absolute;\r\n right: 10px;\r\n color: rgb(183, 183, 183)\r\n}\r\n</style>","<template>\r\n <div class=\"root\">\r\n <slot></slot>\r\n <!-- <button @click=\"countInfo&&countInfo.onlineCount++\">add</button> -->\r\n <span class=\"count-show\">\r\n {{onlineCount}}/{{totalCount}}\r\n </span>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { computed, defineComponent, PropType } from 'vue'\r\nimport { RecursionDeviceGroup } from '../../components/recursion-device-group/model'\r\n\r\nexport default defineComponent({\r\n props: {\r\n countInfo: Object as PropType<RecursionDeviceGroup.ICountInfo>,\r\n controlParams: Object as PropType<RecursionDeviceGroup.IControlParams>\r\n },\r\n setup(props) {\r\n function ForeachICountInfo(handle: (countInfo: RecursionDeviceGroup.ICountInfo) => number, countInfo?: RecursionDeviceGroup.ICountInfo) {\r\n if (countInfo) {\r\n let countItem = 0;\r\n countInfo.items.forEach(item => {\r\n countItem += ForeachICountInfo(handle, item);\r\n })\r\n return handle(countInfo) + countItem;\r\n }\r\n return 0;\r\n }\r\n\r\n const onlineCount = computed(() => {\r\n return ForeachICountInfo((item) => {\r\n return item.onlineCount;\r\n }, props.countInfo)\r\n })\r\n\r\n const totalCount = computed(() => {\r\n return ForeachICountInfo((item) => item.totalCount, props.countInfo)\r\n })\r\n\r\n return {\r\n totalCount,\r\n onlineCount\r\n }\r\n },\r\n})\r\n</script>\r\n\r\n<style scoped>\r\n.root {\r\n position: relative;\r\n}\r\n\r\n.count-show {\r\n position: absolute;\r\n right: 10px;\r\n color: rgb(183, 183, 183)\r\n}\r\n</style>","import { h, defineComponent } from 'vue';\n\nconst defaultIconDimensions = Object.freeze(\n {\n left: 0,\n top: 0,\n width: 16,\n height: 16\n }\n);\nconst defaultIconTransformations = Object.freeze({\n rotate: 0,\n vFlip: false,\n hFlip: false\n});\nconst defaultIconProps = Object.freeze({\n ...defaultIconDimensions,\n ...defaultIconTransformations\n});\nconst defaultExtendedIconProps = Object.freeze({\n ...defaultIconProps,\n body: \"\",\n hidden: false\n});\n\nfunction mergeIconTransformations(obj1, obj2) {\n const result = {};\n if (!obj1.hFlip !== !obj2.hFlip) {\n result.hFlip = true;\n }\n if (!obj1.vFlip !== !obj2.vFlip) {\n result.vFlip = true;\n }\n const rotate = ((obj1.rotate || 0) + (obj2.rotate || 0)) % 4;\n if (rotate) {\n result.rotate = rotate;\n }\n return result;\n}\n\nfunction mergeIconData(parent, child) {\n const result = mergeIconTransformations(parent, child);\n for (const key in defaultExtendedIconProps) {\n if (key in defaultIconTransformations) {\n if (key in parent && !(key in result)) {\n result[key] = defaultIconTransformations[key];\n }\n } else if (key in child) {\n result[key] = child[key];\n } else if (key in parent) {\n result[key] = parent[key];\n }\n }\n return result;\n}\n\nfunction getIconsTree(data, names) {\n const icons = data.icons;\n const aliases = data.aliases || {};\n const resolved = /* @__PURE__ */ Object.create(null);\n function resolve(name) {\n if (icons[name]) {\n return resolved[name] = [];\n }\n if (!(name in resolved)) {\n resolved[name] = null;\n const parent = aliases[name] && aliases[name].parent;\n const value = parent && resolve(parent);\n if (value) {\n resolved[name] = [parent].concat(value);\n }\n }\n return resolved[name];\n }\n (names || Object.keys(icons).concat(Object.keys(aliases))).forEach(resolve);\n return resolved;\n}\n\nfunction internalGetIconData(data, name, tree) {\n const icons = data.icons;\n const aliases = data.aliases || {};\n let currentProps = {};\n function parse(name2) {\n currentProps = mergeIconData(\n icons[name2] || aliases[name2],\n currentProps\n );\n }\n parse(name);\n tree.forEach(parse);\n return mergeIconData(data, currentProps);\n}\n\nfunction parseIconSet(data, callback) {\n const names = [];\n if (typeof data !== \"object\" || typeof data.icons !== \"object\") {\n return names;\n }\n if (data.not_found instanceof Array) {\n data.not_found.forEach((name) => {\n callback(name, null);\n names.push(name);\n });\n }\n const tree = getIconsTree(data);\n for (const name in tree) {\n const item = tree[name];\n if (item) {\n callback(name, internalGetIconData(data, name, item));\n names.push(name);\n }\n }\n return names;\n}\n\nconst matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/;\n\nconst optionalPropertyDefaults = {\n provider: \"\",\n aliases: {},\n not_found: {},\n ...defaultIconDimensions\n};\nfunction checkOptionalProps(item, defaults) {\n for (const prop in defaults) {\n if (prop in item && typeof item[prop] !== typeof defaults[prop]) {\n return false;\n }\n }\n return true;\n}\nfunction quicklyValidateIconSet(obj) {\n if (typeof obj !== \"object\" || obj === null) {\n return null;\n }\n const data = obj;\n if (typeof data.prefix !== \"string\" || !obj.icons || typeof obj.icons !== \"object\") {\n return null;\n }\n if (!checkOptionalProps(obj, optionalPropertyDefaults)) {\n return null;\n }\n const icons = data.icons;\n for (const name in icons) {\n const icon = icons[name];\n if (!name.match(matchIconName) || typeof icon.body !== \"string\" || !checkOptionalProps(\n icon,\n defaultExtendedIconProps\n )) {\n return null;\n }\n }\n const aliases = data.aliases || {};\n for (const name in aliases) {\n const icon = aliases[name];\n const parent = icon.parent;\n if (!name.match(matchIconName) || typeof parent !== \"string\" || !icons[parent] && !aliases[parent] || !checkOptionalProps(\n icon,\n defaultExtendedIconProps\n )) {\n return null;\n }\n }\n return data;\n}\n\nconst defaultIconSizeCustomisations = Object.freeze({\n width: null,\n height: null\n});\nconst defaultIconCustomisations = Object.freeze({\n ...defaultIconSizeCustomisations,\n ...defaultIconTransformations\n});\n\nfunction mergeCustomisations(defaults, item) {\n const result = {\n ...defaults\n };\n for (const key in item) {\n const value = item[key];\n const valueType = typeof value;\n if (key in defaultIconSizeCustomisations) {\n if (value === null || value && (valueType === \"string\" || valueType === \"number\")) {\n result[key] = value;\n }\n } else if (valueType === typeof result[key]) {\n result[key] = key === \"rotate\" ? value % 4 : value;\n }\n }\n return result;\n}\n\nconst separator = /[\\s,]+/;\nfunction flipFromString(custom, flip) {\n flip.split(separator).forEach((str) => {\n const value = str.trim();\n switch (value) {\n case \"horizontal\":\n custom.hFlip = true;\n break;\n case \"vertical\":\n custom.vFlip = true;\n break;\n }\n });\n}\n\nfunction rotateFromString(value, defaultValue = 0) {\n const units = value.replace(/^-?[0-9.]*/, \"\");\n function cleanup(value2) {\n while (value2 < 0) {\n value2 += 4;\n }\n return value2 % 4;\n }\n if (units === \"\") {\n const num = parseInt(value);\n return isNaN(num) ? 0 : cleanup(num);\n } else if (units !== value) {\n let split = 0;\n switch (units) {\n case \"%\":\n split = 25;\n break;\n case \"deg\":\n split = 90;\n }\n if (split) {\n let num = parseFloat(value.slice(0, value.length - units.length));\n if (isNaN(num)) {\n return 0;\n }\n num = num / split;\n return num % 1 === 0 ? cleanup(num) : 0;\n }\n }\n return defaultValue;\n}\n\nconst unitsSplit = /(-?[0-9.]*[0-9]+[0-9.]*)/g;\nconst unitsTest = /^-?[0-9.]*[0-9]+[0-9.]*$/g;\nfunction calculateSize(size, ratio, precision) {\n if (ratio === 1) {\n return size;\n }\n precision = precision || 100;\n if (typeof size === \"number\") {\n return Math.ceil(size * ratio * precision) / precision;\n }\n if (typeof size !== \"string\") {\n return size;\n }\n const oldParts = size.split(unitsSplit);\n if (oldParts === null || !oldParts.length) {\n return size;\n }\n const newParts = [];\n let code = oldParts.shift();\n let isNumber = unitsTest.test(code);\n while (true) {\n if (isNumber) {\n const num = parseFloat(code);\n if (isNaN(num)) {\n newParts.push(code);\n } else {\n newParts.push(Math.ceil(num * ratio * precision) / precision);\n }\n } else {\n newParts.push(code);\n }\n code = oldParts.shift();\n if (code === void 0) {\n return newParts.join(\"\");\n }\n isNumber = !isNumber;\n }\n}\n\nfunction iconToSVG(icon, customisations) {\n const fullIcon = {\n ...defaultIconProps,\n ...icon\n };\n const fullCustomisations = {\n ...defaultIconCustomisations,\n ...customisations\n };\n const box = {\n left: fullIcon.left,\n top: fullIcon.top,\n width: fullIcon.width,\n height: fullIcon.height\n };\n let body = fullIcon.body;\n [fullIcon, fullCustomisations].forEach((props) => {\n const transformations = [];\n const hFlip = props.hFlip;\n const vFlip = props.vFlip;\n let rotation = props.rotate;\n if (hFlip) {\n if (vFlip) {\n rotation += 2;\n } else {\n transformations.push(\n \"translate(\" + (box.width + box.left).toString() + \" \" + (0 - box.top).toString() + \")\"\n );\n transformations.push(\"scale(-1 1)\");\n box.top = box.left = 0;\n }\n } else if (vFlip) {\n transformations.push(\n \"translate(\" + (0 - box.left).toString() + \" \" + (box.height + box.top).toString() + \")\"\n );\n transformations.push(\"scale(1 -1)\");\n box.top = box.left = 0;\n }\n let tempValue;\n if (rotation < 0) {\n rotation -= Math.floor(rotation / 4) * 4;\n }\n rotation = rotation % 4;\n switch (rotation) {\n case 1:\n tempValue = box.height / 2 + box.top;\n transformations.unshift(\n \"rotate(90 \" + tempValue.toString() + \" \" + tempValue.toString() + \")\"\n );\n break;\n case 2:\n transformations.unshift(\n \"rotate(180 \" + (box.width / 2 + box.left).toString() + \" \" + (box.height / 2 + box.top).toString() + \")\"\n );\n break;\n case 3:\n tempValue = box.width / 2 + box.left;\n transformations.unshift(\n \"rotate(-90 \" + tempValue.toString() + \" \" + tempValue.toString() + \")\"\n );\n break;\n }\n if (rotation % 2 === 1) {\n if (box.left !== box.top) {\n tempValue = box.left;\n box.left = box.top;\n box.top = tempValue;\n }\n if (box.width !== box.height) {\n tempValue = box.width;\n box.width = box.height;\n box.height = tempValue;\n }\n }\n if (transformations.length) {\n body = '<g transform=\"' + transformations.join(\" \") + '\">' + body + \"</g>\";\n }\n });\n const customisationsWidth = fullCustomisations.width;\n const customisationsHeight = fullCustomisations.height;\n const boxWidth = box.width;\n const boxHeight = box.height;\n let width;\n let height;\n if (customisationsWidth === null) {\n height = customisationsHeight === null ? \"1em\" : customisationsHeight === \"auto\" ? boxHeight : customisationsHeight;\n width = calculateSize(height, boxWidth / boxHeight);\n } else {\n width = customisationsWidth === \"auto\" ? boxWidth : customisationsWidth;\n height = customisationsHeight === null ? calculateSize(width, boxHeight / boxWidth) : customisationsHeight === \"auto\" ? boxHeight : customisationsHeight;\n }\n const result = {\n attributes: {\n width: width.toString(),\n height: height.toString(),\n viewBox: box.left.toString() + \" \" + box.top.toString() + \" \" + boxWidth.toString() + \" \" + boxHeight.toString()\n },\n body\n };\n return result;\n}\n\nconst regex = /\\sid=\"(\\S+)\"/g;\nconst randomPrefix = \"IconifyId\" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);\nlet counter = 0;\nfunction replaceIDs(body, prefix = randomPrefix) {\n const ids = [];\n let match;\n while (match = regex.exec(body)) {\n ids.push(match[1]);\n }\n if (!ids.length) {\n return body;\n }\n ids.forEach((id) => {\n const newID = typeof prefix === \"function\" ? prefix(id) : prefix + (counter++).toString();\n const escapedID = id.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n body = body.replace(\n new RegExp('([#;\"])(' + escapedID + ')([\")]|\\\\.[a-z])', \"g\"),\n \"$1\" + newID + \"$3\"\n );\n });\n return body;\n}\n\nfunction iconToHTML(body, attributes) {\n let renderAttribsHTML = body.indexOf(\"xlink:\") === -1 ? \"\" : ' xmlns:xlink=\"http://www.w3.org/1999/xlink\"';\n for (const attr in attributes) {\n renderAttribsHTML += \" \" + attr + '=\"' + attributes[attr] + '\"';\n }\n return '<svg xmlns=\"http://www.w3.org/2000/svg\"' + renderAttribsHTML + \">\" + body + \"</svg>\";\n}\n\nfunction encodeSVGforURL(svg) {\n return svg.replace(/\"/g, \"'\").replace(/%/g, \"%25\").replace(/#/g, \"%23\").replace(/</g, \"%3C\").replace(/>/g, \"%3E\").replace(/\\s+/g, \" \");\n}\nfunction svgToURL(svg) {\n return 'url(\"data:image/svg+xml,' + encodeSVGforURL(svg) + '\")';\n}\n\nconst defaultExtendedIconCustomisations = {\n ...defaultIconCustomisations,\n inline: false,\n};\n\n/**\n * Default SVG attributes\n */\nconst svgDefaults = {\n 'xmlns': 'http://www.w3.org/2000/svg',\n 'xmlns:xlink': 'http://www.w3.org/1999/xlink',\n 'aria-hidden': true,\n 'role': 'img',\n};\n/**\n * Style modes\n */\nconst commonProps = {\n display: 'inline-block',\n};\nconst monotoneProps = {\n backgroundColor: 'currentColor',\n};\nconst coloredProps = {\n backgroundColor: 'transparent',\n};\n// Dynamically add common props to variables above\nconst propsToAdd = {\n Image: 'var(--svg)',\n Repeat: 'no-repeat',\n Size: '100% 100%',\n};\nconst propsToAddTo = {\n webkitMask: monotoneProps,\n mask: monotoneProps,\n background: coloredProps,\n};\nfor (const prefix in propsToAddTo) {\n const list = propsToAddTo[prefix];\n for (const prop in propsToAdd) {\n list[prefix + prop] = propsToAdd[prop];\n }\n}\n/**\n * Aliases for customisations.\n * In Vue 'v-' properties are reserved, so v-flip must be renamed\n */\nconst customisationAliases = {};\n['horizontal', 'vertical'].forEach((prefix) => {\n const attr = prefix.slice(0, 1) + 'Flip';\n // vertical-flip\n customisationAliases[prefix + '-flip'] = attr;\n // v-flip\n customisationAliases[prefix.slice(0, 1) + '-flip'] = attr;\n // verticalFlip\n customisationAliases[prefix + 'Flip'] = attr;\n});\n/**\n * Fix size: add 'px' to numbers\n */\nfunction fixSize(value) {\n return value + (value.match(/^[-0-9.]+$/) ? 'px' : '');\n}\n/**\n * Render icon\n */\nconst render = (\n// Icon must be validated before calling this function\nicon, \n// Partial properties\nprops) => {\n // Split properties\n const customisations = mergeCustomisations(defaultExtendedIconCustomisations, props);\n const componentProps = { ...svgDefaults };\n // Check mode\n const mode = props.mode || 'svg';\n // Copy style\n const style = {};\n const propsStyle = props.style;\n const customStyle = typeof propsStyle === 'object' && !(propsStyle instanceof Array)\n ? propsStyle\n : {};\n // Get element properties\n for (let key in props) {\n const value = props[key];\n if (value === void 0) {\n continue;\n }\n switch (key) {\n // Properties to ignore\n case 'icon':\n case 'style':\n case 'onLoad':\n case 'mode':\n break;\n // Boolean attributes\n case 'inline':\n case 'hFlip':\n case 'vFlip':\n customisations[key] =\n value === true || value === 'true' || value === 1;\n break;\n // Flip as string: 'horizontal,vertical'\n case 'flip':\n if (typeof value === 'string') {\n flipFromString(customisations, value);\n }\n break;\n // Color: override style\n case 'color':\n style.color = value;\n break;\n // Rotation as string\n case 'rotate':\n if (typeof value === 'string') {\n customisations[key] = rotateFromString(value);\n }\n else if (typeof value === 'number') {\n customisations[key] = value;\n }\n break;\n // Remove aria-hidden\n case 'ariaHidden':\n case 'aria-hidden':\n // Vue transforms 'aria-hidden' property to 'ariaHidden'\n if (value !== true && value !== 'true') {\n delete componentProps['aria-hidden'];\n }\n break;\n default: {\n const alias = customisationAliases[key];\n if (alias) {\n // Aliases for boolean customisations\n if (value === true || value === 'true' || value === 1) {\n customisations[alias] = true;\n }\n }\n else if (defaultExtendedIconCustomisations[key] === void 0) {\n // Copy missing property if it does not exist in customisations\n componentProps[key] = value;\n }\n }\n }\n }\n // Generate icon\n const item = iconToSVG(icon, customisations);\n const renderAttribs = item.attributes;\n // Inline display\n if (customisations.inline) {\n style.verticalAlign = '-0.125em';\n }\n if (mode === 'svg') {\n // Add style\n componentProps.style = {\n ...style,\n ...customStyle,\n };\n // Add icon stuff\n Object.assign(componentProps, renderAttribs);\n // Counter for ids based on \"id\" property to render icons consistently on server and client\n let localCounter = 0;\n let id = props.id;\n if (typeof id === 'string') {\n // Convert '-' to '_' to avoid errors in animations\n id = id.replace(/-/g, '_');\n }\n // Add innerHTML and style to props\n componentProps['innerHTML'] = replaceIDs(item.body, id ? () => id + 'ID' + localCounter++ : 'iconifyVue');\n // Render icon\n return h('svg', componentProps);\n }\n // Render <span> with style\n const { body, width, height } = icon;\n const useMask = mode === 'mask' ||\n (mode === 'bg' ? false : body.indexOf('currentColor') !== -1);\n // Generate SVG\n const html = iconToHTML(body, {\n ...renderAttribs,\n width: width + '',\n height: height + '',\n });\n // Generate style\n componentProps.style = {\n ...style,\n '--svg': svgToURL(html),\n 'width': fixSize(renderAttribs.width),\n 'height': fixSize(renderAttribs.height),\n ...commonProps,\n ...(useMask ? monotoneProps : coloredProps),\n ...customStyle,\n };\n return h('span', componentProps);\n};\n\n/**\n * Storage for icons referred by name\n */\nconst storage = Object.create(null);\n/**\n * Add icon to storage, allowing to call it by name\n *\n * @param name\n * @param data\n */\nfunction addIcon(name, data) {\n storage[name] = data;\n}\n/**\n * Add collection to storage, allowing to call icons by name\n *\n * @param data Icon set\n * @param prefix Optional prefix to add to icon names, true (default) if prefix from icon set should be used.\n */\nfunction addCollection(data, prefix) {\n const iconPrefix = typeof prefix === 'string'\n ? prefix\n : prefix !== false && typeof data.prefix === 'string'\n ? data.prefix + ':'\n : '';\n quicklyValidateIconSet(data) &&\n parseIconSet(data, (name, icon) => {\n if (icon) {\n storage[iconPrefix + name] = icon;\n }\n });\n}\n/**\n * Component\n */\nconst Icon = defineComponent({\n // Do not inherit other attributes: it is handled by render()\n inheritAttrs: false,\n // Render icon\n render() {\n const props = this.$attrs;\n // Check icon\n const propsIcon = props.icon;\n const icon = typeof propsIcon === 'string'\n ? storage[propsIcon]\n : typeof propsIcon === 'object'\n ? propsIcon\n : null;\n // Validate icon object\n if (icon === null ||\n typeof icon !== 'object' ||\n typeof icon.body !== 'string') {\n return this.$slots.default ? this.$slots.default() : null;\n }\n // Valid icon: render it\n return render({\n ...defaultIconProps,\n ...icon,\n }, props);\n },\n});\n\nexport { Icon, addCollection, addIcon };\n","<template>\r\n <div ref=\"virList\" class=\"infinite-list-container\" @scroll=\"scrollEvent()\">\r\n <div class=\"infinite-list-phantom\" :style=\"{ height: listHeight + 'px' }\"></div>\r\n <div class=\"infinite-list\" :style=\"{ transform: getTransform }\">\r\n <div ref=\"items\" class=\"infinite-list-item\" v-for=\"item in visibleData\" :key=\"item.id\"\r\n :style=\"{ height: itemSize + 'px',lineHeight: itemSize + 'px' }\">\r\n <slot name=\"default\" :data=\"item\"></slot>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n \r\n<script lang=\"ts\">\r\nimport { PropType, ref } from 'vue';\r\n\r\nexport default {\r\n name: 'VirtualList',\r\n props: {\r\n //所有列表数据\r\n listData: {\r\n type: Object as PropType<Array<{ id: string }>>,\r\n default: () => []\r\n },\r\n //每项高度\r\n itemSize: {\r\n type: Number,\r\n default: 200\r\n }\r\n },\r\n computed: {\r\n //列表总高度\r\n listHeight() {\r\n return this.listData.length * this.itemSize;\r\n },\r\n //可显示的列表项数\r\n visibleCount() {\r\n return Math.ceil(this.screenHeight / this.itemSize)\r\n },\r\n //偏移量对应的style\r\n getTransform() {\r\n return `translate3d(0,${this.startOffset}px,0)`;\r\n },\r\n //获取真实显示列表数据\r\n visibleData() {\r\n return this.listData.slice(this.start, Math.min(this.end, this.listData.length));\r\n }\r\n },\r\n\r\n setup() {\r\n const state = {\r\n //可视区域高度\r\n screenHeight: ref(0),\r\n //偏移量\r\n startOffset: ref(0),\r\n //起始索引\r\n start: ref(0),\r\n //结束索引\r\n end: ref(0),\r\n }\r\n const virList = ref<HTMLElement>()\r\n return {\r\n virList,\r\n ...state\r\n }\r\n },\r\n\r\n mounted() {\r\n this.screenHeight = this.$el.clientHeight;\r\n if (this.screenHeight == 0) {\r\n this.screenHeight = 400\r\n }\r\n this.start = 0;\r\n this.end = this.start + this.visibleCount;\r\n console.log('x')\r\n },\r\n methods: {\r\n scrollEvent() {\r\n if (this.virList) {\r\n //当前滚动位置\r\n let scrollTop = this.virList.scrollTop;\r\n //此时的开始索引\r\n this.start = Math.floor(scrollTop / this.itemSize);\r\n //此时的结束索引\r\n this.end = this.start + this.visibleCount;\r\n //此时的偏移量\r\n this.startOffset = scrollTop - (scrollTop % this.itemSize);\r\n }\r\n }\r\n }\r\n};\r\n</script>\r\n \r\n \r\n<style scoped>\r\n.infinite-list-container {\r\n height: 100%;\r\n overflow: auto;\r\n position: relative;\r\n -webkit-overflow-scrolling: touch;\r\n}\r\n\r\n.infinite-list-phantom {\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n right: 0;\r\n z-index: -1;\r\n}\r\n\r\n.infinite-list {\r\n left: 0;\r\n right: 0;\r\n top: 0;\r\n position: absolute;\r\n}\r\n\r\n.infinite-list-item {\r\n color: #555;\r\n box-sizing: border-box;\r\n}\r\n</style>","<template>\r\n <div ref=\"virList\" class=\"infinite-list-container\" @scroll=\"scrollEvent()\">\r\n <div class=\"infinite-list-phantom\" :style=\"{ height: listHeight + 'px' }\"></div>\r\n <div class=\"infinite-list\" :style=\"{ transform: getTransform }\">\r\n <div ref=\"items\" class=\"infinite-list-item\" v-for=\"item in visibleData\" :key=\"item.id\"\r\n :style=\"{ height: itemSize + 'px',lineHeight: itemSize + 'px' }\">\r\n <slot name=\"default\" :data=\"item\"></slot>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n \r\n<script lang=\"ts\">\r\nimport { PropType, ref } from 'vue';\r\n\r\nexport default {\r\n name: 'VirtualList',\r\n props: {\r\n //所有列表数据\r\n listData: {\r\n type: Object as PropType<Array<{ id: string }>>,\r\n default: () => []\r\n },\r\n //每项高度\r\n itemSize: {\r\n type: Number,\r\n default: 200\r\n }\r\n },\r\n computed: {\r\n //列表总高度\r\n listHeight() {\r\n return this.listData.length * this.itemSize;\r\n },\r\n //可显示的列表项数\r\n visibleCount() {\r\n return Math.ceil(this.screenHeight / this.itemSize)\r\n },\r\n //偏移量对应的style\r\n getTransform() {\r\n return `translate3d(0,${this.startOffset}px,0)`;\r\n },\r\n //获取真实显示列表数据\r\n visibleData() {\r\n return this.listData.slice(this.start, Math.min(this.end, this.listData.length));\r\n }\r\n },\r\n\r\n setup() {\r\n const state = {\r\n //可视区域高度\r\n screenHeight: ref(0),\r\n //偏移量\r\n startOffset: ref(0),\r\n //起始索引\r\n start: ref(0),\r\n //结束索引\r\n end: ref(0),\r\n }\r\n const virList = ref<HTMLElement>()\r\n return {\r\n virList,\r\n ...state\r\n }\r\n },\r\n\r\n mounted() {\r\n this.screenHeight = this.$el.clientHeight;\r\n if (this.screenHeight == 0) {\r\n this.screenHeight = 400\r\n }\r\n this.start = 0;\r\n this.end = this.start + this.visibleCount;\r\n console.log('x')\r\n },\r\n methods: {\r\n scrollEvent() {\r\n if (this.virList) {\r\n //当前滚动位置\r\n let scrollTop = this.virList.scrollTop;\r\n //此时的开始索引\r\n this.start = Math.floor(scrollTop / this.itemSize);\r\n //此时的结束索引\r\n this.end = this.start + this.visibleCount;\r\n //此时的偏移量\r\n this.startOffset = scrollTop - (scrollTop % this.itemSize);\r\n }\r\n }\r\n }\r\n};\r\n</script>\r\n \r\n \r\n<style scoped>\r\n.infinite-list-container {\r\n height: 100%;\r\n overflow: auto;\r\n position: relative;\r\n -webkit-overflow-scrolling: touch;\r\n}\r\n\r\n.infinite-list-phantom {\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n right: 0;\r\n z-index: -1;\r\n}\r\n\r\n.infinite-list {\r\n left: 0;\r\n right: 0;\r\n top: 0;\r\n position: absolute;\r\n}\r\n\r\n.infinite-list-item {\r\n color: #555;\r\n box-sizing: border-box;\r\n}\r\n</style>","<template>\r\n <div :class=\"'group ' + theme\" v-if=\"showGroup\">\r\n <CountShow :countInfo=\"deviceGroup\" :controlParams=\"controlParams\">\r\n <span v-if=\"deviceGroup && (deviceGroup.devices.length + deviceGroup.items.length > 0)\" class=\"head-op\">\r\n <Icon icon=\"plus\" width=\"20\" @click=\"bShow = !bShow\" v-if=\"!bShow\" class=\"handle-ls-svg\" />\r\n <Icon icon=\"minus\" width=\"20\" @click=\"bShow = !bShow\" v-else class=\"handle-ls-svg\" />\r\n </span>\r\n <span class=\"group-head-db-click\" @dblclick=\"bShow = !bShow\">\r\n <Icon icon=\"group\" width=\"24\" class=\"group-avatar\" />\r\n <span class=\"group-name\" :title=\"deviceGroup?.name\">\r\n {{(deviceGroup?.name && deviceGroup?.name.length > 0)?deviceGroup?.name:deviceGroup?.id}}\r\n </span>\r\n </span>\r\n <div class=\"group-slot\">\r\n <slot name=\"group\" :group=\"deviceGroup\"></slot>\r\n </div>\r\n </CountShow>\r\n\r\n <div style=\"margin-left: 26px\" v-if=\"bShow\">\r\n <group-show v-for=\"group, index in (deviceGroup?.items)\" :key=\"index\" :deviceGroup=\"group\"\r\n :controlParams=\"controlParams\">\r\n <template #group=\"{group}\">\r\n <slot name=\"group\" :group=\"group\"></slot>\r\n </template>\r\n <template #device=\"{device, group}\">\r\n <slot name=\"device\" :device=\"device\" :group=\"group\"></slot>\r\n </template>\r\n </group-show>\r\n <div class=\"device-show-div\"\r\n :style=\"`height: ${filteredDevices.length > 10 ? '400px' : `${filteredDevices.length * 40}px`}`\">\r\n <VirtualList :list-data=\"filteredDevices\" :item-size=\"40\">\r\n <template #default=\"{data: item }\">\r\n <div :class=\"item.online&&'online-device'\">\r\n <Icon icon=\"user\" width=\"16\" class=\"device-avatar\" />\r\n <span :title=\"item.id\" class=\"device-name\">{{item.name.length > 0 ? item.name :\r\n item.id}}</span>\r\n <div class=\"device-slot\">\r\n <slot name=\"device\" :device=\"item\" :group=\"deviceGroup\"></slot>\r\n </div>\r\n </div>\r\n </template>\r\n </VirtualList>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { computed, defineComponent, PropType, ref, inject } from 'vue'\r\nimport { RecursionDeviceGroup } from '/@/components/recursion-device-group/model'\r\nimport CountShow from \"../count-show/index.vue\"\r\nimport { Icon } from '@iconify/vue/offline';\r\nimport VirtualList from \"../VirtualList/index.vue\"\r\n\r\nexport default defineComponent({\r\n components: {\r\n VirtualList,\r\n CountShow,\r\n Icon\r\n },\r\n name: \"group-show\",\r\n props: {\r\n deviceGroup: Object as PropType<RecursionDeviceGroup.DeviceGroup>,\r\n controlParams: Object as PropType<RecursionDeviceGroup.IControlParams>\r\n },\r\n setup(props) {\r\n\r\n const theme = inject(\"theme\") as string\r\n\r\n\r\n const filteredDevices = computed(() => {\r\n return FilterDevice(props.deviceGroup?.devices)\r\n })\r\n\r\n\r\n function FilterDevice(devices?: RecursionDeviceGroup.DeviceInfo[]) {\r\n return (devices && devices.filter(item => !props.controlParams?.onlyShowOnline || item.online))?.filter((item) => {\r\n if (props.controlParams) {\r\n return item.name.indexOf(props.controlParams?.searchStr) >= 0 || item.id.indexOf(props.controlParams?.searchStr) >= 0\r\n }\r\n return true;\r\n }) || []\r\n }\r\n\r\n const showGroup = computed(() => {\r\n const strSearch = (props.controlParams as any).searchStr as string;\r\n\r\n if (strSearch.length == 0) {\r\n return true;\r\n }\r\n\r\n if (props.deviceGroup && props.deviceGroup?.name.indexOf(strSearch) > 0) {\r\n return true;\r\n }\r\n\r\n return props.deviceGroup?.devices.find(item => item.name.indexOf((props.controlParams as any).searchStr) >= 0 || item.id.indexOf((props.controlParams as any).searchStr) >= 0)\r\n })\r\n\r\n const bShow = ref(false);\r\n return {\r\n filteredDevices,\r\n showGroup,\r\n FilterDevice,\r\n bShow,\r\n theme\r\n }\r\n },\r\n})\r\n</script>\r\n\r\n<style>\r\n:root {\r\n --device-offline-color: rgb(168, 168, 168);\r\n --device-online-color: rgb(1, 172, 1);\r\n --group-name-width: 160px;\r\n\r\n}\r\n</style>\r\n\r\n<style scoped>\r\n.group-head-db-click,\r\n.group-head-db-click .group-name {\r\n cursor: pointer;\r\n user-select: none;\r\n}\r\n\r\n.device-show-div {\r\n max-height: 400px;\r\n overflow-y: auto;\r\n}\r\n\r\n.dark .handle-ls-svg {\r\n color: white;\r\n}\r\n\r\n\r\n.handle-ls-svg {\r\n vertical-align: -5px;\r\n cursor: pointer;\r\n margin-right: 5px;\r\n color: rgb(56, 56, 56)\r\n}\r\n\r\n.group-avatar {\r\n vertical-align: -6px;\r\n color: gray;\r\n}\r\n\r\n.device,\r\n.group {\r\n margin: 5px 0px;\r\n}\r\n\r\n.group-name {\r\n display: inline-block;\r\n width: var(--group-name-width);\r\n cursor: default;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n vertical-align: middle;\r\n line-height: 24px;\r\n padding-left: 5px;\r\n}\r\n\r\n.group-slot {\r\n display: inline-block;\r\n width: calc(100% - var(--group-name-width) - 100px);\r\n}\r\n\r\n.device-slot {\r\n display: inline-block;\r\n width: calc(100% - var(--group-name-width) - 42px);\r\n}\r\n\r\n.device-avatar {\r\n vertical-align: -2px;\r\n margin-right: 4px;\r\n margin-left: 2px;\r\n color: var(--device-offline-color);\r\n}\r\n\r\n.device-name {\r\n display: inline-block;\r\n width: var(--group-name-width);\r\n cursor: default;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n vertical-align: bottom;\r\n color: var(--device-offline-color);\r\n padding-left: 5px;\r\n}\r\n\r\n.online-device .device-avatar,\r\n.online-device .device-name {\r\n color: var(--device-online-color)\r\n}\r\n</style>\r\n","<template>\r\n <div :class=\"'group ' + theme\" v-if=\"showGroup\">\r\n <CountShow :countInfo=\"deviceGroup\" :controlParams=\"controlParams\">\r\n <span v-if=\"deviceGroup && (deviceGroup.devices.length + deviceGroup.items.length > 0)\" class=\"head-op\">\r\n <Icon icon=\"plus\" width=\"20\" @click=\"bShow = !bShow\" v-if=\"!bShow\" class=\"handle-ls-svg\" />\r\n <Icon icon=\"minus\" width=\"20\" @click=\"bShow = !bShow\" v-else class=\"handle-ls-svg\" />\r\n </span>\r\n <span class=\"group-head-db-click\" @dblclick=\"bShow = !bShow\">\r\n <Icon icon=\"group\" width=\"24\" class=\"group-avatar\" />\r\n <span class=\"group-name\" :title=\"deviceGroup?.name\">\r\n {{(deviceGroup?.name && deviceGroup?.name.length > 0)?deviceGroup?.name:deviceGroup?.id}}\r\n </span>\r\n </span>\r\n <div class=\"group-slot\">\r\n <slot name=\"group\" :group=\"deviceGroup\"></slot>\r\n </div>\r\n </CountShow>\r\n\r\n <div style=\"margin-left: 26px\" v-if=\"bShow\">\r\n <group-show v-for=\"group, index in (deviceGroup?.items)\" :key=\"index\" :deviceGroup=\"group\"\r\n :controlParams=\"controlParams\">\r\n <template #group=\"{group}\">\r\n <slot name=\"group\" :group=\"group\"></slot>\r\n </template>\r\n <template #device=\"{device, group}\">\r\n <slot name=\"device\" :device=\"device\" :group=\"group\"></slot>\r\n </template>\r\n </group-show>\r\n <div class=\"device-show-div\"\r\n :style=\"`height: ${filteredDevices.length > 10 ? '400px' : `${filteredDevices.length * 40}px`}`\">\r\n <VirtualList :list-data=\"filteredDevices\" :item-size=\"40\">\r\n <template #default=\"{data: item }\">\r\n <div :class=\"item.online&&'online-device'\">\r\n <Icon icon=\"user\" width=\"16\" class=\"device-avatar\" />\r\n <span :title=\"item.id\" class=\"device-name\">{{item.name.length > 0 ? item.name :\r\n item.id}}</span>\r\n <div class=\"device-slot\">\r\n <slot name=\"device\" :device=\"item\" :group=\"deviceGroup\"></slot>\r\n </div>\r\n </div>\r\n </template>\r\n </VirtualList>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { computed, defineComponent, PropType, ref, inject } from 'vue'\r\nimport { RecursionDeviceGroup } from '/@/components/recursion-device-group/model'\r\nimport CountShow from \"../count-show/index.vue\"\r\nimport { Icon } from '@iconify/vue/offline';\r\nimport VirtualList from \"../VirtualList/index.vue\"\r\n\r\nexport default defineComponent({\r\n components: {\r\n VirtualList,\r\n CountShow,\r\n Icon\r\n },\r\n name: \"group-show\",\r\n props: {\r\n deviceGroup: Object as PropType<RecursionDeviceGroup.DeviceGroup>,\r\n controlParams: Object as PropType<RecursionDeviceGroup.IControlParams>\r\n },\r\n setup(props) {\r\n\r\n const theme = inject(\"theme\") as string\r\n\r\n\r\n const filteredDevices = computed(() => {\r\n return FilterDevice(props.deviceGroup?.devices)\r\n })\r\n\r\n\r\n function FilterDevice(devices?: RecursionDeviceGroup.DeviceInfo[]) {\r\n return (devices && devices.filter(item => !props.controlParams?.onlyShowOnline || item.online))?.filter((item) => {\r\n if (props.controlParams) {\r\n return item.name.indexOf(props.controlParams?.searchStr) >= 0 || item.id.indexOf(props.controlParams?.searchStr) >= 0\r\n }\r\n return true;\r\n }) || []\r\n }\r\n\r\n const showGroup = computed(() => {\r\n const strSearch = (props.controlParams as any).searchStr as string;\r\n\r\n if (strSearch.length == 0) {\r\n return true;\r\n }\r\n\r\n if (props.deviceGroup && props.deviceGroup?.name.indexOf(strSearch) > 0) {\r\n return true;\r\n }\r\n\r\n return props.deviceGroup?.devices.find(item => item.name.indexOf((props.controlParams as any).searchStr) >= 0 || item.id.indexOf((props.controlParams as any).searchStr) >= 0)\r\n })\r\n\r\n const bShow = ref(false);\r\n return {\r\n filteredDevices,\r\n showGroup,\r\n FilterDevice,\r\n bShow,\r\n theme\r\n }\r\n },\r\n})\r\n</script>\r\n\r\n<style>\r\n:root {\r\n --device-offline-color: rgb(168, 168, 168);\r\n --device-online-color: rgb(1, 172, 1);\r\n --group-name-width: 160px;\r\n\r\n}\r\n</style>\r\n\r\n<style scoped>\r\n.group-head-db-click,\r\n.group-head-db-click .group-name {\r\n cursor: pointer;\r\n user-select: none;\r\n}\r\n\r\n.device-show-div {\r\n max-height: 400px;\r\n overflow-y: auto;\r\n}\r\n\r\n.dark .handle-ls-svg {\r\n color: white;\r\n}\r\n\r\n\r\n.handle-ls-svg {\r\n vertical-align: -5px;\r\n cursor: pointer;\r\n margin-right: 5px;\r\n color: rgb(56, 56, 56)\r\n}\r\n\r\n.group-avatar {\r\n vertical-align: -6px;\r\n color: gray;\r\n}\r\n\r\n.device,\r\n.group {\r\n margin: 5px 0px;\r\n}\r\n\r\n.group-name {\r\n display: inline-block;\r\n width: var(--group-name-width);\r\n cursor: default;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n vertical-align: middle;\r\n line-height: 24px;\r\n padding-left: 5px;\r\n}\r\n\r\n.group-slot {\r\n display: inline-block;\r\n width: calc(100% - var(--group-name-width) - 100px);\r\n}\r\n\r\n.device-slot {\r\n display: inline-block;\r\n width: calc(100% - var(--group-name-width) - 42px);\r\n}\r\n\r\n.device-avatar {\r\n vertical-align: -2px;\r\n margin-right: 4px;\r\n margin-left: 2px;\r\n color: var(--device-offline-color);\r\n}\r\n\r\n.device-name {\r\n display: inline-block;\r\n width: var(--group-name-width);\r\n cursor: default;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n vertical-align: bottom;\r\n color: var(--device-offline-color);\r\n padding-left: 5px;\r\n}\r\n\r\n.online-device .device-avatar,\r\n.online-device .device-name {\r\n color: var(--device-online-color)\r\n}\r\n</style>\r\n","const data = {\n\t\"width\": 1024,\n\t\"height\": 1024,\n\t\"body\": \"<path fill=\\\"currentColor\\\" d=\\\"M384 192v640l384-320.064z\\\"/>\"\n};\nexport default data;\n","const data = {\n\t\"width\": 1024,\n\t\"height\": 1024,\n\t\"body\": \"<path fill=\\\"currentColor\\\" d=\\\"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z\\\"/>\"\n};\nexport default data;\n","const data = {\n\t\"width\": 1024,\n\t\"height\": 1024,\n\t\"body\": \"<path fill=\\\"currentColor\\\" d=\\\"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0a208 208 0 0 1 416 0z\\\"/>\"\n};\nexport default data;\n","const data = {\n\t\"width\": 1024,\n\t\"height\": 1024,\n\t\"body\": \"<path fill=\\\"currentColor\\\" d=\\\"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z\\\"/>\"\n};\nexport default data;\n","const data = {\n\t\"width\": 1024,\n\t\"height\": 1024,\n\t\"body\": \"<path fill=\\\"currentColor\\\" d=\\\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\\\"/>\"\n};\nexport default data;\n","<template>\r\n <div class=\"device-group-list\">\r\n <div class=\"search-panel\">\r\n <!-- <div style=\"height: 32px; line-height: 32px;\">\r\n <img src=\"\" />\r\n <input type=\"text\" @change=\"onSearchChange\" ref=\"inputSearchRef\" />\r\n </div> -->\r\n <CountShow :countInfo=\"deviceGroup\">\r\n <input type=\"checkbox\" id=\"onlineShow\" value=\"onlineShow\" @change=\"onCheckBoxChange\" />\r\n <label for=\"onlineShow\">只显示在线设备</label>\r\n </CountShow>\r\n </div>\r\n <div class=\"device-panel\">\r\n <group-show :controlParams=\"controlParams\" v-for=\"itemGroup, index in deviceGroup?.items\" :key=\"index\"\r\n :deviceGroup=\"itemGroup\">\r\n <template #group=\"{group}\">\r\n <slot name=\"group\" :group=\"group\"></slot>\r\n </template>\r\n <template #device=\"{device, group}\">\r\n <slot name=\"device\" :device=\"device\" :group=\"group\"></slot>\r\n </template>\r\n </group-show>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { defineComponent, PropType, ref, provide } from 'vue'\r\nimport { RecursionDeviceGroup } from \"./model\"\r\nimport GroupShow from \"/@/components-global/group-show/index.vue\"\r\nimport CountShow from \"/@/components-global/count-show/index.vue\"\r\n\r\nimport { addIcon } from \"@iconify/vue/offline\"\r\nimport right from \"@iconify-icons/ep/caret-right\"\r\nimport group from \"@iconify-icons/ep/folder-opened\"\r\nimport avatar from \"@iconify-icons/ep/avatar\"\r\nimport plus from \"@iconify-icons/ep/plus\"\r\nimport minus from \"@iconify-icons/ep/minus\"\r\n\r\naddIcon('right', right);\r\naddIcon('group', group);\r\naddIcon('user', avatar);\r\naddIcon('plus', plus);\r\naddIcon('minus', minus);\r\n\r\n\r\nexport default defineComponent({\r\n components: {\r\n CountShow,\r\n GroupShow\r\n },\r\n props: {\r\n deviceGroup: Object as PropType<RecursionDeviceGroup.SessionDeviceGroup>,\r\n theme: {\r\n type: String as PropType<\"dark\" | ''>,\r\n default: \"\"\r\n },\r\n },\r\n methods: {\r\n onCheckBoxChange() {\r\n this.controlParams.onlyShowOnline = !this.controlParams.onlyShowOnline;\r\n },\r\n onSearchChange() {\r\n if (this.inputSearchRef) {\r\n this.controlParams.searchStr = this.inputSearchRef?.value\r\n }\r\n },\r\n search(str: string) {\r\n this.controlParams.searchStr = str;\r\n }\r\n },\r\n setup(props) {\r\n\r\n provide(\"theme\", props.theme)\r\n\r\n const controlParams = ref<RecursionDeviceGroup.IControlParams>({\r\n onlyShowOnline: false,\r\n searchStr: \"\"\r\n });\r\n const inputSearchRef = ref<HTMLInputElement>()\r\n return {\r\n inputSearchRef,\r\n controlParams\r\n }\r\n },\r\n})\r\n\r\n</script>\r\n\r\n\r\n<style>\r\n:root {\r\n --sec-main-search-height: 32px\r\n}\r\n</style>\r\n\r\n\r\n<style scoped>\r\n.device-group-list {\r\n height: 100%;\r\n}\r\n\r\n.device-group-list .search-panel {\r\n height: var(--sec-main-search-height);\r\n}\r\n\r\n.device-group-list .device-panel {\r\n height: calc(100% - var(--sec-main-search-height));\r\n overflow-y: auto;\r\n}\r\n</style>\r\n\r\n","<template>\r\n <div class=\"device-group-list\">\r\n <div class=\"search-panel\">\r\n <!-- <div style=\"height: 32px; line-height: 32px;\">\r\n <img src=\"\" />\r\n <input type=\"text\" @change=\"onSearchChange\" ref=\"inputSearchRef\" />\r\n </div> -->\r\n <CountShow :countInfo=\"deviceGroup\">\r\n <input type=\"checkbox\" id=\"onlineShow\" value=\"onlineShow\" @change=\"onCheckBoxChange\" />\r\n <label for=\"onlineShow\">只显示在线设备</label>\r\n </CountShow>\r\n </div>\r\n <div class=\"device-panel\">\r\n <group-show :controlParams=\"controlParams\" v-for=\"itemGroup, index in deviceGroup?.items\" :key=\"index\"\r\n :deviceGroup=\"itemGroup\">\r\n <template #group=\"{group}\">\r\n <slot name=\"group\" :group=\"group\"></slot>\r\n </template>\r\n <template #device=\"{device, group}\">\r\n <slot name=\"device\" :device=\"device\" :group=\"group\"></slot>\r\n </template>\r\n </group-show>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { defineComponent, PropType, ref, provide } from 'vue'\r\nimport { RecursionDeviceGroup } from \"./model\"\r\nimport GroupShow from \"/@/components-global/group-show/index.vue\"\r\nimport CountShow from \"/@/components-global/count-show/index.vue\"\r\n\r\nimport { addIcon } from \"@iconify/vue/offline\"\r\nimport right from \"@iconify-icons/ep/caret-right\"\r\nimport group from \"@iconify-icons/ep/folder-opened\"\r\nimport avatar from \"@iconify-icons/ep/avatar\"\r\nimport plus from \"@iconify-icons/ep/plus\"\r\nimport minus from \"@iconify-icons/ep/minus\"\r\n\r\naddIcon('right', right);\r\naddIcon('group', group);\r\naddIcon('user', avatar);\r\naddIcon('plus', plus);\r\naddIcon('minus', minus);\r\n\r\n\r\nexport default defineComponent({\r\n components: {\r\n CountShow,\r\n GroupShow\r\n },\r\n props: {\r\n deviceGroup: Object as PropType<RecursionDeviceGroup.SessionDeviceGroup>,\r\n theme: {\r\n type: String as PropType<\"dark\" | ''>,\r\n default: \"\"\r\n },\r\n },\r\n methods: {\r\n onCheckBoxChange() {\r\n this.controlParams.onlyShowOnline = !this.controlParams.onlyShowOnline;\r\n },\r\n onSearchChange() {\r\n if (this.inputSearchRef) {\r\n this.controlParams.searchStr = this.inputSearchRef?.value\r\n }\r\n },\r\n search(str: string) {\r\n this.controlParams.searchStr = str;\r\n }\r\n },\r\n setup(props) {\r\n\r\n provide(\"theme\", props.theme)\r\n\r\n const controlParams = ref<RecursionDeviceGroup.IControlParams>({\r\n onlyShowOnline: false,\r\n searchStr: \"\"\r\n });\r\n const inputSearchRef = ref<HTMLInputElement>()\r\n return {\r\n inputSearchRef,\r\n controlParams\r\n }\r\n },\r\n})\r\n\r\n</script>\r\n\r\n\r\n<style>\r\n:root {\r\n --sec-main-search-height: 32px\r\n}\r\n</style>\r\n\r\n\r\n<style scoped>\r\n.device-group-list {\r\n height: 100%;\r\n}\r\n\r\n.device-group-list .search-panel {\r\n height: var(--sec-main-search-height);\r\n}\r\n\r\n.device-group-list .device-panel {\r\n height: calc(100% - var(--sec-main-search-height));\r\n overflow-y: auto;\r\n}\r\n</style>\r\n\r\n","import { Plugin, App } from \"vue\";\r\n\r\nexport * from \"./comp.d\";\r\nexport * from \"./components\";\r\n\r\nimport RecursionDeviceGroup from \"/@/components/recursion-device-group/index.vue\";\r\n\r\nconst components = {\r\n RecursionDeviceGroup,\r\n};\r\n\r\nconst _default: Plugin = {\r\n install(app: App) {\r\n for (const itemKey in components) {\r\n const item = components[itemKey as keyof typeof components];\r\n app.component(itemKey, item);\r\n }\r\n },\r\n};\r\n\r\nexport default _default;\r\n"],"names":["RecursionDeviceGroup","Test","CreateDevice","count","deviceList","i","CreateGroup","RandomDeviceGroup","ForeachDeviceGroup","deviceGroup","handleDeviceGroup","Utils","AccessSession","session","groupMap","deviceMap","id","handle","_sfc_main$3","defineComponent","props","ForeachICountInfo","countInfo","countItem","item","onlineCount","computed","_openBlock","_createElementBlock","_hoisted_1","_renderSlot","_ctx","defaultIconDimensions","defaultIconTransformations","defaultIconProps","defaultIconSizeCustomisations","defaultIconCustomisations","mergeCustomisations","defaults","result","key","value","valueType","separator","flipFromString","custom","flip","str","rotateFromString","defaultValue","units","cleanup","value2","num","split","unitsSplit","unitsTest","calculateSize","size","ratio","precision","oldParts","newParts","code","isNumber","iconToSVG","icon","customisations","fullIcon","fullCustomisations","box","body","transformations","hFlip","vFlip","rotation","tempValue","customisationsWidth","customisationsHeight","boxWidth","boxHeight","width","height","regex","randomPrefix","counter","replaceIDs","prefix","ids","match","newID","escapedID","iconToHTML","attributes","renderAttribsHTML","attr","encodeSVGforURL","svg","svgToURL","defaultExtendedIconCustomisations","svgDefaults","commonProps","monotoneProps","coloredProps","propsToAdd","propsToAddTo","list","prop","customisationAliases","fixSize","render","componentProps","mode","style","propsStyle","customStyle","alias","renderAttribs","localCounter","h","useMask","html","storage","addIcon","name","data","Icon","propsIcon","_sfc_main$2","state","ref","virList","__spreadValues","scrollTop","_createElementVNode","_normalizeStyle","$props","_sfc_main$1","VirtualList","CountShow","theme","inject","filteredDevices","FilterDevice","_a","devices","_a2","_b","showGroup","strSearch","bShow","_hoisted_4","_component_VirtualList","_resolveComponent","_withCtx","_cache","$event","_createBlock","_component_Icon","_createCommentVNode","_createVNode","_toDisplayString","_c","_d","_e","_hoisted_2","_hoisted_3","_Fragment","_renderList","group","index","_component_group_show","device","group2","_hoisted_5","_hoisted_6","right","avatar","plus","minus","_sfc_main","GroupShow","provide","controlParams","_withScopeId","n","_pushScopeId","_popScopeId","_component_CountShow","itemGroup","components","_default","app","itemKey"],"mappings":"mIAAiBA,QAAA,qBAAA,QAAAA,GAAV,EA8CYC,GAAV,CAEL,SAASC,EAAaC,EAAkC,CACtD,MAAMC,EAAgC,CAAA,EACtC,QAASC,EAAI,EAAGA,EAAIF,EAAOE,IACzBD,EAAW,KAAK,CACd,GAAI,SACJ,IAAK,GACL,KAAM,UAAUC,IAChB,OAAQA,EAAI,GAAK,EACjB,SAAU,CAAC,CAAA,CACZ,EAEI,OAAAD,CACT,CAEA,SAASE,EAAYH,EAAe,CAClC,MAAMC,EAAiC,CAAA,EACvC,QAASC,EAAI,EAAGA,EAAIF,EAAOE,IACzBD,EAAW,KAAK,CACd,GAAI,WAAWC,IACf,KAAM,SAASA,IACf,IAAK,GACL,YAAa,EACb,WAAY,EACZ,QAASH,EAAa,CAAC,EACvB,MAAOI,EAAYH,EAAQE,EAAI,CAAC,CAAA,CACjC,EAEI,OAAAD,CACT,CAEO,SAASG,EAAkBJ,EAAmC,CAC5D,MAAA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