@signalk/freeboard-sk 2.24.2 → 3.0.0-beta.0
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/README.md +16 -0
- package/docs/screenshots/2_freeboard-sk.jpg +0 -0
- package/docs/screenshots/3_freeboard-sk.jpg +0 -0
- package/package.json +9 -4
- package/public/3rdpartylicenses.txt +45 -19
- package/public/assets/img/no-such-symbol.svg +4 -0
- package/public/chunk-2FVHKTB6.js +1010 -0
- package/public/chunk-3NORWTAX.js +1 -0
- package/public/chunk-4H477JJR.js +1612 -0
- package/public/chunk-55GTZWIA.js +1 -0
- package/public/chunk-7N46HDRA.js +1 -0
- package/public/chunk-F7DZSD5Z.js +1 -0
- package/public/chunk-FZ6NAONR.js +1 -0
- package/public/chunk-HALNSHCE.js +929 -0
- package/public/chunk-KYXYDUTF.js +1 -0
- package/public/chunk-MNPNP6MN.js +3871 -0
- package/public/{chunk-LXUTMJYP.js → chunk-MZFM2DTJ.js} +1 -1
- package/public/chunk-N7K5OEHJ.js +1709 -0
- package/public/chunk-NPNYOL2H.js +1 -0
- package/public/chunk-QBGO6O5L.js +1 -0
- package/public/chunk-UHBHOIXR.js +107 -0
- package/public/chunk-VHJDKR5K.js +1 -0
- package/public/chunk-Z5RYOUPW.js +2 -0
- package/public/index.html +1 -1
- package/public/main-E44BDMWA.js +466 -0
- package/public/chunk-2AF4T5IB.js +0 -1
- package/public/chunk-3GHIRJ3C.js +0 -2
- package/public/chunk-A4TULHTL.js +0 -1
- package/public/chunk-AFVK3UQJ.js +0 -5482
- package/public/chunk-AX3UMUXB.js +0 -1
- package/public/chunk-EFVTFEXB.js +0 -1
- package/public/chunk-FALIRPMH.js +0 -1035
- package/public/chunk-G4GM24WE.js +0 -1
- package/public/chunk-NTIQMWPW.js +0 -2718
- package/public/chunk-QIOZNURQ.js +0 -1
- package/public/chunk-SBFXQ3G7.js +0 -1
- package/public/main-AZEF35BN.js +0 -466
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{va as z}from"./chunk-MNPNP6MN.js";import"./chunk-4H477JJR.js";import"./chunk-MZFM2DTJ.js";import"./chunk-HALNSHCE.js";import"./chunk-UHBHOIXR.js";import"./chunk-2FVHKTB6.js";import{$a as x,Ad as S,Bd as R,Ca as m,Cd as E,Da as d,Dd as O,Ia as _,Ja as a,Ka as o,La as v,Ld as T,Nd as A,O as f,P as u,Qd as k,Sa as D,Sd as j,Td as V,Ua as p,Wa as g,_a as b,ab as y,fa as h,ha as s,hc as I,jb as r,kb as M,ma as c,pa as P,xd as C,yd as w}from"./chunk-N7K5OEHJ.js";import"./chunk-EQVTEUXC.js";var U=["frame"];function Q(n,e){if(n&1&&(a(0,"mat-dialog-content",3),v(1,"iframe",6,0),o()),n&2){let t=g();s(),_("src",t.url,h)("title",t.data.panel.title)}}function B(n,e){n&1&&(a(0,"mat-dialog-content",4),r(1," This widget has no settings. "),o())}function F(n,e){if(n&1){let t=D();a(0,"mat-dialog-actions",5)(1,"button",7),p("click",function(){f(t);let l=g();return u(l.removeWidget())}),a(2,"mat-icon"),r(3,"delete"),o(),r(4," Remove widget "),o()()}}var W=class n{constructor(e,t,i,l){this.dialogRef=e;this.data=t;this.service=i;this.sanitizer=l}frame;url;detach=null;ngOnInit(){let e=this.data.panel;e&&(this.url=this.sanitizer.bypassSecurityTrustResourceUrl(e.url?this.service.resolveAssetUrl(e.url):"about:blank"))}ngAfterViewInit(){let e=this.data.panel;!e||!this.frame||(this.detach=this.service.attachPanel(this.frame.nativeElement,{extension:this.data.extension,panel:e,targetInstance:this.data.targetInstance,targetWidget:this.data.targetWidget,close:()=>this.dialogRef.close()}))}removeWidget(){this.data.targetInstance&&this.service.removeWidget(this.data.targetInstance),this.dialogRef.close()}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(t){return new(t||n)(c(C),c(w),c(z),c(I))};static \u0275cmp=P({type:n,selectors:[["fb-plotterext-panel-dialog"]],viewQuery:function(t,i){if(t&1&&b(U,5),t&2){let l;x(l=y())&&(i.frame=l.first)}},decls:9,vars:3,consts:[["frame",""],["mat-dialog-title","",1,"pe-panel-header"],["mat-icon-button","","aria-label","Close",3,"click"],[1,"pe-panel-content"],[1,"pe-panel-noconfig"],[1,"pe-panel-actions"],["sandbox","allow-scripts allow-same-origin allow-forms",3,"src","title"],["mat-button","",1,"pe-remove",3,"click"]],template:function(t,i){t&1&&(a(0,"div",1)(1,"span"),r(2),o(),a(3,"button",2),p("click",function(){return i.dialogRef.close()}),a(4,"mat-icon"),r(5,"close"),o()()(),m(6,Q,3,2,"mat-dialog-content",3)(7,B,2,0,"mat-dialog-content",4),m(8,F,5,0,"mat-dialog-actions",5)),t&2&&(s(2),M(i.data.panel?i.data.panel.title:i.data.title),s(4),d(i.data.panel?6:7),s(2),d(i.data.targetInstance?8:-1))},dependencies:[O,S,E,R,k,A,T,V,j],styles:[".pe-panel-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-right:8px}.pe-panel-content[_ngcontent-%COMP%]{padding:0;height:60vh}.pe-panel-noconfig[_ngcontent-%COMP%]{padding:16px 24px;color:#0009}iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none}.pe-panel-actions[_ngcontent-%COMP%]{justify-content:flex-start}.pe-remove[_ngcontent-%COMP%]{color:#d32f2f}"]})};export{W as PlotterPanelDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as Z,Ha as $,f as N,n as Q,o as X,r as Y}from"./chunk-MNPNP6MN.js";import"./chunk-4H477JJR.js";import{i as K,k as W}from"./chunk-MZFM2DTJ.js";import{a as B,b as J,c as U,e as q}from"./chunk-HALNSHCE.js";import"./chunk-UHBHOIXR.js";import{c as H,i as z,o as G}from"./chunk-2FVHKTB6.js";import{Bd as k,Ca as u,Da as g,Dd as T,Fa as C,Ga as M,Ha as I,Ia as _,Ja as i,Ka as t,La as b,Ld as V,Nd as A,O as d,P as p,Qd as F,Sa as h,Sd as O,Td as j,Ua as f,Wa as c,ha as r,jb as n,je as L,kb as w,lb as v,ma as m,nb as D,ob as S,pa as y,pb as E,xd as P,yd as R}from"./chunk-N7K5OEHJ.js";import"./chunk-EQVTEUXC.js";function te(o,a){if(o&1&&(i(0,"mat-option",10),n(1),t()),o&2){let e=a.$implicit;_("value",e),r(),w(e)}}function ie(o,a){if(o&1){let e=h();i(0,"div")(1,"ap-file-input",17),f("chosen",function(l){d(e);let x=c(2);return p(x.parseFile(l))}),i(2,"div",18)(3,"div",19),n(4," Click or Drop file "),t()()()()}o&2&&(r(),_("astext",!0))}function ne(o,a){if(o&1){let e=h();i(0,"div")(1,"div")(2,"b"),n(3,"Invalid Resource Data:"),t(),b(4,"br")(5,"br"),i(6,"i"),n(7,"Selected file does not contain valid data. "),t(),b(8,"br"),t(),i(9,"div",20)(10,"button",21),f("click",function(){d(e);let l=c(2);return p(l.app.showHelp("resource"))}),i(11,"mat-icon"),n(12,"help"),t(),n(13," Help "),t()()()}}function oe(o,a){o&1&&(i(0,"div",16),n(1," Note: Data will not be validated when uploaded to server! "),t())}function ae(o,a){if(o&1){let e=h();i(0,"div",7)(1,"div")(2,"mat-form-field",8)(3,"mat-label"),n(4,"Select Destination Path"),t(),i(5,"mat-select",9,0),E("valueChange",function(l){d(e);let x=c();return S(x.targetPath,l)||(x.targetPath=l),p(l)}),M(7,te,2,2,"mat-option",10,C),t()()(),u(9,ie,5,1,"div"),u(10,ne,14,0,"div"),i(11,"div")(12,"div",11)(13,"div",12)(14,"div")(15,"span",13),n(16,"Name:"),t(),n(17),t(),i(18,"div")(19,"span",13),n(20,"Type:"),t(),n(21),t()()(),i(22,"div",14)(23,"button",15),f("click",function(){d(e);let l=c();return p(l.load())}),i(24,"mat-icon"),n(25,"file_upload"),t(),n(26," \xA0Load\xA0 "),t(),b(27,"br"),n(28,"\xA0 "),u(29,oe,2,0,"div",16),t()()()}if(o&2){let e=c();r(5),_("disabled",!e.resPaths),D("value",e.targetPath),r(2),I(e.resPaths),r(2),g(e.source.name?-1:9),r(),g(e.display.notValid?10:-1),r(7),v(" ",e.source.name," "),r(4),v(" ",e.source.type," "),r(2),_("disabled",!e.targetPath||!e.source.name),r(6),g(e.targetPath&&e.source.name?29:-1)}}var ee=class o{constructor(a,e,s,l){this.app=a;this.skclient=e;this.dialogRef=s;this.data=l}resPaths=[];targetPath=null;source={type:null,name:null,data:null};display={notValid:!1};unsubscribe=[];ngOnInit(){this.skclient.api.get(this.app.skApiVersion,"/resources").subscribe(a=>{this.resPaths=[],this.targetPath=null,this.resPaths=Object.keys(a).filter(e=>!["routes","waypoints","notes","regions","charts","tracks"].includes(e))},()=>{this.resPaths=[],this.targetPath=null})}ngOnDestroy(){this.unsubscribe.forEach(a=>a.unsubscribe())}load(){this.dialogRef.close({path:this.targetPath,data:this.source.data})}parseFile(a){this.source=a,this.source.type="Unknown";try{let e=JSON.parse(a.data);this.source.type=e.type?e.type:this.source.type}catch(e){console.log("Error parsing resource file!")}}static \u0275fac=function(e){return new(e||o)(m(Z),m(Y),m(P),m(R))};static \u0275cmp=y({type:o,selectors:[["resource-upload-dialog"]],decls:13,vars:1,consts:[["respaths",""],[1,"resourceload-dialog"],[2,"background-color","transparent"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],[1,"card-group"],["floatLabel","always",2,"width","100%"],["id","respaths",3,"valueChange","disabled","value"],[3,"value"],[2,"display","flex","flex-wrap","wrap"],[2,"flex","1 1 auto","padding","5px","font-size","smaller"],[2,"font-weight","bold"],[2,"text-align","center","padding-top","15px"],["mat-raised-button","","matTooltip","Load features","matTooltipPosition","below",3,"click","disabled"],[2,"padding","10px","border","gray 1px dashed","font-style","italic"],[3,"chosen","astext"],[2,"width","200px"],[2,"padding","25%","border","gray 1px dashed"],[2,"width","100%","text-align","center"],["mat-raised-button","",3,"click"]],template:function(e,s){e&1&&(i(0,"div",1)(1,"mat-toolbar",2)(2,"span")(3,"mat-icon"),n(4,"category"),t()(),i(5,"span",3),n(6,"Load Resource"),t(),i(7,"span",4)(8,"button",5),f("click",function(){return s.dialogRef.close()}),i(9,"mat-icon"),n(10,"close"),t()()()(),i(11,"div",6),u(12,ae,30,8,"div",7),t()()),e&2&&(r(12),g(s.display.notValid?-1:12))},dependencies:[L,G,z,H,q,U,J,N,B,j,O,K,F,A,V,X,Q,W,T,k,$],styles:[".resourceload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative;width:100%}.card-group[_ngcontent-%COMP%]{padding:5px 5%}@media only screen and (min-width:800px){.card-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{ee as ResourceImportDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as y,d as S,e as k,g as E,k as R,n as B}from"./chunk-4H477JJR.js";import"./chunk-UHBHOIXR.js";import{Ad as L,Bd as C,Cd as w,Dd as P,Ga as f,Ha as u,Ja as e,Ka as a,Nd as W,O as s,P as g,Qd as v,Sa as M,Sd as T,Td as h,Ua as c,Wa as _,ha as l,jb as o,kb as D,lb as A,ma as r,mb as x,pa as p,xd as b,yd as I}from"./chunk-N7K5OEHJ.js";import"./chunk-EQVTEUXC.js";var F=(n,i)=>i.extension+"/"+i.widget.id;function O(n,i){if(n&1){let t=M();e(0,"button",4),c("click",function(){let m=s(t).$implicit,j=_();return g(j.dialogRef.close(m))}),e(1,"span",5),o(2),a(),e(3,"span",6),o(4),a()()}if(n&2){let t=i.$implicit;l(2),D(t.widget.title),l(2),x("",t.extensionName," \xB7 ",t.widget.size)}}var N=class n{constructor(i,t){this.dialogRef=i;this.data=t;this.anchorLabel=B[t.anchor]}anchorLabel;static \u0275fac=function(t){return new(t||n)(r(b),r(I))};static \u0275cmp=p({type:n,selectors:[["fb-plotterext-add-widget"]],decls:12,vars:1,consts:[["mat-dialog-title","",1,"pe-add-title"],["mat-list-item",""],["align","end"],["mat-button","",3,"click"],["mat-list-item","",3,"click"],["matListItemTitle",""],["matListItemLine",""]],template:function(t,d){t&1&&(e(0,"div",0)(1,"mat-icon"),o(2,"widgets"),a(),e(3,"span"),o(4),a()(),e(5,"mat-dialog-content")(6,"mat-action-list"),f(7,O,5,3,"button",1,F),a()(),e(9,"mat-dialog-actions",2)(10,"button",3),c("click",function(){return d.dialogRef.close()}),o(11,"Cancel"),a()()),t&2&&(l(4),A("Add widget \u2014 ",d.anchorLabel),l(3),u(d.data.candidates))},dependencies:[P,L,w,C,v,W,h,T,R,k,E,S,y],styles:[".pe-add-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}"]})};export{N as PlotterAddWidgetDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as a,t as b,u as c,v as d,w as e,x as f,y as g}from"./chunk-MZFM2DTJ.js";import"./chunk-2FVHKTB6.js";import"./chunk-N7K5OEHJ.js";import"./chunk-EQVTEUXC.js";export{d as AboutDialog,b as AlertDialog,c as ConfirmDialog,e as LoginDialog,f as MessageBarComponent,a as MsgBox,g as WelcomeDialog};
|