@qaecy/cue-ui 0.0.58 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/1520.js +1 -1
- package/{2021.js → 1701.js} +1 -1
- package/1837.js +1 -1
- package/2317.js +1 -1
- package/2775.js +1 -1
- package/2839.js +1 -1
- package/29.js +1 -1
- package/3036.js +1 -1
- package/3202.js +1 -0
- package/{5277.js → 3213.js} +1 -1
- package/3418.js +1 -1
- package/3577.js +1 -1
- package/3614.js +1 -1
- package/3656.js +1 -0
- package/{2003.js → 3842.js} +1 -1
- package/3869.js +1 -0
- package/4098.js +1 -1
- package/5381.js +1 -1
- package/5649.js +1 -1
- package/6040.js +1 -0
- package/6233.js +1 -1
- package/6947.js +1 -1
- package/7727.js +1 -0
- package/9396.js +1 -1
- package/9707.js +1 -0
- package/992.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/2081.js +0 -1
- package/2283.js +0 -1
- package/7284.js +0 -1
- package/7313.js +0 -1
- package/880.js +0 -1
- package/8855.js +0 -1
package/{5277.js → 3213.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[5277,9695],{2217(F,k,r){r.d(k,{o:()=>w});var e=r(7705),l=r(2271),s=r(2245),c=r(5547),T=r(5802);function D(m,O){if(1&m&&(T.qSk(),c.j41(0,"svg",0),c.nrm(1,"path",3)(2,"path",4),c.k0s()),2&m){const f=c.XpG();c.R7$(),c.BMQ("fill",f.colorDark()),c.R7$(),c.BMQ("fill",f.color())}}function b(m,O){if(1&m&&(T.qSk(),c.j41(0,"svg",1),c.nrm(1,"path",5)(2,"path",6)(3,"path",7),c.k0s()),2&m){const f=c.XpG();c.R7$(2),c.BMQ("fill",f.color())}}const __blue="#175EBB",y={".dwg":__blue,".dxf":__blue,".doc":__blue,".docx":__blue,".ifc":"#9F388D",".pdf":"#E03833",".ppt":__blue,".pptx":__blue,".csv":"#0b7741",".xls":"#0b7741",".xlsx":"#0b7741",folder:"#9D9998"};let w=(()=>{class m{suffix=e.hFB.required();size=(0,e.hFB)("m");color=(0,l.EW)(()=>y[this.suffix()]??"#9D9998");label=(0,l.EW)(()=>this.suffix().startsWith(".")?this.suffix().toUpperCase().replace(/^\./,""):"");className=(0,l.EW)(()=>`size-${this.size()}`);colorDark=(0,l.EW)(()=>{const f=this.color(),h=parseInt(f.slice(1),16),g=h>>8&255,C=255&h;return`#${(Math.floor(.8*(h>>16&255))<<16|Math.floor(.8*g)<<8|Math.floor(.8*C)).toString(16).padStart(6,"0")}`});static \u0275fac=function(h){return new(h||m)};static \u0275cmp=c.VBU({type:m,selectors:[["cue-file-icon"]],hostVars:2,hostBindings:function(h,M){2&h&&c.HbH(M.className())},inputs:{suffix:[1,"suffix"],size:[1,"size"]},decls:4,vars:2,consts:[["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 48 48"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 30"],["size","xs","align","center","weight","semibold"],["d","M40 12H22l-4-4H8c-2.2 0-4 1.8-4 4v8h40v-4c0-2.2-1.8-4-4-4"],["d","M40 12H8c-2.2 0-4 1.8-4 4v20c0 2.2 1.8 4 4 4h32c2.2 0 4-1.8 4-4V16c0-2.2-1.8-4-4-4"],["fill","var(--cue-border-color)","d","M16.2.5H4.1C2.1.5.5 2.1.5 4.1v22.3c0 1.7 1.4 3.1 3.1 3.1h16.8c1.7 0 3.1-1.4 3.1-3.1V7.8h-.1c0-.1-7-7.1-7-7.1h-.1l-.1-.2Z"],["d","M4.1 1C2.4 1 1 2.4 1 4.1v22.3C1 27.8 2.2 29 3.6 29h16.8c1.4 0 2.6-1.2 2.6-2.6V8l-7-7H4.1Z"],["fill","#fff","d","M16 6c0 1.1.9 2 2 2h5l-7-7v5Z","opacity",".3"]],template:function(h,M){1&h&&(c.nVh(0,D,3,2,":svg:svg",0)(1,b,4,1,":svg:svg",1),c.j41(2,"cue-typography",2),c.EFF(3),c.k0s()),2&h&&(c.vxM("folder"===M.suffix()?0:1),c.R7$(3),c.JRh(M.label()))},dependencies:[s.Typography],styles:["[_nghost-%COMP%]{display:block;position:relative;aspect-ratio:30 / 24;width:var(--cue-dim-elem-m)}.size-xs[_nghost-%COMP%]{width:var(--cue-dim-elem-xs)}.size-s[_nghost-%COMP%]{width:var(--cue-dim-elem-s)}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{display:block;width:100%;height:auto}[_nghost-%COMP%] cue-typography[_ngcontent-%COMP%]{color:#fff;text-transform:uppercase;position:absolute;left:50%;bottom:24%;transform:translate(-50%)}"]})}return m})()},9695(F,k,r){r.d(k,{Switch:()=>D});var e=r(7705),l=r(29),s=r(5547);function c(b,_){if(1&b&&s.nrm(0,"cue-svg-icon",2),2&b){const y=s.XpG();s.Y8G("name",y.iconChecked())}}function T(b,_){if(1&b&&s.nrm(0,"cue-svg-icon",2),2&b){const y=s.XpG();s.Y8G("name",y.icon())}}let D=(()=>{class b{size=(0,e.hFB)("m");icon=(0,e.hFB)(void 0);iconChecked=(0,e.hFB)(void 0);disabled=(0,e.hFB)(!1);checked=(0,e.geq)(!1);toggleChange=(0,e.CGW)();toggle(){this.checked.set(!this.checked()),this.toggleChange.emit(this.checked())}static \u0275fac=function(w){return new(w||b)};static \u0275cmp=s.VBU({type:b,selectors:[["cue-input-switch"]],hostVars:5,hostBindings:function(w,m){2&w&&(s.BMQ("size",m.size()),s.AVh("checked",m.checked())("disabled",m.disabled()))},inputs:{size:[1,"size"],icon:[1,"icon"],iconChecked:[1,"iconChecked"],disabled:[1,"disabled"],checked:[1,"checked"]},outputs:{checked:"checkedChange",toggleChange:"toggleChange"},decls:4,vars:3,consts:[["type","checkbox",3,"click","checked","disabled"],[1,"indicator"],[3,"name"]],template:function(w,m){1&w&&(s.j41(0,"input",0),s.bIt("click",function(){return m.toggle()}),s.k0s(),s.j41(1,"div",1),s.nVh(2,c,1,1,"cue-svg-icon",2)(3,T,1,1,"cue-svg-icon",2),s.k0s()),2&w&&(s.Y8G("checked",m.checked())("disabled",m.disabled()),s.R7$(2),s.vxM(m.checked()&&m.iconChecked()?2:m.icon()?3:-1))},dependencies:[l.A],styles:["[_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-width: calc(var(--cue-input-switch-height) * 1.7);--cue-input-switch-inset: 2px;--cue-input-switch-indicator-width: calc( var(--cue-input-switch-height) - (2 * var(--cue-input-switch-inset)) );--cue-input-switch-icon-width: calc( var(--cue-input-switch-indicator-width) - (2 * var(--cue-input-switch-inset)) );display:block;flex-shrink:0;position:relative;height:var(--cue-input-switch-height);width:var(--cue-input-switch-width);border-radius:var(--cue-input-switch-height);--cue-icon-width: var(--cue-input-switch-icon-width);background:var(--cue-input-switch-background);transition:background-color .4s ease}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 12px;--cue-input-switch-inset: 1px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 14px;--cue-input-switch-inset: 1px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-inset: 2px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 22px;--cue-input-switch-inset: 3px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 28px;--cue-input-switch-inset: 3px}@container cue-container (width < 20em){[_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 10px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 12px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 18px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 20px}}.checked[_nghost-%COMP%]{background:var(--cue-input-switch-checked-background)}.disabled[_nghost-%COMP%]{background:var(--cue-input-switch-disabled-background);cursor:default}[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{pointer-events:none;position:absolute;left:var(--cue-input-switch-inset);top:var(--cue-input-switch-inset);width:var(--cue-input-switch-indicator-width);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;background-color:var(--cue-input-switch-indicator-background);color:var(--cue-input-switch-indicator-foreground);transition:left .4s ease,background-color .4s ease,color .4s ease}.checked[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{left:calc(var(--cue-input-switch-width) - var(--cue-input-switch-inset) - var( --cue-input-switch-indicator-width ));background:var(--cue-input-switch-checked-indicator-background);color:var(--cue-input-switch-checked-indicator-foreground)}.disabled[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{background:var(--cue-input-switch-disabled-indicator-background);color:var(--cue-input-switch-disabled-indicator-foreground)}input[_ngcontent-%COMP%]{all:unset;position:absolute;inset:0;cursor:pointer;border-radius:var(--cue-input-switch-height)}input[_ngcontent-%COMP%]:focus-visible:not(:disabled) + .indicator[_ngcontent-%COMP%]{outline:1px solid var(--cue-input-switch-focus-color);outline-offset:2px}"]})}return b})()},5745(F,k,r){r.d(k,{a:()=>f});var e=r(7705),l=r(5802),s=r(2271),c=r(5547);const T=["dialog"],D=["*",[["","modal-footer",""]]],b=["*","[modal-footer]"];function _(h,M){if(1&h&&(c.rj2(0,"h2",7),c.EFF(1),c.eux()),2&h){const g=c.XpG(3);c.R7$(),c.JRh(g.effectiveTitle())}}function y(h,M){if(1&h&&(c.rj2(0,"p",8),c.EFF(1),c.eux()),2&h){const g=c.XpG(3);c.R7$(),c.JRh(g.subtitle())}}function w(h,M){if(1&h){const g=c.RV6();c.rj2(0,"button",10),c.VwU("click",function(){l.eBV(g);const x=c.XpG(3);return l.Njj(x.onClose())}),l.qSk(),c.rj2(1,"svg",11),c.Hgh(2,"path",12),c.eux()()}}function m(h,M){if(1&h&&(c.rj2(0,"div",4)(1,"div",6),c.nVh(2,_,2,1,"h2",7),c.nVh(3,y,2,1,"p",8),c.eux(),c.nVh(4,w,3,0,"button",9),c.eux()),2&h){const g=c.XpG(2);c.R7$(2),c.vxM(g.effectiveTitle()?2:-1),c.R7$(),c.vxM(g.subtitle()?3:-1),c.R7$(),c.vxM(g.displayCloseBtn()?4:-1)}}function O(h,M){if(1&h&&(c.rj2(0,"div",3),c.VwU("click",function(C){return C.stopPropagation()}),c.nVh(1,m,5,3,"div",4),c.rj2(2,"div",5),c.SdG(3),c.eux(),c.SdG(4,1),c.eux()),2&h){const g=c.XpG();c.xc7("min-width",g.minWidth()),c.AVh("has-header",g.effectiveTitle()||g.displayCloseBtn()),c.R7$(),c.vxM(g.effectiveTitle()||g.displayCloseBtn()?1:-1)}}let f=(()=>{class h{visible=(0,e.geq)(!0);closeOnBackgroundClick=(0,e.hFB)(!0);displayCloseBtn=(0,e.hFB)(!0);label=(0,e.hFB)("");title=(0,e.hFB)("");subtitle=(0,e.hFB)("");minWidth=(0,e.hFB)();close=(0,e.CGW)();dialogRef=e.ebz.required("dialog");effectiveTitle=(0,s.EW)(()=>this.title()||this.label());constructor(){(0,l.QZP)(()=>{const g=this.dialogRef().nativeElement;this.visible()?g.open||g.showModal():g.open&&g.close()})}onBackdropClick(){this.closeOnBackgroundClick()&&this.onClose()}onClose(){this.visible.set(!1),this.close.emit()}static \u0275fac=function(C){return new(C||h)};static \u0275cmp=c.VBU({type:h,selectors:[["cue-modal"]],viewQuery:function(C,x){1&C&&c.wEZ(x.dialogRef,T,5),2&C&&c.NyB()},inputs:{visible:[1,"visible"],closeOnBackgroundClick:[1,"closeOnBackgroundClick"],displayCloseBtn:[1,"displayCloseBtn"],label:[1,"label"],title:[1,"title"],subtitle:[1,"subtitle"],minWidth:[1,"minWidth"]},outputs:{visible:"visibleChange",close:"close"},ngContentSelectors:b,decls:3,vars:1,consts:[["dialog",""],[1,"modal-dialog",3,"cancel","click"],[1,"panel",3,"has-header","minWidth"],[1,"panel",3,"click"],[1,"header"],[1,"body"],[1,"header-text"],[1,"modal-title"],[1,"modal-subtitle"],["type","button","aria-label","Close",1,"close-btn"],["type","button","aria-label","Close",1,"close-btn",3,"click"],["viewBox","0 0 256 256","xmlns","http://www.w3.org/2000/svg"],["fill","currentColor","d","M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L61.34 72.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z"]],template:function(C,x){1&C&&(c.NAR(D),c.rj2(0,"dialog",1,0),c.VwU("cancel",function(){return x.onClose()})("click",function(){return x.onBackdropClick()}),c.nVh(2,O,5,5,"div",2),c.eux()),2&C&&(c.R7$(2),c.vxM(x.visible()?2:-1))},styles:[".modal-dialog[_ngcontent-%COMP%]{padding:0;border:none;background:transparent;overflow:visible;margin:auto;outline:none;max-width:min(calc(100vw - 32px),80vw)}.modal-dialog[_ngcontent-%COMP%]::backdrop{background-color:var(--cue-modal-overlay-color, rgba(14, 24, 39, .55));-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.panel[_ngcontent-%COMP%]{background:var(--cue-default);color:var(--cue-defaultContrast);border-radius:24px;border:1px solid var(--cue-border-color);box-shadow:0 12px 48px #00000047;max-height:88vh;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;scrollbar-width:thin}.header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;padding:26px 26px 0;margin-bottom:20px}.header-text[_ngcontent-%COMP%]{flex:1}.modal-title[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:700;letter-spacing:-.01em;font-family:var(--cue-font-family);color:var(--cue-defaultContrast)}.modal-subtitle[_ngcontent-%COMP%]{margin:5px 0 0;font-size:13px;color:var(--cue-color-midgray);letter-spacing:.02em;line-height:1.5}.close-btn[_ngcontent-%COMP%]{flex:none;width:34px;height:34px;border-radius:50%;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--cue-color-midgray);padding:0;margin-top:-4px;transition:background .15s,color .15s}.close-btn[_ngcontent-%COMP%]:hover{background:var(--cue-main-background);color:var(--cue-main-foreground)}.close-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;display:block}.body[_ngcontent-%COMP%]{padding:26px}.has-header[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{padding-top:0}"]})}return h})()},5277(F,k,r){r.d(k,{Table:()=>Ne});var e=r(5547),l=r(5802),s=r(7705),c=r(2716),T=r(9417),D=r(29),b=r(8957);function _(o,u){if(1&o){const t=e.RV6();e.nrm(0,"span",1),e.j41(1,"button",2),e.bIt("click",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.toggleFilterDisplay())}),e.nrm(2,"cue-svg-icon",3),e.k0s()}}function y(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-input",4),e.bIt("keyup",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.updateFilter(i))}),e.k0s(),e.j41(1,"button",5),e.bIt("click",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.toggleFilterDisplay())}),e.nrm(2,"cue-svg-icon",3),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("value",t.filterValue())("label",t.filterLabel())("placeholder",t.filterLabel())}}let w=(()=>{class o{ngOnDestroy(){clearTimeout(this._debounceTimer)}filterLabel=(0,s.hFB)("Filter");filterValue=(0,s.hFB)("");filterValueChange=(0,s.CGW)();debounceTime=(0,s.hFB)(200);filterVisible=(0,l.vPA)(!0);_debounceTimer;_value="";updateFilter(t){this._value=t.target.value,clearTimeout(this._debounceTimer),this._debounceTimer=setTimeout(()=>{this.filterValueChange.emit(this._value)},this.debounceTime())}toggleFilterDisplay(){this.filterVisible()?this.filterVisible.set(!1):this.filterVisible.set(!0)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table-toolbar"]],inputs:{filterLabel:[1,"filterLabel"],filterValue:[1,"filterValue"],debounceTime:[1,"debounceTime"]},outputs:{filterValueChange:"filterValueChange"},decls:3,vars:2,consts:[[1,"filter-row"],[2,"flex","1"],["mat-icon-button","","aria-label","Show filter",3,"click"],["name","filter"],[2,"width","100%",3,"keyup","value","label","placeholder"],["mat-icon-button","","aria-label","Hide filter",3,"click"]],template:function(n,i){1&n&&(e.j41(0,"div",0),e.nVh(1,_,3,0),e.nVh(2,y,3,3),e.k0s()),2&n&&(e.R7$(),e.vxM(i.filterVisible()?-1:1),e.R7$(),e.vxM(i.filterVisible()?2:-1))},dependencies:[T.YN,D.A,b.Input],styles:[".filter-row[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;gap:.6rem;align-items:center;padding-bottom:.2rem;font-family:var(--cue-font-family);color:var(--cue-table-text-color)} .filter-row .mat-mdc-form-field-subscript-wrapper{height:0}"]})}return o})();var m=r(9457),O=r(992),f=r(2271),h=r(6117),M=r(356),g=r(6279),C=r(5971),x=r(3319),P=r(4152);const B=(o,u)=>u.label;function E(o,u){if(1&o&&e.nrm(0,"cue-svg-icon",6),2&o){const t=e.XpG().$implicit;e.Y8G("name",t.icon)}}function z(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-menu-item",5),e.bIt("click",function(){const i=l.eBV(t).$implicit;return l.Njj(i.action())}),e.nVh(1,E,1,1,"cue-svg-icon",6),e.EFF(2),e.k0s()}if(2&o){const t=u.$implicit;e.R7$(),e.vxM(t.icon?1:-1),e.R7$(),e.SpI(" ",t.label)}}function $(o,u){if(1&o&&(e.j41(0,"cue-menu",1)(1,"cue-button",2,0),e.nrm(3,"cue-button-icon",3),e.k0s(),e.j41(4,"cue-menu-wrap",4),e.Z7z(5,z,3,2,"cue-menu-item",null,B),e.k0s()()),2&o){const t=e.XpG();e.R7$(),e.Y8G("variant",t.displaySettings().buttonVariant)("size",t.displaySettings().buttonSize),e.R7$(4),e.Dyx(t.menuContent())}}let A=(()=>{class o{_service=(0,l.WQX)(O.a);displaySettings=(0,s.hFB)(new c.d9);rows=s.hFB.required();columnDefs=s.hFB.required();menuContentBefore=(0,s.hFB)([]);menuContentAfter=(0,s.hFB)([]);menuContent=(0,f.EW)(()=>{const t=this.displaySettings(),n=[];return this.menuContentBefore()&&n.push(...this.menuContentBefore()),t.showColumnSelect&&n.push({label:this._service.showColumnSettings()?"Hide column settings":"Show column settings",icon:"settings",action:()=>this._service.showColumnSettings.set(!this._service.showColumnSettings())}),t.showDownload&&n.push({label:"Download CSV",icon:"download",action:()=>{const i=this.rows(),a=this.columnDefs();(0,P.B)(i,a)}}),this.menuContentAfter()&&n.push(...this.menuContentAfter()),n});static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table-menu"]],inputs:{displaySettings:[1,"displaySettings"],rows:[1,"rows"],columnDefs:[1,"columnDefs"],menuContentBefore:[1,"menuContentBefore"],menuContentAfter:[1,"menuContentAfter"]},decls:1,vars:1,consts:[["trigger",""],["positioning","bottomright"],["trigger","",3,"variant","size"],["icon","more-vert"],["menu",""],[3,"click"],["before","",3,"name"]],template:function(n,i){1&n&&e.nVh(0,$,7,2,"cue-menu",1),2&n&&e.vxM(i.menuContent().length&&!i.displaySettings().hide?0:-1)},dependencies:[h.W,C.Button,x.ButtonIcon,M.M,g.D,D.A],encapsulation:2,changeDetection:0})}return o})();var V=r(7598),G=r(7089),X=r(9495),L=r(5745),N=r(5381),R=r(2245),W=r(63),j=r(9695);function H(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",2)(1,"cue-typography",3),e.EFF(2,"Label"),e.k0s(),e.j41(3,"cue-typography",3)(4,"cue-inline-input",4),e.mxI("valueChange",function(i){l.eBV(t);const a=e.XpG();return e.DH7(a.columnDef().label,i)||(a.columnDef().label=i),l.Njj(i)}),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(4),e.R50("value",t.columnDef().label)}}function U(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",2)(1,"cue-typography",3),e.EFF(2,"Text align"),e.k0s(),e.j41(3,"cue-select",5),e.bIt("valueChange",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.setTextAlign(i))}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.Y8G("value",t.columnDef().textAlign)("options",t.alignOptions)}}function Y(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",2)(1,"cue-typography",6),e.EFF(2,"Editable"),e.k0s(),e.j41(3,"cue-input-switch",7),e.bIt("checkedChange",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.setEditable(i))}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.Y8G("checked",t.columnDef().editable)}}function Q(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",2)(1,"cue-typography",8),e.EFF(2,"Only on hover"),e.k0s(),e.j41(3,"cue-input-switch",7),e.bIt("checkedChange",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.setOnlyOnHover(i))}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.Y8G("checked",t.columnDef().displayOnlyOnHover)}}let Z=(()=>{class o{columnDef=s.geq.required();close=(0,s.CGW)();settings=s.hFB.required();alignOptions=["left","right","center"];columnTypeEditable=(0,f.EW)(()=>{console.log(this.columnDef())});setTextAlign(t){const n=this.columnDef();n.textAlign=t,this.columnDef.update(()=>n)}setEditable(t){const n=this.columnDef();n.editable=t,this.columnDef.update(()=>n)}setOnlyOnHover(t){const n=this.columnDef();n.displayOnlyOnHover=t,this.columnDef.update(()=>n)}setLabel(t){console.log(t)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table-column-settings-modal"]],inputs:{columnDef:[1,"columnDef"],settings:[1,"settings"]},outputs:{columnDef:"columnDefChange",close:"close"},decls:6,vars:4,consts:[["label","Column Settings",3,"close"],["direction","column",2,"margin-top","2rem"],["direction","row","gap","l","justify","space-between","align","center"],["size","m"],[3,"valueChange","value"],[3,"valueChange","value","options"],["size","m","cueTooltip","Allow the user to edit the field?"],["size","xs",3,"checkedChange","checked"],["size","m","cueTooltip","Only display the cell value when the row is being hovered?"]],template:function(n,i){1&n&&(e.j41(0,"cue-modal",0),e.bIt("close",function(){return i.close.emit()}),e.j41(1,"cue-flexcontainer",1),e.nVh(2,H,5,1,"cue-flexcontainer",2),e.nVh(3,U,4,2,"cue-flexcontainer",2),e.nVh(4,Y,4,1,"cue-flexcontainer",2),e.nVh(5,Q,4,1,"cue-flexcontainer",2),e.k0s()()),2&n&&(e.R7$(2),e.vxM(i.settings().allowSettingLabel?2:-1),e.R7$(),e.vxM(i.settings().allowSettingTextAlign?3:-1),e.R7$(),e.vxM(i.settings().allowToggleEditable?4:-1),e.R7$(),e.vxM(i.settings().allowToggleHideOnHover?5:-1))},dependencies:[L.a,N.FlexContainer,R.Typography,W.Select,j.Switch,G.d,X.InlineInput],encapsulation:2,changeDetection:0})}return o})();const S=o=>[o];function K(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-table-column-settings-modal",8),e.bIt("close",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.displayColumnSettings.set(void 0))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("columnDef",u)("settings",t.settings())}}function J(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-button",11),e.bIt("click",function(){l.eBV(t);const i=e.XpG().$implicit,a=e.XpG();return l.Njj(a.displayColumnSettings.set(i))}),e.nrm(1,"cue-button-icon",12),e.k0s()}}function q(o,u){if(1&o&&(e.j41(0,"div",7)(1,"cue-flexcontainer",9)(2,"cue-typography"),e.EFF(3),e.k0s(),e.nVh(4,J,2,0,"cue-button",10),e.k0s()()),2&o){const t=u.$implicit,n=e.XpG();e.R7$(3),e.JRh(t.label),e.R7$(),e.vxM(n.settings().allowEditing?4:-1)}}function ee(o,u){if(1&o&&(e.j41(0,"div",7)(1,"cue-typography"),e.EFF(2),e.k0s()()),2&o){const t=u.$implicit;e.R7$(2),e.JRh(t.label)}}let te=(()=>{class o{columnDefs=s.geq.required();columnDefsGross=(0,s.geq)([]);settings=(0,s.hFB)(new c.OX);shown=(0,s.CGW)();shownColumns=(0,l.vPA)([]);hiddenColumns=(0,l.vPA)([]);displayColumnSettings=(0,l.vPA)(void 0);onNoColumnDefsGross=(0,l.QZP)(()=>{(!this.columnDefsGross()||0===this.columnDefsGross().length)&&this.columnDefsGross.set(this.columnDefs())});onColumnDefs=(0,l.QZP)(()=>{const t=this.columnDefs().map(i=>i.key),n=this.columnDefsGross().filter(i=>!t.includes(i.key));this.shownColumns.update(()=>[...this.columnDefs()]),this.hiddenColumns.update(()=>[...n])});drop(t){t.previousContainer===t.container?(0,V.HD)(t.container.data,t.previousIndex,t.currentIndex):(0,V.eg)(t.previousContainer.data,t.container.data,t.previousIndex,t.currentIndex);const n=this.shownColumns();this.columnDefs.update(()=>[...n]),this.shown.emit(n)}showColumnSettings(t){console.log(t)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table-column-select"]],inputs:{columnDefs:[1,"columnDefs"],columnDefsGross:[1,"columnDefsGross"],settings:[1,"settings"]},outputs:{columnDefs:"columnDefsChange",columnDefsGross:"columnDefsGrossChange",shown:"shown"},decls:16,vars:9,consts:[["todoList","cdkDropList"],["doneList","cdkDropList"],[3,"columnDef","settings"],["direction","row"],["direction","column",1,"panel"],["size","l"],["cdkDropList","",1,"list",3,"cdkDropListDropped","cdkDropListData","cdkDropListConnectedTo"],["cdkDrag","",1,"box","draggable"],[3,"close","columnDef","settings"],["front","","justify","space-between","align","center",2,"width","100%"],["variant","tertiary","size","s","cueTooltip","Column settings"],["variant","tertiary","size","s","cueTooltip","Column settings",3,"click"],["icon","more-vert"]],template:function(n,i){if(1&n&&(e.nVh(0,K,1,2,"cue-table-column-settings-modal",2),e.j41(1,"cue-flexcontainer",3)(2,"cue-flexcontainer",4)(3,"cue-typography",5),e.EFF(4,"Shown"),e.k0s(),e.j41(5,"div",6,0),e.bIt("cdkDropListDropped",function(d){return i.drop(d)}),e.Z7z(7,q,5,2,"div",7,e.Vm6),e.k0s()(),e.j41(9,"cue-flexcontainer",4)(10,"cue-typography",5),e.EFF(11,"Hidden"),e.k0s(),e.j41(12,"div",6,1),e.bIt("cdkDropListDropped",function(d){return i.drop(d)}),e.Z7z(14,ee,3,1,"div",7,e.Vm6),e.k0s()()()),2&n){let a;const d=e.sdS(6),p=e.sdS(13);e.vxM((a=i.displayColumnSettings())?0:-1,a);const v=i.shownColumns();e.R7$(5),e.Y8G("cdkDropListData",v)("cdkDropListConnectedTo",e.eq3(5,S,p)),e.R7$(2),e.Dyx(v);const I=i.hiddenColumns();e.R7$(5),e.Y8G("cdkDropListData",I)("cdkDropListConnectedTo",e.eq3(7,S,d)),e.R7$(2),e.Dyx(I)}},dependencies:[V.O7,V.T1,R.Typography,N.FlexContainer,C.Button,x.ButtonIcon,G.d,Z],styles:[".panel[_ngcontent-%COMP%]{width:50%}.list[_ngcontent-%COMP%]{border:solid 1px #ccc;min-height:60px;background:#fff;border-radius:4px;overflow:hidden;display:block}.box[_ngcontent-%COMP%]{padding:20px 10px;border-bottom:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;background:#fff;font-size:14px}.draggable[_ngcontent-%COMP%]{cursor:move}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border:none}.list.cdk-drop-list-dragging[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}return o})();function ne(o,u){1&o&&e.EFF(0," sort ")}function oe(o,u){if(1&o&&e.EFF(0),2&o){const t=e.XpG();e.SpI(" ",t.service.sortOrder()," ")}}function ie(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-button",11,0),e.bIt("click",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.clearFilter())}),e.nrm(2,"cue-button-icon",12),e.k0s()}}let le=(()=>{class o{service=(0,l.WQX)(O.a);firstCol=(0,s.hFB)(!1);lastCol=(0,s.hFB)(!1);columnDef=s.hFB.required();isSortCol=(0,f.EW)(()=>this.service.sortCol()===this.columnDef().key);isFilterCol=(0,f.EW)(()=>this.service.filterCol()===this.columnDef().key);filterVal=(0,f.EW)(()=>this.isFilterCol()?this.service.filterValue()??"":"");exactMatch=this.service.filterExactMatch;positioning=(0,f.EW)(()=>this.firstCol()?"bottomleft":(this.lastCol(),"bottomright"));toggleFilterExactMatch(t){t.stopPropagation(),this.exactMatch.set(!this.exactMatch())}setSortBy(t){t.stopPropagation();const n=this.columnDef().key;if(this.isSortCol()){const i="ASC"===this.service.sortOrder()?"DESC":"ASC";this.service.sortOrder.set(i)}this.service.sortCol.set(n)}setFilter(t){if(""===t)return this.clearFilter();this.service.filterCol.set(this.columnDef().key),this.service.filterValue.set(t)}clearFilter(){this.isFilterCol()&&(this.service.filterCol.set(void 0),this.service.filterValue.set(void 0))}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-column-menu"]],inputs:{firstCol:[1,"firstCol"],lastCol:[1,"lastCol"],columnDef:[1,"columnDef"]},decls:18,vars:6,consts:[["trigger",""],[3,"positioning"],["trigger","","variant","tertiary","size","xs"],["icon","more-vert"],["menu",""],[3,"click"],["after","",3,"name"],["align","center"],["size","xs",3,"checked"],["align","center","justify","space-between"],["placeholder","Filter...",3,"valueChange","value"],["trigger","","variant","tertiary","size","xs",3,"click"],["icon","close"]],template:function(n,i){1&n&&(e.j41(0,"cue-menu",1)(1,"cue-button",2,0),e.nrm(3,"cue-button-icon",3),e.k0s(),e.j41(4,"cue-menu-wrap",4)(5,"cue-menu-item",5),e.bIt("click",function(d){return i.setSortBy(d)}),e.nVh(6,ne,1,0)(7,oe,1,1),e.nrm(8,"cue-svg-icon",6),e.k0s(),e.j41(9,"cue-menu-item",5),e.bIt("click",function(d){return i.toggleFilterExactMatch(d)}),e.j41(10,"cue-flexcontainer",7),e.nrm(11,"cue-input-switch",8),e.j41(12,"cue-typography"),e.EFF(13,"Exact match"),e.k0s()()(),e.j41(14,"cue-menu-item")(15,"cue-flexcontainer",9)(16,"cue-input",10),e.bIt("valueChange",function(d){return i.setFilter(d)}),e.k0s(),e.nVh(17,ie,3,0,"cue-button",2),e.k0s()()()()),2&n&&(e.Y8G("positioning",i.positioning()),e.R7$(6),e.vxM(i.isSortCol()?7:6),e.R7$(2),e.Y8G("name","ASC"===i.service.sortOrder()?"arrow-up":"arrow-down"),e.R7$(3),e.Y8G("checked",i.exactMatch()),e.R7$(5),e.Y8G("value",i.filterVal()),e.R7$(),e.vxM(i.filterVal()?17:-1))},dependencies:[C.Button,h.W,g.D,M.M,x.ButtonIcon,D.A,N.FlexContainer,b.Input,j.Switch,R.Typography],styles:["[_nghost-%COMP%] .popover{padding:12px!important}[_nghost-%COMP%] cue-menu-wrap{border:1px solid var(--cue-border-color);box-shadow:0 4px 12px #00000026;overflow:hidden}[_nghost-%COMP%] cue-input .input::placeholder{font-size:12px!important;color:var(--cue-input-placeholder-color)!important}[_nghost-%COMP%] cue-input .input{font-size:12px!important;border-bottom:none!important;color:var(--cue-input-value-color)!important}[_nghost-%COMP%] button{background:var(--cue-color-ultralightgray)!important}[_nghost-%COMP%] button:hover{background:var(--cue-color-ultralightgray)!important}[_nghost-%COMP%] button:focus{background:var(--cue-color-ultralightgray)!important}[_nghost-%COMP%] button:active{background:var(--cue-color-ultralightgray)!important}[_nghost-%COMP%] cue-svg-icon{--cue-icon-width: 14px !important}body.dark [_nghost-%COMP%] cue-svg-icon, body.dark [_nghost-%COMP%] cue-input .input::placeholder, body.dark [_nghost-%COMP%] button cue-typography, body.dark [_nghost-%COMP%] cue-input .input{color:var(--cue-color-black)!important}"],changeDetection:0})}return o})();var ce=r(9595);let se=(()=>{class o{_elementRef=(0,l.WQX)(e.aKT);cueShortpress=(0,s.CGW)();ngOnInit(){ce.B.getInstance().events.addListener("shortPressedLeft",t=>{const n=this._elementRef?.nativeElement;n&&n.contains(t.target)&&this.cueShortpress.emit(t)})}static \u0275fac=function(n){return new(n||o)};static \u0275dir=e.FsC({type:o,selectors:[["","cueShortpress",""]],outputs:{cueShortpress:"cueShortpress"}})}return o})();var ae=r(2217),re=r(1359),ue=r(1493);const de=["customPlaceholder"],he=["cell"];function ge(o,u){if(1&o&&e.nrm(0,"div",4,1),2&o){const t=e.XpG();e.AVh("right-aligned","right"===t.contentAlignment())("left-aligned","left"===t.contentAlignment())("center-aligned","center"===t.contentAlignment())}}function pe(o,u){if(1&o&&e.nrm(0,"div",10),2&o){const t=e.XpG(2);e.xc7("background-color",t.value())}}function me(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-checkbox",11),e.bIt("checkedChange",function(i){l.eBV(t);const a=e.XpG(2);return l.Njj(a.handleValueChange(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("disabled",!t.editable())("checked",t.bool())("size",t.size())}}function fe(o,u){if(1&o&&e.nrm(0,"cue-file-icon",8),2&o){const t=e.XpG(2);e.Y8G("suffix",t.htmlValue())("size",t.fileIconSize())}}function _e(o,u){if(1&o&&e.nrm(0,"span",9),2&o){const t=e.XpG(2);e.Y8G("title",t.title())("innerHTML",t.htmlValue(),e.npT)}}function be(o,u){if(1&o&&(e.j41(0,"cue-typography",5),e.nVh(1,pe,1,2,"div",6)(2,me,1,3,"cue-checkbox",7)(3,fe,1,2,"cue-file-icon",8)(4,_e,1,2,"span",9),e.k0s()),2&o){const t=e.XpG();e.AVh("right-aligned","right"===t.contentAlignment())("left-aligned","left"===t.contentAlignment())("center-aligned","center"===t.contentAlignment()),e.Y8G("size",t.size())("align",t.align()),e.R7$(),e.vxM("COLOR"===t.valueType()?1:"CHECKBOX"===t.valueType()?2:"FILEICON"===t.valueType()?3:4)}}let ve=(()=>{class o{componentRef=null;lastComponentInputs=(0,l.vPA)(null);value=s.hFB.required();valueType=(0,s.hFB)("DEFAULT");contentAlignment=(0,s.hFB)("left");size=(0,s.hFB)("m");editable=(0,s.hFB)(!0);formatter=(0,s.hFB)(void 0);valueChange=(0,s.CGW)();customPlaceholder;cell;iconName=(0,f.EW)(()=>"FILEICON"===this.valueType()?this.value():void 0);bool=(0,f.EW)(()=>"CHECKBOX"===this.valueType()&&this.value());formattedValue=(0,f.EW)(()=>{const t=this.value(),n=this.formatter();return void 0!==n?n(t):t});htmlValue=(0,f.EW)(()=>{const t=this.valueType(),n=this.formattedValue();switch(t){case"COMPONENT":return"";case"STRINGARRAY":return n.join(", ");case"DATASIZE":return void 0===n?"-":(0,ue.b)(n);default:return n.toString()}});title=(0,f.EW)(()=>this.formattedValue()?this.formattedValue():this.value()!==this.formattedValue()?this.value():"");align=(0,f.EW)(()=>{const t=this.contentAlignment();return"left"===t?"start":"right"===t?"end":"center"});fileIconSize=(0,f.EW)(()=>["xs","s","m"].includes(this.size())?this.size():"m");constructor(){(0,l.QZP)(()=>{this.value();const t=this.valueType();"COMPONENT"===t?this._renderComponent():"HTMLELEMENT"===t&&this._renderHtmlElement()})}ngAfterViewInit(){this._renderContent()}ngOnDestroy(){this._clearComponent()}handleValueChange(t){this.valueChange.emit(t)}_renderContent(){"COMPONENT"===this.valueType()?this._renderComponent():"HTMLELEMENT"===this.valueType()&&this._renderHtmlElement()}_renderComponent(){const t=this.value();if(!t?.component)return void this._clearComponent();const n=t.inputs||{};if(!this._compareInputs(n,this.lastComponentInputs())||!this.componentRef){this._clearComponent();try{this.componentRef=this.customPlaceholder.createComponent(t.component),this.lastComponentInputs.set({...n}),Object.entries(n).forEach(([a,d])=>{this.componentRef?.setInput(a,d)})}catch(a){console.error("Error creating component:",a),this._clearComponent()}}}_compareInputs(t,n){if(!n)return!1;const i=Object.keys(t),a=Object.keys(n);return i.length===a.length&&i.every(d=>{const p=t[d],v=n[d];if("function"==typeof p||"function"==typeof v)return p===v;if("object"==typeof p&&null!==p&&"object"==typeof v&&null!==v){if(p===v)return!0;try{return JSON.stringify(p)===JSON.stringify(v)}catch{return!1}}return p===v})}_renderHtmlElement(){if(!this.cell)return;for(;this.cell.nativeElement.firstChild;)this.cell.nativeElement.removeChild(this.cell.nativeElement.firstChild);let t=this.value();if("string"==typeof t){const n=document.createElement("div");n.innerHTML=t,t=n}t instanceof HTMLElement&&this.cell.nativeElement.appendChild(t.cloneNode(!0))}_clearComponent(){this.componentRef&&(this.componentRef.destroy(),this.componentRef=null),this.lastComponentInputs.set(null),this.customPlaceholder?.clear()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table-cell"]],viewQuery:function(n,i){if(1&n&&e.GBs(de,7,e.c1b)(he,5),2&n){let a;e.mGM(a=e.lsd())&&(i.customPlaceholder=a.first),e.mGM(a=e.lsd())&&(i.cell=a.first)}},inputs:{value:[1,"value"],valueType:[1,"valueType"],contentAlignment:[1,"contentAlignment"],size:[1,"size"],editable:[1,"editable"],formatter:[1,"formatter"]},outputs:{valueChange:"valueChange"},decls:4,vars:1,consts:[["customPlaceholder",""],["cell",""],[1,"container",3,"right-aligned","left-aligned","center-aligned"],[1,"container",3,"size","align","right-aligned","left-aligned","center-aligned"],[1,"container"],[1,"container",3,"size","align"],[1,"color",3,"background-color"],[3,"disabled","checked","size"],[3,"suffix","size"],[3,"title","innerHTML"],[1,"color"],[3,"checkedChange","disabled","checked","size"]],template:function(n,i){1&n&&(e.eu8(0,null,0),e.nVh(2,ge,2,6,"div",2)(3,be,5,9,"cue-typography",3)),2&n&&(e.R7$(2),e.vxM("HTMLELEMENT"===i.valueType()?2:3))},dependencies:[re.Checkbox,ae.o,R.Typography],styles:["[_nghost-%COMP%]{--cue-icon-width: 30px}.color[_ngcontent-%COMP%]{height:12px;width:12px;border:1px solid #fff;border-radius:5px}.container[_ngcontent-%COMP%]{display:flex;overflow:hidden;font-family:var(--cue-font-family);--mat-table-background-color: var(--background-color);--mat-paginator-container-background-color: var(--background-color)} .right-aligned{justify-content:flex-end} .left-aligned{justify-content:flex-start} .center-aligned{justify-content:center}"],changeDetection:0})}return o})();var Ce=r(5821);const xe=(o,u)=>u.key;function Me(o,u){if(1&o&&(e.j41(0,"cue-flexcontainer",1),e.nrm(1,"cue-table-menu",10),e.k0s()),2&o){const t=e.XpG(),n=e.r8f(2);e.R7$(),e.Y8G("rows",t.rows())("columnDefs",t.columnDefs())("displaySettings",n.menuDisplaySettings)}}function De(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-table-column-select",11),e.mxI("columnDefsChange",function(i){l.eBV(t);const a=e.XpG();return e.DH7(a.columnDefs,i)||(a.columnDefs=i),l.Njj(i)}),e.k0s()}if(2&o){const t=e.XpG(),n=e.r8f(2);e.R50("columnDefs",t.columnDefs),e.Y8G("columnDefsGross",t.columnDefsGross())("settings",n.columnSelectSettings)}}function Te(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-table-toolbar",12),e.bIt("filterValueChange",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.setFilter(i))}),e.k0s()}}function ye(o,u){if(1&o&&e.nrm(0,"cue-column-menu",16),2&o){const t=e.XpG().$implicit,n=e.r8f(0),i=e.r8f(1);e.Y8G("columnDef",t)("firstCol",n)("lastCol",i)}}function we(o,u){if(1&o&&e.nrm(0,"cue-svg-icon",17),2&o){const t=e.XpG(2);e.Y8G("name","ASC"===t.service.sortOrder()?"arrow-up":"arrow-down")}}function ke(o,u){1&o&&e.nrm(0,"cue-svg-icon",18)}function Oe(o,u){if(1&o){const t=e.RV6();e.SS7(0)(1),e.j41(2,"th",13),e.bIt("mouseenter",function(){const i=l.eBV(t).$implicit,a=e.XpG();return l.Njj(a.hoveredColumn=i.key)})("mouseleave",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.hoveredColumn=null)}),e.j41(3,"cue-flexcontainer",14)(4,"cue-typography",15),e.EFF(5),e.nVh(6,ye,1,3,"cue-column-menu",16),e.k0s(),e.nVh(7,we,1,1,"cue-svg-icon",17),e.nVh(8,ke,1,0,"cue-svg-icon",18),e.k0s()()}if(2&o){const t=u.$implicit,n=u.$index,i=e.XpG(),a=e.r8f(1);e.bH3(0===n),e.R7$(),e.bH3(n===a.length-1),e.R7$(),e.xc7("width",t.width)("padding",i.padding());const d=i.getCellDirection(t.textAlign);e.R7$(),e.xc7("text-align",t.textAlign),e.Y8G("justify",d),e.R7$(),e.Y8G("size",i.size())("align",d),e.R7$(),e.SpI("",t.label," "),e.R7$(),e.vxM(i.hoveredColumn===t.key?6:-1),e.R7$(),e.vxM(i.service.sortCol()===t.key&&i.hoveredColumn!==t.key?7:-1),e.R7$(),e.vxM(i.service.filterCol()===t.key&&i.hoveredColumn!==t.key?8:-1)}}function Pe(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-table-cell",23),e.bIt("valueChange",function(i){l.eBV(t);const a=e.XpG().$implicit,d=e.XpG().$implicit,p=e.XpG();return l.Njj(p.onCellValueChange(a.key,d,i))}),e.k0s()}if(2&o){const t=e.XpG().$implicit,n=e.r8f(0),i=e.r8f(1),a=e.r8f(2),d=e.r8f(3),p=e.XpG().$index,v=e.XpG();e.AVh("hidden",t.displayOnlyOnHover&&v.hoveredRowIndex()!==p),e.Y8G("value",n)("valueType",i)("editable",a)("formatter",t.formatter)("size",v.size())("contentAlignment",d)}}function Re(o,u){if(1&o&&(e.SS7(0)(1)(2)(3),e.j41(4,"td",21),e.nVh(5,Pe,1,8,"cue-table-cell",22),e.k0s()),2&o){const t=u.$implicit,n=u.$index,i=e.XpG().$implicit,a=e.XpG(),d=e.r8f(1),p=e.bH3(i[t.key]);e.R7$();const v=e.bH3(d[n].type);e.R7$(),e.bH3(d[n].editable),e.R7$(),e.bH3(d[n].textAlign),e.R7$(),e.xc7("width",t.width)("padding",a.padding())("overflow","COMPONENT"===v?"visible":"hidden")("z-index","COMPONENT"===v?"100":"1"),e.R7$(),e.vxM(p?5:-1)}}function Fe(o,u){if(1&o){const t=e.RV6();e.j41(0,"tr",19),e.bIt("cueShortpress",function(){const i=l.eBV(t).$index,a=e.XpG();return l.Njj(a.onRowClick(i))})("mouseover",function(){const i=l.eBV(t).$index,a=e.XpG();return l.Njj(a.setHoveredRow(i))})("mouseout",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.setHoveredRow(void 0))})("filesDropped",function(i){const a=l.eBV(t).$implicit,d=e.XpG();return l.Njj(d.handleFileDrop(i,a))})("filesHovered",function(i){const a=l.eBV(t).$implicit,d=e.XpG();return l.Njj(d.handleFileHover(i,a))}),e.Z7z(1,Re,6,13,"td",20,e.Vm6),e.k0s()}if(2&o){const t=u.$index,n=e.XpG(),i=e.r8f(1);e.AVh("clickable",n.clickableRows()&&n.selectedRowIndex()!==t)("selected",n.selectedRowIndex()===t),e.Y8G("dropEnabled",n.fileUploadEnabled()),e.R7$(),e.Dyx(i)}}function Ve(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",24),e.bIt("filesDropped",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.handleFileDrop(i,void 0))})("filesHovered",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.handleFileHover(i,void 0))}),e.j41(1,"cue-typography"),e.EFF(2),e.k0s()()}if(2&o){const t=e.XpG();e.Y8G("dropEnabled",t.fileUploadEnabled()),e.R7$(2),e.JRh(t.emptyTableText())}}let Ne=(()=>{class o{service=(0,l.WQX)(O.a);host=(0,l.WQX)(e.aKT);renderer=(0,l.WQX)(e.sFG);removeClickListener;constructor(){Promise.resolve().then(()=>{this.removeClickListener=this.renderer.listen("document","click",t=>{this.host.nativeElement.contains(t.target)||(this.selectedRowIndex.set(void 0),this.clickedRow.emit(void 0))})})}ngOnDestroy(){this.removeClickListener&&this.removeClickListener()}columnDefs=(0,s.geq)([]);columnDefsGross=(0,s.geq)([]);data=(0,s.hFB)([]);settings=(0,s.hFB)(new c.QA);clickableRows=(0,s.hFB)(!1);size=(0,s.hFB)("m");filterValue=(0,s.geq)(void 0);filterOnlyVisible=(0,s.hFB)(!0);displayFilter=(0,s.hFB)(!1);filterOptions=(0,s.hFB)();sortCol=(0,s.geq)(void 0);sortOrder=(0,s.geq)("ASC");fixedWidth=(0,s.hFB)(!0);padding=(0,s.hFB)("6px 12px");fileUploadEnabled=(0,s.hFB)(!1);emptyTableText=(0,s.hFB)("No data available");displayedRows=(0,s.geq)(10);hidePaginator=(0,s.geq)(!1);contentChanged=(0,s.CGW)();sortUpdated=(0,s.CGW)();cellValueChange=(0,s.CGW)();selectionChange=(0,s.CGW)();clickedRow=(0,s.CGW)();hoveredRow=(0,s.CGW)();filesDropped=(0,s.CGW)();filesHovered=(0,s.CGW)();onFilterOptions=(0,l.QZP)(()=>{const t=this.filterOptions();void 0!==t&&this.service.filterOptions.update(()=>t)});onColumnDefs=(0,l.QZP)(()=>this.service.columnDefs.update(()=>this.columnDefs()));onData=(0,l.QZP)(()=>this.service.data.update(()=>this.data()));onSortCol=(0,l.QZP)(()=>this.service.sortCol.set(this.sortCol()));onSortOrder=(0,l.QZP)(()=>this.service.sortOrder.set(this.sortOrder()));onFilterValue=(0,l.QZP)(()=>this.service.filterValue.set(this.filterValue()));onFilterOnlyVisible=(0,l.QZP)(()=>this.service.filterOnlyVisible.set(this.filterOnlyVisible()));hoveredColumn=null;selection=(0,l.vPA)({});totalRows=this.service.totalRows;selectedRowIndex=(0,l.vPA)(void 0);hoveredRowIndex=(0,l.vPA)(void 0);clearSelectionOnData=(0,l.QZP)(()=>{this.data(),this.selectedRowIndex.set(void 0),this.hoveredRowIndex.set(void 0)});rows=this.service.sortedFilteredAndPaginated;hidePaginatorIfNotNecessary=(0,l.QZP)(()=>{this.totalRows()<this.displayedRows()?this.hidePaginator.set(!0):this.hidePaginator.set(!1)});setFilter(t){this.filterValue.set(t)}onPageChange(t){this.service.paginatorStartIndex.set(t.startIndex),this.service.paginatorEndIndex.set(t.endIndex)}onRowClick(t){if(this.clickableRows()){if(t===this.selectedRowIndex())return this.selectedRowIndex.set(void 0),void this.clickedRow.emit(void 0);this.selectedRowIndex.set(t),this.clickedRow.emit(this.rows()[t])}}getCellDirection(t){return"left"===t?"start":"right"===t?"end":"center"}onCellValueChange(t,n,i){const a=n[t];if(n[t]=i,"selectCol"===t){const d=n.selectCol,p={...this.selection()};p[t]=d?[...p[t]||[],n]:(p[t]||[]).filter(v=>v.index!==n.index),this.selection.set(p),this.selectionChange.emit()}else this.cellValueChange.emit({previousValue:a,newValue:i,index:n.index,key:t});this.contentChanged.emit(this.data())}setHoveredRow(t){this.hoveredRowIndex.set(t);const n=void 0===t?void 0:this.rows()[t];this.hoveredRow.emit(n)}handleFileDrop(t,n){this.fileUploadEnabled()&&this.filesDropped.emit({files:t,row:n})}handleFileHover(t,n){this.fileUploadEnabled()&&this.filesHovered.emit({hovered:t,row:n})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table"]],inputs:{columnDefs:[1,"columnDefs"],columnDefsGross:[1,"columnDefsGross"],data:[1,"data"],settings:[1,"settings"],clickableRows:[1,"clickableRows"],size:[1,"size"],filterValue:[1,"filterValue"],filterOnlyVisible:[1,"filterOnlyVisible"],displayFilter:[1,"displayFilter"],filterOptions:[1,"filterOptions"],sortCol:[1,"sortCol"],sortOrder:[1,"sortOrder"],fixedWidth:[1,"fixedWidth"],padding:[1,"padding"],fileUploadEnabled:[1,"fileUploadEnabled"],emptyTableText:[1,"emptyTableText"],displayedRows:[1,"displayedRows"],hidePaginator:[1,"hidePaginator"]},outputs:{columnDefs:"columnDefsChange",columnDefsGross:"columnDefsGrossChange",filterValue:"filterValueChange",sortCol:"sortColChange",sortOrder:"sortOrderChange",displayedRows:"displayedRowsChange",hidePaginator:"hidePaginatorChange",contentChanged:"contentChanged",sortUpdated:"sortUpdated",cellValueChange:"cellValueChange",selectionChange:"selectionChange",clickedRow:"clickedRow",hoveredRow:"hoveredRow",filesDropped:"filesDropped",filesHovered:"filesHovered"},features:[e.Jv_([],[O.a])],decls:18,vars:12,consts:[["direction","column","justify","start",1,"outer-container"],["justify","end"],[2,"width","100%",3,"columnDefs","columnDefsGross","settings"],[3,"width","padding"],[1,"scrollable-body"],[1,"fixed-width"],["cueFileDrop","",3,"clickable","selected","dropEnabled"],["direction","column","justify","center","align","center","cueFileDrop","",2,"min-height","200px",3,"dropEnabled"],[2,"flex","1"],[3,"pageSizeChange","currentPage","size","pageSize"],[3,"rows","columnDefs","displaySettings"],[2,"width","100%",3,"columnDefsChange","columnDefs","columnDefsGross","settings"],[3,"filterValueChange"],[3,"mouseenter","mouseleave"],["align","center","gap","s",3,"justify"],["weight","medium",2,"position","relative",3,"size","align"],[2,"position","absolute","right","-24px",3,"columnDef","firstCol","lastCol"],[3,"name"],["name","funnel"],["cueFileDrop","",3,"cueShortpress","mouseover","mouseout","filesDropped","filesHovered","dropEnabled"],[2,"position","relative",3,"width","padding","overflow","z-index"],[2,"position","relative"],[3,"hidden","value","valueType","editable","formatter","size","contentAlignment"],[3,"valueChange","value","valueType","editable","formatter","size","contentAlignment"],["direction","column","justify","center","align","center","cueFileDrop","",2,"min-height","200px",3,"filesDropped","filesHovered","dropEnabled"]],template:function(n,i){if(1&n){const a=e.RV6();e.j41(0,"cue-flexcontainer",0),e.SS7(1)(2),e.nVh(3,Me,2,3,"cue-flexcontainer",1),e.nVh(4,De,1,3,"cue-table-column-select",2),e.nVh(5,Te,1,0,"cue-table-toolbar"),e.j41(6,"table")(7,"thead"),e.Z7z(8,Oe,9,15,"th",3,xe),e.k0s()(),e.j41(10,"div",4)(11,"table",5)(12,"tbody"),e.Z7z(13,Fe,3,5,"tr",6,e.Vm6),e.k0s()()(),e.nVh(15,Ve,3,2,"cue-flexcontainer",7),e.nrm(16,"span",8),e.j41(17,"cue-paginator",9),e.mxI("pageSizeChange",function(p){return l.eBV(a),e.DH7(i.displayedRows,p)||(i.displayedRows=p),l.Njj(p)}),e.bIt("currentPage",function(p){return i.onPageChange(p)}),e.k0s()()}if(2&n){e.R7$();const a=e.bH3(i.columnDefs());e.R7$();const d=e.bH3(i.settings());e.R7$(),e.vxM(d.menuDisplaySettings.hide?-1:3),e.R7$(),e.vxM(i.service.showColumnSettings()?4:-1),e.R7$(),e.vxM(i.displayFilter()?5:-1),e.R7$(),e.AVh("fixed-width",i.fixedWidth()),e.R7$(2),e.Dyx(a),e.R7$(5),e.Dyx(i.rows()),e.R7$(2),e.vxM(i.rows().length?-1:15),e.R7$(2),e.xc7("display",i.hidePaginator()?"none":"block"),e.Y8G("size",i.totalRows()),e.R50("pageSize",i.displayedRows)}},dependencies:[N.FlexContainer,D.A,ve,Ce.m,R.Typography,w,m.F,A,te,le,se],styles:[".fixed-width[_ngcontent-%COMP%]{table-layout:fixed;width:100%}.outer-container[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.scrollable-body[_ngcontent-%COMP%]{overflow:auto;width:100%}table[_ngcontent-%COMP%]{border-collapse:collapse;color:var(--cue-table-text-color);width:100%}th[_ngcontent-%COMP%]{padding:10px 18px!important;position:relative}th[_ngcontent-%COMP%] cue-svg-icon[_ngcontent-%COMP%]{--cue-icon-width: 16px !important;vertical-align:middle}td[_ngcontent-%COMP%]{border-bottom:1px solid var(--cue-table-border-color);border-left:none;border-right:none;border-top:none;max-width:120px;white-space:nowrap;text-overflow:ellipsis;padding:10px 16px!important;transition:background-color .2s ease,color .2s ease;background-color:transparent}td[_ngcontent-%COMP%]:first-child{border-left:4px solid transparent;transition:border-left-color .2s ease}tr[_ngcontent-%COMP%]{transition:background-color .2s ease}tr[_ngcontent-%COMP%]:hover:not(.selected){background-color:var(--cue-table-row-hover-bg)}tr[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]:first-child{border-left-color:var(--cue-color-blue)}tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:none}.clickable[_ngcontent-%COMP%]{cursor:pointer;transition:background-color .2s ease,color .2s ease}.clickable[_ngcontent-%COMP%]:hover:not(.selected){background-color:var(--cue-table-highlight-color);color:var(--cue-table-highlight-text-color)}tr.selected[_ngcontent-%COMP%]{background-color:var(--cue-table-highlight-color)!important;color:var(--cue-table-text-color)!important;transition:none}tr.selected[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-left:4px solid var(--cue-color-blue)}tr.selected[_ngcontent-%COMP%]:hover, tr.selected[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%], tr.selected[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:hover{background-color:var(--cue-table-highlight-color)!important;color:var(--cue-table-text-color)!important}.hidden[_ngcontent-%COMP%]{display:none}.file-hover[_ngcontent-%COMP%]{border:1px solid;margin:-1px}"],changeDetection:0})}return o})()},1493(F,k,r){function e(l,s=!1,c=1){const T=s?1e3:1024;if(Math.abs(l)<T)return l+" B";const D=s?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let b=-1;const _=10**c;do{l/=T,++b}while(Math.round(Math.abs(l)*_)/_>=T&&b<D.length-1);return l.toFixed(c)+" "+D[b]}r.d(k,{b:()=>e})}}]);
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[3213,9695],{2217(R,k,r){r.d(k,{o:()=>y});var e=r(7705),l=r(2271),s=r(2245),c=r(5547),w=r(5802);function v(_,O){if(1&_&&(w.qSk(),c.j41(0,"svg",0),c.nrm(1,"path",3)(2,"path",4),c.k0s()),2&_){const b=c.XpG();c.R7$(),c.BMQ("fill",b.colorDark()),c.R7$(),c.BMQ("fill",b.color())}}function g(_,O){if(1&_&&(w.qSk(),c.j41(0,"svg",1),c.nrm(1,"path",5)(2,"path",6)(3,"path",7),c.k0s()),2&_){const b=c.XpG();c.R7$(2),c.BMQ("fill",b.color())}}const d_blue="#175EBB",C={".dwg":d_blue,".dxf":d_blue,".doc":d_blue,".docx":d_blue,".ifc":"#9F388D",".pdf":"#E03833",".ppt":d_blue,".pptx":d_blue,".csv":"#0b7741",".xls":"#0b7741",".xlsx":"#0b7741",folder:"#9D9998"};let y=(()=>{class _{suffix=e.hFB.required();size=(0,e.hFB)("m");color=(0,l.EW)(()=>C[this.suffix()]??"#9D9998");label=(0,l.EW)(()=>this.suffix().startsWith(".")?this.suffix().toUpperCase().replace(/^\./,""):"");className=(0,l.EW)(()=>`size-${this.size()}`);colorDark=(0,l.EW)(()=>{const b=this.color(),p=parseInt(b.slice(1),16),m=p>>8&255,M=255&p;return`#${(Math.floor(.8*(p>>16&255))<<16|Math.floor(.8*m)<<8|Math.floor(.8*M)).toString(16).padStart(6,"0")}`});static \u0275fac=function(p){return new(p||_)};static \u0275cmp=c.VBU({type:_,selectors:[["cue-file-icon"]],hostVars:2,hostBindings:function(p,T){2&p&&c.HbH(T.className())},inputs:{suffix:[1,"suffix"],size:[1,"size"]},decls:4,vars:2,consts:[["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 48 48"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 30"],["size","xs","align","center","weight","semibold"],["d","M40 12H22l-4-4H8c-2.2 0-4 1.8-4 4v8h40v-4c0-2.2-1.8-4-4-4"],["d","M40 12H8c-2.2 0-4 1.8-4 4v20c0 2.2 1.8 4 4 4h32c2.2 0 4-1.8 4-4V16c0-2.2-1.8-4-4-4"],["fill","var(--cue-border-color)","d","M16.2.5H4.1C2.1.5.5 2.1.5 4.1v22.3c0 1.7 1.4 3.1 3.1 3.1h16.8c1.7 0 3.1-1.4 3.1-3.1V7.8h-.1c0-.1-7-7.1-7-7.1h-.1l-.1-.2Z"],["d","M4.1 1C2.4 1 1 2.4 1 4.1v22.3C1 27.8 2.2 29 3.6 29h16.8c1.4 0 2.6-1.2 2.6-2.6V8l-7-7H4.1Z"],["fill","#fff","d","M16 6c0 1.1.9 2 2 2h5l-7-7v5Z","opacity",".3"]],template:function(p,T){1&p&&(c.nVh(0,v,3,2,":svg:svg",0)(1,g,4,1,":svg:svg",1),c.j41(2,"cue-typography",2),c.EFF(3),c.k0s()),2&p&&(c.vxM("folder"===T.suffix()?0:1),c.R7$(3),c.JRh(T.label()))},dependencies:[s.Typography],styles:["[_nghost-%COMP%]{display:block;position:relative;aspect-ratio:30 / 24;width:var(--cue-dim-elem-m)}.size-xs[_nghost-%COMP%]{width:var(--cue-dim-elem-xs)}.size-s[_nghost-%COMP%]{width:var(--cue-dim-elem-s)}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{display:block;width:100%;height:auto}[_nghost-%COMP%] cue-typography[_ngcontent-%COMP%]{color:#fff;text-transform:uppercase;position:absolute;left:50%;bottom:24%;transform:translate(-50%)}"]})}return _})()},9695(R,k,r){r.d(k,{Switch:()=>v});var e=r(7705),l=r(29),s=r(5547);function c(g,d){if(1&g&&s.nrm(0,"cue-svg-icon",2),2&g){const C=s.XpG();s.Y8G("name",C.iconChecked())}}function w(g,d){if(1&g&&s.nrm(0,"cue-svg-icon",2),2&g){const C=s.XpG();s.Y8G("name",C.icon())}}let v=(()=>{class g{size=(0,e.hFB)("m");icon=(0,e.hFB)(void 0);iconChecked=(0,e.hFB)(void 0);disabled=(0,e.hFB)(!1);checked=(0,e.geq)(!1);toggleChange=(0,e.CGW)();toggle(){this.checked.set(!this.checked()),this.toggleChange.emit(this.checked())}static \u0275fac=function(y){return new(y||g)};static \u0275cmp=s.VBU({type:g,selectors:[["cue-input-switch"]],hostVars:5,hostBindings:function(y,_){2&y&&(s.BMQ("size",_.size()),s.AVh("checked",_.checked())("disabled",_.disabled()))},inputs:{size:[1,"size"],icon:[1,"icon"],iconChecked:[1,"iconChecked"],disabled:[1,"disabled"],checked:[1,"checked"]},outputs:{checked:"checkedChange",toggleChange:"toggleChange"},decls:4,vars:3,consts:[["type","checkbox",3,"click","checked","disabled"],[1,"indicator"],[3,"name"]],template:function(y,_){1&y&&(s.j41(0,"input",0),s.bIt("click",function(){return _.toggle()}),s.k0s(),s.j41(1,"div",1),s.nVh(2,c,1,1,"cue-svg-icon",2)(3,w,1,1,"cue-svg-icon",2),s.k0s()),2&y&&(s.Y8G("checked",_.checked())("disabled",_.disabled()),s.R7$(2),s.vxM(_.checked()&&_.iconChecked()?2:_.icon()?3:-1))},dependencies:[l.A],styles:["[_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-width: calc(var(--cue-input-switch-height) * 1.7);--cue-input-switch-inset: 2px;--cue-input-switch-indicator-width: calc( var(--cue-input-switch-height) - (2 * var(--cue-input-switch-inset)) );--cue-input-switch-icon-width: calc( var(--cue-input-switch-indicator-width) - (2 * var(--cue-input-switch-inset)) );display:block;flex-shrink:0;position:relative;height:var(--cue-input-switch-height);width:var(--cue-input-switch-width);border-radius:var(--cue-input-switch-height);--cue-icon-width: var(--cue-input-switch-icon-width);background:var(--cue-input-switch-background);transition:background-color .4s ease}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 12px;--cue-input-switch-inset: 1px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 14px;--cue-input-switch-inset: 1px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-inset: 2px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 22px;--cue-input-switch-inset: 3px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 28px;--cue-input-switch-inset: 3px}@container cue-container (width < 20em){[_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 10px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 12px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 18px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 20px}}.checked[_nghost-%COMP%]{background:var(--cue-input-switch-checked-background)}.disabled[_nghost-%COMP%]{background:var(--cue-input-switch-disabled-background);cursor:default}[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{pointer-events:none;position:absolute;left:var(--cue-input-switch-inset);top:var(--cue-input-switch-inset);width:var(--cue-input-switch-indicator-width);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;background-color:var(--cue-input-switch-indicator-background);color:var(--cue-input-switch-indicator-foreground);transition:left .4s ease,background-color .4s ease,color .4s ease}.checked[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{left:calc(var(--cue-input-switch-width) - var(--cue-input-switch-inset) - var( --cue-input-switch-indicator-width ));background:var(--cue-input-switch-checked-indicator-background);color:var(--cue-input-switch-checked-indicator-foreground)}.disabled[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{background:var(--cue-input-switch-disabled-indicator-background);color:var(--cue-input-switch-disabled-indicator-foreground)}input[_ngcontent-%COMP%]{all:unset;position:absolute;inset:0;cursor:pointer;border-radius:var(--cue-input-switch-height)}input[_ngcontent-%COMP%]:focus-visible:not(:disabled) + .indicator[_ngcontent-%COMP%]{outline:1px solid var(--cue-input-switch-focus-color);outline-offset:2px}"]})}return g})()},5745(R,k,r){r.d(k,{a:()=>b});var e=r(7705),l=r(5802),s=r(2271),c=r(5547);const w=["dialog"],v=["*",[["","modal-footer",""]]],g=["*","[modal-footer]"];function d(p,T){if(1&p&&(c.rj2(0,"h2",7),c.EFF(1),c.eux()),2&p){const m=c.XpG(3);c.R7$(),c.JRh(m.effectiveTitle())}}function C(p,T){if(1&p&&(c.rj2(0,"p",8),c.EFF(1),c.eux()),2&p){const m=c.XpG(3);c.R7$(),c.JRh(m.subtitle())}}function y(p,T){if(1&p){const m=c.RV6();c.rj2(0,"button",10),c.VwU("click",function(){l.eBV(m);const D=c.XpG(3);return l.Njj(D.onClose())}),l.qSk(),c.rj2(1,"svg",11),c.Hgh(2,"path",12),c.eux()()}}function _(p,T){if(1&p&&(c.rj2(0,"div",4)(1,"div",6),c.nVh(2,d,2,1,"h2",7),c.nVh(3,C,2,1,"p",8),c.eux(),c.nVh(4,y,3,0,"button",9),c.eux()),2&p){const m=c.XpG(2);c.R7$(2),c.vxM(m.effectiveTitle()?2:-1),c.R7$(),c.vxM(m.subtitle()?3:-1),c.R7$(),c.vxM(m.displayCloseBtn()?4:-1)}}function O(p,T){if(1&p&&(c.rj2(0,"div",3),c.VwU("click",function(M){return M.stopPropagation()}),c.nVh(1,_,5,3,"div",4),c.rj2(2,"div",5),c.SdG(3),c.eux(),c.SdG(4,1),c.eux()),2&p){const m=c.XpG();c.xc7("min-width",m.minWidth()),c.AVh("has-header",m.effectiveTitle()||m.displayCloseBtn()),c.R7$(),c.vxM(m.effectiveTitle()||m.displayCloseBtn()?1:-1)}}let b=(()=>{class p{visible=(0,e.geq)(!0);closeOnBackgroundClick=(0,e.hFB)(!0);displayCloseBtn=(0,e.hFB)(!0);label=(0,e.hFB)("");title=(0,e.hFB)("");subtitle=(0,e.hFB)("");minWidth=(0,e.hFB)();close=(0,e.CGW)();dialogRef=e.ebz.required("dialog");effectiveTitle=(0,s.EW)(()=>this.title()||this.label());constructor(){(0,l.QZP)(()=>{const m=this.dialogRef().nativeElement;this.visible()?m.open||m.showModal():m.open&&m.close()})}onBackdropClick(){this.closeOnBackgroundClick()&&this.onClose()}onClose(){this.visible.set(!1),this.close.emit()}static \u0275fac=function(M){return new(M||p)};static \u0275cmp=c.VBU({type:p,selectors:[["cue-modal"]],viewQuery:function(M,D){1&M&&c.wEZ(D.dialogRef,w,5),2&M&&c.NyB()},inputs:{visible:[1,"visible"],closeOnBackgroundClick:[1,"closeOnBackgroundClick"],displayCloseBtn:[1,"displayCloseBtn"],label:[1,"label"],title:[1,"title"],subtitle:[1,"subtitle"],minWidth:[1,"minWidth"]},outputs:{visible:"visibleChange",close:"close"},ngContentSelectors:g,decls:3,vars:1,consts:[["dialog",""],[1,"modal-dialog",3,"cancel","click"],[1,"panel",3,"has-header","minWidth"],[1,"panel",3,"click"],[1,"header"],[1,"body"],[1,"header-text"],[1,"modal-title"],[1,"modal-subtitle"],["type","button","aria-label","Close",1,"close-btn"],["type","button","aria-label","Close",1,"close-btn",3,"click"],["viewBox","0 0 256 256","xmlns","http://www.w3.org/2000/svg"],["fill","currentColor","d","M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L61.34 72.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z"]],template:function(M,D){1&M&&(c.NAR(v),c.rj2(0,"dialog",1,0),c.VwU("cancel",function(){return D.onClose()})("click",function(){return D.onBackdropClick()}),c.nVh(2,O,5,5,"div",2),c.eux()),2&M&&(c.R7$(2),c.vxM(D.visible()?2:-1))},styles:[".modal-dialog[_ngcontent-%COMP%]{padding:0;border:none;background:transparent;overflow:visible;margin:auto;outline:none;max-width:min(calc(100vw - 32px),80vw)}.modal-dialog[_ngcontent-%COMP%]::backdrop{background-color:var(--cue-modal-overlay-color, rgba(14, 24, 39, .55));-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.panel[_ngcontent-%COMP%]{background:var(--cue-default);color:var(--cue-defaultContrast);border-radius:24px;border:1px solid var(--cue-border-color);box-shadow:0 12px 48px #00000047;max-height:88vh;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;scrollbar-width:thin}.header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;padding:26px 26px 0;margin-bottom:20px}.header-text[_ngcontent-%COMP%]{flex:1}.modal-title[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:700;letter-spacing:-.01em;font-family:var(--cue-font-family);color:var(--cue-defaultContrast)}.modal-subtitle[_ngcontent-%COMP%]{margin:5px 0 0;font-size:13px;color:var(--cue-color-midgray);letter-spacing:.02em;line-height:1.5}.close-btn[_ngcontent-%COMP%]{flex:none;width:34px;height:34px;border-radius:50%;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--cue-color-midgray);padding:0;margin-top:-4px;transition:background .15s,color .15s}.close-btn[_ngcontent-%COMP%]:hover{background:var(--cue-main-background);color:var(--cue-main-foreground)}.close-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;display:block}.body[_ngcontent-%COMP%]{padding:26px}.has-header[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{padding-top:0}"]})}return p})()},5277(R,k,r){r.d(k,{Table:()=>Be});var e=r(5547),l=r(5802),s=r(7705),c=r(2716),w=r(9417),v=r(29),g=r(8957);function d(o,u){if(1&o){const t=e.RV6();e.nrm(0,"span",1),e.j41(1,"button",2),e.bIt("click",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.toggleFilterDisplay())}),e.nrm(2,"cue-svg-icon",3),e.k0s()}}function C(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-input",4),e.bIt("keyup",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.updateFilter(i))}),e.k0s(),e.j41(1,"button",5),e.bIt("click",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.toggleFilterDisplay())}),e.nrm(2,"cue-svg-icon",3),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("value",t.filterValue())("label",t.filterLabel())("placeholder",t.filterLabel())}}let y=(()=>{class o{ngOnDestroy(){clearTimeout(this._debounceTimer)}filterLabel=(0,s.hFB)("Filter");filterValue=(0,s.hFB)("");filterValueChange=(0,s.CGW)();debounceTime=(0,s.hFB)(200);filterVisible=(0,l.vPA)(!0);_debounceTimer;_value="";updateFilter(t){this._value=t.target.value,clearTimeout(this._debounceTimer),this._debounceTimer=setTimeout(()=>{this.filterValueChange.emit(this._value)},this.debounceTime())}toggleFilterDisplay(){this.filterVisible()?this.filterVisible.set(!1):this.filterVisible.set(!0)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table-toolbar"]],inputs:{filterLabel:[1,"filterLabel"],filterValue:[1,"filterValue"],debounceTime:[1,"debounceTime"]},outputs:{filterValueChange:"filterValueChange"},decls:3,vars:2,consts:[[1,"filter-row"],[2,"flex","1"],["mat-icon-button","","aria-label","Show filter",3,"click"],["name","filter"],[2,"width","100%",3,"keyup","value","label","placeholder"],["mat-icon-button","","aria-label","Hide filter",3,"click"]],template:function(n,i){1&n&&(e.j41(0,"div",0),e.nVh(1,d,3,0),e.nVh(2,C,3,3),e.k0s()),2&n&&(e.R7$(),e.vxM(i.filterVisible()?-1:1),e.R7$(),e.vxM(i.filterVisible()?2:-1))},dependencies:[w.YN,v.A,g.Input],styles:[".filter-row[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;gap:.6rem;align-items:center;padding-bottom:.2rem;font-family:var(--cue-font-family);color:var(--cue-table-text-color)} .filter-row .mat-mdc-form-field-subscript-wrapper{height:0}"]})}return o})();var _=r(9457),O=r(992),b=r(2271),p=r(6117),T=r(356),m=r(6279),M=r(5971),D=r(3319),P=r(4152);const N=(o,u)=>u.label;function E(o,u){if(1&o&&e.nrm(0,"cue-svg-icon",6),2&o){const t=e.XpG().$implicit;e.Y8G("name",t.icon)}}function z(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-menu-item",5),e.bIt("click",function(){const i=l.eBV(t).$implicit;return l.Njj(i.action())}),e.nVh(1,E,1,1,"cue-svg-icon",6),e.EFF(2),e.k0s()}if(2&o){const t=u.$implicit;e.R7$(),e.vxM(t.icon?1:-1),e.R7$(),e.SpI(" ",t.label)}}function $(o,u){if(1&o&&(e.j41(0,"cue-menu",1)(1,"cue-button",2,0),e.nrm(3,"cue-button-icon",3),e.k0s(),e.j41(4,"cue-menu-wrap",4),e.Z7z(5,z,3,2,"cue-menu-item",null,N),e.k0s()()),2&o){const t=e.XpG();e.R7$(),e.Y8G("variant",t.displaySettings().buttonVariant)("size",t.displaySettings().buttonSize),e.R7$(4),e.Dyx(t.menuContent())}}let A=(()=>{class o{_service=(0,l.WQX)(O.a);displaySettings=(0,s.hFB)(new c.d9);rows=s.hFB.required();columnDefs=s.hFB.required();menuContentBefore=(0,s.hFB)([]);menuContentAfter=(0,s.hFB)([]);menuContent=(0,b.EW)(()=>{const t=this.displaySettings(),n=[];return this.menuContentBefore()&&n.push(...this.menuContentBefore()),t.showColumnSelect&&n.push({label:this._service.showColumnSettings()?"Hide column settings":"Show column settings",icon:"settings",action:()=>this._service.showColumnSettings.set(!this._service.showColumnSettings())}),t.showDownload&&n.push({label:"Download CSV",icon:"download",action:()=>{const i=this.rows(),a=this.columnDefs();(0,P.B)(i,a)}}),this.menuContentAfter()&&n.push(...this.menuContentAfter()),n});static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table-menu"]],inputs:{displaySettings:[1,"displaySettings"],rows:[1,"rows"],columnDefs:[1,"columnDefs"],menuContentBefore:[1,"menuContentBefore"],menuContentAfter:[1,"menuContentAfter"]},decls:1,vars:1,consts:[["trigger",""],["positioning","bottomright"],["trigger","",3,"variant","size"],["icon","more-vert"],["menu",""],[3,"click"],["before","",3,"name"]],template:function(n,i){1&n&&e.nVh(0,$,7,2,"cue-menu",1),2&n&&e.vxM(i.menuContent().length&&!i.displaySettings().hide?0:-1)},dependencies:[p.W,M.Button,D.ButtonIcon,T.M,m.D,v.A],encapsulation:2,changeDetection:0})}return o})();var V=r(7598),j=r(7089),L=r(9495),X=r(5745),B=r(5381),F=r(2245),W=r(63),G=r(9695);function H(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",2)(1,"cue-typography",3),e.EFF(2,"Label"),e.k0s(),e.j41(3,"cue-typography",3)(4,"cue-inline-input",4),e.mxI("valueChange",function(i){l.eBV(t);const a=e.XpG();return e.DH7(a.columnDef().label,i)||(a.columnDef().label=i),l.Njj(i)}),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(4),e.R50("value",t.columnDef().label)}}function U(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",2)(1,"cue-typography",3),e.EFF(2,"Text align"),e.k0s(),e.j41(3,"cue-select",5),e.bIt("valueChange",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.setTextAlign(i))}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.Y8G("value",t.columnDef().textAlign)("options",t.alignOptions)}}function Y(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",2)(1,"cue-typography",6),e.EFF(2,"Editable"),e.k0s(),e.j41(3,"cue-input-switch",7),e.bIt("checkedChange",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.setEditable(i))}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.Y8G("checked",t.columnDef().editable)}}function Q(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",2)(1,"cue-typography",8),e.EFF(2,"Only on hover"),e.k0s(),e.j41(3,"cue-input-switch",7),e.bIt("checkedChange",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.setOnlyOnHover(i))}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.Y8G("checked",t.columnDef().displayOnlyOnHover)}}let Z=(()=>{class o{columnDef=s.geq.required();close=(0,s.CGW)();settings=s.hFB.required();alignOptions=["left","right","center"];columnTypeEditable=(0,b.EW)(()=>{console.log(this.columnDef())});setTextAlign(t){const n=this.columnDef();n.textAlign=t,this.columnDef.update(()=>n)}setEditable(t){const n=this.columnDef();n.editable=t,this.columnDef.update(()=>n)}setOnlyOnHover(t){const n=this.columnDef();n.displayOnlyOnHover=t,this.columnDef.update(()=>n)}setLabel(t){console.log(t)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table-column-settings-modal"]],inputs:{columnDef:[1,"columnDef"],settings:[1,"settings"]},outputs:{columnDef:"columnDefChange",close:"close"},decls:6,vars:4,consts:[["label","Column Settings",3,"close"],["direction","column",2,"margin-top","2rem"],["direction","row","gap","l","justify","space-between","align","center"],["size","m"],[3,"valueChange","value"],[3,"valueChange","value","options"],["size","m","cueTooltip","Allow the user to edit the field?"],["size","xs",3,"checkedChange","checked"],["size","m","cueTooltip","Only display the cell value when the row is being hovered?"]],template:function(n,i){1&n&&(e.j41(0,"cue-modal",0),e.bIt("close",function(){return i.close.emit()}),e.j41(1,"cue-flexcontainer",1),e.nVh(2,H,5,1,"cue-flexcontainer",2),e.nVh(3,U,4,2,"cue-flexcontainer",2),e.nVh(4,Y,4,1,"cue-flexcontainer",2),e.nVh(5,Q,4,1,"cue-flexcontainer",2),e.k0s()()),2&n&&(e.R7$(2),e.vxM(i.settings().allowSettingLabel?2:-1),e.R7$(),e.vxM(i.settings().allowSettingTextAlign?3:-1),e.R7$(),e.vxM(i.settings().allowToggleEditable?4:-1),e.R7$(),e.vxM(i.settings().allowToggleHideOnHover?5:-1))},dependencies:[X.a,B.FlexContainer,F.Typography,W.Select,G.Switch,j.d,L.InlineInput],encapsulation:2,changeDetection:0})}return o})();const S=o=>[o];function K(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-table-column-settings-modal",8),e.bIt("close",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.displayColumnSettings.set(void 0))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("columnDef",u)("settings",t.settings())}}function J(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-button",11),e.bIt("click",function(){l.eBV(t);const i=e.XpG().$implicit,a=e.XpG();return l.Njj(a.displayColumnSettings.set(i))}),e.nrm(1,"cue-button-icon",12),e.k0s()}}function q(o,u){if(1&o&&(e.j41(0,"div",7)(1,"cue-flexcontainer",9)(2,"cue-typography"),e.EFF(3),e.k0s(),e.nVh(4,J,2,0,"cue-button",10),e.k0s()()),2&o){const t=u.$implicit,n=e.XpG();e.R7$(3),e.JRh(t.label),e.R7$(),e.vxM(n.settings().allowEditing?4:-1)}}function ee(o,u){if(1&o&&(e.j41(0,"div",7)(1,"cue-typography"),e.EFF(2),e.k0s()()),2&o){const t=u.$implicit;e.R7$(2),e.JRh(t.label)}}let te=(()=>{class o{columnDefs=s.geq.required();columnDefsGross=(0,s.geq)([]);settings=(0,s.hFB)(new c.OX);shown=(0,s.CGW)();shownColumns=(0,l.vPA)([]);hiddenColumns=(0,l.vPA)([]);displayColumnSettings=(0,l.vPA)(void 0);onNoColumnDefsGross=(0,l.QZP)(()=>{(!this.columnDefsGross()||0===this.columnDefsGross().length)&&this.columnDefsGross.set(this.columnDefs())});onColumnDefs=(0,l.QZP)(()=>{const t=this.columnDefs().map(i=>i.key),n=this.columnDefsGross().filter(i=>!t.includes(i.key));this.shownColumns.update(()=>[...this.columnDefs()]),this.hiddenColumns.update(()=>[...n])});drop(t){t.previousContainer===t.container?(0,V.HD)(t.container.data,t.previousIndex,t.currentIndex):(0,V.eg)(t.previousContainer.data,t.container.data,t.previousIndex,t.currentIndex);const n=this.shownColumns();this.columnDefs.update(()=>[...n]),this.shown.emit(n)}showColumnSettings(t){console.log(t)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table-column-select"]],inputs:{columnDefs:[1,"columnDefs"],columnDefsGross:[1,"columnDefsGross"],settings:[1,"settings"]},outputs:{columnDefs:"columnDefsChange",columnDefsGross:"columnDefsGrossChange",shown:"shown"},decls:16,vars:9,consts:[["todoList","cdkDropList"],["doneList","cdkDropList"],[3,"columnDef","settings"],["direction","row"],["direction","column",1,"panel"],["size","l"],["cdkDropList","",1,"list",3,"cdkDropListDropped","cdkDropListData","cdkDropListConnectedTo"],["cdkDrag","",1,"box","draggable"],[3,"close","columnDef","settings"],["front","","justify","space-between","align","center",2,"width","100%"],["variant","tertiary","size","s","cueTooltip","Column settings"],["variant","tertiary","size","s","cueTooltip","Column settings",3,"click"],["icon","more-vert"]],template:function(n,i){if(1&n&&(e.nVh(0,K,1,2,"cue-table-column-settings-modal",2),e.j41(1,"cue-flexcontainer",3)(2,"cue-flexcontainer",4)(3,"cue-typography",5),e.EFF(4,"Shown"),e.k0s(),e.j41(5,"div",6,0),e.bIt("cdkDropListDropped",function(h){return i.drop(h)}),e.Z7z(7,q,5,2,"div",7,e.Vm6),e.k0s()(),e.j41(9,"cue-flexcontainer",4)(10,"cue-typography",5),e.EFF(11,"Hidden"),e.k0s(),e.j41(12,"div",6,1),e.bIt("cdkDropListDropped",function(h){return i.drop(h)}),e.Z7z(14,ee,3,1,"div",7,e.Vm6),e.k0s()()()),2&n){let a;const h=e.sdS(6),f=e.sdS(13);e.vxM((a=i.displayColumnSettings())?0:-1,a);const x=i.shownColumns();e.R7$(5),e.Y8G("cdkDropListData",x)("cdkDropListConnectedTo",e.eq3(5,S,f)),e.R7$(2),e.Dyx(x);const I=i.hiddenColumns();e.R7$(5),e.Y8G("cdkDropListData",I)("cdkDropListConnectedTo",e.eq3(7,S,h)),e.R7$(2),e.Dyx(I)}},dependencies:[V.O7,V.T1,F.Typography,B.FlexContainer,M.Button,D.ButtonIcon,j.d,Z],styles:[".panel[_ngcontent-%COMP%]{width:50%}.list[_ngcontent-%COMP%]{border:solid 1px #ccc;min-height:60px;background:#fff;border-radius:4px;overflow:hidden;display:block}.box[_ngcontent-%COMP%]{padding:20px 10px;border-bottom:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;background:#fff;font-size:14px}.draggable[_ngcontent-%COMP%]{cursor:move}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border:none}.list.cdk-drop-list-dragging[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}return o})();function ne(o,u){1&o&&e.EFF(0," sort ")}function oe(o,u){if(1&o&&e.EFF(0),2&o){const t=e.XpG();e.SpI(" ",t.service.sortOrder()," ")}}function ie(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-button",11,0),e.bIt("click",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.clearFilter())}),e.nrm(2,"cue-button-icon",12),e.k0s()}}let le=(()=>{class o{service=(0,l.WQX)(O.a);firstCol=(0,s.hFB)(!1);lastCol=(0,s.hFB)(!1);columnDef=s.hFB.required();isSortCol=(0,b.EW)(()=>this.service.sortCol()===this.columnDef().key);isFilterCol=(0,b.EW)(()=>this.service.filterCol()===this.columnDef().key);filterVal=(0,b.EW)(()=>this.isFilterCol()?this.service.filterValue()??"":"");exactMatch=this.service.filterExactMatch;positioning=(0,b.EW)(()=>this.firstCol()?"bottomleft":(this.lastCol(),"bottomright"));toggleFilterExactMatch(t){t.stopPropagation(),this.exactMatch.set(!this.exactMatch())}setSortBy(t){t.stopPropagation();const n=this.columnDef().key;if(this.isSortCol()){const i="ASC"===this.service.sortOrder()?"DESC":"ASC";this.service.sortOrder.set(i)}this.service.sortCol.set(n)}setFilter(t){if(""===t)return this.clearFilter();this.service.filterCol.set(this.columnDef().key),this.service.filterValue.set(t)}clearFilter(){this.isFilterCol()&&(this.service.filterCol.set(void 0),this.service.filterValue.set(void 0))}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-column-menu"]],inputs:{firstCol:[1,"firstCol"],lastCol:[1,"lastCol"],columnDef:[1,"columnDef"]},decls:18,vars:6,consts:[["trigger",""],[3,"positioning"],["trigger","","variant","tertiary","size","xs"],["icon","more-vert"],["menu",""],[3,"click"],["after","",3,"name"],["align","center"],["size","xs",3,"checked"],["align","center","justify","space-between"],["placeholder","Filter...",3,"valueChange","value"],["trigger","","variant","tertiary","size","xs",3,"click"],["icon","close"]],template:function(n,i){1&n&&(e.j41(0,"cue-menu",1)(1,"cue-button",2,0),e.nrm(3,"cue-button-icon",3),e.k0s(),e.j41(4,"cue-menu-wrap",4)(5,"cue-menu-item",5),e.bIt("click",function(h){return i.setSortBy(h)}),e.nVh(6,ne,1,0)(7,oe,1,1),e.nrm(8,"cue-svg-icon",6),e.k0s(),e.j41(9,"cue-menu-item",5),e.bIt("click",function(h){return i.toggleFilterExactMatch(h)}),e.j41(10,"cue-flexcontainer",7),e.nrm(11,"cue-input-switch",8),e.j41(12,"cue-typography"),e.EFF(13,"Exact match"),e.k0s()()(),e.j41(14,"cue-menu-item")(15,"cue-flexcontainer",9)(16,"cue-input",10),e.bIt("valueChange",function(h){return i.setFilter(h)}),e.k0s(),e.nVh(17,ie,3,0,"cue-button",2),e.k0s()()()()),2&n&&(e.Y8G("positioning",i.positioning()),e.R7$(6),e.vxM(i.isSortCol()?7:6),e.R7$(2),e.Y8G("name","ASC"===i.service.sortOrder()?"arrow-up":"arrow-down"),e.R7$(3),e.Y8G("checked",i.exactMatch()),e.R7$(5),e.Y8G("value",i.filterVal()),e.R7$(),e.vxM(i.filterVal()?17:-1))},dependencies:[M.Button,p.W,m.D,T.M,D.ButtonIcon,v.A,B.FlexContainer,g.Input,G.Switch,F.Typography],styles:["[_nghost-%COMP%] .popover{padding:12px!important}[_nghost-%COMP%] cue-menu-wrap{border:1px solid var(--cue-border-color);box-shadow:0 4px 12px #00000026;overflow:hidden}[_nghost-%COMP%] cue-input .input::placeholder{font-size:12px!important;color:var(--cue-input-placeholder-color)!important}[_nghost-%COMP%] cue-input .input{font-size:12px!important;border-bottom:none!important;color:var(--cue-input-value-color)!important}[_nghost-%COMP%] button{background:var(--cue-color-ultralightgray)!important}[_nghost-%COMP%] button:hover{background:var(--cue-color-ultralightgray)!important}[_nghost-%COMP%] button:focus{background:var(--cue-color-ultralightgray)!important}[_nghost-%COMP%] button:active{background:var(--cue-color-ultralightgray)!important}[_nghost-%COMP%] cue-svg-icon{--cue-icon-width: 14px !important}body.dark [_nghost-%COMP%] cue-svg-icon, body.dark [_nghost-%COMP%] cue-input .input::placeholder, body.dark [_nghost-%COMP%] button cue-typography, body.dark [_nghost-%COMP%] cue-input .input{color:var(--cue-color-black)!important}"],changeDetection:0})}return o})();var ce=r(9595);let se=(()=>{class o{_elementRef=(0,l.WQX)(e.aKT);cueShortpress=(0,s.CGW)();ngOnInit(){ce.B.getInstance().events.addListener("shortPressedLeft",t=>{const n=this._elementRef?.nativeElement;n&&n.contains(t.target)&&this.cueShortpress.emit(t)})}static \u0275fac=function(n){return new(n||o)};static \u0275dir=e.FsC({type:o,selectors:[["","cueShortpress",""]],outputs:{cueShortpress:"cueShortpress"}})}return o})();var ae=r(2217),re=r(1359),de=r(1493);const ue=["customPlaceholder"],he=["cell"];function ge(o,u){if(1&o&&e.nrm(0,"div",4,1),2&o){const t=e.XpG();e.AVh("right-aligned","right"===t.contentAlignment())("left-aligned","left"===t.contentAlignment())("center-aligned","center"===t.contentAlignment())}}function pe(o,u){if(1&o&&e.nrm(0,"div",10),2&o){const t=e.XpG(2);e.xc7("background-color",t.value())}}function me(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-checkbox",11),e.bIt("checkedChange",function(i){l.eBV(t);const a=e.XpG(2);return l.Njj(a.handleValueChange(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("disabled",!t.editable())("checked",t.bool())("size",t.size())}}function fe(o,u){if(1&o&&e.nrm(0,"cue-file-icon",8),2&o){const t=e.XpG(2);e.Y8G("suffix",t.htmlValue())("size",t.fileIconSize())}}function _e(o,u){if(1&o&&e.nrm(0,"span",9),2&o){const t=e.XpG(2);e.Y8G("title",t.title())("innerHTML",t.htmlValue(),e.npT)}}function be(o,u){if(1&o&&(e.j41(0,"cue-typography",5),e.nVh(1,pe,1,2,"div",6)(2,me,1,3,"cue-checkbox",7)(3,fe,1,2,"cue-file-icon",8)(4,_e,1,2,"span",9),e.k0s()),2&o){const t=e.XpG();e.AVh("right-aligned","right"===t.contentAlignment())("left-aligned","left"===t.contentAlignment())("center-aligned","center"===t.contentAlignment()),e.Y8G("size",t.size())("align",t.align()),e.R7$(),e.vxM("COLOR"===t.valueType()?1:"CHECKBOX"===t.valueType()?2:"FILEICON"===t.valueType()?3:4)}}let ve=(()=>{class o{componentRef=null;lastComponentInputs=(0,l.vPA)(null);value=s.hFB.required();valueType=(0,s.hFB)("DEFAULT");contentAlignment=(0,s.hFB)("left");size=(0,s.hFB)("m");editable=(0,s.hFB)(!0);formatter=(0,s.hFB)(void 0);valueChange=(0,s.CGW)();customPlaceholder;cell;iconName=(0,b.EW)(()=>"FILEICON"===this.valueType()?this.value():void 0);bool=(0,b.EW)(()=>"CHECKBOX"===this.valueType()&&this.value());formattedValue=(0,b.EW)(()=>{const t=this.value(),n=this.formatter();return void 0!==n?n(t):t});htmlValue=(0,b.EW)(()=>{const t=this.valueType(),n=this.formattedValue();switch(t){case"COMPONENT":return"";case"STRINGARRAY":return n.join(", ");case"DATASIZE":return void 0===n?"-":(0,de.b)(n);default:return n.toString()}});title=(0,b.EW)(()=>this.formattedValue()?this.formattedValue():this.value()!==this.formattedValue()?this.value():"");align=(0,b.EW)(()=>{const t=this.contentAlignment();return"left"===t?"start":"right"===t?"end":"center"});fileIconSize=(0,b.EW)(()=>["xs","s","m"].includes(this.size())?this.size():"m");constructor(){(0,l.QZP)(()=>{this.value();const t=this.valueType();"COMPONENT"===t?this._renderComponent():"HTMLELEMENT"===t&&this._renderHtmlElement()})}ngAfterViewInit(){this._renderContent()}ngOnDestroy(){this._clearComponent()}handleValueChange(t){this.valueChange.emit(t)}_renderContent(){"COMPONENT"===this.valueType()?this._renderComponent():"HTMLELEMENT"===this.valueType()&&this._renderHtmlElement()}_renderComponent(){const t=this.value();if(!t?.component)return void this._clearComponent();const n=t.inputs||{};if(!this._compareInputs(n,this.lastComponentInputs())||!this.componentRef){this._clearComponent();try{this.componentRef=this.customPlaceholder.createComponent(t.component),this.lastComponentInputs.set({...n}),Object.entries(n).forEach(([a,h])=>{this.componentRef?.setInput(a,h)})}catch(a){console.error("Error creating component:",a),this._clearComponent()}}}_compareInputs(t,n){if(!n)return!1;const i=Object.keys(t),a=Object.keys(n);return i.length===a.length&&i.every(h=>{const f=t[h],x=n[h];if("function"==typeof f||"function"==typeof x)return f===x;if("object"==typeof f&&null!==f&&"object"==typeof x&&null!==x){if(f===x)return!0;try{return JSON.stringify(f)===JSON.stringify(x)}catch{return!1}}return f===x})}_renderHtmlElement(){if(!this.cell)return;for(;this.cell.nativeElement.firstChild;)this.cell.nativeElement.removeChild(this.cell.nativeElement.firstChild);let t=this.value();if("string"==typeof t){const n=document.createElement("div");n.innerHTML=t,t=n}t instanceof HTMLElement&&this.cell.nativeElement.appendChild(t.cloneNode(!0))}_clearComponent(){this.componentRef&&(this.componentRef.destroy(),this.componentRef=null),this.lastComponentInputs.set(null),this.customPlaceholder?.clear()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table-cell"]],viewQuery:function(n,i){if(1&n&&e.GBs(ue,7,e.c1b)(he,5),2&n){let a;e.mGM(a=e.lsd())&&(i.customPlaceholder=a.first),e.mGM(a=e.lsd())&&(i.cell=a.first)}},inputs:{value:[1,"value"],valueType:[1,"valueType"],contentAlignment:[1,"contentAlignment"],size:[1,"size"],editable:[1,"editable"],formatter:[1,"formatter"]},outputs:{valueChange:"valueChange"},decls:4,vars:1,consts:[["customPlaceholder",""],["cell",""],[1,"container",3,"right-aligned","left-aligned","center-aligned"],[1,"container",3,"size","align","right-aligned","left-aligned","center-aligned"],[1,"container"],[1,"container",3,"size","align"],[1,"color",3,"background-color"],[3,"disabled","checked","size"],[3,"suffix","size"],[3,"title","innerHTML"],[1,"color"],[3,"checkedChange","disabled","checked","size"]],template:function(n,i){1&n&&(e.eu8(0,null,0),e.nVh(2,ge,2,6,"div",2)(3,be,5,9,"cue-typography",3)),2&n&&(e.R7$(2),e.vxM("HTMLELEMENT"===i.valueType()?2:3))},dependencies:[re.Checkbox,ae.o,F.Typography],styles:["[_nghost-%COMP%]{--cue-icon-width: 30px}.color[_ngcontent-%COMP%]{height:12px;width:12px;border:1px solid #fff;border-radius:5px}.container[_ngcontent-%COMP%]{display:flex;overflow:hidden;font-family:var(--cue-font-family);--mat-table-background-color: var(--background-color);--mat-paginator-container-background-color: var(--background-color)} .right-aligned{justify-content:flex-end} .left-aligned{justify-content:flex-start} .center-aligned{justify-content:center}"],changeDetection:0})}return o})();var Ce=r(5821);const xe=(o,u)=>u.key;function Me(o,u){if(1&o&&(e.j41(0,"cue-flexcontainer",1),e.nrm(1,"cue-table-menu",10),e.k0s()),2&o){const t=e.XpG(),n=e.r8f(2);e.R7$(),e.Y8G("rows",t.rows())("columnDefs",t.columnDefs())("displaySettings",n.menuDisplaySettings)}}function De(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-table-column-select",11),e.mxI("columnDefsChange",function(i){l.eBV(t);const a=e.XpG();return e.DH7(a.columnDefs,i)||(a.columnDefs=i),l.Njj(i)}),e.k0s()}if(2&o){const t=e.XpG(),n=e.r8f(2);e.R50("columnDefs",t.columnDefs),e.Y8G("columnDefsGross",t.columnDefsGross())("settings",n.columnSelectSettings)}}function ye(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-table-toolbar",12),e.bIt("filterValueChange",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.setFilter(i))}),e.k0s()}}function Te(o,u){if(1&o&&e.nrm(0,"cue-column-menu",16),2&o){const t=e.XpG().$implicit,n=e.r8f(0),i=e.r8f(1);e.Y8G("columnDef",t)("firstCol",n)("lastCol",i)}}function we(o,u){if(1&o&&e.nrm(0,"cue-svg-icon",17),2&o){const t=e.XpG(2);e.Y8G("name","ASC"===t.service.sortOrder()?"arrow-up":"arrow-down")}}function ke(o,u){1&o&&e.nrm(0,"cue-svg-icon",18)}function Oe(o,u){if(1&o){const t=e.RV6();e.SS7(0)(1),e.j41(2,"th",13),e.bIt("mouseenter",function(){const i=l.eBV(t).$implicit,a=e.XpG();return l.Njj(a.hoveredColumn=i.key)})("mouseleave",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.hoveredColumn=null)}),e.j41(3,"cue-flexcontainer",14)(4,"cue-typography",15),e.EFF(5),e.nVh(6,Te,1,3,"cue-column-menu",16),e.k0s(),e.nVh(7,we,1,1,"cue-svg-icon",17),e.nVh(8,ke,1,0,"cue-svg-icon",18),e.k0s()()}if(2&o){const t=u.$implicit,n=u.$index,i=e.XpG(),a=e.r8f(1);e.bH3(0===n),e.R7$(),e.bH3(n===a.length-1),e.R7$(),e.xc7("width",t.width)("padding",i.padding());const h=i.getCellDirection(t.textAlign);e.R7$(),e.xc7("text-align",t.textAlign),e.Y8G("justify",h),e.R7$(),e.Y8G("size",i.size())("align",h),e.R7$(),e.SpI("",t.label," "),e.R7$(),e.vxM(i.hoveredColumn===t.key?6:-1),e.R7$(),e.vxM(i.service.sortCol()===t.key&&i.hoveredColumn!==t.key?7:-1),e.R7$(),e.vxM(i.service.filterCol()===t.key&&i.hoveredColumn!==t.key?8:-1)}}function Re(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-table-cell",23),e.bIt("valueChange",function(i){l.eBV(t);const a=e.XpG().$implicit,h=e.XpG().$implicit,f=e.XpG();return l.Njj(f.onCellValueChange(a.key,h,i))}),e.k0s()}if(2&o){const t=e.XpG().$implicit,n=e.r8f(0),i=e.r8f(1),a=e.r8f(2),h=e.r8f(3),f=e.XpG().$index,x=e.XpG();e.AVh("hidden",t.displayOnlyOnHover&&x.hoveredRowIndex()!==f),e.Y8G("value",n)("valueType",i)("editable",a)("formatter",t.formatter)("size",x.size())("contentAlignment",h)}}function Pe(o,u){if(1&o&&(e.SS7(0)(1)(2)(3),e.j41(4,"td",21),e.nVh(5,Re,1,8,"cue-table-cell",22),e.k0s()),2&o){const t=u.$implicit,n=u.$index,i=e.XpG().$implicit,a=e.XpG(),h=e.r8f(1),f=e.bH3(i[t.key]);e.R7$();const x=e.bH3(h[n].type);e.R7$(),e.bH3(h[n].editable),e.R7$(),e.bH3(h[n].textAlign),e.R7$(),e.xc7("width",t.width)("padding",a.padding())("overflow","COMPONENT"===x?"visible":"hidden")("z-index","COMPONENT"===x?"100":"1"),e.R7$(),e.vxM(f?5:-1)}}function Fe(o,u){if(1&o){const t=e.RV6();e.j41(0,"tr",19),e.bIt("cueShortpress",function(){const i=l.eBV(t).$index,a=e.XpG();return l.Njj(a.onRowClick(i))})("mouseover",function(){const i=l.eBV(t).$index,a=e.XpG();return l.Njj(a.setHoveredRow(i))})("mouseout",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.setHoveredRow(void 0))})("filesDropped",function(i){const a=l.eBV(t).$implicit,h=e.XpG();return l.Njj(h.handleFileDrop(i,a))})("filesHovered",function(i){const a=l.eBV(t).$implicit,h=e.XpG();return l.Njj(h.handleFileHover(i,a))}),e.Z7z(1,Pe,6,13,"td",20,e.Vm6),e.k0s()}if(2&o){const t=u.$index,n=e.XpG(),i=e.r8f(1);e.AVh("clickable",n.clickableRows()&&n.selectedRowIndex()!==t)("selected",n.selectedRowIndex()===t),e.Y8G("dropEnabled",n.fileUploadEnabled()),e.R7$(),e.Dyx(i)}}function Ve(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",24),e.bIt("filesDropped",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.handleFileDrop(i,void 0))})("filesHovered",function(i){l.eBV(t);const a=e.XpG();return l.Njj(a.handleFileHover(i,void 0))}),e.j41(1,"cue-typography"),e.EFF(2),e.k0s()()}if(2&o){const t=e.XpG();e.Y8G("dropEnabled",t.fileUploadEnabled()),e.R7$(2),e.JRh(t.emptyTableText())}}let Be=(()=>{class o{service=(0,l.WQX)(O.a);host=(0,l.WQX)(e.aKT);renderer=(0,l.WQX)(e.sFG);removeClickListener;constructor(){Promise.resolve().then(()=>{this.removeClickListener=this.renderer.listen("document","click",t=>{this.host.nativeElement.contains(t.target)||(this.selectedRowIndex.set(void 0),this.clickedRow.emit(void 0))})})}ngOnDestroy(){this.removeClickListener&&this.removeClickListener()}columnDefs=(0,s.geq)([]);columnDefsGross=(0,s.geq)([]);data=(0,s.hFB)([]);settings=(0,s.hFB)(new c.QA);clickableRows=(0,s.hFB)(!1);size=(0,s.hFB)("m");filterValue=(0,s.geq)(void 0);filterOnlyVisible=(0,s.hFB)(!0);displayFilter=(0,s.hFB)(!1);filterOptions=(0,s.hFB)();sortCol=(0,s.geq)(void 0);sortOrder=(0,s.geq)("ASC");fixedWidth=(0,s.hFB)(!0);padding=(0,s.hFB)("6px 12px");fileUploadEnabled=(0,s.hFB)(!1);emptyTableText=(0,s.hFB)("No data available");displayedRows=(0,s.geq)(10);hidePaginator=(0,s.geq)(!1);contentChanged=(0,s.CGW)();sortUpdated=(0,s.CGW)();cellValueChange=(0,s.CGW)();selectionChange=(0,s.CGW)();clickedRow=(0,s.CGW)();hoveredRow=(0,s.CGW)();filesDropped=(0,s.CGW)();filesHovered=(0,s.CGW)();onFilterOptions=(0,l.QZP)(()=>{const t=this.filterOptions();void 0!==t&&this.service.filterOptions.update(()=>t)});onColumnDefs=(0,l.QZP)(()=>this.service.columnDefs.update(()=>this.columnDefs()));onData=(0,l.QZP)(()=>this.service.data.update(()=>this.data()));onSortCol=(0,l.QZP)(()=>this.service.sortCol.set(this.sortCol()));onSortOrder=(0,l.QZP)(()=>this.service.sortOrder.set(this.sortOrder()));onFilterValue=(0,l.QZP)(()=>this.service.filterValue.set(this.filterValue()));onFilterOnlyVisible=(0,l.QZP)(()=>this.service.filterOnlyVisible.set(this.filterOnlyVisible()));hoveredColumn=null;selection=(0,l.vPA)({});totalRows=this.service.totalRows;selectedRowIndex=(0,l.vPA)(void 0);hoveredRowIndex=(0,l.vPA)(void 0);clearSelectionOnData=(0,l.QZP)(()=>{this.data(),this.selectedRowIndex.set(void 0),this.hoveredRowIndex.set(void 0)});rows=this.service.sortedFilteredAndPaginated;hidePaginatorIfNotNecessary=(0,l.QZP)(()=>{this.totalRows()<this.displayedRows()?this.hidePaginator.set(!0):this.hidePaginator.set(!1)});setFilter(t){this.filterValue.set(t)}onPageChange(t){this.service.paginatorStartIndex.set(t.startIndex),this.service.paginatorEndIndex.set(t.endIndex)}onRowClick(t){if(this.clickableRows()){if(t===this.selectedRowIndex())return this.selectedRowIndex.set(void 0),void this.clickedRow.emit(void 0);this.selectedRowIndex.set(t),this.clickedRow.emit(this.rows()[t])}}getCellDirection(t){return"left"===t?"start":"right"===t?"end":"center"}onCellValueChange(t,n,i){const a=n[t];if(n[t]=i,"selectCol"===t){const h=n.selectCol,f={...this.selection()};f[t]=h?[...f[t]||[],n]:(f[t]||[]).filter(x=>x.index!==n.index),this.selection.set(f),this.selectionChange.emit()}else this.cellValueChange.emit({previousValue:a,newValue:i,index:n.index,key:t});this.contentChanged.emit(this.data())}setHoveredRow(t){this.hoveredRowIndex.set(t);const n=void 0===t?void 0:this.rows()[t];this.hoveredRow.emit(n)}handleFileDrop(t,n){this.fileUploadEnabled()&&this.filesDropped.emit({files:t,row:n})}handleFileHover(t,n){this.fileUploadEnabled()&&this.filesHovered.emit({hovered:t,row:n})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table"]],inputs:{columnDefs:[1,"columnDefs"],columnDefsGross:[1,"columnDefsGross"],data:[1,"data"],settings:[1,"settings"],clickableRows:[1,"clickableRows"],size:[1,"size"],filterValue:[1,"filterValue"],filterOnlyVisible:[1,"filterOnlyVisible"],displayFilter:[1,"displayFilter"],filterOptions:[1,"filterOptions"],sortCol:[1,"sortCol"],sortOrder:[1,"sortOrder"],fixedWidth:[1,"fixedWidth"],padding:[1,"padding"],fileUploadEnabled:[1,"fileUploadEnabled"],emptyTableText:[1,"emptyTableText"],displayedRows:[1,"displayedRows"],hidePaginator:[1,"hidePaginator"]},outputs:{columnDefs:"columnDefsChange",columnDefsGross:"columnDefsGrossChange",filterValue:"filterValueChange",sortCol:"sortColChange",sortOrder:"sortOrderChange",displayedRows:"displayedRowsChange",hidePaginator:"hidePaginatorChange",contentChanged:"contentChanged",sortUpdated:"sortUpdated",cellValueChange:"cellValueChange",selectionChange:"selectionChange",clickedRow:"clickedRow",hoveredRow:"hoveredRow",filesDropped:"filesDropped",filesHovered:"filesHovered"},features:[e.Jv_([],[O.a])],decls:18,vars:12,consts:[["direction","column","justify","start",1,"outer-container"],["justify","end"],[2,"width","100%",3,"columnDefs","columnDefsGross","settings"],[3,"width","padding"],[1,"scrollable-body"],[1,"fixed-width"],["cueFileDrop","",3,"clickable","selected","dropEnabled"],["direction","column","justify","center","align","center","cueFileDrop","",2,"min-height","200px",3,"dropEnabled"],[2,"flex","1"],[3,"pageSizeChange","currentPage","size","pageSize"],[3,"rows","columnDefs","displaySettings"],[2,"width","100%",3,"columnDefsChange","columnDefs","columnDefsGross","settings"],[3,"filterValueChange"],[3,"mouseenter","mouseleave"],["align","center","gap","s",3,"justify"],["weight","medium",2,"position","relative",3,"size","align"],[2,"position","absolute","right","-24px",3,"columnDef","firstCol","lastCol"],[3,"name"],["name","funnel"],["cueFileDrop","",3,"cueShortpress","mouseover","mouseout","filesDropped","filesHovered","dropEnabled"],[2,"position","relative",3,"width","padding","overflow","z-index"],[2,"position","relative"],[3,"hidden","value","valueType","editable","formatter","size","contentAlignment"],[3,"valueChange","value","valueType","editable","formatter","size","contentAlignment"],["direction","column","justify","center","align","center","cueFileDrop","",2,"min-height","200px",3,"filesDropped","filesHovered","dropEnabled"]],template:function(n,i){if(1&n){const a=e.RV6();e.j41(0,"cue-flexcontainer",0),e.SS7(1)(2),e.nVh(3,Me,2,3,"cue-flexcontainer",1),e.nVh(4,De,1,3,"cue-table-column-select",2),e.nVh(5,ye,1,0,"cue-table-toolbar"),e.j41(6,"table")(7,"thead"),e.Z7z(8,Oe,9,15,"th",3,xe),e.k0s()(),e.j41(10,"div",4)(11,"table",5)(12,"tbody"),e.Z7z(13,Fe,3,5,"tr",6,e.Vm6),e.k0s()()(),e.nVh(15,Ve,3,2,"cue-flexcontainer",7),e.nrm(16,"span",8),e.j41(17,"cue-paginator",9),e.mxI("pageSizeChange",function(f){return l.eBV(a),e.DH7(i.displayedRows,f)||(i.displayedRows=f),l.Njj(f)}),e.bIt("currentPage",function(f){return i.onPageChange(f)}),e.k0s()()}if(2&n){e.R7$();const a=e.bH3(i.columnDefs());e.R7$();const h=e.bH3(i.settings());e.R7$(),e.vxM(h.menuDisplaySettings.hide?-1:3),e.R7$(),e.vxM(i.service.showColumnSettings()?4:-1),e.R7$(),e.vxM(i.displayFilter()?5:-1),e.R7$(),e.AVh("fixed-width",i.fixedWidth()),e.R7$(2),e.Dyx(a),e.R7$(5),e.Dyx(i.rows()),e.R7$(2),e.vxM(i.rows().length?-1:15),e.R7$(2),e.xc7("display",i.hidePaginator()?"none":"block"),e.Y8G("size",i.totalRows()),e.R50("pageSize",i.displayedRows)}},dependencies:[B.FlexContainer,v.A,ve,Ce.m,F.Typography,y,_.F,A,te,le,se],styles:[".fixed-width[_ngcontent-%COMP%]{table-layout:fixed;width:100%}.outer-container[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.scrollable-body[_ngcontent-%COMP%]{overflow:auto;width:100%}table[_ngcontent-%COMP%]{border-collapse:collapse;color:var(--cue-table-text-color);width:100%}th[_ngcontent-%COMP%]{padding:10px 18px!important;position:relative}th[_ngcontent-%COMP%] cue-svg-icon[_ngcontent-%COMP%]{--cue-icon-width: 16px !important;vertical-align:middle}td[_ngcontent-%COMP%]{border-bottom:1px solid var(--cue-table-border-color);border-left:none;border-right:none;border-top:none;max-width:120px;white-space:nowrap;text-overflow:ellipsis;padding:10px 16px!important;transition:background-color .2s ease,color .2s ease;background-color:transparent}td[_ngcontent-%COMP%]:first-child{border-left:4px solid transparent;transition:border-left-color .2s ease}tr[_ngcontent-%COMP%]{transition:background-color .2s ease}tr[_ngcontent-%COMP%]:hover:not(.selected){background-color:var(--cue-table-row-hover-bg)}tr[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]:first-child{border-left-color:var(--cue-color-blue)}tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:none}.clickable[_ngcontent-%COMP%]{cursor:pointer;transition:background-color .2s ease,color .2s ease}.clickable[_ngcontent-%COMP%]:hover:not(.selected){background-color:var(--cue-table-highlight-color);color:var(--cue-table-highlight-text-color)}tr.selected[_ngcontent-%COMP%]{background-color:var(--cue-table-highlight-color)!important;color:var(--cue-table-text-color)!important;transition:none}tr.selected[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-left:4px solid var(--cue-color-blue)}tr.selected[_ngcontent-%COMP%]:hover, tr.selected[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%], tr.selected[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:hover{background-color:var(--cue-table-highlight-color)!important;color:var(--cue-table-text-color)!important}.hidden[_ngcontent-%COMP%]{display:none}.file-hover[_ngcontent-%COMP%]{border:1px solid;margin:-1px}"],changeDetection:0})}return o})()},2065(R,k,r){function s(v,g,d="text/plain"){return function e(v,g="data.zip"){const d=document.createElement("a"),C=URL.createObjectURL(v);d.href=C,d.download=g,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(C)}(new Blob([v],{type:d}),g)}function c(v,g){const d=document.createElement("a");d.style.display="hidden",d.setAttribute("href",window.URL.createObjectURL(v)),d.setAttribute("download",g),document.body.appendChild(d),d.click(),d.remove()}r.d(k,{KE:()=>c,YN:()=>s})},1493(R,k,r){function e(l,s=!1,c=1){const w=s?1e3:1024;if(Math.abs(l)<w)return l+" B";const v=s?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let g=-1;const d=10**c;do{l/=w,++g}while(Math.round(Math.abs(l)*d)/d>=w&&g<v.length-1);return l.toFixed(c)+" "+v[g]}r.d(k,{b:()=>e})}}]);
|