@genesislcap/design-system-configurator 14.107.1 → 14.109.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 (19) hide show
  1. package/dist/{269.269.eefe02c83d995725db33.js → 269.269.3994b2fc0a8ff06c1448.js} +2 -2
  2. package/dist/{269.7a20416c239baf1583bc46e78dfa5f54.js.map → 269.e149999f0194897c728d9db32393150b.js.map} +1 -1
  3. package/dist/{303.303.3663c7aaa19c8adab941.js → 303.303.d83664545cb251b098e6.js} +1 -1
  4. package/dist/{371.371.d1940e45030ff6d8b26a.js → 371.371.8ac33217ffcdb910e7e7.js} +1 -1
  5. package/dist/{160.160.1aaff7765d229d10ed8c.js → 582.582.9b43e3bb47023b4f827e.js} +146 -137
  6. package/dist/582.e7d6c5a91d044bfd7c78deb4eb5d3c47.js.map +1 -0
  7. package/dist/{755.755.ab2f4e78898c3ab019e6.js → 755.755.308b4a2fd73de3a4d955.js} +1 -1
  8. package/dist/{8.8.816dd222de6cc312aa8a.js → 8.8.9548d8994b480654aa13.js} +1 -1
  9. package/dist/{designSystemConfigurator.563488cfa60d65109e3ef3c31455eea1.js.map → designSystemConfigurator.2740771c97f1b4c860633596a30ae0ce.js.map} +1 -1
  10. package/dist/index.html +1 -1
  11. package/dist/{main.8cac7994eeba66a45f39.js → main.48e65cca19922df7497a.js} +2 -2
  12. package/dist/{main.6bb9710bdcf5824c12b90d8d8ed348bf.js.map → main.7e0897fd0c43a6509ee1fb6d448870fb.js.map} +1 -1
  13. package/dist/npm.ag-grid-community.260.ed296352518f7a0c6b26.js +3 -0
  14. package/dist/{npm.ag-grid-community.8bca5ff241fcf545f2c48d738eeaef5f.js.map → npm.ag-grid-community.639a7875b9b28e356bec68b9f027ac62.js.map} +1 -1
  15. package/dist/remoteEntry.js +2 -2
  16. package/package.json +7 -7
  17. package/dist/160.7822cd0b4117bf721b589f2a4e13278c.js.map +0 -1
  18. package/dist/npm.ag-grid-community.260.381eb161b0595bb94252.js +0 -3
  19. /package/dist/{npm.ag-grid-community.260.381eb161b0595bb94252.js.LICENSE.txt → npm.ag-grid-community.260.ed296352518f7a0c6b26.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[160],{41160:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>ql,ColorToken:()=>Kl,ColorTokens:()=>tg,DesignSystemEditor:()=>Il,DesignSystemExport:()=>Vl,DesignSystemPreview:()=>dg,EventName:()=>Al,PreviewComponents:()=>_l,PreviewForm:()=>vg,PreviewGrid:()=>wg,TypographyTokens:()=>ng,defaultBodyFont:()=>Dl,fontFamilies:()=>Ol});var t={};r.r(t),r.d(t,{accentFillActive:()=>p.accentFillActive,accentFillActiveDelta:()=>p.accentFillActiveDelta,accentFillFocus:()=>p.accentFillFocus,accentFillFocusDelta:()=>p.accentFillFocusDelta,accentFillHover:()=>p.accentFillHover,accentFillHoverDelta:()=>p.accentFillHoverDelta,accentFillRest:()=>p.accentFillRest,accentFillRestDelta:()=>p.accentFillRestDelta,accentForegroundActive:()=>p.accentForegroundActive,accentForegroundActiveDelta:()=>p.accentForegroundActiveDelta,accentForegroundFocus:()=>p.accentForegroundFocus,accentForegroundFocusDelta:()=>p.accentForegroundFocusDelta,accentForegroundHover:()=>p.accentForegroundHover,accentForegroundHoverDelta:()=>p.accentForegroundHoverDelta,accentForegroundRest:()=>p.accentForegroundRest,accentForegroundRestDelta:()=>p.accentForegroundRestDelta,accentPalette:()=>p.accentPalette,baseHeightMultiplier:()=>p.baseHeightMultiplier,baseLayerLuminance:()=>p.baseLayerLuminance,bodyFont:()=>p.bodyFont,controlCornerRadius:()=>p.controlCornerRadius,density:()=>p.density,designUnit:()=>p.designUnit,direction:()=>p.direction,disabledOpacity:()=>p.disabledOpacity,fillColor:()=>p.fillColor,focusStrokeInner:()=>p.focusStrokeInner,focusStrokeOuter:()=>p.focusStrokeOuter,focusStrokeWidth:()=>p.focusStrokeWidth,foregroundOnAccentActive:()=>p.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>p.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>p.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>p.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>p.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>p.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>p.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>p.foregroundOnAccentRestLarge,neutralFillActive:()=>p.neutralFillActive,neutralFillActiveDelta:()=>p.neutralFillActiveDelta,neutralFillFocus:()=>p.neutralFillFocus,neutralFillFocusDelta:()=>p.neutralFillFocusDelta,neutralFillHover:()=>p.neutralFillHover,neutralFillHoverDelta:()=>p.neutralFillHoverDelta,neutralFillInputActive:()=>p.neutralFillInputActive,neutralFillInputActiveDelta:()=>p.neutralFillInputActiveDelta,neutralFillInputFocus:()=>p.neutralFillInputFocus,neutralFillInputFocusDelta:()=>p.neutralFillInputFocusDelta,neutralFillInputHover:()=>p.neutralFillInputHover,neutralFillInputHoverDelta:()=>p.neutralFillInputHoverDelta,neutralFillInputRest:()=>p.neutralFillInputRest,neutralFillInputRestDelta:()=>p.neutralFillInputRestDelta,neutralFillLayerRest:()=>p.neutralFillLayerRest,neutralFillLayerRestDelta:()=>p.neutralFillLayerRestDelta,neutralFillRest:()=>p.neutralFillRest,neutralFillRestDelta:()=>p.neutralFillRestDelta,neutralFillStealthActive:()=>p.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>p.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>p.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>p.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>p.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>p.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>p.neutralFillStealthRest,neutralFillStealthRestDelta:()=>p.neutralFillStealthRestDelta,neutralFillStrongActive:()=>p.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>p.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>p.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>p.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>p.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>p.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>p.neutralFillStrongRest,neutralFillStrongRestDelta:()=>p.neutralFillStrongRestDelta,neutralForegroundHint:()=>p.neutralForegroundHint,neutralForegroundRest:()=>p.neutralForegroundRest,neutralLayer1:()=>p.neutralLayer1,neutralLayer2:()=>p.neutralLayer2,neutralLayer3:()=>p.neutralLayer3,neutralLayer4:()=>p.neutralLayer4,neutralLayerCardContainer:()=>p.neutralLayerCardContainer,neutralLayerFloating:()=>p.neutralLayerFloating,neutralPalette:()=>p.neutralPalette,neutralStrokeActive:()=>p.neutralStrokeActive,neutralStrokeActiveDelta:()=>p.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>p.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>p.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>p.neutralStrokeFocus,neutralStrokeFocusDelta:()=>p.neutralStrokeFocusDelta,neutralStrokeHover:()=>p.neutralStrokeHover,neutralStrokeHoverDelta:()=>p.neutralStrokeHoverDelta,neutralStrokeRest:()=>p.neutralStrokeRest,neutralStrokeRestDelta:()=>p.neutralStrokeRestDelta,strokeWidth:()=>p.strokeWidth,typeRampBaseFontSize:()=>p.typeRampBaseFontSize,typeRampBaseLineHeight:()=>p.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>p.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>p.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>p.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>p.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>p.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>p.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>p.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>p.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>p.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>p.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>p.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>p.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>p.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>p.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>p.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>p.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>ce,baseLayerLuminanceValue:()=>ue,bodyFontValue:()=>ke,controlCornerRadiusValue:()=>ve,densityValue:()=>be,designTokens:()=>Ae,designUnitValue:()=>fe,directionValue:()=>he,neutralPaletteValue:()=>pe,strokeWidthValue:()=>me,typeRampBaseFontSizeValue:()=>Se,typeRampBaseLineHeightValue:()=>Ce});var i=r(39690),n=r(92592),l=r(89074),g=r(65162),d=r(60724),s=r(83147),c=r(75951),p=r(13896),u=r(67973);const h=s.css`
1
+ "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[582],{83582:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>sg,ColorToken:()=>ug,ColorTokens:()=>fg,DesignSystemEditor:()=>Kl,DesignSystemExport:()=>lg,DesignSystemPreview:()=>Sg,EventName:()=>Gl,PreviewComponents:()=>og,PreviewForm:()=>Fg,PreviewGrid:()=>$g,TypographyTokens:()=>xg,defaultBodyFont:()=>Hl,fontFamilies:()=>_l});var t={};r.r(t),r.d(t,{accentFillActive:()=>p.accentFillActive,accentFillActiveDelta:()=>p.accentFillActiveDelta,accentFillFocus:()=>p.accentFillFocus,accentFillFocusDelta:()=>p.accentFillFocusDelta,accentFillHover:()=>p.accentFillHover,accentFillHoverDelta:()=>p.accentFillHoverDelta,accentFillRest:()=>p.accentFillRest,accentFillRestDelta:()=>p.accentFillRestDelta,accentForegroundActive:()=>p.accentForegroundActive,accentForegroundActiveDelta:()=>p.accentForegroundActiveDelta,accentForegroundFocus:()=>p.accentForegroundFocus,accentForegroundFocusDelta:()=>p.accentForegroundFocusDelta,accentForegroundHover:()=>p.accentForegroundHover,accentForegroundHoverDelta:()=>p.accentForegroundHoverDelta,accentForegroundRest:()=>p.accentForegroundRest,accentForegroundRestDelta:()=>p.accentForegroundRestDelta,accentPalette:()=>p.accentPalette,baseHeightMultiplier:()=>p.baseHeightMultiplier,baseLayerLuminance:()=>p.baseLayerLuminance,bodyFont:()=>p.bodyFont,controlCornerRadius:()=>p.controlCornerRadius,density:()=>p.density,designUnit:()=>p.designUnit,direction:()=>p.direction,disabledOpacity:()=>p.disabledOpacity,fillColor:()=>p.fillColor,focusStrokeInner:()=>p.focusStrokeInner,focusStrokeOuter:()=>p.focusStrokeOuter,focusStrokeWidth:()=>p.focusStrokeWidth,foregroundOnAccentActive:()=>p.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>p.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>p.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>p.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>p.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>p.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>p.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>p.foregroundOnAccentRestLarge,neutralFillActive:()=>p.neutralFillActive,neutralFillActiveDelta:()=>p.neutralFillActiveDelta,neutralFillFocus:()=>p.neutralFillFocus,neutralFillFocusDelta:()=>p.neutralFillFocusDelta,neutralFillHover:()=>p.neutralFillHover,neutralFillHoverDelta:()=>p.neutralFillHoverDelta,neutralFillInputActive:()=>p.neutralFillInputActive,neutralFillInputActiveDelta:()=>p.neutralFillInputActiveDelta,neutralFillInputFocus:()=>p.neutralFillInputFocus,neutralFillInputFocusDelta:()=>p.neutralFillInputFocusDelta,neutralFillInputHover:()=>p.neutralFillInputHover,neutralFillInputHoverDelta:()=>p.neutralFillInputHoverDelta,neutralFillInputRest:()=>p.neutralFillInputRest,neutralFillInputRestDelta:()=>p.neutralFillInputRestDelta,neutralFillLayerRest:()=>p.neutralFillLayerRest,neutralFillLayerRestDelta:()=>p.neutralFillLayerRestDelta,neutralFillRest:()=>p.neutralFillRest,neutralFillRestDelta:()=>p.neutralFillRestDelta,neutralFillStealthActive:()=>p.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>p.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>p.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>p.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>p.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>p.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>p.neutralFillStealthRest,neutralFillStealthRestDelta:()=>p.neutralFillStealthRestDelta,neutralFillStrongActive:()=>p.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>p.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>p.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>p.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>p.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>p.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>p.neutralFillStrongRest,neutralFillStrongRestDelta:()=>p.neutralFillStrongRestDelta,neutralForegroundHint:()=>p.neutralForegroundHint,neutralForegroundRest:()=>p.neutralForegroundRest,neutralLayer1:()=>p.neutralLayer1,neutralLayer2:()=>p.neutralLayer2,neutralLayer3:()=>p.neutralLayer3,neutralLayer4:()=>p.neutralLayer4,neutralLayerCardContainer:()=>p.neutralLayerCardContainer,neutralLayerFloating:()=>p.neutralLayerFloating,neutralPalette:()=>p.neutralPalette,neutralStrokeActive:()=>p.neutralStrokeActive,neutralStrokeActiveDelta:()=>p.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>p.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>p.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>p.neutralStrokeFocus,neutralStrokeFocusDelta:()=>p.neutralStrokeFocusDelta,neutralStrokeHover:()=>p.neutralStrokeHover,neutralStrokeHoverDelta:()=>p.neutralStrokeHoverDelta,neutralStrokeRest:()=>p.neutralStrokeRest,neutralStrokeRestDelta:()=>p.neutralStrokeRestDelta,strokeWidth:()=>p.strokeWidth,typeRampBaseFontSize:()=>p.typeRampBaseFontSize,typeRampBaseLineHeight:()=>p.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>p.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>p.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>p.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>p.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>p.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>p.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>p.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>p.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>p.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>p.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>p.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>p.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>p.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>p.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>p.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>p.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>ce,baseLayerLuminanceValue:()=>ue,bodyFontValue:()=>ke,controlCornerRadiusValue:()=>ve,densityValue:()=>be,designTokens:()=>Ae,designUnitValue:()=>fe,directionValue:()=>he,neutralPaletteValue:()=>pe,strokeWidthValue:()=>me,typeRampBaseFontSizeValue:()=>Se,typeRampBaseLineHeightValue:()=>Ce});var i=r(89862),n=r(92592),l=r(89074),g=r(96505),d=r(60724),s=r(83147),c=r(75951),p=r(13896),u=r(67973);const h=s.css`
2
2
  :host {
3
3
  border: calc(${p.strokeWidth} * 1px) solid transparent;
4
4
  margin: 0;
@@ -230,7 +230,7 @@
230
230
  </control-wrapper>
231
231
  </template>
232
232
  `)(e.prefix)}
233
- `,tester:(0,d.yMz)(3,L),mapper:d.xq9};var $=r(15929);const R=e=>a=>{if(!a||!(0,d.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},j=(0,d.xDy)(R("allOptionsResourceName"),(0,d.or)((0,d.wcO)((e=>(0,d.ndu)(e,"array"))),(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,d.ndu)(e,"array")))))));$.MultiselectDatasource;const I={renderer:s.html`
233
+ `,tester:(0,d.yMz)(3,L),mapper:d.xq9};var $=r(7744);const R=e=>a=>{if(!a||!(0,d.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},j=(0,d.xDy)(R("allOptionsResourceName"),(0,d.or)((0,d.wcO)((e=>(0,d.ndu)(e,"array"))),(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,d.ndu)(e,"array")))))));$.MultiselectDatasource;const I={renderer:s.html`
234
234
  ${e=>((e="zero")=>s.html`
235
235
  <template>
236
236
  <control-wrapper
@@ -285,7 +285,7 @@
285
285
  </control-wrapper>
286
286
  </template>
287
287
  `)(e.prefix)}
288
- `,tester:(0,d.yMz)(4,(0,d.or)(R("allOptionsResourceName"),R("data"))),mapper:d.xq9},P=(0,d.wcO)((e=>"org.joda.time.DateTime"===e.description)),U=(0,d.or)(P,(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>"org.joda.time.DateTime"===e.description))))),B={renderer:s.html`
288
+ `,tester:(0,d.yMz)(4,(0,d.or)(R("allOptionsResourceName"),R("data"))),mapper:d.xq9},P=(0,d.wcO)((e=>"org.joda.time.DateTime"===e.description)),U=(0,d.or)(P,(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>"org.joda.time.DateTime"===e.description))))),G={renderer:s.html`
289
289
  ${e=>((e="zero")=>s.html`
290
290
  <template>
291
291
  <control-wrapper
@@ -306,7 +306,7 @@
306
306
  </control-wrapper>
307
307
  </template>
308
308
  `)(e.prefix)}
309
- `,tester:(0,d.yMz)(4,U),mapper:d.xq9},G=(0,d.or)(d.UvK,(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>e.hasOwnProperty("enum")))))),_={renderer:s.html`
309
+ `,tester:(0,d.yMz)(4,U),mapper:d.xq9},B=(0,d.or)(d.UvK,(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>e.hasOwnProperty("enum")))))),_={renderer:s.html`
310
310
  ${e=>((e="zero")=>s.html`
311
311
  <template>
312
312
  <control-wrapper
@@ -329,7 +329,7 @@
329
329
  </control-wrapper>
330
330
  </template>
331
331
  `)(e.prefix)}
332
- `,tester:(0,d.yMz)(3,G),mapper:(e,a)=>{const r=(0,d.xq9)(e,a),t=a.options||(r.schema.enum||r.schema.oneOf.find((e=>e.hasOwnProperty("enum"))).enum).map((a=>(0,d.vld)(a,(0,d.Ty2)()(e),(0,d.B49)(r.schema,r.uischema,r.path))))||r.schema.const&&[(0,d.vld)(r.schema.const,(0,d.Ty2)()(e),(0,d.B49)(r.schema,r.uischema,r.path))];return Object.assign(Object.assign({},r),{options:t})}},H={renderer:s.html`
332
+ `,tester:(0,d.yMz)(3,B),mapper:(e,a)=>{const r=(0,d.xq9)(e,a),t=a.options||(r.schema.enum||r.schema.oneOf.find((e=>e.hasOwnProperty("enum"))).enum).map((a=>(0,d.vld)(a,(0,d.Ty2)()(e),(0,d.B49)(r.schema,r.uischema,r.path))))||r.schema.const&&[(0,d.vld)(r.schema.const,(0,d.Ty2)()(e),(0,d.B49)(r.schema,r.uischema,r.path))];return Object.assign(Object.assign({},r),{options:t})}},H={renderer:s.html`
333
333
  <template>
334
334
  <pre
335
335
  :value=${e=>e.control.data||""}
@@ -470,7 +470,7 @@
470
470
  </control-wrapper>
471
471
  </template>
472
472
  `)(e.prefix)}
473
- `,re=(0,g.createLogger)("foundation-form"),te={renderer:ae,tester:(0,d.yMz)(2,d.Wdb),mapper:d.xq9},oe=[{renderer:ae,tester:(0,d.yMz)(1,d.DRl),mapper:d.xq9},te,M,V,Q,W,q,Z,J,ee,I,_,E,B,H];let ie=class extends c.FoundationElement{constructor(){super(...arguments),this.renderers=oe,this.errors=[],this.data={}}resourceNameChanged(){var e,a;return(0,n.__awaiter)(this,void 0,void 0,(function*(){if(this.jsonSchema=void 0,this.resourceName){const r=yield this.connect.getJSONSchema(this.resourceName);this.jsonSchema=null===(a=null===(e=null==r?void 0:r.INBOUND)||void 0===e?void 0:e.properties)||void 0===a?void 0:a.DETAILS}}))}removeDataProperties(){if(!this.jsonSchema||!this.data)return;const e=Object.keys(this.jsonSchema.properties);let a=0;return Object.keys(this.data).forEach((r=>{e.includes(r)||(delete this.data[r],a+=1,re.debug("Removing key ",r,"from provided data because it is not part of the payload"))})),a>0&&(this.data=Object.assign({},this.data)),a>0}_submit(){return(0,n.__awaiter)(this,void 0,void 0,(function*(){if(this.submitting)return;this.removeDataProperties()&&(yield s.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(re.debug({payload:e,errors:this.errors}),this.$emit("submit",{payload:e,errors:this.errors}),0!==Object.entries(e).length&&this.resourceName){this.submitting=!0;const a=yield this.connect.commitEvent(this.resourceName,{DETAILS:e});this.submitting=!1,a.ERROR?this.$emit("submit-failure",{payload:e,errors:a.ERROR}):this.$emit("submit-success",{payload:e})}}))}onChange(e){re.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors)}connectedCallback(){super.connectedCallback(),this.addEventListener("submit-button-clicked",this._submit)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("submit-button-clicked",this._submit),this.reset()}reset(){this.submitted=!1,this.data={}}};var ne,le,ge,de,se;(0,n.__decorate)([s.attr],ie.prototype,"resourceName",void 0),(0,n.__decorate)([s.observable],ie.prototype,"uischema",void 0),(0,n.__decorate)([s.observable],ie.prototype,"renderers",void 0),(0,n.__decorate)([s.observable],ie.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],ie.prototype,"connect",void 0),(0,n.__decorate)([s.observable],ie.prototype,"data",void 0),(0,n.__decorate)([s.observable],ie.prototype,"submitting",void 0),(0,n.__decorate)([s.observable],ie.prototype,"submitted",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],ie.prototype,"readonly",void 0),ie=(0,n.__decorate)([(0,s.customElement)({name:"foundation-form",template:F,styles:h})],ie),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ne||(ne={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(le||(le={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(ge||(ge={})),function(e){e.grey="#7c909b"}(de||(de={})),function(e){e.chartPink="#fb8176",e.longGreen="#7acc79",e.shortPink="#f14376",e.warningYellow="#fcb35f",e.green="#44c14c",e.lightGreen="#69cd70",e.red="#ef4d28",e.lightRed="#ee6588",e.dodgerBlue="#33a9ff",e.lightDodgerBlue="#5cbaff",e.violet="#9b1e74",e.lightViolet="#b528af",e.white="#f9f9f9",e.silver="#c1c1c1",e.salomie="#ffdf94",e.lightSalomie="#ccb276",e.melon="#ffbbb2",e.lightMelon="#cc968e",e.portage="#8a99f5",e.lightPortage="#adb8f8",e.ice="#97f4eb",e.lightIce="#6befe2"}(se||(se={}));const ce=(0,$.paletteFromHex)(le.blue),pe=(0,$.paletteFromHex)(de.grey),ue=p.StandardLuminance.DarkMode;const he=r(5598).N.ltr,me=p.strokeWidth.getValueFor(p.strokeWidth.appliedTo[0]),ve=4,be=p.density.getValueFor(p.density.appliedTo[0]),fe=4;var we=r(47823);const ye=()=>{(0,we.sW)("\n @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')\n","roboto-font-faces")},xe='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',ze=(e=we.Hd.Normal,a=we.U9.Regular)=>(0,we.py)(xe,e,a),ke=xe,Se=p.typeRampBaseFontSize.getValueFor(p.typeRampBaseFontSize.appliedTo[0]),Ce=p.typeRampBaseLineHeight.getValueFor(p.typeRampBaseLineHeight.appliedTo[0]),Ae={design_tokens:{color:{accent:{$value:ce.source.toColorString(),$type:"color"},neutral:{$value:pe.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:ke,$type:"fontFamily"}},typography:{baseFontSize:{$value:Se,$type:"dimension"},baseLineHeight:{$value:Ce,$type:"dimension"}},mode:{luminance:{$value:ue,$type:"number"}},style:{density:{$value:be,$type:"number"},borderRadius:{$value:ve,$type:"number"},strokeWidth:{$value:me,$type:"number"}},space:{designUnit:{$value:fe,$type:"number"}}}};class Te extends $.Accordion{}const Oe=Te.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,$.foundationAccordionTemplate)(e,a),styles:(e,a)=>s.css`
473
+ `,re=(0,g.createLogger)("foundation-form"),te={renderer:ae,tester:(0,d.yMz)(2,d.Wdb),mapper:d.xq9},oe=[{renderer:ae,tester:(0,d.yMz)(1,d.DRl),mapper:d.xq9},te,M,V,Q,W,q,Z,J,ee,I,_,E,G,H];let ie=class extends c.FoundationElement{constructor(){super(...arguments),this.renderers=oe,this.errors=[],this.data={}}resourceNameChanged(){var e,a;return(0,n.__awaiter)(this,void 0,void 0,(function*(){if(this.jsonSchema=void 0,this.resourceName){const r=yield this.connect.getJSONSchema(this.resourceName);this.jsonSchema=null===(a=null===(e=null==r?void 0:r.INBOUND)||void 0===e?void 0:e.properties)||void 0===a?void 0:a.DETAILS}}))}removeDataProperties(){if(!this.jsonSchema||!this.data)return;const e=Object.keys(this.jsonSchema.properties);let a=0;return Object.keys(this.data).forEach((r=>{e.includes(r)||(delete this.data[r],a+=1,re.debug("Removing key ",r,"from provided data because it is not part of the payload"))})),a>0&&(this.data=Object.assign({},this.data)),a>0}_submit(){return(0,n.__awaiter)(this,void 0,void 0,(function*(){if(this.submitting)return;this.removeDataProperties()&&(yield s.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(re.debug({payload:e,errors:this.errors}),this.$emit("submit",{payload:e,errors:this.errors}),0!==Object.entries(e).length&&this.resourceName){this.submitting=!0;const a=yield this.connect.commitEvent(this.resourceName,{DETAILS:e});this.submitting=!1,a.ERROR?this.$emit("submit-failure",{payload:e,errors:a.ERROR}):this.$emit("submit-success",{payload:e})}}))}onChange(e){re.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors)}connectedCallback(){super.connectedCallback(),this.addEventListener("submit-button-clicked",this._submit)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("submit-button-clicked",this._submit),this.reset()}reset(){this.submitted=!1,this.data={}}};var ne,le,ge,de,se;(0,n.__decorate)([s.attr],ie.prototype,"resourceName",void 0),(0,n.__decorate)([s.observable],ie.prototype,"uischema",void 0),(0,n.__decorate)([s.observable],ie.prototype,"renderers",void 0),(0,n.__decorate)([s.observable],ie.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],ie.prototype,"connect",void 0),(0,n.__decorate)([s.observable],ie.prototype,"data",void 0),(0,n.__decorate)([s.observable],ie.prototype,"submitting",void 0),(0,n.__decorate)([s.observable],ie.prototype,"submitted",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],ie.prototype,"readonly",void 0),ie=(0,n.__decorate)([(0,s.customElement)({name:"foundation-form",template:F,styles:h})],ie),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ne||(ne={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(le||(le={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(ge||(ge={})),function(e){e.grey="#7c909b"}(de||(de={})),function(e){e.chartPink="#fb8176",e.longGreen="#7acc79",e.shortPink="#f14376",e.warningYellow="#fcb35f",e.green="#44c14c",e.lightGreen="#69cd70",e.red="#ef4d28",e.lightRed="#ee6588",e.dodgerBlue="#33a9ff",e.lightDodgerBlue="#5cbaff",e.violet="#9b1e74",e.lightViolet="#b528af",e.white="#f9f9f9",e.silver="#c1c1c1",e.salomie="#ffdf94",e.lightSalomie="#ccb276",e.melon="#ffbbb2",e.lightMelon="#cc968e",e.portage="#8a99f5",e.lightPortage="#adb8f8",e.ice="#97f4eb",e.lightIce="#6befe2"}(se||(se={}));const ce=(0,$.paletteFromHex)(le.blue),pe=(0,$.paletteFromHex)(de.grey),ue=p.StandardLuminance.DarkMode;const he=r(5598).N.ltr,me=p.strokeWidth.getValueFor(p.strokeWidth.appliedTo[0]),ve=4,be=p.density.getValueFor(p.density.appliedTo[0]),fe=4;var we=r(47823);const ye=()=>{(0,we.sW)("\n @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')\n","roboto-font-faces")},xe='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',ze=(e=we.Hd.Normal,a=we.U9.Regular)=>(0,we.py)(xe,e,a),ke=xe,Se=p.typeRampBaseFontSize.getValueFor(p.typeRampBaseFontSize.appliedTo[0]),Ce=p.typeRampBaseLineHeight.getValueFor(p.typeRampBaseLineHeight.appliedTo[0]),Ae={design_tokens:{color:{accent:{$value:ce.source.toColorString(),$type:"color"},neutral:{$value:pe.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:ke,$type:"fontFamily"}},typography:{baseFontSize:{$value:Se,$type:"dimension"},baseLineHeight:{$value:Ce,$type:"dimension"}},mode:{luminance:{$value:ue,$type:"number"}},style:{density:{$value:be,$type:"number"},borderRadius:{$value:ve,$type:"number"},strokeWidth:{$value:me,$type:"number"}},space:{designUnit:{$value:fe,$type:"number"}}}};class Te extends $.Accordion{}const Oe=Te.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,$.foundationAccordionTemplate)(e,a),styles:(e,a)=>s.css`
474
474
  ${(0,$.foundationAccordionStyles)(e,a)}
475
475
  `,shadowOptions:$.foundationAccordionShadowOptions},$.defaultAccordionConfig));class De extends $.AccordionItem{}const Ne=De.compose(Object.assign({baseName:"accordion-item",template:(e,a)=>(0,$.foundationAccordionItemTemplate)(e,a),styles:(e,a)=>s.css`
476
476
  ${(0,$.foundationAccordionItemStyles)(e,a)};
@@ -499,9 +499,9 @@
499
499
  }
500
500
 
501
501
  ${(0,$.actionsMenuBaseStyles)(e,a)}
502
- `,template:$.foundationActionsMenuTemplate});var Me=r(82694);const $e=(e,a=1)=>new Me.ColorRGBA64(e.r,e.g,e.b,a).toStringWebRGBA(),Re=(0,Me.parseColorHexRGB)(ne.white),je=(e=1)=>$e(Re,e),Ie=((0,Me.parseColorHexRGB)(ne.black),(0,Me.parseColorHexRGB)("#585858")),Ee=(p.SwatchRGB.create(Ie.r,Ie.g,Ie.b),(0,Me.parseColorHexRGB)("#202126")),Pe=p.SwatchRGB.create(Ee.r,Ee.g,Ee.b),Ue=(p.PaletteRGB.from(Pe),(0,Me.parseColorHexRGB)(le.blue)),Be=(e=1)=>$e(Ue,e),Ge=p.SwatchRGB.create(Ue.r,Ue.g,Ue.b),_e=(p.PaletteRGB.from(Ge),(0,Me.parseColorHexRGB)(le.purple)),He=(e=1)=>$e(_e,e),Ye=(0,Me.parseColorHexRGB)(ge.orange),Ve=(e=1)=>$e(Ye,e),Qe=(0,Me.parseColorHexRGB)(ge.teal),We=(e=1)=>$e(Qe,e),qe=((0,Me.parseColorHexRGB)(se.longGreen),(0,Me.parseColorHexRGB)(se.chartPink),(0,Me.parseColorHexRGB)(se.warningYellow)),Je=(0,Me.parseColorHexRGB)(se.chartPink),Ze=(e=1)=>$e(Je,e);function Ke(e,a){return new c.PropertyStyleSheetBehavior("appearance",e,a)}const Xe=.3,ea=.1,aa=.5,ra=s.css`
502
+ `,template:$.foundationActionsMenuTemplate});var Me=r(82694);const $e=(e,a=1)=>new Me.ColorRGBA64(e.r,e.g,e.b,a).toStringWebRGBA(),Re=(0,Me.parseColorHexRGB)(ne.white),je=(e=1)=>$e(Re,e),Ie=((0,Me.parseColorHexRGB)(ne.black),(0,Me.parseColorHexRGB)("#585858")),Ee=(p.SwatchRGB.create(Ie.r,Ie.g,Ie.b),(0,Me.parseColorHexRGB)("#202126")),Pe=p.SwatchRGB.create(Ee.r,Ee.g,Ee.b),Ue=(p.PaletteRGB.from(Pe),(0,Me.parseColorHexRGB)(le.blue)),Ge=(e=1)=>$e(Ue,e),Be=p.SwatchRGB.create(Ue.r,Ue.g,Ue.b),_e=(p.PaletteRGB.from(Be),(0,Me.parseColorHexRGB)(le.purple)),He=(e=1)=>$e(_e,e),Ye=(0,Me.parseColorHexRGB)(ge.orange),Ve=(e=1)=>$e(Ye,e),Qe=(0,Me.parseColorHexRGB)(ge.teal),We=(e=1)=>$e(Qe,e),qe=((0,Me.parseColorHexRGB)(se.longGreen),(0,Me.parseColorHexRGB)(se.chartPink),(0,Me.parseColorHexRGB)(se.warningYellow)),Je=(0,Me.parseColorHexRGB)(se.chartPink),Ze=(e=1)=>$e(Je,e);function Ke(e,a){return new c.PropertyStyleSheetBehavior("appearance",e,a)}const Xe=.3,ea=.1,aa=.5,ra=s.css`
503
503
  :host([appearance='primary-blue']) {
504
- background: ${Be(Xe)};
504
+ background: ${Ge(Xe)};
505
505
  border: 1px solid ${le.blue};
506
506
  }
507
507
 
@@ -510,8 +510,8 @@
510
510
  }
511
511
 
512
512
  :host([appearance='primary-blue']:active) {
513
- background: ${Be(ea)};
514
- border: 1px solid ${Be(Xe)};
513
+ background: ${Ge(ea)};
514
+ border: 1px solid ${Ge(Xe)};
515
515
  color: ${je(aa)};
516
516
  }
517
517
  `,ta=s.css`
@@ -559,7 +559,7 @@
559
559
  :host([appearance='primary-gradient']:active) {
560
560
  background-image: linear-gradient(
561
561
  var(--primary-gradient-angle),
562
- ${Be(Xe)},
562
+ ${Ge(Xe)},
563
563
  ${He(Xe)}
564
564
  );
565
565
  background-origin: border-box;
@@ -655,20 +655,20 @@
655
655
  background:
656
656
  linear-gradient(
657
657
  var(--primary-gradient-angle),
658
- ${Be(Xe)} 0%,
658
+ ${Ge(Xe)} 0%,
659
659
  ${He(Xe)} 100%
660
660
  )
661
661
  top/100% 1px,
662
662
  linear-gradient(
663
663
  var(--primary-gradient-angle),
664
- ${Be(Xe)} 0%,
664
+ ${Ge(Xe)} 0%,
665
665
  ${He(Xe)} 100%
666
666
  )
667
667
  bottom/100% 1px;
668
668
  background-origin: border-box;
669
669
  background-repeat: no-repeat;
670
670
  border: 1px solid transparent;
671
- border-right-color: ${Be(Xe)};
671
+ border-right-color: ${Ge(Xe)};
672
672
  border-left-color: ${He(Xe)};
673
673
  color: ${je(aa)};
674
674
  }
@@ -719,7 +719,7 @@
719
719
  `,shadowOptions:$.foundationAvatarShadowOptions},$.defaultAvatarConfig));class fa extends $.Badge{}const wa=fa.compose(Object.assign({baseName:"badge",template:(e,a)=>(0,$.foundationBadgeTemplate)(e,a),styles:(e,a)=>s.css`
720
720
  ${(0,$.foundationBadgeStyles)(e,a)}
721
721
  :host {
722
- --badge-fill-primary: ${Be()};
722
+ --badge-fill-primary: ${Ge()};
723
723
  --badge-fill-secondary: ${We()};
724
724
  --badge-fill-pink: ${Ze()};
725
725
  --badge-fill-transparent: transparent;
@@ -776,7 +776,7 @@
776
776
  box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;
777
777
  border-radius: calc(var(--control-corner-radius) * 1px);
778
778
  }
779
- `,shadowOptions:$.foundationCheckboxShadowOptions},$.defaultCheckboxConfig)),ja=(0,Me.parseColorHexRGB)("#F1F1F1"),Ia=$e(ja,1),Ea=(0,Me.parseColorHexRGB)("#879BA6"),Pa=$e(Ea,.06),Ua=(0,Me.parseColorHexRGB)("#879BA6"),Ba=$e(Ua,1),Ga=(0,Me.parseColorHexRGB)("#121212"),_a=$e(Ga,1),Ha=(0,Me.parseColorHexRGB)("#2e3339"),Ya=$e(Ha,1);var Va;!function(e){e.PrimaryBlue="primary-blue",e.PrimaryPurple="primary-purple",e.PrimaryGradient="primary-gradient",e.SecondaryOrange="secondary-orange",e.SecondaryTeal="secondary-teal",e.NeutralGrey="neutral-grey",e.OutlinePrimaryGradient="outline-primary-gradient",e.OutlineSecondaryOrange="outline-secondary-orange",e.OutlineSecondaryTeal="outline-secondary-teal"}(Va||(Va={}));Object.values(Va);class Qa extends $.Combobox{}const Wa=Qa.compose(Object.assign({baseName:"combobox",template:(e,a)=>(0,$.foundationComboboxTemplate)(e,a),styles:(e,a)=>s.css`
779
+ `,shadowOptions:$.foundationCheckboxShadowOptions},$.defaultCheckboxConfig)),ja=(0,Me.parseColorHexRGB)("#F1F1F1"),Ia=$e(ja,1),Ea=(0,Me.parseColorHexRGB)("#879BA6"),Pa=$e(Ea,.06),Ua=(0,Me.parseColorHexRGB)("#879BA6"),Ga=$e(Ua,1),Ba=(0,Me.parseColorHexRGB)("#121212"),_a=$e(Ba,1),Ha=(0,Me.parseColorHexRGB)("#2e3339"),Ya=$e(Ha,1);var Va;!function(e){e.PrimaryBlue="primary-blue",e.PrimaryPurple="primary-purple",e.PrimaryGradient="primary-gradient",e.SecondaryOrange="secondary-orange",e.SecondaryTeal="secondary-teal",e.NeutralGrey="neutral-grey",e.OutlinePrimaryGradient="outline-primary-gradient",e.OutlineSecondaryOrange="outline-secondary-orange",e.OutlineSecondaryTeal="outline-secondary-teal"}(Va||(Va={}));Object.values(Va);class Qa extends $.Combobox{}const Wa=Qa.compose(Object.assign({baseName:"combobox",template:(e,a)=>(0,$.foundationComboboxTemplate)(e,a),styles:(e,a)=>s.css`
780
780
  ${(0,$.foundationComboboxStyles)(e,a)}
781
781
  :host {
782
782
  --primary-gradient-angle: -113.5deg;
@@ -836,7 +836,7 @@
836
836
  ::slotted(.header) {
837
837
  border-bottom-color: var(--neutral-color);
838
838
 
839
- --neutral-foreground-rest: ${Ba};
839
+ --neutral-foreground-rest: ${Ga};
840
840
  }
841
841
 
842
842
  ::slotted([role='row']) {
@@ -1021,9 +1021,9 @@
1021
1021
  ${(0,$.getPrefixedFileUpload)("zero")}
1022
1022
  `,$r=$.defaultFileUploadConfig,Rr=$.foundationFileUploadShadowOptions;class jr extends $.FileUpload{}const Ir=jr.compose(Object.assign({baseName:"file-upload",shadowOptions:Rr,styles:Lr,template:Mr},$r)),Er=s.html`
1023
1023
  ${(0,$.getPrefixedFilterTemplate)("zero")}
1024
- `;class Pr extends $.Filter{}const Ur=Pr.compose({baseName:"filter",template:Er,styles:$.foundationFilterStyles}),Br=s.html`
1024
+ `;class Pr extends $.Filter{}const Ur=Pr.compose({baseName:"filter",template:Er,styles:$.foundationFilterStyles}),Gr=s.html`
1025
1025
  ${(0,$.filterBarTemplate)("zero")}
1026
- `;class Gr extends $.FilterBar{}const _r=Gr.compose({baseName:"filter-bar",template:Br,styles:(e,a)=>s.css`
1026
+ `;class Br extends $.FilterBar{}const _r=Br.compose({baseName:"filter-bar",template:Gr,styles:(e,a)=>s.css`
1027
1027
  ${(0,$.foundationFilterBarStyles)(e,a)}
1028
1028
  .toggle,
1029
1029
  .toggle-collapsed {
@@ -1047,7 +1047,7 @@
1047
1047
  :host::before {
1048
1048
  background: linear-gradient(
1049
1049
  var(--primary-gradient-angle),
1050
- ${Be(.7)},
1050
+ ${Ge(.7)},
1051
1051
  ${He(.7)}
1052
1052
  );
1053
1053
  }
@@ -1184,7 +1184,7 @@
1184
1184
  }
1185
1185
 
1186
1186
  .label {
1187
- color: ${Ba};
1187
+ color: ${Ga};
1188
1188
  }
1189
1189
  `,Tt=s.html`
1190
1190
  ${(0,$.getPrefixedMultiselect)("zero")}
@@ -1233,7 +1233,7 @@
1233
1233
  }
1234
1234
 
1235
1235
  .label {
1236
- color: ${Ba};
1236
+ color: ${Ga};
1237
1237
  margin: calc(var(--design-unit) * 2px) 0;
1238
1238
  }
1239
1239
  `;class Rt extends $.NumberField{}const jt=$.defaultNumberFieldConfig,It=$.foundationNumberFieldTemplate,Et=$.foundationNumberFieldShadowOptions,Pt=Rt.compose(Object.assign({baseName:"number-field",template:It,styles:(e,a)=>s.css`
@@ -1241,7 +1241,7 @@
1241
1241
  --focus-stroke-outer: transparent;
1242
1242
  }
1243
1243
  ${$t(e,a)}
1244
- `,shadowOptions:Et},jt));class Ut extends $.Progress{}const Bt=Ut.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,$.foundationProgressTemplate)(e,a),styles:(e,a)=>s.css`
1244
+ `,shadowOptions:Et},jt));class Ut extends $.Progress{}const Gt=Ut.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,$.foundationProgressTemplate)(e,a),styles:(e,a)=>s.css`
1245
1245
  ${(0,$.foundationProgressStyles)(e,a)}
1246
1246
  :host([appearance="secondary-teal"]) {
1247
1247
  --accent-foreground-rest: ${ge.teal};
@@ -1250,7 +1250,7 @@
1250
1250
  :host([appearance='secondary-orange']) {
1251
1251
  --accent-foreground-rest: ${ge.orange};
1252
1252
  }
1253
- `,shadowOptions:$.foundationProgressShadowOptions},$.defaultProgressConfig));class Gt extends $.ProgressRing{}const _t={indeterminateIndicator:`\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <defs>\n <linearGradient id="linear">\n <stop offset="0%" stop-color="${le.purple}"/>\n <stop offset="100%" stop-color="${le.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 `},Ht=Gt.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>s.html`
1253
+ `,shadowOptions:$.foundationProgressShadowOptions},$.defaultProgressConfig));class Bt extends $.ProgressRing{}const _t={indeterminateIndicator:`\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <defs>\n <linearGradient id="linear">\n <stop offset="0%" stop-color="${le.purple}"/>\n <stop offset="100%" stop-color="${le.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 `},Ht=Bt.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>s.html`
1254
1254
  <template
1255
1255
  role="progressbar"
1256
1256
  aria-valuenow="${e=>e.value}"
@@ -1469,11 +1469,11 @@
1469
1469
  }
1470
1470
 
1471
1471
  .thumb-cursor:hover::after {
1472
- background-color: ${Be(.1)};
1472
+ background-color: ${Ge(.1)};
1473
1473
  }
1474
1474
 
1475
1475
  .thumb-cursor:active::after {
1476
- background-color: ${Be(.2)};
1476
+ background-color: ${Ge(.2)};
1477
1477
  }
1478
1478
 
1479
1479
  .track {
@@ -1711,7 +1711,7 @@
1711
1711
  }
1712
1712
 
1713
1713
  .label {
1714
- color: ${Ba};
1714
+ color: ${Ga};
1715
1715
  margin: calc(var(--design-unit) * 2px) 0;
1716
1716
  }
1717
1717
  `,shadowOptions:$.foundationTextAreaShadowOptions},$.defaultTextAreaConfig));class Fo extends $.TextField{}const Lo=Fo.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,$.foundationTextFieldTemplate)(e,a),styles:$t,shadowOptions:$.foundationTextFieldShadowOptions},$.defaultTextFieldConfig)),Mo=s.css`
@@ -1722,7 +1722,7 @@
1722
1722
  }
1723
1723
 
1724
1724
  .toast::after {
1725
- background-color: ${Be(1)};
1725
+ background-color: ${Ge(1)};
1726
1726
  }
1727
1727
 
1728
1728
  :host([notify='warning']) .toast::after {
@@ -1742,9 +1742,9 @@
1742
1742
  }
1743
1743
  `,$o=$.defaultToastConfig,Ro=$.foundationToastShadowOptions;class jo extends $.Toast{}const Io=jo.compose(Object.assign({baseName:"toast",shadowOptions:Ro,styles:Mo,template:$.foundationToastTemplate},$o));class Eo extends $.Toolbar{}const Po=Eo.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,$.foundationToolbarTemplate)(e,a),styles:(e,a)=>s.css`
1744
1744
  ${(0,$.foundationToolbarStyles)(e,a)}
1745
- `,shadowOptions:$.foundationToolbarShadowOptions},$.defaultToolbarConfig));class Uo extends $.Tooltip{}const Bo=Uo.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,$.foundationTooltipTemplate)(e,a),styles:(e,a)=>s.css`
1745
+ `,shadowOptions:$.foundationToolbarShadowOptions},$.defaultToolbarConfig));class Uo extends $.Tooltip{}const Go=Uo.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,$.foundationTooltipTemplate)(e,a),styles:(e,a)=>s.css`
1746
1746
  ${(0,$.foundationTooltipStyles)(e,a)}
1747
- `,shadowOptions:$.foundationTooltipShadowOptions},$.defaultTooltipConfig));class Go extends $.TreeItem{}const _o=Go.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,$.foundationTreeItemTemplate)(e,a),styles:(e,a)=>s.css`
1747
+ `,shadowOptions:$.foundationTooltipShadowOptions},$.defaultTooltipConfig));class Bo extends $.TreeItem{}const _o=Bo.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,$.foundationTreeItemTemplate)(e,a),styles:(e,a)=>s.css`
1748
1748
  ${(0,$.foundationTreeItemStyles)(e,a)}
1749
1749
  :host {
1750
1750
  --primary-gradient-angle: -113.5deg;
@@ -1776,7 +1776,7 @@
1776
1776
  ${(0,$.foundationTreeViewStyles)(e,a)}
1777
1777
  `,shadowOptions:$.foundationTreeViewShadowOptions},$.defaultTreeViewConfig)),Vo=s.html`
1778
1778
  ${(0,$.getPrefixedUrlInput)("zero")}
1779
- `;class Qo extends $.UrlInput{}const Wo={zeroAccordion:Oe,zeroAccordionItem:Ne,zeroActionsMenu:Le,zeroAnchor:ua,zeroAnchoredRegion:ma,zeroAvatar:ba,zeroBadge:wa,zeroBanner:ka,zeroBreadcrumbItem:Ta,zeroBreadcrumb:Ca,zeroButton:Da,zeroCalendar:Fa,zeroCard:Ma,zeroCheckbox:Ra,zeroCombobox:Wa,zeroConnectionIndicator:Ja,zeroDataGrid:er,zeroDesignSystemProvider:dr,zeroDialog:br,zeroDatePicker:tr,zeroDisclosure:wr,zeroDivider:xr,zeroDropdownMenu:kr,zeroErrorBoundary:Dr,zeroNotificationListener:Mt,zeroErrorBanner:Tr,zeroErrorDialog:Fr,zeroFileUpload:Ir,zeroFilter:Ur,zeroFilterBar:_r,zeroFlexLayout:Yr,zeroFlipper:Qr,zeroFlyout:Xr,zeroGridLayout:at,zeroGridLayoutItem:tt,zeroHorizontalScroll:it,zeroIcon:dt,zeroListbox:ct,zeroListboxOption:ut,zeroMenu:vt,zeroMenuItem:wt,zeroModal:Ct,zeroMultiselect:Ft,zeroNumberField:Pt,zeroProgress:Bt,zeroProgressRing:Ht,zeroRadio:Vt,zeroRadioGroup:Wt,zeroSegmentedControl:Jt,zeroSegmentedItem:Kt,zeroSelect:eo,zeroSkeleton:ro,zeroSlider:oo,zeroSliderLabel:no,zeroSnackbar:po,zeroStepper:vo,zeroStepperTab:fo,zeroStepperTabPanel:yo,zeroSwitch:zo,zeroTab:So,zeroTabPanel:Ao,zeroTabs:Oo,zeroTextArea:No,zeroTextField:Lo,zeroToast:Io,zeroToolbar:Po,zeroTooltip:Bo,zeroTreeItem:_o,zeroTreeView:Yo,zeroUrlInput:Qo.compose(Object.assign({baseName:"url-input",template:Vo,styles:(e,a)=>s.css`
1779
+ `;class Qo extends $.UrlInput{}const Wo={zeroAccordion:Oe,zeroAccordionItem:Ne,zeroActionsMenu:Le,zeroAnchor:ua,zeroAnchoredRegion:ma,zeroAvatar:ba,zeroBadge:wa,zeroBanner:ka,zeroBreadcrumbItem:Ta,zeroBreadcrumb:Ca,zeroButton:Da,zeroCalendar:Fa,zeroCard:Ma,zeroCheckbox:Ra,zeroCombobox:Wa,zeroConnectionIndicator:Ja,zeroDataGrid:er,zeroDesignSystemProvider:dr,zeroDialog:br,zeroDatePicker:tr,zeroDisclosure:wr,zeroDivider:xr,zeroDropdownMenu:kr,zeroErrorBoundary:Dr,zeroNotificationListener:Mt,zeroErrorBanner:Tr,zeroErrorDialog:Fr,zeroFileUpload:Ir,zeroFilter:Ur,zeroFilterBar:_r,zeroFlexLayout:Yr,zeroFlipper:Qr,zeroFlyout:Xr,zeroGridLayout:at,zeroGridLayoutItem:tt,zeroHorizontalScroll:it,zeroIcon:dt,zeroListbox:ct,zeroListboxOption:ut,zeroMenu:vt,zeroMenuItem:wt,zeroModal:Ct,zeroMultiselect:Ft,zeroNumberField:Pt,zeroProgress:Gt,zeroProgressRing:Ht,zeroRadio:Vt,zeroRadioGroup:Wt,zeroSegmentedControl:Jt,zeroSegmentedItem:Kt,zeroSelect:eo,zeroSkeleton:ro,zeroSlider:oo,zeroSliderLabel:no,zeroSnackbar:po,zeroStepper:vo,zeroStepperTab:fo,zeroStepperTabPanel:yo,zeroSwitch:zo,zeroTab:So,zeroTabPanel:Ao,zeroTabs:Oo,zeroTextArea:No,zeroTextField:Lo,zeroToast:Io,zeroToolbar:Po,zeroTooltip:Go,zeroTreeItem:_o,zeroTreeView:Yo,zeroUrlInput:Qo.compose(Object.assign({baseName:"url-input",template:Vo,styles:(e,a)=>s.css`
1780
1780
  ${(0,$.foundationUrlInputStyles)(e,a)}
1781
1781
  a {
1782
1782
  color: ${le.blue};
@@ -1786,27 +1786,23 @@
1786
1786
  a:hover {
1787
1787
  opacity: 100%;
1788
1788
  }
1789
- `,shadowOptions:$.foundationUrlInputShadowOptions},$.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var qo=r(80249),Jo=r(87530),Zo=r.n(Jo),Ko=r(79014),Xo=r.n(Ko);Zo().extend(Xo());class ei extends c.FoundationElement{init(e){e&&(this.value=e.value,this.dateFormat=e.withTime?"YYYY-MM-DDTHH:mm":"YYYY-MM-DD",this.inputType=e.withTime?"datetime-local":"date")}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}}(0,qo.__decorate)([s.observable],ei.prototype,"value",void 0);const ai=s.css`
1789
+ `,shadowOptions:$.foundationUrlInputShadowOptions},$.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var qo,Jo,Zo=r(80249),Ko=r(87530),Xo=r.n(Ko),ei=r(79014),ai=r.n(ei);!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"}(qo||(qo={})),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"}(Jo||(Jo={}));const ri=e=>`${e}-token-map`,ti=(e,a)=>s.css`
1790
+ .${ri(e)} {
1791
+ ${new $.CSSVarsTokenMapper(a)}
1792
+ }
1793
+ `;var oi;!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"}(oi||(oi={}));const ii="__editedColumn",ni="__errorColumn";Xo().extend(ai());class li extends c.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[ii]}}(0,Zo.__decorate)([s.observable],li.prototype,"value",void 0),(0,Zo.__decorate)([s.observable],li.prototype,"actualWidth",void 0);const gi=s.css`
1790
1794
  :host {
1791
1795
  display: flex;
1792
1796
  }
1793
- `,ri=(e="foundation")=>s.html`
1797
+ `,di=(e="foundation")=>s.html`
1794
1798
  <${e}-text-field
1795
- :value=${e=>void 0===e.value||null===e.value?"":Zo().utc(e.value).format(e.dateFormat)}
1799
+ ${(0,s.ref)("input")}
1800
+ :value=${e=>void 0===e.value||null===e.value?"":Xo().utc(e.value).format(e.dateFormat)}
1796
1801
  type=${e=>e.inputType}
1797
1802
  @input=${(e,a)=>e.changeHandler(a.event)}
1798
- style="width: 100%"
1803
+ style="width: ${e=>e.actualWidth}px"
1799
1804
  ></${e}-text-field>
1800
- `,ti=ei.compose({baseName:"date-editor",styles:ai,template:ri()});class oi extends ei{}const ii=oi.compose({baseName:"date-editor",styles:ai,template:ri("zero")});class ni extends c.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}}(0,qo.__decorate)([s.observable],ni.prototype,"params",void 0),(0,qo.__decorate)([s.observable],ni.prototype,"selectedOptions",void 0);const li=s.css`
1801
- :host,
1802
- .select-renderer,
1803
- zero-option,
1804
- ::part(listbox),
1805
- ::part(control) {
1806
- max-width: var(--select-renderer-max-width);
1807
- min-width: 100%;
1808
- }
1809
- `,gi=(e="foundation")=>s.html`
1805
+ `,si=li.compose({baseName:"date-editor",styles:gi,template:di()});class ci extends li{}const pi=ci.compose({baseName:"date-editor",styles:gi,template:di("zero")});class ui extends c.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[ii]}}(0,Zo.__decorate)([s.observable],ui.prototype,"params",void 0),(0,Zo.__decorate)([s.observable],ui.prototype,"selectedOptions",void 0);const hi=s.css``,mi=(e="foundation")=>s.html`
1810
1806
  <${e}-multiselect
1811
1807
  style="width: 100%"
1812
1808
  ?async=${e=>e.params.async}
@@ -1820,18 +1816,9 @@
1820
1816
  :datasourceConfig=${e=>e.params.datasourceOptions}
1821
1817
  ></multiselect-datasource>
1822
1818
  </${e}-multiselect>
1823
- `,di=ni.compose({baseName:"multiselect-editor",styles:li,template:gi()});class si extends ni{}const ci=si.compose({baseName:"multiselect-editor",styles:li,template:gi("zero")});class pi extends c.FoundationElement{init(e){e&&(this.params=e,this.value=e.value)}getGui(){return this}destroy(){}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}}(0,qo.__decorate)([s.observable],pi.prototype,"params",void 0),(0,qo.__decorate)([s.observable],pi.prototype,"value",void 0);const ui=s.css`
1824
- :host,
1825
- .select-renderer,
1826
- zero-option,
1827
- ::part(listbox),
1828
- ::part(control) {
1829
- max-width: var(--select-renderer-max-width);
1830
- min-width: 100%;
1831
- }
1832
- `,hi=(e="foundation")=>s.html`
1819
+ `,vi=ui.compose({baseName:"multiselect-editor",styles:hi,template:mi()});class bi extends ui{}const fi=bi.compose({baseName:"multiselect-editor",styles:hi,template:mi("zero")});class wi extends c.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[ii]}}(0,Zo.__decorate)([s.observable],wi.prototype,"params",void 0),(0,Zo.__decorate)([s.observable],wi.prototype,"value",void 0),(0,Zo.__decorate)([s.observable],wi.prototype,"actualWidth",void 0);const yi=s.css``,xi=(e="foundation")=>s.html`
1833
1820
  <${e}-combobox
1834
- style="width: 100%"
1821
+ style="width: ${e=>e.actualWidth}px"
1835
1822
  ${(0,s.ref)("combobox")}
1836
1823
  ?async=${e=>e.params.async}
1837
1824
  @value-change=${(e,a)=>e.changeHandler(a.event)}
@@ -1845,11 +1832,11 @@
1845
1832
  :initialSelectedValue=${e=>e.params.value}
1846
1833
  ></options-datasource>
1847
1834
  </${e}-combobox>
1848
- `,mi=pi.compose({baseName:"select-editor",styles:ui,template:hi()});class vi extends pi{}const bi=vi.compose({baseName:"select-editor",styles:ui,template:hi("zero")});class fi extends c.FoundationElement{init(e){e&&(this.params=e,this.value=e.value)}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}}(0,qo.__decorate)([s.observable],fi.prototype,"params",void 0),(0,qo.__decorate)([s.observable],fi.prototype,"value",void 0);const wi=s.css`
1835
+ `,zi=wi.compose({baseName:"select-editor",styles:yi,template:xi()});class ki extends wi{}const Si=ki.compose({baseName:"select-editor",styles:yi,template:xi("zero")});class Ci extends c.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[ii]}}(0,Zo.__decorate)([s.observable],Ci.prototype,"params",void 0),(0,Zo.__decorate)([s.observable],Ci.prototype,"value",void 0),(0,Zo.__decorate)([s.observable],Ci.prototype,"actualWidth",void 0);const Ai=s.css`
1849
1836
  :host {
1850
1837
  display: flex;
1851
1838
  }
1852
- `,yi=(e="foundation")=>s.html`
1839
+ `,Ti=(e="foundation")=>s.html`
1853
1840
  <${e}-number-field
1854
1841
  ${(0,s.ref)("input")}
1855
1842
  withFormatting=${e=>e.params.withFormatting}
@@ -1859,9 +1846,31 @@
1859
1846
  placeholder=${e=>e.params.placeholder}
1860
1847
  ?disabled=${e=>e.params.disabled}
1861
1848
  hideStep
1862
- style="width: 100%"
1849
+ style="width: ${e=>e.actualWidth}px"
1863
1850
  ></${e}-number-field>
1864
- `,xi=fi.compose({baseName:"number-editor",styles:wi,template:yi()});class zi extends fi{}const ki=zi.compose({baseName:"number-editor",styles:wi,template:yi("zero")}),Si=(0,g.createLogger)("grid-pro");class Ci extends c.FoundationElement{init(e){e&&(this.params=e)}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){Si.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,qo.__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,qo.__decorate)([s.observable],Ci.prototype,"params",void 0),(0,qo.__decorate)([s.observable],Ci.prototype,"pendingAction",void 0);const{create:Ai}=c.DesignToken,Ti=(Ai("action-height-multiplier").withDefault("0.6px"),s.css`
1851
+ `,Oi=Ci.compose({baseName:"number-editor",styles:Ai,template:Ti()});class Di extends Ci{}const Ni=Di.compose({baseName:"number-editor",styles:Ai,template:Ti("zero")});class Fi extends c.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[ii]}}(0,Zo.__decorate)([s.observable],Fi.prototype,"params",void 0),(0,Zo.__decorate)([s.observable],Fi.prototype,"value",void 0),(0,Zo.__decorate)([s.observable],Fi.prototype,"actualWidth",void 0);const Li=s.css`
1852
+ :host {
1853
+ display: flex;
1854
+ }
1855
+ `,Mi=(e="foundation")=>s.html`
1856
+ <${e}-text-field
1857
+ ${(0,s.ref)("input")}
1858
+ :value=${e=>void 0===e.value?"":e.value}
1859
+ @input=${(e,a)=>{e.changeHandler(a.event)}}
1860
+ placeholder=${e=>e.params.placeholder}
1861
+ style="width: ${e=>e.actualWidth}px"
1862
+ >
1863
+ </${e}-text-field>
1864
+ `,$i=Fi.compose({baseName:"string-editor",styles:Li,template:Mi()});class Ri extends Fi{}const ji=Ri.compose({baseName:"string-editor",styles:Li,template:Mi("zero")});class Ii extends c.FoundationElement{init(e){e&&(this.valueFormatted=e.formatValue(e.value))}getGui(){return this}refresh(e){return this.valueFormatted=e.formatValue(e.value),!0}}(0,Zo.__decorate)([s.observable],Ii.prototype,"valueFormatted",void 0);const Ei=s.css`
1865
+ :host {
1866
+ display: flex;
1867
+ justify-content: space-between;
1868
+ align-items: center;
1869
+ }
1870
+ `,Pi=(e="foundation")=>s.html`
1871
+ <span>${e=>e.valueFormatted}</span>
1872
+ <${e}-progress-ring style="margin: 0; width: 20px; height: 20px"></${e}-progress-ring>
1873
+ `,Ui=Ii.compose({baseName:"editable-renderer",styles:Ei,template:Pi()});class Gi extends Ii{}const Bi=Gi.compose({baseName:"editable-renderer",styles:Ei,template:Pi("zero")});var _i=r(59783);const Hi=(0,g.createLogger)("grid-pro");class Yi extends c.FoundationElement{init(e){e&&(this.params=e,e.eGridCell.addEventListener("keydown",(e=>{e.key===_i.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){Hi.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,Zo.__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,Zo.__decorate)([s.observable],Yi.prototype,"params",void 0),(0,Zo.__decorate)([s.observable],Yi.prototype,"pendingAction",void 0);const{create:Vi}=c.DesignToken,Qi=(Vi("action-height-multiplier").withDefault("0.6px"),s.css`
1865
1874
  .action-container {
1866
1875
  align-items: center;
1867
1876
  display: flex;
@@ -1876,8 +1885,8 @@
1876
1885
  var(--action-height-multiplier)
1877
1886
  );
1878
1887
  }
1879
- `),Oi=Ci.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1880
- ${Ti}
1888
+ `),Wi=Yi.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1889
+ ${Qi}
1881
1890
  `,template:s.html`
1882
1891
  <div class="action-container" part="action-container">
1883
1892
  <foundation-button
@@ -1887,8 +1896,8 @@
1887
1896
  ?disabled=${e=>{var a;return e.pendingAction||e.isDisabled(null===(a=e.params)||void 0===a?void 0:a.data)}}
1888
1897
  appearance="${e=>e.params.appearance}"
1889
1898
  @click=${e=>e.clickHandler()}">${e=>e.params.actionName}</foundation-button>
1890
- </div>`});class Di extends Ci{}const Ni=Di.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1891
- ${Ti}
1899
+ </div>`});class qi extends Yi{}const Ji=qi.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1900
+ ${Qi}
1892
1901
  `,template:s.html`
1893
1902
  <div class="action-container" part="action-container">
1894
1903
  <zero-button
@@ -1905,29 +1914,29 @@
1905
1914
  `:e.params.actionName}
1906
1915
  </zero-button>
1907
1916
  </div>
1908
- `});class Fi extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,qo.__decorate)([s.observable],Fi.prototype,"params",void 0);const Li=Fi.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1917
+ `});class Zi extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,Zo.__decorate)([s.observable],Zi.prototype,"params",void 0);const Ki=Zi.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1909
1918
  <foundation-actions-menu
1910
1919
  name="${e=>e.params.headerName}"
1911
1920
  :definition=${e=>e.params}
1912
1921
  ></foundation-actions-menu>
1913
- `});class Mi extends Fi{}const $i=Mi.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1922
+ `});class Xi extends Zi{}const en=Xi.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1914
1923
  <zero-actions-menu
1915
1924
  name="${e=>e.params.headerName}"
1916
1925
  :definition=${e=>e.params}
1917
1926
  ></zero-actions-menu>
1918
- `});var Ri=r(59783);class ji extends c.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:Ri.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:Ri.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}}(0,qo.__decorate)([s.observable],ji.prototype,"params",void 0),(0,qo.__decorate)([s.observable],ji.prototype,"selected",void 0);const Ii=s.css`
1927
+ `});class an extends c.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:_i.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:_i.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[ii]}}(0,Zo.__decorate)([s.observable],an.prototype,"params",void 0),(0,Zo.__decorate)([s.observable],an.prototype,"selected",void 0);const rn=s.css`
1919
1928
  :host {
1920
1929
  align-center: center;
1921
1930
  display: flex;
1922
1931
  height: 100%;
1923
1932
  }
1924
- `,Ei=(e="foundation")=>{const a=`${e}-checkbox`;return s.html`
1933
+ `,tn=(e="foundation")=>{const a=`${e}-checkbox`;return s.html`
1925
1934
  <${a}
1926
1935
  @change=${(e,a)=>e.changeHandler(a.event)}
1927
1936
  :checked=${e=>e.selected}
1928
1937
  ?disabled=${e=>!e.params.colDef.editable}
1929
1938
  ></${a}>
1930
- `},Pi=ji.compose({baseName:"boolean-renderer",styles:Ii,template:Ei()});class Ui extends ji{}const Bi=Ui.compose({baseName:"boolean-renderer",styles:Ii,template:Ei("zero")});var Gi=r(18471);const _i=(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 Hi extends c.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?_i(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,qo.__decorate)([s.observable],Hi.prototype,"textValue",void 0),(0,qo.__decorate)([s.observable],Hi.prototype,"params",void 0);const Yi=s.css`
1939
+ `},on=an.compose({baseName:"boolean-renderer",styles:rn,template:tn()});class nn extends an{}const ln=nn.compose({baseName:"boolean-renderer",styles:rn,template:tn("zero")});var gn=r(18471);const dn=(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 sn extends c.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?dn(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,Zo.__decorate)([s.observable],sn.prototype,"textValue",void 0),(0,Zo.__decorate)([s.observable],sn.prototype,"params",void 0);const cn=s.css`
1931
1940
  :host {
1932
1941
  display: flex;
1933
1942
  width: 100%;
@@ -1937,15 +1946,15 @@
1937
1946
  .text-renderer {
1938
1947
  width: 100%;
1939
1948
  }
1940
- `,Vi=(e="foundation")=>{const a=`${e}-text-field`;return s.html`
1949
+ `,pn=(e="foundation")=>{const a=`${e}-text-field`;return s.html`
1941
1950
  <${a}
1942
1951
  ${(0,s.ref)("textField")}
1943
1952
  type="text"
1944
1953
  class="text-renderer"
1945
- :value="${(0,Gi.Z)((e=>e.textValue))}"
1954
+ :value="${(0,gn.Z)((e=>e.textValue))}"
1946
1955
  @change="${(e,a)=>e.textChanged(a.event)}"
1947
1956
  ></${a}>
1948
- `},Qi=Hi.compose({baseName:"grid-pro-text-renderer",styles:Yi,template:Vi()});class Wi extends Hi{}const qi=Yi,Ji=Vi,Zi=Wi.compose({baseName:"grid-text-renderer",styles:qi,template:Ji()});const Ki=class extends Wi{}.compose({baseName:"grid-text-renderer",styles:qi,template:Ji("zero")});class Xi extends c.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=_i(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,qo.__decorate)([s.observable],Xi.prototype,"params",void 0),(0,qo.__decorate)([s.observable],Xi.prototype,"value",void 0);const en=s.css`
1957
+ `},un=sn.compose({baseName:"grid-pro-text-renderer",styles:cn,template:pn()});class hn extends sn{}const mn=cn,vn=pn,bn=hn.compose({baseName:"grid-text-renderer",styles:mn,template:vn()});const fn=class extends hn{}.compose({baseName:"grid-text-renderer",styles:mn,template:vn("zero")});class wn extends c.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=dn(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,Zo.__decorate)([s.observable],wn.prototype,"params",void 0),(0,Zo.__decorate)([s.observable],wn.prototype,"value",void 0);const yn=s.css`
1949
1958
  :host,
1950
1959
  .select-renderer,
1951
1960
  zero-option,
@@ -1954,7 +1963,7 @@
1954
1963
  max-width: var(--select-renderer-max-width);
1955
1964
  min-width: 100%;
1956
1965
  }
1957
- `,an=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return s.html`
1966
+ `,xn=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return s.html`
1958
1967
  <${a}
1959
1968
  class="select-renderer"
1960
1969
  @change=${(e,a)=>e.selectionChanged(a.event)}
@@ -1970,19 +1979,15 @@
1970
1979
  <${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
1971
1980
  `)}
1972
1981
  </${a}>
1973
- `},rn=Xi.compose({baseName:"select-renderer",styles:en,template:an()});const tn=class extends Xi{}.compose({baseName:"select-renderer",styles:en,template:an("zero")});var on=r(89861),nn=r(86534),ln=r(75527),gn=r(9492);const dn=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,gn.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,gn.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,gn.__classPrivateFieldGet)(this,r,"f")._key&&!((0,gn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,gn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,gn.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,gn.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,gn.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,gn.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,gn.__classPrivateFieldGet)(this,o,"f")&&((0,gn.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,gn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,gn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,gn.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,gn.__classPrivateFieldGet)(this,r,"f")._key&&(0,gn.__classPrivateFieldSet)(this,r,(0,gn.__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,gn.__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,gn.__classPrivateFieldGet)(this,t,"f")!==(0,gn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,gn.__classPrivateFieldSet)(this,t,null!==(a=(0,gn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,gn.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,gn.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,gn.__classPrivateFieldSet)(this,t,null!==(o=(0,gn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,gn.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[sn])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,gn.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},sn=Symbol("layout-cache-document");var cn=r(88556),pn=r(9770);const un=s.html`
1982
+ `},zn=wn.compose({baseName:"select-renderer",styles:yn,template:xn()});const kn=class extends wn{}.compose({baseName:"select-renderer",styles:yn,template:xn("zero")});var Sn=r(89861),Cn=r(86534),An=r(75527),Tn=r(9492);const On=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,Tn.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Tn.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Tn.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Tn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Tn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Tn.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Tn.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Tn.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Tn.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Tn.__classPrivateFieldGet)(this,o,"f")&&((0,Tn.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Tn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Tn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Tn.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Tn.__classPrivateFieldGet)(this,r,"f")._key&&(0,Tn.__classPrivateFieldSet)(this,r,(0,Tn.__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,Tn.__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,Tn.__classPrivateFieldGet)(this,t,"f")!==(0,Tn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Tn.__classPrivateFieldSet)(this,t,null!==(a=(0,Tn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Tn.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Tn.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Tn.__classPrivateFieldSet)(this,t,null!==(o=(0,Tn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Tn.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[Dn])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,Tn.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},Dn=Symbol("layout-cache-document");var Nn=r(88556),Fn=r(9770);const Ln=s.html`
1974
1983
  <template>
1975
1984
  <slot ${(0,s.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
1976
1985
  </template>
1977
- `;let hn=class extends c.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,qo.__decorate)([s.observable],hn.prototype,"renderer",void 0),(0,qo.__decorate)([s.observable],hn.prototype,"rendererParams",void 0),(0,qo.__decorate)([s.observable],hn.prototype,"slottedRenderer",void 0),hn=(0,qo.__decorate)([(0,s.customElement)({name:"grid-pro-cell",template:un})],hn);const mn=s.html`
1986
+ `;let Mn=class extends c.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,Zo.__decorate)([s.observable],Mn.prototype,"renderer",void 0),(0,Zo.__decorate)([s.observable],Mn.prototype,"rendererParams",void 0),(0,Zo.__decorate)([s.observable],Mn.prototype,"slottedRenderer",void 0),Mn=(0,Zo.__decorate)([(0,s.customElement)({name:"grid-pro-cell",template:Ln})],Mn);const $n=s.html`
1978
1987
  <template>
1979
1988
  <slot ${(0,s.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
1980
1989
  </template>
1981
- `;let vn=class extends c.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,qo.__decorate)([s.observable],vn.prototype,"slottedAgCell",void 0),(0,qo.__decorate)([s.observable],vn.prototype,"definition",void 0),vn=(0,qo.__decorate)([(0,s.customElement)({name:"grid-pro-column",template:mn})],vn);var bn=r(82940),fn=r(32449),wn=r(9162),yn=r(5127),xn=r(83123),zn=r(35991),kn=r(6852),Sn=r(26714),Cn=r(71452),An=r(99449),Tn=r(30526);class On extends c.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,qo.__decorate)([l.lj],On.prototype,"connect",void 0),(0,qo.__decorate)([s.observable],On.prototype,"deferredGridOptions",void 0),(0,qo.__decorate)([s.observable],On.prototype,"deferredColumnStates",void 0),(0,qo.__decorate)([s.attr],On.prototype,"criteria",void 0),(0,qo.__decorate)([s.attr],On.prototype,"fields",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],On.prototype,"isSnapshot",void 0),(0,qo.__decorate)([(0,s.attr)({attribute:"max-rows"})],On.prototype,"maxRows",void 0),(0,qo.__decorate)([(0,s.attr)({attribute:"max-view"})],On.prototype,"maxView",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],On.prototype,"movingView",void 0),(0,qo.__decorate)([(0,s.attr)({attribute:"order-by"})],On.prototype,"orderBy",void 0),(0,qo.__decorate)([(0,s.attr)({attribute:"resource-name"})],On.prototype,"resourceName",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean"})],On.prototype,"reverse",void 0);var Dn=r(21607);function Nn({value:e}){return(0,Dn.D_)(e)}function Fn({value:e}){return(0,Dn.Lx)(e)}var Ln,Mn;!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"}(Ln||(Ln={})),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"}(Mn||(Mn={}));const $n=e=>`${e}-token-map`,Rn=(e,a)=>s.css`
1982
- .${$n(e)} {
1983
- ${new $.CSSVarsTokenMapper(a)}
1984
- }
1985
- `;var jn;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.text="text",e.select="select",e.dateEditor="dateEditor",e.selectEditor="selectEditor",e.numberEditor="numberEditor",e.multiselectEditor="multiselectEditor"}(jn||(jn={}));var In;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(In||(In={}));let En=class extends(dn(On)){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 Sn.X(new Map)}criteriaChanged(e,a){const r=e!==(0,fn.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.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;s.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,qo.__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);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,qo.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Cn.T)(1),(0,An.b)(r),(0,Tn.b)((e=>Si.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Si.warn("Application not connected, 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 Sn.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,qo.__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,qo.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Si.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 Si.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===wn.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 Si.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},In.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},In.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},In.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(In)){if(!this.rowDataMapper)return e;const r={};return a.includes(In.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(In.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(In.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=(e.type,{suppressAndOrCondition:!0,filterOptions:["contains"]}),e.type){case xn.r.NUMBER:r.cellEditor=jn.numberEditor;break;case xn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=jn.boolean,r.cellEditor=jn.boolean);break;case xn.r.DATE:r.valueFormatter=Nn,r.cellEditor=jn.dateEditor;break;case xn.r.DATETIME:r.valueFormatter=Fn,r.cellEditor=jn.dateEditor,r.cellEditorParams={withTime:!0};break;case xn.r.ENUM:r.cellEditor=jn.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},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,fn.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,qo.__decorate)([zn.g],En.prototype,"auth",void 0),(0,qo.__decorate)([kn.Yh],En.prototype,"datasource",void 0),(0,qo.__decorate)([(0,s.attr)({attribute:"polling-interval"})],En.prototype,"pollingInterval",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"disable-polling"})],En.prototype,"disablePolling",void 0),(0,qo.__decorate)([s.observable],En.prototype,"request",void 0),(0,qo.__decorate)([(0,s.attr)({attribute:"row-id"})],En.prototype,"rowIdAttr",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],En.prototype,"restartOnReconnection",void 0),(0,qo.__decorate)([s.observable],En.prototype,"rowDataMapper",void 0),En=(0,qo.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],En);let Pn=class extends En{};Pn=(0,qo.__decorate)([(0,s.customElement)({name:"grid-pro-client-side-datasource"})],Pn);var Un=r(66306),Bn=r(47546);function Gn(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 _n(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 Hn{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,qo.__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,Bn.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===wn.Cs.LOGOFF_ACK||o===wn.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=>Si.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,qo.__decorate)([zn.g],Hn.prototype,"auth",void 0),(0,qo.__decorate)([l.lj],Hn.prototype,"connect",void 0);let Yn=class extends(dn(On)){constructor(){super(...arguments),this.pagination=!1,this.rowId="ROW_REF"}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,fn.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.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,qo.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Si.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,Un.C)(e);const a=(0,Un.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new Hn({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});Si.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));Si.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 Si.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,qo.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Si.debug(e)),(e=>Si.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 xn.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 xn.r.DATE:case xn.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 xn.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 xn.r.NUMBER:r.cellEditor=jn.numberEditor;break;case xn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=jn.boolean,r.cellEditor=jn.boolean);break;case xn.r.DATE:r.valueFormatter=Nn;break;case xn.r.DATETIME:r.valueFormatter=Fn;break;case xn.r.ENUM:r.cellEditor=jn.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:_n(e.type),filter:Gn(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,qo.__decorate)([(0,s.attr)({mode:"boolean"})],Yn.prototype,"pagination",void 0),(0,qo.__decorate)([(0,s.attr)({attribute:"row-id"})],Yn.prototype,"rowId",void 0),Yn=(0,qo.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],Yn);const Vn='\n @font-face {\n font-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kAvwE23tJm1M5r/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',Qn='\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+M1lE4yJZuf0JLTfgdHNvseRobBRAwGBuVQKzJwnlrC2j0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vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Wn={[Mn.alpine]:Vn,[Mn.alpineDark]:Vn,[Mn.balham]:Qn,[Mn.balhamDark]:Qn,[Mn.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+SAeVlCEiwaKia2gTOYABBQwR8VUQa6iVVYDKIgywZhkDpQzYwg2pogEKYClcQC2Qq0oXaYs5YPlaLUdgQ9tVNJaKVB0aVFF6cTCGhVBqdgYXJnWl1JgunLbYgr2OIF7acWFIHkWlSbS1dvGjSQkU6aoZmJIaoMxMaUYTNbdaUPjzDAU8jcamQigXK1UFkBoXGOSirP22bKJBeriEyKFKLF7ApHF2cslXcTZUOdQ9GypSIYfXSKoUsTiLtq2oYVCg9waGz9Gb0IKKzj0gNMtwgGptnTXVZcdTUqUJ9nII9zZYrIIqAaglVkSlOzY65X7msQ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XNIdZf1h9STVS2TEgFjKJdMcnzVTNcyrI544rdxazid93wxsRk0HxSu4k/tiVCGZajrDXX8WrhVftJ0RU/Ia/64ZpXjoa13dvpWmwq9WLXY8AG8hupZiGFJ1xJm+qGkTLRCYVwm6ItxMhTxKzms6NxGWFaV4+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},qn=Vn,Jn=s.css`
1990
+ `;let Rn=class extends c.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,Zo.__decorate)([s.observable],Rn.prototype,"slottedAgCell",void 0),(0,Zo.__decorate)([s.observable],Rn.prototype,"definition",void 0),Rn=(0,Zo.__decorate)([(0,s.customElement)({name:"grid-pro-column",template:$n})],Rn);var jn=r(82940),In=r(32449),En=r(9162),Pn=r(5127),Un=r(83123),Gn=r(35991),Bn=r(6852),_n=r(26714),Hn=r(71452),Yn=r(99449),Vn=r(30526);class Qn extends c.FoundationElement{constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=jn.WJ.MAX_ROWS_250,this.maxView=jn.WJ.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1}}(0,Zo.__decorate)([l.lj],Qn.prototype,"connect",void 0),(0,Zo.__decorate)([s.observable],Qn.prototype,"deferredGridOptions",void 0),(0,Zo.__decorate)([s.observable],Qn.prototype,"deferredColumnStates",void 0),(0,Zo.__decorate)([s.attr],Qn.prototype,"criteria",void 0),(0,Zo.__decorate)([s.attr],Qn.prototype,"fields",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],Qn.prototype,"isSnapshot",void 0),(0,Zo.__decorate)([(0,s.attr)({attribute:"max-rows"})],Qn.prototype,"maxRows",void 0),(0,Zo.__decorate)([(0,s.attr)({attribute:"max-view"})],Qn.prototype,"maxView",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],Qn.prototype,"movingView",void 0),(0,Zo.__decorate)([(0,s.attr)({attribute:"order-by"})],Qn.prototype,"orderBy",void 0),(0,Zo.__decorate)([(0,s.attr)({attribute:"resource-name"})],Qn.prototype,"resourceName",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean"})],Qn.prototype,"reverse",void 0);var Wn=r(21607);function qn({value:e}){return(0,Wn.D_)(e)}function Jn({value:e}){return(0,Wn.Lx)(e)}var Zn;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(Zn||(Zn={}));let Kn=class extends(On(Qn)){constructor(){super(...arguments),this.pollingInterval=jn.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 _n.X(new Map)}criteriaChanged(e,a){const r=e!==(0,In.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.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;s.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?jn.WJ.REQUEST_SERVER_ROW_ID:jn.WJ.DATASERVER_ROW_ID}init(){return(0,Zo.__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);this.isRequestServer=e.TYPE===jn._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,Zo.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Hn.T)(1),(0,Yn.b)(r),(0,Vn.b)((e=>Hi.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Hi.warn("Application not connected, 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 _n.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,Zo.__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,Zo.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Hi.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 Hi.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===En.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Pn.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Pn.$)(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 Hi.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},Zn.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},Zn.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},Zn.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(Zn)){if(!this.rowDataMapper)return e;const r={};return a.includes(Zn.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(Zn.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(Zn.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=(e.type,{suppressAndOrCondition:!0,filterOptions:["contains"]}),e.type){case Un.r.STRING:r.cellEditor=oi.stringEditor;break;case Un.r.NUMBER:r.cellEditor=oi.numberEditor;break;case Un.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=oi.boolean,r.cellEditor=oi.boolean);break;case Un.r.DATE:r.valueFormatter=qn,r.cellEditor=oi.dateEditor;break;case Un.r.DATETIME:r.valueFormatter=Jn,r.cellEditor=oi.dateEditor,r.cellEditorParams={withTime:!0};break;case Un.r.ENUM:r.cellEditor=oi.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},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,In.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,Zo.__decorate)([Gn.g],Kn.prototype,"auth",void 0),(0,Zo.__decorate)([Bn.Yh],Kn.prototype,"datasource",void 0),(0,Zo.__decorate)([(0,s.attr)({attribute:"polling-interval"})],Kn.prototype,"pollingInterval",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"disable-polling"})],Kn.prototype,"disablePolling",void 0),(0,Zo.__decorate)([s.observable],Kn.prototype,"request",void 0),(0,Zo.__decorate)([(0,s.attr)({attribute:"row-id"})],Kn.prototype,"rowIdAttr",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],Kn.prototype,"restartOnReconnection",void 0),(0,Zo.__decorate)([s.observable],Kn.prototype,"rowDataMapper",void 0),Kn=(0,Zo.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],Kn);let Xn=class extends Kn{};Xn=(0,Zo.__decorate)([(0,s.customElement)({name:"grid-pro-client-side-datasource"})],Xn);var el=r(66306),al=r(47546);function rl(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 tl(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 ol{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,Zo.__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,al.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===En.Cs.LOGOFF_ACK||o===En.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,Pn.$)(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=>Hi.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,Zo.__decorate)([Gn.g],ol.prototype,"auth",void 0),(0,Zo.__decorate)([l.lj],ol.prototype,"connect",void 0);let il=class extends(On(Qn)){constructor(){super(...arguments),this.pagination=!1,this.rowId="ROW_REF"}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,In.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.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,Zo.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Hi.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,el.C)(e);const a=(0,el.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new ol({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});Hi.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));Hi.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 Hi.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,Zo.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Hi.debug(e)),(e=>Hi.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 Un.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 Un.r.DATE:case Un.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 Un.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 Un.r.NUMBER:r.cellEditor=oi.numberEditor;break;case Un.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=oi.boolean,r.cellEditor=oi.boolean);break;case Un.r.DATE:r.valueFormatter=qn;break;case Un.r.DATETIME:r.valueFormatter=Jn;break;case Un.r.ENUM:r.cellEditor=oi.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:tl(e.type),filter:rl(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,Zo.__decorate)([(0,s.attr)({mode:"boolean"})],il.prototype,"pagination",void 0),(0,Zo.__decorate)([(0,s.attr)({attribute:"row-id"})],il.prototype,"rowId",void 0),il=(0,Zo.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],il);const nl='\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+zKVJeTkPgMFs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A81yOYpihiSB7JUXB/oI+iZaGt9tQq2n9Q0derrnU/2o8lgXVDNY1oD9p6TyUb0YWZhdYyCKXNkXqpiKbholwui05d6ymOvr4rvfbvnEuD/2Lt6UJO/LtcDLUAjLO7+6TfmdLsqQ1oX9N1GBdZaqb1U6z/q75SrwQ8/Q0nP38sYCya/8Olal7o7hJgPz+nTjjmCEjw0ihgE3KAue6Ez7v6sQAMBCBRVzH0QE+m7QFOUA8oIHQ7QMAd+l1GAzbMBJSuy4FO132so8Klf1DS9T/b9TcUX2zPj/AL+0JO3/nkAvwE23tJm1M5r/MXKLsYquvmateVvUAAkgy6aucqD/aG2VSGIlbPMayL8j5WieIXKG465nS7Whn3qhsVcU2yXhBHu+MlTgB+gvDA9TyJJGbIMf6CADLvWhRUrjWuJH0vSqp0AYxdq7Tmf+5sYN3g2DCqxCIR5uJZqyIJPoZ4J5LY+gKUazY6BSu5tYrnZWTNhtLC560Aq5pu1Hxm2ADhCAgVDfnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',ll='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAA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PpbL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',gl={[Jo.alpine]:nl,[Jo.alpineDark]:nl,[Jo.balham]:ll,[Jo.balhamDark]:ll,[Jo.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+SAeVlCEiwaKia2gTOYABBQwR8VUQ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xw/mbjxRXSG0wLw3hCB9ckfqdCA6LvneDVqPhClJRbjb18VPnRGGrc6N8rsDVJSitxWozffuIuRdzcdrpzbESxF+FqzpahiqHiKWWweIOPrzlDAZPcm4aqcqu4YLfI13gjKBV2vhyVIoQd9GMAQRjD+IUBnYL/D/csm7U631x8MR+PJdDZfLFfrzXa3PxxP58v1dn88qSQrqqYbpmU7rucHoWeee+GlV15746133q/tS5cX9KCBaQ1GeFqW4Zg1U2QwrpobRA+mNJrHnmftPgPtWeo8gSwqSgoEikd5CZWUvDsmkaXNIdZf1h9STVS2TEgFjKJdMcnzVTNcyrI544rdxazid93wxsRk0HxSu4k/tiVCGZajrDXX8WrhVftJ0RU/Ia/64ZpXjoa13dvpWmwq9WLXY8AG8hupZiGFJ1xJm+qGkTLRCYVwm6ItxMhTxKzms6NxGWFaV4+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},dl=nl,sl=s.css`
1986
1991
  .ag-icon {
1987
1992
  font-family: var(--ag-icon-font-family);
1988
1993
  font-size: var(--ag-icon-size);
@@ -9159,7 +9164,7 @@
9159
9164
  input[class^='ag-'][type='range']:disabled {
9160
9165
  opacity: 0.5;
9161
9166
  }
9162
- `,Zn=s.css`
9167
+ `,cl=s.css`
9163
9168
  .ag-dnd-ghost {
9164
9169
  background: var(--ag-header-background-color, var(--ag-background-color, #1f2126));
9165
9170
  border: solid 1px;
@@ -9176,7 +9181,7 @@
9176
9181
  overflow: hidden;
9177
9182
  text-overflow: ellipsis;
9178
9183
  }
9179
- `,Kn=s.css`
9184
+ `,pl=s.css`
9180
9185
  .ag-theme-alpine,
9181
9186
  .ag-theme-alpine-dark {
9182
9187
  --ag-alpine-active-color: #2196f3;
@@ -9626,7 +9631,7 @@
9626
9631
  .ag-theme-alpine-dark {
9627
9632
  color-scheme: dark;
9628
9633
  }
9629
- `,Xn=s.css`
9634
+ `,ul=s.css`
9630
9635
  .ag-theme-balham,
9631
9636
  .ag-theme-balham-dark {
9632
9637
  --ag-balham-active-color: #0091ea;
@@ -9896,7 +9901,7 @@
9896
9901
  .ag-theme-balham-dark {
9897
9902
  color-scheme: dark;
9898
9903
  }
9899
- `,el=s.css`
9904
+ `,hl=s.css`
9900
9905
  .ag-theme-material {
9901
9906
  --ag-material-primary-color: #3f51b5;
9902
9907
  --ag-material-accent-color: #ff4081;
@@ -10161,14 +10166,14 @@
10161
10166
  .ag-theme-material .ag-picker-field-wrapper:focus {
10162
10167
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
10163
10168
  }
10164
- `,al=s.css`
10165
- ${Jn}
10166
- ${Zn}
10167
- ${Kn}
10168
- ${Xn}
10169
- ${el}
10170
- `,rl=s.css`
10171
- ${al}
10169
+ `,ml=s.css`
10170
+ ${sl}
10171
+ ${cl}
10172
+ ${pl}
10173
+ ${ul}
10174
+ ${hl}
10175
+ `,vl=s.css`
10176
+ ${ml}
10172
10177
  :host {
10173
10178
  width: 100%;
10174
10179
  height: 100%;
@@ -10195,14 +10200,14 @@
10195
10200
  .ag-cell-inline-editing {
10196
10201
  height: inherit !important;
10197
10202
  }
10198
- `,tl=s.html`
10203
+ `,bl=s.html`
10199
10204
  <template>
10200
10205
  <span part="grid" class="${e=>e.classNames}">
10201
10206
  <slot name="grid" ${(0,s.ref)("gridSlot")}></slot>
10202
10207
  <slot></slot>
10203
10208
  </span>
10204
10209
  </template>
10205
- `;function ol(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}Ri.O3h.registerModules([nn.jM,on.I]);const il=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class nl extends(dn(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,pn.A)($n(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=qn,this.columnComponentName="grid-pro-column",this.theme=Mn.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Ri.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[il(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&&Ri.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(il(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[jn.action]:Ci,[jn.actionsMenu]:Fi,[jn.boolean]:ji,[jn.selectEditor]:pi,[jn.numberEditor]:fi,[jn.multiselectEditor]:ni,[jn.dateEditor]: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,qo.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),d=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0},this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProDatasource?d.columnDefs=t:d.columnDefs=this.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Ri.plv.copyAttributesToGridOptions(d,this.agAttributes));const c={globalEventListener:a};s.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Ri.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return Si.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);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 ol(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return ol(n,this.gridProDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Ri.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Ri.plv.ALL_PROPERTIES.map((e=>il(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},Ri.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=Wn[e]||this.gridFontFace;this.destroyFontFace();const r=(0,cn.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,qo.__decorate)([s.observable],nl.prototype,"columnApi",void 0),(0,qo.__decorate)([s.observable],nl.prototype,"gridApi",void 0),(0,qo.__decorate)([ln.z],nl.prototype,"session",void 0),(0,qo.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],nl.prototype,"autoCellRendererByType",void 0),(0,qo.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],nl.prototype,"onlyTemplateColDefs",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],nl.prototype,"gridAutosizingEnabled",void 0),(0,qo.__decorate)([(0,s.attr)({attribute:"add-index"})],nl.prototype,"addIndex",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],nl.prototype,"asyncAdd",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],nl.prototype,"asyncRemove",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],nl.prototype,"asyncUpdate",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],nl.prototype,"enableCellFlashing",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],nl.prototype,"enabledRowFlashing",void 0),(0,qo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],nl.prototype,"enableRowFlashing",void 0),(0,qo.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],nl.prototype,"persistColumnStateKey",void 0),(0,qo.__decorate)([s.observable],nl.prototype,"gridFontFace",void 0),(0,qo.__decorate)([s.attr],nl.prototype,"columnComponentName",void 0),(0,qo.__decorate)([s.observable],nl.prototype,"eventsAndCallbacks",void 0),(0,qo.__decorate)([s.attr],nl.prototype,"headerHeight",void 0),(0,qo.__decorate)([s.attr],nl.prototype,"rowHeight",void 0),(0,qo.__decorate)([s.attr],nl.prototype,"theme",void 0),(0,qo.__decorate)([s.observable],nl.prototype,"classNames",void 0),(0,qo.__decorate)([s.observable],nl.prototype,"agGrid",void 0),(0,qo.__decorate)([s.observable],nl.prototype,"gridSlot",void 0),(0,qo.__decorate)([s.observable],nl.prototype,"gridComponents",void 0);const ll=void 0,gl={shadowOptions:void 0},dl=nl.compose(Object.assign({baseName:"grid-pro",styles:rl,template:tl,shadowOptions:ll},gl)),sl={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#879ba6")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#1f2126")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2e3339")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2b2e34"))},cl={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#000000")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#181d1f")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#FFFFFF")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#babfc7")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2196f3"))},{create:pl}=c.DesignToken,ul={backgroundColor:pl("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?cl.backgroundSwatch:sl.backgroundSwatch)),borderColor:pl("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?cl.borderSwatch:sl.borderSwatch)),foregroundColor:pl("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?cl.foregroundSwatch:sl.foregroundSwatch)),headerForegroundColor:pl("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?cl.headerForegroundSwatch:sl.headerForegroundSwatch)),rowHoverColor:pl("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?cl.rowHoverSwatch:sl.rowHoverSwatch))},hl=s.css`
10210
+ `;class fl{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 wl(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}_i.O3h.registerModules([Cn.jM,Sn.I]);const yl=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class xl extends(On(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Fn.A)(ri(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=dl,this.columnComponentName="grid-pro-column",this.theme=Jo.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=_i.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[yl(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&&_i.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(yl(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[oi.action]:Yi,[oi.actionsMenu]:Zi,[oi.boolean]:an,[oi.editable]:Ii,[oi.selectEditor]:wi,[oi.numberEditor]:Ci,[oi.multiselectEditor]:ui,[oi.dateEditor]:li,[oi.stringEditor]:Fi};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,Zo.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),d=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0},this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProDatasource?d.columnDefs=t:d.columnDefs=this.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),_i.plv.copyAttributesToGridOptions(d,this.agAttributes));const c={globalEventListener:a};s.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new _i.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return Hi.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[ii]===e.field)return{component:oi.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=fl,e.tooltipValueGetter=a=>{const r=a.data[ni];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[ni])||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 wl(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return wl(n,this.gridProDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=_i.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=_i.plv.ALL_PROPERTIES.map((e=>yl(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},_i.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=gl[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Nn.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,Zo.__decorate)([s.observable],xl.prototype,"columnApi",void 0),(0,Zo.__decorate)([s.observable],xl.prototype,"gridApi",void 0),(0,Zo.__decorate)([An.z],xl.prototype,"session",void 0),(0,Zo.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],xl.prototype,"autoCellRendererByType",void 0),(0,Zo.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],xl.prototype,"onlyTemplateColDefs",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],xl.prototype,"gridAutosizingEnabled",void 0),(0,Zo.__decorate)([(0,s.attr)({attribute:"add-index"})],xl.prototype,"addIndex",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],xl.prototype,"asyncAdd",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],xl.prototype,"asyncRemove",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],xl.prototype,"asyncUpdate",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],xl.prototype,"enableCellFlashing",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],xl.prototype,"enabledRowFlashing",void 0),(0,Zo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],xl.prototype,"enableRowFlashing",void 0),(0,Zo.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],xl.prototype,"persistColumnStateKey",void 0),(0,Zo.__decorate)([s.observable],xl.prototype,"gridFontFace",void 0),(0,Zo.__decorate)([s.attr],xl.prototype,"columnComponentName",void 0),(0,Zo.__decorate)([s.observable],xl.prototype,"eventsAndCallbacks",void 0),(0,Zo.__decorate)([s.attr],xl.prototype,"headerHeight",void 0),(0,Zo.__decorate)([s.attr],xl.prototype,"rowHeight",void 0),(0,Zo.__decorate)([s.attr],xl.prototype,"theme",void 0),(0,Zo.__decorate)([s.observable],xl.prototype,"classNames",void 0),(0,Zo.__decorate)([s.observable],xl.prototype,"agGrid",void 0),(0,Zo.__decorate)([s.observable],xl.prototype,"gridSlot",void 0),(0,Zo.__decorate)([s.observable],xl.prototype,"gridComponents",void 0);const zl=void 0,kl={shadowOptions:void 0},Sl=xl.compose(Object.assign({baseName:"grid-pro",styles:vl,template:bl,shadowOptions:zl},kl)),Cl={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#879ba6")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#1f2126")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2e3339")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2b2e34"))},Al={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#000000")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#181d1f")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#FFFFFF")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#babfc7")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2196f3"))},{create:Tl}=c.DesignToken,Ol={backgroundColor:Tl("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Al.backgroundSwatch:Cl.backgroundSwatch)),borderColor:Tl("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Al.borderSwatch:Cl.borderSwatch)),foregroundColor:Tl("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Al.foregroundSwatch:Cl.foregroundSwatch)),headerForegroundColor:Tl("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Al.headerForegroundSwatch:Cl.headerForegroundSwatch)),rowHoverColor:Tl("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Al.rowHoverSwatch:Cl.rowHoverSwatch))},Dl=s.css`
10206
10211
  .ag-theme-genesis-rapid,
10207
10212
  .ag-theme-genesis-rapid-dark {
10208
10213
  --ag-alpine-active-color: #2196f3;
@@ -10662,50 +10667,54 @@
10662
10667
  .ag-theme-genesis-rapid-dark {
10663
10668
  color-scheme: dark;
10664
10669
  }
10665
- `,ml={[Ln.backgroundColor]:ul.backgroundColor,[Ln.foregroundColor]:ul.foregroundColor,[Ln.oddRowBackgroundColor]:ul.backgroundColor,[Ln.headerBackgroundColor]:ul.backgroundColor,[Ln.headerForegroundColor]:ul.headerForegroundColor,[Ln.selectedRowBackgroundColor]:ul.rowHoverColor,[Ln.rowHoverColor]:ul.rowHoverColor,[Ln.borderColor]:ul.borderColor,[Ln.rowBorderColor]:ul.rowHoverColor,[Ln.modalOverlayBackgroundColor]:ul.backgroundColor,[Ln.inputFocusBoxShadow]:ul.headerForegroundColor,[Ln.inputFocusBorderColor]:ul.headerForegroundColor,[Ln.headerColumnResizeHandleColor]:ul.headerForegroundColor},vl="ag-theme-genesis-rapid",bl=s.css`
10666
- ${hl}
10667
- ${Rn(vl,ml)}
10670
+ `,Nl={[qo.backgroundColor]:Ol.backgroundColor,[qo.foregroundColor]:Ol.foregroundColor,[qo.oddRowBackgroundColor]:Ol.backgroundColor,[qo.headerBackgroundColor]:Ol.backgroundColor,[qo.headerForegroundColor]:Ol.headerForegroundColor,[qo.selectedRowBackgroundColor]:Ol.rowHoverColor,[qo.rowHoverColor]:Ol.rowHoverColor,[qo.borderColor]:Ol.borderColor,[qo.rowBorderColor]:Ol.rowHoverColor,[qo.modalOverlayBackgroundColor]:Ol.backgroundColor,[qo.inputFocusBoxShadow]:Ol.headerForegroundColor,[qo.inputFocusBorderColor]:Ol.headerForegroundColor,[qo.headerColumnResizeHandleColor]:Ol.headerForegroundColor},Fl="ag-theme-genesis-rapid",Ll=s.css`
10671
+ ${Dl}
10672
+ ${ti(Fl,Nl)}
10668
10673
 
10669
- .${vl} {
10674
+ .${Fl} {
10670
10675
  ${ze()}
10671
10676
  }
10672
10677
 
10673
- .${vl} .ag-header {
10678
+ .${Fl} .ag-header {
10674
10679
  border-bottom-color: var(--rapid-ag-header-foreground-color);
10675
10680
  font-weight: bold;
10676
10681
  }
10677
10682
 
10678
- .${vl} .ag-root-wrapper {
10683
+ .${Fl} .ag-root-wrapper {
10679
10684
  border-radius: calc(var(--control-corner-radius) * 1px);
10680
10685
  }
10681
- `,fl="ag-theme-genesis-rapid-dark",wl=s.css`
10682
- ${hl}
10683
- ${Rn(fl,ml)}
10686
+ `,Ml="ag-theme-genesis-rapid-dark",$l=s.css`
10687
+ ${Dl}
10688
+ ${ti(Ml,Nl)}
10684
10689
 
10685
- .${fl} {
10690
+ .${Ml} {
10686
10691
  ${ze()}
10687
10692
  }
10688
10693
 
10689
- .${fl} .ag-header {
10694
+ .${Ml} .ag-header {
10690
10695
  border-bottom-color: var(--rapid-ag-header-foreground-color);
10691
10696
  font-weight: bold;
10692
10697
  }
10693
10698
 
10694
- .${fl} .ag-cell {
10699
+ .${Ml} .ag-cell {
10695
10700
  line-height: var(--ag-line-height, 32px);
10696
10701
  }
10697
10702
 
10698
- .${fl} .ag-root-wrapper {
10703
+ .${Ml} .ag-root-wrapper {
10699
10704
  border-radius: calc(var(--control-corner-radius) * 1px);
10700
10705
  }
10701
- `,yl=s.css`
10706
+ `,Rl=s.css`
10702
10707
  /* All the AG themes */
10703
- ${rl}
10708
+ ${vl}
10704
10709
 
10705
10710
  /* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
10706
- ${bl}
10707
- ${wl}
10708
- `,xl=tl,zl="ag-theme-genesis-rapid-dark";const kl=gl,Sl={zeroAgActionRenderer:Ni,zeroAgActionsMenuRenderer:$i,zeroAgBooleanRenderer:Bi,zeroAgTextRenderer:Ki,zeroAgSelectRenderer:tn,zeroAgDateEditor:ii,zeroAgMultiselectEditor:ci,zeroAgSelectEditor:bi,zeroAgNumberEditor:ki,zeroGridPro:class extends nl{constructor(){super(...arguments),this.theme=zl}themeChanged(e,a){(e||a===zl)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[jn.action]:Di,[jn.actionsMenu]:Mi,[jn.boolean]:Ui,[jn.selectEditor]:vi,[jn.numberEditor]:zi,[jn.multiselectEditor]:si,[jn.dateEditor]:oi};(this.theme===vl||this.theme===fl)&&(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:xl,styles:yl,shadowOptions:undefined},kl)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},Cl={foundationGridProActionRenderer:Oi,foundationGridProActionsMenuRenderer:Li,foundationAgBooleanRenderer:Pi,foundationAgTextRenderer:Zi,foundationAgTextFieldRenderer:Qi,foundationAgSelectRenderer:rn,foundationGridPro:dl,foundationSelectEditor:mi,foundationNumberEditor:xi,foundationDateEditor:ti,foundationMultiselectEditor:di,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Al,Tl=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Al||(Al={}));const Ol={Roboto:xe,"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'},Dl=Ol["Segoe UI"],Nl=s.css`
10711
+ ${Ll}
10712
+ ${$l}
10713
+
10714
+ .error {
10715
+ border-color: ${se.shortPink} !important;
10716
+ }
10717
+ `,jl=bl,Il="ag-theme-genesis-rapid-dark";const El=kl,Pl={zeroAgEditableRenderer:Bi,zeroAgActionRenderer:Ji,zeroAgActionsMenuRenderer:en,zeroAgBooleanRenderer:ln,zeroAgTextRenderer:fn,zeroAgSelectRenderer:kn,zeroAgDateEditor:pi,zeroAgMultiselectEditor:fi,zeroAgSelectEditor:Si,zeroAgNumberEditor:Ni,zeroAgStringEditor:ji,zeroGridPro:class extends xl{constructor(){super(...arguments),this.theme=Il}themeChanged(e,a){(e||a===Il)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[oi.action]:qi,[oi.actionsMenu]:Xi,[oi.boolean]:nn,[oi.editable]:Gi,[oi.selectEditor]:ki,[oi.numberEditor]:Di,[oi.multiselectEditor]:bi,[oi.dateEditor]:ci,[oi.stringEditor]:Ri};(this.theme===Fl||this.theme===Ml)&&(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:jl,styles:Rl,shadowOptions:undefined},El)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},Ul={foundationGridProActionRenderer:Wi,foundationGridProActionsMenuRenderer:Ki,foundationAgBooleanRenderer:on,foundationAgTextRenderer:bn,foundationAgTextFieldRenderer:un,foundationAgEditableRenderer:Ui,foundationAgSelectRenderer:zn,foundationGridPro:Sl,foundationSelectEditor:zi,foundationNumberEditor:Oi,foundationDateEditor:si,foundationMultiselectEditor:vi,foundationStringEditor:$i,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Gl,Bl=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Gl||(Gl={}));const _l={Roboto:xe,"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'},Hl=_l["Segoe UI"],Yl=s.css`
10709
10718
  ${(0,c.display)("block")} :host {
10710
10719
  width: 100%;
10711
10720
  display: inline-flex;
@@ -10837,7 +10846,7 @@
10837
10846
  alpha-button {
10838
10847
  margin: 0;
10839
10848
  }
10840
- `,Fl=s.html`
10849
+ `,Vl=s.html`
10841
10850
  <template>
10842
10851
  <div class="configuration">
10843
10852
  ${(0,s.when)((e=>!e.customDesignMode),s.html`
@@ -11045,7 +11054,7 @@
11045
11054
  </div>
11046
11055
  </div>
11047
11056
  ${(0,s.when)((e=>!e.customDesignMode),s.html`
11048
- <alpha-checkbox :checked="${(0,Gi.Z)((e=>e.preserveOptions),"boolean")}">
11057
+ <alpha-checkbox :checked="${(0,gn.Z)((e=>e.preserveOptions),"boolean")}">
11049
11058
  Preserve selected options when changing design systems
11050
11059
  </alpha-checkbox>
11051
11060
  `)}
@@ -11060,7 +11069,7 @@
11060
11069
  <slot></slot>
11061
11070
  </div>
11062
11071
  </template>
11063
- `,Ll=({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(Ol).find((a=>Ol[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Ml=Ll(Ae),$l={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},Rl=Ll(i.designTokens),jl={zero:{prefix:"zero",tokenDefaults:Ml,buttons:$l},alpha:{prefix:"alpha",tokenDefaults:Rl,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:$l}};let Il=class extends s.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Ml.luminance===p.StandardLuminance.DarkMode,this.luminance=Ml.luminance,this.neutralColor=Ml.neutralColor,this.accentColor=Ml.accentColor,this.bodyFont=Ml.bodyFont,this.density=Ml.density,this.borderRadius=Ml.borderRadius,this.strokeWidth=Ml.strokeWidth,this.designUnit=Ml.designUnit,this.baseFontSize=Ml.baseFontSize,this.baseLineHeight=Ml.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof c.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof p.Combobox||e.target instanceof p.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof c.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?p.StandardLuminance.DarkMode:p.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=Ll(a);jl.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Tl.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(jl[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Tl.__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:jl[this.ds].prefix,buttonAppearanceAccent:jl[this.ds].buttons.accent,buttonAppearanceNeutral:jl[this.ds].buttons.neutral,buttonAppearanceOutline:jl[this.ds].buttons.outline};this.$emit(Al.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(jl[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Ol[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(Al.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===p.StandardLuminance.DarkMode,s.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={},ye(),s.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Al.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Tl.__decorate)([(0,s.attr)({mode:"boolean",attribute:"custom-design-mode"})],Il.prototype,"customDesignMode",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"designSystems",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"ds",void 0),(0,Tl.__decorate)([s.attr],Il.prototype,"darkMode",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"neutralColor",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"accentColor",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"bodyFont",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"density",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"borderRadius",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"strokeWidth",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"designUnit",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"baseFontSize",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"baseLineHeight",void 0),(0,Tl.__decorate)([s.observable],Il.prototype,"preserveOptions",void 0),Il=(0,Tl.__decorate)([(0,s.customElement)({name:"design-system-editor",template:Fl,styles:Nl})],Il);const El=e=>{const a=(e=>{const a=(0,Me.parseColorHexRGB)(e);return a?p.SwatchRGB.from(a):null})(e);return a?p.PaletteRGB.create(a):null},Pl=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},Ul=(e,a)=>{const r=El(e.neutralColor);p.neutralPalette.setValueFor(a,r);const t=El(e.accentColor);p.accentPalette.setValueFor(a,t),p.baseLayerLuminance.setValueFor(a,e.luminance),p.density.setValueFor(a,e.density),p.controlCornerRadius.setValueFor(a,e.borderRadius),p.strokeWidth.setValueFor(a,e.strokeWidth),p.designUnit.setValueFor(a,e.designUnit),p.bodyFont.setValueFor(a,e.bodyFont),p.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),p.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),p.typeRampMinus1FontSize.setValueFor(a,Pl(p.typeRampBaseFontSize,we.Yd.minusOne,a)),p.typeRampMinus1LineHeight.setValueFor(a,Pl(p.typeRampBaseLineHeight,we.Yd.minusOne,a)),p.typeRampMinus2FontSize.setValueFor(a,Pl(p.typeRampBaseFontSize,we.Yd.minusTwo,a)),p.typeRampMinus2LineHeight.setValueFor(a,Pl(p.typeRampBaseLineHeight,we.Yd.minusTwo,a)),p.typeRampPlus1FontSize.setValueFor(a,Pl(p.typeRampBaseFontSize,we.Yd.plusOne,a)),p.typeRampPlus1LineHeight.setValueFor(a,Pl(p.typeRampBaseLineHeight,we.Yd.plusOne,a)),p.typeRampPlus2FontSize.setValueFor(a,Pl(p.typeRampBaseFontSize,we.Yd.plusTwo,a)),p.typeRampPlus2LineHeight.setValueFor(a,Pl(p.typeRampBaseLineHeight,we.Yd.plusTwo,a)),p.typeRampPlus3FontSize.setValueFor(a,Pl(p.typeRampBaseFontSize,we.Yd.plusThree,a)),p.typeRampPlus3LineHeight.setValueFor(a,Pl(p.typeRampBaseLineHeight,we.Yd.plusThree,a)),p.typeRampPlus4FontSize.setValueFor(a,Pl(p.typeRampBaseFontSize,we.Yd.plusFour,a)),p.typeRampPlus4LineHeight.setValueFor(a,Pl(p.typeRampBaseLineHeight,we.Yd.plusFour,a)),p.typeRampPlus5FontSize.setValueFor(a,Pl(p.typeRampBaseFontSize,we.Yd.plusFive,a)),p.typeRampPlus5LineHeight.setValueFor(a,Pl(p.typeRampBaseLineHeight,we.Yd.plusFive,a)),p.typeRampPlus6FontSize.setValueFor(a,Pl(p.typeRampBaseFontSize,we.Yd.plusSix,a)),p.typeRampPlus6LineHeight.setValueFor(a,Pl(p.typeRampBaseLineHeight,we.Yd.plusSix,a))},Bl=s.css`
11072
+ `,Ql=({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(_l).find((a=>_l[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Wl=Ql(Ae),ql={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},Jl=Ql(i.designTokens),Zl={zero:{prefix:"zero",tokenDefaults:Wl,buttons:ql},alpha:{prefix:"alpha",tokenDefaults:Jl,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:ql}};let Kl=class extends s.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Wl.luminance===p.StandardLuminance.DarkMode,this.luminance=Wl.luminance,this.neutralColor=Wl.neutralColor,this.accentColor=Wl.accentColor,this.bodyFont=Wl.bodyFont,this.density=Wl.density,this.borderRadius=Wl.borderRadius,this.strokeWidth=Wl.strokeWidth,this.designUnit=Wl.designUnit,this.baseFontSize=Wl.baseFontSize,this.baseLineHeight=Wl.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof c.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof p.Combobox||e.target instanceof p.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof c.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?p.StandardLuminance.DarkMode:p.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=Ql(a);Zl.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Bl.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(Zl[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Bl.__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:Zl[this.ds].prefix,buttonAppearanceAccent:Zl[this.ds].buttons.accent,buttonAppearanceNeutral:Zl[this.ds].buttons.neutral,buttonAppearanceOutline:Zl[this.ds].buttons.outline};this.$emit(Gl.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(Zl[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:_l[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(Gl.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===p.StandardLuminance.DarkMode,s.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={},ye(),s.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Gl.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Bl.__decorate)([(0,s.attr)({mode:"boolean",attribute:"custom-design-mode"})],Kl.prototype,"customDesignMode",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"designSystems",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"ds",void 0),(0,Bl.__decorate)([s.attr],Kl.prototype,"darkMode",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"neutralColor",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"accentColor",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"bodyFont",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"density",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"borderRadius",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"strokeWidth",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"designUnit",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"baseFontSize",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"baseLineHeight",void 0),(0,Bl.__decorate)([s.observable],Kl.prototype,"preserveOptions",void 0),Kl=(0,Bl.__decorate)([(0,s.customElement)({name:"design-system-editor",template:Vl,styles:Yl})],Kl);const Xl=e=>{const a=(e=>{const a=(0,Me.parseColorHexRGB)(e);return a?p.SwatchRGB.from(a):null})(e);return a?p.PaletteRGB.create(a):null},eg=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},ag=(e,a)=>{const r=Xl(e.neutralColor);p.neutralPalette.setValueFor(a,r);const t=Xl(e.accentColor);p.accentPalette.setValueFor(a,t),p.baseLayerLuminance.setValueFor(a,e.luminance),p.density.setValueFor(a,e.density),p.controlCornerRadius.setValueFor(a,e.borderRadius),p.strokeWidth.setValueFor(a,e.strokeWidth),p.designUnit.setValueFor(a,e.designUnit),p.bodyFont.setValueFor(a,e.bodyFont),p.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),p.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),p.typeRampMinus1FontSize.setValueFor(a,eg(p.typeRampBaseFontSize,we.Yd.minusOne,a)),p.typeRampMinus1LineHeight.setValueFor(a,eg(p.typeRampBaseLineHeight,we.Yd.minusOne,a)),p.typeRampMinus2FontSize.setValueFor(a,eg(p.typeRampBaseFontSize,we.Yd.minusTwo,a)),p.typeRampMinus2LineHeight.setValueFor(a,eg(p.typeRampBaseLineHeight,we.Yd.minusTwo,a)),p.typeRampPlus1FontSize.setValueFor(a,eg(p.typeRampBaseFontSize,we.Yd.plusOne,a)),p.typeRampPlus1LineHeight.setValueFor(a,eg(p.typeRampBaseLineHeight,we.Yd.plusOne,a)),p.typeRampPlus2FontSize.setValueFor(a,eg(p.typeRampBaseFontSize,we.Yd.plusTwo,a)),p.typeRampPlus2LineHeight.setValueFor(a,eg(p.typeRampBaseLineHeight,we.Yd.plusTwo,a)),p.typeRampPlus3FontSize.setValueFor(a,eg(p.typeRampBaseFontSize,we.Yd.plusThree,a)),p.typeRampPlus3LineHeight.setValueFor(a,eg(p.typeRampBaseLineHeight,we.Yd.plusThree,a)),p.typeRampPlus4FontSize.setValueFor(a,eg(p.typeRampBaseFontSize,we.Yd.plusFour,a)),p.typeRampPlus4LineHeight.setValueFor(a,eg(p.typeRampBaseLineHeight,we.Yd.plusFour,a)),p.typeRampPlus5FontSize.setValueFor(a,eg(p.typeRampBaseFontSize,we.Yd.plusFive,a)),p.typeRampPlus5LineHeight.setValueFor(a,eg(p.typeRampBaseLineHeight,we.Yd.plusFive,a)),p.typeRampPlus6FontSize.setValueFor(a,eg(p.typeRampBaseFontSize,we.Yd.plusSix,a)),p.typeRampPlus6LineHeight.setValueFor(a,eg(p.typeRampBaseLineHeight,we.Yd.plusSix,a))},rg=s.css`
11064
11073
  :host {
11065
11074
  background: var(--fill-color);
11066
11075
  color: var(--neutral-foreground-rest);
@@ -11103,7 +11112,7 @@
11103
11112
  zero-design-system-provider {
11104
11113
  display: inline;
11105
11114
  }
11106
- `,Gl=s.html`
11115
+ `,tg=s.html`
11107
11116
  ${e=>{return a=e.prefix,s.html`
11108
11117
  <template>
11109
11118
  <${a}-design-system-provider ${(0,s.ref)("provider")}>
@@ -11304,7 +11313,7 @@
11304
11313
  </${a}-design-system-provider>
11305
11314
  </template>
11306
11315
  `;var a}}
11307
- `;let _l=class extends s.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(Al.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Al.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setDialogEventListeners(),p.bodyFont.withDefault(Dl)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{Ul(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,s.DOM.queueUpdate((()=>{this.setDialogEventListeners()}))}};(0,Tl.__decorate)([s.observable],_l.prototype,"modal",void 0),(0,Tl.__decorate)([s.attr],_l.prototype,"prefix",void 0),(0,Tl.__decorate)([s.observable],_l.prototype,"buttonAppearanceAccent",void 0),(0,Tl.__decorate)([s.observable],_l.prototype,"buttonAppearanceNeutral",void 0),(0,Tl.__decorate)([s.observable],_l.prototype,"buttonAppearanceOutline",void 0),(0,Tl.__decorate)([s.observable],_l.prototype,"provider",void 0),_l=(0,Tl.__decorate)([(0,s.customElement)({name:"preview-components",template:Gl,styles:Bl})],_l);const Hl=s.css`
11316
+ `;let og=class extends s.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(Gl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Gl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setDialogEventListeners(),p.bodyFont.withDefault(Hl)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ag(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,s.DOM.queueUpdate((()=>{this.setDialogEventListeners()}))}};(0,Bl.__decorate)([s.observable],og.prototype,"modal",void 0),(0,Bl.__decorate)([s.attr],og.prototype,"prefix",void 0),(0,Bl.__decorate)([s.observable],og.prototype,"buttonAppearanceAccent",void 0),(0,Bl.__decorate)([s.observable],og.prototype,"buttonAppearanceNeutral",void 0),(0,Bl.__decorate)([s.observable],og.prototype,"buttonAppearanceOutline",void 0),(0,Bl.__decorate)([s.observable],og.prototype,"provider",void 0),og=(0,Bl.__decorate)([(0,s.customElement)({name:"preview-components",template:tg,styles:rg})],og);const ig=s.css`
11308
11317
  .export {
11309
11318
  display: flex;
11310
11319
  justify-content: center;
@@ -11315,7 +11324,7 @@
11315
11324
  display: flex;
11316
11325
  justify-content: space-between;
11317
11326
  }
11318
- `,Yl=s.html`
11327
+ `,ng=s.html`
11319
11328
  <template>
11320
11329
  <div class="export">
11321
11330
  <alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
@@ -11336,7 +11345,7 @@
11336
11345
  </alpha-modal>
11337
11346
  </div>
11338
11347
  </template>
11339
- `;let Vl=class extends s.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(Al.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Al.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,Tl.__decorate)([s.attr],Vl.prototype,"value",void 0),(0,Tl.__decorate)([s.attr],Vl.prototype,"tokensPath",void 0),Vl=(0,Tl.__decorate)([(0,s.customElement)({name:"design-system-export",template:Yl,styles:Hl})],Vl);const Ql=s.css`
11348
+ `;let lg=class extends s.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(Gl.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Gl.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,Bl.__decorate)([s.attr],lg.prototype,"value",void 0),(0,Bl.__decorate)([s.attr],lg.prototype,"tokensPath",void 0),lg=(0,Bl.__decorate)([(0,s.customElement)({name:"design-system-export",template:ng,styles:ig})],lg);const gg=s.css`
11340
11349
  .colors {
11341
11350
  display: flex;
11342
11351
  flex-wrap: wrap;
@@ -11349,23 +11358,23 @@
11349
11358
  flex-grow: 1;
11350
11359
  height: 20px;
11351
11360
  }
11352
- `,Wl=s.html`
11361
+ `,dg=s.html`
11353
11362
  <ul class="colors">
11354
11363
  ${(0,s.repeat)((e=>e.swatches),s.html`
11355
11364
  <li class="color" style="background-color: ${e=>e.toColorString()}"></li>
11356
11365
  `)}
11357
11366
  </ul>
11358
- `;let ql=class extends s.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){p[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=El(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Al.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Tl.__decorate)([s.observable],ql.prototype,"swatches",void 0),(0,Tl.__decorate)([s.attr],ql.prototype,"type",void 0),ql=(0,Tl.__decorate)([(0,s.customElement)({name:"color-palette",styles:Ql,template:Wl})],ql);const Jl=s.css`
11367
+ `;let sg=class extends s.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){p[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=Xl(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Gl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Bl.__decorate)([s.observable],sg.prototype,"swatches",void 0),(0,Bl.__decorate)([s.attr],sg.prototype,"type",void 0),sg=(0,Bl.__decorate)([(0,s.customElement)({name:"color-palette",styles:gg,template:dg})],sg);const cg=s.css`
11359
11368
  .preview {
11360
11369
  width: 40px;
11361
11370
  height: 40px;
11362
11371
  }
11363
- `,Zl=s.html`
11372
+ `,pg=s.html`
11364
11373
  <div
11365
11374
  class="preview"
11366
11375
  style="background-color: ${e=>p[e.tokenName].createCSS()}"
11367
11376
  ></div>
11368
- `;let Kl=class extends s.FASTElement{};(0,Tl.__decorate)([s.attr],Kl.prototype,"tokenName",void 0),Kl=(0,Tl.__decorate)([(0,s.customElement)({name:"color-token",styles:Jl,template:Zl})],Kl);const Xl=s.css`
11377
+ `;let ug=class extends s.FASTElement{};(0,Bl.__decorate)([s.attr],ug.prototype,"tokenName",void 0),ug=(0,Bl.__decorate)([(0,s.customElement)({name:"color-token",styles:cg,template:pg})],ug);const hg=s.css`
11369
11378
  .container {
11370
11379
  display: flex;
11371
11380
  width: 100%;
@@ -11413,7 +11422,7 @@
11413
11422
  .container > div:not(:last-child) {
11414
11423
  border-right: 1px solid #fafafa;
11415
11424
  }
11416
- `,eg=[{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"}]}]}],ag=s.html`
11425
+ `,mg=[{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"}]}]}],vg=s.html`
11417
11426
  <div class="row">
11418
11427
  <div
11419
11428
  class="preview"
@@ -11425,19 +11434,19 @@
11425
11434
  ${(e,a)=>p[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
11426
11435
  </div>
11427
11436
  </div>
11428
- `,rg=s.html`
11437
+ `,bg=s.html`
11429
11438
  <div class="container" ${(0,s.ref)("provider")}>
11430
- ${(0,s.repeat)((()=>eg),s.html`
11439
+ ${(0,s.repeat)((()=>mg),s.html`
11431
11440
  <div class="column">
11432
11441
  <h3 class="header-title">${e=>e.title}</h3>
11433
11442
  ${(0,s.repeat)((e=>e.subcategories),s.html`
11434
11443
  <h4>${e=>e.title}</h4>
11435
- ${(0,s.repeat)((e=>e.tokens),ag)}
11444
+ ${(0,s.repeat)((e=>e.tokens),vg)}
11436
11445
  `)}
11437
11446
  </div>
11438
11447
  `)}
11439
11448
  </div>
11440
- `;let tg=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Al.STYLES_CHANGED,(e=>{const a=e.detail;Ul(a,this.provider)}))}};(0,Tl.__decorate)([s.observable],tg.prototype,"provider",void 0),tg=(0,Tl.__decorate)([(0,s.customElement)({name:"color-tokens",template:rg,styles:Xl})],tg);const og=s.css`
11449
+ `;let fg=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Gl.STYLES_CHANGED,(e=>{const a=e.detail;ag(a,this.provider)}))}};(0,Bl.__decorate)([s.observable],fg.prototype,"provider",void 0),fg=(0,Bl.__decorate)([(0,s.customElement)({name:"color-tokens",template:bg,styles:hg})],fg);const wg=s.css`
11441
11450
  table {
11442
11451
  background: var(--neutral-fill-rest);
11443
11452
  color: var(--neutral-foreground-rest);
@@ -11446,7 +11455,7 @@
11446
11455
  th {
11447
11456
  text-align: left;
11448
11457
  }
11449
- `,ig=s.html`
11458
+ `,yg=s.html`
11450
11459
  <table ${(0,s.ref)("provider")} style="font-family: ${()=>p.bodyFont.createCSS()}">
11451
11460
  <colgroup>
11452
11461
  <col style="width: 15%;" />
@@ -11674,7 +11683,7 @@
11674
11683
  </tr>
11675
11684
  </tbody>
11676
11685
  </table>
11677
- `;let ng=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Al.STYLES_CHANGED,(e=>{const a=e.detail;Ul(a,this.provider)}))}};(0,Tl.__decorate)([s.observable],ng.prototype,"provider",void 0),ng=(0,Tl.__decorate)([(0,s.customElement)({name:"typography-tokens",template:ig,styles:og})],ng);const lg=s.css`
11686
+ `;let xg=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Gl.STYLES_CHANGED,(e=>{const a=e.detail;ag(a,this.provider)}))}};(0,Bl.__decorate)([s.observable],xg.prototype,"provider",void 0),xg=(0,Bl.__decorate)([(0,s.customElement)({name:"typography-tokens",template:yg,styles:wg})],xg);const zg=s.css`
11678
11687
  :host {
11679
11688
  background: var(--fill-color);
11680
11689
  color: var(--neutral-foreground-rest);
@@ -11690,7 +11699,7 @@
11690
11699
  margin-top: 24px;
11691
11700
  padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
11692
11701
  }
11693
- `,gg=s.html`
11702
+ `,kg=s.html`
11694
11703
  <template>
11695
11704
  <alpha-tabs>
11696
11705
  <alpha-tab slot="tab">Components</alpha-tab>
@@ -11719,7 +11728,7 @@
11719
11728
  </alpha-tab-panel>
11720
11729
  </alpha-tabs>
11721
11730
  </template>
11722
- `;let dg=class extends s.FASTElement{};dg=(0,Tl.__decorate)([(0,s.customElement)({name:"design-system-preview",template:gg,styles:lg})],dg);const sg={type:"VerticalLayout",dsPrefix:"zero",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"}]}]}}]},cg={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"]}}},pg={type:"VerticalLayout",dsPrefix:"zero",elements:[{type:"array",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"}]}}}]},ug={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"]}}}},hg=s.css`
11731
+ `;let Sg=class extends s.FASTElement{};Sg=(0,Bl.__decorate)([(0,s.customElement)({name:"design-system-preview",template:kg,styles:zg})],Sg);const Cg={type:"VerticalLayout",dsPrefix:"zero",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"}]}]}}]},Ag={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"]}}},Tg={type:"VerticalLayout",dsPrefix:"zero",elements:[{type:"array",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"}]}}}]},Og={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"]}}}},Dg=s.css`
11723
11732
  :host {
11724
11733
  background: var(--fill-color);
11725
11734
  color: var(--neutral-foreground-rest);
@@ -11750,7 +11759,7 @@
11750
11759
  zero-design-system-provider {
11751
11760
  display: inline;
11752
11761
  }
11753
- `,mg=s.html`
11762
+ `,Ng=s.html`
11754
11763
  ${e=>{return a=e.prefix,s.html`
11755
11764
  <template>
11756
11765
  <${a}-design-system-provider ${(0,s.ref)("provider")}>
@@ -11772,7 +11781,7 @@
11772
11781
  </${a}-design-system-provider>
11773
11782
  </template>
11774
11783
  `;var a}}
11775
- `;let vg=class extends s.FASTElement{constructor(){super(...arguments),this.jsonSchema=cg,this.uischema=sg,this.jsonSchemaArray=ug,this.uiSchemaArray=pg,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(Al.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Al.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{p.bodyFont.withDefault(Dl)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{Ul(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.uischema.dsPrefix=e.detail.prefix,this.uiSchemaArray.dsPrefix=e.detail.prefix}};(0,Tl.__decorate)([s.observable],vg.prototype,"jsonSchema",void 0),(0,Tl.__decorate)([s.observable],vg.prototype,"uischema",void 0),(0,Tl.__decorate)([s.observable],vg.prototype,"jsonSchemaArray",void 0),(0,Tl.__decorate)([s.observable],vg.prototype,"uiSchemaArray",void 0),(0,Tl.__decorate)([s.attr],vg.prototype,"prefix",void 0),(0,Tl.__decorate)([s.observable],vg.prototype,"provider",void 0),(0,Tl.__decorate)([s.observable],vg.prototype,"editedEntity",void 0),(0,Tl.__decorate)([s.observable],vg.prototype,"editedEntityArray",void 0),vg=(0,Tl.__decorate)([(0,s.customElement)({name:"preview-form",template:mg,styles:hg})],vg);const bg=s.css`
11784
+ `;let Fg=class extends s.FASTElement{constructor(){super(...arguments),this.jsonSchema=Ag,this.uischema=Cg,this.jsonSchemaArray=Og,this.uiSchemaArray=Tg,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(Gl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Gl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{p.bodyFont.withDefault(Hl)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ag(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.uischema.dsPrefix=e.detail.prefix,this.uiSchemaArray.dsPrefix=e.detail.prefix}};(0,Bl.__decorate)([s.observable],Fg.prototype,"jsonSchema",void 0),(0,Bl.__decorate)([s.observable],Fg.prototype,"uischema",void 0),(0,Bl.__decorate)([s.observable],Fg.prototype,"jsonSchemaArray",void 0),(0,Bl.__decorate)([s.observable],Fg.prototype,"uiSchemaArray",void 0),(0,Bl.__decorate)([s.attr],Fg.prototype,"prefix",void 0),(0,Bl.__decorate)([s.observable],Fg.prototype,"provider",void 0),(0,Bl.__decorate)([s.observable],Fg.prototype,"editedEntity",void 0),(0,Bl.__decorate)([s.observable],Fg.prototype,"editedEntityArray",void 0),Fg=(0,Bl.__decorate)([(0,s.customElement)({name:"preview-form",template:Ng,styles:Dg})],Fg);const Lg=s.css`
11776
11785
  :host {
11777
11786
  background: var(--fill-color);
11778
11787
  color: var(--neutral-foreground-rest);
@@ -11787,7 +11796,7 @@
11787
11796
  .grid-height {
11788
11797
  height: 450px;
11789
11798
  }
11790
- `,fg=s.html`
11799
+ `,Mg=s.html`
11791
11800
  ${e=>{return a=e.prefix,s.html`
11792
11801
  <template>
11793
11802
  <${a}-design-system-provider ${(0,s.ref)("provider")}>
@@ -11797,5 +11806,5 @@
11797
11806
  </${a}-design-system-provider>
11798
11807
  </template>
11799
11808
  `;var a}}
11800
- `;let wg=class extends s.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(Al.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Al.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setGridOptions(),p.bodyFont.withDefault(Dl)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{Ul(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,s.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Tl.__decorate)([s.observable],wg.prototype,"grid",void 0),(0,Tl.__decorate)([s.attr],wg.prototype,"prefix",void 0),(0,Tl.__decorate)([s.observable],wg.prototype,"provider",void 0),(0,Tl.__decorate)([s.observable],wg.prototype,"rowData",void 0),(0,Tl.__decorate)([s.observable],wg.prototype,"columnDefs",void 0),(0,Tl.__decorate)([s.observable],wg.prototype,"gridOptions",void 0),wg=(0,Tl.__decorate)([(0,s.customElement)({name:"preview-grid",template:fg,styles:bg})],wg),((e,a="zero")=>{e&&(0,$.provideTokens)(t,o,e);const r=c.DesignSystem.getOrCreate(e).withPrefix(a);return(0,$.createDesignSystemProxy)(r)})().register(Wo,Sl),(0,i.provideDesignSystem)().register(i.baseComponents,Cl)}}]);
11801
- //# sourceMappingURL=160.7822cd0b4117bf721b589f2a4e13278c.js.map
11809
+ `;let $g=class extends s.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(Gl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Gl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setGridOptions(),p.bodyFont.withDefault(Hl)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ag(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,s.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Bl.__decorate)([s.observable],$g.prototype,"grid",void 0),(0,Bl.__decorate)([s.attr],$g.prototype,"prefix",void 0),(0,Bl.__decorate)([s.observable],$g.prototype,"provider",void 0),(0,Bl.__decorate)([s.observable],$g.prototype,"rowData",void 0),(0,Bl.__decorate)([s.observable],$g.prototype,"columnDefs",void 0),(0,Bl.__decorate)([s.observable],$g.prototype,"gridOptions",void 0),$g=(0,Bl.__decorate)([(0,s.customElement)({name:"preview-grid",template:Mg,styles:Lg})],$g),((e,a="zero")=>{e&&(0,$.provideTokens)(t,o,e);const r=c.DesignSystem.getOrCreate(e).withPrefix(a);return(0,$.createDesignSystemProxy)(r)})().register(Wo,Pl),(0,i.provideDesignSystem)().register(i.baseComponents,Ul)}}]);
11810
+ //# sourceMappingURL=582.e7d6c5a91d044bfd7c78deb4eb5d3c47.js.map