@genesislcap/design-system-configurator 14.126.0 → 14.127.1

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.
Files changed (24) hide show
  1. package/dist/{180.180.d68c2300b42caa36c492.js → 180.180.fc82150d9554ce52cc39.js} +83 -83
  2. package/dist/180.d261b63dacd3f5256060fc350e2c7b34.js.map +1 -0
  3. package/dist/{200.200.44bcdf578015f361122a.js → 200.200.10b91a7243d7952cfd4b.js} +2 -2
  4. package/dist/{200.282560fecee536dffe7ab496134a61cd.js.map → 200.7a8b2e7bb1872daf2c36570c37bd91c0.js.map} +1 -1
  5. package/dist/{269.269.58f76f42bddfcfb8d71b.js → 269.269.ffbb0723d5a8d7f78d76.js} +2 -2
  6. package/dist/{645.645.16dbeb427dca47f80724.js → 645.645.49b9e0317859355da4d5.js} +4 -4
  7. package/dist/645.d18c10696908d640b5e26e5ae00f864d.js.map +1 -0
  8. package/dist/{755.755.9f0d4e7e206bfb4e97e1.js → 755.755.631be2888844585f3d48.js} +1 -1
  9. package/dist/{8.aab7d3cc543301610182da8470a00c42.js.map → 8.17fb5c725550f75ede773e6c9c1c4e98.js.map} +1 -1
  10. package/dist/{8.8.30c23a373b09dffa9472.js → 8.8.ca0ca3563911d4ccad1d.js} +3 -3
  11. package/dist/designSystemConfigurator.eac4488f912a1e582a1540e6d72da80a.js.map +1 -0
  12. package/dist/index.html +1 -1
  13. package/dist/main.82e3d278dfc52f313482239501431d79.js.map +1 -0
  14. package/dist/main.d88cfbc39e99c97eafae.js +2 -0
  15. package/dist/{npm.microsoft.127.09a1c157fc9a441d74bb.js → npm.microsoft.127.803e5c7223dce995d8e7.js} +12 -15
  16. package/dist/npm.microsoft.7abcec696b2d9a3b4ee8c706bf093c1f.js.map +1 -0
  17. package/dist/remoteEntry.js +2 -2
  18. package/package.json +11 -11
  19. package/dist/180.6e08e931a0d24058e36a897e7fe291bc.js.map +0 -1
  20. package/dist/645.1a8bcac3ab28d1d6b1b1ff6181d464b2.js.map +0 -1
  21. package/dist/designSystemConfigurator.ed60b1851af8f4ee2b4a81b2dfeb6a93.js.map +0 -1
  22. package/dist/main.860a9c81fa6b0d394f99.js +0 -2
  23. package/dist/main.9572fe3ca6de4f007b3da30ba3b08e95.js.map +0 -1
  24. package/dist/npm.microsoft.49d64dd7fb5cba62b1c24b3c7fba0b45.js.map +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[180],{34180:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>bg,ColorToken:()=>yg,ColorTokens:()=>Cg,DesignSystemEditor:()=>ig,DesignSystemExport:()=>hg,DesignSystemPreview:()=>Fg,EventName:()=>Wl,PreviewComponents:()=>cg,PreviewForm:()=>Eg,PreviewGrid:()=>Gg,TypographyTokens:()=>Og,defaultBodyFont:()=>Zl,fontFamilies:()=>Jl});var t={};r.r(t),r.d(t,{accentFillActive:()=>c.accentFillActive,accentFillActiveDelta:()=>c.accentFillActiveDelta,accentFillFocus:()=>c.accentFillFocus,accentFillFocusDelta:()=>c.accentFillFocusDelta,accentFillHover:()=>c.accentFillHover,accentFillHoverDelta:()=>c.accentFillHoverDelta,accentFillRest:()=>c.accentFillRest,accentFillRestDelta:()=>c.accentFillRestDelta,accentForegroundActive:()=>c.accentForegroundActive,accentForegroundActiveDelta:()=>c.accentForegroundActiveDelta,accentForegroundFocus:()=>c.accentForegroundFocus,accentForegroundFocusDelta:()=>c.accentForegroundFocusDelta,accentForegroundHover:()=>c.accentForegroundHover,accentForegroundHoverDelta:()=>c.accentForegroundHoverDelta,accentForegroundRest:()=>c.accentForegroundRest,accentForegroundRestDelta:()=>c.accentForegroundRestDelta,accentPalette:()=>c.accentPalette,baseHeightMultiplier:()=>c.baseHeightMultiplier,baseLayerLuminance:()=>c.baseLayerLuminance,bodyFont:()=>c.bodyFont,controlCornerRadius:()=>c.controlCornerRadius,density:()=>c.density,designUnit:()=>c.designUnit,direction:()=>c.direction,disabledOpacity:()=>c.disabledOpacity,fillColor:()=>c.fillColor,focusStrokeInner:()=>c.focusStrokeInner,focusStrokeOuter:()=>c.focusStrokeOuter,focusStrokeWidth:()=>c.focusStrokeWidth,foregroundOnAccentActive:()=>c.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>c.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>c.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>c.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>c.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>c.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>c.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>c.foregroundOnAccentRestLarge,neutralFillActive:()=>c.neutralFillActive,neutralFillActiveDelta:()=>c.neutralFillActiveDelta,neutralFillFocus:()=>c.neutralFillFocus,neutralFillFocusDelta:()=>c.neutralFillFocusDelta,neutralFillHover:()=>c.neutralFillHover,neutralFillHoverDelta:()=>c.neutralFillHoverDelta,neutralFillInputActive:()=>c.neutralFillInputActive,neutralFillInputActiveDelta:()=>c.neutralFillInputActiveDelta,neutralFillInputFocus:()=>c.neutralFillInputFocus,neutralFillInputFocusDelta:()=>c.neutralFillInputFocusDelta,neutralFillInputHover:()=>c.neutralFillInputHover,neutralFillInputHoverDelta:()=>c.neutralFillInputHoverDelta,neutralFillInputRest:()=>c.neutralFillInputRest,neutralFillInputRestDelta:()=>c.neutralFillInputRestDelta,neutralFillLayerRest:()=>c.neutralFillLayerRest,neutralFillLayerRestDelta:()=>c.neutralFillLayerRestDelta,neutralFillRest:()=>c.neutralFillRest,neutralFillRestDelta:()=>c.neutralFillRestDelta,neutralFillStealthActive:()=>c.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>c.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>c.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>c.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>c.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>c.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>c.neutralFillStealthRest,neutralFillStealthRestDelta:()=>c.neutralFillStealthRestDelta,neutralFillStrongActive:()=>c.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>c.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>c.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>c.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>c.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>c.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>c.neutralFillStrongRest,neutralFillStrongRestDelta:()=>c.neutralFillStrongRestDelta,neutralForegroundHint:()=>c.neutralForegroundHint,neutralForegroundRest:()=>c.neutralForegroundRest,neutralLayer1:()=>c.neutralLayer1,neutralLayer2:()=>c.neutralLayer2,neutralLayer3:()=>c.neutralLayer3,neutralLayer4:()=>c.neutralLayer4,neutralLayerCardContainer:()=>c.neutralLayerCardContainer,neutralLayerFloating:()=>c.neutralLayerFloating,neutralPalette:()=>c.neutralPalette,neutralStrokeActive:()=>c.neutralStrokeActive,neutralStrokeActiveDelta:()=>c.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>c.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>c.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>c.neutralStrokeFocus,neutralStrokeFocusDelta:()=>c.neutralStrokeFocusDelta,neutralStrokeHover:()=>c.neutralStrokeHover,neutralStrokeHoverDelta:()=>c.neutralStrokeHoverDelta,neutralStrokeRest:()=>c.neutralStrokeRest,neutralStrokeRestDelta:()=>c.neutralStrokeRestDelta,strokeWidth:()=>c.strokeWidth,typeRampBaseFontSize:()=>c.typeRampBaseFontSize,typeRampBaseLineHeight:()=>c.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>c.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>c.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>c.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>c.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>c.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>c.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>c.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>c.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>c.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>c.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>c.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>c.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>c.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>c.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>c.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>c.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>ve,baseLayerLuminanceValue:()=>fe,bodyFontValue:()=>Oe,controlCornerRadiusValue:()=>xe,densityValue:()=>ze,designTokens:()=>Fe,designUnitValue:()=>ke,directionValue:()=>we,neutralPaletteValue:()=>be,strokeWidthValue:()=>ye,typeRampBaseFontSizeValue:()=>De,typeRampBaseLineHeightValue:()=>Ne});var i=r(77661),n=r(92592),l=r(89074),g=r(60724),d=r(83147),s=r(75951),c=r(13896),p=r(67973);const u=d.css`
1
+ "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[180],{34180:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>fg,ColorToken:()=>xg,ColorTokens:()=>Ag,DesignSystemEditor:()=>ng,DesignSystemExport:()=>mg,DesignSystemPreview:()=>$g,EventName:()=>ql,PreviewComponents:()=>pg,PreviewForm:()=>Pg,PreviewGrid:()=>Bg,TypographyTokens:()=>Dg,defaultBodyFont:()=>Kl,fontFamilies:()=>Zl});var t={};r.r(t),r.d(t,{accentFillActive:()=>c.accentFillActive,accentFillActiveDelta:()=>c.accentFillActiveDelta,accentFillFocus:()=>c.accentFillFocus,accentFillFocusDelta:()=>c.accentFillFocusDelta,accentFillHover:()=>c.accentFillHover,accentFillHoverDelta:()=>c.accentFillHoverDelta,accentFillRest:()=>c.accentFillRest,accentFillRestDelta:()=>c.accentFillRestDelta,accentForegroundActive:()=>c.accentForegroundActive,accentForegroundActiveDelta:()=>c.accentForegroundActiveDelta,accentForegroundFocus:()=>c.accentForegroundFocus,accentForegroundFocusDelta:()=>c.accentForegroundFocusDelta,accentForegroundHover:()=>c.accentForegroundHover,accentForegroundHoverDelta:()=>c.accentForegroundHoverDelta,accentForegroundRest:()=>c.accentForegroundRest,accentForegroundRestDelta:()=>c.accentForegroundRestDelta,accentPalette:()=>c.accentPalette,baseHeightMultiplier:()=>c.baseHeightMultiplier,baseLayerLuminance:()=>c.baseLayerLuminance,bodyFont:()=>c.bodyFont,controlCornerRadius:()=>c.controlCornerRadius,density:()=>c.density,designUnit:()=>c.designUnit,direction:()=>c.direction,disabledOpacity:()=>c.disabledOpacity,fillColor:()=>c.fillColor,focusStrokeInner:()=>c.focusStrokeInner,focusStrokeOuter:()=>c.focusStrokeOuter,focusStrokeWidth:()=>c.focusStrokeWidth,foregroundOnAccentActive:()=>c.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>c.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>c.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>c.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>c.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>c.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>c.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>c.foregroundOnAccentRestLarge,neutralFillActive:()=>c.neutralFillActive,neutralFillActiveDelta:()=>c.neutralFillActiveDelta,neutralFillFocus:()=>c.neutralFillFocus,neutralFillFocusDelta:()=>c.neutralFillFocusDelta,neutralFillHover:()=>c.neutralFillHover,neutralFillHoverDelta:()=>c.neutralFillHoverDelta,neutralFillInputActive:()=>c.neutralFillInputActive,neutralFillInputActiveDelta:()=>c.neutralFillInputActiveDelta,neutralFillInputFocus:()=>c.neutralFillInputFocus,neutralFillInputFocusDelta:()=>c.neutralFillInputFocusDelta,neutralFillInputHover:()=>c.neutralFillInputHover,neutralFillInputHoverDelta:()=>c.neutralFillInputHoverDelta,neutralFillInputRest:()=>c.neutralFillInputRest,neutralFillInputRestDelta:()=>c.neutralFillInputRestDelta,neutralFillLayerRest:()=>c.neutralFillLayerRest,neutralFillLayerRestDelta:()=>c.neutralFillLayerRestDelta,neutralFillRest:()=>c.neutralFillRest,neutralFillRestDelta:()=>c.neutralFillRestDelta,neutralFillStealthActive:()=>c.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>c.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>c.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>c.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>c.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>c.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>c.neutralFillStealthRest,neutralFillStealthRestDelta:()=>c.neutralFillStealthRestDelta,neutralFillStrongActive:()=>c.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>c.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>c.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>c.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>c.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>c.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>c.neutralFillStrongRest,neutralFillStrongRestDelta:()=>c.neutralFillStrongRestDelta,neutralForegroundHint:()=>c.neutralForegroundHint,neutralForegroundRest:()=>c.neutralForegroundRest,neutralLayer1:()=>c.neutralLayer1,neutralLayer2:()=>c.neutralLayer2,neutralLayer3:()=>c.neutralLayer3,neutralLayer4:()=>c.neutralLayer4,neutralLayerCardContainer:()=>c.neutralLayerCardContainer,neutralLayerFloating:()=>c.neutralLayerFloating,neutralPalette:()=>c.neutralPalette,neutralStrokeActive:()=>c.neutralStrokeActive,neutralStrokeActiveDelta:()=>c.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>c.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>c.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>c.neutralStrokeFocus,neutralStrokeFocusDelta:()=>c.neutralStrokeFocusDelta,neutralStrokeHover:()=>c.neutralStrokeHover,neutralStrokeHoverDelta:()=>c.neutralStrokeHoverDelta,neutralStrokeRest:()=>c.neutralStrokeRest,neutralStrokeRestDelta:()=>c.neutralStrokeRestDelta,strokeWidth:()=>c.strokeWidth,typeRampBaseFontSize:()=>c.typeRampBaseFontSize,typeRampBaseLineHeight:()=>c.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>c.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>c.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>c.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>c.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>c.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>c.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>c.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>c.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>c.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>c.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>c.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>c.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>c.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>c.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>c.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>c.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>ve,baseLayerLuminanceValue:()=>fe,bodyFontValue:()=>Oe,controlCornerRadiusValue:()=>xe,densityValue:()=>ze,designTokens:()=>Fe,designUnitValue:()=>ke,directionValue:()=>we,neutralPaletteValue:()=>be,strokeWidthValue:()=>ye,typeRampBaseFontSizeValue:()=>De,typeRampBaseLineHeightValue:()=>Ne});var i=r(50497),n=r(92592),l=r(89074),g=r(60724),d=r(79292),s=r(99667),c=r(41663),p=r(67973);const u=d.css`
2
2
  :host {
3
3
  border: calc(${c.strokeWidth} * 1px) solid transparent;
4
4
  margin: 0;
@@ -50,7 +50,7 @@
50
50
  background: ${p.H.Canvas};
51
51
  border-color: ${p.H.CanvasText};
52
52
  }
53
- `));var h=r(8484);const m=(0,h.createLogger)("foundation-form"),v={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"},b=d.html`
53
+ `));var h=r(99958);const m=(0,h.createLogger)("foundation-form"),v={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"},b=d.html`
54
54
  <template>
55
55
  ${(0,d.when)((e=>!1),d.html`
56
56
  <zero-button class="clipboard-button" @click=${e=>e.copyUISchemaToClipboard()}>
@@ -280,7 +280,7 @@
280
280
  </control-wrapper>
281
281
  </template>
282
282
  `)(e.jsonforms.prefix)}
283
- `,tester:(0,g.yMz)(3,R),mapper:g.xq9};var I=r(85017);const E=e=>a=>{if(!a||!(0,g.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},P=(0,g.xDy)(E("allOptionsResourceName"),(0,g.or)((0,g.wcO)((e=>(0,g.ndu)(e,"array"))),(0,g.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,g.ndu)(e,"array")))))));I.MultiselectDatasource;const U={renderer:d.html`
283
+ `,tester:(0,g.yMz)(3,R),mapper:g.xq9};var I=r(75253);const E=e=>a=>{if(!a||!(0,g.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},P=(0,g.xDy)(E("allOptionsResourceName"),(0,g.or)((0,g.wcO)((e=>(0,g.ndu)(e,"array"))),(0,g.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,g.ndu)(e,"array")))))));I.MultiselectDatasource;const U={renderer:d.html`
284
284
  ${e=>((e="zero")=>d.html`
285
285
  <template>
286
286
  <control-wrapper
@@ -567,7 +567,7 @@
567
567
  }
568
568
 
569
569
  ${(0,I.actionsMenuBaseStyles)(e,a)}
570
- `,template:I.foundationActionsMenuTemplate});var Ee=r(82694);const Pe=(e,a=1)=>new Ee.ColorRGBA64(e.r,e.g,e.b,a).toStringWebRGBA(),Ue=(0,Ee.parseColorHexRGB)(ce.white),Ge=(e=1)=>Pe(Ue,e),Be=((0,Ee.parseColorHexRGB)(ce.black),(0,Ee.parseColorHexRGB)("#585858")),_e=(c.SwatchRGB.create(Be.r,Be.g,Be.b),(0,Ee.parseColorHexRGB)("#202126")),He=c.SwatchRGB.create(_e.r,_e.g,_e.b),Ye=(c.PaletteRGB.from(He),(0,Ee.parseColorHexRGB)(pe.blue)),Ve=(e=1)=>Pe(Ye,e),Qe=c.SwatchRGB.create(Ye.r,Ye.g,Ye.b),We=(c.PaletteRGB.from(Qe),(0,Ee.parseColorHexRGB)(pe.purple)),qe=(e=1)=>Pe(We,e),Je=(0,Ee.parseColorHexRGB)(ue.orange),Ze=(e=1)=>Pe(Je,e),Ke=(0,Ee.parseColorHexRGB)(ue.teal),Xe=(e=1)=>Pe(Ke,e),ea=((0,Ee.parseColorHexRGB)(me.longGreen),(0,Ee.parseColorHexRGB)(me.chartPink),(0,Ee.parseColorHexRGB)(me.warningYellow)),aa=(0,Ee.parseColorHexRGB)(me.chartPink),ra=(e=1)=>Pe(aa,e);function ta(e,a){return new s.PropertyStyleSheetBehavior("appearance",e,a)}const oa=.3,ia=.1,na=.5,la=d.css`
570
+ `,template:I.foundationActionsMenuTemplate});var Ee=r(43556);const Pe=(e,a=1)=>new Ee.ColorRGBA64(e.r,e.g,e.b,a).toStringWebRGBA(),Ue=(0,Ee.parseColorHexRGB)(ce.white),Ge=(e=1)=>Pe(Ue,e),Be=((0,Ee.parseColorHexRGB)(ce.black),(0,Ee.parseColorHexRGB)("#585858")),_e=(c.SwatchRGB.create(Be.r,Be.g,Be.b),(0,Ee.parseColorHexRGB)("#202126")),He=c.SwatchRGB.create(_e.r,_e.g,_e.b),Ye=(c.PaletteRGB.from(He),(0,Ee.parseColorHexRGB)(pe.blue)),Ve=(e=1)=>Pe(Ye,e),Qe=c.SwatchRGB.create(Ye.r,Ye.g,Ye.b),We=(c.PaletteRGB.from(Qe),(0,Ee.parseColorHexRGB)(pe.purple)),qe=(e=1)=>Pe(We,e),Je=(0,Ee.parseColorHexRGB)(ue.orange),Ze=(e=1)=>Pe(Je,e),Ke=(0,Ee.parseColorHexRGB)(ue.teal),Xe=(e=1)=>Pe(Ke,e),ea=((0,Ee.parseColorHexRGB)(me.longGreen),(0,Ee.parseColorHexRGB)(me.chartPink),(0,Ee.parseColorHexRGB)(me.warningYellow)),aa=(0,Ee.parseColorHexRGB)(me.chartPink),ra=(e=1)=>Pe(aa,e);function ta(e,a){return new s.PropertyStyleSheetBehavior("appearance",e,a)}const oa=.3,ia=.1,na=.5,la=d.css`
571
571
  :host([appearance='primary-blue']) {
572
572
  background: ${Ve(oa)};
573
573
  border: 1px solid ${pe.blue};
@@ -1848,11 +1848,11 @@
1848
1848
  .${di(e)} {
1849
1849
  ${new I.CSSVarsTokenMapper(a)}
1850
1850
  }
1851
- `;var ci;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.editable="editable",e.text="text",e.select="select",e.dateEditor="dateEditor",e.selectEditor="selectEditor",e.numberEditor="numberEditor",e.stringEditor="stringEditor",e.multiselectEditor="multiselectEditor"}(ci||(ci={}));const pi="__editedColumn",ui="__errorColumn";ni().extend(gi());class hi extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.dateFormat=e.withTime?"YYYY-MM-DDTHH:mm":"YYYY-MM-DD",this.inputType=e.withTime?"datetime-local":"date",this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}changeHandler(e){const a=e.target.control.valueAsNumber;this.value=isNaN(a)?void 0:a}afterGuiAttached(){this.input.focus()}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],hi.prototype,"value",void 0),(0,oi.__decorate)([d.observable],hi.prototype,"actualWidth",void 0);const mi=d.css`
1851
+ `;var ci;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.editable="editable",e.text="text",e.select="select",e.dateEditor="dateEditor",e.selectEditor="selectEditor",e.numberEditor="numberEditor",e.stringEditor="stringEditor",e.multiselectEditor="multiselectEditor"}(ci||(ci={}));const pi="__editedColumn",ui="__errorColumn",hi=s.DI.createInterface();ni().extend(gi());class mi extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.dateFormat=e.withTime?"YYYY-MM-DDTHH:mm":"YYYY-MM-DD",this.inputType=e.withTime?"datetime-local":"date",this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}changeHandler(e){const a=e.target.control.valueAsNumber;this.value=isNaN(a)?void 0:a}afterGuiAttached(){this.input.focus()}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],mi.prototype,"value",void 0),(0,oi.__decorate)([d.observable],mi.prototype,"actualWidth",void 0);const vi=d.css`
1852
1852
  :host {
1853
1853
  display: flex;
1854
1854
  }
1855
- `,vi=(e="foundation")=>d.html`
1855
+ `,bi=(e="foundation")=>d.html`
1856
1856
  <${e}-text-field
1857
1857
  ${(0,d.ref)("input")}
1858
1858
  :value=${e=>void 0===e.value||null===e.value?"":ni().utc(e.value).format(e.dateFormat)}
@@ -1860,7 +1860,7 @@
1860
1860
  @input=${(e,a)=>e.changeHandler(a.event)}
1861
1861
  style="width: ${e=>e.actualWidth}px"
1862
1862
  ></${e}-text-field>
1863
- `,bi=hi.compose({baseName:"date-editor",styles:mi,template:vi()});class fi extends hi{}const wi=fi.compose({baseName:"date-editor",styles:mi,template:vi("zero")});class yi extends s.FoundationElement{init(e){e&&(this.params=e,this.selectedOptions=e.value,this.params.selectedOptionsCallback&&this.params.selectedOptionsCallback(this.params.data).then((e=>{this.selectedOptions=e})),"string"==typeof e.value&&(this.selectedOptions=e.value.split(",")))}getGui(){return this}destroy(){}refresh(e){return!0}getValue(){return this.selectedOptions}isPopup(){return!0}changeHandler(e){this.selectedOptions=e.detail}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],yi.prototype,"params",void 0),(0,oi.__decorate)([d.observable],yi.prototype,"selectedOptions",void 0);const xi=d.css``,zi=(e="foundation")=>d.html`
1863
+ `,fi=mi.compose({baseName:"date-editor",styles:vi,template:bi()});class wi extends mi{}const yi=wi.compose({baseName:"date-editor",styles:vi,template:bi("zero")});class xi extends s.FoundationElement{init(e){e&&(this.params=e,this.selectedOptions=e.value,this.params.selectedOptionsCallback&&this.params.selectedOptionsCallback(this.params.data).then((e=>{this.selectedOptions=e})),"string"==typeof e.value&&(this.selectedOptions=e.value.split(",")))}getGui(){return this}destroy(){}refresh(e){return!0}getValue(){return this.selectedOptions}isPopup(){return!0}changeHandler(e){this.selectedOptions=e.detail}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],xi.prototype,"params",void 0),(0,oi.__decorate)([d.observable],xi.prototype,"selectedOptions",void 0);const zi=d.css``,ki=(e="foundation")=>d.html`
1864
1864
  <${e}-multiselect
1865
1865
  style="width: 100%"
1866
1866
  ?async=${e=>e.params.async}
@@ -1874,7 +1874,7 @@
1874
1874
  :datasourceConfig=${e=>e.params.datasourceOptions}
1875
1875
  ></multiselect-datasource>
1876
1876
  </${e}-multiselect>
1877
- `,ki=yi.compose({baseName:"multiselect-editor",styles:xi,template:zi()});class Si extends yi{}const Ci=Si.compose({baseName:"multiselect-editor",styles:xi,template:zi("zero")});class Ai extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.combobox.open=!0}changeHandler(e){var a;this.value=null===(a=e.detail)||void 0===a?void 0:a.value}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],Ai.prototype,"params",void 0),(0,oi.__decorate)([d.observable],Ai.prototype,"value",void 0),(0,oi.__decorate)([d.observable],Ai.prototype,"actualWidth",void 0);const Ti=d.css``,Oi=(e="foundation")=>d.html`
1877
+ `,Si=xi.compose({baseName:"multiselect-editor",styles:zi,template:ki()});class Ci extends xi{}const Ai=Ci.compose({baseName:"multiselect-editor",styles:zi,template:ki("zero")});class Ti extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.combobox.open=!0}changeHandler(e){var a;this.value=null===(a=e.detail)||void 0===a?void 0:a.value}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],Ti.prototype,"params",void 0),(0,oi.__decorate)([d.observable],Ti.prototype,"value",void 0),(0,oi.__decorate)([d.observable],Ti.prototype,"actualWidth",void 0);const Oi=d.css``,Di=(e="foundation")=>d.html`
1878
1878
  <${e}-combobox
1879
1879
  style="width: ${e=>e.actualWidth}px"
1880
1880
  ${(0,d.ref)("combobox")}
@@ -1891,11 +1891,11 @@
1891
1891
  :initialSelectedValue=${e=>e.params.value}
1892
1892
  ></options-datasource>
1893
1893
  </${e}-combobox>
1894
- `,Di=Ai.compose({baseName:"select-editor",styles:Ti,template:Oi()});class Ni extends Ai{}const Fi=Ni.compose({baseName:"select-editor",styles:Ti,template:Oi("zero")});class $i extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],$i.prototype,"params",void 0),(0,oi.__decorate)([d.observable],$i.prototype,"value",void 0),(0,oi.__decorate)([d.observable],$i.prototype,"actualWidth",void 0);const Li=d.css`
1894
+ `,Ni=Ti.compose({baseName:"select-editor",styles:Oi,template:Di()});class Fi extends Ti{}const $i=Fi.compose({baseName:"select-editor",styles:Oi,template:Di("zero")});class Li extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],Li.prototype,"params",void 0),(0,oi.__decorate)([d.observable],Li.prototype,"value",void 0),(0,oi.__decorate)([d.observable],Li.prototype,"actualWidth",void 0);const Mi=d.css`
1895
1895
  :host {
1896
1896
  display: flex;
1897
1897
  }
1898
- `,Mi=(e="foundation")=>d.html`
1898
+ `,Ri=(e="foundation")=>d.html`
1899
1899
  <${e}-number-field
1900
1900
  ${(0,d.ref)("input")}
1901
1901
  withFormatting=${e=>e.params.withFormatting}
@@ -1907,11 +1907,11 @@
1907
1907
  hideStep
1908
1908
  style="width: ${e=>e.actualWidth}px"
1909
1909
  ></${e}-number-field>
1910
- `,Ri=$i.compose({baseName:"number-editor",styles:Li,template:Mi()});class ji extends $i{}const Ii=ji.compose({baseName:"number-editor",styles:Li,template:Mi("zero")});class Ei extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){this.value=e.target.value}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],Ei.prototype,"params",void 0),(0,oi.__decorate)([d.observable],Ei.prototype,"value",void 0),(0,oi.__decorate)([d.observable],Ei.prototype,"actualWidth",void 0);const Pi=d.css`
1910
+ `,ji=Li.compose({baseName:"number-editor",styles:Mi,template:Ri()});class Ii extends Li{}const Ei=Ii.compose({baseName:"number-editor",styles:Mi,template:Ri("zero")});class Pi extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){this.value=e.target.value}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],Pi.prototype,"params",void 0),(0,oi.__decorate)([d.observable],Pi.prototype,"value",void 0),(0,oi.__decorate)([d.observable],Pi.prototype,"actualWidth",void 0);const Ui=d.css`
1911
1911
  :host {
1912
1912
  display: flex;
1913
1913
  }
1914
- `,Ui=(e="foundation")=>d.html`
1914
+ `,Gi=(e="foundation")=>d.html`
1915
1915
  <${e}-text-field
1916
1916
  ${(0,d.ref)("input")}
1917
1917
  :value=${e=>void 0===e.value?"":e.value}
@@ -1920,16 +1920,16 @@
1920
1920
  style="width: ${e=>e.actualWidth}px"
1921
1921
  >
1922
1922
  </${e}-text-field>
1923
- `,Gi=Ei.compose({baseName:"string-editor",styles:Pi,template:Ui()});class Bi extends Ei{}const _i=Bi.compose({baseName:"string-editor",styles:Pi,template:Ui("zero")});class Hi extends s.FoundationElement{init(e){e&&(this.valueFormatted=e.formatValue(e.value))}getGui(){return this}refresh(e){return this.valueFormatted=e.formatValue(e.value),!0}}(0,oi.__decorate)([d.observable],Hi.prototype,"valueFormatted",void 0);const Yi=d.css`
1923
+ `,Bi=Pi.compose({baseName:"string-editor",styles:Ui,template:Gi()});class _i extends Pi{}const Hi=_i.compose({baseName:"string-editor",styles:Ui,template:Gi("zero")});class Yi extends s.FoundationElement{init(e){e&&(this.valueFormatted=e.formatValue(e.value))}getGui(){return this}refresh(e){return this.valueFormatted=e.formatValue(e.value),!0}}(0,oi.__decorate)([d.observable],Yi.prototype,"valueFormatted",void 0);const Vi=d.css`
1924
1924
  :host {
1925
1925
  display: flex;
1926
1926
  justify-content: space-between;
1927
1927
  align-items: center;
1928
1928
  }
1929
- `,Vi=(e="foundation")=>d.html`
1929
+ `,Qi=(e="foundation")=>d.html`
1930
1930
  <span>${e=>e.valueFormatted}</span>
1931
1931
  <${e}-progress-ring style="margin: 0; width: 20px; height: 20px"></${e}-progress-ring>
1932
- `,Qi=Hi.compose({baseName:"editable-renderer",styles:Yi,template:Vi()});class Wi extends Hi{}const qi=Wi.compose({baseName:"editable-renderer",styles:Yi,template:Vi("zero")});var Ji=r(59783);const Zi=(0,h.createLogger)("grid-pro");class Ki extends s.FoundationElement{init(e){e&&(this.params=e,e.eGridCell.addEventListener("keydown",(e=>{e.key===Ji.VDZ.ENTER&&this.clickHandler()})))}getGui(){return this}refresh(e){return this.params=e,!0}isDisabled(e){var a;if("function"==typeof(null===(a=this.params)||void 0===a?void 0:a.isDisabled))try{return this.params.isDisabled(e)}catch(e){Zi.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,oi.__awaiter)(this,void 0,void 0,(function*(){this.pendingAction=!0,yield this.params.actionClick(this.params.data),this.pendingAction=!1}))}get dataTestId(){var e;if(this.params.dataTestId)return this.params.dataTestId+(null!==(e=this.params.data[this.params.uniqueFieldName])&&void 0!==e?e:"")}}(0,oi.__decorate)([d.observable],Ki.prototype,"params",void 0),(0,oi.__decorate)([d.observable],Ki.prototype,"pendingAction",void 0);const{create:Xi}=s.DesignToken,en=(Xi("action-height-multiplier").withDefault("0.6px"),d.css`
1932
+ `,Wi=Yi.compose({baseName:"editable-renderer",styles:Vi,template:Qi()});class qi extends Yi{}const Ji=qi.compose({baseName:"editable-renderer",styles:Vi,template:Qi("zero")});var Zi=r(59783);const Ki=(0,h.createLogger)("grid-pro");class Xi extends s.FoundationElement{init(e){e&&(this.params=e,e.eGridCell.addEventListener("keydown",(e=>{e.key===Zi.VDZ.ENTER&&this.clickHandler()})))}getGui(){return this}refresh(e){return this.params=e,!0}isDisabled(e){var a;if("function"==typeof(null===(a=this.params)||void 0===a?void 0:a.isDisabled))try{return this.params.isDisabled(e)}catch(e){Ki.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,oi.__awaiter)(this,void 0,void 0,(function*(){this.pendingAction=!0,yield this.params.actionClick(this.params.data),this.pendingAction=!1}))}get dataTestId(){var e;if(this.params.dataTestId)return this.params.dataTestId+(null!==(e=this.params.data[this.params.uniqueFieldName])&&void 0!==e?e:"")}}(0,oi.__decorate)([d.observable],Xi.prototype,"params",void 0),(0,oi.__decorate)([d.observable],Xi.prototype,"pendingAction",void 0);const{create:en}=s.DesignToken,an=(en("action-height-multiplier").withDefault("0.6px"),d.css`
1933
1933
  .action-container {
1934
1934
  align-items: center;
1935
1935
  display: flex;
@@ -1944,8 +1944,8 @@
1944
1944
  var(--action-height-multiplier)
1945
1945
  );
1946
1946
  }
1947
- `),an=Ki.compose({baseName:"grid-pro-action-renderer",styles:d.css`
1948
- ${en}
1947
+ `),rn=Xi.compose({baseName:"grid-pro-action-renderer",styles:d.css`
1948
+ ${an}
1949
1949
  `,template:d.html`
1950
1950
  <div class="action-container" part="action-container">
1951
1951
  <foundation-button
@@ -1955,8 +1955,8 @@
1955
1955
  ?disabled=${e=>{var a;return e.pendingAction||e.isDisabled(null===(a=e.params)||void 0===a?void 0:a.data)}}
1956
1956
  appearance="${e=>e.params.appearance}"
1957
1957
  @click=${e=>e.clickHandler()}">${e=>e.params.actionName}</foundation-button>
1958
- </div>`});class rn extends Ki{}const tn=rn.compose({baseName:"grid-pro-action-renderer",styles:d.css`
1959
- ${en}
1958
+ </div>`});class tn extends Xi{}const on=tn.compose({baseName:"grid-pro-action-renderer",styles:d.css`
1959
+ ${an}
1960
1960
  `,template:d.html`
1961
1961
  <div class="action-container" part="action-container">
1962
1962
  <zero-button
@@ -1973,29 +1973,29 @@
1973
1973
  `:e.params.actionName}
1974
1974
  </zero-button>
1975
1975
  </div>
1976
- `});class on extends s.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,oi.__decorate)([d.observable],on.prototype,"params",void 0);const nn=on.compose({baseName:"grid-pro-actions-menu-renderer",template:d.html`
1976
+ `});class nn extends s.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,oi.__decorate)([d.observable],nn.prototype,"params",void 0);const ln=nn.compose({baseName:"grid-pro-actions-menu-renderer",template:d.html`
1977
1977
  <foundation-actions-menu
1978
1978
  name="${e=>e.params.headerName}"
1979
1979
  :definition=${e=>e.params}
1980
1980
  ></foundation-actions-menu>
1981
- `});class ln extends on{}const gn=ln.compose({baseName:"grid-pro-actions-menu-renderer",template:d.html`
1981
+ `});class gn extends nn{}const dn=gn.compose({baseName:"grid-pro-actions-menu-renderer",template:d.html`
1982
1982
  <zero-actions-menu
1983
1983
  name="${e=>e.params.headerName}"
1984
1984
  :definition=${e=>e.params}
1985
1985
  ></zero-actions-menu>
1986
- `});class dn extends s.FoundationElement{init(e){e&&(this.params=e,this.selected=e.value)}changeHandler(e){this.selected=e.target.checked;if(!!!this.params.api.getEditingCells().find((e=>e.rowIndex===this.params.rowIndex&&e.column.getInstanceId()===this.params.column.getInstanceId()))){const{column:e,node:a,rowIndex:r,value:t}=this.params,o={type:Ji.zW2.EVENT_CELL_EDITING_STARTED,column:e,colDef:null==e?void 0:e.getColDef(),data:a.data,node:a,rowIndex:r,rowPinned:a.rowPinned,value:t};this.params.api.dispatchEvent(o);const i=this.params.node.setDataValue(this.params.column,this.selected,"edit"),n={type:Ji.zW2.EVENT_CELL_EDITING_STOPPED,column:e,colDef:null==e?void 0:e.getColDef(),data:a.data,node:a,rowIndex:r,rowPinned:a.rowPinned,value:t,oldValue:t,newValue:this.selected,valueChanged:i};this.params.api.dispatchEvent(n)}}getGui(){return this}destroy(){}refresh(e){return this.selected=e.value,!0}getValue(){return this.selected}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],dn.prototype,"params",void 0),(0,oi.__decorate)([d.observable],dn.prototype,"selected",void 0);const sn=d.css`
1986
+ `});class sn extends s.FoundationElement{init(e){e&&(this.params=e,this.selected=e.value)}changeHandler(e){this.selected=e.target.checked;if(!!!this.params.api.getEditingCells().find((e=>e.rowIndex===this.params.rowIndex&&e.column.getInstanceId()===this.params.column.getInstanceId()))){const{column:e,node:a,rowIndex:r,value:t}=this.params,o={type:Zi.zW2.EVENT_CELL_EDITING_STARTED,column:e,colDef:null==e?void 0:e.getColDef(),data:a.data,node:a,rowIndex:r,rowPinned:a.rowPinned,value:t};this.params.api.dispatchEvent(o);const i=this.params.node.setDataValue(this.params.column,this.selected,"edit"),n={type:Zi.zW2.EVENT_CELL_EDITING_STOPPED,column:e,colDef:null==e?void 0:e.getColDef(),data:a.data,node:a,rowIndex:r,rowPinned:a.rowPinned,value:t,oldValue:t,newValue:this.selected,valueChanged:i};this.params.api.dispatchEvent(n)}}getGui(){return this}destroy(){}refresh(e){return this.selected=e.value,!0}getValue(){return this.selected}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],sn.prototype,"params",void 0),(0,oi.__decorate)([d.observable],sn.prototype,"selected",void 0);const cn=d.css`
1987
1987
  :host {
1988
1988
  align-center: center;
1989
1989
  display: flex;
1990
1990
  height: 100%;
1991
1991
  }
1992
- `,cn=(e="foundation")=>{const a=`${e}-checkbox`;return d.html`
1992
+ `,pn=(e="foundation")=>{const a=`${e}-checkbox`;return d.html`
1993
1993
  <${a}
1994
1994
  @change=${(e,a)=>e.changeHandler(a.event)}
1995
1995
  :checked=${e=>e.selected}
1996
1996
  ?disabled=${e=>!e.params.colDef.editable}
1997
1997
  ></${a}>
1998
- `},pn=dn.compose({baseName:"boolean-renderer",styles:sn,template:cn()});class un extends dn{}const hn=un.compose({baseName:"boolean-renderer",styles:sn,template:cn("zero")});var mn=r(18471);const vn=(e,a)=>{if(a.indexOf(".")<0)return e[a];{const r=a.split(".");let t=e;for(;r.length>0&&t;){const e=r.shift();if(0===r.length)return t[e];t=t[e]}}};class bn extends s.FoundationElement{constructor(){super(...arguments),this.textValue="",this.textChanged=e=>{this.textValue=e.target.value,this.params.onChange(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.textValue=""===this.textValue?vn(null===(a=null==e?void 0:e.node)||void 0===a?void 0:a.data,e.accessor):this.textValue)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,oi.__decorate)([d.observable],bn.prototype,"textValue",void 0),(0,oi.__decorate)([d.observable],bn.prototype,"params",void 0);const fn=d.css`
1998
+ `},un=sn.compose({baseName:"boolean-renderer",styles:cn,template:pn()});class hn extends sn{}const mn=hn.compose({baseName:"boolean-renderer",styles:cn,template:pn("zero")});var vn=r(18471);const bn=(e,a)=>{if(a.indexOf(".")<0)return e[a];{const r=a.split(".");let t=e;for(;r.length>0&&t;){const e=r.shift();if(0===r.length)return t[e];t=t[e]}}};class fn extends s.FoundationElement{constructor(){super(...arguments),this.textValue="",this.textChanged=e=>{this.textValue=e.target.value,this.params.onChange(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.textValue=""===this.textValue?bn(null===(a=null==e?void 0:e.node)||void 0===a?void 0:a.data,e.accessor):this.textValue)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,oi.__decorate)([d.observable],fn.prototype,"textValue",void 0),(0,oi.__decorate)([d.observable],fn.prototype,"params",void 0);const wn=d.css`
1999
1999
  :host {
2000
2000
  display: flex;
2001
2001
  width: 100%;
@@ -2005,15 +2005,15 @@
2005
2005
  .text-renderer {
2006
2006
  width: 100%;
2007
2007
  }
2008
- `,wn=(e="foundation")=>{const a=`${e}-text-field`;return d.html`
2008
+ `,yn=(e="foundation")=>{const a=`${e}-text-field`;return d.html`
2009
2009
  <${a}
2010
2010
  ${(0,d.ref)("textField")}
2011
2011
  type="text"
2012
2012
  class="text-renderer"
2013
- :value="${(0,mn.Z)((e=>e.textValue))}"
2013
+ :value="${(0,vn.Z)((e=>e.textValue))}"
2014
2014
  @change="${(e,a)=>e.textChanged(a.event)}"
2015
2015
  ></${a}>
2016
- `},yn=bn.compose({baseName:"grid-pro-text-renderer",styles:fn,template:wn()});class xn extends bn{}const zn=fn,kn=wn,Sn=xn.compose({baseName:"grid-text-renderer",styles:zn,template:kn()});const Cn=class extends xn{}.compose({baseName:"grid-text-renderer",styles:zn,template:kn("zero")});class An extends s.FoundationElement{constructor(){super(...arguments),this.selectionChanged=e=>{this.value=e.target.value,this.params.onSelect(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.value=vn(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,oi.__decorate)([d.observable],An.prototype,"params",void 0),(0,oi.__decorate)([d.observable],An.prototype,"value",void 0);const Tn=d.css`
2016
+ `},xn=fn.compose({baseName:"grid-pro-text-renderer",styles:wn,template:yn()});class zn extends fn{}const kn=wn,Sn=yn,Cn=zn.compose({baseName:"grid-text-renderer",styles:kn,template:Sn()});const An=class extends zn{}.compose({baseName:"grid-text-renderer",styles:kn,template:Sn("zero")});class Tn extends s.FoundationElement{constructor(){super(...arguments),this.selectionChanged=e=>{this.value=e.target.value,this.params.onSelect(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.value=bn(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,oi.__decorate)([d.observable],Tn.prototype,"params",void 0),(0,oi.__decorate)([d.observable],Tn.prototype,"value",void 0);const On=d.css`
2017
2017
  :host,
2018
2018
  .select-renderer,
2019
2019
  zero-option,
@@ -2022,7 +2022,7 @@
2022
2022
  max-width: var(--select-renderer-max-width);
2023
2023
  min-width: 100%;
2024
2024
  }
2025
- `,On=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return d.html`
2025
+ `,Dn=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return d.html`
2026
2026
  <${a}
2027
2027
  class="select-renderer"
2028
2028
  @change=${(e,a)=>e.selectionChanged(a.event)}
@@ -2038,15 +2038,15 @@
2038
2038
  <${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
2039
2039
  `)}
2040
2040
  </${a}>
2041
- `},Dn=An.compose({baseName:"select-renderer",styles:Tn,template:On()});const Nn=class extends An{}.compose({baseName:"select-renderer",styles:Tn,template:On("zero")});var Fn=r(89861),$n=r(86534),Ln=r(75527),Mn=r(9492);const Rn=e=>{var a,r,t,o,i,n,l,g,d;return d=class extends e{constructor(...e){super(e),a.add(this),r.set(this,{_key:"dom"}),t.set(this,""),o.set(this,!1),i.set(this,void 0),n.set(this,!1)}cloneNode(e){const a=this.deepClone();return e&&Array.from(this.childNodes).forEach((e=>{a.appendChild(e.cloneNode(!0))})),a}deepClone(){const e=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach((a=>e.setAttribute(a,this.getAttribute(a)))),e}get shouldRunDisconnect(){return!!(0,Mn.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Mn.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Mn.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Mn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Mn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Mn.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Mn.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Mn.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Mn.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Mn.__classPrivateFieldGet)(this,o,"f")&&((0,Mn.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Mn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Mn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Mn.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Mn.__classPrivateFieldGet)(this,r,"f")._key&&(0,Mn.__classPrivateFieldSet)(this,r,(0,Mn.__classPrivateFieldGet)(this,a,"m",g).call(this,this),"f")}},r=new WeakMap,t=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,a=new WeakSet,l=function(e){var a,o;if("foundation-layout"!==(0,Mn.__classPrivateFieldGet)(this,r,"f")._key)throw new Error("LifecycleMixin: should not be checking a token change if container not in the layout");const l=(0,Mn.__classPrivateFieldGet)(this,t,"f")!==(0,Mn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Mn.__classPrivateFieldSet)(this,t,null!==(a=(0,Mn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Mn.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Mn.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Mn.__classPrivateFieldSet)(this,t,null!==(o=(0,Mn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Mn.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[jn])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document||!(null===(t=r.getRootNode())||void 0===t?void 0:t.host))return{_key:"dom"};const o=r.getRootNode().host;if("FoundationLayoutMain"===o.class){const e=o;return e._key="foundation-layout",e}return(0,Mn.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},jn=Symbol("layout-cache-document");var In=r(88556),En=r(9770);const Pn=d.html`
2041
+ `},Nn=Tn.compose({baseName:"select-renderer",styles:On,template:Dn()});const Fn=class extends Tn{}.compose({baseName:"select-renderer",styles:On,template:Dn("zero")});var $n=r(89861),Ln=r(86534),Mn=r(75527),Rn=r(9492);const jn=e=>{var a,r,t,o,i,n,l,g,d;return d=class extends e{constructor(...e){super(e),a.add(this),r.set(this,{_key:"dom"}),t.set(this,""),o.set(this,!1),i.set(this,void 0),n.set(this,!1)}cloneNode(e){const a=this.deepClone();return e&&Array.from(this.childNodes).forEach((e=>{a.appendChild(e.cloneNode(!0))})),a}deepClone(){const e=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach((a=>e.setAttribute(a,this.getAttribute(a)))),e}get shouldRunDisconnect(){return!!(0,Rn.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Rn.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Rn.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Rn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Rn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Rn.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Rn.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Rn.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Rn.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Rn.__classPrivateFieldGet)(this,o,"f")&&((0,Rn.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Rn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Rn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Rn.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Rn.__classPrivateFieldGet)(this,r,"f")._key&&(0,Rn.__classPrivateFieldSet)(this,r,(0,Rn.__classPrivateFieldGet)(this,a,"m",g).call(this,this),"f")}},r=new WeakMap,t=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,a=new WeakSet,l=function(e){var a,o;if("foundation-layout"!==(0,Rn.__classPrivateFieldGet)(this,r,"f")._key)throw new Error("LifecycleMixin: should not be checking a token change if container not in the layout");const l=(0,Rn.__classPrivateFieldGet)(this,t,"f")!==(0,Rn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Rn.__classPrivateFieldSet)(this,t,null!==(a=(0,Rn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Rn.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Rn.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Rn.__classPrivateFieldSet)(this,t,null!==(o=(0,Rn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Rn.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[In])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document||!(null===(t=r.getRootNode())||void 0===t?void 0:t.host))return{_key:"dom"};const o=r.getRootNode().host;if("FoundationLayoutMain"===o.class){const e=o;return e._key="foundation-layout",e}return(0,Rn.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},In=Symbol("layout-cache-document");var En=r(75951),Pn=r(9770);const Un=d.html`
2042
2042
  <template>
2043
2043
  <slot ${(0,d.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
2044
2044
  </template>
2045
- `;let Un=class extends s.FoundationElement{connectedCallback(){super.connectedCallback();const e=this.parentElement;this.renderer&&(e.definition.cellRenderer=this.renderer),this.rendererParams&&(e.definition.cellRendererParams=this.rendererParams)}init(e){this.rendererParams=e}getGui(){return"string"!=typeof this.renderer?this.renderer(this.rendererParams):this}destroy(){}refresh(e){return!1}slottedAgRendererChanged(){}};(0,oi.__decorate)([d.observable],Un.prototype,"renderer",void 0),(0,oi.__decorate)([d.observable],Un.prototype,"rendererParams",void 0),(0,oi.__decorate)([d.observable],Un.prototype,"slottedRenderer",void 0),Un=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-cell",template:Pn})],Un);const Gn=d.html`
2045
+ `;let Gn=class extends s.FoundationElement{connectedCallback(){super.connectedCallback();const e=this.parentElement;this.renderer&&(e.definition.cellRenderer=this.renderer),this.rendererParams&&(e.definition.cellRendererParams=this.rendererParams)}init(e){this.rendererParams=e}getGui(){return"string"!=typeof this.renderer?this.renderer(this.rendererParams):this}destroy(){}refresh(e){return!1}slottedAgRendererChanged(){}};(0,oi.__decorate)([d.observable],Gn.prototype,"renderer",void 0),(0,oi.__decorate)([d.observable],Gn.prototype,"rendererParams",void 0),(0,oi.__decorate)([d.observable],Gn.prototype,"slottedRenderer",void 0),Gn=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-cell",template:Un})],Gn);const Bn=d.html`
2046
2046
  <template>
2047
2047
  <slot ${(0,d.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
2048
2048
  </template>
2049
- `;let Bn=class extends s.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,oi.__decorate)([d.observable],Bn.prototype,"slottedAgCell",void 0),(0,oi.__decorate)([d.observable],Bn.prototype,"definition",void 0),Bn=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-column",template:Gn})],Bn);var _n=r(82940),Hn=r(32449),Yn=r(9162),Vn=r(5127),Qn=r(83123),Wn=r(35991),qn=r(6852),Jn=r(26714),Zn=r(71452),Kn=r(99449),Xn=r(30526);class el extends s.FoundationElement{constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=_n.WJ.MAX_ROWS_250,this.maxView=_n.WJ.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1}}(0,oi.__decorate)([l.lj],el.prototype,"connect",void 0),(0,oi.__decorate)([d.observable],el.prototype,"deferredGridOptions",void 0),(0,oi.__decorate)([d.observable],el.prototype,"deferredColumnStates",void 0),(0,oi.__decorate)([d.attr],el.prototype,"criteria",void 0),(0,oi.__decorate)([d.attr],el.prototype,"fields",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"is-snapshot"})],el.prototype,"isSnapshot",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"max-rows"})],el.prototype,"maxRows",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"max-view"})],el.prototype,"maxView",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"moving-view"})],el.prototype,"movingView",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"order-by"})],el.prototype,"orderBy",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"resource-name"})],el.prototype,"resourceName",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean"})],el.prototype,"reverse",void 0);var al=r(21607);function rl({value:e}){return(0,al.D_)(e)}function tl({value:e}){return(0,al.Lx)(e)}var ol;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(ol||(ol={}));let il=class extends(Rn(el)){constructor(){super(...arguments),this.pollingInterval=_n.WJ.REQ_REP_POLLING_INTERVAL_MS,this.disablePolling=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new Jn.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Hn.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;d.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?_n.WJ.REQUEST_SERVER_ROW_ID:_n.WJ.DATASERVER_ROW_ID}init(){return(0,oi.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid&&this.datasource.validResourceName(this.resourceName)&&this.connect.isConnected){const e=yield this.connect.getMetadata(this.resourceName);if(!e)return void Zi.warn(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);this.isRequestServer=e.TYPE===_n._g.REQUEST_SERVER;const a=Object.assign({getRowId:e=>e.data[this.rowId]},this.deferredGridOptions);this.agGrid.gridOptions=Object.assign({},a),this.agGrid.addEventListener("onGridReady",(()=>(0,oi.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Zn.T)(1),(0,Kn.b)(r),(0,Xn.b)((e=>Zi.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Zi.warn("Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.")}))}deinit(){this.reset()}reset(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.dataLogoff(),this.clearRowData(),this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new Jn.X(new Map),this.datasource.deinit()}restart(){this.deinit(),this.init()}refreshRows(){this.setRowData(Array.from(this.rows.values()))}dataLogoff(){this.sourceRef&&!this.isRequestServer&&!this.isSnapshot&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.sourceRef),this.sourceRef=void 0}clearRowData(e=!0){var a,r,t,o;this.rows=new Map,this.agTransaction=void 0,e&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),null===(o=null===(t=this.agGrid)||void 0===t?void 0:t.gridApi)||void 0===o||o.setRowData([])}setRowData(e){var a;const r=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDefs();if(!r||0===r.length){const e=this.getAgColumnDefs(this.datasource.fieldMetadata);e&&this.agGrid.gridApi.setColumnDefs(e)}const t=this.rowDataMapper?this.rowDataMapper(e):e;this.agGrid.gridApi.setRowData(t),this.requiresFullRowDataAndColDefs=!1}reloadResourceData(){var e,a;return(0,oi.__awaiter)(this,void 0,void 0,(function*(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.dataLogoff(),this.clearRowData(null),null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.showLoadingOverlay(),this.loadResourceData(null)}))}loadResourceData(e=!0){return(0,oi.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Zi.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();if(this.isSnapshot){const e=yield this.datasource.snapshot();if(e){const a=this.handleSnapshot(e);this.setRowData(a)}}else Zi.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const a=e.MESSAGE_TYPE;if(a&&a===Yn.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Vn.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Vn.$)(e).inserts:e.inserts}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,maxRows:this.maxRows,maxView:this.maxView,movingView:this.movingView,orderBy:this.orderBy,pollingInterval:this.pollingInterval,disablePolling:this.disablePolling,request:this.request,resourceName:this.resourceName,reverse:this.reverse}}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}applyRequestServerData(e){var a;const r=e.REPLY;if(!Array.isArray(r)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void Zi.error("received invalid RequestServerResult",e);if(this.requiresFullRowDataAndColDefs){null==r||r.forEach((e=>{this.rows.set(e[this.rowId],e)}));const e=this.rows.size>0?Array.from(this.rows.values()):r;return void this.setRowData(e)}const t=[],o=Array.from(this.rows.values()).filter((e=>{const a=r.find((a=>a[this.rowId]===e[this.rowId]));return!a||(t.push(a),!1)})),i=r.filter((e=>!this.rows.has(e[this.rowId])));this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(i),this.handleStreamDeletes(o),this.handleStreamUpdates(t),this.applyAllAgTransactions()}applyDataserverData(e){var a;if(this.requiresFullRowDataAndColDefs){null===(a=e.inserts)||void 0===a||a.forEach((e=>{this.rows.set(e[this.rowId],e)}));const r=Array.from(this.rows.values());this.setRowData(r)}else this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(e.inserts),this.handleStreamDeletes(e.deletes),this.handleStreamUpdates(e.updates),this.applyAllAgTransactions()}applyAllAgTransactions(){this.agTransaction.add.length||this.agTransaction.update.length||this.agTransaction.remove.length?(this.agTransaction.add.length>0&&this.applyMappedAgTransaction({add:this.agTransaction.add,addIndex:this.agGrid.addIndex},ol.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},ol.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},ol.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}flashAddedCells(e){this.agGrid.enableRowFlashing&&e.length&&this.agGrid.gridApi.flashCells({rowNodes:e})}applyMappedAgTransaction(e,a,r){if(r)this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(e,[a]),(e=>{this.flashAddedCells(e.add)}));else{const r=this.agGrid.gridApi.applyTransaction(this.mapTransaction(e,[a]));this.flashAddedCells(r.add)}}mapTransaction(e,a=Object.values(ol)){if(!this.rowDataMapper)return e;const r={};return a.includes(ol.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(ol.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(ol.Update)&&(r.update=this.rowDataMapper(e.update,this.rows)),r}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rows.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r)}else this.agTransaction.add.push(e),this.agTransaction.addIndex=0;this.rows.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{this.agTransaction.remove.push({[this.rowId]:e[this.rowId]}),this.rows.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r),this.rows.set(e[this.rowId],r)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=function(e){switch(e){case Qn.r.DATE:case Qn.r.DATETIME:return{comparator:function(e,a){if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,browserDatePicker:!0}}}(e.type),e.type){case Qn.r.STRING:r.cellEditor=ci.stringEditor;break;case Qn.r.NUMBER:r.cellEditor=ci.numberEditor,r.filter="agNumberColumnFilter";break;case Qn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=ci.boolean,r.cellEditor=ci.boolean);break;case Qn.r.DATE:r.valueFormatter=rl,r.cellEditor=ci.dateEditor,r.filter="agDateColumnFilter";break;case Qn.r.DATETIME:r.valueFormatter=tl,r.filter="agDateColumnFilter",r.cellEditor=ci.dateEditor,r.cellEditorParams={withTime:!0};break;case Qn.r.ENUM:e.enumOptions?(r.cellEditor=ci.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}):Zi.warn(`No enumOptions found for field ${e.name}. Default cell editor applied.`)}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values()));return(0,Hn.p)(a.join(" && "),";")}setFilter(e,a){this.criteriaFromFilters.set(e,a),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}};(0,oi.__decorate)([Wn.g],il.prototype,"auth",void 0),(0,oi.__decorate)([qn.Yh],il.prototype,"datasource",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"polling-interval"})],il.prototype,"pollingInterval",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"disable-polling"})],il.prototype,"disablePolling",void 0),(0,oi.__decorate)([d.observable],il.prototype,"request",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"row-id"})],il.prototype,"rowIdAttr",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],il.prototype,"restartOnReconnection",void 0),(0,oi.__decorate)([d.observable],il.prototype,"rowDataMapper",void 0),il=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-genesis-datasource"})],il);let nl=class extends il{};nl=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-client-side-datasource"})],nl);var ll=r(66306),gl=r(47546);function dl(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"agNumberColumnFilter";case"date":case"datetime":return"agDateColumnFilter";default:return"agTextColumnFilter"}}function sl(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn";case"date":case"datetime":return"dateColumn";default:return null}}class cl{constructor(e){this.server_ROWS_COUNT=0,this.client_ROWS_COUNT=0,this.moreRows=!1,this.calculatedRowsCount=0,this.lastSequenceId=0,this.rowData=new Map,this.dataserverStream=e.stream,this.resourceName=e.resourceName,this.resourceParams=e.resourceParams,this.originalCriteriaMatch=e.resourceParams.CRITERIA_MATCH,this.resourceIndexes=e.resourceIndexes,this.resourceColDefs=e.resourceColDefs,this.maxRows=e.maxRows,this.maxView=e.maxView,this.rowId=e.rowId,this.pagination=e.pagination}getRows(e){var a;return(0,oi.__awaiter)(this,void 0,void 0,(function*(){const r=e.request.filterModel,t=Object.keys(r).length>0,o=0===Object.keys(r).length,i=JSON.stringify(r)!==JSON.stringify(this.currentFilterModel);(i||t)&&(o&&this.currentFilterModel?(this.currentFilterModel=null,this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.restartSubscription()):i&&t&&(this.currentFilterModel=r,this.resourceParams.CRITERIA_MATCH=this.buildCriteriaMatchFromFilters(),this.restartSubscription()));const n=e.request.sortModel;if(n.length!==(null===(a=this.currentSortModel)||void 0===a?void 0:a.length)||n.length>0)if(0===n.length&&this.currentSortModel)this.currentSortModel=null,this.resourceParams.ORDER_BY=null,this.resourceParams.REVERSE=null,this.restartSubscription();else if(n.length>0){this.currentSortModel=n;const e=this.currentSortModel[0].colId,a=this.currentSortModel[0].sort,r=this.getOrderByAndToBeSortedColIds(this.resourceIndexes,e);r.toBeSorted.forEach((e=>{this.currentSortModel.push({sort:a,colId:e})})),this.resourceParams.ORDER_BY=r.orderBy,this.resourceParams.REVERSE="desc"===a,this.restartSubscription()}this.moreRows&&e.request.startRow>=Number(this.maxRows)&&this.connect.getMoreRows(this.streamSourceRef),this.dataserverStream.pipe((0,gl.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Yn.Cs.LOGOFF_ACK||o===Yn.Cs.MSG_NACK))return void e.fail();if(this.moreRows=a.MORE_ROWS,!a.ROW){this.rowData=new Map;const a={rowData:Array.from(this.rowData.values()),rowCount:0};return void e.success(a)}{const e=(0,Vn.$)(a);this.handleInitialStreamLoad(e)}this.lastSequenceId=a.SEQUENCE_ID,1===this.lastSequenceId&&(this.streamSourceRef=a.SOURCE_REF,this.server_ROWS_COUNT=null!==(r=a.ROWS_COUNT)&&void 0!==r?r:this.rowData.size),!this.moreRows&&this.server_ROWS_COUNT>=this.client_ROWS_COUNT?this.calculatedRowsCount=this.client_ROWS_COUNT:this.calculatedRowsCount+=null!==(t=this.rowData.size)&&void 0!==t?t:0;const i={rowData:Array.from(this.rowData.values())};this.pagination&&(i.rowCount=Math.min(this.server_ROWS_COUNT,this.maxView)),e.request.endRow>this.maxView||e.request.endRow>this.calculatedRowsCount?i.rowCount=this.calculatedRowsCount:e.request.endRow===this.server_ROWS_COUNT&&(i.rowCount=this.server_ROWS_COUNT),e.success(i)}))}))}dataLogoff(){this.streamSourceRef&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.streamSourceRef),this.streamSourceRef=void 0}restartSubscription(){this.dataLogoff(),this.rowData=new Map,this.client_ROWS_COUNT=0;this.dataserverStream=this.connect.stream(this.resourceName,(e=>e),(e=>Zi.error(e)),this.resourceParams)}getOrderByAndToBeSortedColIds(e,a){for(const[r,t]of e.entries()){const e=t.findIndex((e=>e===a));if(-1!==e){const a=[...t];return a.splice(e,1),{orderBy:r,toBeSorted:a}}}}handleInitialStreamLoad(e){var a;if(!e)return;const r=new Map;null===(a=e.inserts)||void 0===a||a.forEach((e=>{r.set(e.ROW_REF,e)})),this.client_ROWS_COUNT+=r.size,this.rowData=r}buildCriteriaMatchFromFilters(){this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.resourceParams.CRITERIA_MATCH&&"string"==typeof this.resourceParams.CRITERIA_MATCH&&(this.resourceParams.CRITERIA_MATCH=this.resourceParams.CRITERIA_MATCH.split(";")),this.resourceParams.CRITERIA_MATCH||(this.resourceParams.CRITERIA_MATCH=[]);return this.resourceParams.CRITERIA_MATCH.concat(this.criteriaFromFilters()).join(" && ")}criteriaFromFilters(){const e=[];return this.getFiltersByType("text").forEach((a=>{if(this.currentFilterModel[a].filter||"false"!==this.currentFilterModel[a].type&&"true"!==this.currentFilterModel[a].type)switch(this.currentFilterModel[a].type){case"equals":e.push(`${a} == '${this.currentFilterModel[a].filter}'`);break;case"contains":e.push(`Expr.containsIgnoreCase(${a}, '${this.currentFilterModel[a].filter}')`)}else e.push(`${a} == ${this.currentFilterModel[a].type}`)})),this.getFiltersByType("number").forEach((a=>{const r=this.currentFilterModel[a].filter;switch(this.currentFilterModel[a].type){case"equals":!isNaN(r)&&e.push(`${a} == ${r}`);break;case"lessThan":!isNaN(r)&&e.push(`${a} < ${r}`);break;case"greaterThan":!isNaN(r)&&e.push(`${a} > ${r}`)}})),this.getFiltersByType("date").forEach((a=>{const r=this.currentFilterModel[a].dateFrom.replace(/-/g,"").replace("T","-").split(" ")[0];switch(this.currentFilterModel[a].type){case"equals":e.push(`Expr.dateIsEqual(${a}, '${r}')`);break;case"lessThan":e.push(`Expr.dateIsBefore(${a}, '${r}')`);break;case"greaterThan":e.push(`Expr.dateIsAfter(${a}, '${r}')`)}})),e}getFiltersByType(e){return Object.keys(this.currentFilterModel).filter((e=>-1!==this.resourceColDefs.findIndex((a=>a.NAME===e)))).filter((a=>this.currentFilterModel[a].filterType===e))}}(0,oi.__decorate)([Wn.g],cl.prototype,"auth",void 0),(0,oi.__decorate)([l.lj],cl.prototype,"connect",void 0);let pl=class extends(Rn(el)){constructor(){super(...arguments),this.pagination=!1,this.rowId="ROW_REF"}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,Hn.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;d.DOM.queueUpdate((()=>{e&&this.reset()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions=Object.assign({getRowId:e=>e.data?e.data[this.rowId]:null,cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!0},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{}},this.deferredGridOptions),void this.agGrid.addEventListener("onGridReady",(()=>(0,oi.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Zi.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,ll.C)(e);const a=(0,ll.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new cl({stream:t,resourceName:this.resourceName,resourceParams:this.params,resourceIndexes:this.indexes,resourceColDefs:this.originalFieldDef,maxRows:this.maxRows,maxView:this.maxView,rowId:this.rowId,pagination:this.pagination}),this.agGrid.gridApi.setServerSideDatasource(this.dataserverStream)}))),{once:!0});Zi.warn("Application not connected, falling back to local columnDefs/rowData")}reset(){var e;this.clearRowData(),this.dataserverStream=void 0,this.originalFieldDef=void 0,null===(e=this.agGrid.gridApi)||void 0===e||e.setServerSideDatasource(this.dataserverStream)}restart(){this.reset(),this.init()}get agGrid(){return this.parentElement}clearRowData(){var e,a,r,t;null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.setColumnDefs([]);const o={remove:[]};null===(r=this.agGrid.gridApi)||void 0===r||r.forEachNode((e=>{o.remove.push(e.data)})),null===(t=this.agGrid.gridApi)||void 0===t||t.applyServerSideTransaction(o)}getResourceIndexes(e){const a=new Map;return null==e||e.forEach((e=>{a.set(e.NAME,e.FIELDS.split(" "))})),a}get params(){const e={CRITERIA_MATCH:this.criteria,FIELDS:this.fields,MAX_ROWS:this.maxRows,MAX_VIEW:this.maxView,MOVING_VIEW:this.movingView,REVERSE:this.reverse},a=Array.from(this.indexes.keys());if(this.orderBy)if(a.findIndex((e=>e===this.orderBy))>-1)e.ORDER_BY=this.orderBy;else{const e=a.map((e=>e));Zi.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return Zi.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,oi.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Zi.debug(e)),(e=>Zi.error(e)),null!=e?e:this.params)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=function(e){switch(e){case Qn.r.BOOLEAN:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["contains",{displayKey:"true",displayName:"True",predicate:(e,a)=>"true"===a||!0===a,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,a)=>"false"===a||!1===a,numberOfInputs:0},{displayKey:"true-false",displayName:"True/False",predicate:(e,a)=>"true"===a||!0===a||"false"===a||!1===a,numberOfInputs:0}]};case Qn.r.DATE:case Qn.r.DATETIME:return{comparator:(e,a)=>{if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,browserDatePicker:!0,filterOptions:["equals","lessThan","greaterThan"]};case Qn.r.NUMBER:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["equals","lessThan","greaterThan"]};default:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["contains","equals"]}}}(e.type),e.type){case Qn.r.NUMBER:r.cellEditor=ci.numberEditor;break;case Qn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=ci.boolean,r.cellEditor=ci.boolean);break;case Qn.r.DATE:r.valueFormatter=rl;break;case Qn.r.DATETIME:r.valueFormatter=tl;break;case Qn.r.ENUM:r.cellEditor=ci.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:sl(e.type),filter:dl(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,oi.__decorate)([(0,d.attr)({mode:"boolean"})],pl.prototype,"pagination",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"row-id"})],pl.prototype,"rowId",void 0),pl=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-server-side-datasource"})],pl);const ul='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtG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Su5tYrnZWTNhtLC560Aq5pu1Hxm2ADhCAgVDfnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',hl='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKr0ynOAE2AiQDghgLgQ4ABCAFhEYHhF0bXiRFpNekVVHJ/j8kcGOoVAN7L8rdRUEn6ZRdEY4cPSsWsYa1Wb2Sgi2cP95lTgmTT/ndiPe/iFyfMpSSB+B++a5qUUJ3i2yOTKBKGtAEZjDQ/79r5Z9JJgO0QJTwIt61qrKvDlDoCuP7P/w2/773RBsEC9gwEHQ884EFwsNiYDQqizIKCyNh1ayqcJH+M1lE4yJZuf0JLTfgdHNvseRobBRAwGBuVQKzJwnlrC2j0h1WndeaR8acU+fTftMv+IgvtuJeOZP9qfnXXNJ/nz0sdsqYLX3/bccgSgISTwjfXQjUrV14PoMQtmKBCWgyDBHwf3OlveyxK4GiKYHQ9exMZjK7zfz5ubvsYS5HlOOUECygAtoUiNcVVGUdsCPbVyXJVdq6VlVYXag55WB04UExdSgEyFx64PjfUGqR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i3MfIwiYrpuUi5oJwD9i9Vg702P6wdUszdjktjwNxUZEt27XAj6sav9i+rXY/0MHfoMaTL9f/w6kVcMrknc1sXmjMda7CqsA0MfB2wR8AI2WBEFne8bZ0xzW2VXY1V/6706+BWjIkbQpN/tnTALgAc7vDgx1qfjJv5u2LAzD6BbU37mdkSLdSf0dxr/7wGZfCIRm4QAk+T/hPz4obRlcNVfMDRbivHnAf0dKvvBBU9agR+tgN2OI0gMN5QV7SP3X4k4KtnOEIWYAiOBM19wg2rAALFxAASYMHZFUKDCEoE9R28SNkSfIBTwhNvCluj3xBFsY3cfDWv+JdwbB/OoolfpN7gaFafH857nP3AJhMNtaHje9b0BAisBM8zHoSzuTsQOlikNr4R2RTHSkJneQcvkRfL9dVipf8GTprRSnDcsMB4pkX9RsX6DnVVFb9ZYYZJ86z/YisKrRtDg1uRGUXmTqNy+IoCxZse9VSzP1h0JLWuIHEZSIl+NMkURQ0FPMhc774D27YnXsLP7/6iYkVW1J9oIX6KSU000uMDhG4PRZLZYbXaHH/61X+r8mc5sLl8olsqVaq3eaLbanW6vPxiOxpPpbL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',ml={[ti.alpine]:ul,[ti.alpineDark]:ul,[ti.balham]:hl,[ti.balhamDark]:hl,[ti.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data: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GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},vl=ul,bl=d.css`
2049
+ `;let _n=class extends s.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,oi.__decorate)([d.observable],_n.prototype,"slottedAgCell",void 0),(0,oi.__decorate)([d.observable],_n.prototype,"definition",void 0),_n=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-column",template:Bn})],_n);var Hn=r(82940),Yn=r(32449),Vn=r(9162),Qn=r(5127),Wn=r(83123),qn=r(35991),Jn=r(6852),Zn=r(26714),Kn=r(71452),Xn=r(99449),el=r(30526);class al extends s.FoundationElement{constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Hn.WJ.MAX_ROWS_250,this.maxView=Hn.WJ.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1}}(0,oi.__decorate)([l.lj],al.prototype,"connect",void 0),(0,oi.__decorate)([d.observable],al.prototype,"deferredGridOptions",void 0),(0,oi.__decorate)([d.observable],al.prototype,"deferredColumnStates",void 0),(0,oi.__decorate)([d.attr],al.prototype,"criteria",void 0),(0,oi.__decorate)([d.attr],al.prototype,"fields",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"is-snapshot"})],al.prototype,"isSnapshot",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"max-rows"})],al.prototype,"maxRows",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"max-view"})],al.prototype,"maxView",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"moving-view"})],al.prototype,"movingView",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"order-by"})],al.prototype,"orderBy",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"resource-name"})],al.prototype,"resourceName",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean"})],al.prototype,"reverse",void 0);var rl=r(21607);function tl({value:e}){return(0,rl.D_)(e)}function ol({value:e}){return(0,rl.Lx)(e)}var il;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(il||(il={}));let nl=class extends(jn(al)){constructor(){super(...arguments),this.pollingInterval=Hn.WJ.REQ_REP_POLLING_INTERVAL_MS,this.disablePolling=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new Zn.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Yn.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;d.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Hn.WJ.REQUEST_SERVER_ROW_ID:Hn.WJ.DATASERVER_ROW_ID}init(){return(0,oi.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid&&this.datasource.validResourceName(this.resourceName)&&this.connect.isConnected){const e=yield this.connect.getMetadata(this.resourceName);if(!e)return void Ki.warn(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);this.isRequestServer=e.TYPE===Hn._g.REQUEST_SERVER;const a=Object.assign({getRowId:e=>e.data[this.rowId]},this.deferredGridOptions);this.agGrid.gridOptions=Object.assign({},a),this.agGrid.addEventListener("onGridReady",(()=>(0,oi.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Kn.T)(1),(0,Xn.b)(r),(0,el.b)((e=>Ki.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Ki.warn("Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.")}))}deinit(){this.reset()}reset(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.dataLogoff(),this.clearRowData(),this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new Zn.X(new Map),this.datasource.deinit()}restart(){this.deinit(),this.init()}refreshRows(){this.setRowData(Array.from(this.rows.values()))}dataLogoff(){this.sourceRef&&!this.isRequestServer&&!this.isSnapshot&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.sourceRef),this.sourceRef=void 0}clearRowData(e=!0){var a,r,t,o;this.rows=new Map,this.agTransaction=void 0,e&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),null===(o=null===(t=this.agGrid)||void 0===t?void 0:t.gridApi)||void 0===o||o.setRowData([])}setRowData(e){var a;const r=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDefs();if(!r||0===r.length){const e=this.getAgColumnDefs(this.datasource.fieldMetadata);e&&this.agGrid.gridApi.setColumnDefs(e)}const t=this.rowDataMapper?this.rowDataMapper(e):e;this.agGrid.gridApi.setRowData(t),this.requiresFullRowDataAndColDefs=!1}reloadResourceData(){var e,a;return(0,oi.__awaiter)(this,void 0,void 0,(function*(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.dataLogoff(),this.clearRowData(null),null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.showLoadingOverlay(),this.loadResourceData(null)}))}loadResourceData(e=!0){return(0,oi.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Ki.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();if(this.isSnapshot){const e=yield this.datasource.snapshot();if(e){const a=this.handleSnapshot(e);this.setRowData(a)}}else Ki.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const a=e.MESSAGE_TYPE;if(a&&a===Vn.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Qn.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Qn.$)(e).inserts:e.inserts}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,maxRows:this.maxRows,maxView:this.maxView,movingView:this.movingView,orderBy:this.orderBy,pollingInterval:this.pollingInterval,disablePolling:this.disablePolling,request:this.request,resourceName:this.resourceName,reverse:this.reverse}}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}applyRequestServerData(e){var a;const r=e.REPLY;if(!Array.isArray(r)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void Ki.error("received invalid RequestServerResult",e);if(this.requiresFullRowDataAndColDefs){null==r||r.forEach((e=>{this.rows.set(e[this.rowId],e)}));const e=this.rows.size>0?Array.from(this.rows.values()):r;return void this.setRowData(e)}const t=[],o=Array.from(this.rows.values()).filter((e=>{const a=r.find((a=>a[this.rowId]===e[this.rowId]));return!a||(t.push(a),!1)})),i=r.filter((e=>!this.rows.has(e[this.rowId])));this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(i),this.handleStreamDeletes(o),this.handleStreamUpdates(t),this.applyAllAgTransactions()}applyDataserverData(e){var a;if(this.requiresFullRowDataAndColDefs){null===(a=e.inserts)||void 0===a||a.forEach((e=>{this.rows.set(e[this.rowId],e)}));const r=Array.from(this.rows.values());this.setRowData(r)}else this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(e.inserts),this.handleStreamDeletes(e.deletes),this.handleStreamUpdates(e.updates),this.applyAllAgTransactions()}applyAllAgTransactions(){this.agTransaction.add.length||this.agTransaction.update.length||this.agTransaction.remove.length?(this.agTransaction.add.length>0&&this.applyMappedAgTransaction({add:this.agTransaction.add,addIndex:this.agGrid.addIndex},il.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},il.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},il.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}flashAddedCells(e){this.agGrid.enableRowFlashing&&e.length&&this.agGrid.gridApi.flashCells({rowNodes:e})}applyMappedAgTransaction(e,a,r){if(r)this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(e,[a]),(e=>{this.flashAddedCells(e.add)}));else{const r=this.agGrid.gridApi.applyTransaction(this.mapTransaction(e,[a]));this.flashAddedCells(r.add)}}mapTransaction(e,a=Object.values(il)){if(!this.rowDataMapper)return e;const r={};return a.includes(il.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(il.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(il.Update)&&(r.update=this.rowDataMapper(e.update,this.rows)),r}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rows.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r)}else this.agTransaction.add.push(e),this.agTransaction.addIndex=0;this.rows.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{this.agTransaction.remove.push({[this.rowId]:e[this.rowId]}),this.rows.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r),this.rows.set(e[this.rowId],r)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=function(e){switch(e){case Wn.r.DATE:case Wn.r.DATETIME:return{comparator:function(e,a){if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,browserDatePicker:!0}}}(e.type),e.type){case Wn.r.STRING:r.cellEditor=ci.stringEditor;break;case Wn.r.NUMBER:r.cellEditor=ci.numberEditor,r.filter="agNumberColumnFilter";break;case Wn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=ci.boolean,r.cellEditor=ci.boolean);break;case Wn.r.DATE:r.valueFormatter=tl,r.cellEditor=ci.dateEditor,r.filter="agDateColumnFilter";break;case Wn.r.DATETIME:r.valueFormatter=ol,r.filter="agDateColumnFilter",r.cellEditor=ci.dateEditor,r.cellEditorParams={withTime:!0};break;case Wn.r.ENUM:e.enumOptions?(r.cellEditor=ci.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}):Ki.warn(`No enumOptions found for field ${e.name}. Default cell editor applied.`)}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values()));return(0,Yn.p)(a.join(" && "),";")}setFilter(e,a){this.criteriaFromFilters.set(e,a),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}};(0,oi.__decorate)([qn.g],nl.prototype,"auth",void 0),(0,oi.__decorate)([Jn.Yh],nl.prototype,"datasource",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"polling-interval"})],nl.prototype,"pollingInterval",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"disable-polling"})],nl.prototype,"disablePolling",void 0),(0,oi.__decorate)([d.observable],nl.prototype,"request",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"row-id"})],nl.prototype,"rowIdAttr",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],nl.prototype,"restartOnReconnection",void 0),(0,oi.__decorate)([d.observable],nl.prototype,"rowDataMapper",void 0),nl=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-genesis-datasource"})],nl);let ll=class extends nl{};ll=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-client-side-datasource"})],ll);var gl=r(66306),dl=r(47546);function sl(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"agNumberColumnFilter";case"date":case"datetime":return"agDateColumnFilter";default:return"agTextColumnFilter"}}function cl(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn";case"date":case"datetime":return"dateColumn";default:return null}}class pl{constructor(e){this.server_ROWS_COUNT=0,this.client_ROWS_COUNT=0,this.moreRows=!1,this.calculatedRowsCount=0,this.lastSequenceId=0,this.rowData=new Map,this.dataserverStream=e.stream,this.resourceName=e.resourceName,this.resourceParams=e.resourceParams,this.originalCriteriaMatch=e.resourceParams.CRITERIA_MATCH,this.resourceIndexes=e.resourceIndexes,this.resourceColDefs=e.resourceColDefs,this.maxRows=e.maxRows,this.maxView=e.maxView,this.rowId=e.rowId,this.pagination=e.pagination}getRows(e){var a;return(0,oi.__awaiter)(this,void 0,void 0,(function*(){const r=e.request.filterModel,t=Object.keys(r).length>0,o=0===Object.keys(r).length,i=JSON.stringify(r)!==JSON.stringify(this.currentFilterModel);(i||t)&&(o&&this.currentFilterModel?(this.currentFilterModel=null,this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.restartSubscription()):i&&t&&(this.currentFilterModel=r,this.resourceParams.CRITERIA_MATCH=this.buildCriteriaMatchFromFilters(),this.restartSubscription()));const n=e.request.sortModel;if(n.length!==(null===(a=this.currentSortModel)||void 0===a?void 0:a.length)||n.length>0)if(0===n.length&&this.currentSortModel)this.currentSortModel=null,this.resourceParams.ORDER_BY=null,this.resourceParams.REVERSE=null,this.restartSubscription();else if(n.length>0){this.currentSortModel=n;const e=this.currentSortModel[0].colId,a=this.currentSortModel[0].sort,r=this.getOrderByAndToBeSortedColIds(this.resourceIndexes,e);r.toBeSorted.forEach((e=>{this.currentSortModel.push({sort:a,colId:e})})),this.resourceParams.ORDER_BY=r.orderBy,this.resourceParams.REVERSE="desc"===a,this.restartSubscription()}this.moreRows&&e.request.startRow>=Number(this.maxRows)&&this.connect.getMoreRows(this.streamSourceRef),this.dataserverStream.pipe((0,dl.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Vn.Cs.LOGOFF_ACK||o===Vn.Cs.MSG_NACK))return void e.fail();if(this.moreRows=a.MORE_ROWS,!a.ROW){this.rowData=new Map;const a={rowData:Array.from(this.rowData.values()),rowCount:0};return void e.success(a)}{const e=(0,Qn.$)(a);this.handleInitialStreamLoad(e)}this.lastSequenceId=a.SEQUENCE_ID,1===this.lastSequenceId&&(this.streamSourceRef=a.SOURCE_REF,this.server_ROWS_COUNT=null!==(r=a.ROWS_COUNT)&&void 0!==r?r:this.rowData.size),!this.moreRows&&this.server_ROWS_COUNT>=this.client_ROWS_COUNT?this.calculatedRowsCount=this.client_ROWS_COUNT:this.calculatedRowsCount+=null!==(t=this.rowData.size)&&void 0!==t?t:0;const i={rowData:Array.from(this.rowData.values())};this.pagination&&(i.rowCount=Math.min(this.server_ROWS_COUNT,this.maxView)),e.request.endRow>this.maxView||e.request.endRow>this.calculatedRowsCount?i.rowCount=this.calculatedRowsCount:e.request.endRow===this.server_ROWS_COUNT&&(i.rowCount=this.server_ROWS_COUNT),e.success(i)}))}))}dataLogoff(){this.streamSourceRef&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.streamSourceRef),this.streamSourceRef=void 0}restartSubscription(){this.dataLogoff(),this.rowData=new Map,this.client_ROWS_COUNT=0;this.dataserverStream=this.connect.stream(this.resourceName,(e=>e),(e=>Ki.error(e)),this.resourceParams)}getOrderByAndToBeSortedColIds(e,a){for(const[r,t]of e.entries()){const e=t.findIndex((e=>e===a));if(-1!==e){const a=[...t];return a.splice(e,1),{orderBy:r,toBeSorted:a}}}}handleInitialStreamLoad(e){var a;if(!e)return;const r=new Map;null===(a=e.inserts)||void 0===a||a.forEach((e=>{r.set(e.ROW_REF,e)})),this.client_ROWS_COUNT+=r.size,this.rowData=r}buildCriteriaMatchFromFilters(){this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.resourceParams.CRITERIA_MATCH&&"string"==typeof this.resourceParams.CRITERIA_MATCH&&(this.resourceParams.CRITERIA_MATCH=this.resourceParams.CRITERIA_MATCH.split(";")),this.resourceParams.CRITERIA_MATCH||(this.resourceParams.CRITERIA_MATCH=[]);return this.resourceParams.CRITERIA_MATCH.concat(this.criteriaFromFilters()).join(" && ")}criteriaFromFilters(){const e=[];return this.getFiltersByType("text").forEach((a=>{if(this.currentFilterModel[a].filter||"false"!==this.currentFilterModel[a].type&&"true"!==this.currentFilterModel[a].type)switch(this.currentFilterModel[a].type){case"equals":e.push(`${a} == '${this.currentFilterModel[a].filter}'`);break;case"contains":e.push(`Expr.containsIgnoreCase(${a}, '${this.currentFilterModel[a].filter}')`)}else e.push(`${a} == ${this.currentFilterModel[a].type}`)})),this.getFiltersByType("number").forEach((a=>{const r=this.currentFilterModel[a].filter;switch(this.currentFilterModel[a].type){case"equals":!isNaN(r)&&e.push(`${a} == ${r}`);break;case"lessThan":!isNaN(r)&&e.push(`${a} < ${r}`);break;case"greaterThan":!isNaN(r)&&e.push(`${a} > ${r}`)}})),this.getFiltersByType("date").forEach((a=>{const r=this.currentFilterModel[a].dateFrom.replace(/-/g,"").replace("T","-").split(" ")[0];switch(this.currentFilterModel[a].type){case"equals":e.push(`Expr.dateIsEqual(${a}, '${r}')`);break;case"lessThan":e.push(`Expr.dateIsBefore(${a}, '${r}')`);break;case"greaterThan":e.push(`Expr.dateIsAfter(${a}, '${r}')`)}})),e}getFiltersByType(e){return Object.keys(this.currentFilterModel).filter((e=>-1!==this.resourceColDefs.findIndex((a=>a.NAME===e)))).filter((a=>this.currentFilterModel[a].filterType===e))}}(0,oi.__decorate)([qn.g],pl.prototype,"auth",void 0),(0,oi.__decorate)([l.lj],pl.prototype,"connect",void 0);let ul=class extends(jn(al)){constructor(){super(...arguments),this.pagination=!1,this.rowId="ROW_REF"}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,Yn.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;d.DOM.queueUpdate((()=>{e&&this.reset()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions=Object.assign({getRowId:e=>e.data?e.data[this.rowId]:null,cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!0},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{}},this.deferredGridOptions),void this.agGrid.addEventListener("onGridReady",(()=>(0,oi.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Ki.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,gl.C)(e);const a=(0,gl.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new pl({stream:t,resourceName:this.resourceName,resourceParams:this.params,resourceIndexes:this.indexes,resourceColDefs:this.originalFieldDef,maxRows:this.maxRows,maxView:this.maxView,rowId:this.rowId,pagination:this.pagination}),this.agGrid.gridApi.setServerSideDatasource(this.dataserverStream)}))),{once:!0});Ki.warn("Application not connected, falling back to local columnDefs/rowData")}reset(){var e;this.clearRowData(),this.dataserverStream=void 0,this.originalFieldDef=void 0,null===(e=this.agGrid.gridApi)||void 0===e||e.setServerSideDatasource(this.dataserverStream)}restart(){this.reset(),this.init()}get agGrid(){return this.parentElement}clearRowData(){var e,a,r,t;null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.setColumnDefs([]);const o={remove:[]};null===(r=this.agGrid.gridApi)||void 0===r||r.forEachNode((e=>{o.remove.push(e.data)})),null===(t=this.agGrid.gridApi)||void 0===t||t.applyServerSideTransaction(o)}getResourceIndexes(e){const a=new Map;return null==e||e.forEach((e=>{a.set(e.NAME,e.FIELDS.split(" "))})),a}get params(){const e={CRITERIA_MATCH:this.criteria,FIELDS:this.fields,MAX_ROWS:this.maxRows,MAX_VIEW:this.maxView,MOVING_VIEW:this.movingView,REVERSE:this.reverse},a=Array.from(this.indexes.keys());if(this.orderBy)if(a.findIndex((e=>e===this.orderBy))>-1)e.ORDER_BY=this.orderBy;else{const e=a.map((e=>e));Ki.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return Ki.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,oi.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Ki.debug(e)),(e=>Ki.error(e)),null!=e?e:this.params)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=function(e){switch(e){case Wn.r.BOOLEAN:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["contains",{displayKey:"true",displayName:"True",predicate:(e,a)=>"true"===a||!0===a,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,a)=>"false"===a||!1===a,numberOfInputs:0},{displayKey:"true-false",displayName:"True/False",predicate:(e,a)=>"true"===a||!0===a||"false"===a||!1===a,numberOfInputs:0}]};case Wn.r.DATE:case Wn.r.DATETIME:return{comparator:(e,a)=>{if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,browserDatePicker:!0,filterOptions:["equals","lessThan","greaterThan"]};case Wn.r.NUMBER:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["equals","lessThan","greaterThan"]};default:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["contains","equals"]}}}(e.type),e.type){case Wn.r.NUMBER:r.cellEditor=ci.numberEditor;break;case Wn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=ci.boolean,r.cellEditor=ci.boolean);break;case Wn.r.DATE:r.valueFormatter=tl;break;case Wn.r.DATETIME:r.valueFormatter=ol;break;case Wn.r.ENUM:r.cellEditor=ci.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:cl(e.type),filter:sl(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,oi.__decorate)([(0,d.attr)({mode:"boolean"})],ul.prototype,"pagination",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"row-id"})],ul.prototype,"rowId",void 0),ul=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-server-side-datasource"})],ul);const hl='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMHau317e0FCManAAiSyCaunoRkkLFl1/9/c+VPMsnNEtBMGFedLLAjUjWiUlf3+d7r9jXZ9QR298S0qL4ULfAzmTVNTp0mtPCuUzXkB9rmv+OwOMJMsBBtenrY+GctjprYgZGc8X+zSHSRfcvw1zpZ98C2kVXG2W5VN1e6FQaG8JwEf+HchRXcb/Z2hfQ8dNS65LeVddel9vIEBkLLAG+YnEKJNWojAGE6V6EkgmyIn4SZ/+fnUtsboqwa/IGs0PNzOvCvzXv/pcBZSpRymlLWAZIFgrumAmgArDY7BSznJvyER6Hm7NyE1oMAmTOP2W4ovkxHhBjDKOYx0rGd6gY9HsC1iTrjjQhAvisbO3rs5NnKm1fs3qoPidYOoKweNm9YtwIO46CaAQG+y6kDZXNP/PIvsNmO0J44x/o4N66Ot+LG+FSETZ0xCmh8diIJRcgUKg1LIC5GV+kMnGkwBUV1HbzQOxJrQ0SKWJv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gr1udqJlaBGlimhjGsr+uF+bwiOA+zU2oE91TLEeIauP1xWe6rUM/pA81yOYpihiSB7JUXB/oI+iZaGt9tQq2n9Q0derrnU/2o8lgXVDNY1oD9p6TyUb0YWZhdYyCKXNkXqpiKbholwui05d6ymOvr4rvfbvnEuD/2Lt6UJO/LtcDLUAjLO7+6TfmdLsqQ1oX9N1GBdZaqb1U6z/q75SrwQ8/Q0nP38sYCya/8Olal7o7hJgPz+nTjjmCEjw0ihgE3KAue6Ez7v6sQAMBCBRVzH0QE+m7QFOUA8oIHQ7QMAd+l1GAzbMBJSuy4FO132so8Klf1DS9T/b9TcUX2zPj/AL+0JO3/nkAvwE23tJm1M5r/MXKLsYquvmateVvUAAkgy6aucqD/aG2VSGIlbPMayL8j5WieIXKG465nS7Whn3qhsVcU2yXhBHu+MlTgB+gvDA9TyJJGbIMf6CADLvWhRUrjWuJH0vSqp0AYxdq7Tmf+5sYN3g2DCqxCIR5uJZqyIJPoZ4J5LY+gKUazY6BSu5tYrnZWTNhtLC560Aq5pu1Hxm2ADhCAgVDfnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',ml='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-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MDhG4PRZLZYbXaHH/61X+r8mc5sLl8olsqVaq3eaLbanW6vPxiOxpPpbL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',vl={[ti.alpine]:hl,[ti.alpineDark]:hl,[ti.balham]:ml,[ti.balhamDark]:ml,[ti.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKoQibUgE2AiQDgiQLgRQABCAFhF4HhQQbwx4zozZKkzKjKAuTKdl/nWDK2JwGzwo8TIbdeYNAtGkxGg6xYzGz3JUMFWCLQoUjcyveKfPZ/H3KUMoL2rS9u+gRJeZcVAgRJ5CkLZEpR8wJTYnXnVSMtFyNChezin1NlBr5GXihygP/477uwwhpzmQRmQv4h7xQ1ukb+qbAuHWw7/RtjIFWUFny28Ky25Mrtuy4tSU/Wc7/vwwfQIfAIXD7Tt+s5E8pTn5vAnqvAPcKcIYlde3bwySmDu1CBfgAWXCyv/537t/bNk2bB4wpAJyvJiygJTWLWk3INSABhcEIIFK3nVCyYoEK+KQzcN/aq94CoAZSukZXyN27/bAzE4LLJqw2fOFLyqTCsgoAg9cUEIwBlHm1VR6FqrN1Fdq2W2BBkEa6OUOPR0hZbsED+7l62hrat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Ypgam57W5yzRsklOnTtE0/b8ro71Rd44RT85pJMUZusvADGu0G1Xw/mbjxRXSG0wLw3hCB9ckfqdCA6LvneDVqPhClJRbjb18VPnRGGrc6N8rsDVJSitxWozffuIuRdzcdrpzbESxF+FqzpahiqHiKWWweIOPrzlDAZPcm4aqcqu4YLfI13gjKBV2vhyVIoQd9GMAQRjD+IUBnYL/D/csm7U631x8MR+PJdDZfLFfrzXa3PxxP58v1dn88qSQrqqYbpmU7rucHoWeee+GlV15746133q/tS5cX9KCBaQ1GeFqW4Zg1U2QwrpobRA+mNJrHnmftPgPtWeo8gSwqSgoEikd5CZWUvDsmkaXNIdZf1h9STVS2TEgFjKJdMcnzVTNcyrI544rdxazid93wxsRk0HxSu4k/tiVCGZajrDXX8WrhVftJ0RU/Ia/64ZpXjoa13dvpWmwq9WLXY8AG8hupZiGFJ1xJm+qGkTLRCYVwm6ItxMhTxKzms6NxGWFaV4+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},bl=hl,fl=d.css`
2050
2050
  .ag-icon {
2051
2051
  font-family: var(--ag-icon-font-family);
2052
2052
  font-size: var(--ag-icon-size);
@@ -9223,7 +9223,7 @@
9223
9223
  input[class^='ag-'][type='range']:disabled {
9224
9224
  opacity: 0.5;
9225
9225
  }
9226
- `,fl=d.css`
9226
+ `,wl=d.css`
9227
9227
  .ag-dnd-ghost {
9228
9228
  background: var(--ag-header-background-color, var(--ag-background-color, #1f2126));
9229
9229
  border: solid 1px;
@@ -9240,7 +9240,7 @@
9240
9240
  overflow: hidden;
9241
9241
  text-overflow: ellipsis;
9242
9242
  }
9243
- `,wl=d.css`
9243
+ `,yl=d.css`
9244
9244
  .ag-theme-alpine,
9245
9245
  .ag-theme-alpine-dark {
9246
9246
  --ag-alpine-active-color: #2196f3;
@@ -9690,7 +9690,7 @@
9690
9690
  .ag-theme-alpine-dark {
9691
9691
  color-scheme: dark;
9692
9692
  }
9693
- `,yl=d.css`
9693
+ `,xl=d.css`
9694
9694
  .ag-theme-balham,
9695
9695
  .ag-theme-balham-dark {
9696
9696
  --ag-balham-active-color: #0091ea;
@@ -9960,7 +9960,7 @@
9960
9960
  .ag-theme-balham-dark {
9961
9961
  color-scheme: dark;
9962
9962
  }
9963
- `,xl=d.css`
9963
+ `,zl=d.css`
9964
9964
  .ag-theme-material {
9965
9965
  --ag-material-primary-color: #3f51b5;
9966
9966
  --ag-material-accent-color: #ff4081;
@@ -10225,14 +10225,14 @@
10225
10225
  .ag-theme-material .ag-picker-field-wrapper:focus {
10226
10226
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
10227
10227
  }
10228
- `,zl=d.css`
10229
- ${bl}
10228
+ `,kl=d.css`
10230
10229
  ${fl}
10231
10230
  ${wl}
10232
10231
  ${yl}
10233
10232
  ${xl}
10234
- `,kl=d.css`
10235
10233
  ${zl}
10234
+ `,Sl=d.css`
10235
+ ${kl}
10236
10236
  :host {
10237
10237
  width: 100%;
10238
10238
  height: 100%;
@@ -10259,14 +10259,14 @@
10259
10259
  .ag-cell-inline-editing {
10260
10260
  height: inherit !important;
10261
10261
  }
10262
- `,Sl=d.html`
10262
+ `,Cl=d.html`
10263
10263
  <template>
10264
10264
  <span part="grid" class="${e=>e.classNames}">
10265
10265
  <slot name="grid" ${(0,d.ref)("gridSlot")}></slot>
10266
10266
  <slot></slot>
10267
10267
  </span>
10268
10268
  </template>
10269
- `;class Cl{init(e){const a=this.eGui=document.createElement("div"),r=e.value;a.classList.add("custom-tooltip"),a.style["background-color"]="#f14376",a.style.border="1px inside",a.style["border-color"]="#2e3339",a.style["border-radius"]="4px",a.style.padding="5px",a.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",a.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}function Al(e,a){const r={},t=[],o="field",i="colId";return a.forEach((a=>{const n=e.find((e=>e[o]===a[i]||e[i]&&e[i]===a[i]));if(n){const e=Object.assign(Object.assign({},n),a);r[n[o]]=e,t.push(e)}})),e.forEach((e=>{if(!r.hasOwnProperty(e[o])){const a=Object.assign({},e);r[e[o]]=a,t.push(a)}})),t}Ji.O3h.registerModules([$n.jM,Fn.I]);const Tl=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Ol extends(Rn(s.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,En.A)(di(a),a),this.insertFontFace(a)}constructor(){super(),this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.addIndex=0,this.asyncAdd=!1,this.asyncRemove=!1,this.asyncUpdate=!0,this.enableCellFlashing=!1,this.enabledRowFlashing=!1,this.enableRowFlashing=!1,this.gridFontFace=vl,this.columnComponentName="grid-pro-column",this.theme=ti.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Ji.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Tl(a)]=a,e)),{})}connectedCallback(){super.connectedCallback(),this.rehydrationAttempted=!1,this.gridAutosizingEnabled&&((e,a)=>{const r={root:document.documentElement};new IntersectionObserver((e=>{e.forEach((e=>{a(e.intersectionRatio>0)}))}),r).observe(e)})(this,(e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.shouldRunConnect&&Ji.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Tl(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(this.initialised=!1,null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[ci.action]:Ki,[ci.actionsMenu]:on,[ci.boolean]:dn,[ci.editable]:Hi,[ci.selectEditor]:Ai,[ci.numberEditor]:$i,[ci.multiselectEditor]:yi,[ci.dateEditor]:hi,[ci.stringEditor]:Ei};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}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()}),5))}removeConfigWidthsToAutosize(e){return e.map((e=>Object.assign(Object.assign({},e),{width:null})))}saveColumnState(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){const e=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");let a=this.columnApi.getColumnState();if(a=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(a):a,0===a.length)return;e[this.persistColumnStateKey]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(e))}}getSavedColumnState(){const e=this.session.getLocalStorageItem("gridOptions");if(this.statePersistanceEnabled()&&e){const a=JSON.parse(e);if(this.persistColumnStateKey in a)return JSON.parse(a[this.persistColumnStateKey])}return[]}restoreColumnState(){var e;this.rehydrationAttempted=!0;const a=this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}cacheFilterConfig(){var e;this.filterConfig=(null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0}restoreCachedFilterConfig(){var e,a;void 0!==this.filterConfig&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(this.filterConfig),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}get gridOptions(){return this.agGridOptions}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(e){const a=this.globalEventListener.bind(this),r=()=>{this.saveColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:t,components:o,defaultColDef:i,onGridReady:n,onFirstDataRendered:l}=e,g=(0,oi.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),s=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),defaultCsvExportParams:this.csvExportParams,components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0},this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProDatasource?s.columnDefs=t:s.columnDefs=this.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Ji.plv.copyAttributesToGridOptions(s,this.agAttributes));const c={globalEventListener:a};d.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Ji.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return Zi.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;const t=e||[],o=Array.from(this.querySelectorAll(this.columnComponentName)).map((e=>e.definition)).map((e=>{this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=a=>{if(a.data[pi]===e.field)return{component:ci.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=Cl,e.tooltipValueGetter=a=>{const r=a.data[ui];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[ui])||void 0===a?void 0:a.column)===e.colDef.field}}));const a=t.find((a=>e.field===a.field));return Object.assign(Object.assign({},a),e)})),i=o.map((e=>e.field)),n=[...o,...this.onlyTemplateColDefs?[]:t.filter((e=>!i.includes(e.field)))];if(this.gridProDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Al(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Al(n,this.gridProDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Ji.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Ji.plv.ALL_PROPERTIES.map((e=>Tl(e)));return e.concat(a)}agAttributeChangedCallback(e,a,r){if(a===r)return;const t=this.agPropertiesMap[e];if(t&&(this.agAttributes[t]=r,this.initialised)){const e={};e[t]={currentValue:r},Ji.plv.processOnChange(e,this.gridApi)}}globalEventListener(e,a){const r=e.toLowerCase(),t=new Event(r);t.agGridDetails=a,this.dispatchEvent(t);const o="on"+r;"function"==typeof this[o]&&this[o](t)}insertFontFace(e){const a=ml[e]||this.gridFontFace;this.destroyFontFace();const r=(0,In.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}get csvExportParams(){return{processCellCallback:e=>["+","-","=","@","\t","\n"].some((a=>String(e.value).startsWith(a)))?"#ERROR formulas not allowed":e.value}}}(0,oi.__decorate)([d.observable],Ol.prototype,"columnApi",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"gridApi",void 0),(0,oi.__decorate)([Ln.z],Ol.prototype,"session",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Ol.prototype,"autoCellRendererByType",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Ol.prototype,"onlyTemplateColDefs",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"grid-autosizing"})],Ol.prototype,"gridAutosizingEnabled",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"add-index"})],Ol.prototype,"addIndex",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-add"})],Ol.prototype,"asyncAdd",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-remove"})],Ol.prototype,"asyncRemove",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-update"})],Ol.prototype,"asyncUpdate",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Ol.prototype,"enableCellFlashing",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Ol.prototype,"enabledRowFlashing",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Ol.prototype,"enableRowFlashing",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"persist-column-state-key"})],Ol.prototype,"persistColumnStateKey",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"gridFontFace",void 0),(0,oi.__decorate)([d.attr],Ol.prototype,"columnComponentName",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"eventsAndCallbacks",void 0),(0,oi.__decorate)([d.attr],Ol.prototype,"headerHeight",void 0),(0,oi.__decorate)([d.attr],Ol.prototype,"rowHeight",void 0),(0,oi.__decorate)([d.attr],Ol.prototype,"theme",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"classNames",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"agGrid",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"gridSlot",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"gridComponents",void 0);const Dl=void 0,Nl={shadowOptions:void 0},Fl=Ol.compose(Object.assign({baseName:"grid-pro",styles:kl,template:Sl,shadowOptions:Dl},Nl)),$l={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#879ba6")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#1f2126")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2e3339")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2b2e34"))},Ll={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#000000")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#181d1f")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#FFFFFF")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#babfc7")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2196f3"))},{create:Ml}=s.DesignToken,Rl={backgroundColor:Ml("rapid-ag-background-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ll.backgroundSwatch:$l.backgroundSwatch)),borderColor:Ml("rapid-ag-border-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ll.borderSwatch:$l.borderSwatch)),foregroundColor:Ml("rapid-ag-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ll.foregroundSwatch:$l.foregroundSwatch)),headerForegroundColor:Ml("rapid-ag-header-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ll.headerForegroundSwatch:$l.headerForegroundSwatch)),rowHoverColor:Ml("rapid-ag-row-hover-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ll.rowHoverSwatch:$l.rowHoverSwatch))},jl=d.css`
10269
+ `;class Al{init(e){const a=this.eGui=document.createElement("div"),r=e.value;a.classList.add("custom-tooltip"),a.style["background-color"]="#f14376",a.style.border="1px inside",a.style["border-color"]="#2e3339",a.style["border-radius"]="4px",a.style.padding="5px",a.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",a.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}function Tl(e,a){const r={},t=[],o="field",i="colId";return a.forEach((a=>{const n=e.find((e=>e[o]===a[i]||e[i]&&e[i]===a[i]));if(n){const e=Object.assign(Object.assign({},n),a);r[n[o]]=e,t.push(e)}})),e.forEach((e=>{if(!r.hasOwnProperty(e[o])){const a=Object.assign({},e);r[e[o]]=a,t.push(a)}})),t}Zi.O3h.registerModules([Ln.jM,$n.I]);const Ol=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Dl extends(jn(s.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Pn.A)(di(a),a),this.insertFontFace(a)}constructor(){super(),this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.addIndex=0,this.asyncAdd=!1,this.asyncRemove=!1,this.asyncUpdate=!0,this.enableCellFlashing=!1,this.enabledRowFlashing=!1,this.enableRowFlashing=!1,this.gridFontFace=bl,this.columnComponentName="grid-pro-column",this.theme=ti.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Zi.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Ol(a)]=a,e)),{})}connectedCallback(){super.connectedCallback(),this.rehydrationAttempted=!1,this.gridAutosizingEnabled&&((e,a)=>{const r={root:document.documentElement};new IntersectionObserver((e=>{e.forEach((e=>{a(e.intersectionRatio>0)}))}),r).observe(e)})(this,(e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.shouldRunConnect&&Zi.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Ol(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(this.initialised=!1,null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[ci.action]:Xi,[ci.actionsMenu]:nn,[ci.boolean]:sn,[ci.editable]:Yi,[ci.selectEditor]:Ti,[ci.numberEditor]:Li,[ci.multiselectEditor]:xi,[ci.dateEditor]:mi,[ci.stringEditor]:Pi};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}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()}),5))}removeConfigWidthsToAutosize(e){return e.map((e=>Object.assign(Object.assign({},e),{width:null})))}saveColumnState(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){const e=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");let a=this.columnApi.getColumnState();if(a=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(a):a,0===a.length)return;e[this.persistColumnStateKey]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(e))}}getSavedColumnState(){const e=this.session.getLocalStorageItem("gridOptions");if(this.statePersistanceEnabled()&&e){const a=JSON.parse(e);if(this.persistColumnStateKey in a)return JSON.parse(a[this.persistColumnStateKey])}return[]}restoreColumnState(){var e;this.rehydrationAttempted=!0;const a=this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}cacheFilterConfig(){var e;this.filterConfig=(null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0}restoreCachedFilterConfig(){var e,a;void 0!==this.filterConfig&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(this.filterConfig),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}get gridOptions(){return this.agGridOptions}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(e){const a=this.globalEventListener.bind(this),r=()=>{this.saveColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:t,components:o,defaultColDef:i,onGridReady:n,onFirstDataRendered:l}=e,g=(0,oi.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0}),this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProDatasource?s.columnDefs=t:s.columnDefs=this.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Zi.plv.copyAttributesToGridOptions(s,this.agAttributes));const c={globalEventListener:a};d.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Zi.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return Ki.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;const t=e||[],o=Array.from(this.querySelectorAll(this.columnComponentName)).map((e=>e.definition)).map((e=>{this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=a=>{if(a.data[pi]===e.field)return{component:ci.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=Al,e.tooltipValueGetter=a=>{const r=a.data[ui];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[ui])||void 0===a?void 0:a.column)===e.colDef.field}}));const a=t.find((a=>e.field===a.field));return Object.assign(Object.assign({},a),e)})),i=o.map((e=>e.field)),n=[...o,...this.onlyTemplateColDefs?[]:t.filter((e=>!i.includes(e.field)))];if(this.gridProDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Tl(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Tl(n,this.gridProDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Zi.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Zi.plv.ALL_PROPERTIES.map((e=>Ol(e)));return e.concat(a)}agAttributeChangedCallback(e,a,r){if(a===r)return;const t=this.agPropertiesMap[e];if(t&&(this.agAttributes[t]=r,this.initialised)){const e={};e[t]={currentValue:r},Zi.plv.processOnChange(e,this.gridApi)}}globalEventListener(e,a){const r=e.toLowerCase(),t=new Event(r);t.agGridDetails=a,this.dispatchEvent(t);const o="on"+r;"function"==typeof this[o]&&this[o](t)}insertFontFace(e){const a=vl[e]||this.gridFontFace;this.destroyFontFace();const r=(0,En.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,oi.__decorate)([d.observable],Dl.prototype,"columnApi",void 0),(0,oi.__decorate)([d.observable],Dl.prototype,"gridApi",void 0),(0,oi.__decorate)([Mn.z],Dl.prototype,"session",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Dl.prototype,"autoCellRendererByType",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Dl.prototype,"onlyTemplateColDefs",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"grid-autosizing"})],Dl.prototype,"gridAutosizingEnabled",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"add-index"})],Dl.prototype,"addIndex",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-add"})],Dl.prototype,"asyncAdd",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-remove"})],Dl.prototype,"asyncRemove",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-update"})],Dl.prototype,"asyncUpdate",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Dl.prototype,"enableCellFlashing",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Dl.prototype,"enabledRowFlashing",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Dl.prototype,"enableRowFlashing",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"persist-column-state-key"})],Dl.prototype,"persistColumnStateKey",void 0),(0,oi.__decorate)([d.observable],Dl.prototype,"gridFontFace",void 0),(0,oi.__decorate)([d.attr],Dl.prototype,"columnComponentName",void 0),(0,oi.__decorate)([d.observable],Dl.prototype,"eventsAndCallbacks",void 0),(0,oi.__decorate)([d.attr],Dl.prototype,"headerHeight",void 0),(0,oi.__decorate)([d.attr],Dl.prototype,"rowHeight",void 0),(0,oi.__decorate)([d.attr],Dl.prototype,"theme",void 0),(0,oi.__decorate)([d.observable],Dl.prototype,"classNames",void 0),(0,oi.__decorate)([d.observable],Dl.prototype,"agGrid",void 0),(0,oi.__decorate)([d.observable],Dl.prototype,"gridSlot",void 0),(0,oi.__decorate)([d.observable],Dl.prototype,"gridComponents",void 0),(0,oi.__decorate)([hi],Dl.prototype,"gridOptionsConfig",void 0);const Nl=void 0,Fl={shadowOptions:void 0},$l=Dl.compose(Object.assign({baseName:"grid-pro",styles:Sl,template:Cl,shadowOptions:Nl},Fl)),Ll={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#879ba6")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#1f2126")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2e3339")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2b2e34"))},Ml={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#000000")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#181d1f")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#FFFFFF")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#babfc7")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2196f3"))},{create:Rl}=s.DesignToken,jl={backgroundColor:Rl("rapid-ag-background-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ml.backgroundSwatch:Ll.backgroundSwatch)),borderColor:Rl("rapid-ag-border-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ml.borderSwatch:Ll.borderSwatch)),foregroundColor:Rl("rapid-ag-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ml.foregroundSwatch:Ll.foregroundSwatch)),headerForegroundColor:Rl("rapid-ag-header-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ml.headerForegroundSwatch:Ll.headerForegroundSwatch)),rowHoverColor:Rl("rapid-ag-row-hover-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ml.rowHoverSwatch:Ll.rowHoverSwatch))},Il=d.css`
10270
10270
  .ag-theme-genesis-rapid,
10271
10271
  .ag-theme-genesis-rapid-dark {
10272
10272
  --ag-alpine-active-color: #2196f3;
@@ -10726,54 +10726,54 @@
10726
10726
  .ag-theme-genesis-rapid-dark {
10727
10727
  color-scheme: dark;
10728
10728
  }
10729
- `,Il={[ri.backgroundColor]:Rl.backgroundColor,[ri.foregroundColor]:Rl.foregroundColor,[ri.oddRowBackgroundColor]:Rl.backgroundColor,[ri.headerBackgroundColor]:Rl.backgroundColor,[ri.headerForegroundColor]:Rl.headerForegroundColor,[ri.selectedRowBackgroundColor]:Rl.rowHoverColor,[ri.rowHoverColor]:Rl.rowHoverColor,[ri.borderColor]:Rl.borderColor,[ri.rowBorderColor]:Rl.rowHoverColor,[ri.modalOverlayBackgroundColor]:Rl.backgroundColor,[ri.inputFocusBoxShadow]:Rl.headerForegroundColor,[ri.inputFocusBorderColor]:Rl.headerForegroundColor,[ri.headerColumnResizeHandleColor]:Rl.headerForegroundColor},El="ag-theme-genesis-rapid",Pl=d.css`
10730
- ${jl}
10731
- ${si(El,Il)}
10729
+ `,El={[ri.backgroundColor]:jl.backgroundColor,[ri.foregroundColor]:jl.foregroundColor,[ri.oddRowBackgroundColor]:jl.backgroundColor,[ri.headerBackgroundColor]:jl.backgroundColor,[ri.headerForegroundColor]:jl.headerForegroundColor,[ri.selectedRowBackgroundColor]:jl.rowHoverColor,[ri.rowHoverColor]:jl.rowHoverColor,[ri.borderColor]:jl.borderColor,[ri.rowBorderColor]:jl.rowHoverColor,[ri.modalOverlayBackgroundColor]:jl.backgroundColor,[ri.inputFocusBoxShadow]:jl.headerForegroundColor,[ri.inputFocusBorderColor]:jl.headerForegroundColor,[ri.headerColumnResizeHandleColor]:jl.headerForegroundColor},Pl="ag-theme-genesis-rapid",Ul=d.css`
10730
+ ${Il}
10731
+ ${si(Pl,El)}
10732
10732
 
10733
- .${El} {
10733
+ .${Pl} {
10734
10734
  ${Te()}
10735
10735
  }
10736
10736
 
10737
- .${El} .ag-header {
10737
+ .${Pl} .ag-header {
10738
10738
  border-bottom-color: var(--rapid-ag-header-foreground-color);
10739
10739
  font-weight: bold;
10740
10740
  }
10741
10741
 
10742
- .${El} .ag-root-wrapper {
10742
+ .${Pl} .ag-root-wrapper {
10743
10743
  border-radius: calc(var(--control-corner-radius) * 1px);
10744
10744
  }
10745
- `,Ul="ag-theme-genesis-rapid-dark",Gl=d.css`
10746
- ${jl}
10747
- ${si(Ul,Il)}
10745
+ `,Gl="ag-theme-genesis-rapid-dark",Bl=d.css`
10746
+ ${Il}
10747
+ ${si(Gl,El)}
10748
10748
 
10749
- .${Ul} {
10749
+ .${Gl} {
10750
10750
  ${Te()}
10751
10751
  }
10752
10752
 
10753
- .${Ul} .ag-header {
10753
+ .${Gl} .ag-header {
10754
10754
  border-bottom-color: var(--rapid-ag-header-foreground-color);
10755
10755
  font-weight: bold;
10756
10756
  }
10757
10757
 
10758
- .${Ul} .ag-cell {
10758
+ .${Gl} .ag-cell {
10759
10759
  line-height: var(--ag-line-height, 32px);
10760
10760
  }
10761
10761
 
10762
- .${Ul} .ag-root-wrapper {
10762
+ .${Gl} .ag-root-wrapper {
10763
10763
  border-radius: calc(var(--control-corner-radius) * 1px);
10764
10764
  }
10765
- `,Bl=d.css`
10765
+ `,_l=d.css`
10766
10766
  /* All the AG themes */
10767
- ${kl}
10767
+ ${Sl}
10768
10768
 
10769
10769
  /* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
10770
- ${Pl}
10771
- ${Gl}
10770
+ ${Ul}
10771
+ ${Bl}
10772
10772
 
10773
10773
  .error {
10774
10774
  border-color: ${me.shortPink} !important;
10775
10775
  }
10776
- `,_l=Sl,Hl="ag-theme-genesis-rapid-dark";const Yl=Nl,Vl={zeroAgEditableRenderer:qi,zeroAgActionRenderer:tn,zeroAgActionsMenuRenderer:gn,zeroAgBooleanRenderer:hn,zeroAgTextRenderer:Cn,zeroAgSelectRenderer:Nn,zeroAgDateEditor:wi,zeroAgMultiselectEditor:Ci,zeroAgSelectEditor:Fi,zeroAgNumberEditor:Ii,zeroAgStringEditor:_i,zeroGridPro:class extends Ol{constructor(){super(...arguments),this.theme=Hl}themeChanged(e,a){(e||a===Hl)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[ci.action]:rn,[ci.actionsMenu]:ln,[ci.boolean]:un,[ci.editable]:Wi,[ci.selectEditor]:Ni,[ci.numberEditor]:ji,[ci.multiselectEditor]:Si,[ci.dateEditor]:fi,[ci.stringEditor]:Bi};(this.theme===El||this.theme===Ul)&&(this.headerHeight=null!==(a=e.headerHeight)&&void 0!==a?a:32,this.rowHeight=null!==(r=e.rowHeight)&&void 0!==r?r:32),super.gridOptions=e}}.compose(Object.assign({baseName:"grid-pro",template:_l,styles:Bl,shadowOptions:undefined},Yl)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},Ql={foundationGridProActionRenderer:an,foundationGridProActionsMenuRenderer:nn,foundationAgBooleanRenderer:pn,foundationAgTextRenderer:Sn,foundationAgTextFieldRenderer:yn,foundationAgEditableRenderer:Qi,foundationAgSelectRenderer:Dn,foundationGridPro:Fl,foundationSelectEditor:Di,foundationNumberEditor:Ri,foundationDateEditor:bi,foundationMultiselectEditor:ki,foundationStringEditor:Gi,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Wl,ql=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Wl||(Wl={}));const Jl={Roboto:Ae,"Segoe UI":'"Segoe UI", Arial, Helvetica, sans-serif',Monospace:'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace',"Times New Roman":'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif',Garamond:'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif',Georgia:'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',Helvetica:'Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif',Verdana:'Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif'},Zl=Jl["Segoe UI"],Kl=d.css`
10776
+ `,Hl=Cl,Yl="ag-theme-genesis-rapid-dark";const Vl=Fl,Ql={zeroAgEditableRenderer:Ji,zeroAgActionRenderer:on,zeroAgActionsMenuRenderer:dn,zeroAgBooleanRenderer:mn,zeroAgTextRenderer:An,zeroAgSelectRenderer:Fn,zeroAgDateEditor:yi,zeroAgMultiselectEditor:Ai,zeroAgSelectEditor:$i,zeroAgNumberEditor:Ei,zeroAgStringEditor:Hi,zeroGridPro:class extends Dl{constructor(){super(...arguments),this.theme=Yl}themeChanged(e,a){(e||a===Yl)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[ci.action]:tn,[ci.actionsMenu]:gn,[ci.boolean]:hn,[ci.editable]:qi,[ci.selectEditor]:Fi,[ci.numberEditor]:Ii,[ci.multiselectEditor]:Ci,[ci.dateEditor]:wi,[ci.stringEditor]:_i};(this.theme===Pl||this.theme===Gl)&&(this.headerHeight=null!==(a=e.headerHeight)&&void 0!==a?a:32,this.rowHeight=null!==(r=e.rowHeight)&&void 0!==r?r:32),super.gridOptions=e}}.compose(Object.assign({baseName:"grid-pro",template:Hl,styles:_l,shadowOptions:undefined},Vl)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},Wl={foundationGridProActionRenderer:rn,foundationGridProActionsMenuRenderer:ln,foundationAgBooleanRenderer:un,foundationAgTextRenderer:Cn,foundationAgTextFieldRenderer:xn,foundationAgEditableRenderer:Wi,foundationAgSelectRenderer:Nn,foundationGridPro:$l,foundationSelectEditor:Ni,foundationNumberEditor:ji,foundationDateEditor:fi,foundationMultiselectEditor:Si,foundationStringEditor:Bi,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var ql,Jl=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(ql||(ql={}));const Zl={Roboto:Ae,"Segoe UI":'"Segoe UI", Arial, Helvetica, sans-serif',Monospace:'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace',"Times New Roman":'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif',Garamond:'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif',Georgia:'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',Helvetica:'Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif',Verdana:'Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif'},Kl=Zl["Segoe UI"],Xl=d.css`
10777
10777
  ${(0,s.display)("block")} :host {
10778
10778
  width: 100%;
10779
10779
  display: inline-flex;
@@ -10905,7 +10905,7 @@
10905
10905
  alpha-button {
10906
10906
  margin: 0;
10907
10907
  }
10908
- `,Xl=d.html`
10908
+ `,eg=d.html`
10909
10909
  <template>
10910
10910
  <div class="configuration">
10911
10911
  ${(0,d.when)((e=>!e.customDesignMode),d.html`
@@ -11113,7 +11113,7 @@
11113
11113
  </div>
11114
11114
  </div>
11115
11115
  ${(0,d.when)((e=>!e.customDesignMode),d.html`
11116
- <alpha-checkbox :checked="${(0,mn.Z)((e=>e.preserveOptions),"boolean")}">
11116
+ <alpha-checkbox :checked="${(0,vn.Z)((e=>e.preserveOptions),"boolean")}">
11117
11117
  Preserve selected options when changing design systems
11118
11118
  </alpha-checkbox>
11119
11119
  `)}
@@ -11128,7 +11128,7 @@
11128
11128
  <slot></slot>
11129
11129
  </div>
11130
11130
  </template>
11131
- `,eg=({design_tokens:e})=>({accentColor:e.color.accent.$value,neutralColor:e.color.neutral.$value,luminance:e.mode.luminance.$value,density:e.style.density.$value,designUnit:e.space.designUnit.$value,borderRadius:e.style.borderRadius.$value,strokeWidth:e.style.strokeWidth.$value,bodyFont:Object.keys(Jl).find((a=>Jl[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),ag=eg(Fe),rg={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},tg=eg(i.designTokens),og={zero:{prefix:"zero",tokenDefaults:ag,buttons:rg},alpha:{prefix:"alpha",tokenDefaults:tg,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:rg}};let ig=class extends d.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=ag.luminance===c.StandardLuminance.DarkMode,this.luminance=ag.luminance,this.neutralColor=ag.neutralColor,this.accentColor=ag.accentColor,this.bodyFont=ag.bodyFont,this.density=ag.density,this.borderRadius=ag.borderRadius,this.strokeWidth=ag.strokeWidth,this.designUnit=ag.designUnit,this.baseFontSize=ag.baseFontSize,this.baseLineHeight=ag.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof s.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof c.Combobox||e.target instanceof c.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof s.Slider){const a=parseInt(e.target.value),r=e.target.name;r&&Number.isInteger(a)&&(this[r]=a,this.updateUserSelections(r,a),this.styleUpdate())}},this.updateUserSelections=(e,a)=>{"ds"===e||this.tokenUpdateInProgress||(this.userSelections[e]=a)},this.modeChangeHandler=e=>{this.darkMode=e.target.checked,this.luminance=this.darkMode?c.StandardLuminance.DarkMode:c.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&d.DOM.queueUpdate((()=>{const e=eg(a);og.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,ql.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(og[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,ql.__awaiter)(this,void 0,void 0,(function*(){const e=[{name:"Zero",value:"zero"},{name:"Foundation UI",value:"alpha"}];if(this.customDesignMode){const e={name:(yield this.getAppName())||"Custom Design",value:"custom"};this.designSystems=[e],this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:og[this.ds].prefix,buttonAppearanceAccent:og[this.ds].buttons.accent,buttonAppearanceNeutral:og[this.ds].buttons.neutral,buttonAppearanceOutline:og[this.ds].buttons.outline};this.$emit(Wl.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(og[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Jl[this.bodyFont],luminance:this.luminance,density:this.density,designUnit:this.designUnit,borderRadius:this.borderRadius,strokeWidth:this.strokeWidth,baseFontSize:this.baseFontSize,baseLineHeight:this.baseLineHeight};this.$emit(Wl.STYLES_CHANGED,e)}setTokensFromDs(e){this.tokenUpdateInProgress=!0,Object.keys(e).forEach((a=>{this.preserveOptions&&void 0!==this.userSelections[a]?this[a]=this.userSelections[a]:this[a]=e[a]})),this.darkMode=this.luminance===c.StandardLuminance.DarkMode,d.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppName(){return fetch("/api/name").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},Ce(),d.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Wl.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,ql.__decorate)([(0,d.attr)({mode:"boolean",attribute:"custom-design-mode"})],ig.prototype,"customDesignMode",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"designSystems",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"ds",void 0),(0,ql.__decorate)([d.attr],ig.prototype,"darkMode",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"neutralColor",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"accentColor",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"bodyFont",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"density",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"borderRadius",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"strokeWidth",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"designUnit",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"baseFontSize",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"baseLineHeight",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"preserveOptions",void 0),ig=(0,ql.__decorate)([(0,d.customElement)({name:"design-system-editor",template:Xl,styles:Kl})],ig);const ng=e=>{const a=(e=>{const a=(0,Ee.parseColorHexRGB)(e);return a?c.SwatchRGB.from(a):null})(e);return a?c.PaletteRGB.create(a):null},lg=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},gg=(e,a)=>{const r=ng(e.neutralColor);c.neutralPalette.setValueFor(a,r);const t=ng(e.accentColor);c.accentPalette.setValueFor(a,t),c.baseLayerLuminance.setValueFor(a,e.luminance),c.density.setValueFor(a,e.density),c.controlCornerRadius.setValueFor(a,e.borderRadius),c.strokeWidth.setValueFor(a,e.strokeWidth),c.designUnit.setValueFor(a,e.designUnit),c.bodyFont.setValueFor(a,e.bodyFont),c.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),c.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),c.typeRampMinus1FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.minusOne,a)),c.typeRampMinus1LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.minusOne,a)),c.typeRampMinus2FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.minusTwo,a)),c.typeRampMinus2LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.minusTwo,a)),c.typeRampPlus1FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusOne,a)),c.typeRampPlus1LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusOne,a)),c.typeRampPlus2FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusTwo,a)),c.typeRampPlus2LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusTwo,a)),c.typeRampPlus3FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusThree,a)),c.typeRampPlus3LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusThree,a)),c.typeRampPlus4FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusFour,a)),c.typeRampPlus4LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusFour,a)),c.typeRampPlus5FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusFive,a)),c.typeRampPlus5LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusFive,a)),c.typeRampPlus6FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusSix,a)),c.typeRampPlus6LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusSix,a))},dg=d.css`
11131
+ `,ag=({design_tokens:e})=>({accentColor:e.color.accent.$value,neutralColor:e.color.neutral.$value,luminance:e.mode.luminance.$value,density:e.style.density.$value,designUnit:e.space.designUnit.$value,borderRadius:e.style.borderRadius.$value,strokeWidth:e.style.strokeWidth.$value,bodyFont:Object.keys(Zl).find((a=>Zl[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),rg=ag(Fe),tg={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},og=ag(i.designTokens),ig={zero:{prefix:"zero",tokenDefaults:rg,buttons:tg},alpha:{prefix:"alpha",tokenDefaults:og,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:tg}};let ng=class extends d.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=rg.luminance===c.StandardLuminance.DarkMode,this.luminance=rg.luminance,this.neutralColor=rg.neutralColor,this.accentColor=rg.accentColor,this.bodyFont=rg.bodyFont,this.density=rg.density,this.borderRadius=rg.borderRadius,this.strokeWidth=rg.strokeWidth,this.designUnit=rg.designUnit,this.baseFontSize=rg.baseFontSize,this.baseLineHeight=rg.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof s.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof c.Combobox||e.target instanceof c.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof s.Slider){const a=parseInt(e.target.value),r=e.target.name;r&&Number.isInteger(a)&&(this[r]=a,this.updateUserSelections(r,a),this.styleUpdate())}},this.updateUserSelections=(e,a)=>{"ds"===e||this.tokenUpdateInProgress||(this.userSelections[e]=a)},this.modeChangeHandler=e=>{this.darkMode=e.target.checked,this.luminance=this.darkMode?c.StandardLuminance.DarkMode:c.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&d.DOM.queueUpdate((()=>{const e=ag(a);ig.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Jl.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(ig[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Jl.__awaiter)(this,void 0,void 0,(function*(){const e=[{name:"Zero",value:"zero"},{name:"Foundation UI",value:"alpha"}];if(this.customDesignMode){const e={name:(yield this.getAppName())||"Custom Design",value:"custom"};this.designSystems=[e],this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:ig[this.ds].prefix,buttonAppearanceAccent:ig[this.ds].buttons.accent,buttonAppearanceNeutral:ig[this.ds].buttons.neutral,buttonAppearanceOutline:ig[this.ds].buttons.outline};this.$emit(ql.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(ig[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Zl[this.bodyFont],luminance:this.luminance,density:this.density,designUnit:this.designUnit,borderRadius:this.borderRadius,strokeWidth:this.strokeWidth,baseFontSize:this.baseFontSize,baseLineHeight:this.baseLineHeight};this.$emit(ql.STYLES_CHANGED,e)}setTokensFromDs(e){this.tokenUpdateInProgress=!0,Object.keys(e).forEach((a=>{this.preserveOptions&&void 0!==this.userSelections[a]?this[a]=this.userSelections[a]:this[a]=e[a]})),this.darkMode=this.luminance===c.StandardLuminance.DarkMode,d.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppName(){return fetch("/api/name").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},Ce(),d.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(ql.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Jl.__decorate)([(0,d.attr)({mode:"boolean",attribute:"custom-design-mode"})],ng.prototype,"customDesignMode",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"designSystems",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"ds",void 0),(0,Jl.__decorate)([d.attr],ng.prototype,"darkMode",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"neutralColor",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"accentColor",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"bodyFont",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"density",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"borderRadius",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"strokeWidth",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"designUnit",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"baseFontSize",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"baseLineHeight",void 0),(0,Jl.__decorate)([d.observable],ng.prototype,"preserveOptions",void 0),ng=(0,Jl.__decorate)([(0,d.customElement)({name:"design-system-editor",template:eg,styles:Xl})],ng);const lg=e=>{const a=(e=>{const a=(0,Ee.parseColorHexRGB)(e);return a?c.SwatchRGB.from(a):null})(e);return a?c.PaletteRGB.create(a):null},gg=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},dg=(e,a)=>{const r=lg(e.neutralColor);c.neutralPalette.setValueFor(a,r);const t=lg(e.accentColor);c.accentPalette.setValueFor(a,t),c.baseLayerLuminance.setValueFor(a,e.luminance),c.density.setValueFor(a,e.density),c.controlCornerRadius.setValueFor(a,e.borderRadius),c.strokeWidth.setValueFor(a,e.strokeWidth),c.designUnit.setValueFor(a,e.designUnit),c.bodyFont.setValueFor(a,e.bodyFont),c.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),c.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),c.typeRampMinus1FontSize.setValueFor(a,gg(c.typeRampBaseFontSize,Se.Yd.minusOne,a)),c.typeRampMinus1LineHeight.setValueFor(a,gg(c.typeRampBaseLineHeight,Se.Yd.minusOne,a)),c.typeRampMinus2FontSize.setValueFor(a,gg(c.typeRampBaseFontSize,Se.Yd.minusTwo,a)),c.typeRampMinus2LineHeight.setValueFor(a,gg(c.typeRampBaseLineHeight,Se.Yd.minusTwo,a)),c.typeRampPlus1FontSize.setValueFor(a,gg(c.typeRampBaseFontSize,Se.Yd.plusOne,a)),c.typeRampPlus1LineHeight.setValueFor(a,gg(c.typeRampBaseLineHeight,Se.Yd.plusOne,a)),c.typeRampPlus2FontSize.setValueFor(a,gg(c.typeRampBaseFontSize,Se.Yd.plusTwo,a)),c.typeRampPlus2LineHeight.setValueFor(a,gg(c.typeRampBaseLineHeight,Se.Yd.plusTwo,a)),c.typeRampPlus3FontSize.setValueFor(a,gg(c.typeRampBaseFontSize,Se.Yd.plusThree,a)),c.typeRampPlus3LineHeight.setValueFor(a,gg(c.typeRampBaseLineHeight,Se.Yd.plusThree,a)),c.typeRampPlus4FontSize.setValueFor(a,gg(c.typeRampBaseFontSize,Se.Yd.plusFour,a)),c.typeRampPlus4LineHeight.setValueFor(a,gg(c.typeRampBaseLineHeight,Se.Yd.plusFour,a)),c.typeRampPlus5FontSize.setValueFor(a,gg(c.typeRampBaseFontSize,Se.Yd.plusFive,a)),c.typeRampPlus5LineHeight.setValueFor(a,gg(c.typeRampBaseLineHeight,Se.Yd.plusFive,a)),c.typeRampPlus6FontSize.setValueFor(a,gg(c.typeRampBaseFontSize,Se.Yd.plusSix,a)),c.typeRampPlus6LineHeight.setValueFor(a,gg(c.typeRampBaseLineHeight,Se.Yd.plusSix,a))},sg=d.css`
11132
11132
  :host {
11133
11133
  background: var(--fill-color);
11134
11134
  color: var(--neutral-foreground-rest);
@@ -11171,7 +11171,7 @@
11171
11171
  zero-design-system-provider {
11172
11172
  display: inline;
11173
11173
  }
11174
- `,sg=d.html`
11174
+ `,cg=d.html`
11175
11175
  ${e=>{return a=e.prefix,d.html`
11176
11176
  <template>
11177
11177
  <${a}-design-system-provider ${(0,d.ref)("provider")}>
@@ -11372,7 +11372,7 @@
11372
11372
  </${a}-design-system-provider>
11373
11373
  </template>
11374
11374
  `;var a}}
11375
- `;let cg=class extends d.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.buttonAppearanceAccent="primary-blue",this.buttonAppearanceNeutral="primary-grey",this.buttonAppearanceOutline="primary-gradient"}setDialogEventListeners(){this.showDialogTrigger.addEventListener("click",(()=>this.modal.show()),{passive:!0}),this.closeDialogTrigger.addEventListener("click",(()=>this.modal.close()),{passive:!0})}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Wl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Wl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{this.setDialogEventListeners(),c.bodyFont.withDefault(Zl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{gg(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.buttonAppearanceAccent=e.detail.buttonAppearanceAccent,this.buttonAppearanceNeutral=e.detail.buttonAppearanceNeutral,this.buttonAppearanceOutline=e.detail.buttonAppearanceOutline,d.DOM.queueUpdate((()=>{this.setDialogEventListeners()}))}};(0,ql.__decorate)([d.observable],cg.prototype,"modal",void 0),(0,ql.__decorate)([d.attr],cg.prototype,"prefix",void 0),(0,ql.__decorate)([d.observable],cg.prototype,"buttonAppearanceAccent",void 0),(0,ql.__decorate)([d.observable],cg.prototype,"buttonAppearanceNeutral",void 0),(0,ql.__decorate)([d.observable],cg.prototype,"buttonAppearanceOutline",void 0),(0,ql.__decorate)([d.observable],cg.prototype,"provider",void 0),cg=(0,ql.__decorate)([(0,d.customElement)({name:"preview-components",template:sg,styles:dg})],cg);const pg=d.css`
11375
+ `;let pg=class extends d.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.buttonAppearanceAccent="primary-blue",this.buttonAppearanceNeutral="primary-grey",this.buttonAppearanceOutline="primary-gradient"}setDialogEventListeners(){this.showDialogTrigger.addEventListener("click",(()=>this.modal.show()),{passive:!0}),this.closeDialogTrigger.addEventListener("click",(()=>this.modal.close()),{passive:!0})}connectedCallback(){super.connectedCallback(),document.body.addEventListener(ql.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(ql.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{this.setDialogEventListeners(),c.bodyFont.withDefault(Kl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{dg(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.buttonAppearanceAccent=e.detail.buttonAppearanceAccent,this.buttonAppearanceNeutral=e.detail.buttonAppearanceNeutral,this.buttonAppearanceOutline=e.detail.buttonAppearanceOutline,d.DOM.queueUpdate((()=>{this.setDialogEventListeners()}))}};(0,Jl.__decorate)([d.observable],pg.prototype,"modal",void 0),(0,Jl.__decorate)([d.attr],pg.prototype,"prefix",void 0),(0,Jl.__decorate)([d.observable],pg.prototype,"buttonAppearanceAccent",void 0),(0,Jl.__decorate)([d.observable],pg.prototype,"buttonAppearanceNeutral",void 0),(0,Jl.__decorate)([d.observable],pg.prototype,"buttonAppearanceOutline",void 0),(0,Jl.__decorate)([d.observable],pg.prototype,"provider",void 0),pg=(0,Jl.__decorate)([(0,d.customElement)({name:"preview-components",template:cg,styles:sg})],pg);const ug=d.css`
11376
11376
  .export {
11377
11377
  display: flex;
11378
11378
  justify-content: center;
@@ -11383,7 +11383,7 @@
11383
11383
  display: flex;
11384
11384
  justify-content: space-between;
11385
11385
  }
11386
- `,ug=d.html`
11386
+ `,hg=d.html`
11387
11387
  <template>
11388
11388
  <div class="export">
11389
11389
  <alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
@@ -11404,7 +11404,7 @@
11404
11404
  </alpha-modal>
11405
11405
  </div>
11406
11406
  </template>
11407
- `;let hg=class extends d.FASTElement{constructor(){super(...arguments),this.formatValues=e=>{const a={design_tokens:{color:{accent:{$value:e.accentColor,$type:"color"},neutral:{$value:e.neutralColor,$type:"color"}},fontFamily:{bodyFont:{$value:e.bodyFont,$type:"fontFamily"}},typography:{baseFontSize:{$value:e.baseFontSize,$type:"dimension"},baseLineHeight:{$value:e.baseLineHeight,$type:"dimension"}},mode:{luminance:{$value:e.luminance,$type:"number"}},style:{density:{$value:e.density,$type:"number"},borderRadius:{$value:e.borderRadius,$type:"number"},strokeWidth:{$value:e.strokeWidth,$type:"number"}},space:{designUnit:{$value:e.designUnit,$type:"number"}}}};return JSON.stringify(a,null,3)},this.showModal=()=>this.modal.show(),this.closeModal=()=>this.modal.close(),this.updateTokens=()=>{fetch(`http://localhost:${location.port}/api/tokens`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokens:this.value})}).then((e=>{if(!e.ok)throw new Error(`API request failed with status ${e.status}`);return e.json()})).then((e=>{console.log("Tokens saved successfully:",e),this.$emit(Wl.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Wl.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,ql.__decorate)([d.attr],hg.prototype,"value",void 0),(0,ql.__decorate)([d.attr],hg.prototype,"tokensPath",void 0),hg=(0,ql.__decorate)([(0,d.customElement)({name:"design-system-export",template:ug,styles:pg})],hg);const mg=d.css`
11407
+ `;let mg=class extends d.FASTElement{constructor(){super(...arguments),this.formatValues=e=>{const a={design_tokens:{color:{accent:{$value:e.accentColor,$type:"color"},neutral:{$value:e.neutralColor,$type:"color"}},fontFamily:{bodyFont:{$value:e.bodyFont,$type:"fontFamily"}},typography:{baseFontSize:{$value:e.baseFontSize,$type:"dimension"},baseLineHeight:{$value:e.baseLineHeight,$type:"dimension"}},mode:{luminance:{$value:e.luminance,$type:"number"}},style:{density:{$value:e.density,$type:"number"},borderRadius:{$value:e.borderRadius,$type:"number"},strokeWidth:{$value:e.strokeWidth,$type:"number"}},space:{designUnit:{$value:e.designUnit,$type:"number"}}}};return JSON.stringify(a,null,3)},this.showModal=()=>this.modal.show(),this.closeModal=()=>this.modal.close(),this.updateTokens=()=>{fetch(`http://localhost:${location.port}/api/tokens`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokens:this.value})}).then((e=>{if(!e.ok)throw new Error(`API request failed with status ${e.status}`);return e.json()})).then((e=>{console.log("Tokens saved successfully:",e),this.$emit(ql.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(ql.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,Jl.__decorate)([d.attr],mg.prototype,"value",void 0),(0,Jl.__decorate)([d.attr],mg.prototype,"tokensPath",void 0),mg=(0,Jl.__decorate)([(0,d.customElement)({name:"design-system-export",template:hg,styles:ug})],mg);const vg=d.css`
11408
11408
  .colors {
11409
11409
  display: flex;
11410
11410
  flex-wrap: wrap;
@@ -11417,23 +11417,23 @@
11417
11417
  flex-grow: 1;
11418
11418
  height: 20px;
11419
11419
  }
11420
- `,vg=d.html`
11420
+ `,bg=d.html`
11421
11421
  <ul class="colors">
11422
11422
  ${(0,d.repeat)((e=>e.swatches),d.html`
11423
11423
  <li class="color" style="background-color: ${e=>e.toColorString()}"></li>
11424
11424
  `)}
11425
11425
  </ul>
11426
- `;let bg=class extends d.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){c[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{const e=ng(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Wl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,ql.__decorate)([d.observable],bg.prototype,"swatches",void 0),(0,ql.__decorate)([d.attr],bg.prototype,"type",void 0),bg=(0,ql.__decorate)([(0,d.customElement)({name:"color-palette",styles:mg,template:vg})],bg);const fg=d.css`
11426
+ `;let fg=class extends d.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){c[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{const e=lg(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(ql.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Jl.__decorate)([d.observable],fg.prototype,"swatches",void 0),(0,Jl.__decorate)([d.attr],fg.prototype,"type",void 0),fg=(0,Jl.__decorate)([(0,d.customElement)({name:"color-palette",styles:vg,template:bg})],fg);const wg=d.css`
11427
11427
  .preview {
11428
11428
  width: 40px;
11429
11429
  height: 40px;
11430
11430
  }
11431
- `,wg=d.html`
11431
+ `,yg=d.html`
11432
11432
  <div
11433
11433
  class="preview"
11434
11434
  style="background-color: ${e=>c[e.tokenName].createCSS()}"
11435
11435
  ></div>
11436
- `;let yg=class extends d.FASTElement{};(0,ql.__decorate)([d.attr],yg.prototype,"tokenName",void 0),yg=(0,ql.__decorate)([(0,d.customElement)({name:"color-token",styles:fg,template:wg})],yg);const xg=d.css`
11436
+ `;let xg=class extends d.FASTElement{};(0,Jl.__decorate)([d.attr],xg.prototype,"tokenName",void 0),xg=(0,Jl.__decorate)([(0,d.customElement)({name:"color-token",styles:wg,template:yg})],xg);const zg=d.css`
11437
11437
  .container {
11438
11438
  display: flex;
11439
11439
  width: 100%;
@@ -11481,7 +11481,7 @@
11481
11481
  .container > div:not(:last-child) {
11482
11482
  border-right: 1px solid #fafafa;
11483
11483
  }
11484
- `,zg=[{title:"Fill",subcategories:[{title:"Fill Colour",tokens:[{name:"fillColor",cssProperty:"--fill-color"}]},{title:"Accent Fill",tokens:[{name:"accentFillRest",cssProperty:"--accent-fill-rest"},{name:"accentFillHover",cssProperty:"--accent-fill-hover"},{name:"accentFillActive",cssProperty:"--accent-fill-active"},{name:"accentFillFocus",cssProperty:"--accent-fill-focus"}]},{title:"Neutral Fill",tokens:[{name:"neutralFillRest",cssProperty:"--neutral-fill-rest"},{name:"neutralFillHover",cssProperty:"--neutral-fill-hover"},{name:"neutralFillActive",cssProperty:"--neutral-fill-active"},{name:"neutralFillFocus",cssProperty:"--neutral-fill-focus"}]},{title:"Neutral Fill Input",tokens:[{name:"neutralFillInputRest",cssProperty:"--neutral-fill-input-rest"},{name:"neutralFillInputHover",cssProperty:"--neutral-fill-input-hover"},{name:"neutralFillInputActive",cssProperty:"--neutral-fill-input-active"},{name:"neutralFillInputFocus",cssProperty:"--neutral-fill-input-focus"}]},{title:"Neutral Fill Stealth",tokens:[{name:"neutralFillStealthRest",cssProperty:"--neutral-fill-stealth-rest"},{name:"neutralFillStealthHover",cssProperty:"--neutral-fill-stealth-hover"},{name:"neutralFillStealthActive",cssProperty:"--neutral-fill-stealth-active"},{name:"neutralFillStealthFocus",cssProperty:"--neutral-fill-stealth-focus"}]},{title:"Neutral Fill Strong",tokens:[{name:"neutralFillStrongRest",cssProperty:"--neutral-fill-strong-rest"},{name:"neutralFillStrongHover",cssProperty:"--neutral-fill-strong-hover"},{name:"neutralFillStrongActive",cssProperty:"--neutral-fill-strong-active"},{name:"neutralFillStrongFocus",cssProperty:"--neutral-fill-strong-focus"}]}]},{title:"Foreground",subcategories:[{title:"Neutral Foreground",tokens:[{name:"neutralForegroundRest",cssProperty:"--neutral-foreground-rest"},{name:"neutralForegroundHint",cssProperty:"--neutral-foreground-hint"}]},{title:"Accent Foreground",tokens:[{name:"accentForegroundRest",cssProperty:"--accent-foreground-rest"},{name:"accentForegroundHover",cssProperty:"--accent-foreground-hover"},{name:"accentForegroundActive",cssProperty:"--accent-foreground-active"},{name:"accentForegroundFocus",cssProperty:"--accent-foreground-focus"}]},{title:"Foreground on Accent",tokens:[{name:"foregroundOnAccentRest",cssProperty:"--foreground-on-accent-rest"},{name:"foregroundOnAccentHover",cssProperty:"--foreground-on-accent-hover"},{name:"foregroundOnAccentActive",cssProperty:"--foreground-on-accent-active"},{name:"foregroundOnAccentFocus",cssProperty:"--foreground-on-accent-focus"}]},{title:"Foreground on accent large",tokens:[{name:"foregroundOnAccentRestLarge",cssProperty:"--foreground-on-accent-rest-large"},{name:"foregroundOnAccentHoverLarge",cssProperty:"--foreground-on-accent-hover-large"},{name:"foregroundOnAccentActiveLarge",cssProperty:"--foreground-on-accent-active-large"},{name:"foregroundOnAccentFocusLarge",cssProperty:"--foreground-on-accent-focus-large"}]}]},{title:"Stroke",subcategories:[{title:"Focus Stroke",tokens:[{name:"focusStrokeOuter",cssProperty:"--focus-stroke-outer"},{name:"focusStrokeInner",cssProperty:"--focus-stroke-inner"}]},{title:"Neutral Stroke",tokens:[{name:"neutralStrokeRest",cssProperty:"---neutral-stroke-rest"},{name:"neutralStrokeHover",cssProperty:"--neutral-stroke-hover"},{name:"neutralStrokeActive",cssProperty:"--neutral-stroke-active"},{name:"neutralStrokeFocus",cssProperty:"--neutral-stroke-focus"}]},{title:"Neutral stroke divider",tokens:[{name:"neutralStrokeDividerRest",cssProperty:"--neutral-stroke-divider-rest"}]}]},{title:"Layer",subcategories:[{title:"Neutral Layers",tokens:[{name:"neutralLayer1",cssProperty:"--neutral-layer-1"},{name:"neutralLayer2",cssProperty:"--neutral-layer-2"},{name:"neutralLayer3",cssProperty:"--neutral-layer-3"},{name:"neutralLayer4",cssProperty:"--neutral-layer-4"}]},{title:"Neutral Layer Card Container",tokens:[{name:"neutralLayerCardContainer",cssProperty:"--neutral-layer-card-container"}]},{title:"Neutral Fill Layer",tokens:[{name:"neutralFillLayerRest",cssProperty:"--neutral-fill-layer-rest"}]},{title:"Neutral Layer Floating",tokens:[{name:"neutralLayerFloating",cssProperty:"--neutral-layer-floating"}]}]}],kg=d.html`
11484
+ `,kg=[{title:"Fill",subcategories:[{title:"Fill Colour",tokens:[{name:"fillColor",cssProperty:"--fill-color"}]},{title:"Accent Fill",tokens:[{name:"accentFillRest",cssProperty:"--accent-fill-rest"},{name:"accentFillHover",cssProperty:"--accent-fill-hover"},{name:"accentFillActive",cssProperty:"--accent-fill-active"},{name:"accentFillFocus",cssProperty:"--accent-fill-focus"}]},{title:"Neutral Fill",tokens:[{name:"neutralFillRest",cssProperty:"--neutral-fill-rest"},{name:"neutralFillHover",cssProperty:"--neutral-fill-hover"},{name:"neutralFillActive",cssProperty:"--neutral-fill-active"},{name:"neutralFillFocus",cssProperty:"--neutral-fill-focus"}]},{title:"Neutral Fill Input",tokens:[{name:"neutralFillInputRest",cssProperty:"--neutral-fill-input-rest"},{name:"neutralFillInputHover",cssProperty:"--neutral-fill-input-hover"},{name:"neutralFillInputActive",cssProperty:"--neutral-fill-input-active"},{name:"neutralFillInputFocus",cssProperty:"--neutral-fill-input-focus"}]},{title:"Neutral Fill Stealth",tokens:[{name:"neutralFillStealthRest",cssProperty:"--neutral-fill-stealth-rest"},{name:"neutralFillStealthHover",cssProperty:"--neutral-fill-stealth-hover"},{name:"neutralFillStealthActive",cssProperty:"--neutral-fill-stealth-active"},{name:"neutralFillStealthFocus",cssProperty:"--neutral-fill-stealth-focus"}]},{title:"Neutral Fill Strong",tokens:[{name:"neutralFillStrongRest",cssProperty:"--neutral-fill-strong-rest"},{name:"neutralFillStrongHover",cssProperty:"--neutral-fill-strong-hover"},{name:"neutralFillStrongActive",cssProperty:"--neutral-fill-strong-active"},{name:"neutralFillStrongFocus",cssProperty:"--neutral-fill-strong-focus"}]}]},{title:"Foreground",subcategories:[{title:"Neutral Foreground",tokens:[{name:"neutralForegroundRest",cssProperty:"--neutral-foreground-rest"},{name:"neutralForegroundHint",cssProperty:"--neutral-foreground-hint"}]},{title:"Accent Foreground",tokens:[{name:"accentForegroundRest",cssProperty:"--accent-foreground-rest"},{name:"accentForegroundHover",cssProperty:"--accent-foreground-hover"},{name:"accentForegroundActive",cssProperty:"--accent-foreground-active"},{name:"accentForegroundFocus",cssProperty:"--accent-foreground-focus"}]},{title:"Foreground on Accent",tokens:[{name:"foregroundOnAccentRest",cssProperty:"--foreground-on-accent-rest"},{name:"foregroundOnAccentHover",cssProperty:"--foreground-on-accent-hover"},{name:"foregroundOnAccentActive",cssProperty:"--foreground-on-accent-active"},{name:"foregroundOnAccentFocus",cssProperty:"--foreground-on-accent-focus"}]},{title:"Foreground on accent large",tokens:[{name:"foregroundOnAccentRestLarge",cssProperty:"--foreground-on-accent-rest-large"},{name:"foregroundOnAccentHoverLarge",cssProperty:"--foreground-on-accent-hover-large"},{name:"foregroundOnAccentActiveLarge",cssProperty:"--foreground-on-accent-active-large"},{name:"foregroundOnAccentFocusLarge",cssProperty:"--foreground-on-accent-focus-large"}]}]},{title:"Stroke",subcategories:[{title:"Focus Stroke",tokens:[{name:"focusStrokeOuter",cssProperty:"--focus-stroke-outer"},{name:"focusStrokeInner",cssProperty:"--focus-stroke-inner"}]},{title:"Neutral Stroke",tokens:[{name:"neutralStrokeRest",cssProperty:"---neutral-stroke-rest"},{name:"neutralStrokeHover",cssProperty:"--neutral-stroke-hover"},{name:"neutralStrokeActive",cssProperty:"--neutral-stroke-active"},{name:"neutralStrokeFocus",cssProperty:"--neutral-stroke-focus"}]},{title:"Neutral stroke divider",tokens:[{name:"neutralStrokeDividerRest",cssProperty:"--neutral-stroke-divider-rest"}]}]},{title:"Layer",subcategories:[{title:"Neutral Layers",tokens:[{name:"neutralLayer1",cssProperty:"--neutral-layer-1"},{name:"neutralLayer2",cssProperty:"--neutral-layer-2"},{name:"neutralLayer3",cssProperty:"--neutral-layer-3"},{name:"neutralLayer4",cssProperty:"--neutral-layer-4"}]},{title:"Neutral Layer Card Container",tokens:[{name:"neutralLayerCardContainer",cssProperty:"--neutral-layer-card-container"}]},{title:"Neutral Fill Layer",tokens:[{name:"neutralFillLayerRest",cssProperty:"--neutral-fill-layer-rest"}]},{title:"Neutral Layer Floating",tokens:[{name:"neutralLayerFloating",cssProperty:"--neutral-layer-floating"}]}]}],Sg=d.html`
11485
11485
  <div class="row">
11486
11486
  <div
11487
11487
  class="preview"
@@ -11493,19 +11493,19 @@
11493
11493
  ${(e,a)=>c[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
11494
11494
  </div>
11495
11495
  </div>
11496
- `,Sg=d.html`
11496
+ `,Cg=d.html`
11497
11497
  <div class="container" ${(0,d.ref)("provider")}>
11498
- ${(0,d.repeat)((()=>zg),d.html`
11498
+ ${(0,d.repeat)((()=>kg),d.html`
11499
11499
  <div class="column">
11500
11500
  <h3 class="header-title">${e=>e.title}</h3>
11501
11501
  ${(0,d.repeat)((e=>e.subcategories),d.html`
11502
11502
  <h4>${e=>e.title}</h4>
11503
- ${(0,d.repeat)((e=>e.tokens),kg)}
11503
+ ${(0,d.repeat)((e=>e.tokens),Sg)}
11504
11504
  `)}
11505
11505
  </div>
11506
11506
  `)}
11507
11507
  </div>
11508
- `;let Cg=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Wl.STYLES_CHANGED,(e=>{const a=e.detail;gg(a,this.provider)}))}};(0,ql.__decorate)([d.observable],Cg.prototype,"provider",void 0),Cg=(0,ql.__decorate)([(0,d.customElement)({name:"color-tokens",template:Sg,styles:xg})],Cg);const Ag=d.css`
11508
+ `;let Ag=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(ql.STYLES_CHANGED,(e=>{const a=e.detail;dg(a,this.provider)}))}};(0,Jl.__decorate)([d.observable],Ag.prototype,"provider",void 0),Ag=(0,Jl.__decorate)([(0,d.customElement)({name:"color-tokens",template:Cg,styles:zg})],Ag);const Tg=d.css`
11509
11509
  table {
11510
11510
  background: var(--neutral-fill-rest);
11511
11511
  color: var(--neutral-foreground-rest);
@@ -11514,7 +11514,7 @@
11514
11514
  th {
11515
11515
  text-align: left;
11516
11516
  }
11517
- `,Tg=d.html`
11517
+ `,Og=d.html`
11518
11518
  <table ${(0,d.ref)("provider")} style="font-family: ${()=>c.bodyFont.createCSS()}">
11519
11519
  <colgroup>
11520
11520
  <col style="width: 15%;" />
@@ -11742,7 +11742,7 @@
11742
11742
  </tr>
11743
11743
  </tbody>
11744
11744
  </table>
11745
- `;let Og=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Wl.STYLES_CHANGED,(e=>{const a=e.detail;gg(a,this.provider)}))}};(0,ql.__decorate)([d.observable],Og.prototype,"provider",void 0),Og=(0,ql.__decorate)([(0,d.customElement)({name:"typography-tokens",template:Tg,styles:Ag})],Og);const Dg=d.css`
11745
+ `;let Dg=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(ql.STYLES_CHANGED,(e=>{const a=e.detail;dg(a,this.provider)}))}};(0,Jl.__decorate)([d.observable],Dg.prototype,"provider",void 0),Dg=(0,Jl.__decorate)([(0,d.customElement)({name:"typography-tokens",template:Og,styles:Tg})],Dg);const Ng=d.css`
11746
11746
  :host {
11747
11747
  background: var(--fill-color);
11748
11748
  color: var(--neutral-foreground-rest);
@@ -11758,7 +11758,7 @@
11758
11758
  margin-top: 24px;
11759
11759
  padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
11760
11760
  }
11761
- `,Ng=d.html`
11761
+ `,Fg=d.html`
11762
11762
  <template>
11763
11763
  <alpha-tabs>
11764
11764
  <alpha-tab slot="tab">Components</alpha-tab>
@@ -11787,7 +11787,7 @@
11787
11787
  </alpha-tab-panel>
11788
11788
  </alpha-tabs>
11789
11789
  </template>
11790
- `;let Fg=class extends d.FASTElement{};Fg=(0,ql.__decorate)([(0,d.customElement)({name:"design-system-preview",template:Ng,styles:Dg})],Fg);const $g={type:"VerticalLayout",elements:[{type:"Group",label:"Group 1",scope:"#/properties/group1",options:{childElements:[{type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/group1/properties/NAME",label:"Name"}]}]}},{type:"Group",label:"Group 2",scope:"#/properties/group2",options:{childElements:[{type:"LayoutVertical2Columns",elements:[{type:"Control",scope:"#/properties/group2/properties/QUANTITY",label:"Quantity"},{type:"Control",scope:"#/properties/group2/properties/PRICE",label:"Price"},{type:"Control",scope:"#/properties/group2/properties/COUNTERPARTY_ID",options:{data:[{name:"Genesis Global",value:"GENESIS"},{name:"Acme Global",value:"ACME"}],valueField:"value",labelField:"name"},label:"Counterparty"},{type:"Control",scope:"#/properties/group2/properties/INSTRUMENT_ID",options:{data:[{name:"Bond",value:"BOND"},{name:"Equity",value:"EQUITY"}],valueField:"value",labelField:"name"},label:"Instrument"},{type:"Control",scope:"#/properties/group2/properties/SIDE",label:"Side"},{type:"Control",scope:"#/properties/group2/properties/TRADE_DATE",label:"Trade Date"},{type:"Control",scope:"#/properties/group2/properties/ACTIVE",label:"Active"}]}]}}]},Lg={type:"object",properties:{group1:{type:"object",properties:{NAME:{type:"string"}}},group2:{type:"object",properties:{QUANTITY:{type:"number"},PRICE:{type:"number"},COUNTERPARTY_ID:{type:"string"},INSTRUMENT_ID:{type:"string"},SIDE:{type:"string",enum:["BUY","SELL"]},TRADE_DATE:{type:"number",format:"date",description:"org.joda.time.DateTime"},ACTIVE:{type:"boolean"}},required:["QUANTITY","PRICE"]}}},Mg={type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/users",options:{childUiSchema:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/firstname",label:"First Name"},{type:"Control",scope:"#/properties/lastname",label:"Last Name"},{type:"Control",scope:"#/properties/email",label:"Email"}]}}}]},Rg={type:"object",properties:{users:{type:"array",items:{type:"object",title:"Users",properties:{firstname:{type:"string"},lastname:{type:"string"},email:{type:"string",format:"email"}},required:["firstname"]}}}},jg=d.css`
11790
+ `;let $g=class extends d.FASTElement{};$g=(0,Jl.__decorate)([(0,d.customElement)({name:"design-system-preview",template:Fg,styles:Ng})],$g);const Lg={type:"VerticalLayout",elements:[{type:"Group",label:"Group 1",scope:"#/properties/group1",options:{childElements:[{type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/group1/properties/NAME",label:"Name"}]}]}},{type:"Group",label:"Group 2",scope:"#/properties/group2",options:{childElements:[{type:"LayoutVertical2Columns",elements:[{type:"Control",scope:"#/properties/group2/properties/QUANTITY",label:"Quantity"},{type:"Control",scope:"#/properties/group2/properties/PRICE",label:"Price"},{type:"Control",scope:"#/properties/group2/properties/COUNTERPARTY_ID",options:{data:[{name:"Genesis Global",value:"GENESIS"},{name:"Acme Global",value:"ACME"}],valueField:"value",labelField:"name"},label:"Counterparty"},{type:"Control",scope:"#/properties/group2/properties/INSTRUMENT_ID",options:{data:[{name:"Bond",value:"BOND"},{name:"Equity",value:"EQUITY"}],valueField:"value",labelField:"name"},label:"Instrument"},{type:"Control",scope:"#/properties/group2/properties/SIDE",label:"Side"},{type:"Control",scope:"#/properties/group2/properties/TRADE_DATE",label:"Trade Date"},{type:"Control",scope:"#/properties/group2/properties/ACTIVE",label:"Active"}]}]}}]},Mg={type:"object",properties:{group1:{type:"object",properties:{NAME:{type:"string"}}},group2:{type:"object",properties:{QUANTITY:{type:"number"},PRICE:{type:"number"},COUNTERPARTY_ID:{type:"string"},INSTRUMENT_ID:{type:"string"},SIDE:{type:"string",enum:["BUY","SELL"]},TRADE_DATE:{type:"number",format:"date",description:"org.joda.time.DateTime"},ACTIVE:{type:"boolean"}},required:["QUANTITY","PRICE"]}}},Rg={type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/users",options:{childUiSchema:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/firstname",label:"First Name"},{type:"Control",scope:"#/properties/lastname",label:"Last Name"},{type:"Control",scope:"#/properties/email",label:"Email"}]}}}]},jg={type:"object",properties:{users:{type:"array",items:{type:"object",title:"Users",properties:{firstname:{type:"string"},lastname:{type:"string"},email:{type:"string",format:"email"}},required:["firstname"]}}}},Ig=d.css`
11791
11791
  :host {
11792
11792
  background: var(--fill-color);
11793
11793
  color: var(--neutral-foreground-rest);
@@ -11818,7 +11818,7 @@
11818
11818
  zero-design-system-provider {
11819
11819
  display: inline;
11820
11820
  }
11821
- `,Ig=d.html`
11821
+ `,Eg=d.html`
11822
11822
  ${e=>{return a=e.prefix,d.html`
11823
11823
  <template>
11824
11824
  <${a}-design-system-provider ${(0,d.ref)("provider")}>
@@ -11842,7 +11842,7 @@
11842
11842
  </${a}-design-system-provider>
11843
11843
  </template>
11844
11844
  `;var a}}
11845
- `;let Eg=class extends d.FASTElement{constructor(){super(...arguments),this.jsonSchema=Lg,this.uischema=$g,this.jsonSchemaArray=Rg,this.uiSchemaArray=Mg,this.prefix="zero",this.editedEntity={group1:{NAME:"Test Name"},group2:{COUNTERPARTY_ID:"GENESIS",INSTRUMENT_ID:"BOND"}},this.editedEntityArray={users:[{firstname:"Max",lastname:"Mustermann",age:25,email:"max@mustermann.com"},{firstname:"John",lastname:"Doe",age:35,email:"john@doe.com"}]}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Wl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Wl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{c.bodyFont.withDefault(Zl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{gg(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix}};(0,ql.__decorate)([d.observable],Eg.prototype,"jsonSchema",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"uischema",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"jsonSchemaArray",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"uiSchemaArray",void 0),(0,ql.__decorate)([d.attr],Eg.prototype,"prefix",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"provider",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"editedEntity",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"editedEntityArray",void 0),Eg=(0,ql.__decorate)([(0,d.customElement)({name:"preview-form",template:Ig,styles:jg})],Eg);const Pg=d.css`
11845
+ `;let Pg=class extends d.FASTElement{constructor(){super(...arguments),this.jsonSchema=Mg,this.uischema=Lg,this.jsonSchemaArray=jg,this.uiSchemaArray=Rg,this.prefix="zero",this.editedEntity={group1:{NAME:"Test Name"},group2:{COUNTERPARTY_ID:"GENESIS",INSTRUMENT_ID:"BOND"}},this.editedEntityArray={users:[{firstname:"Max",lastname:"Mustermann",age:25,email:"max@mustermann.com"},{firstname:"John",lastname:"Doe",age:35,email:"john@doe.com"}]}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(ql.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(ql.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{c.bodyFont.withDefault(Kl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{dg(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix}};(0,Jl.__decorate)([d.observable],Pg.prototype,"jsonSchema",void 0),(0,Jl.__decorate)([d.observable],Pg.prototype,"uischema",void 0),(0,Jl.__decorate)([d.observable],Pg.prototype,"jsonSchemaArray",void 0),(0,Jl.__decorate)([d.observable],Pg.prototype,"uiSchemaArray",void 0),(0,Jl.__decorate)([d.attr],Pg.prototype,"prefix",void 0),(0,Jl.__decorate)([d.observable],Pg.prototype,"provider",void 0),(0,Jl.__decorate)([d.observable],Pg.prototype,"editedEntity",void 0),(0,Jl.__decorate)([d.observable],Pg.prototype,"editedEntityArray",void 0),Pg=(0,Jl.__decorate)([(0,d.customElement)({name:"preview-form",template:Eg,styles:Ig})],Pg);const Ug=d.css`
11846
11846
  :host {
11847
11847
  background: var(--fill-color);
11848
11848
  color: var(--neutral-foreground-rest);
@@ -11857,7 +11857,7 @@
11857
11857
  .grid-height {
11858
11858
  height: 450px;
11859
11859
  }
11860
- `,Ug=d.html`
11860
+ `,Gg=d.html`
11861
11861
  ${e=>{return a=e.prefix,d.html`
11862
11862
  <template>
11863
11863
  <${a}-design-system-provider ${(0,d.ref)("provider")}>
@@ -11867,5 +11867,5 @@
11867
11867
  </${a}-design-system-provider>
11868
11868
  </template>
11869
11869
  `;var a}}
11870
- `;let Gg=class extends d.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[{make:"Toyota",model:"Celica",price:35e3,creationDate:1617624494293,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494295,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1619637452397,isCool:!1},{make:"Audi",model:"A6",price:8e4,creationDate:1617624494293,isCool:!0},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494295,isCool:!0},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1619637452397,isCool:!1},{make:"BMW",model:"Z8",price:9e4,creationDate:1617624494293,isCool:!1},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494295,isCool:!1},{make:"Toyota",model:"Celica",price:35e3,creationDate:1619637452397,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494293,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1617624494295,isCool:!0},{make:"Audi",model:"A6",price:8e4,creationDate:1619637452397,isCool:!1},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494293,isCool:!1},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1617624494295,isCool:!0},{make:"BMW",model:"Z8",price:9e4,creationDate:1619637452397,isCool:!0},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494293,isCool:!0}],this.columnDefs=[{field:"make"},{field:"model"},{field:"price"},{field:"creationDate"},{field:"isCool"}],this.gridOptions={defaultColDef:{resizable:!0,filter:!0},debug:!1,columnDefs:this.columnDefs,rowData:this.rowData}}setGridOptions(){this.grid.gridOptions=this.gridOptions}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Wl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Wl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{this.setGridOptions(),c.bodyFont.withDefault(Zl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{gg(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,d.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,ql.__decorate)([d.observable],Gg.prototype,"grid",void 0),(0,ql.__decorate)([d.attr],Gg.prototype,"prefix",void 0),(0,ql.__decorate)([d.observable],Gg.prototype,"provider",void 0),(0,ql.__decorate)([d.observable],Gg.prototype,"rowData",void 0),(0,ql.__decorate)([d.observable],Gg.prototype,"columnDefs",void 0),(0,ql.__decorate)([d.observable],Gg.prototype,"gridOptions",void 0),Gg=(0,ql.__decorate)([(0,d.customElement)({name:"preview-grid",template:Ug,styles:Pg})],Gg),((e,a="zero")=>{e&&(0,I.provideTokens)(t,o,e);const r=s.DesignSystem.getOrCreate(e).withPrefix(a);return(0,I.createDesignSystemProxy)(r)})().register(ai,Vl),(0,i.provideDesignSystem)().register(i.baseComponents,Ql)}}]);
11871
- //# sourceMappingURL=180.6e08e931a0d24058e36a897e7fe291bc.js.map
11870
+ `;let Bg=class extends d.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[{make:"Toyota",model:"Celica",price:35e3,creationDate:1617624494293,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494295,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1619637452397,isCool:!1},{make:"Audi",model:"A6",price:8e4,creationDate:1617624494293,isCool:!0},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494295,isCool:!0},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1619637452397,isCool:!1},{make:"BMW",model:"Z8",price:9e4,creationDate:1617624494293,isCool:!1},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494295,isCool:!1},{make:"Toyota",model:"Celica",price:35e3,creationDate:1619637452397,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494293,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1617624494295,isCool:!0},{make:"Audi",model:"A6",price:8e4,creationDate:1619637452397,isCool:!1},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494293,isCool:!1},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1617624494295,isCool:!0},{make:"BMW",model:"Z8",price:9e4,creationDate:1619637452397,isCool:!0},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494293,isCool:!0}],this.columnDefs=[{field:"make"},{field:"model"},{field:"price"},{field:"creationDate"},{field:"isCool"}],this.gridOptions={defaultColDef:{resizable:!0,filter:!0},debug:!1,columnDefs:this.columnDefs,rowData:this.rowData}}setGridOptions(){this.grid.gridOptions=this.gridOptions}connectedCallback(){super.connectedCallback(),document.body.addEventListener(ql.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(ql.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{this.setGridOptions(),c.bodyFont.withDefault(Kl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{dg(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,d.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Jl.__decorate)([d.observable],Bg.prototype,"grid",void 0),(0,Jl.__decorate)([d.attr],Bg.prototype,"prefix",void 0),(0,Jl.__decorate)([d.observable],Bg.prototype,"provider",void 0),(0,Jl.__decorate)([d.observable],Bg.prototype,"rowData",void 0),(0,Jl.__decorate)([d.observable],Bg.prototype,"columnDefs",void 0),(0,Jl.__decorate)([d.observable],Bg.prototype,"gridOptions",void 0),Bg=(0,Jl.__decorate)([(0,d.customElement)({name:"preview-grid",template:Gg,styles:Ug})],Bg),((e,a="zero")=>{e&&(0,I.provideTokens)(t,o,e);const r=s.DesignSystem.getOrCreate(e).withPrefix(a);return(0,I.createDesignSystemProxy)(r)})().register(ai,Ql),(0,i.provideDesignSystem)().register(i.baseComponents,Wl)}}]);
11871
+ //# sourceMappingURL=180.d261b63dacd3f5256060fc350e2c7b34.js.map