@qaecy/cue-ui 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/236.js +1 -0
- package/269.js +1 -1
- package/284.js +1 -0
- package/371.js +1 -0
- package/418.js +1 -1
- package/{160.js → 419.js} +1 -1
- package/443.js +1 -0
- package/560.js +1 -1
- package/570.js +1 -0
- package/598.js +1 -1
- package/60.js +1 -0
- package/710.js +1 -1
- package/741.js +1 -1
- package/774.js +1 -0
- package/83.js +1 -0
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/141.js +0 -1
- package/21.js +0 -1
- package/266.js +0 -1
- package/28.js +0 -1
- package/280.js +0 -1
- package/378.js +0 -1
- package/63.js +0 -1
- package/734.js +0 -1
- package/754.js +0 -1
- package/769.js +0 -1
- package/927.js +0 -1
- package/941.js +0 -1
package/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[76],{2014(x,k,a){a.d(k,{z:()=>C});var s=a(7705),p=a(2271),u=a(5547);const f=["*"];let C=(()=>{class n{justify=(0,s.hFB)("start");size=(0,s.hFB)("l");widthStyle=(0,p.EW)(()=>`var(--cue-button-label-padding-${this.size()}-x)`);static \u0275fac=function(o){return new(o||n)};static \u0275cmp=u.VBU({type:n,selectors:[["cue-button-padder"]],inputs:{justify:[1,"justify"],size:[1,"size"]},ngContentSelectors:f,decls:2,vars:4,template:function(o,m){1&o&&(u.NAR(),u.rj2(0,"div"),u.SdG(1),u.eux()),2&o&&u.xc7("justify-content",m.justify())("min-width",m.widthStyle())},styles:["div[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:1px}"]})}return n})()},6034(x,k,a){a.d(k,{y:()=>M});var s=a(7705),p=a(7598),u=a(9769),f=a(5187),C=a(2271),n=a(5547);const c=["*"];let r=(()=>{class l{style=(0,s.hFB)("");gap=(0,s.hFB)("m");columns=(0,s.hFB)(1);getStyles=(0,C.EW)(()=>`\n grid-template-columns: repeat(${this.columns()}, minmax(0, 1fr));\n gap: var(--cue-grid-gap-${this.gap()});\n ${this.style()}\n `);static \u0275fac=function(t){return new(t||l)};static \u0275cmp=n.VBU({type:l,selectors:[["cue-grid"]],hostVars:2,hostBindings:function(t,e){2&t&&n.Aen(e.getStyles())},inputs:{style:[1,"style"],gap:[1,"gap"],columns:[1,"columns"]},ngContentSelectors:c,decls:1,vars:0,template:function(t,e){1&t&&(n.NAR(),n.SdG(0))},styles:["[_nghost-%COMP%]{display:grid}"]})}return l})();var o=a(2245),m=a(5381),y=a(29);const F=["*"];function P(l,v){if(1&l&&(n.j41(0,"cue-typography",2),n.EFF(1),n.k0s()),2&l){const i=n.XpG();n.R7$(),n.SpI(" ",i.label()," ")}}let M=(()=>{class l{label=(0,s.hFB)("");variant=(0,s.hFB)("default");shadow=(0,s.hFB)(!1);padded=(0,s.hFB)(!0);showCloseBtn=(0,s.hFB)(!0);position=(0,s.hFB)("top-left");clickedClose=(0,s.CGW)();margin=(0,s.hFB)("0.5rem");close(i){i.stopPropagation(),i.stopImmediatePropagation(),this.clickedClose.emit()}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=n.VBU({type:l,selectors:[["cue-draggable-card"]],inputs:{label:[1,"label"],variant:[1,"variant"],shadow:[1,"shadow"],padded:[1,"padded"],showCloseBtn:[1,"showCloseBtn"],position:[1,"position"],margin:[1,"margin"]},outputs:{clickedClose:"clickedClose"},ngContentSelectors:F,decls:8,vars:14,consts:[["cdkDrag","",1,"panel",3,"variant","shadow","padded"],["justify","end"],["size","l"],[2,"width","100%"],["name","close",2,"cursor","pointer",3,"click"]],template:function(t,e){1&t&&(n.NAR(),n.j41(0,"cue-card",0)(1,"cue-typography")(2,"cue-grid")(3,"cue-flexcontainer",1),n.nVh(4,P,2,1,"cue-typography",2),n.nrm(5,"span",3),n.j41(6,"cue-svg-icon",4),n.bIt("click",function(g){return e.close(g)}),n.k0s()(),n.SdG(7),n.k0s()()()),2&t&&(n.xc7("top","top-left"===e.position()||"top-right"===e.position()?e.margin():"null")("bottom","bottom-left"===e.position()||"bottom-right"===e.position()?e.margin():"null")("left","top-left"===e.position()||"bottom-left"===e.position()?e.margin():"null")("right","top-right"===e.position()||"bottom-right"===e.position()?e.margin():"null"),n.Y8G("variant",e.variant())("shadow",e.shadow())("padded",e.padded()),n.R7$(3),n.xc7("padding",e.padded()?"0":"10px"),n.R7$(),n.vxM(e.label()&&"undefined"!==e.label()?4:-1))},dependencies:[u.MD,f.Card,r,o.o,m.n,y.A,p.T1],styles:[".panel[_ngcontent-%COMP%]{position:absolute;width:fit-content}"]})}return l})()},1359(x,k,a){a.d(k,{S:()=>P});var s=a(7705),p=a(2271),u=a(5802),f=a(9769),C=a(9417),n=a(8173),c=a(9615),o=a(5547);const m=(_,M)=>({borderColor:_,backgroundColor:M}),y=()=>({});function F(_,M){if(1&_&&(o.j41(0,"span",5),o.EFF(1),o.k0s()),2&_){const l=o.XpG();o.R7$(),o.JRh(l.label())}}let P=(()=>{class _{label=(0,s.hFB)("");checked=(0,s.geq)(!1);disabled=(0,s.geq)(!1);color=(0,s.hFB)(void 0);size=(0,s.geq)("m");checkedChange=(0,s.CGW)();safeColor=(0,p.EW)(()=>function r(_,M,l=30){function v(h){if((h=h.trim().toLowerCase()).startsWith("#")){let d=h.slice(1);if(3===d.length&&(d=d.split("").map(b=>b+b).join("")),6===d.length)return[parseInt(d.slice(0,2),16),parseInt(d.slice(2,4),16),parseInt(d.slice(4,6),16)]}const g=h.match(/rgba?\(([^)]+)\)/);if(g){const d=g[1].split(",").map(b=>parseFloat(b.trim()));if(d.length>=3)return[d[0],d[1],d[2]]}return null}const i=v(_),t=v(M);return!(!i||!t)&&Math.sqrt(Math.pow(i[0]-t[0],2)+Math.pow(i[1]-t[1],2)+Math.pow(i[2]-t[2],2))<=l}(this.color()||"",this.bgColor()||"")?void 0:this.color());bgColor=(0,u.vPA)(void 0);onChange=()=>{this.checked.set(!this.checked()),this.checkedChange.emit(this.checked())};onTouched=()=>{};writeValue(l){this.checked.set(l)}registerOnChange(l){this.onChange=v=>{const i=v.target.checked;this.checked.set(i),l(i),this.checkedChange.emit(i)}}registerOnTouched(l){this.onTouched=l}setDisabledState(l){this.disabled.set(l)}static \u0275fac=function(v){return new(v||_)};static \u0275cmp=o.VBU({type:_,selectors:[["cue-checkbox"]],inputs:{label:[1,"label"],checked:[1,"checked"],disabled:[1,"disabled"],color:[1,"color"],size:[1,"size"]},outputs:{checked:"checkedChange",disabled:"disabledChange",size:"sizeChange",checkedChange:"checkedChange"},features:[o.Jv_([{provide:C.kq,useExisting:(0,u.Rfq)(()=>_),multi:!0}])],decls:6,vars:25,consts:[[1,"checkbox-container",3,"cueBgColor"],["type","checkbox",1,"checkbox-input",3,"change","blur","checked","disabled"],[1,"checkmark",3,"ngStyle"],["viewBox","0 0 24 24",2,"display","block","width","100%","height","100%"],["fill","none","stroke-width","2","d","M5 13l4 4L19 7"],[1,"checkbox-label"]],template:function(v,i){1&v&&(o.j41(0,"label",0),o.bIt("cueBgColor",function(e){return i.bgColor.set(e)}),o.j41(1,"input",1),o.bIt("change",function(e){return i.onChange(e)})("blur",function(){return i.onTouched()}),o.k0s(),o.j41(2,"span",2),u.qSk(),o.j41(3,"svg",3),o.nrm(4,"path",4),o.k0s()(),o.nVh(5,F,2,1,"span",5),o.k0s()),2&v&&(o.AVh("disabled",i.disabled())("checked",i.checked())("size-xs","xs"===i.size())("size-s","s"===i.size())("size-m","m"===i.size())("size-l","l"===i.size())("size-xl","xl"===i.size()),o.R7$(),o.Y8G("checked",i.checked())("disabled",i.disabled()),o.BMQ("aria-label",i.label()),o.R7$(),o.Y8G("@checkmarkAnimation",i.checked()?"checked":"unchecked")("ngStyle",i.safeColor()?o.l_i(21,m,i.safeColor(),i.checked()?i.safeColor():"transparent"):o.lJ4(24,y)),o.R7$(2),o.BMQ("stroke",i.checked()?i.safeColor()?"white":"currentColor":"transparent"),o.R7$(),o.vxM(i.label()?5:-1))},dependencies:[f.MD,f.B3,C.YN,c.k],styles:[".checkbox-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-family:var(--cue-font-family);position:relative;-webkit-tap-highlight-color:transparent}.checkbox-input[_ngcontent-%COMP%]{position:absolute;opacity:0;width:0;height:0}.checkmark[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--cue-input-border-color);border-radius:2px;background-color:transparent;transition:all .2s ease;box-sizing:border-box}.checkbox-container.size-xs[_ngcontent-%COMP%]{font-size:10px}.checkbox-container.size-xs[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{width:12px;height:12px}.checkbox-container.size-xs[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:8px;height:8px}.checkbox-container.size-s[_ngcontent-%COMP%]{font-size:12px}.checkbox-container.size-s[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{width:14px;height:14px}.checkbox-container.size-s[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:10px;height:10px}.checkbox-container.size-m[_ngcontent-%COMP%]{font-size:14px}.checkbox-container.size-m[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{width:18px;height:18px}.checkbox-container.size-m[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;height:14px}.checkbox-container.size-l[_ngcontent-%COMP%]{font-size:16px}.checkbox-container.size-l[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{width:22px;height:22px}.checkbox-container.size-l[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px}.checkbox-container.size-xl[_ngcontent-%COMP%]{font-size:18px}.checkbox-container.size-xl[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{width:24px;height:24px}.checkbox-container.size-xl[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:20px;height:20px}.checkbox-container.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.checkbox-label[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;color:var(--cue-input-label-color)}svg[_ngcontent-%COMP%]{stroke-linecap:round;stroke-linejoin:round;fill:none;width:100%;height:100%;display:block}"],data:{animation:[(0,n.hZ)("checkmarkAnimation",[(0,n.kY)("unchecked => checked",[(0,n.iF)({transform:"scale(0.8)",opacity:0}),(0,n.i0)("150ms cubic-bezier(0.4, 0, 0.2, 1)",(0,n.iF)({transform:"scale(1.1)",opacity:1})),(0,n.i0)("100ms cubic-bezier(0.4, 0, 0.2, 1)",(0,n.iF)({transform:"scale(1)"}))]),(0,n.kY)("checked => unchecked",[(0,n.i0)("100ms cubic-bezier(0.4, 0, 0.2, 1)",(0,n.iF)({transform:"scale(1.1)",opacity:1})),(0,n.i0)("150ms cubic-bezier(0.4, 0, 0.2, 1)",(0,n.iF)({transform:"scale(0.8)",opacity:0}))])])]}})}return _})()},3191(x,k,a){a.d(k,{g:()=>u});var s=a(467),p=a(5802);let u=(()=>{class f{searchPage(n,c,r){return(0,s.A)(function*(){if(!r||!r.trim())return[];const o=r.toLowerCase(),m=yield n.getPage(c),y=m.getViewport({scale:1}),P=(yield m.getTextContent()).items,_=[];let M="";const l=[],v=[];for(let e=0;e<P.length;e++){const g=P[e].str??"";for(let d=0;d<g.length;d++)M+=g[d],l.push(e),v.push(d)}const i=M.toLowerCase();let t=0;for(;t<i.length;){const e=i.indexOf(o,t);if(-1===e)break;const h=e+o.length-1;t=e+1;const g=new Set;for(let w=e;w<=h;w++)g.add(l[w]);let d=1/0,b=1/0,D=-1/0,O=-1/0;for(const w of g){const j=P[w],[S,L,q,$,E,B]=j.transform,z=j.width??0,R=j.height??Math.abs(S||$||12),I=Math.sqrt(S*S+L*L)||1,K=S/I,Y=L/I,V=q/I,Q=$/I,ne=[[E,B],[E+K*z,B+Y*z],[E+K*z+V*R,B+Y*z+Q*R],[E+V*R,B+Q*R]];for(const[oe,se]of ne){const[X,Z]=y.convertToViewportPoint(oe,se);d=Math.min(d,X),b=Math.min(b,Z),D=Math.max(D,X),O=Math.max(O,Z)}}const T=y.width,N=y.height,U=.005*T,G=.005*N,H=(b-G)/N*100,W=(D-d+2*U)/T*100,A=(O-b+2*G)/N*100;W>0&&A>0&&_.push({page:c,xywhStr:`percent:${((d-U)/T*100).toFixed(2)},${H.toFixed(2)},${W.toFixed(2)},${A.toFixed(2)}`})}return _})()}searchAll(n,c){var r=this;return(0,s.A)(function*(){if(!c||!c.trim())return[];const o=n.numPages,m=[];for(let y=1;y<=o;y++){const F=yield r.searchPage(n,y,c);m.push(...F)}return m})()}static \u0275fac=function(c){return new(c||f)};static \u0275prov=p.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},6170(x,k,a){a.d(k,{R:()=>C});var s=a(7705),p=a(5802),u=a(2271),f=a(5547);let C=(()=>{class n{destroyRef=(0,p.WQX)(p.abz);_isDarkMode=(0,p.vPA)(this.hasDarkClass());isDarkMode=(0,u.EW)(()=>this._isDarkMode());darkModeChange=(0,s.CGW)();constructor(){const r=new MutationObserver(o=>{o.forEach(m=>{if("attributes"===m.type&&"class"===m.attributeName){const y=this.hasDarkClass();y!==this._isDarkMode()&&this._isDarkMode.set(y)}})});r.observe(document.body,{attributes:!0,attributeFilter:["class"]}),this.destroyRef.onDestroy(()=>r.disconnect()),(0,p.QZP)(()=>{this.darkModeChange.emit(this._isDarkMode()),document.documentElement.style.colorScheme=this._isDarkMode()?"dark":"light"})}hasDarkClass(){return document.body.classList.contains("dark")}toggleDarkMode(){document.body.classList.toggle("dark")}static \u0275fac=function(o){return new(o||n)};static \u0275dir=f.FsC({type:n,selectors:[["","cueDarkMode",""]],outputs:{darkModeChange:"darkModeChange"},exportAs:["darkModeDetector"]})}return n})()},2065(x,k,a){function u(n,c,r="text/plain"){return function s(n,c="data.zip"){const r=document.createElement("a"),o=URL.createObjectURL(n);r.href=o,r.download=c,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(o)}(new Blob([n],{type:r}),c)}function f(n,c){const r=document.createElement("a");r.style.display="hidden",r.setAttribute("href",window.URL.createObjectURL(n)),r.setAttribute("download",c),document.body.appendChild(r),r.click(),r.remove()}a.d(k,{KE:()=>f,YN:()=>u})},1493(x,k,a){function s(p,u=!1,f=1){const C=u?1e3:1024;if(Math.abs(p)<C)return p+" B";const n=u?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let c=-1;const r=10**f;do{p/=C,++c}while(Math.round(Math.abs(p)*r)/r>=C&&c<n.length-1);return p.toFixed(f)+" "+n[c]}a.d(k,{b:()=>s})},8173(x,k,a){a.d(k,{FX:()=>i,If:()=>s,K2:()=>n,PZ:()=>v,hZ:()=>u,i0:()=>f,iF:()=>c,kY:()=>m,kp:()=>p,sf:()=>l});var s=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(s||{});const p="*";function u(t,e){return{type:s.Trigger,name:t,definitions:e,options:{}}}function f(t,e=null){return{type:s.Animate,styles:e,timings:t}}function n(t,e=null){return{type:s.Sequence,steps:t,options:e}}function c(t){return{type:s.Style,styles:t,offset:null}}function m(t,e,h=null){return{type:s.Transition,expr:t,animation:e,options:h}}class l{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,h=0){this.totalTime=e+h}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const h="start"==e?this._onStartFns:this._onDoneFns;h.forEach(g=>g()),h.length=0}}class v{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let h=0,g=0,d=0;const b=this.players.length;0==b?queueMicrotask(()=>this._onFinish()):this.players.forEach(D=>{D.onDone(()=>{++h==b&&this._onFinish()}),D.onDestroy(()=>{++g==b&&this._onDestroy()}),D.onStart(()=>{++d==b&&this._onStart()})}),this.totalTime=this.players.reduce((D,O)=>Math.max(D,O.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const h=e*this.totalTime;this.players.forEach(g=>{const d=g.totalTime?Math.min(1,h/g.totalTime):1;g.setPosition(d)})}getPosition(){const e=this.players.reduce((h,g)=>null===h||g.totalTime>h.totalTime?g:h,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const h="start"==e?this._onStartFns:this._onDoneFns;h.forEach(g=>g()),h.length=0}}const i="!"}}]);
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[76],{2014(M,m,o){o.d(m,{z:()=>f});var n=o(7705),s=o(2271),a=o(5547);const r=["*"];let f=(()=>{class t{justify=(0,n.hFB)("start");size=(0,n.hFB)("l");widthStyle=(0,s.EW)(()=>`var(--cue-button-label-padding-${this.size()}-x)`);static \u0275fac=function(d){return new(d||t)};static \u0275cmp=a.VBU({type:t,selectors:[["cue-button-padder"]],inputs:{justify:[1,"justify"],size:[1,"size"]},ngContentSelectors:r,decls:2,vars:4,template:function(d,u){1&d&&(a.NAR(),a.rj2(0,"div"),a.SdG(1),a.eux()),2&d&&a.xc7("justify-content",u.justify())("min-width",u.widthStyle())},styles:["div[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:1px}"]})}return t})()},6034(M,m,o){o.d(m,{y:()=>B});var n=o(7705),s=o(7598),a=o(9769),r=o(5187),f=o(2271),t=o(5547);const l=["*"];let i=(()=>{class c{style=(0,n.hFB)("");gap=(0,n.hFB)("m");columns=(0,n.hFB)(1);getStyles=(0,f.EW)(()=>`\n grid-template-columns: repeat(${this.columns()}, minmax(0, 1fr));\n gap: var(--cue-grid-gap-${this.gap()});\n ${this.style()}\n `);static \u0275fac=function(g){return new(g||c)};static \u0275cmp=t.VBU({type:c,selectors:[["cue-grid"]],hostVars:2,hostBindings:function(g,e){2&g&&t.Aen(e.getStyles())},inputs:{style:[1,"style"],gap:[1,"gap"],columns:[1,"columns"]},ngContentSelectors:l,decls:1,vars:0,template:function(g,e){1&g&&(t.NAR(),t.SdG(0))},styles:["[_nghost-%COMP%]{display:grid}"]})}return c})();var d=o(2245),u=o(5381),h=o(29);const b=["*"];function _(c,L){if(1&c&&(t.j41(0,"cue-typography",2),t.EFF(1),t.k0s()),2&c){const p=t.XpG();t.R7$(),t.SpI(" ",p.label()," ")}}let B=(()=>{class c{label=(0,n.hFB)("");variant=(0,n.hFB)("default");shadow=(0,n.hFB)(!1);padded=(0,n.hFB)(!0);showCloseBtn=(0,n.hFB)(!0);position=(0,n.hFB)("top-left");clickedClose=(0,n.CGW)();margin=(0,n.hFB)("0.5rem");close(p){p.stopPropagation(),p.stopImmediatePropagation(),this.clickedClose.emit()}static \u0275fac=function(g){return new(g||c)};static \u0275cmp=t.VBU({type:c,selectors:[["cue-draggable-card"]],inputs:{label:[1,"label"],variant:[1,"variant"],shadow:[1,"shadow"],padded:[1,"padded"],showCloseBtn:[1,"showCloseBtn"],position:[1,"position"],margin:[1,"margin"]},outputs:{clickedClose:"clickedClose"},ngContentSelectors:b,decls:8,vars:14,consts:[["cdkDrag","",1,"panel",3,"variant","shadow","padded"],["justify","end"],["size","l"],[2,"width","100%"],["name","close",2,"cursor","pointer",3,"click"]],template:function(g,e){1&g&&(t.NAR(),t.j41(0,"cue-card",0)(1,"cue-typography")(2,"cue-grid")(3,"cue-flexcontainer",1),t.nVh(4,_,2,1,"cue-typography",2),t.nrm(5,"span",3),t.j41(6,"cue-svg-icon",4),t.bIt("click",function(y){return e.close(y)}),t.k0s()(),t.SdG(7),t.k0s()()()),2&g&&(t.xc7("top","top-left"===e.position()||"top-right"===e.position()?e.margin():"null")("bottom","bottom-left"===e.position()||"bottom-right"===e.position()?e.margin():"null")("left","top-left"===e.position()||"bottom-left"===e.position()?e.margin():"null")("right","top-right"===e.position()||"bottom-right"===e.position()?e.margin():"null"),t.Y8G("variant",e.variant())("shadow",e.shadow())("padded",e.padded()),t.R7$(3),t.xc7("padding",e.padded()?"0":"10px"),t.R7$(),t.vxM(e.label()&&"undefined"!==e.label()?4:-1))},dependencies:[a.MD,r.Card,i,d.o,u.n,h.A,s.T1],styles:[".panel[_ngcontent-%COMP%]{position:absolute;width:fit-content}"]})}return c})()},3191(M,m,o){o.d(m,{g:()=>a});var n=o(467),s=o(5802);let a=(()=>{class r{searchPage(t,l,i){return(0,n.A)(function*(){if(!i||!i.trim())return[];const d=i.toLowerCase(),u=yield t.getPage(l),h=u.getViewport({scale:1}),_=(yield u.getTextContent()).items,I=[];let B="";const c=[],L=[];for(let e=0;e<_.length;e++){const y=_[e].str??"";for(let v=0;v<y.length;v++)B+=y[v],c.push(e),L.push(v)}const p=B.toLowerCase();let g=0;for(;g<p.length;){const e=p.indexOf(d,g);if(-1===e)break;const O=e+d.length-1;g=e+1;const y=new Set;for(let D=e;D<=O;D++)y.add(c[D]);let v=1/0,C=1/0,T=-1/0,A=-1/0;for(const D of y){const S=_[D],[w,W,q,K,P,E]=S.transform,k=S.width??0,F=S.height??Math.abs(w||K||12),x=Math.sqrt(w*w+W*W)||1,z=w/x,V=W/x,Y=q/x,X=K/x,ot=[[P,E],[P+z*k,E+V*k],[P+z*k+Y*F,E+V*k+X*F],[P+Y*F,E+X*F]];for(const[nt,st]of ot){const[H,Z]=h.convertToViewportPoint(nt,st);v=Math.min(v,H),C=Math.min(C,Z),T=Math.max(T,H),A=Math.max(A,Z)}}const N=h.width,R=h.height,U=.005*N,j=.005*R,J=(C-j)/R*100,G=(T-v+2*U)/N*100,$=(A-C+2*j)/R*100;G>0&&$>0&&I.push({page:l,xywhStr:`percent:${((v-U)/N*100).toFixed(2)},${J.toFixed(2)},${G.toFixed(2)},${$.toFixed(2)}`})}return I})()}searchAll(t,l){var i=this;return(0,n.A)(function*(){if(!l||!l.trim())return[];const d=t.numPages,u=[];for(let h=1;h<=d;h++){const b=yield i.searchPage(t,h,l);u.push(...b)}return u})()}static \u0275fac=function(l){return new(l||r)};static \u0275prov=s.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})()},6170(M,m,o){o.d(m,{R:()=>f});var n=o(7705),s=o(5802),a=o(2271),r=o(5547);let f=(()=>{class t{destroyRef=(0,s.WQX)(s.abz);_isDarkMode=(0,s.vPA)(this.hasDarkClass());isDarkMode=(0,a.EW)(()=>this._isDarkMode());darkModeChange=(0,n.CGW)();constructor(){const i=new MutationObserver(d=>{d.forEach(u=>{if("attributes"===u.type&&"class"===u.attributeName){const h=this.hasDarkClass();h!==this._isDarkMode()&&this._isDarkMode.set(h)}})});i.observe(document.body,{attributes:!0,attributeFilter:["class"]}),this.destroyRef.onDestroy(()=>i.disconnect()),(0,s.QZP)(()=>{this.darkModeChange.emit(this._isDarkMode()),document.documentElement.style.colorScheme=this._isDarkMode()?"dark":"light"})}hasDarkClass(){return document.body.classList.contains("dark")}toggleDarkMode(){document.body.classList.toggle("dark")}static \u0275fac=function(d){return new(d||t)};static \u0275dir=r.FsC({type:t,selectors:[["","cueDarkMode",""]],outputs:{darkModeChange:"darkModeChange"},exportAs:["darkModeDetector"]})}return t})()},1493(M,m,o){function n(s,a=!1,r=1){const f=a?1e3:1024;if(Math.abs(s)<f)return s+" B";const t=a?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=-1;const i=10**r;do{s/=f,++l}while(Math.round(Math.abs(s)*i)/i>=f&&l<t.length-1);return s.toFixed(r)+" "+t[l]}o.d(m,{b:()=>n})},7573(M,m,o){o.d(m,{E:()=>n});const n={qcy:"https://dev.qaecy.com/ont#","qcy-e":"https://dev.qaecy.com/enum#","qcy-f":"https://dev.qaecy.com/functions#",obc:"https://w3id.org/obc#",dicc:"https://w3id.org/digitalconstruction/0.5/Contexts#",dicv:"https://w3id.org/digitalconstruction/0.5/Variables#",dice:"https://w3id.org/digitalconstruction/0.5/Entities#",dicp:"https://w3id.org/digitalconstruction/0.5/Processes#",dica:"https://w3id.org/digitalconstruction/0.5/Agents#",dici:"https://w3id.org/digitalconstruction/0.5/Information#",dicbm:"https://w3id.org/digitalconstruction/0.5/Materials#",dicob:"https://w3id.org/digitalconstruction/0.5/Occupancy#",dicl:"https://w3id.org/digitalconstruction/0.5/Lifecycle#",dices:"https://w3id.org/digitalconstruction/0.5/Energy#",dicu:"https://w3id.org/digitalconstruction/0.5/Units#",diclvl:"https://w3id.org/digitalconstruction/0.5/Levels#",dicstg:"https://w3id.org/digitalconstruction/0.5/Stages#"}}}]);
|