@genesislcap/design-system-configurator 14.122.2-alpha-fb3aeba.0 → 14.124.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([[180],{34180:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>mg,ColorToken:()=>fg,ColorTokens:()=>kg,DesignSystemEditor:()=>tg,DesignSystemExport:()=>pg,DesignSystemPreview:()=>Dg,EventName:()=>Vl,PreviewComponents:()=>dg,PreviewForm:()=>jg,PreviewGrid:()=>Pg,TypographyTokens:()=>Ag,defaultBodyFont:()=>ql,fontFamilies:()=>Wl});var t={};r.r(t),r.d(t,{accentFillActive:()=>c.accentFillActive,accentFillActiveDelta:()=>c.accentFillActiveDelta,accentFillFocus:()=>c.accentFillFocus,accentFillFocusDelta:()=>c.accentFillFocusDelta,accentFillHover:()=>c.accentFillHover,accentFillHoverDelta:()=>c.accentFillHoverDelta,accentFillRest:()=>c.accentFillRest,accentFillRestDelta:()=>c.accentFillRestDelta,accentForegroundActive:()=>c.accentForegroundActive,accentForegroundActiveDelta:()=>c.accentForegroundActiveDelta,accentForegroundFocus:()=>c.accentForegroundFocus,accentForegroundFocusDelta:()=>c.accentForegroundFocusDelta,accentForegroundHover:()=>c.accentForegroundHover,accentForegroundHoverDelta:()=>c.accentForegroundHoverDelta,accentForegroundRest:()=>c.accentForegroundRest,accentForegroundRestDelta:()=>c.accentForegroundRestDelta,accentPalette:()=>c.accentPalette,baseHeightMultiplier:()=>c.baseHeightMultiplier,baseLayerLuminance:()=>c.baseLayerLuminance,bodyFont:()=>c.bodyFont,controlCornerRadius:()=>c.controlCornerRadius,density:()=>c.density,designUnit:()=>c.designUnit,direction:()=>c.direction,disabledOpacity:()=>c.disabledOpacity,fillColor:()=>c.fillColor,focusStrokeInner:()=>c.focusStrokeInner,focusStrokeOuter:()=>c.focusStrokeOuter,focusStrokeWidth:()=>c.focusStrokeWidth,foregroundOnAccentActive:()=>c.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>c.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>c.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>c.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>c.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>c.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>c.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>c.foregroundOnAccentRestLarge,neutralFillActive:()=>c.neutralFillActive,neutralFillActiveDelta:()=>c.neutralFillActiveDelta,neutralFillFocus:()=>c.neutralFillFocus,neutralFillFocusDelta:()=>c.neutralFillFocusDelta,neutralFillHover:()=>c.neutralFillHover,neutralFillHoverDelta:()=>c.neutralFillHoverDelta,neutralFillInputActive:()=>c.neutralFillInputActive,neutralFillInputActiveDelta:()=>c.neutralFillInputActiveDelta,neutralFillInputFocus:()=>c.neutralFillInputFocus,neutralFillInputFocusDelta:()=>c.neutralFillInputFocusDelta,neutralFillInputHover:()=>c.neutralFillInputHover,neutralFillInputHoverDelta:()=>c.neutralFillInputHoverDelta,neutralFillInputRest:()=>c.neutralFillInputRest,neutralFillInputRestDelta:()=>c.neutralFillInputRestDelta,neutralFillLayerRest:()=>c.neutralFillLayerRest,neutralFillLayerRestDelta:()=>c.neutralFillLayerRestDelta,neutralFillRest:()=>c.neutralFillRest,neutralFillRestDelta:()=>c.neutralFillRestDelta,neutralFillStealthActive:()=>c.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>c.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>c.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>c.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>c.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>c.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>c.neutralFillStealthRest,neutralFillStealthRestDelta:()=>c.neutralFillStealthRestDelta,neutralFillStrongActive:()=>c.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>c.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>c.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>c.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>c.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>c.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>c.neutralFillStrongRest,neutralFillStrongRestDelta:()=>c.neutralFillStrongRestDelta,neutralForegroundHint:()=>c.neutralForegroundHint,neutralForegroundRest:()=>c.neutralForegroundRest,neutralLayer1:()=>c.neutralLayer1,neutralLayer2:()=>c.neutralLayer2,neutralLayer3:()=>c.neutralLayer3,neutralLayer4:()=>c.neutralLayer4,neutralLayerCardContainer:()=>c.neutralLayerCardContainer,neutralLayerFloating:()=>c.neutralLayerFloating,neutralPalette:()=>c.neutralPalette,neutralStrokeActive:()=>c.neutralStrokeActive,neutralStrokeActiveDelta:()=>c.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>c.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>c.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>c.neutralStrokeFocus,neutralStrokeFocusDelta:()=>c.neutralStrokeFocusDelta,neutralStrokeHover:()=>c.neutralStrokeHover,neutralStrokeHoverDelta:()=>c.neutralStrokeHoverDelta,neutralStrokeRest:()=>c.neutralStrokeRest,neutralStrokeRestDelta:()=>c.neutralStrokeRestDelta,strokeWidth:()=>c.strokeWidth,typeRampBaseFontSize:()=>c.typeRampBaseFontSize,typeRampBaseLineHeight:()=>c.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>c.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>c.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>c.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>c.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>c.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>c.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>c.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>c.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>c.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>c.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>c.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>c.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>c.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>c.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>c.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>c.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>ve,baseLayerLuminanceValue:()=>fe,bodyFontValue:()=>Oe,controlCornerRadiusValue:()=>xe,densityValue:()=>ze,designTokens:()=>Fe,designUnitValue:()=>ke,directionValue:()=>we,neutralPaletteValue:()=>be,strokeWidthValue:()=>ye,typeRampBaseFontSizeValue:()=>De,typeRampBaseLineHeightValue:()=>Ne});var i=r(55714),n=r(92592),l=r(89074),g=r(60724),d=r(83147),s=r(75951),c=r(13896),p=r(67973);const u=d.css`
1
+ "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[180],{34180:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>mg,ColorToken:()=>fg,ColorTokens:()=>kg,DesignSystemEditor:()=>tg,DesignSystemExport:()=>pg,DesignSystemPreview:()=>Dg,EventName:()=>Vl,PreviewComponents:()=>dg,PreviewForm:()=>jg,PreviewGrid:()=>Pg,TypographyTokens:()=>Ag,defaultBodyFont:()=>ql,fontFamilies:()=>Wl});var t={};r.r(t),r.d(t,{accentFillActive:()=>c.accentFillActive,accentFillActiveDelta:()=>c.accentFillActiveDelta,accentFillFocus:()=>c.accentFillFocus,accentFillFocusDelta:()=>c.accentFillFocusDelta,accentFillHover:()=>c.accentFillHover,accentFillHoverDelta:()=>c.accentFillHoverDelta,accentFillRest:()=>c.accentFillRest,accentFillRestDelta:()=>c.accentFillRestDelta,accentForegroundActive:()=>c.accentForegroundActive,accentForegroundActiveDelta:()=>c.accentForegroundActiveDelta,accentForegroundFocus:()=>c.accentForegroundFocus,accentForegroundFocusDelta:()=>c.accentForegroundFocusDelta,accentForegroundHover:()=>c.accentForegroundHover,accentForegroundHoverDelta:()=>c.accentForegroundHoverDelta,accentForegroundRest:()=>c.accentForegroundRest,accentForegroundRestDelta:()=>c.accentForegroundRestDelta,accentPalette:()=>c.accentPalette,baseHeightMultiplier:()=>c.baseHeightMultiplier,baseLayerLuminance:()=>c.baseLayerLuminance,bodyFont:()=>c.bodyFont,controlCornerRadius:()=>c.controlCornerRadius,density:()=>c.density,designUnit:()=>c.designUnit,direction:()=>c.direction,disabledOpacity:()=>c.disabledOpacity,fillColor:()=>c.fillColor,focusStrokeInner:()=>c.focusStrokeInner,focusStrokeOuter:()=>c.focusStrokeOuter,focusStrokeWidth:()=>c.focusStrokeWidth,foregroundOnAccentActive:()=>c.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>c.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>c.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>c.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>c.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>c.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>c.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>c.foregroundOnAccentRestLarge,neutralFillActive:()=>c.neutralFillActive,neutralFillActiveDelta:()=>c.neutralFillActiveDelta,neutralFillFocus:()=>c.neutralFillFocus,neutralFillFocusDelta:()=>c.neutralFillFocusDelta,neutralFillHover:()=>c.neutralFillHover,neutralFillHoverDelta:()=>c.neutralFillHoverDelta,neutralFillInputActive:()=>c.neutralFillInputActive,neutralFillInputActiveDelta:()=>c.neutralFillInputActiveDelta,neutralFillInputFocus:()=>c.neutralFillInputFocus,neutralFillInputFocusDelta:()=>c.neutralFillInputFocusDelta,neutralFillInputHover:()=>c.neutralFillInputHover,neutralFillInputHoverDelta:()=>c.neutralFillInputHoverDelta,neutralFillInputRest:()=>c.neutralFillInputRest,neutralFillInputRestDelta:()=>c.neutralFillInputRestDelta,neutralFillLayerRest:()=>c.neutralFillLayerRest,neutralFillLayerRestDelta:()=>c.neutralFillLayerRestDelta,neutralFillRest:()=>c.neutralFillRest,neutralFillRestDelta:()=>c.neutralFillRestDelta,neutralFillStealthActive:()=>c.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>c.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>c.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>c.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>c.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>c.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>c.neutralFillStealthRest,neutralFillStealthRestDelta:()=>c.neutralFillStealthRestDelta,neutralFillStrongActive:()=>c.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>c.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>c.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>c.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>c.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>c.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>c.neutralFillStrongRest,neutralFillStrongRestDelta:()=>c.neutralFillStrongRestDelta,neutralForegroundHint:()=>c.neutralForegroundHint,neutralForegroundRest:()=>c.neutralForegroundRest,neutralLayer1:()=>c.neutralLayer1,neutralLayer2:()=>c.neutralLayer2,neutralLayer3:()=>c.neutralLayer3,neutralLayer4:()=>c.neutralLayer4,neutralLayerCardContainer:()=>c.neutralLayerCardContainer,neutralLayerFloating:()=>c.neutralLayerFloating,neutralPalette:()=>c.neutralPalette,neutralStrokeActive:()=>c.neutralStrokeActive,neutralStrokeActiveDelta:()=>c.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>c.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>c.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>c.neutralStrokeFocus,neutralStrokeFocusDelta:()=>c.neutralStrokeFocusDelta,neutralStrokeHover:()=>c.neutralStrokeHover,neutralStrokeHoverDelta:()=>c.neutralStrokeHoverDelta,neutralStrokeRest:()=>c.neutralStrokeRest,neutralStrokeRestDelta:()=>c.neutralStrokeRestDelta,strokeWidth:()=>c.strokeWidth,typeRampBaseFontSize:()=>c.typeRampBaseFontSize,typeRampBaseLineHeight:()=>c.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>c.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>c.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>c.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>c.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>c.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>c.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>c.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>c.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>c.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>c.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>c.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>c.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>c.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>c.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>c.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>c.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>ve,baseLayerLuminanceValue:()=>fe,bodyFontValue:()=>Oe,controlCornerRadiusValue:()=>xe,densityValue:()=>ze,designTokens:()=>$e,designUnitValue:()=>ke,directionValue:()=>we,neutralPaletteValue:()=>be,strokeWidthValue:()=>ye,typeRampBaseFontSizeValue:()=>De,typeRampBaseLineHeightValue:()=>Ne});var i=r(68243),n=r(92592),l=r(89074),g=r(60724),d=r(83147),s=r(75951),c=r(13896),p=r(67973);const u=d.css`
2
2
  :host {
3
3
  border: calc(${c.strokeWidth} * 1px) solid transparent;
4
4
  margin: 0;
@@ -43,13 +43,14 @@
43
43
 
44
44
  .submit-button {
45
45
  width: 70px;
46
+ margin: 0;
46
47
  }
47
48
  `.withBehaviors((0,s.forcedColorsStylesheetBehavior)(d.css`
48
49
  :host {
49
50
  background: ${p.H.Canvas};
50
51
  border-color: ${p.H.CanvasText};
51
52
  }
52
- `));var h=r(48101);const m=(0,h.createLogger)("foundation-form"),v={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"},b=d.html`
53
+ `));var h=r(15955);const m=(0,h.createLogger)("foundation-form"),v={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"},b=d.html`
53
54
  <template>
54
55
  ${(0,d.when)((e=>!1),d.html`
55
56
  <zero-button class="clipboard-button" @click=${e=>e.copyUISchemaToClipboard()}>
@@ -65,7 +66,7 @@
65
66
  />
66
67
  `)}
67
68
  </template>
68
- `,f=(e,a,r)=>{var t,o,i,n;return null!==(n=null===(i=null===(o=null===(t=null==r?void 0:r.options)||void 0===t?void 0:t.i18n)||void 0===o?void 0:o.error)||void 0===i?void 0:i[e.keyword])&&void 0!==n?n:((e,a,r)=>{var t;return"pattern"===(null==e?void 0:e.keyword)?null!==(t=v[e.params.pattern])&&void 0!==t?t:"Invalid pattern.":(0,g.zjv)(e,a,r)})(e,a,r)};let w=class extends d.FASTElement{constructor(){super(...arguments),this.dispatch=e=>{this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{core:(0,g.mpn)(this.jsonforms.core,e)}),this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})},this.validate=e=>{var a,r,t;const o=null===(r=null===(a=this.jsonforms)||void 0===a?void 0:a.core)||void 0===r?void 0:r.data;if(!o)return[];const i=[];return null===(t=null==e?void 0:e.elements)||void 0===t||t.forEach((e=>{var a,r,t,n;const l=null===(a=null==e?void 0:e.options)||void 0===a?void 0:a.validateFn;if("function"!=typeof l)return;const g=null===(t=null===(r=null==e?void 0:e.scope)||void 0===r?void 0:r.split("/"))||void 0===t?void 0:t.pop(),d=null==e?void 0:e.label;let s=null!==(n=l(o,g,d))&&void 0!==n?n:[];Array.isArray(s)||(s=[s]),i.push(...s)})),i}}schemaChanged(){var e,a,r,t;if(!this.schema)return;this.uichemaToUse=null!==(e=this.uischema)&&void 0!==e?e:g.Iiz.uiSchema(this.schema),this.uischema||console.log("UI schema not provided. Auto generated schema:",this.uichemaToUse);const o=this.validate(this.uichemaToUse);this.jsonforms={core:(()=>{const e={data:this.data,schema:this.schema,uischema:this.uichemaToUse};return(0,g.mpn)(e,g.eXO.init(this.data,this.schema,this.uichemaToUse,{validationMode:this.validationMode||"ValidateAndShow",ajv:this.ajv,additionalErrors:o}))})(),config:(0,g.LsR)(void 0,g.eXO.setConfig(this.config)),i18n:(0,g.YC9)(this.i18n,g.eXO.updateI18n(null===(a=this.i18n)||void 0===a?void 0:a.locale,null===(r=this.i18n)||void 0===r?void 0:r.translate,(null===(t=this.i18n)||void 0===t?void 0:t.translateError)||f)),renderers:this.renderers,readonly:this.readonly},this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})}uischemaChanged(){this.schemaChanged()}dataChanged(){this.schemaChanged()}renderersChanged(){this.schemaChanged()}validationModeChanged(){this.schemaChanged()}ajvChanged(){this.schemaChanged()}readonlyChanged(){this.schemaChanged()}configChanged(){this.schemaChanged()}get props(){var e;if(!this.schema&&!this.uischema)return;const a=null!==(e=this.uischema)&&void 0!==e?e:g.Iiz.uiSchema(this.schema);return{uischema:Object.assign(Object.assign({},a),{elements:a.elements.map((e=>"#/properties/TIMESTAMP"===e.scope?Object.assign(Object.assign({},e),{options:{hidden:!0}}):e))}),schema:this.schema,path:"",enabled:!0,visible:!0}}copyUISchemaToClipboard(){return(0,n.__awaiter)(this,void 0,void 0,(function*(){try{yield navigator.clipboard.writeText(JSON.stringify(this.uichemaToUse)),m.debug("Autogenerated UI schema copied to clipboard")}catch(e){m.error("Failed to copy autogenerated UI schema: ",e)}}))}};(0,n.__decorate)([(0,d.attr)({mode:"boolean"})],w.prototype,"submitted",void 0),(0,n.__decorate)([d.observable],w.prototype,"jsonforms",void 0),(0,n.__decorate)([d.observable],w.prototype,"i18n",void 0),(0,n.__decorate)([d.observable],w.prototype,"uichemaToUse",void 0),(0,n.__decorate)([d.observable],w.prototype,"schema",void 0),(0,n.__decorate)([d.observable],w.prototype,"uischema",void 0),(0,n.__decorate)([d.observable],w.prototype,"data",void 0),(0,n.__decorate)([d.observable],w.prototype,"renderers",void 0),(0,n.__decorate)([d.observable],w.prototype,"validationMode",void 0),(0,n.__decorate)([d.observable],w.prototype,"ajv",void 0),(0,n.__decorate)([(0,d.attr)({mode:"boolean"})],w.prototype,"readonly",void 0),(0,n.__decorate)([d.observable],w.prototype,"config",void 0),w=(0,n.__decorate)([(0,d.customElement)({name:"json-forms",template:b,styles:d.css`
69
+ `,f=(e,a,r)=>{var t,o,i,n;return null!==(n=null===(i=null===(o=null===(t=null==r?void 0:r.options)||void 0===t?void 0:t.i18n)||void 0===o?void 0:o.error)||void 0===i?void 0:i[e.keyword])&&void 0!==n?n:((e,a,r)=>{var t;return"pattern"===(null==e?void 0:e.keyword)?null!==(t=v[e.params.pattern])&&void 0!==t?t:"Invalid pattern.":(0,g.zjv)(e,a,r)})(e,a,r)};let w=class extends d.FASTElement{constructor(){super(...arguments),this.dispatch=e=>{this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{core:(0,g.mpn)(this.jsonforms.core,e)}),this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})},this.validate=e=>{var a,r,t;const o=null===(r=null===(a=this.jsonforms)||void 0===a?void 0:a.core)||void 0===r?void 0:r.data;if(!o)return[];const i=[];return null===(t=null==e?void 0:e.elements)||void 0===t||t.forEach((e=>{var a,r,t,n;const l=null===(a=null==e?void 0:e.options)||void 0===a?void 0:a.validateFn;if("function"!=typeof l)return;const g=null===(t=null===(r=null==e?void 0:e.scope)||void 0===r?void 0:r.split("/"))||void 0===t?void 0:t.pop(),d=null==e?void 0:e.label;let s=null!==(n=l(o,g,d))&&void 0!==n?n:[];Array.isArray(s)||(s=[s]),i.push(...s)})),i}}prefixChanged(){this.schemaChanged()}schemaChanged(){var e,a,r,t;if(!this.schema)return;this.uichemaToUse=null!==(e=this.uischema)&&void 0!==e?e:g.Iiz.uiSchema(this.schema),this.uischema||console.log("UI schema not provided. Auto generated schema:",this.uichemaToUse);const o=this.validate(this.uichemaToUse);this.jsonforms={core:(()=>{const e={data:this.data,schema:this.schema,uischema:this.uichemaToUse};return(0,g.mpn)(e,g.eXO.init(this.data,this.schema,this.uichemaToUse,{validationMode:this.validationMode||"ValidateAndShow",ajv:this.ajv,additionalErrors:o}))})(),config:(0,g.LsR)(void 0,g.eXO.setConfig(this.config)),i18n:(0,g.YC9)(this.i18n,g.eXO.updateI18n(null===(a=this.i18n)||void 0===a?void 0:a.locale,null===(r=this.i18n)||void 0===r?void 0:r.translate,(null===(t=this.i18n)||void 0===t?void 0:t.translateError)||f)),renderers:this.renderers,readonly:this.readonly,prefix:this.prefix},this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})}uischemaChanged(){this.schemaChanged()}dataChanged(){this.schemaChanged()}renderersChanged(){this.schemaChanged()}validationModeChanged(){this.schemaChanged()}ajvChanged(){this.schemaChanged()}readonlyChanged(){this.schemaChanged()}configChanged(){this.schemaChanged()}get props(){var e;if(!this.schema&&!this.uischema)return;const a=null!==(e=this.uischema)&&void 0!==e?e:g.Iiz.uiSchema(this.schema);return{uischema:Object.assign(Object.assign({},a),{elements:a.elements.map((e=>"#/properties/TIMESTAMP"===e.scope?Object.assign(Object.assign({},e),{options:{hidden:!0}}):e))}),schema:this.schema,path:"",enabled:!0,visible:!0}}copyUISchemaToClipboard(){return(0,n.__awaiter)(this,void 0,void 0,(function*(){try{yield navigator.clipboard.writeText(JSON.stringify(this.uichemaToUse)),m.debug("Autogenerated UI schema copied to clipboard")}catch(e){m.error("Failed to copy autogenerated UI schema: ",e)}}))}};(0,n.__decorate)([(0,d.attr)({mode:"boolean"})],w.prototype,"submitted",void 0),(0,n.__decorate)([d.observable],w.prototype,"prefix",void 0),(0,n.__decorate)([d.observable],w.prototype,"jsonforms",void 0),(0,n.__decorate)([d.observable],w.prototype,"i18n",void 0),(0,n.__decorate)([d.observable],w.prototype,"uichemaToUse",void 0),(0,n.__decorate)([d.observable],w.prototype,"schema",void 0),(0,n.__decorate)([d.observable],w.prototype,"uischema",void 0),(0,n.__decorate)([d.observable],w.prototype,"data",void 0),(0,n.__decorate)([d.observable],w.prototype,"renderers",void 0),(0,n.__decorate)([d.observable],w.prototype,"validationMode",void 0),(0,n.__decorate)([d.observable],w.prototype,"ajv",void 0),(0,n.__decorate)([(0,d.attr)({mode:"boolean"})],w.prototype,"readonly",void 0),(0,n.__decorate)([d.observable],w.prototype,"config",void 0),w=(0,n.__decorate)([(0,d.customElement)({name:"json-forms",template:b,styles:d.css`
69
70
  .clipboard-button {
70
71
  display: flex;
71
72
  }
@@ -92,7 +93,6 @@
92
93
  :dispatch=${(e,a)=>a.parent.form.dispatch}
93
94
  :jsonforms=${(e,a)=>a.parent.form.jsonforms}
94
95
  :props=${(e,a)=>({uischema:a.parent.uiSchema,schema:a.parent.schema,renderers:a.parent.control.renderers,path:(0,g.ZBw)(a.parent.pathName,`${a.index}`),enabled:a.parent.control.enabled})}
95
- :prefix=${(e,a)=>a.parent.form.jsonforms.core.uischema.dsPrefix}
96
96
  ></dispatch-renderer>
97
97
  <${e}-button
98
98
  appearance="lightweight"
@@ -114,7 +114,7 @@
114
114
  Add another
115
115
  </${e}-button>
116
116
  </template>
117
- `)(e.form.jsonforms.core.uischema.dsPrefix)}
117
+ `)(e.form.jsonforms.prefix)}
118
118
  `})],x);const z=d.css`
119
119
  .tabs-container::part(tablist) {
120
120
  background-color: transparent;
@@ -149,7 +149,7 @@
149
149
  `)}
150
150
  </${e}-tabs>
151
151
  </template>
152
- `)(e.form.prefix)}
152
+ `)(e.form.jsonforms.prefix)}
153
153
  `})],k);const S=d.html`
154
154
  <template>
155
155
  ${(0,d.when)((e=>{var a;return null===(a=e.control)||void 0===a?void 0:a.visible}),d.html`
@@ -195,13 +195,13 @@
195
195
  }
196
196
  `;let A=class extends d.FASTElement{get showDescription(){return!(0,g.tg6)(this.control.visible,this.control.description,this.control.isFocused,!!this.control.config.showUnfocusedDescription)}get computedLabel(){return(0,g.lgi)(this.control.label,this.control.required,!!this.control.config.hideRequiredAsterisk)}};(0,n.__decorate)([d.observable],A.prototype,"control",void 0),(0,n.__decorate)([d.observable],A.prototype,"touched",void 0),(0,n.__decorate)([d.volatile],A.prototype,"showDescription",null),(0,n.__decorate)([d.volatile],A.prototype,"computedLabel",null),A=(0,n.__decorate)([(0,d.customElement)({name:"control-wrapper",styles:C,template:S})],A);var T=r(80340),O=r.n(T);const D=d.html`
197
197
  <template>${e=>e.determinedRenderer.renderer}</template>
198
- `,N=d.css``;let F=class extends d.FASTElement{constructor(){super(...arguments),this.createRenderer=()=>{if(!this.jsonforms||!this.dispatch||!this.props)return;const e=(0,g.Q8v)({jsonforms:this.jsonforms},this.props),{rootSchema:a}=e,r=(0,n.__rest)(e,["rootSchema"]);this.renderer=r,this.control=((e,a,r,t)=>{const o=Object.assign({},t({jsonforms:a},e)),i=null===g.AZl||void 0===g.AZl?void 0:(0,g.AZl)(r);return Object.assign(Object.assign({},o),i)})(this.props,this.jsonforms,this.dispatch,this.determinedRenderer.mapper)}}jsonformsChanged(){this.createRenderer()}propsChanged(){this.createRenderer()}submittedChanged(){this.touched=!!this.submitted}onBlur(){this.touched=!0}get determinedRenderer(){const e=O()(this.renderer.renderers,(e=>e.tester(this.renderer.uischema,this.renderer.schema)));return this.prefix=this.jsonforms.core.uischema.dsPrefix,void 0===e||-1===e.tester(this.renderer.uischema,this.renderer.schema)?(console.error("UnknownRenderer this.renderer.uischema",this.renderer.uischema),{renderer:"UnknownRenderer"}):e}disconnectedCallback(){super.disconnectedCallback(),this.touched=!1,this.submitted=!1}};(0,n.__decorate)([d.observable],F.prototype,"jsonforms",void 0),(0,n.__decorate)([d.observable],F.prototype,"props",void 0),(0,n.__decorate)([d.observable],F.prototype,"touched",void 0),(0,n.__decorate)([(0,d.attr)({mode:"boolean"})],F.prototype,"submitted",void 0),(0,n.__decorate)([d.observable],F.prototype,"dispatch",void 0),(0,n.__decorate)([d.observable],F.prototype,"control",void 0),(0,n.__decorate)([d.observable],F.prototype,"renderer",void 0),(0,n.__decorate)([d.observable],F.prototype,"prefix",void 0),F=(0,n.__decorate)([(0,d.customElement)({name:"dispatch-renderer",template:D,styles:N})],F);const $=d.css`
198
+ `,N=d.css``;let $=class extends d.FASTElement{constructor(){super(...arguments),this.createRenderer=()=>{if(!this.jsonforms||!this.dispatch||!this.props)return;const e=(0,g.Q8v)({jsonforms:this.jsonforms},this.props),{rootSchema:a}=e,r=(0,n.__rest)(e,["rootSchema"]);this.renderer=r,this.control=((e,a,r,t)=>{const o=Object.assign({},t({jsonforms:a},e)),i=null===g.AZl||void 0===g.AZl?void 0:(0,g.AZl)(r);return Object.assign(Object.assign({},o),i)})(this.props,this.jsonforms,this.dispatch,this.determinedRenderer.mapper)}}jsonformsChanged(){this.createRenderer()}propsChanged(){this.createRenderer()}submittedChanged(){this.touched=!!this.submitted}onBlur(){this.touched=!0}get determinedRenderer(){const e=O()(this.renderer.renderers,(e=>e.tester(this.renderer.uischema,this.renderer.schema)));return void 0===e||-1===e.tester(this.renderer.uischema,this.renderer.schema)?(console.error("UnknownRenderer this.renderer.uischema",this.renderer.uischema),{renderer:"UnknownRenderer"}):e}disconnectedCallback(){super.disconnectedCallback(),this.touched=!1,this.submitted=!1}};(0,n.__decorate)([d.observable],$.prototype,"jsonforms",void 0),(0,n.__decorate)([d.observable],$.prototype,"props",void 0),(0,n.__decorate)([d.observable],$.prototype,"touched",void 0),(0,n.__decorate)([(0,d.attr)({mode:"boolean"})],$.prototype,"submitted",void 0),(0,n.__decorate)([d.observable],$.prototype,"dispatch",void 0),(0,n.__decorate)([d.observable],$.prototype,"control",void 0),(0,n.__decorate)([d.observable],$.prototype,"renderer",void 0),$=(0,n.__decorate)([(0,d.customElement)({name:"dispatch-renderer",template:D,styles:N})],$);const F=d.css`
199
199
  .tabs-container::part(stepper-panel-container) {
200
200
  display: flex;
201
201
  justify-content: flex-start;
202
202
  align-items: flex-start;
203
203
  }
204
- `;let L=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),this.propertyNames=this.control.uischema.elements.map((e=>e.scope.split("/").pop())),this.validation=this.propertyNames.map(((e,a)=>({isValid:()=>0===(0,g.qiS)(e,this.control.schema)(this.form).length&&Object.keys(this.control.data)[a]===e})))}submit(){this.$emit("submit-button-clicked")}nextStep(){this.$emit("submit-part");const e=this.propertyNames[this.stepper.activeTabIndex];this.control.data[e]||this.$emit("data-change",{data:Object.assign(Object.assign({},this.control.data),{[e]:{}})})}resetValidation(){this.$emit("reset-form")}};(0,n.__decorate)([d.observable],L.prototype,"form",void 0),(0,n.__decorate)([d.observable],L.prototype,"control",void 0),(0,n.__decorate)([d.observable],L.prototype,"validation",void 0),(0,n.__decorate)([d.observable],L.prototype,"stepper",void 0),(0,n.__decorate)([d.observable],L.prototype,"propertyNames",void 0),L=(0,n.__decorate)([(0,d.customElement)({name:"stepper-wrapper",styles:$,template:d.html`
204
+ `;let L=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),this.propertyNames=this.control.uischema.elements.map((e=>e.scope.split("/").pop())),this.validation=this.propertyNames.map(((e,a)=>({isValid:()=>0===(0,g.qiS)(e,this.control.schema)(this.form).length&&Object.keys(this.control.data)[a]===e})))}submit(){this.$emit("submit-button-clicked")}nextStep(){this.$emit("submit-part");const e=this.propertyNames[this.stepper.activeTabIndex];this.control.data[e]||this.$emit("data-change",{data:Object.assign(Object.assign({},this.control.data),{[e]:{}})})}resetValidation(){this.$emit("reset-form")}};(0,n.__decorate)([d.observable],L.prototype,"form",void 0),(0,n.__decorate)([d.observable],L.prototype,"control",void 0),(0,n.__decorate)([d.observable],L.prototype,"validation",void 0),(0,n.__decorate)([d.observable],L.prototype,"stepper",void 0),(0,n.__decorate)([d.observable],L.prototype,"propertyNames",void 0),L=(0,n.__decorate)([(0,d.customElement)({name:"stepper-wrapper",styles:F,template:d.html`
205
205
  ${e=>((e="zero")=>d.html`
206
206
  <template>
207
207
  <${e}-stepper
@@ -229,8 +229,9 @@
229
229
  `)}
230
230
  </${e}-stepper>
231
231
  </template>
232
- `)(e.form.prefix)}
232
+ `)(e.form.jsonforms.prefix)}
233
233
  `})],L);const M=d.html`
234
+ ${e=>{return a=e.prefix,d.html`
234
235
  <template>
235
236
  <json-forms
236
237
  @submit-button-clicked=${e=>e._submit()}
@@ -242,21 +243,23 @@
242
243
  :uischema=${e=>e.uischema}
243
244
  :schema=${e=>e.jsonSchema}
244
245
  :data=${e=>e.data}
246
+ :prefix=${e=>e.prefix}
245
247
  @data-change=${(e,a)=>e.onChange(a.event)}
246
248
  ></json-forms>
247
249
  ${(0,d.when)((e=>e.isSubmitHidden),d.html`
248
250
  <slot name="userActions" part="userActions" class="actions">
249
- <fast-button
251
+ <${a}-button
250
252
  @click="${e=>e._submit()}"
251
253
  ?disable=${e=>!e.submitting}
252
254
  class="submit-button"
253
255
  appearance="accent"
254
256
  >
255
257
  Submit
256
- </fast-button>
258
+ </${a}-button>
257
259
  </slot>
258
260
  `)}
259
261
  </template>
262
+ `;var a}}
260
263
  `,R=(0,g.or)(g.KmX,(0,g.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,g.ndu)(e,"boolean")))))),j={renderer:d.html`
261
264
  ${e=>((e="zero")=>d.html`
262
265
  <template>
@@ -276,8 +279,8 @@
276
279
  ></${e}-checkbox>
277
280
  </control-wrapper>
278
281
  </template>
279
- `)(e.prefix)}
280
- `,tester:(0,g.yMz)(3,R),mapper:g.xq9};var I=r(43573);const E=e=>a=>{if(!a||!(0,g.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},P=(0,g.xDy)(E("allOptionsResourceName"),(0,g.or)((0,g.wcO)((e=>(0,g.ndu)(e,"array"))),(0,g.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,g.ndu)(e,"array")))))));I.MultiselectDatasource;const U={renderer:d.html`
282
+ `)(e.jsonforms.prefix)}
283
+ `,tester:(0,g.yMz)(3,R),mapper:g.xq9};var I=r(33628);const E=e=>a=>{if(!a||!(0,g.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},P=(0,g.xDy)(E("allOptionsResourceName"),(0,g.or)((0,g.wcO)((e=>(0,g.ndu)(e,"array"))),(0,g.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,g.ndu)(e,"array")))))));I.MultiselectDatasource;const U={renderer:d.html`
281
284
  ${e=>((e="zero")=>d.html`
282
285
  <template>
283
286
  <control-wrapper
@@ -302,7 +305,7 @@
302
305
  </${e}-multiselect>
303
306
  </control-wrapper>
304
307
  </template>
305
- `)(e.prefix)}
308
+ `)(e.jsonforms.prefix)}
306
309
  `,tester:(0,g.yMz)(4,P),mapper:g.xq9};I.OptionsDatasource;const G={renderer:d.html`
307
310
  ${e=>((e="zero")=>d.html`
308
311
  <template>
@@ -331,7 +334,7 @@
331
334
  </${e}-combobox>
332
335
  </control-wrapper>
333
336
  </template>
334
- `)(e.prefix)}
337
+ `)(e.jsonforms.prefix)}
335
338
  `,tester:(0,g.yMz)(4,(0,g.or)(E("allOptionsResourceName"),E("data"))),mapper:g.xq9},B=(0,g.wcO)((e=>"org.joda.time.DateTime"===e.description)),_=(0,g.or)(B,(0,g.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>"org.joda.time.DateTime"===e.description))))),H={renderer:d.html`
336
339
  ${e=>((e="zero")=>d.html`
337
340
  <template>
@@ -352,7 +355,7 @@
352
355
  ></${e}-text-field>
353
356
  </control-wrapper>
354
357
  </template>
355
- `)(e.prefix)}
358
+ `)(e.jsonforms.prefix)}
356
359
  `,tester:(0,g.yMz)(4,_),mapper:g.xq9},Y=(0,g.or)(g.UvK,(0,g.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>e.hasOwnProperty("enum")))))),V={renderer:d.html`
357
360
  ${e=>((e="zero")=>d.html`
358
361
  <template>
@@ -375,7 +378,7 @@
375
378
  </${e}-combobox>
376
379
  </control-wrapper>
377
380
  </template>
378
- `)(e.prefix)}
381
+ `)(e.jsonforms.prefix)}
379
382
  `,tester:(0,g.yMz)(3,Y),mapper:(e,a)=>{const r=(0,g.xq9)(e,a),t=a.options||(r.schema.enum||r.schema.oneOf.find((e=>e.hasOwnProperty("enum"))).enum).map((a=>(0,g.vld)(a,(0,g.Ty2)()(e),(0,g.B49)(r.schema,r.uischema,r.path))))||r.schema.const&&[(0,g.vld)(r.schema.const,(0,g.Ty2)()(e),(0,g.B49)(r.schema,r.uischema,r.path))];return Object.assign(Object.assign({},r),{options:t})}},Q={renderer:d.html`
380
383
  <template>
381
384
  <pre
@@ -497,7 +500,7 @@
497
500
  ></${e}-number-field>
498
501
  </control-wrapper>
499
502
  </template>
500
- `)(e.prefix)}
503
+ `)(e.jsonforms.prefix)}
501
504
  `,tester:(0,g.yMz)(3,te),mapper:g.xq9};var ie=r(55509);function ne(e,a){const r=a.event.target.value;e.control.handleChange(e.control.path,""===r?null:r)}const le=d.html`
502
505
  ${e=>((e="zero")=>d.html`
503
506
  <template>
@@ -533,8 +536,8 @@
533
536
  `)}
534
537
  </control-wrapper>
535
538
  </template>
536
- `)(e.prefix)}
537
- `,ge={renderer:le,tester:(0,g.yMz)(2,g.Wdb),mapper:g.xq9},de=[{renderer:le,tester:(0,g.yMz)(1,g.DRl),mapper:g.xq9},ge,j,q,J,Z,K,ae,X,ee,oe,U,V,G,H,Q];let se=class extends s.FoundationElement{constructor(){super(...arguments),this.renderers=de,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,m.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 d.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(m.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})}}))}get isSubmitHidden(){return!this.readonly&&!this.hideSubmit}submitPart(e){this.submitted=!0}onChange(e){m.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors)}disconnectedCallback(){super.disconnectedCallback(),this.reset()}reset(e=!0){this.submitted=!1,e&&(this.data={})}};var ce,pe,ue,he,me;(0,n.__decorate)([d.attr],se.prototype,"resourceName",void 0),(0,n.__decorate)([d.observable],se.prototype,"uischema",void 0),(0,n.__decorate)([d.observable],se.prototype,"renderers",void 0),(0,n.__decorate)([d.observable],se.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],se.prototype,"connect",void 0),(0,n.__decorate)([d.observable],se.prototype,"data",void 0),(0,n.__decorate)([d.observable],se.prototype,"submitting",void 0),(0,n.__decorate)([d.observable],se.prototype,"submitted",void 0),(0,n.__decorate)([(0,d.attr)({mode:"boolean"})],se.prototype,"readonly",void 0),(0,n.__decorate)([(0,d.attr)({attribute:"hide-submit-button",mode:"boolean"})],se.prototype,"hideSubmit",void 0),(0,n.__decorate)([d.volatile],se.prototype,"isSubmitHidden",null),se=(0,n.__decorate)([(0,d.customElement)({name:"foundation-form",template:M,styles:u})],se),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ce||(ce={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(pe||(pe={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(ue||(ue={})),function(e){e.grey="#7c909b"}(he||(he={})),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"}(me||(me={}));const ve=(0,I.paletteFromHex)(pe.blue),be=(0,I.paletteFromHex)(he.grey),fe=c.StandardLuminance.DarkMode;const we=r(5598).N.ltr,ye=c.strokeWidth.getValueFor(c.strokeWidth.appliedTo[0]),xe=4,ze=c.density.getValueFor(c.density.appliedTo[0]),ke=4;var Se=r(47823);const Ce=()=>{(0,Se.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")},Ae='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',Te=(e=Se.Hd.Normal,a=Se.U9.Regular)=>(0,Se.py)(Ae,e,a),Oe=Ae,De=c.typeRampBaseFontSize.getValueFor(c.typeRampBaseFontSize.appliedTo[0]),Ne=c.typeRampBaseLineHeight.getValueFor(c.typeRampBaseLineHeight.appliedTo[0]),Fe={design_tokens:{color:{accent:{$value:ve.source.toColorString(),$type:"color"},neutral:{$value:be.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:Oe,$type:"fontFamily"}},typography:{baseFontSize:{$value:De,$type:"dimension"},baseLineHeight:{$value:Ne,$type:"dimension"}},mode:{luminance:{$value:fe,$type:"number"}},style:{density:{$value:ze,$type:"number"},borderRadius:{$value:xe,$type:"number"},strokeWidth:{$value:ye,$type:"number"}},space:{designUnit:{$value:ke,$type:"number"}}}};class $e extends I.Accordion{}const Le=$e.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,I.foundationAccordionTemplate)(e,a),styles:(e,a)=>d.css`
539
+ `)(e.jsonforms.prefix)}
540
+ `,ge={renderer:le,tester:(0,g.yMz)(2,g.Wdb),mapper:g.xq9},de=[{renderer:le,tester:(0,g.yMz)(1,g.DRl),mapper:g.xq9},ge,j,q,J,Z,K,ae,X,ee,oe,U,V,G,H,Q];let se=class extends s.FoundationElement{constructor(){super(...arguments),this.prefix="zero",this.renderers=de,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,m.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 d.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(m.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})}}))}get isSubmitHidden(){return!this.readonly&&!this.hideSubmit}submitPart(e){this.submitted=!0}onChange(e){m.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors)}disconnectedCallback(){super.disconnectedCallback(),this.reset()}reset(e=!0){this.submitted=!1,e&&(this.data={})}};var ce,pe,ue,he,me;(0,n.__decorate)([(0,d.attr)({attribute:"design-system-prefix"})],se.prototype,"prefix",void 0),(0,n.__decorate)([d.attr],se.prototype,"resourceName",void 0),(0,n.__decorate)([d.observable],se.prototype,"uischema",void 0),(0,n.__decorate)([d.observable],se.prototype,"renderers",void 0),(0,n.__decorate)([d.observable],se.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],se.prototype,"connect",void 0),(0,n.__decorate)([d.observable],se.prototype,"data",void 0),(0,n.__decorate)([d.observable],se.prototype,"submitting",void 0),(0,n.__decorate)([d.observable],se.prototype,"submitted",void 0),(0,n.__decorate)([(0,d.attr)({mode:"boolean"})],se.prototype,"readonly",void 0),(0,n.__decorate)([(0,d.attr)({attribute:"hide-submit-button",mode:"boolean"})],se.prototype,"hideSubmit",void 0),(0,n.__decorate)([d.volatile],se.prototype,"isSubmitHidden",null),se=(0,n.__decorate)([(0,d.customElement)({name:"foundation-form",template:M,styles:u})],se),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ce||(ce={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(pe||(pe={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(ue||(ue={})),function(e){e.grey="#7c909b"}(he||(he={})),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"}(me||(me={}));const ve=(0,I.paletteFromHex)(pe.blue),be=(0,I.paletteFromHex)(he.grey),fe=c.StandardLuminance.DarkMode;const we=r(5598).N.ltr,ye=c.strokeWidth.getValueFor(c.strokeWidth.appliedTo[0]),xe=4,ze=c.density.getValueFor(c.density.appliedTo[0]),ke=4;var Se=r(47823);const Ce=()=>{(0,Se.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")},Ae='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',Te=(e=Se.Hd.Normal,a=Se.U9.Regular)=>(0,Se.py)(Ae,e,a),Oe=Ae,De=c.typeRampBaseFontSize.getValueFor(c.typeRampBaseFontSize.appliedTo[0]),Ne=c.typeRampBaseLineHeight.getValueFor(c.typeRampBaseLineHeight.appliedTo[0]),$e={design_tokens:{color:{accent:{$value:ve.source.toColorString(),$type:"color"},neutral:{$value:be.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:Oe,$type:"fontFamily"}},typography:{baseFontSize:{$value:De,$type:"dimension"},baseLineHeight:{$value:Ne,$type:"dimension"}},mode:{luminance:{$value:fe,$type:"number"}},style:{density:{$value:ze,$type:"number"},borderRadius:{$value:xe,$type:"number"},strokeWidth:{$value:ye,$type:"number"}},space:{designUnit:{$value:ke,$type:"number"}}}};class Fe extends I.Accordion{}const Le=Fe.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,I.foundationAccordionTemplate)(e,a),styles:(e,a)=>d.css`
538
541
  ${(0,I.foundationAccordionStyles)(e,a)}
539
542
  `,shadowOptions:I.foundationAccordionShadowOptions},I.defaultAccordionConfig));class Me extends I.AccordionItem{}const Re=Me.compose(Object.assign({baseName:"accordion-item",template:(e,a)=>(0,I.foundationAccordionItemTemplate)(e,a),styles:(e,a)=>d.css`
540
543
  ${(0,I.foundationAccordionItemStyles)(e,a)};
@@ -801,7 +804,7 @@
801
804
  }
802
805
  `,Aa=I.foundationBannerShadowOptions;class Ta extends I.Banner{}const Oa=Ta.compose({baseName:"banner",shadowOptions:Aa,styles:Ca,template:I.foundationBannerTemplate});class Da extends I.Breadcrumb{}const Na=Da.compose(Object.assign({baseName:"breadcrumb",template:(e,a)=>(0,I.foundationBreadcrumbTemplate)(e,a),styles:(e,a)=>d.css`
803
806
  ${(0,I.foundationBreadcrumbStyles)(e,a)}
804
- `,shadowOptions:undefined},{}));class Fa extends I.BreadcrumbItem{}const $a=Fa.compose(Object.assign({baseName:"breadcrumb-item",template:(e,a)=>(0,I.foundationBreadcrumbItemTemplate)(e,a),styles:(e,a)=>d.css`
807
+ `,shadowOptions:undefined},{}));class $a extends I.BreadcrumbItem{}const Fa=$a.compose(Object.assign({baseName:"breadcrumb-item",template:(e,a)=>(0,I.foundationBreadcrumbItemTemplate)(e,a),styles:(e,a)=>d.css`
805
808
  ${(0,I.foundationBreadcrumbItemStyles)(e,a)}
806
809
  :host {
807
810
  --neutral-foreground-rest: #18b2e3;
@@ -1064,7 +1067,7 @@
1064
1067
  ${(0,I.dropdownMenuBaseStyles)("zero",e,a)}
1065
1068
  `,template:I.foundationDropdownMenuTemplate}),Dr=d.html`
1066
1069
  ${(0,I.getPrefixedErrorBanner)("zero")}
1067
- `,Nr=I.foundationErrorBannerShadowOptions;class Fr extends I.ErrorBanner{}const $r=Fr.compose({baseName:"error-banner",template:Dr,shadowOptions:Nr});class Lr extends I.ErrorBoundary{}const Mr=Lr.compose({baseName:"error-boundary",template:I.foundationErrorBoundaryTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}});class Rr extends I.ErrorDialog{}const jr=Rr.compose({baseName:"error-dialog",styles:I.foundationErrorDialogStyles,template:I.errorDialogTemplate,shadowOptions:I.foundationErrorDialogShadowOptions}),Ir=d.css`
1070
+ `,Nr=I.foundationErrorBannerShadowOptions;class $r extends I.ErrorBanner{}const Fr=$r.compose({baseName:"error-banner",template:Dr,shadowOptions:Nr});class Lr extends I.ErrorBoundary{}const Mr=Lr.compose({baseName:"error-boundary",template:I.foundationErrorBoundaryTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}});class Rr extends I.ErrorDialog{}const jr=Rr.compose({baseName:"error-dialog",styles:I.foundationErrorDialogStyles,template:I.errorDialogTemplate,shadowOptions:I.foundationErrorDialogShadowOptions}),Ir=d.css`
1068
1071
  ${I.foundationFileUploadStyles}
1069
1072
  ::-webkit-scrollbar {
1070
1073
  width: 12px;
@@ -1194,7 +1197,7 @@
1194
1197
  }
1195
1198
  `,shadowOptions:zt},I.defaultMenuItemConfig)),Ct=d.css`
1196
1199
  ${br}
1197
- `,At=I.defaultModalConfig,Tt=I.foundationModalTemplate,Ot=I.foundationModalShadowOptions;class Dt extends I.Modal{}const Nt=Dt.compose(Object.assign({baseName:"modal",shadowOptions:Ot,styles:Ct,template:Tt},At)),Ft=d.css`
1200
+ `,At=I.defaultModalConfig,Tt=I.foundationModalTemplate,Ot=I.foundationModalShadowOptions;class Dt extends I.Modal{}const Nt=Dt.compose(Object.assign({baseName:"modal",shadowOptions:Ot,styles:Ct,template:Tt},At)),$t=d.css`
1198
1201
  ${I.multiselectStyles}
1199
1202
 
1200
1203
  :host {
@@ -1250,9 +1253,9 @@
1250
1253
  .label {
1251
1254
  color: ${Va};
1252
1255
  }
1253
- `,$t=d.html`
1256
+ `,Ft=d.html`
1254
1257
  ${(0,I.getPrefixedMultiselect)("zero")}
1255
- `;class Lt extends I.Multiselect{}const Mt=I.defaultMultiselectConfig,Rt=I.foundationMultiselectShadowOptions,jt=Lt.compose(Object.assign({baseName:"multiselect",template:$t,styles:Ft,shadowOptions:Rt},Mt));class It extends I.NotificationListener{}const Et=It.compose({baseName:"notification-listener",template:I.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}}),Pt=(e,a)=>d.css`
1258
+ `;class Lt extends I.Multiselect{}const Mt=I.defaultMultiselectConfig,Rt=I.foundationMultiselectShadowOptions,jt=Lt.compose(Object.assign({baseName:"multiselect",template:Ft,styles:$t,shadowOptions:Rt},Mt));class It extends I.NotificationListener{}const Et=It.compose({baseName:"notification-listener",template:I.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}}),Pt=(e,a)=>d.css`
1256
1259
  ${(0,I.foundationTextFieldStyles)(e,a)}
1257
1260
  :host {
1258
1261
  --primary-gradient-angle: -113.5deg;
@@ -1702,12 +1705,12 @@
1702
1705
  margin-right: 0;
1703
1706
  background-color: var(--zero-card-fill-color);
1704
1707
  }
1705
- `,shadowOptions:I.foundationTabShadowOptions},I.defaultTabConfig));class No extends I.TabPanel{}const Fo=No.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,I.foundationTabPanelTemplate)(e,a),styles:(e,a)=>d.css`
1708
+ `,shadowOptions:I.foundationTabShadowOptions},I.defaultTabConfig));class No extends I.TabPanel{}const $o=No.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,I.foundationTabPanelTemplate)(e,a),styles:(e,a)=>d.css`
1706
1709
  ${(0,I.foundationTabPanelStyles)(e,a)}
1707
1710
  :host {
1708
1711
  padding: 0;
1709
1712
  }
1710
- `,shadowOptions:I.foundationTabPanelShadowOptions},I.defaultTabPanelConfig));class $o extends I.Tabs{}const Lo=$o.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,I.foundationTabsTemplate)(e,a),styles:(e,a)=>d.css`
1713
+ `,shadowOptions:I.foundationTabPanelShadowOptions},I.defaultTabPanelConfig));class Fo extends I.Tabs{}const Lo=Fo.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,I.foundationTabsTemplate)(e,a),styles:(e,a)=>d.css`
1711
1714
  ${(0,I.foundationTabsStyles)(e,a)}
1712
1715
  :host .tablist {
1713
1716
  padding: 0;
@@ -1860,7 +1863,7 @@
1860
1863
  ${(0,I.foundationTreeViewStyles)(e,a)}
1861
1864
  `,shadowOptions:I.foundationTreeViewShadowOptions},I.defaultTreeViewConfig)),Zo=d.html`
1862
1865
  ${(0,I.getPrefixedUrlInput)("zero")}
1863
- `;class Ko extends I.UrlInput{}const Xo={zeroAccordion:Le,zeroAccordionItem:Re,zeroActionsMenu:Ie,zeroAnchor:fa,zeroAnchoredRegion:ya,zeroAvatar:za,zeroBadge:Sa,zeroBanner:Oa,zeroBreadcrumbItem:$a,zeroBreadcrumb:Na,zeroButton:Ma,zeroCalendar:ja,zeroCard:Ea,zeroCheckbox:Ua,zeroCombobox:Xa,zeroConnectionIndicator:ar,zeroDataGrid:ir,zeroDesignSystemProvider:hr,zeroDialog:zr,zeroDatePicker:gr,zeroDisclosure:Sr,zeroDivider:Ar,zeroDropdownMenu:Or,zeroErrorBoundary:Mr,zeroNotificationListener:Et,zeroErrorBanner:$r,zeroErrorDialog:jr,zeroFileUpload:Br,zeroFilter:Yr,zeroFilterBar:Wr,zeroFlexLayout:Jr,zeroFlipper:Kr,zeroFlyout:ot,zeroGridLayout:nt,zeroGridLayoutItem:gt,zeroHorizontalScroll:st,zeroIcon:ht,zeroListbox:vt,zeroListboxOption:ft,zeroMenu:xt,zeroMenuItem:St,zeroModal:Nt,zeroMultiselect:jt,zeroNumberField:Ht,zeroProgress:Vt,zeroProgressRing:qt,zeroRadio:Zt,zeroRadioGroup:Xt,zeroSegmentedControl:ao,zeroSegmentedItem:to,zeroSelect:io,zeroSkeleton:lo,zeroSlider:so,zeroSliderLabel:po,zeroSnackbar:bo,zeroStepper:xo,zeroStepperTab:ko,zeroStepperTabPanel:Co,zeroSwitch:To,zeroTab:Do,zeroTabPanel:Fo,zeroTabs:Lo,zeroTextArea:Ro,zeroTextField:Io,zeroToast:Bo,zeroToolbar:Ho,zeroTooltip:Vo,zeroTreeItem:Wo,zeroTreeView:Jo,zeroUrlInput:Ko.compose(Object.assign({baseName:"url-input",template:Zo,styles:(e,a)=>d.css`
1866
+ `;class Ko extends I.UrlInput{}const Xo={zeroAccordion:Le,zeroAccordionItem:Re,zeroActionsMenu:Ie,zeroAnchor:fa,zeroAnchoredRegion:ya,zeroAvatar:za,zeroBadge:Sa,zeroBanner:Oa,zeroBreadcrumbItem:Fa,zeroBreadcrumb:Na,zeroButton:Ma,zeroCalendar:ja,zeroCard:Ea,zeroCheckbox:Ua,zeroCombobox:Xa,zeroConnectionIndicator:ar,zeroDataGrid:ir,zeroDesignSystemProvider:hr,zeroDialog:zr,zeroDatePicker:gr,zeroDisclosure:Sr,zeroDivider:Ar,zeroDropdownMenu:Or,zeroErrorBoundary:Mr,zeroNotificationListener:Et,zeroErrorBanner:Fr,zeroErrorDialog:jr,zeroFileUpload:Br,zeroFilter:Yr,zeroFilterBar:Wr,zeroFlexLayout:Jr,zeroFlipper:Kr,zeroFlyout:ot,zeroGridLayout:nt,zeroGridLayoutItem:gt,zeroHorizontalScroll:st,zeroIcon:ht,zeroListbox:vt,zeroListboxOption:ft,zeroMenu:xt,zeroMenuItem:St,zeroModal:Nt,zeroMultiselect:jt,zeroNumberField:Ht,zeroProgress:Vt,zeroProgressRing:qt,zeroRadio:Zt,zeroRadioGroup:Xt,zeroSegmentedControl:ao,zeroSegmentedItem:to,zeroSelect:io,zeroSkeleton:lo,zeroSlider:so,zeroSliderLabel:po,zeroSnackbar:bo,zeroStepper:xo,zeroStepperTab:ko,zeroStepperTabPanel:Co,zeroSwitch:To,zeroTab:Do,zeroTabPanel:$o,zeroTabs:Lo,zeroTextArea:Ro,zeroTextField:Io,zeroToast:Bo,zeroToolbar:Ho,zeroTooltip:Vo,zeroTreeItem:Wo,zeroTreeView:Jo,zeroUrlInput:Ko.compose(Object.assign({baseName:"url-input",template:Zo,styles:(e,a)=>d.css`
1864
1867
  ${(0,I.foundationUrlInputStyles)(e,a)}
1865
1868
  a {
1866
1869
  color: ${pe.blue};
@@ -1916,11 +1919,11 @@
1916
1919
  :initialSelectedValue=${e=>e.params.value}
1917
1920
  ></options-datasource>
1918
1921
  </${e}-combobox>
1919
- `,Ti=Si.compose({baseName:"select-editor",styles:Ci,template:Ai()});class Oi extends Si{}const Di=Oi.compose({baseName:"select-editor",styles:Ci,template:Ai("zero")});class Ni extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a}isCancelBeforeStart(){return!!this.params.data[si]}}(0,ri.__decorate)([d.observable],Ni.prototype,"params",void 0),(0,ri.__decorate)([d.observable],Ni.prototype,"value",void 0),(0,ri.__decorate)([d.observable],Ni.prototype,"actualWidth",void 0);const Fi=d.css`
1922
+ `,Ti=Si.compose({baseName:"select-editor",styles:Ci,template:Ai()});class Oi extends Si{}const Di=Oi.compose({baseName:"select-editor",styles:Ci,template:Ai("zero")});class Ni extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a}isCancelBeforeStart(){return!!this.params.data[si]}}(0,ri.__decorate)([d.observable],Ni.prototype,"params",void 0),(0,ri.__decorate)([d.observable],Ni.prototype,"value",void 0),(0,ri.__decorate)([d.observable],Ni.prototype,"actualWidth",void 0);const $i=d.css`
1920
1923
  :host {
1921
1924
  display: flex;
1922
1925
  }
1923
- `,$i=(e="foundation")=>d.html`
1926
+ `,Fi=(e="foundation")=>d.html`
1924
1927
  <${e}-number-field
1925
1928
  ${(0,d.ref)("input")}
1926
1929
  withFormatting=${e=>e.params.withFormatting}
@@ -1932,7 +1935,7 @@
1932
1935
  hideStep
1933
1936
  style="width: ${e=>e.actualWidth}px"
1934
1937
  ></${e}-number-field>
1935
- `,Li=Ni.compose({baseName:"number-editor",styles:Fi,template:$i()});class Mi extends Ni{}const Ri=Mi.compose({baseName:"number-editor",styles:Fi,template:$i("zero")});class ji extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){this.value=e.target.value}isCancelBeforeStart(){return!!this.params.data[si]}}(0,ri.__decorate)([d.observable],ji.prototype,"params",void 0),(0,ri.__decorate)([d.observable],ji.prototype,"value",void 0),(0,ri.__decorate)([d.observable],ji.prototype,"actualWidth",void 0);const Ii=d.css`
1938
+ `,Li=Ni.compose({baseName:"number-editor",styles:$i,template:Fi()});class Mi extends Ni{}const Ri=Mi.compose({baseName:"number-editor",styles:$i,template:Fi("zero")});class ji extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){this.value=e.target.value}isCancelBeforeStart(){return!!this.params.data[si]}}(0,ri.__decorate)([d.observable],ji.prototype,"params",void 0),(0,ri.__decorate)([d.observable],ji.prototype,"value",void 0),(0,ri.__decorate)([d.observable],ji.prototype,"actualWidth",void 0);const Ii=d.css`
1936
1939
  :host {
1937
1940
  display: flex;
1938
1941
  }
@@ -2063,7 +2066,7 @@
2063
2066
  <${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
2064
2067
  `)}
2065
2068
  </${a}>
2066
- `},Tn=Sn.compose({baseName:"select-renderer",styles:Cn,template:An()});const On=class extends Sn{}.compose({baseName:"select-renderer",styles:Cn,template:An("zero")});var Dn=r(89861),Nn=r(86534),Fn=r(75527),$n=r(9492);const Ln=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,$n.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,$n.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,$n.__classPrivateFieldGet)(this,r,"f")._key&&!((0,$n.__classPrivateFieldGet)(this,r,"f").dragging||!(0,$n.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,$n.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,$n.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,$n.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,$n.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,$n.__classPrivateFieldGet)(this,o,"f")&&((0,$n.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,$n.__classPrivateFieldGet)(this,r,"f").dragging||!(0,$n.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,$n.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,$n.__classPrivateFieldGet)(this,r,"f")._key&&(0,$n.__classPrivateFieldSet)(this,r,(0,$n.__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,$n.__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,$n.__classPrivateFieldGet)(this,t,"f")!==(0,$n.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,$n.__classPrivateFieldSet)(this,t,null!==(a=(0,$n.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,$n.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,$n.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,$n.__classPrivateFieldSet)(this,t,null!==(o=(0,$n.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,$n.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[Mn])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,$n.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},Mn=Symbol("layout-cache-document");var Rn=r(88556),jn=r(9770);const In=d.html`
2069
+ `},Tn=Sn.compose({baseName:"select-renderer",styles:Cn,template:An()});const On=class extends Sn{}.compose({baseName:"select-renderer",styles:Cn,template:An("zero")});var Dn=r(89861),Nn=r(86534),$n=r(75527),Fn=r(9492);const Ln=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,Fn.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Fn.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Fn.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Fn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Fn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Fn.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Fn.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Fn.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Fn.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Fn.__classPrivateFieldGet)(this,o,"f")&&((0,Fn.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Fn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Fn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Fn.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Fn.__classPrivateFieldGet)(this,r,"f")._key&&(0,Fn.__classPrivateFieldSet)(this,r,(0,Fn.__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,Fn.__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,Fn.__classPrivateFieldGet)(this,t,"f")!==(0,Fn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Fn.__classPrivateFieldSet)(this,t,null!==(a=(0,Fn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Fn.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Fn.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Fn.__classPrivateFieldSet)(this,t,null!==(o=(0,Fn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Fn.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[Mn])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,Fn.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},Mn=Symbol("layout-cache-document");var Rn=r(88556),jn=r(9770);const In=d.html`
2067
2070
  <template>
2068
2071
  <slot ${(0,d.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
2069
2072
  </template>
@@ -2071,7 +2074,7 @@
2071
2074
  <template>
2072
2075
  <slot ${(0,d.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
2073
2076
  </template>
2074
- `;let Un=class extends s.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,ri.__decorate)([d.observable],Un.prototype,"slottedAgCell",void 0),(0,ri.__decorate)([d.observable],Un.prototype,"definition",void 0),Un=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-column",template:Pn})],Un);var Gn=r(82940),Bn=r(32449),_n=r(5127),Hn=r(83123),Yn=r(35991),Vn=r(6852),Qn=r(26714),Wn=r(71452),qn=r(99449),Jn=r(30526);class Zn extends s.FoundationElement{constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Gn.WJ.MAX_ROWS_250,this.maxView=Gn.WJ.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1}}(0,ri.__decorate)([l.lj],Zn.prototype,"connect",void 0),(0,ri.__decorate)([d.observable],Zn.prototype,"deferredGridOptions",void 0),(0,ri.__decorate)([d.observable],Zn.prototype,"deferredColumnStates",void 0),(0,ri.__decorate)([d.attr],Zn.prototype,"criteria",void 0),(0,ri.__decorate)([d.attr],Zn.prototype,"fields",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"is-snapshot"})],Zn.prototype,"isSnapshot",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"max-rows"})],Zn.prototype,"maxRows",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"max-view"})],Zn.prototype,"maxView",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"moving-view"})],Zn.prototype,"movingView",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"order-by"})],Zn.prototype,"orderBy",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"resource-name"})],Zn.prototype,"resourceName",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean"})],Zn.prototype,"reverse",void 0);var Kn=r(21607);function Xn({value:e}){return(0,Kn.D_)(e)}function el({value:e}){return(0,Kn.Lx)(e)}var al;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(al||(al={}));let rl=class extends(Ln(Zn)){constructor(){super(...arguments),this.pollingInterval=Gn.WJ.REQ_REP_POLLING_INTERVAL_MS,this.disablePolling=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new Qn.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Bn.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;d.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Gn.WJ.REQUEST_SERVER_ROW_ID:Gn.WJ.DATASERVER_ROW_ID}init(){return(0,ri.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid&&this.datasource.validResourceName(this.resourceName)&&this.connect.isConnected){const e=yield this.connect.getMetadata(this.resourceName);if(!e)return void qi.warn(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);this.isRequestServer=e.TYPE===Gn._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,ri.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Wn.T)(1),(0,qn.b)(r),(0,Jn.b)((e=>qi.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else qi.warn("Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.")}))}deinit(){this.reset()}reset(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.dataLogoff(),this.clearRowData(),this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new Qn.X(new Map),this.datasource.deinit()}restart(){this.deinit(),this.init()}refreshRows(){this.setRowData(Array.from(this.rows.values()))}dataLogoff(){this.sourceRef&&!this.isRequestServer&&!this.isSnapshot&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.sourceRef),this.sourceRef=void 0}clearRowData(e=!0){var a,r,t,o;this.rows=new Map,this.agTransaction=void 0,e&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),null===(o=null===(t=this.agGrid)||void 0===t?void 0:t.gridApi)||void 0===o||o.setRowData([])}setRowData(e){var a;const r=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDefs();if(!r||0===r.length){const e=this.getAgColumnDefs(this.datasource.fieldMetadata);e&&this.agGrid.gridApi.setColumnDefs(e)}const t=this.rowDataMapper?this.rowDataMapper(e):e;this.agGrid.gridApi.setRowData(t),this.requiresFullRowDataAndColDefs=!1}reloadResourceData(){var e,a;return(0,ri.__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,ri.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return qi.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 qi.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.includes("_NACK"))return this.dataSubWasLoggedOff=!0,qi.debug(`received NACK for ${this.resourceName}`),qi.debug("result -> ",e),void this.agGrid.gridApi.showNoRowsOverlay();if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,_n.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,_n.$)(e).inserts:e.inserts}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,maxRows:this.maxRows,maxView:this.maxView,movingView:this.movingView,orderBy:this.orderBy,pollingInterval:this.pollingInterval,disablePolling:this.disablePolling,request:this.request,resourceName:this.resourceName,reverse:this.reverse}}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}applyRequestServerData(e){var a;const r=e.REPLY;if(!Array.isArray(r)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void qi.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},al.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},al.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},al.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}flashAddedCells(e){this.agGrid.enableRowFlashing&&e.length&&this.agGrid.gridApi.flashCells({rowNodes:e})}applyMappedAgTransaction(e,a,r){if(r)this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(e,[a]),(e=>{this.flashAddedCells(e.add)}));else{const r=this.agGrid.gridApi.applyTransaction(this.mapTransaction(e,[a]));this.flashAddedCells(r.add)}}mapTransaction(e,a=Object.values(al)){if(!this.rowDataMapper)return e;const r={};return a.includes(al.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(al.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(al.Update)&&(r.update=this.rowDataMapper(e.update,this.rows)),r}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rows.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r)}else this.agTransaction.add.push(e),this.agTransaction.addIndex=0;this.rows.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{this.agTransaction.remove.push({[this.rowId]:e[this.rowId]}),this.rows.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r),this.rows.set(e[this.rowId],r)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=function(e){switch(e){case Hn.r.DATE:case Hn.r.DATETIME:return{comparator:function(e,a){if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,browserDatePicker:!0}}}(e.type),e.type){case Hn.r.STRING:r.cellEditor=di.stringEditor;break;case Hn.r.NUMBER:r.cellEditor=di.numberEditor,r.filter="agNumberColumnFilter";break;case Hn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=di.boolean,r.cellEditor=di.boolean);break;case Hn.r.DATE:r.valueFormatter=Xn,r.cellEditor=di.dateEditor,r.filter="agDateColumnFilter";break;case Hn.r.DATETIME:r.valueFormatter=el,r.filter="agDateColumnFilter",r.cellEditor=di.dateEditor,r.cellEditorParams={withTime:!0};break;case Hn.r.ENUM:e.enumOptions?(r.cellEditor=di.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}):qi.warn(`No enumOptions found for field ${e.name}. Default cell editor applied.`)}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values()));return(0,Bn.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,ri.__decorate)([Yn.g],rl.prototype,"auth",void 0),(0,ri.__decorate)([Vn.Yh],rl.prototype,"datasource",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"polling-interval"})],rl.prototype,"pollingInterval",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"disable-polling"})],rl.prototype,"disablePolling",void 0),(0,ri.__decorate)([d.observable],rl.prototype,"request",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"row-id"})],rl.prototype,"rowIdAttr",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],rl.prototype,"restartOnReconnection",void 0),(0,ri.__decorate)([d.observable],rl.prototype,"rowDataMapper",void 0),rl=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-genesis-datasource"})],rl);let tl=class extends rl{};tl=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-client-side-datasource"})],tl);var ol=r(9162),il=r(66306),nl=r(47546);function ll(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 gl(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn";case"date":case"datetime":return"dateColumn";default:return null}}class dl{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,ri.__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,nl.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===ol.Cs.LOGOFF_ACK||o===ol.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,_n.$)(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=>qi.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,ri.__decorate)([Yn.g],dl.prototype,"auth",void 0),(0,ri.__decorate)([l.lj],dl.prototype,"connect",void 0);let sl=class extends(Ln(Zn)){constructor(){super(...arguments),this.pagination=!1,this.rowId="ROW_REF"}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,Bn.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;d.DOM.queueUpdate((()=>{e&&this.reset()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions=Object.assign({getRowId:e=>e.data?e.data[this.rowId]:null,cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!0},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{}},this.deferredGridOptions),void this.agGrid.addEventListener("onGridReady",(()=>(0,ri.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>qi.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,il.C)(e);const a=(0,il.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new dl({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});qi.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));qi.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 qi.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,ri.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>qi.debug(e)),(e=>qi.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 Hn.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 Hn.r.DATE:case Hn.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 Hn.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 Hn.r.NUMBER:r.cellEditor=di.numberEditor;break;case Hn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=di.boolean,r.cellEditor=di.boolean);break;case Hn.r.DATE:r.valueFormatter=Xn;break;case Hn.r.DATETIME:r.valueFormatter=el;break;case Hn.r.ENUM:r.cellEditor=di.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:gl(e.type),filter:ll(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,ri.__decorate)([(0,d.attr)({mode:"boolean"})],sl.prototype,"pagination",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"row-id"})],sl.prototype,"rowId",void 0),sl=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-server-side-datasource"})],sl);const cl='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMHau317e0FCManAAiSyCaunoRkkLFl1/9/c+VPMsnNEtBMGFedLLAjUjWiUlf3+d7r9jXZ9QR298S0qL4ULfAzmTVNTp0mtPCuUzXkB9rmv+OwOMJMsBBtenrY+GctjprYgZGc8X+zSHSRfcvw1zpZ98C2kVXG2W5VN1e6FQaG8JwEf+HchRXcb/Z2hfQ8dNS65LeVddel9vIEBkLLAG+YnEKJNWojAGE6V6EkgmyIn4SZ/+fnUtsboqwa/IGs0PNzOvCvzXv/pcBZSpRymlLWAZIFgrumAmgArDY7BSznJvyER6Hm7NyE1oMAmTOP2W4ovkxHhBjDKOYx0rGd6gY9HsC1iTrjjQhAvisbO3rs5NnKm1fs3qoPidYOoKweNm9YtwIO46CaAQG+y6kDZXNP/PIvsNmO0J44x/o4N66Ot+LG+FSETZ0xCmh8diIJRcgUKg1LIC5GV+kMnGkwBUV1HbzQOxJrQ0SKWJvX3t1aFRHoqOtzRWTyveVTZfGGblRq755mi6egbDIkb+zKVJeTkPgMFsIIrr8G88QITUASqOJ5TBJLAyetqNuvUi9cwsEiSVfknTKJKFwXJEifKEg4TRaVoTf9KidqWxWTaM4Qhckx5sC9WV2VzEdYip117wlE4pFNoTH6pLaKlnSP3jkqCOWFb04+eok58yIR6Fpbc7h7VYskIzvBi/sbie0gREpS0BX75I92Tzz1WaffwH8gR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olal7o7hJgPz+nTjjmCEjw0ihgE3KAue6Ez7v6sQAMBCBRVzH0QE+m7QFOUA8oIHQ7QMAd+l1GAzbMBJSuy4FO132so8Klf1DS9T/b9TcUX2zPj/AL+0JO3/nkAvwE23tJm1M5r/MXKLsYquvmateVvUAAkgy6aucqD/aG2VSGIlbPMayL8j5WieIXKG465nS7Whn3qhsVcU2yXhBHu+MlTgB+gvDA9TyJJGbIMf6CADLvWhRUrjWuJH0vSqp0AYxdq7Tmf+5sYN3g2DCqxCIR5uJZqyIJPoZ4J5LY+gKUazY6BSu5tYrnZWTNhtLC560Aq5pu1Hxm2ADhCAgVDfnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',pl='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKr0ynOAE2AiQDghgLgQ4ABCAFhEYHhF0bXiRFpNekVVHJ/j8kcGOoVAN7L8rdRUEn6ZRdEY4cPSsWsYa1Wb2Sgi2cP95lTgmTT/ndiPe/iFyfMpSSB+B++a5qUUJ3i2yOTKBKGtAEZjDQ/79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xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',ul={[ai.alpine]:cl,[ai.alpineDark]:cl,[ai.balham]:pl,[ai.balhamDark]:pl,[ai.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKoQibUgE2AiQDgiQLgRQABCAFhF4HhQQbwx4zozZKkzKjKAuTKdl/nWDK2JwGzwo8TIbdeYNAtGkxGg6xYzGz3JUMFWCLQoUjcyveKfPZ/H3KUMoL2rS9u+gRJeZcVAgRJ5CkLZEpR8wJTYnXnVSMtFyNChezin1NlBr5GXihygP/477uwwhpzmQRmQv4h7xQ1ukb+qbAuHWw7/RtjIFWUFny28Ky25Mrtuy4tSU/Wc7/vwwfQIfAIXD7Tt+s5E8pTn5vAnqvAPcKcIYlde3bwySmDu1CBfgAWXCyv/537t/bNk2bB4wpAJyvJiygJTWLWk3INSABhcEIIFK3nVCyYoEK+KQzcN/aq94CoAZSukZXyN27/bAzE4LLJqw2fOFLyqTCsgoAg9cUEIwBlHm1VR6FqrN1Fdq2W2BBkEa6OUOPR0hZbsED+7l62hratnMRkZGRktL4unUngADAoQ+SAeVlCEiwaKia2gTOYABBQwR8VUQa6iVVYDKIgywZhkDpQzYwg2pogEKYClcQC2Qq0oXaYs5YPlaLUdgQ9tVNJaKVB0aVFF6cTCGhVBqdgYXJnWl1JgunLbYgr2OIF7acWFIHkWlSbS1dvGjSQkU6aoZmJIaoMxMaUYTNbdaUPjzDAU8jcamQigXK1UFkBoXGOSirP22bKJBeriEyKFK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xP58v1dn88qSQrqqYbpmU7rucHoWeee+GlV15746133q/tS5cX9KCBaQ1GeFqW4Zg1U2QwrpobRA+mNJrHnmftPgPtWeo8gSwqSgoEikd5CZWUvDsmkaXNIdZf1h9STVS2TEgFjKJdMcnzVTNcyrI544rdxazid93wxsRk0HxSu4k/tiVCGZajrDXX8WrhVftJ0RU/Ia/64ZpXjoa13dvpWmwq9WLXY8AG8hupZiGFJ1xJm+qGkTLRCYVwm6ItxMhTxKzms6NxGWFaV4+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},hl=cl,ml=d.css`
2077
+ `;let Un=class extends s.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,ri.__decorate)([d.observable],Un.prototype,"slottedAgCell",void 0),(0,ri.__decorate)([d.observable],Un.prototype,"definition",void 0),Un=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-column",template:Pn})],Un);var Gn=r(82940),Bn=r(32449),_n=r(9162),Hn=r(5127),Yn=r(83123),Vn=r(35991),Qn=r(6852),Wn=r(26714),qn=r(71452),Jn=r(99449),Zn=r(30526);class Kn extends s.FoundationElement{constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Gn.WJ.MAX_ROWS_250,this.maxView=Gn.WJ.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1}}(0,ri.__decorate)([l.lj],Kn.prototype,"connect",void 0),(0,ri.__decorate)([d.observable],Kn.prototype,"deferredGridOptions",void 0),(0,ri.__decorate)([d.observable],Kn.prototype,"deferredColumnStates",void 0),(0,ri.__decorate)([d.attr],Kn.prototype,"criteria",void 0),(0,ri.__decorate)([d.attr],Kn.prototype,"fields",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"is-snapshot"})],Kn.prototype,"isSnapshot",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"max-rows"})],Kn.prototype,"maxRows",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"max-view"})],Kn.prototype,"maxView",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"moving-view"})],Kn.prototype,"movingView",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"order-by"})],Kn.prototype,"orderBy",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"resource-name"})],Kn.prototype,"resourceName",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean"})],Kn.prototype,"reverse",void 0);var Xn=r(21607);function el({value:e}){return(0,Xn.D_)(e)}function al({value:e}){return(0,Xn.Lx)(e)}var rl;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(rl||(rl={}));let tl=class extends(Ln(Kn)){constructor(){super(...arguments),this.pollingInterval=Gn.WJ.REQ_REP_POLLING_INTERVAL_MS,this.disablePolling=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new Wn.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Bn.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;d.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Gn.WJ.REQUEST_SERVER_ROW_ID:Gn.WJ.DATASERVER_ROW_ID}init(){return(0,ri.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid&&this.datasource.validResourceName(this.resourceName)&&this.connect.isConnected){const e=yield this.connect.getMetadata(this.resourceName);if(!e)return void qi.warn(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);this.isRequestServer=e.TYPE===Gn._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,ri.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,qn.T)(1),(0,Jn.b)(r),(0,Zn.b)((e=>qi.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else qi.warn("Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.")}))}deinit(){this.reset()}reset(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.dataLogoff(),this.clearRowData(),this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new Wn.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,ri.__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,ri.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return qi.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 qi.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===_n.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Hn.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Hn.$)(e).inserts:e.inserts}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,maxRows:this.maxRows,maxView:this.maxView,movingView:this.movingView,orderBy:this.orderBy,pollingInterval:this.pollingInterval,disablePolling:this.disablePolling,request:this.request,resourceName:this.resourceName,reverse:this.reverse}}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}applyRequestServerData(e){var a;const r=e.REPLY;if(!Array.isArray(r)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void qi.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},rl.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},rl.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},rl.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}flashAddedCells(e){this.agGrid.enableRowFlashing&&e.length&&this.agGrid.gridApi.flashCells({rowNodes:e})}applyMappedAgTransaction(e,a,r){if(r)this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(e,[a]),(e=>{this.flashAddedCells(e.add)}));else{const r=this.agGrid.gridApi.applyTransaction(this.mapTransaction(e,[a]));this.flashAddedCells(r.add)}}mapTransaction(e,a=Object.values(rl)){if(!this.rowDataMapper)return e;const r={};return a.includes(rl.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(rl.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(rl.Update)&&(r.update=this.rowDataMapper(e.update,this.rows)),r}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rows.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r)}else this.agTransaction.add.push(e),this.agTransaction.addIndex=0;this.rows.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{this.agTransaction.remove.push({[this.rowId]:e[this.rowId]}),this.rows.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r),this.rows.set(e[this.rowId],r)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=function(e){switch(e){case Yn.r.DATE:case Yn.r.DATETIME:return{comparator:function(e,a){if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,browserDatePicker:!0}}}(e.type),e.type){case Yn.r.STRING:r.cellEditor=di.stringEditor;break;case Yn.r.NUMBER:r.cellEditor=di.numberEditor,r.filter="agNumberColumnFilter";break;case Yn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=di.boolean,r.cellEditor=di.boolean);break;case Yn.r.DATE:r.valueFormatter=el,r.cellEditor=di.dateEditor,r.filter="agDateColumnFilter";break;case Yn.r.DATETIME:r.valueFormatter=al,r.filter="agDateColumnFilter",r.cellEditor=di.dateEditor,r.cellEditorParams={withTime:!0};break;case Yn.r.ENUM:e.enumOptions?(r.cellEditor=di.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}):qi.warn(`No enumOptions found for field ${e.name}. Default cell editor applied.`)}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values()));return(0,Bn.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,ri.__decorate)([Vn.g],tl.prototype,"auth",void 0),(0,ri.__decorate)([Qn.Yh],tl.prototype,"datasource",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"polling-interval"})],tl.prototype,"pollingInterval",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"disable-polling"})],tl.prototype,"disablePolling",void 0),(0,ri.__decorate)([d.observable],tl.prototype,"request",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"row-id"})],tl.prototype,"rowIdAttr",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],tl.prototype,"restartOnReconnection",void 0),(0,ri.__decorate)([d.observable],tl.prototype,"rowDataMapper",void 0),tl=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-genesis-datasource"})],tl);let ol=class extends tl{};ol=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-client-side-datasource"})],ol);var il=r(66306),nl=r(47546);function ll(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 gl(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn";case"date":case"datetime":return"dateColumn";default:return null}}class dl{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,ri.__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,nl.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===_n.Cs.LOGOFF_ACK||o===_n.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,Hn.$)(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=>qi.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,ri.__decorate)([Vn.g],dl.prototype,"auth",void 0),(0,ri.__decorate)([l.lj],dl.prototype,"connect",void 0);let sl=class extends(Ln(Kn)){constructor(){super(...arguments),this.pagination=!1,this.rowId="ROW_REF"}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,Bn.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;d.DOM.queueUpdate((()=>{e&&this.reset()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions=Object.assign({getRowId:e=>e.data?e.data[this.rowId]:null,cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!0},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{}},this.deferredGridOptions),void this.agGrid.addEventListener("onGridReady",(()=>(0,ri.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>qi.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,il.C)(e);const a=(0,il.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new dl({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});qi.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));qi.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 qi.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,ri.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>qi.debug(e)),(e=>qi.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 Yn.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 Yn.r.DATE:case Yn.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 Yn.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 Yn.r.NUMBER:r.cellEditor=di.numberEditor;break;case Yn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=di.boolean,r.cellEditor=di.boolean);break;case Yn.r.DATE:r.valueFormatter=el;break;case Yn.r.DATETIME:r.valueFormatter=al;break;case Yn.r.ENUM:r.cellEditor=di.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:gl(e.type),filter:ll(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,ri.__decorate)([(0,d.attr)({mode:"boolean"})],sl.prototype,"pagination",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"row-id"})],sl.prototype,"rowId",void 0),sl=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-server-side-datasource"})],sl);const cl='\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+zSHSRfcvw1zpZ98C2kVXG2W5VN1e6FQaG8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ukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',pl='\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+gsz8FVCONktVNl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f0dKvvBBU9agR+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',ul={[ai.alpine]:cl,[ai.alpineDark]:cl,[ai.balham]:pl,[ai.balhamDark]:pl,[ai.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKoQibUgE2AiQDgiQLgRQABCAFhF4HhQQbwx4zozZKkzKjKAuTKdl/nWDK2JwGzwo8TIbdeYNAtGkxGg6xYzGz3JUMFWCLQoUjcyveKfPZ/H3KUMoL2rS9u+gRJeZcVA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wQqoNi1D1jqSiBPQ/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'},hl=cl,ml=d.css`
2075
2078
  .ag-icon {
2076
2079
  font-family: var(--ag-icon-font-family);
2077
2080
  font-size: var(--ag-icon-size);
@@ -10291,7 +10294,7 @@
10291
10294
  <slot></slot>
10292
10295
  </span>
10293
10296
  </template>
10294
- `;class kl{init(e){const a=this.eGui=document.createElement("div"),r=e.value;a.classList.add("custom-tooltip"),a.style["background-color"]="#f14376",a.style.border="1px inside",a.style["border-color"]="#2e3339",a.style["border-radius"]="4px",a.style.padding="5px",a.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",a.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}function Sl(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}Wi.O3h.registerModules([Nn.jM,Dn.I]);const Cl=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Al extends(Ln(s.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,jn.A)(li(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=hl,this.columnComponentName="grid-pro-column",this.theme=ai.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Wi.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Cl(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&&Wi.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Cl(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(this.initialised=!1,null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[di.action]:Ji,[di.actionsMenu]:rn,[di.boolean]:ln,[di.editable]:Bi,[di.selectEditor]:Si,[di.numberEditor]:Ni,[di.multiselectEditor]:fi,[di.dateEditor]:pi,[di.stringEditor]:ji};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout((()=>{var e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()}),5))}removeConfigWidthsToAutosize(e){return e.map((e=>Object.assign(Object.assign({},e),{width:null})))}saveColumnState(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){const e=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");let a=this.columnApi.getColumnState();if(a=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(a):a,0===a.length)return;e[this.persistColumnStateKey]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(e))}}getSavedColumnState(){const e=this.session.getLocalStorageItem("gridOptions");if(this.statePersistanceEnabled()&&e){const a=JSON.parse(e);if(this.persistColumnStateKey in a)return JSON.parse(a[this.persistColumnStateKey])}return[]}restoreColumnState(){var e;this.rehydrationAttempted=!0;const a=this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}cacheFilterConfig(){var e;this.filterConfig=(null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0}restoreCachedFilterConfig(){var e,a;void 0!==this.filterConfig&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(this.filterConfig),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}get gridOptions(){return this.agGridOptions}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(e){const a=this.globalEventListener.bind(this),r=()=>{this.saveColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:t,components:o,defaultColDef:i,onGridReady:n,onFirstDataRendered:l}=e,g=(0,ri.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),s=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0},this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProDatasource?s.columnDefs=t:s.columnDefs=this.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Wi.plv.copyAttributesToGridOptions(s,this.agAttributes));const c={globalEventListener:a};d.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Wi.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return qi.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;const t=e||[],o=Array.from(this.querySelectorAll(this.columnComponentName)).map((e=>e.definition)).map((e=>{this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=a=>{if(a.data[si]===e.field)return{component:di.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=kl,e.tooltipValueGetter=a=>{const r=a.data[ci];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[ci])||void 0===a?void 0:a.column)===e.colDef.field}}));const a=t.find((a=>e.field===a.field));return Object.assign(Object.assign({},a),e)})),i=o.map((e=>e.field)),n=[...o,...this.onlyTemplateColDefs?[]:t.filter((e=>!i.includes(e.field)))];if(this.gridProDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Sl(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Sl(n,this.gridProDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Wi.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Wi.plv.ALL_PROPERTIES.map((e=>Cl(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},Wi.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=ul[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Rn.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,ri.__decorate)([d.observable],Al.prototype,"columnApi",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridApi",void 0),(0,ri.__decorate)([Fn.z],Al.prototype,"session",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Al.prototype,"autoCellRendererByType",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Al.prototype,"onlyTemplateColDefs",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"grid-autosizing"})],Al.prototype,"gridAutosizingEnabled",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"add-index"})],Al.prototype,"addIndex",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-add"})],Al.prototype,"asyncAdd",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-remove"})],Al.prototype,"asyncRemove",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-update"})],Al.prototype,"asyncUpdate",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Al.prototype,"enableCellFlashing",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Al.prototype,"enabledRowFlashing",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Al.prototype,"enableRowFlashing",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"persist-column-state-key"})],Al.prototype,"persistColumnStateKey",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridFontFace",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"columnComponentName",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"eventsAndCallbacks",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"headerHeight",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"rowHeight",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"theme",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"classNames",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"agGrid",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridSlot",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridComponents",void 0);const Tl=void 0,Ol={shadowOptions:void 0},Dl=Al.compose(Object.assign({baseName:"grid-pro",styles:xl,template:zl,shadowOptions:Tl},Ol)),Nl={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#879ba6")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#1f2126")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2e3339")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2b2e34"))},Fl={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#000000")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#181d1f")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#FFFFFF")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#babfc7")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2196f3"))},{create:$l}=s.DesignToken,Ll={backgroundColor:$l("rapid-ag-background-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Fl.backgroundSwatch:Nl.backgroundSwatch)),borderColor:$l("rapid-ag-border-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Fl.borderSwatch:Nl.borderSwatch)),foregroundColor:$l("rapid-ag-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Fl.foregroundSwatch:Nl.foregroundSwatch)),headerForegroundColor:$l("rapid-ag-header-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Fl.headerForegroundSwatch:Nl.headerForegroundSwatch)),rowHoverColor:$l("rapid-ag-row-hover-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Fl.rowHoverSwatch:Nl.rowHoverSwatch))},Ml=d.css`
10297
+ `;class kl{init(e){const a=this.eGui=document.createElement("div"),r=e.value;a.classList.add("custom-tooltip"),a.style["background-color"]="#f14376",a.style.border="1px inside",a.style["border-color"]="#2e3339",a.style["border-radius"]="4px",a.style.padding="5px",a.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",a.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}function Sl(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}Wi.O3h.registerModules([Nn.jM,Dn.I]);const Cl=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Al extends(Ln(s.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,jn.A)(li(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=hl,this.columnComponentName="grid-pro-column",this.theme=ai.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Wi.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Cl(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&&Wi.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Cl(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(this.initialised=!1,null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[di.action]:Ji,[di.actionsMenu]:rn,[di.boolean]:ln,[di.editable]:Bi,[di.selectEditor]:Si,[di.numberEditor]:Ni,[di.multiselectEditor]:fi,[di.dateEditor]:pi,[di.stringEditor]:ji};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout((()=>{var e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()}),5))}removeConfigWidthsToAutosize(e){return e.map((e=>Object.assign(Object.assign({},e),{width:null})))}saveColumnState(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){const e=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");let a=this.columnApi.getColumnState();if(a=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(a):a,0===a.length)return;e[this.persistColumnStateKey]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(e))}}getSavedColumnState(){const e=this.session.getLocalStorageItem("gridOptions");if(this.statePersistanceEnabled()&&e){const a=JSON.parse(e);if(this.persistColumnStateKey in a)return JSON.parse(a[this.persistColumnStateKey])}return[]}restoreColumnState(){var e;this.rehydrationAttempted=!0;const a=this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}cacheFilterConfig(){var e;this.filterConfig=(null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0}restoreCachedFilterConfig(){var e,a;void 0!==this.filterConfig&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(this.filterConfig),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}get gridOptions(){return this.agGridOptions}get gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-side-datasource")}set gridOptions(e){const a=this.globalEventListener.bind(this),r=()=>{this.saveColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:t,components:o,defaultColDef:i,onGridReady:n,onFirstDataRendered:l}=e,g=(0,ri.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),s=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),defaultCsvExportParams:this.csvExportParams,components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0},this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProDatasource?s.columnDefs=t:s.columnDefs=this.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Wi.plv.copyAttributesToGridOptions(s,this.agAttributes));const c={globalEventListener:a};d.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Wi.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return qi.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;const t=e||[],o=Array.from(this.querySelectorAll(this.columnComponentName)).map((e=>e.definition)).map((e=>{this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0),e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=a=>{if(a.data[si]===e.field)return{component:di.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=kl,e.tooltipValueGetter=a=>{const r=a.data[ci];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[ci])||void 0===a?void 0:a.column)===e.colDef.field}}));const a=t.find((a=>e.field===a.field));return Object.assign(Object.assign({},a),e)})),i=o.map((e=>e.field)),n=[...o,...this.onlyTemplateColDefs?[]:t.filter((e=>!i.includes(e.field)))];if(this.gridProDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Sl(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Sl(n,this.gridProDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Wi.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Wi.plv.ALL_PROPERTIES.map((e=>Cl(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},Wi.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=ul[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Rn.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}get csvExportParams(){return{processCellCallback:e=>["+","-","=","@","\t","\n"].some((a=>String(e.value).startsWith(a)))?"#ERROR formulas not allowed":e.value}}}(0,ri.__decorate)([d.observable],Al.prototype,"columnApi",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridApi",void 0),(0,ri.__decorate)([$n.z],Al.prototype,"session",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Al.prototype,"autoCellRendererByType",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Al.prototype,"onlyTemplateColDefs",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"grid-autosizing"})],Al.prototype,"gridAutosizingEnabled",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"add-index"})],Al.prototype,"addIndex",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-add"})],Al.prototype,"asyncAdd",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-remove"})],Al.prototype,"asyncRemove",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-update"})],Al.prototype,"asyncUpdate",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Al.prototype,"enableCellFlashing",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Al.prototype,"enabledRowFlashing",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Al.prototype,"enableRowFlashing",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"persist-column-state-key"})],Al.prototype,"persistColumnStateKey",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridFontFace",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"columnComponentName",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"eventsAndCallbacks",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"headerHeight",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"rowHeight",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"theme",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"classNames",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"agGrid",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridSlot",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridComponents",void 0);const Tl=void 0,Ol={shadowOptions:void 0},Dl=Al.compose(Object.assign({baseName:"grid-pro",styles:xl,template:zl,shadowOptions:Tl},Ol)),Nl={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#879ba6")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#1f2126")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2e3339")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2b2e34"))},$l={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#000000")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#181d1f")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#FFFFFF")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#babfc7")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2196f3"))},{create:Fl}=s.DesignToken,Ll={backgroundColor:Fl("rapid-ag-background-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.backgroundSwatch:Nl.backgroundSwatch)),borderColor:Fl("rapid-ag-border-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.borderSwatch:Nl.borderSwatch)),foregroundColor:Fl("rapid-ag-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.foregroundSwatch:Nl.foregroundSwatch)),headerForegroundColor:Fl("rapid-ag-header-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.headerForegroundSwatch:Nl.headerForegroundSwatch)),rowHoverColor:Fl("rapid-ag-row-hover-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.rowHoverSwatch:Nl.rowHoverSwatch))},Ml=d.css`
10295
10298
  .ag-theme-genesis-rapid,
10296
10299
  .ag-theme-genesis-rapid-dark {
10297
10300
  --ag-alpine-active-color: #2196f3;
@@ -11153,7 +11156,7 @@
11153
11156
  <slot></slot>
11154
11157
  </div>
11155
11158
  </template>
11156
- `,Kl=({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(Wl).find((a=>Wl[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Xl=Kl(Fe),eg={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},ag=Kl(i.designTokens),rg={zero:{prefix:"zero",tokenDefaults:Xl,buttons:eg},alpha:{prefix:"alpha",tokenDefaults:ag,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:eg}};let tg=class extends d.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Xl.luminance===c.StandardLuminance.DarkMode,this.luminance=Xl.luminance,this.neutralColor=Xl.neutralColor,this.accentColor=Xl.accentColor,this.bodyFont=Xl.bodyFont,this.density=Xl.density,this.borderRadius=Xl.borderRadius,this.strokeWidth=Xl.strokeWidth,this.designUnit=Xl.designUnit,this.baseFontSize=Xl.baseFontSize,this.baseLineHeight=Xl.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof s.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof c.Combobox||e.target instanceof c.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof s.Slider){const a=parseInt(e.target.value),r=e.target.name;r&&Number.isInteger(a)&&(this[r]=a,this.updateUserSelections(r,a),this.styleUpdate())}},this.updateUserSelections=(e,a)=>{"ds"===e||this.tokenUpdateInProgress||(this.userSelections[e]=a)},this.modeChangeHandler=e=>{this.darkMode=e.target.checked,this.luminance=this.darkMode?c.StandardLuminance.DarkMode:c.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&d.DOM.queueUpdate((()=>{const e=Kl(a);rg.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Ql.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(rg[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Ql.__awaiter)(this,void 0,void 0,(function*(){const e=[{name:"Zero",value:"zero"},{name:"Foundation UI",value:"alpha"}];if(this.customDesignMode){const e={name:(yield this.getAppName())||"Custom Design",value:"custom"};this.designSystems=[e],this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:rg[this.ds].prefix,buttonAppearanceAccent:rg[this.ds].buttons.accent,buttonAppearanceNeutral:rg[this.ds].buttons.neutral,buttonAppearanceOutline:rg[this.ds].buttons.outline};this.$emit(Vl.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(rg[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Wl[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(Vl.STYLES_CHANGED,e)}setTokensFromDs(e){this.tokenUpdateInProgress=!0,Object.keys(e).forEach((a=>{this.preserveOptions&&void 0!==this.userSelections[a]?this[a]=this.userSelections[a]:this[a]=e[a]})),this.darkMode=this.luminance===c.StandardLuminance.DarkMode,d.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppName(){return fetch("/api/name").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},Ce(),d.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Vl.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Ql.__decorate)([(0,d.attr)({mode:"boolean",attribute:"custom-design-mode"})],tg.prototype,"customDesignMode",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"designSystems",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"ds",void 0),(0,Ql.__decorate)([d.attr],tg.prototype,"darkMode",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"neutralColor",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"accentColor",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"bodyFont",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"density",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"borderRadius",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"strokeWidth",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"designUnit",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"baseFontSize",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"baseLineHeight",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"preserveOptions",void 0),tg=(0,Ql.__decorate)([(0,d.customElement)({name:"design-system-editor",template:Zl,styles:Jl})],tg);const og=e=>{const a=(e=>{const a=(0,Ee.parseColorHexRGB)(e);return a?c.SwatchRGB.from(a):null})(e);return a?c.PaletteRGB.create(a):null},ig=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},ng=(e,a)=>{const r=og(e.neutralColor);c.neutralPalette.setValueFor(a,r);const t=og(e.accentColor);c.accentPalette.setValueFor(a,t),c.baseLayerLuminance.setValueFor(a,e.luminance),c.density.setValueFor(a,e.density),c.controlCornerRadius.setValueFor(a,e.borderRadius),c.strokeWidth.setValueFor(a,e.strokeWidth),c.designUnit.setValueFor(a,e.designUnit),c.bodyFont.setValueFor(a,e.bodyFont),c.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),c.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),c.typeRampMinus1FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.minusOne,a)),c.typeRampMinus1LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.minusOne,a)),c.typeRampMinus2FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.minusTwo,a)),c.typeRampMinus2LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.minusTwo,a)),c.typeRampPlus1FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusOne,a)),c.typeRampPlus1LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusOne,a)),c.typeRampPlus2FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusTwo,a)),c.typeRampPlus2LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusTwo,a)),c.typeRampPlus3FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusThree,a)),c.typeRampPlus3LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusThree,a)),c.typeRampPlus4FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusFour,a)),c.typeRampPlus4LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusFour,a)),c.typeRampPlus5FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusFive,a)),c.typeRampPlus5LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusFive,a)),c.typeRampPlus6FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusSix,a)),c.typeRampPlus6LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusSix,a))},lg=d.css`
11159
+ `,Kl=({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(Wl).find((a=>Wl[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Xl=Kl($e),eg={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},ag=Kl(i.designTokens),rg={zero:{prefix:"zero",tokenDefaults:Xl,buttons:eg},alpha:{prefix:"alpha",tokenDefaults:ag,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:eg}};let tg=class extends d.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Xl.luminance===c.StandardLuminance.DarkMode,this.luminance=Xl.luminance,this.neutralColor=Xl.neutralColor,this.accentColor=Xl.accentColor,this.bodyFont=Xl.bodyFont,this.density=Xl.density,this.borderRadius=Xl.borderRadius,this.strokeWidth=Xl.strokeWidth,this.designUnit=Xl.designUnit,this.baseFontSize=Xl.baseFontSize,this.baseLineHeight=Xl.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof s.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof c.Combobox||e.target instanceof c.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof s.Slider){const a=parseInt(e.target.value),r=e.target.name;r&&Number.isInteger(a)&&(this[r]=a,this.updateUserSelections(r,a),this.styleUpdate())}},this.updateUserSelections=(e,a)=>{"ds"===e||this.tokenUpdateInProgress||(this.userSelections[e]=a)},this.modeChangeHandler=e=>{this.darkMode=e.target.checked,this.luminance=this.darkMode?c.StandardLuminance.DarkMode:c.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&d.DOM.queueUpdate((()=>{const e=Kl(a);rg.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Ql.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(rg[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Ql.__awaiter)(this,void 0,void 0,(function*(){const e=[{name:"Zero",value:"zero"},{name:"Foundation UI",value:"alpha"}];if(this.customDesignMode){const e={name:(yield this.getAppName())||"Custom Design",value:"custom"};this.designSystems=[e],this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:rg[this.ds].prefix,buttonAppearanceAccent:rg[this.ds].buttons.accent,buttonAppearanceNeutral:rg[this.ds].buttons.neutral,buttonAppearanceOutline:rg[this.ds].buttons.outline};this.$emit(Vl.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(rg[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Wl[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(Vl.STYLES_CHANGED,e)}setTokensFromDs(e){this.tokenUpdateInProgress=!0,Object.keys(e).forEach((a=>{this.preserveOptions&&void 0!==this.userSelections[a]?this[a]=this.userSelections[a]:this[a]=e[a]})),this.darkMode=this.luminance===c.StandardLuminance.DarkMode,d.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppName(){return fetch("/api/name").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},Ce(),d.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Vl.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Ql.__decorate)([(0,d.attr)({mode:"boolean",attribute:"custom-design-mode"})],tg.prototype,"customDesignMode",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"designSystems",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"ds",void 0),(0,Ql.__decorate)([d.attr],tg.prototype,"darkMode",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"neutralColor",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"accentColor",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"bodyFont",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"density",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"borderRadius",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"strokeWidth",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"designUnit",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"baseFontSize",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"baseLineHeight",void 0),(0,Ql.__decorate)([d.observable],tg.prototype,"preserveOptions",void 0),tg=(0,Ql.__decorate)([(0,d.customElement)({name:"design-system-editor",template:Zl,styles:Jl})],tg);const og=e=>{const a=(e=>{const a=(0,Ee.parseColorHexRGB)(e);return a?c.SwatchRGB.from(a):null})(e);return a?c.PaletteRGB.create(a):null},ig=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},ng=(e,a)=>{const r=og(e.neutralColor);c.neutralPalette.setValueFor(a,r);const t=og(e.accentColor);c.accentPalette.setValueFor(a,t),c.baseLayerLuminance.setValueFor(a,e.luminance),c.density.setValueFor(a,e.density),c.controlCornerRadius.setValueFor(a,e.borderRadius),c.strokeWidth.setValueFor(a,e.strokeWidth),c.designUnit.setValueFor(a,e.designUnit),c.bodyFont.setValueFor(a,e.bodyFont),c.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),c.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),c.typeRampMinus1FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.minusOne,a)),c.typeRampMinus1LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.minusOne,a)),c.typeRampMinus2FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.minusTwo,a)),c.typeRampMinus2LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.minusTwo,a)),c.typeRampPlus1FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusOne,a)),c.typeRampPlus1LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusOne,a)),c.typeRampPlus2FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusTwo,a)),c.typeRampPlus2LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusTwo,a)),c.typeRampPlus3FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusThree,a)),c.typeRampPlus3LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusThree,a)),c.typeRampPlus4FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusFour,a)),c.typeRampPlus4LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusFour,a)),c.typeRampPlus5FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusFive,a)),c.typeRampPlus5LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusFive,a)),c.typeRampPlus6FontSize.setValueFor(a,ig(c.typeRampBaseFontSize,Se.Yd.plusSix,a)),c.typeRampPlus6LineHeight.setValueFor(a,ig(c.typeRampBaseLineHeight,Se.Yd.plusSix,a))},lg=d.css`
11157
11160
  :host {
11158
11161
  background: var(--fill-color);
11159
11162
  color: var(--neutral-foreground-rest);
@@ -11812,7 +11815,7 @@
11812
11815
  </alpha-tab-panel>
11813
11816
  </alpha-tabs>
11814
11817
  </template>
11815
- `;let Dg=class extends d.FASTElement{};Dg=(0,Ql.__decorate)([(0,d.customElement)({name:"design-system-preview",template:Og,styles:Tg})],Dg);const Ng={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"}]}]}}]},Fg={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"]}}},$g={type:"VerticalLayout",dsPrefix:"zero",elements:[{type:"Control",scope:"#/properties/users",options:{childUiSchema:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/firstname",label:"First Name"},{type:"Control",scope:"#/properties/lastname",label:"Last Name"},{type:"Control",scope:"#/properties/email",label:"Email"}]}}}]},Lg={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"]}}}},Mg=d.css`
11818
+ `;let Dg=class extends d.FASTElement{};Dg=(0,Ql.__decorate)([(0,d.customElement)({name:"design-system-preview",template:Og,styles:Tg})],Dg);const Ng={type:"VerticalLayout",elements:[{type:"Group",label:"Group 1",scope:"#/properties/group1",options:{childElements:[{type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/group1/properties/NAME",label:"Name"}]}]}},{type:"Group",label:"Group 2",scope:"#/properties/group2",options:{childElements:[{type:"LayoutVertical2Columns",elements:[{type:"Control",scope:"#/properties/group2/properties/QUANTITY",label:"Quantity"},{type:"Control",scope:"#/properties/group2/properties/PRICE",label:"Price"},{type:"Control",scope:"#/properties/group2/properties/COUNTERPARTY_ID",options:{data:[{name:"Genesis Global",value:"GENESIS"},{name:"Acme Global",value:"ACME"}],valueField:"value",labelField:"name"},label:"Counterparty"},{type:"Control",scope:"#/properties/group2/properties/INSTRUMENT_ID",options:{data:[{name:"Bond",value:"BOND"},{name:"Equity",value:"EQUITY"}],valueField:"value",labelField:"name"},label:"Instrument"},{type:"Control",scope:"#/properties/group2/properties/SIDE",label:"Side"},{type:"Control",scope:"#/properties/group2/properties/TRADE_DATE",label:"Trade Date"},{type:"Control",scope:"#/properties/group2/properties/ACTIVE",label:"Active"}]}]}}]},$g={type:"object",properties:{group1:{type:"object",properties:{NAME:{type:"string"}}},group2:{type:"object",properties:{QUANTITY:{type:"number"},PRICE:{type:"number"},COUNTERPARTY_ID:{type:"string"},INSTRUMENT_ID:{type:"string"},SIDE:{type:"string",enum:["BUY","SELL"]},TRADE_DATE:{type:"number",format:"date",description:"org.joda.time.DateTime"},ACTIVE:{type:"boolean"}},required:["QUANTITY","PRICE"]}}},Fg={type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/users",options:{childUiSchema:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/firstname",label:"First Name"},{type:"Control",scope:"#/properties/lastname",label:"Last Name"},{type:"Control",scope:"#/properties/email",label:"Email"}]}}}]},Lg={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"]}}}},Mg=d.css`
11816
11819
  :host {
11817
11820
  background: var(--fill-color);
11818
11821
  color: var(--neutral-foreground-rest);
@@ -11854,18 +11857,20 @@
11854
11857
  :jsonSchema=${e=>e.jsonSchema}
11855
11858
  :uischema=${e=>e.uischema}
11856
11859
  :data=${e=>e.editedEntity}
11860
+ design-system-prefix="${e=>e.prefix}"
11857
11861
  ></foundation-form>
11858
11862
  <foundation-form
11859
11863
  :jsonSchema=${e=>e.jsonSchemaArray}
11860
11864
  :uischema=${e=>e.uiSchemaArray}
11861
11865
  :data=${e=>e.editedEntityArray}
11866
+ design-system-prefix="${e=>e.prefix}"
11862
11867
  ></foundation-form>
11863
11868
  </div>
11864
11869
  </div>
11865
11870
  </${a}-design-system-provider>
11866
11871
  </template>
11867
11872
  `;var a}}
11868
- `;let jg=class extends d.FASTElement{constructor(){super(...arguments),this.jsonSchema=Fg,this.uischema=Ng,this.jsonSchemaArray=Lg,this.uiSchemaArray=$g,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(Vl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Vl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{c.bodyFont.withDefault(ql)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{ng(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.uischema.dsPrefix=e.detail.prefix,this.uiSchemaArray.dsPrefix=e.detail.prefix}};(0,Ql.__decorate)([d.observable],jg.prototype,"jsonSchema",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"uischema",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"jsonSchemaArray",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"uiSchemaArray",void 0),(0,Ql.__decorate)([d.attr],jg.prototype,"prefix",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"provider",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"editedEntity",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"editedEntityArray",void 0),jg=(0,Ql.__decorate)([(0,d.customElement)({name:"preview-form",template:Rg,styles:Mg})],jg);const Ig=d.css`
11873
+ `;let jg=class extends d.FASTElement{constructor(){super(...arguments),this.jsonSchema=$g,this.uischema=Ng,this.jsonSchemaArray=Lg,this.uiSchemaArray=Fg,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(Vl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Vl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{c.bodyFont.withDefault(ql)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{ng(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix}};(0,Ql.__decorate)([d.observable],jg.prototype,"jsonSchema",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"uischema",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"jsonSchemaArray",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"uiSchemaArray",void 0),(0,Ql.__decorate)([d.attr],jg.prototype,"prefix",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"provider",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"editedEntity",void 0),(0,Ql.__decorate)([d.observable],jg.prototype,"editedEntityArray",void 0),jg=(0,Ql.__decorate)([(0,d.customElement)({name:"preview-form",template:Rg,styles:Mg})],jg);const Ig=d.css`
11869
11874
  :host {
11870
11875
  background: var(--fill-color);
11871
11876
  color: var(--neutral-foreground-rest);
@@ -11891,4 +11896,4 @@
11891
11896
  </template>
11892
11897
  `;var a}}
11893
11898
  `;let Pg=class extends d.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[{make:"Toyota",model:"Celica",price:35e3,creationDate:1617624494293,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494295,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1619637452397,isCool:!1},{make:"Audi",model:"A6",price:8e4,creationDate:1617624494293,isCool:!0},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494295,isCool:!0},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1619637452397,isCool:!1},{make:"BMW",model:"Z8",price:9e4,creationDate:1617624494293,isCool:!1},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494295,isCool:!1},{make:"Toyota",model:"Celica",price:35e3,creationDate:1619637452397,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494293,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1617624494295,isCool:!0},{make:"Audi",model:"A6",price:8e4,creationDate:1619637452397,isCool:!1},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494293,isCool:!1},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1617624494295,isCool:!0},{make:"BMW",model:"Z8",price:9e4,creationDate:1619637452397,isCool:!0},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494293,isCool:!0}],this.columnDefs=[{field:"make"},{field:"model"},{field:"price"},{field:"creationDate"},{field:"isCool"}],this.gridOptions={defaultColDef:{resizable:!0,filter:!0},debug:!1,columnDefs:this.columnDefs,rowData:this.rowData}}setGridOptions(){this.grid.gridOptions=this.gridOptions}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Vl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Vl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{this.setGridOptions(),c.bodyFont.withDefault(ql)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{ng(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,d.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Ql.__decorate)([d.observable],Pg.prototype,"grid",void 0),(0,Ql.__decorate)([d.attr],Pg.prototype,"prefix",void 0),(0,Ql.__decorate)([d.observable],Pg.prototype,"provider",void 0),(0,Ql.__decorate)([d.observable],Pg.prototype,"rowData",void 0),(0,Ql.__decorate)([d.observable],Pg.prototype,"columnDefs",void 0),(0,Ql.__decorate)([d.observable],Pg.prototype,"gridOptions",void 0),Pg=(0,Ql.__decorate)([(0,d.customElement)({name:"preview-grid",template:Eg,styles:Ig})],Pg),((e,a="zero")=>{e&&(0,I.provideTokens)(t,o,e);const r=s.DesignSystem.getOrCreate(e).withPrefix(a);return(0,I.createDesignSystemProxy)(r)})().register(Xo,Hl),(0,i.provideDesignSystem)().register(i.baseComponents,Yl)}}]);
11894
- //# sourceMappingURL=180.f1690178c2b9f74b6df3be719c1d4480.js.map
11899
+ //# sourceMappingURL=180.7b70a8d34847ee3ce8a7d2ae3f9d1f19.js.map