@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
|
@@ -0,0 +1,1093 @@
|
|
|
1
|
+
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[47],{41492(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,r,s){var o=r.prototype;s.utc=function(e){return new r({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(a,r){var s=this.$utils().u;if(s(a))return this.$u?0:s(this.$offset)?d.call(this):this.$offset;if("string"==typeof a&&(a=function(e){void 0===e&&(e="");var a=e.match(t);if(!a)return null;var r=(""+a[0]).match(i)||["-",0,0],s=r[0],o=60*+r[1]+ +r[2];return 0===o?0:"+"===s?o:-o}(a),null===a))return this;var o=Math.abs(a)<=16?60*a:a;if(0===o)return this.utc(r);var n=this.clone();if(r)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 g=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var c=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.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 a=this.local(),r=s(e).local();return h.call(a,r,t,i)}}}()},84620(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:()=>w.eA,ActionsMenuRenderer:()=>D.cN,AgGridCSSVars:()=>s.W3,AgGridTheme:()=>s.mJ,AgTextFieldRenderer:()=>ni.p8,AgTextRenderer:()=>Gt.t,BooleanRenderer:()=>x._Y,COLUMN_PICKER_SORT_DEFAULT:()=>gi.Xf,CellTemplate:()=>oi.x,ColumnSelection:()=>je.X,ColumnTemplate:()=>li.R,DARK_BACKGROUND_HEX:()=>le,DARK_BORDER_HEX:()=>de,DARK_FOREGROUND_HEX:()=>oe,DARK_HEADER_FOREGROUND_HEX:()=>ne,DARK_ROW_HOVER_HEX:()=>ge,DEBOUNCED_RESIZE_TIME:()=>ft.BW,DEFAULT_STATUS_BAR_CONFIG:()=>s.o2,DISPLAY_NONE_CLASS:()=>jt,DatasourceRowMatchTracker:()=>pi,DateEditor:()=>f.S8,EDITED_COLUMN_FIELD:()=>s.A7,ERROR_COLUMN_FIELD:()=>s.h1,EditableRenderer:()=>I.YM,EnumColumnFilter:()=>Ue,EnumColumnFloatingFilter:()=>qe,ErrorTooltip:()=>wt.y,GRID_PRO_COLUMN_DRAG_BRIDGE_CONTEXT_KEY:()=>Ye.nJ,GRID_READY_EVENT:()=>s.mr,GenesisGridDatasourceElement:()=>nt.yu,GridOptionsConfig:()=>s.lz,GridPro:()=>r.cF,GridProBaseDatasource:()=>nt.ML,GridProBeta:()=>kt,GridProCaseType:()=>s.uA,GridProCell:()=>Me.O,GridProClientSideDatasource:()=>We.L,GridProColumn:()=>_e.G,GridProFilterTypes:()=>ke,GridProGenesisDatasource:()=>vt.D,GridProInfiniteDatasource:()=>pt,GridProRendererTypes:()=>s.IX,GridProServerSideDatasource:()=>Je.X,GridProStatusBarTypes:()=>s.k7,IconRenderer:()=>P.Jt,KVStorageStatePersistence:()=>_i,LIGHT_BACKGROUND_HEX:()=>ue,LIGHT_BORDER_HEX:()=>pe,LIGHT_FOREGROUND_HEX:()=>ce,LIGHT_HEADER_FOREGROUND_HEX:()=>he,LIGHT_ROW_HOVER_HEX:()=>me,LabelValueStatusBarComponent:()=>Ct.k,LoadMoreStatusBarComponent:()=>yt.s,LocalStorageStatePersistence:()=>$i.H,MulticolumnDropdown:()=>ai,MultiselectEditor:()=>p.pZ,NumberEditor:()=>c.Z0,OperationType:()=>nt.S5,ROW_MATCH_ALERT_CELL_CLASS:()=>mi.mJ,ROW_MATCH_ALERT_CLASS:()=>mi.Xm,RapidAgActionRenderer:()=>E,RapidAgActionsMenuRenderer:()=>k,RapidAgSelectRenderer:()=>N,RapidAgTextRenderer:()=>Pt,RapidBooleanRenderer:()=>T,RapidColumnSelection:()=>$t,RapidDateEditor:()=>b,RapidEditableRenderer:()=>L,RapidGridPro:()=>we,RapidGridProBeta:()=>It,RapidIconRenderer:()=>M,RapidMultiselectEditor:()=>m,RapidNumberEditor:()=>h,RapidSelectEditor:()=>d,RapidStatusPillRenderer:()=>z,RapidStringEditor:()=>S,ReloadStatusBarComponent:()=>St.W,RowCountStatusBarComponent:()=>Rt.i,SelectEditor:()=>l._Q,SelectRenderer:()=>$.gs,StatePersistence:()=>bt.l,StatusPillRenderer:()=>H.N7,StringEditor:()=>y.XJ,actionHeightMultiplier:()=>w.Fz,agActionRendererStyles:()=>w.AC,agBooleanRendererStyles:()=>x.CL,agDateEditorStyles:()=>f.kI,agDragGhostShadowDomStyles:()=>U.yK,agEditableRendererStyles:()=>I.Mx,agExternalStockStyles:()=>vi.Kp,agGridAlpineFontFace:()=>vi.KX,agGridBalhamFontFace:()=>vi.c_,agGridCSS:()=>vi.AT,agGridMaterialFontFace:()=>vi.Id,agHeadCSS:()=>vi.g4,agIconRendererStyles:()=>P.X5,agMultiselectEditorStyles:()=>p.$b,agNumberEditorStyles:()=>c.Fv,agSelectEditorStyles:()=>l.Uo,agSelectRendererStyles:()=>$.Ad,agStatusPillRendererStyles:()=>H.x2,agStringEditorStyles:()=>y.P_,agThemeAlpineNofontsCSS:()=>vi.lJ,agThemeBalhamNofontsCSS:()=>vi.HC,agThemeFontFaceMap:()=>vi.KE,agThemeFontsId:()=>s.b7,agThemeGenesisRapid:()=>Y,agThemeGenesisRapidDark:()=>J,agThemeGenesisRapidLight:()=>Z,agThemeGenesisRapidTokens:()=>Ce,agThemeMaterialCustomTokens:()=>zi,agThemeMaterialNofontsCSS:()=>vi.DX,agThemeTokenMapCSS:()=>s.Kb,agThemeTokenMapClassname:()=>s.eL,applyVisibleOrder:()=>gi.fL,backgroundSwatch:()=>Ni,baseDatasourceEventNames:()=>mt.L,bindAgColumnPickerDrag:()=>ci.W,columnSelectionStyles:()=>Ot.H,columnSelectionTemplate:()=>_t.$,convertColDefToColumnState:()=>At.pr,convertColDefsToColumnStates:()=>At.rG,convertDateFilterToCriteria:()=>ct.A0,convertFilterModelToCriteria:()=>ct.P4,convertNumberFilterToCriteria:()=>ct.X_,convertSetFilterToCriteria:()=>ct.EC,convertTextFilterToCriteria:()=>ct.zP,convertToKebabCase:()=>Et.w,copyAttributesToGridOptions:()=>ft.Qg,createEnumValueLabelFormatter:()=>Be,createRowAlert:()=>Ai,createRowMatchCellClassRules:()=>mi.Li,createRowMatchClassRules:()=>mi.PO,criteriaDelimiter:()=>nt.NC,criteriaJoin:()=>nt.W_,csvExportParams:()=>Ki,darkColors:()=>ve,datasourceEventNames:()=>ot.c,dateTimeValueFormatter:()=>ft.XV,dateValueFormatter:()=>ft.sL,defaultAgGridFontFace:()=>vi.qh,defaultGridOptionsConfig:()=>s.YO,defaultGridProConfig:()=>r.Z$,defaultRowAlertColorPresets:()=>bi,defaultRowAlertPreferences:()=>Si,defaultRowAlertRatePresets:()=>Ci,defaultRowAlertScopePresets:()=>yi,deriveHeightsFromTokens:()=>ye,dropdownWidthVar:()=>Xt,errorHandlerDialogStyles:()=>hi.B,extractErrorMessage:()=>Vi.P,foregroundSwatch:()=>Bi,formatDateExtra:()=>ft.mC,formatEnumFilterModelAsString:()=>He,foundationAgBooleanRenderer:()=>x.fg,foundationAgEditableRenderer:()=>I.r8,foundationAgSelectRenderer:()=>$.bE,foundationAgTextFieldRenderer:()=>ni.wG,foundationAgTextRenderer:()=>Gt.G4,foundationColumnSelection:()=>je.E,foundationDateEditor:()=>f.vr,foundationGridComponents:()=>fi,foundationGridPro:()=>r.RB,foundationGridProActionRenderer:()=>w._X,foundationGridProActionsMenuRenderer:()=>D.su,foundationGridProShadowOptions:()=>r.LU,foundationGridProStyles:()=>U.XF,foundationIconRenderer:()=>P.qN,foundationMulticolumnDropdown:()=>ri,foundationMultiselectEditor:()=>p.UH,foundationNumberEditor:()=>c.CY,foundationSelectEditor:()=>l.RU,foundationStatusPillRenderer:()=>H.a1,foundationStringEditor:()=>y.cb,getActionsMenuDef:()=>D.Al,getAgBooleanRendererTemplate:()=>x.A9,getAgEditableRendererTemplate:()=>I.iP,getAvailableIndexFields:()=>Ui.P,getAvailableIndexes:()=>Ui.i,getColumnSelectionTemplate:()=>_t.s,getColumnType:()=>ft.nh,getDateEditorTemplate:()=>f.m6,getEnumFilterParams:()=>ft.O7,getErrorHandlerDialogTemplate:()=>hi.P,getGridProTemplate:()=>te.U,getIconRendererTemplate:()=>P.V$,getMulticolumnDropdownTemplate:()=>Qt,getMultiselectEditorTemplate:()=>p.tB,getNumberEditorTemplate:()=>c.r1,getPickerItems:()=>gi.dd,getSelectEditorTemplate:()=>l.iY,getSelectRendererTemplate:()=>$.qj,getStatusPillRendererTemplate:()=>H.T2,getStringEditorTemplate:()=>y.bZ,getTextFieldRendererTemplate:()=>ni.tm,getTextRendererTemplate:()=>Gt.d6,gridProColumnDragBridgeModule:()=>Ye.JE,gridProColumnSelectionHostStyles:()=>Ot.M,gridProColumns:()=>$e.T,gridProErrorNames:()=>ft.Ie,gridProEventNames:()=>ft.yY,gridProGenesisDatasourceEventNames:()=>st.V,gridProTemplate:()=>te.a,lightColors:()=>fe,logger:()=>Ne.v,matchesRowCriteria:()=>ui.D,mergeAndDedupColDefWithColumnState:()=>At.yS,multicolumnDropdownStyles:()=>Yt,multicolumnDropdownTemplate:()=>Zt,normalizeRowAlertPreferences:()=>Ri,optionsClass:()=>qt,orderColumnsForPicker:()=>gi.l9,partitionPickerItems:()=>gi.do,rapidAgActionRenderer:()=>A,rapidAgActionsMenuRenderer:()=>O,rapidAgBooleanRenderer:()=>F,rapidAgDateEditor:()=>C,rapidAgEditableRenderer:()=>G,rapidAgMultiselectEditor:()=>v,rapidAgNumberEditor:()=>u,rapidAgSelectEditor:()=>g,rapidAgSelectRenderer:()=>B,rapidAgStringEditor:()=>R,rapidAgTextRenderer:()=>Mt,rapidColumnSelection:()=>Nt,rapidDefaultGridProConfig:()=>Ae,rapidGridComponents:()=>Bt,rapidGridPro:()=>De,rapidGridProBeta:()=>Lt,rapidGridProShadowOptions:()=>Ee,rapidGridProStyles:()=>ee,rapidGridProTemplate:()=>ie,rapidIconRenderer:()=>_,rapidMulticolumnDropdown:()=>si,rapidStatusPillRenderer:()=>V,reorderVisibleIds:()=>gi.K,resolveColumnDragBridge:()=>Ye.Gd,resolveColumnDragBridgeDirect:()=>Ye.Rl,resolveColumnDragBridgeFromApi:()=>Ye.Sb,resolveColumnPickerSort:()=>gi.TQ,resolveColumnsPickerApi:()=>di.m,resolveVisibleColumnFields:()=>$e.C,rowMatchAlertStyles:()=>U.em,sanitizeColumnState:()=>At.n7,syncColumnDragBridge:()=>Ye.lz,textFieldRendererStyles:()=>ni.zS,textRendererStyles:()=>Gt.JN,themeGenesisRapid:()=>j,themeGenesisRapidDark:()=>W,themeGenesisRapidLight:()=>Q,toPickerItem:()=>gi.Hz,wasClickOutsideElement:()=>ti});var a=i(55823),r=i(51266),s=i(55365),o=i(54634),n=i(33681),l=i(48075);class d extends l._Q{}const g=d.compose({baseName:"select-editor",styles:l.Uo,template:(0,l.iY)("rapid")});var c=i(48072);class h extends c.Z0{}const u=h.compose({baseName:"number-editor",styles:c.Fv,template:(0,c.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 R=S.compose({baseName:"string-editor",styles:y.P_,template:(0,y.bZ)("rapid")});var w=i(67489);class E extends w.eA{paramsChanged(e,t){(null==t?void 0:t.node.rowHeight)&&this.style.setProperty("--params-row-node-height",`${t.node.rowHeight}px`,"")}}const A=E.compose({baseName:"grid-pro-action-renderer",styles:n.css`
|
|
2
|
+
${w.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 D=i(39604);class k extends D.cN{paramsChanged(e,t){(null==t?void 0:t.node.rowHeight)&&this.style.setProperty("--params-row-node-height",`${t.node.rowHeight}px`,"")}}const O=k.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 x=i(60905);class T extends x._Y{}const F=T.compose({baseName:"boolean-renderer",styles:x.CL,template:(0,x.A9)("rapid")});var I=i(46255);class L extends I.YM{}const G=L.compose({baseName:"editable-renderer",styles:I.Mx,template:(0,I.iP)("rapid")});var P=i(2048);class M extends P.Jt{}const _=M.compose({baseName:"icon-renderer",styles:P.X5,template:(0,P.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 z extends H.N7{}const V=z.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",J=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
|
+
`,Q="ag-theme-genesis-rapid-light",Z=n.css`
|
|
726
|
+
${q}
|
|
727
|
+
|
|
728
|
+
.${Q} {
|
|
729
|
+
${(0,X.mixinRobotoFont)()}
|
|
730
|
+
font-family: var(--body-font);
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.${Q} .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
|
+
.${Q} .ag-cell {
|
|
740
|
+
font-size: var(--type-ramp-minus-1-font-size);
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.${Q} .ag-root-wrapper {
|
|
744
|
+
border-radius: calc(var(--ag-border-radius) * 1px);
|
|
745
|
+
border: 1px solid var(--rapid-ag-border-color);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.${Q} {
|
|
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
|
+
${J}
|
|
759
|
+
${Z}
|
|
760
|
+
`;var te=i(82128);const ie=(0,te.U)("rapid");var ae=i(20166),re=i(38370),se=i(83912);const oe="#cccccc",ne="#879ba6",le="#1f2126",de="#2e3339",ge="#2b2e34",ce="#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)(ge))},fe={foregroundSwatch:o.SwatchRGB.from((0,se.parseColorHexRGB)(ce)),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}=re.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,ae.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",Re="ag-theme-genesis-rapid-light";class we extends r.cF{constructor(){super(...arguments),this.luminanceObserver={handleChange:e=>this.handleLuminanceChange(e)},this.handleLuminanceChange=e=>{const t=o.baseLayerLuminance.getValueFor(e.target);this.theme=t===o.StandardLuminance.DarkMode?Se:Re},this.theme="light"===localStorage.getItem("luminance")?Re: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,a,r;const o=Object.assign({},e);o.components=Object.assign({[s.IX.action]:E,[s.IX.actionsMenu]:k,[s.IX.boolean]:T,[s.IX.editable]:L,[s.IX.icon]:M,[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]:z},e.components);(this.theme===j||this.theme===W||this.theme===Q)&&(this.headerHeight=null!==(i=null!==(t=o.headerHeight)&&void 0!==t?t:ye())&&void 0!==i?i:32,this.rowHeight=null!==(r=null!==(a=o.rowHeight)&&void 0!==a?a:ye())&&void 0!==r?r:32),super.gridOptions=o}}(0,a.Cg)([n.observable],we.prototype,"provider",void 0);const Ee=r.LU,Ae=r.Z$,De=we.compose(Object.assign({baseName:"grid-pro",template:ie,styles:ee,shadowOptions:Ee},Ae));var ke,Oe=i(6884),xe=i(20633),Te=i(21409),Fe=i(17190),Ie=i(48046),Le=i(88047),Ge=i(62051),Pe=i.n(Ge),Me=i(56943),_e=i(64315),$e=i(14987),Ne=i(1510);!function(e){e.enumFilter="enumColumnFilter",e.enumFloatingFilter="enumColumnFloatingFilter"}(ke||(ke={}));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,Le.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 ze="gp-enum-filter",Ve=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
|
+
.${ze}__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
|
+
.${ze}__search:focus {
|
|
783
|
+
border-color: var(
|
|
784
|
+
--ag-input-focus-border-color,
|
|
785
|
+
var(--ag-range-selection-border-color, #2196f3)
|
|
786
|
+
);
|
|
787
|
+
}
|
|
788
|
+
.${ze}__select-all {
|
|
789
|
+
border-bottom: 1px solid var(--ag-border-color, #babfc7);
|
|
790
|
+
padding-bottom: 4px;
|
|
791
|
+
}
|
|
792
|
+
.${ze}__list {
|
|
793
|
+
max-height: 210px;
|
|
794
|
+
overflow-y: auto;
|
|
795
|
+
display: flex;
|
|
796
|
+
flex-direction: column;
|
|
797
|
+
}
|
|
798
|
+
.${ze}__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
|
+
.${ze}__item:hover, .${ze}__item:focus-within {
|
|
808
|
+
background: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));
|
|
809
|
+
}
|
|
810
|
+
.${ze}__item input {
|
|
811
|
+
margin: 0;
|
|
812
|
+
accent-color: var(--ag-checkbox-checked-color, var(--ag-range-selection-border-color, #2196f3));
|
|
813
|
+
}
|
|
814
|
+
.${ze}__item-label {
|
|
815
|
+
overflow: hidden;
|
|
816
|
+
text-overflow: ellipsis;
|
|
817
|
+
white-space: nowrap;
|
|
818
|
+
}
|
|
819
|
+
.${ze}__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 a=e=>{i||t!==this.valuesRequestId||(i=!0,this.loading=!1,this.allValues=[...new Set((null!=e?e:[]).map(String))],this.renderList())};let r;try{r=e({colDef:this.params.colDef,api:this.params.api,success:a})}catch(e){return void a([])}if(!i)if(Array.isArray(r))a(r);else{if(void 0!==r){const e=r;return"function"!=typeof e.then?void a([]):(this.loading=!0,this.renderList(),void e.then(a,()=>a([])))}this.loading=!0,this.renderList()}}getCellValue(e){var t,i;const a=this.params;if("function"==typeof a.getValue)return a.getValue(e);const r=null===(t=a.colDef)||void 0===t?void 0:t.field;return r?null===(i=null==e?void 0:e.data)||void 0===i?void 0:i[r]: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=ze,this.eRoot=this.eGui.attachShadow({mode:"open"}),Ve.addStylesTo(this.eRoot),this.eRoot.addEventListener("keydown",e=>this.handleKeyDown(e)),this.eSearch=document.createElement("input"),this.eSearch.type="text",this.eSearch.className=`${ze}__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(`${ze}__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=`${ze}__list`,this.eRoot.appendChild(this.eList)}createItem(e){const t=document.createElement("label");t.className=`${ze}__item`;const i=document.createElement("input");i.type="checkbox",t.appendChild(i);const a=document.createElement("span");return a.className=`${ze}__item-label`,a.textContent=e,a.title=e,t.appendChild(a),{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=`${ze}__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(),a=i[0],r=i[i.length-1];return void(e.shiftKey&&t===a?(e.preventDefault(),r.focus()):e.shiftKey||t!==r||(e.preventDefault(),a.focus()))}if("ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;const i=this.focusables(),a=i.indexOf(t);if(-1===a)return;const r="ArrowDown"===e.key?a+1:a-1;r<0||r>=i.length||(e.preventDefault(),i[r].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()}}var je=i(59469),Ye=i(30096),We=i(63296),Je=i(81876),Qe=i(48707),Ze=i(96730),et=i(57963),tt=i(24669),it=i(49964),at=i(10629),rt=i(41392),st=i(90509),ot=i(79270),nt=i(35610),lt=i(21281),dt=i(70985),gt=i(88915),ct=i(44561);class ht{constructor(e){var t;this.defaultReverse=!1,this.loadGeneration=0,this.detached=!1,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.onRowsDeliveredFunc=e.onRowsDeliveredFunc,this.onRowsWithdrawnFunc=e.onRowsWithdrawnFunc,this.onRowCacheResetFunc=e.onRowCacheResetFunc,this.errorHandlerFunc=e.errorHandlerFunc,this.ledger=new gt.J(e.rowId),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,this.defaultOrderBy=e.defaultOrderBy||void 0,this.defaultReverse=null!==(t=e.defaultReverse)&&void 0!==t&&t,this.onNoDataAvailableFunc=e.onNoDataAvailableFunc,this.onDataAvailableFunc=e.onDataAvailableFunc}buildRequestServerParams(e,t,i){const a=Object.assign({},this.resourceParams);return a.DETAILS=Object.assign({},a.DETAILS),a.DETAILS.MAX_ROWS=this.maxRows,a.DETAILS.OFFSET=e,t?a.DETAILS.CRITERIA_MATCH=t:delete a.DETAILS.CRITERIA_MATCH,a.DETAILS.ORDER_BY=i.orderBy||`${this.rowId} ASC`,a}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,a){return"MORE_ROWS"in e&&!1===e.MORE_ROWS?t+i:!a&&"ROWS_COUNT"in e&&"number"==typeof e.ROWS_COUNT?e.ROWS_COUNT:-1}getRows(e){return(0,a.sH)(this,void 0,void 0,function*(){var t,i;if(this.detached)return Ne.v.debug("Infinite getRows ignored: the datasource was detached by its host"),void e.failCallback();Ne.v.debug("Infinite getRows called",{startRow:e.startRow,endRow:e.endRow,isRequestServer:this.isRequestServer});try{const i=(0,ct.P4)(e.filterModel,this.resourceColDefs),a=[this.baseCriteria,i].filter(Boolean).join(" && "),r=this.resolveSortConfig(e.sortModel);if(this.noteRequestKey(a,r),!this.isRequestServer)return void this.getDataserverRows(e,a,r);const s=this.buildRequestServerParams(e.startRow,a,r);Ne.v.debug("Infinite datasource request params",s);const o=this.loadGeneration,n=yield this.createSnapshotFunc(s);if(o!==this.loadGeneration)return Ne.v.debug("Infinite REQUEST_SERVER reply discarded: the block cache was reset"),void e.failCallback();if(!n)return void e.failCallback();const l=n.MESSAGE_TYPE;if(l===lt.Go.LOGOFF_ACK||l===lt.Go.MSG_NACK){const i=l===lt.Go.LOGOFF_ACK?`Connection lost to ${this.resourceName}`:`Request rejected by ${this.resourceName}`;return Ne.v.error(`Infinite REQUEST_SERVER block failed: ${i}`,n),null===(t=this.errorHandlerFunc)||void 0===t||t.call(this,i,"connection"),void e.failCallback()}if("REPLY"in n&&Array.isArray(n.REPLY)){const t=n.REPLY,i=this.getLastRow(n,e.startRow,t.length,Boolean(a));return e.successCallback(t,i),this.deliverRows(e.startRow,t),void this.notifyDataAvailability(e.startRow,t.length)}e.successCallback([],e.startRow),this.notifyDataAvailability(e.startRow,0)}catch(t){Ne.v.error("Error in infinite getRows:",t),null===(i=this.errorHandlerFunc)||void 0===i||i.call(this,function(e){var t,i,a;if(e instanceof Error)return e.message;if("string"==typeof e)return e;const r=e;for(const e of[r,null==r?void 0:r.receivedMessage]){const i=null===(t=null==e?void 0:e.ERROR)||void 0===t?void 0:t.map(e=>null==e?void 0:e.TEXT).filter(Boolean);if(null==i?void 0:i.length)return i.join("; ")}if("string"==typeof(null==r?void 0:r.message)&&r.message)return r.message;const s=null!==(i=null==r?void 0:r.MESSAGE_TYPE)&&void 0!==i?i:null===(a=null==r?void 0:r.receivedMessage)||void 0===a?void 0:a.MESSAGE_TYPE;if(s)return s;try{return JSON.stringify(e)}catch(t){return String(e)}}(t),"unknown"),e.failCallback()}})}resolveSortConfig(e){const t=function(e,t,i=!1){if(!e||0===e.length)return{orderBy:null,reverse:!1};const a=e[0],r=a.colId,s="desc"===a.sort;if(i)return{orderBy:`${r} ${s?"DESC":"ASC"}`,reverse:!1};for(const[e,i]of t.entries())if(e&&i.includes(r))return{orderBy:e,reverse:s};return Ne.v.warn(`Column '${r}' is not part of any named INDEX. Server-side sorting is not available for this column.`),{orderBy:null,reverse:!1}}(e,this.resourceIndexes,this.isRequestServer);return t.orderBy||!this.defaultOrderBy?t:{orderBy:this.defaultOrderBy,reverse:this.defaultReverse}}noteRequestKey(e,t){var i;const a=JSON.stringify(Object.assign({criteria:e},t));void 0!==this.rowCacheKey&&this.rowCacheKey!==a&&(this.loadGeneration+=1,this.ledger.clear(),null===(i=this.onRowCacheResetFunc)||void 0===i||i.call(this)),this.rowCacheKey=a,this.isRequestServer||void 0===this.subscriptionKey||this.subscriptionKey===a||this.teardownDataserverSubscription(),this.subscriptionKey=a}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 a=Number.isFinite(Number(e.startRow))?Number(e.startRow):0,r=Number.isFinite(Number(e.endRow))?Number(e.endRow):a+this.maxRows,s={startRow:a,endRow:r,settled:!1,success:e.successCallback,fail:e.failCallback};if(this.streamStarted&&(this.rowData.size>=r||!1===this.moreRows))this.settleBlock(s,!0);else{if(s.timer=this.createBlockTimer(s),this.pendingBlocks.add(s),!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,a.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)===ht.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,a,r,s,o;const n=null==e?void 0:e.MESSAGE_TYPE;if(n===lt.Go.LOGOFF_ACK||n===lt.Go.MSG_NACK)return null===(t=this.errorHandlerFunc)||void 0===t||t.call(this,n===lt.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.R)(e,this.rowId):void 0;if((null!==(r=null===(a=null==l?void 0:l.updates)||void 0===a?void 0:a.length)&&void 0!==r?r: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,a,r,s,o,n,l,d,g,c,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!==(r=null===(a=e.deletes)||void 0===a?void 0:a.length)&&void 0!==r?r: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!==(g=null===(d=e.deletes)||void 0===d?void 0:d.length)&&void 0!==g?g:0}),this.reset(),void(null===(c=this.onRowsInvalidatedFunc)||void 0===c||c.call(this,e));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,e))}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)},ht.BLOCK_RESOLVE_TIMEOUT_MS)}accumulate(e){var t,i,a;const r=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&&r.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=r.get(t);r.set(t,i?Object.assign(Object.assign({},i),e):e)}),null===(a=e.deletes)||void 0===a||a.forEach(e=>{const t=null==e?void 0:e[this.rowId];if(void 0===t)return;const i=this.cacheIndexOf(r,t);-1===i||this.deliveredRowCount>0&&i<this.deliveredRowCount||r.delete(t)}),this.rowData=r}cacheIndexOf(e,t){let i=0;for(const a of e.keys()){if(a===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 a=[...this.rowData.values()].slice(e.startRow,e.endRow);this.deliveredRowCount=Math.max(this.deliveredRowCount,e.startRow+a.length);const r=!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:a.length,cached:this.rowData.size,lastRow:r}),e.success(a,r),this.deliverRows(e.startRow,a),this.notifyDataAvailability(e.startRow,a.length)}notifyDataAvailability(e,t){var i,a;0!==e||this.detached||(0===t?null===(i=this.onNoDataAvailableFunc)||void 0===i||i.call(this):null===(a=this.onDataAvailableFunc)||void 0===a||a.call(this))}deliverRows(e,t){var i,a;if(this.detached)return;const{withdrawnRowIds:r}=this.ledger.record(e,t);t.length>0&&(null===(i=this.onRowsDeliveredFunc)||void 0===i||i.call(this,t)),r.length>0&&(null===(a=this.onRowsWithdrawnFunc)||void 0===a||a.call(this,r))}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(),this.ledger.clear(),Ne.v.debug("GenesisInfiniteDatasource destroyed")}detach(){this.detached=!0,this.loadGeneration+=1,this.rowCacheKey=void 0,this.destroy(),Ne.v.debug("GenesisInfiniteDatasource detached by its host")}}ht.BLOCK_RESOLVE_TIMEOUT_MS=1e4,ht.HTTP_NOT_FOUND=404;var ut=i(62922);let pt=class extends((0,Te.S)(nt.ML)){constructor(){super(...arguments),this.request={},this.onDatasourceReady=e=>(0,a.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);if(!this.isInfiniteSupportedForResource())return void this.clearRowData();this.$emit(st.V.dataInit),this.setDisconnected(!1),this.indexes=this.getResourceIndexes(this.datasource.availableIndexes,this.datasource.availableSortableFields);const e=(0,Qe.X)(this.datasource.originalFieldDef),t=yield this.getAgColumnDefs(e);this.$emit(ot.c.schemaUpdated,{schema:t,metadata:e}),this.infiniteDatasource=new ht({createSnapshotFunc:this.createSnapshot.bind(this),createDataserverStreamFunc:this.createDataserverStream.bind(this),getMoreRowsFunc:e=>this.connect.getMoreRows(e,0),onRowsDeliveredFunc:this.reportDeliveredRows.bind(this),onRowsWithdrawnFunc:this.reportWithdrawnRows.bind(this),onRowCacheResetFunc:()=>this.clearRowData(!1),onRowsInvalidatedFunc:this.handleLiveRowsInvalidated.bind(this),onRowsUpdatedFunc:this.handleLiveRowsUpdated.bind(this),onNoDataAvailableFunc:()=>this.$emit(ot.c.noDataAvailable),onDataAvailableFunc:()=>this.$emit(ot.c.loadingFinished),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.buildCriteria(),isRequestServer:this.isRequestServer,defaultOrderBy:this.orderBy,defaultReverse:this.reverse}),this.$emit(ot.c.setInfiniteDatasource,{datasource:this.infiniteDatasource}),this.setupCommitTriggeredRefresh(),this.$emit(ot.c.addGridCssClass,{className:"grid-pro-infinite"}),this.$emit(ot.c.filtersRestored)})}resourceNameChanged(e,t){e&&e!==t&&n.DOM.queueUpdate(()=>(0,a.sH)(this,void 0,void 0,function*(){yield this.restart()}))}criteriaChanged(e,t){const i=e!==(0,Ze.Q)(t,";");this.infiniteDatasource&&i&&n.DOM.queueUpdate(()=>(0,a.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(),this.subscribeToFilterChanges())})}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;n.DOM.queueUpdate(()=>(0,a.sH)(this,void 0,void 0,function*(){e&&(yield this.destroy(),this.unsubscribeFromConnection(),this.unsubscribeFromFilterChanges())}))}subscribeToFilterChanges(){this.unsubscribeFromFilterChanges(),this.filterSub=this.update.pipe((0,at.i)(1),(0,rt.B)(600)).subscribe(()=>{this.infiniteDatasource&&this.reloadResourceData()})}unsubscribeFromFilterChanges(){var e;null===(e=this.filterSub)||void 0===e||e.unsubscribe(),this.filterSub=void 0}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}reloadResourceData(){return(0,a.sH)(this,void 0,void 0,function*(){var e,t;null===(t=null===(e=this.infiniteDatasource)||void 0===e?void 0:e.detach)||void 0===t||t.call(e),this.infiniteDatasource=void 0,this.datasource.destroy(),this.$emit(ot.c.cacheFilterConfig),this.clearRowData(!1),this.setDisconnected(!1),this.$emit(ot.c.refreshInfiniteCache,{purge:!0}),yield this.init()})}init(){return(0,a.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(ot.c.initialize,{options:e,keepColDefsOnClearRowData:this.keepColDefsOnClearRowData}),this.clearReadyListener(),this.addEventListener(ot.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(ot.c.ready,this.onDatasourceReady)}isInfiniteSupportedForResource(){return!(this.isRequestServer&&!this.datasource.criteriaOnlyRequest)||(this.handleErrors(`Infinite row model is not supported for the REQUEST_SERVER resource '${this.resourceName}' because it does not support criteria-only requests. Set 'criteriaOnlyRequest = true' on the request reply definition, or use a client-side datasource for this resource.`,"resource-type"),!1)}handleLiveRowsInvalidated(e){this.reportLiveChange(e),this.$emit(ot.c.refreshInfiniteCache,{purge:!0})}handleLiveRowsUpdated(e){this.reportLiveChange(e),this.$emit(ot.c.refreshInfiniteCache,{purge:!1})}reportLiveChange(e){const t=this.resetTransaction();this.handleStreamUpdates(e.updates),this.handleStreamDeletes(e.deletes),this.emitTransaction(t)}destroy(){return(0,a.sH)(this,void 0,void 0,function*(){var e,t;this.clearReadyListener(),this.teardownCommitTriggeredRefresh(),this.$emit(ot.c.removeGridCssClass,{className:"grid-pro-infinite"}),this.datasource.destroy(),this.clearRowData(),this.infiniteDatasource&&(null===(t=(e=this.infiniteDatasource).detach)||void 0===t||t.call(e),this.infiniteDatasource=void 0),this.$emit(ot.c.setInfiniteDatasource,{datasource:null})})}restart(){return(0,a.sH)(this,void 0,void 0,function*(){yield this.destroy(),yield this.init()})}clearRowData(e=!0){this.rowData=new Map,this.resetTransaction(),this.$emit(ot.c.dataCleared,{includeSchema:e})}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:a}=e.detail;this.pollTriggerEvents.includes(i)&&(null===(t=a.MESSAGE_TYPE)||void 0===t?void 0:t.endsWith("_ACK"))&&(Ne.v.debug(`Commit ACK for ${i}, re-reading the loaded blocks.`),this.$emit(ot.c.refreshInfiniteCache,{purge:!1}))}))}teardownCommitTriggeredRefresh(){var e;null===(e=this.commitResponseUnsubscribe)||void 0===e||e.call(this),this.commitResponseUnsubscribe=void 0}createSnapshot(){return(0,a.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,a.sH)(this,void 0,void 0,function*(){const t=this.generateColumnDefsFromMetadata(e,ut.O,ut.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,a.Cg)([et.dm],pt.prototype,"connect",void 0),(0,a.Cg)([tt.a4],pt.prototype,"connectEvents",void 0),(0,a.Cg)([it.yW],pt.prototype,"datasource",void 0),(0,a.Cg)([n.observable],pt.prototype,"request",void 0),pt=(0,a.Cg)([(0,n.customElement)({name:"grid-pro-infinite-datasource"})],pt);var mt=i(18070),vt=i(26062),ft=i(32610),bt=i(53397),Ct=i(52540),yt=i(49104),St=i(88863),Rt=i(71964),wt=i(73203),Et=i(50103),At=i(23201);(0,xe.N)(vt.D,We.L,Je.X,pt,Me.O,_e.G,je.X),Ie.syG.registerModules([Ie.n76,Ie.Q90,Ie.x6L,Ie.YN8,Ie.YzW,Ie.Lt,Ie.I95,Ie.O4V,Ie.H18,Ie.mfG,Ie.Iws,Ie.nSw,Ie.FUS,Ie.Ss0,Ie.tkg,Ie.ZDV,Ie.ZyC,Ie.XG7,Ie.VZy,Ie.$I9,Ie.dGu,Ie.AJG,Ie.c5B,Ie.BG,Ie.KIB,Ie.Sko,Ie.ZuP,Ie.Vc,Ye.JE]);const Dt="gridReady";class kt extends((0,Te.S)(re.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,a.sH)(this,void 0,void 0,function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)})}setFilterModel(e){return(0,a.sH)(this,void 0,void 0,function*(){this.persistFilterModelKey?yield this.statePersistence.saveFilterModel(this.persistFilterModelKey,e):this._filterConfig=e})}constructor(){super(),this.gridErrorItems=[],this.disposed=!1,this.debouncedSaveColumnState=Pe()(this.saveColumnState.bind(this),400),this.debouncedSaveFilterModel=Pe()(this.cacheFilterConfig.bind(this),400),this.debouncedNotifyDatasourceVisibleColumns=Pe()(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,Et.w)(t)]=t,e),{});const e=this.hideDatasourceError.bind(this);this.rootEventsListeners.push([st.V.dataInit,e],[ft.yY.datasourceErrorClose,e],[mt.L.error,this.handleBaseDatasourceError.bind(this)],[mt.L.connected,e]),this.datasourceEventHandlers=[[ot.c.initialize,this.handleInitialize.bind(this)],[ot.c.dataLoaded,this.handleDataLoaded.bind(this)],[ot.c.dataChanged,this.handleDataChanged.bind(this)],[ot.c.schemaUpdated,this.handleSchemaUpdated.bind(this)],[ot.c.dataCleared,this.handleDataCleared.bind(this)],[ot.c.loadingStarted,this.handleLoadingStarted.bind(this)],[ot.c.loadingFinished,this.handleLoadingFinished.bind(this)],[ot.c.noDataAvailable,this.handleNoDataAvailable.bind(this)],[ot.c.filtersRestored,this.handleFiltersRestored.bind(this)],[ot.c.moreDataAvailable,this.handleMoreDataAvailable.bind(this)],[ot.c.error,this.handleDatasourceError.bind(this)],[ot.c.destroy,this.handleDatasourceDestroy.bind(this)],[ot.c.cacheFilterConfig,this.cacheFilterConfig.bind(this)],[ot.c.refreshServerSide,this.handleRefreshServerSide.bind(this)],[ot.c.setServerSideDatasource,this.handleSetServerSideDatasource.bind(this)],[ot.c.addGridCssClass,this.handleAddGridCssClass.bind(this)],[ot.c.removeGridCssClass,this.handleRemoveGridCssClass.bind(this)],[ot.c.applyServerSideTransaction,this.handleApplyServerSideTransaction.bind(this)],[ot.c.setInfiniteDatasource,this.handleSetInfiniteDatasource.bind(this)],[ot.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,Fe.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 a,r;const s=null===(a=null==t?void 0:t.get)||void 0===a?void 0:a.call(this);null===(r=null==t?void 0:t.set)||void 0===r||r.call(this,i),this.agAttributeChangedCallback((0,Et.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||!this.isClientSideRowModel)return;const i=this.gridApi.applyTransaction(t);this.flashAddedCells(null==i?void 0:i.add)}get isClientSideRowModel(){var e,t,i;return"clientSide"===(null!==(i=null===(t=null===(e=this.gridApi)||void 0===e?void 0:e.getGridOption)||void 0===t?void 0:t.call(e,"rowModelType"))&&void 0!==i?i:"clientSide")}flashAddedCells(e){this.enableRowFlashing&&(null==e?void 0:e.length)&&this.gridApi.flashCells({rowNodes:e})}handleSchemaUpdated(e){return(0,a.sH)(this,void 0,void 0,function*(){this.gridApi?yield this.processSchemaUpdate(e.detail):this.pendingSchemaUpdate=e.detail})}processSchemaUpdate(e){return(0,a.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 a,r,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=ke.enumFilter,void(null!==(a=e.floatingFilterComponent)&&void 0!==a||(e.floatingFilterComponent=ke.enumFloatingFilter));if("agMultiColumnFilter"!==e.filter)return;const l=null===(s=null===(r=e.filterParams)||void 0===r?void 0:r.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=ke.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=ke.enumFilter,e.filterParams=Object.assign({},l.filterParams),null!==(n=e.floatingFilterComponent)&&void 0!==n||(e.floatingFilterComponent=ke.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.isClientSideRowModel&&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,a,r;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===(r=(a=l).updateParams)||void 0===r||r.call(a,{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,a=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;a&&a.classList.add(i)}handleRemoveGridCssClass(e){var t;const{className:i}=e.detail,a=(null===(t=this.gridSlot)||void 0===t?void 0:t.parentElement)||this;a&&a.classList.remove(i)}handleApplyServerSideTransaction(e){var t,i;const{transaction:a,async:r,callback:s}=e.detail;if(this.gridApi)if(r)this.gridApi.applyServerSideTransactionAsync(a,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(a);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]:w.eA,[s.IX.actionsMenu]:D.cN,[s.IX.boolean]:x._Y,[s.IX.editable]:I.YM,[s.IX.icon]:P.Jt,[s.IX.statusPill]:H.N7,[s.IX.select]:$.gs,[s.IX.selectEditor]:l._Q,[s.IX.numberEditor]:c.Z0,[s.IX.multiselectEditor]:p.pZ,[s.IX.dateEditor]:f.S8,[s.IX.stringEditor]:y.XJ,[ke.enumFilter]:Ue,[ke.enumFloatingFilter]:qe,[s.k7.labelValue]:Ct.k,[s.k7.loadMore]:yt.s,[s.k7.reload]:St.W,[s.k7.rowCount]:Rt.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,a;try{if(!this.initialised||!this.gridApi)return[];const r=null===(e=this.gridOptions)||void 0===e?void 0:e.rowSelection;if("single"===r||"multiple"===r)return this.gridApi.getSelectedRows&&this.gridApi.getSelectedRows().length>0?this.gridApi.getSelectedRows():[];if((null===(t=this.gridApi)||void 0===t?void 0:t.getCellRanges)&&this.gridApi.getCellRanges().length>0)return this.getCellRangeRowData();if(!(null===(i=this.gridOptions)||void 0===i?void 0:i.enableRangeSelection)){const e=null===(a=this.gridApi)||void 0===a?void 0:a.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,a=e.endRow.rowIndex;for(let e=t;e<=a;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 a=null===(i=(t=this.gridApi).getStatusPanel)||void 0===i?void 0:i.call(t,s.k7.labelValue);a&&"function"==typeof a.updateParams?a.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,a.sH)(this,void 0,void 0,function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.gridApi.getColumnState();e=(0,At.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,a.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,a.sH)(this,void 0,void 0,function*(){var e;this.rehydrationAttempted=!0;const t=yield this.getSavedColumnState(),i=(0,At.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,a.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 Je.X}get gridParams(){return{globalListener:this.boundGlobalEventListener,modules:[Ye.JE,Ie.Vc,Ie.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 pt}notifyDatasourceVisibleColumns(){var e,t,i,a;const r=this.gridProDatasource;if(!r)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===(a=null===(i=this.gridApi)||void 0===i?void 0:i.getColumnDefs)||void 0===a?void 0:a.call(i));s.length&&r.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:r,components:o,defaultColDef:n,getRowId:l,onGridReady:d,onFilterChanged:g,onFirstDataRendered:c}=e,h=(0,a.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,a.sH)(this,void 0,void 0,function*(){var t,i,a;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(Dt,{event:e,gridId:this.id}),this.$emit(s.mr,{event:e,gridId:this.id}),this.notifyDatasourceVisibleColumns(),null===(a=this.gridProDatasource)||void 0===a||a.$emit(ot.c.ready),this.restoreColumnState(),this.restoreCachedFilterConfig(),this.debouncedColumnAutosize()}),onFirstDataRendered:e=>{this.notifyDatasourceVisibleColumns(),c&&c(e)},onColumnPinned:t,onColumnResized:t,onColumnMoved:t,onColumnVisible:()=>{t(),i()},onDisplayedColumnsChanged:()=>{t(),i()},onFilterChanged:e=>{!this.disposed&&this.isConnected&&(this.debouncedSaveFilterModel(),g&&g(e))},onGridSizeChanged:t,onSortChanged:t}),h);this.gridProDatasource?(u.columnDefs=r,u.getRowId=l,this.setupStatusBar(u),this.setLocalGridOptions(u)):this.mergeAllColumnDefsAndStates(r).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),{[Ye.nJ]: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,Ie.Dvw)(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0)})}mergeAllColumnDefsAndStates(e){return(0,a.sH)(this,arguments,void 0,function*(e,t=!1){var i;const a=e||[];a.forEach(e=>{if(this.headerCaseType&&e.field&&!e.headerName){const t=Le[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 r=Array.from(this.querySelectorAll(this.columnComponentName)).map(e=>e.definition).map(e=>{var t,i,r,o,n,l;if(this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),"agSetColumnFilter"===e.filter||e.filter===ke.enumFilter){if(!(null!=e.filterParams&&"values"in e.filterParams)){const s=null===(t=a.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===(r=null==s?void 0:s.filters)||void 0===r?void 0:r.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===ke.enumFilter&&(null!==(l=e.floatingFilterComponent)&&void 0!==l||(e.floatingFilterComponent=ke.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=wt.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=a.find(t=>e.field===t.field);return Object.assign(Object.assign({},d),e)}),o=r.map(e=>e.field),n=[...r,...this.onlyTemplateColDefs?[]:a.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,At.yS)(n,e);if((null===(i=this.gridProDatasource.deferredColumnStates)||void 0===i?void 0:i.length)>0)return(0,At.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 a=[...(null===(t=e.statusBar)||void 0===t?void 0:t.statusPanels)||[]];this.addRowCountPanel(a,e),this.addMaxRowsPanel(a),this.addAggregationPanel(a),this.addDatasourcePanels(a);const r=((null===(i=e.statusBar)||void 0===i?void 0:i.statusPanels)||[]).filter(e=>!this.panelExists(e.statusPanel,a));a.push(...r),e.statusBar={statusPanels:a}}}get observedAttributes(){const e=ft.zI.map(e=>e.toLowerCase()),t=ft.zI.map(e=>(0,Et.w)(e));return e.concat(t)}agAttributeChangedCallback(e,t,i){var a;if(t===i)return;const r=this.agPropertiesMap[e];r&&(this.agAttributes[r]=i,this.initialised&&(null===(a=this.gridApi)||void 0===a||a.setGridOption(r,i)))}globalEventListener(e,t){const i=e.toLowerCase(),a=new Event(i);a.agGridDetails=t,this.dispatchEvent(a);const r="on"+i;"function"==typeof this[r]&&this[r](a)}}(0,a.Cg)([n.observable],kt.prototype,"gridApi",void 0),(0,a.Cg)([n.observable],kt.prototype,"gridErrorItems",void 0),(0,a.Cg)([bt.l],kt.prototype,"statePersistence",void 0),(0,a.Cg)([(0,n.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],kt.prototype,"autoCellRendererByType",void 0),(0,a.Cg)([(0,n.attr)({attribute:"only-template-col-defs",mode:"boolean"})],kt.prototype,"onlyTemplateColDefs",void 0),(0,a.Cg)([(0,n.attr)({mode:"boolean",attribute:"grid-autosizing"})],kt.prototype,"gridAutosizingEnabled",void 0),(0,a.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],kt.prototype,"enableCellFlashing",void 0),(0,a.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-row-flashing"})],kt.prototype,"enableRowFlashing",void 0),(0,a.Cg)([(0,n.attr)({attribute:"persist-column-state-key"})],kt.prototype,"persistColumnStateKey",void 0),(0,a.Cg)([(0,n.attr)({attribute:"persist-filter-model-key"})],kt.prototype,"persistFilterModelKey",void 0),(0,a.Cg)([(0,n.attr)({attribute:"header-case-type"})],kt.prototype,"headerCaseType",void 0),(0,a.Cg)([n.observable],kt.prototype,"rowData",void 0),(0,a.Cg)([n.attr],kt.prototype,"columnComponentName",void 0),(0,a.Cg)([n.observable],kt.prototype,"eventsAndCallbacks",void 0),(0,a.Cg)([n.attr],kt.prototype,"headerHeight",void 0),(0,a.Cg)([n.attr],kt.prototype,"rowHeight",void 0),(0,a.Cg)([n.observable],kt.prototype,"classNames",void 0),(0,a.Cg)([n.observable],kt.prototype,"agGrid",void 0),(0,a.Cg)([n.observable],kt.prototype,"gridSlot",void 0),(0,a.Cg)([n.observable],kt.prototype,"themeMode",void 0),(0,a.Cg)([n.observable],kt.prototype,"gridComponents",void 0),(0,a.Cg)([n.observable],kt.prototype,"statusBarConfig",void 0),(0,a.Cg)([(0,n.attr)({mode:"boolean",attribute:"with-status-bar"})],kt.prototype,"withStatusBar",void 0),(0,a.Cg)([(0,n.attr)({mode:"boolean",attribute:"enable-column-selection"})],kt.prototype,"enableColumnSelection",void 0),(0,a.Cg)([n.observable],kt.prototype,"customErrorHandlerTemplate",void 0),(0,a.Cg)([s.lz],kt.prototype,"gridOptionsConfig",void 0),(0,a.Cg)([n.observable],kt.prototype,"provider",void 0);var Ot=i(34713);const xt={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%)"},Tt=["rowheight","row-height"];function Ft(e){const t=Number(e);return Number.isFinite(t)&&t>0?t:void 0}class It extends kt{getCachedTheme(e){const t=null!=e?e:"default";let i=It.cachedThemes.get(t);return i||(i=Ie.N8R.withParams("default"===t?xt:Object.assign(Object.assign({},xt),{rowHeight:`${t}px`})),It.cachedThemes.set(t,i)),i}resolveRowHeight(e){for(const e of Tt){const t=Ft(this.getAttribute(e));if(t)return t}return Ft(e.rowHeight)}agAttributeChangedCallback(e,t,i){var a;super.agAttributeChangedCallback(e,t,i),"rowHeight"===this.agPropertiesMap[e]&&t!==i&&(null===(a=this.gridApi)||void 0===a||a.setGridOption("theme",this.getCachedTheme(Ft(i))))}set gridOptions(e){const t=Object.assign({},e);t.components=Object.assign({[s.IX.action]:E,[s.IX.actionsMenu]:k,[s.IX.boolean]:T,[s.IX.editable]:L,[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]:z,[s.IX.icon]:M},t.components),t.theme=this.getCachedTheme(this.resolveRowHeight(t)),super.gridOptions=t}}It.cachedThemes=new Map,(0,a.Cg)([n.observable],It.prototype,"provider",void 0);const Lt=It.compose(Object.assign({baseName:"grid-pro",template:ie,styles:n.css`
|
|
862
|
+
${U.yK}
|
|
863
|
+
${Ot.M}
|
|
864
|
+
${U.em}
|
|
865
|
+
|
|
866
|
+
:host {
|
|
867
|
+
width: 100%;
|
|
868
|
+
height: 100%;
|
|
869
|
+
}
|
|
870
|
+
.ag-body-vertical-scroll-viewport,
|
|
871
|
+
.ag-body-horizontal-scroll-viewport,
|
|
872
|
+
.ag-horizontal-right-spacer:not(.ag-scroller-corner),
|
|
873
|
+
.ag-horizontal-left-spacer:not(.ag-scroller-corner) {
|
|
874
|
+
scrollbar-color: var(--ag-scrollbar-handle, var(--neutral-layer-1))
|
|
875
|
+
var(--ag-scrollbar-background, var(--neutral-layer-4));
|
|
876
|
+
&:hover {
|
|
877
|
+
scrollbar-color: var(--neutral-fill-rest) var(--neutral-layer-4);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
.ag-body-horizontal-scroll-end-spacer {
|
|
881
|
+
overflow: unset;
|
|
882
|
+
background: var(--ag-scrollbar-background, var(--neutral-layer-4));
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
/*
|
|
886
|
+
* Server-side and infinite row models: reveal the inactive (unsorted) sort icon on header
|
|
887
|
+
* hover rather than always. The datasource adds .grid-pro-server-side / .grid-pro-infinite to
|
|
888
|
+
* the grid host while attached; unSortIcon renders the .ag-sort-none-icon on sortable columns,
|
|
889
|
+
* and these rules keep just that icon hidden until the header is hovered. Only the none icon
|
|
890
|
+
* is targeted - AG shows the ascending/descending icon (and hides the none icon) once a column
|
|
891
|
+
* is sorted, so a sorted column's arrow stays fully visible at rest. Matches the client-side
|
|
892
|
+
* model's quiet header while keeping sortability discoverable.
|
|
893
|
+
*/
|
|
894
|
+
.grid-pro-server-side .ag-header-cell-sortable .ag-sort-none-icon,
|
|
895
|
+
.grid-pro-infinite .ag-header-cell-sortable .ag-sort-none-icon {
|
|
896
|
+
opacity: 0;
|
|
897
|
+
transition: opacity 0.15s ease-in-out;
|
|
898
|
+
}
|
|
899
|
+
.grid-pro-server-side .ag-header-cell-sortable:hover .ag-sort-none-icon,
|
|
900
|
+
.grid-pro-infinite .ag-header-cell-sortable:hover .ag-sort-none-icon {
|
|
901
|
+
opacity: 1;
|
|
902
|
+
}
|
|
903
|
+
`,shadowOptions:Ee},Ae));var Gt=i(96598);class Pt extends Gt.t{}const Mt=Pt.compose({baseName:"grid-text-renderer",styles:Gt.JN,template:(0,Gt.d6)("rapid")});var _t=i(11489);class $t extends je.X{}const Nt=$t.compose({baseName:"column-selection",template:(0,_t.s)("rapid"),styles:Ot.H}),Bt={rapidIconRenderer:_,rapidAgEditableRenderer:G,rapidAgActionRenderer:A,rapidAgActionsMenuRenderer:O,rapidAgBooleanRenderer:F,rapidAgTextRenderer:Mt,rapidAgSelectRenderer:B,rapidAgDateEditor:C,rapidAgMultiselectEditor:v,rapidAgSelectEditor:g,rapidAgNumberEditor:u,rapidAgStringEditor:R,rapidStatusPillRenderer:V,rapidGridPro:De,rapidColumnSelection:Nt,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};var Ht=i(58749),zt=i(95553),Vt=i(14609),Ut=i(86636);const Kt={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(","):""},Xt="--dropdown-width",qt="options",jt="dnone",Yt=n.css`
|
|
904
|
+
label {
|
|
905
|
+
color: var(--neutral-foreground-hint, rgb(135 155 166));
|
|
906
|
+
font-style: normal;
|
|
907
|
+
margin: calc(var(--design-unit) * 2px) 0;
|
|
908
|
+
display: block;
|
|
909
|
+
cursor: pointer;
|
|
910
|
+
font-size: var(--type-ramp-base-font-size);
|
|
911
|
+
line-height: var(--type-ramp-base-line-height);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
.${jt} {
|
|
915
|
+
display: none !important;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.root {
|
|
919
|
+
position: relative;
|
|
920
|
+
width: inherit;
|
|
921
|
+
min-width: 250px;
|
|
922
|
+
${Xt}: 350px;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.control {
|
|
926
|
+
cursor: pointer;
|
|
927
|
+
position: relative;
|
|
928
|
+
display: flex;
|
|
929
|
+
align-items: center;
|
|
930
|
+
width: 100%;
|
|
931
|
+
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
#display-field {
|
|
935
|
+
width: 100%;
|
|
936
|
+
cursor: pointer;
|
|
937
|
+
color: inherit;
|
|
938
|
+
min-height: 40px;
|
|
939
|
+
padding-left: calc(var(--design-unit) * 2.25px);
|
|
940
|
+
padding-right: 52px;
|
|
941
|
+
border-width: 0;
|
|
942
|
+
background: var(--neutral-fill-input-rest);
|
|
943
|
+
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
944
|
+
text-overflow: ellipsis;
|
|
945
|
+
font-size: var(--type-ramp-base-font-size);
|
|
946
|
+
font-family: var(--body-font);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
#display-field[disabled] {
|
|
950
|
+
cursor: not-allowed;
|
|
951
|
+
opacity: var(--disabled-opacity);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
#display-field:focus {
|
|
955
|
+
outline: 1px solid var(--accent-fill-rest);
|
|
956
|
+
background: var(--neutral-fill-input-rest);
|
|
957
|
+
border-style: none;
|
|
958
|
+
box-shadow: none;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
#display-field:hover:not(:focus):not([disabled]) {
|
|
962
|
+
outline: 1px solid var(--neutral-stroke-hover, rgb(231 232 232));
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
button {
|
|
966
|
+
pointer-events: none;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
#arrow-icon {
|
|
970
|
+
display: inline-block;
|
|
971
|
+
width: 16px;
|
|
972
|
+
color: currentColor;
|
|
973
|
+
position: absolute;
|
|
974
|
+
left: calc(100% - 26px);
|
|
975
|
+
padding: 0;
|
|
976
|
+
cursor: pointer;
|
|
977
|
+
transform: rotate(0deg);
|
|
978
|
+
transition: transform 0.2s linear 0s;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
#arrow-icon.flipped {
|
|
982
|
+
transform: rotate(180deg);
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
.cross-icon {
|
|
986
|
+
display: inline-block;
|
|
987
|
+
width: 12px;
|
|
988
|
+
color: currentColor;
|
|
989
|
+
position: absolute;
|
|
990
|
+
left: calc(100% - 46px);
|
|
991
|
+
padding: 0;
|
|
992
|
+
cursor: pointer;
|
|
993
|
+
visibility: hidden;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.cross-icon:hover {
|
|
997
|
+
color: var(--error-color);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.disabled-icon {
|
|
1001
|
+
pointer-events: none;
|
|
1002
|
+
opacity: var(--disabled-opacity);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.${qt} {
|
|
1006
|
+
min-width: 100%;
|
|
1007
|
+
width: var(${Xt});
|
|
1008
|
+
display: flex;
|
|
1009
|
+
flex-direction: column;
|
|
1010
|
+
position: absolute;
|
|
1011
|
+
height: max-content;
|
|
1012
|
+
overflow-y: hidden;
|
|
1013
|
+
margin: 5px 0;
|
|
1014
|
+
background: var(--neutral-fill-input-rest);
|
|
1015
|
+
visibility: hidden;
|
|
1016
|
+
z-index: 999;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
.dropdown-above {
|
|
1020
|
+
bottom: 100%;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.dropdown-left {
|
|
1024
|
+
right: 0;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.grid-container {
|
|
1028
|
+
height: 300px;
|
|
1029
|
+
width: 100%;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
#filter-search {
|
|
1033
|
+
padding: 5px;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.visible {
|
|
1037
|
+
visibility: visible;
|
|
1038
|
+
}
|
|
1039
|
+
`;var Wt=i(40729),Jt=i(31679);const Qt=(e="foundation")=>n.html`
|
|
1040
|
+
<label
|
|
1041
|
+
part="label"
|
|
1042
|
+
for="control"
|
|
1043
|
+
class="label ${e=>{var t,i;return null!==(i=(0,Jt.x)([jt,!(null!==(t=e.hasSlottedContent)&&void 0!==t&&t)]))&&void 0!==i?i:""}}"
|
|
1044
|
+
>
|
|
1045
|
+
<slot
|
|
1046
|
+
${(0,n.slotted)({property:"defaultSlottedNodes"})}
|
|
1047
|
+
></slot>
|
|
1048
|
+
</label>
|
|
1049
|
+
<div class="root" part="root">
|
|
1050
|
+
<div class="control" part="control">
|
|
1051
|
+
<${e}-icon
|
|
1052
|
+
id="arrow-icon"
|
|
1053
|
+
name="chevron-down"
|
|
1054
|
+
class="${e=>(0,Jt.x)(["flipped",e.open],["disabled-icon",e.disabled])}"
|
|
1055
|
+
@click=${e=>!e.disabled&&e.toggle()}
|
|
1056
|
+
></${e}-icon>
|
|
1057
|
+
<${e}-icon
|
|
1058
|
+
name="xmark"
|
|
1059
|
+
class="cross-icon ${e=>(0,Jt.x)(["visible",!!e.value],["disabled-icon",e.disabled])}"
|
|
1060
|
+
@click=${e=>!e.disabled&&(e.value=void 0)}
|
|
1061
|
+
></${e}-icon>
|
|
1062
|
+
<input
|
|
1063
|
+
readonly
|
|
1064
|
+
type="text"
|
|
1065
|
+
id="display-field"
|
|
1066
|
+
part="display-field"
|
|
1067
|
+
?disabled=${e=>e.disabled}
|
|
1068
|
+
:value="${e=>e.displayValue}"
|
|
1069
|
+
@click=${e=>e.toggle()}
|
|
1070
|
+
/>
|
|
1071
|
+
</div>
|
|
1072
|
+
<div
|
|
1073
|
+
${(0,n.ref)("optionsElement")}
|
|
1074
|
+
class="${e=>{var t,i,a,r;return(0,Jt.x)(qt,["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!==(r=null===(a=e.dropdownPlacement)||void 0===a?void 0:a.endsWith("left"))&&void 0!==r&&r])}}"
|
|
1075
|
+
>
|
|
1076
|
+
<${e}-text-field
|
|
1077
|
+
id="filter-search"
|
|
1078
|
+
part="filter-search"
|
|
1079
|
+
placeholder="Search..."
|
|
1080
|
+
:value=${(0,Wt.O)(e=>e.filterSearch,"string","input")}
|
|
1081
|
+
?hidden=${e=>!e.hasSearchKey}
|
|
1082
|
+
@change=${(e,t)=>e.changeHandler(t.event)}
|
|
1083
|
+
></${e}-text-field>
|
|
1084
|
+
<div class="grid-container" part="grid">
|
|
1085
|
+
<${e}-grid-pro
|
|
1086
|
+
${(0,n.ref)("grid")}
|
|
1087
|
+
only-template-col-defs
|
|
1088
|
+
>${(0,$e.T)(e=>e.columnDefinitions)}</${e}-grid-pro>
|
|
1089
|
+
</div>
|
|
1090
|
+
</div>
|
|
1091
|
+
</div>
|
|
1092
|
+
`,Zt=Qt(),ei={menuTabs:["filterMenuTab","generalMenuTab","columnsMenuTab"]},ti=(e,t)=>!e.composedPath().includes(t);function ii(e,t,i,r){return(0,a.sH)(this,void 0,void 0,function*(){var a;try{const s=function(e,t){const i=(new Ht.K).withField(e).withValue(null!=t?t:"").withSerialiser(zt.n.EQ).withGroup("default").build();return i.serialiser(i)}(i,r),o=yield e.request(t,{DETAILS:{CRITERIA_MATCH:s}});return 1===(null===(a=o.REPLY)||void 0===a?void 0:a.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 ai extends((0,Te.S)(re.FoundationElement)){constructor(){super(...arguments),this.requestSupportsAdvancedSearch=!1,this.defaultSlottedNodes=[],this.getAndSetRowsDebounce=Pe()(()=>this.getAndSetRows(),300),this.handleClickOutside=e=>{ti(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?ii(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:ei,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,a.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={},a=this.request?{REQUEST:Object.assign({},this.request)}:{},r=Array.isArray(this.searchKey)&&1===this.searchKey.length?this.searchKey[0]:this.searchKey;let s;if(r&&this.filterSearch)if(this.requestSupportsAdvancedSearch){const e=(Array.isArray(r)?r:[r]).map(e=>{var t;return(new Ht.K).withField(e).withValue(null!==(t=this.filterSearch)&&void 0!==t?t:"").withSerialiser(zt.n.containsIgnoreCase).withGroup("default").build()}),t=new Vt.b;t.Or(e,{join:Ut.r.Or()}),s=t.build()}else{if(Array.isArray(r))throw Error("MulticolumnDropdown: Unable to search multiple keys via request; if the request is a GPAL ReqRep, set requestSupportsAdvancedSearch to true");a.REQUEST=Object.assign(Object.assign({},a.REQUEST),{[r]:`*${this.filterSearch}*`})}const o=null===(t=this.baseCriteria)||void 0===t?void 0:t.trim();o&&s?s=`(${s}) && (${o})`:o&&(s=o),s&&(a.DETAILS={CRITERIA_MATCH:s});try{const e=yield this.connect.request(this.resourceName,a);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(Xt,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,a.Cg)([et.dm],ai.prototype,"_connectDI",void 0),(0,a.Cg)([(0,n.attr)({mode:"boolean"})],ai.prototype,"disabled",void 0),(0,a.Cg)([(0,n.attr)({attribute:"resource-name"})],ai.prototype,"resourceName",void 0),(0,a.Cg)([(0,n.attr)({attribute:"search-key",converter:Kt})],ai.prototype,"searchKey",void 0),(0,a.Cg)([(0,n.attr)({attribute:"advanced-search-req",mode:"boolean"})],ai.prototype,"requestSupportsAdvancedSearch",void 0),(0,a.Cg)([(0,n.attr)({attribute:"value-key"})],ai.prototype,"valueKey",void 0),(0,a.Cg)([(0,n.attr)({attribute:"label-key"})],ai.prototype,"labelKey",void 0),(0,a.Cg)([(0,n.attr)({attribute:"dropdown-placement"})],ai.prototype,"dropdownPlacement",void 0),(0,a.Cg)([n.attr],ai.prototype,"dropdownWidth",void 0),(0,a.Cg)([n.observable],ai.prototype,"request",void 0),(0,a.Cg)([n.observable],ai.prototype,"columnDefinitions",void 0),(0,a.Cg)([n.observable],ai.prototype,"baseCriteria",void 0),(0,a.Cg)([n.observable],ai.prototype,"defaultSlottedNodes",void 0),(0,a.Cg)([n.observable],ai.prototype,"filterSearch",void 0),(0,a.Cg)([n.observable],ai.prototype,"open",void 0),(0,a.Cg)([n.observable],ai.prototype,"selectedRow",void 0),(0,a.Cg)([n.volatile],ai.prototype,"displayValue",null),(0,a.Cg)([n.volatile],ai.prototype,"hasSearchKey",null),(0,a.Cg)([n.volatile],ai.prototype,"hasSlottedContent",null);const ri=ai.compose({baseName:"multicolumn-dropdown",template:Zt,styles:Yt}),si=ai.compose({baseName:"multicolumn-dropdown",template:Qt("rapid"),styles:Yt});var oi=i(3299),ni=i(70349),li=i(91327),di=i(19910),gi=i(26270),ci=i(22749),hi=i(30335),ui=i(22133);class pi{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:a=[],remove:r=[]}=null!==(t=null==e?void 0:e.changes)&&void 0!==t?t:{};for(const e of r)this.syncRow(e,!0);for(const e of i)this.syncRow(e,!1);for(const e of a)this.syncRow(e,!1);this.report()}handleDataCleared(){this.reset()}observe(e){const t=e=>{this.handleDataChanged(e.detail)},i=()=>{this.handleDataCleared()};return e.addEventListener(ot.c.dataChanged,t),e.addEventListener(ot.c.dataCleared,i),()=>{e.removeEventListener(ot.c.dataChanged,t),e.removeEventListener(ot.c.dataCleared,i)}}syncRow(e,t){var i;if(!e)return;const a=String(null!==(i=e[this.criteria.rowIdField])&&void 0!==i?i:"");a&&(!t&&(0,ui.D)(this.criteria,e)?this.matchedRowIds.add(a):this.matchedRowIds.delete(a))}report(){const e=this.active;e!==this.lastReportedActive&&(this.lastReportedActive=e,this.onActiveChanged(e))}}var mi=i(49260),vi=i(49568);const fi={foundationIconRenderer:P.qN,foundationGridProActionRenderer:w._X,foundationGridProActionsMenuRenderer:D.su,foundationAgBooleanRenderer:x.fg,foundationAgTextRenderer:Gt.G4,foundationAgTextFieldRenderer:ni.wG,foundationAgEditableRenderer:I.r8,foundationAgSelectRenderer:$.bE,foundationSelectEditor:l.RU,foundationNumberEditor:c.CY,foundationDateEditor:f.vr,foundationMultiselectEditor:p.UH,foundationStringEditor:y.cb,foundationMulticolumnDropdown:ri,foundationStatusPillRenderer:H.a1,StatusPillRenderer:H.N7,foundationGridPro:r.RB,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}},bi=[{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)"}],Ci=[{id:"slow",label:"Slow",value:1400},{id:"normal",label:"Normal",value:1e3},{id:"fast",label:"Fast",value:500}],yi=[{id:"row",label:"Whole row",value:"row"},{id:"cell",label:"Alert field cell",value:"cell"}],Si={color:bi[0].value,durationMs:Ci[1].value,scope:"row"};function Ri(e){return{color:"string"==typeof(null==e?void 0:e.color)&&e.color.trim().length>0?e.color:Si.color,durationMs:"number"==typeof(null==e?void 0:e.durationMs)&&Number.isFinite(e.durationMs)&&e.durationMs>0?e.durationMs:Si.durationMs,scope:"row"===(null==e?void 0:e.scope)||"cell"===(null==e?void 0:e.scope)?e.scope:Si.scope}}const wi=new Map;function Ei(e){const{persistPreferencesKey:t,target:i,mirrorColorTo:a=[]}=e,r=t?function(e){if(e.statePersistence)return e.statePersistence;try{return re.DI.getOrCreateDOMContainer().get(bt.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=Ri(Object.assign(Object.assign({},Si),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 a)e.style.setProperty(t,o.color)}}function l(e,i){o=e,n();for(const e of s)e(o);i&&t&&(null==r?void 0:r.saveRowAlertPreferences)&&r.saveRowAlertPreferences(t,o).catch(e=>{Ne.v.warn("Could not save row alert preferences",e)})}return n(),t&&(null==r?void 0:r.getRowAlertPreferences)&&r.getRowAlertPreferences(t).then(e=>{l(Ri(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(Ri(Object.assign(Object.assign({},o),e)),!0)},subscribe:e=>(s.add(e),()=>{s.delete(e)})}}function Ai(e,t={}){var i,a,r,s,o;const{colorPresets:n=bi,ratePresets:l=Ci,menuLabel:d="Alert flash"}=t,g=function(e){const{persistPreferencesKey:t}=e;if(!t)return Ei(e);let i=wi.get(t);return i||(i=Ei(e),wi.set(t,i)),i}(t),c=(0,mi.PO)(e)[mi.Xm],h=(0,mi.Li)(Object.assign(Object.assign({},e),{flashField:null!==(a=null!==(i=e.flashField)&&void 0!==i?i:e.stateField)&&void 0!==a?a:null===(o=null===(s=null===(r=e.anyOf)||void 0===r?void 0:r[0])||void 0===s?void 0:s[0])||void 0===o?void 0:o.field}))[mi.mJ];function u(e,t,i,a){return e.map(e=>({name:e.label,checked:e.value===t,action:()=>{g.change(i(e.value)),a()}}))}const p={rowClassRules:{[mi.Xm]:e=>"row"===g.preferences.scope&&c(e)},defaultColDef:{cellClassRules:{[mi.mJ]:e=>"cell"===g.preferences.scope&&h(e)}},get preferences(){return g.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(yi,g.preferences.scope,e=>({scope:e}),t)},{name:"Color",subMenu:u(n,g.preferences.color,e=>({color:e}),()=>{})},{name:"Flash rate",subMenu:u(l,g.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){g.change(e)},reset(){g.change(Si)},subscribe:e=>g.subscribe(e)};return p}var Di=i(92277);const ki=/^(?:[A-Za-z0-9+/]{4})*?(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Oi=e=>{const t=e.split(":");let i,a;2===t.length?[i,a]=t:a=e;const r=(e=>{if(ki.test(e)){const t=atob(e),i=new Uint8Array(t.length);return[...t].forEach((e,a)=>{i[a]=t.charCodeAt(a)}),i.buffer}return e})(a);if("str"===i){return new TextDecoder("utf-8").decode(r)}return r},xi=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}`:""},Ti={account:"genesis",namespace:"default",authKey:"kv-default",authEmail:void 0},Fi=re.DI.createInterface();var Ii,Li;!function(e){e.REQ_KEY_VALUE_LIST="REQ_KEY_VALUE_LIST",e.REQ_KEY_VALUE_READ="REQ_KEY_VALUE_READ"}(Ii||(Ii={})),function(e){e.EVENT_KEY_VALUE_PUT="EVENT_KEY_VALUE_PUT",e.EVENT_KEY_VALUE_DELETE="EVENT_KEY_VALUE_DELETE"}(Li||(Li={}));let Gi=class{constructor(e,t,i=Ti){this.connect=e,this.user=t,this.kvStorageConfig=i}delete(e){return(0,a.sH)(this,void 0,void 0,function*(){const t={DETAILS:{KEYS:e}},i=yield this.connect.commitEvent(Li.EVENT_KEY_VALUE_DELETE,t);return!(!i||"EVENT_ACK"!==i.MESSAGE_TYPE)||{ERROR:i.ERROR,WARNING:i.WARNING}})}get(e){return(0,a.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}},a=yield this.connect.request(Ii.REQ_KEY_VALUE_READ,i);if(a&&a.REPLY&&a.REPLY.length>0){const t=a.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=Oi(e);return"string"==typeof t&&t.startsWith("str:")&&(t=Oi(t)),"string"==typeof t&&t.startsWith("bin:")&&(t=Oi(t)),t}list(){return(0,a.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(Ii.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,a.sH)(this,void 0,void 0,function*(){const t={DETAILS:{RECORDS:e.map(e=>({KEY:e.key,VALUE:e.base64?xi(e.value):e.value}))}},i=yield this.connect.commitEvent(Li.EVENT_KEY_VALUE_PUT,t);return!(!i||"EVENT_ACK"!==i.MESSAGE_TYPE)||{ERROR:i.ERROR,WARNING:i.WARNING}})}};Gi=(0,a.Cg)([(0,a.Qj)(0,et.dm),(0,a.Qj)(1,Di.KJ),(0,a.Qj)(2,(0,re.optional)(Fi))],Gi);const Pi=re.DI.createInterface(e=>e.singleton(Gi));var Mi=i(98316);class _i{getColumnState(e){return(0,a.sH)(this,void 0,void 0,function*(){var t;yield this.migrateLocalStorageToKVStorage(e);const i=yield this.kvStorage.get(e),a=i?null===(t=i.kv)||void 0===t?void 0:t.value:void 0;return a?JSON.parse(a):[]})}saveColumnState(e,t){return(0,a.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}deleteColumnState(e){return(0,a.sH)(this,void 0,void 0,function*(){this.kvStorage.delete([e])})}migrateLocalStorageToKVStorage(e){return(0,a.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 a=this.session.getLocalStorageItem("gridOptions"),r=a?JSON.parse(a)[e]:void 0;r&&(Ne.v.debug(`Columns state migration for key: ${e} from LocalStorage to KV Storage`),this.kvStorage.put([{key:e,value:r}]))})}getFilterModel(e){return(0,a.sH)(this,void 0,void 0,function*(){var t;const i=yield this.kvStorage.get(e),a=i?null===(t=i.kv)||void 0===t?void 0:t.value:void 0;return a?JSON.parse(a):{}})}saveFilterModel(e,t){return(0,a.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}getRowAlertPreferences(e){return(0,a.sH)(this,void 0,void 0,function*(){var t;const i=yield this.kvStorage.get(e),a=i?null===(t=i.kv)||void 0===t?void 0:t.value:void 0;return a?JSON.parse(a):{}})}saveRowAlertPreferences(e,t){return(0,a.sH)(this,void 0,void 0,function*(){this.kvStorage.put([{key:e,value:JSON.stringify(t)}])})}}(0,a.Cg)([Pi],_i.prototype,"kvStorage",void 0),(0,a.Cg)([Mi.N],_i.prototype,"session",void 0);var $i=i(11749);const Ni=o.SwatchRGB.from((0,se.parseColorHexRGB)("#4c4c4c")),Bi=o.SwatchRGB.from((0,se.parseColorHexRGB)("#c01754")),{create:Hi}=re.DesignToken,zi={foregroundColor:Hi("fui-ag-foreground-color").withDefault(Bi),backgroundColor:Hi("fui-ag-background-color").withDefault(Ni)};var Vi=i(68858),Ui=i(49874);const Ki={processCellCallback:e=>["+","=","-","@","\t","\n"].some(t=>String(e.value).startsWith(t))?`'${e.value}`:e.value}}}]);
|
|
1093
|
+
//# sourceMappingURL=47.c5e5e6beb5c609952d2862513cbe55fe.js.map
|