@genesislcap/design-system-configurator 14.100.1 → 14.101.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.
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[721],{41721:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>ul,ColorToken:()=>vl,ColorTokens:()=>xl,DesignSystemEditor:()=>al,DesignSystemExport:()=>sl,DesignSystemPreview:()=>Tl,EventName:()=>Hn,PreviewComponents:()=>ll,PreviewForm:()=>Rl,PreviewGrid:()=>Il,TypographyTokens:()=>Sl,defaultBodyFont:()=>Qn,fontFamilies:()=>Vn});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:()=>se,baseLayerLuminanceValue:()=>pe,bodyFontValue:()=>ze,controlCornerRadiusValue:()=>me,densityValue:()=>ve,designTokens:()=>Ce,designUnitValue:()=>be,directionValue:()=>ue,neutralPaletteValue:()=>ce,strokeWidthValue:()=>he,typeRampBaseFontSizeValue:()=>ke,typeRampBaseLineHeightValue:()=>Se});var i=r(46656),n=r(92592),l=r(89074),g=r(13168),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([[209],{93209:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>wl,ColorToken:()=>zl,ColorTokens:()=>Tl,DesignSystemEditor:()=>ll,DesignSystemExport:()=>vl,DesignSystemPreview:()=>Ml,EventName:()=>Jn,PreviewComponents:()=>ul,PreviewForm:()=>Ul,PreviewGrid:()=>_l,TypographyTokens:()=>Fl,defaultBodyFont:()=>Xn,fontFamilies:()=>Kn});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:()=>se,baseLayerLuminanceValue:()=>pe,bodyFontValue:()=>ze,controlCornerRadiusValue:()=>me,densityValue:()=>ve,designTokens:()=>Ce,designUnitValue:()=>be,directionValue:()=>ue,neutralPaletteValue:()=>ce,strokeWidthValue:()=>he,typeRampBaseFontSizeValue:()=>ke,typeRampBaseLineHeightValue:()=>Se});var i=r(37664),n=r(92592),l=r(89074),g=r(42746),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;
@@ -210,7 +210,7 @@
210
210
  </slot>
211
211
  `)}
212
212
  </template>
213
- `,M=(0,d.or)(d.KmX,(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,d.ndu)(e,"boolean")))))),N={renderer:s.html`
213
+ `,N=(0,d.or)(d.KmX,(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,d.ndu)(e,"boolean")))))),M={renderer:s.html`
214
214
  ${e=>((e="zero")=>s.html`
215
215
  <template>
216
216
  <control-wrapper
@@ -230,7 +230,7 @@
230
230
  </control-wrapper>
231
231
  </template>
232
232
  `)(e.prefix)}
233
- `,tester:(0,d.yMz)(3,M),mapper:d.xq9};var R=r(90674);const $=e=>a=>{if(!a||!(0,d.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},j=(0,d.xDy)($("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")))))));R.MultiselectDatasource;const I={renderer:s.html`
233
+ `,tester:(0,d.yMz)(3,N),mapper:d.xq9};var R=r(82883);const $=e=>a=>{if(!a||!(0,d.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},j=(0,d.xDy)($("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")))))));R.MultiselectDatasource;const I={renderer:s.html`
234
234
  ${e=>((e="zero")=>s.html`
235
235
  <template>
236
236
  <control-wrapper
@@ -470,7 +470,7 @@
470
470
  </control-wrapper>
471
471
  </template>
472
472
  `)(e.prefix)}
473
- `,ae=(0,g.createLogger)("foundation-form"),re={renderer:ee,tester:(0,d.yMz)(2,d.Wdb),mapper:d.xq9},te=[{renderer:ee,tester:(0,d.yMz)(1,d.DRl),mapper:d.xq9},re,N,Y,V,Q,W,J,q,X,I,G,E,U,_];let oe=class extends c.FoundationElement{constructor(){super(...arguments),this.renderers=te,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,ae.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(ae.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){ae.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 ie,ne,le,ge,de;(0,n.__decorate)([s.attr],oe.prototype,"resourceName",void 0),(0,n.__decorate)([s.observable],oe.prototype,"uischema",void 0),(0,n.__decorate)([s.observable],oe.prototype,"renderers",void 0),(0,n.__decorate)([s.observable],oe.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],oe.prototype,"connect",void 0),(0,n.__decorate)([s.observable],oe.prototype,"data",void 0),(0,n.__decorate)([s.observable],oe.prototype,"submitting",void 0),(0,n.__decorate)([s.observable],oe.prototype,"submitted",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],oe.prototype,"readonly",void 0),oe=(0,n.__decorate)([(0,s.customElement)({name:"foundation-form",template:L,styles:h})],oe),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ie||(ie={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(ne||(ne={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(le||(le={})),function(e){e.grey="#7c909b"}(ge||(ge={})),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"}(de||(de={}));const se=(0,R.paletteFromHex)(ne.blue),ce=(0,R.paletteFromHex)(ge.grey),pe=p.StandardLuminance.DarkMode;const ue=r(5598).N.ltr,he=p.strokeWidth.getValueFor(p.strokeWidth.appliedTo[0]),me=4,ve=p.density.getValueFor(p.density.appliedTo[0]),be=4;var fe=r(47823);const we=()=>{(0,fe.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")},ye='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',xe=(e=fe.Hd.Normal,a=fe.U9.Regular)=>(0,fe.py)(ye,e,a),ze=ye,ke=p.typeRampBaseFontSize.getValueFor(p.typeRampBaseFontSize.appliedTo[0]),Se=p.typeRampBaseLineHeight.getValueFor(p.typeRampBaseLineHeight.appliedTo[0]),Ce={design_tokens:{color:{accent:{$value:se.source.toColorString(),$type:"color"},neutral:{$value:ce.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:ze,$type:"fontFamily"}},typography:{baseFontSize:{$value:ke,$type:"dimension"},baseLineHeight:{$value:Se,$type:"dimension"}},mode:{luminance:{$value:pe,$type:"number"}},style:{density:{$value:ve,$type:"number"},borderRadius:{$value:me,$type:"number"},strokeWidth:{$value:he,$type:"number"}},space:{designUnit:{$value:be,$type:"number"}}}};class Ae extends R.Accordion{}const Te=Ae.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,R.foundationAccordionTemplate)(e,a),styles:(e,a)=>s.css`
473
+ `,ae=(0,g.createLogger)("foundation-form"),re={renderer:ee,tester:(0,d.yMz)(2,d.Wdb),mapper:d.xq9},te=[{renderer:ee,tester:(0,d.yMz)(1,d.DRl),mapper:d.xq9},re,M,Y,V,Q,W,J,q,X,I,G,E,U,_];let oe=class extends c.FoundationElement{constructor(){super(...arguments),this.renderers=te,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,ae.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(ae.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){ae.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 ie,ne,le,ge,de;(0,n.__decorate)([s.attr],oe.prototype,"resourceName",void 0),(0,n.__decorate)([s.observable],oe.prototype,"uischema",void 0),(0,n.__decorate)([s.observable],oe.prototype,"renderers",void 0),(0,n.__decorate)([s.observable],oe.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],oe.prototype,"connect",void 0),(0,n.__decorate)([s.observable],oe.prototype,"data",void 0),(0,n.__decorate)([s.observable],oe.prototype,"submitting",void 0),(0,n.__decorate)([s.observable],oe.prototype,"submitted",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],oe.prototype,"readonly",void 0),oe=(0,n.__decorate)([(0,s.customElement)({name:"foundation-form",template:L,styles:h})],oe),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ie||(ie={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(ne||(ne={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(le||(le={})),function(e){e.grey="#7c909b"}(ge||(ge={})),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"}(de||(de={}));const se=(0,R.paletteFromHex)(ne.blue),ce=(0,R.paletteFromHex)(ge.grey),pe=p.StandardLuminance.DarkMode;const ue=r(5598).N.ltr,he=p.strokeWidth.getValueFor(p.strokeWidth.appliedTo[0]),me=4,ve=p.density.getValueFor(p.density.appliedTo[0]),be=4;var fe=r(47823);const we=()=>{(0,fe.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")},ye='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',xe=(e=fe.Hd.Normal,a=fe.U9.Regular)=>(0,fe.py)(ye,e,a),ze=ye,ke=p.typeRampBaseFontSize.getValueFor(p.typeRampBaseFontSize.appliedTo[0]),Se=p.typeRampBaseLineHeight.getValueFor(p.typeRampBaseLineHeight.appliedTo[0]),Ce={design_tokens:{color:{accent:{$value:se.source.toColorString(),$type:"color"},neutral:{$value:ce.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:ze,$type:"fontFamily"}},typography:{baseFontSize:{$value:ke,$type:"dimension"},baseLineHeight:{$value:Se,$type:"dimension"}},mode:{luminance:{$value:pe,$type:"number"}},style:{density:{$value:ve,$type:"number"},borderRadius:{$value:me,$type:"number"},strokeWidth:{$value:he,$type:"number"}},space:{designUnit:{$value:be,$type:"number"}}}};class Ae extends R.Accordion{}const Te=Ae.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,R.foundationAccordionTemplate)(e,a),styles:(e,a)=>s.css`
474
474
  ${(0,R.foundationAccordionStyles)(e,a)}
475
475
  `,shadowOptions:R.foundationAccordionShadowOptions},R.defaultAccordionConfig));class De extends R.AccordionItem{}const Oe=De.compose(Object.assign({baseName:"accordion-item",template:(e,a)=>(0,R.foundationAccordionItemTemplate)(e,a),styles:(e,a)=>s.css`
476
476
  ${(0,R.foundationAccordionItemStyles)(e,a)};
@@ -481,7 +481,7 @@
481
481
  }
482
482
 
483
483
  ${(0,R.actionsMenuBaseStyles)(e,a)}
484
- `,template:R.foundationActionsMenuTemplate});var Me=r(82694);const Ne=(e,a=1)=>new Me.ColorRGBA64(e.r,e.g,e.b,a).toStringWebRGBA(),Re=(0,Me.parseColorHexRGB)(ie.white),$e=(e=1)=>Ne(Re,e),je=((0,Me.parseColorHexRGB)(ie.black),(0,Me.parseColorHexRGB)("#585858")),Ie=(p.SwatchRGB.create(je.r,je.g,je.b),(0,Me.parseColorHexRGB)("#202126")),Ee=p.SwatchRGB.create(Ie.r,Ie.g,Ie.b),Pe=(p.PaletteRGB.from(Ee),(0,Me.parseColorHexRGB)(ne.blue)),Ue=(e=1)=>Ne(Pe,e),Be=p.SwatchRGB.create(Pe.r,Pe.g,Pe.b),Ge=(p.PaletteRGB.from(Be),(0,Me.parseColorHexRGB)(ne.purple)),_e=(e=1)=>Ne(Ge,e),He=(0,Me.parseColorHexRGB)(le.orange),Ye=(e=1)=>Ne(He,e),Ve=(0,Me.parseColorHexRGB)(le.teal),Qe=(e=1)=>Ne(Ve,e),We=((0,Me.parseColorHexRGB)(de.longGreen),(0,Me.parseColorHexRGB)(de.chartPink),(0,Me.parseColorHexRGB)(de.warningYellow)),qe=(0,Me.parseColorHexRGB)(de.chartPink),Je=(e=1)=>Ne(qe,e);function Ze(e,a){return new c.PropertyStyleSheetBehavior("appearance",e,a)}const Ke=.3,Xe=.1,ea=.5,aa=s.css`
484
+ `,template:R.foundationActionsMenuTemplate});var Ne=r(82694);const Me=(e,a=1)=>new Ne.ColorRGBA64(e.r,e.g,e.b,a).toStringWebRGBA(),Re=(0,Ne.parseColorHexRGB)(ie.white),$e=(e=1)=>Me(Re,e),je=((0,Ne.parseColorHexRGB)(ie.black),(0,Ne.parseColorHexRGB)("#585858")),Ie=(p.SwatchRGB.create(je.r,je.g,je.b),(0,Ne.parseColorHexRGB)("#202126")),Ee=p.SwatchRGB.create(Ie.r,Ie.g,Ie.b),Pe=(p.PaletteRGB.from(Ee),(0,Ne.parseColorHexRGB)(ne.blue)),Ue=(e=1)=>Me(Pe,e),Be=p.SwatchRGB.create(Pe.r,Pe.g,Pe.b),Ge=(p.PaletteRGB.from(Be),(0,Ne.parseColorHexRGB)(ne.purple)),_e=(e=1)=>Me(Ge,e),He=(0,Ne.parseColorHexRGB)(le.orange),Ye=(e=1)=>Me(He,e),Ve=(0,Ne.parseColorHexRGB)(le.teal),Qe=(e=1)=>Me(Ve,e),We=((0,Ne.parseColorHexRGB)(de.longGreen),(0,Ne.parseColorHexRGB)(de.chartPink),(0,Ne.parseColorHexRGB)(de.warningYellow)),qe=(0,Ne.parseColorHexRGB)(de.chartPink),Je=(e=1)=>Me(qe,e);function Ze(e,a){return new c.PropertyStyleSheetBehavior("appearance",e,a)}const Ke=.3,Xe=.1,ea=.5,aa=s.css`
485
485
  :host([appearance='primary-blue']) {
486
486
  background: ${Ue(Ke)};
487
487
  border: 1px solid ${ne.blue};
@@ -732,13 +732,13 @@
732
732
  }
733
733
  `,shadowOptions:R.foundationBreadcrumbItemShadowOptions},R.defaultBreadcrumbItemConfig));class Ta extends R.Button{}const Da=Ta.compose(Object.assign({baseName:"button",template:(e,a)=>(0,R.foundationButtonTemplate)(e,a),styles:sa,shadowOptions:R.foundationButtonShadowOptions},R.defaultButtonConfig));class Oa extends R.Calendar{}const Fa=Oa.compose(Object.assign({baseName:"calendar",template:(e,a)=>(0,R.foundationCalendarTemplate)(e,a),styles:()=>s.css`
734
734
  ${(0,R.foundationCalendarStyles)()}
735
- `,shadowOptions:R.foundationCalendarShadowOptions},R.defaultCalendarConfig));class La extends R.Card{}const Ma=La.compose(Object.assign({baseName:"card",template:(e,a)=>(0,R.foundationCardTemplate)(e,a),styles:(e,a)=>s.css`
735
+ `,shadowOptions:R.foundationCalendarShadowOptions},R.defaultCalendarConfig));class La extends R.Card{}const Na=La.compose(Object.assign({baseName:"card",template:(e,a)=>(0,R.foundationCardTemplate)(e,a),styles:(e,a)=>s.css`
736
736
  ${(0,R.foundationCardStyles)(e,a)}
737
737
  :host {
738
738
  background-color: var(--zero-card-fill-color, var(--neutral-layer-2));
739
739
  color: ${p.neutralForegroundRest};
740
740
  }
741
- `,shadowOptions:R.foundationCardShadowOptions},R.defaultCardConfig));class Na extends R.Checkbox{}const Ra=Na.compose(Object.assign({baseName:"checkbox",template:(e,a)=>(0,R.foundationCheckboxTemplate)(e,a),styles:(e,a)=>s.css`
741
+ `,shadowOptions:R.foundationCardShadowOptions},R.defaultCardConfig));class Ma extends R.Checkbox{}const Ra=Ma.compose(Object.assign({baseName:"checkbox",template:(e,a)=>(0,R.foundationCheckboxTemplate)(e,a),styles:(e,a)=>s.css`
742
742
  ${(0,R.foundationCheckboxStyles)(e,a)}
743
743
  :host {
744
744
  --primary-gradient-angle: -113.5deg;
@@ -758,7 +758,7 @@
758
758
  box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;
759
759
  border-radius: calc(var(--control-corner-radius) * 1px);
760
760
  }
761
- `,shadowOptions:R.foundationCheckboxShadowOptions},R.defaultCheckboxConfig)),$a=(0,Me.parseColorHexRGB)("#F1F1F1"),ja=Ne($a,1),Ia=(0,Me.parseColorHexRGB)("#879BA6"),Ea=Ne(Ia,.06),Pa=(0,Me.parseColorHexRGB)("#879BA6"),Ua=Ne(Pa,1),Ba=(0,Me.parseColorHexRGB)("#121212"),Ga=Ne(Ba,1),_a=(0,Me.parseColorHexRGB)("#2e3339"),Ha=Ne(_a,1);var Ya;!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"}(Ya||(Ya={}));Object.values(Ya);class Va extends R.Combobox{}const Qa=Va.compose(Object.assign({baseName:"combobox",template:(e,a)=>(0,R.foundationComboboxTemplate)(e,a),styles:(e,a)=>s.css`
761
+ `,shadowOptions:R.foundationCheckboxShadowOptions},R.defaultCheckboxConfig)),$a=(0,Ne.parseColorHexRGB)("#F1F1F1"),ja=Me($a,1),Ia=(0,Ne.parseColorHexRGB)("#879BA6"),Ea=Me(Ia,.06),Pa=(0,Ne.parseColorHexRGB)("#879BA6"),Ua=Me(Pa,1),Ba=(0,Ne.parseColorHexRGB)("#121212"),Ga=Me(Ba,1),_a=(0,Ne.parseColorHexRGB)("#2e3339"),Ha=Me(_a,1);var Ya;!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"}(Ya||(Ya={}));Object.values(Ya);class Va extends R.Combobox{}const Qa=Va.compose(Object.assign({baseName:"combobox",template:(e,a)=>(0,R.foundationComboboxTemplate)(e,a),styles:(e,a)=>s.css`
762
762
  ${(0,R.foundationComboboxStyles)(e,a)}
763
763
  :host {
764
764
  --primary-gradient-angle: -113.5deg;
@@ -905,7 +905,7 @@
905
905
  color: ${p.neutralForegroundRest};
906
906
  ${xe()}
907
907
  }
908
- `}}),dr=(0,Me.parseColorHexRGB)("#121212"),sr=Ne(dr,1),cr=s.css`
908
+ `}}),dr=(0,Ne.parseColorHexRGB)("#121212"),sr=Me(dr,1),cr=s.css`
909
909
  ${R.foundationDialogStyles}
910
910
  :host {
911
911
  --dialog-background: ${p.neutralLayer2};
@@ -999,9 +999,9 @@
999
999
  background-color: var(--neutral-color);
1000
1000
  border: 3px solid rgb(31 33 38);
1001
1001
  }
1002
- `,Mr=s.html`
1002
+ `,Nr=s.html`
1003
1003
  ${(0,R.getPrefixedFileUpload)("zero")}
1004
- `,Nr=R.defaultFileUploadConfig,Rr=R.foundationFileUploadShadowOptions;class $r extends R.FileUpload{}const jr=$r.compose(Object.assign({baseName:"file-upload",shadowOptions:Rr,styles:Lr,template:Mr},Nr)),Ir=s.html`
1004
+ `,Mr=R.defaultFileUploadConfig,Rr=R.foundationFileUploadShadowOptions;class $r extends R.FileUpload{}const jr=$r.compose(Object.assign({baseName:"file-upload",shadowOptions:Rr,styles:Lr,template:Nr},Mr)),Ir=s.html`
1005
1005
  ${(0,R.getPrefixedFilterTemplate)("zero")}
1006
1006
  `;class Er extends R.Filter{}const Pr=Er.compose({baseName:"filter",template:Ir,styles:R.foundationFilterStyles}),Ur=s.html`
1007
1007
  ${(0,R.filterBarTemplate)("zero")}
@@ -1170,7 +1170,7 @@
1170
1170
  }
1171
1171
  `,At=s.html`
1172
1172
  ${(0,R.getPrefixedMultiselect)("zero")}
1173
- `;class Tt extends R.Multiselect{}const Dt=R.defaultMultiselectConfig,Ot=R.foundationMultiselectShadowOptions,Ft=Tt.compose(Object.assign({baseName:"multiselect",template:At,styles:Ct,shadowOptions:Ot},Dt));class Lt extends R.NotificationListener{}const Mt=Lt.compose({baseName:"notification-listener",template:R.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}}),Nt=(e,a)=>s.css`
1173
+ `;class Tt extends R.Multiselect{}const Dt=R.defaultMultiselectConfig,Ot=R.foundationMultiselectShadowOptions,Ft=Tt.compose(Object.assign({baseName:"multiselect",template:At,styles:Ct,shadowOptions:Ot},Dt));class Lt extends R.NotificationListener{}const Nt=Lt.compose({baseName:"notification-listener",template:R.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}}),Mt=(e,a)=>s.css`
1174
1174
  ${(0,R.foundationTextFieldStyles)(e,a)}
1175
1175
  :host {
1176
1176
  --primary-gradient-angle: -113.5deg;
@@ -1222,7 +1222,7 @@
1222
1222
  :host .root {
1223
1223
  --focus-stroke-outer: transparent;
1224
1224
  }
1225
- ${Nt(e,a)}
1225
+ ${Mt(e,a)}
1226
1226
  `,shadowOptions:It},$t));class Pt extends R.Progress{}const Ut=Pt.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,R.foundationProgressTemplate)(e,a),styles:(e,a)=>s.css`
1227
1227
  ${(0,R.foundationProgressStyles)(e,a)}
1228
1228
  :host([appearance="secondary-teal"]) {
@@ -1653,7 +1653,7 @@
1653
1653
  color: ${Ua};
1654
1654
  margin: calc(var(--design-unit) * 2px) 0;
1655
1655
  }
1656
- `,shadowOptions:R.foundationTextAreaShadowOptions},R.defaultTextAreaConfig));class zo extends R.TextField{}const ko=zo.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,R.foundationTextFieldTemplate)(e,a),styles:Nt,shadowOptions:R.foundationTextFieldShadowOptions},R.defaultTextFieldConfig)),So=s.css`
1656
+ `,shadowOptions:R.foundationTextAreaShadowOptions},R.defaultTextAreaConfig));class zo extends R.TextField{}const ko=zo.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,R.foundationTextFieldTemplate)(e,a),styles:Mt,shadowOptions:R.foundationTextFieldShadowOptions},R.defaultTextFieldConfig)),So=s.css`
1657
1657
  ${R.foundationToastStyles}
1658
1658
  .toast {
1659
1659
  border: calc(var(--stroke-width) * 1px) solid ${p.neutralLayer3};
@@ -1673,7 +1673,7 @@
1673
1673
  }
1674
1674
 
1675
1675
  :host([notify='critical']) .toast::after {
1676
- background-color: ${((e=1)=>Ne(We,e))(1)};
1676
+ background-color: ${((e=1)=>Me(We,e))(1)};
1677
1677
  }
1678
1678
 
1679
1679
  :host([notify='serious']) .toast::after {
@@ -1681,9 +1681,9 @@
1681
1681
  }
1682
1682
  `,Co=R.defaultToastConfig,Ao=R.foundationToastShadowOptions;class To extends R.Toast{}const Do=To.compose(Object.assign({baseName:"toast",shadowOptions:Ao,styles:So,template:R.foundationToastTemplate},Co));class Oo extends R.Toolbar{}const Fo=Oo.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,R.foundationToolbarTemplate)(e,a),styles:(e,a)=>s.css`
1683
1683
  ${(0,R.foundationToolbarStyles)(e,a)}
1684
- `,shadowOptions:R.foundationToolbarShadowOptions},R.defaultToolbarConfig));class Lo extends R.Tooltip{}const Mo=Lo.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,R.foundationTooltipTemplate)(e,a),styles:(e,a)=>s.css`
1684
+ `,shadowOptions:R.foundationToolbarShadowOptions},R.defaultToolbarConfig));class Lo extends R.Tooltip{}const No=Lo.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,R.foundationTooltipTemplate)(e,a),styles:(e,a)=>s.css`
1685
1685
  ${(0,R.foundationTooltipStyles)(e,a)}
1686
- `,shadowOptions:R.foundationTooltipShadowOptions},R.defaultTooltipConfig));class No extends R.TreeItem{}const Ro=No.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,R.foundationTreeItemTemplate)(e,a),styles:(e,a)=>s.css`
1686
+ `,shadowOptions:R.foundationTooltipShadowOptions},R.defaultTooltipConfig));class Mo extends R.TreeItem{}const Ro=Mo.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,R.foundationTreeItemTemplate)(e,a),styles:(e,a)=>s.css`
1687
1687
  ${(0,R.foundationTreeItemStyles)(e,a)}
1688
1688
  :host {
1689
1689
  --primary-gradient-angle: -113.5deg;
@@ -1715,7 +1715,7 @@
1715
1715
  ${(0,R.foundationTreeViewStyles)(e,a)}
1716
1716
  `,shadowOptions:R.foundationTreeViewShadowOptions},R.defaultTreeViewConfig)),Io=s.html`
1717
1717
  ${(0,R.getPrefixedUrlInput)("zero")}
1718
- `;class Eo extends R.UrlInput{}const Po={zeroAccordion:Te,zeroAccordionItem:Oe,zeroActionsMenu:Le,zeroAnchor:pa,zeroAnchoredRegion:ha,zeroAvatar:va,zeroBadge:fa,zeroBanner:za,zeroBreadcrumbItem:Aa,zeroBreadcrumb:Sa,zeroButton:Da,zeroCalendar:Fa,zeroCard:Ma,zeroCheckbox:Ra,zeroCombobox:Qa,zeroConnectionIndicator:qa,zeroDataGrid:Xa,zeroDesignSystemProvider:gr,zeroDialog:vr,zeroDatePicker:rr,zeroDisclosure:fr,zeroDivider:yr,zeroDropdownMenu:zr,zeroErrorBoundary:Dr,zeroNotificationListener:Mt,zeroErrorBanner:Ar,zeroErrorDialog:Fr,zeroFileUpload:jr,zeroFilter:Pr,zeroFilterBar:Gr,zeroFlexLayout:Hr,zeroFlipper:Vr,zeroFlyout:Kr,zeroGridLayout:et,zeroGridLayoutItem:rt,zeroHorizontalScroll:ot,zeroIcon:gt,zeroListbox:st,zeroListboxOption:pt,zeroMenu:mt,zeroMenuItem:ft,zeroModal:St,zeroMultiselect:Ft,zeroNumberField:Et,zeroProgress:Ut,zeroProgressRing:_t,zeroRadio:Yt,zeroRadioGroup:Qt,zeroSegmentedControl:qt,zeroSegmentedItem:Zt,zeroSelect:Xt,zeroSkeleton:ao,zeroSlider:to,zeroSliderLabel:io,zeroSnackbar:co,zeroSwitch:uo,zeroTab:mo,zeroTabPanel:bo,zeroTabs:wo,zeroTextArea:xo,zeroTextField:ko,zeroToast:Do,zeroToolbar:Fo,zeroTooltip:Mo,zeroTreeItem:Ro,zeroTreeView:jo,zeroUrlInput:Eo.compose(Object.assign({baseName:"url-input",template:Io,styles:(e,a)=>s.css`
1718
+ `;class Eo extends R.UrlInput{}const Po={zeroAccordion:Te,zeroAccordionItem:Oe,zeroActionsMenu:Le,zeroAnchor:pa,zeroAnchoredRegion:ha,zeroAvatar:va,zeroBadge:fa,zeroBanner:za,zeroBreadcrumbItem:Aa,zeroBreadcrumb:Sa,zeroButton:Da,zeroCalendar:Fa,zeroCard:Na,zeroCheckbox:Ra,zeroCombobox:Qa,zeroConnectionIndicator:qa,zeroDataGrid:Xa,zeroDesignSystemProvider:gr,zeroDialog:vr,zeroDatePicker:rr,zeroDisclosure:fr,zeroDivider:yr,zeroDropdownMenu:zr,zeroErrorBoundary:Dr,zeroNotificationListener:Nt,zeroErrorBanner:Ar,zeroErrorDialog:Fr,zeroFileUpload:jr,zeroFilter:Pr,zeroFilterBar:Gr,zeroFlexLayout:Hr,zeroFlipper:Vr,zeroFlyout:Kr,zeroGridLayout:et,zeroGridLayoutItem:rt,zeroHorizontalScroll:ot,zeroIcon:gt,zeroListbox:st,zeroListboxOption:pt,zeroMenu:mt,zeroMenuItem:ft,zeroModal:St,zeroMultiselect:Ft,zeroNumberField:Et,zeroProgress:Ut,zeroProgressRing:_t,zeroRadio:Yt,zeroRadioGroup:Qt,zeroSegmentedControl:qt,zeroSegmentedItem:Zt,zeroSelect:Xt,zeroSkeleton:ao,zeroSlider:to,zeroSliderLabel:io,zeroSnackbar:co,zeroSwitch:uo,zeroTab:mo,zeroTabPanel:bo,zeroTabs:wo,zeroTextArea:xo,zeroTextField:ko,zeroToast:Do,zeroToolbar:Fo,zeroTooltip:No,zeroTreeItem:Ro,zeroTreeView:jo,zeroUrlInput:Eo.compose(Object.assign({baseName:"url-input",template:Io,styles:(e,a)=>s.css`
1719
1719
  ${(0,R.foundationUrlInputStyles)(e,a)}
1720
1720
  a {
1721
1721
  color: ${ne.blue};
@@ -1725,7 +1725,31 @@
1725
1725
  a:hover {
1726
1726
  opacity: 100%;
1727
1727
  }
1728
- `,shadowOptions:R.foundationUrlInputShadowOptions},R.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Uo=r(80249);const Bo=(0,g.createLogger)("grid-pro");class Go 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){Bo.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,Uo.__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,Uo.__decorate)([s.observable],Go.prototype,"params",void 0),(0,Uo.__decorate)([s.observable],Go.prototype,"pendingAction",void 0);const{create:_o}=c.DesignToken,Ho=(_o("action-height-multiplier").withDefault("0.6px"),s.css`
1728
+ `,shadowOptions:R.foundationUrlInputShadowOptions},R.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Uo=r(80249);class Bo 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}}(0,Uo.__decorate)([s.observable],Bo.prototype,"params",void 0),(0,Uo.__decorate)([s.observable],Bo.prototype,"value",void 0);const Go=s.css`
1729
+ :host,
1730
+ .select-renderer,
1731
+ zero-option,
1732
+ ::part(listbox),
1733
+ ::part(control) {
1734
+ max-width: var(--select-renderer-max-width);
1735
+ min-width: 100%;
1736
+ }
1737
+ `,_o=(e="foundation")=>s.html`
1738
+ <${e}-combobox
1739
+ style="width: 100%"
1740
+ ${(0,s.ref)("combobox")}
1741
+ @value-change=${(e,a)=>{var r;e.value=null===(r=a.event.detail)||void 0===r?void 0:r.value}}
1742
+ >
1743
+ <options-datasource
1744
+ resourceName=${e=>e.params.allOptionsResourceName}
1745
+ value-field=${e=>e.params.valueField}
1746
+ label-field=${e=>e.params.labelField}
1747
+ :datasourceConfig=${e=>e.params.datasourceOptions}
1748
+ :data=${e=>e.params.values}
1749
+ :initialSelectedValue=${e=>e.params.value}
1750
+ ></options-datasource>
1751
+ </${e}-combobox>
1752
+ `,Ho=Bo.compose({baseName:"select-editor",styles:Go,template:_o()});class Yo extends Bo{}const Vo=Yo.compose({baseName:"select-editor",styles:Go,template:_o("zero")}),Qo=(0,g.createLogger)("grid-pro");class Wo 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){Qo.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,Uo.__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,Uo.__decorate)([s.observable],Wo.prototype,"params",void 0),(0,Uo.__decorate)([s.observable],Wo.prototype,"pendingAction",void 0);const{create:qo}=c.DesignToken,Jo=(qo("action-height-multiplier").withDefault("0.6px"),s.css`
1729
1753
  .action-container {
1730
1754
  align-items: center;
1731
1755
  display: flex;
@@ -1740,8 +1764,8 @@
1740
1764
  var(--action-height-multiplier)
1741
1765
  );
1742
1766
  }
1743
- `),Yo=Go.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1744
- ${Ho}
1767
+ `),Zo=Wo.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1768
+ ${Jo}
1745
1769
  `,template:s.html`
1746
1770
  <div class="action-container" part="action-container">
1747
1771
  <foundation-button
@@ -1751,8 +1775,8 @@
1751
1775
  ?disabled=${e=>{var a;return e.pendingAction||e.isDisabled(null===(a=e.params)||void 0===a?void 0:a.data)}}
1752
1776
  appearance="${e=>e.params.appearance}"
1753
1777
  @click=${e=>e.clickHandler()}">${e=>e.params.actionName}</foundation-button>
1754
- </div>`});class Vo extends Go{}const Qo=Vo.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1755
- ${Ho}
1778
+ </div>`});class Ko extends Wo{}const Xo=Ko.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1779
+ ${Jo}
1756
1780
  `,template:s.html`
1757
1781
  <div class="action-container" part="action-container">
1758
1782
  <zero-button
@@ -1768,29 +1792,29 @@
1768
1792
  `:e.params.actionName}
1769
1793
  </zero-button>
1770
1794
  </div>
1771
- `});class Wo extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,Uo.__decorate)([s.observable],Wo.prototype,"params",void 0);const qo=Wo.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1795
+ `});class ei extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,Uo.__decorate)([s.observable],ei.prototype,"params",void 0);const ai=ei.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1772
1796
  <foundation-actions-menu
1773
1797
  name="${e=>e.params.headerName}"
1774
1798
  :definition=${e=>e.params}
1775
1799
  ></foundation-actions-menu>
1776
- `});class Jo extends Wo{}const Zo=Jo.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1800
+ `});class ri extends ei{}const ti=ri.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1777
1801
  <zero-actions-menu
1778
1802
  name="${e=>e.params.headerName}"
1779
1803
  :definition=${e=>e.params}
1780
1804
  ></zero-actions-menu>
1781
- `});class Ko extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,Uo.__decorate)([s.observable],Ko.prototype,"params",void 0);const Xo=s.css`
1805
+ `});var oi=r(59783);class ii 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:oi.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:oi.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,Uo.__decorate)([s.observable],ii.prototype,"params",void 0),(0,Uo.__decorate)([s.observable],ii.prototype,"selected",void 0);const ni=s.css`
1782
1806
  :host {
1783
1807
  align-center: center;
1784
1808
  display: flex;
1785
1809
  height: 100%;
1786
1810
  }
1787
- `,ei=(e="foundation")=>{const a=`${e}-checkbox`;return s.html`
1811
+ `,li=(e="foundation")=>{const a=`${e}-checkbox`;return s.html`
1788
1812
  <${a}
1789
- @change="${e=>{var a;return null===(a=e.params)||void 0===a?void 0:a.changeHandler(e.params)}}"
1790
- checked="${e=>{var a;return null===(a=e.params)||void 0===a?void 0:a.value}}"
1791
- readonly="${e=>{var a;return null===(a=e.params)||void 0===a?void 0:a.readonly}}"
1813
+ @change=${(e,a)=>e.changeHandler(a.event)}
1814
+ :checked=${e=>e.selected}
1815
+ ?disabled=${e=>!e.params.colDef.editable}
1792
1816
  ></${a}>
1793
- `},ai=Ko.compose({baseName:"boolean-renderer",styles:Xo,template:ei()});class ri extends Ko{}const ti=ri.compose({baseName:"boolean-renderer",styles:Xo,template:ei("zero")});var oi=r(18471);const ii=(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 ni 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?ii(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,Uo.__decorate)([s.observable],ni.prototype,"textValue",void 0),(0,Uo.__decorate)([s.observable],ni.prototype,"params",void 0);const li=s.css`
1817
+ `},gi=ii.compose({baseName:"boolean-renderer",styles:ni,template:li()});class di extends ii{}const si=di.compose({baseName:"boolean-renderer",styles:ni,template:li("zero")});var ci=r(18471);const pi=(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 ui 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?pi(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,Uo.__decorate)([s.observable],ui.prototype,"textValue",void 0),(0,Uo.__decorate)([s.observable],ui.prototype,"params",void 0);const hi=s.css`
1794
1818
  :host {
1795
1819
  display: flex;
1796
1820
  width: 100%;
@@ -1800,15 +1824,15 @@
1800
1824
  .text-renderer {
1801
1825
  width: 100%;
1802
1826
  }
1803
- `,gi=(e="foundation")=>{const a=`${e}-text-field`;return s.html`
1827
+ `,mi=(e="foundation")=>{const a=`${e}-text-field`;return s.html`
1804
1828
  <${a}
1805
1829
  ${(0,s.ref)("textField")}
1806
1830
  type="text"
1807
1831
  class="text-renderer"
1808
- :value="${(0,oi.Z)((e=>e.textValue))}"
1832
+ :value="${(0,ci.Z)((e=>e.textValue))}"
1809
1833
  @change="${(e,a)=>e.textChanged(a.event)}"
1810
1834
  ></${a}>
1811
- `},di=ni.compose({baseName:"grid-pro-text-renderer",styles:li,template:gi()});class si extends ni{}const ci=li,pi=gi,ui=si.compose({baseName:"grid-text-renderer",styles:ci,template:pi()});const hi=class extends si{}.compose({baseName:"grid-text-renderer",styles:ci,template:pi("zero")});class mi 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=ii(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,Uo.__decorate)([s.observable],mi.prototype,"params",void 0),(0,Uo.__decorate)([s.observable],mi.prototype,"value",void 0);const vi=s.css`
1835
+ `},vi=ui.compose({baseName:"grid-pro-text-renderer",styles:hi,template:mi()});class bi extends ui{}const fi=hi,wi=mi,yi=bi.compose({baseName:"grid-text-renderer",styles:fi,template:wi()});const xi=class extends bi{}.compose({baseName:"grid-text-renderer",styles:fi,template:wi("zero")});class zi 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=pi(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,Uo.__decorate)([s.observable],zi.prototype,"params",void 0),(0,Uo.__decorate)([s.observable],zi.prototype,"value",void 0);const ki=s.css`
1812
1836
  :host,
1813
1837
  .select-renderer,
1814
1838
  zero-option,
@@ -1817,7 +1841,7 @@
1817
1841
  max-width: var(--select-renderer-max-width);
1818
1842
  min-width: 100%;
1819
1843
  }
1820
- `,bi=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return s.html`
1844
+ `,Si=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return s.html`
1821
1845
  <${a}
1822
1846
  class="select-renderer"
1823
1847
  @change=${(e,a)=>e.selectionChanged(a.event)}
@@ -1833,19 +1857,19 @@
1833
1857
  <${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
1834
1858
  `)}
1835
1859
  </${a}>
1836
- `},fi=mi.compose({baseName:"select-renderer",styles:vi,template:bi()});const wi=class extends mi{}.compose({baseName:"select-renderer",styles:vi,template:bi("zero")});var yi=r(89861),xi=r(59783),zi=r(86534),ki=r(75527),Si=r(9492);const Ci=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,Si.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Si.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Si.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Si.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Si.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Si.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Si.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Si.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Si.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Si.__classPrivateFieldGet)(this,o,"f")&&((0,Si.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Si.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Si.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Si.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Si.__classPrivateFieldGet)(this,r,"f")._key&&(0,Si.__classPrivateFieldSet)(this,r,(0,Si.__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,Si.__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,Si.__classPrivateFieldGet)(this,t,"f")!==(0,Si.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Si.__classPrivateFieldSet)(this,t,null!==(a=(0,Si.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Si.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Si.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Si.__classPrivateFieldSet)(this,t,null!==(o=(0,Si.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Si.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[Ai])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,Si.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},Ai=Symbol("layout-cache-document");var Ti=r(88556),Di=r(9770);const Oi=s.html`
1860
+ `},Ci=zi.compose({baseName:"select-renderer",styles:ki,template:Si()});const Ai=class extends zi{}.compose({baseName:"select-renderer",styles:ki,template:Si("zero")});var Ti=r(89861),Di=r(86534),Oi=r(75527),Fi=r(9492);const Li=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,Fi.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Fi.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Fi.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Fi.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Fi.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Fi.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Fi.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Fi.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Fi.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Fi.__classPrivateFieldGet)(this,o,"f")&&((0,Fi.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Fi.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Fi.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Fi.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Fi.__classPrivateFieldGet)(this,r,"f")._key&&(0,Fi.__classPrivateFieldSet)(this,r,(0,Fi.__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,Fi.__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,Fi.__classPrivateFieldGet)(this,t,"f")!==(0,Fi.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Fi.__classPrivateFieldSet)(this,t,null!==(a=(0,Fi.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Fi.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Fi.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Fi.__classPrivateFieldSet)(this,t,null!==(o=(0,Fi.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Fi.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[Ni])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,Fi.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},Ni=Symbol("layout-cache-document");var Mi=r(88556),Ri=r(9770);const $i=s.html`
1837
1861
  <template>
1838
1862
  <slot ${(0,s.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
1839
1863
  </template>
1840
- `;let Fi=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,Uo.__decorate)([s.observable],Fi.prototype,"renderer",void 0),(0,Uo.__decorate)([s.observable],Fi.prototype,"rendererParams",void 0),(0,Uo.__decorate)([s.observable],Fi.prototype,"slottedRenderer",void 0),Fi=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-cell",template:Oi})],Fi);const Li=s.html`
1864
+ `;let ji=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,Uo.__decorate)([s.observable],ji.prototype,"renderer",void 0),(0,Uo.__decorate)([s.observable],ji.prototype,"rendererParams",void 0),(0,Uo.__decorate)([s.observable],ji.prototype,"slottedRenderer",void 0),ji=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-cell",template:$i})],ji);const Ii=s.html`
1841
1865
  <template>
1842
1866
  <slot ${(0,s.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
1843
1867
  </template>
1844
- `;let Mi=class extends c.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};var Ni,Ri;(0,Uo.__decorate)([s.observable],Mi.prototype,"slottedAgCell",void 0),(0,Uo.__decorate)([s.observable],Mi.prototype,"definition",void 0),Mi=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-column",template:Li})],Mi),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"}(Ni||(Ni={})),function(e){e.alpine="ag-theme-alpine",e.alpineDark="ag-theme-alpine-dark",e.balham="ag-theme-balham",e.balhamDark="ag-theme-balham-dark",e.material="ag-theme-material"}(Ri||(Ri={}));const $i=e=>`${e}-token-map`,ji=(e,a)=>s.css`
1845
- .${$i(e)} {
1868
+ `;let Ei=class extends c.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};var Pi,Ui;(0,Uo.__decorate)([s.observable],Ei.prototype,"slottedAgCell",void 0),(0,Uo.__decorate)([s.observable],Ei.prototype,"definition",void 0),Ei=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-column",template:Ii})],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"}(Pi||(Pi={})),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"}(Ui||(Ui={}));const Bi=e=>`${e}-token-map`,Gi=(e,a)=>s.css`
1869
+ .${Bi(e)} {
1846
1870
  ${new R.CSSVarsTokenMapper(a)}
1847
1871
  }
1848
- `;var Ii;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.text="text",e.select="select"}(Ii||(Ii={}));const Ei='\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+zSHSRfcvw1zpZ98C2kVXG2W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6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Pi='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKr0ynOAE2AiQDghgLgQ4ABCAFhEYHhF0bXiRFpNekVVHJ/j8kcGOoVAN7L8rdRUEn6ZRdEY4cPSsWsYa1Wb2Sgi2cP95lTgmTT/ndiPe/iFyfMpSSB+B++a5qUUJ3i2yOTKBKGtAEZjDQ/79r5Z9JJgO0QJTwIt61qrKvDlDoCuP7P/w2/773RBsEC9gwEHQ884EFwsNiYDQqizIKCyNh1ayqcJH+M1lE4yJZuf0JLTfgdHNvseRobBRAwGBuVQKzJwnlrC2j0h1WndeaR8acU+fTftMv+IgvtuJeOZP9qfnXXNJ/nz0sdsqYLX3/bccgSgISTwjfXQjUrV14PoMQtmKBCWgyDBHwf3OlveyxK4GiKYHQ9exMZjK7zfz5ubvsYS5HlOOUECygAtoUiNcVVGUdsCPbVyXJVdq6VlVYXag55WB04UExdSgEyFx64PjfUGqRahgfQwg7jwHtGrcjBKQJJ/bgK00N1IOvjTXAhgXLh8BxyNDB37JRYL9LhiV1QrwwR50h0fNZo4upSKP1G3fY5KMN9MMe3sN4OhhLiIUWJ7xbpSRFM2wEx2lLKwiysi6oyClzCg99Ec8TxilXY4ea+YgngzqZGPlo74Ign50j7RGuKl8qDZ8x4lCYLQkLtAgHOb6bcEcrG9Rqe+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cNVfMDRbivHnAf0dKvvBBU9agR+tgN2OI0gMN5QV7SP3X4k4KtnOEIWYAiOBM19wg2rAALFxAASYMHZFUKDCEoE9R28SNkSfIBTwhNvCluj3xBFsY3cfDWv+JdwbB/OoolfpN7gaFafH857nP3AJhMNtaHje9b0BAisBM8zHoSzuTsQOlikNr4R2RTHSkJneQcvkRfL9dVipf8GTprRSnDcsMB4pkX9RsX6DnVVFb9ZYYZJ86z/YisKrRtDg1uRGUXmTqNy+IoCxZse9VSzP1h0JLWuIHEZSIl+NMkURQ0FPMhc774D27YnXsLP7/6iYkVW1J9oIX6KSU000uMDhG4PRZLZYbXaHH/61X+r8mc5sLl8olsqVaq3eaLbanW6vPxiOxpPpbL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Ui={[Ri.alpine]:Ei,[Ri.alpineDark]:Ei,[Ri.balham]:Pi,[Ri.balhamDark]:Pi,[Ri.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKoQibUgE2AiQDgiQLgRQABCAFhF4HhQQbwx4zozZKkzKjKAuTKdl/nWDK2JwGzwo8TIbdeYNAtGkxGg6xYzGz3JUMFWCLQoUjcyveKfPZ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outQTb2F2EmV2fz5iTVhXxfwQqoNi1D1jqSiBPQ/2Ugu2tpIOYYTNGkgep5wLxqTcmEdDTRwOxmqQkSDiU2nYslVDeiYiJ5Hy6isjNAuIMrBajAztCPqTpoGXVdGhPRfgO5R+pfnnArLxH9MGJgaACk2fXtioS/s0VOdhi3FfruLh0Rws4hf8ALfEC3Jb3n184cYrKS/MPVNBMq9DYCjp9X6Z9e0oKFsiISE7KsURfRhufcWi/6lkahiUW93Urmrl7NX6PouYTIBxsxfJrEa7vGPWqb3X7VC73+TVp35H17D4ACTtvwO51/ftuvwpfwbCfYTKEqA+B19jTBcROJd/EYpgam57W5yzRsklOnTtE0/b8ro71Rd44RT85pJMUZusvADGu0G1Xw/mbjxRXSG0wLw3hCB9ckfqdCA6LvneDVqPhClJRbjb18VPnRGGrc6N8rsDVJSitxWozffuIuRdzcdrpzbESxF+FqzpahiqHiKWWweIOPrzlDAZPcm4aqcqu4YLfI13gjKBV2vhyVIoQd9GMAQRjD+IUBnYL/D/csm7U631x8MR+PJdDZfLFfrzXa3PxxP58v1dn88qSQrqqYbpmU7rucHoWeee+GlV15746133q/tS5cX9KCBaQ1GeFqW4Zg1U2QwrpobRA+mNJrHnmftPgPtWeo8gSwqSgoEikd5CZWUvDsmkaXNIdZf1h9STVS2TEgFjKJdMcnzVTNcyrI544rdxazid93wxsRk0HxSu4k/tiVCGZajrDXX8WrhVftJ0RU/Ia/64ZpXjoa13dvpWmwq9WLXY8AG8hupZiGFJ1xJm+qGkTLRCYVwm6ItxMhTxKzms6NxGWFaV4+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},Bi=Ei;var Gi=r(82940),_i=r(32449),Hi=r(9162),Yi=r(5127),Vi=r(83123),Qi=r(35991),Wi=r(6852),qi=r(26714),Ji=r(71452),Zi=r(99449),Ki=r(30526),Xi=r(21607);function en({value:e}){return(0,Xi.D_)(e)}function an({value:e}){return(0,Xi.Lx)(e)}var rn;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(rn||(rn={}));let tn=class extends(Ci(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Gi.WJ.MAX_ROWS_250,this.maxView=Gi.WJ.MAX_VIEW_1000,this.movingView=!1,this.pollingInterval=Gi.WJ.REQ_REP_POLLING_INTERVAL_MS,this.reverse=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new qi.X(new Map)}criteriaChanged(e,a){const r=e!==(0,_i.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.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Gi.WJ.REQUEST_SERVER_ROW_ID:Gi.WJ.DATASERVER_ROW_ID}init(){return(0,Uo.__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===Gi._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,Uo.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Ji.T)(1),(0,Zi.b)(r),(0,Ki.b)((e=>Bo.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Bo.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 qi.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,Uo.__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,Uo.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Bo.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 Bo.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===Hi.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Yi.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Yi.$)(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,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 Bo.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},rn.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},rn.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},rn.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}applyMappedAgTransaction(e,a,r){const t=r?"applyTransactionAsync":"applyTransaction";this.agGrid.gridApi[t](this.mapTransaction(e,[a]))}mapTransaction(e,a=Object.values(rn)){if(!this.rowDataMapper)return e;const r={};return a.includes(rn.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(rn.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(rn.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 Vi.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=Ii.boolean);break;case Vi.r.DATE:r.valueFormatter=en;break;case Vi.r.DATETIME:r.valueFormatter=an}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.agGrid.onlyTemplateColDefs&&!t||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,_i.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,Uo.__decorate)([Qi.g],tn.prototype,"auth",void 0),(0,Uo.__decorate)([l.lj],tn.prototype,"connect",void 0),(0,Uo.__decorate)([Wi.Yh],tn.prototype,"datasource",void 0),(0,Uo.__decorate)([s.observable],tn.prototype,"deferredGridOptions",void 0),(0,Uo.__decorate)([s.observable],tn.prototype,"deferredColumnStates",void 0),(0,Uo.__decorate)([s.attr],tn.prototype,"criteria",void 0),(0,Uo.__decorate)([s.attr],tn.prototype,"fields",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],tn.prototype,"isSnapshot",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-rows"})],tn.prototype,"maxRows",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-view"})],tn.prototype,"maxView",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],tn.prototype,"movingView",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"order-by"})],tn.prototype,"orderBy",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"polling-interval"})],tn.prototype,"pollingInterval",void 0),(0,Uo.__decorate)([s.observable],tn.prototype,"request",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"resource-name"})],tn.prototype,"resourceName",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean"})],tn.prototype,"reverse",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"row-id"})],tn.prototype,"rowIdAttr",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],tn.prototype,"restartOnReconnection",void 0),(0,Uo.__decorate)([s.observable],tn.prototype,"rowDataMapper",void 0),tn=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],tn);let on=class extends tn{};on=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],on);var nn=r(66306),ln=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 dn(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"textColumn"}}function sn({value:e}){return(0,Xi.D_)(e)}function cn({value:e}){return(0,Xi.Lx)(e)}class pn{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,Uo.__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,ln.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Hi.Cs.LOGOFF_ACK||o===Hi.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,Yi.$)(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=>Bo.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,Uo.__decorate)([Qi.g],pn.prototype,"auth",void 0),(0,Uo.__decorate)([l.lj],pn.prototype,"connect",void 0);let un=class extends(Ci(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Gi.WJ.MAX_ROWS_250,this.maxView=Gi.WJ.MAX_VIEW_1000,this.movingView=!0,this.pagination=!1,this.rowId="ROW_REF",this.reverse=!1}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,_i.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()}))}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions={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=>{}},void this.agGrid.addEventListener("onGridReady",(()=>(0,Uo.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Bo.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,nn.C)(e);const a=(0,nn.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new pn({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});Bo.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));Bo.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 Bo.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,Uo.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Bo.debug(e)),(e=>Bo.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 Vi.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 Vi.r.DATE:case Vi.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 Vi.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 Vi.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=Ii.boolean);break;case Vi.r.DATE:r.valueFormatter=sn;break;case Vi.r.DATETIME:r.valueFormatter=cn}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.agGrid.onlyTemplateColDefs&&!t||this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:dn(e.type),filter:gn(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,Uo.__decorate)([l.lj],un.prototype,"connect",void 0),(0,Uo.__decorate)([s.attr],un.prototype,"criteria",void 0),(0,Uo.__decorate)([s.attr],un.prototype,"fields",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],un.prototype,"isSnapshot",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-rows"})],un.prototype,"maxRows",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-view"})],un.prototype,"maxView",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"moving-view"})],un.prototype,"movingView",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"order-by"})],un.prototype,"orderBy",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"resource-name"})],un.prototype,"resourceName",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean"})],un.prototype,"pagination",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"row-id"})],un.prototype,"rowId",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean"})],un.prototype,"reverse",void 0),un=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],un);const hn=s.css`
1872
+ `;var _i;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.text="text",e.select="select",e.selectEditor="selectEditor"}(_i||(_i={}));const Hi='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMHau317e0F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pmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Yi='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKr0ynOAE2AiQDghgLgQ4ABCAFhEYHhF0bXiRFpNekVVHJ/j8kcGOoVAN7L8rdRUEn6ZRdEY4cPSsWsYa1Wb2Sgi2cP95lTgmTT/ndiPe/iFyfMpSSB+B++a5qUUJ3i2yOTKBKGtAEZjDQ/79r5Z9JJgO0QJTwIt61qrKvDlDoCuP7P/w2/773RBsEC9gwEHQ884EFwsNiYDQqizIKCyNh1ayqcJH+M1lE4yJZuf0JLTfgdHNvseRobBRAwGBuVQKzJwnlrC2j0h1WndeaR8acU+fTftMv+IgvtuJeOZP9qfnXXNJ/nz0sdsqYLX3/bccgSgISTwjfXQjUrV14PoMQtmKBCWgyDBHwf3OlveyxK4GiKYHQ9exMZjK7zfz5ubvsYS5HlOOUECygAtoUiNcVVGUdsCPbVyXJVdq6VlVYXag55WB04UExdSgEyFx64PjfUGqRahgfQwg7jwHtGrcjBKQJJ/bgK00N1IOvjTXAhgXLh8BxyNDB37JRYL9LhiV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MHfoMaTL9f/w6kVcMrknc1sXmjMda7CqsA0MfB2wR8AI2WBEFne8bZ0xzW2VXY1V/6706+BWjIkbQpN/tnTALgAc7vDgx1qfjJv5u2LAzD6BbU37mdkSLdSf0dxr/7wGZfCIRm4QAk+T/hPz4obRlcNVfMDRbivHnAf0dKvvBBU9agR+tgN2OI0gMN5QV7SP3X4k4KtnOEIWYAiOBM19wg2rAALFxAASYMHZFUKDCEoE9R28SNkSfIBTwhNvCluj3xBFsY3cfDWv+JdwbB/OoolfpN7gaFafH857nP3AJhMNtaHje9b0BAisBM8zHoSzuTsQOlikNr4R2RTHSkJneQcvkRfL9dVipf8GTprRSnDcsMB4pkX9RsX6DnVVFb9ZYYZJ86z/YisKrRtDg1uRGUXmTqNy+IoCxZse9VSzP1h0JLWuIHEZSIl+NMkURQ0FPMhc774D27YnXsLP7/6iYkVW1J9oIX6KSU000uMDhG4PRZLZYbXaHH/61X+r8mc5sLl8olsqVaq3eaLbanW6vPxiOxpPpbL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Vi={[Ui.alpine]:Hi,[Ui.alpineDark]:Hi,[Ui.balham]:Yi,[Ui.balhamDark]:Yi,[Ui.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AA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JPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},Qi=Hi;var Wi=r(82940),qi=r(32449),Ji=r(9162),Zi=r(5127),Ki=r(83123),Xi=r(35991),en=r(6852),an=r(26714),rn=r(71452),tn=r(99449),on=r(30526),nn=r(21607);function ln({value:e}){return(0,nn.D_)(e)}function gn({value:e}){return(0,nn.Lx)(e)}var dn;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(dn||(dn={}));let sn=class extends(Li(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Wi.WJ.MAX_ROWS_250,this.maxView=Wi.WJ.MAX_VIEW_1000,this.movingView=!1,this.pollingInterval=Wi.WJ.REQ_REP_POLLING_INTERVAL_MS,this.reverse=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new an.X(new Map)}criteriaChanged(e,a){const r=e!==(0,qi.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.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Wi.WJ.REQUEST_SERVER_ROW_ID:Wi.WJ.DATASERVER_ROW_ID}init(){return(0,Uo.__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===Wi._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,Uo.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,rn.T)(1),(0,tn.b)(r),(0,on.b)((e=>Qo.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Qo.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 an.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,Uo.__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,Uo.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Qo.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 Qo.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===Ji.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Zi.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Zi.$)(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,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 Qo.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},dn.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},dn.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},dn.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}applyMappedAgTransaction(e,a,r){const t=r?"applyTransactionAsync":"applyTransaction";this.agGrid.gridApi[t](this.mapTransaction(e,[a]))}mapTransaction(e,a=Object.values(dn)){if(!this.rowDataMapper)return e;const r={};return a.includes(dn.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(dn.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(dn.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 Ki.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=_i.boolean,r.cellEditor=_i.boolean);break;case Ki.r.DATE:r.valueFormatter=ln;break;case Ki.r.DATETIME:r.valueFormatter=gn;break;case Ki.r.ENUM:r.cellEditor=_i.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,qi.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,Uo.__decorate)([Xi.g],sn.prototype,"auth",void 0),(0,Uo.__decorate)([l.lj],sn.prototype,"connect",void 0),(0,Uo.__decorate)([en.Yh],sn.prototype,"datasource",void 0),(0,Uo.__decorate)([s.observable],sn.prototype,"deferredGridOptions",void 0),(0,Uo.__decorate)([s.observable],sn.prototype,"deferredColumnStates",void 0),(0,Uo.__decorate)([s.attr],sn.prototype,"criteria",void 0),(0,Uo.__decorate)([s.attr],sn.prototype,"fields",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],sn.prototype,"isSnapshot",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-rows"})],sn.prototype,"maxRows",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-view"})],sn.prototype,"maxView",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],sn.prototype,"movingView",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"order-by"})],sn.prototype,"orderBy",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"polling-interval"})],sn.prototype,"pollingInterval",void 0),(0,Uo.__decorate)([s.observable],sn.prototype,"request",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"resource-name"})],sn.prototype,"resourceName",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean"})],sn.prototype,"reverse",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"row-id"})],sn.prototype,"rowIdAttr",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],sn.prototype,"restartOnReconnection",void 0),(0,Uo.__decorate)([s.observable],sn.prototype,"rowDataMapper",void 0),sn=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],sn);let cn=class extends sn{};cn=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],cn);var pn=r(66306),un=r(47546);function hn(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 mn(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"textColumn"}}function vn({value:e}){return(0,nn.D_)(e)}function bn({value:e}){return(0,nn.Lx)(e)}class fn{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,Uo.__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,un.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Ji.Cs.LOGOFF_ACK||o===Ji.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,Zi.$)(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=>Qo.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,Uo.__decorate)([Xi.g],fn.prototype,"auth",void 0),(0,Uo.__decorate)([l.lj],fn.prototype,"connect",void 0);let wn=class extends(Li(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Wi.WJ.MAX_ROWS_250,this.maxView=Wi.WJ.MAX_VIEW_1000,this.movingView=!0,this.pagination=!1,this.rowId="ROW_REF",this.reverse=!1}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,qi.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()}))}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions={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=>{}},void this.agGrid.addEventListener("onGridReady",(()=>(0,Uo.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Qo.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,pn.C)(e);const a=(0,pn.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new fn({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});Qo.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));Qo.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 Qo.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,Uo.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Qo.debug(e)),(e=>Qo.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 Ki.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 Ki.r.DATE:case Ki.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 Ki.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 Ki.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=_i.boolean,r.cellEditor=_i.boolean);break;case Ki.r.DATE:r.valueFormatter=vn;break;case Ki.r.DATETIME:r.valueFormatter=bn;break;case Ki.r.ENUM:r.cellEditor=_i.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:mn(e.type),filter:hn(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,Uo.__decorate)([l.lj],wn.prototype,"connect",void 0),(0,Uo.__decorate)([s.attr],wn.prototype,"criteria",void 0),(0,Uo.__decorate)([s.attr],wn.prototype,"fields",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],wn.prototype,"isSnapshot",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-rows"})],wn.prototype,"maxRows",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-view"})],wn.prototype,"maxView",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"moving-view"})],wn.prototype,"movingView",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"order-by"})],wn.prototype,"orderBy",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"resource-name"})],wn.prototype,"resourceName",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean"})],wn.prototype,"pagination",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"row-id"})],wn.prototype,"rowId",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean"})],wn.prototype,"reverse",void 0),wn=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],wn);const yn=s.css`
1849
1873
  .ag-icon {
1850
1874
  font-family: var(--ag-icon-font-family);
1851
1875
  font-size: var(--ag-icon-size);
@@ -9022,7 +9046,7 @@
9022
9046
  input[class^='ag-'][type='range']:disabled {
9023
9047
  opacity: 0.5;
9024
9048
  }
9025
- `,mn=s.css`
9049
+ `,xn=s.css`
9026
9050
  .ag-dnd-ghost {
9027
9051
  background: var(--ag-header-background-color, var(--ag-background-color, #1f2126));
9028
9052
  border: solid 1px;
@@ -9039,7 +9063,7 @@
9039
9063
  overflow: hidden;
9040
9064
  text-overflow: ellipsis;
9041
9065
  }
9042
- `,vn=s.css`
9066
+ `,zn=s.css`
9043
9067
  .ag-theme-alpine,
9044
9068
  .ag-theme-alpine-dark {
9045
9069
  --ag-alpine-active-color: #2196f3;
@@ -9489,7 +9513,7 @@
9489
9513
  .ag-theme-alpine-dark {
9490
9514
  color-scheme: dark;
9491
9515
  }
9492
- `,bn=s.css`
9516
+ `,kn=s.css`
9493
9517
  .ag-theme-balham,
9494
9518
  .ag-theme-balham-dark {
9495
9519
  --ag-balham-active-color: #0091ea;
@@ -9759,7 +9783,7 @@
9759
9783
  .ag-theme-balham-dark {
9760
9784
  color-scheme: dark;
9761
9785
  }
9762
- `,fn=s.css`
9786
+ `,Sn=s.css`
9763
9787
  .ag-theme-material {
9764
9788
  --ag-material-primary-color: #3f51b5;
9765
9789
  --ag-material-accent-color: #ff4081;
@@ -10024,14 +10048,14 @@
10024
10048
  .ag-theme-material .ag-picker-field-wrapper:focus {
10025
10049
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
10026
10050
  }
10027
- `,wn=s.css`
10028
- ${hn}
10029
- ${mn}
10030
- ${vn}
10031
- ${bn}
10032
- ${fn}
10033
- `,yn=s.css`
10034
- ${wn}
10051
+ `,Cn=s.css`
10052
+ ${yn}
10053
+ ${xn}
10054
+ ${zn}
10055
+ ${kn}
10056
+ ${Sn}
10057
+ `,An=s.css`
10058
+ ${Cn}
10035
10059
  :host {
10036
10060
  width: 100%;
10037
10061
  height: 100%;
@@ -10058,14 +10082,14 @@
10058
10082
  .ag-cell-inline-editing {
10059
10083
  height: inherit !important;
10060
10084
  }
10061
- `,xn=s.html`
10085
+ `,Tn=s.html`
10062
10086
  <template>
10063
10087
  <span part="grid" class="${e=>e.classNames}">
10064
10088
  <slot name="grid" ${(0,s.ref)("gridSlot")}></slot>
10065
10089
  <slot></slot>
10066
10090
  </span>
10067
10091
  </template>
10068
- `;function zn(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}xi.O3h.registerModules([zi.jM,yi.I]);const kn=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Sn extends(Ci(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Di.A)($i(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=Bi,this.columnComponentName="grid-pro-column",this.theme=Ri.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=xi.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[kn(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&&xi.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(kn(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={[Ii.action]:Go,[Ii.actionsMenu]:Wo,[Ii.boolean]:Ko};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 gridProGenesisDatasource(){return this.querySelector("grid-pro-genesis-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,Uo.__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.enableFlashingRows.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProGenesisDatasource?d.columnDefs=t:d.columnDefs=this.applyTemplateDefinitions(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),xi.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 xi.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}enableFlashingRows(){if(this.enableRowFlashing||this.enabledRowFlashing){if(!this.asyncAdd)return void Bo.warn("Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled");this.gridApi.addEventListener(xi.zW2.EVENT_ASYNC_TRANSACTIONS_FLUSHED,(e=>{e.results.forEach((e=>{e.add.length&&this.gridApi.flashCells({rowNodes:e.add})}))}))}}applyTemplateDefinitions(e,a=!1){return Bo.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;const t=e||[],o=this.querySelectorAll(this.columnComponentName),i=Array.from(o).map((e=>{var a;return null===(a=e.definition)||void 0===a?void 0:a.field}));let n=[];if(n=0===o.length?t:[...t.filter((e=>!i.includes(e.field))),...Array.from(o).map((e=>{var a;if(this.enableCellFlashing&&void 0===e.definition.enableCellChangeFlash&&(e.definition.enableCellChangeFlash=!0),!this.autoCellRendererByType||e.definition.valueFormatter)return e.definition;const r=null===(a=t.find((a=>e.definition.field===a.field)))||void 0===a?void 0:a.valueFormatter;return r&&(e.definition.valueFormatter=r),e.definition}))],this.gridProGenesisDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return zn(n,e);if((null===(r=this.gridProGenesisDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return zn(n,this.gridProGenesisDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=xi.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=xi.plv.ALL_PROPERTIES.map((e=>kn(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},xi.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=Ui[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Ti.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,Uo.__decorate)([s.observable],Sn.prototype,"columnApi",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"gridApi",void 0),(0,Uo.__decorate)([ki.z],Sn.prototype,"session",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Sn.prototype,"autoCellRendererByType",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Sn.prototype,"onlyTemplateColDefs",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],Sn.prototype,"gridAutosizingEnabled",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"add-index"})],Sn.prototype,"addIndex",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],Sn.prototype,"asyncAdd",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],Sn.prototype,"asyncRemove",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],Sn.prototype,"asyncUpdate",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Sn.prototype,"enableCellFlashing",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Sn.prototype,"enabledRowFlashing",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Sn.prototype,"enableRowFlashing",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],Sn.prototype,"persistColumnStateKey",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"gridFontFace",void 0),(0,Uo.__decorate)([s.attr],Sn.prototype,"columnComponentName",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"eventsAndCallbacks",void 0),(0,Uo.__decorate)([s.attr],Sn.prototype,"headerHeight",void 0),(0,Uo.__decorate)([s.attr],Sn.prototype,"rowHeight",void 0),(0,Uo.__decorate)([s.attr],Sn.prototype,"theme",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"classNames",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"agGrid",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"gridSlot",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"gridComponents",void 0);const Cn=void 0,An={shadowOptions:void 0},Tn=Sn.compose(Object.assign({baseName:"grid-pro",styles:yn,template:xn,shadowOptions:Cn},An)),Dn={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"))},On={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:Fn}=c.DesignToken,Ln={backgroundColor:Fn("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?On.backgroundSwatch:Dn.backgroundSwatch)),borderColor:Fn("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?On.borderSwatch:Dn.borderSwatch)),foregroundColor:Fn("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?On.foregroundSwatch:Dn.foregroundSwatch)),headerForegroundColor:Fn("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?On.headerForegroundSwatch:Dn.headerForegroundSwatch)),rowHoverColor:Fn("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?On.rowHoverSwatch:Dn.rowHoverSwatch))},Mn=s.css`
10092
+ `;function Dn(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}oi.O3h.registerModules([Di.jM,Ti.I]);const On=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Fn extends(Li(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Ri.A)(Bi(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=Qi,this.columnComponentName="grid-pro-column",this.theme=Ui.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=oi.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[On(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&&oi.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(On(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={[_i.action]:Wo,[_i.actionsMenu]:ei,[_i.boolean]:ii,[_i.selectEditor]:Bo};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 gridProGenesisDatasource(){return this.querySelector("grid-pro-genesis-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,Uo.__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.enableFlashingRows.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProGenesisDatasource?d.columnDefs=t:d.columnDefs=this.applyTemplateDefinitions(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),oi.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 oi.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}enableFlashingRows(){if(this.enableRowFlashing||this.enabledRowFlashing){if(!this.asyncAdd)return void Qo.warn("Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled");this.gridApi.addEventListener(oi.zW2.EVENT_ASYNC_TRANSACTIONS_FLUSHED,(e=>{e.results.forEach((e=>{e.add.length&&this.gridApi.flashCells({rowNodes:e.add})}))}))}}applyTemplateDefinitions(e,a=!1){return Qo.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.gridProGenesisDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Dn(n,e);if((null===(r=this.gridProGenesisDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Dn(n,this.gridProGenesisDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=oi.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=oi.plv.ALL_PROPERTIES.map((e=>On(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},oi.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=Vi[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Mi.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,Uo.__decorate)([s.observable],Fn.prototype,"columnApi",void 0),(0,Uo.__decorate)([s.observable],Fn.prototype,"gridApi",void 0),(0,Uo.__decorate)([Oi.z],Fn.prototype,"session",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Fn.prototype,"autoCellRendererByType",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Fn.prototype,"onlyTemplateColDefs",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],Fn.prototype,"gridAutosizingEnabled",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"add-index"})],Fn.prototype,"addIndex",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],Fn.prototype,"asyncAdd",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],Fn.prototype,"asyncRemove",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],Fn.prototype,"asyncUpdate",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Fn.prototype,"enableCellFlashing",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Fn.prototype,"enabledRowFlashing",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Fn.prototype,"enableRowFlashing",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],Fn.prototype,"persistColumnStateKey",void 0),(0,Uo.__decorate)([s.observable],Fn.prototype,"gridFontFace",void 0),(0,Uo.__decorate)([s.attr],Fn.prototype,"columnComponentName",void 0),(0,Uo.__decorate)([s.observable],Fn.prototype,"eventsAndCallbacks",void 0),(0,Uo.__decorate)([s.attr],Fn.prototype,"headerHeight",void 0),(0,Uo.__decorate)([s.attr],Fn.prototype,"rowHeight",void 0),(0,Uo.__decorate)([s.attr],Fn.prototype,"theme",void 0),(0,Uo.__decorate)([s.observable],Fn.prototype,"classNames",void 0),(0,Uo.__decorate)([s.observable],Fn.prototype,"agGrid",void 0),(0,Uo.__decorate)([s.observable],Fn.prototype,"gridSlot",void 0),(0,Uo.__decorate)([s.observable],Fn.prototype,"gridComponents",void 0);const Ln=void 0,Nn={shadowOptions:void 0},Mn=Fn.compose(Object.assign({baseName:"grid-pro",styles:An,template:Tn,shadowOptions:Ln},Nn)),Rn={foregroundSwatch:p.SwatchRGB.from((0,Ne.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:p.SwatchRGB.from((0,Ne.parseColorHexRGB)("#879ba6")),backgroundSwatch:p.SwatchRGB.from((0,Ne.parseColorHexRGB)("#1f2126")),borderSwatch:p.SwatchRGB.from((0,Ne.parseColorHexRGB)("#2e3339")),rowHoverSwatch:p.SwatchRGB.from((0,Ne.parseColorHexRGB)("#2b2e34"))},$n={foregroundSwatch:p.SwatchRGB.from((0,Ne.parseColorHexRGB)("#000000")),headerForegroundSwatch:p.SwatchRGB.from((0,Ne.parseColorHexRGB)("#181d1f")),backgroundSwatch:p.SwatchRGB.from((0,Ne.parseColorHexRGB)("#FFFFFF")),borderSwatch:p.SwatchRGB.from((0,Ne.parseColorHexRGB)("#babfc7")),rowHoverSwatch:p.SwatchRGB.from((0,Ne.parseColorHexRGB)("#2196f3"))},{create:jn}=c.DesignToken,In={backgroundColor:jn("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?$n.backgroundSwatch:Rn.backgroundSwatch)),borderColor:jn("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?$n.borderSwatch:Rn.borderSwatch)),foregroundColor:jn("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?$n.foregroundSwatch:Rn.foregroundSwatch)),headerForegroundColor:jn("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?$n.headerForegroundSwatch:Rn.headerForegroundSwatch)),rowHoverColor:jn("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?$n.rowHoverSwatch:Rn.rowHoverSwatch))},En=s.css`
10069
10093
  .ag-theme-genesis-rapid,
10070
10094
  .ag-theme-genesis-rapid-dark {
10071
10095
  --ag-alpine-active-color: #2196f3;
@@ -10525,50 +10549,50 @@
10525
10549
  .ag-theme-genesis-rapid-dark {
10526
10550
  color-scheme: dark;
10527
10551
  }
10528
- `,Nn={[Ni.backgroundColor]:Ln.backgroundColor,[Ni.foregroundColor]:Ln.foregroundColor,[Ni.oddRowBackgroundColor]:Ln.backgroundColor,[Ni.headerBackgroundColor]:Ln.backgroundColor,[Ni.headerForegroundColor]:Ln.headerForegroundColor,[Ni.selectedRowBackgroundColor]:Ln.rowHoverColor,[Ni.rowHoverColor]:Ln.rowHoverColor,[Ni.borderColor]:Ln.borderColor,[Ni.rowBorderColor]:Ln.rowHoverColor,[Ni.modalOverlayBackgroundColor]:Ln.backgroundColor,[Ni.inputFocusBoxShadow]:Ln.headerForegroundColor,[Ni.inputFocusBorderColor]:Ln.headerForegroundColor,[Ni.headerColumnResizeHandleColor]:Ln.headerForegroundColor},Rn="ag-theme-genesis-rapid",$n=s.css`
10529
- ${Mn}
10530
- ${ji(Rn,Nn)}
10552
+ `,Pn={[Pi.backgroundColor]:In.backgroundColor,[Pi.foregroundColor]:In.foregroundColor,[Pi.oddRowBackgroundColor]:In.backgroundColor,[Pi.headerBackgroundColor]:In.backgroundColor,[Pi.headerForegroundColor]:In.headerForegroundColor,[Pi.selectedRowBackgroundColor]:In.rowHoverColor,[Pi.rowHoverColor]:In.rowHoverColor,[Pi.borderColor]:In.borderColor,[Pi.rowBorderColor]:In.rowHoverColor,[Pi.modalOverlayBackgroundColor]:In.backgroundColor,[Pi.inputFocusBoxShadow]:In.headerForegroundColor,[Pi.inputFocusBorderColor]:In.headerForegroundColor,[Pi.headerColumnResizeHandleColor]:In.headerForegroundColor},Un="ag-theme-genesis-rapid",Bn=s.css`
10553
+ ${En}
10554
+ ${Gi(Un,Pn)}
10531
10555
 
10532
- .${Rn} {
10556
+ .${Un} {
10533
10557
  ${xe()}
10534
10558
  }
10535
10559
 
10536
- .${Rn} .ag-header {
10560
+ .${Un} .ag-header {
10537
10561
  border-bottom-color: var(--rapid-ag-header-foreground-color);
10538
10562
  font-weight: bold;
10539
10563
  }
10540
10564
 
10541
- .${Rn} .ag-root-wrapper {
10565
+ .${Un} .ag-root-wrapper {
10542
10566
  border-radius: calc(var(--control-corner-radius) * 1px);
10543
10567
  }
10544
- `,jn="ag-theme-genesis-rapid-dark",In=s.css`
10545
- ${Mn}
10546
- ${ji(jn,Nn)}
10568
+ `,Gn="ag-theme-genesis-rapid-dark",_n=s.css`
10569
+ ${En}
10570
+ ${Gi(Gn,Pn)}
10547
10571
 
10548
- .${jn} {
10572
+ .${Gn} {
10549
10573
  ${xe()}
10550
10574
  }
10551
10575
 
10552
- .${jn} .ag-header {
10576
+ .${Gn} .ag-header {
10553
10577
  border-bottom-color: var(--rapid-ag-header-foreground-color);
10554
10578
  font-weight: bold;
10555
10579
  }
10556
10580
 
10557
- .${jn} .ag-cell {
10581
+ .${Gn} .ag-cell {
10558
10582
  line-height: var(--ag-line-height, 32px);
10559
10583
  }
10560
10584
 
10561
- .${jn} .ag-root-wrapper {
10585
+ .${Gn} .ag-root-wrapper {
10562
10586
  border-radius: calc(var(--control-corner-radius) * 1px);
10563
10587
  }
10564
- `,En=s.css`
10588
+ `,Hn=s.css`
10565
10589
  /* All the AG themes */
10566
- ${yn}
10590
+ ${An}
10567
10591
 
10568
10592
  /* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
10569
- ${$n}
10570
- ${In}
10571
- `,Pn=xn,Un="ag-theme-genesis-rapid-dark";const Bn=An,Gn={zeroAgActionRenderer:Qo,zeroAgActionsMenuRenderer:Zo,zeroAgBooleanRenderer:ti,zeroAgTextRenderer:hi,zeroAgSelectRenderer:wi,zeroGridPro:class extends Sn{constructor(){super(...arguments),this.theme=Un}themeChanged(e,a){(e||a===Un)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[Ii.action]:Vo,[Ii.actionsMenu]:Jo,[Ii.boolean]:ri};(this.theme===Rn||this.theme===jn)&&(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:Pn,styles:En,shadowOptions:undefined},Bn)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},_n={foundationGridProActionRenderer:Yo,foundationGridProActionsMenuRenderer:qo,foundationAgBooleanRenderer:ai,foundationAgTextRenderer:ui,foundationAgTextFieldRenderer:di,foundationAgSelectRenderer:fi,foundationGridPro:Tn,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Hn,Yn=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Hn||(Hn={}));const Vn={Roboto:ye,"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'},Qn=Vn["Segoe UI"],Wn=s.css`
10593
+ ${Bn}
10594
+ ${_n}
10595
+ `,Yn=Tn,Vn="ag-theme-genesis-rapid-dark";const Qn=Nn,Wn={zeroAgActionRenderer:Xo,zeroAgActionsMenuRenderer:ti,zeroAgBooleanRenderer:si,zeroAgTextRenderer:xi,zeroAgSelectRenderer:Ai,zeroSelectEditor:Vo,zeroGridPro:class extends Fn{constructor(){super(...arguments),this.theme=Vn}themeChanged(e,a){(e||a===Vn)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[_i.action]:Ko,[_i.actionsMenu]:ri,[_i.boolean]:di,[_i.selectEditor]:Yo};(this.theme===Un||this.theme===Gn)&&(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:Yn,styles:Hn,shadowOptions:undefined},Qn)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},qn={foundationGridProActionRenderer:Zo,foundationGridProActionsMenuRenderer:ai,foundationAgBooleanRenderer:gi,foundationAgTextRenderer:yi,foundationAgTextFieldRenderer:vi,foundationAgSelectRenderer:Ci,foundationGridPro:Mn,selectEditor:Ho,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Jn,Zn=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Jn||(Jn={}));const Kn={Roboto:ye,"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'},Xn=Kn["Segoe UI"],el=s.css`
10572
10596
  ${(0,c.display)("block")} :host {
10573
10597
  width: 100%;
10574
10598
  display: inline-flex;
@@ -10700,7 +10724,7 @@
10700
10724
  alpha-button {
10701
10725
  margin: 0;
10702
10726
  }
10703
- `,qn=s.html`
10727
+ `,al=s.html`
10704
10728
  <template>
10705
10729
  <div class="configuration">
10706
10730
  ${(0,s.when)((e=>!e.customDesignMode),s.html`
@@ -10908,7 +10932,7 @@
10908
10932
  </div>
10909
10933
  </div>
10910
10934
  ${(0,s.when)((e=>!e.customDesignMode),s.html`
10911
- <alpha-checkbox :checked="${(0,oi.Z)((e=>e.preserveOptions),"boolean")}">
10935
+ <alpha-checkbox :checked="${(0,ci.Z)((e=>e.preserveOptions),"boolean")}">
10912
10936
  Preserve selected options when changing design systems
10913
10937
  </alpha-checkbox>
10914
10938
  `)}
@@ -10923,7 +10947,7 @@
10923
10947
  <slot></slot>
10924
10948
  </div>
10925
10949
  </template>
10926
- `,Jn=({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(Vn).find((a=>Vn[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Zn=Jn(Ce),Kn={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},Xn=Jn(i.designTokens),el={zero:{prefix:"zero",tokenDefaults:Zn,buttons:Kn},alpha:{prefix:"alpha",tokenDefaults:Xn,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:Kn}};let al=class extends s.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Zn.luminance===p.StandardLuminance.DarkMode,this.luminance=Zn.luminance,this.neutralColor=Zn.neutralColor,this.accentColor=Zn.accentColor,this.bodyFont=Zn.bodyFont,this.density=Zn.density,this.borderRadius=Zn.borderRadius,this.strokeWidth=Zn.strokeWidth,this.designUnit=Zn.designUnit,this.baseFontSize=Zn.baseFontSize,this.baseLineHeight=Zn.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=Jn(a);el.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Yn.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(el[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Yn.__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:el[this.ds].prefix,buttonAppearanceAccent:el[this.ds].buttons.accent,buttonAppearanceNeutral:el[this.ds].buttons.neutral,buttonAppearanceOutline:el[this.ds].buttons.outline};this.$emit(Hn.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(el[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Vn[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(Hn.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={},we(),s.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Hn.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Yn.__decorate)([(0,s.attr)({mode:"boolean",attribute:"custom-design-mode"})],al.prototype,"customDesignMode",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"designSystems",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"ds",void 0),(0,Yn.__decorate)([s.attr],al.prototype,"darkMode",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"neutralColor",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"accentColor",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"bodyFont",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"density",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"borderRadius",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"strokeWidth",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"designUnit",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"baseFontSize",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"baseLineHeight",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"preserveOptions",void 0),al=(0,Yn.__decorate)([(0,s.customElement)({name:"design-system-editor",template:qn,styles:Wn})],al);const rl=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},tl=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},ol=(e,a)=>{const r=rl(e.neutralColor);p.neutralPalette.setValueFor(a,r);const t=rl(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,tl(p.typeRampBaseFontSize,fe.Yd.minusOne,a)),p.typeRampMinus1LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.minusOne,a)),p.typeRampMinus2FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.minusTwo,a)),p.typeRampMinus2LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.minusTwo,a)),p.typeRampPlus1FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusOne,a)),p.typeRampPlus1LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusOne,a)),p.typeRampPlus2FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusTwo,a)),p.typeRampPlus2LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusTwo,a)),p.typeRampPlus3FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusThree,a)),p.typeRampPlus3LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusThree,a)),p.typeRampPlus4FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusFour,a)),p.typeRampPlus4LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusFour,a)),p.typeRampPlus5FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusFive,a)),p.typeRampPlus5LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusFive,a)),p.typeRampPlus6FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusSix,a)),p.typeRampPlus6LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusSix,a))},il=s.css`
10950
+ `,rl=({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(Kn).find((a=>Kn[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),tl=rl(Ce),ol={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},il=rl(i.designTokens),nl={zero:{prefix:"zero",tokenDefaults:tl,buttons:ol},alpha:{prefix:"alpha",tokenDefaults:il,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:ol}};let ll=class extends s.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=tl.luminance===p.StandardLuminance.DarkMode,this.luminance=tl.luminance,this.neutralColor=tl.neutralColor,this.accentColor=tl.accentColor,this.bodyFont=tl.bodyFont,this.density=tl.density,this.borderRadius=tl.borderRadius,this.strokeWidth=tl.strokeWidth,this.designUnit=tl.designUnit,this.baseFontSize=tl.baseFontSize,this.baseLineHeight=tl.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=rl(a);nl.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Zn.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(nl[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Zn.__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:nl[this.ds].prefix,buttonAppearanceAccent:nl[this.ds].buttons.accent,buttonAppearanceNeutral:nl[this.ds].buttons.neutral,buttonAppearanceOutline:nl[this.ds].buttons.outline};this.$emit(Jn.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(nl[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Kn[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(Jn.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={},we(),s.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Jn.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Zn.__decorate)([(0,s.attr)({mode:"boolean",attribute:"custom-design-mode"})],ll.prototype,"customDesignMode",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"designSystems",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"ds",void 0),(0,Zn.__decorate)([s.attr],ll.prototype,"darkMode",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"neutralColor",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"accentColor",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"bodyFont",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"density",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"borderRadius",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"strokeWidth",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"designUnit",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"baseFontSize",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"baseLineHeight",void 0),(0,Zn.__decorate)([s.observable],ll.prototype,"preserveOptions",void 0),ll=(0,Zn.__decorate)([(0,s.customElement)({name:"design-system-editor",template:al,styles:el})],ll);const gl=e=>{const a=(e=>{const a=(0,Ne.parseColorHexRGB)(e);return a?p.SwatchRGB.from(a):null})(e);return a?p.PaletteRGB.create(a):null},dl=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},sl=(e,a)=>{const r=gl(e.neutralColor);p.neutralPalette.setValueFor(a,r);const t=gl(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,dl(p.typeRampBaseFontSize,fe.Yd.minusOne,a)),p.typeRampMinus1LineHeight.setValueFor(a,dl(p.typeRampBaseLineHeight,fe.Yd.minusOne,a)),p.typeRampMinus2FontSize.setValueFor(a,dl(p.typeRampBaseFontSize,fe.Yd.minusTwo,a)),p.typeRampMinus2LineHeight.setValueFor(a,dl(p.typeRampBaseLineHeight,fe.Yd.minusTwo,a)),p.typeRampPlus1FontSize.setValueFor(a,dl(p.typeRampBaseFontSize,fe.Yd.plusOne,a)),p.typeRampPlus1LineHeight.setValueFor(a,dl(p.typeRampBaseLineHeight,fe.Yd.plusOne,a)),p.typeRampPlus2FontSize.setValueFor(a,dl(p.typeRampBaseFontSize,fe.Yd.plusTwo,a)),p.typeRampPlus2LineHeight.setValueFor(a,dl(p.typeRampBaseLineHeight,fe.Yd.plusTwo,a)),p.typeRampPlus3FontSize.setValueFor(a,dl(p.typeRampBaseFontSize,fe.Yd.plusThree,a)),p.typeRampPlus3LineHeight.setValueFor(a,dl(p.typeRampBaseLineHeight,fe.Yd.plusThree,a)),p.typeRampPlus4FontSize.setValueFor(a,dl(p.typeRampBaseFontSize,fe.Yd.plusFour,a)),p.typeRampPlus4LineHeight.setValueFor(a,dl(p.typeRampBaseLineHeight,fe.Yd.plusFour,a)),p.typeRampPlus5FontSize.setValueFor(a,dl(p.typeRampBaseFontSize,fe.Yd.plusFive,a)),p.typeRampPlus5LineHeight.setValueFor(a,dl(p.typeRampBaseLineHeight,fe.Yd.plusFive,a)),p.typeRampPlus6FontSize.setValueFor(a,dl(p.typeRampBaseFontSize,fe.Yd.plusSix,a)),p.typeRampPlus6LineHeight.setValueFor(a,dl(p.typeRampBaseLineHeight,fe.Yd.plusSix,a))},cl=s.css`
10927
10951
  :host {
10928
10952
  background: var(--fill-color);
10929
10953
  color: var(--neutral-foreground-rest);
@@ -10966,7 +10990,7 @@
10966
10990
  zero-design-system-provider {
10967
10991
  display: inline;
10968
10992
  }
10969
- `,nl=s.html`
10993
+ `,pl=s.html`
10970
10994
  ${e=>{return a=e.prefix,s.html`
10971
10995
  <template>
10972
10996
  <${a}-design-system-provider ${(0,s.ref)("provider")}>
@@ -11167,7 +11191,7 @@
11167
11191
  </${a}-design-system-provider>
11168
11192
  </template>
11169
11193
  `;var a}}
11170
- `;let ll=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(Hn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Hn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setDialogEventListeners(),p.bodyFont.withDefault(Qn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ol(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,Yn.__decorate)([s.observable],ll.prototype,"modal",void 0),(0,Yn.__decorate)([s.attr],ll.prototype,"prefix",void 0),(0,Yn.__decorate)([s.observable],ll.prototype,"buttonAppearanceAccent",void 0),(0,Yn.__decorate)([s.observable],ll.prototype,"buttonAppearanceNeutral",void 0),(0,Yn.__decorate)([s.observable],ll.prototype,"buttonAppearanceOutline",void 0),(0,Yn.__decorate)([s.observable],ll.prototype,"provider",void 0),ll=(0,Yn.__decorate)([(0,s.customElement)({name:"preview-components",template:nl,styles:il})],ll);const gl=s.css`
11194
+ `;let ul=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(Jn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Jn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setDialogEventListeners(),p.bodyFont.withDefault(Xn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{sl(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,Zn.__decorate)([s.observable],ul.prototype,"modal",void 0),(0,Zn.__decorate)([s.attr],ul.prototype,"prefix",void 0),(0,Zn.__decorate)([s.observable],ul.prototype,"buttonAppearanceAccent",void 0),(0,Zn.__decorate)([s.observable],ul.prototype,"buttonAppearanceNeutral",void 0),(0,Zn.__decorate)([s.observable],ul.prototype,"buttonAppearanceOutline",void 0),(0,Zn.__decorate)([s.observable],ul.prototype,"provider",void 0),ul=(0,Zn.__decorate)([(0,s.customElement)({name:"preview-components",template:pl,styles:cl})],ul);const hl=s.css`
11171
11195
  .export {
11172
11196
  display: flex;
11173
11197
  justify-content: center;
@@ -11178,7 +11202,7 @@
11178
11202
  display: flex;
11179
11203
  justify-content: space-between;
11180
11204
  }
11181
- `,dl=s.html`
11205
+ `,ml=s.html`
11182
11206
  <template>
11183
11207
  <div class="export">
11184
11208
  <alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
@@ -11199,7 +11223,7 @@
11199
11223
  </alpha-modal>
11200
11224
  </div>
11201
11225
  </template>
11202
- `;let sl=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(Hn.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hn.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,Yn.__decorate)([s.attr],sl.prototype,"value",void 0),(0,Yn.__decorate)([s.attr],sl.prototype,"tokensPath",void 0),sl=(0,Yn.__decorate)([(0,s.customElement)({name:"design-system-export",template:dl,styles:gl})],sl);const cl=s.css`
11226
+ `;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(Jn.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Jn.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,Zn.__decorate)([s.attr],vl.prototype,"value",void 0),(0,Zn.__decorate)([s.attr],vl.prototype,"tokensPath",void 0),vl=(0,Zn.__decorate)([(0,s.customElement)({name:"design-system-export",template:ml,styles:hl})],vl);const bl=s.css`
11203
11227
  .colors {
11204
11228
  display: flex;
11205
11229
  flex-wrap: wrap;
@@ -11212,23 +11236,23 @@
11212
11236
  flex-grow: 1;
11213
11237
  height: 20px;
11214
11238
  }
11215
- `,pl=s.html`
11239
+ `,fl=s.html`
11216
11240
  <ul class="colors">
11217
11241
  ${(0,s.repeat)((e=>e.swatches),s.html`
11218
11242
  <li class="color" style="background-color: ${e=>e.toColorString()}"></li>
11219
11243
  `)}
11220
11244
  </ul>
11221
- `;let ul=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=rl(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Yn.__decorate)([s.observable],ul.prototype,"swatches",void 0),(0,Yn.__decorate)([s.attr],ul.prototype,"type",void 0),ul=(0,Yn.__decorate)([(0,s.customElement)({name:"color-palette",styles:cl,template:pl})],ul);const hl=s.css`
11245
+ `;let wl=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=gl(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Jn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Zn.__decorate)([s.observable],wl.prototype,"swatches",void 0),(0,Zn.__decorate)([s.attr],wl.prototype,"type",void 0),wl=(0,Zn.__decorate)([(0,s.customElement)({name:"color-palette",styles:bl,template:fl})],wl);const yl=s.css`
11222
11246
  .preview {
11223
11247
  width: 40px;
11224
11248
  height: 40px;
11225
11249
  }
11226
- `,ml=s.html`
11250
+ `,xl=s.html`
11227
11251
  <div
11228
11252
  class="preview"
11229
11253
  style="background-color: ${e=>p[e.tokenName].createCSS()}"
11230
11254
  ></div>
11231
- `;let vl=class extends s.FASTElement{};(0,Yn.__decorate)([s.attr],vl.prototype,"tokenName",void 0),vl=(0,Yn.__decorate)([(0,s.customElement)({name:"color-token",styles:hl,template:ml})],vl);const bl=s.css`
11255
+ `;let zl=class extends s.FASTElement{};(0,Zn.__decorate)([s.attr],zl.prototype,"tokenName",void 0),zl=(0,Zn.__decorate)([(0,s.customElement)({name:"color-token",styles:yl,template:xl})],zl);const kl=s.css`
11232
11256
  .container {
11233
11257
  display: flex;
11234
11258
  width: 100%;
@@ -11276,7 +11300,7 @@
11276
11300
  .container > div:not(:last-child) {
11277
11301
  border-right: 1px solid #fafafa;
11278
11302
  }
11279
- `,fl=[{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"}]}]}],wl=s.html`
11303
+ `,Sl=[{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"}]}]}],Cl=s.html`
11280
11304
  <div class="row">
11281
11305
  <div
11282
11306
  class="preview"
@@ -11288,19 +11312,19 @@
11288
11312
  ${(e,a)=>p[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
11289
11313
  </div>
11290
11314
  </div>
11291
- `,yl=s.html`
11315
+ `,Al=s.html`
11292
11316
  <div class="container" ${(0,s.ref)("provider")}>
11293
- ${(0,s.repeat)((()=>fl),s.html`
11317
+ ${(0,s.repeat)((()=>Sl),s.html`
11294
11318
  <div class="column">
11295
11319
  <h3 class="header-title">${e=>e.title}</h3>
11296
11320
  ${(0,s.repeat)((e=>e.subcategories),s.html`
11297
11321
  <h4>${e=>e.title}</h4>
11298
- ${(0,s.repeat)((e=>e.tokens),wl)}
11322
+ ${(0,s.repeat)((e=>e.tokens),Cl)}
11299
11323
  `)}
11300
11324
  </div>
11301
11325
  `)}
11302
11326
  </div>
11303
- `;let xl=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hn.STYLES_CHANGED,(e=>{const a=e.detail;ol(a,this.provider)}))}};(0,Yn.__decorate)([s.observable],xl.prototype,"provider",void 0),xl=(0,Yn.__decorate)([(0,s.customElement)({name:"color-tokens",template:yl,styles:bl})],xl);const zl=s.css`
11327
+ `;let Tl=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Jn.STYLES_CHANGED,(e=>{const a=e.detail;sl(a,this.provider)}))}};(0,Zn.__decorate)([s.observable],Tl.prototype,"provider",void 0),Tl=(0,Zn.__decorate)([(0,s.customElement)({name:"color-tokens",template:Al,styles:kl})],Tl);const Dl=s.css`
11304
11328
  table {
11305
11329
  background: var(--neutral-fill-rest);
11306
11330
  color: var(--neutral-foreground-rest);
@@ -11309,7 +11333,7 @@
11309
11333
  th {
11310
11334
  text-align: left;
11311
11335
  }
11312
- `,kl=s.html`
11336
+ `,Ol=s.html`
11313
11337
  <table ${(0,s.ref)("provider")} style="font-family: ${()=>p.bodyFont.createCSS()}">
11314
11338
  <colgroup>
11315
11339
  <col style="width: 15%;" />
@@ -11537,7 +11561,7 @@
11537
11561
  </tr>
11538
11562
  </tbody>
11539
11563
  </table>
11540
- `;let Sl=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hn.STYLES_CHANGED,(e=>{const a=e.detail;ol(a,this.provider)}))}};(0,Yn.__decorate)([s.observable],Sl.prototype,"provider",void 0),Sl=(0,Yn.__decorate)([(0,s.customElement)({name:"typography-tokens",template:kl,styles:zl})],Sl);const Cl=s.css`
11564
+ `;let Fl=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Jn.STYLES_CHANGED,(e=>{const a=e.detail;sl(a,this.provider)}))}};(0,Zn.__decorate)([s.observable],Fl.prototype,"provider",void 0),Fl=(0,Zn.__decorate)([(0,s.customElement)({name:"typography-tokens",template:Ol,styles:Dl})],Fl);const Ll=s.css`
11541
11565
  :host {
11542
11566
  background: var(--fill-color);
11543
11567
  color: var(--neutral-foreground-rest);
@@ -11553,7 +11577,7 @@
11553
11577
  margin-top: 24px;
11554
11578
  padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
11555
11579
  }
11556
- `,Al=s.html`
11580
+ `,Nl=s.html`
11557
11581
  <template>
11558
11582
  <alpha-tabs>
11559
11583
  <alpha-tab slot="tab">Components</alpha-tab>
@@ -11582,7 +11606,7 @@
11582
11606
  </alpha-tab-panel>
11583
11607
  </alpha-tabs>
11584
11608
  </template>
11585
- `;let Tl=class extends s.FASTElement{};Tl=(0,Yn.__decorate)([(0,s.customElement)({name:"design-system-preview",template:Al,styles:Cl})],Tl);const Dl={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"}]}]}}]},Ol={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"]}}},Fl={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"}]}}}]},Ll={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"]}}}},Ml=s.css`
11609
+ `;let Ml=class extends s.FASTElement{};Ml=(0,Zn.__decorate)([(0,s.customElement)({name:"design-system-preview",template:Nl,styles:Ll})],Ml);const Rl={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"}]}]}}]},$l={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"]}}},jl={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"}]}}}]},Il={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"]}}}},El=s.css`
11586
11610
  :host {
11587
11611
  background: var(--fill-color);
11588
11612
  color: var(--neutral-foreground-rest);
@@ -11613,7 +11637,7 @@
11613
11637
  zero-design-system-provider {
11614
11638
  display: inline;
11615
11639
  }
11616
- `,Nl=s.html`
11640
+ `,Pl=s.html`
11617
11641
  ${e=>{return a=e.prefix,s.html`
11618
11642
  <template>
11619
11643
  <${a}-design-system-provider ${(0,s.ref)("provider")}>
@@ -11635,7 +11659,7 @@
11635
11659
  </${a}-design-system-provider>
11636
11660
  </template>
11637
11661
  `;var a}}
11638
- `;let Rl=class extends s.FASTElement{constructor(){super(...arguments),this.jsonSchema=Ol,this.uischema=Dl,this.jsonSchemaArray=Ll,this.uiSchemaArray=Fl,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(Hn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Hn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{p.bodyFont.withDefault(Qn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ol(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.uischema.dsPrefix=e.detail.prefix,this.uiSchemaArray.dsPrefix=e.detail.prefix}};(0,Yn.__decorate)([s.observable],Rl.prototype,"jsonSchema",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"uischema",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"jsonSchemaArray",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"uiSchemaArray",void 0),(0,Yn.__decorate)([s.attr],Rl.prototype,"prefix",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"provider",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"editedEntity",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"editedEntityArray",void 0),Rl=(0,Yn.__decorate)([(0,s.customElement)({name:"preview-form",template:Nl,styles:Ml})],Rl);const $l=s.css`
11662
+ `;let Ul=class extends s.FASTElement{constructor(){super(...arguments),this.jsonSchema=$l,this.uischema=Rl,this.jsonSchemaArray=Il,this.uiSchemaArray=jl,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(Jn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Jn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{p.bodyFont.withDefault(Xn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{sl(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.uischema.dsPrefix=e.detail.prefix,this.uiSchemaArray.dsPrefix=e.detail.prefix}};(0,Zn.__decorate)([s.observable],Ul.prototype,"jsonSchema",void 0),(0,Zn.__decorate)([s.observable],Ul.prototype,"uischema",void 0),(0,Zn.__decorate)([s.observable],Ul.prototype,"jsonSchemaArray",void 0),(0,Zn.__decorate)([s.observable],Ul.prototype,"uiSchemaArray",void 0),(0,Zn.__decorate)([s.attr],Ul.prototype,"prefix",void 0),(0,Zn.__decorate)([s.observable],Ul.prototype,"provider",void 0),(0,Zn.__decorate)([s.observable],Ul.prototype,"editedEntity",void 0),(0,Zn.__decorate)([s.observable],Ul.prototype,"editedEntityArray",void 0),Ul=(0,Zn.__decorate)([(0,s.customElement)({name:"preview-form",template:Pl,styles:El})],Ul);const Bl=s.css`
11639
11663
  :host {
11640
11664
  background: var(--fill-color);
11641
11665
  color: var(--neutral-foreground-rest);
@@ -11650,7 +11674,7 @@
11650
11674
  .grid-height {
11651
11675
  height: 450px;
11652
11676
  }
11653
- `,jl=s.html`
11677
+ `,Gl=s.html`
11654
11678
  ${e=>{return a=e.prefix,s.html`
11655
11679
  <template>
11656
11680
  <${a}-design-system-provider ${(0,s.ref)("provider")}>
@@ -11660,5 +11684,5 @@
11660
11684
  </${a}-design-system-provider>
11661
11685
  </template>
11662
11686
  `;var a}}
11663
- `;let Il=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(Hn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Hn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setGridOptions(),p.bodyFont.withDefault(Qn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ol(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,s.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Yn.__decorate)([s.observable],Il.prototype,"grid",void 0),(0,Yn.__decorate)([s.attr],Il.prototype,"prefix",void 0),(0,Yn.__decorate)([s.observable],Il.prototype,"provider",void 0),(0,Yn.__decorate)([s.observable],Il.prototype,"rowData",void 0),(0,Yn.__decorate)([s.observable],Il.prototype,"columnDefs",void 0),(0,Yn.__decorate)([s.observable],Il.prototype,"gridOptions",void 0),Il=(0,Yn.__decorate)([(0,s.customElement)({name:"preview-grid",template:jl,styles:$l})],Il),((e,a="zero")=>{e&&(0,R.provideTokens)(t,o,e);const r=c.DesignSystem.getOrCreate(e).withPrefix(a);return(0,R.createDesignSystemProxy)(r)})().register(Po,Gn),(0,i.provideDesignSystem)().register(i.baseComponents,_n)}}]);
11664
- //# sourceMappingURL=721.82cd71c4e8dfb99abd8b777bed9cc994.js.map
11687
+ `;let _l=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(Jn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Jn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setGridOptions(),p.bodyFont.withDefault(Xn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{sl(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,s.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Zn.__decorate)([s.observable],_l.prototype,"grid",void 0),(0,Zn.__decorate)([s.attr],_l.prototype,"prefix",void 0),(0,Zn.__decorate)([s.observable],_l.prototype,"provider",void 0),(0,Zn.__decorate)([s.observable],_l.prototype,"rowData",void 0),(0,Zn.__decorate)([s.observable],_l.prototype,"columnDefs",void 0),(0,Zn.__decorate)([s.observable],_l.prototype,"gridOptions",void 0),_l=(0,Zn.__decorate)([(0,s.customElement)({name:"preview-grid",template:Gl,styles:Bl})],_l),((e,a="zero")=>{e&&(0,R.provideTokens)(t,o,e);const r=c.DesignSystem.getOrCreate(e).withPrefix(a);return(0,R.createDesignSystemProxy)(r)})().register(Po,Wn),(0,i.provideDesignSystem)().register(i.baseComponents,qn)}}]);
11688
+ //# sourceMappingURL=209.c2224d11b3be3ae332ba1b897e84a93b.js.map