@genesislcap/design-system-configurator 14.125.1 → 14.126.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/dist/{180.180.0deef3fed49a48968ccd.js → 180.180.d68c2300b42caa36c492.js} +138 -125
  2. package/dist/180.6e08e931a0d24058e36a897e7fe291bc.js.map +1 -0
  3. package/dist/{200.200.0deef5bca9ba7581395b.js → 200.200.44bcdf578015f361122a.js} +2 -2
  4. package/dist/{200.e1b8da3ae3ebc8e6f8d14510648bbeea.js.map → 200.282560fecee536dffe7ab496134a61cd.js.map} +1 -1
  5. package/dist/{269.269.ec780b26883902415bdd.js → 269.269.58f76f42bddfcfb8d71b.js} +1 -1
  6. package/dist/645.1a8bcac3ab28d1d6b1b1ff6181d464b2.js.map +1 -0
  7. package/dist/{645.645.a06cd1eeb9d15b40c07c.js → 645.645.16dbeb427dca47f80724.js} +7 -7
  8. package/dist/755.755.9f0d4e7e206bfb4e97e1.js +2 -0
  9. package/dist/{755.a3cac47cc4cd6e213d2b372c956c558b.js.map → 755.9a7aecd6f809d3501c72cb59e24e35af.js.map} +1 -1
  10. package/dist/{8.8.502d52b2a3198c33681d.js → 8.8.30c23a373b09dffa9472.js} +2 -2
  11. package/dist/{8.17fb5c725550f75ede773e6c9c1c4e98.js.map → 8.aab7d3cc543301610182da8470a00c42.js.map} +1 -1
  12. package/dist/{designSystemConfigurator.2d4e7b65098dca8b8954123bae95d3a5.js.map → designSystemConfigurator.ed60b1851af8f4ee2b4a81b2dfeb6a93.js.map} +1 -1
  13. package/dist/index.html +1 -1
  14. package/dist/main.860a9c81fa6b0d394f99.js +2 -0
  15. package/dist/{main.402859a9c0c2bb84de98891c558be057.js.map → main.9572fe3ca6de4f007b3da30ba3b08e95.js.map} +1 -1
  16. package/dist/remoteEntry.js +2 -2
  17. package/package.json +7 -7
  18. package/dist/180.0c75d20e12393eace42e7766427216f9.js.map +0 -1
  19. package/dist/645.8f92ecc85d24afdeb2ff341896cfc56f.js.map +0 -1
  20. package/dist/755.755.70ffe194d3807bcb3982.js +0 -2
  21. package/dist/main.19539250a7cc477edf74.js +0 -2
@@ -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:()=>vg,ColorToken:()=>wg,ColorTokens:()=>Sg,DesignSystemEditor:()=>og,DesignSystemExport:()=>ug,DesignSystemPreview:()=>Ng,EventName:()=>Ql,PreviewComponents:()=>sg,PreviewForm:()=>Ig,PreviewGrid:()=>Ug,TypographyTokens:()=>Tg,defaultBodyFont:()=>Jl,fontFamilies:()=>ql});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(45062),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:()=>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`
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(60778);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(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`
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(18188);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(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`
284
284
  ${e=>((e="zero")=>d.html`
285
285
  <template>
286
286
  <control-wrapper
@@ -327,6 +327,7 @@
327
327
  resourceName=${e=>{var a;return null===(a=e.control.uischema.options)||void 0===a?void 0:a.allOptionsResourceName}}
328
328
  value-field=${e=>{var a;return null===(a=e.control.uischema.options)||void 0===a?void 0:a.valueField}}
329
329
  label-field=${e=>{var a;return null===(a=e.control.uischema.options)||void 0===a?void 0:a.labelField}}
330
+ option-element="${e}-option"
330
331
  :datasourceConfig=${e=>{var a;return null===(a=e.control.uischema.options)||void 0===a?void 0:a.datasourceConfig}}
331
332
  :data=${e=>{var a;return null===(a=e.control.uischema.options)||void 0===a?void 0:a.data}}
332
333
  :initialSelectedValue=${e=>e.control.data}
@@ -1155,17 +1156,28 @@
1155
1156
  }
1156
1157
  `,et=d.html`
1157
1158
  ${(0,I.getPrefixedFlyout)("zero")}
1158
- `,at=I.defaultFlyoutConfig,rt=I.foundationFlyoutShadowOptions;class tt extends I.Flyout{}const ot=tt.compose(Object.assign({baseName:"flyout",shadowOptions:rt,styles:Xr,template:et},at));class it extends I.GridLayout{}const nt=it.compose(Object.assign({baseName:"grid-layout",shadowOptions:I.foundationGridLayoutShadowOptions,styles:I.foundationGridLayoutStyles,template:I.foundationGridLayoutTemplate},I.defaultGridLayoutConfig));class lt extends I.GridLayoutItem{}const gt=lt.compose(Object.assign({baseName:"grid-layout-item",shadowOptions:I.foundationGridLayoutItemShadowOptions,template:I.foundationGridLayoutItemTemplate},I.defaultGridLayoutItemConfig));class dt extends I.HorizontalScroll{}const st=dt.compose(Object.assign({baseName:"horizontal-scroll",template:(e,a)=>(0,I.foundationHorizontalScrollTemplate)(e,a),styles:(e,a)=>d.css`
1159
+ `,at=I.defaultFlyoutConfig,rt=I.foundationFlyoutShadowOptions;class tt extends I.Flyout{}const ot=tt.compose(Object.assign({baseName:"flyout",shadowOptions:rt,styles:Xr,template:et},at));class it extends I.GridLayout{}const nt=it.compose(Object.assign({baseName:"grid-layout",shadowOptions:I.foundationGridLayoutShadowOptions,styles:I.foundationGridLayoutStyles,template:I.foundationGridLayoutTemplate},I.defaultGridLayoutConfig));class lt extends I.GridLayoutItem{}const gt=lt.compose(Object.assign({baseName:"grid-layout-item",shadowOptions:I.foundationGridLayoutItemShadowOptions,template:I.foundationGridLayoutItemTemplate},I.defaultGridLayoutItemConfig));class dt extends I.HorizontalScroll{}const st={nextFlipper:d.html`
1160
+ <zero-flipper
1161
+ @click="${e=>e.scrollToNext()}"
1162
+ aria-hidden="${e=>e.flippersHiddenFromAT}"
1163
+ ></zero-flipper>
1164
+ `,previousFlipper:d.html`
1165
+ <zero-flipper
1166
+ @click="${e=>e.scrollToPrevious()}"
1167
+ direction="previous"
1168
+ aria-hidden="${e=>e.flippersHiddenFromAT}"
1169
+ ></zero-flipper>
1170
+ `},ct=dt.compose(Object.assign({baseName:"horizontal-scroll",template:(e,a)=>(0,I.foundationHorizontalScrollTemplate)(e,a),styles:(e,a)=>d.css`
1159
1171
  ${(0,I.foundationHorizontalScrollStyles)(e,a)}
1160
- `,shadowOptions:I.foundationHorizontalScrollShadowOptions},I.defaultHorizontalScrollConfig));class ct extends I.Icon{}const pt=I.defaultIconConfig,ut=I.foundationIconShadowOptions,ht=ct.compose(Object.assign({baseName:"icon",template:I.foundationIconTemplate,styles:(e,a)=>d.css`
1172
+ `,shadowOptions:I.foundationHorizontalScrollShadowOptions},st));class pt extends I.Icon{}const ut=I.defaultIconConfig,ht=I.foundationIconShadowOptions,mt=pt.compose(Object.assign({baseName:"icon",template:I.foundationIconTemplate,styles:(e,a)=>d.css`
1161
1173
  ${(0,I.foundationIconStyles)(e,a)}
1162
- `,shadowOptions:ut},pt));class mt extends I.Listbox{}const vt=mt.compose(Object.assign({baseName:"listbox",template:(e,a)=>(0,I.foundationListboxTemplate)(e,a),styles:(e,a)=>d.css`
1174
+ `,shadowOptions:ht},ut));class vt extends I.Listbox{}const bt=vt.compose(Object.assign({baseName:"listbox",template:(e,a)=>(0,I.foundationListboxTemplate)(e,a),styles:(e,a)=>d.css`
1163
1175
  ${(0,I.foundationListboxStyles)(e,a)}
1164
1176
 
1165
1177
  :host {
1166
1178
  background: #1f2126;
1167
1179
  }
1168
- `,shadowOptions:I.foundationListboxShadowOptions},I.defaultListboxConfig));class bt extends I.ListboxOption{}const ft=bt.compose(Object.assign({baseName:"option",template:(e,a)=>(0,I.foundationListboxOptionTemplate)(e,a),styles:(e,a)=>d.css`
1180
+ `,shadowOptions:I.foundationListboxShadowOptions},I.defaultListboxConfig));class ft extends I.ListboxOption{}const wt=ft.compose(Object.assign({baseName:"option",template:(e,a)=>(0,I.foundationListboxOptionTemplate)(e,a),styles:(e,a)=>d.css`
1169
1181
  ${(0,I.foundationListboxOptionStyles)(e,a)}
1170
1182
  :host {
1171
1183
  background-color: ${ce.darkGrey};
@@ -1182,22 +1194,22 @@
1182
1194
  background-color: ${ce.darkerGrey};
1183
1195
  color: ${pe.blue};
1184
1196
  }
1185
- `,shadowOptions:I.foundationListboxOptionShadowOptions},I.defaultListboxOptionConfig)),wt=I.foundationMenuShadowOptions;class yt extends I.Menu{}const xt=yt.compose({baseName:"menu",template:I.foundationMenuTemplate,styles:(e,a)=>d.css`
1197
+ `,shadowOptions:I.foundationListboxOptionShadowOptions},I.defaultListboxOptionConfig)),yt=I.foundationMenuShadowOptions;class xt extends I.Menu{}const zt=xt.compose({baseName:"menu",template:I.foundationMenuTemplate,styles:(e,a)=>d.css`
1186
1198
  ${(0,I.foundationMenuStyles)(e,a)}
1187
1199
 
1188
1200
  :host {
1189
1201
  padding: 0;
1190
1202
  }
1191
- `,shadowOptions:wt}),zt=I.foundationMenuItemShadowOptions;class kt extends I.MenuItem{}const St=kt.compose(Object.assign({baseName:"menu-item",template:I.foundationMenuItemTemplate,styles:(e,a)=>d.css`
1203
+ `,shadowOptions:yt}),kt=I.foundationMenuItemShadowOptions;class St extends I.MenuItem{}const Ct=St.compose(Object.assign({baseName:"menu-item",template:I.foundationMenuItemTemplate,styles:(e,a)=>d.css`
1192
1204
  ${(0,I.foundationMenuItemStyles)(e,a)}
1193
1205
 
1194
1206
  :host {
1195
1207
  background: none;
1196
1208
  margin: 0;
1197
1209
  }
1198
- `,shadowOptions:zt},I.defaultMenuItemConfig)),Ct=d.css`
1210
+ `,shadowOptions:kt},I.defaultMenuItemConfig)),At=d.css`
1199
1211
  ${br}
1200
- `,At=I.defaultModalConfig,Tt=I.foundationModalTemplate,Ot=I.foundationModalShadowOptions;class Dt extends I.Modal{}const Nt=Dt.compose(Object.assign({baseName:"modal",shadowOptions:Ot,styles:Ct,template:Tt},At)),Ft=d.css`
1212
+ `,Tt=I.defaultModalConfig,Ot=I.foundationModalTemplate,Dt=I.foundationModalShadowOptions;class Nt extends I.Modal{}const Ft=Nt.compose(Object.assign({baseName:"modal",shadowOptions:Dt,styles:At,template:Ot},Tt)),$t=d.css`
1201
1213
  ${I.multiselectStyles}
1202
1214
 
1203
1215
  :host {
@@ -1253,9 +1265,9 @@
1253
1265
  .label {
1254
1266
  color: ${Va};
1255
1267
  }
1256
- `,$t=d.html`
1268
+ `,Lt=d.html`
1257
1269
  ${(0,I.getPrefixedMultiselect)("zero")}
1258
- `;class Lt extends I.Multiselect{}const Mt=I.defaultMultiselectConfig,Rt=I.foundationMultiselectShadowOptions,jt=Lt.compose(Object.assign({baseName:"multiselect",template:$t,styles:Ft,shadowOptions:Rt},Mt));class It extends I.NotificationListener{}const Et=It.compose({baseName:"notification-listener",template:I.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}}),Pt=(e,a)=>d.css`
1270
+ `;class Mt extends I.Multiselect{}const Rt=I.defaultMultiselectConfig,jt=I.foundationMultiselectShadowOptions,It=Mt.compose(Object.assign({baseName:"multiselect",template:Lt,styles:$t,shadowOptions:jt},Rt));class Et extends I.NotificationListener{}const Pt=Et.compose({baseName:"notification-listener",template:I.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}}),Ut=(e,a)=>d.css`
1259
1271
  ${(0,I.foundationTextFieldStyles)(e,a)}
1260
1272
  :host {
1261
1273
  --primary-gradient-angle: -113.5deg;
@@ -1303,12 +1315,12 @@
1303
1315
  color: ${Va};
1304
1316
  margin: calc(var(--design-unit) * 2px) 0;
1305
1317
  }
1306
- `;class Ut extends I.NumberField{}const Gt=I.defaultNumberFieldConfig,Bt=I.foundationNumberFieldTemplate,_t=I.foundationNumberFieldShadowOptions,Ht=Ut.compose(Object.assign({baseName:"number-field",template:Bt,styles:(e,a)=>d.css`
1318
+ `;class Gt extends I.NumberField{}const Bt=I.defaultNumberFieldConfig,_t=I.foundationNumberFieldTemplate,Ht=I.foundationNumberFieldShadowOptions,Yt=Gt.compose(Object.assign({baseName:"number-field",template:_t,styles:(e,a)=>d.css`
1307
1319
  :host .root {
1308
1320
  --focus-stroke-outer: transparent;
1309
1321
  }
1310
- ${Pt(e,a)}
1311
- `,shadowOptions:_t},Gt));class Yt extends I.Progress{}const Vt=Yt.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,I.foundationProgressTemplate)(e,a),styles:(e,a)=>d.css`
1322
+ ${Ut(e,a)}
1323
+ `,shadowOptions:Ht},Bt));class Vt extends I.Progress{}const Qt=Vt.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,I.foundationProgressTemplate)(e,a),styles:(e,a)=>d.css`
1312
1324
  ${(0,I.foundationProgressStyles)(e,a)}
1313
1325
  :host([appearance="secondary-teal"]) {
1314
1326
  --accent-foreground-rest: ${ue.teal};
@@ -1317,7 +1329,7 @@
1317
1329
  :host([appearance='secondary-orange']) {
1318
1330
  --accent-foreground-rest: ${ue.orange};
1319
1331
  }
1320
- `,shadowOptions:I.foundationProgressShadowOptions},I.defaultProgressConfig));class Qt extends I.ProgressRing{}const Wt={indeterminateIndicator:`\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <defs>\n <linearGradient id="linear">\n <stop offset="0%" stop-color="${pe.purple}"/>\n <stop offset="100%" stop-color="${pe.blue}"/>\n </linearGradient>\n </defs>\n <circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>\n <circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>\n </svg>\n `},qt=Qt.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>d.html`
1332
+ `,shadowOptions:I.foundationProgressShadowOptions},I.defaultProgressConfig));class Wt extends I.ProgressRing{}const qt={indeterminateIndicator:`\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <defs>\n <linearGradient id="linear">\n <stop offset="0%" stop-color="${pe.purple}"/>\n <stop offset="100%" stop-color="${pe.blue}"/>\n </linearGradient>\n </defs>\n <circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>\n <circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>\n </svg>\n `},Jt=Wt.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>d.html`
1321
1333
  <template
1322
1334
  role="progressbar"
1323
1335
  aria-valuenow="${e=>e.value}"
@@ -1355,7 +1367,7 @@
1355
1367
  .indeterminate-indicator-1, .determinate {
1356
1368
  stroke: ${"url(#linear)"};
1357
1369
  }
1358
- `,shadowOptions:I.foundationProgressRingShadowOptions},Wt));class Jt extends I.Radio{}const Zt=Jt.compose(Object.assign({baseName:"radio",template:(e,a)=>(0,I.foundationRadioTemplate)(e,a),styles:(e,a)=>d.css`
1370
+ `,shadowOptions:I.foundationProgressRingShadowOptions},qt));class Zt extends I.Radio{}const Kt=Zt.compose(Object.assign({baseName:"radio",template:(e,a)=>(0,I.foundationRadioTemplate)(e,a),styles:(e,a)=>d.css`
1359
1371
  ${(0,I.foundationRadioStyles)(e,a)}
1360
1372
  :host {
1361
1373
  --primary-gradient-angle: -113.5deg;
@@ -1387,12 +1399,12 @@
1387
1399
  ${pe.purple}
1388
1400
  );
1389
1401
  }
1390
- `,shadowOptions:I.foundationRadioShadowOptions},I.defaultRadioConfig));class Kt extends I.RadioGroup{}const Xt=Kt.compose(Object.assign({baseName:"radio-group",template:(e,a)=>(0,I.foundationRadioGroupTemplate)(e,a),styles:(e,a)=>d.css`
1402
+ `,shadowOptions:I.foundationRadioShadowOptions},I.defaultRadioConfig));class Xt extends I.RadioGroup{}const eo=Xt.compose(Object.assign({baseName:"radio-group",template:(e,a)=>(0,I.foundationRadioGroupTemplate)(e,a),styles:(e,a)=>d.css`
1391
1403
  ${(0,I.foundationRadioGroupStyles)(e,a)}
1392
1404
  :host([appearance="accent"]) {
1393
1405
  background: green;
1394
1406
  }
1395
- `,shadowOptions:I.foundationRadioGroupShadowOptions},I.defaultRadioGroupConfig));class eo extends I.SegmentedControl{}const ao=eo.compose(Object.assign({baseName:"segmented-control",template:(e,a)=>(0,I.foundationSegmentedControlTemplate)(e,a),styles:(e,a)=>d.css`
1407
+ `,shadowOptions:I.foundationRadioGroupShadowOptions},I.defaultRadioGroupConfig));class ao extends I.SegmentedControl{}const ro=ao.compose(Object.assign({baseName:"segmented-control",template:(e,a)=>(0,I.foundationSegmentedControlTemplate)(e,a),styles:(e,a)=>d.css`
1396
1408
  ${(0,I.foundationSegmentedControlStyles)(e,a)}
1397
1409
  :host {
1398
1410
  --primary-gradient-angle: -113.5deg;
@@ -1431,7 +1443,7 @@
1431
1443
  border-color: transparent;
1432
1444
  box-shadow: 2px 1000px 1px rgb(0 0 0 / 50%) inset;
1433
1445
  }
1434
- `,shadowOptions:undefined},{}));class ro extends I.Radio{}const to=ro.compose(Object.assign({baseName:"segmented-item",template:(e,a)=>(0,I.foundationSegmentedItemTemplate)(e,a),styles:(e,a)=>d.css`
1446
+ `,shadowOptions:undefined},{}));class to extends I.Radio{}const oo=to.compose(Object.assign({baseName:"segmented-item",template:(e,a)=>(0,I.foundationSegmentedItemTemplate)(e,a),styles:(e,a)=>d.css`
1435
1447
  ${(0,I.foundationSegmentedItemStyles)(e,a)}
1436
1448
  :host {
1437
1449
  color: var(--neutral-stroke-rest);
@@ -1441,7 +1453,7 @@
1441
1453
  :host([aria-checked='true']) {
1442
1454
  color: ${ce.white};
1443
1455
  }
1444
- `,shadowOptions:undefined},{}));class oo extends I.Select{}const io=oo.compose(Object.assign({baseName:"select",template:(e,a)=>(0,I.foundationSelectTemplate)(e,a),styles:(e,a)=>d.css`
1456
+ `,shadowOptions:undefined},{}));class io extends I.Select{}const no=io.compose(Object.assign({baseName:"select",template:(e,a)=>(0,I.foundationSelectTemplate)(e,a),styles:(e,a)=>d.css`
1445
1457
  ${(0,I.foundationSelectStyles)(e,a)}
1446
1458
  :host {
1447
1459
  --primary-gradient-angle: -113.5deg;
@@ -1491,9 +1503,9 @@
1491
1503
  :host(:not([disabled])) .control:active {
1492
1504
  background: none;
1493
1505
  }
1494
- `,shadowOptions:I.foundationSelectShadowOptions},I.defaultSelectConfig));class no extends I.Skeleton{}const lo=no.compose(Object.assign({baseName:"skeleton",template:(e,a)=>(0,I.foundationSkeletonTemplate)(e,a),styles:(e,a)=>d.css`
1506
+ `,shadowOptions:I.foundationSelectShadowOptions},I.defaultSelectConfig));class lo extends I.Skeleton{}const go=lo.compose(Object.assign({baseName:"skeleton",template:(e,a)=>(0,I.foundationSkeletonTemplate)(e,a),styles:(e,a)=>d.css`
1495
1507
  ${(0,I.foundationSkeletonStyles)(e,a)}
1496
- `,shadowOptions:I.foundationSkeletonShadowOptions},I.defaultSkeletonConfig));class go extends I.Slider{}const so=go.compose(Object.assign({baseName:"slider",template:(e,a)=>(0,I.foundationSliderTemplate)(e,a),styles:(e,a)=>d.css`
1508
+ `,shadowOptions:I.foundationSkeletonShadowOptions},I.defaultSkeletonConfig));class so extends I.Slider{}const co=so.compose(Object.assign({baseName:"slider",template:(e,a)=>(0,I.foundationSliderTemplate)(e,a),styles:(e,a)=>d.css`
1497
1509
  ${(0,I.foundationSliderStyles)(e,a)}
1498
1510
  :host {
1499
1511
  --primary-gradient-angle: -113.5deg;
@@ -1550,7 +1562,7 @@
1550
1562
  .track-progress {
1551
1563
  background-color: var(--neutral-stroke-rest);
1552
1564
  }
1553
- `,shadowOptions:I.foundationSliderShadowOptions},I.defaultSliderConfig));class co extends I.SliderLabel{}const po=co.compose(Object.assign({baseName:"slider-label",template:(e,a)=>(0,I.foundationSliderLabelTemplate)(e,a),styles:(e,a)=>d.css`
1565
+ `,shadowOptions:I.foundationSliderShadowOptions},I.defaultSliderConfig));class po extends I.SliderLabel{}const uo=po.compose(Object.assign({baseName:"slider-label",template:(e,a)=>(0,I.foundationSliderLabelTemplate)(e,a),styles:(e,a)=>d.css`
1554
1566
  ${(0,I.foundationSliderLabelStyles)(e,a)}
1555
1567
  .label {
1556
1568
  padding: 6px 8px;
@@ -1561,7 +1573,7 @@
1561
1573
  text-align: center;
1562
1574
  font-size: var(--type-ramp-minus-1-font-size, 12px);
1563
1575
  }
1564
- `,shadowOptions:I.foundationSliderLabelShadowOptions},I.defaultSliderLabelConfig)),uo=d.css`
1576
+ `,shadowOptions:I.foundationSliderLabelShadowOptions},I.defaultSliderLabelConfig)),ho=d.css`
1565
1577
  ${I.foundationSnackbarStyles}
1566
1578
  .snackbar {
1567
1579
  border: calc(var(--stroke-width) * 1px) solid ${c.neutralLayer2};
@@ -1571,19 +1583,19 @@
1571
1583
  :host([type='error']) .snackbar::after {
1572
1584
  background-color: ${ra(1)};
1573
1585
  }
1574
- `,ho=d.html`
1586
+ `,mo=d.html`
1575
1587
  ${(0,I.getPrefixedSnackbar)("zero")}
1576
- `,mo=I.foundationSnackbarShadowOptions;class vo extends I.Snackbar{}const bo=vo.compose({baseName:"snackbar",shadowOptions:mo,styles:uo,template:ho}),fo=d.css`
1588
+ `,vo=I.foundationSnackbarShadowOptions;class bo extends I.Snackbar{}const fo=bo.compose({baseName:"snackbar",shadowOptions:vo,styles:ho,template:mo}),wo=d.css`
1577
1589
  ${I.foundationStepperStyles}
1578
1590
 
1579
1591
  .stepper-tab {
1580
1592
  background-color: var(--neutral-layer-3);
1581
1593
  }
1582
- `,wo=d.html`
1594
+ `,yo=d.html`
1583
1595
  ${(0,I.getPrefixedStepper)("zero")}
1584
- `;class yo extends I.Stepper{}const xo=yo.compose(Object.assign({baseName:"stepper",template:wo,styles:fo,shadowOptions:I.foundationStepperShadowOptions},I.defaultStepperConfig)),zo=d.html`
1596
+ `;class xo extends I.Stepper{}const zo=xo.compose(Object.assign({baseName:"stepper",template:yo,styles:wo,shadowOptions:I.foundationStepperShadowOptions},I.defaultStepperConfig)),ko=d.html`
1585
1597
  ${(0,I.getPrefixedStepperTab)("zero")}
1586
- `;class ko extends I.StepperTab{}const So=ko.compose(Object.assign({baseName:"stepper-tab",template:zo,styles:(e,a)=>d.css`
1598
+ `;class So extends I.StepperTab{}const Co=So.compose(Object.assign({baseName:"stepper-tab",template:ko,styles:(e,a)=>d.css`
1587
1599
  ${(0,I.foundationStepperTabStyles)(e,a)}
1588
1600
 
1589
1601
  zero-tree-item {
@@ -1595,7 +1607,7 @@
1595
1607
 
1596
1608
  border-bottom: 1px solid var(--fill-color);
1597
1609
  }
1598
- `,shadowOptions:I.foundationStepperTabShadowOptions},I.defaultStepperTabConfig));class Co extends I.StepperTabPanel{}const Ao=Co.compose(Object.assign({baseName:"stepper-tab-panel",template:(e,a)=>(0,I.foundationStepperTabPanelTemplate)(e,a),shadowOptions:I.foundationStepperTabPanelShadowOptions},I.defaultStepperTabPanelConfig));class To extends I.Switch{}const Oo=To.compose(Object.assign({baseName:"switch",template:(e,a)=>(0,I.foundationSwitchTemplate)(e,a),styles:(e,a)=>d.css`
1610
+ `,shadowOptions:I.foundationStepperTabShadowOptions},I.defaultStepperTabConfig));class Ao extends I.StepperTabPanel{}const To=Ao.compose(Object.assign({baseName:"stepper-tab-panel",template:(e,a)=>(0,I.foundationStepperTabPanelTemplate)(e,a),shadowOptions:I.foundationStepperTabPanelShadowOptions},I.defaultStepperTabPanelConfig));class Oo extends I.Switch{}const Do=Oo.compose(Object.assign({baseName:"switch",template:(e,a)=>(0,I.foundationSwitchTemplate)(e,a),styles:(e,a)=>d.css`
1599
1611
  ${(0,I.foundationSwitchStyles)(e,a)}
1600
1612
  :host {
1601
1613
  --primary-gradient-angle: -113.5deg;
@@ -1640,7 +1652,7 @@
1640
1652
  ${pe.purple}
1641
1653
  );
1642
1654
  }
1643
- `,shadowOptions:I.foundationSwitchShadowOptions},I.defaultSwitchConfig));class Do extends I.Tab{}const No=Do.compose(Object.assign({baseName:"tab",template:(e,a)=>(0,I.foundationTabTemplate)(e,a),styles:(e,a)=>d.css`
1655
+ `,shadowOptions:I.foundationSwitchShadowOptions},I.defaultSwitchConfig));class No extends I.Tab{}const Fo=No.compose(Object.assign({baseName:"tab",template:(e,a)=>(0,I.foundationTabTemplate)(e,a),styles:(e,a)=>d.css`
1644
1656
  ${(0,I.foundationTabStyles)(e,a)}
1645
1657
  :host {
1646
1658
  background-color: ${c.neutralLayer2};
@@ -1664,12 +1676,12 @@
1664
1676
  margin-right: 0;
1665
1677
  background-color: var(--zero-card-fill-color);
1666
1678
  }
1667
- `,shadowOptions:I.foundationTabShadowOptions},I.defaultTabConfig));class Fo extends I.TabPanel{}const $o=Fo.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,I.foundationTabPanelTemplate)(e,a),styles:(e,a)=>d.css`
1679
+ `,shadowOptions:I.foundationTabShadowOptions},I.defaultTabConfig));class $o extends I.TabPanel{}const Lo=$o.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,I.foundationTabPanelTemplate)(e,a),styles:(e,a)=>d.css`
1668
1680
  ${(0,I.foundationTabPanelStyles)(e,a)}
1669
1681
  :host {
1670
1682
  padding: 0;
1671
1683
  }
1672
- `,shadowOptions:I.foundationTabPanelShadowOptions},I.defaultTabPanelConfig));class Lo extends I.Tabs{}const Mo=Lo.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,I.foundationTabsTemplate)(e,a),styles:(e,a)=>d.css`
1684
+ `,shadowOptions:I.foundationTabPanelShadowOptions},I.defaultTabPanelConfig));class Mo extends I.Tabs{}const Ro=Mo.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,I.foundationTabsTemplate)(e,a),styles:(e,a)=>d.css`
1673
1685
  ${(0,I.foundationTabsStyles)(e,a)}
1674
1686
  :host .tablist {
1675
1687
  padding: 0;
@@ -1715,7 +1727,7 @@
1715
1727
  height: 2px;
1716
1728
  margin-top: 0;
1717
1729
  }
1718
- `,shadowOptions:I.foundationTabsShadowOptions},I.defaultTabsConfig));class Ro extends I.TextArea{}const jo=Ro.compose(Object.assign({baseName:"text-area",template:(e,a)=>(0,I.foundationTextAreaTemplate)(e,a),styles:(e,a)=>d.css`
1730
+ `,shadowOptions:I.foundationTabsShadowOptions},I.defaultTabsConfig));class jo extends I.TextArea{}const Io=jo.compose(Object.assign({baseName:"text-area",template:(e,a)=>(0,I.foundationTextAreaTemplate)(e,a),styles:(e,a)=>d.css`
1719
1731
  ${(0,I.foundationTextAreaStyles)(e,a)}
1720
1732
  :host {
1721
1733
  --primary-gradient-angle: -113.5deg;
@@ -1760,7 +1772,7 @@
1760
1772
  color: ${Va};
1761
1773
  margin: calc(var(--design-unit) * 2px) 0;
1762
1774
  }
1763
- `,shadowOptions:I.foundationTextAreaShadowOptions},I.defaultTextAreaConfig));class Io extends I.TextField{}const Eo=Io.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,I.foundationTextFieldTemplate)(e,a),styles:Pt,shadowOptions:I.foundationTextFieldShadowOptions},I.defaultTextFieldConfig)),Po=d.css`
1775
+ `,shadowOptions:I.foundationTextAreaShadowOptions},I.defaultTextAreaConfig));class Eo extends I.TextField{}const Po=Eo.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,I.foundationTextFieldTemplate)(e,a),styles:Ut,shadowOptions:I.foundationTextFieldShadowOptions},I.defaultTextFieldConfig)),Uo=d.css`
1764
1776
  ${I.foundationToastStyles}
1765
1777
  .toast {
1766
1778
  border: calc(var(--stroke-width) * 1px) solid ${c.neutralLayer3};
@@ -1786,11 +1798,11 @@
1786
1798
  :host([notify='serious']) .toast::after {
1787
1799
  background-color: ${Ze(1)};
1788
1800
  }
1789
- `,Uo=I.defaultToastConfig,Go=I.foundationToastShadowOptions;class Bo extends I.Toast{}const _o=Bo.compose(Object.assign({baseName:"toast",shadowOptions:Go,styles:Po,template:I.foundationToastTemplate},Uo));class Ho extends I.Toolbar{}const Yo=Ho.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,I.foundationToolbarTemplate)(e,a),styles:(e,a)=>d.css`
1801
+ `,Go=I.defaultToastConfig,Bo=I.foundationToastShadowOptions;class _o extends I.Toast{}const Ho=_o.compose(Object.assign({baseName:"toast",shadowOptions:Bo,styles:Uo,template:I.foundationToastTemplate},Go));class Yo extends I.Toolbar{}const Vo=Yo.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,I.foundationToolbarTemplate)(e,a),styles:(e,a)=>d.css`
1790
1802
  ${(0,I.foundationToolbarStyles)(e,a)}
1791
- `,shadowOptions:I.foundationToolbarShadowOptions},I.defaultToolbarConfig));class Vo extends I.Tooltip{}const Qo=Vo.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,I.foundationTooltipTemplate)(e,a),styles:(e,a)=>d.css`
1803
+ `,shadowOptions:I.foundationToolbarShadowOptions},I.defaultToolbarConfig));class Qo extends I.Tooltip{}const Wo=Qo.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,I.foundationTooltipTemplate)(e,a),styles:(e,a)=>d.css`
1792
1804
  ${(0,I.foundationTooltipStyles)(e,a)}
1793
- `,shadowOptions:I.foundationTooltipShadowOptions},I.defaultTooltipConfig));class Wo extends I.TreeItem{}const qo=Wo.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,I.foundationTreeItemTemplate)(e,a),styles:(e,a)=>d.css`
1805
+ `,shadowOptions:I.foundationTooltipShadowOptions},I.defaultTooltipConfig));class qo extends I.TreeItem{}const Jo=qo.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,I.foundationTreeItemTemplate)(e,a),styles:(e,a)=>d.css`
1794
1806
  ${(0,I.foundationTreeItemStyles)(e,a)}
1795
1807
  :host {
1796
1808
  --primary-gradient-angle: -113.5deg;
@@ -1818,11 +1830,11 @@
1818
1830
  background-size: cover;
1819
1831
  background-repeat: no-repeat;
1820
1832
  }
1821
- `,shadowOptions:I.foundationTreeItemShadowOptions},I.defaultTreeItemConfig));class Jo extends I.TreeView{}const Zo=Jo.compose(Object.assign({baseName:"tree-view",template:(e,a)=>(0,I.foundationTreeViewTemplate)(e,a),styles:(e,a)=>d.css`
1833
+ `,shadowOptions:I.foundationTreeItemShadowOptions},I.defaultTreeItemConfig));class Zo extends I.TreeView{}const Ko=Zo.compose(Object.assign({baseName:"tree-view",template:(e,a)=>(0,I.foundationTreeViewTemplate)(e,a),styles:(e,a)=>d.css`
1822
1834
  ${(0,I.foundationTreeViewStyles)(e,a)}
1823
- `,shadowOptions:I.foundationTreeViewShadowOptions},I.defaultTreeViewConfig)),Ko=d.html`
1835
+ `,shadowOptions:I.foundationTreeViewShadowOptions},I.defaultTreeViewConfig)),Xo=d.html`
1824
1836
  ${(0,I.getPrefixedUrlInput)("zero")}
1825
- `;class Xo extends I.UrlInput{}const ei={zeroAccordion:Le,zeroAccordionItem:Re,zeroActionsMenu:Ie,zeroAnchor:fa,zeroAnchoredRegion:ya,zeroAvatar:za,zeroBadge:Sa,zeroBanner:Oa,zeroBreadcrumbItem:$a,zeroBreadcrumb:Na,zeroButton:Ma,zeroCalendar:ja,zeroCard:Ea,zeroCheckbox:Ua,zeroCombobox:Xa,zeroConnectionIndicator:ar,zeroDataGrid:ir,zeroDesignSystemProvider:hr,zeroDialog:zr,zeroDatePicker:gr,zeroDisclosure:Sr,zeroDivider:Ar,zeroDropdownMenu:Or,zeroErrorBoundary:Mr,zeroNotificationListener:Et,zeroErrorBanner:$r,zeroErrorDialog:jr,zeroFileUpload:Br,zeroFilter:Yr,zeroFilterBar:Wr,zeroFlexLayout:Jr,zeroFlipper:Kr,zeroFlyout:ot,zeroGridLayout:nt,zeroGridLayoutItem:gt,zeroHorizontalScroll:st,zeroIcon:ht,zeroListbox:vt,zeroListboxOption:ft,zeroMenu:xt,zeroMenuItem:St,zeroModal:Nt,zeroMultiselect:jt,zeroNumberField:Ht,zeroProgress:Vt,zeroProgressRing:qt,zeroRadio:Zt,zeroRadioGroup:Xt,zeroSegmentedControl:ao,zeroSegmentedItem:to,zeroSelect:io,zeroSkeleton:lo,zeroSlider:so,zeroSliderLabel:po,zeroSnackbar:bo,zeroStepper:xo,zeroStepperTab:So,zeroStepperTabPanel:Ao,zeroSwitch:Oo,zeroTab:No,zeroTabPanel:$o,zeroTabs:Mo,zeroTextArea:jo,zeroTextField:Eo,zeroToast:_o,zeroToolbar:Yo,zeroTooltip:Qo,zeroTreeItem:qo,zeroTreeView:Zo,zeroUrlInput:Xo.compose(Object.assign({baseName:"url-input",template:Ko,styles:(e,a)=>d.css`
1837
+ `;class ei extends I.UrlInput{}const ai={zeroAccordion:Le,zeroAccordionItem:Re,zeroActionsMenu:Ie,zeroAnchor:fa,zeroAnchoredRegion:ya,zeroAvatar:za,zeroBadge:Sa,zeroBanner:Oa,zeroBreadcrumbItem:$a,zeroBreadcrumb:Na,zeroButton:Ma,zeroCalendar:ja,zeroCard:Ea,zeroCheckbox:Ua,zeroCombobox:Xa,zeroConnectionIndicator:ar,zeroDataGrid:ir,zeroDesignSystemProvider:hr,zeroDialog:zr,zeroDatePicker:gr,zeroDisclosure:Sr,zeroDivider:Ar,zeroDropdownMenu:Or,zeroErrorBoundary:Mr,zeroNotificationListener:Pt,zeroErrorBanner:$r,zeroErrorDialog:jr,zeroFileUpload:Br,zeroFilter:Yr,zeroFilterBar:Wr,zeroFlexLayout:Jr,zeroFlipper:Kr,zeroFlyout:ot,zeroGridLayout:nt,zeroGridLayoutItem:gt,zeroHorizontalScroll:ct,zeroIcon:mt,zeroListbox:bt,zeroListboxOption:wt,zeroMenu:zt,zeroMenuItem:Ct,zeroModal:Ft,zeroMultiselect:It,zeroNumberField:Yt,zeroProgress:Qt,zeroProgressRing:Jt,zeroRadio:Kt,zeroRadioGroup:eo,zeroSegmentedControl:ro,zeroSegmentedItem:oo,zeroSelect:no,zeroSkeleton:go,zeroSlider:co,zeroSliderLabel:uo,zeroSnackbar:fo,zeroStepper:zo,zeroStepperTab:Co,zeroStepperTabPanel:To,zeroSwitch:Do,zeroTab:Fo,zeroTabPanel:Lo,zeroTabs:Ro,zeroTextArea:Io,zeroTextField:Po,zeroToast:Ho,zeroToolbar:Vo,zeroTooltip:Wo,zeroTreeItem:Jo,zeroTreeView:Ko,zeroUrlInput:ei.compose(Object.assign({baseName:"url-input",template:Xo,styles:(e,a)=>d.css`
1826
1838
  ${(0,I.foundationUrlInputStyles)(e,a)}
1827
1839
  a {
1828
1840
  color: ${pe.blue};
@@ -1832,23 +1844,23 @@
1832
1844
  a:hover {
1833
1845
  opacity: 100%;
1834
1846
  }
1835
- `,shadowOptions:I.foundationUrlInputShadowOptions},I.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var ai,ri,ti=r(80249),oi=r(87530),ii=r.n(oi),ni=r(79014),li=r.n(ni);!function(e){e.foregroundColor="--ag-foreground-color",e.dataColor="--ag-data-color",e.secondaryForegroundColor="--ag-secondary-foreground-color",e.headerForegroundColor="--ag-header-foreground-color",e.disabledForegroundColor="--ag-disabled-foreground-color",e.backgroundColor="--ag-background-color",e.headerBackgroundColor="--ag-header-background-color",e.subheaderBackgroundColor="--ag-subheader-background-color",e.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",e.controlPanelBackgroundColor="--ag-control-panel-background-color",e.selectedRowBackgroundColor="--ag-selected-row-background-color",e.oddRowBackgroundColor="--ag-odd-row-background-color",e.rowHoverColor="--ag-row-hover-color",e.rangeSelectionBorderColor="--ag-range-selection-border-color",e.rangeSelectionBackgroundColor="--ag-range-selection-background-color",e.selectedTabUnderlineColor="--ag-selected-tab-underline-color",e.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",e.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",e.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",e.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",e.chipBackgroundColor="--ag-chip-background-color",e.borderColor="--ag-border-color",e.secondaryBorderColor="--ag-secondary-border-color",e.rowBorderColor="--ag-row-border-color",e.headerColumnSeparatorColor="--ag-header-column-separator-color",e.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",e.inputBorderColor="--ag-input-border-color",e.inputDisabledBorderColor="--ag-input-disabled-border-color",e.inputDisabledBackgroundColor="--ag-input-disabled-background-color",e.checkboxBackgroundColor="--ag-checkbox-background-color",e.checkboxCheckedColor="--ag-checkbox-checked-color",e.checkboxUncheckedColor="--ag-checkbox-unchecked-color",e.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",e.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",e.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",e.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",e.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",e.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",e.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",e.minichartSelectedChartColor="--ag-minichart-selected-chart-color",e.minichartSelectedPageColor="--ag-minichart-selected-page-color",e.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",e.inputFocusBoxShadow="--ag-input-focus-box-shadow",e.inputFocusBorderColor="--ag-input-focus-border-color"}(ai||(ai={})),function(e){e.alpine="ag-theme-alpine",e.alpineDark="ag-theme-alpine-dark",e.balham="ag-theme-balham",e.balhamDark="ag-theme-balham-dark",e.material="ag-theme-material"}(ri||(ri={}));const gi=e=>`${e}-token-map`,di=(e,a)=>d.css`
1836
- .${gi(e)} {
1847
+ `,shadowOptions:I.foundationUrlInputShadowOptions},I.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var ri,ti,oi=r(80249),ii=r(87530),ni=r.n(ii),li=r(79014),gi=r.n(li);!function(e){e.foregroundColor="--ag-foreground-color",e.dataColor="--ag-data-color",e.secondaryForegroundColor="--ag-secondary-foreground-color",e.headerForegroundColor="--ag-header-foreground-color",e.disabledForegroundColor="--ag-disabled-foreground-color",e.backgroundColor="--ag-background-color",e.headerBackgroundColor="--ag-header-background-color",e.subheaderBackgroundColor="--ag-subheader-background-color",e.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",e.controlPanelBackgroundColor="--ag-control-panel-background-color",e.selectedRowBackgroundColor="--ag-selected-row-background-color",e.oddRowBackgroundColor="--ag-odd-row-background-color",e.rowHoverColor="--ag-row-hover-color",e.rangeSelectionBorderColor="--ag-range-selection-border-color",e.rangeSelectionBackgroundColor="--ag-range-selection-background-color",e.selectedTabUnderlineColor="--ag-selected-tab-underline-color",e.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",e.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",e.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",e.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",e.chipBackgroundColor="--ag-chip-background-color",e.borderColor="--ag-border-color",e.secondaryBorderColor="--ag-secondary-border-color",e.rowBorderColor="--ag-row-border-color",e.headerColumnSeparatorColor="--ag-header-column-separator-color",e.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",e.inputBorderColor="--ag-input-border-color",e.inputDisabledBorderColor="--ag-input-disabled-border-color",e.inputDisabledBackgroundColor="--ag-input-disabled-background-color",e.checkboxBackgroundColor="--ag-checkbox-background-color",e.checkboxCheckedColor="--ag-checkbox-checked-color",e.checkboxUncheckedColor="--ag-checkbox-unchecked-color",e.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",e.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",e.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",e.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",e.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",e.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",e.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",e.minichartSelectedChartColor="--ag-minichart-selected-chart-color",e.minichartSelectedPageColor="--ag-minichart-selected-page-color",e.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",e.inputFocusBoxShadow="--ag-input-focus-box-shadow",e.inputFocusBorderColor="--ag-input-focus-border-color"}(ri||(ri={})),function(e){e.alpine="ag-theme-alpine",e.alpineDark="ag-theme-alpine-dark",e.balham="ag-theme-balham",e.balhamDark="ag-theme-balham-dark",e.material="ag-theme-material"}(ti||(ti={}));const di=e=>`${e}-token-map`,si=(e,a)=>d.css`
1848
+ .${di(e)} {
1837
1849
  ${new I.CSSVarsTokenMapper(a)}
1838
1850
  }
1839
- `;var si;!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"}(si||(si={}));const ci="__editedColumn",pi="__errorColumn";ii().extend(li());class ui 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[ci]}}(0,ti.__decorate)([d.observable],ui.prototype,"value",void 0),(0,ti.__decorate)([d.observable],ui.prototype,"actualWidth",void 0);const hi=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";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`
1840
1852
  :host {
1841
1853
  display: flex;
1842
1854
  }
1843
- `,mi=(e="foundation")=>d.html`
1855
+ `,vi=(e="foundation")=>d.html`
1844
1856
  <${e}-text-field
1845
1857
  ${(0,d.ref)("input")}
1846
- :value=${e=>void 0===e.value||null===e.value?"":ii().utc(e.value).format(e.dateFormat)}
1858
+ :value=${e=>void 0===e.value||null===e.value?"":ni().utc(e.value).format(e.dateFormat)}
1847
1859
  type=${e=>e.inputType}
1848
1860
  @input=${(e,a)=>e.changeHandler(a.event)}
1849
1861
  style="width: ${e=>e.actualWidth}px"
1850
1862
  ></${e}-text-field>
1851
- `,vi=ui.compose({baseName:"date-editor",styles:hi,template:mi()});class bi extends ui{}const fi=bi.compose({baseName:"date-editor",styles:hi,template:mi("zero")});class wi 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[ci]}}(0,ti.__decorate)([d.observable],wi.prototype,"params",void 0),(0,ti.__decorate)([d.observable],wi.prototype,"selectedOptions",void 0);const yi=d.css``,xi=(e="foundation")=>d.html`
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`
1852
1864
  <${e}-multiselect
1853
1865
  style="width: 100%"
1854
1866
  ?async=${e=>e.params.async}
@@ -1862,7 +1874,7 @@
1862
1874
  :datasourceConfig=${e=>e.params.datasourceOptions}
1863
1875
  ></multiselect-datasource>
1864
1876
  </${e}-multiselect>
1865
- `,zi=wi.compose({baseName:"multiselect-editor",styles:yi,template:xi()});class ki extends wi{}const Si=ki.compose({baseName:"multiselect-editor",styles:yi,template:xi("zero")});class Ci 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[ci]}}(0,ti.__decorate)([d.observable],Ci.prototype,"params",void 0),(0,ti.__decorate)([d.observable],Ci.prototype,"value",void 0),(0,ti.__decorate)([d.observable],Ci.prototype,"actualWidth",void 0);const Ai=d.css``,Ti=(e="foundation")=>d.html`
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`
1866
1878
  <${e}-combobox
1867
1879
  style="width: ${e=>e.actualWidth}px"
1868
1880
  ${(0,d.ref)("combobox")}
@@ -1873,16 +1885,17 @@
1873
1885
  resourceName=${e=>e.params.allOptionsResourceName}
1874
1886
  value-field=${e=>e.params.valueField}
1875
1887
  label-field=${e=>e.params.labelField}
1888
+ option-element="${e}-option"
1876
1889
  :datasourceConfig=${e=>e.params.datasourceOptions}
1877
1890
  :data=${e=>e.params.values}
1878
1891
  :initialSelectedValue=${e=>e.params.value}
1879
1892
  ></options-datasource>
1880
1893
  </${e}-combobox>
1881
- `,Oi=Ci.compose({baseName:"select-editor",styles:Ai,template:Ti()});class Di extends Ci{}const Ni=Di.compose({baseName:"select-editor",styles:Ai,template:Ti("zero")});class Fi 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[ci]}}(0,ti.__decorate)([d.observable],Fi.prototype,"params",void 0),(0,ti.__decorate)([d.observable],Fi.prototype,"value",void 0),(0,ti.__decorate)([d.observable],Fi.prototype,"actualWidth",void 0);const $i=d.css`
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`
1882
1895
  :host {
1883
1896
  display: flex;
1884
1897
  }
1885
- `,Li=(e="foundation")=>d.html`
1898
+ `,Mi=(e="foundation")=>d.html`
1886
1899
  <${e}-number-field
1887
1900
  ${(0,d.ref)("input")}
1888
1901
  withFormatting=${e=>e.params.withFormatting}
@@ -1894,11 +1907,11 @@
1894
1907
  hideStep
1895
1908
  style="width: ${e=>e.actualWidth}px"
1896
1909
  ></${e}-number-field>
1897
- `,Mi=Fi.compose({baseName:"number-editor",styles:$i,template:Li()});class Ri extends Fi{}const ji=Ri.compose({baseName:"number-editor",styles:$i,template:Li("zero")});class Ii 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[ci]}}(0,ti.__decorate)([d.observable],Ii.prototype,"params",void 0),(0,ti.__decorate)([d.observable],Ii.prototype,"value",void 0),(0,ti.__decorate)([d.observable],Ii.prototype,"actualWidth",void 0);const Ei=d.css`
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`
1898
1911
  :host {
1899
1912
  display: flex;
1900
1913
  }
1901
- `,Pi=(e="foundation")=>d.html`
1914
+ `,Ui=(e="foundation")=>d.html`
1902
1915
  <${e}-text-field
1903
1916
  ${(0,d.ref)("input")}
1904
1917
  :value=${e=>void 0===e.value?"":e.value}
@@ -1907,16 +1920,16 @@
1907
1920
  style="width: ${e=>e.actualWidth}px"
1908
1921
  >
1909
1922
  </${e}-text-field>
1910
- `,Ui=Ii.compose({baseName:"string-editor",styles:Ei,template:Pi()});class Gi extends Ii{}const Bi=Gi.compose({baseName:"string-editor",styles:Ei,template:Pi("zero")});class _i 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,ti.__decorate)([d.observable],_i.prototype,"valueFormatted",void 0);const Hi=d.css`
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`
1911
1924
  :host {
1912
1925
  display: flex;
1913
1926
  justify-content: space-between;
1914
1927
  align-items: center;
1915
1928
  }
1916
- `,Yi=(e="foundation")=>d.html`
1929
+ `,Vi=(e="foundation")=>d.html`
1917
1930
  <span>${e=>e.valueFormatted}</span>
1918
1931
  <${e}-progress-ring style="margin: 0; width: 20px; height: 20px"></${e}-progress-ring>
1919
- `,Vi=_i.compose({baseName:"editable-renderer",styles:Hi,template:Yi()});class Qi extends _i{}const Wi=Qi.compose({baseName:"editable-renderer",styles:Hi,template:Yi("zero")});var qi=r(59783);const Ji=(0,h.createLogger)("grid-pro");class Zi extends s.FoundationElement{init(e){e&&(this.params=e,e.eGridCell.addEventListener("keydown",(e=>{e.key===qi.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){Ji.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,ti.__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,ti.__decorate)([d.observable],Zi.prototype,"params",void 0),(0,ti.__decorate)([d.observable],Zi.prototype,"pendingAction",void 0);const{create:Ki}=s.DesignToken,Xi=(Ki("action-height-multiplier").withDefault("0.6px"),d.css`
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`
1920
1933
  .action-container {
1921
1934
  align-items: center;
1922
1935
  display: flex;
@@ -1931,8 +1944,8 @@
1931
1944
  var(--action-height-multiplier)
1932
1945
  );
1933
1946
  }
1934
- `),en=Zi.compose({baseName:"grid-pro-action-renderer",styles:d.css`
1935
- ${Xi}
1947
+ `),an=Ki.compose({baseName:"grid-pro-action-renderer",styles:d.css`
1948
+ ${en}
1936
1949
  `,template:d.html`
1937
1950
  <div class="action-container" part="action-container">
1938
1951
  <foundation-button
@@ -1942,8 +1955,8 @@
1942
1955
  ?disabled=${e=>{var a;return e.pendingAction||e.isDisabled(null===(a=e.params)||void 0===a?void 0:a.data)}}
1943
1956
  appearance="${e=>e.params.appearance}"
1944
1957
  @click=${e=>e.clickHandler()}">${e=>e.params.actionName}</foundation-button>
1945
- </div>`});class an extends Zi{}const rn=an.compose({baseName:"grid-pro-action-renderer",styles:d.css`
1946
- ${Xi}
1958
+ </div>`});class rn extends Ki{}const tn=rn.compose({baseName:"grid-pro-action-renderer",styles:d.css`
1959
+ ${en}
1947
1960
  `,template:d.html`
1948
1961
  <div class="action-container" part="action-container">
1949
1962
  <zero-button
@@ -1960,29 +1973,29 @@
1960
1973
  `:e.params.actionName}
1961
1974
  </zero-button>
1962
1975
  </div>
1963
- `});class tn extends s.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,ti.__decorate)([d.observable],tn.prototype,"params",void 0);const on=tn.compose({baseName:"grid-pro-actions-menu-renderer",template:d.html`
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`
1964
1977
  <foundation-actions-menu
1965
1978
  name="${e=>e.params.headerName}"
1966
1979
  :definition=${e=>e.params}
1967
1980
  ></foundation-actions-menu>
1968
- `});class nn extends tn{}const ln=nn.compose({baseName:"grid-pro-actions-menu-renderer",template:d.html`
1981
+ `});class ln extends on{}const gn=ln.compose({baseName:"grid-pro-actions-menu-renderer",template:d.html`
1969
1982
  <zero-actions-menu
1970
1983
  name="${e=>e.params.headerName}"
1971
1984
  :definition=${e=>e.params}
1972
1985
  ></zero-actions-menu>
1973
- `});class gn 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:qi.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:qi.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[ci]}}(0,ti.__decorate)([d.observable],gn.prototype,"params",void 0),(0,ti.__decorate)([d.observable],gn.prototype,"selected",void 0);const dn=d.css`
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`
1974
1987
  :host {
1975
1988
  align-center: center;
1976
1989
  display: flex;
1977
1990
  height: 100%;
1978
1991
  }
1979
- `,sn=(e="foundation")=>{const a=`${e}-checkbox`;return d.html`
1992
+ `,cn=(e="foundation")=>{const a=`${e}-checkbox`;return d.html`
1980
1993
  <${a}
1981
1994
  @change=${(e,a)=>e.changeHandler(a.event)}
1982
1995
  :checked=${e=>e.selected}
1983
1996
  ?disabled=${e=>!e.params.colDef.editable}
1984
1997
  ></${a}>
1985
- `},cn=gn.compose({baseName:"boolean-renderer",styles:dn,template:sn()});class pn extends gn{}const un=pn.compose({baseName:"boolean-renderer",styles:dn,template:sn("zero")});var hn=r(18471);const mn=(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 vn 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?mn(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,ti.__decorate)([d.observable],vn.prototype,"textValue",void 0),(0,ti.__decorate)([d.observable],vn.prototype,"params",void 0);const bn=d.css`
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`
1986
1999
  :host {
1987
2000
  display: flex;
1988
2001
  width: 100%;
@@ -1992,15 +2005,15 @@
1992
2005
  .text-renderer {
1993
2006
  width: 100%;
1994
2007
  }
1995
- `,fn=(e="foundation")=>{const a=`${e}-text-field`;return d.html`
2008
+ `,wn=(e="foundation")=>{const a=`${e}-text-field`;return d.html`
1996
2009
  <${a}
1997
2010
  ${(0,d.ref)("textField")}
1998
2011
  type="text"
1999
2012
  class="text-renderer"
2000
- :value="${(0,hn.Z)((e=>e.textValue))}"
2013
+ :value="${(0,mn.Z)((e=>e.textValue))}"
2001
2014
  @change="${(e,a)=>e.textChanged(a.event)}"
2002
2015
  ></${a}>
2003
- `},wn=vn.compose({baseName:"grid-pro-text-renderer",styles:bn,template:fn()});class yn extends vn{}const xn=bn,zn=fn,kn=yn.compose({baseName:"grid-text-renderer",styles:xn,template:zn()});const Sn=class extends yn{}.compose({baseName:"grid-text-renderer",styles:xn,template:zn("zero")});class Cn 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=mn(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,ti.__decorate)([d.observable],Cn.prototype,"params",void 0),(0,ti.__decorate)([d.observable],Cn.prototype,"value",void 0);const An=d.css`
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`
2004
2017
  :host,
2005
2018
  .select-renderer,
2006
2019
  zero-option,
@@ -2009,7 +2022,7 @@
2009
2022
  max-width: var(--select-renderer-max-width);
2010
2023
  min-width: 100%;
2011
2024
  }
2012
- `,Tn=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return d.html`
2025
+ `,On=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return d.html`
2013
2026
  <${a}
2014
2027
  class="select-renderer"
2015
2028
  @change=${(e,a)=>e.selectionChanged(a.event)}
@@ -2025,15 +2038,15 @@
2025
2038
  <${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
2026
2039
  `)}
2027
2040
  </${a}>
2028
- `},On=Cn.compose({baseName:"select-renderer",styles:An,template:Tn()});const Dn=class extends Cn{}.compose({baseName:"select-renderer",styles:An,template:Tn("zero")});var Nn=r(89861),Fn=r(86534),$n=r(75527),Ln=r(9492);const Mn=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,Ln.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Ln.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Ln.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Ln.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Ln.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Ln.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Ln.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Ln.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Ln.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Ln.__classPrivateFieldGet)(this,o,"f")&&((0,Ln.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Ln.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Ln.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Ln.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Ln.__classPrivateFieldGet)(this,r,"f")._key&&(0,Ln.__classPrivateFieldSet)(this,r,(0,Ln.__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,Ln.__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,Ln.__classPrivateFieldGet)(this,t,"f")!==(0,Ln.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Ln.__classPrivateFieldSet)(this,t,null!==(a=(0,Ln.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Ln.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Ln.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Ln.__classPrivateFieldSet)(this,t,null!==(o=(0,Ln.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Ln.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[Rn])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,Ln.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},Rn=Symbol("layout-cache-document");var jn=r(88556),In=r(9770);const En=d.html`
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`
2029
2042
  <template>
2030
2043
  <slot ${(0,d.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
2031
2044
  </template>
2032
- `;let Pn=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,ti.__decorate)([d.observable],Pn.prototype,"renderer",void 0),(0,ti.__decorate)([d.observable],Pn.prototype,"rendererParams",void 0),(0,ti.__decorate)([d.observable],Pn.prototype,"slottedRenderer",void 0),Pn=(0,ti.__decorate)([(0,d.customElement)({name:"grid-pro-cell",template:En})],Pn);const Un=d.html`
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`
2033
2046
  <template>
2034
2047
  <slot ${(0,d.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
2035
2048
  </template>
2036
- `;let Gn=class extends s.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,ti.__decorate)([d.observable],Gn.prototype,"slottedAgCell",void 0),(0,ti.__decorate)([d.observable],Gn.prototype,"definition",void 0),Gn=(0,ti.__decorate)([(0,d.customElement)({name:"grid-pro-column",template:Un})],Gn);var Bn=r(82940),_n=r(32449),Hn=r(9162),Yn=r(5127),Vn=r(83123),Qn=r(35991),Wn=r(6852),qn=r(26714),Jn=r(71452),Zn=r(99449),Kn=r(30526);class Xn extends s.FoundationElement{constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Bn.WJ.MAX_ROWS_250,this.maxView=Bn.WJ.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1}}(0,ti.__decorate)([l.lj],Xn.prototype,"connect",void 0),(0,ti.__decorate)([d.observable],Xn.prototype,"deferredGridOptions",void 0),(0,ti.__decorate)([d.observable],Xn.prototype,"deferredColumnStates",void 0),(0,ti.__decorate)([d.attr],Xn.prototype,"criteria",void 0),(0,ti.__decorate)([d.attr],Xn.prototype,"fields",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean",attribute:"is-snapshot"})],Xn.prototype,"isSnapshot",void 0),(0,ti.__decorate)([(0,d.attr)({attribute:"max-rows"})],Xn.prototype,"maxRows",void 0),(0,ti.__decorate)([(0,d.attr)({attribute:"max-view"})],Xn.prototype,"maxView",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean",attribute:"moving-view"})],Xn.prototype,"movingView",void 0),(0,ti.__decorate)([(0,d.attr)({attribute:"order-by"})],Xn.prototype,"orderBy",void 0),(0,ti.__decorate)([(0,d.attr)({attribute:"resource-name"})],Xn.prototype,"resourceName",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean"})],Xn.prototype,"reverse",void 0);var el=r(21607);function al({value:e}){return(0,el.D_)(e)}function rl({value:e}){return(0,el.Lx)(e)}var tl;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(tl||(tl={}));let ol=class extends(Mn(Xn)){constructor(){super(...arguments),this.pollingInterval=Bn.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 qn.X(new Map)}criteriaChanged(e,a){const r=e!==(0,_n.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?Bn.WJ.REQUEST_SERVER_ROW_ID:Bn.WJ.DATASERVER_ROW_ID}init(){return(0,ti.__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 Ji.warn(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);this.isRequestServer=e.TYPE===Bn._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,ti.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Jn.T)(1),(0,Zn.b)(r),(0,Kn.b)((e=>Ji.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Ji.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 qn.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,ti.__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,ti.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Ji.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 Ji.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===Hn.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Yn.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Yn.$)(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 Ji.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},tl.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},tl.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},tl.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(tl)){if(!this.rowDataMapper)return e;const r={};return a.includes(tl.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(tl.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(tl.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 Vn.r.DATE:case Vn.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 Vn.r.STRING:r.cellEditor=si.stringEditor;break;case Vn.r.NUMBER:r.cellEditor=si.numberEditor,r.filter="agNumberColumnFilter";break;case Vn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=si.boolean,r.cellEditor=si.boolean);break;case Vn.r.DATE:r.valueFormatter=al,r.cellEditor=si.dateEditor,r.filter="agDateColumnFilter";break;case Vn.r.DATETIME:r.valueFormatter=rl,r.filter="agDateColumnFilter",r.cellEditor=si.dateEditor,r.cellEditorParams={withTime:!0};break;case Vn.r.ENUM:e.enumOptions?(r.cellEditor=si.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}):Ji.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,_n.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,ti.__decorate)([Qn.g],ol.prototype,"auth",void 0),(0,ti.__decorate)([Wn.Yh],ol.prototype,"datasource",void 0),(0,ti.__decorate)([(0,d.attr)({attribute:"polling-interval"})],ol.prototype,"pollingInterval",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean",attribute:"disable-polling"})],ol.prototype,"disablePolling",void 0),(0,ti.__decorate)([d.observable],ol.prototype,"request",void 0),(0,ti.__decorate)([(0,d.attr)({attribute:"row-id"})],ol.prototype,"rowIdAttr",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],ol.prototype,"restartOnReconnection",void 0),(0,ti.__decorate)([d.observable],ol.prototype,"rowDataMapper",void 0),ol=(0,ti.__decorate)([(0,d.customElement)({name:"grid-pro-genesis-datasource"})],ol);let il=class extends ol{};il=(0,ti.__decorate)([(0,d.customElement)({name:"grid-pro-client-side-datasource"})],il);var nl=r(66306),ll=r(47546);function gl(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 dl(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 sl{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,ti.__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,ll.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Hn.Cs.LOGOFF_ACK||o===Hn.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,Yn.$)(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=>Ji.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,ti.__decorate)([Qn.g],sl.prototype,"auth",void 0),(0,ti.__decorate)([l.lj],sl.prototype,"connect",void 0);let cl=class extends(Mn(Xn)){constructor(){super(...arguments),this.pagination=!1,this.rowId="ROW_REF"}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,_n.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,ti.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Ji.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,nl.C)(e);const a=(0,nl.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new sl({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});Ji.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));Ji.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 Ji.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,ti.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Ji.debug(e)),(e=>Ji.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 Vn.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 Vn.r.DATE:case Vn.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 Vn.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 Vn.r.NUMBER:r.cellEditor=si.numberEditor;break;case Vn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=si.boolean,r.cellEditor=si.boolean);break;case Vn.r.DATE:r.valueFormatter=al;break;case Vn.r.DATETIME:r.valueFormatter=rl;break;case Vn.r.ENUM:r.cellEditor=si.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:dl(e.type),filter:gl(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,ti.__decorate)([(0,d.attr)({mode:"boolean"})],cl.prototype,"pagination",void 0),(0,ti.__decorate)([(0,d.attr)({attribute:"row-id"})],cl.prototype,"rowId",void 0),cl=(0,ti.__decorate)([(0,d.customElement)({name:"grid-pro-server-side-datasource"})],cl);const pl='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMHau317e0FCManAAiSyCaunoRkkLFl1/9/c+VPMsnNEtBMGFedLLAjUjWiUlf3+d7r9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rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',ul='\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/bccgSgISTwjfXQjUrV14PoMQtmKBCWgyDBHwf3OlveyxK4GiKYHQ9exMZjK7zfz5ubvsYS5HlOOUECygAtoUiNcVVGUdsCPbVyXJVdq6VlVYXag55WB04UExdSgEyFx64PjfUGqRahgfQwg7jwHtGrcjBKQJJ/bgK00N1IOvjTXAhgXLh8BxyNDB37JRYL9LhiV1QrwwR50h0fNZo4upSKP1G3fY5KMN9MMe3sN4OhhLiIUWJ7xbpSRFM2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zW2VXY1V/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',hl={[ri.alpine]:pl,[ri.alpineDark]:pl,[ri.balham]:ul,[ri.balhamDark]:ul,[ri.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKoQibUgE2AiQDgiQLgRQABCAFh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=d.css`
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/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMHau317e0FCManAAiSyCaunoRkkLFl1/9/c+VPMsnNEtBMGFedLLAjUjWiUlf3+d7r9jXZ9QR298S0qL4ULfAzmTVNTp0mtPCuUzXkB9rmv+OwOMJMsBBtenrY+GctjprYgZGc8X+zSHSRfcvw1zpZ98C2kVXG2W5VN1e6FQaG8JwEf+HchRXcb/Z2hfQ8dNS65LeVddel9vIEBkLLAG+YnEKJNWojAGE6V6EkgmyIn4SZ/+fnUtsboqwa/IGs0PNzOvCvzXv/pcBZSpRymlLWAZIFgrumAmgArDY7BSznJvyER6Hm7NyE1oMAmTOP2W4ovkxHhBjDKOYx0rGd6gY9HsC1iTrjjQhAvisbO3rs5NnKm1fs3qoPidYOoKweNm9YtwIO46CaAQG+y6kDZXNP/PIvsNmO0J44x/o4N66Ot+LG+FSETZ0xCmh8diIJRcgUKg1LIC5GV+kMnGkwBUV1HbzQOxJrQ0SKWJvX3t1aFRHoqOtzRWTyveVTZfGGblRq755mi6egbDIkb+zKVJeTkPgMFsIIrr8G88QITUASqOJ5TBJLAyetqNuvUi9cwsEiSVfknTKJKFwXJEifKEg4TRaVoTf9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WZhdYyCKXNkXqpiKbholwui05d6ymOvr4rvfbvnEuD/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',hl='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKr0ynOAE2AiQDghgLgQ4ABCAFhEYHhF0bXiR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YvlyBgb9MdNhPOSC+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:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKoQibUgE2AiQDgiQLgRQABCAFhF4HhQQbwx4zozZKkzKjKAuTKdl/nWDK2JwGzwo8TIbdeYNAtGkxGg6xYzGz3JUMFWCLQoUjcyveKfPZ/H3KUMoL2rS9u+gRJeZcVAgRJ5CkLZEpR8wJTYnXnVSMtFyNChezin1NlBr5GXihygP/477uwwhpzmQRmQv4h7xQ1ukb+qbAuHWw7/RtjIFWUFny28Ky25Mrtuy4tSU/Wc7/vwwfQIfAIXD7Tt+s5E8pTn5vAnqvAPcKcIYlde3bwySmDu1CBfgAWXCyv/537t/bNk2bB4wpAJyvJiygJTWLWk3INSABhcEIIFK3nVCyYoEK+KQzcN/aq94CoAZSukZXyN27/bAzE4LLJqw2fOFLyqTCsgoAg9cUEIwBlHm1VR6FqrN1Fdq2W2BBkEa6OUOPR0hZbsED+7l62hratnMRkZGRktL4unUngADAoQ+SAeVlCEiwaKia2gTOYABBQwR8VUQa6iVVYDKIgywZhkDpQzYwg2pogEKYClcQC2Qq0oXaYs5YPlaLUdgQ9tVNJaKVB0aVFF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IuRdzcdrpzbESxF+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'},vl=ul,bl=d.css`
2037
2050
  .ag-icon {
2038
2051
  font-family: var(--ag-icon-font-family);
2039
2052
  font-size: var(--ag-icon-size);
@@ -9210,7 +9223,7 @@
9210
9223
  input[class^='ag-'][type='range']:disabled {
9211
9224
  opacity: 0.5;
9212
9225
  }
9213
- `,bl=d.css`
9226
+ `,fl=d.css`
9214
9227
  .ag-dnd-ghost {
9215
9228
  background: var(--ag-header-background-color, var(--ag-background-color, #1f2126));
9216
9229
  border: solid 1px;
@@ -9227,7 +9240,7 @@
9227
9240
  overflow: hidden;
9228
9241
  text-overflow: ellipsis;
9229
9242
  }
9230
- `,fl=d.css`
9243
+ `,wl=d.css`
9231
9244
  .ag-theme-alpine,
9232
9245
  .ag-theme-alpine-dark {
9233
9246
  --ag-alpine-active-color: #2196f3;
@@ -9677,7 +9690,7 @@
9677
9690
  .ag-theme-alpine-dark {
9678
9691
  color-scheme: dark;
9679
9692
  }
9680
- `,wl=d.css`
9693
+ `,yl=d.css`
9681
9694
  .ag-theme-balham,
9682
9695
  .ag-theme-balham-dark {
9683
9696
  --ag-balham-active-color: #0091ea;
@@ -9947,7 +9960,7 @@
9947
9960
  .ag-theme-balham-dark {
9948
9961
  color-scheme: dark;
9949
9962
  }
9950
- `,yl=d.css`
9963
+ `,xl=d.css`
9951
9964
  .ag-theme-material {
9952
9965
  --ag-material-primary-color: #3f51b5;
9953
9966
  --ag-material-accent-color: #ff4081;
@@ -10212,14 +10225,14 @@
10212
10225
  .ag-theme-material .ag-picker-field-wrapper:focus {
10213
10226
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
10214
10227
  }
10215
- `,xl=d.css`
10216
- ${vl}
10228
+ `,zl=d.css`
10217
10229
  ${bl}
10218
10230
  ${fl}
10219
10231
  ${wl}
10220
10232
  ${yl}
10221
- `,zl=d.css`
10222
10233
  ${xl}
10234
+ `,kl=d.css`
10235
+ ${zl}
10223
10236
  :host {
10224
10237
  width: 100%;
10225
10238
  height: 100%;
@@ -10246,14 +10259,14 @@
10246
10259
  .ag-cell-inline-editing {
10247
10260
  height: inherit !important;
10248
10261
  }
10249
- `,kl=d.html`
10262
+ `,Sl=d.html`
10250
10263
  <template>
10251
10264
  <span part="grid" class="${e=>e.classNames}">
10252
10265
  <slot name="grid" ${(0,d.ref)("gridSlot")}></slot>
10253
10266
  <slot></slot>
10254
10267
  </span>
10255
10268
  </template>
10256
- `;class Sl{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 Cl(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}qi.O3h.registerModules([Fn.jM,Nn.I]);const Al=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Tl extends(Mn(s.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,In.A)(gi(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=ml,this.columnComponentName="grid-pro-column",this.theme=ri.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=qi.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Al(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&&qi.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Al(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={[si.action]:Zi,[si.actionsMenu]:tn,[si.boolean]:gn,[si.editable]:_i,[si.selectEditor]:Ci,[si.numberEditor]:Fi,[si.multiselectEditor]:wi,[si.dateEditor]:ui,[si.stringEditor]:Ii};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,ti.__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),qi.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 qi.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return Ji.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[ci]===e.field)return{component:si.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=Sl,e.tooltipValueGetter=a=>{const r=a.data[pi];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[pi])||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 Cl(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Cl(n,this.gridProDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=qi.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=qi.plv.ALL_PROPERTIES.map((e=>Al(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},qi.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=hl[e]||this.gridFontFace;this.destroyFontFace();const r=(0,jn.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,ti.__decorate)([d.observable],Tl.prototype,"columnApi",void 0),(0,ti.__decorate)([d.observable],Tl.prototype,"gridApi",void 0),(0,ti.__decorate)([$n.z],Tl.prototype,"session",void 0),(0,ti.__decorate)([(0,d.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Tl.prototype,"autoCellRendererByType",void 0),(0,ti.__decorate)([(0,d.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Tl.prototype,"onlyTemplateColDefs",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean",attribute:"grid-autosizing"})],Tl.prototype,"gridAutosizingEnabled",void 0),(0,ti.__decorate)([(0,d.attr)({attribute:"add-index"})],Tl.prototype,"addIndex",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-add"})],Tl.prototype,"asyncAdd",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-remove"})],Tl.prototype,"asyncRemove",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-update"})],Tl.prototype,"asyncUpdate",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Tl.prototype,"enableCellFlashing",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Tl.prototype,"enabledRowFlashing",void 0),(0,ti.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Tl.prototype,"enableRowFlashing",void 0),(0,ti.__decorate)([(0,d.attr)({attribute:"persist-column-state-key"})],Tl.prototype,"persistColumnStateKey",void 0),(0,ti.__decorate)([d.observable],Tl.prototype,"gridFontFace",void 0),(0,ti.__decorate)([d.attr],Tl.prototype,"columnComponentName",void 0),(0,ti.__decorate)([d.observable],Tl.prototype,"eventsAndCallbacks",void 0),(0,ti.__decorate)([d.attr],Tl.prototype,"headerHeight",void 0),(0,ti.__decorate)([d.attr],Tl.prototype,"rowHeight",void 0),(0,ti.__decorate)([d.attr],Tl.prototype,"theme",void 0),(0,ti.__decorate)([d.observable],Tl.prototype,"classNames",void 0),(0,ti.__decorate)([d.observable],Tl.prototype,"agGrid",void 0),(0,ti.__decorate)([d.observable],Tl.prototype,"gridSlot",void 0),(0,ti.__decorate)([d.observable],Tl.prototype,"gridComponents",void 0);const Ol=void 0,Dl={shadowOptions:void 0},Nl=Tl.compose(Object.assign({baseName:"grid-pro",styles:zl,template:kl,shadowOptions:Ol},Dl)),Fl={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"))},$l={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:Ll}=s.DesignToken,Ml={backgroundColor:Ll("rapid-ag-background-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.backgroundSwatch:Fl.backgroundSwatch)),borderColor:Ll("rapid-ag-border-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.borderSwatch:Fl.borderSwatch)),foregroundColor:Ll("rapid-ag-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.foregroundSwatch:Fl.foregroundSwatch)),headerForegroundColor:Ll("rapid-ag-header-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.headerForegroundSwatch:Fl.headerForegroundSwatch)),rowHoverColor:Ll("rapid-ag-row-hover-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.rowHoverSwatch:Fl.rowHoverSwatch))},Rl=d.css`
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`
10257
10270
  .ag-theme-genesis-rapid,
10258
10271
  .ag-theme-genesis-rapid-dark {
10259
10272
  --ag-alpine-active-color: #2196f3;
@@ -10713,54 +10726,54 @@
10713
10726
  .ag-theme-genesis-rapid-dark {
10714
10727
  color-scheme: dark;
10715
10728
  }
10716
- `,jl={[ai.backgroundColor]:Ml.backgroundColor,[ai.foregroundColor]:Ml.foregroundColor,[ai.oddRowBackgroundColor]:Ml.backgroundColor,[ai.headerBackgroundColor]:Ml.backgroundColor,[ai.headerForegroundColor]:Ml.headerForegroundColor,[ai.selectedRowBackgroundColor]:Ml.rowHoverColor,[ai.rowHoverColor]:Ml.rowHoverColor,[ai.borderColor]:Ml.borderColor,[ai.rowBorderColor]:Ml.rowHoverColor,[ai.modalOverlayBackgroundColor]:Ml.backgroundColor,[ai.inputFocusBoxShadow]:Ml.headerForegroundColor,[ai.inputFocusBorderColor]:Ml.headerForegroundColor,[ai.headerColumnResizeHandleColor]:Ml.headerForegroundColor},Il="ag-theme-genesis-rapid",El=d.css`
10717
- ${Rl}
10718
- ${di(Il,jl)}
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)}
10719
10732
 
10720
- .${Il} {
10733
+ .${El} {
10721
10734
  ${Te()}
10722
10735
  }
10723
10736
 
10724
- .${Il} .ag-header {
10737
+ .${El} .ag-header {
10725
10738
  border-bottom-color: var(--rapid-ag-header-foreground-color);
10726
10739
  font-weight: bold;
10727
10740
  }
10728
10741
 
10729
- .${Il} .ag-root-wrapper {
10742
+ .${El} .ag-root-wrapper {
10730
10743
  border-radius: calc(var(--control-corner-radius) * 1px);
10731
10744
  }
10732
- `,Pl="ag-theme-genesis-rapid-dark",Ul=d.css`
10733
- ${Rl}
10734
- ${di(Pl,jl)}
10745
+ `,Ul="ag-theme-genesis-rapid-dark",Gl=d.css`
10746
+ ${jl}
10747
+ ${si(Ul,Il)}
10735
10748
 
10736
- .${Pl} {
10749
+ .${Ul} {
10737
10750
  ${Te()}
10738
10751
  }
10739
10752
 
10740
- .${Pl} .ag-header {
10753
+ .${Ul} .ag-header {
10741
10754
  border-bottom-color: var(--rapid-ag-header-foreground-color);
10742
10755
  font-weight: bold;
10743
10756
  }
10744
10757
 
10745
- .${Pl} .ag-cell {
10758
+ .${Ul} .ag-cell {
10746
10759
  line-height: var(--ag-line-height, 32px);
10747
10760
  }
10748
10761
 
10749
- .${Pl} .ag-root-wrapper {
10762
+ .${Ul} .ag-root-wrapper {
10750
10763
  border-radius: calc(var(--control-corner-radius) * 1px);
10751
10764
  }
10752
- `,Gl=d.css`
10765
+ `,Bl=d.css`
10753
10766
  /* All the AG themes */
10754
- ${zl}
10767
+ ${kl}
10755
10768
 
10756
10769
  /* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
10757
- ${El}
10758
- ${Ul}
10770
+ ${Pl}
10771
+ ${Gl}
10759
10772
 
10760
10773
  .error {
10761
10774
  border-color: ${me.shortPink} !important;
10762
10775
  }
10763
- `,Bl=kl,_l="ag-theme-genesis-rapid-dark";const Hl=Dl,Yl={zeroAgEditableRenderer:Wi,zeroAgActionRenderer:rn,zeroAgActionsMenuRenderer:ln,zeroAgBooleanRenderer:un,zeroAgTextRenderer:Sn,zeroAgSelectRenderer:Dn,zeroAgDateEditor:fi,zeroAgMultiselectEditor:Si,zeroAgSelectEditor:Ni,zeroAgNumberEditor:ji,zeroAgStringEditor:Bi,zeroGridPro:class extends Tl{constructor(){super(...arguments),this.theme=_l}themeChanged(e,a){(e||a===_l)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[si.action]:an,[si.actionsMenu]:nn,[si.boolean]:pn,[si.editable]:Qi,[si.selectEditor]:Di,[si.numberEditor]:Ri,[si.multiselectEditor]:ki,[si.dateEditor]:bi,[si.stringEditor]:Gi};(this.theme===Il||this.theme===Pl)&&(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:Bl,styles:Gl,shadowOptions:undefined},Hl)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},Vl={foundationGridProActionRenderer:en,foundationGridProActionsMenuRenderer:on,foundationAgBooleanRenderer:cn,foundationAgTextRenderer:kn,foundationAgTextFieldRenderer:wn,foundationAgEditableRenderer:Vi,foundationAgSelectRenderer:On,foundationGridPro:Nl,foundationSelectEditor:Oi,foundationNumberEditor:Mi,foundationDateEditor:vi,foundationMultiselectEditor:zi,foundationStringEditor:Ui,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Ql,Wl=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 ql={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'},Jl=ql["Segoe UI"],Zl=d.css`
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`
10764
10777
  ${(0,s.display)("block")} :host {
10765
10778
  width: 100%;
10766
10779
  display: inline-flex;
@@ -10892,7 +10905,7 @@
10892
10905
  alpha-button {
10893
10906
  margin: 0;
10894
10907
  }
10895
- `,Kl=d.html`
10908
+ `,Xl=d.html`
10896
10909
  <template>
10897
10910
  <div class="configuration">
10898
10911
  ${(0,d.when)((e=>!e.customDesignMode),d.html`
@@ -11100,7 +11113,7 @@
11100
11113
  </div>
11101
11114
  </div>
11102
11115
  ${(0,d.when)((e=>!e.customDesignMode),d.html`
11103
- <alpha-checkbox :checked="${(0,hn.Z)((e=>e.preserveOptions),"boolean")}">
11116
+ <alpha-checkbox :checked="${(0,mn.Z)((e=>e.preserveOptions),"boolean")}">
11104
11117
  Preserve selected options when changing design systems
11105
11118
  </alpha-checkbox>
11106
11119
  `)}
@@ -11115,7 +11128,7 @@
11115
11128
  <slot></slot>
11116
11129
  </div>
11117
11130
  </template>
11118
- `,Xl=({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(ql).find((a=>ql[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),eg=Xl(Fe),ag={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},rg=Xl(i.designTokens),tg={zero:{prefix:"zero",tokenDefaults:eg,buttons:ag},alpha:{prefix:"alpha",tokenDefaults:rg,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:ag}};let og=class extends d.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=eg.luminance===c.StandardLuminance.DarkMode,this.luminance=eg.luminance,this.neutralColor=eg.neutralColor,this.accentColor=eg.accentColor,this.bodyFont=eg.bodyFont,this.density=eg.density,this.borderRadius=eg.borderRadius,this.strokeWidth=eg.strokeWidth,this.designUnit=eg.designUnit,this.baseFontSize=eg.baseFontSize,this.baseLineHeight=eg.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=Xl(a);tg.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Wl.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(tg[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Wl.__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:tg[this.ds].prefix,buttonAppearanceAccent:tg[this.ds].buttons.accent,buttonAppearanceNeutral:tg[this.ds].buttons.neutral,buttonAppearanceOutline:tg[this.ds].buttons.outline};this.$emit(Ql.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(tg[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:ql[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,Wl.__decorate)([(0,d.attr)({mode:"boolean",attribute:"custom-design-mode"})],og.prototype,"customDesignMode",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"designSystems",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"ds",void 0),(0,Wl.__decorate)([d.attr],og.prototype,"darkMode",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"neutralColor",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"accentColor",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"bodyFont",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"density",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"borderRadius",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"strokeWidth",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"designUnit",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"baseFontSize",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"baseLineHeight",void 0),(0,Wl.__decorate)([d.observable],og.prototype,"preserveOptions",void 0),og=(0,Wl.__decorate)([(0,d.customElement)({name:"design-system-editor",template:Kl,styles:Zl})],og);const ig=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},ng=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},lg=(e,a)=>{const r=ig(e.neutralColor);c.neutralPalette.setValueFor(a,r);const t=ig(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,ng(c.typeRampBaseFontSize,Se.Yd.minusOne,a)),c.typeRampMinus1LineHeight.setValueFor(a,ng(c.typeRampBaseLineHeight,Se.Yd.minusOne,a)),c.typeRampMinus2FontSize.setValueFor(a,ng(c.typeRampBaseFontSize,Se.Yd.minusTwo,a)),c.typeRampMinus2LineHeight.setValueFor(a,ng(c.typeRampBaseLineHeight,Se.Yd.minusTwo,a)),c.typeRampPlus1FontSize.setValueFor(a,ng(c.typeRampBaseFontSize,Se.Yd.plusOne,a)),c.typeRampPlus1LineHeight.setValueFor(a,ng(c.typeRampBaseLineHeight,Se.Yd.plusOne,a)),c.typeRampPlus2FontSize.setValueFor(a,ng(c.typeRampBaseFontSize,Se.Yd.plusTwo,a)),c.typeRampPlus2LineHeight.setValueFor(a,ng(c.typeRampBaseLineHeight,Se.Yd.plusTwo,a)),c.typeRampPlus3FontSize.setValueFor(a,ng(c.typeRampBaseFontSize,Se.Yd.plusThree,a)),c.typeRampPlus3LineHeight.setValueFor(a,ng(c.typeRampBaseLineHeight,Se.Yd.plusThree,a)),c.typeRampPlus4FontSize.setValueFor(a,ng(c.typeRampBaseFontSize,Se.Yd.plusFour,a)),c.typeRampPlus4LineHeight.setValueFor(a,ng(c.typeRampBaseLineHeight,Se.Yd.plusFour,a)),c.typeRampPlus5FontSize.setValueFor(a,ng(c.typeRampBaseFontSize,Se.Yd.plusFive,a)),c.typeRampPlus5LineHeight.setValueFor(a,ng(c.typeRampBaseLineHeight,Se.Yd.plusFive,a)),c.typeRampPlus6FontSize.setValueFor(a,ng(c.typeRampBaseFontSize,Se.Yd.plusSix,a)),c.typeRampPlus6LineHeight.setValueFor(a,ng(c.typeRampBaseLineHeight,Se.Yd.plusSix,a))},gg=d.css`
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`
11119
11132
  :host {
11120
11133
  background: var(--fill-color);
11121
11134
  color: var(--neutral-foreground-rest);
@@ -11158,7 +11171,7 @@
11158
11171
  zero-design-system-provider {
11159
11172
  display: inline;
11160
11173
  }
11161
- `,dg=d.html`
11174
+ `,sg=d.html`
11162
11175
  ${e=>{return a=e.prefix,d.html`
11163
11176
  <template>
11164
11177
  <${a}-design-system-provider ${(0,d.ref)("provider")}>
@@ -11359,7 +11372,7 @@
11359
11372
  </${a}-design-system-provider>
11360
11373
  </template>
11361
11374
  `;var a}}
11362
- `;let sg=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(Jl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{lg(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,Wl.__decorate)([d.observable],sg.prototype,"modal",void 0),(0,Wl.__decorate)([d.attr],sg.prototype,"prefix",void 0),(0,Wl.__decorate)([d.observable],sg.prototype,"buttonAppearanceAccent",void 0),(0,Wl.__decorate)([d.observable],sg.prototype,"buttonAppearanceNeutral",void 0),(0,Wl.__decorate)([d.observable],sg.prototype,"buttonAppearanceOutline",void 0),(0,Wl.__decorate)([d.observable],sg.prototype,"provider",void 0),sg=(0,Wl.__decorate)([(0,d.customElement)({name:"preview-components",template:dg,styles:gg})],sg);const cg=d.css`
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`
11363
11376
  .export {
11364
11377
  display: flex;
11365
11378
  justify-content: center;
@@ -11370,7 +11383,7 @@
11370
11383
  display: flex;
11371
11384
  justify-content: space-between;
11372
11385
  }
11373
- `,pg=d.html`
11386
+ `,ug=d.html`
11374
11387
  <template>
11375
11388
  <div class="export">
11376
11389
  <alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
@@ -11391,7 +11404,7 @@
11391
11404
  </alpha-modal>
11392
11405
  </div>
11393
11406
  </template>
11394
- `;let ug=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,Wl.__decorate)([d.attr],ug.prototype,"value",void 0),(0,Wl.__decorate)([d.attr],ug.prototype,"tokensPath",void 0),ug=(0,Wl.__decorate)([(0,d.customElement)({name:"design-system-export",template:pg,styles:cg})],ug);const hg=d.css`
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`
11395
11408
  .colors {
11396
11409
  display: flex;
11397
11410
  flex-wrap: wrap;
@@ -11404,23 +11417,23 @@
11404
11417
  flex-grow: 1;
11405
11418
  height: 20px;
11406
11419
  }
11407
- `,mg=d.html`
11420
+ `,vg=d.html`
11408
11421
  <ul class="colors">
11409
11422
  ${(0,d.repeat)((e=>e.swatches),d.html`
11410
11423
  <li class="color" style="background-color: ${e=>e.toColorString()}"></li>
11411
11424
  `)}
11412
11425
  </ul>
11413
- `;let vg=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=ig(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Ql.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Wl.__decorate)([d.observable],vg.prototype,"swatches",void 0),(0,Wl.__decorate)([d.attr],vg.prototype,"type",void 0),vg=(0,Wl.__decorate)([(0,d.customElement)({name:"color-palette",styles:hg,template:mg})],vg);const bg=d.css`
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`
11414
11427
  .preview {
11415
11428
  width: 40px;
11416
11429
  height: 40px;
11417
11430
  }
11418
- `,fg=d.html`
11431
+ `,wg=d.html`
11419
11432
  <div
11420
11433
  class="preview"
11421
11434
  style="background-color: ${e=>c[e.tokenName].createCSS()}"
11422
11435
  ></div>
11423
- `;let wg=class extends d.FASTElement{};(0,Wl.__decorate)([d.attr],wg.prototype,"tokenName",void 0),wg=(0,Wl.__decorate)([(0,d.customElement)({name:"color-token",styles:bg,template:fg})],wg);const yg=d.css`
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`
11424
11437
  .container {
11425
11438
  display: flex;
11426
11439
  width: 100%;
@@ -11468,7 +11481,7 @@
11468
11481
  .container > div:not(:last-child) {
11469
11482
  border-right: 1px solid #fafafa;
11470
11483
  }
11471
- `,xg=[{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"}]}]}],zg=d.html`
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`
11472
11485
  <div class="row">
11473
11486
  <div
11474
11487
  class="preview"
@@ -11480,19 +11493,19 @@
11480
11493
  ${(e,a)=>c[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
11481
11494
  </div>
11482
11495
  </div>
11483
- `,kg=d.html`
11496
+ `,Sg=d.html`
11484
11497
  <div class="container" ${(0,d.ref)("provider")}>
11485
- ${(0,d.repeat)((()=>xg),d.html`
11498
+ ${(0,d.repeat)((()=>zg),d.html`
11486
11499
  <div class="column">
11487
11500
  <h3 class="header-title">${e=>e.title}</h3>
11488
11501
  ${(0,d.repeat)((e=>e.subcategories),d.html`
11489
11502
  <h4>${e=>e.title}</h4>
11490
- ${(0,d.repeat)((e=>e.tokens),zg)}
11503
+ ${(0,d.repeat)((e=>e.tokens),kg)}
11491
11504
  `)}
11492
11505
  </div>
11493
11506
  `)}
11494
11507
  </div>
11495
- `;let Sg=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Ql.STYLES_CHANGED,(e=>{const a=e.detail;lg(a,this.provider)}))}};(0,Wl.__decorate)([d.observable],Sg.prototype,"provider",void 0),Sg=(0,Wl.__decorate)([(0,d.customElement)({name:"color-tokens",template:kg,styles:yg})],Sg);const Cg=d.css`
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`
11496
11509
  table {
11497
11510
  background: var(--neutral-fill-rest);
11498
11511
  color: var(--neutral-foreground-rest);
@@ -11501,7 +11514,7 @@
11501
11514
  th {
11502
11515
  text-align: left;
11503
11516
  }
11504
- `,Ag=d.html`
11517
+ `,Tg=d.html`
11505
11518
  <table ${(0,d.ref)("provider")} style="font-family: ${()=>c.bodyFont.createCSS()}">
11506
11519
  <colgroup>
11507
11520
  <col style="width: 15%;" />
@@ -11729,7 +11742,7 @@
11729
11742
  </tr>
11730
11743
  </tbody>
11731
11744
  </table>
11732
- `;let Tg=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Ql.STYLES_CHANGED,(e=>{const a=e.detail;lg(a,this.provider)}))}};(0,Wl.__decorate)([d.observable],Tg.prototype,"provider",void 0),Tg=(0,Wl.__decorate)([(0,d.customElement)({name:"typography-tokens",template:Ag,styles:Cg})],Tg);const Og=d.css`
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`
11733
11746
  :host {
11734
11747
  background: var(--fill-color);
11735
11748
  color: var(--neutral-foreground-rest);
@@ -11745,7 +11758,7 @@
11745
11758
  margin-top: 24px;
11746
11759
  padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
11747
11760
  }
11748
- `,Dg=d.html`
11761
+ `,Ng=d.html`
11749
11762
  <template>
11750
11763
  <alpha-tabs>
11751
11764
  <alpha-tab slot="tab">Components</alpha-tab>
@@ -11774,7 +11787,7 @@
11774
11787
  </alpha-tab-panel>
11775
11788
  </alpha-tabs>
11776
11789
  </template>
11777
- `;let Ng=class extends d.FASTElement{};Ng=(0,Wl.__decorate)([(0,d.customElement)({name:"design-system-preview",template:Dg,styles:Og})],Ng);const Fg={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"}]}]}}]},$g={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"]}}},Lg={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"}]}}}]},Mg={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"]}}}},Rg=d.css`
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`
11778
11791
  :host {
11779
11792
  background: var(--fill-color);
11780
11793
  color: var(--neutral-foreground-rest);
@@ -11805,7 +11818,7 @@
11805
11818
  zero-design-system-provider {
11806
11819
  display: inline;
11807
11820
  }
11808
- `,jg=d.html`
11821
+ `,Ig=d.html`
11809
11822
  ${e=>{return a=e.prefix,d.html`
11810
11823
  <template>
11811
11824
  <${a}-design-system-provider ${(0,d.ref)("provider")}>
@@ -11829,7 +11842,7 @@
11829
11842
  </${a}-design-system-provider>
11830
11843
  </template>
11831
11844
  `;var a}}
11832
- `;let Ig=class extends d.FASTElement{constructor(){super(...arguments),this.jsonSchema=$g,this.uischema=Fg,this.jsonSchemaArray=Mg,this.uiSchemaArray=Lg,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(Jl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{lg(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix}};(0,Wl.__decorate)([d.observable],Ig.prototype,"jsonSchema",void 0),(0,Wl.__decorate)([d.observable],Ig.prototype,"uischema",void 0),(0,Wl.__decorate)([d.observable],Ig.prototype,"jsonSchemaArray",void 0),(0,Wl.__decorate)([d.observable],Ig.prototype,"uiSchemaArray",void 0),(0,Wl.__decorate)([d.attr],Ig.prototype,"prefix",void 0),(0,Wl.__decorate)([d.observable],Ig.prototype,"provider",void 0),(0,Wl.__decorate)([d.observable],Ig.prototype,"editedEntity",void 0),(0,Wl.__decorate)([d.observable],Ig.prototype,"editedEntityArray",void 0),Ig=(0,Wl.__decorate)([(0,d.customElement)({name:"preview-form",template:jg,styles:Rg})],Ig);const Eg=d.css`
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`
11833
11846
  :host {
11834
11847
  background: var(--fill-color);
11835
11848
  color: var(--neutral-foreground-rest);
@@ -11844,7 +11857,7 @@
11844
11857
  .grid-height {
11845
11858
  height: 450px;
11846
11859
  }
11847
- `,Pg=d.html`
11860
+ `,Ug=d.html`
11848
11861
  ${e=>{return a=e.prefix,d.html`
11849
11862
  <template>
11850
11863
  <${a}-design-system-provider ${(0,d.ref)("provider")}>
@@ -11854,5 +11867,5 @@
11854
11867
  </${a}-design-system-provider>
11855
11868
  </template>
11856
11869
  `;var a}}
11857
- `;let Ug=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(Jl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{lg(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,d.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Wl.__decorate)([d.observable],Ug.prototype,"grid",void 0),(0,Wl.__decorate)([d.attr],Ug.prototype,"prefix",void 0),(0,Wl.__decorate)([d.observable],Ug.prototype,"provider",void 0),(0,Wl.__decorate)([d.observable],Ug.prototype,"rowData",void 0),(0,Wl.__decorate)([d.observable],Ug.prototype,"columnDefs",void 0),(0,Wl.__decorate)([d.observable],Ug.prototype,"gridOptions",void 0),Ug=(0,Wl.__decorate)([(0,d.customElement)({name:"preview-grid",template:Pg,styles:Eg})],Ug),((e,a="zero")=>{e&&(0,I.provideTokens)(t,o,e);const r=s.DesignSystem.getOrCreate(e).withPrefix(a);return(0,I.createDesignSystemProxy)(r)})().register(ei,Yl),(0,i.provideDesignSystem)().register(i.baseComponents,Vl)}}]);
11858
- //# sourceMappingURL=180.0c75d20e12393eace42e7766427216f9.js.map
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