@qaecy/cue-ui 0.0.27 → 0.0.28
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/112.js +1 -1
- package/360.js +1 -0
- package/368.js +1 -0
- package/376.js +1 -1
- package/393.js +1 -1
- package/418.js +1 -1
- package/446.js +1 -0
- package/499.js +1 -0
- package/571.js +1 -1
- package/611.js +1 -0
- package/{873.js → 629.js} +1 -1
- package/773.js +1 -0
- package/919.js +1 -0
- package/964.js +1 -0
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/104.js +0 -1
- package/382.js +0 -1
- package/540.js +0 -1
- package/60.js +0 -1
- package/960.js +0 -1
package/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[76],{2014(D,v,u){u.d(v,{z:()=>m});var _=u(7705),i=u(2271),l=u(5547);const s=["*"];let m=(()=>{class g{justify=(0,_.hFB)("start");size=(0,_.hFB)("l");widthStyle=(0,i.EW)(()=>`var(--cue-button-label-padding-${this.size()}-x)`);static \u0275fac=function(y){return new(y||g)};static \u0275cmp=l.VBU({type:g,selectors:[["cue-button-padder"]],inputs:{justify:[1,"justify"],size:[1,"size"]},ngContentSelectors:s,decls:2,vars:4,template:function(y,p){1&y&&(l.NAR(),l.rj2(0,"div"),l.SdG(1),l.eux()),2&y&&l.xc7("justify-content",p.justify())("min-width",p.widthStyle())},styles:["div[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:1px}"]})}return g})()},6756(D,v,u){u.d(v,{BK:()=>_,In:()=>y,Kz:()=>p,Mc:()=>r,U6:()=>l,g0:()=>a,g8:()=>s,r:()=>i,u9:()=>g});const _=["#2B5DE6","#1A2B50","#C5E045","#6FA8FF","#00C2E0","#5847EB","#008585","#4ADE80","#0F4C81","#8B5CF6","#FACC15","#FB923C","#F43F5E","#E879F9","#D97706","#334155","#64748B","#94A3B8","#C7D2FE","#F8FAFC"];function i(t){switch(t){case"primary":default:return"#2859e1";case"accent":return"#e2f552";case"tertiary":return"#ffffff"}}function l(t){switch(t){case"primary":default:return"#1744c2";case"accent":return"#b8cc3f";case"tertiary":return"#eeeeee"}}function s(t){const[c,d,b]=function m(t,c){if(void 0===t)return[];const b=window.getComputedStyle(t.nativeElement);return c.map(E=>b.getPropertyValue(E).trim()||"")}(t,["--cue-chart-text-color","--cue-chart-border-background-color","--chart-graph-edge-color"]);return{text:c,borderBackground:d,edgeColor:b}}const g={fontFamily:"Poppins, sans-serif",fontWeight:"normal",color:"#333"};function y(t){return t>=1e6?`${(t/1e6).toFixed(1)}m`:t>=1e3?`${(t/1e3).toFixed(0)}k`:t.toString()}function p(t,c,d,b){if(1===b)return t;const E=o(t),P=o(c),x=d/(b-1);return`rgb(${Math.round(E.r+(P.r-E.r)*x)}, ${Math.round(E.g+(P.g-E.g)*x)}, ${Math.round(E.b+(P.b-E.b)*x)})`}const r=(t,c)=>void 0===c?t:c.children??[];function a(t,c,d=.05,b="Other"){const E=t.reduce((C,M)=>C+f(M),0),P=[],x=[];if(t.forEach(C=>{let M,A;M=void 0===C.value&&Array.isArray(C.children)&&C.children.length>0?C.children.reduce((L,T)=>L+f(T),0):void 0!==C.value?C.value:0,Array.isArray(C.children)&&C.children.length>0&&(A=a(C.children,c,d,b));const F={...C,value:M,children:A};c&&E>0&&M/E<d?x.push(F):P.push(F)}),c&&x.length>0){const C=x.reduce((M,A)=>M+A.value,0);P.push({id:"__grouped_small__",name:b,value:C,children:x,isGroup:!0})}return P}function o(t){const c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return c?{r:parseInt(c[1],16),g:parseInt(c[2],16),b:parseInt(c[3],16)}:{r:0,g:0,b:0}}function f(t){return"number"==typeof t.value?t.value:Array.isArray(t.children)&&t.children.length>0?t.children.reduce((c,d)=>c+f(d),0):0}},9134(D,v,u){u.d(v,{v:()=>m});var _=u(7705),i=u(6034),l=u(7517),s=u(5547);let m=(()=>{class g{title=(0,_.hFB)("Legend");layers=(0,_.hFB)([]);position=(0,_.hFB)("top-left");close=(0,_.CGW)();visibilityChange=(0,_.CGW)();layerChange=(0,_.CGW)();visibilityAll=(0,_.CGW)();static \u0275fac=function(y){return new(y||g)};static \u0275cmp=s.VBU({type:g,selectors:[["cue-color-legend-panel"]],inputs:{title:[1,"title"],layers:[1,"layers"],position:[1,"position"]},outputs:{close:"close",visibilityChange:"visibilityChange",layerChange:"layerChange",visibilityAll:"visibilityAll"},decls:3,vars:4,consts:[[3,"clickedClose","label","padded","position"],[1,"content"],[3,"visibilityAll","layerChange","visibilityChange","layers"]],template:function(y,p){1&y&&(s.j41(0,"cue-draggable-card",0),s.bIt("clickedClose",function(){return p.close.emit()}),s.j41(1,"div",1)(2,"cue-layer-legend",2),s.bIt("visibilityAll",function(r){return p.visibilityAll.emit(r)})("layerChange",function(r){return p.layerChange.emit(r)})("visibilityChange",function(r){return p.visibilityChange.emit(r)}),s.k0s()()()),2&y&&(s.Y8G("label",p.title())("padded",!1)("position",p.position()),s.R7$(2),s.Y8G("layers",p.layers()))},dependencies:[i.y,l.P],styles:[".content[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px;margin-bottom:30px;font-size:.8em;max-height:200px;max-width:180px;overflow:auto}"]})}return g})()},7517(D,v,u){u.d(v,{P:()=>a});var _=u(7705),i=u(2271),l=u(2245),s=u(1359),m=u(5381),g=u(5802),e=u(5547);const h=(o,f)=>f.category;function y(o,f){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",1)(1,"cue-checkbox",2),e.bIt("checkedChange",function(){g.eBV(t);const d=e.XpG();return g.Njj(d.toggleAll())}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(),e.Y8G("checked",t.allVisible())}}function p(o,f){if(1&o&&(e.j41(0,"cue-typography",3),e.EFF(1),e.k0s()),2&o){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.category)}}function n(o,f){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",1)(1,"cue-checkbox",4),e.bIt("checkedChange",function(){const d=g.eBV(t).$implicit,b=e.XpG(2);return g.Njj(b.toggleSingle(d))}),e.k0s(),e.j41(2,"cue-typography",5),e.bIt("click",function(){const d=g.eBV(t).$implicit,b=e.XpG(2);return g.Njj(b.toggleSingle(d))}),e.EFF(3),e.k0s()()}if(2&o){const t=f.$implicit;e.R7$(),e.Y8G("checked",t.visible)("color",t.color),e.R7$(2),e.JRh(t.label)}}function r(o,f){if(1&o&&(e.nVh(0,p,2,1,"cue-typography",3),e.Z7z(1,n,4,3,"cue-flexcontainer",1,e.Vm6)),2&o){const t=f.$implicit;e.vxM(t.category?0:-1),e.R7$(),e.Dyx(t.items)}}let a=(()=>{class o{layers=(0,_.geq)([]);visibilityChange=(0,_.CGW)();layerChange=(0,_.CGW)();visibilityAll=(0,_.CGW)();showCheckAll=(0,i.EW)(()=>this.layers().length>1);allVisible=(0,i.EW)(()=>this.layers().every(t=>t.visible));groupedLayers=(0,i.EW)(()=>{const t=[];for(const c of this.layers()){const d=c.category,b=t.find(E=>E.category===d);b?b.items.push(c):t.push({category:d,items:[c]})}return t});toggleAll(){const t=this.allVisible(),c=this.layers().map(d=>(d.visible=!t,d));this.layers.update(()=>[...c]),this.visibilityAll.emit(t),this.emitChange()}toggleSingle(t){t.visible=!t.visible,this.layerChange.emit(t),this.layers.update(()=>[...this.layers()]),this.emitChange()}emitChange(){this.visibilityChange.emit(this.layers())}static \u0275fac=function(c){return new(c||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-layer-legend"]],inputs:{layers:[1,"layers"]},outputs:{layers:"layersChange",visibilityChange:"visibilityChange",layerChange:"layerChange",visibilityAll:"visibilityAll"},decls:4,vars:1,consts:[["direction","column"],["align","center","justify","start",2,"width","100%"],["size","s",3,"checkedChange","checked"],["variant","label",2,"margin-top","4px","opacity","0.6"],["size","s",3,"checkedChange","checked","color"],[2,"cursor","pointer",3,"click"]],template:function(c,d){1&c&&(e.j41(0,"cue-flexcontainer",0),e.nVh(1,y,2,1,"cue-flexcontainer",1),e.Z7z(2,r,3,1,null,null,h),e.k0s()),2&c&&(e.R7$(),e.vxM(d.showCheckAll()?1:-1),e.R7$(),e.Dyx(d.groupedLayers()))},dependencies:[m.n,l.Typography,s.S],encapsulation:2,changeDetection:0})}return o})()},2306(D,v,u){u.d(v,{AA:()=>s,ux:()=>m,yY:()=>l});var _=u(140),i=u(8402);class l{mapboxToken;contextMenu={showProperties:!0,showFlyTo:!0};toolbar=new s}class s{hidden=!1;position="bottom";margin="20px";displayZoom=!0;displayGeofenceDraw=!1;displayLayerToggle=!0;clearGeofenceAfterDraw=!0}class m{label;id;collection=new _.o;color;visible=!0;cluster=!0;zoomToFit=!0;category;constructor(e,h=(0,i.A)()){this.label=e,this.id=h}}},140(D,v,u){u.d(v,{o:()=>_});class _{type="FeatureCollection";features=[];bbox;id;constructor(l=[]){this.features=l}addFeature(l){this.features.push(l)}removeFeature(l){return this.features.splice(l,1)[0]}getFeatureCount(){return this.features.length}clear(){this.features=[]}}},58(D,v,u){function _(n){let r=0,a=-1,o=-1;for(let f=0;f<n.length;f++)if("("===n[f])r++,1===r&&(a=f+1);else if(")"===n[f]&&(r--,0===r)){o=f;break}return-1!==a&&-1!==o?n.substring(a,o):null}u.d(v,{S:()=>y,n:()=>p});class i{x;y;z;constructor(r,a,o){this.x=r,this.y=a,this.z=o}}class l{points;constructor(r){this.points=r}}class s{lines;constructor(r){this.lines=r}}function y(n){if(n){if((n=n.trim().toUpperCase()).startsWith("POINT"))return function g(n){n=n.trim().toUpperCase();const a=_(n)?.split(" ")??[];return n.includes("POINT Z")?new i(parseFloat(a[0]),parseFloat(a[1]),parseFloat(a[2])):new i(parseFloat(a[0]),parseFloat(a[1]))}(n);if(n.startsWith("LINESTRING"))return function m(n){const r=_(n=n.trim().toUpperCase()),a=[];return r?.split(",").map(o=>o.trim().split(" ").map(f=>parseFloat(f))).map(o=>{a.push(new i(o[0],o[1],o[2]))}),new l(a)}(n);if(n.startsWith("POLYGON"))return function e(n){const r=_(n=n.trim().toUpperCase());if(!r)return new s([]);const a=r.match(/\(([^)]+)\)/g);if(!a)return new s([]);const o=a.map(f=>{const t=_(f);return t?t.split(",").map(c=>{const d=c.trim().split(" ");return d.length>=3?new i(parseFloat(d[0]),parseFloat(d[1]),parseFloat(d[2])):new i(parseFloat(d[0]),parseFloat(d[1]))}):[]});return new s(o)}(n)}}function p(n){if(n instanceof i)return{type:"Point",coordinates:void 0!==n.z?[n.x,n.y,n.z]:[n.x,n.y]};if(n instanceof l)return{type:"LineString",coordinates:n.points.map(r=>void 0!==r.z?[r.x,r.y,r.z]:[r.x,r.y])};if(n instanceof s)return{type:"Polygon",coordinates:n.lines.map(r=>r.map(a=>void 0!==a.z?[a.x,a.y,a.z]:[a.x,a.y]))};throw new Error("Unknown WKT type")}},5332(D,v,u){u.d(v,{k:()=>s});for(var i=[],l=0;l<256;++l)i.push((l+256).toString(16).slice(1));function s(e,h=0){return(i[e[h+0]]+i[e[h+1]]+i[e[h+2]]+i[e[h+3]]+"-"+i[e[h+4]]+i[e[h+5]]+"-"+i[e[h+6]]+i[e[h+7]]+"-"+i[e[h+8]]+i[e[h+9]]+"-"+i[e[h+10]]+i[e[h+11]]+i[e[h+12]]+i[e[h+13]]+i[e[h+14]]+i[e[h+15]]).toLowerCase()}},8402(D,v,u){u.d(v,{A:()=>h});const i={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var l,s=new Uint8Array(16);function m(){if(!l&&!(l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(s)}var g=u(5332);const h=function e(y,p,n){if(i.randomUUID&&!p&&!y)return i.randomUUID();var r=(y=y||{}).random||(y.rng||m)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,p){n=n||0;for(var a=0;a<16;++a)p[n+a]=r[a];return p}return(0,g.k)(r)}},7106(D,v,u){function _(i,l){this.v=i,this.k=l}u.d(v,{A:()=>_})},600(D,v,u){u.d(v,{A:()=>i});var _=u(7106);function i(s){return function(){return new l(s.apply(this,arguments))}}function l(s){var m,g;function e(y,p){try{var n=s[y](p),r=n.value,a=r instanceof _.A;Promise.resolve(a?r.v:r).then(function(o){if(a){var f="return"===y?"return":"next";if(!r.k||o.done)return e(f,o);o=s[f](o).value}h(n.done?"return":"normal",o)},function(o){e("throw",o)})}catch(o){h("throw",o)}}function h(y,p){switch(y){case"return":m.resolve({value:p,done:!0});break;case"throw":m.reject(p);break;default:m.resolve({value:p,done:!1})}(m=m.next)?e(m.key,m.arg):g=null}this._invoke=function(y,p){return new Promise(function(n,r){var a={key:y,arg:p,resolve:n,reject:r,next:null};g?g=g.next=a:(m=g=a,e(y,p))})},"function"!=typeof s.return&&(this.return=void 0)}l.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},l.prototype.next=function(s){return this._invoke("next",s)},l.prototype.throw=function(s){return this._invoke("throw",s)},l.prototype.return=function(s){return this._invoke("return",s)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[76],{2014(p,c,l){l.d(c,{z:()=>o});var r=l(7705),d=l(2271),i=l(5547);const e=["*"];let o=(()=>{class a{justify=(0,r.hFB)("start");size=(0,r.hFB)("l");widthStyle=(0,d.EW)(()=>`var(--cue-button-label-padding-${this.size()}-x)`);static \u0275fac=function(n){return new(n||a)};static \u0275cmp=i.VBU({type:a,selectors:[["cue-button-padder"]],inputs:{justify:[1,"justify"],size:[1,"size"]},ngContentSelectors:e,decls:2,vars:4,template:function(n,t){1&n&&(i.NAR(),i.rj2(0,"div"),i.SdG(1),i.eux()),2&n&&i.xc7("justify-content",t.justify())("min-width",t.widthStyle())},styles:["div[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:1px}"]})}return a})()},9134(p,c,l){l.d(c,{v:()=>o});var r=l(7705),d=l(6034),i=l(7517),e=l(5547);let o=(()=>{class a{title=(0,r.hFB)("Legend");layers=(0,r.hFB)([]);position=(0,r.hFB)("top-left");close=(0,r.CGW)();visibilityChange=(0,r.CGW)();layerChange=(0,r.CGW)();visibilityAll=(0,r.CGW)();static \u0275fac=function(n){return new(n||a)};static \u0275cmp=e.VBU({type:a,selectors:[["cue-color-legend-panel"]],inputs:{title:[1,"title"],layers:[1,"layers"],position:[1,"position"]},outputs:{close:"close",visibilityChange:"visibilityChange",layerChange:"layerChange",visibilityAll:"visibilityAll"},decls:3,vars:4,consts:[[3,"clickedClose","label","padded","position"],[1,"content"],[3,"visibilityAll","layerChange","visibilityChange","layers"]],template:function(n,t){1&n&&(e.j41(0,"cue-draggable-card",0),e.bIt("clickedClose",function(){return t.close.emit()}),e.j41(1,"div",1)(2,"cue-layer-legend",2),e.bIt("visibilityAll",function(s){return t.visibilityAll.emit(s)})("layerChange",function(s){return t.layerChange.emit(s)})("visibilityChange",function(s){return t.visibilityChange.emit(s)}),e.k0s()()()),2&n&&(e.Y8G("label",t.title())("padded",!1)("position",t.position()),e.R7$(2),e.Y8G("layers",t.layers()))},dependencies:[d.y,i.P],styles:[".content[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px;margin-bottom:30px;font-size:.8em;max-height:200px;max-width:180px;overflow:auto}"]})}return a})()},7106(p,c,l){function r(d,i){this.v=d,this.k=i}l.d(c,{A:()=>r})},600(p,c,l){l.d(c,{A:()=>d});var r=l(7106);function d(e){return function(){return new i(e.apply(this,arguments))}}function i(e){var o,a;function v(n,t){try{var _=e[n](t),s=_.value,g=s instanceof r.A;Promise.resolve(g?s.v:s).then(function(u){if(g){var h="return"===n?"return":"next";if(!s.k||u.done)return v(h,u);u=e[h](u).value}y(_.done?"return":"normal",u)},function(u){v("throw",u)})}catch(u){y("throw",u)}}function y(n,t){switch(n){case"return":o.resolve({value:t,done:!0});break;case"throw":o.reject(t);break;default:o.resolve({value:t,done:!1})}(o=o.next)?v(o.key,o.arg):a=null}this._invoke=function(n,t){return new Promise(function(_,s){var g={key:n,arg:t,resolve:_,reject:s,next:null};a?a=a.next=g:(o=a=g,v(n,t))})},"function"!=typeof e.return&&(this.return=void 0)}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)}}}]);
|