@qaecy/cue-ui 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/112.js +1 -0
- package/149.js +1 -0
- package/245.js +1 -1
- package/247.js +3 -0
- package/284.js +1 -1
- package/{236.js → 311.js} +1 -1
- package/334.js +1 -0
- package/336.js +1 -1
- package/376.js +1 -1
- package/382.js +1 -0
- package/393.js +1 -0
- package/418.js +1 -1
- package/419.js +1 -1
- package/523.js +1 -1
- package/540.js +1 -0
- package/544.js +1 -0
- package/560.js +1 -1
- package/571.js +1 -0
- package/60.js +1 -1
- package/722.js +1 -0
- package/740.js +1 -0
- package/741.js +1 -1
- package/903.js +1 -0
- package/911.js +1 -0
- package/960.js +1 -0
- package/995.js +1 -0
- package/README.md +127 -288
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/runtime.js +1 -1
- package/344.js +0 -1
- package/371.js +0 -1
- package/443.js +0 -1
- package/570.js +0 -1
- package/613.js +0 -1
- package/710.js +0 -1
- package/774.js +0 -1
- package/83.js +0 -1
package/334.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[334],{4853(w,D,c){c.d(D,{H:()=>M});var s=c(7705),l=c(5802),d=c(7089),E=c(7023),e=c(5381),m=c(5971),r=c(3319),z=c(356),F=c(6279),u=c(5547);const v=()=>({position:"bottomleft"}),C=(f,h)=>h.label||f;function x(f,h){if(1&f){const g=u.RV6();u.j41(0,"cue-menu-item",4),u.bIt("click",function(){const k=l.eBV(g).$implicit;return l.Njj(k.action())}),u.EFF(1),u.k0s()}if(2&f){const g=h.$implicit;u.Y8G("selected",g.selected),u.R7$(),u.JRh(g.label)}}function O(f,h){if(1&f&&(u.j41(0,"cue-menu-wrap"),u.Z7z(1,x,2,2,"cue-menu-item",3,C),u.k0s()),2&f){const g=u.XpG();u.R7$(),u.Dyx(g.contextMenuItems())}}function V(f,h){if(1&f){const g=u.RV6();u.j41(0,"cue-button",5),u.bIt("click",function(k){const P=l.eBV(g).$implicit,N=u.XpG();return l.Njj(N.handleClick(k,P))}),u.nrm(1,"cue-button-icon",6),u.k0s()}if(2&f){const g=h.$implicit,b=u.XpG(),k=u.sdS(1);u.Y8G("cueTooltip",g.label)("variant",g.variant?g.variant:b.variant())("size",b.size())("cueContextMenu",k)("contextMenuData",u.lJ4(7,v))("cueContextEnabled",void 0!==g.contextMenuItems&&g.contextMenuItems.length>0),u.R7$(),u.Y8G("icon",g.icon)}}let M=(()=>{class f{items=s.hFB.required();noGap=(0,s.hFB)(!0);direction=(0,s.hFB)("row");size=(0,s.hFB)("xs");variant=(0,s.hFB)("tertiary");mouseEnter=(0,s.CGW)();mouseLeave=(0,s.CGW)();contextMenuItems=(0,l.vPA)([]);handleClick(g,b){g.stopPropagation(),b.contextMenuItems&&b.contextMenuItems.length>0?this.contextMenuItems.set(b.contextMenuItems):b.action&&(this.contextMenuItems.set([]),b.action())}static \u0275fac=function(b){return new(b||f)};static \u0275cmp=u.VBU({type:f,selectors:[["cue-entity-menu"]],inputs:{items:[1,"items"],noGap:[1,"noGap"],direction:[1,"direction"],size:[1,"size"],variant:[1,"variant"]},outputs:{mouseEnter:"mouseEnter",mouseLeave:"mouseLeave"},decls:5,vars:2,consts:[["contextMenu",""],["gap","s","justify","end",2,"width","100%",3,"mouseenter","mouseleave","direction","noGap"],["trigger","leftclick",3,"cueTooltip","variant","size","cueContextMenu","contextMenuData","cueContextEnabled"],[3,"selected"],[3,"click","selected"],["trigger","leftclick",3,"click","cueTooltip","variant","size","cueContextMenu","contextMenuData","cueContextEnabled"],[3,"icon"]],template:function(b,k){1&b&&(u.DNE(0,O,3,0,"ng-template",null,0,u.C5r),u.j41(2,"cue-flexcontainer",1),u.bIt("mouseenter",function(){return k.mouseEnter.emit()})("mouseleave",function(){return k.mouseLeave.emit()}),u.Z7z(3,V,2,8,"cue-button",2,C),u.k0s()),2&b&&(u.R7$(2),u.Y8G("direction",k.direction())("noGap",k.noGap()),u.R7$(),u.Dyx(k.items()))},dependencies:[e.n,m.$,d.d,r.a,E.Q,z.M,F.D],encapsulation:2,changeDetection:0})}return f})()},4177(w,D,c){c.d(D,{L:()=>He});var s=c(7705),l=c(5802),d=c(2271),E=c(4853),e=c(5547);const m=["inputEl"],r=["measureEl"],z=["measurePlaceholderEl"];let F=(()=>{class o{value=(0,s.geq)("");placeholder=(0,s.hFB)("");autofocus=(0,s.hFB)(!1);inputWidth=(0,l.vPA)(0);valueChange=(0,s.CGW)();save=(0,s.CGW)();cancel=(0,s.CGW)();inputEl;measureEl;measurePlaceholderEl;ngAfterViewInit(){this.updateInputWidth(),this.autofocus()&&this.inputEl&&this.inputEl.nativeElement.focus()}onInput(t){this.value.set(t.target.value),this.updateInputWidth(),this.valueChange.emit(this.value())}onEnter(t){t.preventDefault(),this.save.emit()}onEscape(t){t.preventDefault(),this.cancel.emit()}onBlur(){this.save.emit()}updateInputWidth(){if(this.measureEl&&this.inputEl){const t=this.value()||"";this.measureEl.nativeElement.innerText=""===t?" ":t,this.inputWidth.set(Math.max(this.measureEl.nativeElement.offsetWidth+2,this.measurePlaceholderEl?this.measurePlaceholderEl.nativeElement.offsetWidth+2:0))}}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-inline-input"]],viewQuery:function(i,n){if(1&i&&e.GBs(m,5)(r,5)(z,5),2&i){let a;e.mGM(a=e.lsd())&&(n.inputEl=a.first),e.mGM(a=e.lsd())&&(n.measureEl=a.first),e.mGM(a=e.lsd())&&(n.measurePlaceholderEl=a.first)}},inputs:{value:[1,"value"],placeholder:[1,"placeholder"],autofocus:[1,"autofocus"]},outputs:{value:"valueChange",valueChange:"valueChange",save:"save",cancel:"cancel"},decls:6,vars:7,consts:[["measureEl",""],["measurePlaceholderEl",""],["inputEl",""],[1,"measure",3,"innerText"],["type","text",3,"input","keydown.enter","keydown.escape","blur","value","placeholder"]],template:function(i,n){1&i&&(e.Hgh(0,"div",3,0)(2,"div",3,1),e.rj2(4,"input",4,2),e.VwU("input",function(p){return n.onInput(p)})("keydown.enter",function(p){return n.onEnter(p)})("keydown.escape",function(p){return n.onEscape(p)})("blur",function(){return n.onBlur()}),e.eux()),2&i&&(e.Avn("innerText",n.value()),e.R7$(2),e.Avn("innerText",n.placeholder()),e.R7$(2),e.xc7("width",n.inputWidth(),"px"),e.Avn("value",n.value())("placeholder",n.placeholder()),e.BMQ("autofocus",!!n.autofocus()||null))},styles:["[_nghost-%COMP%]{display:inline-block;position:relative}.measure[_ngcontent-%COMP%]{position:absolute;visibility:hidden;white-space:pre;font:inherit;font-size:inherit;padding:0}input[_ngcontent-%COMP%]{border:1px;background:transparent;font:inherit;font-size:inherit;color:inherit;min-width:2ch;padding:0;margin:0;outline:none;border-bottom:1px solid}"],changeDetection:0})}return o})();var u=c(467),v=c(9352),C=c(5745),x=c(5381),O=c(5971),V=c(2245),M=c(9421),f=c(8957),h=c(5448),g=c(2444),b=c(9417),k=c(7374),P=c.n(k),N=c(3319);const W=(o,_)=>_.date;function X(o,_){if(1&o&&(e.j41(0,"cue-typography",11),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&o){const t=_.$implicit,i=e.XpG();e.Y8G("size",i.size()),e.R7$(),e.JRh(e.bMT(2,2,t))}}function K(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-button",13),e.bIt("click",function(){const n=l.eBV(t).$implicit,a=e.XpG();return l.Njj(a.selectDay(n))}),e.j41(1,"cue-button-label"),e.EFF(2),e.k0s()()}if(2&o){const t=_.$implicit,i=e.XpG();e.AVh("other-month",!t.isCurrentMonth)("today",t.isToday),e.Y8G("selected",t.isSelected)("size",i.size()),e.R7$(2),e.JRh(t.day)}}let U=(()=>{class o{date=s.geq.required();size=(0,s.hFB)("m");weekdays=["mon","tue","wed","thu","fri","sat","sun"].map(t=>`common.weekdaysShort.${t}`);yearOptions=Array.from({length:101},(t,i)=>(P()().year()-50+i).toString()).reverse();monthOptions=Array.from({length:12},(t,i)=>(i+1).toString());chevronSize=(0,d.EW)(()=>{const t=this.size();return"l"===t?"m":"m"===t?"s":"s"===t?"xs":"s"});monthLabels={1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"};today=(0,d.EW)(()=>P()().format("YYYY-MM-DD"));calendarDays=(0,d.EW)(()=>{const t=this.year(),i=this.month(),n=P()(this.date()),a=this.today(),p=P()(`${t}-${i}-01`),y=p.endOf("month"),I=0===p.day()?p.subtract(6,"day"):p.subtract(p.day()-1,"day"),B=0===y.day()?y:y.add(7-y.day(),"day"),T=[];let R=I;for(;R.isBefore(B)||R.isSame(B);){const $=R.format("YYYY-MM-DD");T.push({date:$,day:R.date(),isCurrentMonth:R.month()+1===i,isSelected:R.isSame(n,"day"),isToday:$===a,dayjs:R}),R=R.add(1,"day")}return T});jsDate=(0,d.EW)(()=>P()(this.date()));year=(0,d.uu)(()=>this.jsDate().year());month=(0,d.uu)(()=>this.jsDate().month()+1);day=(0,d.uu)(()=>this.jsDate().date());updateDate(){const t=P()(new Date(this.year(),this.month()-1,this.day())).format("YYYY-MM-DD");this.date.set(t)}navigateMonth(t="next"){const i=P()(this.date()),n="next"===t?i.add(1,"month"):i.subtract(1,"month");this.date.set(n.format("YYYY-MM-DD"))}navigateYear(t="next"){const i=P()(this.date()),n="next"===t?i.add(1,"year"):i.subtract(1,"year");this.date.set(n.format("YYYY-MM-DD"))}selectDay(t){this.date.set(t.date),t.isCurrentMonth||(this.year.set(t.dayjs.year()),this.month.set(t.dayjs.month()+1))}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-datepicker"]],inputs:{date:[1,"date"],size:[1,"size"]},outputs:{date:"dateChange"},decls:17,vars:10,consts:[["direction","column"],["gap","m","justify","center","align","center",2,"width","100%"],["variant","ghost",3,"size"],["icon","paginator-first",3,"click"],["icon","paginator-back",3,"click"],["justify","center",2,"width","200px"],["label","Month",3,"valueChange","size","options","labelMap","value"],["label","Year",3,"valueChange","size","options","value"],["icon","paginator-next",3,"click"],["icon","paginator-last",3,"click"],[1,"calendar-grid"],[3,"size"],["variant","ghost",3,"other-month","today","selected","size"],["variant","ghost",3,"click","selected","size"]],template:function(i,n){1&i&&(e.j41(0,"cue-flexcontainer",0)(1,"cue-flexcontainer",1)(2,"cue-button",2)(3,"cue-button-icon",3),e.bIt("click",function(){return n.navigateYear("prev")}),e.k0s(),e.j41(4,"cue-button-icon",4),e.bIt("click",function(){return n.navigateMonth("prev")}),e.k0s()(),e.j41(5,"cue-flexcontainer",5)(6,"cue-select",6),e.mxI("valueChange",function(p){return e.DH7(n.month,p)||(n.month=p),p}),e.bIt("valueChange",function(){return n.updateDate()}),e.k0s(),e.j41(7,"cue-select",7),e.mxI("valueChange",function(p){return e.DH7(n.year,p)||(n.year=p),p}),e.bIt("valueChange",function(){return n.updateDate()}),e.k0s()(),e.j41(8,"cue-button",2)(9,"cue-button-icon",8),e.bIt("click",function(){return n.navigateMonth("next")}),e.k0s()(),e.j41(10,"cue-button",2)(11,"cue-button-icon",9),e.bIt("click",function(){return n.navigateYear("next")}),e.k0s()()(),e.j41(12,"div",10),e.Z7z(13,X,3,4,"cue-typography",11,e.Vm6),e.Z7z(15,K,3,7,"cue-button",12,W),e.k0s()()),2&i&&(e.R7$(2),e.Y8G("size",n.chevronSize()),e.R7$(4),e.Y8G("size",n.size())("options",n.monthOptions)("labelMap",n.monthLabels),e.R50("value",n.month),e.R7$(),e.Y8G("size",n.size())("options",n.yearOptions),e.R50("value",n.year),e.R7$(),e.Y8G("size",n.chevronSize()),e.R7$(2),e.Y8G("size",n.chevronSize()),e.R7$(3),e.Dyx(n.weekdays),e.R7$(2),e.Dyx(n.calendarDays()))},dependencies:[x.n,g.l,O.$,h.L,V.Typography,N.a,v.Kj],styles:[".calendar-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-top:12px}.other-month[_ngcontent-%COMP%]{opacity:.4}"],changeDetection:0})}return o})();var Q=c(7023),J=c(5187);const Z=["inputField"];function q(o,_){1&o&&e.EFF(0,"*")}function ee(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-card",8)(1,"cue-datepicker",9),e.mxI("dateChange",function(n){l.eBV(t);const a=e.XpG();return e.DH7(a.internalDateValue,n)||(a.internalDateValue=n),l.Njj(n)}),e.bIt("dateChange",function(n){l.eBV(t);const a=e.XpG();return l.Njj(a.onDateChange(n))})("click",function(n){return n.stopPropagation()}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(),e.R50("date",t.internalDateValue)}}function te(o,_){if(1&o&&(e.j41(0,"cue-typography",7),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.error())}}let ne=(()=>{class o{value=(0,s.geq)("");label=(0,s.hFB)("");placeholder=(0,s.hFB)("");error=(0,s.hFB)(void 0);required=(0,s.hFB)(!1);size=(0,s.hFB)("m");datePickerPositioning=(0,s.hFB)(void 0);isFocused=!1;disabled=!1;iconSize=(0,d.EW)(()=>{switch(this.size()){case"l":return"m";case"m":default:return"s";case"s":case"xs":return"xs"}});contextMenuRef=null;inputField;internalDateValue=(0,d.uu)(()=>{const t=this.value();if(t){if(P()(t,"YYYY-MM-DD",!0).isValid())return t;const i=P()(t);return i.isValid()?i.format("YYYY-MM-DD"):P()().format("YYYY-MM-DD")}return P()().format("YYYY-MM-DD")});formattedDateValue=(0,d.EW)(()=>{const t=this.value();if(t){const i=P()(t);return i.isValid()?i.format("MMM D, YYYY"):t}return""});onValueChange=(0,l.QZP)(()=>this.valueChange.emit(this.value()));valueChange=(0,s.CGW)();onChange=t=>{};onTouched=()=>{};writeValue(t){this.value.set(t||"")}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}emitValue(t){const i=t.target.value;this.value.set(i),this.onChange(i)}focus(){this.isFocused=!0,this.inputField?.nativeElement&&this.inputField.nativeElement.focus()}onBlur(){this.isFocused=!1,this.onTouched()}onDateChange(t){this.value.set(t),this.onChange(t)}onDatePickerOpen(t){this.contextMenuRef=t}onDatePickerClose(){this.contextMenuRef=null}closeDatePicker(){this.contextMenuRef&&document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-input-date"]],viewQuery:function(i,n){if(1&i&&e.GBs(Z,5),2&i){let a;e.mGM(a=e.lsd())&&(n.inputField=a.first)}},inputs:{value:[1,"value"],label:[1,"label"],placeholder:[1,"placeholder"],error:[1,"error"],required:[1,"required"],size:[1,"size"],datePickerPositioning:[1,"datePickerPositioning"]},outputs:{value:"valueChange",valueChange:"valueChange"},features:[e.Jv_([{provide:b.kq,useExisting:(0,l.Rfq)(()=>o),multi:!0}])],decls:11,vars:15,consts:[["inputField",""],["datePickerTemplate",""],[1,"form-field"],["size","s",1,"label"],["type","text","readonly","","trigger","leftclick",1,"input",3,"focus","blur","contextMenuOpen","contextMenuClose","value","placeholder","disabled","cueContextMenu","positioning"],["variant","ghost","trigger","leftclick",1,"calendar-button",3,"size","cueContextMenu","positioning"],["icon","calendar"],["size","s",1,"error-text"],[1,"date-picker-overlay","clickoutside-ignore"],["size","s",1,"clickoutside-ignore",3,"dateChange","click","date"]],template:function(i,n){if(1&i&&(e.j41(0,"div",2)(1,"cue-typography",3),e.EFF(2),e.nVh(3,q,1,0),e.k0s(),e.j41(4,"input",4,0),e.bIt("focus",function(){return n.isFocused=!0})("blur",function(){return n.onBlur()})("contextMenuOpen",function(p){return n.onDatePickerOpen(p)})("contextMenuClose",function(){return n.onDatePickerClose()}),e.k0s(),e.j41(6,"cue-button",5),e.nrm(7,"cue-button-icon",6),e.k0s(),e.DNE(8,ee,2,1,"ng-template",null,1,e.C5r),e.nVh(10,te,2,1,"cue-typography",7),e.k0s()),2&i){const a=e.sdS(9);e.HbH("size-"+n.size()),e.AVh("focused",n.isFocused||n.value()),e.R7$(2),e.SpI(" ",n.label()," "),e.R7$(),e.vxM(n.required()?3:-1),e.R7$(),e.Y8G("value",n.formattedDateValue())("placeholder",n.placeholder())("disabled",n.disabled)("cueContextMenu",a)("positioning",n.datePickerPositioning()??"bottomright"),e.R7$(2),e.Y8G("size",n.iconSize())("cueContextMenu",a)("positioning",n.datePickerPositioning()??"bottomright"),e.R7$(4),e.vxM(n.error()?10:-1)}},dependencies:[V.Typography,U,Q.Q,J.Z,N.a,O.$],styles:['.form-field[_ngcontent-%COMP%]{position:relative}.input[_ngcontent-%COMP%]{color:var(--cue-input-value-color);width:100%;border:none;border-bottom:1px solid var(--cue-input-border-bottom-color);background:none;outline:none;font-family:var(--cue-font-family)}.size-xs[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-xs-padding);font-size:var(--cue-input-xs-font-size)}.size-s[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-s-padding);font-size:var(--cue-input-s-font-size)}.size-m[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-m-padding);font-size:var(--cue-input-m-font-size)}.size-l[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-l-padding);font-size:var(--cue-input-l-font-size)}.input[_ngcontent-%COMP%]::placeholder{color:var(--cue-input-placeholder-color);font-family:var(--cue-font-family)}.input[_ngcontent-%COMP%]:-webkit-autofill, .input[_ngcontent-%COMP%]:-webkit-autofill:hover, .input[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-box-shadow:0 0 0px 1000px transparent inset;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s;-webkit-text-fill-color:var(--cue-input-value-color)}.label[_ngcontent-%COMP%]{position:absolute;pointer-events:none;transition:all .2s ease}.size-xs[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-top);left:var(--cue-input-xs-label-left)}.size-s[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-top);left:var(--cue-input-s-label-left)}.size-m[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-top);left:var(--cue-input-m-label-left)}.size-l[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-top);left:var(--cue-input-l-label-left)}.form-field.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{color:var(--cue-input-value-color)}.size-xs.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-focused-top);font-size:var(--cue-input-xs-label-focused-font-size)}.size-s.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-focused-top);font-size:var(--cue-input-s-label-focused-font-size)}.size-m.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-focused-top);font-size:var(--cue-input-m-label-focused-font-size)}.size-l.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-focused-top);font-size:var(--cue-input-l-label-focused-font-size)}.underline[_ngcontent-%COMP%]{content:"";position:absolute;bottom:0;left:0;height:1px;width:0;background-color:var(--cue-input-border-bottom-color);transition:width .3s ease}.form-field.focused[_ngcontent-%COMP%] .underline[_ngcontent-%COMP%]{width:100%}.error-text[_ngcontent-%COMP%]{color:var(--cue-error);margin-top:4px;min-height:18px}.date-picker-overlay[_ngcontent-%COMP%]{box-shadow:0 4px 12px #00000026;min-width:320px;position:relative;z-index:10001}.date-picker-overlay[_ngcontent-%COMP%] [_ngcontent-%COMP%]:deep(cue-menu){z-index:10002!important}.date-picker-overlay[_ngcontent-%COMP%] [_ngcontent-%COMP%]:deep(.clickoutside-ignore){pointer-events:auto}.calendar-button[_ngcontent-%COMP%]{position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:10;opacity:.7;transition:opacity .2s ease}.calendar-button[_ngcontent-%COMP%]:hover{opacity:1}.input[_ngcontent-%COMP%]{padding-right:40px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%;max-width:none;box-sizing:border-box}'],changeDetection:0})}return o})();var ie=c(9695),G=c(1413),oe=c(7421),ae=c(3293),S=c(7384),le=c(3798);let se=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=e.VBU({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,n){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"],encapsulation:2,changeDetection:0})}return o})(),ce=(()=>{class o{_elementRef=(0,l.WQX)(e.aKT);_platform=(0,l.WQX)(oe.O);_ngZone=(0,l.WQX)(l.SKi);_renderer=(0,l.WQX)(e.sFG);_resizeEvents=new G.B;_previousValue;_initialHeight;_destroyed=new G.B;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(t){this._minRows=(0,S.OE)(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=(0,S.OE)(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,t?this._textareaElement.setAttribute("placeholder",t):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=(0,l.WQX)(l.qQL);_hasFocus=!1;_isViewInited=!1;constructor(){(0,l.WQX)(ae.l).load(se),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe((0,le.Z)(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._listenerCleanups?.forEach(t=>t()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;const t=this._textareaElement.cloneNode(!1),i=t.style;t.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,t.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const t=this._textareaElement,i=t.style.marginBottom||"",a=this._hasFocus,p=this._platform.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";a&&(t.style.marginBottom=`${t.clientHeight}px`),t.classList.add(p);const y=t.scrollHeight-4;return t.classList.remove(p),a&&(t.style.marginBottom=i),y}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}_handleFocusEvent=t=>{this._hasFocus="focus"===t.type};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const i=this._elementRef.nativeElement,n=i.value;if(!t&&this._minRows===this._previousMinRows&&n===this._previousValue)return;const a=this._measureScrollHeight(),p=Math.max(a,this._cachedPlaceholderHeight||0);i.style.height=`${p}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=n,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(t){const{selectionStart:i,selectionEnd:n}=t;!this._destroyed.isStopped&&this._hasFocus&&t.setSelectionRange(i,n)}static \u0275fac=function(i){return new(i||o)};static \u0275dir=e.FsC({type:o,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,n){1&i&&e.bIt("input",function(){return n._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",s.L39],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return o})(),re=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=e.$C({type:o});static \u0275inj=l.G2t({})}return o})();var A=c(29);const ue=["inputField"];function de(o,_){1&o&&e.EFF(0,"*")}function _e(o,_){if(1&o&&(e.j41(0,"span",5),e.nrm(1,"cue-svg-icon",8),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.Y8G("name",t.icon())}}function pe(o,_){if(1&o&&(e.j41(0,"cue-typography",7),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.error())}}let ge=(()=>{class o{value=(0,s.geq)("");label=(0,s.hFB)("");placeholder=(0,s.hFB)("");error=(0,s.hFB)(void 0);required=(0,s.hFB)(!1);icon=(0,s.hFB)(void 0);size=(0,s.hFB)("m");isFocused=!1;disabled=!1;inputField;valueChange=(0,s.CGW)();onChange=t=>{};onTouched=()=>{};constructor(){(0,l.QZP)(()=>{this.valueChange.emit(this.value())})}writeValue(t){this.value.set(t||"")}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}emitValue(t){const i=t.target.value;this.value.set(i),this.onChange(i)}focus(){this.isFocused=!0,this.inputField?.nativeElement&&this.inputField.nativeElement.focus()}onBlur(){this.isFocused=!1,this.onTouched()}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-input-multiline"]],viewQuery:function(i,n){if(1&i&&e.GBs(ue,5),2&i){let a;e.mGM(a=e.lsd())&&(n.inputField=a.first)}},inputs:{value:[1,"value"],label:[1,"label"],placeholder:[1,"placeholder"],error:[1,"error"],required:[1,"required"],icon:[1,"icon"],size:[1,"size"]},outputs:{value:"valueChange",valueChange:"valueChange"},features:[e.Jv_([{provide:b.kq,useExisting:(0,l.Rfq)(()=>o),multi:!0}])],decls:10,vars:13,consts:[["inputField",""],[1,"form-field"],["size","s",1,"label"],[1,"input-container"],["align","center","gap","s"],[2,"height","12px"],["cdkTextareaAutosize","",1,"input","textarea",2,"resize","none","overflow","hidden",3,"input","focus","blur","cdkAutosizeMinRows","cdkAutosizeMaxRows","placeholder","value","disabled"],["size","s",1,"error-text"],[3,"name"]],template:function(i,n){1&i&&(e.j41(0,"div",1)(1,"cue-typography",2),e.EFF(2),e.nVh(3,de,1,0),e.k0s(),e.j41(4,"div",3)(5,"cue-flexcontainer",4),e.nVh(6,_e,2,1,"span",5),e.j41(7,"textarea",6,0),e.bIt("input",function(p){return n.emitValue(p)})("focus",function(){return n.isFocused=!0})("blur",function(){return n.onBlur()}),e.k0s()()(),e.nVh(9,pe,2,1,"cue-typography",7),e.k0s()),2&i&&(e.HbH("size-"+n.size()),e.AVh("focused",n.isFocused||n.value()),e.R7$(2),e.SpI(" ",n.label()," "),e.R7$(),e.vxM(n.required()?3:-1),e.R7$(3),e.vxM(n.icon()?6:-1),e.R7$(),e.Y8G("cdkAutosizeMinRows",1)("cdkAutosizeMaxRows",8)("placeholder",n.placeholder())("value",n.value())("disabled",n.disabled),e.R7$(2),e.vxM(n.error()?9:-1))},dependencies:[V.Typography,x.n,A.A,re,ce],styles:[".form-field[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column}.input-container[_ngcontent-%COMP%]{position:relative;z-index:2}.input.textarea[_ngcontent-%COMP%]{width:100%;min-height:32px;border:none;border-bottom:1px solid var(--cue-input-border-bottom-color);background:none;outline:none;font-family:var(--cue-font-family);resize:none;overflow:hidden;color:var(--cue-input-value-color);position:relative;z-index:2}.size-xs[_ngcontent-%COMP%] .input.textarea[_ngcontent-%COMP%]{padding:var(--cue-input-xs-padding);font-size:var(--cue-input-xs-font-size)}.size-s[_ngcontent-%COMP%] .input.textarea[_ngcontent-%COMP%]{padding:var(--cue-input-s-padding);font-size:var(--cue-input-s-font-size)}.size-m[_ngcontent-%COMP%] .input.textarea[_ngcontent-%COMP%]{padding:var(--cue-input-m-padding);font-size:var(--cue-input-m-font-size)}.size-l[_ngcontent-%COMP%] .input.textarea[_ngcontent-%COMP%]{padding:var(--cue-input-l-padding);font-size:var(--cue-input-l-font-size)}.input.textarea[_ngcontent-%COMP%]::placeholder{color:var(--cue-input-placeholder-color);font-family:var(--cue-font-family)}.input[_ngcontent-%COMP%]:-webkit-autofill, .input[_ngcontent-%COMP%]:-webkit-autofill:hover, .input[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-box-shadow:0 0 0px 1000px transparent inset;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s;-webkit-text-fill-color:var(--cue-input-value-color)}.label[_ngcontent-%COMP%]{position:absolute;pointer-events:none;transition:all .2s ease;z-index:1;padding:0 4px;left:0}.size-xs[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-top);left:var(--cue-input-xs-label-left)}.size-s[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-top);left:var(--cue-input-s-label-left)}.size-m[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-top);left:var(--cue-input-m-label-left)}.size-l[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-top);left:var(--cue-input-l-label-left)}.form-field.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:var(--cue-input-value-color)}.size-xs.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-focused-top);font-size:var(--cue-input-xs-label-focused-font-size)}.size-s.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-focused-top);font-size:var(--cue-input-s-label-focused-font-size)}.size-m.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-focused-top);font-size:var(--cue-input-m-label-focused-font-size)}.size-l.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-focused-top);font-size:var(--cue-input-l-label-focused-font-size)}.error-text[_ngcontent-%COMP%]{color:var(--cue-error);margin-top:4px;min-height:18px}.form-field[_ngcontent-%COMP%]:not(.focused) .input-container[_ngcontent-%COMP%]{margin-top:24px}.form-field.focused[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{margin-top:12px}"],changeDetection:0})}return o})();var j=c(6117),me=c(356),he=c(6279),fe=c(1359);function ve(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-typography",11),e.bIt("click",function(){l.eBV(t);const n=e.XpG();return l.Njj(!n.disabled()&&n.openMenu())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("info",t.info()),e.R7$(),e.JRh(t.label())}}function Me(o,_){if(1&o&&e.nrm(0,"cue-svg-icon",12),2&o){const t=e.XpG();e.xc7("--cue-icon-width",t.iconSize()),e.Y8G("name",_)}}function be(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-input",13),e.nI1(1,"transloco"),e.mxI("valueChange",function(n){l.eBV(t);const a=e.XpG();return e.DH7(a.filterValue,n)||(a.filterValue=n),l.Njj(n)}),e.k0s(),e.nrm(2,"div",14)}if(2&o){const t=e.XpG();e.R50("value",t.filterValue),e.Y8G("placeholder",e.bMT(1,2,"components.input.select.placeholderFilter"))}}function Ce(o,_){1&o&&e.nrm(0,"cue-svg-icon",17),2&o&&e.Y8G("name",_)}function ye(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-menu-item",15),e.bIt("click",function(n){const a=l.eBV(t).$implicit,p=e.XpG();return l.Njj(p.handleSelect(n,a.value))})("mousedown",function(n){l.eBV(t);const a=e.XpG();return l.Njj(a.preventEventBubbling(n))}),e.j41(1,"cue-checkbox",16),e.bIt("click",function(n){const a=l.eBV(t).$implicit,p=e.XpG();return l.Njj(p.handleSelect(n,a.value))})("mousedown",function(n){l.eBV(t);const a=e.XpG();return l.Njj(a.preventEventBubbling(n))}),e.k0s(),e.nVh(2,Ce,1,1,"cue-svg-icon",17),e.EFF(3),e.k0s()}if(2&o){let t;const i=_.$implicit,n=e.XpG();e.Y8G("size",n.size())("disabled",n.isFixedValue(i.value)&&n.isSelected(i.value))("selected",n.isSelected(i.value)),e.R7$(),e.Y8G("checked",n.isSelected(i.value))("disabled",n.isFixedValue(i.value)&&n.isSelected(i.value)),e.R7$(),e.vxM((t=n.icon(i.value))?2:-1,t),e.R7$(),e.SpI(" ",i.label," ")}}function xe(o,_){if(1&o&&(e.j41(0,"cue-typography",10),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.error())}}let Pe=(()=>{class o{label=(0,s.hFB)("");info=(0,s.hFB)("");placeholder=(0,s.hFB)(void 0);menuPosition=(0,s.hFB)(void 0);options=(0,s.hFB)();labelMap=(0,s.hFB)({});iconMap=(0,s.hFB)({});value=(0,s.geq)([]);valueChange=(0,s.CGW)();fixedValues=(0,s.hFB)([]);size=(0,s.hFB)("xs");disabled=(0,s.hFB)(!1);showFilter=(0,s.hFB)(!1);underline=(0,s.hFB)(!0);error=(0,s.hFB)(void 0);maxHeight=(0,s.hFB)(void 0);optionLabels=(0,d.EW)(()=>{const t=this.labelMap();return(this.options()??[]).map(n=>t[n]?t[n]:n.toString())});_multiSelectCount=(0,d.EW)(()=>(this.value()||[]).length);_multiSelectTranslated=(0,v.Xx)("components.input.multiSelect.itemsSelected",(0,d.EW)(()=>({count:this._multiSelectCount()})));_defaultPlaceholder=(0,v.Xx)("components.input.multiSelect.placeholderSelect");_placeholder=(0,d.EW)(()=>this.placeholder()??this._defaultPlaceholder());valueLabel=(0,d.EW)(()=>{const t=this.labelMap(),i=this.value()||[];if(0===i.length)return"";if(1===i.length){const n=i[0];return t[n]?t[n]:n.toString()}return this._multiSelectTranslated()});menuIsOpen=(0,l.vPA)(void 0);filterInputEl=(0,s.ebz)(f.p);menuEl=(0,s.ebz)(j.W);filterValue=(0,l.vPA)("");optionsFiltered=(0,d.EW)(()=>this._appendFilter(this.options()??[],this.filterValue(),this.labelMap()));iconSize=(0,d.EW)(()=>`var(--cue-input-${this.size()}-font-size)`);handleSelect(t,i){const a=t.target.closest("cue-multi-select");(null!==a?.closest(".ag-filter-wrapper")||null!==a?.closest(".ag-popup")||null!==a?.closest(".ag-filter-apply-panel")||null!==a?.closest('[class*="ag-"]')||null!==document.querySelector(".ag-filter-wrapper"))&&t.stopPropagation(),t.preventDefault();const y=this.value()||[],I=y.includes(i),B=this.fixedValues().includes(i);if(I&&B)return;let T;T=I?y.filter(R=>R!==i):[...y,i],this.value.update(()=>[...T]),this.valueChange.emit(T)}preventEventBubbling(t){const n=t.target.closest("cue-multi-select");(null!==n?.closest(".ag-filter-wrapper")||null!==n?.closest(".ag-popup")||null!==n?.closest(".ag-filter-apply-panel")||null!==n?.closest('[class*="ag-"]')||null!==document.querySelector(".ag-filter-wrapper"))&&(t.stopPropagation(),t.stopImmediatePropagation())}onMenuClosed(){this.menuIsOpen.set(!1)}openMenu(){this.menuIsOpen.set(!0),this.filterValue.set("")}handleSpace(t){t.preventDefault(),this.openMenu()}isSelected(t){return(this.value()||[]).includes(t)}isFixedValue(t){return this.fixedValues().includes(t)}constructor(){(0,l.QZP)(()=>{this.showFilter()&&this.menuIsOpen()&&setTimeout(()=>this.filterInputEl()?.focus(),20)}),(0,l.QZP)(()=>{const t=this.value()||[],n=this.fixedValues().filter(a=>!t.includes(a));if(n.length>0){const a=[...t,...n];this.value.set(a)}})}icon(t){if(void 0!==t)return this.iconMap()[t]}_appendFilter(t,i,n){const a=i.toLowerCase();return(""===i?t:t.filter(y=>(n[y]?n[y].toLowerCase():y.toString().toLowerCase()).startsWith(a))).map(y=>({value:y,label:n[y]?n[y]:y.toString()}))}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-multi-select"]],viewQuery:function(i,n){1&i&&e.wEZ(n.filterInputEl,f.p,5)(n.menuEl,j.W,5),2&i&&e.NyB(2)},inputs:{label:[1,"label"],info:[1,"info"],placeholder:[1,"placeholder"],menuPosition:[1,"menuPosition"],options:[1,"options"],labelMap:[1,"labelMap"],iconMap:[1,"iconMap"],value:[1,"value"],fixedValues:[1,"fixedValues"],size:[1,"size"],disabled:[1,"disabled"],showFilter:[1,"showFilter"],underline:[1,"underline"],error:[1,"error"],maxHeight:[1,"maxHeight"]},outputs:{value:"valueChange",valueChange:"valueChange"},decls:15,vars:20,consts:[["trigger",""],[1,"form-field"],["size","s",1,"label",3,"info"],[3,"menuClosed","positioning","contextEnabled"],["trigger","","tabindex","0",1,"select-trigger",3,"click","keydown.enter","keydown.space"],["align","center","gap","s",1,"select-value"],[3,"--cue-icon-width","name"],["name","arrow-dropdown",1,"select-arrow"],["menu","",1,"menu",3,"maxHeight"],[3,"size","disabled","selected"],["size","s",1,"error-text"],["size","s",1,"label",3,"click","info"],[3,"name"],[3,"valueChange","value","placeholder"],[2,"height","6px"],[3,"click","mousedown","size","disabled","selected"],["before","",3,"click","mousedown","checked","disabled"],["before","",3,"name"]],template:function(i,n){if(1&i&&(e.j41(0,"div",1),e.nVh(1,ve,2,2,"cue-typography",2),e.j41(2,"cue-menu",3),e.bIt("menuClosed",function(){return n.onMenuClosed()}),e.EFF(3,"> "),e.j41(4,"div",4,0),e.bIt("click",function(){return!n.disabled()&&n.openMenu()})("keydown.enter",function(){return!n.disabled()&&n.openMenu()})("keydown.space",function(p){return!n.disabled()&&n.handleSpace(p)}),e.j41(6,"cue-flexcontainer",5),e.nVh(7,Me,1,3,"cue-svg-icon",6),e.EFF(8),e.k0s(),e.nrm(9,"cue-svg-icon",7),e.k0s(),e.j41(10,"cue-menu-wrap",8),e.nVh(11,be,3,4),e.Z7z(12,ye,4,7,"cue-menu-item",9,e.Vm6),e.k0s()(),e.nVh(14,xe,2,1,"cue-typography",10),e.k0s()),2&i){let a;e.HbH("size-"+n.size()),e.AVh("focused",n.value()&&n.value().length>0||""!==n.placeholder())("menu-open",n.menuIsOpen())("underline",n.underline())("no-label",!n.label()),e.R7$(),e.vxM(n.label()?1:-1),e.R7$(),e.Y8G("positioning",n.menuPosition())("contextEnabled",!n.disabled()),e.R7$(2),e.AVh("disabled",n.disabled()),e.R7$(3),e.vxM((a=n.icon(1===n.value().length?n.value()[0]:void 0))?7:-1,a),e.R7$(),e.SpI(" ",n.value()&&n.value().length>0?n.valueLabel():n._placeholder()," "),e.R7$(2),e.Y8G("maxHeight",n.maxHeight()),e.R7$(),e.vxM(n.showFilter()?11:-1),e.R7$(),e.Dyx(n.optionsFiltered()),e.R7$(2),e.vxM(n.error()?14:-1)}},dependencies:[j.W,me.M,he.D,V.Typography,f.p,fe.S,A.A,x.n,v.Kj],styles:[".form-field[_ngcontent-%COMP%]{position:relative}.select-trigger[_ngcontent-%COMP%]{color:var(--cue-input-value-color);width:100%;border:none;background:none;outline:none;font-family:var(--cue-font-family);display:flex;justify-content:space-between;align-items:center;cursor:pointer;box-sizing:border-box}.form-field.underline[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{border-bottom:1px solid var(--cue-input-border-bottom-color)}.form-field[_ngcontent-%COMP%]:not(.underline) .select-trigger[_ngcontent-%COMP%]{align-items:flex-start;padding-top:2px;padding-bottom:1px}.select-trigger.disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.6}.select-trigger[_ngcontent-%COMP%]:focus{outline:none}.size-xs[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-xs-padding);font-size:var(--cue-input-xs-font-size)}.size-s[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-s-padding);font-size:var(--cue-input-s-font-size)}.size-m[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-m-padding);font-size:var(--cue-input-m-font-size)}.size-l[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-l-padding);font-size:var(--cue-input-l-font-size)}.form-field.no-label.size-xs[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%], .form-field.no-label.size-s[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%], .form-field.no-label.size-m[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%], .form-field.no-label.size-l[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding-top:0}.select-value[_ngcontent-%COMP%]{color:var(--cue-input-value-color);font-family:var(--cue-font-family);flex:1;text-align:left}.form-field[_ngcontent-%COMP%]:not(.focused) .select-value[_ngcontent-%COMP%]{color:var(--cue-input-placeholder-color)}.select-arrow[_ngcontent-%COMP%]{color:var(--cue-input-value-color);margin-left:8px;display:inline-block;transition:transform .2s ease}.form-field.menu-open[_ngcontent-%COMP%] .select-arrow[_ngcontent-%COMP%]{transform:rotate(180deg)}.label[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;transition:all .2s ease;cursor:pointer}.size-xs[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-top);left:var(--cue-input-xs-label-left)}.size-s[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-top);left:var(--cue-input-s-label-left)}.size-m[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-top);left:var(--cue-input-m-label-left)}.size-l[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-top);left:var(--cue-input-l-label-left)}.form-field.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .form-field.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{color:var(--cue-input-value-color)}.size-xs.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-xs.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-focused-top);font-size:var(--cue-input-xs-label-focused-font-size)}.size-s.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-s.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-focused-top);font-size:var(--cue-input-s-label-focused-font-size)}.size-m.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-m.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-focused-top);font-size:var(--cue-input-m-label-focused-font-size)}.size-l.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-l.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-focused-top);font-size:var(--cue-input-l-label-focused-font-size)}cue-menu[_ngcontent-%COMP%]{width:100%}.error-text[_ngcontent-%COMP%]{color:var(--cue-error);margin-top:4px;min-height:18px}"],changeDetection:0})}return o})();const Oe=["*"],Y=()=>[],L=()=>({});function Ee(o,_){if(1&o&&(e.j41(0,"cue-typography"),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.JRh(t.config().message)}}function De(o,_){if(1&o&&(e.nrm(0,"cue-key-val",4),e.nI1(1,"transloco")),2&o){const t=e.XpG(2);e.Y8G("key",e.mNQ(e.bMT(1,3,"components.modals.rdfEdit.labelExistingValue")))("val",t.existingValue())}}function ze(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-input",15),e.nI1(1,"transloco"),e.mxI("valueChange",function(n){l.eBV(t);const a=e.XpG(2);return e.DH7(a.newValue,n)||(a.newValue=n),l.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,4,"components.modals.rdfEdit.labelNewValue"))),e.R50("value",t.newValue),e.Y8G("error",t.valueError())}}function ke(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-input",16),e.nI1(1,"transloco"),e.mxI("valueChange",function(n){l.eBV(t);const a=e.XpG(2);return e.DH7(a.newValue,n)||(a.newValue=n),l.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,4,"components.modals.rdfEdit.labelNewValue"))),e.R50("value",t.newValue),e.Y8G("error",t.valueError())}}function Re(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-input-date",17),e.nI1(1,"transloco"),e.mxI("valueChange",function(n){l.eBV(t);const a=e.XpG(2);return e.DH7(a.newValue,n)||(a.newValue=n),l.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,4,"components.modals.rdfEdit.labelNewValue"))),e.R50("value",t.newValue),e.Y8G("error",t.valueError())}}function Fe(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",8)(1,"cue-typography"),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"cue-input-switch",18),e.bIt("checkedChange",function(n){l.eBV(t);const a=e.XpG(2);return l.Njj(a.onBooleanChange(n))}),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"components.modals.rdfEdit.labelSetNewValue")),e.R7$(2),e.Y8G("checked","true"===t.newValue())}}function Ve(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-select",19),e.nI1(1,"transloco"),e.mxI("valueChange",function(n){l.eBV(t);const a=e.XpG(2);return e.DH7(a.newValue,n)||(a.newValue=n),l.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,7,"components.modals.rdfEdit.labelNewValue"))),e.R50("value",t.newValue),e.Y8G("options",t.config().options||e.lJ4(9,Y))("labelMap",t.config().optionLabelMap||e.lJ4(10,L))("showFilter",t.optionsCount()>5)("error",t.valueError())}}function Te(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-multi-select",19),e.nI1(1,"transloco"),e.mxI("valueChange",function(n){l.eBV(t);const a=e.XpG(2);return e.DH7(a.newValue,n)||(a.newValue=n),l.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,7,"components.modals.rdfEdit.labelNewValue"))),e.R50("value",t.newValue),e.Y8G("options",t.config().options||e.lJ4(9,Y))("labelMap",t.config().optionLabelMap||e.lJ4(10,L))("showFilter",t.optionsCount()>5)("error",t.valueError())}}function we(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-input-multiline",20),e.nI1(1,"transloco"),e.mxI("valueChange",function(n){l.eBV(t);const a=e.XpG(2);return e.DH7(a.comment,n)||(a.comment=n),l.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,3,"components.modals.rdfEdit.labelComment"))),e.R50("value",t.comment)}}function Ie(o,_){if(1&o&&(e.j41(0,"cue-typography",11),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.JRh(t.error())}}function Be(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-modal",1),e.bIt("close",function(){l.eBV(t);const n=e.XpG();return l.Njj(n.onClose())}),e.j41(1,"cue-flexcontainer",2),e.SdG(2),e.nVh(3,Ee,2,1,"cue-typography"),e.j41(4,"cue-flexcontainer",3),e.nVh(5,De,2,5,"cue-key-val",4),e.nVh(6,ze,2,6,"cue-input",5),e.nVh(7,ke,2,6,"cue-input",6),e.nVh(8,Re,2,6,"cue-input-date",7),e.nVh(9,Fe,5,4,"cue-flexcontainer",8),e.nVh(10,Ve,2,11,"cue-select",9),e.nVh(11,Te,2,11,"cue-multi-select",9),e.k0s(),e.nVh(12,we,2,5,"cue-input-multiline",10),e.nVh(13,Ie,2,1,"cue-typography",11),e.j41(14,"cue-flexcontainer",12)(15,"cue-button",13),e.bIt("click",function(){l.eBV(t);const n=e.XpG();return l.Njj(n.onClose())}),e.j41(16,"cue-button-label"),e.EFF(17),e.nI1(18,"transloco"),e.k0s()(),e.j41(19,"cue-button",14),e.bIt("click",function(){l.eBV(t);const n=e.XpG();return l.Njj(n.onSave())}),e.j41(20,"cue-button-label"),e.EFF(21),e.nI1(22,"transloco"),e.k0s()()()()()}if(2&o){const t=e.XpG();e.Y8G("displayCloseBtn",!1)("closeOnBackgroundClick",!1),e.R7$(3),e.vxM(t.config().message?3:-1),e.R7$(2),e.vxM("boolean"!==t.config().dataType?5:-1),e.R7$(),e.vxM("string"===t.config().dataType?6:-1),e.R7$(),e.vxM("number"===t.config().dataType?7:-1),e.R7$(),e.vxM("date"===t.config().dataType?8:-1),e.R7$(),e.vxM("boolean"===t.config().dataType?9:-1),e.R7$(),e.vxM("select"===t.config().dataType?10:-1),e.R7$(),e.vxM("multiselect"===t.config().dataType?11:-1),e.R7$(),e.vxM(t.identical()?-1:12),e.R7$(),e.vxM(t.error()?13:-1),e.R7$(2),e.Y8G("disabled",t.saving()),e.R7$(2),e.JRh(e.bMT(18,17,"components.modals.rdfEdit.buttonCancel")),e.R7$(2),e.Y8G("disabled",t.saving()||t.identical())("loading",t.saving()),e.R7$(2),e.JRh(e.bMT(22,19,"components.modals.rdfEdit.buttonSave"))}}let Ne=(()=>{class o{visible=(0,s.geq)(!0);config=s.hFB.required();close=(0,s.CGW)();existingValue=(0,d.EW)(()=>{let t="";return t=Array.isArray(this.config().existingValue)?this.config().existingValue.map(n=>this._getLabel(n)).join(", "):this._getLabel(this.config().existingValue),t});newValue=(0,d.uu)(()=>this.config().existingValue);comment=(0,l.vPA)("");errorID=(0,s.geq)("");error=(0,v.Xx)(this.errorID);saving=(0,l.vPA)(!1);pristine=(0,l.vPA)(!0);identical=(0,d.EW)(()=>!this.config().hasExternalChanges&&this.newValue()===this.config().existingValue);valueErrorID=(0,d.EW)(()=>this.pristine()?"":this.identical()?"components.modals.rdfEdit.errorIdenticalValue":"");valueError=(0,v.Xx)(this.valueErrorID);optionsCount=(0,d.EW)(()=>this.config().options?.length||0);constructor(){(0,l.QZP)(()=>{this.pristine()&&this.newValue()!==this.config().existingValue&&this.pristine.set(!1)})}onSave(){var t=this;return(0,u.A)(function*(){t.saving.set(!0),t.errorID.set("");try{const i=t.config();yield i.requestSave({newValue:t.newValue(),comment:t.comment(),previousValue:i.existingValue}),t.visible.set(!1),t.close.emit(t.newValue())}catch(i){console.error("Error saving RDF edit:",i),t.errorID.set("components.modals.rdfEdit.errorSaving")}t.saving.set(!1)})()}onClose(){this.visible.set(!1),this.close.emit(null)}onBooleanChange(t){this.newValue.set(t?"true":"false")}_getLabel(t){const i=this.config().optionLabelMap;return void 0!==i&&i[t]||t}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-modal-rdf-edit"]],inputs:{visible:[1,"visible"],config:[1,"config"],errorID:[1,"errorID"]},outputs:{visible:"visibleChange",close:"close",errorID:"errorIDChange"},ngContentSelectors:Oe,decls:1,vars:1,consts:[[3,"displayCloseBtn","closeOnBackgroundClick"],[3,"close","displayCloseBtn","closeOnBackgroundClick"],["direction","column","align","center"],["direction","column","gap","m"],[3,"key","val"],["type","text",3,"label","value","error"],["type","number",3,"label","value","error"],[3,"label","value","error"],["direction","row","align","center","justify","space-between","gap","l"],[3,"value","options","labelMap","label","showFilter","error"],[2,"width","100%",3,"label","value"],[2,"color","var(--cue-error)"],["direction","row","justify","center",2,"width","100%"],[3,"click","disabled"],["variant","secondary",3,"click","disabled","loading"],["type","text",3,"valueChange","label","value","error"],["type","number",3,"valueChange","label","value","error"],[3,"valueChange","label","value","error"],[3,"checkedChange","checked"],[3,"valueChange","value","options","labelMap","label","showFilter","error"],[2,"width","100%",3,"valueChange","label","value"]],template:function(i,n){1&i&&(e.NAR(),e.nVh(0,Be,23,21,"cue-modal",0)),2&i&&e.vxM(n.visible()?0:-1)},dependencies:[C.a,x.n,O.$,V.Typography,M.F,f.p,h.L,g.l,Pe,ne,ie.d,ge,v.Kj],styles:[".col[_ngcontent-%COMP%]{flex:1;min-width:0;height:100%}"]})}return o})();var H=c(7335);function je(o,_){1&o&&(e.j41(0,"span",7),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&o&&(e.R7$(),e.SpI("(",e.bMT(2,1,"components.keyVal.edited"),")"))}function Ge(o,_){if(1&o){const t=e.RV6();e.j41(0,"span",5),e.bIt("click",function(){l.eBV(t);const n=e.XpG();return l.Njj(n.onReadClick())}),e.j41(1,"span",6),e.EFF(2),e.k0s(),e.nVh(3,je,3,3,"span",7),e.k0s()}if(2&o){const t=e.XpG();e.AVh("interactive",!t.editDisabled()),e.Y8G("menuItems",t.hoverMenu()),e.R7$(2),e.Lme("",t.valueFormatted()," ",t.suffix()),e.R7$(),e.vxM(t.isDirty()?3:-1)}}function Se(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-select",10),e.bIt("valueChange",function(n){l.eBV(t);const a=e.XpG(2);return l.Njj(a.selectionChange(n))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("value",t.newValue())("options",t.options())}}function Ae(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-inline-input",11),e.bIt("valueChange",function(n){l.eBV(t);const a=e.XpG(2);return l.Njj(a.inputChange(n))}),e.k0s(),e.EFF(1)}if(2&o){const t=e.XpG(2);e.Y8G("value",t.valueFormatted()),e.R7$(),e.SpI(" ",t.suffix()," ")}}function Ye(o,_){if(1&o&&(e.j41(0,"cue-flexcontainer",3),e.nVh(1,Se,1,2,"cue-select",8)(2,Ae,2,2),e.nrm(3,"cue-entity-menu",9),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.vxM(void 0!==t.options()&&t.options().length?1:2),e.R7$(2),e.Y8G("items",t.saveCancelMenu())}}function Le(o,_){if(1&o){const t=e.RV6();e.j41(0,"cue-modal-rdf-edit",12),e.mxI("visibleChange",function(n){l.eBV(t);const a=e.XpG();return e.DH7(a.rdfModalVisible,n)||(a.rdfModalVisible=n),l.Njj(n)}),e.bIt("close",function(n){l.eBV(t);const a=e.XpG();return l.Njj(a.onRdfModalClose(n))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("config",_),e.R50("visible",t.rdfModalVisible)}}let He=(()=>{class o{entityMenuDirective;size=(0,s.hFB)("m");key=s.hFB.required();val=s.geq.required();originalValue=(0,s.hFB)(void 0);options=(0,s.hFB)([]);suffix=(0,s.hFB)("");rdfConfig=(0,s.hFB)();editDisabled=(0,s.hFB)(!1);valueChange=(0,s.CGW)();editModeEnabled=(0,l.vPA)(!1);isDirty=(0,d.EW)(()=>{const t=this.originalValue();return void 0!==t&&this.val()!==t});valueChanged=(0,d.EW)(()=>this.val()!==this.newValue());newValue=(0,d.uu)(()=>this.val());rdfModalVisible=(0,l.vPA)(!1);valueFormatted=(0,d.EW)(()=>this._idToString(this.val()));hoverMenu=(0,d.EW)(()=>{if(this.editModeEnabled()||this.editDisabled())return[];const t=[{icon:"edit",label:"Edit",action:()=>this.onReadClick()}];return this.isDirty()&&t.push({icon:"close",label:"Revert to original",action:()=>this._revert()}),t});onReadClick(){this.editDisabled()||(this.rdfConfig()?this.rdfModalVisible.set(!0):this.editModeEnabled.set(!0),this.entityMenuDirective?.removeOverlayMenu())}labelSize=(0,d.EW)(()=>{switch(this.size()){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l"}});onKeyPress(t){this.editModeEnabled()&&("Escape"===t.key?(this._reset(),t.stopPropagation()):"Enter"===t.key&&this._emitChange())}saveCancelMenu=(0,d.EW)(()=>{const t=[{icon:"close",label:"Cancel",action:()=>this._reset()}];return this.valueChanged()&&t.push({icon:"save",label:"Save",action:()=>this._emitChange()}),t});selectionChange(t){this.newValue.set(t?.toString()??"")}inputChange(t){this.newValue.set(t)}_emitChange(){this.valueChange.emit(this.newValue()),this.val.set(this.newValue()),this.editModeEnabled.set(!1)}_reset(){this.newValue.set(this.val()),this.editModeEnabled.set(!1)}_revert(){const t=this.originalValue();void 0!==t&&(this.val.set(t),this.newValue.set(t),this.valueChange.emit(t),this.entityMenuDirective?.removeOverlayMenu())}_idToString(t){const i=this.rdfConfig()?.optionLabelMap;return i?i[t]??t:t}onRdfModalClose(t){if(this.rdfModalVisible.set(!1),null===t)return;const i=Array.isArray(t)?t.join(", "):t;this.val.set(i)}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-key-val-editable"]],viewQuery:function(i,n){if(1&i&&e.GBs(H.e,5),2&i){let a;e.mGM(a=e.lsd())&&(n.entityMenuDirective=a.first)}},hostBindings:function(i,n){1&i&&e.bIt("keydown",function(p){return n.onKeyPress(p)},e.EBC)},inputs:{size:[1,"size"],key:[1,"key"],val:[1,"val"],originalValue:[1,"originalValue"],options:[1,"options"],suffix:[1,"suffix"],rdfConfig:[1,"rdfConfig"],editDisabled:[1,"editDisabled"]},outputs:{val:"valChange",valueChange:"valueChange"},decls:9,vars:5,consts:[[1,"key-val-container"],[3,"size"],["cueEntityMenu","",1,"read-mode-container",3,"interactive","menuItems"],["direction","row","align","center"],[3,"config","visible"],["cueEntityMenu","",1,"read-mode-container",3,"click","menuItems"],[1,"value-content"],[1,"dirty-indicator"],[3,"value","options"],[3,"items"],[3,"valueChange","value","options"],[3,"valueChange","value"],[3,"visibleChange","close","config","visible"]],template:function(i,n){if(1&i&&(e.j41(0,"dl",0)(1,"dt")(2,"cue-typography",1),e.EFF(3),e.k0s()(),e.j41(4,"dd")(5,"cue-typography",1),e.nVh(6,Ge,4,6,"span",2)(7,Ye,4,2,"cue-flexcontainer",3),e.k0s()()(),e.nVh(8,Le,1,2,"cue-modal-rdf-edit",4)),2&i){let a;e.R7$(2),e.Y8G("size",n.labelSize()),e.R7$(),e.JRh(n.key()),e.R7$(2),e.Y8G("size",n.size()),e.R7$(),e.vxM(n.editModeEnabled()?n.rdfConfig()?-1:7:6),e.R7$(2),e.vxM((a=n.rdfConfig())?8:-1,a)}},dependencies:[V.Typography,H.e,g.l,E.H,x.n,F,Ne,v.Kj],styles:[".key-val-container[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;gap:var(--cue-grid-gap-s, 8px)}dt[_ngcontent-%COMP%], dd[_ngcontent-%COMP%]{margin:0}.read-mode-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:100%;position:relative}.read-mode-container.interactive[_ngcontent-%COMP%]:hover{cursor:pointer}.value-content[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]{color:var(--cue-typography-text-color, inherit)}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], .value-content[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}[_ngcontent-%COMP%]:deep(cue-svg-icon), [_ngcontent-%COMP%]:deep(cue-entity-menu cue-svg-icon){color:var(--cue-icon-color, inherit)!important}.dirty-indicator[_ngcontent-%COMP%]{opacity:.8;margin-left:4px;color:var(--cue-typography-text-color, inherit)!important;font-weight:700;font-size:.4em;transform:translateY(-1em)}"]})}return o})()},1024(w,D,c){c.d(D,{p:()=>d});var s=c(5547);const l=["*"];let d=(()=>{class E{static \u0275fac=function(r){return new(r||E)};static \u0275cmp=s.VBU({type:E,selectors:[["cue-key-val-list"]],ngContentSelectors:l,decls:2,vars:0,consts:[[1,"key-val-list"]],template:function(r,z){1&r&&(s.NAR(),s.rj2(0,"div",0),s.SdG(1),s.eux())},styles:[".key-val-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--cue-grid-gap-s)}"]})}return E})()},9421(w,D,c){c.d(D,{F:()=>r});var s=c(7705),l=c(5802),d=c(2271),E=c(7335),e=c(2245),m=c(5547);let r=(()=>{class z{entityMenuDirective;size=(0,s.hFB)("m");key=s.hFB.required();val=s.geq.required();options=(0,s.hFB)([]);suffix=(0,s.hFB)("");valueChange=(0,s.CGW)();editModeEnabled=(0,l.vPA)(!1);valueChanged=(0,d.EW)(()=>this.val()!==this.newValue());newValue=(0,d.uu)(()=>this.val());labelSize=(0,d.EW)(()=>{switch(this.size()){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l"}});onKeyPress(u){this.editModeEnabled()&&("Escape"===u.key?(this._reset(),u.stopPropagation()):"Enter"===u.key&&this._emitChange())}saveCancelMenu=(0,d.EW)(()=>{const u=[{icon:"close",label:"Cancel",action:()=>this._reset()}];return this.valueChanged()&&u.push({icon:"save",label:"Save",action:()=>this._emitChange()}),u});selectionChange(u){this.newValue.set(u?.toString()??"")}inputChange(u){this.newValue.set(u)}_emitChange(){this.valueChange.emit(this.newValue()),this.val.set(this.newValue()),this.editModeEnabled.set(!1)}_reset(){this.newValue.set(this.val()),this.editModeEnabled.set(!1)}static \u0275fac=function(v){return new(v||z)};static \u0275cmp=m.VBU({type:z,selectors:[["cue-key-val"]],viewQuery:function(v,C){if(1&v&&m.GBs(E.e,5),2&v){let x;m.mGM(x=m.lsd())&&(C.entityMenuDirective=x.first)}},hostBindings:function(v,C){1&v&&m.bIt("keydown",function(O){return C.onKeyPress(O)},m.EBC)},inputs:{size:[1,"size"],key:[1,"key"],val:[1,"val"],options:[1,"options"],suffix:[1,"suffix"]},outputs:{val:"valChange",valueChange:"valueChange"},decls:8,vars:5,consts:[[1,"key-val-container"],[3,"size"],[1,"value-content"]],template:function(v,C){1&v&&(m.j41(0,"dl",0)(1,"dt")(2,"cue-typography",1),m.EFF(3),m.k0s()(),m.j41(4,"dd")(5,"cue-typography",1)(6,"span",2),m.EFF(7),m.k0s()()()()),2&v&&(m.R7$(2),m.Y8G("size",C.labelSize()),m.R7$(),m.JRh(C.key()),m.R7$(2),m.Y8G("size",C.size()),m.R7$(2),m.Lme("",C.val()," ",C.suffix()))},dependencies:[e.Typography],styles:[".key-val-container[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;gap:var(--cue-grid-gap-s, 8px)}dt[_ngcontent-%COMP%], dd[_ngcontent-%COMP%]{margin:0}.read-mode-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:100%;position:relative}.read-mode-container.interactive[_ngcontent-%COMP%]:hover{cursor:pointer}.value-content[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]{color:var(--cue-typography-text-color, inherit)}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], .value-content[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}[_ngcontent-%COMP%]:deep(cue-svg-icon), [_ngcontent-%COMP%]:deep(cue-entity-menu cue-svg-icon){color:var(--cue-icon-color, inherit)!important}.dirty-indicator[_ngcontent-%COMP%]{opacity:.8;margin-left:4px;color:var(--cue-typography-text-color, inherit)!important;font-weight:700;font-size:.4em;transform:translateY(-1em)}"]})}return z})()},8547(w,D,c){c.d(D,{T:()=>V});var s=c(7705),l=c(29),d=c(6117),E=c(6279),e=c(356),m=c(5802),r=c(5547);const z=(M,f)=>f.label;function F(M,f){if(1&M&&r.nrm(0,"cue-svg-icon",3),2&M){const h=r.XpG(2).$implicit;r.Y8G("name",h.icon)}}function u(M,f){if(1&M&&r.nrm(0,"cue-menu-nested",5),2&M){const h=r.XpG(2).$implicit,g=r.XpG();r.Y8G("items",h.children)("positioning",g.positioning())}}function v(M,f){if(1&M&&(r.j41(0,"cue-menu",0)(1,"cue-menu-item",2),r.nVh(2,F,1,1,"cue-svg-icon",3),r.EFF(3),r.nrm(4,"cue-svg-icon",4),r.k0s(),r.nVh(5,u,1,2,"cue-menu-nested",5),r.k0s()),2&M){const h=r.XpG().$implicit,g=r.XpG();r.Y8G("positioning",g.positioning()),r.R7$(),r.Y8G("title",h.tooltip),r.R7$(),r.vxM(h.icon?2:-1),r.R7$(),r.SpI(" ",h.label," "),r.R7$(2),r.vxM(h.children?5:-1)}}function C(M,f){if(1&M&&r.nrm(0,"cue-svg-icon",3),2&M){const h=r.XpG(2).$implicit;r.Y8G("name",h.icon)}}function x(M,f){if(1&M){const h=r.RV6();r.j41(0,"cue-menu-item",6),r.bIt("click",function(){m.eBV(h);const b=r.XpG().$implicit;return m.Njj(null==b.action?null:b.action())}),r.nVh(1,C,1,1,"cue-svg-icon",3),r.EFF(2),r.k0s()}if(2&M){const h=r.XpG().$implicit;r.Y8G("title",h.tooltip),r.R7$(),r.vxM(h.icon?1:-1),r.R7$(),r.SpI(" ",h.label," ")}}function O(M,f){if(1&M&&r.nVh(0,v,6,5,"cue-menu",0)(1,x,3,3,"cue-menu-item",1),2&M){const h=f.$implicit;r.vxM(null!=h.children&&h.children.length?0:1)}}let V=(()=>{class M{items=s.hFB.required();positioning=(0,s.hFB)(void 0);static \u0275fac=function(g){return new(g||M)};static \u0275cmp=r.VBU({type:M,selectors:[["cue-menu-nested"]],inputs:{items:[1,"items"],positioning:[1,"positioning"]},decls:3,vars:0,consts:[["trigger","hover",3,"positioning"],[3,"title"],["trigger","",3,"title"],["before","",3,"name"],["after","","name","paginator-next"],["menu","",3,"items","positioning"],[3,"click","title"]],template:function(g,b){1&g&&(r.j41(0,"cue-menu-wrap"),r.Z7z(1,O,2,1,null,null,z),r.k0s()),2&g&&(r.R7$(),r.Dyx(b.items()))},dependencies:[M,d.W,E.D,e.M,l.A],encapsulation:2})}return M})()},7335(w,D,c){c.d(D,{e:()=>z});var s=c(7705),l=c(5802),d=c(5547),E=c(8359),e=c(6939),m=c(63),r=c(4853);let z=(()=>{class F{_targetEl=(0,l.WQX)(d.aKT);_overlay=(0,l.WQX)(m.hJ);_overlayRef;_isOverlayHovered=!1;_subscriptions;display=(0,s.hFB)("on-hover");menuItems=s.hFB.required();menuEnabled=(0,s.hFB)(!0);onMouseEnter(){if("on-hover"===this.display()){if(!this.menuItems().length)return void this.removeOverlayMenu();this.appendOverlayMenu()}}onMouseLeave(){this._checkShouldRemoveOverlay()}appendOverlayMenu(){if(!this.menuItems().length||this._overlayRef)return;const v=this._overlay.create({positionStrategy:this._overlay.position().flexibleConnectedTo(this._targetEl).withPositions([{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:2,offsetY:0}])});this._overlayRef=v;const C=window.getComputedStyle(this._targetEl.nativeElement).color;v.overlayElement.style.color=C;const x=new e.A8(r.H),O=v.attach(x);O.instance.items=this.menuItems,this._subscriptions&&this._subscriptions.unsubscribe(),this._subscriptions=new E.yU,this._subscriptions.add(O.instance.mouseEnter.subscribe(()=>{this._isOverlayHovered=!0})),this._subscriptions.add(O.instance.mouseLeave.subscribe(()=>{this._isOverlayHovered=!1,this._checkShouldRemoveOverlay()}))}removeOverlayMenu(){this._overlayRef&&(this._subscriptions&&(this._subscriptions.unsubscribe(),this._subscriptions=void 0),this._overlayRef.detach(),this._overlayRef.dispose(),this._overlayRef=void 0)}_checkShouldRemoveOverlay(){setTimeout(()=>{this._isOverlayHovered||this.removeOverlayMenu()},300)}static \u0275fac=function(C){return new(C||F)};static \u0275dir=d.FsC({type:F,selectors:[["","cueEntityMenu",""]],hostBindings:function(C,x){1&C&&d.bIt("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(){return x.onMouseLeave()})},inputs:{display:[1,"display"],menuItems:[1,"menuItems"],menuEnabled:[1,"menuEnabled"]}})}return F})()},7573(w,D,c){c.d(D,{E:()=>s});const s={qcy:"https://dev.qaecy.com/ont#","qcy-e":"https://dev.qaecy.com/enum#","qcy-f":"https://dev.qaecy.com/functions#",obc:"https://w3id.org/obc#",dicc:"https://w3id.org/digitalconstruction/0.5/Contexts#",dicv:"https://w3id.org/digitalconstruction/0.5/Variables#",dice:"https://w3id.org/digitalconstruction/0.5/Entities#",dicp:"https://w3id.org/digitalconstruction/0.5/Processes#",dica:"https://w3id.org/digitalconstruction/0.5/Agents#",dici:"https://w3id.org/digitalconstruction/0.5/Information#",dicbm:"https://w3id.org/digitalconstruction/0.5/Materials#",dicob:"https://w3id.org/digitalconstruction/0.5/Occupancy#",dicl:"https://w3id.org/digitalconstruction/0.5/Lifecycle#",dices:"https://w3id.org/digitalconstruction/0.5/Energy#",dicu:"https://w3id.org/digitalconstruction/0.5/Units#",diclvl:"https://w3id.org/digitalconstruction/0.5/Levels#",dicstg:"https://w3id.org/digitalconstruction/0.5/Stages#"}}}]);
|