@mxtommy/kip 3.1.4 → 3.1.5
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/CHANGELOG.md +6 -1
- package/package.json +13 -13
- package/public/assets/help-docs/datainspector.md +49 -2
- package/public/assets/help-docs/datasets.md +95 -20
- package/public/assets/help-docs/embedwidget.md +95 -0
- package/public/assets/help-docs/menu.json +3 -2
- package/public/{chunk-AGPPRVTP.js → chunk-2L4BJEEQ.js} +1 -1
- package/public/{chunk-6NIOBZZL.js → chunk-2QUOTZ6A.js} +1 -1
- package/public/{chunk-MCACXEYY.js → chunk-4K4AXXSU.js} +1 -1
- package/public/{chunk-VIHODUV4.js → chunk-6QHCHGTT.js} +3 -3
- package/public/{chunk-FFCTE2U5.js → chunk-77C4Q6FL.js} +1 -1
- package/public/{chunk-RCSPPHLA.js → chunk-7TWI6ZJI.js} +1 -1
- package/public/{chunk-FCC7GNHD.js → chunk-CD375FDG.js} +1 -1
- package/public/{chunk-YQQFIIO5.js → chunk-CEBDBQUK.js} +1 -1
- package/public/{chunk-AHFD2AA5.js → chunk-D3QHJ7S5.js} +1 -1
- package/public/{chunk-7OTNT2GF.js → chunk-GQFDVLM2.js} +1 -1
- package/public/{chunk-GV2JTAMW.js → chunk-GUZX3LWH.js} +1 -1
- package/public/{chunk-LMRTNYJV.js → chunk-JSBINEAH.js} +1 -1
- package/public/{chunk-WJMKCVFQ.js → chunk-JZUG3W7P.js} +1 -1
- package/public/{chunk-E2USGHSP.js → chunk-LDD3DUAE.js} +1 -1
- package/public/{chunk-OG77M7OV.js → chunk-MR7RUNKP.js} +1 -1
- package/public/{chunk-NGZ4CXLB.js → chunk-NGNSVXS2.js} +1 -1
- package/public/{chunk-RNQY2ZHR.js → chunk-NPOJFRE3.js} +6 -6
- package/public/{chunk-5BPL4ALQ.js → chunk-OTD7HT32.js} +1 -1
- package/public/{chunk-JKSAHAZC.js → chunk-PFVH4UT3.js} +1 -1
- package/public/{chunk-2Y6OT6VQ.js → chunk-S7S3UOGN.js} +1 -1
- package/public/{chunk-55WFSEKP.js → chunk-SM7W6ABR.js} +1 -1
- package/public/{chunk-WR74IMVF.js → chunk-SZD5Q3AW.js} +1 -1
- package/public/{chunk-FMVUDX5R.js → chunk-TMDXXJWO.js} +1 -1
- package/public/{chunk-RNM4H3MR.js → chunk-UH5I5JPF.js} +1 -1
- package/public/{chunk-LTMJXHF3.js → chunk-WRDOUMT5.js} +1 -1
- package/public/chunk-Y7X77HSW.js +18 -0
- package/public/index.html +1 -1
- package/public/{main-OWSKDRJZ.js → main-FGQDDG5X.js} +13 -13
- package/public/chunk-JIJMSRKJ.js +0 -18
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as be,b as xe}from"./chunk-
|
|
1
|
+
import{a as be,b as xe}from"./chunk-4K4AXXSU.js";import{a as Se,b as De,c as Me,d as ve,e as Pe,f as T,g as Oe,h as Te,i as Ie,j as ke,k as Re,l as Ee,m as Fe,n as I,o as Ve,p as k,q as He,r as Ue}from"./chunk-NGNSVXS2.js";import"./chunk-MR7RUNKP.js";import{a as ye}from"./chunk-2QUOTZ6A.js";import{d as _e,f as we,j as Ce}from"./chunk-GQFDVLM2.js";import{o as ie,p as re}from"./chunk-6QHCHGTT.js";import{d as le,e as se,g as pe,h as ce,i as me,j as de,k as ue}from"./chunk-CD375FDG.js";import"./chunk-SGYCFQGT.js";import{A as fe,D as ge,E as he,j as U,k as ae,r as ne,t as P,z as O}from"./chunk-D3QHJ7S5.js";import{Cc as K,Dc as l,Ea as C,Ec as v,Fa as b,Fc as _,Hb as h,Ic as W,Jc as G,Kc as J,Ma as Q,Nb as m,O as A,Rc as X,Sa as g,Sc as Y,Yd as oe,Zb as c,a as R,b as E,cd as Z,dc as x,gc as N,hc as q,ic as i,ja as $,jc as o,kc as f,lc as y,m as z,mc as S,oc as D,qc as M,rc as u,rd as ee,ua as d,ub as s,vd as te,ve as B,wc as F,xc as V,yc as H,ye as j,z as L}from"./chunk-Y7X77HSW.js";function Le(e,r){e&1&&(i(0,"span",3),l(1,"Boolean"),o())}function Ae(e,r){e&1&&(i(0,"span",3),l(1,"String"),o())}function $e(e,r){e&1&&(i(0,"span",3),l(1,"String"),o())}function Qe(e,r){e&1&&(i(0,"span",3),l(1,"Object"),o())}function Ne(e,r){if(e&1){let t=D();i(0,"button",5),M("click",function(){C(t);let n=u();return b(n.openDialog())}),l(1),o()}if(e&2){let t=u();s(),v(t.selectedUnit)}}function qe(e,r){if(e&1&&(i(0,"mat-option",8),l(1),o()),e&2){let t=r.$implicit;c("value",t.measure),s(),_(" ",t.measure," ")}}function Ke(e,r){if(e&1&&(i(0,"mat-optgroup",6),m(1,qe,2,2,"mat-option",7),o()),e&2){let t=r.$implicit;c("label",t.group),s(),c("ngForOf",t.units)}}var Be=(()=>{class e{_units=d(be);_dialog=d(pe);path=g.required();source=g(void 0);pathValue=g(void 0);type=g.required();units=null;selectedUnit="unitless";ngOnInit(){this.units=this._units.getConversionsForPath(this.path()),this.selectedUnit=this.units.base}convertValue(t,a){return a==="number"?this._units.convertToUnit(this.selectedUnit,t):t}openDialog(){this._dialog.open(We,{data:{selectedUnit:this.selectedUnit,units:this.units}}).afterClosed().subscribe(a=>{a&&(this.selectedUnit=a)})}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=h({type:e,selectors:[["data-inspector-row"]],inputs:{path:[1,"path"],source:[1,"source"],pathValue:[1,"pathValue"],type:[1,"type"]},decls:10,vars:3,consts:[[1,"cell-source","cells"],[1,"cell-value","cells"],[1,"cell-action","cells"],[1,"path-type"],["mat-stroked-button","",1,"change-units-btn"],["mat-stroked-button","",1,"change-units-btn",3,"click"]],template:function(a,n){if(a&1&&(i(0,"mat-cell",0),l(1),o(),i(2,"mat-cell",1),l(3),o(),i(4,"mat-cell",2),m(5,Le,2,0,"span",3)(6,Ae,2,0,"span",3)(7,$e,2,0,"span",3)(8,Qe,2,0,"span",3)(9,Ne,2,1,"button",4),o()),a&2){let p;s(),v(n.source()),s(2),v(n.convertValue(n.pathValue(),n.type())),s(2),x((p=n.type())==="boolean"?5:p==="string"?6:p==="Date"?7:p==="object"?8:9)}},dependencies:[T,j,B],styles:[`.change-units-btn{width:100%}.cell-source:first-of-type{padding-left:0;flex:1 1 30%}.cells{border:0px solid white;word-break:break-word;overflow-wrap:break-word}.cell-value{justify-content:flex-start;flex:1 1 70%;padding:0}.cell-action{justify-content:end;flex:0 0 107px}.cell-action:last-of-type{padding:0}.path-type{width:100%;height:40px;align-content:center;text-align:center;color:var(--mat-sys-primary)}
|
|
2
2
|
`],encapsulation:2})}return e})(),We=(()=>{class e{dialogRef=d(le);data=d(se);selectedUnit=null;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=h({type:e,selectors:[["dialog-unit-selector"]],decls:13,vars:3,consts:[["mat-dialog-title",""],["appearance","outline","floatLabel","always",2,"padding-top","15px","padding-bottom","15px"],[3,"valueChange","value"],[3,"label",4,"ngFor","ngForOf"],["mat-flat-button","","mat-dialog-close",""],["mat-flat-button","",3,"mat-dialog-close"],[3,"label"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(a,n){a&1&&(i(0,"h2",0),l(1,"Select Unit type"),o(),i(2,"mat-dialog-content")(3,"mat-form-field",1)(4,"mat-label"),l(5,"Unit"),o(),i(6,"mat-select",2),J("valueChange",function(w){return G(n.data.selectedUnit,w)||(n.data.selectedUnit=w),w}),m(7,Ke,2,2,"mat-optgroup",3),o()()(),i(8,"mat-dialog-actions")(9,"button",4),l(10,"Cancel"),o(),i(11,"button",5),l(12,"Ok"),o()()),a&2&&(s(6),W("value",n.data.selectedUnit),s(),c("ngForOf",n.data.units.conversions),s(4),c("mat-dialog-close",n.data.selectedUnit))},dependencies:[me,de,O,P,Ce,ee,_e,we,ue,j,B,ce],encapsulation:2})}return e})();var Ge=(e,r)=>r.key;function Je(e,r){e&1&&(i(0,"mat-header-cell",19),l(1," Path "),o())}function Xe(e,r){if(e&1&&(i(0,"mat-cell",20),l(1),o()),e&2){let t=r.$implicit;s(),_(" ",t.path," ")}}function Ye(e,r){e&1&&(i(0,"mat-header-cell",21),l(1," PUT Support "),o())}function Ze(e,r){e&1&&(i(0,"mat-icon",23),l(1,"check_circle"),o())}function et(e,r){if(e&1&&(i(0,"mat-cell",22),m(1,Ze,2,0,"mat-icon",23),o()),e&2){let t=r.$implicit;s(),x(t.meta!=null&&t.meta.supportsPut?1:-1)}}function tt(e,r){e&1&&(i(0,"mat-header-cell",24),l(1," Source "),o())}function at(e,r){if(e&1&&f(0,"data-inspector-row",27),e&2){let t=r.$implicit,a=u().$implicit,n=u();c("path",a.path)("source",n.getSourceKey(t))("pathValue",n.getSourceValue(t))("type",a.type)}}function nt(e,r){if(e&1&&(i(0,"mat-cell",25)(1,"div",26),N(2,at,1,4,"data-inspector-row",27,Ge),X(4,"keyvalue"),o()()),e&2){let t=r.$implicit;s(2),q(Y(4,0,t.sources))}}function ot(e,r){e&1&&f(0,"mat-header-row",28)}function it(e,r){e&1&&f(0,"mat-row",29)}function rt(e,r){if(e&1&&(i(0,"tr",30)(1,"td",31),l(2),o()()),e&2){u();let t=K(6);s(2),_('No data matching the filter "',t.value,'"')}}var Qt=(()=>{class e{dataService=d(ne);destroyRef=d(Q);_responsive=d(oe);isPhonePortrait;filterSubject=new z;paginator;sort;pageTitle="Data Inspector";pageSize=25;hidePageSize=!1;showFirstLastButtons=!0;showPageSizeOptions=[5,10,25,100];tableData=new Fe([]);displayedColumns=["path","supportsPut","defaultSource"];constructor(){this.filterSubject.pipe(A(500)).pipe(U(this.destroyRef)).subscribe(t=>{this.tableData.filter=t.trim().toLowerCase(),this.tableData.paginator&&this.tableData.paginator.firstPage()}),this.isPhonePortrait=ae(this._responsive.observe(xe.HandsetPortrait)),Z(()=>{this.isPhonePortrait().matches?(this.hidePageSize=!0,this.showFirstLastButtons=!1,this.showPageSizeOptions=[]):(this.hidePageSize=!1,this.showFirstLastButtons=!0,this.showPageSizeOptions=[5,10,25,100])})}ngAfterViewInit(){this.dataService.startSkDataFullTree().pipe(L(t=>t.filter(a=>Object.keys(a.sources||{}).length>0).map(a=>E(R({},a),{sources:a.type&&a.type.includes("object")&&typeof a.sources=="object"?Object.fromEntries(Object.entries(a.sources).map(([n,p])=>[n,E(R({},p),{sourceValue:typeof p.sourceValue=="object"?JSON.stringify(p.sourceValue):p.sourceValue})])):a.sources}))),$(500),U(this.destroyRef)).subscribe(t=>{this.tableData.data=t}),this.tableData.paginator=this.paginator,this.tableData.sort=this.sort,this.tableData.sortingDataAccessor=(t,a)=>{switch(a){case"supportsPut":return t.meta?.supportsPut?1:0;default:return t[a]}}}applyFilter(t){let a=t.target.value;this.filterSubject.next(a)}trackByPath(t,a){return`${a.path}`}trackBySource(t,a){return`${a.key}`}getSourceKey(t){return String(t.key)}getSourceValue(t){return t.value.sourceValue}ngOnDestroy(){this.filterSubject.complete(),this.dataService.stopSkDataFullTree()}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=h({type:e,selectors:[["data-inspector"]],viewQuery:function(a,n){if(a&1&&(F(I,5),F(k,5)),a&2){let p;V(p=H())&&(n.paginator=p.first),V(p=H())&&(n.sort=p.first)}},decls:21,vars:10,consts:[["input",""],[3,"pageTitle"],[1,"data-inspector-container"],[1,"filter-field"],["matInput","","placeholder","Ex: navigation","value","self.",3,"keyup"],["matSort","","matSortActive","path","matSortDirection","asc",1,"table-content-area","mat-elevation-z8",3,"dataSource","trackBy"],["matColumnDef","path"],["class","pathHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","pathCell row-cell",4,"matCellDef"],["matColumnDef","supportsPut"],["class","putHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","putCell row-cell",4,"matCellDef"],["matColumnDef","defaultSource"],["class","dataHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","dataCell row-cell",4,"matCellDef"],["class","headerRow",4,"matHeaderRowDef","matHeaderRowDefSticky"],["class","table-row",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],[1,"paginator",3,"pageSize","pageSizeOptions","hidePageSize","showFirstLastButtons"],["mat-sort-header","",1,"pathHeader"],[1,"pathCell","row-cell"],["mat-sort-header","",1,"putHeader"],[1,"putCell","row-cell"],["matTooltip","Supports PUT operation",1,"put-icon"],["mat-sort-header","",1,"dataHeader"],[1,"dataCell","row-cell"],[1,"flex-container"],[1,"source-sub-row",3,"path","source","pathValue","type"],[1,"headerRow"],[1,"table-row"],[1,"mat-row"],["colspan","4",1,"mat-cell"]],template:function(a,n){if(a&1){let p=D();f(0,"page-header",1),i(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),l(4,"Filter"),o(),i(5,"input",4,0),M("keyup",function(je){return C(p),b(n.applyFilter(je))}),o()(),i(7,"mat-table",5),y(8,6),m(9,Je,2,0,"mat-header-cell",7)(10,Xe,2,1,"mat-cell",8),S(),y(11,9),m(12,Ye,2,0,"mat-header-cell",10)(13,et,2,1,"mat-cell",11),S(),y(14,12),m(15,tt,2,0,"mat-header-cell",13)(16,nt,5,2,"mat-cell",14),S(),m(17,ot,1,0,"mat-header-row",15)(18,it,1,0,"mat-row",16)(19,rt,3,1,"tr",17),o(),f(20,"mat-paginator",18),o()}a&2&&(c("pageTitle",n.pageTitle),s(7),c("dataSource",n.tableData)("trackBy",n.trackByPath),s(10),c("matHeaderRowDef",n.displayedColumns)("matHeaderRowDefSticky",!0),s(),c("matRowDefColumns",n.displayedColumns),s(2),c("pageSize",n.pageSize)("pageSizeOptions",n.showPageSizeOptions)("hidePageSize",n.hidePageSize)("showFirstLastButtons",n.showFirstLastButtons))},dependencies:[fe,O,P,Ee,Se,Me,Oe,ve,De,Te,Pe,T,Ie,ke,Re,he,ge,Ve,I,Ue,k,He,Be,te,ye,re,ie],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.data-inspector-container[_ngcontent-%COMP%]{margin-left:24px;margin-right:24px;height:calc(100% - 63px)}.table-content-area[_ngcontent-%COMP%]{height:calc(100% - 142px);overflow-y:scroll;width:100%;scroll-behavior:smooth}.mat-column-path[_ngcontent-%COMP%]{flex:0 0 50%;width:50%}.mat-mdc-table[_ngcontent-%COMP%]{overflow:auto}.paginator[_ngcontent-%COMP%]{width:100%;height:56px;background-color:var(--mat-sys-background)}.filter-field[_ngcontent-%COMP%]{padding:15px 0;width:100%;height:86px}.pathHeader[_ngcontent-%COMP%]{flex:1 1 45%}.putHeader[_ngcontent-%COMP%]{flex:1 1 10%}.dataHeader[_ngcontent-%COMP%]{flex:1 1 45%}.table-row[_ngcontent-%COMP%]{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, .12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid}.row-cell[_ngcontent-%COMP%]{border-bottom-color:#fff;border-bottom-width:0px;border-bottom-style:solid}.pathCell[_ngcontent-%COMP%]{flex:1 1 45%;word-break:break-word;overflow-wrap:break-word}.putCell[_ngcontent-%COMP%]{flex:1 1 10%}.dataCell[_ngcontent-%COMP%]{flex:1 1 45%;flex-flow:column;flex-wrap:nowrap;gap:2px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:nowrap;gap:5px;margin:5px 0;height:100%;width:100%}.source-sub-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;gap:5px;width:100%}.put-icon[_ngcontent-%COMP%]{color:var(--kip-starboard-color)}@media screen and (max-width: 750px){.pathHeader[_ngcontent-%COMP%], .dataHeader[_ngcontent-%COMP%]{flex:1 1 50%}.dataCell[_ngcontent-%COMP%]{flex:1 1 100%}.dataCell[_ngcontent-%COMP%]{flex:1 1 100%;margin-left:24px}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]:before{content:attr(data-label);float:left;padding-right:5px}mat-row[_ngcontent-%COMP%]:after{min-height:auto;padding-bottom:10px}.dataRow[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.actionCell[_ngcontent-%COMP%]{margin-left:24px}}"]})}return e})();export{Qt as DataInspectorComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as T,e as U,h as F,i as O,j as A,k as N}from"./chunk-
|
|
1
|
+
import{d as T,e as U,h as F,i as O,j as A,k as N}from"./chunk-CD375FDG.js";import{a as H}from"./chunk-7TWI6ZJI.js";import{D as K,t as j,u as k,z}from"./chunk-D3QHJ7S5.js";import{Cc as D,Dc as n,Ea as m,Ec as h,Fa as p,Fc as I,Hb as y,Ic as f,Jc as M,Kc as C,Nb as S,Pc as _,Xe as P,Zb as l,af as B,bf as L,ef as W,hf as R,ic as e,if as q,jc as t,kc as g,oc as x,qc as v,rc as b,rf as G,sd as E,ua as c,ub as a,uf as Y,ve as V}from"./chunk-Y7X77HSW.js";var J=()=>({standalone:!1});function Q(o,X){if(o&1&&(e(0,"div",10),g(1,"i",11),n(2),t()),o&2){let u=b();a(2),I(" ",u.data.error," ")}}var se=(()=>{class o{dialogRef=c(T);data=c(U);titleDialog="Sign in to Signal K";saveCredential(){this.data.error=null,this.dialogRef.close(this.data)}static \u0275fac=function(s){return new(s||o)};static \u0275cmp=y({type:o,selectors:[["app-modal-user-credential"]],decls:26,vars:10,consts:[["login","ngForm"],["name","login",3,"ngSubmit"],["mat-dialog-title",""],["class","errorMsgBox",4,"ngIf"],[1,"login-grid"],[1,"userLoginInput"],["type","text","autocomplete","username","id","username","matInput","","placeholder","User ID","name","username","required","",3,"ngModelChange","ngModel","ngModelOptions"],["type","password","autocomplete","current-password","id","current-password","matInput","","placeholder","Password","name","current-password","required","",3,"ngModelChange","ngModel","ngModelOptions"],["mat-flat-button","","type","button",3,"mat-dialog-close"],["mat-flat-button","","type","submit",3,"disabled"],[1,"errorMsgBox"],["aria-hidden","true",1,"fa-solid","fa-times-circle",2,"color","red","padding-right","5px"]],template:function(s,i){if(s&1){let d=x();e(0,"form",1,0),v("ngSubmit",function(){return m(d),p(i.saveCredential())}),e(2,"span",2),n(3),t(),e(4,"mat-dialog-content"),S(5,Q,3,1,"div",3),g(6,"br"),e(7,"div",4)(8,"mat-form-field",5)(9,"mat-label"),n(10,"User ID"),t(),e(11,"input",6),C("ngModelChange",function(r){return m(d),M(i.data.user,r)||(i.data.user=r),p(r)}),t(),e(12,"mat-error"),n(13," You must enter a User ID value "),t()(),e(14,"mat-form-field",5)(15,"mat-label"),n(16,"Password"),t(),e(17,"input",7),C("ngModelChange",function(r){return m(d),M(i.data.password,r)||(i.data.password=r),p(r)}),t(),e(18,"mat-error"),n(19," You must enter a password value "),t()()()(),g(20,"mat-divider"),e(21,"mat-dialog-actions")(22,"button",8),n(23,"Cancel"),t(),e(24,"button",9),n(25,"Sign in"),t()()()}if(s&2){let d=D(1);a(3),h(i.titleDialog),a(2),l("ngIf",i.data.error),a(6),f("ngModel",i.data.user),l("ngModelOptions",_(8,J)),a(6),f("ngModel",i.data.password),l("ngModelOptions",_(9,J)),a(5),l("mat-dialog-close",!1),a(2),l("disabled",!d.valid)}},dependencies:[Y,q,P,B,L,G,R,W,O,A,E,z,j,K,k,H,N,V,F],styles:[".errorMsgBox[_ngcontent-%COMP%]{background-color:#fff8dc;color:#2f4f4f;display:flex;padding:5px;font-family:Arial,Times,serif;font-size:14px}.login-grid[_ngcontent-%COMP%]{display:grid;gap:10px;padding-left:10px;padding-right:10px}.userLoginInput[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return o})();export{se as a};
|