@mxtommy/kip 4.8.0-beta.1 → 4.8.1

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.
Files changed (113) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/LICENSE +3 -0
  3. package/README.md +56 -49
  4. package/package.json +24 -21
  5. package/plugin/history-series.service.js +108 -30
  6. package/plugin/index.js +157 -115
  7. package/plugin/kip-series-contract.js +12 -3
  8. package/plugin/openApi.json +64 -13
  9. package/plugin/sqlite-history-storage.service.js +4 -2
  10. package/plugin/src/history-series.service.js +634 -0
  11. package/plugin/src/index.js +1322 -0
  12. package/plugin/src/kip-series-contract.js +31 -0
  13. package/plugin/src/openApi.json +855 -0
  14. package/plugin/src/sqlite-history-storage.service.js +1122 -0
  15. package/public/3rdpartylicenses.txt +569 -727
  16. package/public/assets/help-docs/chartplotter.md +1 -1
  17. package/public/assets/help-docs/contributing-widgets.md +40 -0
  18. package/public/assets/help-docs/dashboards.md +6 -0
  19. package/public/assets/help-docs/history-api.md +69 -71
  20. package/public/assets/help-docs/menu.json +27 -7
  21. package/public/assets/help-docs/time-series.md +81 -0
  22. package/public/assets/help-docs/welcome.md +1 -1
  23. package/public/assets/svg/icons.svg +36 -1
  24. package/public/chunk-00hwknVI.js +1 -0
  25. package/public/chunk-5U8d2Ygo.js +14 -0
  26. package/public/chunk-AANk-NXH.js +1015 -0
  27. package/public/chunk-B6bEhzNR.js +1 -0
  28. package/public/chunk-B82ADJSs.js +1 -0
  29. package/public/chunk-BJz7Ij9E.js +1 -0
  30. package/public/chunk-BKj60jdq.js +1 -0
  31. package/public/chunk-BOAD0N2a.js +2 -0
  32. package/public/chunk-BQr-tSkv.js +1 -0
  33. package/public/chunk-BX6skw5k.js +1 -0
  34. package/public/chunk-BdokyhBM.js +1 -0
  35. package/public/chunk-Blokg6Ds.js +1 -0
  36. package/public/chunk-BoNDCNGE.js +1 -0
  37. package/public/chunk-Bp0MQwPM.js +1 -0
  38. package/public/chunk-BwOIef42.js +1 -0
  39. package/public/chunk-By8ZVvDx.js +2 -0
  40. package/public/chunk-C2VQxCXa.js +1 -0
  41. package/public/chunk-C6UXF7BI.js +1 -0
  42. package/public/chunk-CA6RRaxd.js +1 -0
  43. package/public/chunk-CIlfzV9R.js +1 -0
  44. package/public/chunk-CL2xiH57.js +1 -0
  45. package/public/chunk-CNMFlw_H.js +1 -0
  46. package/public/chunk-CNNTuNlM.js +1 -0
  47. package/public/chunk-CQNVyz8q.js +1 -0
  48. package/public/chunk-CXvG8mMq.js +1 -0
  49. package/public/chunk-CaD3zVfK.js +1 -0
  50. package/public/chunk-CkXTl3su.js +1 -0
  51. package/public/chunk-CpMCBDvH.js +1 -0
  52. package/public/chunk-CpuB_ZZz.js +2 -0
  53. package/public/chunk-CrBxxZCe.js +1 -0
  54. package/public/chunk-CwSa_BNV.js +1 -0
  55. package/public/chunk-D4xZ2tGB.js +39 -0
  56. package/public/chunk-DDqeRiB0.js +1 -0
  57. package/public/chunk-DE4ylhpq.js +1 -0
  58. package/public/chunk-DNS-qsFC.js +1 -0
  59. package/public/chunk-DQnoPLyC.js +1 -0
  60. package/public/chunk-DWLISAZi.js +1 -0
  61. package/public/chunk-DXkKj21H.js +1 -0
  62. package/public/chunk-DchvLV_Y.js +1 -0
  63. package/public/chunk-DjZgzSiH.js +1 -0
  64. package/public/chunk-DumLX5k_.js +1 -0
  65. package/public/chunk-Dxlia2NE.js +1 -0
  66. package/public/chunk-DzTTqoF_.js +1 -0
  67. package/public/chunk-H9_eqTYx.js +1 -0
  68. package/public/chunk-Ii9n-oiL.js +1 -0
  69. package/public/chunk-JbEkcxJm.js +2 -0
  70. package/public/chunk-MjWuPUhu.js +1 -0
  71. package/public/chunk-PheXEqie.js +1 -0
  72. package/public/chunk-TakPRI3t.js +2 -0
  73. package/public/chunk-VgxMqRPk.js +3 -0
  74. package/public/chunk-dgaOX1wC.js +382 -0
  75. package/public/chunk-hd2_AKwt.js +1 -0
  76. package/public/chunk-nu4vZg-z.js +1 -0
  77. package/public/chunk-sNakMDHi.js +1 -0
  78. package/public/chunk-tAiV3ARh.js +1 -0
  79. package/public/chunk-y1imvaA-.js +1 -0
  80. package/public/index.html +4 -4
  81. package/public/main-BAV5VDOD.js +7109 -0
  82. package/public/polyfills-5MJXXCNC.js +1 -0
  83. package/public/styles-JZSMCSRO.css +1 -0
  84. package/public/assets/help-docs/widget-historical-series.md +0 -110
  85. package/public/chunk-2TP7C66X.js +0 -5
  86. package/public/chunk-4KHUCTYN.js +0 -3
  87. package/public/chunk-6ISGIPNP.js +0 -1
  88. package/public/chunk-7JGTAL26.js +0 -10
  89. package/public/chunk-C23GLDFH.js +0 -62
  90. package/public/chunk-CB4E7PPA.js +0 -4
  91. package/public/chunk-DNM5XUIF.js +0 -1
  92. package/public/chunk-HF7V6XFA.js +0 -2
  93. package/public/chunk-HXR2BKDL.js +0 -4
  94. package/public/chunk-ILQQCGMJ.js +0 -5
  95. package/public/chunk-IXUKD73N.js +0 -5
  96. package/public/chunk-JMZYPL54.js +0 -2
  97. package/public/chunk-KJCBQE6W.js +0 -6
  98. package/public/chunk-LEY6MANN.js +0 -16
  99. package/public/chunk-O5BTKN5D.js +0 -1
  100. package/public/chunk-OH5KNIQ7.js +0 -50
  101. package/public/chunk-Q32FSCUX.js +0 -1
  102. package/public/chunk-RIX4VQJ2.js +0 -1
  103. package/public/chunk-SHJMXSDM.js +0 -1
  104. package/public/chunk-T4VTC6GW.js +0 -1
  105. package/public/chunk-VFJD3XKT.js +0 -1
  106. package/public/chunk-VFZSH4TC.js +0 -1
  107. package/public/chunk-W6MCE3GH.js +0 -6
  108. package/public/chunk-WAOG456B.js +0 -2
  109. package/public/chunk-XBOM6DMF.js +0 -9
  110. package/public/main-BECMST5R.js +0 -1
  111. package/public/polyfills-BWA36QKG.js +0 -1
  112. package/public/scripts-M6PHZBML.js +0 -14
  113. package/public/styles-DYEO23GZ.css +0 -1
@@ -0,0 +1,382 @@
1
+ import {O}from'./chunk-tAiV3ARh.js';import {w,aS as De,aY as xe$1,a7 as Gj,i as ir,aR as lt$1,ab as te,$ as $j,cN as Wl,a_ as Gp,W as Wp,E as Em,F as Fa,cO as eu,cP as Z,as as ke,J as JD,cQ as ce,bb as rt$1,bc as ae$1,bH as ln$1,bd as an$1,O as Op,o as eu$1,y as yt,b as wt,cR as zt,bg as mt,c as $h,P as Pi$1,T as TT,u as ul,k as Qh,cS as pl,cf as xh,cT as hl,B as Bh,e as EE,f as eg,K as Kw,aB as gr,aF as Pr,ac as Mr,cU as $n,az as Yj,ad as Qe$1,aa as N,bA as Ft,bB as F,al as Zj,_ as _w,cn as wd,cV as Td,M as Mw,bp as gl,an as Hh,cW as Ur,ak as nw,ay as lv,cX as Xt,aq as Bn$1,cY as Io,aj as zm,cZ as Tm,c_ as Fm,c2 as bh,c3 as Qs,c4 as Fn$1,c8 as Sv,c9 as Sh,bV as Gw,bW as zw,am as LT,s as sg,c$ as Wh,bI as Lt,bQ as Dn$1,a6 as Lr,d0 as dh,bR as ot$1,v as vt,aD as Ce,bS as oa,ci as dl,cj as fl,bu as ut,aQ as ee,d1 as Hj,bh as xp,aA as gg,h as Fw,l as ud,g as qw,m as dd,X as xw,Y as Aw,bl as Jw,d2 as wt$1,d3 as ib,a9 as ru,cl as G,aC as L,ae as be,d4 as gi,bT as Lg,ag as bu,d5 as jt,d6 as _,d7 as Ce$1,d8 as Y$1,d9 as Cm,da as Qm,aJ as wm,db as Dm,ca as Kh,c0 as Zw,c1 as Yw,ap as Ki$1,co as Mr$1,dc as O$1,dd as $e$1,de as Nt,df as Vt,dg as pt,dh as zt$1,di as jt$1,bi as Eg,bj as ST,dj as Nw,bm as Ig,dk as Vh,at as Tp,cp as Uh}from'./main-BAV5VDOD.js';var Vi=[[["caption"]],[["colgroup"],["col"]],"*"],Ui=["caption","colgroup, col","*"];function $i(i,o){i&1&&zw(0,2);}function Qi(i,o){i&1&&(Pi$1(0,"thead",0),Wh(1,1),ul(),Pi$1(2,"tbody",0),Wh(3,2)(4,3),ul(),Pi$1(5,"tfoot",0),Wh(6,4),ul());}function Wi(i,o){i&1&&Wh(0,1)(1,2)(2,3)(3,4);}var A=new N("CDK_TABLE");var Ue=(()=>{class i{template=w(Mr$1);static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["","cdkCellDef",""]]})}return i})(),$e=(()=>{class i{template=w(Mr$1);static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["","cdkHeaderCellDef",""]]})}return i})(),Ci=(()=>{class i{template=w(Mr$1);static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["","cdkFooterCellDef",""]]})}return i})(),Y=(()=>{class i{_table=w(A,{optional:true});_hasStickyChanged=false;get name(){return this._name}set name(e){this._setNameInput(e);}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=true);}_stickyEnd=false;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`];}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName());}static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,n,a){if(t&1&&Kh(a,Ue,5)(a,$e,5)(a,Ci,5),t&2){let r;Zw(r=Yw())&&(n.cell=r.first),Zw(r=Yw())&&(n.headerCell=r.first),Zw(r=Yw())&&(n.footerCell=r.first);}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Zj],stickyEnd:[2,"stickyEnd","stickyEnd",Zj]}})}return i})(),Ve=class{constructor(o,e){e.nativeElement.classList.add(...o._columnCssClassName);}},bi=(()=>{class i extends Ve{constructor(){super(w(Y),w(Lr));}static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Sh]})}return i})();var Di=(()=>{class i extends Ve{constructor(){let e=w(Y),t=w(Lr);super(e,t);let n=e._table?._getCellRole();n&&t.nativeElement.setAttribute("role",n);}static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Sh]})}return i})();var tt=(()=>{class i{template=w(Mr$1);_differs=w(ib);columns;_columnsDiffer;ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t);}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Me?e.headerCell.template:this instanceof it?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,features:[lv]})}return i})(),Me=(()=>{class i extends tt{_table=w(A,{optional:true});_hasStickyChanged=false;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275dir=nw({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Zj]},features:[Sh,lv]})}return i})(),it=(()=>{class i extends tt{_table=w(A,{optional:true});_hasStickyChanged=false;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275dir=nw({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Zj]},features:[Sh,lv]})}return i})(),Qe=(()=>{class i extends tt{_table=w(A,{optional:true});when;static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275dir=nw({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Sh]})}return i})(),ae=(()=>{class i{_viewContainer=w(Ki$1);cells;context;static mostRecentCellOutlet=null;constructor(){i.mostRecentCellOutlet=this;}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null);}static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["","cdkCellOutlet",""]]})}return i})(),nt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=JD({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,n){t&1&&Wh(0,0);},dependencies:[ae],encapsulation:2,changeDetection:1})}return i})();var ot=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=JD({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,n){t&1&&Wh(0,0);},dependencies:[ae],encapsulation:2,changeDetection:1})}return i})(),We=(()=>{class i{templateRef=w(Mr$1);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["ng-template","cdkNoDataRow",""]]})}return i})(),yi=["top","bottom","left","right"],et=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(o=>this._updateCachedSizes(o)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=false;constructor(o,e,t=true,n=true,a,r,l){this._isNativeHtmlTable=o,this._stickCellCss=e,this._isBrowser=t,this._needsPositionStickyOnElement=n,this.direction=a,this._positionListener=r,this._tableInjector=l,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`};}clearStickyPositioning(o,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(o);let t=[];for(let n of o)n.nodeType===n.ELEMENT_NODE&&t.push(n,...Array.from(n.children));Tp({write:()=>{for(let n of t)this._removeStickyStyle(n,e);}},{injector:this._tableInjector});}updateStickyColumns(o,e,t,n=true,a=true){if(!o.length||!this._isBrowser||!(e.some(P=>P)||t.some(P=>P))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let r=o[0],l=r.children.length,u=this.direction==="rtl",p=u?"right":"left",g=u?"left":"right",w=e.lastIndexOf(true),S=t.indexOf(true),R,mt,ut;a&&this._updateStickyColumnReplayQueue({rows:[...o],stickyStartStates:[...e],stickyEndStates:[...t]}),Tp({earlyRead:()=>{R=this._getCellWidths(r,n),mt=this._getStickyStartColumnPositions(R,e),ut=this._getStickyEndColumnPositions(R,t);},write:()=>{for(let P of o)for(let I=0;I<l;I++){let ft=P.children[I];e[I]&&this._addStickyStyle(ft,p,mt[I],I===w),t[I]&&this._addStickyStyle(ft,g,ut[I],I===S);}this._positionListener&&R.some(P=>!!P)&&(this._positionListener.stickyColumnsUpdated({sizes:w===-1?[]:R.slice(0,w+1).map((P,I)=>e[I]?P:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:S===-1?[]:R.slice(S).map((P,I)=>t[I+S]?P:null).reverse()}));}},{injector:this._tableInjector});}stickRows(o,e,t){if(!this._isBrowser)return;let n=t==="bottom"?o.slice().reverse():o,a=t==="bottom"?e.slice().reverse():e,r=[],l=[],u=[];Tp({earlyRead:()=>{for(let p=0,g=0;p<n.length;p++){if(!a[p])continue;r[p]=g;let w=n[p];u[p]=this._isNativeHtmlTable?Array.from(w.children):[w];let S=this._retrieveElementSize(w).height;g+=S,l[p]=S;}},write:()=>{let p=a.lastIndexOf(true);for(let g=0;g<n.length;g++){if(!a[g])continue;let w=r[g],S=g===p;for(let R of u[g])this._addStickyStyle(R,t,w,S);}t==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:l,offsets:r,elements:u}):this._positionListener?.stickyFooterRowsUpdated({sizes:l,offsets:r,elements:u});}},{injector:this._tableInjector});}updateStickyFooterContainer(o,e){this._isNativeHtmlTable&&Tp({write:()=>{let t=o.querySelector("tfoot");t&&(e.some(n=>!n)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,false));}},{injector:this._tableInjector});}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=true;}_removeStickyStyle(o,e){if(!o.classList.contains(this._stickCellCss))return;for(let n of e)o.style[n]="",o.classList.remove(this._borderCellCss[n]);yi.some(n=>e.indexOf(n)===-1&&o.style[n])?o.style.zIndex=this._getCalculatedZIndex(o):(o.style.zIndex="",this._needsPositionStickyOnElement&&(o.style.position=""),o.classList.remove(this._stickCellCss));}_addStickyStyle(o,e,t,n){o.classList.add(this._stickCellCss),n&&o.classList.add(this._borderCellCss[e]),o.style[e]=`${t}px`,o.style.zIndex=this._getCalculatedZIndex(o),this._needsPositionStickyOnElement&&(o.style.cssText+="position: -webkit-sticky; position: sticky; ");}_getCalculatedZIndex(o){let e={top:100,bottom:10,left:1,right:1},t=0;for(let n of yi)o.style[n]&&(t+=e[n]);return t?`${t}`:""}_getCellWidths(o,e=true){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],n=o.children;for(let a=0;a<n.length;a++){let r=n[a];t.push(this._retrieveElementSize(r).width);}return this._cachedCellWidths=t,t}_getStickyStartColumnPositions(o,e){let t=[],n=0;for(let a=0;a<o.length;a++)e[a]&&(t[a]=n,n+=o[a]);return t}_getStickyEndColumnPositions(o,e){let t=[],n=0;for(let a=o.length;a>0;a--)e[a]&&(t[a]=n,n+=o[a]);return t}_retrieveElementSize(o){let e=this._elemSizeCache.get(o);if(e)return e;let t=o.getBoundingClientRect(),n={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(o,n),this._resizeObserver.observe(o,{box:"border-box"})),n}_updateStickyColumnReplayQueue(o){this._removeFromStickyColumnReplayQueue(o.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(o);}_removeFromStickyColumnReplayQueue(o){let e=new Set(o);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(n=>!e.has(n));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length);}_updateCachedSizes(o){let e=false;for(let t of o){let n=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};n.width!==this._elemSizeCache.get(t.target)?.width&&qi(t.target)&&(e=true),this._elemSizeCache.set(t.target,n);}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,true,false);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null;}},0));}};function qi(i){return ["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(o=>i.classList.contains(o))}var xe=new N("STICKY_POSITIONING_LISTENER");var at=(()=>{class i{viewContainer=w(Ki$1);elementRef=w(Lr);constructor(){let e=w(A);e._rowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["","rowOutlet",""]]})}return i})(),rt=(()=>{class i{viewContainer=w(Ki$1);elementRef=w(Lr);constructor(){let e=w(A);e._headerRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["","headerRowOutlet",""]]})}return i})(),st=(()=>{class i{viewContainer=w(Ki$1);elementRef=w(Lr);constructor(){let e=w(A);e._footerRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["","footerRowOutlet",""]]})}return i})(),lt=(()=>{class i{viewContainer=w(Ki$1);elementRef=w(Lr);constructor(){let e=w(A);e._noDataRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["","noDataRowOutlet",""]]})}return i})(),ct=(()=>{class i{_differs=w(ib);_changeDetectorRef=w(Gj);_elementRef=w(Lr);_dir=w(ru,{optional:true});_platform=w(G);_viewRepeater;_viewportRuler=w(L);_injector=w(be);_virtualScrollViewport=w(gi,{optional:true,host:true});_positionListener=w(xe,{optional:true})||w(xe,{optional:true,skipSelf:true});_document=w(gr);_data;_renderedRange;_onDestroy=new te;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=true;_footerRowDefChanged=true;_stickyColumnStylesNeedReset=true;_forceRecalculateCellWidths=true;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=true;_isServer;_isShowingNoDataRow=false;_hasAllOutlets=false;_hasInitialized=false;_headerRowStickyUpdates=new te;_footerRowStickyUpdates=new te;_disableVirtualScrolling=false;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e;}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck());}_dataSource;_dataSourceChanges=new te;_dataStream=new te;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles());}_multiTemplateDataRows=false;get fixedLayout(){return this._virtualScrollEnabled()?true:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=true,this._stickyColumnStylesNeedReset=true;}_fixedLayout=false;recycleRows=false;contentChanged=new Qe$1;viewChange=new Bn$1({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;get renderedRows(){return this._renderRows}constructor(){w(new Lg("role"),{optional:true})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((t,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n);}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(bu(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=true;});}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new jt:new _,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=true;}ngAfterContentChecked(){this._canRender()&&this._render();}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear();}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Ce$1(this.dataSource)&&this.dataSource.disconnect(this);}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(n,a,r)=>this._getEmbeddedViewArgs(n.item,r),n=>n.item.data,n=>{n.operation===Y$1.INSERTED&&n.context&&this._renderCellTemplateForItem(n.record.item.rowDef,n.context);}),this._updateRowIndexContext(),e.forEachIdentityChange(n=>{let a=t.get(n.currentIndex);a.context.$implicit=n.item.data;}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles();}addColumnDef(e){this._customColumnDefs.add(e);}removeColumnDef(e){this._customColumnDefs.delete(e);}addRowDef(e){this._customRowDefs.add(e);}removeRowDef(e){this._customRowDefs.delete(e);}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=true;}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=true;}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=true;}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=true;}setNoDataRow(e){this._customNoDataRow=e;}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let n=wi(this._headerRowOutlet,"thead");n&&(n.style.display=e.length?"":"none");}let t=this._headerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(n=>n.resetStickyChanged());}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let n=wi(this._footerRowOutlet,"tfoot");n&&(n.style.display=e.length?"":"none");}let t=this._footerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(n=>n.resetStickyChanged());}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...n],["left","right"]),this._stickyColumnStylesNeedReset=false),e.forEach((a,r)=>{this._addStickyColumnStyles([a],this._headerRowDefs[r]);}),this._rowDefs.forEach(a=>{let r=[];for(let l=0;l<t.length;l++)this._renderRows[l].rowDef===a&&r.push(t[l]);this._addStickyColumnStyles(r,a);}),n.forEach((a,r)=>{this._addStickyColumnStyles([a],this._footerRowDefs[r]);}),Array.from(this._columnDefsByName.values()).forEach(a=>a.resetStickyChanged());}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e);}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e);}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e);}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e);}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=true,this._canRender()&&this._render());}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=false),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=false),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates();}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return [];let e=[],t=Math.min(this._data.length,this._renderedRange.end),n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let a=this._renderedRange.start;a<t;a++){let r=this._data[a],l=this._getRenderRowsForData(r,a,n.get(r));this._cachedRenderRowsMap.has(r)||this._cachedRenderRowsMap.set(r,new WeakMap);for(let u=0;u<l.length;u++){let p=l[u],g=this._cachedRenderRowsMap.get(p.data);g.has(p.rowDef)?g.get(p.rowDef).push(p):g.set(p.rowDef,[p]),e.push(p);}}return e}_getRenderRowsForData(e,t,n){return this._getRowDefs(e,t).map(r=>{let l=n&&n.has(r)?n.get(r):[];if(l.length){let u=l.shift();return u.dataIndex=t,u}else return {data:e,rowDef:r,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),je(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t);});}_cacheRowDefs(){this._headerRowDefs=je(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=je(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=je(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0];}_renderUpdatedColumns(){let e=(r,l)=>{let u=!!l.getColumnsDiff();return r||u},t=this._rowDefs.reduce(e,false);t&&this._forceRenderDataRows();let n=this._headerRowDefs.reduce(e,false);n&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(e,false);return a&&this._forceRenderFooterRows(),t||n||a}_switchDataSource(e){this._data=[],Ce$1(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e;}_observeRenderChanges(){if(!this.dataSource)return;let e;Ce$1(this.dataSource)?e=this.dataSource.connect(this):Cm(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Tm(this.dataSource)),this._renderChangeSubscription=Fm([e,this.viewChange]).pipe(bu(this._onDestroy)).subscribe(([t,n])=>{this._data=t||[],this._renderedRange=n,this._dataStream.next(t),this.renderRows();});}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles();}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles();}_addStickyColumnStyles(e,t){let n=Array.from(t?.columns||[]).map(l=>{let u=this._columnDefsByName.get(l);return u}),a=n.map(l=>l.sticky),r=n.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(e,a,r,!this.fixedLayout||this._forceRecalculateCellWidths);}_getRenderedRows(e){let t=[];for(let n=0;n<e.viewContainer.length;n++){let a=e.viewContainer.get(n);t.push(a.rootNodes[0]);}return t}_getRowDefs(e,t){if(this._rowDefs.length===1)return [this._rowDefs[0]];let n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(a=>!a.when||a.when(t,e));else {let a=this._rowDefs.find(r=>r.when&&r.when(t,e))||this._defaultRowDef;a&&n.push(a);}return n.length,n}_getEmbeddedViewArgs(e,t){let n=e.rowDef,a={$implicit:e.data};return {templateRef:n.template,context:a,index:t}}_renderRow(e,t,n,a={}){let r=e.viewContainer.createEmbeddedView(t.template,a,n);return this._renderCellTemplateForItem(t,a),r}_renderCellTemplateForItem(e,t){for(let n of this._getCellTemplates(e))ae.mostRecentCellOutlet&&ae.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,t);this._changeDetectorRef.markForCheck();}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,n=e.length;t<n;t++){let r=e.get(t).context;r.count=n,r.first=t===0,r.last=t===n-1,r.even=t%2===0,r.odd=!r.even,this.multiTemplateDataRows?(r.dataIndex=this._renderRows[t].dataIndex,r.renderIndex=t):r.index=this._renderRows[t].dataIndex;}}_getCellTemplates(e){return !e||!e.columns?[]:Array.from(e.columns,t=>{let n=this._columnDefsByName.get(t);return e.extractCellTemplate(n)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows();}_checkStickyStates(){let e=(t,n)=>t||n.hasStickyChanged();this._headerRowDefs.reduce(e,false)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,false)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,false)&&(this._stickyColumnStylesNeedReset=true,this.updateStickyColumnStyles());}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",t=this._injector;this._stickyStyler=new et(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,t),(this._dir?this._dir.change:Tm()).pipe(bu(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles();});}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?wm:Dm;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(Qm(0,t),bu(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(n,a)=>this._measureRangeSize(n,a)}),Fm([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(bu(this._onDestroy)).subscribe(([n,a])=>{if(!(!a.sizes||!a.offsets||!a.elements))for(let r=0;r<a.elements.length;r++){let l=a.elements[r];if(l){let u=a.offsets[r],p=n!==0?Math.max(n-u,u):-u;for(let g of l)g.style.top=`${-p}px`;}}}),Fm([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(bu(this._onDestroy)).subscribe(([n,a])=>{if(!(!a.sizes||!a.offsets||!a.elements))for(let r=0;r<a.elements.length;r++){let l=a.elements[r];if(l)for(let u of l)u.style.bottom=`${n+a.offsets[r]}px`;}});}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let n=this._noDataRowOutlet.viewContainer;if(t){let a=n.createEmbeddedView(e.templateRef),r=a.rootNodes[0];if(a.rootNodes.length===1&&r?.nodeType===this._document.ELEMENT_NODE){r.setAttribute("role","row"),r.classList.add(...e._contentClassNames);let l=r.querySelectorAll(e._cellSelector);for(let u=0;u<l.length;u++)l[u].classList.add(...e._cellClassNames);}}else n.clear();this._isShowingNoDataRow=t,this._changeDetectorRef.markForCheck();}_measureRangeSize(e,t){if(e.start>=e.end||t!=="vertical")return 0;let n=this.viewChange.value,a=this._rowOutlet.viewContainer;e.start<n.start||e.end>n.end;let r=e.start-n.start,l=e.end-e.start,u,p;for(let S=0;S<l;S++){let R=a.get(S+r);if(R&&R.rootNodes.length){u=p=R.rootNodes[0];break}}for(let S=l-1;S>-1;S--){let R=a.get(S+r);if(R&&R.rootNodes.length){p=R.rootNodes[R.rootNodes.length-1];break}}let g=u?.getBoundingClientRect?.(),w=p?.getBoundingClientRect?.();return g&&w?w.bottom-g.top:0}_virtualScrollEnabled(){return !this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=JD({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,n,a){if(t&1&&Kh(a,We,5)(a,Y,5)(a,Qe,5)(a,Me,5)(a,it,5),t&2){let r;Zw(r=Yw())&&(n._noDataRow=r.first),Zw(r=Yw())&&(n._contentColumnDefs=r),Zw(r=Yw())&&(n._contentRowDefs=r),Zw(r=Yw())&&(n._contentHeaderRowDefs=r),Zw(r=Yw())&&(n._contentFooterRowDefs=r);}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,n){t&2&&sg("cdk-table-fixed-layout",n.fixedLayout);},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Zj],fixedLayout:[2,"fixedLayout","fixedLayout",Zj],recycleRows:[2,"recycleRows","recycleRows",Zj]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[LT([{provide:A,useExisting:i},{provide:xe,useValue:null}])],ngContentSelectors:Ui,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,n){t&1&&(Gw(Vi),zw(0),zw(1,1),_w(2,$i,1,0),_w(3,Qi,7,0)(4,Wi,4,0)),t&2&&(EE(2),Mw(n._isServer?2:-1),EE(),Mw(n._isNativeHtmlTable?3:4));},dependencies:[rt,at,lt,st],styles:[`.cdk-table-fixed-layout {
2
+ table-layout: fixed;
3
+ }
4
+ `],encapsulation:2,changeDetection:1})}return i})();function je(i,o){return i.concat(Array.from(o))}function wi(i,o){let e=o.toUpperCase(),t=i.viewContainer.element.nativeElement;for(;t;){let n=t.nodeType===1?t.nodeName:null;if(n===e)return t;if(n==="TABLE")break;t=t.parentNode;}return null}var vi=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=bh({type:i});static \u0275inj=Qs({imports:[wt$1]})}return i})();var Gi=[[["caption"]],[["colgroup"],["col"]],"*"],Ki=["caption","colgroup, col","*"];function Yi(i,o){i&1&&zw(0,2);}function Zi(i,o){i&1&&(Pi$1(0,"thead",0),Wh(1,1),ul(),Pi$1(2,"tbody",2),Wh(3,3)(4,4),ul(),Pi$1(5,"tfoot",0),Wh(6,5),ul());}function Xi(i,o){i&1&&Wh(0,1)(1,3)(2,4)(3,5);}var Si=(()=>{class i extends ct{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=false;static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275cmp=JD({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(t,n){t&2&&sg("mat-table-fixed-layout",n.fixedLayout);},exportAs:["matTable"],features:[LT([{provide:ct,useExisting:i},{provide:A,useExisting:i},{provide:xe,useValue:null}]),Sh],ngContentSelectors:Ki,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,n){t&1&&(Gw(Gi),zw(0),zw(1,1),_w(2,Yi,1,0),_w(3,Zi,7,0)(4,Xi,4,0)),t&2&&(EE(2),Mw(n._isServer?2:-1),EE(),Mw(n._isNativeHtmlTable?3:4));},dependencies:[rt,at,lt,st],styles:[`.mat-mdc-table-sticky {
5
+ position: sticky !important;
6
+ }
7
+
8
+ mat-table {
9
+ display: block;
10
+ }
11
+
12
+ mat-header-row {
13
+ min-height: var(--mat-table-header-container-height, 56px);
14
+ }
15
+
16
+ mat-row {
17
+ min-height: var(--mat-table-row-item-container-height, 52px);
18
+ }
19
+
20
+ mat-footer-row {
21
+ min-height: var(--mat-table-footer-container-height, 52px);
22
+ }
23
+
24
+ mat-row, mat-header-row, mat-footer-row {
25
+ display: flex;
26
+ border-width: 0;
27
+ border-bottom-width: 1px;
28
+ border-style: solid;
29
+ align-items: center;
30
+ box-sizing: border-box;
31
+ }
32
+
33
+ mat-cell:first-of-type, mat-header-cell:first-of-type, mat-footer-cell:first-of-type {
34
+ padding-left: 24px;
35
+ }
36
+ [dir=rtl] mat-cell:first-of-type:not(:only-of-type), [dir=rtl] mat-header-cell:first-of-type:not(:only-of-type), [dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type) {
37
+ padding-left: 0;
38
+ padding-right: 24px;
39
+ }
40
+ mat-cell:last-of-type, mat-header-cell:last-of-type, mat-footer-cell:last-of-type {
41
+ padding-right: 24px;
42
+ }
43
+ [dir=rtl] mat-cell:last-of-type:not(:only-of-type), [dir=rtl] mat-header-cell:last-of-type:not(:only-of-type), [dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type) {
44
+ padding-right: 0;
45
+ padding-left: 24px;
46
+ }
47
+
48
+ mat-cell, mat-header-cell, mat-footer-cell {
49
+ flex: 1;
50
+ display: flex;
51
+ align-items: center;
52
+ overflow: hidden;
53
+ word-wrap: break-word;
54
+ min-height: inherit;
55
+ }
56
+
57
+ .mat-mdc-table {
58
+ min-width: 100%;
59
+ border: 0;
60
+ border-spacing: 0;
61
+ table-layout: auto;
62
+ white-space: normal;
63
+ background-color: var(--mat-table-background-color, var(--mat-sys-surface));
64
+ }
65
+
66
+ .mat-table-fixed-layout {
67
+ table-layout: fixed;
68
+ }
69
+
70
+ .mdc-data-table__cell {
71
+ box-sizing: border-box;
72
+ overflow: hidden;
73
+ text-align: start;
74
+ text-overflow: ellipsis;
75
+ }
76
+
77
+ .mdc-data-table__cell,
78
+ .mdc-data-table__header-cell {
79
+ padding: 0 16px;
80
+ }
81
+
82
+ .mat-mdc-header-row {
83
+ -moz-osx-font-smoothing: grayscale;
84
+ -webkit-font-smoothing: antialiased;
85
+ height: var(--mat-table-header-container-height, 56px);
86
+ color: var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
87
+ font-family: var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));
88
+ line-height: var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));
89
+ font-size: var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));
90
+ font-weight: var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500));
91
+ }
92
+
93
+ .mat-mdc-row {
94
+ height: var(--mat-table-row-item-container-height, 52px);
95
+ color: var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
96
+ }
97
+
98
+ .mat-mdc-row,
99
+ .mdc-data-table__content {
100
+ -moz-osx-font-smoothing: grayscale;
101
+ -webkit-font-smoothing: antialiased;
102
+ font-family: var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));
103
+ line-height: var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));
104
+ font-size: var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));
105
+ font-weight: var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight));
106
+ }
107
+
108
+ .mat-mdc-footer-row {
109
+ -moz-osx-font-smoothing: grayscale;
110
+ -webkit-font-smoothing: antialiased;
111
+ height: var(--mat-table-footer-container-height, 52px);
112
+ color: var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
113
+ font-family: var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));
114
+ line-height: var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));
115
+ font-size: var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));
116
+ font-weight: var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));
117
+ letter-spacing: var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking));
118
+ }
119
+
120
+ .mat-mdc-header-cell {
121
+ border-bottom-color: var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));
122
+ border-bottom-width: var(--mat-table-row-item-outline-width, 1px);
123
+ border-bottom-style: solid;
124
+ letter-spacing: var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));
125
+ font-weight: inherit;
126
+ line-height: inherit;
127
+ box-sizing: border-box;
128
+ text-overflow: ellipsis;
129
+ overflow: hidden;
130
+ outline: none;
131
+ text-align: start;
132
+ }
133
+ .mdc-data-table__row:last-child > .mat-mdc-header-cell {
134
+ border-bottom: none;
135
+ }
136
+
137
+ .mat-mdc-cell {
138
+ border-bottom-color: var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));
139
+ border-bottom-width: var(--mat-table-row-item-outline-width, 1px);
140
+ border-bottom-style: solid;
141
+ letter-spacing: var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));
142
+ line-height: inherit;
143
+ }
144
+ .mdc-data-table__row:last-child > .mat-mdc-cell {
145
+ border-bottom: none;
146
+ }
147
+
148
+ .mat-mdc-footer-cell {
149
+ letter-spacing: var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));
150
+ }
151
+
152
+ mat-row.mat-mdc-row,
153
+ mat-header-row.mat-mdc-header-row,
154
+ mat-footer-row.mat-mdc-footer-row {
155
+ border-bottom: none;
156
+ }
157
+
158
+ .mat-mdc-table tbody,
159
+ .mat-mdc-table tfoot,
160
+ .mat-mdc-table thead,
161
+ .mat-mdc-cell,
162
+ .mat-mdc-footer-cell,
163
+ .mat-mdc-header-row,
164
+ .mat-mdc-row,
165
+ .mat-mdc-footer-row,
166
+ .mat-mdc-table .mat-mdc-header-cell {
167
+ background: inherit;
168
+ }
169
+
170
+ .mat-mdc-table mat-header-row.mat-mdc-header-row,
171
+ .mat-mdc-table mat-row.mat-mdc-row,
172
+ .mat-mdc-table mat-footer-row.mat-mdc-footer-cell {
173
+ height: unset;
174
+ }
175
+
176
+ mat-header-cell.mat-mdc-header-cell,
177
+ mat-cell.mat-mdc-cell,
178
+ mat-footer-cell.mat-mdc-footer-cell {
179
+ align-self: stretch;
180
+ }
181
+ `],encapsulation:2,changeDetection:1})}return i})(),Ri=(()=>{class i extends Ue{static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275dir=nw({type:i,selectors:[["","matCellDef",""]],features:[LT([{provide:Ue,useExisting:i}]),Sh]})}return i})(),ki=(()=>{class i extends $e{static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275dir=nw({type:i,selectors:[["","matHeaderCellDef",""]],features:[LT([{provide:$e,useExisting:i}]),Sh]})}return i})();var xi=(()=>{class i extends Y{get name(){return this._name}set name(e){this._setNameInput(e);}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275dir=nw({type:i,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[LT([{provide:Y,useExisting:i}]),Sh]})}return i})(),Mi=(()=>{class i extends bi{static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275dir=nw({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[Sh]})}return i})();var Ge=(()=>{class i extends Di{static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275dir=nw({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[Sh]})}return i})();var Ti=(()=>{class i extends Me{static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275dir=nw({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Zj]},features:[LT([{provide:Me,useExisting:i}]),Sh]})}return i})();var Oi=(()=>{class i extends Qe{static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275dir=nw({type:i,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[LT([{provide:Qe,useExisting:i}]),Sh]})}return i})(),Ii=(()=>{class i extends nt{static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275cmp=JD({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[LT([{provide:nt,useExisting:i}]),Sh],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,n){t&1&&Wh(0,0);},dependencies:[ae],encapsulation:2,changeDetection:1})}return i})();var Fi=(()=>{class i extends ot{static \u0275fac=(()=>{let e;return function(n){return (e||(e=Sv(i)))(n||i)}})();static \u0275cmp=JD({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[LT([{provide:ot,useExisting:i}]),Sh],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,n){t&1&&Wh(0,0);},dependencies:[ae],encapsulation:2,changeDetection:1})}return i})(),Pi=(()=>{class i extends We{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell");}static \u0275fac=function(t){return new(t||i)};static \u0275dir=nw({type:i,selectors:[["ng-template","matNoDataRow",""]],features:[LT([{provide:We,useExisting:i}]),Sh]})}return i})();var Ei=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=bh({type:i});static \u0275inj=Qs({imports:[vi,Fn$1]})}return i})(),Ji=9007199254740991,qe=class extends Xt{_data;_renderData=new Bn$1([]);_filter=new Bn$1("");_internalPageChanges=new te;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(o){o=Array.isArray(o)?o:[],this._data.next(o),this._renderChangesSubscription||this._filterData(o);}get filter(){return this._filter.value}set filter(o){this._filter.next(o),this._renderChangesSubscription||this._filterData(this.data);}get sort(){return this._sort}set sort(o){this._sort=o,this._updateChangeSubscription();}_sort;get paginator(){return this._paginator}set paginator(o){this._paginator=o,this._updateChangeSubscription();}_paginator;sortingDataAccessor=(o,e)=>{let t=o[e];if(Io(t)){let n=Number(t);return n<Ji?n:t}return t};sortData=(o,e)=>{let t=e.active,n=e.direction;return !t||n==""?o:o.sort((a,r)=>{let l=this.sortingDataAccessor(a,t),u=this.sortingDataAccessor(r,t),p=typeof l,g=typeof u;p!==g&&(p==="number"&&(l+=""),g==="number"&&(u+=""));let w=0;return l!=null&&u!=null?l>u?w=1:l<u&&(w=-1):l!=null?w=1:u!=null&&(w=-1),w*(n=="asc"?1:-1)})};filterPredicate=(o,e)=>{let t=e.trim().toLowerCase();return Object.values(o).some(n=>`${n}`.toLowerCase().includes(t))};constructor(o=[]){super(),this._data=new Bn$1(o),this._updateChangeSubscription();}_updateChangeSubscription(){let o=this._sort?zm(this._sort.sortChange,this._sort.initialized):Tm(null),e=this._paginator?zm(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Tm(null),t=this._data,n=Fm([t,this._filter]).pipe(ke(([l])=>this._filterData(l))),a=Fm([n,o]).pipe(ke(([l])=>this._orderData(l))),r=Fm([a,e]).pipe(ke(([l])=>this._pageData(l)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=r.subscribe(l=>this._renderData.next(l));}_filterData(o){return this.filteredData=this.filter==null||this.filter===""?o:o.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(o){return this.sort?this.sortData(o.slice(),this.sort):o}_pageData(o){if(!this.paginator)return o;let e=this.paginator.pageIndex*this.paginator.pageSize;return o.slice(e,e+this.paginator.pageSize)}_updatePaginator(o){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=o,e.pageIndex>0)){let t=Math.ceil(e.length/e.pageSize)-1||0,n=Math.min(e.pageIndex,t);n!==e.pageIndex&&(e.pageIndex=n,this._internalPageChanges.next());}});}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null;}};function tn(i,o){if(i&1&&(Pi$1(0,"mat-option",17),TT(1),ul()),i&2){let e=o.$implicit;Bh("value",e),EE(),gl(" ",e," ");}}function nn(i,o){if(i&1){let e=Fw();Pi$1(0,"mat-form-field",14)(1,"mat-select",16,0),Qh("selectionChange",function(n){ud(e);let a=qw(2);return dd(a._changePageSize(n.value))}),xw(3,tn,2,2,"mat-option",17,Nw),ul(),Pi$1(5,"div",18),Qh("click",function(){ud(e);let n=Jw(2);return dd(n.open())}),ul()();}if(i&2){let e=qw(2);Bh("appearance",e._formFieldAppearance)("color",e.color),EE(),Bh("value",e.pageSize)("disabled",e.disabled),Vh("aria-labelledby",e._pageSizeLabelId),Bh("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),EE(2),Aw(e._displayedPageSizeOptions);}}function on(i,o){if(i&1&&(Pi$1(0,"div",15),TT(1),ul()),i&2){let e=qw(2);EE(),gg(e.pageSize);}}function an(i,o){if(i&1&&(Pi$1(0,"div",3)(1,"div",13),TT(2),ul(),_w(3,nn,6,7,"mat-form-field",14),_w(4,on,2,1,"div",15),ul()),i&2){let e=qw();EE(),Hh("id",e._pageSizeLabelId),EE(),gl(" ",e._intl.itemsPerPageLabel," "),EE(),Mw(e._displayedPageSizeOptions.length>1?3:-1),EE(),Mw(e._displayedPageSizeOptions.length<=1?4:-1);}}function rn(i,o){if(i&1){let e=Fw();Pi$1(0,"button",19),Qh("click",function(){ud(e);let n=qw();return dd(n._buttonClicked(0,n._previousButtonsDisabled()))}),wd(),Pi$1(1,"svg",8),$h(2,"path",20),ul()();}if(i&2){let e=qw();Bh("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),Hh("aria-label",e._intl.firstPageLabel);}}function sn(i,o){if(i&1){let e=Fw();Pi$1(0,"button",21),Qh("click",function(){ud(e);let n=qw();return dd(n._buttonClicked(n.getNumberOfPages()-1,n._nextButtonsDisabled()))}),wd(),Pi$1(1,"svg",8),$h(2,"path",22),ul()();}if(i&2){let e=qw();Bh("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),Hh("aria-label",e._intl.lastPageLabel);}}var ln=(()=>{class i{changes=new te;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,t,n)=>{if(n==0||t==0)return `0 of ${n}`;n=Math.max(n,0);let a=e*t,r=a<n?Math.min(a+t,n):a+t;return `${a+1} \u2013 ${r} of ${n}`};static \u0275fac=function(t){return new(t||i)};static \u0275prov=Pr({token:i,factory:i.\u0275fac})}return i})(),cn=50;var dn=new N("MAT_PAGINATOR_DEFAULT_OPTIONS"),ye=(()=>{class i{_intl=w(ln);_changeDetectorRef=w(Gj);_formFieldAppearance;_pageSizeLabelId=w(Mr).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=false;_initializedStream=new $n(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck();}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck();}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions();}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Yj(t,0)),this._updateDisplayedPageSizeOptions();}_pageSizeOptions=[];hidePageSize=false;showFirstLastButtons=false;selectConfig={};disabled=false;page=new Qe$1;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,t=w(dn,{optional:true});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),t){let{pageSize:n,pageSizeOptions:a,hidePageSize:r,showFirstLastButtons:l}=t;n!=null&&(this._pageSize=n),a!=null&&(this._pageSizeOptions=a),r!=null&&(this.hidePageSize=r),l!=null&&(this.showFirstLastButtons=l);}this._formFieldAppearance=t?.formFieldAppearance||"outline";}ngOnInit(){this._isInitialized=true,this._updateDisplayedPageSizeOptions(),this._initializedStream.next();}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe();}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1);}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1);}firstPage(){this.hasPreviousPage()&&this._navigate(0);}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1);}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndex<e&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){let t=this.pageIndex*this.pageSize,n=this.pageIndex;this.pageIndex=Math.floor(t/e)||0,this.pageSize=e,this._emitPageEvent(n);}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:cn),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,t)=>e-t),this._changeDetectorRef.markForCheck());}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length});}_navigate(e){let t=this.pageIndex;e!==t&&(this.pageIndex=e,this._emitPageEvent(t));}_buttonClicked(e,t){t||this._navigate(e);}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=JD({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",Yj],length:[2,"length","length",Yj],pageSize:[2,"pageSize","pageSize",Yj],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",Zj],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",Zj],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",Zj]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,n){t&1&&(Pi$1(0,"div",1)(1,"div",2),_w(2,an,5,4,"div",3),Pi$1(3,"div",4)(4,"div",5),TT(5),ul(),_w(6,rn,3,5,"button",6),Pi$1(7,"button",7),Qh("click",function(){return n._buttonClicked(n.pageIndex-1,n._previousButtonsDisabled())}),wd(),Pi$1(8,"svg",8),$h(9,"path",9),ul()(),Td(),Pi$1(10,"button",10),Qh("click",function(){return n._buttonClicked(n.pageIndex+1,n._nextButtonsDisabled())}),wd(),Pi$1(11,"svg",8),$h(12,"path",11),ul()(),_w(13,sn,3,5,"button",12),ul()()()),t&2&&(EE(2),Mw(n.hidePageSize?-1:2),EE(3),gl(" ",n._intl.getRangeLabel(n.pageIndex,n.pageSize,n.length)," "),EE(),Mw(n.showFirstLastButtons?6:-1),EE(),Bh("matTooltip",n._intl.previousPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("disabled",n._previousButtonsDisabled())("tabindex",n._previousButtonsDisabled()?-1:null),Hh("aria-label",n._intl.previousPageLabel),EE(3),Bh("matTooltip",n._intl.nextPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("disabled",n._nextButtonsDisabled())("tabindex",n._nextButtonsDisabled()?-1:null),Hh("aria-label",n._intl.nextPageLabel),EE(3),Mw(n.showFirstLastButtons?13:-1));},dependencies:[rt$1,Ft,F,eu$1,mt],styles:[`.mat-mdc-paginator {
182
+ display: block;
183
+ -moz-osx-font-smoothing: grayscale;
184
+ -webkit-font-smoothing: antialiased;
185
+ color: var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));
186
+ background-color: var(--mat-paginator-container-background-color, var(--mat-sys-surface));
187
+ font-family: var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));
188
+ line-height: var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));
189
+ font-size: var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));
190
+ font-weight: var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));
191
+ letter-spacing: var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));
192
+ --mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);
193
+ --mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px);
194
+ }
195
+ .mat-mdc-paginator .mat-mdc-select-value {
196
+ font-size: var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size));
197
+ }
198
+ .mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper {
199
+ display: none;
200
+ }
201
+ .mat-mdc-paginator .mat-mdc-select {
202
+ line-height: 1.5;
203
+ }
204
+
205
+ .mat-mdc-paginator-outer-container {
206
+ display: flex;
207
+ }
208
+
209
+ .mat-mdc-paginator-container {
210
+ display: flex;
211
+ align-items: center;
212
+ justify-content: flex-end;
213
+ padding: 0 8px;
214
+ flex-wrap: wrap;
215
+ width: 100%;
216
+ min-height: var(--mat-paginator-container-size, 56px);
217
+ }
218
+
219
+ .mat-mdc-paginator-page-size {
220
+ display: flex;
221
+ align-items: baseline;
222
+ margin-right: 8px;
223
+ }
224
+ [dir=rtl] .mat-mdc-paginator-page-size {
225
+ margin-right: 0;
226
+ margin-left: 8px;
227
+ }
228
+
229
+ .mat-mdc-paginator-page-size-label {
230
+ margin: 0 4px;
231
+ }
232
+
233
+ .mat-mdc-paginator-page-size-select {
234
+ margin: 0 4px;
235
+ width: var(--mat-paginator-page-size-select-width, 84px);
236
+ }
237
+
238
+ .mat-mdc-paginator-range-label {
239
+ margin: 0 32px 0 24px;
240
+ }
241
+
242
+ .mat-mdc-paginator-range-actions {
243
+ display: flex;
244
+ align-items: center;
245
+ }
246
+
247
+ .mat-mdc-paginator-icon {
248
+ display: inline-block;
249
+ width: 28px;
250
+ fill: var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant));
251
+ }
252
+ .mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon {
253
+ fill: var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
254
+ }
255
+ [dir=rtl] .mat-mdc-paginator-icon {
256
+ transform: rotate(180deg);
257
+ }
258
+
259
+ @media (forced-colors: active) {
260
+ .mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,
261
+ .mat-mdc-paginator-icon {
262
+ fill: currentColor;
263
+ }
264
+ .mat-mdc-paginator-range-actions .mat-mdc-icon-button {
265
+ outline: solid 1px;
266
+ }
267
+ .mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled] {
268
+ color: GrayText;
269
+ }
270
+ }
271
+ .mat-mdc-paginator-touch-target {
272
+ display: var(--mat-paginator-touch-target-display, block);
273
+ position: absolute;
274
+ top: 50%;
275
+ left: 50%;
276
+ width: var(--mat-paginator-page-size-select-width, 84px);
277
+ height: var(--mat-paginator-page-size-select-touch-target-height, 48px);
278
+ background-color: transparent;
279
+ transform: translate(-50%, -50%);
280
+ cursor: pointer;
281
+ }
282
+ `],encapsulation:2})}return i})(),zi=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=bh({type:i});static \u0275inj=Qs({imports:[Op,Lt,zt,ye]})}return i})();var un=["*",[["","matSortHeaderIcon",""]]],fn=["*","[matSortHeaderIcon]"];function hn(i,o){i&1&&(wd(),dl(0,"svg",3),Uh(1,"path",4),fl());}function pn(i,o){i&1&&(dl(0,"div",2),zw(1,1,null,hn,2,0),fl());}var Ni=new N("MAT_SORT_DEFAULT_OPTIONS"),we=(()=>{class i{_defaultOptions;_initializedStream=new $n(1);sortables=new Map;_stateChanges=new te;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e;}_direction="";disableClear;disabled=false;sortChange=new Qe$1;initialized=this._initializedStream;constructor(e){this._defaultOptions=e;}register(e){this.sortables.set(e.id,e);}deregister(e){this.sortables.delete(e.id);}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction});}getNextSortDirection(e){if(!e)return "";let t=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,n=gn(e.start||this.start,t),a=n.indexOf(this.direction)+1;return a>=n.length&&(a=0),n[a]}ngOnInit(){this._initializedStream.next();}ngOnChanges(){this._stateChanges.next();}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete();}static \u0275fac=function(t){return new(t||i)(Ur(Ni,8))};static \u0275dir=nw({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",Zj],disabled:[2,"matSortDisabled","disabled",Zj]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[lv]})}return i})();function gn(i,o){let e=["asc","desc"];return i=="desc"&&e.reverse(),o||e.push(""),e}var Ai=(()=>{class i{_sort=w(we,{optional:true});_columnDef=w(Y,{optional:true});_changeDetectorRef=w(Gj);_focusMonitor=w(Dn$1);_elementRef=w(Lr);_ariaDescriber=w(dh,{optional:true});_renderChanges;_animationsDisabled=ot$1();_recentlyCleared=vt(null);_sortButton;id;arrowPosition="after";start;disabled=false;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e);}_sortActionDescription="Sort";disableClear;constructor(){w(Ce).load(oa);let e=w(Ni,{optional:true});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition);}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=zm(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription);}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null));});}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription);}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),t=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?t:null);}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction());}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return !this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e;}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=JD({type:i,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,n){t&1&&Qh("click",function(){return n._toggleOnInteraction()})("keydown",function(r){return n._handleKeydown(r)})("mouseleave",function(){return n._recentlyCleared.set(null)}),t&2&&(Hh("aria-sort",n._getAriaSortAttribute()),sg("mat-sort-header-disabled",n._isDisabled()));},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",Zj],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",Zj]},exportAs:["matSortHeader"],ngContentSelectors:fn,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(t,n){t&1&&(Gw(un),dl(0,"div",0)(1,"div",1),zw(2),fl(),_w(3,pn,3,0,"div",2),fl()),t&2&&(sg("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before",n.arrowPosition==="before")("mat-sort-header-descending",n._sort.direction==="desc")("mat-sort-header-ascending",n._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",n._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",n._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",n._animationsDisabled),Hh("tabindex",n._isDisabled()?null:0)("role",n._isDisabled()?null:"button"),EE(3),Mw(n._renderArrow()?3:-1));},styles:[`.mat-sort-header {
283
+ cursor: pointer;
284
+ }
285
+
286
+ .mat-sort-header-disabled {
287
+ cursor: default;
288
+ }
289
+
290
+ .mat-sort-header-container {
291
+ display: flex;
292
+ align-items: center;
293
+ letter-spacing: normal;
294
+ outline: 0;
295
+ }
296
+ [mat-sort-header].cdk-keyboard-focused .mat-sort-header-container, [mat-sort-header].cdk-program-focused .mat-sort-header-container {
297
+ border-bottom: solid 1px currentColor;
298
+ }
299
+ .mat-sort-header-container::before {
300
+ margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1);
301
+ }
302
+
303
+ .mat-sort-header-content {
304
+ display: flex;
305
+ align-items: center;
306
+ }
307
+
308
+ .mat-sort-header-position-before {
309
+ flex-direction: row-reverse;
310
+ }
311
+
312
+ @keyframes _mat-sort-header-recently-cleared-ascending {
313
+ from {
314
+ transform: translateY(0);
315
+ opacity: 1;
316
+ }
317
+ to {
318
+ transform: translateY(-25%);
319
+ opacity: 0;
320
+ }
321
+ }
322
+ @keyframes _mat-sort-header-recently-cleared-descending {
323
+ from {
324
+ transform: translateY(0) rotate(180deg);
325
+ opacity: 1;
326
+ }
327
+ to {
328
+ transform: translateY(25%) rotate(180deg);
329
+ opacity: 0;
330
+ }
331
+ }
332
+ .mat-sort-header-arrow {
333
+ height: 12px;
334
+ width: 12px;
335
+ position: relative;
336
+ transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1), opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);
337
+ opacity: 0;
338
+ overflow: visible;
339
+ color: var(--mat-sort-arrow-color, var(--mat-sys-on-surface));
340
+ }
341
+ .mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow, .mat-sort-header.cdk-program-focused .mat-sort-header-arrow, .mat-sort-header:hover .mat-sort-header-arrow {
342
+ opacity: 0.54;
343
+ }
344
+ .mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow {
345
+ opacity: 1;
346
+ }
347
+ .mat-sort-header-descending .mat-sort-header-arrow {
348
+ transform: rotate(180deg);
349
+ }
350
+ .mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow {
351
+ transform: translateY(-25%);
352
+ }
353
+ .mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow {
354
+ transition: none;
355
+ animation: _mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
356
+ }
357
+ .mat-sort-header-recently-cleared-descending .mat-sort-header-arrow {
358
+ transition: none;
359
+ animation: _mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
360
+ }
361
+ .mat-sort-header-animations-disabled .mat-sort-header-arrow {
362
+ transition-duration: 0ms;
363
+ animation-duration: 0ms;
364
+ }
365
+ .mat-sort-header-arrow > svg, .mat-sort-header-arrow [matSortHeaderIcon] {
366
+ width: 24px;
367
+ height: 24px;
368
+ fill: currentColor;
369
+ position: absolute;
370
+ top: 50%;
371
+ left: 50%;
372
+ margin: -12px 0 0 -12px;
373
+ transform: translateZ(0);
374
+ }
375
+ .mat-sort-header-arrow, [dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow {
376
+ margin: 0 0 0 6px;
377
+ }
378
+ .mat-sort-header-position-before .mat-sort-header-arrow, [dir=rtl] .mat-sort-header-arrow {
379
+ margin: 0 6px 0 0;
380
+ }
381
+ `],encapsulation:2})}return i})(),Bi=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=bh({type:i});static \u0275inj=Qs({imports:[Fn$1]})}return i})();function wn(i,o){i&1&&(Pi$1(0,"span",3),TT(1,"Boolean"),ul());}function Cn(i,o){i&1&&(Pi$1(0,"span",3),TT(1,"String"),ul());}function bn(i,o){i&1&&(Pi$1(0,"span",3),TT(1,"String"),ul());}function Dn(i,o){i&1&&(Pi$1(0,"span",3),TT(1,"Object"),ul());}function vn(i,o){if(i&1){let e=Fw();Pi$1(0,"button",5),Qh("click",function(){ud(e);let n=qw();return dd(n.openDialog())}),TT(1),ul();}if(i&2){let e=qw();EE(),gg(e.selectedUnit);}}function Sn(i,o){if(i&1&&(Pi$1(0,"mat-option",6),TT(1),ul()),i&2){let e=o.$implicit;Bh("value",e.measure),EE(),gl(" ",e.measure," ");}}function Rn(i,o){if(i&1&&(Pi$1(0,"mat-optgroup",3),xw(1,Sn,2,2,"mat-option",6,Nw),ul()),i&2){let e=o.$implicit;Bh("label",e.group),EE(),Aw(e.units);}}var Hi=(()=>{class i{_units=w(ut);_dialog=w(ee);cdr=w(Gj);path=Hj.required();source=Hj(void 0);pathValue=Hj(void 0);type=Hj.required();units=null;selectedUnit="unitless";ngOnInit(){let e=this._units.getConversionsForPath(this.path());this.units=e,this.selectedUnit=e.base;}convertValue(e,t){return t==="number"?this._units.convertToUnit(this.selectedUnit,e):e}openDialog(){this._dialog.open(kn,{data:{selectedUnit:this.selectedUnit,units:this.units}}).afterClosed().subscribe(t=>{t&&(this.selectedUnit=t,this.cdr.markForCheck());});}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=JD({type:i,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(t,n){if(t&1&&(Pi$1(0,"mat-cell",0),TT(1),ul(),Pi$1(2,"mat-cell",1),TT(3),ul(),Pi$1(4,"mat-cell",2),_w(5,wn,2,0,"span",3)(6,Cn,2,0,"span",3)(7,bn,2,0,"span",3)(8,Dn,2,0,"span",3)(9,vn,2,1,"button",4),ul()),t&2){let a;EE(),gg(n.source()),EE(2),gg(n.convertValue(n.pathValue(),n.type())),EE(2),Mw((a=n.type())==="boolean"?5:a==="string"?6:a==="Date"?7:a==="object"?8:9);}},dependencies:[Ge,Op,xp],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)}
382
+ `],encapsulation:2})}return i})(),kn=(()=>{class i{dialogRef=w(O$1);data=w($e$1);selectedUnit=null;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=JD({type:i,selectors:[["dialog-unit-selector"]],decls:14,vars:2,consts:[["mat-dialog-title",""],["appearance","outline","floatLabel","always",2,"padding-top","15px","padding-bottom","15px"],[3,"valueChange","value"],[3,"label"],["mat-flat-button","","mat-dialog-close",""],["mat-flat-button","",3,"mat-dialog-close"],[3,"value"]],template:function(t,n){t&1&&(Pi$1(0,"h2",0),TT(1,"Select Unit type"),ul(),Pi$1(2,"mat-dialog-content")(3,"mat-form-field",1)(4,"mat-label"),TT(5,"Unit"),ul(),Pi$1(6,"mat-select",2),Eg("valueChange",function(r){return ST(n.data.selectedUnit,r)||(n.data.selectedUnit=r),r}),xw(7,Rn,3,1,"mat-optgroup",3,Nw),ul()()(),Pi$1(9,"mat-dialog-actions")(10,"button",4),TT(11,"Cancel"),ul(),Pi$1(12,"button",5),TT(13,"Ok"),ul()()),t&2&&(EE(6),Ig("value",n.data.selectedUnit),EE(),Aw(n.data.units.conversions),EE(5),Bh("mat-dialog-close",n.data.selectedUnit));},dependencies:[Nt,Vt,rt$1,ae$1,Ft,pt,F,zt$1,Op,xp,jt$1],encapsulation:2})}return i})();var dt=class{_document;_textarea;constructor(o,e){this._document=e;let t=this._textarea=this._document.createElement("textarea"),n=t.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",t.setAttribute("aria-hidden","true"),t.value=o,t.readOnly=true,(this._document.fullscreenElement||this._document.body).appendChild(t);}copy(){let o=this._textarea,e=false;try{if(o){let t=this._document.activeElement;o.select(),o.setSelectionRange(0,o.value.length),e=this._document.execCommand("copy"),t&&t.focus();}}catch(t){}return e}destroy(){let o=this._textarea;o&&(o.remove(),this._textarea=void 0);}},Li=(()=>{class i{_document=w(gr);copy(e){let t=this.beginCopy(e),n=t.copy();return t.destroy(),n}beginCopy(e){return new dt(e,this._document)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Pr({token:i,factory:i.\u0275fac})}return i})();var xn=(i,o)=>o.key;function Mn(i,o){i&1&&(Pi$1(0,"mat-header-cell",19),TT(1," Path "),ul());}function Tn(i,o){if(i&1){let e=Fw();Pi$1(0,"mat-cell",20),TT(1),Pi$1(2,"button",21),Qh("click",function(n){let a=ud(e).$implicit,r=qw();return dd(r.copyPath(a.path,n))}),Pi$1(3,"mat-icon"),TT(4,"content_copy"),ul()()();}if(i&2){let e=o.$implicit;EE(),gl(" ",e.path," ");}}function On(i,o){i&1&&(Pi$1(0,"mat-header-cell",22),TT(1," PUT Support "),ul());}function In(i,o){i&1&&(Pi$1(0,"mat-icon",24),TT(1,"check_circle"),ul());}function Fn(i,o){if(i&1&&(Pi$1(0,"mat-cell",23),_w(1,In,2,0,"mat-icon",24),ul()),i&2){let e=o.$implicit;EE(),Mw(e.supportsPut?1:-1);}}function Pn(i,o){i&1&&(Pi$1(0,"mat-header-cell",25),TT(1," Source "),ul());}function En(i,o){if(i&1&&$h(0,"data-inspector-row",28),i&2){let e=o.$implicit,t=qw().$implicit;Bh("path",t.path)("source",e.key)("pathValue",e.value)("type",t.type);}}function zn(i,o){if(i&1&&(Pi$1(0,"mat-cell",26)(1,"div",27),xw(2,En,1,4,"data-inspector-row",28,xn),ul()()),i&2){let e=o.$implicit;EE(2),Aw(e.sourceRows);}}function Nn(i,o){i&1&&$h(0,"mat-header-row",29);}function An(i,o){i&1&&$h(0,"mat-row",30);}function Bn(i,o){if(i&1&&(Pi$1(0,"tr",31)(1,"td",32),TT(2),ul()()),i&2){qw();let e=Jw(6);EE(2),gl('No data matching the filter "',e.value,'"');}}var Wa=(()=>{class i{dataService=w(De);destroyRef=w(xe$1);cdr=w(Gj);_responsive=w(ir);clipboard=w(Li);toast=w(lt$1);isPhonePortrait;filterSubject=new te;paginator=$j.required(ye);sort=$j.required(we);pageTitle="Data Inspector";pageSize=25;hidePageSize=false;showFirstLastButtons=true;showPageSizeOptions=[5,10,25,100];tableData=new qe([]);displayedColumns=["path","supportsPut","defaultSource"];constructor(){this.filterSubject.pipe(Wl(350)).pipe(Gp(this.destroyRef)).subscribe(e=>{this.tableData.filter=e.trim().toLowerCase(),this.tableData.paginator&&this.tableData.paginator.firstPage();}),this.isPhonePortrait=Wp(this._responsive.observe(Em.HandsetPortrait),{initialValue:{matches:false,breakpoints:{}}}),Fa(()=>{this.isPhonePortrait().matches?(this.hidePageSize=true,this.showFirstLastButtons=false,this.showPageSizeOptions=[]):(this.hidePageSize=false,this.showFirstLastButtons=true,this.showPageSizeOptions=[5,10,25,100]);});}ngAfterViewInit(){this.dataService.startSkDataFullTree().pipe(eu(500,Z,{leading:true,trailing:true}),ke(e=>e.filter(t=>Object.keys(t.sources||{}).length>0).map(t=>this.toViewRow(t))),Gp(this.destroyRef)).subscribe(e=>{this.tableData.data=e,this.cdr.markForCheck();}),this.tableData.paginator=this.paginator(),this.tableData.sort=this.sort(),this.tableData.sortingDataAccessor=(e,t)=>{switch(t){case "supportsPut":return e.supportsPut?1:0;case "defaultSource":return e.sourceRows[0]?.key??"";case "path":return e.path;default:return ""}};}applyFilter(e){let t=e.target.value;this.filterSubject.next(t);}trackByPath(e,t){return `${t.path}`}copyPath(e,t){if(t?.stopPropagation(),!e)return;this.clipboard.copy(e)?this.toast.show("Path copied to clipboard",100,true,"success"):this.toast.show("Copy to clipboard failed",1500,false,"error");}toViewRow(e){return {path:e.path,type:e.type??"",supportsPut:e.meta?.supportsPut===true,sourceRows:Object.entries(e.sources??{}).map(([t,n])=>({key:t,value:this.snapshotSourceValue(n?.sourceValue)}))}}snapshotSourceValue(e){if(typeof e!="object"||e===null)return e;try{return JSON.stringify(e)}catch(t){return "[unserializable object]"}}ngOnDestroy(){this.filterSubject.complete(),this.dataService.stopSkDataFullTree();}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=JD({type:i,selectors:[["data-inspector"]],viewQuery:function(t,n){t&1&&eg(n.paginator,ye,5)(n.sort,we,5),t&2&&Kw(2);},decls:21,vars:10,consts:[["input",""],["svgIconId","troubleshoot",3,"pageTitle"],[1,"data-inspector-container"],[1,"filter-field"],["matInput","","placeholder","Type any part of the path, source or value...","value","",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"],["matIconButton","","matTooltip","Copy path",1,"copy-btn",3,"click"],["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(t,n){t&1&&($h(0,"page-header",1),Pi$1(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),TT(4,"Filter"),ul(),Pi$1(5,"input",4,0),Qh("keyup",function(r){return n.applyFilter(r)}),ul()(),Pi$1(7,"mat-table",5),pl(8,6),xh(9,Mn,2,0,"mat-header-cell",7)(10,Tn,5,1,"mat-cell",8),hl(),pl(11,9),xh(12,On,2,0,"mat-header-cell",10)(13,Fn,2,1,"mat-cell",11),hl(),pl(14,12),xh(15,Pn,2,0,"mat-header-cell",13)(16,zn,4,0,"mat-cell",14),hl(),xh(17,Nn,1,0,"mat-header-row",15)(18,An,1,0,"mat-row",16)(19,Bn,3,1,"tr",17),ul(),$h(20,"mat-paginator",18),ul()),t&2&&(Bh("pageTitle",n.pageTitle),EE(7),Bh("dataSource",n.tableData)("trackBy",n.trackByPath),EE(10),Bh("matHeaderRowDef",n.displayedColumns)("matHeaderRowDefSticky",true),EE(),Bh("matRowDefColumns",n.displayedColumns),EE(2),Bh("pageSize",n.pageSize)("pageSizeOptions",n.showPageSizeOptions)("hidePageSize",n.hidePageSize)("showFirstLastButtons",n.showFirstLastButtons));},dependencies:[ce,rt$1,ae$1,Ei,Si,ki,Ti,xi,Ri,Oi,Mi,Ge,Ii,Fi,Pi,ln$1,an$1,zi,ye,Bi,we,Ai,Hi,O,Op,eu$1,yt,wt,zt,mt],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:auto;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}.copy-btn[_ngcontent-%COMP%]{padding-left:10px;--mat-icon-button-icon-color: var(--mat-sys-outline)}.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 i})();export{Wa as DataInspectorComponent};
@@ -0,0 +1 @@
1
+ import {ad as Qe,w,a6 as Lr,ak as nw}from'./main-BAV5VDOD.js';var u=(()=>{class t{resizeChange=new Qe;kipResize=new Qe;el=w(Lr);ro=null;constructor(){this.ro=new ResizeObserver(i=>{let e=i[i.length-1],{width:c,height:h}=e.contentRect;this.resizeChange.emit(e),this.kipResize.emit({width:c,height:h,entry:e});}),this.ro.observe(this.el.nativeElement);}ngOnDestroy(){this.ro?.disconnect(),this.ro=null;}static \u0275fac=function(e){return new(e||t)};static \u0275dir=nw({type:t,selectors:[["","kipResizeObserver",""]],outputs:{resizeChange:"resizeChange",kipResize:"kipResize"}})}return t})();export{u};
@@ -0,0 +1 @@
1
+ import {d1 as Hj,w,du as p,dv as rt,aZ as F,$ as $j,v as vt,D as Dt,F as Fa,dn as ge,J as JD,cp as Uh,f as eg,K as Kw}from'./main-BAV5VDOD.js';import {c}from'./chunk-Dxlia2NE.js';var P=["canvasMainRef"],B=(()=>{class s{id=Hj.required();type=Hj.required();theme=Hj.required();runtime=w(p);streams=w(rt);canvas=w(F);canvasRef=$j.required("canvasMainRef");canvasElement=null;ctx=null;cssWidth=0;cssHeight=0;titleBitmap=null;titleBitmapText=null;titleBitmapColor=null;maxTextWidth=0;maxTextHeight=0;middle=0;center=0;fontSizeOffset=0;latPos="";longPos="";labelColor=vt("");valueColor="";normalizedConfig=Dt(()=>this.runtime.options()??s.DEFAULT_CONFIG);positionPaths=Dt(()=>this.normalizedConfig().paths??{});static DEFAULT_CONFIG={supportAutomaticHistoricalSeries:false,displayName:"Position",filterSelfPaths:true,paths:{longPath:{description:"Longitude",path:"self.navigation.position.longitude",source:"default",pathType:"number",isPathConfigurable:true,convertUnitTo:"longitudeMin",showPathSkUnitsFilter:true,pathSkUnitsFilter:null,sampleTime:500},latPath:{description:"Latitude",path:"self.navigation.position.latitude",source:"default",pathType:"number",isPathConfigurable:true,convertUnitTo:"latitudeMin",showPathSkUnitsFilter:true,pathSkUnitsFilter:null,sampleTime:500}},color:"contrast",enableTimeout:false,dataTimeout:5};constructor(){Fa(()=>{let e=this.normalizedConfig(),t=this.theme();t&&ge(()=>{let i=c(e.color??"contrast",t);this.labelColor.set(i.dim),this.valueColor=i.color,this.draw();});}),Fa(()=>{let e=this.positionPaths().longPath;e?.path&&ge(()=>this.streams.observe("longPath",t=>{let i=t?.data?.value;i==null?this.longPos="":e.convertUnitTo==="pdeg"?this.longPos=i.toFixed(6)+"\xB0":this.longPos=String(i),this.calculateFontSizeAndPositions(),this.draw();}));}),Fa(()=>{let e=this.positionPaths().latPath;e?.path&&ge(()=>this.streams.observe("latPath",t=>{let i=t?.data?.value;i==null?this.latPos="":e.convertUnitTo==="pdeg"?this.latPos=i.toFixed(7)+"\xB0":this.latPos=String(i),this.calculateFontSizeAndPositions(),this.draw();}));});}ngAfterViewInit(){this.canvasElement=this.canvasRef().nativeElement,this.ctx=this.canvasElement.getContext("2d"),this.canvas.registerCanvas(this.canvasElement,{autoRelease:true,onResize:(e,t)=>{this.cssWidth=e,this.cssHeight=t,this.calculateFontSizeAndPositions(),this.draw();}}),this.cssHeight=Math.round(this.canvasElement.getBoundingClientRect().height),this.cssWidth=Math.round(this.canvasElement.getBoundingClientRect().width),this.calculateFontSizeAndPositions(),this.draw();}calculateFontSizeAndPositions(){if(!this.cssWidth||!this.cssHeight)return;this.maxTextHeight=Math.floor(this.cssHeight*.6/2),this.maxTextWidth=Math.floor(this.cssWidth*.85),this.center=this.cssWidth/2,this.middle=this.cssHeight*.57;let e=this.latPos.length>this.longPos.length?this.latPos:this.longPos;if(this.ctx){let t=this.canvas.calculateOptimalFontSize(this.ctx,e,this.maxTextWidth,this.maxTextHeight,"bold");this.fontSizeOffset=Math.floor(t*5e-4);}}draw(){if(!this.ctx||!this.canvasElement)return;let t=this.normalizedConfig().displayName||"Position",i=this.labelColor();(!this.titleBitmap||this.titleBitmap.width!==this.canvasElement.width||this.titleBitmap.height!==this.canvasElement.height||this.titleBitmapText!==t||this.titleBitmapColor!==i)&&(this.titleBitmap=this.canvas.createTitleBitmap(t,i,"normal",this.cssWidth,this.cssHeight),this.titleBitmapText=t,this.titleBitmapColor=i),this.canvas.clearCanvas(this.ctx,this.cssWidth,this.cssHeight),this.titleBitmap&&this.titleBitmap.width>0&&this.titleBitmap.height>0&&this.ctx.drawImage(this.titleBitmap,0,0,this.cssWidth,this.cssHeight),this.canvas.drawText(this.ctx,this.latPos,this.center,this.middle-this.fontSizeOffset,this.maxTextWidth,this.maxTextHeight,"bold",this.valueColor,"center","bottom"),this.canvas.drawText(this.ctx,this.longPos,this.center,this.middle+this.fontSizeOffset,this.maxTextWidth,this.maxTextHeight,"bold",this.valueColor,"center","top");}ngOnDestroy(){try{this.canvasElement&&this.canvas.unregisterCanvas(this.canvasElement);}catch(e){}}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=JD({type:s,selectors:[["widget-position"]],viewQuery:function(t,i){t&1&&eg(i.canvasRef,P,5),t&2&&Kw();},inputs:{id:[1,"id"],type:[1,"type"],theme:[1,"theme"]},decls:2,vars:0,consts:[["canvasMainRef",""],[1,"position-canvas"]],template:function(t,i){t&1&&Uh(0,"canvas",1,0);},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:hidden}.position-canvas[_ngcontent-%COMP%]{display:block;width:100%!important;height:100%!important;min-height:1px}"]})}return s})();export{B as WidgetPositionComponent};
@@ -0,0 +1 @@
1
+ import {k}from'./chunk-BwOIef42.js';import {d1 as Hj,w,du as p,dv as rt,dD as _$1,bu as ut,v as vt,D as Dt,F as Fa,dn as ge,J as JD,c as $h,B as Bh,$ as $j,cn as wd,ci as dl,cp as Uh,cj as fl,X as xw,cs as Sw,T as TT,e as EE,an as Hh,d as ig,Y as Aw,bp as gl,aA as gg,f as eg,K as Kw,g as qw,dx as n$1}from'./main-BAV5VDOD.js';import {c}from'./chunk-Dxlia2NE.js';var O=["gaugeBarAnimate"];function Z(n,U){if(n&1&&(wd(),Uh(0,"rect",14)),n&2){let t=U.$implicit,a=qw();Hh("fill",t.color)("x",5+(t.from-a.gaugeMinValue())*a.scaleSliceValue())("width",(t.to-t.from)*a.scaleSliceValue());}}var _=(()=>{class n{gaugeBarAnimate=$j("gaugeBarAnimate");displayName=Hj.required();displayNameColor=Hj.required();dataValue=Hj.required();dataValueLabel=Hj.required();unitLabel=Hj.required();barColor=Hj.required();barColorGradient=Hj.required();barColorBackground=Hj.required();gaugeMinValue=Hj.required();gaugeMaxValue=Hj.required();highlights=Hj.required();scaleSliceValue=Dt(()=>{let t=this.gaugeMaxValue()-this.gaugeMinValue();return t!==0?195/t:0});newGaugeValue=vt(null);oldGaugeValue=vt(null);firstRenderApplied=false;scheduleRafId=null;constructor(){Fa(()=>{let t=this.gaugeMinValue(),a=this.dataValue();a==null&&(a=t);let e=(a-t)*this.scaleSliceValue();ge(()=>{let o=this.newGaugeValue();!this.firstRenderApplied||o===null?(this.oldGaugeValue.set(e),this.newGaugeValue.set(e),this.firstRenderApplied=true):(this.oldGaugeValue.set(o),this.newGaugeValue.set(e)),this.gaugeBarAnimate()?.nativeElement&&(this.scheduleRafId!==null&&cancelAnimationFrame(this.scheduleRafId),this.scheduleRafId=requestAnimationFrame(()=>{let r=this.gaugeBarAnimate();r?.nativeElement&&r.nativeElement.beginElement(),this.scheduleRafId=null;}));});});}ngOnDestroy(){this.scheduleRafId!==null&&(cancelAnimationFrame(this.scheduleRafId),this.scheduleRafId=null);}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=JD({type:n,selectors:[["svg-simple-linear-gauge"]],viewQuery:function(a,e){a&1&&eg(e.gaugeBarAnimate,O,5),a&2&&Kw();},inputs:{displayName:[1,"displayName"],displayNameColor:[1,"displayNameColor"],dataValue:[1,"dataValue"],dataValueLabel:[1,"dataValueLabel"],unitLabel:[1,"unitLabel"],barColor:[1,"barColor"],barColorGradient:[1,"barColorGradient"],barColorBackground:[1,"barColorBackground"],gaugeMinValue:[1,"gaugeMinValue"],gaugeMaxValue:[1,"gaugeMaxValue"],highlights:[1,"highlights"]},decls:26,vars:11,consts:[["gaugeBarAnimate",""],["viewBox","0 0 205 50","preserveAspectRatio","xMidYMid","version","1.1","id","svg8",1,"svg-simple-linear"],["id","defs2"],["id","gaugeBarGradient"],["id","stop849","offset","0",2,"stop-opacity","1"],["id","stop851","offset","0.40",2,"stop-opacity","0"],["id","linearGradient855","gradientTransform","translate(5,-30)","gradientUnits","userSpaceOnUse","y2","34.5","x2","-5","y1","34.5","x1","-6","href","#gaugeBarGradient"],["id","layer1",2,"display","inline"],["id","GaugeBackground","width","195","height","9","x","5","y","30","ry","0",2,"opacity","1","fill-opacity","1","stroke","none","stroke-width","0.265899","stroke-miterlimit","4","stroke-dasharray","none","stroke-opacity","1"],["id","gaugeBar"],["id","gaugeValue","width","1","height","9","x","0","y","0","ry","0",2,"mix-blend-mode","normal","fill-opacity","1","stroke","none"],["id","gaugeValueGradient","transform","scale(-1,1)","width","1","height","9","x","-1","y","0","ry","0",2,"display","inline","opacity","1","mix-blend-mode","multiply","fill","url(#linearGradient855)","stroke","none"],[0,"xlink","href","#gaugeBar","transform","translate(5,30)"],["attributeName","transform","type","scale","begin","indefinite","dur","0.5s","additive","sum","fill","freeze"],["y","39.5","height","0.75","ry","0",2,"opacity","1","fill-opacity","1","stroke","none","stroke-width","0.265899","stroke-miterlimit","4","stroke-dasharray","none","stroke-opacity","1"],["id","layer2",2,"display","inline"],[0,"xml","space","preserve","x","4.1731763","y","25.413595","id","displayNameText",2,"font-style","normal","font-variant","normal","font-weight","bold","font-stretch","normal","font-size","12.7px","line-height","1.25","font-family","Roboto","font-variant-ligatures","normal","font-variant-caps","normal","font-variant-numeric","normal","font-variant-east-asian","normal","letter-spacing","0px","word-spacing","0px"],["id","tspan1945","x","4.1731763","y","25.413595",2,"font-style","normal","font-variant","normal","font-weight","bold","font-stretch","normal","font-size","12.7px","font-family","Roboto","font-variant-ligatures","normal","font-variant-caps","normal","font-variant-numeric","normal","font-variant-east-asian","normal"],["text-anchor","end","id","gaugeTexts","y","25.293016","x","200.37138",0,"xml","space","preserve",1,"simpleLinear-text",2,"font-style","normal","font-variant","normal","font-weight","bold","font-stretch","normal","font-size","22.5778px","line-height","1.25","font-family","Roboto","font-variant-ligatures","normal","font-variant-caps","normal","font-variant-numeric","normal","font-variant-east-asian","normal","letter-spacing","0px","word-spacing","0px"],["y","25.293016","x","200.37138","id","valueText",2,"font-style","normal","font-variant","normal","font-weight","bold","font-stretch","normal","font-size","22.5778px","font-family","Roboto","font-variant-ligatures","normal","font-variant-caps","normal","font-variant-numeric","normal","font-variant-east-asian","normal"],["dy","-9","id","unitText",2,"text-transform","capitalize","font-size","9.87778px"]],template:function(a,e){a&1&&(wd(),dl(0,"svg",1)(1,"defs",2)(2,"linearGradient",3),Uh(3,"stop",4)(4,"stop",5),fl(),Uh(5,"linearGradient",6),fl(),dl(6,"g",7),Uh(7,"rect",8),dl(8,"defs")(9,"g",9),Uh(10,"rect",10)(11,"rect",11),fl()(),dl(12,"use",12),Uh(13,"animateTransform",13,0),fl(),xw(15,Z,1,3,":svg:rect",14,Sw),fl(),dl(17,"g",15)(18,"text",16)(19,"tspan",17),TT(20),fl()(),dl(21,"text",18)(22,"tspan",19),TT(23),fl(),dl(24,"tspan",20),TT(25),fl()()()()),a&2&&(EE(3),Hh("stop-color",e.barColorGradient()),EE(),Hh("stop-color",e.barColorGradient()),EE(3),Hh("fill",e.barColorBackground()),EE(5),ig("fill",e.barColor()),EE(),Hh("from",e.oldGaugeValue()+" 1")("to",e.newGaugeValue()+" 1"),EE(2),Aw(e.highlights()),EE(4),Hh("fill",e.displayNameColor()),EE(),gl(" ",e.displayName()),EE(3),gg(e.dataValueLabel()),EE(2),gg(e.unitLabel()));},styles:["svg[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;left:0;top:0}.simpleLinear-text[_ngcontent-%COMP%]{fill:var(--kip-contrast-color)}"]})}return n})();var oe=(()=>{class n{id=Hj.required();type=Hj.required();theme=Hj.required();static DEFAULT_CONFIG={supportAutomaticHistoricalSeries:true,displayName:"Gauge Label",filterSelfPaths:true,paths:{gaugePath:{description:"Numeric Data",path:null,source:null,pathType:"number",isPathConfigurable:true,showPathSkUnitsFilter:true,pathSkUnitsFilter:"V",convertUnitTo:"V",sampleTime:500}},displayScale:{lower:0,upper:15,type:"linear"},gauge:{type:"simpleLinear",unitLabelFormat:"full"},numInt:1,numDecimal:2,ignoreZones:false,color:"contrast",enableTimeout:false,dataTimeout:5};runtime=w(p);streams=w(rt);metadata=w(_$1,{optional:true});unitsService=w(ut);unitsLabel=vt("");dataLabelValue=vt("0");dataValue=vt(0);barColor=vt("");barColorGradient=vt("");barColorBackground=vt("");cfg=Dt(()=>this.runtime.options()??n.DEFAULT_CONFIG);displayNameSafe=Dt(()=>this.cfg().displayName??"Gauge Label");gaugeMaxValue=Dt(()=>this.cfg().displayScale?.upper??15);gaugeMinValue=Dt(()=>this.cfg().displayScale?.lower??0);gaugePathConfig=Dt(()=>this.cfg().paths?.gaugePath);highlights=Dt(()=>{let t=this.cfg(),a=this.theme(),e=this.gaugePathConfig();if(!a)return [];if(t.ignoreZones||!this.metadata)return [];let o=this.metadata.zones();if(!o?.length)return [];let r=e?.convertUnitTo??"",y=t.displayScale?.lower??0,u=t.displayScale?.upper??15;return k(o,a,r,this.unitsService,y,u)});lastState=null;constructor(){Fa(()=>{let t=this.cfg(),a=this.gaugePathConfig();a?.path&&ge(()=>{this.streams.observe("gaugePath",o=>{let r=this.theme();if(!r)return;let y=o?.data?.value;if(y==null)this.dataValue.set(t.displayScale?.lower??0),this.dataLabelValue.set("--");else {let u=Math.min(Math.max(y,t.displayScale?.lower??0),t.displayScale?.upper??15);this.dataValue.set(u),this.dataLabelValue.set(u.toFixed(t.numDecimal??2));}if(!t.ignoreZones){let u=o?.state;if(u&&u!==this.lastState)switch(this.lastState=u,u){case n$1.Alarm:this.barColor.set(r.zoneAlarm);break;case n$1.Warn:this.barColor.set(r.zoneWarn);break;case n$1.Alert:this.barColor.set(r.zoneAlert);break;case n$1.Nominal:this.barColor.set(r.zoneNominal);break;default:this.barColor.set(c(t.color??"contrast",r).color);break}}});let e=a.convertUnitTo??"";this.unitsLabel.set(t.gauge?.unitLabelFormat==="abr"?e.substring(0,1):e);});}),Fa(()=>{let t=this.cfg(),a=this.theme();a&&ge(()=>{this.barColorBackground.set(a.background);let e=c(t.color??"contrast",a);if(t.ignoreZones)this.barColor.set(e.color);else if(this.lastState)switch(this.lastState){case n$1.Alarm:this.barColor.set(a.zoneAlarm);break;case n$1.Warn:this.barColor.set(a.zoneWarn);break;case n$1.Alert:this.barColor.set(a.zoneAlert);break;case n$1.Nominal:this.barColor.set(a.zoneNominal);break;default:this.barColor.set(e.color);break}else this.barColor.set(e.color);this.barColorGradient.set(e.dimmer||e.dim||e.color);});}),Fa(()=>{let t=this.cfg(),a=this.metadata;t.ignoreZones||!a||ge(()=>a.observe("gaugePath"));});}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=JD({type:n,selectors:[["widget-simple-linear"]],inputs:{id:[1,"id"],type:[1,"type"],theme:[1,"theme"]},decls:1,vars:11,consts:[[1,"simpleLinearGaugeContainer",3,"displayName","displayNameColor","unitLabel","dataValue","dataValueLabel","barColor","barColorGradient","barColorBackground","gaugeMaxValue","gaugeMinValue","highlights"]],template:function(a,e){if(a&1&&$h(0,"svg-simple-linear-gauge",0),a&2){let o;Bh("displayName",e.displayNameSafe())("displayNameColor",(o=e.theme())==null?null:o.contrastDim)("unitLabel",e.unitsLabel())("dataValue",e.dataValue())("dataValueLabel",e.dataLabelValue())("barColor",e.barColor())("barColorGradient",e.barColorGradient())("barColorBackground",e.barColorBackground())("gaugeMaxValue",e.gaugeMaxValue())("gaugeMinValue",e.gaugeMinValue())("highlights",e.highlights());}},dependencies:[_],styles:[".simpleLinearGaugeContainer[_ngcontent-%COMP%]{display:block;position:relative;height:100%;width:100%;padding:0}"]})}return n})();export{oe as WidgetSimpleLinearComponent};
@@ -0,0 +1 @@
1
+ import {d1 as Hj,w,n as G,J as JD,O as Op,o as eu,y as yt,b as wt,P as Pi,c as $h,u as ul,T as TT,k as Qh,e as EE,d as ig,B as Bh,aA as gg}from'./main-BAV5VDOD.js';var O=(()=>{class a{pageTitle=Hj.required();svgIconId=Hj.required();_router=w(G);backPage(){this._router.navigate(["/settings"]);}closePage(){this._router.navigate(["/dashboard"]);}static \u0275fac=function(n){return new(n||a)};static \u0275cmp=JD({type:a,selectors:[["page-header"]],inputs:{pageTitle:[1,"pageTitle"],svgIconId:[1,"svgIconId"]},decls:11,vars:6,consts:[[1,"page-icon-container"],["aria-hidden","false",3,"svgIcon"],[1,"page-title"],[1,"dialog-close-icon"],["mat-icon-button","",3,"click"]],template:function(n,i){n&1&&(Pi(0,"div",0),$h(1,"mat-icon",1),ul(),Pi(2,"h6",2),TT(3),ul(),Pi(4,"div",3)(5,"button",4),Qh("click",function(){return i.backPage()}),Pi(6,"mat-icon"),TT(7,"arrow_back_ios"),ul()(),Pi(8,"button",4),Qh("click",function(){return i.closePage()}),Pi(9,"mat-icon"),TT(10,"close"),ul()()()),n&2&&(EE(),ig("width",24,"px")("height",24,"px"),Bh("svgIcon",i.svgIconId()),EE(2),gg(i.pageTitle()));},dependencies:[Op,eu,yt,wt],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-direction:row;flex-wrap:nowrap}.page-icon-container[_ngcontent-%COMP%]{width:100px;height:max-content;padding-left:15px;padding-top:6px}.page-title[_ngcontent-%COMP%]{margin-block-start:0px;margin-block-end:0px;padding:18px 0 13px;color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, .87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, .03125em))}.dialog-close-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;gap:5px;padding-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}"]})}return a})();export{O};