@genesislcap/design-system-configurator 14.501.0 → 15.0.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.
@@ -1,4 +1,4 @@
1
- (self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[628],{41492(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,r,o){var s=r.prototype;o.utc=function(e){return new r({date:e,utc:!0,args:arguments})},s.utc=function(t){var a=o(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),e):a},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var n=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),n.call(this,e)};var d=s.init;s.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=s.utcOffset;s.utcOffset=function(i,r){var o=this.$utils().u;if(o(i))return this.$u?0:o(this.$offset)?l.call(this):this.$offset;if("string"==typeof i&&(i=function(e){void 0===e&&(e="");var i=e.match(t);if(!i)return null;var r=(""+i[0]).match(a)||["-",0,0],o=r[0],s=60*+r[1]+ +r[2];return 0===s?0:"+"===o?s:-s}(i),null===i))return this;var s=Math.abs(i)<=16?60*i:i;if(0===s)return this.utc(r);var n=this.clone();if(r)return n.$offset=s,n.$u=!1,n;var d=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(n=this.local().add(s+d,e)).$offset=s,n.$x.$localOffset=d,n};var g=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var c=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var h=s.diff;s.diff=function(e,t,a){if(e&&this.$u===e.$u)return h.call(this,e,t,a);var i=this.local(),r=o(e).local();return h.call(i,r,t,a)}}}()},84023(e,t,a){"use strict";a.r(t),a.d(t,{AG_BOOLEAN_PROPERTIES:()=>Ue.ME,AG_NUMBER_PROPERTIES:()=>Ue.LB,AG_PROPERTIES:()=>Ue.zI,ActionRenderer:()=>w.eA,ActionsMenuRenderer:()=>k.cN,AgGridCSSVars:()=>o.W3,AgGridTheme:()=>o.mJ,AgTextFieldRenderer:()=>Ot.p8,AgTextRenderer:()=>ot.t,BooleanRenderer:()=>G._Y,CellTemplate:()=>Gt.x,ColumnTemplate:()=>Pt.R,DARK_BACKGROUND_HEX:()=>de,DARK_BORDER_HEX:()=>le,DARK_FOREGROUND_HEX:()=>se,DARK_HEADER_FOREGROUND_HEX:()=>ne,DARK_ROW_HOVER_HEX:()=>ge,DEBOUNCED_RESIZE_TIME:()=>Ue.BW,DEFAULT_STATUS_BAR_CONFIG:()=>o.o2,DISPLAY_NONE_CLASS:()=>bt,DateEditor:()=>b.S8,EDITED_COLUMN_FIELD:()=>o.A7,ERROR_COLUMN_FIELD:()=>o.h1,EditableRenderer:()=>T.YM,ErrorTooltip:()=>Qe.y,GRID_READY_EVENT:()=>o.mr,GenesisGridDatasourceElement:()=>Tt.yu,GridOptionsConfig:()=>o.lz,GridPro:()=>r.cF,GridProBaseDatasource:()=>Tt.ML,GridProBeta:()=>at,GridProCaseType:()=>o.uA,GridProCell:()=>$e.O,GridProClientSideDatasource:()=>Fe.L,GridProColumn:()=>Ne.G,GridProGenesisDatasource:()=>Be.D,GridProRendererTypes:()=>o.IX,GridProServerSideDatasource:()=>ze.X,GridProStatusBarTypes:()=>o.k7,IconRenderer:()=>$.Jt,KVStorageStatePersistence:()=>Yt,LIGHT_BACKGROUND_HEX:()=>pe,LIGHT_BORDER_HEX:()=>ue,LIGHT_FOREGROUND_HEX:()=>ce,LIGHT_HEADER_FOREGROUND_HEX:()=>he,LIGHT_ROW_HOVER_HEX:()=>me,LabelValueStatusBarComponent:()=>Ke.k,LoadMoreStatusBarComponent:()=>Ye.s,LocalStorageStatePersistence:()=>jt.H,MulticolumnDropdown:()=>kt,MultiselectEditor:()=>u.pZ,NumberEditor:()=>c.Z0,OperationType:()=>Tt.S5,PaginationStatusBarComponent:()=>je.h,RapidAgActionRenderer:()=>A,RapidAgActionsMenuRenderer:()=>D,RapidAgSelectRenderer:()=>z,RapidAgTextRenderer:()=>st,RapidBooleanRenderer:()=>O,RapidDateEditor:()=>f,RapidEditableRenderer:()=>L,RapidGridPro:()=>we,RapidGridProBeta:()=>it,RapidIconRenderer:()=>N,RapidMultiselectEditor:()=>m,RapidNumberEditor:()=>h,RapidSelectEditor:()=>l,RapidStatusPillRenderer:()=>H,RapidStringEditor:()=>S,ReloadStatusBarComponent:()=>We.W,RowCountStatusBarComponent:()=>qe.i,SelectEditor:()=>d._Q,SelectRenderer:()=>F.gs,StatePersistence:()=>Xe.l,StatusPillRenderer:()=>B.N7,StringEditor:()=>C.XJ,actionHeightMultiplier:()=>w.Fz,agActionRendererStyles:()=>w.AC,agBooleanRendererStyles:()=>G.CL,agDateEditorStyles:()=>b.kI,agEditableRendererStyles:()=>T.Mx,agExternalStockStyles:()=>It.Kp,agGridAlpineFontFace:()=>It.KX,agGridBalhamFontFace:()=>It.c_,agGridCSS:()=>It.AT,agGridMaterialFontFace:()=>It.Id,agHeadCSS:()=>It.g4,agIconRendererStyles:()=>$.X5,agMultiselectEditorStyles:()=>u.$b,agNumberEditorStyles:()=>c.Fv,agSelectEditorStyles:()=>d.Uo,agSelectRendererStyles:()=>F.Ad,agStatusPillRendererStyles:()=>B.x2,agStringEditorStyles:()=>C.P_,agThemeAlpineNofontsCSS:()=>It.lJ,agThemeBalhamNofontsCSS:()=>It.HC,agThemeFontFaceMap:()=>It.KE,agThemeFontsId:()=>o.b7,agThemeGenesisRapid:()=>W,agThemeGenesisRapidDark:()=>Q,agThemeGenesisRapidLight:()=>Z,agThemeGenesisRapidTokens:()=>ye,agThemeMaterialCustomTokens:()=>Jt,agThemeMaterialNofontsCSS:()=>It.DX,agThemeTokenMapCSS:()=>o.Kb,agThemeTokenMapClassname:()=>o.eL,backgroundSwatch:()=>Wt,baseDatasourceEventNames:()=>Me.L,convertColDefToColumnState:()=>et.pr,convertColDefsToColumnStates:()=>et.rG,convertToKebabCase:()=>Je.w,copyAttributesToGridOptions:()=>Ue.Qg,criteriaDelimiter:()=>Tt.NC,criteriaJoin:()=>Tt.W_,csvExportParams:()=>ta,darkColors:()=>ve,datasourceEventNames:()=>Ve.c,dateTimeValueFormatter:()=>Ue.XV,dateValueFormatter:()=>Ue.sL,defaultAgGridFontFace:()=>It.qh,defaultGridOptionsConfig:()=>o.YO,defaultGridProConfig:()=>r.Z$,deriveHeightsFromTokens:()=>Ce,dropdownWidthVar:()=>mt,errorHandlerDialogStyles:()=>Lt.B,extractErrorMessage:()=>Zt.P,foregroundSwatch:()=>qt,formatDateExtra:()=>Ue.mC,foundationAgBooleanRenderer:()=>G.fg,foundationAgEditableRenderer:()=>T.r8,foundationAgSelectRenderer:()=>F.bE,foundationAgTextFieldRenderer:()=>Ot.wG,foundationAgTextRenderer:()=>ot.G4,foundationDateEditor:()=>b.vr,foundationGridComponents:()=>$t,foundationGridPro:()=>r.RB,foundationGridProActionRenderer:()=>w._X,foundationGridProActionsMenuRenderer:()=>k.su,foundationGridProShadowOptions:()=>r.LU,foundationGridProStyles:()=>U.X,foundationIconRenderer:()=>$.qN,foundationMulticolumnDropdown:()=>Dt,foundationMultiselectEditor:()=>u.UH,foundationNumberEditor:()=>c.CY,foundationSelectEditor:()=>d.RU,foundationStatusPillRenderer:()=>B.a1,foundationStringEditor:()=>C.cb,getActionsMenuDef:()=>k.Al,getAgBooleanRendererTemplate:()=>G.A9,getAgEditableRendererTemplate:()=>T.iP,getAvailableIndexFields:()=>ea.P,getAvailableIndexes:()=>ea.i,getColumnType:()=>Ue.nh,getDateEditorTemplate:()=>b.m6,getEnumFilterParams:()=>Ue.O7,getErrorHandlerDialogTemplate:()=>Lt.P,getGridProTemplate:()=>te.U,getIconRendererTemplate:()=>$.V$,getMulticolumnDropdownTemplate:()=>St,getMultiselectEditorTemplate:()=>u.tB,getNumberEditorTemplate:()=>c.r1,getSelectEditorTemplate:()=>d.iY,getSelectRendererTemplate:()=>F.qj,getStatusPillRendererTemplate:()=>B.T2,getStringEditorTemplate:()=>C.bZ,getTextFieldRendererTemplate:()=>Ot.tm,getTextRendererTemplate:()=>ot.d6,gridProColumns:()=>_e.T,gridProErrorNames:()=>Ue.Ie,gridProEventNames:()=>Ue.yY,gridProGenesisDatasourceEventNames:()=>He.V,gridProTemplate:()=>te.a,lightColors:()=>be,logger:()=>Ze.v,mergeAndDedupColDefWithColumnState:()=>et.yS,multicolumnDropdownStyles:()=>ft,multicolumnDropdownTemplate:()=>Et,optionsClass:()=>vt,rapidAgActionRenderer:()=>R,rapidAgActionsMenuRenderer:()=>x,rapidAgBooleanRenderer:()=>P,rapidAgDateEditor:()=>y,rapidAgEditableRenderer:()=>I,rapidAgMultiselectEditor:()=>v,rapidAgNumberEditor:()=>p,rapidAgSelectEditor:()=>g,rapidAgSelectRenderer:()=>M,rapidAgStringEditor:()=>E,rapidAgTextRenderer:()=>nt,rapidDefaultGridProConfig:()=>Re,rapidGridComponents:()=>dt,rapidGridPro:()=>ke,rapidGridProBeta:()=>rt,rapidGridProShadowOptions:()=>Ae,rapidGridProStyles:()=>ee,rapidGridProTemplate:()=>ae,rapidIconRenderer:()=>_,rapidMulticolumnDropdown:()=>xt,rapidStatusPillRenderer:()=>V,resolveVisibleColumnFields:()=>_e.C,sanitizeColumnState:()=>et.n7,textFieldRendererStyles:()=>Ot.zS,textRendererStyles:()=>ot.JN,themeGenesisRapid:()=>j,themeGenesisRapidDark:()=>q,themeGenesisRapidLight:()=>J,wasClickOutsideElement:()=>At});var i=a(55823),r=a(51266),o=a(55365),s=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 c=a(48072);class h extends c.Z0{}const p=h.compose({baseName:"number-editor",styles:c.Fv,template:(0,c.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 S extends C.XJ{}const E=S.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([[628],{41492(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(r,i,o){var s=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},s.utc=function(t){var a=o(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),e):a},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var n=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),n.call(this,e)};var d=s.init;s.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=s.utcOffset;s.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(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],o=i[0],s=60*+i[1]+ +i[2];return 0===s?0:"+"===o?s:-s}(r),null===r))return this;var s=Math.abs(r)<=16?60*r:r;if(0===s)return this.utc(i);var n=this.clone();if(i)return n.$offset=s,n.$u=!1,n;var d=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(n=this.local().add(s+d,e)).$offset=s,n.$x.$localOffset=d,n};var g=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var c=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var h=s.diff;s.diff=function(e,t,a){if(e&&this.$u===e.$u)return h.call(this,e,t,a);var r=this.local(),i=o(e).local();return h.call(r,i,t,a)}}}()},84023(e,t,a){"use strict";a.r(t),a.d(t,{AG_BOOLEAN_PROPERTIES:()=>Ue.ME,AG_NUMBER_PROPERTIES:()=>Ue.LB,AG_PROPERTIES:()=>Ue.zI,ActionRenderer:()=>w.eA,ActionsMenuRenderer:()=>k.cN,AgGridCSSVars:()=>o.W3,AgGridTheme:()=>o.mJ,AgTextFieldRenderer:()=>Gt.p8,AgTextRenderer:()=>it.t,BooleanRenderer:()=>G._Y,CellTemplate:()=>xt.x,ColumnTemplate:()=>Ot.R,DARK_BACKGROUND_HEX:()=>de,DARK_BORDER_HEX:()=>le,DARK_FOREGROUND_HEX:()=>se,DARK_HEADER_FOREGROUND_HEX:()=>ne,DARK_ROW_HOVER_HEX:()=>ge,DEBOUNCED_RESIZE_TIME:()=>Ue.BW,DEFAULT_STATUS_BAR_CONFIG:()=>o.o2,DISPLAY_NONE_CLASS:()=>vt,DateEditor:()=>b.S8,EDITED_COLUMN_FIELD:()=>o.A7,ERROR_COLUMN_FIELD:()=>o.h1,EditableRenderer:()=>L.YM,ErrorTooltip:()=>qe.y,GRID_READY_EVENT:()=>o.mr,GenesisGridDatasourceElement:()=>Tt.yu,GridOptionsConfig:()=>o.lz,GridPro:()=>i.cF,GridProBaseDatasource:()=>Tt.ML,GridProBeta:()=>tt,GridProCaseType:()=>o.uA,GridProCell:()=>$e.O,GridProClientSideDatasource:()=>Me.L,GridProColumn:()=>Ne.G,GridProGenesisDatasource:()=>Be.D,GridProRendererTypes:()=>o.IX,GridProServerSideDatasource:()=>_e.X,GridProStatusBarTypes:()=>o.k7,IconRenderer:()=>$.Jt,KVStorageStatePersistence:()=>Kt,LIGHT_BACKGROUND_HEX:()=>pe,LIGHT_BORDER_HEX:()=>ue,LIGHT_FOREGROUND_HEX:()=>ce,LIGHT_HEADER_FOREGROUND_HEX:()=>he,LIGHT_ROW_HOVER_HEX:()=>me,LabelValueStatusBarComponent:()=>Ke.k,LoadMoreStatusBarComponent:()=>Ye.s,LocalStorageStatePersistence:()=>Yt.H,MulticolumnDropdown:()=>At,MultiselectEditor:()=>u.pZ,NumberEditor:()=>c.Z0,OperationType:()=>Tt.S5,RapidAgActionRenderer:()=>R,RapidAgActionsMenuRenderer:()=>D,RapidAgSelectRenderer:()=>_,RapidAgTextRenderer:()=>ot,RapidBooleanRenderer:()=>O,RapidDateEditor:()=>f,RapidEditableRenderer:()=>P,RapidGridPro:()=>we,RapidGridProBeta:()=>at,RapidIconRenderer:()=>N,RapidMultiselectEditor:()=>m,RapidNumberEditor:()=>h,RapidSelectEditor:()=>l,RapidStatusPillRenderer:()=>H,RapidStringEditor:()=>S,ReloadStatusBarComponent:()=>je.W,RowCountStatusBarComponent:()=>We.i,SelectEditor:()=>d._Q,SelectRenderer:()=>M.gs,StatePersistence:()=>Xe.l,StatusPillRenderer:()=>B.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:()=>$.X5,agMultiselectEditorStyles:()=>u.$b,agNumberEditorStyles:()=>c.Fv,agSelectEditorStyles:()=>d.Uo,agSelectRendererStyles:()=>M.Ad,agStatusPillRendererStyles:()=>B.x2,agStringEditorStyles:()=>C.P_,agThemeAlpineNofontsCSS:()=>Pt.lJ,agThemeBalhamNofontsCSS:()=>Pt.HC,agThemeFontFaceMap:()=>Pt.KE,agThemeFontsId:()=>o.b7,agThemeGenesisRapid:()=>W,agThemeGenesisRapidDark:()=>Q,agThemeGenesisRapidLight:()=>Z,agThemeGenesisRapidTokens:()=>ye,agThemeMaterialCustomTokens:()=>Qt,agThemeMaterialNofontsCSS:()=>Pt.DX,agThemeTokenMapCSS:()=>o.Kb,agThemeTokenMapClassname:()=>o.eL,backgroundSwatch:()=>jt,baseDatasourceEventNames:()=>ze.L,convertColDefToColumnState:()=>Ze.pr,convertColDefsToColumnStates:()=>Ze.rG,convertToKebabCase:()=>Qe.w,copyAttributesToGridOptions:()=>Ue.Qg,criteriaDelimiter:()=>Tt.NC,criteriaJoin:()=>Tt.W_,csvExportParams:()=>ea,darkColors:()=>ve,datasourceEventNames:()=>Ve.c,dateTimeValueFormatter:()=>Ue.XV,dateValueFormatter:()=>Ue.sL,defaultAgGridFontFace:()=>Pt.qh,defaultGridOptionsConfig:()=>o.YO,defaultGridProConfig:()=>i.Z$,deriveHeightsFromTokens:()=>Ce,dropdownWidthVar:()=>ut,errorHandlerDialogStyles:()=>Lt.B,extractErrorMessage:()=>Jt.P,foregroundSwatch:()=>Wt,formatDateExtra:()=>Ue.mC,foundationAgBooleanRenderer:()=>G.fg,foundationAgEditableRenderer:()=>L.r8,foundationAgSelectRenderer:()=>M.bE,foundationAgTextFieldRenderer:()=>Gt.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:()=>$.qN,foundationMulticolumnDropdown:()=>kt,foundationMultiselectEditor:()=>u.UH,foundationNumberEditor:()=>c.CY,foundationSelectEditor:()=>d.RU,foundationStatusPillRenderer:()=>B.a1,foundationStringEditor:()=>C.cb,getActionsMenuDef:()=>k.Al,getAgBooleanRendererTemplate:()=>G.A9,getAgEditableRendererTemplate:()=>L.iP,getAvailableIndexFields:()=>Zt.P,getAvailableIndexes:()=>Zt.i,getColumnType:()=>Ue.nh,getDateEditorTemplate:()=>b.m6,getEnumFilterParams:()=>Ue.O7,getErrorHandlerDialogTemplate:()=>Lt.P,getGridProTemplate:()=>te.U,getIconRendererTemplate:()=>$.V$,getMulticolumnDropdownTemplate:()=>Ct,getMultiselectEditorTemplate:()=>u.tB,getNumberEditorTemplate:()=>c.r1,getSelectEditorTemplate:()=>d.iY,getSelectRendererTemplate:()=>M.qj,getStatusPillRendererTemplate:()=>B.T2,getStringEditorTemplate:()=>C.bZ,getTextFieldRendererTemplate:()=>Gt.tm,getTextRendererTemplate:()=>it.d6,gridProColumns:()=>Fe.T,gridProErrorNames:()=>Ue.Ie,gridProEventNames:()=>Ue.yY,gridProGenesisDatasourceEventNames:()=>He.V,gridProTemplate:()=>te.a,lightColors:()=>be,logger:()=>Je.v,mergeAndDedupColDefWithColumnState:()=>Ze.yS,multicolumnDropdownStyles:()=>bt,multicolumnDropdownTemplate:()=>St,optionsClass:()=>mt,rapidAgActionRenderer:()=>A,rapidAgActionsMenuRenderer:()=>x,rapidAgBooleanRenderer:()=>T,rapidAgDateEditor:()=>y,rapidAgEditableRenderer:()=>I,rapidAgMultiselectEditor:()=>v,rapidAgNumberEditor:()=>p,rapidAgSelectEditor:()=>g,rapidAgSelectRenderer:()=>z,rapidAgStringEditor:()=>E,rapidAgTextRenderer:()=>st,rapidDefaultGridProConfig:()=>Ae,rapidGridComponents:()=>nt,rapidGridPro:()=>ke,rapidGridProBeta:()=>rt,rapidGridProShadowOptions:()=>Re,rapidGridProStyles:()=>ee,rapidGridProTemplate:()=>ae,rapidIconRenderer:()=>F,rapidMulticolumnDropdown:()=>Dt,rapidStatusPillRenderer:()=>V,resolveVisibleColumnFields:()=>Fe.C,sanitizeColumnState:()=>Ze.n7,textFieldRendererStyles:()=>Gt.zS,textRendererStyles:()=>it.JN,themeGenesisRapid:()=>j,themeGenesisRapidDark:()=>q,themeGenesisRapidLight:()=>J,wasClickOutsideElement:()=>wt});var r=a(55823),i=a(51266),o=a(55365),s=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 c=a(48072);class h extends c.Z0{}const p=h.compose({baseName:"number-editor",styles:c.Fv,template:(0,c.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 S extends C.XJ{}const E=S.compose({baseName:"string-editor",styles:C.P_,template:(0,C.bZ)("rapid")});var w=a(67489);class R 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 A=R.compose({baseName:"grid-pro-action-renderer",styles:n.css`
2
2
  ${w.AC}
3
3
  .button-padding {
4
4
  justify-content: center;
@@ -45,7 +45,7 @@
45
45
  name="${e=>{var t;return null===(t=e.params)||void 0===t?void 0:t.headerName}}"
46
46
  :definition=${e=>e.params}
47
47
  ></rapid-actions-menu>
48
- `});var G=a(60905);class O extends G._Y{}const P=O.compose({baseName:"boolean-renderer",styles:G.CL,template:(0,G.A9)("rapid")});var T=a(46255);class L extends T.YM{}const I=L.compose({baseName:"editable-renderer",styles:T.Mx,template:(0,T.iP)("rapid")});var $=a(2048);class N extends $.Jt{}const _=N.compose({baseName:"icon-renderer",styles:$.X5,template:(0,$.V$)("rapid")});var F=a(80879);class z extends F.gs{}const M=z.compose({baseName:"select-renderer",styles:F.Ad,template:(0,F.qj)("rapid")});var B=a(19511);class H extends B.N7{}const V=H.compose({baseName:"status-pill-renderer",template:(0,B.T2)("rapid"),styles:B.x2});var U=a(98884),X=a(60591),K=a(93188);const Y=n.css`
48
+ `});var G=a(60905);class O extends G._Y{}const T=O.compose({baseName:"boolean-renderer",styles:G.CL,template:(0,G.A9)("rapid")});var L=a(46255);class P extends L.YM{}const I=P.compose({baseName:"editable-renderer",styles:L.Mx,template:(0,L.iP)("rapid")});var $=a(2048);class N extends $.Jt{}const F=N.compose({baseName:"icon-renderer",styles:$.X5,template:(0,$.V$)("rapid")});var M=a(80879);class _ extends M.gs{}const z=_.compose({baseName:"select-renderer",styles:M.Ad,template:(0,M.qj)("rapid")});var B=a(19511);class H extends B.N7{}const V=H.compose({baseName:"status-pill-renderer",template:(0,B.T2)("rapid"),styles:B.x2});var U=a(98884),X=a(60591),K=a(93188);const Y=n.css`
49
49
  .ag-theme-genesis-rapid,
50
50
  .ag-theme-genesis-rapid-dark,
51
51
  .ag-theme-genesis-rapid-light {
@@ -757,7 +757,7 @@
757
757
  ${W}
758
758
  ${Q}
759
759
  ${Z}
760
- `;var te=a(82128);const ae=(0,te.U)("rapid");var ie=a(20166),re=a(38370),oe=a(83912);const se="#cccccc",ne="#879ba6",de="#1f2126",le="#2e3339",ge="#2b2e34",ce="#000000",he="#181d1f",pe="#FFFFFF",ue="#babfc7",me="#2196f3",ve={foregroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(se)),headerForegroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ne)),backgroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(de)),borderSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(le)),rowHoverSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ge))},be={foregroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ce)),headerForegroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(he)),backgroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(pe)),borderSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ue)),rowHoverSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(me))},{create:fe}=re.DesignToken,ye={backgroundColor:fe("rapid-ag-background-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.backgroundSwatch:ve.backgroundSwatch),borderColor:fe("rapid-ag-border-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.borderSwatch:ve.borderSwatch),foregroundColor:fe("rapid-ag-foreground-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.foregroundSwatch:ve.foregroundSwatch),headerForegroundColor:fe("rapid-ag-header-foreground-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.headerForegroundSwatch:ve.headerForegroundSwatch),rowHoverColor:fe("rapid-ag-row-hover-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.rowHoverSwatch:ve.rowHoverSwatch)},Ce=()=>{const e=(0,ie.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},Se="ag-theme-genesis-rapid-dark",Ee="ag-theme-genesis-rapid-light";class we extends r.cF{constructor(){super(...arguments),this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.handleLuminanceChange=e=>{const t=s.baseLayerLuminance.getValueFor(e.target);this.theme=t===s.StandardLuminance.DarkMode?Se:Ee},this.theme="light"===localStorage.getItem("luminance")?Ee:Se}connectedCallback(){var e;super.connectedCallback();const t=null!==(e=this.provider)&&void 0!==e?e:this;this.luminanceSubscription=s.baseLayerLuminance.subscribe(this.luminanceObserver,t)}disconnectedCallback(){var e;const t=null!==(e=this.provider)&&void 0!==e?e:this;s.baseLayerLuminance.unsubscribe(this.luminanceObserver,t),this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),super.disconnectedCallback()}themeChanged(e,t){(e||t===Se)&&super.themeChanged(e,t)}set gridOptions(e){var t,a,i,r;const s=Object.assign({},e);s.components=Object.assign({[o.IX.action]:A,[o.IX.actionsMenu]:D,[o.IX.boolean]:O,[o.IX.editable]:L,[o.IX.icon]:N,[o.IX.select]:z,[o.IX.selectEditor]:l,[o.IX.numberEditor]:h,[o.IX.multiselectEditor]:m,[o.IX.dateEditor]:f,[o.IX.stringEditor]:S,[o.IX.statusPill]:H},e.components);(this.theme===j||this.theme===q||this.theme===J)&&(this.headerHeight=null!==(a=null!==(t=s.headerHeight)&&void 0!==t?t:Ce())&&void 0!==a?a:32,this.rowHeight=null!==(r=null!==(i=s.rowHeight)&&void 0!==i?i:Ce())&&void 0!==r?r:32),super.gridOptions=s}}(0,i.Cg)([n.observable],we.prototype,"provider",void 0);const Ae=r.LU,Re=r.Z$,ke=we.compose(Object.assign({baseName:"grid-pro",template:ae,styles:ee,shadowOptions:Ae},Re));var De=a(6884),xe=a(20633),Ge=a(21409),Oe=a(17190),Pe=a(48046),Te=a(88047),Le=a(62051),Ie=a.n(Le),$e=a(56943),Ne=a(64315),_e=a(14987),Fe=a(63296),ze=a(24638),Me=a(18070),Be=a(26062),He=a(90509),Ve=a(79270),Ue=a(32610),Xe=a(53397),Ke=a(52540),Ye=a(49104),je=a(19060),We=a(88863),qe=a(71964),Qe=a(73203),Je=a(50103),Ze=a(1510),et=a(23201);(0,xe.N)(Be.D,Fe.L,ze.X,$e.O,Ne.G),Pe.syG.registerModules([Pe.n76,Pe.Q90,Pe.x6L,Pe.YN8,Pe.YzW,Pe.Lt,Pe.I95,Pe.O4V,Pe.H18,Pe.mfG,Pe.Iws,Pe.nSw,Pe.FUS,Pe.Ss0,Pe.tkg,Pe.ZDV,Pe.XG7,Pe.VZy,Pe.$I9,Pe.dGu,Pe.AJG,Pe.c5B,Pe.BG]);const tt="gridReady";class at extends((0,Ge.S)(re.FoundationElement)){rowDataChanged(e,t){this.initialised&&this.gridApi.setGridOption("rowData",t)}getfilterModel(){return(0,i.sH)(this,void 0,void 0,function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)})}setFilterModel(e){return(0,i.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=Ie()(this.saveColumnState.bind(this),400),this.debouncedSaveFilterModel=Ie()(this.cacheFilterConfig.bind(this),400),this.debouncedNotifyDatasourceVisibleColumns=Ie()(this.notifyDatasourceVisibleColumns.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=o.o2,this.withStatusBar=!1,this.applyingDatasourceGridOptions=!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=s.baseLayerLuminance.getValueFor(e.target);this.themeMode=t===s.StandardLuminance.DarkMode?"dark":"light"},this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.agAttributes={},this.agPropertiesMap=Ue.zI.reduce((e,t)=>(e[t.toLowerCase()]=t,e[(0,Je.w)(t)]=t,e),{});const e=this.hideDatasourceError.bind(this);this.rootEventsListeners.push([He.V.dataInit,e],[Ue.yY.datasourceErrorClose,e],[Me.L.error,this.handleBaseDatasourceError.bind(this)],[Me.L.connected,e]),this.datasourceEventHandlers=[[Ve.c.initialize,this.handleInitialize.bind(this)],[Ve.c.dataLoaded,this.handleDataLoaded.bind(this)],[Ve.c.dataChanged,this.handleDataChanged.bind(this)],[Ve.c.schemaUpdated,this.handleSchemaUpdated.bind(this)],[Ve.c.dataCleared,this.handleDataCleared.bind(this)],[Ve.c.loadingStarted,this.handleLoadingStarted.bind(this)],[Ve.c.loadingFinished,this.handleLoadingFinished.bind(this)],[Ve.c.noDataAvailable,this.handleNoDataAvailable.bind(this)],[Ve.c.filtersRestored,this.handleFiltersRestored.bind(this)],[Ve.c.moreDataAvailable,this.handleMoreDataAvailable.bind(this)],[Ve.c.error,this.handleDatasourceError.bind(this)],[Ve.c.destroy,this.handleDatasourceDestroy.bind(this)],[Ve.c.cacheFilterConfig,this.cacheFilterConfig.bind(this)],[Ve.c.refreshServerSide,this.handleRefreshServerSide.bind(this)],[Ve.c.setServerSideDatasource,this.handleSetServerSideDatasource.bind(this)],[Ve.c.addGridCssClass,this.handleAddGridCssClass.bind(this)],[Ve.c.removeGridCssClass,this.handleRemoveGridCssClass.bind(this)],[Ve.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:Ue.Ie.datasource};this.gridErrorItems=[...this.gridErrorItems,{detail:t.detail,type:t.type}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter(e=>e.type!==Ue.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=s.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)}),Ue.zI.forEach(e=>{Object.defineProperty(this,e,{set:t=>{this.agAttributeChangedCallback((0,Je.w)(e),void 0,t)},enumerable:!0,configurable:!0})}),this.toggleDatasourceEventListeners(!0),this.paginationPageSize=this.isServerSide?this.gridProDatasource.maxRows:De.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;s.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)}),a?this.performDisconnectCleanup():queueMicrotask(()=>{this.isConnected||this.performDisconnectCleanup()})}performDisconnectCleanup(){this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.initialised=!1,this.resetGridOptionsState(),this.destroyGridInstance(),this.toggleDatasourceEventListeners(!1),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.applyingDatasourceGridOptions=!0;try{this.gridOptions=Object.assign(Object.assign(Object.assign({},this.userProvidedGridOptions),t),a?{columnDefs:this.gridApi.getColumnDefs()}:{}),this.initGrid()}finally{this.applyingDatasourceGridOptions=!1}}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,i.sH)(this,void 0,void 0,function*(){const{schema:t}=e.detail;if(!this.gridApi)return;const a=this.gridApi.getColumnDefs();if(a&&a.length>0)return;this.gridApi.isModuleRegistered("MultiFilterModule")||t.forEach(e=>{"agMultiColumnFilter"===e.filter&&(Ze.v.warn("MultiFilterModule is not registered, falling back to text filter"),e.filter="agTextColumnFilter")});const i=yield this.mergeAllColumnDefsAndStates(t,!0);this.gridApi.setGridOption("columnDefs",i),this.restoreCachedFilterConfig()})}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,i,r;const{hasMoreData:s,sourceRef:n}=e.detail;if(!this.gridApi)return;const d=null===(a=(t=this.gridApi).getStatusPanel)||void 0===a?void 0:a.call(t,o.k7.loadMore);d&&(null===(r=(i=d).updateParams)||void 0===r||r.call(i,{moreRows:s,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,i=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;i&&i.classList.add(a)}handleRemoveGridCssClass(e){var t;const{className:a}=e.detail,i=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;i&&i.classList.remove(a)}handleApplyServerSideTransaction(e){var t,a;const{transaction:i,async:r,callback:o}=e.detail;if(this.gridApi)if(r)this.gridApi.applyServerSideTransactionAsync(i,e=>{var t,a;this.flashAddedCells([...null!==(t=null==e?void 0:e.add)&&void 0!==t?t:[],...null!==(a=null==e?void 0:e.update)&&void 0!==a?a:[]]),null==o||o(e)});else{const e=this.gridApi.applyServerSideTransaction(i);this.flashAddedCells([...null!==(t=null==e?void 0:e.add)&&void 0!==t?t:[],...null!==(a=null==e?void 0:e.update)&&void 0!==a?a:[]]),o&&o(e)}}combineAllGridComponents(e){const t={[o.IX.action]:w.eA,[o.IX.actionsMenu]:k.cN,[o.IX.boolean]:G._Y,[o.IX.editable]:T.YM,[o.IX.icon]:$.Jt,[o.IX.statusPill]:B.N7,[o.IX.select]:F.gs,[o.IX.selectEditor]:d._Q,[o.IX.numberEditor]:c.Z0,[o.IX.multiselectEditor]:u.pZ,[o.IX.dateEditor]:b.S8,[o.IX.stringEditor]:C.XJ,[o.k7.labelValue]:Ke.k,[o.k7.loadMore]:Ye.s,[o.k7.pagination]:je.h,[o.k7.reload]:We.W,[o.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,i;try{if(!this.initialised||!this.gridApi)return[];const r=null===(e=this.gridOptions)||void 0===e?void 0:e.rowSelection;if("single"===r||"multiple"===r)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===(i=this.gridApi)||void 0===i?void 0:i.getFocusedCell();if(e){const t=this.gridApi.getDisplayedRowAtIndex(e.rowIndex);if(null==t?void 0:t.data)return[t.data]}}return[]}catch(e){return Ze.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,i=e.endRow.rowIndex;for(let e=t;e<=i;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 Ze.v.warn("Grid Pro: Cannot update label-value status bar - grid API not available");const i=null===(a=(t=this.gridApi).getStatusPanel)||void 0===a?void 0:a.call(t,o.k7.labelValue);i&&"function"==typeof i.updateParams?i.updateParams(e):Ze.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()},Ue.BW))}removeConfigWidthsToAutosize(e){return e.map(e=>Object.assign(Object.assign({},e),{width:null}))}saveColumnState(){return(0,i.sH)(this,void 0,void 0,function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.gridApi.getColumnState();e=(0,et.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,i.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,i.sH)(this,void 0,void 0,function*(){var e;this.rehydrationAttempted=!0;const t=yield this.getSavedColumnState(),a=(0,et.n7)(t);a&&a.length>0&&(null===(e=this.gridApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))})}cacheFilterConfig(){var e;this.setFilterModel((null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0)}restoreCachedFilterConfig(){return(0,i.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 ze.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")}notifyDatasourceVisibleColumns(){var e,t,a,i;const r=this.gridProDatasource;if(!r)return;const o=(0,_e.C)(null===(t=null===(e=this.gridApi)||void 0===e?void 0:e.getAllDisplayedColumns)||void 0===t?void 0:t.call(e),null===(i=null===(a=this.gridApi)||void 0===a?void 0:a.getColumnDefs)||void 0===i?void 0:i.call(a));o.length&&r.setVisibleColumns(o)}set gridOptions(e){!this.applyingDatasourceGridOptions&&e&&(this.userProvidedGridOptions=Object.assign({},e));const t=()=>{!this.disposed&&this.isConnected&&(this.debouncedSaveColumnState(),this.debouncedColumnAutosize())},a=()=>{!this.disposed&&this.isConnected&&this.debouncedNotifyDatasourceVisibleColumns()};Array.from(this.attributes).forEach(e=>{const t=this.agPropertiesMap[e.name];t&&(this.agAttributes[t]=e.value)});const{columnDefs:r,components:s,defaultColDef:n,getRowId:d,onGridReady:l,onFilterChanged:g,onFirstDataRendered:c}=e,h=(0,i.Tt)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged","onFirstDataRendered"]),p=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},n),components:this.combineAllGridComponents(s),headerHeight:this.headerHeight,rowHeight:this.rowHeight,animateRows:!1,suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:e=>{var t,a,i;this.gridApi=e.api,this.gridEventsQueue.length&&this.gridEventsQueue.forEach(e=>{this.addGridEventListener(e)}),this.rowData&&this.gridApi.setGridOption("rowData",this.rowData),l&&l(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(tt,{event:e,gridId:this.id}),this.$emit(o.mr,{event:e,gridId:this.id}),this.notifyDatasourceVisibleColumns(),null===(i=this.gridProDatasource)||void 0===i||i.$emit(Ve.c.ready,{pagination:this.pagination}),this.restoreColumnState(),this.restoreCachedFilterConfig(),this.debouncedColumnAutosize()},onFirstDataRendered:e=>{this.notifyDatasourceVisibleColumns(),c&&c(e)},onColumnPinned:t,onColumnResized:t,onColumnMoved:t,onColumnVisible:()=>{t(),a()},onDisplayedColumnsChanged:()=>{t(),a()},onFilterChanged:e=>{!this.disposed&&this.isConnected&&(this.debouncedSaveFilterModel(),g&&g(e))},onGridSizeChanged:t,onSortChanged:t}),h);this.gridProDatasource?(p.columnDefs=r,p.getRowId=d,this.setupPaginationAndStatusBar(p),this.setLocalGridOptions(p)):this.mergeAllColumnDefsAndStates(r).then(e=>{!this.disposed&&this.isConnected&&(p.columnDefs=e,p.getRowId=d,this.setupPaginationAndStatusBar(p),this.setLocalGridOptions(p),this.initGrid())})}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),(0,Ue.Qg)(e,this.agAttributes))}clearLocalGridOptions(){this.agGridOptions=void 0}resetGridOptionsState(){this.userProvidedGridOptions=void 0,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,Pe.Dvw)(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0)})}mergeAllColumnDefsAndStates(e){return(0,i.sH)(this,arguments,void 0,function*(e,t=!1){var a;const i=e||[];i.forEach(e=>{if(this.headerCaseType&&e.field&&!e.headerName){const t=Te[this.headerCaseType];t?e.headerName=t(e.field):Ze.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 r=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 r=null===(a=null===(t=i.find(t=>t.field===e.field))||void 0===t?void 0:t.filterParams)||void 0===a?void 0:a.values;r&&(e.filterParams=Object.assign(Object.assign({},e.filterParams),{values:r}))}}e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=t=>{if(t.data[o.A7]===e.field)return{component:o.IX.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=Qe.y,e.tooltipValueGetter=t=>{const a=t.data[o.h1];if(a&&a.column===e.field)return a.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var t;return(null===(t=e.data[o.h1])||void 0===t?void 0:t.column)===e.colDef.field}}));const r=i.find(t=>e.field===t.field);return Object.assign(Object.assign({},r),e)}),s=r.map(e=>e.field),n=[...r,...this.onlyTemplateColDefs?[]:i.filter(e=>!s.includes(e.field))];if(this.gridProDatasource&&t){const e=yield this.getSavedColumnState();if((null==e?void 0:e.length)>0)return(0,et.yS)(n,e);if((null===(a=this.gridProDatasource.deferredColumnStates)||void 0===a?void 0:a.length)>0)return(0,et.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),i=this._pagination||!0===(null==t?void 0:t.pagination);if(a&&!i)this.panelExists(o.k7.rowCount,e)||e.push({statusPanel:o.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(o.k7.labelValue,e)||e.push({statusPanel:o.k7.labelValue,statusPanelParams:{label:"Max Rows",value:this.gridProDatasource.maxRows||De.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(o.k7.pagination,e)||e.push({statusPanel:o.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 i=[...(null===(t=e.statusBar)||void 0===t?void 0:t.statusPanels)||[]];this.addRowCountPanel(i,e),this.addMaxRowsPanel(i),this.addAggregationPanel(i),this.addDatasourcePanels(i),this._pagination&&(e.suppressPaginationPanel=!0,this.addPaginationPanel(i));const r=((null===(a=e.statusBar)||void 0===a?void 0:a.statusPanels)||[]).filter(e=>!this.panelExists(e.statusPanel,i));i.push(...r),e.statusBar={statusPanels:i}}}get observedAttributes(){const e=Ue.zI.map(e=>e.toLowerCase()),t=Ue.zI.map(e=>(0,Je.w)(e));return e.concat(t)}agAttributeChangedCallback(e,t,a){var i;if(t===a)return;const r=this.agPropertiesMap[e];r&&(this.agAttributes[r]=a,this.initialised&&(null===(i=this.gridApi)||void 0===i||i.setGridOption(r,a)))}globalEventListener(e,t){const a=e.toLowerCase(),i=new Event(a);i.agGridDetails=t,this.dispatchEvent(i);const r="on"+a;"function"==typeof this[r]&&this[r](i)}}(0,i.Cg)([n.observable],at.prototype,"gridApi",void 0),(0,i.Cg)([n.observable],at.prototype,"gridErrorItems",void 0),(0,i.Cg)([Xe.l],at.prototype,"statePersistence",void 0),(0,i.Cg)([(0,n.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],at.prototype,"autoCellRendererByType",void 0),(0,i.Cg)([(0,n.attr)({attribute:"only-template-col-defs",mode:"boolean"})],at.prototype,"onlyTemplateColDefs",void 0),(0,i.Cg)([(0,n.attr)({mode:"boolean",attribute:"grid-autosizing"})],at.prototype,"gridAutosizingEnabled",void 0),(0,i.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],at.prototype,"enableCellFlashing",void 0),(0,i.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-row-flashing"})],at.prototype,"enableRowFlashing",void 0),(0,i.Cg)([(0,n.attr)({attribute:"persist-column-state-key"})],at.prototype,"persistColumnStateKey",void 0),(0,i.Cg)([(0,n.attr)({attribute:"persist-filter-model-key"})],at.prototype,"persistFilterModelKey",void 0),(0,i.Cg)([(0,n.attr)({attribute:"header-case-type"})],at.prototype,"headerCaseType",void 0),(0,i.Cg)([n.observable],at.prototype,"rowData",void 0),(0,i.Cg)([n.attr],at.prototype,"columnComponentName",void 0),(0,i.Cg)([n.observable],at.prototype,"eventsAndCallbacks",void 0),(0,i.Cg)([n.attr],at.prototype,"headerHeight",void 0),(0,i.Cg)([n.attr],at.prototype,"rowHeight",void 0),(0,i.Cg)([n.observable],at.prototype,"classNames",void 0),(0,i.Cg)([n.observable],at.prototype,"agGrid",void 0),(0,i.Cg)([n.observable],at.prototype,"gridSlot",void 0),(0,i.Cg)([n.observable],at.prototype,"themeMode",void 0),(0,i.Cg)([n.observable],at.prototype,"gridComponents",void 0),(0,i.Cg)([(0,n.attr)({mode:"boolean"})],at.prototype,"pagination",void 0),(0,i.Cg)([(0,n.attr)({attribute:"pagination-page-size"})],at.prototype,"paginationPageSize",void 0),(0,i.Cg)([n.observable],at.prototype,"statusBarConfig",void 0),(0,i.Cg)([(0,n.attr)({mode:"boolean",attribute:"with-status-bar"})],at.prototype,"withStatusBar",void 0),(0,i.Cg)([n.observable],at.prototype,"customErrorHandlerTemplate",void 0),(0,i.Cg)([o.lz],at.prototype,"gridOptionsConfig",void 0),(0,i.Cg)([n.observable],at.prototype,"provider",void 0);class it extends at{getCachedTheme(){var e;return null!==(e=it.cachedTheme)&&void 0!==e||(it.cachedTheme=Pe.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%)"})),it.cachedTheme}set gridOptions(e){const t=Object.assign({},e);t.components=Object.assign({[o.IX.action]:A,[o.IX.actionsMenu]:D,[o.IX.boolean]:O,[o.IX.editable]:L,[o.IX.select]:z,[o.IX.selectEditor]:l,[o.IX.numberEditor]:h,[o.IX.multiselectEditor]:m,[o.IX.dateEditor]:f,[o.IX.stringEditor]:S,[o.IX.statusPill]:H,[o.IX.icon]:N},t.components),t.theme=this.getCachedTheme(),super.gridOptions=t}}(0,i.Cg)([n.observable],it.prototype,"provider",void 0);const rt=it.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(20166),ie=a(38370),oe=a(83912);const se="#cccccc",ne="#879ba6",de="#1f2126",le="#2e3339",ge="#2b2e34",ce="#000000",he="#181d1f",pe="#FFFFFF",ue="#babfc7",me="#2196f3",ve={foregroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(se)),headerForegroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ne)),backgroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(de)),borderSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(le)),rowHoverSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ge))},be={foregroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ce)),headerForegroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(he)),backgroundSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(pe)),borderSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(ue)),rowHoverSwatch:s.SwatchRGB.from((0,oe.parseColorHexRGB)(me))},{create:fe}=ie.DesignToken,ye={backgroundColor:fe("rapid-ag-background-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.backgroundSwatch:ve.backgroundSwatch),borderColor:fe("rapid-ag-border-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.borderSwatch:ve.borderSwatch),foregroundColor:fe("rapid-ag-foreground-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.foregroundSwatch:ve.foregroundSwatch),headerForegroundColor:fe("rapid-ag-header-foreground-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?be.headerForegroundSwatch:ve.headerForegroundSwatch),rowHoverColor:fe("rapid-ag-row-hover-color").withDefault(e=>s.baseLayerLuminance.getValueFor(e)===s.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},Se="ag-theme-genesis-rapid-dark",Ee="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=s.baseLayerLuminance.getValueFor(e.target);this.theme=t===s.StandardLuminance.DarkMode?Se:Ee},this.theme="light"===localStorage.getItem("luminance")?Ee:Se}connectedCallback(){var e;super.connectedCallback();const t=null!==(e=this.provider)&&void 0!==e?e:this;this.luminanceSubscription=s.baseLayerLuminance.subscribe(this.luminanceObserver,t)}disconnectedCallback(){var e;const t=null!==(e=this.provider)&&void 0!==e?e:this;s.baseLayerLuminance.unsubscribe(this.luminanceObserver,t),this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),super.disconnectedCallback()}themeChanged(e,t){(e||t===Se)&&super.themeChanged(e,t)}set gridOptions(e){var t,a,r,i;const s=Object.assign({},e);s.components=Object.assign({[o.IX.action]:R,[o.IX.actionsMenu]:D,[o.IX.boolean]:O,[o.IX.editable]:P,[o.IX.icon]:N,[o.IX.select]:_,[o.IX.selectEditor]:l,[o.IX.numberEditor]:h,[o.IX.multiselectEditor]:m,[o.IX.dateEditor]:f,[o.IX.stringEditor]:S,[o.IX.statusPill]:H},e.components);(this.theme===j||this.theme===q||this.theme===J)&&(this.headerHeight=null!==(a=null!==(t=s.headerHeight)&&void 0!==t?t:Ce())&&void 0!==a?a:32,this.rowHeight=null!==(i=null!==(r=s.rowHeight)&&void 0!==r?r:Ce())&&void 0!==i?i:32),super.gridOptions=s}}(0,r.Cg)([n.observable],we.prototype,"provider",void 0);const Re=i.LU,Ae=i.Z$,ke=we.compose(Object.assign({baseName:"grid-pro",template:ae,styles:ee,shadowOptions:Re},Ae));var De=a(6884),xe=a(20633),Ge=a(21409),Oe=a(17190),Te=a(48046),Le=a(88047),Pe=a(62051),Ie=a.n(Pe),$e=a(56943),Ne=a(64315),Fe=a(14987),Me=a(63296),_e=a(24638),ze=a(18070),Be=a(26062),He=a(90509),Ve=a(79270),Ue=a(32610),Xe=a(53397),Ke=a(52540),Ye=a(49104),je=a(88863),We=a(71964),qe=a(73203),Qe=a(50103),Je=a(1510),Ze=a(23201);(0,xe.N)(Be.D,Me.L,_e.X,$e.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,Te.VZy,Te.$I9,Te.dGu,Te.AJG,Te.c5B,Te.BG]);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=Ie()(this.saveColumnState.bind(this),400),this.debouncedSaveFilterModel=Ie()(this.cacheFilterConfig.bind(this),400),this.debouncedNotifyDatasourceVisibleColumns=Ie()(this.notifyDatasourceVisibleColumns.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.statusBarConfig=o.o2,this.withStatusBar=!1,this.applyingDatasourceGridOptions=!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=s.baseLayerLuminance.getValueFor(e.target);this.themeMode=t===s.StandardLuminance.DarkMode?"dark":"light"},this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.agAttributes={},this.agPropertiesMap=Ue.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],[Ue.yY.datasourceErrorClose,e],[ze.L.error,this.handleBaseDatasourceError.bind(this)],[ze.L.connected,e]),this.datasourceEventHandlers=[[Ve.c.initialize,this.handleInitialize.bind(this)],[Ve.c.dataLoaded,this.handleDataLoaded.bind(this)],[Ve.c.dataChanged,this.handleDataChanged.bind(this)],[Ve.c.schemaUpdated,this.handleSchemaUpdated.bind(this)],[Ve.c.dataCleared,this.handleDataCleared.bind(this)],[Ve.c.loadingStarted,this.handleLoadingStarted.bind(this)],[Ve.c.loadingFinished,this.handleLoadingFinished.bind(this)],[Ve.c.noDataAvailable,this.handleNoDataAvailable.bind(this)],[Ve.c.filtersRestored,this.handleFiltersRestored.bind(this)],[Ve.c.moreDataAvailable,this.handleMoreDataAvailable.bind(this)],[Ve.c.error,this.handleDatasourceError.bind(this)],[Ve.c.destroy,this.handleDatasourceDestroy.bind(this)],[Ve.c.cacheFilterConfig,this.cacheFilterConfig.bind(this)],[Ve.c.refreshServerSide,this.handleRefreshServerSide.bind(this)],[Ve.c.setServerSideDatasource,this.handleSetServerSideDatasource.bind(this)],[Ve.c.addGridCssClass,this.handleAddGridCssClass.bind(this)],[Ve.c.removeGridCssClass,this.handleRemoveGridCssClass.bind(this)],[Ve.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:Ue.Ie.datasource};this.gridErrorItems=[...this.gridErrorItems,{detail:t.detail,type:t.type}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter(e=>e.type!==Ue.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=s.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)}),Ue.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))}disconnectedCallback(){var e;this.disposed=!0,this.debouncedSaveColumnState.cancel(),this.debouncedSaveFilterModel.cancel();const t=null!==(e=this.provider)&&void 0!==e?e:this;s.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)}),a?this.performDisconnectCleanup():queueMicrotask(()=>{this.isConnected||this.performDisconnectCleanup()})}performDisconnectCleanup(){this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.initialised=!1,this.resetGridOptionsState(),this.destroyGridInstance(),this.toggleDatasourceEventListeners(!1),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.applyingDatasourceGridOptions=!0;try{this.gridOptions=Object.assign(Object.assign(Object.assign({},this.userProvidedGridOptions),t),a?{columnDefs:this.gridApi.getColumnDefs()}:{}),this.initGrid()}finally{this.applyingDatasourceGridOptions=!1}}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)return;const a=this.gridApi.getColumnDefs();if(a&&a.length>0)return;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")});const r=yield this.mergeAllColumnDefsAndStates(t,!0);this.gridApi.setGridOption("columnDefs",r),this.restoreCachedFilterConfig()})}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:s,sourceRef:n}=e.detail;if(!this.gridApi)return;const d=null===(a=(t=this.gridApi).getStatusPanel)||void 0===a?void 0:a.call(t,o.k7.loadMore);d&&(null===(i=(r=d).updateParams)||void 0===i||i.call(r,{moreRows:s,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){var t,a;const{transaction:r,async:i,callback:o}=e.detail;if(this.gridApi)if(i)this.gridApi.applyServerSideTransactionAsync(r,e=>{var t,a;this.flashAddedCells([...null!==(t=null==e?void 0:e.add)&&void 0!==t?t:[],...null!==(a=null==e?void 0:e.update)&&void 0!==a?a:[]]),null==o||o(e)});else{const e=this.gridApi.applyServerSideTransaction(r);this.flashAddedCells([...null!==(t=null==e?void 0:e.add)&&void 0!==t?t:[],...null!==(a=null==e?void 0:e.update)&&void 0!==a?a:[]]),o&&o(e)}}combineAllGridComponents(e){const t={[o.IX.action]:w.eA,[o.IX.actionsMenu]:k.cN,[o.IX.boolean]:G._Y,[o.IX.editable]:L.YM,[o.IX.icon]:$.Jt,[o.IX.statusPill]:B.N7,[o.IX.select]:M.gs,[o.IX.selectEditor]:d._Q,[o.IX.numberEditor]:c.Z0,[o.IX.multiselectEditor]:u.pZ,[o.IX.dateEditor]:b.S8,[o.IX.stringEditor]:C.XJ,[o.k7.labelValue]:Ke.k,[o.k7.loadMore]:Ye.s,[o.k7.reload]:je.W,[o.k7.rowCount]:We.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,o.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()},Ue.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=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(),a=(0,Ze.n7)(t);a&&a.length>0&&(null===(e=this.gridApi)||void 0===e||e.applyColumnState({state:a,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 _e.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")}notifyDatasourceVisibleColumns(){var e,t,a,r;const i=this.gridProDatasource;if(!i)return;const o=(0,Fe.C)(null===(t=null===(e=this.gridApi)||void 0===e?void 0:e.getAllDisplayedColumns)||void 0===t?void 0:t.call(e),null===(r=null===(a=this.gridApi)||void 0===a?void 0:a.getColumnDefs)||void 0===r?void 0:r.call(a));o.length&&i.setVisibleColumns(o)}set gridOptions(e){!this.applyingDatasourceGridOptions&&e&&(this.userProvidedGridOptions=Object.assign({},e));const t=()=>{!this.disposed&&this.isConnected&&(this.debouncedSaveColumnState(),this.debouncedColumnAutosize())},a=()=>{!this.disposed&&this.isConnected&&this.debouncedNotifyDatasourceVisibleColumns()};Array.from(this.attributes).forEach(e=>{const t=this.agPropertiesMap[e.name];t&&(this.agAttributes[t]=e.value)});const{columnDefs:i,components:s,defaultColDef:n,getRowId:d,onGridReady:l,onFilterChanged:g,onFirstDataRendered:c}=e,h=(0,r.Tt)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged","onFirstDataRendered"]),p=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},n),components:this.combineAllGridComponents(s),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),l&&l(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(o.mr,{event:e,gridId:this.id}),this.notifyDatasourceVisibleColumns(),null===(r=this.gridProDatasource)||void 0===r||r.$emit(Ve.c.ready),this.restoreColumnState(),this.restoreCachedFilterConfig(),this.debouncedColumnAutosize()},onFirstDataRendered:e=>{this.notifyDatasourceVisibleColumns(),c&&c(e)},onColumnPinned:t,onColumnResized:t,onColumnMoved:t,onColumnVisible:()=>{t(),a()},onDisplayedColumnsChanged:()=>{t(),a()},onFilterChanged:e=>{!this.disposed&&this.isConnected&&(this.debouncedSaveFilterModel(),g&&g(e))},onGridSizeChanged:t,onSortChanged:t}),h);this.gridProDatasource?(p.columnDefs=i,p.getRowId=d,this.setupStatusBar(p),this.setLocalGridOptions(p)):this.mergeAllColumnDefsAndStates(i).then(e=>{!this.disposed&&this.isConnected&&(p.columnDefs=e,p.getRowId=d,this.setupStatusBar(p),this.setLocalGridOptions(p),this.initGrid())})}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),(0,Ue.Qg)(e,this.agAttributes))}clearLocalGridOptions(){this.agGridOptions=void 0}resetGridOptionsState(){this.userProvidedGridOptions=void 0,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[o.A7]===e.field)return{component:o.IX.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=qe.y,e.tooltipValueGetter=t=>{const a=t.data[o.h1];if(a&&a.column===e.field)return a.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var t;return(null===(t=e.data[o.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)}),s=i.map(e=>e.field),n=[...i,...this.onlyTemplateColDefs?[]:r.filter(e=>!s.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);if(a)this.panelExists(o.k7.rowCount,e)||e.push({statusPanel:o.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(o.k7.labelValue,e)||e.push({statusPanel:o.k7.labelValue,statusPanelParams:{label:"Max Rows",value:this.gridProDatasource.maxRows||De.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)}}setupStatusBar(e){var t,a;if(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);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=Ue.zI.map(e=>e.toLowerCase()),t=Ue.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)([Xe.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)([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)([o.lz],tt.prototype,"gridOptionsConfig",void 0),(0,r.Cg)([n.observable],tt.prototype,"provider",void 0);class at extends tt{getCachedTheme(){var e;return null!==(e=at.cachedTheme)&&void 0!==e||(at.cachedTheme=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%)"})),at.cachedTheme}set gridOptions(e){const t=Object.assign({},e);t.components=Object.assign({[o.IX.action]:R,[o.IX.actionsMenu]:D,[o.IX.boolean]:O,[o.IX.editable]:P,[o.IX.select]:_,[o.IX.selectEditor]:l,[o.IX.numberEditor]:h,[o.IX.multiselectEditor]:m,[o.IX.dateEditor]:f,[o.IX.stringEditor]:S,[o.IX.statusPill]:H,[o.IX.icon]:N},t.components),t.theme=this.getCachedTheme(),super.gridOptions=t}}(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%;
@@ -776,7 +776,7 @@
776
776
  overflow: unset;
777
777
  background: var(--ag-scrollbar-background, var(--neutral-layer-4));
778
778
  }
779
- `,shadowOptions:Ae},Re));var ot=a(96598);class st extends ot.t{}const nt=st.compose({baseName:"grid-text-renderer",styles:ot.JN,template:(0,ot.d6)("rapid")}),dt={rapidIconRenderer:_,rapidAgEditableRenderer:I,rapidAgActionRenderer:R,rapidAgActionsMenuRenderer:x,rapidAgBooleanRenderer:P,rapidAgTextRenderer:nt,rapidAgSelectRenderer:M,rapidAgDateEditor:y,rapidAgMultiselectEditor:v,rapidAgSelectEditor:g,rapidAgNumberEditor:p,rapidAgStringEditor:E,rapidStatusPillRenderer:V,rapidGridPro:ke,register(e,...t){if(e)for(const a in this)"register"!==a&&this[a]().register(e,...t)}};var lt=a(57963),gt=a(58749),ct=a(95553),ht=a(14609),pt=a(86636);const ut={fromView(e){if(null==e?void 0:e.trim())return e.includes(",")?e.split(",").map(e=>e.trim()):e.trim()},toView:e=>"string"==typeof e?e:Array.isArray(e)?e.join(","):""},mt="--dropdown-width",vt="options",bt="dnone",ft=n.css`
779
+ `,shadowOptions:Re},Ae));var it=a(96598);class ot extends it.t{}const st=ot.compose({baseName:"grid-text-renderer",styles:it.JN,template:(0,it.d6)("rapid")}),nt={rapidIconRenderer:F,rapidAgEditableRenderer:I,rapidAgActionRenderer:A,rapidAgActionsMenuRenderer:x,rapidAgBooleanRenderer:T,rapidAgTextRenderer:st,rapidAgSelectRenderer:z,rapidAgDateEditor:y,rapidAgMultiselectEditor:v,rapidAgSelectEditor:g,rapidAgNumberEditor:p,rapidAgStringEditor:E,rapidStatusPillRenderer:V,rapidGridPro:ke,register(e,...t){if(e)for(const a in this)"register"!==a&&this[a]().register(e,...t)}};var dt=a(57963),lt=a(58749),gt=a(95553),ct=a(14609),ht=a(86636);const pt={fromView(e){if(null==e?void 0:e.trim())return e.includes(",")?e.split(",").map(e=>e.trim()):e.trim()},toView:e=>"string"==typeof e?e:Array.isArray(e)?e.join(","):""},ut="--dropdown-width",mt="options",vt="dnone",bt=n.css`
780
780
  label {
781
781
  color: var(--neutral-foreground-hint, rgb(135 155 166));
782
782
  font-style: normal;
@@ -787,7 +787,7 @@
787
787
  line-height: var(--type-ramp-base-line-height);
788
788
  }
789
789
 
790
- .${bt} {
790
+ .${vt} {
791
791
  display: none !important;
792
792
  }
793
793
 
@@ -795,7 +795,7 @@
795
795
  position: relative;
796
796
  width: inherit;
797
797
  min-width: 250px;
798
- ${mt}: 350px;
798
+ ${ut}: 350px;
799
799
  }
800
800
 
801
801
  .control {
@@ -878,9 +878,9 @@
878
878
  opacity: var(--disabled-opacity);
879
879
  }
880
880
 
881
- .${vt} {
881
+ .${mt} {
882
882
  min-width: 100%;
883
- width: var(${mt});
883
+ width: var(${ut});
884
884
  display: flex;
885
885
  flex-direction: column;
886
886
  position: absolute;
@@ -912,11 +912,11 @@
912
912
  .visible {
913
913
  visibility: visible;
914
914
  }
915
- `;var yt=a(40729),Ct=a(31679);const St=(e="foundation")=>n.html`
915
+ `;var ft=a(40729),yt=a(31679);const Ct=(e="foundation")=>n.html`
916
916
  <label
917
917
  part="label"
918
918
  for="control"
919
- class="label ${e=>{var t,a;return null!==(a=(0,Ct.x)([bt,!(null!==(t=e.hasSlottedContent)&&void 0!==t&&t)]))&&void 0!==a?a:""}}"
919
+ class="label ${e=>{var t,a;return null!==(a=(0,yt.x)([vt,!(null!==(t=e.hasSlottedContent)&&void 0!==t&&t)]))&&void 0!==a?a:""}}"
920
920
  >
921
921
  <slot
922
922
  ${(0,n.slotted)({property:"defaultSlottedNodes"})}
@@ -927,12 +927,12 @@
927
927
  <${e}-icon
928
928
  id="arrow-icon"
929
929
  name="chevron-down"
930
- class="${e=>(0,Ct.x)(["flipped",e.open],["disabled-icon",e.disabled])}"
930
+ class="${e=>(0,yt.x)(["flipped",e.open],["disabled-icon",e.disabled])}"
931
931
  @click=${e=>!e.disabled&&e.toggle()}
932
932
  ></${e}-icon>
933
933
  <${e}-icon
934
934
  name="xmark"
935
- class="cross-icon ${e=>(0,Ct.x)(["visible",!!e.value],["disabled-icon",e.disabled])}"
935
+ class="cross-icon ${e=>(0,yt.x)(["visible",!!e.value],["disabled-icon",e.disabled])}"
936
936
  @click=${e=>!e.disabled&&(e.value=void 0)}
937
937
  ></${e}-icon>
938
938
  <input
@@ -947,13 +947,13 @@
947
947
  </div>
948
948
  <div
949
949
  ${(0,n.ref)("optionsElement")}
950
- class="${e=>{var t,a,i,r;return(0,Ct.x)(vt,["visible",e.open],["dropdown-above",null!==(a=null===(t=e.dropdownPlacement)||void 0===t?void 0:t.startsWith("top"))&&void 0!==a&&a],["dropdown-left",null!==(r=null===(i=e.dropdownPlacement)||void 0===i?void 0:i.endsWith("left"))&&void 0!==r&&r])}}"
950
+ class="${e=>{var t,a,r,i;return(0,yt.x)(mt,["visible",e.open],["dropdown-above",null!==(a=null===(t=e.dropdownPlacement)||void 0===t?void 0:t.startsWith("top"))&&void 0!==a&&a],["dropdown-left",null!==(i=null===(r=e.dropdownPlacement)||void 0===r?void 0:r.endsWith("left"))&&void 0!==i&&i])}}"
951
951
  >
952
952
  <${e}-text-field
953
953
  id="filter-search"
954
954
  part="filter-search"
955
955
  placeholder="Search..."
956
- :value=${(0,yt.O)(e=>e.filterSearch,"string","input")}
956
+ :value=${(0,ft.O)(e=>e.filterSearch,"string","input")}
957
957
  ?hidden=${e=>!e.hasSearchKey}
958
958
  @change=${(e,t)=>e.changeHandler(t.event)}
959
959
  ></${e}-text-field>
@@ -961,9 +961,9 @@
961
961
  <${e}-grid-pro
962
962
  ${(0,n.ref)("grid")}
963
963
  only-template-col-defs
964
- >${(0,_e.T)(e=>e.columnDefinitions)}</${e}-grid-pro>
964
+ >${(0,Fe.T)(e=>e.columnDefinitions)}</${e}-grid-pro>
965
965
  </div>
966
966
  </div>
967
967
  </div>
968
- `,Et=St(),wt={menuTabs:["filterMenuTab","generalMenuTab","columnsMenuTab"]},At=(e,t)=>!e.composedPath().includes(t);function Rt(e,t,a,r){return(0,i.sH)(this,void 0,void 0,function*(){var i;try{const o=function(e,t){const a=(new gt.K).withField(e).withValue(null!=t?t:"").withSerialiser(ct.n.EQ).withGroup("default").build();return a.serialiser(a)}(a,r),s=yield e.request(t,{DETAILS:{CRITERIA_MATCH:o}});return 1===(null===(i=s.REPLY)||void 0===i?void 0:i.length)?s.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)(re.FoundationElement)){constructor(){super(...arguments),this.requestSupportsAdvancedSearch=!1,this.defaultSlottedNodes=[],this.getAndSetRowsDebounce=Ie()(()=>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,i.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={},i=this.request?{REQUEST:Object.assign({},this.request)}:{},r=Array.isArray(this.searchKey)&&1===this.searchKey.length?this.searchKey[0]:this.searchKey;let o;if(r&&this.filterSearch)if(this.requestSupportsAdvancedSearch){const e=(Array.isArray(r)?r:[r]).map(e=>{var t;return(new gt.K).withField(e).withValue(null!==(t=this.filterSearch)&&void 0!==t?t:"").withSerialiser(ct.n.containsIgnoreCase).withGroup("default").build()}),t=new ht.b;t.Or(e,{join:pt.r.Or()}),o=t.build()}else{if(Array.isArray(r))throw Error("MulticolumnDropdown: Unable to search multiple keys via request; if the request is a GPAL ReqRep, set requestSupportsAdvancedSearch to true");i.REQUEST=Object.assign(Object.assign({},i.REQUEST),{[r]:`*${this.filterSearch}*`})}const s=null===(t=this.baseCriteria)||void 0===t?void 0:t.trim();s&&o?o=`(${o}) && (${s})`:s&&(o=s),o&&(i.DETAILS={CRITERIA_MATCH:o});try{const e=yield this.connect.request(this.resourceName,i);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(mt,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,i.Cg)([lt.dm],kt.prototype,"_connectDI",void 0),(0,i.Cg)([(0,n.attr)({mode:"boolean"})],kt.prototype,"disabled",void 0),(0,i.Cg)([(0,n.attr)({attribute:"resource-name"})],kt.prototype,"resourceName",void 0),(0,i.Cg)([(0,n.attr)({attribute:"search-key",converter:ut})],kt.prototype,"searchKey",void 0),(0,i.Cg)([(0,n.attr)({attribute:"advanced-search-req",mode:"boolean"})],kt.prototype,"requestSupportsAdvancedSearch",void 0),(0,i.Cg)([(0,n.attr)({attribute:"value-key"})],kt.prototype,"valueKey",void 0),(0,i.Cg)([(0,n.attr)({attribute:"label-key"})],kt.prototype,"labelKey",void 0),(0,i.Cg)([(0,n.attr)({attribute:"dropdown-placement"})],kt.prototype,"dropdownPlacement",void 0),(0,i.Cg)([n.attr],kt.prototype,"dropdownWidth",void 0),(0,i.Cg)([n.observable],kt.prototype,"request",void 0),(0,i.Cg)([n.observable],kt.prototype,"columnDefinitions",void 0),(0,i.Cg)([n.observable],kt.prototype,"baseCriteria",void 0),(0,i.Cg)([n.observable],kt.prototype,"defaultSlottedNodes",void 0),(0,i.Cg)([n.observable],kt.prototype,"filterSearch",void 0),(0,i.Cg)([n.observable],kt.prototype,"open",void 0),(0,i.Cg)([n.observable],kt.prototype,"selectedRow",void 0),(0,i.Cg)([n.volatile],kt.prototype,"displayValue",null),(0,i.Cg)([n.volatile],kt.prototype,"hasSearchKey",null),(0,i.Cg)([n.volatile],kt.prototype,"hasSlottedContent",null);const Dt=kt.compose({baseName:"multicolumn-dropdown",template:Et,styles:ft}),xt=kt.compose({baseName:"multicolumn-dropdown",template:St("rapid"),styles:ft});var Gt=a(3299),Ot=a(70349),Pt=a(91327),Tt=a(35610),Lt=a(30335),It=a(49568);const $t={foundationIconRenderer:$.qN,foundationGridProActionRenderer:w._X,foundationGridProActionsMenuRenderer:k.su,foundationAgBooleanRenderer:G.fg,foundationAgTextRenderer:ot.G4,foundationAgTextFieldRenderer:Ot.wG,foundationAgEditableRenderer:T.r8,foundationAgSelectRenderer:F.bE,foundationSelectEditor:d.RU,foundationNumberEditor:c.CY,foundationDateEditor:b.vr,foundationMultiselectEditor:u.UH,foundationStringEditor:C.cb,foundationMulticolumnDropdown:Dt,foundationStatusPillRenderer:B.a1,StatusPillRenderer:B.N7,foundationGridPro:r.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}=)?$/,Ft=e=>{const t=e.split(":");let a,i;2===t.length?[a,i]=t:i=e;const r=(e=>{if(_t.test(e)){const t=atob(e),a=new Uint8Array(t.length);return[...t].forEach((e,i)=>{a[i]=t.charCodeAt(i)}),a.buffer}return e})(i);if("str"===a){return new TextDecoder("utf-8").decode(r)}return r},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}`:""},Mt={account:"genesis",namespace:"default",authKey:"kv-default",authEmail:void 0},Bt=re.DI.createInterface();var Ht,Vt;!function(e){e.REQ_KEY_VALUE_LIST="REQ_KEY_VALUE_LIST",e.REQ_KEY_VALUE_READ="REQ_KEY_VALUE_READ"}(Ht||(Ht={})),function(e){e.EVENT_KEY_VALUE_PUT="EVENT_KEY_VALUE_PUT",e.EVENT_KEY_VALUE_DELETE="EVENT_KEY_VALUE_DELETE"}(Vt||(Vt={}));let Ut=class{constructor(e,t,a=Mt){this.connect=e,this.user=t,this.kvStorageConfig=a}delete(e){return(0,i.sH)(this,void 0,void 0,function*(){const t={DETAILS:{KEYS:e}},a=yield this.connect.commitEvent(Vt.EVENT_KEY_VALUE_DELETE,t);return!(!a||"EVENT_ACK"!==a.MESSAGE_TYPE)||{ERROR:a.ERROR,WARNING:a.WARNING}})}get(e){return(0,i.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}},i=yield this.connect.request(Ht.REQ_KEY_VALUE_READ,a);if(i&&i.REPLY&&i.REPLY.length>0){const t=i.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=Ft(e);return"string"==typeof t&&t.startsWith("str:")&&(t=Ft(t)),"string"==typeof t&&t.startsWith("bin:")&&(t=Ft(t)),t}list(){return(0,i.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(Ht.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,i.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(Vt.EVENT_KEY_VALUE_PUT,t);return!(!a||"EVENT_ACK"!==a.MESSAGE_TYPE)||{ERROR:a.ERROR,WARNING:a.WARNING}})}};Ut=(0,i.Cg)([(0,i.Qj)(0,lt.dm),(0,i.Qj)(1,Nt.KJ),(0,i.Qj)(2,(0,re.optional)(Bt))],Ut);const Xt=re.DI.createInterface(e=>e.singleton(Ut));var Kt=a(98316);class Yt{getColumnState(e){return(0,i.sH)(this,void 0,void 0,function*(){var t;yield this.migrateLocalStorageToKVStorage(e);const a=yield this.kvStorage.get(e),i=a?null===(t=a.kv)||void 0===t?void 0:t.value:void 0;return i?JSON.parse(i):[]})}saveColumnState(e,t){return(0,i.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}deleteColumnState(e){return(0,i.sH)(this,void 0,void 0,function*(){this.kvStorage.delete([e])})}migrateLocalStorageToKVStorage(e){return(0,i.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 i=this.session.getLocalStorageItem("gridOptions"),r=i?JSON.parse(i)[e]:void 0;r&&(Ze.v.debug(`Columns state migration for key: ${e} from LocalStorage to KV Storage`),this.kvStorage.put([{key:e,value:r}]))})}getFilterModel(e){return(0,i.sH)(this,void 0,void 0,function*(){var t;const a=yield this.kvStorage.get(e),i=a?null===(t=a.kv)||void 0===t?void 0:t.value:void 0;return i?JSON.parse(i):{}})}saveFilterModel(e,t){return(0,i.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}}(0,i.Cg)([Xt],Yt.prototype,"kvStorage",void 0),(0,i.Cg)([Kt.N],Yt.prototype,"session",void 0);var jt=a(11749);const Wt=s.SwatchRGB.from((0,oe.parseColorHexRGB)("#4c4c4c")),qt=s.SwatchRGB.from((0,oe.parseColorHexRGB)("#c01754")),{create:Qt}=re.DesignToken,Jt={foregroundColor:Qt("fui-ag-foreground-color").withDefault(qt),backgroundColor:Qt("fui-ag-background-color").withDefault(Wt)};var Zt=a(68858),ea=a(49874);const ta={processCellCallback:e=>["+","=","-","@","\t","\n"].some(t=>String(e.value).startsWith(t))?`'${e.value}`:e.value}}}]);
969
- //# sourceMappingURL=628.bff2c98df2a002e2c46e2119ee551aa0.js.map
968
+ `,St=Ct(),Et={menuTabs:["filterMenuTab","generalMenuTab","columnsMenuTab"]},wt=(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 o=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),s=yield e.request(t,{DETAILS:{CRITERIA_MATCH:o}});return 1===(null===(r=s.REPLY)||void 0===r?void 0:r.length)?s.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 At extends((0,Ge.S)(ie.FoundationElement)){constructor(){super(...arguments),this.requestSupportsAdvancedSearch=!1,this.defaultSlottedNodes=[],this.getAndSetRowsDebounce=Ie()(()=>this.getAndSetRows(),300),this.handleClickOutside=e=>{wt(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:Et,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 o;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 ct.b;t.Or(e,{join:ht.r.Or()}),o=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 s=null===(t=this.baseCriteria)||void 0===t?void 0:t.trim();s&&o?o=`(${o}) && (${s})`:s&&(o=s),o&&(r.DETAILS={CRITERIA_MATCH:o});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],At.prototype,"_connectDI",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean"})],At.prototype,"disabled",void 0),(0,r.Cg)([(0,n.attr)({attribute:"resource-name"})],At.prototype,"resourceName",void 0),(0,r.Cg)([(0,n.attr)({attribute:"search-key",converter:pt})],At.prototype,"searchKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"advanced-search-req",mode:"boolean"})],At.prototype,"requestSupportsAdvancedSearch",void 0),(0,r.Cg)([(0,n.attr)({attribute:"value-key"})],At.prototype,"valueKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"label-key"})],At.prototype,"labelKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"dropdown-placement"})],At.prototype,"dropdownPlacement",void 0),(0,r.Cg)([n.attr],At.prototype,"dropdownWidth",void 0),(0,r.Cg)([n.observable],At.prototype,"request",void 0),(0,r.Cg)([n.observable],At.prototype,"columnDefinitions",void 0),(0,r.Cg)([n.observable],At.prototype,"baseCriteria",void 0),(0,r.Cg)([n.observable],At.prototype,"defaultSlottedNodes",void 0),(0,r.Cg)([n.observable],At.prototype,"filterSearch",void 0),(0,r.Cg)([n.observable],At.prototype,"open",void 0),(0,r.Cg)([n.observable],At.prototype,"selectedRow",void 0),(0,r.Cg)([n.volatile],At.prototype,"displayValue",null),(0,r.Cg)([n.volatile],At.prototype,"hasSearchKey",null),(0,r.Cg)([n.volatile],At.prototype,"hasSlottedContent",null);const kt=At.compose({baseName:"multicolumn-dropdown",template:St,styles:bt}),Dt=At.compose({baseName:"multicolumn-dropdown",template:Ct("rapid"),styles:bt});var xt=a(3299),Gt=a(70349),Ot=a(91327),Tt=a(35610),Lt=a(30335),Pt=a(49568);const It={foundationIconRenderer:$.qN,foundationGridProActionRenderer:w._X,foundationGridProActionsMenuRenderer:k.su,foundationAgBooleanRenderer:G.fg,foundationAgTextRenderer:it.G4,foundationAgTextFieldRenderer:Gt.wG,foundationAgEditableRenderer:L.r8,foundationAgSelectRenderer:M.bE,foundationSelectEditor:d.RU,foundationNumberEditor:c.CY,foundationDateEditor:b.vr,foundationMultiselectEditor:u.UH,foundationStringEditor:C.cb,foundationMulticolumnDropdown:kt,foundationStatusPillRenderer:B.a1,StatusPillRenderer:B.N7,foundationGridPro:i.RB,register(e,...t){if(e)for(const a in this)"register"!==a&&this[a]().register(e,...t)}};var $t=a(92277);const Nt=/^(?:[A-Za-z0-9+/]{4})*?(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Ft=e=>{const t=e.split(":");let a,r;2===t.length?[a,r]=t:r=e;const i=(e=>{if(Nt.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},Mt=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}`:""},_t={account:"genesis",namespace:"default",authKey:"kv-default",authEmail:void 0},zt=ie.DI.createInterface();var Bt,Ht;!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"}(Ht||(Ht={}));let Vt=class{constructor(e,t,a=_t){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(Ht.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=Ft(e);return"string"==typeof t&&t.startsWith("str:")&&(t=Ft(t)),"string"==typeof t&&t.startsWith("bin:")&&(t=Ft(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?Mt(e.value):e.value}))}},a=yield this.connect.commitEvent(Ht.EVENT_KEY_VALUE_PUT,t);return!(!a||"EVENT_ACK"!==a.MESSAGE_TYPE)||{ERROR:a.ERROR,WARNING:a.WARNING}})}};Vt=(0,r.Cg)([(0,r.Qj)(0,dt.dm),(0,r.Qj)(1,$t.KJ),(0,r.Qj)(2,(0,ie.optional)(zt))],Vt);const Ut=ie.DI.createInterface(e=>e.singleton(Vt));var Xt=a(98316);class Kt{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)([Ut],Kt.prototype,"kvStorage",void 0),(0,r.Cg)([Xt.N],Kt.prototype,"session",void 0);var Yt=a(11749);const jt=s.SwatchRGB.from((0,oe.parseColorHexRGB)("#4c4c4c")),Wt=s.SwatchRGB.from((0,oe.parseColorHexRGB)("#c01754")),{create:qt}=ie.DesignToken,Qt={foregroundColor:qt("fui-ag-foreground-color").withDefault(Wt),backgroundColor:qt("fui-ag-background-color").withDefault(jt)};var Jt=a(68858),Zt=a(49874);const ea={processCellCallback:e=>["+","=","-","@","\t","\n"].some(t=>String(e.value).startsWith(t))?`'${e.value}`:e.value}}}]);
969
+ //# sourceMappingURL=628.238a499a0a48d77cf8aec29bfbe27eb5.js.map