@genesislcap/design-system-configurator 14.428.2-alpha-257ebec.0 → 14.429.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{182.182.df1e4587e3677b548d3c.js → 182.182.b5152c19a1b6217c12ed.js} +3 -3
- package/dist/182.1ea2a52ab6b1654ce3fbe67783119f27.js.map +1 -0
- package/dist/{210.210.fa07fdd200a43215bfb6.js → 210.210.0c6bd5eb46c298a9ca26.js} +501 -400
- package/dist/210.bcd347b847e901671e777abcf485d547.js.map +1 -0
- package/dist/{445.445.302110ec869f7b03a3e6.js → 445.445.d7cc53988921b8129440.js} +3 -3
- package/dist/445.4f622152dd9b3a994a68782fd9458c82.js.map +1 -0
- package/dist/{designSystemConfigurator.113501c22e8cd53f5b0580c1fb892986.js.map → designSystemConfigurator.8ddc60795850ab2feaedf340d6d78b70.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.b8a2958b7b70159cb5dc9f3313f65589.js.map → main.7abede1f29be92b72029a01ddddcea54.js.map} +1 -1
- package/dist/{main.a09cb3a43aaa9fa6d252.js → main.fda4e78abda99ef599bc.js} +2 -2
- package/dist/remoteEntry.js +2 -2
- package/package.json +13 -13
- package/dist/182.bbf7f1ae7cc27009d073ca5c259d5b74.js.map +0 -1
- package/dist/210.e5e5af8560f5f52b3a50269e7339e788.js.map +0 -1
- package/dist/445.65fb7d3c83872f41b239de28d06dd97a.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[182],{41492(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(r,i,s){var o=i.prototype;s.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var a=s(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),e):a},o.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var n=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),n.call(this,e)};var d=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else d.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var s=this.$utils().u;if(s(r))return this.$u?0:s(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(a)||["-",0,0],s=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===s?o:-o}(r),null===r))return this;var o=Math.abs(r)<=16?60*r:r;if(0===o)return this.utc(i);var n=this.clone();if(i)return n.$offset=o,n.$u=!1,n;var d=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(n=this.local().add(o+d,e)).$offset=o,n.$x.$localOffset=d,n};var g=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var c=o.diff;o.diff=function(e,t,a){if(e&&this.$u===e.$u)return c.call(this,e,t,a);var r=this.local(),i=s(e).local();return c.call(r,i,t,a)}}}()},14609(e,t,a){"use strict";a.d(t,{b:()=>o});const r=(0,a(95618).createLogger)("foundation-criteria");var i=a(86636);const s="default";class o{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,i.r.And()),this.Or=(e,t={})=>this.withExpression(e,t,i.r.Or()),this.Not=(e,t={})=>this.withExpression(e,t,i.r.Not())}withExpression(e,t={},a=i.r.And()){const{condition:o,join:n,groupName:d}=t,l=(e,t=s)=>{var r;const i=null!==(r=this.expressions[t])&&void 0!==r?r:[];this.expressions[t]=[...i,{join:a||n,condition:o,expression:e}]};if(Array.isArray(e))if(n){const t=e.filter(e=>{const t=e instanceof i.r;return t&&r.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t});if(d)t.forEach(e=>{l(e,d)});else{const e=(g=n,t.flat().flatMap((e,t,a)=>a.length-1!==t?[e,g]:e));l(e,s)}}else l(e,s);else l(e,"string"==typeof e?s:e.group);var g;return this}build(e){const t=Object.entries(this.expressions).reduce((e,[t,a])=>Object.assign(Object.assign({},e),{[t]:`(${a.filter(({condition:e})=>!e||e()).map(({expression:e,join:t},a,r)=>this.parseExpression(e,r[a-1],t)).join("")})`}),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,a){const r=[];return a&&t&&r.push(` ${a.operator} `),"string"==typeof e?r.push(e):Array.isArray(e)?(e.forEach((e,t,a)=>{if(e instanceof i.r){if(a[t-1]instanceof i.r)throw new Error("Adjacent Join operations detected")}}),r.push(`(${e.map(e=>this.parseExpression(e,void 0)).join("")})`)):e instanceof i.r?r.push(` ${e.operator} `):e&&r.push(e.serialiser(e)),r.join("")}}},58749(e,t,a){"use strict";a.d(t,{K:()=>i});var r=a(95553);class i{constructor(e){this.serialiser=r.n.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}},95553(e,t,a){"use strict";a.d(t,{n:()=>o});var r=a(86636);const i=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},s=e=>t=>`${t.field} ${e} ${i(t)}`,o={AND:e=>s(r.X.AND)(e),OR:e=>s(r.X.OR)(e),NOT:e=>s(r.X.NOT)(e),GT:e=>s(r.X.GT)(e),GE:e=>s(r.X.GE)(e),LT:e=>s(r.X.LT)(e),LE:e=>s(r.X.LE)(e),NE:e=>s(r.X.NE)(e),EQ:e=>s(r.X.EQ)(e),equals:e=>`${e.field}.equals(${i(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${i(e)})`,contains:e=>`Expr.contains(${e.field}, ${i(e)})`,fieldContains:e=>`${e.field}.contains(${i(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${i(e)})`,startsWith:e=>`${e.field}.startsWith(${i(e)})`,endsWith:e=>`${e.field}.endsWith(${i(e)})`,dateIsToday:e=>`Expr.dateIsToday(${e.field})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${i(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${i(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${i(e)})`,dateTimeIsGreaterEqual:e=>`Expr.dateTimeIsGreaterEqual(${e.field}, ${i(e)})`,dateTimeIsLessEqual:e=>`Expr.dateTimeIsLessEqual(${e.field}, ${i(e)})`}},86636(e,t,a){"use strict";var r;a.d(t,{X:()=>r,r:()=>i}),function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(r||(r={}));class i{constructor(e){this.$$operator=e}static And(){return new i(r.AND)}static Or(){return new i(r.OR)}static Not(){return new i(r.NOT)}static GreaterThan(){return new i(r.GT)}static GreaterThanOrEqual(){return new i(r.GE)}static LessThan(){return new i(r.LT)}static LessThanOrEqual(){return new i(r.LE)}static NotEqual(){return new i(r.NE)}static Equal(){return new i(r.EQ)}get operator(){return this.$$operator}}},57073(e,t,a){"use strict";a.r(t),a.d(t,{AG_BOOLEAN_PROPERTIES:()=>Xe.ME,AG_NUMBER_PROPERTIES:()=>Xe.LB,AG_PROPERTIES:()=>Xe.zI,ActionRenderer:()=>w.eA,ActionsMenuRenderer:()=>k.cN,AgGridCSSVars:()=>s.W3,AgGridTheme:()=>s.mJ,AgTextFieldRenderer:()=>Ot.p8,AgTextRenderer:()=>it.t,BooleanRenderer:()=>G._Y,CellTemplate:()=>Gt.x,ColumnTemplate:()=>Tt.R,DARK_BACKGROUND_HEX:()=>de,DARK_BORDER_HEX:()=>le,DARK_FOREGROUND_HEX:()=>oe,DARK_HEADER_FOREGROUND_HEX:()=>ne,DARK_ROW_HOVER_HEX:()=>ge,DEBOUNCED_RESIZE_TIME:()=>Xe.BW,DEFAULT_STATUS_BAR_CONFIG:()=>s.o2,DISPLAY_NONE_CLASS:()=>vt,DateEditor:()=>b.S8,EDITED_COLUMN_FIELD:()=>s.A7,ERROR_COLUMN_FIELD:()=>s.h1,EditableRenderer:()=>L.YM,ErrorTooltip:()=>We.y,GRID_READY_EVENT:()=>s.mr,GenesisGridDatasourceElement:()=>Lt.yu,GridOptionsConfig:()=>s.lz,GridPro:()=>i.cF,GridProBaseDatasource:()=>Lt.ML,GridProBeta:()=>tt,GridProCaseType:()=>s.uA,GridProCell:()=>Ie.O,GridProClientSideDatasource:()=>_e.L,GridProColumn:()=>Ne.G,GridProGenesisDatasource:()=>Fe.D,GridProRendererTypes:()=>s.IX,GridProServerSideDatasource:()=>Me.X,GridProStatusBarTypes:()=>s.k7,IconRenderer:()=>I.Jt,KVStorageStatePersistence:()=>jt,LIGHT_BACKGROUND_HEX:()=>pe,LIGHT_BORDER_HEX:()=>ue,LIGHT_FOREGROUND_HEX:()=>he,LIGHT_HEADER_FOREGROUND_HEX:()=>ce,LIGHT_ROW_HOVER_HEX:()=>me,LabelValueStatusBarComponent:()=>Ve.k,LoadMoreStatusBarComponent:()=>Ke.s,LocalStorageStatePersistence:()=>Yt.H,MulticolumnDropdown:()=>kt,MultiselectEditor:()=>u.pZ,NumberEditor:()=>h.Z0,OperationType:()=>Lt.S5,PaginationStatusBarComponent:()=>je.h,RapidAgActionRenderer:()=>A,RapidAgActionsMenuRenderer:()=>x,RapidAgSelectRenderer:()=>z,RapidAgTextRenderer:()=>st,RapidBooleanRenderer:()=>O,RapidDateEditor:()=>f,RapidEditableRenderer:()=>$,RapidGridPro:()=>we,RapidGridProBeta:()=>at,RapidIconRenderer:()=>N,RapidMultiselectEditor:()=>m,RapidNumberEditor:()=>c,RapidSelectEditor:()=>l,RapidStatusPillRenderer:()=>B,RapidStringEditor:()=>E,ReloadStatusBarComponent:()=>Ye.W,RowCountStatusBarComponent:()=>qe.i,SelectEditor:()=>d._Q,SelectRenderer:()=>M.gs,StatePersistence:()=>Ue.l,StatusPillRenderer:()=>H.N7,StringEditor:()=>C.XJ,actionHeightMultiplier:()=>w.Fz,agActionRendererStyles:()=>w.AC,agBooleanRendererStyles:()=>G.CL,agDateEditorStyles:()=>b.kI,agEditableRendererStyles:()=>L.Mx,agExternalStockStyles:()=>Pt.Kp,agGridAlpineFontFace:()=>Pt.KX,agGridBalhamFontFace:()=>Pt.c_,agGridCSS:()=>Pt.AT,agGridMaterialFontFace:()=>Pt.Id,agHeadCSS:()=>Pt.g4,agIconRendererStyles:()=>I.X5,agMultiselectEditorStyles:()=>u.$b,agNumberEditorStyles:()=>h.Fv,agSelectEditorStyles:()=>d.Uo,agSelectRendererStyles:()=>M.Ad,agStatusPillRendererStyles:()=>H.x2,agStringEditorStyles:()=>C.P_,agThemeAlpineNofontsCSS:()=>Pt.lJ,agThemeBalhamNofontsCSS:()=>Pt.HC,agThemeFontFaceMap:()=>Pt.KE,agThemeFontsId:()=>s.b7,agThemeGenesisRapid:()=>q,agThemeGenesisRapidDark:()=>Q,agThemeGenesisRapidLight:()=>Z,agThemeGenesisRapidTokens:()=>ye,agThemeMaterialCustomTokens:()=>Jt,agThemeMaterialNofontsCSS:()=>Pt.DX,agThemeTokenMapCSS:()=>s.Kb,agThemeTokenMapClassname:()=>s.eL,backgroundSwatch:()=>qt,baseDatasourceEventNames:()=>ze.L,convertColDefToColumnState:()=>Ze.pr,convertColDefsToColumnStates:()=>Ze.rG,convertToKebabCase:()=>Qe.w,copyAttributesToGridOptions:()=>Xe.Qg,criteriaDelimiter:()=>Lt.NC,criteriaJoin:()=>Lt.W_,csvExportParams:()=>ta,darkColors:()=>ve,datasourceEventNames:()=>Be.c,dateTimeValueFormatter:()=>Xe.XV,dateValueFormatter:()=>Xe.sL,defaultAgGridFontFace:()=>Pt.qh,defaultGridOptionsConfig:()=>s.YO,defaultGridProConfig:()=>i.Z$,deriveHeightsFromTokens:()=>Ce,dropdownWidthVar:()=>ut,errorHandlerDialogStyles:()=>$t.B,extractErrorMessage:()=>Zt.P,foregroundSwatch:()=>Wt,formatDateExtra:()=>Xe.mC,foundationAgBooleanRenderer:()=>G.fg,foundationAgEditableRenderer:()=>L.r8,foundationAgSelectRenderer:()=>M.bE,foundationAgTextFieldRenderer:()=>Ot.wG,foundationAgTextRenderer:()=>it.G4,foundationDateEditor:()=>b.vr,foundationGridComponents:()=>It,foundationGridPro:()=>i.RB,foundationGridProActionRenderer:()=>w._X,foundationGridProActionsMenuRenderer:()=>k.su,foundationGridProShadowOptions:()=>i.LU,foundationGridProStyles:()=>U.X,foundationIconRenderer:()=>I.qN,foundationMulticolumnDropdown:()=>xt,foundationMultiselectEditor:()=>u.UH,foundationNumberEditor:()=>h.CY,foundationSelectEditor:()=>d.RU,foundationStatusPillRenderer:()=>H.a1,foundationStringEditor:()=>C.cb,getActionsMenuDef:()=>k.Al,getAgBooleanRendererTemplate:()=>G.A9,getAgEditableRendererTemplate:()=>L.iP,getAvailableIndexFields:()=>ea.P,getAvailableIndexes:()=>ea.i,getColumnType:()=>Xe.nh,getDateEditorTemplate:()=>b.m6,getEnumFilterParams:()=>Xe.O7,getErrorHandlerDialogTemplate:()=>$t.P,getGridProTemplate:()=>te.U,getIconRendererTemplate:()=>I.V$,getMulticolumnDropdownTemplate:()=>Et,getMultiselectEditorTemplate:()=>u.tB,getNumberEditorTemplate:()=>h.r1,getSelectEditorTemplate:()=>d.iY,getSelectRendererTemplate:()=>M.qj,getStatusPillRendererTemplate:()=>H.T2,getStringEditorTemplate:()=>C.bZ,getTextFieldRendererTemplate:()=>Ot.tm,getTextRendererTemplate:()=>it.d6,gridProColumns:()=>Ct,gridProErrorNames:()=>Xe.Ie,gridProEventNames:()=>Xe.yY,gridProGenesisDatasourceEventNames:()=>He.V,gridProTemplate:()=>te.a,lightColors:()=>be,logger:()=>Je.v,mergeAndDedupColDefWithColumnState:()=>Ze.yS,multicolumnDropdownStyles:()=>bt,multicolumnDropdownTemplate:()=>St,optionsClass:()=>mt,rapidAgActionRenderer:()=>R,rapidAgActionsMenuRenderer:()=>D,rapidAgBooleanRenderer:()=>T,rapidAgDateEditor:()=>y,rapidAgEditableRenderer:()=>P,rapidAgMultiselectEditor:()=>v,rapidAgNumberEditor:()=>p,rapidAgSelectEditor:()=>g,rapidAgSelectRenderer:()=>F,rapidAgStringEditor:()=>S,rapidAgTextRenderer:()=>ot,rapidDefaultGridProConfig:()=>Re,rapidGridComponents:()=>nt,rapidGridPro:()=>ke,rapidGridProBeta:()=>rt,rapidGridProShadowOptions:()=>Ae,rapidGridProStyles:()=>ee,rapidGridProTemplate:()=>ae,rapidIconRenderer:()=>_,rapidMulticolumnDropdown:()=>Dt,rapidStatusPillRenderer:()=>X,sanitizeColumnState:()=>Ze.n7,textFieldRendererStyles:()=>Ot.zS,textRendererStyles:()=>it.JN,themeGenesisRapid:()=>Y,themeGenesisRapidDark:()=>W,themeGenesisRapidLight:()=>J,wasClickOutsideElement:()=>At});var r=a(55823),i=a(51266),s=a(55365),o=a(54634),n=a(33681),d=a(48075);class l extends d._Q{}const g=l.compose({baseName:"select-editor",styles:d.Uo,template:(0,d.iY)("rapid")});var h=a(48072);class c extends h.Z0{}const p=c.compose({baseName:"number-editor",styles:h.Fv,template:(0,h.r1)("rapid")});var u=a(56182);class m extends u.pZ{}const v=m.compose({baseName:"multiselect-editor",styles:u.$b,template:(0,u.tB)("rapid")});var b=a(49255);class f extends b.S8{}const y=f.compose({baseName:"date-editor",styles:b.kI,template:(0,b.m6)("rapid")});var C=a(43352);class E extends C.XJ{}const S=E.compose({baseName:"string-editor",styles:C.P_,template:(0,C.bZ)("rapid")});var w=a(67489);class A extends w.eA{paramsChanged(e,t){(null==t?void 0:t.node.rowHeight)&&this.style.setProperty("--params-row-node-height",`${t.node.rowHeight}px`,"")}}const R=A.compose({baseName:"grid-pro-action-renderer",styles:n.css`
|
|
1
|
+
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[182],{41492(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(r,i,s){var o=i.prototype;s.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var a=s(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),e):a},o.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var n=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),n.call(this,e)};var d=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else d.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var s=this.$utils().u;if(s(r))return this.$u?0:s(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(a)||["-",0,0],s=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===s?o:-o}(r),null===r))return this;var o=Math.abs(r)<=16?60*r:r;if(0===o)return this.utc(i);var n=this.clone();if(i)return n.$offset=o,n.$u=!1,n;var d=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(n=this.local().add(o+d,e)).$offset=o,n.$x.$localOffset=d,n};var g=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var c=o.diff;o.diff=function(e,t,a){if(e&&this.$u===e.$u)return c.call(this,e,t,a);var r=this.local(),i=s(e).local();return c.call(r,i,t,a)}}}()},14609(e,t,a){"use strict";a.d(t,{b:()=>o});const r=(0,a(95618).createLogger)("foundation-criteria");var i=a(86636);const s="default";class o{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,i.r.And()),this.Or=(e,t={})=>this.withExpression(e,t,i.r.Or()),this.Not=(e,t={})=>this.withExpression(e,t,i.r.Not())}withExpression(e,t={},a=i.r.And()){const{condition:o,join:n,groupName:d}=t,l=(e,t=s)=>{var r;const i=null!==(r=this.expressions[t])&&void 0!==r?r:[];this.expressions[t]=[...i,{join:a||n,condition:o,expression:e}]};if(Array.isArray(e))if(n){const t=e.filter(e=>{const t=e instanceof i.r;return t&&r.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t});if(d)t.forEach(e=>{l(e,d)});else{const e=(g=n,t.flat().flatMap((e,t,a)=>a.length-1!==t?[e,g]:e));l(e,s)}}else l(e,s);else l(e,"string"==typeof e?s:e.group);var g;return this}build(e){const t=Object.entries(this.expressions).reduce((e,[t,a])=>Object.assign(Object.assign({},e),{[t]:`(${a.filter(({condition:e})=>!e||e()).map(({expression:e,join:t},a,r)=>this.parseExpression(e,r[a-1],t)).join("")})`}),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,a){const r=[];return a&&t&&r.push(` ${a.operator} `),"string"==typeof e?r.push(e):Array.isArray(e)?(e.forEach((e,t,a)=>{if(e instanceof i.r){if(a[t-1]instanceof i.r)throw new Error("Adjacent Join operations detected")}}),r.push(`(${e.map(e=>this.parseExpression(e,void 0)).join("")})`)):e instanceof i.r?r.push(` ${e.operator} `):e&&r.push(e.serialiser(e)),r.join("")}}},58749(e,t,a){"use strict";a.d(t,{K:()=>i});var r=a(95553);class i{constructor(e){this.serialiser=r.n.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}},95553(e,t,a){"use strict";a.d(t,{n:()=>o});var r=a(86636);const i=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},s=e=>t=>`${t.field} ${e} ${i(t)}`,o={AND:e=>s(r.X.AND)(e),OR:e=>s(r.X.OR)(e),NOT:e=>s(r.X.NOT)(e),GT:e=>s(r.X.GT)(e),GE:e=>s(r.X.GE)(e),LT:e=>s(r.X.LT)(e),LE:e=>s(r.X.LE)(e),NE:e=>s(r.X.NE)(e),EQ:e=>s(r.X.EQ)(e),equals:e=>`${e.field}.equals(${i(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${i(e)})`,contains:e=>`Expr.contains(${e.field}, ${i(e)})`,fieldContains:e=>`${e.field}.contains(${i(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${i(e)})`,startsWith:e=>`${e.field}.startsWith(${i(e)})`,endsWith:e=>`${e.field}.endsWith(${i(e)})`,dateIsToday:e=>`Expr.dateIsToday(${e.field})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${i(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${i(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${i(e)})`,dateTimeIsGreaterEqual:e=>`Expr.dateTimeIsGreaterEqual(${e.field}, ${i(e)})`,dateTimeIsLessEqual:e=>`Expr.dateTimeIsLessEqual(${e.field}, ${i(e)})`}},86636(e,t,a){"use strict";var r;a.d(t,{X:()=>r,r:()=>i}),function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(r||(r={}));class i{constructor(e){this.$$operator=e}static And(){return new i(r.AND)}static Or(){return new i(r.OR)}static Not(){return new i(r.NOT)}static GreaterThan(){return new i(r.GT)}static GreaterThanOrEqual(){return new i(r.GE)}static LessThan(){return new i(r.LT)}static LessThanOrEqual(){return new i(r.LE)}static NotEqual(){return new i(r.NE)}static Equal(){return new i(r.EQ)}get operator(){return this.$$operator}}},57073(e,t,a){"use strict";a.r(t),a.d(t,{AG_BOOLEAN_PROPERTIES:()=>Xe.ME,AG_NUMBER_PROPERTIES:()=>Xe.LB,AG_PROPERTIES:()=>Xe.zI,ActionRenderer:()=>w.eA,ActionsMenuRenderer:()=>k.cN,AgGridCSSVars:()=>s.W3,AgGridTheme:()=>s.mJ,AgTextFieldRenderer:()=>Ot.p8,AgTextRenderer:()=>it.t,BooleanRenderer:()=>G._Y,CellTemplate:()=>Gt.x,ColumnTemplate:()=>Tt.R,DARK_BACKGROUND_HEX:()=>de,DARK_BORDER_HEX:()=>le,DARK_FOREGROUND_HEX:()=>oe,DARK_HEADER_FOREGROUND_HEX:()=>ne,DARK_ROW_HOVER_HEX:()=>ge,DEBOUNCED_RESIZE_TIME:()=>Xe.BW,DEFAULT_STATUS_BAR_CONFIG:()=>s.o2,DISPLAY_NONE_CLASS:()=>vt,DateEditor:()=>b.S8,EDITED_COLUMN_FIELD:()=>s.A7,ERROR_COLUMN_FIELD:()=>s.h1,EditableRenderer:()=>L.YM,ErrorTooltip:()=>We.y,GRID_READY_EVENT:()=>s.mr,GenesisGridDatasourceElement:()=>Lt.yu,GridOptionsConfig:()=>s.lz,GridPro:()=>i.cF,GridProBaseDatasource:()=>Lt.ML,GridProBeta:()=>tt,GridProCaseType:()=>s.uA,GridProCell:()=>Ie.O,GridProClientSideDatasource:()=>_e.L,GridProColumn:()=>Ne.G,GridProGenesisDatasource:()=>Fe.D,GridProRendererTypes:()=>s.IX,GridProServerSideDatasource:()=>Me.X,GridProStatusBarTypes:()=>s.k7,IconRenderer:()=>I.Jt,KVStorageStatePersistence:()=>jt,LIGHT_BACKGROUND_HEX:()=>pe,LIGHT_BORDER_HEX:()=>ue,LIGHT_FOREGROUND_HEX:()=>he,LIGHT_HEADER_FOREGROUND_HEX:()=>ce,LIGHT_ROW_HOVER_HEX:()=>me,LabelValueStatusBarComponent:()=>Ve.k,LoadMoreStatusBarComponent:()=>Ke.s,LocalStorageStatePersistence:()=>Yt.H,MulticolumnDropdown:()=>kt,MultiselectEditor:()=>u.pZ,NumberEditor:()=>h.Z0,OperationType:()=>Lt.S5,PaginationStatusBarComponent:()=>je.h,RapidAgActionRenderer:()=>A,RapidAgActionsMenuRenderer:()=>x,RapidAgSelectRenderer:()=>z,RapidAgTextRenderer:()=>st,RapidBooleanRenderer:()=>O,RapidDateEditor:()=>f,RapidEditableRenderer:()=>$,RapidGridPro:()=>we,RapidGridProBeta:()=>at,RapidIconRenderer:()=>N,RapidMultiselectEditor:()=>m,RapidNumberEditor:()=>c,RapidSelectEditor:()=>l,RapidStatusPillRenderer:()=>B,RapidStringEditor:()=>E,ReloadStatusBarComponent:()=>Ye.W,RowCountStatusBarComponent:()=>qe.i,SelectEditor:()=>d._Q,SelectRenderer:()=>M.gs,StatePersistence:()=>Ue.l,StatusPillRenderer:()=>H.N7,StringEditor:()=>C.XJ,actionHeightMultiplier:()=>w.Fz,agActionRendererStyles:()=>w.AC,agBooleanRendererStyles:()=>G.CL,agDateEditorStyles:()=>b.kI,agEditableRendererStyles:()=>L.Mx,agExternalStockStyles:()=>Pt.Kp,agGridAlpineFontFace:()=>Pt.KX,agGridBalhamFontFace:()=>Pt.c_,agGridCSS:()=>Pt.AT,agGridMaterialFontFace:()=>Pt.Id,agHeadCSS:()=>Pt.g4,agIconRendererStyles:()=>I.X5,agMultiselectEditorStyles:()=>u.$b,agNumberEditorStyles:()=>h.Fv,agSelectEditorStyles:()=>d.Uo,agSelectRendererStyles:()=>M.Ad,agStatusPillRendererStyles:()=>H.x2,agStringEditorStyles:()=>C.P_,agThemeAlpineNofontsCSS:()=>Pt.lJ,agThemeBalhamNofontsCSS:()=>Pt.HC,agThemeFontFaceMap:()=>Pt.KE,agThemeFontsId:()=>s.b7,agThemeGenesisRapid:()=>q,agThemeGenesisRapidDark:()=>Q,agThemeGenesisRapidLight:()=>Z,agThemeGenesisRapidTokens:()=>ye,agThemeMaterialCustomTokens:()=>Jt,agThemeMaterialNofontsCSS:()=>Pt.DX,agThemeTokenMapCSS:()=>s.Kb,agThemeTokenMapClassname:()=>s.eL,backgroundSwatch:()=>qt,baseDatasourceEventNames:()=>ze.L,convertColDefToColumnState:()=>Ze.pr,convertColDefsToColumnStates:()=>Ze.rG,convertToKebabCase:()=>Qe.w,copyAttributesToGridOptions:()=>Xe.Qg,criteriaDelimiter:()=>Lt.NC,criteriaJoin:()=>Lt.W_,csvExportParams:()=>ta,darkColors:()=>ve,datasourceEventNames:()=>Be.c,dateTimeValueFormatter:()=>Xe.XV,dateValueFormatter:()=>Xe.sL,defaultAgGridFontFace:()=>Pt.qh,defaultGridOptionsConfig:()=>s.YO,defaultGridProConfig:()=>i.Z$,deriveHeightsFromTokens:()=>Ce,dropdownWidthVar:()=>ut,errorHandlerDialogStyles:()=>$t.B,extractErrorMessage:()=>Zt.P,foregroundSwatch:()=>Wt,formatDateExtra:()=>Xe.mC,foundationAgBooleanRenderer:()=>G.fg,foundationAgEditableRenderer:()=>L.r8,foundationAgSelectRenderer:()=>M.bE,foundationAgTextFieldRenderer:()=>Ot.wG,foundationAgTextRenderer:()=>it.G4,foundationDateEditor:()=>b.vr,foundationGridComponents:()=>It,foundationGridPro:()=>i.RB,foundationGridProActionRenderer:()=>w._X,foundationGridProActionsMenuRenderer:()=>k.su,foundationGridProShadowOptions:()=>i.LU,foundationGridProStyles:()=>U.X,foundationIconRenderer:()=>I.qN,foundationMulticolumnDropdown:()=>xt,foundationMultiselectEditor:()=>u.UH,foundationNumberEditor:()=>h.CY,foundationSelectEditor:()=>d.RU,foundationStatusPillRenderer:()=>H.a1,foundationStringEditor:()=>C.cb,getActionsMenuDef:()=>k.Al,getAgBooleanRendererTemplate:()=>G.A9,getAgEditableRendererTemplate:()=>L.iP,getAvailableIndexFields:()=>ea.P,getAvailableIndexes:()=>ea.i,getColumnType:()=>Xe.nh,getDateEditorTemplate:()=>b.m6,getEnumFilterParams:()=>Xe.O7,getErrorHandlerDialogTemplate:()=>$t.P,getGridProTemplate:()=>te.U,getIconRendererTemplate:()=>I.V$,getMulticolumnDropdownTemplate:()=>Et,getMultiselectEditorTemplate:()=>u.tB,getNumberEditorTemplate:()=>h.r1,getSelectEditorTemplate:()=>d.iY,getSelectRendererTemplate:()=>M.qj,getStatusPillRendererTemplate:()=>H.T2,getStringEditorTemplate:()=>C.bZ,getTextFieldRendererTemplate:()=>Ot.tm,getTextRendererTemplate:()=>it.d6,gridProColumns:()=>Ct,gridProErrorNames:()=>Xe.Ie,gridProEventNames:()=>Xe.yY,gridProGenesisDatasourceEventNames:()=>He.V,gridProTemplate:()=>te.a,lightColors:()=>be,logger:()=>Je.v,mergeAndDedupColDefWithColumnState:()=>Ze.yS,multicolumnDropdownStyles:()=>bt,multicolumnDropdownTemplate:()=>St,optionsClass:()=>mt,rapidAgActionRenderer:()=>R,rapidAgActionsMenuRenderer:()=>D,rapidAgBooleanRenderer:()=>T,rapidAgDateEditor:()=>y,rapidAgEditableRenderer:()=>P,rapidAgMultiselectEditor:()=>v,rapidAgNumberEditor:()=>p,rapidAgSelectEditor:()=>g,rapidAgSelectRenderer:()=>F,rapidAgStringEditor:()=>S,rapidAgTextRenderer:()=>ot,rapidDefaultGridProConfig:()=>Re,rapidGridComponents:()=>nt,rapidGridPro:()=>ke,rapidGridProBeta:()=>rt,rapidGridProShadowOptions:()=>Ae,rapidGridProStyles:()=>ee,rapidGridProTemplate:()=>ae,rapidIconRenderer:()=>_,rapidMulticolumnDropdown:()=>Dt,rapidStatusPillRenderer:()=>X,textFieldRendererStyles:()=>Ot.zS,textRendererStyles:()=>it.JN,themeGenesisRapid:()=>Y,themeGenesisRapidDark:()=>W,themeGenesisRapidLight:()=>J,wasClickOutsideElement:()=>At});var r=a(55823),i=a(51266),s=a(55365),o=a(54634),n=a(33681),d=a(48075);class l extends d._Q{}const g=l.compose({baseName:"select-editor",styles:d.Uo,template:(0,d.iY)("rapid")});var h=a(48072);class c extends h.Z0{}const p=c.compose({baseName:"number-editor",styles:h.Fv,template:(0,h.r1)("rapid")});var u=a(56182);class m extends u.pZ{}const v=m.compose({baseName:"multiselect-editor",styles:u.$b,template:(0,u.tB)("rapid")});var b=a(49255);class f extends b.S8{}const y=f.compose({baseName:"date-editor",styles:b.kI,template:(0,b.m6)("rapid")});var C=a(43352);class E extends C.XJ{}const S=E.compose({baseName:"string-editor",styles:C.P_,template:(0,C.bZ)("rapid")});var w=a(67489);class A extends w.eA{paramsChanged(e,t){(null==t?void 0:t.node.rowHeight)&&this.style.setProperty("--params-row-node-height",`${t.node.rowHeight}px`,"")}}const R=A.compose({baseName:"grid-pro-action-renderer",styles:n.css`
|
|
2
2
|
${w.AC}
|
|
3
3
|
.button-padding {
|
|
4
4
|
justify-content: center;
|
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
${q}
|
|
758
758
|
${Q}
|
|
759
759
|
${Z}
|
|
760
|
-
`;var te=a(82128);const ae=(0,te.U)("rapid");var re=a(16474),ie=a(38370),se=a(83912);const oe="#cccccc",ne="#879ba6",de="#1f2126",le="#2e3339",ge="#2b2e34",he="#000000",ce="#181d1f",pe="#FFFFFF",ue="#babfc7",me="#2196f3",ve={foregroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(oe)),headerForegroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ne)),backgroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(de)),borderSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(le)),rowHoverSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ge))},be={foregroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(he)),headerForegroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ce)),backgroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(pe)),borderSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ue)),rowHoverSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(me))},{create:fe}=ie.DesignToken,ye={backgroundColor:fe("rapid-ag-background-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?be.backgroundSwatch:ve.backgroundSwatch),borderColor:fe("rapid-ag-border-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?be.borderSwatch:ve.borderSwatch),foregroundColor:fe("rapid-ag-foreground-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?be.foregroundSwatch:ve.foregroundSwatch),headerForegroundColor:fe("rapid-ag-header-foreground-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?be.headerForegroundSwatch:ve.headerForegroundSwatch),rowHoverColor:fe("rapid-ag-row-hover-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?be.rowHoverSwatch:ve.rowHoverSwatch)},Ce=()=>{const e=(0,re.designTokensMap)();if(!e.value)return null;const{style:t,space:a}=e.value.design_tokens;return(t.baseHeightMultiplier.$value+t.density.$value)*a.designUnit.$value-8},Ee="ag-theme-genesis-rapid-dark",Se="ag-theme-genesis-rapid-light";class we extends i.cF{constructor(){super(...arguments),this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.handleLuminanceChange=e=>{const t=o.baseLayerLuminance.getValueFor(e.target);this.theme=t===o.StandardLuminance.DarkMode?Ee:Se},this.theme="light"===localStorage.getItem("luminance")?Se:Ee}connectedCallback(){var e;super.connectedCallback();const t=null!==(e=this.provider)&&void 0!==e?e:this;this.luminanceSubscription=o.baseLayerLuminance.subscribe(this.luminanceObserver,t)}disconnectedCallback(){var e;const t=null!==(e=this.provider)&&void 0!==e?e:this;o.baseLayerLuminance.unsubscribe(this.luminanceObserver,t),this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),super.disconnectedCallback()}themeChanged(e,t){(e||t===Ee)&&super.themeChanged(e,t)}set gridOptions(e){var t,a,r,i,o;const n=Object.assign({},e);n.components=Object.assign({[s.IX.action]:A,[s.IX.actionsMenu]:x,[s.IX.boolean]:O,[s.IX.editable]:$,[s.IX.icon]:N,[s.IX.select]:z,[s.IX.selectEditor]:l,[s.IX.numberEditor]:c,[s.IX.multiselectEditor]:m,[s.IX.dateEditor]:f,[s.IX.stringEditor]:E,[s.IX.statusPill]:B},null!==(t=e.components)&&void 0!==t?t:{});(this.theme===Y||this.theme===W||this.theme===J)&&(this.headerHeight=null!==(r=null!==(a=n.headerHeight)&&void 0!==a?a:Ce())&&void 0!==r?r:32,this.rowHeight=null!==(o=null!==(i=n.rowHeight)&&void 0!==i?i:Ce())&&void 0!==o?o:32),super.gridOptions=n}}(0,r.Cg)([n.observable],we.prototype,"provider",void 0);const Ae=i.LU,Re=i.Z$,ke=we.compose(Object.assign({baseName:"grid-pro",template:ae,styles:ee,shadowOptions:Ae},Re));var xe=a(6884),De=a(20633),Ge=a(21409),Oe=a(17190),Te=a(48046),Le=a(88047),$e=a(62051),Pe=a.n($e),Ie=a(56943),Ne=a(64315),_e=a(63296),Me=a(24638),ze=a(18070),Fe=a(26062),He=a(90509),Be=a(79270),Xe=a(32610),Ue=a(53397),Ve=a(52540),Ke=a(49104),je=a(19060),Ye=a(88863),qe=a(71964),We=a(73203),Qe=a(50103),Je=a(1510),Ze=a(23201);(0,De.N)(Fe.D,_e.L,Me.X,Ie.O,Ne.G),Te.syG.registerModules([Te.n76,Te.Q90,Te.x6L,Te.YN8,Te.YzW,Te.Lt,Te.I95,Te.O4V,Te.H18,Te.mfG,Te.Iws,Te.nSw,Te.FUS,Te.Ss0,Te.tkg,Te.ZDV,Te.XG7]);const et="gridReady";class tt extends((0,Ge.S)(ie.FoundationElement)){rowDataChanged(e,t){this.initialised&&this.gridApi.setGridOption("rowData",t)}getfilterModel(){return(0,r.sH)(this,void 0,void 0,function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)})}setFilterModel(e){return(0,r.sH)(this,void 0,void 0,function*(){this.persistFilterModelKey?yield this.statePersistence.saveFilterModel(this.persistFilterModelKey,e):this._filterConfig=e})}constructor(){super(),this.gridErrorItems=[],this.disposed=!1,this.debouncedSaveColumnState=Pe()(this.saveColumnState.bind(this),400),this.debouncedSaveFilterModel=Pe()(this.cacheFilterConfig.bind(this),400),this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.enableCellFlashing=!1,this.enableRowFlashing=!1,this.columnComponentName="grid-pro-column",this.themeMode="dark",this.pagination=!1,this.statusBarConfig=s.o2,this.withStatusBar=!1,this.rehydrationAttempted=!1,this.rootEventsListeners=[],this.datasourceEventHandlers=[],this.gridEventsQueue=[],this.registeredGridEvents=new Set,this.gridEventListeners=new Map,this.boundGlobalEventListener=this.globalEventListener.bind(this),this._filterConfig=void 0,this.handleLuminanceChange=e=>{const t=o.baseLayerLuminance.getValueFor(e.target);this.themeMode=t===o.StandardLuminance.DarkMode?"dark":"light"},this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.agAttributes={},this.agPropertiesMap=Xe.zI.reduce((e,t)=>(e[t.toLowerCase()]=t,e[(0,Qe.w)(t)]=t,e),{});const e=this.hideDatasourceError.bind(this);this.rootEventsListeners.push([He.V.dataInit,e],[Xe.yY.datasourceErrorClose,e],[ze.L.error,this.handleBaseDatasourceError.bind(this)],[ze.L.connected,e]),this.datasourceEventHandlers=[[Be.c.initialize,this.handleInitialize.bind(this)],[Be.c.dataLoaded,this.handleDataLoaded.bind(this)],[Be.c.dataChanged,this.handleDataChanged.bind(this)],[Be.c.schemaUpdated,this.handleSchemaUpdated.bind(this)],[Be.c.dataCleared,this.handleDataCleared.bind(this)],[Be.c.loadingStarted,this.handleLoadingStarted.bind(this)],[Be.c.loadingFinished,this.handleLoadingFinished.bind(this)],[Be.c.noDataAvailable,this.handleNoDataAvailable.bind(this)],[Be.c.filtersRestored,this.handleFiltersRestored.bind(this)],[Be.c.moreDataAvailable,this.handleMoreDataAvailable.bind(this)],[Be.c.error,this.handleDatasourceError.bind(this)],[Be.c.destroy,this.handleDatasourceDestroy.bind(this)],[Be.c.cacheFilterConfig,this.cacheFilterConfig.bind(this)],[Be.c.refreshServerSide,this.handleRefreshServerSide.bind(this)],[Be.c.setServerSideDatasource,this.handleSetServerSideDatasource.bind(this)],[Be.c.addGridCssClass,this.handleAddGridCssClass.bind(this)],[Be.c.removeGridCssClass,this.handleRemoveGridCssClass.bind(this)],[Be.c.applyServerSideTransaction,this.handleApplyServerSideTransaction.bind(this)]]}addEventListener(e,t,a){super.addEventListener(e,t,a),this.gridApi?this.addGridEventListener(e):this.gridEventsQueue.includes(e)||this.gridEventsQueue.push(e)}addGridEventListener(e){if(this.registeredGridEvents.has(e))return;this.registeredGridEvents.add(e);const t=t=>{this.$emit(e,t)};this.gridEventListeners.set(e,t),this.gridApi.addEventListener(e,t)}handleError(e,t){this.gridErrorItems=[...this.gridErrorItems,{detail:t.detail,type:e}]}handleBaseDatasourceError(e){const t={detail:{message:e.detail.message},type:Xe.Ie.datasource};this.gridErrorItems=[...this.gridErrorItems,{detail:t.detail,type:t.type}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter(e=>e.type!==Xe.Ie.datasource),this.removeAttribute("ds-disconnected")}connectedCallback(){var e;super.connectedCallback(),this.disposed=!1;const t=null!==(e=this.provider)&&void 0!==e?e:this;this.luminanceSubscription=o.baseLayerLuminance.subscribe(this.luminanceObserver,t),this.gridAutosizingEnabled&&(this.visibilityObserverCleanup=(0,Oe.j)(this,e=>{e&&this.debouncedColumnAutosize()})),this.rehydrationAttempted=!1,this.shouldRunConnect&&(this.rootEventsListeners.forEach(([e,t])=>{this.addEventListener(e,t)}),Xe.zI.forEach(e=>{Object.defineProperty(this,e,{set:t=>{this.agAttributeChangedCallback((0,Qe.w)(e),void 0,t)},enumerable:!0,configurable:!0})}),this.toggleDatasourceEventListeners(!0),this.paginationPageSize=this.isServerSide?this.gridProDatasource.maxRows:xe.OD.DEFAULT_PAGINATION_PAGE_SIZE)}disconnectedCallback(){var e;this.disposed=!0,this.debouncedSaveColumnState.cancel(),this.debouncedSaveFilterModel.cancel();const t=null!==(e=this.provider)&&void 0!==e?e:this;o.baseLayerLuminance.unsubscribe(this.luminanceObserver,t),this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),this.visibilityObserverCleanup&&(this.visibilityObserverCleanup(),this.visibilityObserverCleanup=void 0),super.disconnectedCallback(),this.rehydrationAttempted=!1;const a=this.shouldRunDisconnect;this.rootEventsListeners.forEach(([e,t])=>{this.removeEventListener(e,t)}),this.toggleDatasourceEventListeners(!1),a?this.performDisconnectCleanup():queueMicrotask(()=>{this.isConnected||this.performDisconnectCleanup()})}performDisconnectCleanup(){this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.initialised=!1,this.clearLocalGridOptions(),this.destroyGridInstance(),this.debouncedSaveColumnState.cancel(),this.debouncedSaveFilterModel.cancel(),this.registeredGridEvents.clear(),this.gridEventsQueue=[]}destroyGridInstance(){this.gridApi&&this.gridEventListeners.forEach((e,t)=>{this.gridApi.removeEventListener(t,e)}),this.gridEventListeners.clear(),this.gridApi?this.gridApi.destroy():this.agGrid&&this.agGrid.destroy(),this.gridSlot&&this.gridSlot.replaceChildren(),this.gridApi=void 0,this.agGrid=void 0}toggleDatasourceEventListeners(e){const t=e?"addEventListener":"removeEventListener";this.datasourceEventHandlers.forEach(([e,a])=>{super[t](e,a)})}handleInitialize(e){const{options:t,keepColDefsOnClearRowData:a}=e.detail;a&&(this.columnState=this.gridApi.getColumnState()),this.gridOptions=Object.assign(Object.assign(Object.assign({},this.agGridOptions),t),a?{columnDefs:this.gridApi.getColumnDefs()}:{}),this.initGrid()}handleDataLoaded(e){const{data:t}=e.detail;this.gridApi&&this.gridApi.setGridOption("rowData",t)}handleDataChanged(e){const{changes:t}=e.detail;if(!this.gridApi)return;const a=this.gridApi.applyTransaction(t);this.flashAddedCells(null==a?void 0:a.add)}flashAddedCells(e){this.enableRowFlashing&&(null==e?void 0:e.length)&&this.gridApi.flashCells({rowNodes:e})}handleSchemaUpdated(e){return(0,r.sH)(this,void 0,void 0,function*(){const{schema:t}=e.detail;if(this.gridApi.isModuleRegistered("MultiFilterModule")||t.forEach(e=>{"agMultiColumnFilter"===e.filter&&(Je.v.warn("MultiFilterModule is not registered, falling back to text filter"),e.filter="agTextColumnFilter")}),this.gridApi){const e=yield this.mergeAllColumnDefsAndStates(t,!0);this.gridApi.setGridOption("columnDefs",e)}})}handleDataCleared(e){const{includeSchema:t}=e.detail;this.gridApi&&(t&&this.gridApi.setGridOption("columnDefs",[]),this.gridApi.setGridOption("rowData",[]),this.gridApi.refreshCells({force:!0}))}handleLoadingStarted(){this.gridApi&&this.gridApi.setGridOption("loading",!0)}handleLoadingFinished(){this.gridApi&&(this.gridApi.setGridOption("loading",!1),this.gridApi.hideOverlay())}handleNoDataAvailable(){this.gridApi&&(this.gridApi.setGridOption("loading",!1),this.gridApi.showNoRowsOverlay())}handleFiltersRestored(){this.restoreCachedFilterConfig()}handleMoreDataAvailable(e){var t,a,r,i;const{hasMoreData:o,sourceRef:n}=e.detail;if(!this.gridApi)return;const d=null===(a=(t=this.gridApi).getStatusPanel)||void 0===a?void 0:a.call(t,s.k7.loadMore);d&&(null===(i=(r=d).updateParams)||void 0===i||i.call(r,{moreRows:o,sourceRef:n}))}handleDatasourceError(){this.setAttribute("ds-disconnected","ds-disconnected")}handleDatasourceDestroy(){this.clearLocalGridOptions()}handleRefreshServerSide(e){const{purge:t}=e.detail;this.gridApi&&this.gridApi.refreshServerSide({purge:t})}handleSetServerSideDatasource(e){const{datasource:t}=e.detail;this.gridApi&&this.gridApi.setGridOption("serverSideDatasource",t)}handleAddGridCssClass(e){var t;const{className:a}=e.detail,r=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;r&&r.classList.add(a)}handleRemoveGridCssClass(e){var t;const{className:a}=e.detail,r=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;r&&r.classList.remove(a)}handleApplyServerSideTransaction(e){const{transaction:t,async:a,callback:r}=e.detail;if(!this.gridApi)return;this.gridApi.applyServerSideTransaction(t)}combineAllGridComponents(e){const t={[s.IX.action]:w.eA,[s.IX.actionsMenu]:k.cN,[s.IX.boolean]:G._Y,[s.IX.editable]:L.YM,[s.IX.icon]:I.Jt,[s.IX.statusPill]:H.N7,[s.IX.select]:M.gs,[s.IX.selectEditor]:d._Q,[s.IX.numberEditor]:h.Z0,[s.IX.multiselectEditor]:u.pZ,[s.IX.dateEditor]:b.S8,[s.IX.stringEditor]:C.XJ,[s.k7.labelValue]:Ve.k,[s.k7.loadMore]:Ke.s,[s.k7.pagination]:je.h,[s.k7.reload]:Ye.W,[s.k7.rowCount]:qe.i};return Object.assign(Object.assign(Object.assign({},t),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}getSelectedRows(){var e,t,a,r;try{if(!this.initialised||!this.gridApi)return[];const i=null===(e=this.gridOptions)||void 0===e?void 0:e.rowSelection;if("single"===i||"multiple"===i)return this.gridApi.getSelectedRows&&this.gridApi.getSelectedRows().length>0?this.gridApi.getSelectedRows():[];if((null===(t=this.gridApi)||void 0===t?void 0:t.getCellRanges)&&this.gridApi.getCellRanges().length>0)return this.getCellRangeRowData();if(!(null===(a=this.gridOptions)||void 0===a?void 0:a.enableRangeSelection)){const e=null===(r=this.gridApi)||void 0===r?void 0:r.getFocusedCell();if(e){const t=this.gridApi.getDisplayedRowAtIndex(e.rowIndex);if(null==t?void 0:t.data)return[t.data]}}return[]}catch(e){return Je.v.error("Grid Pro: Error getting selected rows:",e),[]}}getCellRangeRowData(){var e;if(!(null===(e=this.gridApi)||void 0===e?void 0:e.getCellRanges))return[];const t=this.gridApi.getCellRanges();if(0===t.length)return[];const a=[];return t.forEach(e=>{const t=e.startRow.rowIndex,r=e.endRow.rowIndex;for(let e=t;e<=r;e+=1){const t=this.gridApi.getDisplayedRowAtIndex(e);(null==t?void 0:t.data)&&!a.some(e=>e===t.data)&&a.push(t.data)}}),a}hasSelectedRows(){return this.getSelectedRows().length>0}updateLabelValueStatusBar(e){var t,a;if(!this.gridApi)return void Je.v.warn("Grid Pro: Cannot update label-value status bar - grid API not available");const r=null===(a=(t=this.gridApi).getStatusPanel)||void 0===a?void 0:a.call(t,s.k7.labelValue);r&&"function"==typeof r.updateParams?r.updateParams(e):Je.v.warn("Grid Pro: Label-value status bar component not found or updateParams method not available")}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout(()=>{var e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()},Xe.BW))}removeConfigWidthsToAutosize(e){return e.map(e=>Object.assign(Object.assign({},e),{width:null}))}saveColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.gridApi.getColumnState();e=(0,Ze.n7)(e),e=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(e):e;const t=0===e.filter(e=>{if(e.hide)return!1;const t=this.gridApi.getColumn(e.colId);return Boolean(t.getColDef().headerName)}).length;if(0===e.length||JSON.stringify(e)===JSON.stringify(this.columnState)||t)return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,e),this.columnState=e}})}getSavedColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=(0,Ze.n7)(yield this.statePersistence.getColumnState(this.persistColumnStateKey))),this.columnState})}restoreColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){var e;this.rehydrationAttempted=!0;const t=yield this.getSavedColumnState();t&&t.length>0&&(null===(e=this.gridApi)||void 0===e||e.applyColumnState({state:t,applyOrder:!0}))})}cacheFilterConfig(){var e;this.setFilterModel((null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0)}restoreCachedFilterConfig(){return(0,r.sH)(this,void 0,void 0,function*(){var e,t;const a=yield this.getfilterModel();void 0!==a&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(a),null===(t=this.gridApi)||void 0===t||t.onFilterChanged())})}get gridOptions(){return this.agGridOptions}get isServerSide(){return this.gridProDatasource instanceof Me.X}get gridParams(){return{globalListener:this.boundGlobalEventListener}}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(e){const t=()=>{!this.disposed&&this.isConnected&&(this.debouncedSaveColumnState(),this.debouncedColumnAutosize())};Array.from(this.attributes).forEach(e=>{const t=this.agPropertiesMap[e.name];t&&(this.agAttributes[t]=e.value)});const{columnDefs:a,components:i,defaultColDef:o,getRowId:n,onGridReady:d,onFilterChanged:l}=e,g=(0,r.Tt)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged"]),h=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},o),components:this.combineAllGridComponents(i),headerHeight:this.headerHeight,rowHeight:this.rowHeight,animateRows:!1,suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:e=>{var t,a,r;this.gridApi=e.api,this.gridEventsQueue.length&&this.gridEventsQueue.forEach(e=>{this.addGridEventListener(e)}),this.rowData&&this.gridApi.setGridOption("rowData",this.rowData),d&&d(e),(null===(t=this.gridProDatasource)||void 0===t?void 0:t.keepColDefsOnClearRowData)&&(null===(a=this.columnState)||void 0===a?void 0:a.length)>0&&this.gridApi.applyColumnState({state:this.columnState,applyOrder:!0}),this.$emit(et,{event:e,gridId:this.id}),this.$emit(s.mr,{event:e,gridId:this.id}),null===(r=this.gridProDatasource)||void 0===r||r.$emit(Be.c.ready,{pagination:this.pagination}),this.restoreColumnState(),this.restoreCachedFilterConfig(),this.debouncedColumnAutosize()},onColumnPinned:t,onColumnResized:t,onColumnMoved:t,onDisplayedColumnsChanged:t,onFilterChanged:e=>{!this.disposed&&this.isConnected&&(this.debouncedSaveFilterModel(),l&&l(e))},onGridSizeChanged:t,onSortChanged:t}),g);this.gridProDatasource?(h.columnDefs=a,h.getRowId=n,this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h)):this.mergeAllColumnDefsAndStates(a).then(e=>{!this.disposed&&this.isConnected&&(h.columnDefs=e,h.getRowId=n,this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h),this.initGrid())})}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),(0,Xe.Qg)(e,this.agAttributes))}clearLocalGridOptions(){this.agGridOptions=void 0}initGrid(){n.DOM.queueUpdate(()=>{!this.disposed&&this.isConnected&&(this.initialised&&(this.destroyGridInstance(),this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild)),this.agGrid=(0,Te.Dvw)(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0)})}mergeAllColumnDefsAndStates(e){return(0,r.sH)(this,arguments,void 0,function*(e,t=!1){var a;const r=e||[];r.forEach(e=>{if(this.headerCaseType&&e.field&&!e.headerName){const t=Le[this.headerCaseType];t?e.headerName=t(e.field):Je.v.warn(`Invalid header-case-type attribute value: ${this.headerCaseType}. Please use one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.`)}});const i=Array.from(this.querySelectorAll(this.columnComponentName)).map(e=>e.definition).map(e=>{var t,a;if(this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),"agSetColumnFilter"===e.filter){if(!(null!=e.filterParams&&"values"in e.filterParams)){const i=null===(a=null===(t=r.find(t=>t.field===e.field))||void 0===t?void 0:t.filterParams)||void 0===a?void 0:a.values;i&&(e.filterParams=Object.assign(Object.assign({},e.filterParams),{values:i}))}}e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=t=>{if(t.data[s.A7]===e.field)return{component:s.IX.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=We.y,e.tooltipValueGetter=t=>{const a=t.data[s.h1];if(a&&a.column===e.field)return a.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var t;return(null===(t=e.data[s.h1])||void 0===t?void 0:t.column)===e.colDef.field}}));const i=r.find(t=>e.field===t.field);return Object.assign(Object.assign({},i),e)}),o=i.map(e=>e.field),n=[...i,...this.onlyTemplateColDefs?[]:r.filter(e=>!o.includes(e.field))];if(this.gridProDatasource&&t){const e=yield this.getSavedColumnState();if((null==e?void 0:e.length)>0)return(0,Ze.yS)(n,e);if((null===(a=this.gridProDatasource.deferredColumnStates)||void 0===a?void 0:a.length)>0)return(0,Ze.yS)(n,this.gridProDatasource.deferredColumnStates)}return n})}panelExists(e,t){return t.some(t=>t.statusPanel===e)}addRowCountPanel(e,t){if(this.statusBarConfig&&!0===this.statusBarConfig.rows){const a=this.isServerSide||"serverSide"===(null==t?void 0:t.rowModelType),r=this._pagination||!0===(null==t?void 0:t.pagination);if(a&&!r)this.panelExists(s.k7.rowCount,e)||e.push({statusPanel:s.k7.rowCount,align:"left"});else if(!a){const t="agTotalAndFilteredRowCountComponent";this.panelExists(t,e)||e.push({statusPanel:t,align:"left"})}}}addMaxRowsPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.maxRows&&(this.panelExists(s.k7.labelValue,e)||e.push({statusPanel:s.k7.labelValue,statusPanelParams:{label:"Max Rows",value:this.gridProDatasource.maxRows||xe.OD.MAX_ROWS_250,hide:!1},align:"left"}))}addAggregationPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.aggregation&&(this.panelExists("agAggregationComponent",e)||e.push({statusPanel:"agAggregationComponent",align:"right"}))}addDatasourcePanels(e){if(this.gridProDatasource){const t=this.gridProDatasource.getDatasourceStatusBarPanels(this.isServerSide,this.statusBarConfig).filter(t=>!this.panelExists(t.statusPanel,e));e.push(...t)}}addPaginationPanel(e){this._pagination&&(this.panelExists(s.k7.pagination,e)||e.push({statusPanel:s.k7.pagination,align:"right"}))}setupPaginationAndStatusBar(e){var t,a;if(this._pagination&&(e.pagination=!0,e.suppressScrollOnNewData=!0,e.paginationPageSize=this.paginationPageSize),this.withStatusBar&&this.statusBarConfig){const r=[...(null===(t=e.statusBar)||void 0===t?void 0:t.statusPanels)||[]];this.addRowCountPanel(r,e),this.addMaxRowsPanel(r),this.addAggregationPanel(r),this.addDatasourcePanels(r),this._pagination&&(e.suppressPaginationPanel=!0,this.addPaginationPanel(r));const i=((null===(a=e.statusBar)||void 0===a?void 0:a.statusPanels)||[]).filter(e=>!this.panelExists(e.statusPanel,r));r.push(...i),e.statusBar={statusPanels:r}}}get observedAttributes(){const e=Xe.zI.map(e=>e.toLowerCase()),t=Xe.zI.map(e=>(0,Qe.w)(e));return e.concat(t)}agAttributeChangedCallback(e,t,a){var r;if(t===a)return;const i=this.agPropertiesMap[e];i&&(this.agAttributes[i]=a,this.initialised&&(null===(r=this.gridApi)||void 0===r||r.setGridOption(i,a)))}globalEventListener(e,t){const a=e.toLowerCase(),r=new Event(a);r.agGridDetails=t,this.dispatchEvent(r);const i="on"+a;"function"==typeof this[i]&&this[i](r)}}(0,r.Cg)([n.observable],tt.prototype,"gridApi",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridErrorItems",void 0),(0,r.Cg)([Ue.l],tt.prototype,"statePersistence",void 0),(0,r.Cg)([(0,n.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],tt.prototype,"autoCellRendererByType",void 0),(0,r.Cg)([(0,n.attr)({attribute:"only-template-col-defs",mode:"boolean"})],tt.prototype,"onlyTemplateColDefs",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"grid-autosizing"})],tt.prototype,"gridAutosizingEnabled",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],tt.prototype,"enableCellFlashing",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-row-flashing"})],tt.prototype,"enableRowFlashing",void 0),(0,r.Cg)([(0,n.attr)({attribute:"persist-column-state-key"})],tt.prototype,"persistColumnStateKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"persist-filter-model-key"})],tt.prototype,"persistFilterModelKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"header-case-type"})],tt.prototype,"headerCaseType",void 0),(0,r.Cg)([n.observable],tt.prototype,"rowData",void 0),(0,r.Cg)([n.attr],tt.prototype,"columnComponentName",void 0),(0,r.Cg)([n.observable],tt.prototype,"eventsAndCallbacks",void 0),(0,r.Cg)([n.attr],tt.prototype,"headerHeight",void 0),(0,r.Cg)([n.attr],tt.prototype,"rowHeight",void 0),(0,r.Cg)([n.observable],tt.prototype,"classNames",void 0),(0,r.Cg)([n.observable],tt.prototype,"agGrid",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridSlot",void 0),(0,r.Cg)([n.observable],tt.prototype,"themeMode",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridComponents",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean"})],tt.prototype,"pagination",void 0),(0,r.Cg)([(0,n.attr)({attribute:"pagination-page-size"})],tt.prototype,"paginationPageSize",void 0),(0,r.Cg)([n.observable],tt.prototype,"statusBarConfig",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"with-status-bar"})],tt.prototype,"withStatusBar",void 0),(0,r.Cg)([n.observable],tt.prototype,"customErrorHandlerTemplate",void 0),(0,r.Cg)([s.lz],tt.prototype,"gridOptionsConfig",void 0),(0,r.Cg)([n.observable],tt.prototype,"provider",void 0);class at extends tt{getCachedTheme(e){const t=at.themeByRowHeight.get(e);if(t)return t;const a=Te.N8R.withParams({backgroundColor:"var(--neutral-layer-card-container)",cellHorizontalPadding:"calc(var(--design-unit) * 2px)",foregroundColor:"var(--neutral-foreground-rest)",headerTextColor:"var(--neutral-foreground-hint)",headerBackgroundColor:"var(--neutral-layer-3)",headerColumnBorder:"1px solid var(--neutral-stroke-rest)",oddRowBackgroundColor:"var(--neutral-layer-1)",rowBorder:"1px solid var(--neutral-stroke-divider-rest)",borderColor:"var(--neutral-stroke-rest)",wrapperBorder:"0",accentColor:"var(--accent-foreground-rest)",fontFamily:"var(--body-font)",sideBarBackgroundColor:"var(--neutral-layer-2)",dataFontSize:"var(--type-ramp-minus-2-font-size)",iconButtonColor:"var(--accent-foreground-rest)",iconButtonHoverColor:"color-mix(in srgb, var(--accent-foreground-rest), var(--ag-foreground-color) 30%)",rowHeight:e});return at.themeByRowHeight.set(e,a),a}set gridOptions(e){var t,a,r,i,o;const n=Object.assign({},e);n.components=Object.assign({[s.IX.action]:A,[s.IX.actionsMenu]:x,[s.IX.boolean]:O,[s.IX.editable]:$,[s.IX.select]:z,[s.IX.selectEditor]:l,[s.IX.numberEditor]:c,[s.IX.multiselectEditor]:m,[s.IX.dateEditor]:f,[s.IX.stringEditor]:E,[s.IX.statusPill]:B,[s.IX.icon]:N},null!==(t=n.components)&&void 0!==t?t:{}),this.headerHeight=null!==(r=null!==(a=n.headerHeight)&&void 0!==a?a:Ce())&&void 0!==r?r:32,this.rowHeight=null!==(o=null!==(i=n.rowHeight)&&void 0!==i?i:Ce())&&void 0!==o?o:32,n.theme=this.getCachedTheme(this.rowHeight),super.gridOptions=n}}at.themeByRowHeight=new Map,(0,r.Cg)([n.observable],at.prototype,"provider",void 0);const rt=at.compose(Object.assign({baseName:"grid-pro",template:ae,styles:n.css`
|
|
760
|
+
`;var te=a(82128);const ae=(0,te.U)("rapid");var re=a(16474),ie=a(38370),se=a(83912);const oe="#cccccc",ne="#879ba6",de="#1f2126",le="#2e3339",ge="#2b2e34",he="#000000",ce="#181d1f",pe="#FFFFFF",ue="#babfc7",me="#2196f3",ve={foregroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(oe)),headerForegroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ne)),backgroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(de)),borderSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(le)),rowHoverSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ge))},be={foregroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(he)),headerForegroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ce)),backgroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(pe)),borderSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ue)),rowHoverSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(me))},{create:fe}=ie.DesignToken,ye={backgroundColor:fe("rapid-ag-background-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?be.backgroundSwatch:ve.backgroundSwatch),borderColor:fe("rapid-ag-border-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?be.borderSwatch:ve.borderSwatch),foregroundColor:fe("rapid-ag-foreground-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?be.foregroundSwatch:ve.foregroundSwatch),headerForegroundColor:fe("rapid-ag-header-foreground-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?be.headerForegroundSwatch:ve.headerForegroundSwatch),rowHoverColor:fe("rapid-ag-row-hover-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?be.rowHoverSwatch:ve.rowHoverSwatch)},Ce=()=>{const e=(0,re.designTokensMap)();if(!e.value)return null;const{style:t,space:a}=e.value.design_tokens;return(t.baseHeightMultiplier.$value+t.density.$value)*a.designUnit.$value-8},Ee="ag-theme-genesis-rapid-dark",Se="ag-theme-genesis-rapid-light";class we extends i.cF{constructor(){super(...arguments),this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.handleLuminanceChange=e=>{const t=o.baseLayerLuminance.getValueFor(e.target);this.theme=t===o.StandardLuminance.DarkMode?Ee:Se},this.theme="light"===localStorage.getItem("luminance")?Se:Ee}connectedCallback(){var e;super.connectedCallback();const t=null!==(e=this.provider)&&void 0!==e?e:this;this.luminanceSubscription=o.baseLayerLuminance.subscribe(this.luminanceObserver,t)}disconnectedCallback(){var e;const t=null!==(e=this.provider)&&void 0!==e?e:this;o.baseLayerLuminance.unsubscribe(this.luminanceObserver,t),this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),super.disconnectedCallback()}themeChanged(e,t){(e||t===Ee)&&super.themeChanged(e,t)}set gridOptions(e){var t,a,r,i,o;const n=Object.assign({},e);n.components=Object.assign({[s.IX.action]:A,[s.IX.actionsMenu]:x,[s.IX.boolean]:O,[s.IX.editable]:$,[s.IX.icon]:N,[s.IX.select]:z,[s.IX.selectEditor]:l,[s.IX.numberEditor]:c,[s.IX.multiselectEditor]:m,[s.IX.dateEditor]:f,[s.IX.stringEditor]:E,[s.IX.statusPill]:B},null!==(t=e.components)&&void 0!==t?t:{});(this.theme===Y||this.theme===W||this.theme===J)&&(this.headerHeight=null!==(r=null!==(a=n.headerHeight)&&void 0!==a?a:Ce())&&void 0!==r?r:32,this.rowHeight=null!==(o=null!==(i=n.rowHeight)&&void 0!==i?i:Ce())&&void 0!==o?o:32),super.gridOptions=n}}(0,r.Cg)([n.observable],we.prototype,"provider",void 0);const Ae=i.LU,Re=i.Z$,ke=we.compose(Object.assign({baseName:"grid-pro",template:ae,styles:ee,shadowOptions:Ae},Re));var xe=a(6884),De=a(20633),Ge=a(21409),Oe=a(17190),Te=a(48046),Le=a(88047),$e=a(62051),Pe=a.n($e),Ie=a(56943),Ne=a(64315),_e=a(63296),Me=a(24638),ze=a(18070),Fe=a(26062),He=a(90509),Be=a(79270),Xe=a(32610),Ue=a(53397),Ve=a(52540),Ke=a(49104),je=a(19060),Ye=a(88863),qe=a(71964),We=a(73203),Qe=a(50103),Je=a(1510),Ze=a(23201);(0,De.N)(Fe.D,_e.L,Me.X,Ie.O,Ne.G),Te.syG.registerModules([Te.n76,Te.Q90,Te.x6L,Te.YN8,Te.YzW,Te.Lt,Te.I95,Te.O4V,Te.H18,Te.mfG,Te.Iws,Te.nSw,Te.FUS,Te.Ss0,Te.tkg,Te.ZDV,Te.XG7]);const et="gridReady";class tt extends((0,Ge.S)(ie.FoundationElement)){rowDataChanged(e,t){this.initialised&&this.gridApi.setGridOption("rowData",t)}getfilterModel(){return(0,r.sH)(this,void 0,void 0,function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)})}setFilterModel(e){return(0,r.sH)(this,void 0,void 0,function*(){this.persistFilterModelKey?yield this.statePersistence.saveFilterModel(this.persistFilterModelKey,e):this._filterConfig=e})}constructor(){super(),this.gridErrorItems=[],this.disposed=!1,this.debouncedSaveColumnState=Pe()(this.saveColumnState.bind(this),400),this.debouncedSaveFilterModel=Pe()(this.cacheFilterConfig.bind(this),400),this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.enableCellFlashing=!1,this.enableRowFlashing=!1,this.columnComponentName="grid-pro-column",this.themeMode="dark",this.pagination=!1,this.statusBarConfig=s.o2,this.withStatusBar=!1,this.rehydrationAttempted=!1,this.rootEventsListeners=[],this.datasourceEventHandlers=[],this.gridEventsQueue=[],this.registeredGridEvents=new Set,this.gridEventListeners=new Map,this.boundGlobalEventListener=this.globalEventListener.bind(this),this._filterConfig=void 0,this.handleLuminanceChange=e=>{const t=o.baseLayerLuminance.getValueFor(e.target);this.themeMode=t===o.StandardLuminance.DarkMode?"dark":"light"},this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.agAttributes={},this.agPropertiesMap=Xe.zI.reduce((e,t)=>(e[t.toLowerCase()]=t,e[(0,Qe.w)(t)]=t,e),{});const e=this.hideDatasourceError.bind(this);this.rootEventsListeners.push([He.V.dataInit,e],[Xe.yY.datasourceErrorClose,e],[ze.L.error,this.handleBaseDatasourceError.bind(this)],[ze.L.connected,e]),this.datasourceEventHandlers=[[Be.c.initialize,this.handleInitialize.bind(this)],[Be.c.dataLoaded,this.handleDataLoaded.bind(this)],[Be.c.dataChanged,this.handleDataChanged.bind(this)],[Be.c.schemaUpdated,this.handleSchemaUpdated.bind(this)],[Be.c.dataCleared,this.handleDataCleared.bind(this)],[Be.c.loadingStarted,this.handleLoadingStarted.bind(this)],[Be.c.loadingFinished,this.handleLoadingFinished.bind(this)],[Be.c.noDataAvailable,this.handleNoDataAvailable.bind(this)],[Be.c.filtersRestored,this.handleFiltersRestored.bind(this)],[Be.c.moreDataAvailable,this.handleMoreDataAvailable.bind(this)],[Be.c.error,this.handleDatasourceError.bind(this)],[Be.c.destroy,this.handleDatasourceDestroy.bind(this)],[Be.c.cacheFilterConfig,this.cacheFilterConfig.bind(this)],[Be.c.refreshServerSide,this.handleRefreshServerSide.bind(this)],[Be.c.setServerSideDatasource,this.handleSetServerSideDatasource.bind(this)],[Be.c.addGridCssClass,this.handleAddGridCssClass.bind(this)],[Be.c.removeGridCssClass,this.handleRemoveGridCssClass.bind(this)],[Be.c.applyServerSideTransaction,this.handleApplyServerSideTransaction.bind(this)]]}addEventListener(e,t,a){super.addEventListener(e,t,a),this.gridApi?this.addGridEventListener(e):this.gridEventsQueue.includes(e)||this.gridEventsQueue.push(e)}addGridEventListener(e){if(this.registeredGridEvents.has(e))return;this.registeredGridEvents.add(e);const t=t=>{this.$emit(e,t)};this.gridEventListeners.set(e,t),this.gridApi.addEventListener(e,t)}handleError(e,t){this.gridErrorItems=[...this.gridErrorItems,{detail:t.detail,type:e}]}handleBaseDatasourceError(e){const t={detail:{message:e.detail.message},type:Xe.Ie.datasource};this.gridErrorItems=[...this.gridErrorItems,{detail:t.detail,type:t.type}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter(e=>e.type!==Xe.Ie.datasource),this.removeAttribute("ds-disconnected")}connectedCallback(){var e;super.connectedCallback(),this.disposed=!1;const t=null!==(e=this.provider)&&void 0!==e?e:this;this.luminanceSubscription=o.baseLayerLuminance.subscribe(this.luminanceObserver,t),this.gridAutosizingEnabled&&(this.visibilityObserverCleanup=(0,Oe.j)(this,e=>{e&&this.debouncedColumnAutosize()})),this.rehydrationAttempted=!1,this.shouldRunConnect&&(this.rootEventsListeners.forEach(([e,t])=>{this.addEventListener(e,t)}),Xe.zI.forEach(e=>{Object.defineProperty(this,e,{set:t=>{this.agAttributeChangedCallback((0,Qe.w)(e),void 0,t)},enumerable:!0,configurable:!0})}),this.toggleDatasourceEventListeners(!0),this.paginationPageSize=this.isServerSide?this.gridProDatasource.maxRows:xe.OD.DEFAULT_PAGINATION_PAGE_SIZE)}disconnectedCallback(){var e;this.disposed=!0,this.debouncedSaveColumnState.cancel(),this.debouncedSaveFilterModel.cancel();const t=null!==(e=this.provider)&&void 0!==e?e:this;o.baseLayerLuminance.unsubscribe(this.luminanceObserver,t),this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),this.visibilityObserverCleanup&&(this.visibilityObserverCleanup(),this.visibilityObserverCleanup=void 0),super.disconnectedCallback(),this.rehydrationAttempted=!1;const a=this.shouldRunDisconnect;this.rootEventsListeners.forEach(([e,t])=>{this.removeEventListener(e,t)}),this.toggleDatasourceEventListeners(!1),a?this.performDisconnectCleanup():queueMicrotask(()=>{this.isConnected||this.performDisconnectCleanup()})}performDisconnectCleanup(){this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.initialised=!1,this.clearLocalGridOptions(),this.destroyGridInstance(),this.debouncedSaveColumnState.cancel(),this.debouncedSaveFilterModel.cancel(),this.registeredGridEvents.clear(),this.gridEventsQueue=[]}destroyGridInstance(){this.gridApi&&this.gridEventListeners.forEach((e,t)=>{this.gridApi.removeEventListener(t,e)}),this.gridEventListeners.clear(),this.gridApi?this.gridApi.destroy():this.agGrid&&this.agGrid.destroy(),this.gridSlot&&this.gridSlot.replaceChildren(),this.gridApi=void 0,this.agGrid=void 0}toggleDatasourceEventListeners(e){const t=e?"addEventListener":"removeEventListener";this.datasourceEventHandlers.forEach(([e,a])=>{super[t](e,a)})}handleInitialize(e){const{options:t,keepColDefsOnClearRowData:a}=e.detail;a&&(this.columnState=this.gridApi.getColumnState()),this.gridOptions=Object.assign(Object.assign(Object.assign({},this.agGridOptions),t),a?{columnDefs:this.gridApi.getColumnDefs()}:{}),this.initGrid()}handleDataLoaded(e){const{data:t}=e.detail;this.gridApi&&this.gridApi.setGridOption("rowData",t)}handleDataChanged(e){const{changes:t}=e.detail;if(!this.gridApi)return;const a=this.gridApi.applyTransaction(t);this.flashAddedCells(null==a?void 0:a.add)}flashAddedCells(e){this.enableRowFlashing&&(null==e?void 0:e.length)&&this.gridApi.flashCells({rowNodes:e})}handleSchemaUpdated(e){return(0,r.sH)(this,void 0,void 0,function*(){const{schema:t}=e.detail;if(this.gridApi.isModuleRegistered("MultiFilterModule")||t.forEach(e=>{"agMultiColumnFilter"===e.filter&&(Je.v.warn("MultiFilterModule is not registered, falling back to text filter"),e.filter="agTextColumnFilter")}),this.gridApi){const e=yield this.mergeAllColumnDefsAndStates(t,!0);this.gridApi.setGridOption("columnDefs",e)}})}handleDataCleared(e){const{includeSchema:t}=e.detail;this.gridApi&&(t&&this.gridApi.setGridOption("columnDefs",[]),this.gridApi.setGridOption("rowData",[]),this.gridApi.refreshCells({force:!0}))}handleLoadingStarted(){this.gridApi&&this.gridApi.setGridOption("loading",!0)}handleLoadingFinished(){this.gridApi&&(this.gridApi.setGridOption("loading",!1),this.gridApi.hideOverlay())}handleNoDataAvailable(){this.gridApi&&(this.gridApi.setGridOption("loading",!1),this.gridApi.showNoRowsOverlay())}handleFiltersRestored(){this.restoreCachedFilterConfig()}handleMoreDataAvailable(e){var t,a,r,i;const{hasMoreData:o,sourceRef:n}=e.detail;if(!this.gridApi)return;const d=null===(a=(t=this.gridApi).getStatusPanel)||void 0===a?void 0:a.call(t,s.k7.loadMore);d&&(null===(i=(r=d).updateParams)||void 0===i||i.call(r,{moreRows:o,sourceRef:n}))}handleDatasourceError(){this.setAttribute("ds-disconnected","ds-disconnected")}handleDatasourceDestroy(){this.clearLocalGridOptions()}handleRefreshServerSide(e){const{purge:t}=e.detail;this.gridApi&&this.gridApi.refreshServerSide({purge:t})}handleSetServerSideDatasource(e){const{datasource:t}=e.detail;this.gridApi&&this.gridApi.setGridOption("serverSideDatasource",t)}handleAddGridCssClass(e){var t;const{className:a}=e.detail,r=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;r&&r.classList.add(a)}handleRemoveGridCssClass(e){var t;const{className:a}=e.detail,r=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;r&&r.classList.remove(a)}handleApplyServerSideTransaction(e){const{transaction:t,async:a,callback:r}=e.detail;if(!this.gridApi)return;this.gridApi.applyServerSideTransaction(t)}combineAllGridComponents(e){const t={[s.IX.action]:w.eA,[s.IX.actionsMenu]:k.cN,[s.IX.boolean]:G._Y,[s.IX.editable]:L.YM,[s.IX.icon]:I.Jt,[s.IX.statusPill]:H.N7,[s.IX.select]:M.gs,[s.IX.selectEditor]:d._Q,[s.IX.numberEditor]:h.Z0,[s.IX.multiselectEditor]:u.pZ,[s.IX.dateEditor]:b.S8,[s.IX.stringEditor]:C.XJ,[s.k7.labelValue]:Ve.k,[s.k7.loadMore]:Ke.s,[s.k7.pagination]:je.h,[s.k7.reload]:Ye.W,[s.k7.rowCount]:qe.i};return Object.assign(Object.assign(Object.assign({},t),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}getSelectedRows(){var e,t,a,r;try{if(!this.initialised||!this.gridApi)return[];const i=null===(e=this.gridOptions)||void 0===e?void 0:e.rowSelection;if("single"===i||"multiple"===i)return this.gridApi.getSelectedRows&&this.gridApi.getSelectedRows().length>0?this.gridApi.getSelectedRows():[];if((null===(t=this.gridApi)||void 0===t?void 0:t.getCellRanges)&&this.gridApi.getCellRanges().length>0)return this.getCellRangeRowData();if(!(null===(a=this.gridOptions)||void 0===a?void 0:a.enableRangeSelection)){const e=null===(r=this.gridApi)||void 0===r?void 0:r.getFocusedCell();if(e){const t=this.gridApi.getDisplayedRowAtIndex(e.rowIndex);if(null==t?void 0:t.data)return[t.data]}}return[]}catch(e){return Je.v.error("Grid Pro: Error getting selected rows:",e),[]}}getCellRangeRowData(){var e;if(!(null===(e=this.gridApi)||void 0===e?void 0:e.getCellRanges))return[];const t=this.gridApi.getCellRanges();if(0===t.length)return[];const a=[];return t.forEach(e=>{const t=e.startRow.rowIndex,r=e.endRow.rowIndex;for(let e=t;e<=r;e+=1){const t=this.gridApi.getDisplayedRowAtIndex(e);(null==t?void 0:t.data)&&!a.some(e=>e===t.data)&&a.push(t.data)}}),a}hasSelectedRows(){return this.getSelectedRows().length>0}updateLabelValueStatusBar(e){var t,a;if(!this.gridApi)return void Je.v.warn("Grid Pro: Cannot update label-value status bar - grid API not available");const r=null===(a=(t=this.gridApi).getStatusPanel)||void 0===a?void 0:a.call(t,s.k7.labelValue);r&&"function"==typeof r.updateParams?r.updateParams(e):Je.v.warn("Grid Pro: Label-value status bar component not found or updateParams method not available")}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout(()=>{var e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()},Xe.BW))}removeConfigWidthsToAutosize(e){return e.map(e=>Object.assign(Object.assign({},e),{width:null}))}saveColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.gridApi.getColumnState();e=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(e):e;const t=0===e.filter(e=>{if(e.hide)return!1;const t=this.gridApi.getColumn(e.colId);return Boolean(t.getColDef().headerName)}).length;if(0===e.length||JSON.stringify(e)===JSON.stringify(this.columnState)||t)return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,e),this.columnState=e}})}getSavedColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=yield this.statePersistence.getColumnState(this.persistColumnStateKey)),this.columnState})}restoreColumnState(){return(0,r.sH)(this,void 0,void 0,function*(){var e;this.rehydrationAttempted=!0;const t=yield this.getSavedColumnState();t&&t.length>0&&(null===(e=this.gridApi)||void 0===e||e.applyColumnState({state:t,applyOrder:!0}))})}cacheFilterConfig(){var e;this.setFilterModel((null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0)}restoreCachedFilterConfig(){return(0,r.sH)(this,void 0,void 0,function*(){var e,t;const a=yield this.getfilterModel();void 0!==a&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(a),null===(t=this.gridApi)||void 0===t||t.onFilterChanged())})}get gridOptions(){return this.agGridOptions}get isServerSide(){return this.gridProDatasource instanceof Me.X}get gridParams(){return{globalListener:this.boundGlobalEventListener}}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(e){const t=()=>{!this.disposed&&this.isConnected&&(this.debouncedSaveColumnState(),this.debouncedColumnAutosize())};Array.from(this.attributes).forEach(e=>{const t=this.agPropertiesMap[e.name];t&&(this.agAttributes[t]=e.value)});const{columnDefs:a,components:i,defaultColDef:o,getRowId:n,onGridReady:d,onFilterChanged:l}=e,g=(0,r.Tt)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged"]),h=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},o),components:this.combineAllGridComponents(i),headerHeight:this.headerHeight,rowHeight:this.rowHeight,animateRows:!1,suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:e=>{var t,a,r;this.gridApi=e.api,this.gridEventsQueue.length&&this.gridEventsQueue.forEach(e=>{this.addGridEventListener(e)}),this.rowData&&this.gridApi.setGridOption("rowData",this.rowData),d&&d(e),(null===(t=this.gridProDatasource)||void 0===t?void 0:t.keepColDefsOnClearRowData)&&(null===(a=this.columnState)||void 0===a?void 0:a.length)>0&&this.gridApi.applyColumnState({state:this.columnState,applyOrder:!0}),this.$emit(et,{event:e,gridId:this.id}),this.$emit(s.mr,{event:e,gridId:this.id}),null===(r=this.gridProDatasource)||void 0===r||r.$emit(Be.c.ready,{pagination:this.pagination}),this.restoreColumnState(),this.restoreCachedFilterConfig(),this.debouncedColumnAutosize()},onColumnPinned:t,onColumnResized:t,onColumnMoved:t,onDisplayedColumnsChanged:t,onFilterChanged:e=>{!this.disposed&&this.isConnected&&(this.debouncedSaveFilterModel(),l&&l(e))},onGridSizeChanged:t,onSortChanged:t}),g);this.gridProDatasource?(h.columnDefs=a,h.getRowId=n,this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h)):this.mergeAllColumnDefsAndStates(a).then(e=>{!this.disposed&&this.isConnected&&(h.columnDefs=e,h.getRowId=n,this.setupPaginationAndStatusBar(h),this.setLocalGridOptions(h),this.initGrid())})}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),(0,Xe.Qg)(e,this.agAttributes))}clearLocalGridOptions(){this.agGridOptions=void 0}initGrid(){n.DOM.queueUpdate(()=>{!this.disposed&&this.isConnected&&(this.initialised&&(this.destroyGridInstance(),this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild)),this.agGrid=(0,Te.Dvw)(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0)})}mergeAllColumnDefsAndStates(e){return(0,r.sH)(this,arguments,void 0,function*(e,t=!1){var a;const r=e||[];r.forEach(e=>{if(this.headerCaseType&&e.field&&!e.headerName){const t=Le[this.headerCaseType];t?e.headerName=t(e.field):Je.v.warn(`Invalid header-case-type attribute value: ${this.headerCaseType}. Please use one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.`)}});const i=Array.from(this.querySelectorAll(this.columnComponentName)).map(e=>e.definition).map(e=>{var t,a;if(this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),"agSetColumnFilter"===e.filter){if(!(null!=e.filterParams&&"values"in e.filterParams)){const i=null===(a=null===(t=r.find(t=>t.field===e.field))||void 0===t?void 0:t.filterParams)||void 0===a?void 0:a.values;i&&(e.filterParams=Object.assign(Object.assign({},e.filterParams),{values:i}))}}e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=t=>{if(t.data[s.A7]===e.field)return{component:s.IX.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=We.y,e.tooltipValueGetter=t=>{const a=t.data[s.h1];if(a&&a.column===e.field)return a.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var t;return(null===(t=e.data[s.h1])||void 0===t?void 0:t.column)===e.colDef.field}}));const i=r.find(t=>e.field===t.field);return Object.assign(Object.assign({},i),e)}),o=i.map(e=>e.field),n=[...i,...this.onlyTemplateColDefs?[]:r.filter(e=>!o.includes(e.field))];if(this.gridProDatasource&&t){const e=yield this.getSavedColumnState();if((null==e?void 0:e.length)>0)return(0,Ze.yS)(n,e);if((null===(a=this.gridProDatasource.deferredColumnStates)||void 0===a?void 0:a.length)>0)return(0,Ze.yS)(n,this.gridProDatasource.deferredColumnStates)}return n})}panelExists(e,t){return t.some(t=>t.statusPanel===e)}addRowCountPanel(e,t){if(this.statusBarConfig&&!0===this.statusBarConfig.rows){const a=this.isServerSide||"serverSide"===(null==t?void 0:t.rowModelType),r=this._pagination||!0===(null==t?void 0:t.pagination);if(a&&!r)this.panelExists(s.k7.rowCount,e)||e.push({statusPanel:s.k7.rowCount,align:"left"});else if(!a){const t="agTotalAndFilteredRowCountComponent";this.panelExists(t,e)||e.push({statusPanel:t,align:"left"})}}}addMaxRowsPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.maxRows&&(this.panelExists(s.k7.labelValue,e)||e.push({statusPanel:s.k7.labelValue,statusPanelParams:{label:"Max Rows",value:this.gridProDatasource.maxRows||xe.OD.MAX_ROWS_250,hide:!1},align:"left"}))}addAggregationPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.aggregation&&(this.panelExists("agAggregationComponent",e)||e.push({statusPanel:"agAggregationComponent",align:"right"}))}addDatasourcePanels(e){if(this.gridProDatasource){const t=this.gridProDatasource.getDatasourceStatusBarPanels(this.isServerSide,this.statusBarConfig).filter(t=>!this.panelExists(t.statusPanel,e));e.push(...t)}}addPaginationPanel(e){this._pagination&&(this.panelExists(s.k7.pagination,e)||e.push({statusPanel:s.k7.pagination,align:"right"}))}setupPaginationAndStatusBar(e){var t,a;if(this._pagination&&(e.pagination=!0,e.suppressScrollOnNewData=!0,e.paginationPageSize=this.paginationPageSize),this.withStatusBar&&this.statusBarConfig){const r=[...(null===(t=e.statusBar)||void 0===t?void 0:t.statusPanels)||[]];this.addRowCountPanel(r,e),this.addMaxRowsPanel(r),this.addAggregationPanel(r),this.addDatasourcePanels(r),this._pagination&&(e.suppressPaginationPanel=!0,this.addPaginationPanel(r));const i=((null===(a=e.statusBar)||void 0===a?void 0:a.statusPanels)||[]).filter(e=>!this.panelExists(e.statusPanel,r));r.push(...i),e.statusBar={statusPanels:r}}}get observedAttributes(){const e=Xe.zI.map(e=>e.toLowerCase()),t=Xe.zI.map(e=>(0,Qe.w)(e));return e.concat(t)}agAttributeChangedCallback(e,t,a){var r;if(t===a)return;const i=this.agPropertiesMap[e];i&&(this.agAttributes[i]=a,this.initialised&&(null===(r=this.gridApi)||void 0===r||r.setGridOption(i,a)))}globalEventListener(e,t){const a=e.toLowerCase(),r=new Event(a);r.agGridDetails=t,this.dispatchEvent(r);const i="on"+a;"function"==typeof this[i]&&this[i](r)}}(0,r.Cg)([n.observable],tt.prototype,"gridApi",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridErrorItems",void 0),(0,r.Cg)([Ue.l],tt.prototype,"statePersistence",void 0),(0,r.Cg)([(0,n.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],tt.prototype,"autoCellRendererByType",void 0),(0,r.Cg)([(0,n.attr)({attribute:"only-template-col-defs",mode:"boolean"})],tt.prototype,"onlyTemplateColDefs",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"grid-autosizing"})],tt.prototype,"gridAutosizingEnabled",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],tt.prototype,"enableCellFlashing",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-row-flashing"})],tt.prototype,"enableRowFlashing",void 0),(0,r.Cg)([(0,n.attr)({attribute:"persist-column-state-key"})],tt.prototype,"persistColumnStateKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"persist-filter-model-key"})],tt.prototype,"persistFilterModelKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"header-case-type"})],tt.prototype,"headerCaseType",void 0),(0,r.Cg)([n.observable],tt.prototype,"rowData",void 0),(0,r.Cg)([n.attr],tt.prototype,"columnComponentName",void 0),(0,r.Cg)([n.observable],tt.prototype,"eventsAndCallbacks",void 0),(0,r.Cg)([n.attr],tt.prototype,"headerHeight",void 0),(0,r.Cg)([n.attr],tt.prototype,"rowHeight",void 0),(0,r.Cg)([n.observable],tt.prototype,"classNames",void 0),(0,r.Cg)([n.observable],tt.prototype,"agGrid",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridSlot",void 0),(0,r.Cg)([n.observable],tt.prototype,"themeMode",void 0),(0,r.Cg)([n.observable],tt.prototype,"gridComponents",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean"})],tt.prototype,"pagination",void 0),(0,r.Cg)([(0,n.attr)({attribute:"pagination-page-size"})],tt.prototype,"paginationPageSize",void 0),(0,r.Cg)([n.observable],tt.prototype,"statusBarConfig",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"with-status-bar"})],tt.prototype,"withStatusBar",void 0),(0,r.Cg)([n.observable],tt.prototype,"customErrorHandlerTemplate",void 0),(0,r.Cg)([s.lz],tt.prototype,"gridOptionsConfig",void 0),(0,r.Cg)([n.observable],tt.prototype,"provider",void 0);class at extends tt{getCachedTheme(e){const t=at.themeByRowHeight.get(e);if(t)return t;const a=Te.N8R.withParams({backgroundColor:"var(--neutral-layer-card-container)",cellHorizontalPadding:"calc(var(--design-unit) * 2px)",foregroundColor:"var(--neutral-foreground-rest)",headerTextColor:"var(--neutral-foreground-hint)",headerBackgroundColor:"var(--neutral-layer-3)",headerColumnBorder:"1px solid var(--neutral-stroke-rest)",oddRowBackgroundColor:"var(--neutral-layer-1)",rowBorder:"1px solid var(--neutral-stroke-divider-rest)",borderColor:"var(--neutral-stroke-rest)",wrapperBorder:"0",accentColor:"var(--accent-foreground-rest)",fontFamily:"var(--body-font)",sideBarBackgroundColor:"var(--neutral-layer-2)",dataFontSize:"var(--type-ramp-minus-2-font-size)",iconButtonColor:"var(--accent-foreground-rest)",iconButtonHoverColor:"color-mix(in srgb, var(--accent-foreground-rest), var(--ag-foreground-color) 30%)",rowHeight:e});return at.themeByRowHeight.set(e,a),a}set gridOptions(e){var t,a,r,i,o;const n=Object.assign({},e);n.components=Object.assign({[s.IX.action]:A,[s.IX.actionsMenu]:x,[s.IX.boolean]:O,[s.IX.editable]:$,[s.IX.select]:z,[s.IX.selectEditor]:l,[s.IX.numberEditor]:c,[s.IX.multiselectEditor]:m,[s.IX.dateEditor]:f,[s.IX.stringEditor]:E,[s.IX.statusPill]:B,[s.IX.icon]:N},null!==(t=n.components)&&void 0!==t?t:{}),this.headerHeight=null!==(r=null!==(a=n.headerHeight)&&void 0!==a?a:Ce())&&void 0!==r?r:32,this.rowHeight=null!==(o=null!==(i=n.rowHeight)&&void 0!==i?i:Ce())&&void 0!==o?o:32,n.theme=this.getCachedTheme(this.rowHeight),super.gridOptions=n}}at.themeByRowHeight=new Map,(0,r.Cg)([n.observable],at.prototype,"provider",void 0);const rt=at.compose(Object.assign({baseName:"grid-pro",template:ae,styles:n.css`
|
|
761
761
|
:host {
|
|
762
762
|
width: 100%;
|
|
763
763
|
height: 100%;
|
|
@@ -972,4 +972,4 @@
|
|
|
972
972
|
</div>
|
|
973
973
|
</div>
|
|
974
974
|
`,St=Et(),wt={menuTabs:["filterMenuTab","generalMenuTab","columnsMenuTab"]},At=(e,t)=>!e.composedPath().includes(t);function Rt(e,t,a,i){return(0,r.sH)(this,void 0,void 0,function*(){var r;try{const s=function(e,t){const a=(new lt.K).withField(e).withValue(null!=t?t:"").withSerialiser(gt.n.EQ).withGroup("default").build();return a.serialiser(a)}(a,i),o=yield e.request(t,{DETAILS:{CRITERIA_MATCH:s}});return 1===(null===(r=o.REPLY)||void 0===r?void 0:r.length)?o.REPLY[0]:void 0}catch(e){return void console.error(`Failed to retrieve object from the ${t} resource: ${e instanceof Error?e.message:String(e)}`)}})}class kt extends((0,Ge.S)(ie.FoundationElement)){constructor(){super(...arguments),this.requestSupportsAdvancedSearch=!1,this.defaultSlottedNodes=[],this.getAndSetRowsDebounce=Pe()(()=>this.getAndSetRows(),300),this.handleClickOutside=e=>{At(e,this)&&(this.open=!1)}}get connect(){var e;return null!==(e=this.connectOverride)&&void 0!==e?e:this._connectDI}set connect(e){this.connectOverride=e}get value(){return n.Observable.track(this,"value"),this._value}set value(e){e!==this._value&&(e?Rt(this.connect,this.resourceName,this.valueKey,e).then(t=>{this.value===e&&(this.selectedRow=t)}):this.selectedRow=void 0,this.emitValue(e))}get displayValue(){return this.selectedRow&&this.labelKey&&this.selectedRow[this.labelKey]||this.value||""}get hasSearchKey(){return!!this.searchKey&&this.searchKey.length>0}get hasSlottedContent(){return!(!this.defaultSlottedNodes||0===this.defaultSlottedNodes.length)&&this.defaultSlottedNodes.some(e=>{var t;return e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&(null===(t=e.textContent)||void 0===t?void 0:t.trim().length)>0})}connectedCallback(){var e;super.connectedCallback(),(null===(e=this.optionsElement)||void 0===e?void 0:e.style)&&this.dropdownWidthChanged(),this.open=!1,this.filterSearch="",this.grid&&(this.grid.gridOptions={defaultColDef:wt,onRowClicked:e=>{this.selectedRow=e.data,this.emitValue(e.data[this.valueKey]),this.toggle()}})}setGridRowData(e){var t;const a=null===(t=this.grid)||void 0===t?void 0:t.gridApi;a&&("function"==typeof a.updateGridOptions?a.updateGridOptions({rowData:e}):a.setRowData(e))}setGridColumnDefs(e){var t;const a=null===(t=this.grid)||void 0===t?void 0:t.gridApi;a&&("function"==typeof a.updateGridOptions?a.updateGridOptions({columnDefs:e}):a.setColumnDefs(e))}emitValue(e){this._value=e,this.$emit("change",e),this.$emit("input",e),n.Observable.notify(this,"value")}toggle(){this.open=!this.open}getAndSetRows(){return(0,r.sH)(this,void 0,void 0,function*(){var e,t;if(!(null===(e=this.grid)||void 0===e?void 0:e.gridApi))return;const a=this.lastRequest={},r=this.request?{REQUEST:Object.assign({},this.request)}:{},i=Array.isArray(this.searchKey)&&1===this.searchKey.length?this.searchKey[0]:this.searchKey;let s;if(i&&this.filterSearch)if(this.requestSupportsAdvancedSearch){const e=(Array.isArray(i)?i:[i]).map(e=>{var t;return(new lt.K).withField(e).withValue(null!==(t=this.filterSearch)&&void 0!==t?t:"").withSerialiser(gt.n.containsIgnoreCase).withGroup("default").build()}),t=new ht.b;t.Or(e,{join:ct.r.Or()}),s=t.build()}else{if(Array.isArray(i))throw Error("MulticolumnDropdown: Unable to search multiple keys via request; if the request is a GPAL ReqRep, set requestSupportsAdvancedSearch to true");r.REQUEST=Object.assign(Object.assign({},r.REQUEST),{[i]:`*${this.filterSearch}*`})}const o=null===(t=this.baseCriteria)||void 0===t?void 0:t.trim();o&&s?s=`(${s}) && (${o})`:o&&(s=o),s&&(r.DETAILS={CRITERIA_MATCH:s});try{const e=yield this.connect.request(this.resourceName,r);if(a!==this.lastRequest)return;const t=(null==e?void 0:e.REPLY)||[];this.setGridRowData(t),t.length>0?this.grid.gridApi.hideOverlay():this.grid.gridApi.showNoRowsOverlay()}catch(e){console.error(`Failed to retrieve rows from the ${this.resourceName} resource: ${e instanceof Error?e.message:String(e)}`)}})}filterSearchChanged(){var e,t;this.open&&(null===(t=null===(e=this.grid)||void 0===e?void 0:e.gridApi)||void 0===t||t.showLoadingOverlay(),this.getAndSetRowsDebounce())}requestChanged(){var e,t;this.open&&(null===(t=null===(e=this.grid)||void 0===e?void 0:e.gridApi)||void 0===t||t.showLoadingOverlay(),this.getAndSetRows())}columnDefinitionsChanged(){this.setGridColumnDefs(this.columnDefinitions)}openChanged(){var e,t;this.open?(document.addEventListener("mousedown",this.handleClickOutside),(null===(e=this.grid)||void 0===e?void 0:e.gridApi)&&(this.grid.gridApi.showLoadingOverlay(),this.getAndSetRows())):(document.removeEventListener("mousedown",this.handleClickOutside),this.filterSearch="",(null===(t=this.grid)||void 0===t?void 0:t.gridApi)&&this.setGridRowData([]))}dropdownWidthChanged(){var e,t;null===(t=null===(e=this.optionsElement)||void 0===e?void 0:e.style)||void 0===t||t.setProperty(ut,this.dropdownWidth>0?`${this.dropdownWidth}px`:"inherit")}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback();const e=this.shouldRunDisconnect;n.DOM.queueUpdate(()=>{var t;e&&((null===(t=this.grid)||void 0===t?void 0:t.gridApi)&&this.setGridRowData([]),this.selectedRow=void 0,this._value=void 0)})}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}}(0,r.Cg)([dt.dm],kt.prototype,"_connectDI",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean"})],kt.prototype,"disabled",void 0),(0,r.Cg)([(0,n.attr)({attribute:"resource-name"})],kt.prototype,"resourceName",void 0),(0,r.Cg)([(0,n.attr)({attribute:"search-key",converter:pt})],kt.prototype,"searchKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"advanced-search-req",mode:"boolean"})],kt.prototype,"requestSupportsAdvancedSearch",void 0),(0,r.Cg)([(0,n.attr)({attribute:"value-key"})],kt.prototype,"valueKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"label-key"})],kt.prototype,"labelKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"dropdown-placement"})],kt.prototype,"dropdownPlacement",void 0),(0,r.Cg)([n.attr],kt.prototype,"dropdownWidth",void 0),(0,r.Cg)([n.observable],kt.prototype,"request",void 0),(0,r.Cg)([n.observable],kt.prototype,"columnDefinitions",void 0),(0,r.Cg)([n.observable],kt.prototype,"baseCriteria",void 0),(0,r.Cg)([n.observable],kt.prototype,"defaultSlottedNodes",void 0),(0,r.Cg)([n.observable],kt.prototype,"filterSearch",void 0),(0,r.Cg)([n.observable],kt.prototype,"open",void 0),(0,r.Cg)([n.observable],kt.prototype,"selectedRow",void 0),(0,r.Cg)([n.volatile],kt.prototype,"displayValue",null),(0,r.Cg)([n.volatile],kt.prototype,"hasSearchKey",null),(0,r.Cg)([n.volatile],kt.prototype,"hasSlottedContent",null);const xt=kt.compose({baseName:"multicolumn-dropdown",template:St,styles:bt}),Dt=kt.compose({baseName:"multicolumn-dropdown",template:Et("rapid"),styles:bt});var Gt=a(3299),Ot=a(70349),Tt=a(91327),Lt=a(35610),$t=a(30335),Pt=a(49568);const It={foundationIconRenderer:I.qN,foundationGridProActionRenderer:w._X,foundationGridProActionsMenuRenderer:k.su,foundationAgBooleanRenderer:G.fg,foundationAgTextRenderer:it.G4,foundationAgTextFieldRenderer:Ot.wG,foundationAgEditableRenderer:L.r8,foundationAgSelectRenderer:M.bE,foundationSelectEditor:d.RU,foundationNumberEditor:h.CY,foundationDateEditor:b.vr,foundationMultiselectEditor:u.UH,foundationStringEditor:C.cb,foundationMulticolumnDropdown:xt,foundationStatusPillRenderer:H.a1,StatusPillRenderer:H.N7,foundationGridPro:i.RB,register(e,...t){if(e)for(const a in this)"register"!==a&&this[a]().register(e,...t)}};var Nt=a(92277);const _t=/^(?:[A-Za-z0-9+/]{4})*?(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Mt=e=>{const t=e.split(":");let a,r;2===t.length?[a,r]=t:r=e;const i=(e=>{if(_t.test(e)){const t=atob(e),a=new Uint8Array(t.length);return[...t].forEach((e,r)=>{a[r]=t.charCodeAt(r)}),a.buffer}return e})(r);if("str"===a){return new TextDecoder("utf-8").decode(i)}return i},zt=e=>{const t=(e=>{if("string"==typeof e)return btoa(e);if(e instanceof ArrayBuffer){const t=new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),"");return btoa(t)}return""})(e);return"string"==typeof e?`str:${t}`:e instanceof ArrayBuffer?`bin:${t}`:""},Ft={account:"genesis",namespace:"default",authKey:"kv-default",authEmail:void 0},Ht=ie.DI.createInterface();var Bt,Xt;!function(e){e.REQ_KEY_VALUE_LIST="REQ_KEY_VALUE_LIST",e.REQ_KEY_VALUE_READ="REQ_KEY_VALUE_READ"}(Bt||(Bt={})),function(e){e.EVENT_KEY_VALUE_PUT="EVENT_KEY_VALUE_PUT",e.EVENT_KEY_VALUE_DELETE="EVENT_KEY_VALUE_DELETE"}(Xt||(Xt={}));let Ut=class{constructor(e,t,a=Ft){this.connect=e,this.user=t,this.kvStorageConfig=a}delete(e){return(0,r.sH)(this,void 0,void 0,function*(){const t={DETAILS:{KEYS:e}},a=yield this.connect.commitEvent(Xt.EVENT_KEY_VALUE_DELETE,t);return!(!a||"EVENT_ACK"!==a.MESSAGE_TYPE)||{ERROR:a.ERROR,WARNING:a.WARNING}})}get(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a={REQUEST:{USER_NAME:null!==(t=this.kvStorageConfig.authEmail)&&void 0!==t?t:this.user.userName,KEY:e}},r=yield this.connect.request(Bt.REQ_KEY_VALUE_READ,a);if(r&&r.REPLY&&r.REPLY.length>0){const t=r.REPLY.map(e=>{const t=this.getDecodedValue(e.VALUE);return{kv:{key:e.KEY,value:t}}});return e?t[0]:t}return e?void 0:[]})}getDecodedValue(e){e.startsWith("str:")||e.startsWith("bin:")||(e=`str:${e}`);let t=Mt(e);return"string"==typeof t&&t.startsWith("str:")&&(t=Mt(t)),"string"==typeof t&&t.startsWith("bin:")&&(t=Mt(t)),t}list(){return(0,r.sH)(this,void 0,void 0,function*(){var e;const t={REQUEST:{USER_NAME:null!==(e=this.kvStorageConfig.authEmail)&&void 0!==e?e:this.user.userName}},a=yield this.connect.request(Bt.REQ_KEY_VALUE_LIST,t);if(a&&a.REPLY&&a.REPLY.length>0){return a.REPLY.map(e=>e.KEY)}return[]})}put(e){return(0,r.sH)(this,void 0,void 0,function*(){const t={DETAILS:{RECORDS:e.map(e=>({KEY:e.key,VALUE:e.base64?zt(e.value):e.value}))}},a=yield this.connect.commitEvent(Xt.EVENT_KEY_VALUE_PUT,t);return!(!a||"EVENT_ACK"!==a.MESSAGE_TYPE)||{ERROR:a.ERROR,WARNING:a.WARNING}})}};Ut=(0,r.Cg)([(0,r.Qj)(0,dt.dm),(0,r.Qj)(1,Nt.KJ),(0,r.Qj)(2,(0,ie.optional)(Ht))],Ut);const Vt=ie.DI.createInterface(e=>e.singleton(Ut));var Kt=a(98316);class jt{getColumnState(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;yield this.migrateLocalStorageToKVStorage(e);const a=yield this.kvStorage.get(e),r=a?null===(t=a.kv)||void 0===t?void 0:t.value:void 0;return r?JSON.parse(r):[]})}saveColumnState(e,t){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}deleteColumnState(e){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.delete([e])})}migrateLocalStorageToKVStorage(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a=yield this.kvStorage.get(e);if(a&&(null===(t=a.kv)||void 0===t?void 0:t.value))return;const r=this.session.getLocalStorageItem("gridOptions"),i=r?JSON.parse(r)[e]:void 0;i&&(Je.v.debug(`Columns state migration for key: ${e} from LocalStorage to KV Storage`),this.kvStorage.put([{key:e,value:i}]))})}getFilterModel(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const a=yield this.kvStorage.get(e),r=a?null===(t=a.kv)||void 0===t?void 0:t.value:void 0;return r?JSON.parse(r):{}})}saveFilterModel(e,t){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}}(0,r.Cg)([Vt],jt.prototype,"kvStorage",void 0),(0,r.Cg)([Kt.N],jt.prototype,"session",void 0);var Yt=a(11749);const qt=o.SwatchRGB.from((0,se.parseColorHexRGB)("#4c4c4c")),Wt=o.SwatchRGB.from((0,se.parseColorHexRGB)("#c01754")),{create:Qt}=ie.DesignToken,Jt={foregroundColor:Qt("fui-ag-foreground-color").withDefault(Wt),backgroundColor:Qt("fui-ag-background-color").withDefault(qt)};var Zt=a(68858),ea=a(49874);const ta={processCellCallback:e=>["+","=","-","@","\t","\n"].some(t=>String(e.value).startsWith(t))?`'${e.value}`:e.value}}}]);
|
|
975
|
-
//# sourceMappingURL=182.
|
|
975
|
+
//# sourceMappingURL=182.1ea2a52ab6b1654ce3fbe67783119f27.js.map
|