@genesislcap/design-system-configurator 15.30.0 → 15.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{326.326.907adf143069854da5fa.js → 11.11.5c40c4d843db071141f4.js} +71 -71
- package/dist/11.d2c3136979fd1ff6a6ae817575abccd8.js.map +1 -0
- package/dist/{445.445.9c66df79c519fa1fa363.js → 387.387.a488f87cce11f32d92bb.js} +85 -11
- package/dist/387.59261dcf1a288c8c99ec8ed9b93fe168.js.map +1 -0
- package/dist/{588.588.85f1658618ca3f5c3c1b.js → 445.445.c8e3c7ef0c4d13438003.js} +3 -3
- package/dist/{588.f1b74829e297a3ecfc5e695e8194c171.js.map → 445.ab373087522fc0c62da0ea72ff58d201.js.map} +1 -1
- package/dist/47.47.5bdf8ddf985fb53edd74.js +1093 -0
- package/dist/47.c5e5e6beb5c609952d2862513cbe55fe.js.map +1 -0
- package/dist/{826.826.279cec1412a2a3d19294.js → 826.826.33783a134ae3bf2ef634.js} +2 -2
- package/dist/designSystemConfigurator.7dddd25162dcc4984c5d56a81242c6ea.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.cb1bed9bc83fbf18d1179147eb103a34.js.map +1 -0
- package/dist/main.e029066c32ec19d38cca.js +2 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/326.32a50750d5bbd77af960da1f670b60e7.js.map +0 -1
- package/dist/445.89ec4f122116ddbba4de80ee39b92863.js.map +0 -1
- package/dist/625.42381f2af39debff45aa0e4b863e605b.js.map +0 -1
- package/dist/625.625.3590b415be6d93af448a.js +0 -1169
- package/dist/designSystemConfigurator.3a8a7dba3d31c0e4d858b683a860da9c.js.map +0 -1
- package/dist/main.9fab2e699769561f832d.js +0 -2
- package/dist/main.cd84d1738ff59d8c83773c118f951fb1.js.map +0 -1
- /package/dist/{588.588.85f1658618ca3f5c3c1b.js.LICENSE.txt → 445.445.c8e3c7ef0c4d13438003.js.LICENSE.txt} +0 -0
- /package/dist/{826.826.279cec1412a2a3d19294.js.LICENSE.txt → 826.826.33783a134ae3bf2ef634.js.LICENSE.txt} +0 -0
|
@@ -1,1169 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[625],{41492(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(r,a,s){var o=a.prototype;s.utc=function(e){return new a({date:e,utc:!0,args:arguments})},o.utc=function(t){var i=s(this.toDate(),{locale:this.$L,utc:!0});return t?i.add(this.utcOffset(),e):i},o.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var n=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),n.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var d=o.utcOffset;o.utcOffset=function(r,a){var s=this.$utils().u;if(s(r))return this.$u?0:s(this.$offset)?d.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 a=(""+r[0]).match(i)||["-",0,0],s=a[0],o=60*+a[1]+ +a[2];return 0===o?0:"+"===s?o:-o}(r),null===r))return this;var o=Math.abs(r)<=16?60*r:r;if(0===o)return this.utc(a);var n=this.clone();if(a)return n.$offset=o,n.$u=!1,n;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(n=this.local().add(o+l,e)).$offset=o,n.$x.$localOffset=l,n};var c=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var g=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var h=o.diff;o.diff=function(e,t,i){if(e&&this.$u===e.$u)return h.call(this,e,t,i);var r=this.local(),a=s(e).local();return h.call(r,a,t,i)}}}()},86770(e,t,i){"use strict";i.r(t),i.d(t,{AG_BOOLEAN_PROPERTIES:()=>Ft.ME,AG_NUMBER_PROPERTIES:()=>Ft.LB,AG_PROPERTIES:()=>Ft.zI,ActionRenderer:()=>R.eA,ActionsMenuRenderer:()=>k.cN,AgGridCSSVars:()=>s.W3,AgGridTheme:()=>s.mJ,AgTextFieldRenderer:()=>wi.p8,AgTextRenderer:()=>Wt.t,BooleanRenderer:()=>I._Y,COLUMN_PICKER_SORT_DEFAULT:()=>Ye,CellTemplate:()=>Si.x,ColumnSelection:()=>pt,ColumnTemplate:()=>Ri.R,DARK_BACKGROUND_HEX:()=>le,DARK_BORDER_HEX:()=>de,DARK_FOREGROUND_HEX:()=>oe,DARK_HEADER_FOREGROUND_HEX:()=>ne,DARK_ROW_HOVER_HEX:()=>ce,DEBOUNCED_RESIZE_TIME:()=>Ft.BW,DEFAULT_STATUS_BAR_CONFIG:()=>s.o2,DISPLAY_NONE_CLASS:()=>di,DatasourceRowMatchTracker:()=>ki,DateEditor:()=>f.S8,EDITED_COLUMN_FIELD:()=>s.A7,ERROR_COLUMN_FIELD:()=>s.h1,EditableRenderer:()=>L.YM,EnumColumnFilter:()=>Ue,EnumColumnFloatingFilter:()=>qe,ErrorTooltip:()=>Bt.y,GRID_PRO_COLUMN_DRAG_BRIDGE_CONTEXT_KEY:()=>ot,GRID_READY_EVENT:()=>s.mr,GenesisGridDatasourceElement:()=>At.yu,GridOptionsConfig:()=>s.lz,GridPro:()=>a.cF,GridProBaseDatasource:()=>At.ML,GridProBeta:()=>Ut,GridProCaseType:()=>s.uA,GridProCell:()=>$e.O,GridProClientSideDatasource:()=>vt.L,GridProColumn:()=>Me.G,GridProFilterTypes:()=>De,GridProGenesisDatasource:()=>Pt.D,GridProInfiniteDatasource:()=>Tt,GridProRendererTypes:()=>s.IX,GridProServerSideDatasource:()=>ft.X,GridProStatusBarTypes:()=>s.k7,IconRenderer:()=>G.Jt,KVStorageStatePersistence:()=>Yi,LIGHT_BACKGROUND_HEX:()=>ue,LIGHT_BORDER_HEX:()=>pe,LIGHT_FOREGROUND_HEX:()=>ge,LIGHT_HEADER_FOREGROUND_HEX:()=>he,LIGHT_ROW_HOVER_HEX:()=>me,LabelValueStatusBarComponent:()=>$t.k,LoadMoreStatusBarComponent:()=>Mt.s,LocalStorageStatePersistence:()=>Wi.H,MulticolumnDropdown:()=>bi,MultiselectEditor:()=>p.pZ,NumberEditor:()=>g.Z0,OperationType:()=>At.S5,ROW_MATCH_ALERT_CELL_CLASS:()=>Di.mJ,ROW_MATCH_ALERT_CLASS:()=>Di.Xm,RapidAgActionRenderer:()=>E,RapidAgActionsMenuRenderer:()=>D,RapidAgSelectRenderer:()=>N,RapidAgTextRenderer:()=>Qt,RapidBooleanRenderer:()=>x,RapidColumnSelection:()=>Zt,RapidDateEditor:()=>b,RapidEditableRenderer:()=>P,RapidGridPro:()=>Re,RapidGridProBeta:()=>jt,RapidIconRenderer:()=>$,RapidMultiselectEditor:()=>m,RapidNumberEditor:()=>h,RapidSelectEditor:()=>d,RapidStatusPillRenderer:()=>V,RapidStringEditor:()=>S,ReloadStatusBarComponent:()=>_t.W,RowCountStatusBarComponent:()=>Nt.i,SelectEditor:()=>l._Q,SelectRenderer:()=>_.gs,StatePersistence:()=>Gt.l,StatusPillRenderer:()=>H.N7,StringEditor:()=>y.XJ,actionHeightMultiplier:()=>R.Fz,agActionRendererStyles:()=>R.AC,agBooleanRendererStyles:()=>I.CL,agDateEditorStyles:()=>f.kI,agDragGhostShadowDomStyles:()=>U.yK,agEditableRendererStyles:()=>L.Mx,agExternalStockStyles:()=>Oi.Kp,agGridAlpineFontFace:()=>Oi.KX,agGridBalhamFontFace:()=>Oi.c_,agGridCSS:()=>Oi.AT,agGridMaterialFontFace:()=>Oi.Id,agHeadCSS:()=>Oi.g4,agIconRendererStyles:()=>G.X5,agMultiselectEditorStyles:()=>p.$b,agNumberEditorStyles:()=>g.Fv,agSelectEditorStyles:()=>l.Uo,agSelectRendererStyles:()=>_.Ad,agStatusPillRendererStyles:()=>H.x2,agStringEditorStyles:()=>y.P_,agThemeAlpineNofontsCSS:()=>Oi.lJ,agThemeBalhamNofontsCSS:()=>Oi.HC,agThemeFontFaceMap:()=>Oi.KE,agThemeFontsId:()=>s.b7,agThemeGenesisRapid:()=>Y,agThemeGenesisRapidDark:()=>Q,agThemeGenesisRapidLight:()=>Z,agThemeGenesisRapidTokens:()=>Ce,agThemeMaterialCustomTokens:()=>er,agThemeMaterialNofontsCSS:()=>Oi.DX,agThemeTokenMapCSS:()=>s.Kb,agThemeTokenMapClassname:()=>s.eL,applyVisibleOrder:()=>it,backgroundSwatch:()=>Qi,baseDatasourceEventNames:()=>Lt.L,bindAgColumnPickerDrag:()=>je,columnSelectionStyles:()=>rt.H,columnSelectionTemplate:()=>st,convertColDefToColumnState:()=>Vt.pr,convertColDefsToColumnStates:()=>Vt.rG,convertDateFilterToCriteria:()=>Ot.A0,convertFilterModelToCriteria:()=>Ot.P4,convertNumberFilterToCriteria:()=>Ot.X_,convertSetFilterToCriteria:()=>Ot.EC,convertTextFilterToCriteria:()=>Ot.zP,convertToKebabCase:()=>Ht.w,copyAttributesToGridOptions:()=>Ft.Qg,createEnumValueLabelFormatter:()=>Be,createRowAlert:()=>Mi,createRowMatchCellClassRules:()=>Di.Li,createRowMatchClassRules:()=>Di.PO,criteriaDelimiter:()=>At.NC,criteriaJoin:()=>At.W_,csvExportParams:()=>rr,darkColors:()=>ve,datasourceEventNames:()=>Et.c,dateTimeValueFormatter:()=>Ft.XV,dateValueFormatter:()=>Ft.sL,defaultAgGridFontFace:()=>Oi.qh,defaultGridOptionsConfig:()=>s.YO,defaultGridProConfig:()=>a.Z$,defaultRowAlertColorPresets:()=>xi,defaultRowAlertPreferences:()=>Pi,defaultRowAlertRatePresets:()=>Ti,defaultRowAlertScopePresets:()=>Li,deriveHeightsFromTokens:()=>ye,dropdownWidthVar:()=>ni,errorHandlerDialogStyles:()=>Ei.B,extractErrorMessage:()=>tr.P,foregroundSwatch:()=>Ji,formatDateExtra:()=>Ft.mC,formatEnumFilterModelAsString:()=>He,foundationAgBooleanRenderer:()=>I.fg,foundationAgEditableRenderer:()=>L.r8,foundationAgSelectRenderer:()=>_.bE,foundationAgTextFieldRenderer:()=>wi.wG,foundationAgTextRenderer:()=>Wt.G4,foundationColumnSelection:()=>mt,foundationDateEditor:()=>f.vr,foundationGridComponents:()=>Ii,foundationGridPro:()=>a.RB,foundationGridProActionRenderer:()=>R._X,foundationGridProActionsMenuRenderer:()=>k.su,foundationGridProShadowOptions:()=>a.LU,foundationGridProStyles:()=>U.XF,foundationIconRenderer:()=>G.qN,foundationMulticolumnDropdown:()=>Ci,foundationMultiselectEditor:()=>p.UH,foundationNumberEditor:()=>g.CY,foundationSelectEditor:()=>l.RU,foundationStatusPillRenderer:()=>H.a1,foundationStringEditor:()=>y.cb,getActionsMenuDef:()=>k.Al,getAgBooleanRendererTemplate:()=>I.A9,getAgEditableRendererTemplate:()=>L.iP,getAvailableIndexFields:()=>ir.P,getAvailableIndexes:()=>ir.i,getColumnSelectionTemplate:()=>at,getColumnType:()=>Ft.nh,getDateEditorTemplate:()=>f.m6,getEnumFilterParams:()=>Ft.O7,getErrorHandlerDialogTemplate:()=>Ei.P,getGridProTemplate:()=>te.U,getIconRendererTemplate:()=>G.V$,getMulticolumnDropdownTemplate:()=>ui,getMultiselectEditorTemplate:()=>p.tB,getNumberEditorTemplate:()=>g.r1,getPickerItems:()=>Je,getSelectEditorTemplate:()=>l.iY,getSelectRendererTemplate:()=>_.qj,getStatusPillRendererTemplate:()=>H.T2,getStringEditorTemplate:()=>y.bZ,getTextFieldRendererTemplate:()=>wi.tm,getTextRendererTemplate:()=>Wt.d6,gridProColumnDragBridgeModule:()=>lt,gridProColumnSelectionHostStyles:()=>rt.M,gridProColumns:()=>_e.T,gridProErrorNames:()=>Ft.Ie,gridProEventNames:()=>Ft.yY,gridProGenesisDatasourceEventNames:()=>Rt.V,gridProTemplate:()=>te.a,lightColors:()=>fe,logger:()=>Ne.v,matchesRowCriteria:()=>Ai.D,mergeAndDedupColDefWithColumnState:()=>Vt.yS,multicolumnDropdownStyles:()=>ci,multicolumnDropdownTemplate:()=>pi,normalizeRowAlertPreferences:()=>Fi,optionsClass:()=>li,orderColumnsForPicker:()=>Ze,partitionPickerItems:()=>et,rapidAgActionRenderer:()=>A,rapidAgActionsMenuRenderer:()=>O,rapidAgBooleanRenderer:()=>T,rapidAgDateEditor:()=>C,rapidAgEditableRenderer:()=>F,rapidAgMultiselectEditor:()=>v,rapidAgNumberEditor:()=>u,rapidAgSelectEditor:()=>c,rapidAgSelectRenderer:()=>B,rapidAgStringEditor:()=>w,rapidAgTextRenderer:()=>Jt,rapidColumnSelection:()=>ei,rapidDefaultGridProConfig:()=>Ae,rapidGridComponents:()=>ti,rapidGridPro:()=>ke,rapidGridProBeta:()=>Yt,rapidGridProShadowOptions:()=>Ee,rapidGridProStyles:()=>ee,rapidGridProTemplate:()=>ie,rapidIconRenderer:()=>M,rapidMulticolumnDropdown:()=>yi,rapidStatusPillRenderer:()=>z,reorderVisibleIds:()=>tt,resolveColumnDragBridge:()=>dt,resolveColumnDragBridgeDirect:()=>ct,resolveColumnDragBridgeFromApi:()=>gt,resolveColumnPickerSort:()=>We,resolveColumnsPickerApi:()=>ht,resolveVisibleColumnFields:()=>_e.C,rowMatchAlertStyles:()=>U.em,sanitizeColumnState:()=>Vt.n7,syncColumnDragBridge:()=>nt,textFieldRendererStyles:()=>wi.zS,textRendererStyles:()=>Wt.JN,themeGenesisRapid:()=>j,themeGenesisRapidDark:()=>W,themeGenesisRapidLight:()=>J,toPickerItem:()=>Qe,wasClickOutsideElement:()=>vi});var r=i(55823),a=i(51266),s=i(55365),o=i(54634),n=i(33681),l=i(48075);class d extends l._Q{}const c=d.compose({baseName:"select-editor",styles:l.Uo,template:(0,l.iY)("rapid")});var g=i(48072);class h extends g.Z0{}const u=h.compose({baseName:"number-editor",styles:g.Fv,template:(0,g.r1)("rapid")});var p=i(56182);class m extends p.pZ{}const v=m.compose({baseName:"multiselect-editor",styles:p.$b,template:(0,p.tB)("rapid")});var f=i(49255);class b extends f.S8{}const C=b.compose({baseName:"date-editor",styles:f.kI,template:(0,f.m6)("rapid")});var y=i(43352);class S extends y.XJ{}const w=S.compose({baseName:"string-editor",styles:y.P_,template:(0,y.bZ)("rapid")});var R=i(67489);class E extends R.eA{paramsChanged(e,t){(null==t?void 0:t.node.rowHeight)&&this.style.setProperty("--params-row-node-height",`${t.node.rowHeight}px`,"")}}const A=E.compose({baseName:"grid-pro-action-renderer",styles:n.css`
|
|
2
|
-
${R.AC}
|
|
3
|
-
.button-padding {
|
|
4
|
-
justify-content: center;
|
|
5
|
-
margin: calc(var(--design-unit) * 1px);
|
|
6
|
-
}
|
|
7
|
-
rapid-button {
|
|
8
|
-
/* assuming 30 is the fallback, you can change it */
|
|
9
|
-
height: calc(var(--params-row-node-height, 32px) - 6px);
|
|
10
|
-
max-height: 28px;
|
|
11
|
-
&::part(control) {
|
|
12
|
-
height: 100%;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
`,template:n.html`
|
|
16
|
-
<div class="action-container" part="action-container">
|
|
17
|
-
<rapid-button
|
|
18
|
-
class="action-renderer button-padding"
|
|
19
|
-
part="action-renderer"
|
|
20
|
-
style=" ${e=>{var t;return(null===(t=e.params)||void 0===t?void 0:t.actionButtonStyle)||""}}"
|
|
21
|
-
aria-label=${e=>{var t;return null===(t=e.params)||void 0===t?void 0:t.actionName}}
|
|
22
|
-
data-test-id="${e=>e.dataTestId}"
|
|
23
|
-
?disabled=${e=>{var t;return e.pendingAction||e.isDisabled(null===(t=e.params)||void 0===t?void 0:t.data)}}
|
|
24
|
-
appearance="${e=>{var t;return null===(t=e.params)||void 0===t?void 0:t.appearance}}"
|
|
25
|
-
@click=${e=>e.clickHandler()}
|
|
26
|
-
>
|
|
27
|
-
${e=>{var t,i;return(null===(t=e.params)||void 0===t?void 0:t.contentTemplate)?n.html`
|
|
28
|
-
${e.params.contentTemplate}
|
|
29
|
-
`:null===(i=e.params)||void 0===i?void 0:i.actionName}}
|
|
30
|
-
</rapid-button>
|
|
31
|
-
</div>
|
|
32
|
-
`});var k=i(39604);class D extends k.cN{paramsChanged(e,t){(null==t?void 0:t.node.rowHeight)&&this.style.setProperty("--params-row-node-height",`${t.node.rowHeight}px`,"")}}const O=D.compose({baseName:"grid-pro-actions-menu-renderer",styles:n.css`
|
|
33
|
-
::part(actions-opener) {
|
|
34
|
-
height: calc(var(--params-row-node-height, 32px) - 6px);
|
|
35
|
-
width: calc(var(--params-row-node-height, 32px) - 6px);
|
|
36
|
-
padding: 0;
|
|
37
|
-
max-height: 28px;
|
|
38
|
-
max-width: 28px;
|
|
39
|
-
}
|
|
40
|
-
::part(control) {
|
|
41
|
-
height: 100%;
|
|
42
|
-
}
|
|
43
|
-
`,template:n.html`
|
|
44
|
-
<rapid-actions-menu
|
|
45
|
-
name="${e=>{var t;return null===(t=e.params)||void 0===t?void 0:t.headerName}}"
|
|
46
|
-
:definition=${e=>e.params}
|
|
47
|
-
></rapid-actions-menu>
|
|
48
|
-
`});var I=i(60905);class x extends I._Y{}const T=x.compose({baseName:"boolean-renderer",styles:I.CL,template:(0,I.A9)("rapid")});var L=i(46255);class P extends L.YM{}const F=P.compose({baseName:"editable-renderer",styles:L.Mx,template:(0,L.iP)("rapid")});var G=i(2048);class $ extends G.Jt{}const M=$.compose({baseName:"icon-renderer",styles:G.X5,template:(0,G.V$)("rapid")});var _=i(80879);class N extends _.gs{}const B=N.compose({baseName:"select-renderer",styles:_.Ad,template:(0,_.qj)("rapid")});var H=i(19511);class V extends H.N7{}const z=V.compose({baseName:"status-pill-renderer",template:(0,H.T2)("rapid"),styles:H.x2});var U=i(98884),K=i(60591),X=i(93188);const q=n.css`
|
|
49
|
-
.ag-theme-genesis-rapid,
|
|
50
|
-
.ag-theme-genesis-rapid-dark,
|
|
51
|
-
.ag-theme-genesis-rapid-light {
|
|
52
|
-
--ag-alpine-active-color: #2196f3;
|
|
53
|
-
--ag-selected-row-background-color: var(--accent-fill-rest);
|
|
54
|
-
--ag-row-hover-color: rgba(33, 150, 243, 0.1);
|
|
55
|
-
--ag-column-hover-color: rgba(33, 150, 243, 0.1);
|
|
56
|
-
--ag-input-focus-border-color: rgba(33, 150, 243, 0.4);
|
|
57
|
-
--ag-range-selection-background-color: rgba(33, 150, 243, 0.2);
|
|
58
|
-
--ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);
|
|
59
|
-
--ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);
|
|
60
|
-
--ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);
|
|
61
|
-
--ag-background-color: #fff;
|
|
62
|
-
--ag-foreground-color: #181d1f;
|
|
63
|
-
--ag-border-color: #68686e;
|
|
64
|
-
--ag-secondary-border-color: #dde2eb;
|
|
65
|
-
--ag-header-background-color: #ff0000;
|
|
66
|
-
--ag-tooltip-background-color: #f8f8f8;
|
|
67
|
-
--ag-odd-row-background-color: #fcfcfc;
|
|
68
|
-
--ag-control-panel-background-color: #f8f8f8;
|
|
69
|
-
--ag-subheader-background-color: #fff;
|
|
70
|
-
--ag-invalid-color: #e02525;
|
|
71
|
-
--ag-checkbox-unchecked-color: #999;
|
|
72
|
-
--ag-checkbox-background-color: var(--ag-background-color);
|
|
73
|
-
--ag-checkbox-checked-color: var(--ag-alpine-active-color);
|
|
74
|
-
--ag-range-selection-border-color: var(--ag-alpine-active-color);
|
|
75
|
-
--ag-secondary-foreground-color: var(--ag-foreground-color);
|
|
76
|
-
--ag-input-border-color: var(--ag-border-color);
|
|
77
|
-
--ag-input-border-color-invalid: var(--ag-invalid-color);
|
|
78
|
-
--ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);
|
|
79
|
-
--ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);
|
|
80
|
-
--ag-chip-background-color: rgba(24, 29, 31, 0.07);
|
|
81
|
-
--ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);
|
|
82
|
-
--ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);
|
|
83
|
-
--ag-borders: solid 1px;
|
|
84
|
-
--ag-border-radius: 3px;
|
|
85
|
-
--ag-borders-side-button: none;
|
|
86
|
-
--ag-side-button-selected-background-color: transparent;
|
|
87
|
-
--ag-header-column-resize-handle-display: block;
|
|
88
|
-
--ag-header-column-resize-handle-width: 2px;
|
|
89
|
-
--ag-header-column-resize-handle-height: 30%;
|
|
90
|
-
--ag-grid-size: 6px;
|
|
91
|
-
--ag-icon-size: 16px;
|
|
92
|
-
--ag-row-height: calc(var(--ag-grid-size) * 7);
|
|
93
|
-
--ag-header-height: calc(var(--ag-grid-size) * 8);
|
|
94
|
-
--ag-list-item-height: calc(var(--ag-grid-size) * 4);
|
|
95
|
-
--ag-column-select-indent-size: var(--ag-icon-size);
|
|
96
|
-
--ag-set-filter-indent-size: var(--ag-icon-size);
|
|
97
|
-
--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
|
|
98
|
-
--ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);
|
|
99
|
-
--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
|
|
100
|
-
--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);
|
|
101
|
-
--ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);
|
|
102
|
-
--ag-toggle-button-height: 18px;
|
|
103
|
-
--ag-toggle-button-width: 28px;
|
|
104
|
-
--ag-font-family: var(
|
|
105
|
-
--body-font,
|
|
106
|
-
-apple-system,
|
|
107
|
-
BlinkMacSystemFont,
|
|
108
|
-
'Segoe UI',
|
|
109
|
-
Roboto,
|
|
110
|
-
Oxygen-Sans,
|
|
111
|
-
Ubuntu,
|
|
112
|
-
Cantarell,
|
|
113
|
-
'Helvetica Neue',
|
|
114
|
-
sans-serif
|
|
115
|
-
);
|
|
116
|
-
--ag-font-size: 13px;
|
|
117
|
-
--ag-icon-font-family: agGridAlpine;
|
|
118
|
-
--ag-selected-tab-underline-color: var(--ag-alpine-active-color);
|
|
119
|
-
--ag-selected-tab-underline-width: 2px;
|
|
120
|
-
--ag-selected-tab-underline-transition-speed: 0.3s;
|
|
121
|
-
--ag-tab-min-width: 240px;
|
|
122
|
-
--ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
|
|
123
|
-
--ag-popup-shadow: var(--ag-card-shadow);
|
|
124
|
-
--ag-side-bar-panel-width: 250px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.ag-theme-genesis-rapid-dark,
|
|
128
|
-
.ag-theme-genesis-rapid-light {
|
|
129
|
-
--ag-alpine-active-color: var(--accent-fill-color);
|
|
130
|
-
--ag-background-color: var(--neutral-layer-card-container);
|
|
131
|
-
--ag-foreground-color: var(--neutral-foreground-rest);
|
|
132
|
-
--ag-border-color: var(--neutral-stroke-rest);
|
|
133
|
-
--ag-selected-row-background-color: var(--accent-fill-rest);
|
|
134
|
-
--ag-row-hover-color: var(--neutral-layer-4);
|
|
135
|
-
--ag-secondary-border-color: rgba(88, 86, 82, 0.5);
|
|
136
|
-
--ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
|
|
137
|
-
--ag-header-background-color: var(--neutral-layer-3);
|
|
138
|
-
--ag-header-foreground-color: var(--neutral-foreground-rest);
|
|
139
|
-
--ag-tooltip-background-color: #222628;
|
|
140
|
-
--ag-row-border-color: color-mix(in srgb, var(--neutral-stroke-rest), transparent 30%);
|
|
141
|
-
--ag-odd-row-background-color: var(--neutral-layer-1);
|
|
142
|
-
--ag-control-panel-background-color: #222628;
|
|
143
|
-
--ag-subheader-background-color: #000;
|
|
144
|
-
--ag-input-disabled-background-color: #282c2f;
|
|
145
|
-
--ag-input-focus-box-shadow:
|
|
146
|
-
0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
|
|
147
|
-
--ag-card-shadow: 0 1px 20px 1px rgba(0, 0, 0, 0.3);
|
|
148
|
-
--ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
|
|
149
|
-
--ag-chip-background-color: rgba(255, 255, 255, 0.07);
|
|
150
|
-
--ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
|
|
151
|
-
--ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
|
|
152
|
-
--ag-pinned-shadow-right: -10px 0 15px rgba(0, 0, 0, 0.3);
|
|
153
|
-
--ag-pinned-shadow-left: 10px 0 15px rgba(0, 0, 0, 0.3);
|
|
154
|
-
--rapid-ag-border-color: var(--ag-row-border-color);
|
|
155
|
-
--ag-secondary-foreground-color: var(--accent-foreground-rest);
|
|
156
|
-
--ag-selected-tab-underline-color: var(--accent-fill-rest);
|
|
157
|
-
--ag-checkbox-checked-color: var(--accent-foreground-rest);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.ag-theme-genesis-rapid-light {
|
|
161
|
-
--ag-pinned-shadow-right: -10px 0 15px rgba(0, 0, 0, 0.1);
|
|
162
|
-
--ag-pinned-shadow-left: 10px 0 15px rgba(0, 0, 0, 0.1);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.ag-theme-genesis-rapid .ag-filter-toolpanel-header,
|
|
166
|
-
.ag-theme-genesis-rapid .ag-filter-toolpanel-search,
|
|
167
|
-
.ag-theme-genesis-rapid .ag-status-bar,
|
|
168
|
-
.ag-theme-genesis-rapid .ag-header-row,
|
|
169
|
-
.ag-theme-genesis-rapid .ag-panel-title-bar-title,
|
|
170
|
-
.ag-theme-genesis-rapid .ag-multi-filter-group-title-bar,
|
|
171
|
-
.ag-theme-genesis-rapid-dark .ag-filter-toolpanel-header,
|
|
172
|
-
.ag-theme-genesis-rapid-dark .ag-filter-toolpanel-search,
|
|
173
|
-
.ag-theme-genesis-rapid-dark .ag-status-bar,
|
|
174
|
-
.ag-theme-genesis-rapid-dark .ag-header-row,
|
|
175
|
-
.ag-theme-genesis-rapid-dark .ag-panel-title-bar-title,
|
|
176
|
-
.ag-theme-genesis-rapid-dark .ag-multi-filter-group-title-bar,
|
|
177
|
-
.ag-theme-genesis-rapid-light .ag-filter-toolpanel-header,
|
|
178
|
-
.ag-theme-genesis-rapid-light .ag-filter-toolpanel-search,
|
|
179
|
-
.ag-theme-genesis-rapid-light .ag-status-bar,
|
|
180
|
-
.ag-theme-genesis-rapid-light .ag-header-row,
|
|
181
|
-
.ag-theme-genesis-rapid-light .ag-panel-title-bar-title,
|
|
182
|
-
.ag-theme-genesis-rapid-light .ag-multi-filter-group-title-bar {
|
|
183
|
-
font-weight: 700;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.ag-theme-genesis-rapid .ag-row,
|
|
187
|
-
.ag-theme-genesis-rapid-dark .ag-row,
|
|
188
|
-
.ag-theme-genesis-rapid-light .ag-row {
|
|
189
|
-
font-size: calc(var(--ag-font-size) + 1px);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.ag-theme-genesis-rapid input[class^='ag-']:not([type]),
|
|
193
|
-
.ag-theme-genesis-rapid input[class^='ag-'][type='text'],
|
|
194
|
-
.ag-theme-genesis-rapid input[class^='ag-'][type='number'],
|
|
195
|
-
.ag-theme-genesis-rapid input[class^='ag-'][type='tel'],
|
|
196
|
-
.ag-theme-genesis-rapid input[class^='ag-'][type='date'],
|
|
197
|
-
.ag-theme-genesis-rapid input[class^='ag-'][type='datetime-local'],
|
|
198
|
-
.ag-theme-genesis-rapid textarea[class^='ag-'],
|
|
199
|
-
.ag-theme-genesis-rapid-dark input[class^='ag-']:not([type]),
|
|
200
|
-
.ag-theme-genesis-rapid-dark input[class^='ag-'][type='text'],
|
|
201
|
-
.ag-theme-genesis-rapid-dark input[class^='ag-'][type='number'],
|
|
202
|
-
.ag-theme-genesis-rapid-dark input[class^='ag-'][type='tel'],
|
|
203
|
-
.ag-theme-genesis-rapid-dark input[class^='ag-'][type='date'],
|
|
204
|
-
.ag-theme-genesis-rapid-dark input[class^='ag-'][type='datetime-local'],
|
|
205
|
-
.ag-theme-genesis-rapid-dark textarea[class^='ag-'],
|
|
206
|
-
.ag-theme-genesis-rapid-light input[class^='ag-']:not([type]),
|
|
207
|
-
.ag-theme-genesis-rapid-light input[class^='ag-'][type='text'],
|
|
208
|
-
.ag-theme-genesis-rapid-light input[class^='ag-'][type='number'],
|
|
209
|
-
.ag-theme-genesis-rapid-light input[class^='ag-'][type='tel'],
|
|
210
|
-
.ag-theme-genesis-rapid-light input[class^='ag-'][type='date'],
|
|
211
|
-
.ag-theme-genesis-rapid-light input[class^='ag-'][type='datetime-local'],
|
|
212
|
-
.ag-theme-genesis-rapid-light textarea[class^='ag-'] {
|
|
213
|
-
min-height: calc(var(--ag-grid-size) * 4);
|
|
214
|
-
border-radius: var(--ag-border-radius);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.ag-theme-genesis-rapid .ag-ltr input[class^='ag-']:not([type]),
|
|
218
|
-
.ag-theme-genesis-rapid .ag-ltr input[class^='ag-'][type='text'],
|
|
219
|
-
.ag-theme-genesis-rapid .ag-ltr input[class^='ag-'][type='number'],
|
|
220
|
-
.ag-theme-genesis-rapid .ag-ltr input[class^='ag-'][type='tel'],
|
|
221
|
-
.ag-theme-genesis-rapid .ag-ltr input[class^='ag-'][type='date'],
|
|
222
|
-
.ag-theme-genesis-rapid .ag-ltr input[class^='ag-'][type='datetime-local'],
|
|
223
|
-
.ag-theme-genesis-rapid .ag-ltr textarea[class^='ag-'],
|
|
224
|
-
.ag-theme-genesis-rapid-dark .ag-ltr input[class^='ag-']:not([type]),
|
|
225
|
-
.ag-theme-genesis-rapid-dark .ag-ltr input[class^='ag-'][type='text'],
|
|
226
|
-
.ag-theme-genesis-rapid-dark .ag-ltr input[class^='ag-'][type='number'],
|
|
227
|
-
.ag-theme-genesis-rapid-dark .ag-ltr input[class^='ag-'][type='tel'],
|
|
228
|
-
.ag-theme-genesis-rapid-dark .ag-ltr input[class^='ag-'][type='date'],
|
|
229
|
-
.ag-theme-genesis-rapid-dark .ag-ltr input[class^='ag-'][type='datetime-local'],
|
|
230
|
-
.ag-theme-genesis-rapid-dark .ag-ltr textarea[class^='ag-'],
|
|
231
|
-
.ag-theme-genesis-rapid-light .ag-ltr input[class^='ag-']:not([type]),
|
|
232
|
-
.ag-theme-genesis-rapid-light .ag-ltr input[class^='ag-'][type='text'],
|
|
233
|
-
.ag-theme-genesis-rapid-light .ag-ltr input[class^='ag-'][type='number'],
|
|
234
|
-
.ag-theme-genesis-rapid-light .ag-ltr input[class^='ag-'][type='tel'],
|
|
235
|
-
.ag-theme-genesis-rapid-light .ag-ltr input[class^='ag-'][type='date'],
|
|
236
|
-
.ag-theme-genesis-rapid-light .ag-ltr input[class^='ag-'][type='datetime-local'],
|
|
237
|
-
.ag-theme-genesis-rapid-light .ag-ltr textarea[class^='ag-'] {
|
|
238
|
-
padding-left: var(--ag-grid-size);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.ag-theme-genesis-rapid .ag-rtl input[class^='ag-']:not([type]),
|
|
242
|
-
.ag-theme-genesis-rapid .ag-rtl input[class^='ag-'][type='text'],
|
|
243
|
-
.ag-theme-genesis-rapid .ag-rtl input[class^='ag-'][type='number'],
|
|
244
|
-
.ag-theme-genesis-rapid .ag-rtl input[class^='ag-'][type='tel'],
|
|
245
|
-
.ag-theme-genesis-rapid .ag-rtl input[class^='ag-'][type='date'],
|
|
246
|
-
.ag-theme-genesis-rapid .ag-rtl input[class^='ag-'][type='datetime-local'],
|
|
247
|
-
.ag-theme-genesis-rapid .ag-rtl textarea[class^='ag-'],
|
|
248
|
-
.ag-theme-genesis-rapid-dark .ag-rtl input[class^='ag-']:not([type]),
|
|
249
|
-
.ag-theme-genesis-rapid-dark .ag-rtl input[class^='ag-'][type='text'],
|
|
250
|
-
.ag-theme-genesis-rapid-dark .ag-rtl input[class^='ag-'][type='number'],
|
|
251
|
-
.ag-theme-genesis-rapid-dark .ag-rtl input[class^='ag-'][type='tel'],
|
|
252
|
-
.ag-theme-genesis-rapid-dark .ag-rtl input[class^='ag-'][type='date'],
|
|
253
|
-
.ag-theme-genesis-rapid-dark .ag-rtl input[class^='ag-'][type='datetime-local'],
|
|
254
|
-
.ag-theme-genesis-rapid-dark .ag-rtl textarea[class^='ag-'],
|
|
255
|
-
.ag-theme-genesis-rapid-light .ag-rtl input[class^='ag-']:not([type]),
|
|
256
|
-
.ag-theme-genesis-rapid-light .ag-rtl input[class^='ag-'][type='text'],
|
|
257
|
-
.ag-theme-genesis-rapid-light .ag-rtl input[class^='ag-'][type='number'],
|
|
258
|
-
.ag-theme-genesis-rapid-light .ag-rtl input[class^='ag-'][type='tel'],
|
|
259
|
-
.ag-theme-genesis-rapid-light .ag-rtl input[class^='ag-'][type='date'],
|
|
260
|
-
.ag-theme-genesis-rapid-light .ag-rtl input[class^='ag-'][type='datetime-local'],
|
|
261
|
-
.ag-theme-genesis-rapid-light .ag-rtl textarea[class^='ag-'] {
|
|
262
|
-
padding-right: var(--ag-grid-size);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.ag-theme-genesis-rapid .ag-tab,
|
|
266
|
-
.ag-theme-genesis-rapid-dark .ag-tab,
|
|
267
|
-
.ag-theme-genesis-rapid-light .ag-tab {
|
|
268
|
-
padding: calc(var(--ag-grid-size) * 1.5);
|
|
269
|
-
transition: color 0.4s;
|
|
270
|
-
flex: 1 1 auto;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.ag-theme-genesis-rapid .ag-tab-selected,
|
|
274
|
-
.ag-theme-genesis-rapid-dark .ag-tab-selected,
|
|
275
|
-
.ag-theme-genesis-rapid-light .ag-tab-selected {
|
|
276
|
-
color: var(--ag-alpine-active-color);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.ag-theme-genesis-rapid .ag-menu,
|
|
280
|
-
.ag-theme-genesis-rapid-dark .ag-menu,
|
|
281
|
-
.ag-theme-genesis-rapid-light .ag-menu {
|
|
282
|
-
background-color: var(--ag-control-panel-background-color);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.ag-theme-genesis-rapid .ag-menu-header,
|
|
286
|
-
.ag-theme-genesis-rapid-dark .ag-menu-header,
|
|
287
|
-
.ag-theme-genesis-rapid-light .ag-menu-header {
|
|
288
|
-
background-color: var(--ag-control-panel-background-color);
|
|
289
|
-
padding-top: 1px;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.ag-theme-genesis-rapid .ag-tabs-header,
|
|
293
|
-
.ag-theme-genesis-rapid-dark .ag-tabs-header,
|
|
294
|
-
.ag-theme-genesis-rapid-light .ag-tabs-header {
|
|
295
|
-
border-bottom: var(--ag-borders) var(--ag-border-color);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.ag-theme-genesis-rapid .ag-charts-settings-group-title-bar,
|
|
299
|
-
.ag-theme-genesis-rapid .ag-charts-data-group-title-bar,
|
|
300
|
-
.ag-theme-genesis-rapid .ag-charts-format-top-level-group-title-bar,
|
|
301
|
-
.ag-theme-genesis-rapid-dark .ag-charts-settings-group-title-bar,
|
|
302
|
-
.ag-theme-genesis-rapid-dark .ag-charts-data-group-title-bar,
|
|
303
|
-
.ag-theme-genesis-rapid-dark .ag-charts-format-top-level-group-title-bar,
|
|
304
|
-
.ag-theme-genesis-rapid-light .ag-charts-settings-group-title-bar,
|
|
305
|
-
.ag-theme-genesis-rapid-light .ag-charts-data-group-title-bar,
|
|
306
|
-
.ag-theme-genesis-rapid-light .ag-charts-format-top-level-group-title-bar {
|
|
307
|
-
padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
|
|
308
|
-
line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.ag-theme-genesis-rapid .ag-chart-mini-thumbnail,
|
|
312
|
-
.ag-theme-genesis-rapid-dark .ag-chart-mini-thumbnail,
|
|
313
|
-
.ag-theme-genesis-rapid-light .ag-chart-mini-thumbnail {
|
|
314
|
-
background-color: var(--ag-background-color);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.ag-theme-genesis-rapid .ag-chart-settings-nav-bar,
|
|
318
|
-
.ag-theme-genesis-rapid-dark .ag-chart-settings-nav-bar,
|
|
319
|
-
.ag-theme-genesis-rapid-light .ag-chart-settings-nav-bar {
|
|
320
|
-
border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.ag-theme-genesis-rapid .ag-ltr .ag-group-title-bar-icon,
|
|
324
|
-
.ag-theme-genesis-rapid-dark .ag-ltr .ag-group-title-bar-icon,
|
|
325
|
-
.ag-theme-genesis-rapid-light .ag-ltr .ag-group-title-bar-icon {
|
|
326
|
-
margin-right: var(--ag-grid-size);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.ag-theme-genesis-rapid .ag-rtl .ag-group-title-bar-icon,
|
|
330
|
-
.ag-theme-genesis-rapid-dark .ag-rtl .ag-group-title-bar-icon,
|
|
331
|
-
.ag-theme-genesis-rapid-light .ag-rtl .ag-group-title-bar-icon {
|
|
332
|
-
margin-left: var(--ag-grid-size);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.ag-theme-genesis-rapid .ag-charts-format-top-level-group-toolbar,
|
|
336
|
-
.ag-theme-genesis-rapid-dark .ag-charts-format-top-level-group-toolbar,
|
|
337
|
-
.ag-theme-genesis-rapid-light .ag-charts-format-top-level-group-toolbar {
|
|
338
|
-
margin-top: var(--ag-grid-size);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.ag-theme-genesis-rapid .ag-ltr .ag-charts-format-top-level-group-toolbar,
|
|
342
|
-
.ag-theme-genesis-rapid-dark .ag-ltr .ag-charts-format-top-level-group-toolbar,
|
|
343
|
-
.ag-theme-genesis-rapid-light .ag-ltr .ag-charts-format-top-level-group-toolbar {
|
|
344
|
-
padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.ag-theme-genesis-rapid .ag-rtl .ag-charts-format-top-level-group-toolbar,
|
|
348
|
-
.ag-theme-genesis-rapid-dark .ag-rtl .ag-charts-format-top-level-group-toolbar,
|
|
349
|
-
.ag-theme-genesis-rapid-light .ag-rtl .ag-charts-format-top-level-group-toolbar {
|
|
350
|
-
padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.ag-theme-genesis-rapid .ag-charts-format-sub-level-group,
|
|
354
|
-
.ag-theme-genesis-rapid-dark .ag-charts-format-sub-level-group,
|
|
355
|
-
.ag-theme-genesis-rapid-light .ag-charts-format-sub-level-group {
|
|
356
|
-
border-left: dashed 1px;
|
|
357
|
-
border-left-color: var(--ag-border-color);
|
|
358
|
-
padding-left: var(--ag-grid-size);
|
|
359
|
-
margin-bottom: calc(var(--ag-grid-size) * 2);
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.ag-theme-genesis-rapid .ag-charts-format-sub-level-group-title-bar,
|
|
363
|
-
.ag-theme-genesis-rapid-dark .ag-charts-format-sub-level-group-title-bar,
|
|
364
|
-
.ag-theme-genesis-rapid-light .ag-charts-format-sub-level-group-title-bar {
|
|
365
|
-
padding-top: 0;
|
|
366
|
-
padding-bottom: 0;
|
|
367
|
-
background: none;
|
|
368
|
-
font-weight: 700;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.ag-theme-genesis-rapid .ag-charts-format-sub-level-group-container,
|
|
372
|
-
.ag-theme-genesis-rapid-dark .ag-charts-format-sub-level-group-container,
|
|
373
|
-
.ag-theme-genesis-rapid-light .ag-charts-format-sub-level-group-container {
|
|
374
|
-
padding-bottom: 0;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.ag-theme-genesis-rapid .ag-charts-format-sub-level-group-item:last-child,
|
|
378
|
-
.ag-theme-genesis-rapid-dark .ag-charts-format-sub-level-group-item:last-child,
|
|
379
|
-
.ag-theme-genesis-rapid-light .ag-charts-format-sub-level-group-item:last-child {
|
|
380
|
-
margin-bottom: 0;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
.ag-theme-genesis-rapid.ag-dnd-ghost,
|
|
384
|
-
.ag-theme-genesis-rapid-dark.ag-dnd-ghost,
|
|
385
|
-
.ag-theme-genesis-rapid-light.ag-dnd-ghost {
|
|
386
|
-
font-size: calc(var(--ag-font-size) - 1px);
|
|
387
|
-
font-weight: 700;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
.ag-theme-genesis-rapid .ag-side-buttons,
|
|
391
|
-
.ag-theme-genesis-rapid-dark .ag-side-buttons,
|
|
392
|
-
.ag-theme-genesis-rapid-light .ag-side-buttons {
|
|
393
|
-
width: calc(var(--ag-grid-size) * 5);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.ag-theme-genesis-rapid .ag-standard-button,
|
|
397
|
-
.ag-theme-genesis-rapid-dark .ag-standard-button,
|
|
398
|
-
.ag-theme-genesis-rapid-light .ag-standard-button {
|
|
399
|
-
appearance: none;
|
|
400
|
-
-webkit-appearance: none;
|
|
401
|
-
border-radius: var(--ag-border-radius);
|
|
402
|
-
border: 1px solid;
|
|
403
|
-
border-color: var(--ag-alpine-active-color);
|
|
404
|
-
color: var(--ag-alpine-active-color);
|
|
405
|
-
background-color: var(--ag-background-color);
|
|
406
|
-
font-weight: 600;
|
|
407
|
-
padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
.ag-theme-genesis-rapid .ag-standard-button:hover,
|
|
411
|
-
.ag-theme-genesis-rapid-dark .ag-standard-button:hover,
|
|
412
|
-
.ag-theme-genesis-rapid-light .ag-standard-button:hover {
|
|
413
|
-
border-color: var(--ag-alpine-active-color);
|
|
414
|
-
background-color: var(--ag-row-hover-color);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
.ag-theme-genesis-rapid .ag-standard-button:active,
|
|
418
|
-
.ag-theme-genesis-rapid-dark .ag-standard-button:active,
|
|
419
|
-
.ag-theme-genesis-rapid-light .ag-standard-button:active {
|
|
420
|
-
border-color: var(--ag-alpine-active-color);
|
|
421
|
-
background-color: var(--ag-alpine-active-color);
|
|
422
|
-
color: var(--ag-background-color);
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.ag-theme-genesis-rapid .ag-standard-button:disabled,
|
|
426
|
-
.ag-theme-genesis-rapid-dark .ag-standard-button:disabled,
|
|
427
|
-
.ag-theme-genesis-rapid-light .ag-standard-button:disabled {
|
|
428
|
-
color: var(--ag-disabled-foreground-color);
|
|
429
|
-
background-color: var(--ag-input-disabled-background-color);
|
|
430
|
-
border-color: var(--ag-input-disabled-border-color);
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.ag-theme-genesis-rapid .ag-column-drop-vertical,
|
|
434
|
-
.ag-theme-genesis-rapid-dark .ag-column-drop-vertical,
|
|
435
|
-
.ag-theme-genesis-rapid-light .ag-column-drop-vertical {
|
|
436
|
-
min-height: 75px;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.ag-theme-genesis-rapid .ag-column-drop-vertical-title-bar,
|
|
440
|
-
.ag-theme-genesis-rapid-dark .ag-column-drop-vertical-title-bar,
|
|
441
|
-
.ag-theme-genesis-rapid-light .ag-column-drop-vertical-title-bar {
|
|
442
|
-
padding: calc(var(--ag-grid-size) * 2);
|
|
443
|
-
padding-bottom: 0px;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.ag-theme-genesis-rapid .ag-column-drop-vertical-empty-message,
|
|
447
|
-
.ag-theme-genesis-rapid-dark .ag-column-drop-vertical-empty-message,
|
|
448
|
-
.ag-theme-genesis-rapid-light .ag-column-drop-vertical-empty-message {
|
|
449
|
-
display: flex;
|
|
450
|
-
align-items: center;
|
|
451
|
-
border: dashed 1px;
|
|
452
|
-
border-color: var(--ag-border-color);
|
|
453
|
-
margin: calc(var(--ag-grid-size) * 2);
|
|
454
|
-
padding: calc(var(--ag-grid-size) * 2);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.ag-theme-genesis-rapid .ag-column-drop-empty-message,
|
|
458
|
-
.ag-theme-genesis-rapid-dark .ag-column-drop-empty-message,
|
|
459
|
-
.ag-theme-genesis-rapid-light .ag-column-drop-empty-message {
|
|
460
|
-
color: var(--ag-foreground-color);
|
|
461
|
-
opacity: 0.75;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
.ag-theme-genesis-rapid .ag-status-bar,
|
|
465
|
-
.ag-theme-genesis-rapid-dark .ag-status-bar,
|
|
466
|
-
.ag-theme-genesis-rapid-light .ag-status-bar {
|
|
467
|
-
font-weight: normal;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.ag-theme-genesis-rapid .ag-status-name-value-value,
|
|
471
|
-
.ag-theme-genesis-rapid-dark .ag-status-name-value-value,
|
|
472
|
-
.ag-theme-genesis-rapid-light .ag-status-name-value-value {
|
|
473
|
-
font-weight: 700;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.ag-theme-genesis-rapid .ag-paging-number,
|
|
477
|
-
.ag-theme-genesis-rapid .ag-paging-row-summary-panel-number,
|
|
478
|
-
.ag-theme-genesis-rapid-dark .ag-paging-number,
|
|
479
|
-
.ag-theme-genesis-rapid-dark .ag-paging-row-summary-panel-number,
|
|
480
|
-
.ag-theme-genesis-rapid-light .ag-paging-number,
|
|
481
|
-
.ag-theme-genesis-rapid-light .ag-paging-row-summary-panel-number {
|
|
482
|
-
font-weight: 700;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
.ag-theme-genesis-rapid .ag-column-drop-cell-button,
|
|
486
|
-
.ag-theme-genesis-rapid-dark .ag-column-drop-cell-button,
|
|
487
|
-
.ag-theme-genesis-rapid-light .ag-column-drop-cell-button {
|
|
488
|
-
opacity: 0.5;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.ag-theme-genesis-rapid .ag-column-drop-cell-button:hover,
|
|
492
|
-
.ag-theme-genesis-rapid-dark .ag-column-drop-cell-button:hover,
|
|
493
|
-
.ag-theme-genesis-rapid-light .ag-column-drop-cell-button:hover {
|
|
494
|
-
opacity: 0.75;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
.ag-theme-genesis-rapid .ag-header-cell-menu-button:hover,
|
|
498
|
-
.ag-theme-genesis-rapid .ag-side-button-button:hover,
|
|
499
|
-
.ag-theme-genesis-rapid .ag-tab:hover,
|
|
500
|
-
.ag-theme-genesis-rapid .ag-panel-title-bar-button:hover,
|
|
501
|
-
.ag-theme-genesis-rapid .ag-header-expand-icon:hover,
|
|
502
|
-
.ag-theme-genesis-rapid .ag-column-group-icons:hover,
|
|
503
|
-
.ag-theme-genesis-rapid .ag-set-filter-group-icons:hover,
|
|
504
|
-
.ag-theme-genesis-rapid .ag-group-expanded .ag-icon:hover,
|
|
505
|
-
.ag-theme-genesis-rapid .ag-group-contracted .ag-icon:hover,
|
|
506
|
-
.ag-theme-genesis-rapid .ag-chart-settings-prev:hover,
|
|
507
|
-
.ag-theme-genesis-rapid .ag-chart-settings-next:hover,
|
|
508
|
-
.ag-theme-genesis-rapid .ag-group-title-bar-icon:hover,
|
|
509
|
-
.ag-theme-genesis-rapid .ag-column-select-header-icon:hover,
|
|
510
|
-
.ag-theme-genesis-rapid .ag-floating-filter-button-button:hover,
|
|
511
|
-
.ag-theme-genesis-rapid .ag-filter-toolpanel-expand:hover,
|
|
512
|
-
.ag-theme-genesis-rapid .ag-chart-menu-icon:hover,
|
|
513
|
-
.ag-theme-genesis-rapid .ag-chart-menu-close:hover,
|
|
514
|
-
.ag-theme-genesis-rapid-dark .ag-header-cell-menu-button:hover,
|
|
515
|
-
.ag-theme-genesis-rapid-dark .ag-side-button-button:hover,
|
|
516
|
-
.ag-theme-genesis-rapid-dark .ag-tab:hover,
|
|
517
|
-
.ag-theme-genesis-rapid-dark .ag-panel-title-bar-button:hover,
|
|
518
|
-
.ag-theme-genesis-rapid-dark .ag-header-expand-icon:hover,
|
|
519
|
-
.ag-theme-genesis-rapid-dark .ag-column-group-icons:hover,
|
|
520
|
-
.ag-theme-genesis-rapid-dark .ag-set-filter-group-icons:hover,
|
|
521
|
-
.ag-theme-genesis-rapid-dark .ag-group-expanded .ag-icon:hover,
|
|
522
|
-
.ag-theme-genesis-rapid-dark .ag-group-contracted .ag-icon:hover,
|
|
523
|
-
.ag-theme-genesis-rapid-dark .ag-chart-settings-prev:hover,
|
|
524
|
-
.ag-theme-genesis-rapid-dark .ag-chart-settings-next:hover,
|
|
525
|
-
.ag-theme-genesis-rapid-dark .ag-group-title-bar-icon:hover,
|
|
526
|
-
.ag-theme-genesis-rapid-dark .ag-column-select-header-icon:hover,
|
|
527
|
-
.ag-theme-genesis-rapid-dark .ag-floating-filter-button-button:hover,
|
|
528
|
-
.ag-theme-genesis-rapid-dark .ag-filter-toolpanel-expand:hover,
|
|
529
|
-
.ag-theme-genesis-rapid-dark .ag-chart-menu-icon:hover,
|
|
530
|
-
.ag-theme-genesis-rapid-dark .ag-chart-menu-close:hover,
|
|
531
|
-
.ag-theme-genesis-rapid-light .ag-header-cell-menu-button:hover,
|
|
532
|
-
.ag-theme-genesis-rapid-light .ag-side-button-button:hover,
|
|
533
|
-
.ag-theme-genesis-rapid-light .ag-tab:hover,
|
|
534
|
-
.ag-theme-genesis-rapid-light .ag-panel-title-bar-button:hover,
|
|
535
|
-
.ag-theme-genesis-rapid-light .ag-header-expand-icon:hover,
|
|
536
|
-
.ag-theme-genesis-rapid-light .ag-column-group-icons:hover,
|
|
537
|
-
.ag-theme-genesis-rapid-light .ag-set-filter-group-icons:hover,
|
|
538
|
-
.ag-theme-genesis-rapid-light .ag-group-expanded .ag-icon:hover,
|
|
539
|
-
.ag-theme-genesis-rapid-light .ag-group-contracted .ag-icon:hover,
|
|
540
|
-
.ag-theme-genesis-rapid-light .ag-chart-settings-prev:hover,
|
|
541
|
-
.ag-theme-genesis-rapid-light .ag-chart-settings-next:hover,
|
|
542
|
-
.ag-theme-genesis-rapid-light .ag-group-title-bar-icon:hover,
|
|
543
|
-
.ag-theme-genesis-rapid-light .ag-column-select-header-icon:hover,
|
|
544
|
-
.ag-theme-genesis-rapid-light .ag-floating-filter-button-button:hover,
|
|
545
|
-
.ag-theme-genesis-rapid-light .ag-filter-toolpanel-expand:hover,
|
|
546
|
-
.ag-theme-genesis-rapid-light .ag-chart-menu-icon:hover,
|
|
547
|
-
.ag-theme-genesis-rapid-light .ag-chart-menu-close:hover {
|
|
548
|
-
color: var(--ag-alpine-active-color);
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
.ag-theme-genesis-rapid .ag-chart-menu-close,
|
|
552
|
-
.ag-theme-genesis-rapid-dark .ag-chart-menu-close,
|
|
553
|
-
.ag-theme-genesis-rapid-light .ag-chart-menu-close {
|
|
554
|
-
background: var(--ag-background-color);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
.ag-theme-genesis-rapid .ag-chart-menu-close:hover .ag-icon,
|
|
558
|
-
.ag-theme-genesis-rapid-dark .ag-chart-menu-close:hover .ag-icon,
|
|
559
|
-
.ag-theme-genesis-rapid-light .ag-chart-menu-close:hover .ag-icon {
|
|
560
|
-
border-color: var(--ag-alpine-active-color);
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
.ag-theme-genesis-rapid .ag-chart-menu-close .ag-icon,
|
|
564
|
-
.ag-theme-genesis-rapid-dark .ag-chart-menu-close .ag-icon,
|
|
565
|
-
.ag-theme-genesis-rapid-light .ag-chart-menu-close .ag-icon {
|
|
566
|
-
background: var(--ag-header-background-color);
|
|
567
|
-
border: 1px solid var(--ag-border-color);
|
|
568
|
-
border-right: none;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
.ag-theme-genesis-rapid .ag-chart-settings-card-item.ag-not-selected:hover,
|
|
572
|
-
.ag-theme-genesis-rapid-dark .ag-chart-settings-card-item.ag-not-selected:hover,
|
|
573
|
-
.ag-theme-genesis-rapid-light .ag-chart-settings-card-item.ag-not-selected:hover {
|
|
574
|
-
opacity: 0.35;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
.ag-theme-genesis-rapid .ag-ltr .ag-panel-title-bar-button,
|
|
578
|
-
.ag-theme-genesis-rapid-dark .ag-ltr .ag-panel-title-bar-button,
|
|
579
|
-
.ag-theme-genesis-rapid-light .ag-ltr .ag-panel-title-bar-button {
|
|
580
|
-
margin-left: calc(var(--ag-grid-size) * 2);
|
|
581
|
-
margin-right: var(--ag-grid-size);
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
.ag-theme-genesis-rapid .ag-rtl .ag-panel-title-bar-button,
|
|
585
|
-
.ag-theme-genesis-rapid-dark .ag-rtl .ag-panel-title-bar-button,
|
|
586
|
-
.ag-theme-genesis-rapid-light .ag-rtl .ag-panel-title-bar-button {
|
|
587
|
-
margin-right: calc(var(--ag-grid-size) * 2);
|
|
588
|
-
margin-left: var(--ag-grid-size);
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
.ag-theme-genesis-rapid .ag-ltr .ag-filter-toolpanel-group-container,
|
|
592
|
-
.ag-theme-genesis-rapid-dark .ag-ltr .ag-filter-toolpanel-group-container,
|
|
593
|
-
.ag-theme-genesis-rapid-light .ag-ltr .ag-filter-toolpanel-group-container {
|
|
594
|
-
padding-left: var(--ag-grid-size);
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
.ag-theme-genesis-rapid .ag-rtl .ag-filter-toolpanel-group-container,
|
|
598
|
-
.ag-theme-genesis-rapid-dark .ag-rtl .ag-filter-toolpanel-group-container,
|
|
599
|
-
.ag-theme-genesis-rapid-light .ag-rtl .ag-filter-toolpanel-group-container {
|
|
600
|
-
padding-right: var(--ag-grid-size);
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
.ag-theme-genesis-rapid .ag-filter-toolpanel-instance-filter,
|
|
604
|
-
.ag-theme-genesis-rapid-dark .ag-filter-toolpanel-instance-filter,
|
|
605
|
-
.ag-theme-genesis-rapid-light .ag-filter-toolpanel-instance-filter {
|
|
606
|
-
border: none;
|
|
607
|
-
background-color: var(--ag-control-panel-background-color);
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
.ag-theme-genesis-rapid .ag-ltr .ag-filter-toolpanel-instance-filter,
|
|
611
|
-
.ag-theme-genesis-rapid-dark .ag-ltr .ag-filter-toolpanel-instance-filter,
|
|
612
|
-
.ag-theme-genesis-rapid-light .ag-ltr .ag-filter-toolpanel-instance-filter {
|
|
613
|
-
border-left: dashed 1px;
|
|
614
|
-
border-left-color: var(--ag-border-color);
|
|
615
|
-
margin-left: calc(var(--ag-icon-size) * 0.5);
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
.ag-theme-genesis-rapid .ag-rtl .ag-filter-toolpanel-instance-filter,
|
|
619
|
-
.ag-theme-genesis-rapid-dark .ag-rtl .ag-filter-toolpanel-instance-filter,
|
|
620
|
-
.ag-theme-genesis-rapid-light .ag-rtl .ag-filter-toolpanel-instance-filter {
|
|
621
|
-
border-right: dashed 1px;
|
|
622
|
-
border-right-color: var(--ag-border-color);
|
|
623
|
-
margin-right: calc(var(--ag-icon-size) * 0.5);
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
.ag-theme-genesis-rapid .ag-set-filter-list,
|
|
627
|
-
.ag-theme-genesis-rapid-dark .ag-set-filter-list,
|
|
628
|
-
.ag-theme-genesis-rapid-light .ag-set-filter-list {
|
|
629
|
-
padding-top: calc(var(--ag-grid-size) * 0.5);
|
|
630
|
-
padding-bottom: calc(var(--ag-grid-size) * 0.5);
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
.ag-theme-genesis-rapid .ag-layout-auto-height .ag-center-cols-clipper,
|
|
634
|
-
.ag-theme-genesis-rapid .ag-layout-auto-height .ag-center-cols-container,
|
|
635
|
-
.ag-theme-genesis-rapid .ag-layout-print .ag-center-cols-clipper,
|
|
636
|
-
.ag-theme-genesis-rapid .ag-layout-print .ag-center-cols-container,
|
|
637
|
-
.ag-theme-genesis-rapid-dark .ag-layout-auto-height .ag-center-cols-clipper,
|
|
638
|
-
.ag-theme-genesis-rapid-dark .ag-layout-auto-height .ag-center-cols-container,
|
|
639
|
-
.ag-theme-genesis-rapid-dark .ag-layout-print .ag-center-cols-clipper,
|
|
640
|
-
.ag-theme-genesis-rapid-dark .ag-layout-print .ag-center-cols-container,
|
|
641
|
-
.ag-theme-genesis-rapid-light .ag-layout-auto-height .ag-center-cols-clipper,
|
|
642
|
-
.ag-theme-genesis-rapid-light .ag-layout-auto-height .ag-center-cols-container,
|
|
643
|
-
.ag-theme-genesis-rapid-light .ag-layout-print .ag-center-cols-clipper,
|
|
644
|
-
.ag-theme-genesis-rapid-light .ag-layout-print .ag-center-cols-container {
|
|
645
|
-
min-height: 150px;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
.ag-theme-genesis-rapid .ag-overlay-no-rows-wrapper.ag-layout-auto-height,
|
|
649
|
-
.ag-theme-genesis-rapid-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height,
|
|
650
|
-
.ag-theme-genesis-rapid-light .ag-overlay-no-rows-wrapper.ag-layout-auto-height {
|
|
651
|
-
padding-top: 60px;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
.ag-theme-genesis-rapid .ag-date-time-list-page-entry-is-current,
|
|
655
|
-
.ag-theme-genesis-rapid-dark .ag-date-time-list-page-entry-is-current,
|
|
656
|
-
.ag-theme-genesis-rapid-light .ag-date-time-list-page-entry-is-current {
|
|
657
|
-
background-color: var(--ag-alpine-active-color);
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
.ag-theme-genesis-rapid .ag-pinned-right-cols-container,
|
|
661
|
-
.ag-theme-genesis-rapid-dark .ag-pinned-right-cols-container,
|
|
662
|
-
.ag-theme-genesis-rapid-light .ag-pinned-right-cols-container {
|
|
663
|
-
box-shadow: var(--ag-pinned-shadow-right);
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
.ag-theme-genesis-rapid .ag-pinned-left-cols-container,
|
|
667
|
-
.ag-theme-genesis-rapid-dark .ag-pinned-left-cols-container,
|
|
668
|
-
.ag-theme-genesis-rapid-light .ag-pinned-left-cols-container {
|
|
669
|
-
box-shadow: var(--ag-pinned-shadow-left);
|
|
670
|
-
z-index: 10;
|
|
671
|
-
}
|
|
672
|
-
.ag-theme-genesis-rapid .ag-root-wrapper,
|
|
673
|
-
.ag-theme-genesis-rapid-dark .ag-root-wrapper,
|
|
674
|
-
.ag-theme-genesis-rapid-light .ag-root-wrapper {
|
|
675
|
-
border: 0 !important;
|
|
676
|
-
}
|
|
677
|
-
`,j="ag-theme-genesis-rapid",Y=n.css`
|
|
678
|
-
${q}
|
|
679
|
-
|
|
680
|
-
.${j} {
|
|
681
|
-
${(0,X.mixinRobotoFont)()}
|
|
682
|
-
font-family: var(--body-font);
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
.${j} .ag-header {
|
|
686
|
-
border-bottom-color: var(--neutral-stroke-rest);
|
|
687
|
-
font-weight: bold;
|
|
688
|
-
font-size: var(--type-ramp-base-font-size);
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
.${j} .ag-root-wrapper {
|
|
692
|
-
border-radius: calc(var(--ag-border-radius) * 1px);
|
|
693
|
-
border: 1px solid var(--rapid-ag-border-color);
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
.${j} .ag-cell {
|
|
697
|
-
font-size: var(--type-ramp-minus-1-font-size);
|
|
698
|
-
}
|
|
699
|
-
`,W="ag-theme-genesis-rapid-dark",Q=n.css`
|
|
700
|
-
${q}
|
|
701
|
-
|
|
702
|
-
.${W} {
|
|
703
|
-
${(0,X.mixinRobotoFont)()}
|
|
704
|
-
font-family: var(--body-font);
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
.${W} .ag-header {
|
|
708
|
-
border-bottom-color: var(--neutral-stroke-rest);
|
|
709
|
-
font-weight: bold;
|
|
710
|
-
font-size: var(--type-ramp-base-font-size);
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
.${W} .ag-cell {
|
|
714
|
-
font-size: var(--type-ramp-minus-1-font-size);
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
.${W} .ag-root-wrapper {
|
|
718
|
-
border-radius: calc(var(--ag-border-radius) * 1px);
|
|
719
|
-
border: 1px solid var(--rapid-ag-border-color);
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
.${W} {
|
|
723
|
-
color-scheme: dark;
|
|
724
|
-
}
|
|
725
|
-
`,J="ag-theme-genesis-rapid-light",Z=n.css`
|
|
726
|
-
${q}
|
|
727
|
-
|
|
728
|
-
.${J} {
|
|
729
|
-
${(0,X.mixinRobotoFont)()}
|
|
730
|
-
font-family: var(--body-font);
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
.${J} .ag-header {
|
|
734
|
-
border-bottom-color: var(--neutral-stroke-rest);
|
|
735
|
-
font-weight: bold;
|
|
736
|
-
font-size: var(--type-ramp-base-font-size);
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
.${J} .ag-cell {
|
|
740
|
-
font-size: var(--type-ramp-minus-1-font-size);
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
.${J} .ag-root-wrapper {
|
|
744
|
-
border-radius: calc(var(--ag-border-radius) * 1px);
|
|
745
|
-
border: 1px solid var(--rapid-ag-border-color);
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
.${J} {
|
|
749
|
-
color-scheme: light;
|
|
750
|
-
}
|
|
751
|
-
`,ee=n.css`
|
|
752
|
-
/* All the AG themes */
|
|
753
|
-
${U.XF}
|
|
754
|
-
${K.g}
|
|
755
|
-
|
|
756
|
-
/* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
|
|
757
|
-
${Y}
|
|
758
|
-
${Q}
|
|
759
|
-
${Z}
|
|
760
|
-
`;var te=i(82128);const ie=(0,te.U)("rapid");var re=i(20166),ae=i(38370),se=i(83912);const oe="#cccccc",ne="#879ba6",le="#1f2126",de="#2e3339",ce="#2b2e34",ge="#000000",he="#181d1f",ue="#FFFFFF",pe="#babfc7",me="#2196f3",ve={foregroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(oe)),headerForegroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ne)),backgroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(le)),borderSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(de)),rowHoverSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ce))},fe={foregroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ge)),headerForegroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(he)),backgroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ue)),borderSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(pe)),rowHoverSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(me))},{create:be}=ae.DesignToken,Ce={backgroundColor:be("rapid-ag-background-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?fe.backgroundSwatch:ve.backgroundSwatch),borderColor:be("rapid-ag-border-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?fe.borderSwatch:ve.borderSwatch),foregroundColor:be("rapid-ag-foreground-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?fe.foregroundSwatch:ve.foregroundSwatch),headerForegroundColor:be("rapid-ag-header-foreground-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?fe.headerForegroundSwatch:ve.headerForegroundSwatch),rowHoverColor:be("rapid-ag-row-hover-color").withDefault(e=>o.baseLayerLuminance.getValueFor(e)===o.StandardLuminance.LightMode?fe.rowHoverSwatch:ve.rowHoverSwatch)},ye=()=>{const e=(0,re.designTokensMap)();if(!e.value)return null;const{style:t,space:i}=e.value.design_tokens;return(t.baseHeightMultiplier.$value+t.density.$value)*i.designUnit.$value-8},Se="ag-theme-genesis-rapid-dark",we="ag-theme-genesis-rapid-light";class Re extends a.cF{constructor(){super(...arguments),this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.handleLuminanceChange=e=>{const t=o.baseLayerLuminance.getValueFor(e.target);this.theme=t===o.StandardLuminance.DarkMode?Se:we},this.theme="light"===localStorage.getItem("luminance")?we:Se}connectedCallback(){var e;super.connectedCallback();const t=null!==(e=this.provider)&&void 0!==e?e:this;this.luminanceSubscription=o.baseLayerLuminance.subscribe(this.luminanceObserver,t)}disconnectedCallback(){var e;const t=null!==(e=this.provider)&&void 0!==e?e:this;o.baseLayerLuminance.unsubscribe(this.luminanceObserver,t),this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),super.disconnectedCallback()}themeChanged(e,t){(e||t===Se)&&super.themeChanged(e,t)}set gridOptions(e){var t,i,r,a;const o=Object.assign({},e);o.components=Object.assign({[s.IX.action]:E,[s.IX.actionsMenu]:D,[s.IX.boolean]:x,[s.IX.editable]:P,[s.IX.icon]:$,[s.IX.select]:N,[s.IX.selectEditor]:d,[s.IX.numberEditor]:h,[s.IX.multiselectEditor]:m,[s.IX.dateEditor]:b,[s.IX.stringEditor]:S,[s.IX.statusPill]:V},e.components);(this.theme===j||this.theme===W||this.theme===J)&&(this.headerHeight=null!==(i=null!==(t=o.headerHeight)&&void 0!==t?t:ye())&&void 0!==i?i:32,this.rowHeight=null!==(a=null!==(r=o.rowHeight)&&void 0!==r?r:ye())&&void 0!==a?a:32),super.gridOptions=o}}(0,r.Cg)([n.observable],Re.prototype,"provider",void 0);const Ee=a.LU,Ae=a.Z$,ke=Re.compose(Object.assign({baseName:"grid-pro",template:ie,styles:ee,shadowOptions:Ee},Ae));var De,Oe=i(6884),Ie=i(20633),xe=i(21409),Te=i(17190),Le=i(48046),Pe=i(88047),Fe=i(62051),Ge=i.n(Fe),$e=i(56943),Me=i(64315),_e=i(14987),Ne=i(1510);!function(e){e.enumFilter="enumColumnFilter",e.enumFloatingFilter="enumColumnFloatingFilter"}(De||(De={}));function Be(e){const t=null==e?void 0:e.valueFormatter,i=t?i=>String(t({value:i,api:null==e?void 0:e.api,colDef:null==e?void 0:e.colDef,column:null==e?void 0:e.column,context:null==e?void 0:e.context})):e=>(0,Pe.capitalCase)(e);return e=>null===e?"(Blanks)":i(e)}function He(e,t){return(null==e?void 0:e.values)?0===e.values.length?"(None)":`(${e.values.length}) ${e.values.map(t).join(", ")}`:""}const Ve="gp-enum-filter",ze=n.css`
|
|
761
|
-
:host {
|
|
762
|
-
display: flex;
|
|
763
|
-
flex-direction: column;
|
|
764
|
-
gap: 4px;
|
|
765
|
-
padding: 6px;
|
|
766
|
-
min-width: 180px;
|
|
767
|
-
color: var(--ag-foreground-color, inherit);
|
|
768
|
-
background: var(--ag-control-panel-background-color, transparent);
|
|
769
|
-
font: inherit;
|
|
770
|
-
}
|
|
771
|
-
.${Ve}__search {
|
|
772
|
-
box-sizing: border-box;
|
|
773
|
-
width: 100%;
|
|
774
|
-
padding: 4px 6px;
|
|
775
|
-
font: inherit;
|
|
776
|
-
color: inherit;
|
|
777
|
-
background: var(--ag-background-color, transparent);
|
|
778
|
-
border: 1px solid var(--ag-input-border-color, var(--ag-border-color, #babfc7));
|
|
779
|
-
border-radius: 3px;
|
|
780
|
-
outline: none;
|
|
781
|
-
}
|
|
782
|
-
.${Ve}__search:focus {
|
|
783
|
-
border-color: var(
|
|
784
|
-
--ag-input-focus-border-color,
|
|
785
|
-
var(--ag-range-selection-border-color, #2196f3)
|
|
786
|
-
);
|
|
787
|
-
}
|
|
788
|
-
.${Ve}__select-all {
|
|
789
|
-
border-bottom: 1px solid var(--ag-border-color, #babfc7);
|
|
790
|
-
padding-bottom: 4px;
|
|
791
|
-
}
|
|
792
|
-
.${Ve}__list {
|
|
793
|
-
max-height: 210px;
|
|
794
|
-
overflow-y: auto;
|
|
795
|
-
display: flex;
|
|
796
|
-
flex-direction: column;
|
|
797
|
-
}
|
|
798
|
-
.${Ve}__item {
|
|
799
|
-
display: flex;
|
|
800
|
-
align-items: center;
|
|
801
|
-
gap: 6px;
|
|
802
|
-
padding: 3px 4px;
|
|
803
|
-
cursor: pointer;
|
|
804
|
-
border-radius: 3px;
|
|
805
|
-
user-select: none;
|
|
806
|
-
}
|
|
807
|
-
.${Ve}__item:hover, .${Ve}__item:focus-within {
|
|
808
|
-
background: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));
|
|
809
|
-
}
|
|
810
|
-
.${Ve}__item input {
|
|
811
|
-
margin: 0;
|
|
812
|
-
accent-color: var(--ag-checkbox-checked-color, var(--ag-range-selection-border-color, #2196f3));
|
|
813
|
-
}
|
|
814
|
-
.${Ve}__item-label {
|
|
815
|
-
overflow: hidden;
|
|
816
|
-
text-overflow: ellipsis;
|
|
817
|
-
white-space: nowrap;
|
|
818
|
-
}
|
|
819
|
-
.${Ve}__no-matches {
|
|
820
|
-
padding: 4px;
|
|
821
|
-
opacity: 0.7;
|
|
822
|
-
}
|
|
823
|
-
`;class Ue{constructor(){this.itemInputs=new Map,this.allValues=[],this.includeBlanks=!0,this.valuesRequestId=0,this.loading=!1,this.ownsHeaderTooltip=!1,this.model=null,this.searchTerm=""}init(e){this.params=e,this.formatLabel=Be(e),this.installHeaderTooltip(),this.createGui(),this.resolveState()}getGui(){return this.eGui}isFilterActive(){return null!==this.model}doesFilterPass(e){if(null===this.model)return!0;const t=this.getCellValue(e.node);return null==t||""===t?this.model.includes(null):this.model.includes(String(t))}getModel(){return null===this.model?null:{filterType:"set",values:[...this.model]}}setModel(e){this.model=(null==e?void 0:e.values)?[...e.values]:null,this.syncCheckedStates()}getModelAsString(e){return He(null!=e?e:this.getModel(),this.formatLabel)}clear(){null!==this.model&&(this.model=null,this.syncCheckedStates(),this.params.filterChangedCallback())}installHeaderTooltip(){const e=this.params.colDef;e&&!e.headerTooltipValueGetter&&(this.ownsHeaderTooltip=!0,e.headerTooltipValueGetter=()=>{const t=He(this.getModel(),this.formatLabel);if(t)return e.headerTooltip?`${e.headerTooltip} — Filtered: ${t}`:`Filtered: ${t}`})}afterGuiAttached(e){this.searchTerm="",this.eSearch.value="",this.renderList(),(null==e?void 0:e.suppressFocus)||this.eSearch.focus()}refresh(e){return this.params=e,this.formatLabel=Be(e),this.installHeaderTooltip(),this.resolveState(),!0}destroy(){var e;this.valuesRequestId+=1,this.ownsHeaderTooltip&&(delete this.params.colDef.headerTooltipValueGetter,this.ownsHeaderTooltip=!1),null===(e=this.eGui)||void 0===e||e.remove()}resolveState(){var e;this.loading=!1,this.includeBlanks=!1!==this.params.blanks;const t=this.params.values;"function"!=typeof t?(Array.isArray(t)?this.allValues=[...new Set(t.map(String))]:(Ne.v.warn(`EnumColumnFilter on column '${null===(e=this.params.colDef)||void 0===e?void 0:e.field}' has no filterParams.values; provide the enum options (metadata enumOptions, an array, or a getter).`),this.allValues=[]),this.renderList()):this.loadAsyncValues(t)}loadAsyncValues(e){this.valuesRequestId+=1;const t=this.valuesRequestId;let i=!1;const r=e=>{i||t!==this.valuesRequestId||(i=!0,this.loading=!1,this.allValues=[...new Set((null!=e?e:[]).map(String))],this.renderList())};let a;try{a=e({colDef:this.params.colDef,api:this.params.api,success:r})}catch(e){return void r([])}if(!i)if(Array.isArray(a))r(a);else{if(void 0!==a){const e=a;return"function"!=typeof e.then?void r([]):(this.loading=!0,this.renderList(),void e.then(r,()=>r([])))}this.loading=!0,this.renderList()}}getCellValue(e){var t,i;const r=this.params;if("function"==typeof r.getValue)return r.getValue(e);const a=null===(t=r.colDef)||void 0===t?void 0:t.field;return a?null===(i=null==e?void 0:e.data)||void 0===i?void 0:i[a]:void 0}extraModelValues(){var e;return(null!==(e=this.model)&&void 0!==e?e:[]).filter(e=>null!==e&&!this.allValues.includes(e))}allKeys(){var e;const t=[...this.allValues,...this.extraModelValues()];return(this.includeBlanks||(null===(e=this.model)||void 0===e?void 0:e.includes(null)))&&t.push(null),t}isSelected(e){return null===this.model||this.model.includes(e)}visibleKeys(){const e=this.allKeys();if(!this.searchTerm)return e;const t=this.searchTerm.toLowerCase();return e.filter(e=>this.formatLabel(e).toLowerCase().includes(t)||null!==e&&e.toLowerCase().includes(t))}updateSelection(e){const t=this.allKeys().every(t=>e.has(t));this.model=t?null:[...e],this.syncCheckedStates(),this.params.filterChangedCallback()}currentSelection(){return new Set(this.allKeys().filter(e=>this.isSelected(e)))}toggleValue(e,t){const i=this.currentSelection();t?i.add(e):i.delete(e),this.updateSelection(i)}toggleAllVisible(e){const t=this.visibleKeys(),i=this.currentSelection();t.forEach(t=>e?i.add(t):i.delete(t)),this.updateSelection(i)}createGui(){this.eGui=document.createElement("div"),this.eGui.className=Ve,this.eRoot=this.eGui.attachShadow({mode:"open"}),ze.addStylesTo(this.eRoot),this.eRoot.addEventListener("keydown",e=>this.handleKeyDown(e)),this.eSearch=document.createElement("input"),this.eSearch.type="text",this.eSearch.className=`${Ve}__search`,this.eSearch.placeholder="Search",this.eSearch.setAttribute("aria-label","Search filter values"),this.eSearch.addEventListener("input",()=>{this.searchTerm=this.eSearch.value.trim(),this.renderList()}),this.eRoot.appendChild(this.eSearch);const e=this.createItem("(Select All)");e.label.classList.add(`${Ve}__select-all`),this.eSelectAll=e.input,this.eSelectAll.addEventListener("change",()=>{this.toggleAllVisible(this.eSelectAll.checked)}),this.eRoot.appendChild(e.label),this.eList=document.createElement("div"),this.eList.className=`${Ve}__list`,this.eRoot.appendChild(this.eList)}createItem(e){const t=document.createElement("label");t.className=`${Ve}__item`;const i=document.createElement("input");i.type="checkbox",t.appendChild(i);const r=document.createElement("span");return r.className=`${Ve}__item-label`,r.textContent=e,r.title=e,t.appendChild(r),{label:t,input:i}}renderList(){if(!this.eList)return;this.eList.replaceChildren(),this.itemInputs.clear();const e=this.visibleKeys();if(this.loading||0===e.length){const e=document.createElement("div");e.className=`${Ve}__no-matches`,e.textContent=this.loading?"Loading…":"No matches",this.eList.appendChild(e)}this.loading||e.forEach(e=>{const{label:t,input:i}=this.createItem(this.formatLabel(e));t.dataset.value=null===e?"":e,i.addEventListener("change",()=>this.toggleValue(e,i.checked)),this.itemInputs.set(e,i),this.eList.appendChild(t)}),this.syncCheckedStates()}syncCheckedStates(){if(!this.eList)return;let e=0;this.itemInputs.forEach((t,i)=>{t.checked=this.isSelected(i),t.checked&&(e+=1)});const t=this.itemInputs.size;this.eSelectAll.checked=t>0&&e===t,this.eSelectAll.indeterminate=e>0&&e<t,this.eSelectAll.disabled=0===t}focusables(){return[this.eSearch,this.eSelectAll,...this.itemInputs.values()]}handleKeyDown(e){const t=e.target;if("Enter"===e.key&&t instanceof HTMLInputElement&&"checkbox"===t.type)return e.preventDefault(),t.checked=!t.checked,void t.dispatchEvent(new Event("change"));if("Tab"===e.key){const i=this.focusables(),r=i[0],a=i[i.length-1];return void(e.shiftKey&&t===r?(e.preventDefault(),a.focus()):e.shiftKey||t!==a||(e.preventDefault(),r.focus()))}if("ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;const i=this.focusables(),r=i.indexOf(t);if(-1===r)return;const a="ArrowDown"===e.key?r+1:r-1;a<0||a>=i.length||(e.preventDefault(),i[a].focus())}}const Ke="gp-enum-floating-filter",Xe=n.css`
|
|
824
|
-
:host {
|
|
825
|
-
display: flex;
|
|
826
|
-
align-items: center;
|
|
827
|
-
gap: 4px;
|
|
828
|
-
width: 100%;
|
|
829
|
-
min-width: 0;
|
|
830
|
-
color: var(--ag-foreground-color, inherit);
|
|
831
|
-
font: inherit;
|
|
832
|
-
}
|
|
833
|
-
.${Ke}__summary {
|
|
834
|
-
flex: 1;
|
|
835
|
-
min-width: 0;
|
|
836
|
-
overflow: hidden;
|
|
837
|
-
text-overflow: ellipsis;
|
|
838
|
-
white-space: nowrap;
|
|
839
|
-
cursor: pointer;
|
|
840
|
-
opacity: 0.85;
|
|
841
|
-
}
|
|
842
|
-
.${Ke}__summary--inactive {
|
|
843
|
-
opacity: 0.5;
|
|
844
|
-
}
|
|
845
|
-
.${Ke}__clear {
|
|
846
|
-
flex: none;
|
|
847
|
-
border: none;
|
|
848
|
-
background: none;
|
|
849
|
-
color: inherit;
|
|
850
|
-
font: inherit;
|
|
851
|
-
line-height: 1;
|
|
852
|
-
padding: 2px 4px;
|
|
853
|
-
cursor: pointer;
|
|
854
|
-
border-radius: 3px;
|
|
855
|
-
opacity: 0.7;
|
|
856
|
-
}
|
|
857
|
-
.${Ke}__clear:hover {
|
|
858
|
-
opacity: 1;
|
|
859
|
-
background: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));
|
|
860
|
-
}
|
|
861
|
-
`;class qe{init(e){var t,i;this.params=e,this.formatLabel=Be(e.filterParams),this.eGui=document.createElement("div"),this.eGui.className=Ke,this.eRoot=this.eGui.attachShadow({mode:"open"}),Xe.addStylesTo(this.eRoot),this.eSummary=document.createElement("span"),this.eSummary.className=`${Ke}__summary`,this.eSummary.setAttribute("role","button"),this.eSummary.tabIndex=0,this.eSummary.addEventListener("click",()=>this.params.showParentFilter()),this.eSummary.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.params.showParentFilter())}),this.eRoot.appendChild(this.eSummary),this.eClear=document.createElement("button"),this.eClear.type="button",this.eClear.className=`${Ke}__clear`,this.eClear.textContent="✕",this.eClear.setAttribute("aria-label","Clear filter"),this.eClear.title="Clear filter",this.eClear.hidden=!0,this.eClear.addEventListener("click",()=>{this.params.parentFilterInstance(e=>{var t,i;null===(i=(t=e).clear)||void 0===i||i.call(t)})}),this.eRoot.appendChild(this.eClear),this.onParentModelChanged(null!==(i=null===(t=e.currentParentModel)||void 0===t?void 0:t.call(e))&&void 0!==i?i:null)}getGui(){return this.eGui}onParentModelChanged(e){const t=He(e,this.formatLabel)||"All";this.eSummary.textContent=t,this.eSummary.title=t,this.eSummary.classList.toggle(`${Ke}__summary--inactive`,!e),this.eClear.hidden=!e}destroy(){var e;null===(e=this.eGui)||void 0===e||e.remove()}}function je(e,t,i,r,a){var s;const o=null===(s=t.getColumn)||void 0===s?void 0:s.call(t,r);if(!o||i.hasAttribute("data-ag-column-drag-bound"))return null;const{dragAndDrop:n,gos:l}=e;if(!n||!l)return null;if(l.get("allowDragFromColumnsToolPanel")||"function"!=typeof t.setGridOption||t.setGridOption("allowDragFromColumnsToolPanel",!0),!l.get("allowDragFromColumnsToolPanel"))return null;i.setAttribute("data-ag-column-drag-bound",""),i.draggable=!1;let d=!l.get("suppressDragLeaveHidesColumns");const c={type:Le.qRA.ToolPanel,eElement:i,dragItemName:a,getDefaultIconName:()=>d?"hide":"notAllowed",getDragItem:()=>function(e){return{columns:[e],visibleState:{[e.getColId()]:e.isVisible()}}}(o),onDragStarted:()=>{d=!l.get("suppressDragLeaveHidesColumns")}};return n.addDragSource(c,!0),{source:c,remove:()=>{i.removeAttribute("data-ag-column-drag-bound"),i.classList.remove("grid-pro-columns-handle-grid-drag"),n.removeDragSource(c)}}}const Ye="selected-first";function We(e){return"ag-grid"===e?"ag-grid":Ye}function Qe(e){const t=e.getColDef();if(t.suppressColumnsToolPanel)return null;if("function"==typeof e.isPrimary&&!e.isPrimary())return null;const i=e.getColId();return{colId:i,headerName:String(t.headerName||t.field||i||""),visible:e.isVisible(),lockVisible:Boolean(t.lockVisible)}}function Je(e){return e.map(Qe).filter(e=>null!=e)}function Ze(e,t,i=Ye,r){if("ag-grid"===i){if(!(null==r?void 0:r.length))return t;const e=new Map(t.map(e=>[e.getColId(),e])),i=[],a=new Set;for(const t of r){const r=t.colId;if(null==r||a.has(r))continue;const s=e.get(r);s&&(i.push(s),a.add(r))}for(const e of t){const t=e.getColId();a.has(t)||(i.push(e),a.add(t))}return i}const a=new Set(e.map(e=>e.getColId()));return[...e,...t.filter(e=>!a.has(e.getColId()))]}function et(e,t,i=Ye){const r=t.trim().toLowerCase(),a=e.filter(e=>!r||e.headerName.toLowerCase().includes(r));return"ag-grid"===i?{selected:a,unselected:[]}:{selected:a.filter(e=>e.visible),unselected:a.filter(e=>!e.visible).sort((e,t)=>e.headerName.localeCompare(t.headerName,void 0,{sensitivity:"base"}))}}function tt(e,t,i,r){const a=[...t],s=a.indexOf(i),o=a.indexOf(r);if(s<0||o<0||i===r)return null;a.splice(s,1),a.splice(o,0,i);let n=0;return e.map(e=>{if(!t.includes(e))return e;const i=a[n];return n+=1,i})}function it(e,t){const i=new Map(e.map(e=>[e.colId,e])),r=new Set(t);let a=0;return e.map(e=>{if(e.hide||!e.colId||!r.has(e.colId))return e;const s=t[a];return a+=1,s&&i.get(s)||e})}var rt=i(34713);const at=(e="foundation")=>{const t=`${e}-text-field`,i=`${e}-checkbox`,r=n.html`
|
|
862
|
-
<div
|
|
863
|
-
class="${e=>"grid-pro-columns-item"+(e.visible?"":" grid-pro-columns-item--unselected")}"
|
|
864
|
-
data-col-id="${e=>e.colId}"
|
|
865
|
-
data-test-id="${e=>`grid-pro-columns-item-${e.colId}`}"
|
|
866
|
-
>
|
|
867
|
-
<${i}
|
|
868
|
-
class="grid-pro-columns-checkbox"
|
|
869
|
-
data-test-id="${e=>`grid-pro-columns-check-${e.colId}`}"
|
|
870
|
-
:checked="${e=>e.visible}"
|
|
871
|
-
?disabled="${e=>e.lockVisible}"
|
|
872
|
-
@click="${(e,t)=>t.parent.onCheckboxClick(e,t.event)}"
|
|
873
|
-
></${i}>
|
|
874
|
-
<span
|
|
875
|
-
class="grid-pro-columns-handle"
|
|
876
|
-
data-test-id="${e=>`grid-pro-columns-handle-${e.colId}`}"
|
|
877
|
-
aria-hidden="${(e,t)=>{const i=t.parent;return String(!(i.canDrag&&(e.visible||i.canDragToGrid(e))))}}"
|
|
878
|
-
>
|
|
879
|
-
⋮⋮
|
|
880
|
-
</span>
|
|
881
|
-
<span class="grid-pro-columns-label">${e=>e.headerName}</span>
|
|
882
|
-
</div>
|
|
883
|
-
`;return n.html`
|
|
884
|
-
<div
|
|
885
|
-
class="column-selection"
|
|
886
|
-
part="column-selection"
|
|
887
|
-
data-test-id="column-selection"
|
|
888
|
-
${(0,n.ref)("root")}
|
|
889
|
-
>
|
|
890
|
-
<${e}-button
|
|
891
|
-
${(0,n.ref)("buttonEl")}
|
|
892
|
-
part="column-selection-button"
|
|
893
|
-
exportparts="control: column-selection-button-control, content: column-selection-button-content"
|
|
894
|
-
class="column-selection-button"
|
|
895
|
-
appearance="neutral"
|
|
896
|
-
data-state="${e=>e.open?"hover":void 0}"
|
|
897
|
-
aria-pressed="${e=>e.open?"true":"false"}"
|
|
898
|
-
@click=${e=>e.toggle()}
|
|
899
|
-
>
|
|
900
|
-
<${e}-icon size="lg" name="columns" slot="start"></${e}-icon>
|
|
901
|
-
${e=>e.label}
|
|
902
|
-
</${e}-button>
|
|
903
|
-
<div
|
|
904
|
-
${(0,n.ref)("panelEl")}
|
|
905
|
-
class="column-selection-panel"
|
|
906
|
-
part="column-selection-panel"
|
|
907
|
-
data-test-id="column-selection-panel"
|
|
908
|
-
popover="manual"
|
|
909
|
-
>
|
|
910
|
-
<div class="grid-pro-columns-toolbar" data-test-id="grid-pro-columns-toolbar">
|
|
911
|
-
<${i}
|
|
912
|
-
class="grid-pro-columns-select-all"
|
|
913
|
-
data-test-id="grid-pro-columns-select-all"
|
|
914
|
-
:checked="${e=>e.selectAllChecked}"
|
|
915
|
-
:indeterminate="${e=>e.selectAllIndeterminate}"
|
|
916
|
-
aria-checked="${e=>e.selectAllIndeterminate?"mixed":e.selectAllChecked?"true":"false"}"
|
|
917
|
-
@click="${(e,t)=>e.onSelectAllClick(t.event)}"
|
|
918
|
-
></${i}>
|
|
919
|
-
<${t}
|
|
920
|
-
class="grid-pro-columns-search"
|
|
921
|
-
placeholder="Search"
|
|
922
|
-
data-test-id="grid-pro-columns-search"
|
|
923
|
-
:value="${e=>e.search}"
|
|
924
|
-
@input="${(e,t)=>e.onSearchInput(t.event.target.value)}"
|
|
925
|
-
></${t}>
|
|
926
|
-
</div>
|
|
927
|
-
<div class="grid-pro-columns-list" data-test-id="grid-pro-columns-list">
|
|
928
|
-
<div class="grid-pro-columns-section" data-test-id="grid-pro-columns-selected">
|
|
929
|
-
${(0,n.repeat)(e=>e.selectedItems,r,{recycle:!1})}
|
|
930
|
-
</div>
|
|
931
|
-
<div class="grid-pro-columns-section" data-test-id="grid-pro-columns-unselected">
|
|
932
|
-
${(0,n.repeat)(e=>e.unselectedItems,r,{recycle:!1})}
|
|
933
|
-
</div>
|
|
934
|
-
</div>
|
|
935
|
-
</div>
|
|
936
|
-
</div>
|
|
937
|
-
`},st=at(),ot="gridProColumnDragBridge";function nt(e){var t,i;if(!(null==e?void 0:e.dragAndDrop)||!e.gos)return!1;const r=null!==(t=e.gos.get("context"))&&void 0!==t?t:null===(i=e.gridOptions)||void 0===i?void 0:i.context,a=null==r?void 0:r[ot];return!!a&&(a.dragAndDrop=e.dragAndDrop,a.gos=e.gos,!0)}const lt={moduleName:"GridProColumnDragBridge",version:Le.Vc.version,beans:[class{constructor(){this.beanName="gridProColumnDragBridgeInit",this.beans=null}wireBeans(e){this.beans=e}postConstruct(){nt(this.beans),queueMicrotask(()=>nt(this.beans))}}],dependsOn:[Le.Vc]};function dt(e){return ct(null==e?void 0:e[ot])}function ct(e){return(null==e?void 0:e.dragAndDrop)&&(null==e?void 0:e.gos)?e:null}function gt(e){var t;return dt(null===(t=null==e?void 0:e.getGridOption)||void 0===t?void 0:t.call(e,"context"))}function ht(e,t){const i=null!=t?t:null==e?void 0:e.gridApi;if(!i)return null;if("function"==typeof i.setColumnsVisible&&"function"==typeof i.getColumns)return i;const r=null==e?void 0:e.columnApi;return r?new Proxy(i,{get(e,t,i){switch(t){case"getColumns":return()=>{var e,t;return null!==(t=null===(e=r.getAllGridColumns)||void 0===e?void 0:e.call(r))&&void 0!==t?t:[]};case"getAllDisplayedColumns":return()=>{var e,t;return null!==(t=null===(e=r.getAllDisplayedColumns)||void 0===e?void 0:e.call(r))&&void 0!==t?t:[]};case"getColumnState":return()=>{var e,t;return null!==(t=null===(e=r.getColumnState)||void 0===e?void 0:e.call(r))&&void 0!==t?t:[]};case"setColumnsVisible":return(e,t)=>{var i;for(const a of e)null===(i=r.setColumnVisible)||void 0===i||i.call(r,a,t)};case"applyColumnState":return e=>{var t;return null===(t=r.applyColumnState)||void 0===t?void 0:t.call(r,e)};default:return Reflect.get(e,t,i)}}}):null}const ut=new WeakMap;class pt extends((0,xe.S)(ae.FoundationElement)){constructor(){super(...arguments),this.label="Column Selection",this.sort=Ye,this.open=!1,this.gridApi=null,this.gridHost=null,this.search="",this.selectedItems=[],this.unselectedItems=[],this.selectAllChecked=!1,this.selectAllIndeterminate=!1,this.resolvedSort=Ye,this.dragColId=null,this.dragOverElement=null,this.dragBindingAbort=null,this.agDragBindings=[],this.columnDragBridge=null,this.dragBridgeRetryId=0,this.pendingVisibility=new Map,this.boundRefresh=()=>this.refresh(),this.handleClickOutside=e=>{this.open&&this.root&&e.isTrusted&&(e.composedPath().includes(this.root)||(this.open=!1))}}get pickerApi(){var e;return null!==(e=ut.get(this))&&void 0!==e?e:null}set pickerApi(e){ut.set(this,e)}get pickerRoot(){var e;return null!==(e=this.panelEl)&&void 0!==e?e:null}get canDrag(){return!this.search.trim()}canDragToGrid(e){return!(!this.canDrag||e.lockVisible)&&("ag-grid"===this.resolvedSort||!e.visible)}get toggleableItems(){return[...this.selectedItems,...this.unselectedItems].filter(e=>!e.lockVisible)}openChanged(e){void 0!==e&&this.$fastController.isConnected&&(this.open?n.DOM.queueUpdate(()=>{this.subscribePicker(),this.refresh(),this.showPanel(),requestAnimationFrame(()=>{this.open&&document.addEventListener("mousedown",this.handleClickOutside)})}):(document.removeEventListener("mousedown",this.handleClickOutside),this.unsubscribePicker(),this.hidePanel()))}sortChanged(){this.resolvedSort=We(this.sort),this.open&&this.refresh()}gridApiChanged(){this.open&&this.resubscribePicker()}gridHostChanged(){this.open&&this.resubscribePicker()}panelElChanged(){this.open&&n.DOM.queueUpdate(()=>{this.refresh(),this.showPanel()})}connectPicker(){this.subscribePicker(),this.refresh()}toggle(){this.open=!this.open}close(){this.open=!1}refresh(){var e,t,i,r,a,s,o,l,d;if(this.resolvedSort=We(this.sort),!this.pickerApi)return;const c=this.pickerRoot,g=document.activeElement,h=g&&(null==c?void 0:c.contains(g))?g.getAttribute("data-test-id"):null,u=null!==(i=null===(t=(e=this.pickerApi).getAllDisplayedColumns)||void 0===t?void 0:t.call(e))&&void 0!==i?i:[],p=null!==(s=null===(a=(r=this.pickerApi).getColumns)||void 0===a?void 0:a.call(r))&&void 0!==s?s:[],m=null!==(d=null===(l=(o=this.pickerApi).getColumnState)||void 0===l?void 0:l.call(o))&&void 0!==d?d:[],v=Ze(u,p,this.resolvedSort,m),f=this.applyPendingVisibility(Je(v)),{selected:b,unselected:C}=et(f,this.search,this.resolvedSort);this.selectedItems=b,this.unselectedItems=C,this.syncSelectAllState(),h&&c&&n.DOM.queueUpdate(()=>{var e;null===(e=c.querySelector(`[data-test-id="${h}"]`))||void 0===e||e.focus()}),n.DOM.queueUpdate(()=>{this.bindRowDrag()})}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),this.hidePanel(),this.unsubscribePicker(),this.open=!1,super.disconnectedCallback()}showPanel(){const e=this.panelEl;if(e&&"function"==typeof e.showPopover&&!e.matches(":popover-open"))try{e.showPopover({source:this.buttonEl})}catch(t){e.showPopover()}}hidePanel(){const e=this.panelEl;e&&"function"==typeof e.hidePopover&&e.matches(":popover-open")&&e.hidePopover()}subscribePicker(){var e,t,i;const r=ht(this.gridHost,this.gridApi);r&&this.pickerApi===r||(this.unsubscribePicker(),r&&(this.pickerApi=r,this.columnDragBridge=null!==(i=null===(t=null===(e=this.gridHost)||void 0===e?void 0:e.getColumnDragBridge)||void 0===t?void 0:t.call(e))&&void 0!==i?i:null,this.resolvedSort=We(this.sort),this.pickerApi.addEventListener("columnVisible",this.boundRefresh),this.pickerApi.addEventListener("columnMoved",this.boundRefresh),this.pickerApi.addEventListener("newColumnsLoaded",this.boundRefresh),this.pickerApi.addEventListener("displayedColumnsChanged",this.boundRefresh)))}resubscribePicker(){this.subscribePicker(),this.refresh()}unsubscribePicker(){var e;this.dragBridgeRetryId+=1,null===(e=this.dragBindingAbort)||void 0===e||e.abort(),this.dragBindingAbort=null;for(const e of this.agDragBindings)e.remove();this.agDragBindings=[],this.pendingVisibility.clear(),this.pickerApi&&(this.pickerApi.removeEventListener("columnVisible",this.boundRefresh),this.pickerApi.removeEventListener("columnMoved",this.boundRefresh),this.pickerApi.removeEventListener("newColumnsLoaded",this.boundRefresh),this.pickerApi.removeEventListener("displayedColumnsChanged",this.boundRefresh)),this.pickerApi=null}syncSelectAllState(){const e=this.toggleableItems,t=e.filter(e=>e.visible).length;this.selectAllChecked=e.length>0&&t===e.length,this.selectAllIndeterminate=t>0&&t<e.length}applyPendingVisibility(e){return this.pendingVisibility.size?e.map(e=>{const t=this.pendingVisibility.get(e.colId);return void 0===t?e:(e.visible===t&&this.pendingVisibility.delete(e.colId),Object.assign(Object.assign({},e),{visible:t}))}):e}resolveDragBridge(){var e;return null!==(e=ct(this.columnDragBridge))&&void 0!==e?e:gt(this.pickerApi)}bindRowDrag(){var e;null===(e=this.dragBindingAbort)||void 0===e||e.abort(),this.dragBindingAbort=null;for(const e of this.agDragBindings)e.remove();this.agDragBindings=[];const t=this.pickerRoot;if(!this.canDrag||!this.pickerApi||!t)return;const i=this.resolveDragBridge(),r=t.querySelectorAll(".grid-pro-columns-item");if(!r.length)return;const a=new AbortController;this.dragBindingAbort=a;const{signal:s}=a;let o=!1,n=!1;r.forEach(e=>{const t=e.dataset.colId,r=e.querySelector(".grid-pro-columns-handle");if(!t||!r)return;r.classList.remove("grid-pro-columns-handle-grid-drag","grid-pro-columns-handle-panel-drag"),r.removeAttribute("draggable");const a=[...this.selectedItems,...this.unselectedItems].find(e=>e.colId===t);if(!a)return;const l=this.canDragToGrid(a),d="selected-first"===this.resolvedSort&&a.visible&&!e.classList.contains("grid-pro-columns-item--unselected");if(l)if(i){const e=je(i,this.pickerApi,r,t,a.headerName);if(e&&(n=!0,this.agDragBindings.push(e),r.classList.add("grid-pro-columns-handle-grid-drag"),!d))return}else o=!0;d&&(r.draggable=!0,r.classList.add("grid-pro-columns-handle-panel-drag"),r.addEventListener("dragstart",i=>{this.onDragStart(i,t,e)},{signal:s}),r.addEventListener("dragend",()=>this.onDragEnd(),{signal:s}),e.addEventListener("dragover",t=>{this.onDragOver(t,e)},{signal:s}),e.addEventListener("dragleave",t=>{this.onDragLeave(t,e)},{signal:s}),e.addEventListener("drop",e=>{this.onDrop(e,t)},{signal:s}))}),o&&!n&&this.scheduleDragBridgeRetry()}scheduleDragBridgeRetry(e=0){if(e>30||!this.pickerApi||!this.canDrag)return;this.dragBridgeRetryId+=1;const t=this.dragBridgeRetryId;requestAnimationFrame(()=>{t===this.dragBridgeRetryId&&this.isConnected&&(this.resolveDragBridge()?this.bindRowDrag():this.scheduleDragBridgeRetry(e+1))})}onSearchInput(e){this.search=e,this.refresh()}onSelectAllClick(e){var t,i;if(null===(t=e.preventDefault)||void 0===t||t.call(e),null===(i=e.stopImmediatePropagation)||void 0===i||i.call(e),!this.pickerApi)return;const r=this.toggleableItems;if(!r.length)return;const a=!this.selectAllChecked,s=r.filter(e=>e.visible!==a).map(e=>e.colId);if(s.length){for(const e of s)this.pendingVisibility.set(e,a);this.pickerApi.setColumnsVisible(s,a),this.refresh()}}onCheckboxClick(e,t){t.preventDefault(),t.stopPropagation(),this.onVisibilityChange(e,!e.visible)}onVisibilityChange(e,t){!e.lockVisible&&this.pickerApi&&e.visible!==t&&(this.pendingVisibility.set(e.colId,t),this.pickerApi.setColumnsVisible([e.colId],t),this.refresh())}onDragStart(e,t,i){this.canDrag?(this.dragColId=t,e.dataTransfer&&(e.dataTransfer.setData("text/plain",t),e.dataTransfer.effectAllowed="move"),(null!=i?i:e.currentTarget).classList.add("dragging")):e.preventDefault()}onDragEnd(){var e;this.dragColId=null,this.clearDragOverHighlight(),null===(e=this.pickerRoot)||void 0===e||e.querySelectorAll(".grid-pro-columns-item.dragging").forEach(e=>{e.classList.remove("dragging")})}onDragOver(e,t){var i;this.canDrag&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),this.dragOverElement!==t&&(null===(i=this.dragOverElement)||void 0===i||i.classList.remove("drag-over"),this.dragOverElement=t,t.classList.add("drag-over")))}onDragLeave(e,t){this.dragOverElement!==t||t.contains(e.relatedTarget)||(t.classList.remove("drag-over"),this.dragOverElement=null)}onDrop(e,t){var i;e.preventDefault(),this.clearDragOverHighlight();const r=this.dragColId||(null===(i=e.dataTransfer)||void 0===i?void 0:i.getData("text/plain"));r&&this.reorderSelected(r,t)}clearDragOverHighlight(){var e;null===(e=this.dragOverElement)||void 0===e||e.classList.remove("drag-over"),this.dragOverElement=null}reorderSelected(e,t){var i,r,a,s,o,n,l,d,c;if(!this.pickerApi||!this.pickerApi.getColumnState||!this.pickerApi.applyColumnState)return;const g=null!==(a=null===(r=(i=this.pickerApi).getAllDisplayedColumns)||void 0===r?void 0:r.call(i))&&void 0!==a?a:[],h=null!==(n=null===(o=(s=this.pickerApi).getColumns)||void 0===o?void 0:o.call(s))&&void 0!==n?n:[],u=null!==(c=null===(d=(l=this.pickerApi).getColumnState)||void 0===d?void 0:d.call(l))&&void 0!==c?c:[],p=Je(Ze(g,h,this.resolvedSort,u)),m=p.filter(e=>e.visible).map(e=>e.colId),{selected:v}=et(p,this.search,this.resolvedSort),f=tt(m,"selected-first"===this.resolvedSort?v.map(e=>e.colId):v.filter(e=>e.visible).map(e=>e.colId),e,t);f&&this.pickerApi.applyColumnState({state:it(u,f),applyOrder:!0})}}(0,r.Cg)([n.attr],pt.prototype,"label",void 0),(0,r.Cg)([n.attr],pt.prototype,"sort",void 0),(0,r.Cg)([n.observable],pt.prototype,"open",void 0),(0,r.Cg)([n.observable],pt.prototype,"gridApi",void 0),(0,r.Cg)([n.observable],pt.prototype,"gridHost",void 0),(0,r.Cg)([n.observable],pt.prototype,"root",void 0),(0,r.Cg)([n.observable],pt.prototype,"buttonEl",void 0),(0,r.Cg)([n.observable],pt.prototype,"panelEl",void 0),(0,r.Cg)([n.observable],pt.prototype,"search",void 0),(0,r.Cg)([n.observable],pt.prototype,"selectedItems",void 0),(0,r.Cg)([n.observable],pt.prototype,"unselectedItems",void 0),(0,r.Cg)([n.observable],pt.prototype,"selectAllChecked",void 0),(0,r.Cg)([n.observable],pt.prototype,"selectAllIndeterminate",void 0);const mt=pt.compose({baseName:"column-selection",template:at("foundation"),styles:rt.H});var vt=i(63296),ft=i(81876),bt=i(48707),Ct=i(96730),yt=i(57963),St=i(24669),wt=i(49964),Rt=i(90509),Et=i(79270),At=i(35610),kt=i(21281),Dt=i(34193),Ot=i(44561);class It{constructor(e){this.rowData=new Map,this.pendingBlocks=new Set,this.deliveredRowCount=0,this.streamStarted=!1,this.moreRowsInFlight=!1,this.hasCriteria=!1,this.viewTruncationWarned=!1,this.createSnapshotFunc=e.createSnapshotFunc,this.createDataserverStreamFunc=e.createDataserverStreamFunc,this.getMoreRowsFunc=e.getMoreRowsFunc,this.onRowsInvalidatedFunc=e.onRowsInvalidatedFunc,this.onRowsUpdatedFunc=e.onRowsUpdatedFunc,this.errorHandlerFunc=e.errorHandlerFunc,this.resourceName=e.resourceName,this.resourceParams=Object.assign({},e.resourceParams),this.resourceIndexes=e.resourceIndexes,this.resourceColDefs=e.resourceColDefs,this.maxRows=e.maxRows,this.rowId=e.rowId,this.baseCriteria=e.baseCriteria||"",this.isRequestServer=e.isRequestServer}buildRequestServerParams(e,t,i){const r=Object.assign({},this.resourceParams);return r.DETAILS=Object.assign({},r.DETAILS),r.DETAILS.MAX_ROWS=this.maxRows,r.DETAILS.OFFSET=e,t?r.DETAILS.CRITERIA_MATCH=t:delete r.DETAILS.CRITERIA_MATCH,r.DETAILS.ORDER_BY=i.orderBy||`${this.rowId} ASC`,r}buildDataserverLogonParams(e,t){const i=Object.assign({},this.resourceParams);return i.MAX_ROWS=this.maxRows,delete i.VIEW_NUMBER,e?i.CRITERIA_MATCH=e:delete i.CRITERIA_MATCH,t.orderBy?(i.ORDER_BY=t.orderBy,i.REVERSE=t.reverse):(delete i.ORDER_BY,delete i.REVERSE),i}getLastRow(e,t,i,r){return"MORE_ROWS"in e&&!1===e.MORE_ROWS?t+i:!r&&"ROWS_COUNT"in e&&"number"==typeof e.ROWS_COUNT?e.ROWS_COUNT:-1}getRows(e){return(0,r.sH)(this,void 0,void 0,function*(){Ne.v.debug("Infinite getRows called",{startRow:e.startRow,endRow:e.endRow,isRequestServer:this.isRequestServer});try{const t=(0,Ot.P4)(e.filterModel,this.resourceColDefs),i=[this.baseCriteria,t].filter(Boolean).join(" && "),r=function(e,t,i=!1){if(!e||0===e.length)return{orderBy:null,reverse:!1};const r=e[0],a=r.colId,s="desc"===r.sort;if(i)return{orderBy:`${a} ${s?"DESC":"ASC"}`,reverse:!1};for(const[e,i]of t.entries())if(e&&i.includes(a))return{orderBy:e,reverse:s};return Ne.v.warn(`Column '${a}' is not part of any named INDEX. Server-side sorting is not available for this column.`),{orderBy:null,reverse:!1}}(e.sortModel,this.resourceIndexes,this.isRequestServer);if(!this.isRequestServer)return void this.getDataserverRows(e,i,r);const a=this.buildRequestServerParams(e.startRow,i,r);Ne.v.debug("Infinite datasource request params",a);const s=yield this.createSnapshotFunc(a);if(!s)return void e.failCallback();if("REPLY"in s&&Array.isArray(s.REPLY)){const t=s.REPLY,r=this.getLastRow(s,e.startRow,t.length,Boolean(i));return void e.successCallback(t,r)}e.successCallback([],e.startRow)}catch(t){Ne.v.error("Error in infinite getRows:",t),this.errorHandlerFunc&&this.errorHandlerFunc(t instanceof Error?t.message:String(t),"unknown"),e.failCallback()}})}getDataserverRows(e,t,i){if(!this.createDataserverStreamFunc||!this.getMoreRowsFunc)return Ne.v.error("Infinite DATASERVER paging requires a stream and a getMoreRows function"),void e.failCallback();const r=JSON.stringify(Object.assign({criteria:t},i));void 0!==this.subscriptionKey&&this.subscriptionKey!==r&&this.teardownDataserverSubscription(),this.subscriptionKey=r;const a=Number.isFinite(Number(e.startRow))?Number(e.startRow):0,s=Number.isFinite(Number(e.endRow))?Number(e.endRow):a+this.maxRows,o={startRow:a,endRow:s,settled:!1,success:e.successCallback,fail:e.failCallback};if(this.streamStarted&&(this.rowData.size>=s||!1===this.moreRows))this.settleBlock(o,!0);else{if(o.timer=this.createBlockTimer(o),this.pendingBlocks.add(o),!this.dataserverStream){const e=this.buildDataserverLogonParams(t,i);return this.hasCriteria=Boolean(e.CRITERIA_MATCH),this.dataserverStream=this.createDataserverStreamFunc(e),void(this.dataserverStreamSubscription=this.dataserverStream.subscribe(e=>this.handleDataserverMessage(e)))}this.pumpMoreRows()}}pumpMoreRows(){this.moreRowsInFlight||!1===this.moreRows||0===this.pendingBlocks.size||this.dataserverStream&&this.dataserverStreamSubscription&&this.sourceRef&&(this.moreRowsInFlight=!0,this.requestMoreRows())}requestMoreRows(){return(0,r.sH)(this,void 0,void 0,function*(){if(this.dataserverStreamSubscription&&this.sourceRef)try{yield this.getMoreRowsFunc(this.sourceRef)}catch(e){if(this.moreRowsInFlight=!1,(null==e?void 0:e.status)===It.HTTP_NOT_FOUND)return Ne.v.warn(`Infinite DATASERVER paging is not available on this connection (MORE_ROWS answered 404, expected over HTTP/feature.forceHttp). ${this.resourceName} is truncated to the ${this.rowData.size} row(s) already delivered; use a websocket connection, or a REQUEST_SERVER resource, to page further.`),this.moreRows=!1,this.viewTruncationWarned=!0,void this.settleCoveredBlocks();Ne.v.error("Infinite DATASERVER MORE_ROWS failed:",e),this.failAllPendingBlocks()}else this.moreRowsInFlight=!1})}handleDataserverMessage(e){var t,i,r,a,s,o;const n=null==e?void 0:e.MESSAGE_TYPE;if(n===kt.Go.LOGOFF_ACK||n===kt.Go.MSG_NACK)return null===(t=this.errorHandlerFunc)||void 0===t||t.call(this,n===kt.Go.LOGOFF_ACK?`Connection lost to ${this.resourceName}`:`Authentication failed for ${this.resourceName}`,"connection"),void this.teardownDataserverSubscription();this.sourceRef=null!==(i=null==e?void 0:e.SOURCE_REF)&&void 0!==i?i:this.sourceRef;const l=(null==e?void 0:e.ROW)?(0,Dt.d)(e,this.rowId):void 0;if((null!==(a=null===(r=null==l?void 0:l.updates)||void 0===r?void 0:r.length)&&void 0!==a?a:0)>0||(null!==(o=null===(s=null==l?void 0:l.deletes)||void 0===s?void 0:s.length)&&void 0!==o?o:0)>0)return this.streamStarted=!0,void this.notifyLiveChange(l);const d=this.moreRowsInFlight||this.pendingBlocks.size>0||!this.streamStarted;if(this.moreRowsInFlight=!1,void 0!==(null==e?void 0:e.MORE_ROWS)&&(this.moreRows=e.MORE_ROWS),l){if(void 0!==e.ROWS_COUNT&&void 0===this.serverRowsCount&&(this.serverRowsCount=e.ROWS_COUNT),!d)return this.streamStarted=!0,void this.notifyLiveChange(l);this.accumulate(l),this.refreshPendingDeadlines()}this.streamStarted=!0,this.settleCoveredBlocks(),this.pumpMoreRows()}notifyLiveChange(e){var t,i,r,a,s,o,n,l,d,c,g,h,u,p;const m=(null!==(i=null===(t=e.inserts)||void 0===t?void 0:t.length)&&void 0!==i?i:0)>0||(null!==(a=null===(r=e.deletes)||void 0===r?void 0:r.length)&&void 0!==a?a:0)>0,v=(null!==(o=null===(s=e.updates)||void 0===s?void 0:s.length)&&void 0!==o?o:0)>0;if(m)return Ne.v.debug("Infinite DATASERVER live change invalidates the cache",{inserts:null!==(l=null===(n=e.inserts)||void 0===n?void 0:n.length)&&void 0!==l?l:0,deletes:null!==(c=null===(d=e.deletes)||void 0===d?void 0:d.length)&&void 0!==c?c:0}),this.reset(),void(null===(g=this.onRowsInvalidatedFunc)||void 0===g||g.call(this));v&&(this.accumulate(e),Ne.v.debug("Infinite DATASERVER live update patched into the cache",{updates:null!==(u=null===(h=e.updates)||void 0===h?void 0:h.length)&&void 0!==u?u:0}),null===(p=this.onRowsUpdatedFunc)||void 0===p||p.call(this))}refreshPendingDeadlines(){for(const e of this.pendingBlocks)clearTimeout(e.timer),e.timer=this.createBlockTimer(e)}createBlockTimer(e){return setTimeout(()=>{Ne.v.warn(`Infinite DATASERVER block ${e.startRow}-${e.endRow} for ${this.resourceName} timed out waiting for rows; resolving with ${this.rowData.size} accumulated row(s).`),this.settleBlock(e,!0)},It.BLOCK_RESOLVE_TIMEOUT_MS)}accumulate(e){var t,i,r;const a=new Map(this.rowData);null===(t=e.inserts)||void 0===t||t.forEach(e=>{const t=null==e?void 0:e[this.rowId];void 0!==t&&a.set(t,e)}),null===(i=e.updates)||void 0===i||i.forEach(e=>{const t=null==e?void 0:e[this.rowId];if(void 0===t)return;const i=a.get(t);a.set(t,i?Object.assign(Object.assign({},i),e):e)}),null===(r=e.deletes)||void 0===r||r.forEach(e=>{const t=null==e?void 0:e[this.rowId];if(void 0===t)return;const i=this.cacheIndexOf(a,t);-1===i||this.deliveredRowCount>0&&i<this.deliveredRowCount||a.delete(t)}),this.rowData=a}cacheIndexOf(e,t){let i=0;for(const r of e.keys()){if(r===t)return i;i+=1}return-1}settleCoveredBlocks(){for(const e of[...this.pendingBlocks])(this.rowData.size>=e.endRow||!1===this.moreRows)&&this.settleBlock(e,!0)}settleBlock(e,t){var i;if(e.settled)return;if(e.settled=!0,this.pendingBlocks.delete(e),clearTimeout(e.timer),!t)return void e.fail();const r=[...this.rowData.values()].slice(e.startRow,e.endRow);this.deliveredRowCount=Math.max(this.deliveredRowCount,e.startRow+r.length);const a=!1===this.moreRows?this.rowData.size:this.hasCriteria?-1:null!==(i=this.serverRowsCount)&&void 0!==i?i:-1;this.warnIfViewTruncated(),Ne.v.debug("Infinite DATASERVER block settled",{startRow:e.startRow,endRow:e.endRow,rows:r.length,cached:this.rowData.size,lastRow:a}),e.success(r,a)}warnIfViewTruncated(){var e,t;this.viewTruncationWarned||!1!==this.moreRows||this.hasCriteria||void 0===this.serverRowsCount||this.rowData.size>=this.serverRowsCount||(this.viewTruncationWarned=!0,Ne.v.warn(`${this.resourceName} stopped at ${this.rowData.size} of ${this.serverRowsCount} rows: the DATASERVER view is capped by MAX_VIEW (${null!==(t=null===(e=this.resourceParams)||void 0===e?void 0:e.MAX_VIEW)&&void 0!==t?t:"server default"}). Raise max-view past the row count to reach the rest.`))}failAllPendingBlocks(){for(const e of[...this.pendingBlocks])this.settleBlock(e,!1)}reset(){this.teardownDataserverSubscription()}teardownDataserverSubscription(){var e;this.failAllPendingBlocks(),null===(e=this.dataserverStreamSubscription)||void 0===e||e.unsubscribe(),this.dataserverStreamSubscription=void 0,this.dataserverStream=void 0,this.subscriptionKey=void 0,this.sourceRef=void 0,this.rowData=new Map,this.deliveredRowCount=0,this.streamStarted=!1,this.serverRowsCount=void 0,this.hasCriteria=!1,this.viewTruncationWarned=!1,this.moreRows=void 0,this.moreRowsInFlight=!1}destroy(){this.teardownDataserverSubscription(),Ne.v.debug("GenesisInfiniteDatasource destroyed")}}It.BLOCK_RESOLVE_TIMEOUT_MS=1e4,It.HTTP_NOT_FOUND=404;var xt=i(62922);let Tt=class extends((0,xe.S)(At.ML)){constructor(){super(...arguments),this.request={},this.onDatasourceReady=e=>(0,r.sH)(this,void 0,void 0,function*(){if(!(yield this.initializeDatasource(this.datasourceOptions(),!0,!1)))return Ne.v.debug(`Genesis Datasource init failed for ${this.resourceName}`),this.clearRowData(),void this.setDisconnected(!0);this.$emit(Rt.V.dataInit),this.setDisconnected(!1),this.indexes=this.getResourceIndexes(this.datasource.availableIndexes,this.datasource.availableSortableFields);const e=(0,bt.X)(this.datasource.originalFieldDef),t=yield this.getAgColumnDefs(e);this.$emit(Et.c.schemaUpdated,{schema:t,metadata:e}),this.infiniteDatasource=new It({createSnapshotFunc:this.createSnapshot.bind(this),createDataserverStreamFunc:this.createDataserverStream.bind(this),getMoreRowsFunc:e=>this.connect.getMoreRows(e,0),onRowsInvalidatedFunc:()=>this.$emit(Et.c.refreshInfiniteCache,{purge:!0}),onRowsUpdatedFunc:()=>this.$emit(Et.c.refreshInfiniteCache,{purge:!1}),errorHandlerFunc:this.handleErrors.bind(this),resourceName:this.resourceName,resourceParams:this.isRequestServer?this.datasource.requestOnlyParams:this.datasource.dataserverOnlyParams,resourceIndexes:this.indexes,resourceColDefs:this.datasource.originalFieldDef,maxRows:+this.maxRows,rowId:this.rowId,baseCriteria:this.criteria,isRequestServer:this.isRequestServer}),this.$emit(Et.c.setInfiniteDatasource,{datasource:this.infiniteDatasource}),this.setupCommitTriggeredRefresh(),this.$emit(Et.c.addGridCssClass,{className:"grid-pro-infinite"}),this.$emit(Et.c.filtersRestored)})}resourceNameChanged(e,t){e&&e!==t&&n.DOM.queueUpdate(()=>(0,r.sH)(this,void 0,void 0,function*(){yield this.restart()}))}criteriaChanged(e,t){const i=e!==(0,Ct.Q)(t,";");this.infiniteDatasource&&i&&n.DOM.queueUpdate(()=>(0,r.sH)(this,void 0,void 0,function*(){yield this.reloadResourceData()}))}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;n.DOM.queueUpdate(()=>{e&&(this.init(),this.subscribeToConnection())})}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;n.DOM.queueUpdate(()=>(0,r.sH)(this,void 0,void 0,function*(){e&&(yield this.destroy(),this.unsubscribeFromConnection())}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}reloadResourceData(){return(0,r.sH)(this,void 0,void 0,function*(){var e,t;null===(t=null===(e=this.infiniteDatasource)||void 0===e?void 0:e.destroy)||void 0===t||t.call(e),this.infiniteDatasource=void 0,this.datasource.destroy(),this.$emit(Et.c.cacheFilterConfig),this.clearRowData(!1),this.setDisconnected(!1),this.$emit(Et.c.refreshInfiniteCache,{purge:!0}),yield this.init()})}init(){return(0,r.sH)(this,void 0,void 0,function*(){const e=Object.assign({getRowId:e=>e.data?String(e.data[this.rowId]):null,cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!1,unSortIcon:!0},rowBuffer:0,rowModelType:"infinite",suppressMultiSort:!0,cacheOverflowSize:2,maxConcurrentDatasourceRequests:1,infiniteInitialRowCount:1,maxBlocksInCache:10},this.deferredGridOptions);this.$emit(Et.c.initialize,{options:e,keepColDefsOnClearRowData:this.keepColDefsOnClearRowData}),this.clearReadyListener(),this.addEventListener(Et.c.ready,this.onDatasourceReady,{once:!0}),this.resourceName||this.handleErrors("Application not connected or invalid resource name, datasource will not work.","unknown")})}clearReadyListener(){this.removeEventListener(Et.c.ready,this.onDatasourceReady)}destroy(){return(0,r.sH)(this,void 0,void 0,function*(){var e,t;this.clearReadyListener(),this.teardownCommitTriggeredRefresh(),this.$emit(Et.c.removeGridCssClass,{className:"grid-pro-infinite"}),this.datasource.destroy(),this.clearRowData(),this.infiniteDatasource&&(null===(t=(e=this.infiniteDatasource).destroy)||void 0===t||t.call(e),this.infiniteDatasource=void 0),this.$emit(Et.c.setInfiniteDatasource,{datasource:null})})}restart(){return(0,r.sH)(this,void 0,void 0,function*(){yield this.destroy(),yield this.init()})}clearRowData(e=!0){this.rowData=new Map,e&&this.$emit(Et.c.dataCleared,{includeSchema:!0}),this.transactionData={remove:[]}}setupCommitTriggeredRefresh(){var e;this.teardownCommitTriggeredRefresh(),!this.isSnapshot&&this.isRequestServer&&(null===(e=this.pollTriggerEvents)||void 0===e?void 0:e.length)&&(this.commitResponseUnsubscribe=this.connectEvents.addCommitResponseListener(e=>{var t;const{eventName:i,response:r}=e.detail;this.pollTriggerEvents.includes(i)&&(null===(t=r.MESSAGE_TYPE)||void 0===t?void 0:t.endsWith("_ACK"))&&(Ne.v.debug(`Commit ACK for ${i}, re-reading the loaded blocks.`),this.$emit(Et.c.refreshInfiniteCache,{purge:!1}))}))}teardownCommitTriggeredRefresh(){var e;null===(e=this.commitResponseUnsubscribe)||void 0===e||e.call(this),this.commitResponseUnsubscribe=void 0}createSnapshot(){return(0,r.sH)(this,arguments,void 0,function*(e=null){return yield this.datasource.snapshot(e)})}createDataserverStream(e=null){return this.connect.stream(this.resourceName,()=>{},e=>{var t;Ne.v.error("Infinite DATASERVER paged stream error:",e),this.handleErrors((null===(t=null==e?void 0:e.receivedMessage)||void 0===t?void 0:t.ERROR)||(null==e?void 0:e.message),"stream")},e)}getAgColumnDefs(e){return(0,r.sH)(this,void 0,void 0,function*(){const t=this.generateColumnDefsFromMetadata(e,xt.O,xt.c),i=new Set;return this.indexes.forEach((e,t)=>{t&&e.forEach(e=>i.add(e))}),t.forEach(e=>{e.sortable=this.isRequestServer||i.has(e.field),this.datasource.criteriaOnlyRequest&&(e.filter=this.datasource.availableCriteriaFields.includes(e.field)?e.filter:null)}),t})}loadMore(){Ne.v.warn("loadMore() is not needed for Infinite Row Model - scrolling triggers data loading automatically")}};(0,r.Cg)([yt.dm],Tt.prototype,"connect",void 0),(0,r.Cg)([St.a4],Tt.prototype,"connectEvents",void 0),(0,r.Cg)([wt.yW],Tt.prototype,"datasource",void 0),(0,r.Cg)([n.observable],Tt.prototype,"request",void 0),Tt=(0,r.Cg)([(0,n.customElement)({name:"grid-pro-infinite-datasource"})],Tt);var Lt=i(18070),Pt=i(26062),Ft=i(32610),Gt=i(53397),$t=i(52540),Mt=i(49104),_t=i(88863),Nt=i(71964),Bt=i(73203),Ht=i(50103),Vt=i(23201);(0,Ie.N)(Pt.D,vt.L,ft.X,Tt,$e.O,Me.G,pt),Le.syG.registerModules([Le.n76,Le.Q90,Le.x6L,Le.YN8,Le.YzW,Le.Lt,Le.I95,Le.O4V,Le.H18,Le.mfG,Le.Iws,Le.nSw,Le.FUS,Le.Ss0,Le.tkg,Le.ZDV,Le.ZyC,Le.XG7,Le.VZy,Le.$I9,Le.dGu,Le.AJG,Le.c5B,Le.BG,Le.KIB,Le.Sko,Le.ZuP,Le.Vc,lt]);const zt="gridReady";class Ut extends((0,xe.S)(ae.FoundationElement)){getColumnDragBridge(){return this.columnDragBridge}rowDataChanged(e,t){this.initialised&&this.gridApi&&this.gridApi.setGridOption("rowData",t)}gridSlotChanged(){this.gridSlot&&!this.initialised&&this.agGridOptions&&this.initGrid()}enableColumnSelectionChanged(){this.syncColumnSelectionHostLayout()}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=Ge()(this.saveColumnState.bind(this),400),this.debouncedSaveFilterModel=Ge()(this.cacheFilterConfig.bind(this),400),this.debouncedNotifyDatasourceVisibleColumns=Ge()(this.notifyDatasourceVisibleColumns.bind(this),400),this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.enableCellFlashing=!1,this.enableRowFlashing=!1,this.columnDragBridge={},this.columnComponentName="grid-pro-column",this.themeMode="dark",this.statusBarConfig=s.o2,this.withStatusBar=!1,this.enableColumnSelection=!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=o.baseLayerLuminance.getValueFor(e.target);this.themeMode=t===o.StandardLuminance.DarkMode?"dark":"light"},this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.agAttributes={},this.agPropertiesMap=Ft.zI.reduce((e,t)=>(e[t.toLowerCase()]=t,e[(0,Ht.w)(t)]=t,e),{});const e=this.hideDatasourceError.bind(this);this.rootEventsListeners.push([Rt.V.dataInit,e],[Ft.yY.datasourceErrorClose,e],[Lt.L.error,this.handleBaseDatasourceError.bind(this)],[Lt.L.connected,e]),this.datasourceEventHandlers=[[Et.c.initialize,this.handleInitialize.bind(this)],[Et.c.dataLoaded,this.handleDataLoaded.bind(this)],[Et.c.dataChanged,this.handleDataChanged.bind(this)],[Et.c.schemaUpdated,this.handleSchemaUpdated.bind(this)],[Et.c.dataCleared,this.handleDataCleared.bind(this)],[Et.c.loadingStarted,this.handleLoadingStarted.bind(this)],[Et.c.loadingFinished,this.handleLoadingFinished.bind(this)],[Et.c.noDataAvailable,this.handleNoDataAvailable.bind(this)],[Et.c.filtersRestored,this.handleFiltersRestored.bind(this)],[Et.c.moreDataAvailable,this.handleMoreDataAvailable.bind(this)],[Et.c.error,this.handleDatasourceError.bind(this)],[Et.c.destroy,this.handleDatasourceDestroy.bind(this)],[Et.c.cacheFilterConfig,this.cacheFilterConfig.bind(this)],[Et.c.refreshServerSide,this.handleRefreshServerSide.bind(this)],[Et.c.setServerSideDatasource,this.handleSetServerSideDatasource.bind(this)],[Et.c.addGridCssClass,this.handleAddGridCssClass.bind(this)],[Et.c.removeGridCssClass,this.handleRemoveGridCssClass.bind(this)],[Et.c.applyServerSideTransaction,this.handleApplyServerSideTransaction.bind(this)],[Et.c.setInfiniteDatasource,this.handleSetInfiniteDatasource.bind(this)],[Et.c.refreshInfiniteCache,this.handleRefreshInfiniteCache.bind(this)]]}addEventListener(e,t,i){super.addEventListener(e,t,i),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:Ft.Ie.datasource};this.gridErrorItems=[...this.gridErrorItems,{detail:t.detail,type:t.type}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter(e=>e.type!==Ft.Ie.datasource),this.removeAttribute("ds-disconnected")}connectedCallback(){var e;super.connectedCallback(),this.syncColumnSelectionHostLayout(),this.disposed=!1;const t=null!==(e=this.provider)&&void 0!==e?e:this;this.luminanceSubscription=o.baseLayerLuminance.subscribe(this.luminanceObserver,t),this.gridAutosizingEnabled&&(this.visibilityObserverCleanup=(0,Te.j)(this,e=>{e&&this.debouncedColumnAutosize()})),this.rehydrationAttempted=!1,this.shouldRunConnect&&(this.rootEventsListeners.forEach(([e,t])=>{this.addEventListener(e,t)}),Ft.zI.forEach(e=>{const t=function(e,t){let i=Object.getPrototypeOf(e);for(;i&&i!==HTMLElement.prototype;){const e=Object.getOwnPropertyDescriptor(i,t);if(e)return e;i=Object.getPrototypeOf(i)}}(this,e);Object.defineProperty(this,e,{get:null==t?void 0:t.get,set:i=>{var r,a;const s=null===(r=null==t?void 0:t.get)||void 0===r?void 0:r.call(this);null===(a=null==t?void 0:t.set)||void 0===a||a.call(this,i),this.agAttributeChangedCallback((0,Ht.w)(e),s,i)},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;o.baseLayerLuminance.unsubscribe(this.luminanceObserver,t),this.luminanceSubscription&&(this.luminanceSubscription.unsubscribe(),this.luminanceSubscription=void 0),this.visibilityObserverCleanup&&(this.visibilityObserverCleanup(),this.visibilityObserverCleanup=void 0),super.disconnectedCallback(),this.rehydrationAttempted=!1;const i=this.shouldRunDisconnect;this.rootEventsListeners.forEach(([e,t])=>{this.removeEventListener(e,t)}),i?this.performDisconnectCleanup():queueMicrotask(()=>{this.isConnected||this.performDisconnectCleanup()})}syncColumnSelectionHostLayout(){this.classList.toggle("has-column-selection",this.enableColumnSelection)}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,i])=>{super[t](e,i)})}handleInitialize(e){const{options:t,keepColDefsOnClearRowData:i}=e.detail;i&&(this.columnState=this.gridApi.getColumnState()),this.applyingDatasourceGridOptions=!0;try{this.gridOptions=Object.assign(Object.assign(Object.assign({},this.userProvidedGridOptions),t),i?{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 i=this.gridApi.applyTransaction(t);this.flashAddedCells(null==i?void 0:i.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*(){this.gridApi?yield this.processSchemaUpdate(e.detail):this.pendingSchemaUpdate=e.detail})}processSchemaUpdate(e){return(0,r.sH)(this,arguments,void 0,function*({schema:e}){const t=this.gridApi.getColumnDefs();if(t&&t.length>0)return;this.applyCommunityFilterFallbacks(e);const i=yield this.mergeAllColumnDefsAndStates(e,!0);this.gridApi.setGridOption("columnDefs",i),this.restoreCachedFilterConfig()})}applyCommunityFilterFallbacks(e){const t=this.gridApi.isModuleRegistered("SetFilterModule"),i=this.gridApi.isModuleRegistered("MultiFilterModule");e.forEach(e=>{var r,a,s,o,n;if("agSetColumnFilter"===e.filter&&!t)return Ne.v.debug(`SetFilterModule is not registered; column '${e.field}' falls back to the enum filter`),e.filter=De.enumFilter,void(null!==(r=e.floatingFilterComponent)&&void 0!==r||(e.floatingFilterComponent=De.enumFloatingFilter));if("agMultiColumnFilter"!==e.filter)return;const l=null===(s=null===(a=e.filterParams)||void 0===a?void 0:a.filters)||void 0===s?void 0:s.find(e=>"agSetColumnFilter"===e.filter);i?!t&&l&&(Ne.v.debug(`SetFilterModule is not registered; the set sub-filter of column '${e.field}' falls back to the enum filter`),l.filter=De.enumFilter):(null===(o=null==l?void 0:l.filterParams)||void 0===o?void 0:o.values)?(Ne.v.debug(`MultiFilterModule is not registered; enum column '${e.field}' falls back to the enum filter`),e.filter=De.enumFilter,e.filterParams=Object.assign({},l.filterParams),null!==(n=e.floatingFilterComponent)&&void 0!==n||(e.floatingFilterComponent=De.enumFloatingFilter)):(Ne.v.warn("MultiFilterModule is not registered, falling back to text filter"),e.filter="agTextColumnFilter")})}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,i,r,a;const{hasMoreData:o,sourceRef:n}=e.detail;if(!this.gridApi)return;const l=null===(i=(t=this.gridApi).getStatusPanel)||void 0===i?void 0:i.call(t,s.k7.loadMore);l&&(null===(a=(r=l).updateParams)||void 0===a||a.call(r,{moreRows:o,sourceRef:n}))}handleDatasourceError(){this.setAttribute("ds-disconnected","ds-disconnected")}handleDatasourceDestroy(){this.clearLocalGridOptions()}handleRefreshServerSide(e){const{purge:t}=e.detail;this.gridApi&&this.gridApi.refreshServerSide({purge:t})}handleSetServerSideDatasource(e){const{datasource:t}=e.detail;this.gridApi&&this.gridApi.setGridOption("serverSideDatasource",t)}handleAddGridCssClass(e){var t;const{className:i}=e.detail,r=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;r&&r.classList.add(i)}handleRemoveGridCssClass(e){var t;const{className:i}=e.detail,r=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;r&&r.classList.remove(i)}handleApplyServerSideTransaction(e){var t,i;const{transaction:r,async:a,callback:s}=e.detail;if(this.gridApi)if(a)this.gridApi.applyServerSideTransactionAsync(r,e=>{var t,i;this.flashAddedCells([...null!==(t=null==e?void 0:e.add)&&void 0!==t?t:[],...null!==(i=null==e?void 0:e.update)&&void 0!==i?i:[]]),null==s||s(e)});else{const e=this.gridApi.applyServerSideTransaction(r);this.flashAddedCells([...null!==(t=null==e?void 0:e.add)&&void 0!==t?t:[],...null!==(i=null==e?void 0:e.update)&&void 0!==i?i:[]]),s&&s(e)}}handleSetInfiniteDatasource(e){const{datasource:t}=e.detail;this.gridApi&&this.gridApi.setGridOption("datasource",t)}handleRefreshInfiniteCache(e){var t;this.gridApi&&((null===(t=e.detail)||void 0===t?void 0:t.purge)?this.gridApi.purgeInfiniteCache():this.gridApi.refreshInfiniteCache())}combineAllGridComponents(e){const t={[s.IX.action]:R.eA,[s.IX.actionsMenu]:k.cN,[s.IX.boolean]:I._Y,[s.IX.editable]:L.YM,[s.IX.icon]:G.Jt,[s.IX.statusPill]:H.N7,[s.IX.select]:_.gs,[s.IX.selectEditor]:l._Q,[s.IX.numberEditor]:g.Z0,[s.IX.multiselectEditor]:p.pZ,[s.IX.dateEditor]:f.S8,[s.IX.stringEditor]:y.XJ,[De.enumFilter]:Ue,[De.enumFloatingFilter]:qe,[s.k7.labelValue]:$t.k,[s.k7.loadMore]:Mt.s,[s.k7.reload]:_t.W,[s.k7.rowCount]:Nt.i};return Object.assign(Object.assign(Object.assign({},t),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}getSelectedRows(){var e,t,i,r;try{if(!this.initialised||!this.gridApi)return[];const a=null===(e=this.gridOptions)||void 0===e?void 0:e.rowSelection;if("single"===a||"multiple"===a)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===(i=this.gridOptions)||void 0===i?void 0:i.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 Ne.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 i=[];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)&&!i.some(e=>e===t.data)&&i.push(t.data)}}),i}hasSelectedRows(){return this.getSelectedRows().length>0}updateLabelValueStatusBar(e){var t,i;if(!this.gridApi)return void Ne.v.warn("Grid Pro: Cannot update label-value status bar - grid API not available");const r=null===(i=(t=this.gridApi).getStatusPanel)||void 0===i?void 0:i.call(t,s.k7.labelValue);r&&"function"==typeof r.updateParams?r.updateParams(e):Ne.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()},Ft.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,Vt.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(),i=(0,Vt.n7)(t);i&&i.length>0&&(null===(e=this.gridApi)||void 0===e||e.applyColumnState({state:i,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 i=yield this.getfilterModel();void 0!==i&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(i),null===(t=this.gridApi)||void 0===t||t.onFilterChanged())})}get gridOptions(){return this.agGridOptions}get isServerSide(){return this.gridProDatasource instanceof ft.X}get gridParams(){return{globalListener:this.boundGlobalEventListener,modules:[lt,Le.Vc,Le.ZuP]}}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")||this.querySelector("grid-pro-infinite-datasource")}get isInfiniteRowModel(){return this.gridProDatasource instanceof Tt}notifyDatasourceVisibleColumns(){var e,t,i,r;const a=this.gridProDatasource;if(!a)return;const s=(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===(r=null===(i=this.gridApi)||void 0===i?void 0:i.getColumnDefs)||void 0===r?void 0:r.call(i));s.length&&a.setVisibleColumns(s)}set gridOptions(e){!this.applyingDatasourceGridOptions&&e&&(this.userProvidedGridOptions=Object.assign({},e));const t=()=>{!this.disposed&&this.isConnected&&(this.debouncedSaveColumnState(),this.debouncedColumnAutosize())},i=()=>{!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:a,components:o,defaultColDef:n,getRowId:l,onGridReady:d,onFilterChanged:c,onFirstDataRendered:g}=e,h=(0,r.Tt)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged","onFirstDataRendered"]),u=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(o),headerHeight:this.headerHeight,rowHeight:this.rowHeight,animateRows:!1,suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:e=>(0,r.sH)(this,void 0,void 0,function*(){var t,i,r;if(this.gridApi=e.api,this.gridEventsQueue.length&&this.gridEventsQueue.forEach(e=>{this.addGridEventListener(e)}),this.pendingSchemaUpdate){const e=this.pendingSchemaUpdate;this.pendingSchemaUpdate=void 0;try{yield this.processSchemaUpdate(e)}catch(e){Ne.v.error("Grid Pro: failed to apply the pending schema update on grid ready:",e)}}this.rowData&&this.gridApi.setGridOption("rowData",this.rowData),d&&d(e),(null===(t=this.gridProDatasource)||void 0===t?void 0:t.keepColDefsOnClearRowData)&&(null===(i=this.columnState)||void 0===i?void 0:i.length)>0&&this.gridApi.applyColumnState({state:this.columnState,applyOrder:!0}),this.$emit(zt,{event:e,gridId:this.id}),this.$emit(s.mr,{event:e,gridId:this.id}),this.notifyDatasourceVisibleColumns(),null===(r=this.gridProDatasource)||void 0===r||r.$emit(Et.c.ready),this.restoreColumnState(),this.restoreCachedFilterConfig(),this.debouncedColumnAutosize()}),onFirstDataRendered:e=>{this.notifyDatasourceVisibleColumns(),g&&g(e)},onColumnPinned:t,onColumnResized:t,onColumnMoved:t,onColumnVisible:()=>{t(),i()},onDisplayedColumnsChanged:()=>{t(),i()},onFilterChanged:e=>{!this.disposed&&this.isConnected&&(this.debouncedSaveFilterModel(),c&&c(e))},onGridSizeChanged:t,onSortChanged:t}),h);this.gridProDatasource?(u.columnDefs=a,u.getRowId=l,this.setupStatusBar(u),this.setLocalGridOptions(u)):this.mergeAllColumnDefsAndStates(a).then(e=>{!this.disposed&&this.isConnected&&(u.columnDefs=e,u.getRowId=l,this.setupStatusBar(u),this.setLocalGridOptions(u),this.initGrid())})}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),(0,Ft.Qg)(e,this.agAttributes)),this.agGridOptions.context=Object.assign(Object.assign({},this.agGridOptions.context),{[ot]:this.columnDragBridge}),null==this.agGridOptions.allowDragFromColumnsToolPanel&&(this.agGridOptions.allowDragFromColumnsToolPanel=!0)}clearLocalGridOptions(){this.agGridOptions=void 0}resetGridOptionsState(){this.userProvidedGridOptions=void 0,this.agGridOptions=void 0}initGrid(){n.DOM.queueUpdate(()=>{!this.disposed&&this.isConnected&&this.gridSlot&&(this.initialised&&(this.destroyGridInstance(),this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild)),this.agGrid=(0,Le.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 i;const r=e||[];r.forEach(e=>{if(this.headerCaseType&&e.field&&!e.headerName){const t=Pe[this.headerCaseType];t?e.headerName=t(e.field):Ne.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 a=Array.from(this.querySelectorAll(this.columnComponentName)).map(e=>e.definition).map(e=>{var t,i,a,o,n,l;if(this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),"agSetColumnFilter"===e.filter||e.filter===De.enumFilter){if(!(null!=e.filterParams&&"values"in e.filterParams)){const s=null===(t=r.find(t=>t.field===e.field))||void 0===t?void 0:t.filterParams,l=null!==(i=null==s?void 0:s.values)&&void 0!==i?i:null===(n=null===(o=null===(a=null==s?void 0:s.filters)||void 0===a?void 0:a.find(e=>"agSetColumnFilter"===e.filter))||void 0===o?void 0:o.filterParams)||void 0===n?void 0:n.values;l&&(e.filterParams=Object.assign(Object.assign({},e.filterParams),{values:l}))}e.filter===De.enumFilter&&(null!==(l=e.floatingFilterComponent)&&void 0!==l||(e.floatingFilterComponent=De.enumFloatingFilter))}e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=t=>{if(t.data[s.A7]===e.field)return{component:s.IX.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=Bt.y,e.tooltipValueGetter=t=>{const i=t.data[s.h1];if(i&&i.column===e.field)return i.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var t;return(null===(t=e.data[s.h1])||void 0===t?void 0:t.column)===e.colDef.field}}));const d=r.find(t=>e.field===t.field);return Object.assign(Object.assign({},d),e)}),o=a.map(e=>e.field),n=[...a,...this.onlyTemplateColDefs?[]:r.filter(e=>!o.includes(e.field))];if(this.gridProDatasource&&t){const e=yield this.getSavedColumnState();if((null==e?void 0:e.length)>0)return(0,Vt.yS)(n,e);if((null===(i=this.gridProDatasource.deferredColumnStates)||void 0===i?void 0:i.length)>0)return(0,Vt.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 i=this.isServerSide||this.isInfiniteRowModel||"infinite"===(null==t?void 0:t.rowModelType)||"serverSide"===(null==t?void 0:t.rowModelType);if(i)this.panelExists(s.k7.rowCount,e)||e.push({statusPanel:s.k7.rowCount,align:"left"});else if(!i){const t="agTotalAndFilteredRowCountComponent";this.panelExists(t,e)||e.push({statusPanel:t,align:"left"})}}}addMaxRowsPanel(e){this.statusBarConfig&&!0===this.statusBarConfig.maxRows&&(this.panelExists(s.k7.labelValue,e)||e.push({statusPanel:s.k7.labelValue,statusPanelParams:{label:"Max Rows",value:this.gridProDatasource.maxRows||Oe.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.isInfiniteRowModel,this.statusBarConfig).filter(t=>!this.panelExists(t.statusPanel,e));e.push(...t)}}setupStatusBar(e){var t,i;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 a=((null===(i=e.statusBar)||void 0===i?void 0:i.statusPanels)||[]).filter(e=>!this.panelExists(e.statusPanel,r));r.push(...a),e.statusBar={statusPanels:r}}}get observedAttributes(){const e=Ft.zI.map(e=>e.toLowerCase()),t=Ft.zI.map(e=>(0,Ht.w)(e));return e.concat(t)}agAttributeChangedCallback(e,t,i){var r;if(t===i)return;const a=this.agPropertiesMap[e];a&&(this.agAttributes[a]=i,this.initialised&&(null===(r=this.gridApi)||void 0===r||r.setGridOption(a,i)))}globalEventListener(e,t){const i=e.toLowerCase(),r=new Event(i);r.agGridDetails=t,this.dispatchEvent(r);const a="on"+i;"function"==typeof this[a]&&this[a](r)}}(0,r.Cg)([n.observable],Ut.prototype,"gridApi",void 0),(0,r.Cg)([n.observable],Ut.prototype,"gridErrorItems",void 0),(0,r.Cg)([Gt.l],Ut.prototype,"statePersistence",void 0),(0,r.Cg)([(0,n.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Ut.prototype,"autoCellRendererByType",void 0),(0,r.Cg)([(0,n.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Ut.prototype,"onlyTemplateColDefs",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"grid-autosizing"})],Ut.prototype,"gridAutosizingEnabled",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Ut.prototype,"enableCellFlashing",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Ut.prototype,"enableRowFlashing",void 0),(0,r.Cg)([(0,n.attr)({attribute:"persist-column-state-key"})],Ut.prototype,"persistColumnStateKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"persist-filter-model-key"})],Ut.prototype,"persistFilterModelKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"header-case-type"})],Ut.prototype,"headerCaseType",void 0),(0,r.Cg)([n.observable],Ut.prototype,"rowData",void 0),(0,r.Cg)([n.attr],Ut.prototype,"columnComponentName",void 0),(0,r.Cg)([n.observable],Ut.prototype,"eventsAndCallbacks",void 0),(0,r.Cg)([n.attr],Ut.prototype,"headerHeight",void 0),(0,r.Cg)([n.attr],Ut.prototype,"rowHeight",void 0),(0,r.Cg)([n.observable],Ut.prototype,"classNames",void 0),(0,r.Cg)([n.observable],Ut.prototype,"agGrid",void 0),(0,r.Cg)([n.observable],Ut.prototype,"gridSlot",void 0),(0,r.Cg)([n.observable],Ut.prototype,"themeMode",void 0),(0,r.Cg)([n.observable],Ut.prototype,"gridComponents",void 0),(0,r.Cg)([n.observable],Ut.prototype,"statusBarConfig",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"with-status-bar"})],Ut.prototype,"withStatusBar",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-column-selection"})],Ut.prototype,"enableColumnSelection",void 0),(0,r.Cg)([n.observable],Ut.prototype,"customErrorHandlerTemplate",void 0),(0,r.Cg)([s.lz],Ut.prototype,"gridOptionsConfig",void 0),(0,r.Cg)([n.observable],Ut.prototype,"provider",void 0);const Kt={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%)"},Xt=["rowheight","row-height"];function qt(e){const t=Number(e);return Number.isFinite(t)&&t>0?t:void 0}class jt extends Ut{getCachedTheme(e){const t=null!=e?e:"default";let i=jt.cachedThemes.get(t);return i||(i=Le.N8R.withParams("default"===t?Kt:Object.assign(Object.assign({},Kt),{rowHeight:`${t}px`})),jt.cachedThemes.set(t,i)),i}resolveRowHeight(e){for(const e of Xt){const t=qt(this.getAttribute(e));if(t)return t}return qt(e.rowHeight)}agAttributeChangedCallback(e,t,i){var r;super.agAttributeChangedCallback(e,t,i),"rowHeight"===this.agPropertiesMap[e]&&t!==i&&(null===(r=this.gridApi)||void 0===r||r.setGridOption("theme",this.getCachedTheme(qt(i))))}set gridOptions(e){const t=Object.assign({},e);t.components=Object.assign({[s.IX.action]:E,[s.IX.actionsMenu]:D,[s.IX.boolean]:x,[s.IX.editable]:P,[s.IX.select]:N,[s.IX.selectEditor]:d,[s.IX.numberEditor]:h,[s.IX.multiselectEditor]:m,[s.IX.dateEditor]:b,[s.IX.stringEditor]:S,[s.IX.statusPill]:V,[s.IX.icon]:$},t.components),t.theme=this.getCachedTheme(this.resolveRowHeight(t)),super.gridOptions=t}}jt.cachedThemes=new Map,(0,r.Cg)([n.observable],jt.prototype,"provider",void 0);const Yt=jt.compose(Object.assign({baseName:"grid-pro",template:ie,styles:n.css`
|
|
938
|
-
${U.yK}
|
|
939
|
-
${rt.M}
|
|
940
|
-
${U.em}
|
|
941
|
-
|
|
942
|
-
:host {
|
|
943
|
-
width: 100%;
|
|
944
|
-
height: 100%;
|
|
945
|
-
}
|
|
946
|
-
.ag-body-vertical-scroll-viewport,
|
|
947
|
-
.ag-body-horizontal-scroll-viewport,
|
|
948
|
-
.ag-horizontal-right-spacer:not(.ag-scroller-corner),
|
|
949
|
-
.ag-horizontal-left-spacer:not(.ag-scroller-corner) {
|
|
950
|
-
scrollbar-color: var(--ag-scrollbar-handle, var(--neutral-layer-1))
|
|
951
|
-
var(--ag-scrollbar-background, var(--neutral-layer-4));
|
|
952
|
-
&:hover {
|
|
953
|
-
scrollbar-color: var(--neutral-fill-rest) var(--neutral-layer-4);
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
.ag-body-horizontal-scroll-end-spacer {
|
|
957
|
-
overflow: unset;
|
|
958
|
-
background: var(--ag-scrollbar-background, var(--neutral-layer-4));
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
/*
|
|
962
|
-
* Server-side and infinite row models: reveal the inactive (unsorted) sort icon on header
|
|
963
|
-
* hover rather than always. The datasource adds .grid-pro-server-side / .grid-pro-infinite to
|
|
964
|
-
* the grid host while attached; unSortIcon renders the .ag-sort-none-icon on sortable columns,
|
|
965
|
-
* and these rules keep just that icon hidden until the header is hovered. Only the none icon
|
|
966
|
-
* is targeted - AG shows the ascending/descending icon (and hides the none icon) once a column
|
|
967
|
-
* is sorted, so a sorted column's arrow stays fully visible at rest. Matches the client-side
|
|
968
|
-
* model's quiet header while keeping sortability discoverable.
|
|
969
|
-
*/
|
|
970
|
-
.grid-pro-server-side .ag-header-cell-sortable .ag-sort-none-icon,
|
|
971
|
-
.grid-pro-infinite .ag-header-cell-sortable .ag-sort-none-icon {
|
|
972
|
-
opacity: 0;
|
|
973
|
-
transition: opacity 0.15s ease-in-out;
|
|
974
|
-
}
|
|
975
|
-
.grid-pro-server-side .ag-header-cell-sortable:hover .ag-sort-none-icon,
|
|
976
|
-
.grid-pro-infinite .ag-header-cell-sortable:hover .ag-sort-none-icon {
|
|
977
|
-
opacity: 1;
|
|
978
|
-
}
|
|
979
|
-
`,shadowOptions:Ee},Ae));var Wt=i(96598);class Qt extends Wt.t{}const Jt=Qt.compose({baseName:"grid-text-renderer",styles:Wt.JN,template:(0,Wt.d6)("rapid")});class Zt extends pt{}const ei=Zt.compose({baseName:"column-selection",template:at("rapid"),styles:rt.H}),ti={rapidIconRenderer:M,rapidAgEditableRenderer:F,rapidAgActionRenderer:A,rapidAgActionsMenuRenderer:O,rapidAgBooleanRenderer:T,rapidAgTextRenderer:Jt,rapidAgSelectRenderer:B,rapidAgDateEditor:C,rapidAgMultiselectEditor:v,rapidAgSelectEditor:c,rapidAgNumberEditor:u,rapidAgStringEditor:w,rapidStatusPillRenderer:z,rapidGridPro:ke,rapidColumnSelection:ei,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};var ii=i(58749),ri=i(95553),ai=i(14609),si=i(86636);const oi={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(","):""},ni="--dropdown-width",li="options",di="dnone",ci=n.css`
|
|
980
|
-
label {
|
|
981
|
-
color: var(--neutral-foreground-hint, rgb(135 155 166));
|
|
982
|
-
font-style: normal;
|
|
983
|
-
margin: calc(var(--design-unit) * 2px) 0;
|
|
984
|
-
display: block;
|
|
985
|
-
cursor: pointer;
|
|
986
|
-
font-size: var(--type-ramp-base-font-size);
|
|
987
|
-
line-height: var(--type-ramp-base-line-height);
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
.${di} {
|
|
991
|
-
display: none !important;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
.root {
|
|
995
|
-
position: relative;
|
|
996
|
-
width: inherit;
|
|
997
|
-
min-width: 250px;
|
|
998
|
-
${ni}: 350px;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
.control {
|
|
1002
|
-
cursor: pointer;
|
|
1003
|
-
position: relative;
|
|
1004
|
-
display: flex;
|
|
1005
|
-
align-items: center;
|
|
1006
|
-
width: 100%;
|
|
1007
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
#display-field {
|
|
1011
|
-
width: 100%;
|
|
1012
|
-
cursor: pointer;
|
|
1013
|
-
color: inherit;
|
|
1014
|
-
min-height: 40px;
|
|
1015
|
-
padding-left: calc(var(--design-unit) * 2.25px);
|
|
1016
|
-
padding-right: 52px;
|
|
1017
|
-
border-width: 0;
|
|
1018
|
-
background: var(--neutral-fill-input-rest);
|
|
1019
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1020
|
-
text-overflow: ellipsis;
|
|
1021
|
-
font-size: var(--type-ramp-base-font-size);
|
|
1022
|
-
font-family: var(--body-font);
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
#display-field[disabled] {
|
|
1026
|
-
cursor: not-allowed;
|
|
1027
|
-
opacity: var(--disabled-opacity);
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
#display-field:focus {
|
|
1031
|
-
outline: 1px solid var(--accent-fill-rest);
|
|
1032
|
-
background: var(--neutral-fill-input-rest);
|
|
1033
|
-
border-style: none;
|
|
1034
|
-
box-shadow: none;
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
#display-field:hover:not(:focus):not([disabled]) {
|
|
1038
|
-
outline: 1px solid var(--neutral-stroke-hover, rgb(231 232 232));
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
button {
|
|
1042
|
-
pointer-events: none;
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
#arrow-icon {
|
|
1046
|
-
display: inline-block;
|
|
1047
|
-
width: 16px;
|
|
1048
|
-
color: currentColor;
|
|
1049
|
-
position: absolute;
|
|
1050
|
-
left: calc(100% - 26px);
|
|
1051
|
-
padding: 0;
|
|
1052
|
-
cursor: pointer;
|
|
1053
|
-
transform: rotate(0deg);
|
|
1054
|
-
transition: transform 0.2s linear 0s;
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
#arrow-icon.flipped {
|
|
1058
|
-
transform: rotate(180deg);
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
.cross-icon {
|
|
1062
|
-
display: inline-block;
|
|
1063
|
-
width: 12px;
|
|
1064
|
-
color: currentColor;
|
|
1065
|
-
position: absolute;
|
|
1066
|
-
left: calc(100% - 46px);
|
|
1067
|
-
padding: 0;
|
|
1068
|
-
cursor: pointer;
|
|
1069
|
-
visibility: hidden;
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
.cross-icon:hover {
|
|
1073
|
-
color: var(--error-color);
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
.disabled-icon {
|
|
1077
|
-
pointer-events: none;
|
|
1078
|
-
opacity: var(--disabled-opacity);
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
.${li} {
|
|
1082
|
-
min-width: 100%;
|
|
1083
|
-
width: var(${ni});
|
|
1084
|
-
display: flex;
|
|
1085
|
-
flex-direction: column;
|
|
1086
|
-
position: absolute;
|
|
1087
|
-
height: max-content;
|
|
1088
|
-
overflow-y: hidden;
|
|
1089
|
-
margin: 5px 0;
|
|
1090
|
-
background: var(--neutral-fill-input-rest);
|
|
1091
|
-
visibility: hidden;
|
|
1092
|
-
z-index: 999;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
.dropdown-above {
|
|
1096
|
-
bottom: 100%;
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
.dropdown-left {
|
|
1100
|
-
right: 0;
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
.grid-container {
|
|
1104
|
-
height: 300px;
|
|
1105
|
-
width: 100%;
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
#filter-search {
|
|
1109
|
-
padding: 5px;
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
.visible {
|
|
1113
|
-
visibility: visible;
|
|
1114
|
-
}
|
|
1115
|
-
`;var gi=i(40729),hi=i(31679);const ui=(e="foundation")=>n.html`
|
|
1116
|
-
<label
|
|
1117
|
-
part="label"
|
|
1118
|
-
for="control"
|
|
1119
|
-
class="label ${e=>{var t,i;return null!==(i=(0,hi.x)([di,!(null!==(t=e.hasSlottedContent)&&void 0!==t&&t)]))&&void 0!==i?i:""}}"
|
|
1120
|
-
>
|
|
1121
|
-
<slot
|
|
1122
|
-
${(0,n.slotted)({property:"defaultSlottedNodes"})}
|
|
1123
|
-
></slot>
|
|
1124
|
-
</label>
|
|
1125
|
-
<div class="root" part="root">
|
|
1126
|
-
<div class="control" part="control">
|
|
1127
|
-
<${e}-icon
|
|
1128
|
-
id="arrow-icon"
|
|
1129
|
-
name="chevron-down"
|
|
1130
|
-
class="${e=>(0,hi.x)(["flipped",e.open],["disabled-icon",e.disabled])}"
|
|
1131
|
-
@click=${e=>!e.disabled&&e.toggle()}
|
|
1132
|
-
></${e}-icon>
|
|
1133
|
-
<${e}-icon
|
|
1134
|
-
name="xmark"
|
|
1135
|
-
class="cross-icon ${e=>(0,hi.x)(["visible",!!e.value],["disabled-icon",e.disabled])}"
|
|
1136
|
-
@click=${e=>!e.disabled&&(e.value=void 0)}
|
|
1137
|
-
></${e}-icon>
|
|
1138
|
-
<input
|
|
1139
|
-
readonly
|
|
1140
|
-
type="text"
|
|
1141
|
-
id="display-field"
|
|
1142
|
-
part="display-field"
|
|
1143
|
-
?disabled=${e=>e.disabled}
|
|
1144
|
-
:value="${e=>e.displayValue}"
|
|
1145
|
-
@click=${e=>e.toggle()}
|
|
1146
|
-
/>
|
|
1147
|
-
</div>
|
|
1148
|
-
<div
|
|
1149
|
-
${(0,n.ref)("optionsElement")}
|
|
1150
|
-
class="${e=>{var t,i,r,a;return(0,hi.x)(li,["visible",e.open],["dropdown-above",null!==(i=null===(t=e.dropdownPlacement)||void 0===t?void 0:t.startsWith("top"))&&void 0!==i&&i],["dropdown-left",null!==(a=null===(r=e.dropdownPlacement)||void 0===r?void 0:r.endsWith("left"))&&void 0!==a&&a])}}"
|
|
1151
|
-
>
|
|
1152
|
-
<${e}-text-field
|
|
1153
|
-
id="filter-search"
|
|
1154
|
-
part="filter-search"
|
|
1155
|
-
placeholder="Search..."
|
|
1156
|
-
:value=${(0,gi.O)(e=>e.filterSearch,"string","input")}
|
|
1157
|
-
?hidden=${e=>!e.hasSearchKey}
|
|
1158
|
-
@change=${(e,t)=>e.changeHandler(t.event)}
|
|
1159
|
-
></${e}-text-field>
|
|
1160
|
-
<div class="grid-container" part="grid">
|
|
1161
|
-
<${e}-grid-pro
|
|
1162
|
-
${(0,n.ref)("grid")}
|
|
1163
|
-
only-template-col-defs
|
|
1164
|
-
>${(0,_e.T)(e=>e.columnDefinitions)}</${e}-grid-pro>
|
|
1165
|
-
</div>
|
|
1166
|
-
</div>
|
|
1167
|
-
</div>
|
|
1168
|
-
`,pi=ui(),mi={menuTabs:["filterMenuTab","generalMenuTab","columnsMenuTab"]},vi=(e,t)=>!e.composedPath().includes(t);function fi(e,t,i,a){return(0,r.sH)(this,void 0,void 0,function*(){var r;try{const s=function(e,t){const i=(new ii.K).withField(e).withValue(null!=t?t:"").withSerialiser(ri.n.EQ).withGroup("default").build();return i.serialiser(i)}(i,a),o=yield e.request(t,{DETAILS:{CRITERIA_MATCH:s}});return 1===(null===(r=o.REPLY)||void 0===r?void 0:r.length)?o.REPLY[0]:void 0}catch(e){return void console.error(`Failed to retrieve object from the ${t} resource: ${e instanceof Error?e.message:String(e)}`)}})}class bi extends((0,xe.S)(ae.FoundationElement)){constructor(){super(...arguments),this.requestSupportsAdvancedSearch=!1,this.defaultSlottedNodes=[],this.getAndSetRowsDebounce=Ge()(()=>this.getAndSetRows(),300),this.handleClickOutside=e=>{vi(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?fi(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:mi,onRowClicked:e=>{this.selectedRow=e.data,this.emitValue(e.data[this.valueKey]),this.toggle()}})}setGridRowData(e){var t;const i=null===(t=this.grid)||void 0===t?void 0:t.gridApi;i&&("function"==typeof i.updateGridOptions?i.updateGridOptions({rowData:e}):i.setRowData(e))}setGridColumnDefs(e){var t;const i=null===(t=this.grid)||void 0===t?void 0:t.gridApi;i&&("function"==typeof i.updateGridOptions?i.updateGridOptions({columnDefs:e}):i.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 i=this.lastRequest={},r=this.request?{REQUEST:Object.assign({},this.request)}:{},a=Array.isArray(this.searchKey)&&1===this.searchKey.length?this.searchKey[0]:this.searchKey;let s;if(a&&this.filterSearch)if(this.requestSupportsAdvancedSearch){const e=(Array.isArray(a)?a:[a]).map(e=>{var t;return(new ii.K).withField(e).withValue(null!==(t=this.filterSearch)&&void 0!==t?t:"").withSerialiser(ri.n.containsIgnoreCase).withGroup("default").build()}),t=new ai.b;t.Or(e,{join:si.r.Or()}),s=t.build()}else{if(Array.isArray(a))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),{[a]:`*${this.filterSearch}*`})}const o=null===(t=this.baseCriteria)||void 0===t?void 0:t.trim();o&&s?s=`(${s}) && (${o})`:o&&(s=o),s&&(r.DETAILS={CRITERIA_MATCH:s});try{const e=yield this.connect.request(this.resourceName,r);if(i!==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(ni,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)([yt.dm],bi.prototype,"_connectDI",void 0),(0,r.Cg)([(0,n.attr)({mode:"boolean"})],bi.prototype,"disabled",void 0),(0,r.Cg)([(0,n.attr)({attribute:"resource-name"})],bi.prototype,"resourceName",void 0),(0,r.Cg)([(0,n.attr)({attribute:"search-key",converter:oi})],bi.prototype,"searchKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"advanced-search-req",mode:"boolean"})],bi.prototype,"requestSupportsAdvancedSearch",void 0),(0,r.Cg)([(0,n.attr)({attribute:"value-key"})],bi.prototype,"valueKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"label-key"})],bi.prototype,"labelKey",void 0),(0,r.Cg)([(0,n.attr)({attribute:"dropdown-placement"})],bi.prototype,"dropdownPlacement",void 0),(0,r.Cg)([n.attr],bi.prototype,"dropdownWidth",void 0),(0,r.Cg)([n.observable],bi.prototype,"request",void 0),(0,r.Cg)([n.observable],bi.prototype,"columnDefinitions",void 0),(0,r.Cg)([n.observable],bi.prototype,"baseCriteria",void 0),(0,r.Cg)([n.observable],bi.prototype,"defaultSlottedNodes",void 0),(0,r.Cg)([n.observable],bi.prototype,"filterSearch",void 0),(0,r.Cg)([n.observable],bi.prototype,"open",void 0),(0,r.Cg)([n.observable],bi.prototype,"selectedRow",void 0),(0,r.Cg)([n.volatile],bi.prototype,"displayValue",null),(0,r.Cg)([n.volatile],bi.prototype,"hasSearchKey",null),(0,r.Cg)([n.volatile],bi.prototype,"hasSlottedContent",null);const Ci=bi.compose({baseName:"multicolumn-dropdown",template:pi,styles:ci}),yi=bi.compose({baseName:"multicolumn-dropdown",template:ui("rapid"),styles:ci});var Si=i(3299),wi=i(70349),Ri=i(91327),Ei=i(30335),Ai=i(22133);class ki{constructor(e,t){this.criteria=e,this.onActiveChanged=t,this.matchedRowIds=new Set,this.lastReportedActive=!1}get active(){return this.matchedRowIds.size>0}get matchCount(){return this.matchedRowIds.size}reset(){this.matchedRowIds.clear(),this.report()}handleDataChanged(e){var t;const{add:i=[],update:r=[],remove:a=[]}=null!==(t=null==e?void 0:e.changes)&&void 0!==t?t:{};for(const e of a)this.syncRow(e,!0);for(const e of i)this.syncRow(e,!1);for(const e of r)this.syncRow(e,!1);this.report()}handleDataCleared(){this.reset()}observe(e){const t=e=>{this.handleDataChanged(e.detail)},i=()=>{this.handleDataCleared()};return e.addEventListener(Et.c.dataChanged,t),e.addEventListener(Et.c.dataCleared,i),()=>{e.removeEventListener(Et.c.dataChanged,t),e.removeEventListener(Et.c.dataCleared,i)}}syncRow(e,t){var i;if(!e)return;const r=String(null!==(i=e[this.criteria.rowIdField])&&void 0!==i?i:"");r&&(!t&&(0,Ai.D)(this.criteria,e)?this.matchedRowIds.add(r):this.matchedRowIds.delete(r))}report(){const e=this.active;e!==this.lastReportedActive&&(this.lastReportedActive=e,this.onActiveChanged(e))}}var Di=i(49260),Oi=i(49568);const Ii={foundationIconRenderer:G.qN,foundationGridProActionRenderer:R._X,foundationGridProActionsMenuRenderer:k.su,foundationAgBooleanRenderer:I.fg,foundationAgTextRenderer:Wt.G4,foundationAgTextFieldRenderer:wi.wG,foundationAgEditableRenderer:L.r8,foundationAgSelectRenderer:_.bE,foundationSelectEditor:l.RU,foundationNumberEditor:g.CY,foundationDateEditor:f.vr,foundationMultiselectEditor:p.UH,foundationStringEditor:y.cb,foundationMulticolumnDropdown:Ci,foundationStatusPillRenderer:H.a1,StatusPillRenderer:H.N7,foundationGridPro:a.RB,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}},xi=[{id:"error",label:"Error",value:"var(--error-fill-rest, #c62828)"},{id:"warning",label:"Warning",value:"var(--warning-fill-rest, #ef6c00)"},{id:"success",label:"Success",value:"var(--success-fill-rest, #2e7d32)"},{id:"accent",label:"Accent",value:"var(--accent-fill-rest, #1565c0)"},{id:"neutral",label:"Neutral",value:"var(--neutral-fill-rest, #546e7a)"}],Ti=[{id:"slow",label:"Slow",value:1400},{id:"normal",label:"Normal",value:1e3},{id:"fast",label:"Fast",value:500}],Li=[{id:"row",label:"Whole row",value:"row"},{id:"cell",label:"Alert field cell",value:"cell"}],Pi={color:xi[0].value,durationMs:Ti[1].value,scope:"row"};function Fi(e){return{color:"string"==typeof(null==e?void 0:e.color)&&e.color.trim().length>0?e.color:Pi.color,durationMs:"number"==typeof(null==e?void 0:e.durationMs)&&Number.isFinite(e.durationMs)&&e.durationMs>0?e.durationMs:Pi.durationMs,scope:"row"===(null==e?void 0:e.scope)||"cell"===(null==e?void 0:e.scope)?e.scope:Pi.scope}}const Gi=new Map;function $i(e){const{persistPreferencesKey:t,target:i,mirrorColorTo:r=[]}=e,a=t?function(e){if(e.statePersistence)return e.statePersistence;try{return ae.DI.getOrCreateDOMContainer().get(Gt.l)}catch(e){return void Ne.v.debug("Row alert preferences will not persist; no StatePersistence available",e)}}(e):void 0,s=new Set;let o=Fi(Object.assign(Object.assign({},Pi),e.preferences));function n(){const e=null!=i?i:"undefined"==typeof document?void 0:document.documentElement;if(e){e.style.setProperty("--row-alert-color",o.color),e.style.setProperty("--alert-flash-duration",`${o.durationMs}ms`);for(const t of r)e.style.setProperty(t,o.color)}}function l(e,i){o=e,n();for(const e of s)e(o);i&&t&&(null==a?void 0:a.saveRowAlertPreferences)&&a.saveRowAlertPreferences(t,o).catch(e=>{Ne.v.warn("Could not save row alert preferences",e)})}return n(),t&&(null==a?void 0:a.getRowAlertPreferences)&&a.getRowAlertPreferences(t).then(e=>{l(Fi(Object.assign(Object.assign({},o),e)),!1)}).catch(e=>{Ne.v.warn("Could not load row alert preferences",e)}),{get preferences(){return o},change(e){l(Fi(Object.assign(Object.assign({},o),e)),!0)},subscribe:e=>(s.add(e),()=>{s.delete(e)})}}function Mi(e,t={}){var i,r,a,s,o;const{colorPresets:n=xi,ratePresets:l=Ti,menuLabel:d="Alert flash"}=t,c=function(e){const{persistPreferencesKey:t}=e;if(!t)return $i(e);let i=Gi.get(t);return i||(i=$i(e),Gi.set(t,i)),i}(t),g=(0,Di.PO)(e)[Di.Xm],h=(0,Di.Li)(Object.assign(Object.assign({},e),{flashField:null!==(r=null!==(i=e.flashField)&&void 0!==i?i:e.stateField)&&void 0!==r?r:null===(o=null===(s=null===(a=e.anyOf)||void 0===a?void 0:a[0])||void 0===s?void 0:s[0])||void 0===o?void 0:o.field}))[Di.mJ];function u(e,t,i,r){return e.map(e=>({name:e.label,checked:e.value===t,action:()=>{c.change(i(e.value)),r()}}))}const p={rowClassRules:{[Di.Xm]:e=>"row"===c.preferences.scope&&g(e)},defaultColDef:{cellClassRules:{[Di.mJ]:e=>"cell"===c.preferences.scope&&h(e)}},get preferences(){return c.preferences},createMenuItem(e){const t=()=>{var t;return null===(t=null==e?void 0:e.redrawRows)||void 0===t?void 0:t.call(e)};return{name:d,subMenu:[{name:"Flash target",subMenu:u(Li,c.preferences.scope,e=>({scope:e}),t)},{name:"Color",subMenu:u(n,c.preferences.color,e=>({color:e}),()=>{})},{name:"Flash rate",subMenu:u(l,c.preferences.durationMs,e=>({durationMs:e}),()=>{})},{name:"Reset to defaults",action:()=>{p.reset(),t()}}]}},getContextMenuItems(e){var t;return[...null!==(t=e.defaultItems)&&void 0!==t?t:[],"separator",p.createMenuItem(e.api)]},setPreferences(e){c.change(e)},reset(){c.change(Pi)},subscribe:e=>c.subscribe(e)};return p}var _i=i(92277);const Ni=/^(?:[A-Za-z0-9+/]{4})*?(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Bi=e=>{const t=e.split(":");let i,r;2===t.length?[i,r]=t:r=e;const a=(e=>{if(Ni.test(e)){const t=atob(e),i=new Uint8Array(t.length);return[...t].forEach((e,r)=>{i[r]=t.charCodeAt(r)}),i.buffer}return e})(r);if("str"===i){return new TextDecoder("utf-8").decode(a)}return a},Hi=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}`:""},Vi={account:"genesis",namespace:"default",authKey:"kv-default",authEmail:void 0},zi=ae.DI.createInterface();var Ui,Ki;!function(e){e.REQ_KEY_VALUE_LIST="REQ_KEY_VALUE_LIST",e.REQ_KEY_VALUE_READ="REQ_KEY_VALUE_READ"}(Ui||(Ui={})),function(e){e.EVENT_KEY_VALUE_PUT="EVENT_KEY_VALUE_PUT",e.EVENT_KEY_VALUE_DELETE="EVENT_KEY_VALUE_DELETE"}(Ki||(Ki={}));let Xi=class{constructor(e,t,i=Vi){this.connect=e,this.user=t,this.kvStorageConfig=i}delete(e){return(0,r.sH)(this,void 0,void 0,function*(){const t={DETAILS:{KEYS:e}},i=yield this.connect.commitEvent(Ki.EVENT_KEY_VALUE_DELETE,t);return!(!i||"EVENT_ACK"!==i.MESSAGE_TYPE)||{ERROR:i.ERROR,WARNING:i.WARNING}})}get(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const i={REQUEST:{USER_NAME:null!==(t=this.kvStorageConfig.authEmail)&&void 0!==t?t:this.user.userName,KEY:e}},r=yield this.connect.request(Ui.REQ_KEY_VALUE_READ,i);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=Bi(e);return"string"==typeof t&&t.startsWith("str:")&&(t=Bi(t)),"string"==typeof t&&t.startsWith("bin:")&&(t=Bi(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}},i=yield this.connect.request(Ui.REQ_KEY_VALUE_LIST,t);if(i&&i.REPLY&&i.REPLY.length>0){return i.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?Hi(e.value):e.value}))}},i=yield this.connect.commitEvent(Ki.EVENT_KEY_VALUE_PUT,t);return!(!i||"EVENT_ACK"!==i.MESSAGE_TYPE)||{ERROR:i.ERROR,WARNING:i.WARNING}})}};Xi=(0,r.Cg)([(0,r.Qj)(0,yt.dm),(0,r.Qj)(1,_i.KJ),(0,r.Qj)(2,(0,ae.optional)(zi))],Xi);const qi=ae.DI.createInterface(e=>e.singleton(Xi));var ji=i(98316);class Yi{getColumnState(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;yield this.migrateLocalStorageToKVStorage(e);const i=yield this.kvStorage.get(e),r=i?null===(t=i.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 i=yield this.kvStorage.get(e);if(i&&(null===(t=i.kv)||void 0===t?void 0:t.value))return;const r=this.session.getLocalStorageItem("gridOptions"),a=r?JSON.parse(r)[e]:void 0;a&&(Ne.v.debug(`Columns state migration for key: ${e} from LocalStorage to KV Storage`),this.kvStorage.put([{key:e,value:a}]))})}getFilterModel(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const i=yield this.kvStorage.get(e),r=i?null===(t=i.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)}])})}getRowAlertPreferences(e){return(0,r.sH)(this,void 0,void 0,function*(){var t;const i=yield this.kvStorage.get(e),r=i?null===(t=i.kv)||void 0===t?void 0:t.value:void 0;return r?JSON.parse(r):{}})}saveRowAlertPreferences(e,t){return(0,r.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}}(0,r.Cg)([qi],Yi.prototype,"kvStorage",void 0),(0,r.Cg)([ji.N],Yi.prototype,"session",void 0);var Wi=i(11749);const Qi=o.SwatchRGB.from((0,se.parseColorHexRGB)("#4c4c4c")),Ji=o.SwatchRGB.from((0,se.parseColorHexRGB)("#c01754")),{create:Zi}=ae.DesignToken,er={foregroundColor:Zi("fui-ag-foreground-color").withDefault(Ji),backgroundColor:Zi("fui-ag-background-color").withDefault(Qi)};var tr=i(68858),ir=i(49874);const rr={processCellCallback:e=>["+","=","-","@","\t","\n"].some(t=>String(e.value).startsWith(t))?`'${e.value}`:e.value}}}]);
|
|
1169
|
-
//# sourceMappingURL=625.42381f2af39debff45aa0e4b863e605b.js.map
|