@genesislcap/design-system-configurator 14.111.0 → 14.112.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([[153],{71153:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>ug,ColorToken:()=>vg,ColorTokens:()=>xg,DesignSystemEditor:()=>ag,DesignSystemExport:()=>sg,DesignSystemPreview:()=>Tg,EventName:()=>Hl,PreviewComponents:()=>lg,PreviewForm:()=>Mg,PreviewGrid:()=>Ig,TypographyTokens:()=>Sg,defaultBodyFont:()=>Ql,fontFamilies:()=>Vl});var t={};r.r(t),r.d(t,{accentFillActive:()=>p.accentFillActive,accentFillActiveDelta:()=>p.accentFillActiveDelta,accentFillFocus:()=>p.accentFillFocus,accentFillFocusDelta:()=>p.accentFillFocusDelta,accentFillHover:()=>p.accentFillHover,accentFillHoverDelta:()=>p.accentFillHoverDelta,accentFillRest:()=>p.accentFillRest,accentFillRestDelta:()=>p.accentFillRestDelta,accentForegroundActive:()=>p.accentForegroundActive,accentForegroundActiveDelta:()=>p.accentForegroundActiveDelta,accentForegroundFocus:()=>p.accentForegroundFocus,accentForegroundFocusDelta:()=>p.accentForegroundFocusDelta,accentForegroundHover:()=>p.accentForegroundHover,accentForegroundHoverDelta:()=>p.accentForegroundHoverDelta,accentForegroundRest:()=>p.accentForegroundRest,accentForegroundRestDelta:()=>p.accentForegroundRestDelta,accentPalette:()=>p.accentPalette,baseHeightMultiplier:()=>p.baseHeightMultiplier,baseLayerLuminance:()=>p.baseLayerLuminance,bodyFont:()=>p.bodyFont,controlCornerRadius:()=>p.controlCornerRadius,density:()=>p.density,designUnit:()=>p.designUnit,direction:()=>p.direction,disabledOpacity:()=>p.disabledOpacity,fillColor:()=>p.fillColor,focusStrokeInner:()=>p.focusStrokeInner,focusStrokeOuter:()=>p.focusStrokeOuter,focusStrokeWidth:()=>p.focusStrokeWidth,foregroundOnAccentActive:()=>p.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>p.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>p.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>p.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>p.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>p.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>p.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>p.foregroundOnAccentRestLarge,neutralFillActive:()=>p.neutralFillActive,neutralFillActiveDelta:()=>p.neutralFillActiveDelta,neutralFillFocus:()=>p.neutralFillFocus,neutralFillFocusDelta:()=>p.neutralFillFocusDelta,neutralFillHover:()=>p.neutralFillHover,neutralFillHoverDelta:()=>p.neutralFillHoverDelta,neutralFillInputActive:()=>p.neutralFillInputActive,neutralFillInputActiveDelta:()=>p.neutralFillInputActiveDelta,neutralFillInputFocus:()=>p.neutralFillInputFocus,neutralFillInputFocusDelta:()=>p.neutralFillInputFocusDelta,neutralFillInputHover:()=>p.neutralFillInputHover,neutralFillInputHoverDelta:()=>p.neutralFillInputHoverDelta,neutralFillInputRest:()=>p.neutralFillInputRest,neutralFillInputRestDelta:()=>p.neutralFillInputRestDelta,neutralFillLayerRest:()=>p.neutralFillLayerRest,neutralFillLayerRestDelta:()=>p.neutralFillLayerRestDelta,neutralFillRest:()=>p.neutralFillRest,neutralFillRestDelta:()=>p.neutralFillRestDelta,neutralFillStealthActive:()=>p.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>p.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>p.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>p.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>p.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>p.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>p.neutralFillStealthRest,neutralFillStealthRestDelta:()=>p.neutralFillStealthRestDelta,neutralFillStrongActive:()=>p.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>p.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>p.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>p.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>p.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>p.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>p.neutralFillStrongRest,neutralFillStrongRestDelta:()=>p.neutralFillStrongRestDelta,neutralForegroundHint:()=>p.neutralForegroundHint,neutralForegroundRest:()=>p.neutralForegroundRest,neutralLayer1:()=>p.neutralLayer1,neutralLayer2:()=>p.neutralLayer2,neutralLayer3:()=>p.neutralLayer3,neutralLayer4:()=>p.neutralLayer4,neutralLayerCardContainer:()=>p.neutralLayerCardContainer,neutralLayerFloating:()=>p.neutralLayerFloating,neutralPalette:()=>p.neutralPalette,neutralStrokeActive:()=>p.neutralStrokeActive,neutralStrokeActiveDelta:()=>p.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>p.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>p.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>p.neutralStrokeFocus,neutralStrokeFocusDelta:()=>p.neutralStrokeFocusDelta,neutralStrokeHover:()=>p.neutralStrokeHover,neutralStrokeHoverDelta:()=>p.neutralStrokeHoverDelta,neutralStrokeRest:()=>p.neutralStrokeRest,neutralStrokeRestDelta:()=>p.neutralStrokeRestDelta,strokeWidth:()=>p.strokeWidth,typeRampBaseFontSize:()=>p.typeRampBaseFontSize,typeRampBaseLineHeight:()=>p.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>p.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>p.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>p.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>p.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>p.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>p.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>p.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>p.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>p.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>p.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>p.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>p.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>p.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>p.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>p.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>p.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>he,baseLayerLuminanceValue:()=>ve,bodyFontValue:()=>Ae,controlCornerRadiusValue:()=>we,densityValue:()=>ye,designTokens:()=>De,designUnitValue:()=>xe,directionValue:()=>be,neutralPaletteValue:()=>me,strokeWidthValue:()=>fe,typeRampBaseFontSizeValue:()=>Te,typeRampBaseLineHeightValue:()=>Oe});var i=r(19819),n=r(92592),l=r(89074),g=r(28629),d=r(60724),s=r(83147),c=r(75951),p=r(13896),u=r(67973);const h=s.css`
1
+ "use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[153],{71153:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>hg,ColorToken:()=>bg,ColorTokens:()=>zg,DesignSystemEditor:()=>rg,DesignSystemExport:()=>cg,DesignSystemPreview:()=>Og,EventName:()=>Yl,PreviewComponents:()=>gg,PreviewForm:()=>Rg,PreviewGrid:()=>Eg,TypographyTokens:()=>Cg,defaultBodyFont:()=>Wl,fontFamilies:()=>Ql});var t={};r.r(t),r.d(t,{accentFillActive:()=>p.accentFillActive,accentFillActiveDelta:()=>p.accentFillActiveDelta,accentFillFocus:()=>p.accentFillFocus,accentFillFocusDelta:()=>p.accentFillFocusDelta,accentFillHover:()=>p.accentFillHover,accentFillHoverDelta:()=>p.accentFillHoverDelta,accentFillRest:()=>p.accentFillRest,accentFillRestDelta:()=>p.accentFillRestDelta,accentForegroundActive:()=>p.accentForegroundActive,accentForegroundActiveDelta:()=>p.accentForegroundActiveDelta,accentForegroundFocus:()=>p.accentForegroundFocus,accentForegroundFocusDelta:()=>p.accentForegroundFocusDelta,accentForegroundHover:()=>p.accentForegroundHover,accentForegroundHoverDelta:()=>p.accentForegroundHoverDelta,accentForegroundRest:()=>p.accentForegroundRest,accentForegroundRestDelta:()=>p.accentForegroundRestDelta,accentPalette:()=>p.accentPalette,baseHeightMultiplier:()=>p.baseHeightMultiplier,baseLayerLuminance:()=>p.baseLayerLuminance,bodyFont:()=>p.bodyFont,controlCornerRadius:()=>p.controlCornerRadius,density:()=>p.density,designUnit:()=>p.designUnit,direction:()=>p.direction,disabledOpacity:()=>p.disabledOpacity,fillColor:()=>p.fillColor,focusStrokeInner:()=>p.focusStrokeInner,focusStrokeOuter:()=>p.focusStrokeOuter,focusStrokeWidth:()=>p.focusStrokeWidth,foregroundOnAccentActive:()=>p.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>p.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>p.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>p.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>p.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>p.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>p.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>p.foregroundOnAccentRestLarge,neutralFillActive:()=>p.neutralFillActive,neutralFillActiveDelta:()=>p.neutralFillActiveDelta,neutralFillFocus:()=>p.neutralFillFocus,neutralFillFocusDelta:()=>p.neutralFillFocusDelta,neutralFillHover:()=>p.neutralFillHover,neutralFillHoverDelta:()=>p.neutralFillHoverDelta,neutralFillInputActive:()=>p.neutralFillInputActive,neutralFillInputActiveDelta:()=>p.neutralFillInputActiveDelta,neutralFillInputFocus:()=>p.neutralFillInputFocus,neutralFillInputFocusDelta:()=>p.neutralFillInputFocusDelta,neutralFillInputHover:()=>p.neutralFillInputHover,neutralFillInputHoverDelta:()=>p.neutralFillInputHoverDelta,neutralFillInputRest:()=>p.neutralFillInputRest,neutralFillInputRestDelta:()=>p.neutralFillInputRestDelta,neutralFillLayerRest:()=>p.neutralFillLayerRest,neutralFillLayerRestDelta:()=>p.neutralFillLayerRestDelta,neutralFillRest:()=>p.neutralFillRest,neutralFillRestDelta:()=>p.neutralFillRestDelta,neutralFillStealthActive:()=>p.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>p.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>p.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>p.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>p.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>p.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>p.neutralFillStealthRest,neutralFillStealthRestDelta:()=>p.neutralFillStealthRestDelta,neutralFillStrongActive:()=>p.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>p.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>p.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>p.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>p.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>p.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>p.neutralFillStrongRest,neutralFillStrongRestDelta:()=>p.neutralFillStrongRestDelta,neutralForegroundHint:()=>p.neutralForegroundHint,neutralForegroundRest:()=>p.neutralForegroundRest,neutralLayer1:()=>p.neutralLayer1,neutralLayer2:()=>p.neutralLayer2,neutralLayer3:()=>p.neutralLayer3,neutralLayer4:()=>p.neutralLayer4,neutralLayerCardContainer:()=>p.neutralLayerCardContainer,neutralLayerFloating:()=>p.neutralLayerFloating,neutralPalette:()=>p.neutralPalette,neutralStrokeActive:()=>p.neutralStrokeActive,neutralStrokeActiveDelta:()=>p.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>p.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>p.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>p.neutralStrokeFocus,neutralStrokeFocusDelta:()=>p.neutralStrokeFocusDelta,neutralStrokeHover:()=>p.neutralStrokeHover,neutralStrokeHoverDelta:()=>p.neutralStrokeHoverDelta,neutralStrokeRest:()=>p.neutralStrokeRest,neutralStrokeRestDelta:()=>p.neutralStrokeRestDelta,strokeWidth:()=>p.strokeWidth,typeRampBaseFontSize:()=>p.typeRampBaseFontSize,typeRampBaseLineHeight:()=>p.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>p.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>p.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>p.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>p.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>p.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>p.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>p.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>p.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>p.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>p.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>p.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>p.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>p.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>p.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>p.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>p.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>he,baseLayerLuminanceValue:()=>ve,bodyFontValue:()=>Ae,controlCornerRadiusValue:()=>we,densityValue:()=>ye,designTokens:()=>De,designUnitValue:()=>xe,directionValue:()=>be,neutralPaletteValue:()=>me,strokeWidthValue:()=>fe,typeRampBaseFontSizeValue:()=>Te,typeRampBaseLineHeightValue:()=>Oe});var i=r(55565),n=r(92592),l=r(89074),g=r(71972),d=r(60724),s=r(83147),c=r(75951),p=r(13896),u=r(67973);const h=s.css`
2
2
  :host {
3
3
  border: calc(${p.strokeWidth} * 1px) solid transparent;
4
4
  margin: 0;
@@ -267,7 +267,7 @@
267
267
  </control-wrapper>
268
268
  </template>
269
269
  `)(e.prefix)}
270
- `,tester:(0,d.yMz)(3,M),mapper:d.xq9};var j=r(28553);const I=e=>a=>{if(!a||!(0,d.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},E=(0,d.xDy)(I("allOptionsResourceName"),(0,d.or)((0,d.wcO)((e=>(0,d.ndu)(e,"array"))),(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,d.ndu)(e,"array")))))));j.MultiselectDatasource;const P={renderer:s.html`
270
+ `,tester:(0,d.yMz)(3,M),mapper:d.xq9};var j=r(25990);const I=e=>a=>{if(!a||!(0,d.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},E=(0,d.xDy)(I("allOptionsResourceName"),(0,d.or)((0,d.wcO)((e=>(0,d.ndu)(e,"array"))),(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,d.ndu)(e,"array")))))));j.MultiselectDatasource;const P={renderer:s.html`
271
271
  ${e=>((e="zero")=>s.html`
272
272
  <template>
273
273
  <control-wrapper
@@ -1555,23 +1555,43 @@
1555
1555
  }
1556
1556
  `,bo=s.html`
1557
1557
  ${(0,j.getPrefixedStepper)("zero")}
1558
- `;class fo extends j.Stepper{}const wo=fo.compose(Object.assign({baseName:"stepper",template:bo,styles:vo,shadowOptions:j.foundationStepperShadowOptions},j.defaultStepperConfig));class yo extends j.StepperTab{}const xo=yo.compose(Object.assign({baseName:"stepper-tab",template:(e,a)=>s.html`
1558
+ `;class fo extends j.Stepper{}const wo=fo.compose(Object.assign({baseName:"stepper",template:bo,styles:vo,shadowOptions:j.foundationStepperShadowOptions},j.defaultStepperConfig));var yo=r(55509);class xo extends j.StepperTab{}const zo=xo.compose(Object.assign({baseName:"stepper-tab",template:(e,a)=>s.html`
1559
1559
  <template slot="tab" role="stepper-tab" aria-disabled="${e=>e.disabled}">
1560
1560
  ${(0,c.startSlotTemplate)(e,a)}
1561
- <zero-tree-item ${(0,s.ref)("treeItem")} class="tree-item">
1562
- ${(0,s.when)((e=>e.completed),s.html`
1563
- <zero-icon
1564
- name="check-circle"
1565
- variant="regular"
1566
- size="lg"
1567
- class="completed-icon"
1568
- ></zero-icon>
1569
- `)}
1570
- ${(0,s.when)((e=>e.error),s.html`
1571
- <zero-icon name="times-circle" variant="regular" size="lg" class="error-icon"></zero-icon>
1572
- `)}
1573
- <slot></slot>
1574
- </zero-tree-item>
1561
+ ${(0,yo.l)((e=>e.orientation===c.TabsOrientation.vertical),s.html`
1562
+ <zero-tree-item ${(0,s.ref)("treeItem")} class="tree-item">
1563
+ ${(0,s.when)((e=>e.completed),s.html`
1564
+ <zero-icon
1565
+ name="check-circle"
1566
+ variant="regular"
1567
+ size="lg"
1568
+ class="completed-icon"
1569
+ ></zero-icon>
1570
+ `)}
1571
+ ${(0,s.when)((e=>e.error),s.html`
1572
+ <zero-icon
1573
+ name="times-circle"
1574
+ variant="regular"
1575
+ size="lg"
1576
+ class="error-icon"
1577
+ ></zero-icon>
1578
+ `)}
1579
+ <slot></slot>
1580
+ </zero-tree-item>
1581
+ `,s.html`
1582
+ <div class="step-number-container">
1583
+ <span class="step-number">${e=>e.tabPosition}</span>
1584
+ <slot class="step-title"></slot>
1585
+ ${(0,s.when)((e=>!e.isLast),s.html`
1586
+ <zero-icon
1587
+ class="angle-icon"
1588
+ name="angle-right"
1589
+ variant="solid"
1590
+ size="lg"
1591
+ ></zero-icon>
1592
+ `)}
1593
+ </div>
1594
+ `)}
1575
1595
  ${(0,c.endSlotTemplate)(e,a)}
1576
1596
  </template>
1577
1597
  `,styles:(e,a)=>s.css`
@@ -1590,7 +1610,7 @@
1590
1610
  zero-icon {
1591
1611
  margin-right: 5px;
1592
1612
  }
1593
- `,shadowOptions:j.foundationStepperTabShadowOptions},j.defaultStepperTabConfig));class zo extends j.StepperTabPanel{}const ko=zo.compose(Object.assign({baseName:"stepper-tab-panel",template:(e,a)=>(0,j.foundationStepperTabPanelTemplate)(e,a),shadowOptions:j.foundationStepperTabPanelShadowOptions},j.defaultStepperTabPanelConfig));class So extends j.Switch{}const Co=So.compose(Object.assign({baseName:"switch",template:(e,a)=>(0,j.foundationSwitchTemplate)(e,a),styles:(e,a)=>s.css`
1613
+ `,shadowOptions:j.foundationStepperTabShadowOptions},j.defaultStepperTabConfig));class ko extends j.StepperTabPanel{}const So=ko.compose(Object.assign({baseName:"stepper-tab-panel",template:(e,a)=>(0,j.foundationStepperTabPanelTemplate)(e,a),shadowOptions:j.foundationStepperTabPanelShadowOptions},j.defaultStepperTabPanelConfig));class Co extends j.Switch{}const Ao=Co.compose(Object.assign({baseName:"switch",template:(e,a)=>(0,j.foundationSwitchTemplate)(e,a),styles:(e,a)=>s.css`
1594
1614
  ${(0,j.foundationSwitchStyles)(e,a)}
1595
1615
  :host {
1596
1616
  --primary-gradient-angle: -113.5deg;
@@ -1635,7 +1655,7 @@
1635
1655
  ${se.purple}
1636
1656
  );
1637
1657
  }
1638
- `,shadowOptions:j.foundationSwitchShadowOptions},j.defaultSwitchConfig));class Ao extends j.Tab{}const To=Ao.compose(Object.assign({baseName:"tab",template:(e,a)=>(0,j.foundationTabTemplate)(e,a),styles:(e,a)=>s.css`
1658
+ `,shadowOptions:j.foundationSwitchShadowOptions},j.defaultSwitchConfig));class To extends j.Tab{}const Oo=To.compose(Object.assign({baseName:"tab",template:(e,a)=>(0,j.foundationTabTemplate)(e,a),styles:(e,a)=>s.css`
1639
1659
  ${(0,j.foundationTabStyles)(e,a)}
1640
1660
  :host {
1641
1661
  background-color: ${p.neutralLayer2};
@@ -1659,12 +1679,12 @@
1659
1679
  margin-right: 0;
1660
1680
  background-color: var(--zero-card-fill-color);
1661
1681
  }
1662
- `,shadowOptions:j.foundationTabShadowOptions},j.defaultTabConfig));class Oo extends j.TabPanel{}const Do=Oo.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,j.foundationTabPanelTemplate)(e,a),styles:(e,a)=>s.css`
1682
+ `,shadowOptions:j.foundationTabShadowOptions},j.defaultTabConfig));class Do extends j.TabPanel{}const No=Do.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,j.foundationTabPanelTemplate)(e,a),styles:(e,a)=>s.css`
1663
1683
  ${(0,j.foundationTabPanelStyles)(e,a)}
1664
1684
  :host {
1665
1685
  padding: 0;
1666
1686
  }
1667
- `,shadowOptions:j.foundationTabPanelShadowOptions},j.defaultTabPanelConfig));class No extends j.Tabs{}const Fo=No.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,j.foundationTabsTemplate)(e,a),styles:(e,a)=>s.css`
1687
+ `,shadowOptions:j.foundationTabPanelShadowOptions},j.defaultTabPanelConfig));class Fo extends j.Tabs{}const $o=Fo.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,j.foundationTabsTemplate)(e,a),styles:(e,a)=>s.css`
1668
1688
  ${(0,j.foundationTabsStyles)(e,a)}
1669
1689
  :host .tablist {
1670
1690
  padding: 0;
@@ -1710,7 +1730,7 @@
1710
1730
  height: 2px;
1711
1731
  margin-top: 0;
1712
1732
  }
1713
- `,shadowOptions:j.foundationTabsShadowOptions},j.defaultTabsConfig));class $o extends j.TextArea{}const Lo=$o.compose(Object.assign({baseName:"text-area",template:(e,a)=>(0,j.foundationTextAreaTemplate)(e,a),styles:(e,a)=>s.css`
1733
+ `,shadowOptions:j.foundationTabsShadowOptions},j.defaultTabsConfig));class Lo extends j.TextArea{}const Mo=Lo.compose(Object.assign({baseName:"text-area",template:(e,a)=>(0,j.foundationTextAreaTemplate)(e,a),styles:(e,a)=>s.css`
1714
1734
  ${(0,j.foundationTextAreaStyles)(e,a)}
1715
1735
  :host {
1716
1736
  --primary-gradient-angle: -113.5deg;
@@ -1755,7 +1775,7 @@
1755
1775
  color: ${Ha};
1756
1776
  margin: calc(var(--design-unit) * 2px) 0;
1757
1777
  }
1758
- `,shadowOptions:j.foundationTextAreaShadowOptions},j.defaultTextAreaConfig));class Mo extends j.TextField{}const Ro=Mo.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,j.foundationTextFieldTemplate)(e,a),styles:It,shadowOptions:j.foundationTextFieldShadowOptions},j.defaultTextFieldConfig)),jo=s.css`
1778
+ `,shadowOptions:j.foundationTextAreaShadowOptions},j.defaultTextAreaConfig));class Ro extends j.TextField{}const jo=Ro.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,j.foundationTextFieldTemplate)(e,a),styles:It,shadowOptions:j.foundationTextFieldShadowOptions},j.defaultTextFieldConfig)),Io=s.css`
1759
1779
  ${j.foundationToastStyles}
1760
1780
  .toast {
1761
1781
  border: calc(var(--stroke-width) * 1px) solid ${p.neutralLayer3};
@@ -1781,11 +1801,11 @@
1781
1801
  :host([notify='serious']) .toast::after {
1782
1802
  background-color: ${qe(1)};
1783
1803
  }
1784
- `,Io=j.defaultToastConfig,Eo=j.foundationToastShadowOptions;class Po extends j.Toast{}const Uo=Po.compose(Object.assign({baseName:"toast",shadowOptions:Eo,styles:jo,template:j.foundationToastTemplate},Io));class Go extends j.Toolbar{}const Bo=Go.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,j.foundationToolbarTemplate)(e,a),styles:(e,a)=>s.css`
1804
+ `,Eo=j.defaultToastConfig,Po=j.foundationToastShadowOptions;class Uo extends j.Toast{}const Go=Uo.compose(Object.assign({baseName:"toast",shadowOptions:Po,styles:Io,template:j.foundationToastTemplate},Eo));class Bo extends j.Toolbar{}const _o=Bo.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,j.foundationToolbarTemplate)(e,a),styles:(e,a)=>s.css`
1785
1805
  ${(0,j.foundationToolbarStyles)(e,a)}
1786
- `,shadowOptions:j.foundationToolbarShadowOptions},j.defaultToolbarConfig));class _o extends j.Tooltip{}const Ho=_o.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,j.foundationTooltipTemplate)(e,a),styles:(e,a)=>s.css`
1806
+ `,shadowOptions:j.foundationToolbarShadowOptions},j.defaultToolbarConfig));class Ho extends j.Tooltip{}const Yo=Ho.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,j.foundationTooltipTemplate)(e,a),styles:(e,a)=>s.css`
1787
1807
  ${(0,j.foundationTooltipStyles)(e,a)}
1788
- `,shadowOptions:j.foundationTooltipShadowOptions},j.defaultTooltipConfig));class Yo extends j.TreeItem{}const Vo=Yo.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,j.foundationTreeItemTemplate)(e,a),styles:(e,a)=>s.css`
1808
+ `,shadowOptions:j.foundationTooltipShadowOptions},j.defaultTooltipConfig));class Vo extends j.TreeItem{}const Qo=Vo.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,j.foundationTreeItemTemplate)(e,a),styles:(e,a)=>s.css`
1789
1809
  ${(0,j.foundationTreeItemStyles)(e,a)}
1790
1810
  :host {
1791
1811
  --primary-gradient-angle: -113.5deg;
@@ -1813,11 +1833,11 @@
1813
1833
  background-size: cover;
1814
1834
  background-repeat: no-repeat;
1815
1835
  }
1816
- `,shadowOptions:j.foundationTreeItemShadowOptions},j.defaultTreeItemConfig));class Qo extends j.TreeView{}const Wo=Qo.compose(Object.assign({baseName:"tree-view",template:(e,a)=>(0,j.foundationTreeViewTemplate)(e,a),styles:(e,a)=>s.css`
1836
+ `,shadowOptions:j.foundationTreeItemShadowOptions},j.defaultTreeItemConfig));class Wo extends j.TreeView{}const qo=Wo.compose(Object.assign({baseName:"tree-view",template:(e,a)=>(0,j.foundationTreeViewTemplate)(e,a),styles:(e,a)=>s.css`
1817
1837
  ${(0,j.foundationTreeViewStyles)(e,a)}
1818
- `,shadowOptions:j.foundationTreeViewShadowOptions},j.defaultTreeViewConfig)),qo=s.html`
1838
+ `,shadowOptions:j.foundationTreeViewShadowOptions},j.defaultTreeViewConfig)),Jo=s.html`
1819
1839
  ${(0,j.getPrefixedUrlInput)("zero")}
1820
- `;class Jo extends j.UrlInput{}const Zo={zeroAccordion:Fe,zeroAccordionItem:Le,zeroActionsMenu:Re,zeroAnchor:va,zeroAnchoredRegion:fa,zeroAvatar:ya,zeroBadge:za,zeroBanner:Aa,zeroBreadcrumbItem:Na,zeroBreadcrumb:Oa,zeroButton:$a,zeroCalendar:Ma,zeroCard:ja,zeroCheckbox:Ea,zeroCombobox:Za,zeroConnectionIndicator:Xa,zeroDataGrid:tr,zeroDesignSystemProvider:pr,zeroDialog:yr,zeroDatePicker:nr,zeroDisclosure:zr,zeroDivider:Sr,zeroDropdownMenu:Ar,zeroErrorBoundary:$r,zeroNotificationListener:jt,zeroErrorBanner:Nr,zeroErrorDialog:Mr,zeroFileUpload:Ur,zeroFilter:_r,zeroFilterBar:Vr,zeroFlexLayout:Wr,zeroFlipper:Jr,zeroFlyout:rt,zeroGridLayout:ot,zeroGridLayoutItem:nt,zeroHorizontalScroll:gt,zeroIcon:pt,zeroListbox:ht,zeroListboxOption:vt,zeroMenu:wt,zeroMenuItem:zt,zeroModal:Ot,zeroMultiselect:Mt,zeroNumberField:Bt,zeroProgress:Ht,zeroProgressRing:Qt,zeroRadio:qt,zeroRadioGroup:Zt,zeroSegmentedControl:Xt,zeroSegmentedItem:ao,zeroSelect:to,zeroSkeleton:io,zeroSlider:lo,zeroSliderLabel:so,zeroSnackbar:mo,zeroStepper:wo,zeroStepperTab:xo,zeroStepperTabPanel:ko,zeroSwitch:Co,zeroTab:To,zeroTabPanel:Do,zeroTabs:Fo,zeroTextArea:Lo,zeroTextField:Ro,zeroToast:Uo,zeroToolbar:Bo,zeroTooltip:Ho,zeroTreeItem:Vo,zeroTreeView:Wo,zeroUrlInput:Jo.compose(Object.assign({baseName:"url-input",template:qo,styles:(e,a)=>s.css`
1840
+ `;class Zo extends j.UrlInput{}const Ko={zeroAccordion:Fe,zeroAccordionItem:Le,zeroActionsMenu:Re,zeroAnchor:va,zeroAnchoredRegion:fa,zeroAvatar:ya,zeroBadge:za,zeroBanner:Aa,zeroBreadcrumbItem:Na,zeroBreadcrumb:Oa,zeroButton:$a,zeroCalendar:Ma,zeroCard:ja,zeroCheckbox:Ea,zeroCombobox:Za,zeroConnectionIndicator:Xa,zeroDataGrid:tr,zeroDesignSystemProvider:pr,zeroDialog:yr,zeroDatePicker:nr,zeroDisclosure:zr,zeroDivider:Sr,zeroDropdownMenu:Ar,zeroErrorBoundary:$r,zeroNotificationListener:jt,zeroErrorBanner:Nr,zeroErrorDialog:Mr,zeroFileUpload:Ur,zeroFilter:_r,zeroFilterBar:Vr,zeroFlexLayout:Wr,zeroFlipper:Jr,zeroFlyout:rt,zeroGridLayout:ot,zeroGridLayoutItem:nt,zeroHorizontalScroll:gt,zeroIcon:pt,zeroListbox:ht,zeroListboxOption:vt,zeroMenu:wt,zeroMenuItem:zt,zeroModal:Ot,zeroMultiselect:Mt,zeroNumberField:Bt,zeroProgress:Ht,zeroProgressRing:Qt,zeroRadio:qt,zeroRadioGroup:Zt,zeroSegmentedControl:Xt,zeroSegmentedItem:ao,zeroSelect:to,zeroSkeleton:io,zeroSlider:lo,zeroSliderLabel:so,zeroSnackbar:mo,zeroStepper:wo,zeroStepperTab:zo,zeroStepperTabPanel:So,zeroSwitch:Ao,zeroTab:Oo,zeroTabPanel:No,zeroTabs:$o,zeroTextArea:Mo,zeroTextField:jo,zeroToast:Go,zeroToolbar:_o,zeroTooltip:Yo,zeroTreeItem:Qo,zeroTreeView:qo,zeroUrlInput:Zo.compose(Object.assign({baseName:"url-input",template:Jo,styles:(e,a)=>s.css`
1821
1841
  ${(0,j.foundationUrlInputStyles)(e,a)}
1822
1842
  a {
1823
1843
  color: ${se.blue};
@@ -1827,23 +1847,23 @@
1827
1847
  a:hover {
1828
1848
  opacity: 100%;
1829
1849
  }
1830
- `,shadowOptions:j.foundationUrlInputShadowOptions},j.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Ko,Xo,ei=r(80249),ai=r(87530),ri=r.n(ai),ti=r(79014),oi=r.n(ti);!function(e){e.foregroundColor="--ag-foreground-color",e.dataColor="--ag-data-color",e.secondaryForegroundColor="--ag-secondary-foreground-color",e.headerForegroundColor="--ag-header-foreground-color",e.disabledForegroundColor="--ag-disabled-foreground-color",e.backgroundColor="--ag-background-color",e.headerBackgroundColor="--ag-header-background-color",e.subheaderBackgroundColor="--ag-subheader-background-color",e.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",e.controlPanelBackgroundColor="--ag-control-panel-background-color",e.selectedRowBackgroundColor="--ag-selected-row-background-color",e.oddRowBackgroundColor="--ag-odd-row-background-color",e.rowHoverColor="--ag-row-hover-color",e.rangeSelectionBorderColor="--ag-range-selection-border-color",e.rangeSelectionBackgroundColor="--ag-range-selection-background-color",e.selectedTabUnderlineColor="--ag-selected-tab-underline-color",e.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",e.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",e.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",e.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",e.chipBackgroundColor="--ag-chip-background-color",e.borderColor="--ag-border-color",e.secondaryBorderColor="--ag-secondary-border-color",e.rowBorderColor="--ag-row-border-color",e.headerColumnSeparatorColor="--ag-header-column-separator-color",e.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",e.inputBorderColor="--ag-input-border-color",e.inputDisabledBorderColor="--ag-input-disabled-border-color",e.inputDisabledBackgroundColor="--ag-input-disabled-background-color",e.checkboxBackgroundColor="--ag-checkbox-background-color",e.checkboxCheckedColor="--ag-checkbox-checked-color",e.checkboxUncheckedColor="--ag-checkbox-unchecked-color",e.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",e.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",e.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",e.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",e.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",e.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",e.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",e.minichartSelectedChartColor="--ag-minichart-selected-chart-color",e.minichartSelectedPageColor="--ag-minichart-selected-page-color",e.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",e.inputFocusBoxShadow="--ag-input-focus-box-shadow",e.inputFocusBorderColor="--ag-input-focus-border-color"}(Ko||(Ko={})),function(e){e.alpine="ag-theme-alpine",e.alpineDark="ag-theme-alpine-dark",e.balham="ag-theme-balham",e.balhamDark="ag-theme-balham-dark",e.material="ag-theme-material"}(Xo||(Xo={}));const ii=e=>`${e}-token-map`,ni=(e,a)=>s.css`
1831
- .${ii(e)} {
1850
+ `,shadowOptions:j.foundationUrlInputShadowOptions},j.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Xo,ei,ai=r(80249),ri=r(87530),ti=r.n(ri),oi=r(79014),ii=r.n(oi);!function(e){e.foregroundColor="--ag-foreground-color",e.dataColor="--ag-data-color",e.secondaryForegroundColor="--ag-secondary-foreground-color",e.headerForegroundColor="--ag-header-foreground-color",e.disabledForegroundColor="--ag-disabled-foreground-color",e.backgroundColor="--ag-background-color",e.headerBackgroundColor="--ag-header-background-color",e.subheaderBackgroundColor="--ag-subheader-background-color",e.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",e.controlPanelBackgroundColor="--ag-control-panel-background-color",e.selectedRowBackgroundColor="--ag-selected-row-background-color",e.oddRowBackgroundColor="--ag-odd-row-background-color",e.rowHoverColor="--ag-row-hover-color",e.rangeSelectionBorderColor="--ag-range-selection-border-color",e.rangeSelectionBackgroundColor="--ag-range-selection-background-color",e.selectedTabUnderlineColor="--ag-selected-tab-underline-color",e.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",e.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",e.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",e.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",e.chipBackgroundColor="--ag-chip-background-color",e.borderColor="--ag-border-color",e.secondaryBorderColor="--ag-secondary-border-color",e.rowBorderColor="--ag-row-border-color",e.headerColumnSeparatorColor="--ag-header-column-separator-color",e.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",e.inputBorderColor="--ag-input-border-color",e.inputDisabledBorderColor="--ag-input-disabled-border-color",e.inputDisabledBackgroundColor="--ag-input-disabled-background-color",e.checkboxBackgroundColor="--ag-checkbox-background-color",e.checkboxCheckedColor="--ag-checkbox-checked-color",e.checkboxUncheckedColor="--ag-checkbox-unchecked-color",e.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",e.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",e.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",e.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",e.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",e.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",e.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",e.minichartSelectedChartColor="--ag-minichart-selected-chart-color",e.minichartSelectedPageColor="--ag-minichart-selected-page-color",e.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",e.inputFocusBoxShadow="--ag-input-focus-box-shadow",e.inputFocusBorderColor="--ag-input-focus-border-color"}(Xo||(Xo={})),function(e){e.alpine="ag-theme-alpine",e.alpineDark="ag-theme-alpine-dark",e.balham="ag-theme-balham",e.balhamDark="ag-theme-balham-dark",e.material="ag-theme-material"}(ei||(ei={}));const ni=e=>`${e}-token-map`,li=(e,a)=>s.css`
1851
+ .${ni(e)} {
1832
1852
  ${new j.CSSVarsTokenMapper(a)}
1833
1853
  }
1834
- `;var li;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.editable="editable",e.text="text",e.select="select",e.dateEditor="dateEditor",e.selectEditor="selectEditor",e.numberEditor="numberEditor",e.stringEditor="stringEditor",e.multiselectEditor="multiselectEditor"}(li||(li={}));const gi="__editedColumn",di="__errorColumn";ri().extend(oi());class si extends c.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.dateFormat=e.withTime?"YYYY-MM-DDTHH:mm":"YYYY-MM-DD",this.inputType=e.withTime?"datetime-local":"date",this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}changeHandler(e){const a=e.target.control.valueAsNumber;this.value=isNaN(a)?void 0:a}afterGuiAttached(){this.input.focus()}isCancelBeforeStart(){return!!this.params.data[gi]}}(0,ei.__decorate)([s.observable],si.prototype,"value",void 0),(0,ei.__decorate)([s.observable],si.prototype,"actualWidth",void 0);const ci=s.css`
1854
+ `;var gi;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.editable="editable",e.text="text",e.select="select",e.dateEditor="dateEditor",e.selectEditor="selectEditor",e.numberEditor="numberEditor",e.stringEditor="stringEditor",e.multiselectEditor="multiselectEditor"}(gi||(gi={}));const di="__editedColumn",si="__errorColumn";ti().extend(ii());class ci extends c.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.dateFormat=e.withTime?"YYYY-MM-DDTHH:mm":"YYYY-MM-DD",this.inputType=e.withTime?"datetime-local":"date",this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}changeHandler(e){const a=e.target.control.valueAsNumber;this.value=isNaN(a)?void 0:a}afterGuiAttached(){this.input.focus()}isCancelBeforeStart(){return!!this.params.data[di]}}(0,ai.__decorate)([s.observable],ci.prototype,"value",void 0),(0,ai.__decorate)([s.observable],ci.prototype,"actualWidth",void 0);const pi=s.css`
1835
1855
  :host {
1836
1856
  display: flex;
1837
1857
  }
1838
- `,pi=(e="foundation")=>s.html`
1858
+ `,ui=(e="foundation")=>s.html`
1839
1859
  <${e}-text-field
1840
1860
  ${(0,s.ref)("input")}
1841
- :value=${e=>void 0===e.value||null===e.value?"":ri().utc(e.value).format(e.dateFormat)}
1861
+ :value=${e=>void 0===e.value||null===e.value?"":ti().utc(e.value).format(e.dateFormat)}
1842
1862
  type=${e=>e.inputType}
1843
1863
  @input=${(e,a)=>e.changeHandler(a.event)}
1844
1864
  style="width: ${e=>e.actualWidth}px"
1845
1865
  ></${e}-text-field>
1846
- `,ui=si.compose({baseName:"date-editor",styles:ci,template:pi()});class hi extends si{}const mi=hi.compose({baseName:"date-editor",styles:ci,template:pi("zero")});class vi extends c.FoundationElement{init(e){e&&(this.params=e,this.selectedOptions=e.value,this.params.selectedOptionsCallback&&this.params.selectedOptionsCallback(this.params.data).then((e=>{this.selectedOptions=e})),"string"==typeof e.value&&(this.selectedOptions=e.value.split(",")))}getGui(){return this}destroy(){}refresh(e){return!0}getValue(){return this.selectedOptions}isPopup(){return!0}changeHandler(e){this.selectedOptions=e.detail}isCancelBeforeStart(){return!!this.params.data[gi]}}(0,ei.__decorate)([s.observable],vi.prototype,"params",void 0),(0,ei.__decorate)([s.observable],vi.prototype,"selectedOptions",void 0);const bi=s.css``,fi=(e="foundation")=>s.html`
1866
+ `,hi=ci.compose({baseName:"date-editor",styles:pi,template:ui()});class mi extends ci{}const vi=mi.compose({baseName:"date-editor",styles:pi,template:ui("zero")});class bi extends c.FoundationElement{init(e){e&&(this.params=e,this.selectedOptions=e.value,this.params.selectedOptionsCallback&&this.params.selectedOptionsCallback(this.params.data).then((e=>{this.selectedOptions=e})),"string"==typeof e.value&&(this.selectedOptions=e.value.split(",")))}getGui(){return this}destroy(){}refresh(e){return!0}getValue(){return this.selectedOptions}isPopup(){return!0}changeHandler(e){this.selectedOptions=e.detail}isCancelBeforeStart(){return!!this.params.data[di]}}(0,ai.__decorate)([s.observable],bi.prototype,"params",void 0),(0,ai.__decorate)([s.observable],bi.prototype,"selectedOptions",void 0);const fi=s.css``,wi=(e="foundation")=>s.html`
1847
1867
  <${e}-multiselect
1848
1868
  style="width: 100%"
1849
1869
  ?async=${e=>e.params.async}
@@ -1857,7 +1877,7 @@
1857
1877
  :datasourceConfig=${e=>e.params.datasourceOptions}
1858
1878
  ></multiselect-datasource>
1859
1879
  </${e}-multiselect>
1860
- `,wi=vi.compose({baseName:"multiselect-editor",styles:bi,template:fi()});class yi extends vi{}const xi=yi.compose({baseName:"multiselect-editor",styles:bi,template:fi("zero")});class zi extends c.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.combobox.open=!0}changeHandler(e){var a;this.value=null===(a=e.detail)||void 0===a?void 0:a.value}isCancelBeforeStart(){return!!this.params.data[gi]}}(0,ei.__decorate)([s.observable],zi.prototype,"params",void 0),(0,ei.__decorate)([s.observable],zi.prototype,"value",void 0),(0,ei.__decorate)([s.observable],zi.prototype,"actualWidth",void 0);const ki=s.css``,Si=(e="foundation")=>s.html`
1880
+ `,yi=bi.compose({baseName:"multiselect-editor",styles:fi,template:wi()});class xi extends bi{}const zi=xi.compose({baseName:"multiselect-editor",styles:fi,template:wi("zero")});class ki extends c.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.combobox.open=!0}changeHandler(e){var a;this.value=null===(a=e.detail)||void 0===a?void 0:a.value}isCancelBeforeStart(){return!!this.params.data[di]}}(0,ai.__decorate)([s.observable],ki.prototype,"params",void 0),(0,ai.__decorate)([s.observable],ki.prototype,"value",void 0),(0,ai.__decorate)([s.observable],ki.prototype,"actualWidth",void 0);const Si=s.css``,Ci=(e="foundation")=>s.html`
1861
1881
  <${e}-combobox
1862
1882
  style="width: ${e=>e.actualWidth}px"
1863
1883
  ${(0,s.ref)("combobox")}
@@ -1873,11 +1893,11 @@
1873
1893
  :initialSelectedValue=${e=>e.params.value}
1874
1894
  ></options-datasource>
1875
1895
  </${e}-combobox>
1876
- `,Ci=zi.compose({baseName:"select-editor",styles:ki,template:Si()});class Ai extends zi{}const Ti=Ai.compose({baseName:"select-editor",styles:ki,template:Si("zero")});class Oi extends c.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a}isCancelBeforeStart(){return!!this.params.data[gi]}}(0,ei.__decorate)([s.observable],Oi.prototype,"params",void 0),(0,ei.__decorate)([s.observable],Oi.prototype,"value",void 0),(0,ei.__decorate)([s.observable],Oi.prototype,"actualWidth",void 0);const Di=s.css`
1896
+ `,Ai=ki.compose({baseName:"select-editor",styles:Si,template:Ci()});class Ti extends ki{}const Oi=Ti.compose({baseName:"select-editor",styles:Si,template:Ci("zero")});class Di extends c.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a}isCancelBeforeStart(){return!!this.params.data[di]}}(0,ai.__decorate)([s.observable],Di.prototype,"params",void 0),(0,ai.__decorate)([s.observable],Di.prototype,"value",void 0),(0,ai.__decorate)([s.observable],Di.prototype,"actualWidth",void 0);const Ni=s.css`
1877
1897
  :host {
1878
1898
  display: flex;
1879
1899
  }
1880
- `,Ni=(e="foundation")=>s.html`
1900
+ `,Fi=(e="foundation")=>s.html`
1881
1901
  <${e}-number-field
1882
1902
  ${(0,s.ref)("input")}
1883
1903
  withFormatting=${e=>e.params.withFormatting}
@@ -1889,11 +1909,11 @@
1889
1909
  hideStep
1890
1910
  style="width: ${e=>e.actualWidth}px"
1891
1911
  ></${e}-number-field>
1892
- `,Fi=Oi.compose({baseName:"number-editor",styles:Di,template:Ni()});class $i extends Oi{}const Li=$i.compose({baseName:"number-editor",styles:Di,template:Ni("zero")});class Mi extends c.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){this.value=e.target.value}isCancelBeforeStart(){return!!this.params.data[gi]}}(0,ei.__decorate)([s.observable],Mi.prototype,"params",void 0),(0,ei.__decorate)([s.observable],Mi.prototype,"value",void 0),(0,ei.__decorate)([s.observable],Mi.prototype,"actualWidth",void 0);const Ri=s.css`
1912
+ `,$i=Di.compose({baseName:"number-editor",styles:Ni,template:Fi()});class Li extends Di{}const Mi=Li.compose({baseName:"number-editor",styles:Ni,template:Fi("zero")});class Ri extends c.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){this.value=e.target.value}isCancelBeforeStart(){return!!this.params.data[di]}}(0,ai.__decorate)([s.observable],Ri.prototype,"params",void 0),(0,ai.__decorate)([s.observable],Ri.prototype,"value",void 0),(0,ai.__decorate)([s.observable],Ri.prototype,"actualWidth",void 0);const ji=s.css`
1893
1913
  :host {
1894
1914
  display: flex;
1895
1915
  }
1896
- `,ji=(e="foundation")=>s.html`
1916
+ `,Ii=(e="foundation")=>s.html`
1897
1917
  <${e}-text-field
1898
1918
  ${(0,s.ref)("input")}
1899
1919
  :value=${e=>void 0===e.value?"":e.value}
@@ -1902,16 +1922,16 @@
1902
1922
  style="width: ${e=>e.actualWidth}px"
1903
1923
  >
1904
1924
  </${e}-text-field>
1905
- `,Ii=Mi.compose({baseName:"string-editor",styles:Ri,template:ji()});class Ei extends Mi{}const Pi=Ei.compose({baseName:"string-editor",styles:Ri,template:ji("zero")});class Ui extends c.FoundationElement{init(e){e&&(this.valueFormatted=e.formatValue(e.value))}getGui(){return this}refresh(e){return this.valueFormatted=e.formatValue(e.value),!0}}(0,ei.__decorate)([s.observable],Ui.prototype,"valueFormatted",void 0);const Gi=s.css`
1925
+ `,Ei=Ri.compose({baseName:"string-editor",styles:ji,template:Ii()});class Pi extends Ri{}const Ui=Pi.compose({baseName:"string-editor",styles:ji,template:Ii("zero")});class Gi extends c.FoundationElement{init(e){e&&(this.valueFormatted=e.formatValue(e.value))}getGui(){return this}refresh(e){return this.valueFormatted=e.formatValue(e.value),!0}}(0,ai.__decorate)([s.observable],Gi.prototype,"valueFormatted",void 0);const Bi=s.css`
1906
1926
  :host {
1907
1927
  display: flex;
1908
1928
  justify-content: space-between;
1909
1929
  align-items: center;
1910
1930
  }
1911
- `,Bi=(e="foundation")=>s.html`
1931
+ `,_i=(e="foundation")=>s.html`
1912
1932
  <span>${e=>e.valueFormatted}</span>
1913
1933
  <${e}-progress-ring style="margin: 0; width: 20px; height: 20px"></${e}-progress-ring>
1914
- `,_i=Ui.compose({baseName:"editable-renderer",styles:Gi,template:Bi()});class Hi extends Ui{}const Yi=Hi.compose({baseName:"editable-renderer",styles:Gi,template:Bi("zero")});var Vi=r(59783);const Qi=(0,g.createLogger)("grid-pro");class Wi extends c.FoundationElement{init(e){e&&(this.params=e,e.eGridCell.addEventListener("keydown",(e=>{e.key===Vi.VDZ.ENTER&&this.clickHandler()})))}getGui(){return this}refresh(e){return this.params=e,!0}isDisabled(e){var a;if("function"==typeof(null===(a=this.params)||void 0===a?void 0:a.isDisabled))try{return this.params.isDisabled(e)}catch(e){Qi.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,ei.__awaiter)(this,void 0,void 0,(function*(){this.pendingAction=!0,yield this.params.actionClick(this.params.data),this.pendingAction=!1}))}get dataTestId(){var e;if(this.params.dataTestId)return this.params.dataTestId+(null!==(e=this.params.data[this.params.uniqueFieldName])&&void 0!==e?e:"")}}(0,ei.__decorate)([s.observable],Wi.prototype,"params",void 0),(0,ei.__decorate)([s.observable],Wi.prototype,"pendingAction",void 0);const{create:qi}=c.DesignToken,Ji=(qi("action-height-multiplier").withDefault("0.6px"),s.css`
1934
+ `,Hi=Gi.compose({baseName:"editable-renderer",styles:Bi,template:_i()});class Yi extends Gi{}const Vi=Yi.compose({baseName:"editable-renderer",styles:Bi,template:_i("zero")});var Qi=r(59783);const Wi=(0,g.createLogger)("grid-pro");class qi extends c.FoundationElement{init(e){e&&(this.params=e,e.eGridCell.addEventListener("keydown",(e=>{e.key===Qi.VDZ.ENTER&&this.clickHandler()})))}getGui(){return this}refresh(e){return this.params=e,!0}isDisabled(e){var a;if("function"==typeof(null===(a=this.params)||void 0===a?void 0:a.isDisabled))try{return this.params.isDisabled(e)}catch(e){Wi.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,ai.__awaiter)(this,void 0,void 0,(function*(){this.pendingAction=!0,yield this.params.actionClick(this.params.data),this.pendingAction=!1}))}get dataTestId(){var e;if(this.params.dataTestId)return this.params.dataTestId+(null!==(e=this.params.data[this.params.uniqueFieldName])&&void 0!==e?e:"")}}(0,ai.__decorate)([s.observable],qi.prototype,"params",void 0),(0,ai.__decorate)([s.observable],qi.prototype,"pendingAction",void 0);const{create:Ji}=c.DesignToken,Zi=(Ji("action-height-multiplier").withDefault("0.6px"),s.css`
1915
1935
  .action-container {
1916
1936
  align-items: center;
1917
1937
  display: flex;
@@ -1926,8 +1946,8 @@
1926
1946
  var(--action-height-multiplier)
1927
1947
  );
1928
1948
  }
1929
- `),Zi=Wi.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1930
- ${Ji}
1949
+ `),Ki=qi.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1950
+ ${Zi}
1931
1951
  `,template:s.html`
1932
1952
  <div class="action-container" part="action-container">
1933
1953
  <foundation-button
@@ -1937,8 +1957,8 @@
1937
1957
  ?disabled=${e=>{var a;return e.pendingAction||e.isDisabled(null===(a=e.params)||void 0===a?void 0:a.data)}}
1938
1958
  appearance="${e=>e.params.appearance}"
1939
1959
  @click=${e=>e.clickHandler()}">${e=>e.params.actionName}</foundation-button>
1940
- </div>`});class Ki extends Wi{}const Xi=Ki.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1941
- ${Ji}
1960
+ </div>`});class Xi extends qi{}const en=Xi.compose({baseName:"grid-pro-action-renderer",styles:s.css`
1961
+ ${Zi}
1942
1962
  `,template:s.html`
1943
1963
  <div class="action-container" part="action-container">
1944
1964
  <zero-button
@@ -1955,29 +1975,29 @@
1955
1975
  `:e.params.actionName}
1956
1976
  </zero-button>
1957
1977
  </div>
1958
- `});class en extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,ei.__decorate)([s.observable],en.prototype,"params",void 0);const an=en.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1978
+ `});class an extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,ai.__decorate)([s.observable],an.prototype,"params",void 0);const rn=an.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1959
1979
  <foundation-actions-menu
1960
1980
  name="${e=>e.params.headerName}"
1961
1981
  :definition=${e=>e.params}
1962
1982
  ></foundation-actions-menu>
1963
- `});class rn extends en{}const tn=rn.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1983
+ `});class tn extends an{}const on=tn.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
1964
1984
  <zero-actions-menu
1965
1985
  name="${e=>e.params.headerName}"
1966
1986
  :definition=${e=>e.params}
1967
1987
  ></zero-actions-menu>
1968
- `});class on extends c.FoundationElement{init(e){e&&(this.params=e,this.selected=e.value)}changeHandler(e){this.selected=e.target.checked;if(!!!this.params.api.getEditingCells().find((e=>e.rowIndex===this.params.rowIndex&&e.column.getInstanceId()===this.params.column.getInstanceId()))){const{column:e,node:a,rowIndex:r,value:t}=this.params,o={type:Vi.zW2.EVENT_CELL_EDITING_STARTED,column:e,colDef:null==e?void 0:e.getColDef(),data:a.data,node:a,rowIndex:r,rowPinned:a.rowPinned,value:t};this.params.api.dispatchEvent(o);const i=this.params.node.setDataValue(this.params.column,this.selected,"edit"),n={type:Vi.zW2.EVENT_CELL_EDITING_STOPPED,column:e,colDef:null==e?void 0:e.getColDef(),data:a.data,node:a,rowIndex:r,rowPinned:a.rowPinned,value:t,oldValue:t,newValue:this.selected,valueChanged:i};this.params.api.dispatchEvent(n)}}getGui(){return this}destroy(){}refresh(e){return this.selected=e.value,!0}getValue(){return this.selected}isCancelBeforeStart(){return!!this.params.data[gi]}}(0,ei.__decorate)([s.observable],on.prototype,"params",void 0),(0,ei.__decorate)([s.observable],on.prototype,"selected",void 0);const nn=s.css`
1988
+ `});class nn extends c.FoundationElement{init(e){e&&(this.params=e,this.selected=e.value)}changeHandler(e){this.selected=e.target.checked;if(!!!this.params.api.getEditingCells().find((e=>e.rowIndex===this.params.rowIndex&&e.column.getInstanceId()===this.params.column.getInstanceId()))){const{column:e,node:a,rowIndex:r,value:t}=this.params,o={type:Qi.zW2.EVENT_CELL_EDITING_STARTED,column:e,colDef:null==e?void 0:e.getColDef(),data:a.data,node:a,rowIndex:r,rowPinned:a.rowPinned,value:t};this.params.api.dispatchEvent(o);const i=this.params.node.setDataValue(this.params.column,this.selected,"edit"),n={type:Qi.zW2.EVENT_CELL_EDITING_STOPPED,column:e,colDef:null==e?void 0:e.getColDef(),data:a.data,node:a,rowIndex:r,rowPinned:a.rowPinned,value:t,oldValue:t,newValue:this.selected,valueChanged:i};this.params.api.dispatchEvent(n)}}getGui(){return this}destroy(){}refresh(e){return this.selected=e.value,!0}getValue(){return this.selected}isCancelBeforeStart(){return!!this.params.data[di]}}(0,ai.__decorate)([s.observable],nn.prototype,"params",void 0),(0,ai.__decorate)([s.observable],nn.prototype,"selected",void 0);const ln=s.css`
1969
1989
  :host {
1970
1990
  align-center: center;
1971
1991
  display: flex;
1972
1992
  height: 100%;
1973
1993
  }
1974
- `,ln=(e="foundation")=>{const a=`${e}-checkbox`;return s.html`
1994
+ `,gn=(e="foundation")=>{const a=`${e}-checkbox`;return s.html`
1975
1995
  <${a}
1976
1996
  @change=${(e,a)=>e.changeHandler(a.event)}
1977
1997
  :checked=${e=>e.selected}
1978
1998
  ?disabled=${e=>!e.params.colDef.editable}
1979
1999
  ></${a}>
1980
- `},gn=on.compose({baseName:"boolean-renderer",styles:nn,template:ln()});class dn extends on{}const sn=dn.compose({baseName:"boolean-renderer",styles:nn,template:ln("zero")});var cn=r(18471);const pn=(e,a)=>{if(a.indexOf(".")<0)return e[a];{const r=a.split(".");let t=e;for(;r.length>0&&t;){const e=r.shift();if(0===r.length)return t[e];t=t[e]}}};class un extends c.FoundationElement{constructor(){super(...arguments),this.textValue="",this.textChanged=e=>{this.textValue=e.target.value,this.params.onChange(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.textValue=""===this.textValue?pn(null===(a=null==e?void 0:e.node)||void 0===a?void 0:a.data,e.accessor):this.textValue)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,ei.__decorate)([s.observable],un.prototype,"textValue",void 0),(0,ei.__decorate)([s.observable],un.prototype,"params",void 0);const hn=s.css`
2000
+ `},dn=nn.compose({baseName:"boolean-renderer",styles:ln,template:gn()});class sn extends nn{}const cn=sn.compose({baseName:"boolean-renderer",styles:ln,template:gn("zero")});var pn=r(18471);const un=(e,a)=>{if(a.indexOf(".")<0)return e[a];{const r=a.split(".");let t=e;for(;r.length>0&&t;){const e=r.shift();if(0===r.length)return t[e];t=t[e]}}};class hn extends c.FoundationElement{constructor(){super(...arguments),this.textValue="",this.textChanged=e=>{this.textValue=e.target.value,this.params.onChange(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.textValue=""===this.textValue?un(null===(a=null==e?void 0:e.node)||void 0===a?void 0:a.data,e.accessor):this.textValue)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,ai.__decorate)([s.observable],hn.prototype,"textValue",void 0),(0,ai.__decorate)([s.observable],hn.prototype,"params",void 0);const mn=s.css`
1981
2001
  :host {
1982
2002
  display: flex;
1983
2003
  width: 100%;
@@ -1987,15 +2007,15 @@
1987
2007
  .text-renderer {
1988
2008
  width: 100%;
1989
2009
  }
1990
- `,mn=(e="foundation")=>{const a=`${e}-text-field`;return s.html`
2010
+ `,vn=(e="foundation")=>{const a=`${e}-text-field`;return s.html`
1991
2011
  <${a}
1992
2012
  ${(0,s.ref)("textField")}
1993
2013
  type="text"
1994
2014
  class="text-renderer"
1995
- :value="${(0,cn.Z)((e=>e.textValue))}"
2015
+ :value="${(0,pn.Z)((e=>e.textValue))}"
1996
2016
  @change="${(e,a)=>e.textChanged(a.event)}"
1997
2017
  ></${a}>
1998
- `},vn=un.compose({baseName:"grid-pro-text-renderer",styles:hn,template:mn()});class bn extends un{}const fn=hn,wn=mn,yn=bn.compose({baseName:"grid-text-renderer",styles:fn,template:wn()});const xn=class extends bn{}.compose({baseName:"grid-text-renderer",styles:fn,template:wn("zero")});class zn extends c.FoundationElement{constructor(){super(...arguments),this.selectionChanged=e=>{this.value=e.target.value,this.params.onSelect(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.value=pn(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,ei.__decorate)([s.observable],zn.prototype,"params",void 0),(0,ei.__decorate)([s.observable],zn.prototype,"value",void 0);const kn=s.css`
2018
+ `},bn=hn.compose({baseName:"grid-pro-text-renderer",styles:mn,template:vn()});class fn extends hn{}const wn=mn,yn=vn,xn=fn.compose({baseName:"grid-text-renderer",styles:wn,template:yn()});const zn=class extends fn{}.compose({baseName:"grid-text-renderer",styles:wn,template:yn("zero")});class kn extends c.FoundationElement{constructor(){super(...arguments),this.selectionChanged=e=>{this.value=e.target.value,this.params.onSelect(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.value=un(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,ai.__decorate)([s.observable],kn.prototype,"params",void 0),(0,ai.__decorate)([s.observable],kn.prototype,"value",void 0);const Sn=s.css`
1999
2019
  :host,
2000
2020
  .select-renderer,
2001
2021
  zero-option,
@@ -2004,7 +2024,7 @@
2004
2024
  max-width: var(--select-renderer-max-width);
2005
2025
  min-width: 100%;
2006
2026
  }
2007
- `,Sn=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return s.html`
2027
+ `,Cn=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return s.html`
2008
2028
  <${a}
2009
2029
  class="select-renderer"
2010
2030
  @change=${(e,a)=>e.selectionChanged(a.event)}
@@ -2020,15 +2040,15 @@
2020
2040
  <${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
2021
2041
  `)}
2022
2042
  </${a}>
2023
- `},Cn=zn.compose({baseName:"select-renderer",styles:kn,template:Sn()});const An=class extends zn{}.compose({baseName:"select-renderer",styles:kn,template:Sn("zero")});var Tn=r(89861),On=r(86534),Dn=r(75527),Nn=r(9492);const Fn=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,Nn.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Nn.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Nn.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Nn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Nn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Nn.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Nn.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Nn.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Nn.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Nn.__classPrivateFieldGet)(this,o,"f")&&((0,Nn.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Nn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Nn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Nn.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Nn.__classPrivateFieldGet)(this,r,"f")._key&&(0,Nn.__classPrivateFieldSet)(this,r,(0,Nn.__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,Nn.__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,Nn.__classPrivateFieldGet)(this,t,"f")!==(0,Nn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Nn.__classPrivateFieldSet)(this,t,null!==(a=(0,Nn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Nn.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Nn.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Nn.__classPrivateFieldSet)(this,t,null!==(o=(0,Nn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Nn.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[$n])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,Nn.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},$n=Symbol("layout-cache-document");var Ln=r(88556),Mn=r(9770);const Rn=s.html`
2043
+ `},An=kn.compose({baseName:"select-renderer",styles:Sn,template:Cn()});const Tn=class extends kn{}.compose({baseName:"select-renderer",styles:Sn,template:Cn("zero")});var On=r(89861),Dn=r(86534),Nn=r(75527),Fn=r(9492);const $n=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()[Ln])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},Ln=Symbol("layout-cache-document");var Mn=r(88556),Rn=r(9770);const jn=s.html`
2024
2044
  <template>
2025
2045
  <slot ${(0,s.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
2026
2046
  </template>
2027
- `;let jn=class extends c.FoundationElement{connectedCallback(){super.connectedCallback();const e=this.parentElement;this.renderer&&(e.definition.cellRenderer=this.renderer),this.rendererParams&&(e.definition.cellRendererParams=this.rendererParams)}init(e){this.rendererParams=e}getGui(){return"string"!=typeof this.renderer?this.renderer(this.rendererParams):this}destroy(){}refresh(e){return!1}slottedAgRendererChanged(){}};(0,ei.__decorate)([s.observable],jn.prototype,"renderer",void 0),(0,ei.__decorate)([s.observable],jn.prototype,"rendererParams",void 0),(0,ei.__decorate)([s.observable],jn.prototype,"slottedRenderer",void 0),jn=(0,ei.__decorate)([(0,s.customElement)({name:"grid-pro-cell",template:Rn})],jn);const In=s.html`
2047
+ `;let In=class extends c.FoundationElement{connectedCallback(){super.connectedCallback();const e=this.parentElement;this.renderer&&(e.definition.cellRenderer=this.renderer),this.rendererParams&&(e.definition.cellRendererParams=this.rendererParams)}init(e){this.rendererParams=e}getGui(){return"string"!=typeof this.renderer?this.renderer(this.rendererParams):this}destroy(){}refresh(e){return!1}slottedAgRendererChanged(){}};(0,ai.__decorate)([s.observable],In.prototype,"renderer",void 0),(0,ai.__decorate)([s.observable],In.prototype,"rendererParams",void 0),(0,ai.__decorate)([s.observable],In.prototype,"slottedRenderer",void 0),In=(0,ai.__decorate)([(0,s.customElement)({name:"grid-pro-cell",template:jn})],In);const En=s.html`
2028
2048
  <template>
2029
2049
  <slot ${(0,s.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
2030
2050
  </template>
2031
- `;let En=class extends c.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,ei.__decorate)([s.observable],En.prototype,"slottedAgCell",void 0),(0,ei.__decorate)([s.observable],En.prototype,"definition",void 0),En=(0,ei.__decorate)([(0,s.customElement)({name:"grid-pro-column",template:In})],En);var Pn=r(82940),Un=r(32449),Gn=r(9162),Bn=r(5127),_n=r(83123),Hn=r(35991),Yn=r(6852),Vn=r(26714),Qn=r(71452),Wn=r(99449),qn=r(30526);class Jn extends c.FoundationElement{constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Pn.WJ.MAX_ROWS_250,this.maxView=Pn.WJ.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1}}(0,ei.__decorate)([l.lj],Jn.prototype,"connect",void 0),(0,ei.__decorate)([s.observable],Jn.prototype,"deferredGridOptions",void 0),(0,ei.__decorate)([s.observable],Jn.prototype,"deferredColumnStates",void 0),(0,ei.__decorate)([s.attr],Jn.prototype,"criteria",void 0),(0,ei.__decorate)([s.attr],Jn.prototype,"fields",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],Jn.prototype,"isSnapshot",void 0),(0,ei.__decorate)([(0,s.attr)({attribute:"max-rows"})],Jn.prototype,"maxRows",void 0),(0,ei.__decorate)([(0,s.attr)({attribute:"max-view"})],Jn.prototype,"maxView",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],Jn.prototype,"movingView",void 0),(0,ei.__decorate)([(0,s.attr)({attribute:"order-by"})],Jn.prototype,"orderBy",void 0),(0,ei.__decorate)([(0,s.attr)({attribute:"resource-name"})],Jn.prototype,"resourceName",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean"})],Jn.prototype,"reverse",void 0);var Zn=r(21607);function Kn({value:e}){return(0,Zn.D_)(e)}function Xn({value:e}){return(0,Zn.Lx)(e)}var el;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(el||(el={}));let al=class extends(Fn(Jn)){constructor(){super(...arguments),this.pollingInterval=Pn.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 Vn.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Un.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Pn.WJ.REQUEST_SERVER_ROW_ID:Pn.WJ.DATASERVER_ROW_ID}init(){return(0,ei.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid&&this.datasource.validResourceName(this.resourceName)&&this.connect.isConnected){const e=yield this.connect.getMetadata(this.resourceName);this.isRequestServer=e.TYPE===Pn._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,ei.__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,Wn.b)(r),(0,qn.b)((e=>Qi.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Qi.warn("Application not connected, falling back to local columnDefs/rowData")}))}deinit(){this.reset()}reset(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.dataLogoff(),this.clearRowData(),this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new Vn.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,ei.__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,ei.__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===Gn.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Bn.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Bn.$)(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},el.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},el.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},el.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(el)){if(!this.rowDataMapper)return e;const r={};return a.includes(el.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(el.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(el.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 _n.r.DATE:case _n.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 _n.r.STRING:r.cellEditor=li.stringEditor;break;case _n.r.NUMBER:r.cellEditor=li.numberEditor,r.filter="agNumberColumnFilter";break;case _n.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=li.boolean,r.cellEditor=li.boolean);break;case _n.r.DATE:r.valueFormatter=Kn,r.cellEditor=li.dateEditor,r.filter="agDateColumnFilter";break;case _n.r.DATETIME:r.valueFormatter=Xn,r.filter="agDateColumnFilter",r.cellEditor=li.dateEditor,r.cellEditorParams={withTime:!0};break;case _n.r.ENUM:r.cellEditor=li.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values()));return(0,Un.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,ei.__decorate)([Hn.g],al.prototype,"auth",void 0),(0,ei.__decorate)([Yn.Yh],al.prototype,"datasource",void 0),(0,ei.__decorate)([(0,s.attr)({attribute:"polling-interval"})],al.prototype,"pollingInterval",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean",attribute:"disable-polling"})],al.prototype,"disablePolling",void 0),(0,ei.__decorate)([s.observable],al.prototype,"request",void 0),(0,ei.__decorate)([(0,s.attr)({attribute:"row-id"})],al.prototype,"rowIdAttr",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],al.prototype,"restartOnReconnection",void 0),(0,ei.__decorate)([s.observable],al.prototype,"rowDataMapper",void 0),al=(0,ei.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],al);let rl=class extends al{};rl=(0,ei.__decorate)([(0,s.customElement)({name:"grid-pro-client-side-datasource"})],rl);var tl=r(66306),ol=r(47546);function il(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 nl(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 ll{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,ei.__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,ol.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Gn.Cs.LOGOFF_ACK||o===Gn.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,Bn.$)(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,ei.__decorate)([Hn.g],ll.prototype,"auth",void 0),(0,ei.__decorate)([l.lj],ll.prototype,"connect",void 0);let gl=class extends(Fn(Jn)){constructor(){super(...arguments),this.pagination=!1,this.rowId="ROW_REF"}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,Un.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.reset()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions=Object.assign({getRowId:e=>e.data?e.data[this.rowId]:null,cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!0},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{}},this.deferredGridOptions),void this.agGrid.addEventListener("onGridReady",(()=>(0,ei.__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,tl.C)(e);const a=(0,tl.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new ll({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,ei.__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 _n.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 _n.r.DATE:case _n.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 _n.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 _n.r.NUMBER:r.cellEditor=li.numberEditor;break;case _n.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=li.boolean,r.cellEditor=li.boolean);break;case _n.r.DATE:r.valueFormatter=Kn;break;case _n.r.DATETIME:r.valueFormatter=Xn;break;case _n.r.ENUM:r.cellEditor=li.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:nl(e.type),filter:il(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,ei.__decorate)([(0,s.attr)({mode:"boolean"})],gl.prototype,"pagination",void 0),(0,ei.__decorate)([(0,s.attr)({attribute:"row-id"})],gl.prototype,"rowId",void 0),gl=(0,ei.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],gl);const dl='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAA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A9TyJJGbIMf6CADLvWhRUrjWuJH0vSqp0AYxdq7Tmf+5sYN3g2DCqxCIR5uJZqyIJPoZ4J5LY+gKUazY6BSu5tYrnZWTNhtLC560Aq5pu1Hxm2ADhCAgVDfnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',sl='\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/bccgSgISTwjfXQjUrV14PoMQtmKBCWgyDBHwf3OlveyxK4G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ine]:dl,[Xo.alpineDark]:dl,[Xo.balham]:sl,[Xo.balhamDark]:sl,[Xo.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+SAeVlCEiwaKia2gTOYABBQwR8VUQa6iVVYDKIgywZhkDpQzYwg2pogEKYClcQC2Qq0oXaYs5YPlaLUdgQ9tVNJaKVB0aVFF6cTCGhVBqdgYXJnWl1JgunLbYgr2OIF7acWFIHkWlSbS1dvGjSQkU6aoZmJIaoMxMaUYTNbdaUPjzDAU8jcamQigXK1UFkBoXGOSirP22bKJBeriEyKFKLF7ApHF2cslXcTZUOdQ9GypSIYfXSKoUsTiLtq2oYVCg9waGz9Gb0IKKzj0gNMtwgGptnTXVZcdTUqUJ9nII9zZYrIIqAaglVkSlOzY65X7msQ1WsjqE9ZeXZaQERzutqaDhP33SSojDkSuy0tGhJK4TKK3QzI7m73upywg2//HcOv8HYgNuxzN9yny6wS+OijiJbjLIFu66IFGspLEKaV6ZG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LXY8AG8hupZiGFJ1xJm+qGkTLRCYVwm6ItxMhTxKzms6NxGWFaV4+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},pl=dl,ul=s.css`
2051
+ `;let Pn=class extends c.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,ai.__decorate)([s.observable],Pn.prototype,"slottedAgCell",void 0),(0,ai.__decorate)([s.observable],Pn.prototype,"definition",void 0),Pn=(0,ai.__decorate)([(0,s.customElement)({name:"grid-pro-column",template:En})],Pn);var Un=r(82940),Gn=r(32449),Bn=r(9162),_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 c.FoundationElement{constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Un.WJ.MAX_ROWS_250,this.maxView=Un.WJ.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1}}(0,ai.__decorate)([l.lj],Zn.prototype,"connect",void 0),(0,ai.__decorate)([s.observable],Zn.prototype,"deferredGridOptions",void 0),(0,ai.__decorate)([s.observable],Zn.prototype,"deferredColumnStates",void 0),(0,ai.__decorate)([s.attr],Zn.prototype,"criteria",void 0),(0,ai.__decorate)([s.attr],Zn.prototype,"fields",void 0),(0,ai.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],Zn.prototype,"isSnapshot",void 0),(0,ai.__decorate)([(0,s.attr)({attribute:"max-rows"})],Zn.prototype,"maxRows",void 0),(0,ai.__decorate)([(0,s.attr)({attribute:"max-view"})],Zn.prototype,"maxView",void 0),(0,ai.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],Zn.prototype,"movingView",void 0),(0,ai.__decorate)([(0,s.attr)({attribute:"order-by"})],Zn.prototype,"orderBy",void 0),(0,ai.__decorate)([(0,s.attr)({attribute:"resource-name"})],Zn.prototype,"resourceName",void 0),(0,ai.__decorate)([(0,s.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($n(Zn)){constructor(){super(...arguments),this.pollingInterval=Un.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,Gn.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Un.WJ.REQUEST_SERVER_ROW_ID:Un.WJ.DATASERVER_ROW_ID}init(){return(0,ai.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid&&this.datasource.validResourceName(this.resourceName)&&this.connect.isConnected){const e=yield this.connect.getMetadata(this.resourceName);this.isRequestServer=e.TYPE===Un._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,ai.__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=>Wi.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Wi.warn("Application not connected, falling back to local columnDefs/rowData")}))}deinit(){this.reset()}reset(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.dataLogoff(),this.clearRowData(),this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new 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,ai.__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,ai.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Wi.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 Wi.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===Bn.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else 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 Wi.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=gi.stringEditor;break;case Hn.r.NUMBER:r.cellEditor=gi.numberEditor,r.filter="agNumberColumnFilter";break;case Hn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=gi.boolean,r.cellEditor=gi.boolean);break;case Hn.r.DATE:r.valueFormatter=Xn,r.cellEditor=gi.dateEditor,r.filter="agDateColumnFilter";break;case Hn.r.DATETIME:r.valueFormatter=el,r.filter="agDateColumnFilter",r.cellEditor=gi.dateEditor,r.cellEditorParams={withTime:!0};break;case Hn.r.ENUM:r.cellEditor=gi.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values()));return(0,Gn.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,ai.__decorate)([Yn.g],rl.prototype,"auth",void 0),(0,ai.__decorate)([Vn.Yh],rl.prototype,"datasource",void 0),(0,ai.__decorate)([(0,s.attr)({attribute:"polling-interval"})],rl.prototype,"pollingInterval",void 0),(0,ai.__decorate)([(0,s.attr)({mode:"boolean",attribute:"disable-polling"})],rl.prototype,"disablePolling",void 0),(0,ai.__decorate)([s.observable],rl.prototype,"request",void 0),(0,ai.__decorate)([(0,s.attr)({attribute:"row-id"})],rl.prototype,"rowIdAttr",void 0),(0,ai.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],rl.prototype,"restartOnReconnection",void 0),(0,ai.__decorate)([s.observable],rl.prototype,"rowDataMapper",void 0),rl=(0,ai.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],rl);let tl=class extends rl{};tl=(0,ai.__decorate)([(0,s.customElement)({name:"grid-pro-client-side-datasource"})],tl);var ol=r(66306),il=r(47546);function nl(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 ll(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 gl{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,ai.__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,il.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Bn.Cs.LOGOFF_ACK||o===Bn.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=>Wi.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,ai.__decorate)([Yn.g],gl.prototype,"auth",void 0),(0,ai.__decorate)([l.lj],gl.prototype,"connect",void 0);let dl=class extends($n(Zn)){constructor(){super(...arguments),this.pagination=!1,this.rowId="ROW_REF"}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,Gn.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.reset()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions=Object.assign({getRowId:e=>e.data?e.data[this.rowId]:null,cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!0},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{}},this.deferredGridOptions),void this.agGrid.addEventListener("onGridReady",(()=>(0,ai.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Wi.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,ol.C)(e);const a=(0,ol.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new gl({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});Wi.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));Wi.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 Wi.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,ai.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Wi.debug(e)),(e=>Wi.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=gi.numberEditor;break;case Hn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=gi.boolean,r.cellEditor=gi.boolean);break;case Hn.r.DATE:r.valueFormatter=Xn;break;case Hn.r.DATETIME:r.valueFormatter=el;break;case Hn.r.ENUM:r.cellEditor=gi.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:ll(e.type),filter:nl(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,ai.__decorate)([(0,s.attr)({mode:"boolean"})],dl.prototype,"pagination",void 0),(0,ai.__decorate)([(0,s.attr)({attribute:"row-id"})],dl.prototype,"rowId",void 0),dl=(0,ai.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],dl);const sl='\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+kMnGkwBUV1HbzQOxJrQ0SKWJvX3t1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qJlaBGlimhjGsr+uF+bwiOA+zU2oE91TLEeIauP1xWe6rUM/pA81yOYpihiSB7JUXB/oI+iZaGt9tQq2n9Q0derrnU/2o8lgXVDNY1oD9p6TyUb0YWZhdYyCKXNkXqpiKbholwui05d6ymOvr4rvfbvnEuD/2Lt6UJO/LtcDLUAjLO7+6TfmdLsqQ1oX9N1GBdZaqb1U6z/q75SrwQ8/Q0nP38sYCya/8Olal7o7hJgPz+nTjjmCEjw0ihgE3KAue6Ez7v6sQAMBCBRVzH0QE+m7QFOUA8oIHQ7QMAd+l1GAzbMBJSuy4FO132so8Klf1DS9T/b9TcUX2zPj/AL+0JO3/nkAvwE23tJm1M5r/MXKLsYquvmateVvUAAkgy6aucqD/aG2VSGIlbPMayL8j5WieIXKG465nS7Whn3qhsVcU2yXhBHu+MlTgB+gvDA9TyJJGbIMf6CADLvWhRUrjWuJH0vSqp0AYxdq7Tmf+5sYN3g2DCqxCIR5uJZqyIJPoZ4J5LY+gKUazY6BSu5tYrnZWTNhtLC560Aq5pu1Hxm2ADhCAgVDfnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',cl='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64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4PRZLZYbXaHH/61X+r8mc5sLl8olsqVaq3eaLbanW6vPxiOxpPpbL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',pl={[ei.alpine]:sl,[ei.alpineDark]:sl,[ei.balham]:cl,[ei.balhamDark]:cl,[ei.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+7l62hratnMRk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57W5yzRsklOnTtE0/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'},ul=sl,hl=s.css`
2032
2052
  .ag-icon {
2033
2053
  font-family: var(--ag-icon-font-family);
2034
2054
  font-size: var(--ag-icon-size);
@@ -9205,7 +9225,7 @@
9205
9225
  input[class^='ag-'][type='range']:disabled {
9206
9226
  opacity: 0.5;
9207
9227
  }
9208
- `,hl=s.css`
9228
+ `,ml=s.css`
9209
9229
  .ag-dnd-ghost {
9210
9230
  background: var(--ag-header-background-color, var(--ag-background-color, #1f2126));
9211
9231
  border: solid 1px;
@@ -9222,7 +9242,7 @@
9222
9242
  overflow: hidden;
9223
9243
  text-overflow: ellipsis;
9224
9244
  }
9225
- `,ml=s.css`
9245
+ `,vl=s.css`
9226
9246
  .ag-theme-alpine,
9227
9247
  .ag-theme-alpine-dark {
9228
9248
  --ag-alpine-active-color: #2196f3;
@@ -9672,7 +9692,7 @@
9672
9692
  .ag-theme-alpine-dark {
9673
9693
  color-scheme: dark;
9674
9694
  }
9675
- `,vl=s.css`
9695
+ `,bl=s.css`
9676
9696
  .ag-theme-balham,
9677
9697
  .ag-theme-balham-dark {
9678
9698
  --ag-balham-active-color: #0091ea;
@@ -9942,7 +9962,7 @@
9942
9962
  .ag-theme-balham-dark {
9943
9963
  color-scheme: dark;
9944
9964
  }
9945
- `,bl=s.css`
9965
+ `,fl=s.css`
9946
9966
  .ag-theme-material {
9947
9967
  --ag-material-primary-color: #3f51b5;
9948
9968
  --ag-material-accent-color: #ff4081;
@@ -10207,14 +10227,14 @@
10207
10227
  .ag-theme-material .ag-picker-field-wrapper:focus {
10208
10228
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
10209
10229
  }
10210
- `,fl=s.css`
10211
- ${ul}
10230
+ `,wl=s.css`
10212
10231
  ${hl}
10213
10232
  ${ml}
10214
10233
  ${vl}
10215
10234
  ${bl}
10216
- `,wl=s.css`
10217
10235
  ${fl}
10236
+ `,yl=s.css`
10237
+ ${wl}
10218
10238
  :host {
10219
10239
  width: 100%;
10220
10240
  height: 100%;
@@ -10241,14 +10261,14 @@
10241
10261
  .ag-cell-inline-editing {
10242
10262
  height: inherit !important;
10243
10263
  }
10244
- `,yl=s.html`
10264
+ `,xl=s.html`
10245
10265
  <template>
10246
10266
  <span part="grid" class="${e=>e.classNames}">
10247
10267
  <slot name="grid" ${(0,s.ref)("gridSlot")}></slot>
10248
10268
  <slot></slot>
10249
10269
  </span>
10250
10270
  </template>
10251
- `;class xl{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 zl(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}Vi.O3h.registerModules([On.jM,Tn.I]);const kl=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Sl extends(Fn(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Mn.A)(ii(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=pl,this.columnComponentName="grid-pro-column",this.theme=Xo.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Vi.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[kl(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&&Vi.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(kl(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[li.action]:Wi,[li.actionsMenu]:en,[li.boolean]:on,[li.editable]:Ui,[li.selectEditor]:zi,[li.numberEditor]:Oi,[li.multiselectEditor]:vi,[li.dateEditor]:si,[li.stringEditor]:Mi};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,ei.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),d=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0},this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProDatasource?d.columnDefs=t:d.columnDefs=this.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Vi.plv.copyAttributesToGridOptions(d,this.agAttributes));const c={globalEventListener:a};s.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Vi.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[gi]===e.field)return{component:li.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=xl,e.tooltipValueGetter=a=>{const r=a.data[di];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[di])||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 zl(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return zl(n,this.gridProDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Vi.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Vi.plv.ALL_PROPERTIES.map((e=>kl(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},Vi.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=cl[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Ln.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,ei.__decorate)([s.observable],Sl.prototype,"columnApi",void 0),(0,ei.__decorate)([s.observable],Sl.prototype,"gridApi",void 0),(0,ei.__decorate)([Dn.z],Sl.prototype,"session",void 0),(0,ei.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Sl.prototype,"autoCellRendererByType",void 0),(0,ei.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Sl.prototype,"onlyTemplateColDefs",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],Sl.prototype,"gridAutosizingEnabled",void 0),(0,ei.__decorate)([(0,s.attr)({attribute:"add-index"})],Sl.prototype,"addIndex",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],Sl.prototype,"asyncAdd",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],Sl.prototype,"asyncRemove",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],Sl.prototype,"asyncUpdate",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Sl.prototype,"enableCellFlashing",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Sl.prototype,"enabledRowFlashing",void 0),(0,ei.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Sl.prototype,"enableRowFlashing",void 0),(0,ei.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],Sl.prototype,"persistColumnStateKey",void 0),(0,ei.__decorate)([s.observable],Sl.prototype,"gridFontFace",void 0),(0,ei.__decorate)([s.attr],Sl.prototype,"columnComponentName",void 0),(0,ei.__decorate)([s.observable],Sl.prototype,"eventsAndCallbacks",void 0),(0,ei.__decorate)([s.attr],Sl.prototype,"headerHeight",void 0),(0,ei.__decorate)([s.attr],Sl.prototype,"rowHeight",void 0),(0,ei.__decorate)([s.attr],Sl.prototype,"theme",void 0),(0,ei.__decorate)([s.observable],Sl.prototype,"classNames",void 0),(0,ei.__decorate)([s.observable],Sl.prototype,"agGrid",void 0),(0,ei.__decorate)([s.observable],Sl.prototype,"gridSlot",void 0),(0,ei.__decorate)([s.observable],Sl.prototype,"gridComponents",void 0);const Cl=void 0,Al={shadowOptions:void 0},Tl=Sl.compose(Object.assign({baseName:"grid-pro",styles:wl,template:yl,shadowOptions:Cl},Al)),Ol={foregroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#879ba6")),backgroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#1f2126")),borderSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#2e3339")),rowHoverSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#2b2e34"))},Dl={foregroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#000000")),headerForegroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#181d1f")),backgroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#FFFFFF")),borderSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#babfc7")),rowHoverSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#2196f3"))},{create:Nl}=c.DesignToken,Fl={backgroundColor:Nl("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Dl.backgroundSwatch:Ol.backgroundSwatch)),borderColor:Nl("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Dl.borderSwatch:Ol.borderSwatch)),foregroundColor:Nl("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Dl.foregroundSwatch:Ol.foregroundSwatch)),headerForegroundColor:Nl("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Dl.headerForegroundSwatch:Ol.headerForegroundSwatch)),rowHoverColor:Nl("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Dl.rowHoverSwatch:Ol.rowHoverSwatch))},$l=s.css`
10271
+ `;class zl{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 kl(e,a){const r={},t=[],o="field",i="colId";return a.forEach((a=>{const n=e.find((e=>e[o]===a[i]||e[i]&&e[i]===a[i]));if(n){const e=Object.assign(Object.assign({},n),a);r[n[o]]=e,t.push(e)}})),e.forEach((e=>{if(!r.hasOwnProperty(e[o])){const a=Object.assign({},e);r[e[o]]=a,t.push(a)}})),t}Qi.O3h.registerModules([Dn.jM,On.I]);const Sl=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Cl extends($n(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Rn.A)(ni(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=ul,this.columnComponentName="grid-pro-column",this.theme=ei.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Qi.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Sl(a)]=a,e)),{})}connectedCallback(){super.connectedCallback(),this.rehydrationAttempted=!1,this.gridAutosizingEnabled&&((e,a)=>{const r={root:document.documentElement};new IntersectionObserver((e=>{e.forEach((e=>{a(e.intersectionRatio>0)}))}),r).observe(e)})(this,(e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.shouldRunConnect&&Qi.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Sl(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[gi.action]:qi,[gi.actionsMenu]:an,[gi.boolean]:nn,[gi.editable]:Gi,[gi.selectEditor]:ki,[gi.numberEditor]:Di,[gi.multiselectEditor]:bi,[gi.dateEditor]:ci,[gi.stringEditor]:Ri};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,ai.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),d=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0},this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProDatasource?d.columnDefs=t:d.columnDefs=this.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Qi.plv.copyAttributesToGridOptions(d,this.agAttributes));const c={globalEventListener:a};s.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Qi.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return Wi.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[di]===e.field)return{component:gi.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=zl,e.tooltipValueGetter=a=>{const r=a.data[si];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[si])||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 kl(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return kl(n,this.gridProDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Qi.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Qi.plv.ALL_PROPERTIES.map((e=>Sl(e)));return e.concat(a)}agAttributeChangedCallback(e,a,r){if(a===r)return;const t=this.agPropertiesMap[e];if(t&&(this.agAttributes[t]=r,this.initialised)){const e={};e[t]={currentValue:r},Qi.plv.processOnChange(e,this.gridApi)}}globalEventListener(e,a){const r=e.toLowerCase(),t=new Event(r);t.agGridDetails=a,this.dispatchEvent(t);const o="on"+r;"function"==typeof this[o]&&this[o](t)}insertFontFace(e){const a=pl[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Mn.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,ai.__decorate)([s.observable],Cl.prototype,"columnApi",void 0),(0,ai.__decorate)([s.observable],Cl.prototype,"gridApi",void 0),(0,ai.__decorate)([Nn.z],Cl.prototype,"session",void 0),(0,ai.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Cl.prototype,"autoCellRendererByType",void 0),(0,ai.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Cl.prototype,"onlyTemplateColDefs",void 0),(0,ai.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],Cl.prototype,"gridAutosizingEnabled",void 0),(0,ai.__decorate)([(0,s.attr)({attribute:"add-index"})],Cl.prototype,"addIndex",void 0),(0,ai.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],Cl.prototype,"asyncAdd",void 0),(0,ai.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],Cl.prototype,"asyncRemove",void 0),(0,ai.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],Cl.prototype,"asyncUpdate",void 0),(0,ai.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Cl.prototype,"enableCellFlashing",void 0),(0,ai.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Cl.prototype,"enabledRowFlashing",void 0),(0,ai.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Cl.prototype,"enableRowFlashing",void 0),(0,ai.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],Cl.prototype,"persistColumnStateKey",void 0),(0,ai.__decorate)([s.observable],Cl.prototype,"gridFontFace",void 0),(0,ai.__decorate)([s.attr],Cl.prototype,"columnComponentName",void 0),(0,ai.__decorate)([s.observable],Cl.prototype,"eventsAndCallbacks",void 0),(0,ai.__decorate)([s.attr],Cl.prototype,"headerHeight",void 0),(0,ai.__decorate)([s.attr],Cl.prototype,"rowHeight",void 0),(0,ai.__decorate)([s.attr],Cl.prototype,"theme",void 0),(0,ai.__decorate)([s.observable],Cl.prototype,"classNames",void 0),(0,ai.__decorate)([s.observable],Cl.prototype,"agGrid",void 0),(0,ai.__decorate)([s.observable],Cl.prototype,"gridSlot",void 0),(0,ai.__decorate)([s.observable],Cl.prototype,"gridComponents",void 0);const Al=void 0,Tl={shadowOptions:void 0},Ol=Cl.compose(Object.assign({baseName:"grid-pro",styles:yl,template:xl,shadowOptions:Al},Tl)),Dl={foregroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#879ba6")),backgroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#1f2126")),borderSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#2e3339")),rowHoverSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#2b2e34"))},Nl={foregroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#000000")),headerForegroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#181d1f")),backgroundSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#FFFFFF")),borderSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#babfc7")),rowHoverSwatch:p.SwatchRGB.from((0,je.parseColorHexRGB)("#2196f3"))},{create:Fl}=c.DesignToken,$l={backgroundColor:Fl("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Nl.backgroundSwatch:Dl.backgroundSwatch)),borderColor:Fl("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Nl.borderSwatch:Dl.borderSwatch)),foregroundColor:Fl("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Nl.foregroundSwatch:Dl.foregroundSwatch)),headerForegroundColor:Fl("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Nl.headerForegroundSwatch:Dl.headerForegroundSwatch)),rowHoverColor:Fl("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Nl.rowHoverSwatch:Dl.rowHoverSwatch))},Ll=s.css`
10252
10272
  .ag-theme-genesis-rapid,
10253
10273
  .ag-theme-genesis-rapid-dark {
10254
10274
  --ag-alpine-active-color: #2196f3;
@@ -10708,54 +10728,54 @@
10708
10728
  .ag-theme-genesis-rapid-dark {
10709
10729
  color-scheme: dark;
10710
10730
  }
10711
- `,Ll={[Ko.backgroundColor]:Fl.backgroundColor,[Ko.foregroundColor]:Fl.foregroundColor,[Ko.oddRowBackgroundColor]:Fl.backgroundColor,[Ko.headerBackgroundColor]:Fl.backgroundColor,[Ko.headerForegroundColor]:Fl.headerForegroundColor,[Ko.selectedRowBackgroundColor]:Fl.rowHoverColor,[Ko.rowHoverColor]:Fl.rowHoverColor,[Ko.borderColor]:Fl.borderColor,[Ko.rowBorderColor]:Fl.rowHoverColor,[Ko.modalOverlayBackgroundColor]:Fl.backgroundColor,[Ko.inputFocusBoxShadow]:Fl.headerForegroundColor,[Ko.inputFocusBorderColor]:Fl.headerForegroundColor,[Ko.headerColumnResizeHandleColor]:Fl.headerForegroundColor},Ml="ag-theme-genesis-rapid",Rl=s.css`
10712
- ${$l}
10713
- ${ni(Ml,Ll)}
10731
+ `,Ml={[Xo.backgroundColor]:$l.backgroundColor,[Xo.foregroundColor]:$l.foregroundColor,[Xo.oddRowBackgroundColor]:$l.backgroundColor,[Xo.headerBackgroundColor]:$l.backgroundColor,[Xo.headerForegroundColor]:$l.headerForegroundColor,[Xo.selectedRowBackgroundColor]:$l.rowHoverColor,[Xo.rowHoverColor]:$l.rowHoverColor,[Xo.borderColor]:$l.borderColor,[Xo.rowBorderColor]:$l.rowHoverColor,[Xo.modalOverlayBackgroundColor]:$l.backgroundColor,[Xo.inputFocusBoxShadow]:$l.headerForegroundColor,[Xo.inputFocusBorderColor]:$l.headerForegroundColor,[Xo.headerColumnResizeHandleColor]:$l.headerForegroundColor},Rl="ag-theme-genesis-rapid",jl=s.css`
10732
+ ${Ll}
10733
+ ${li(Rl,Ml)}
10714
10734
 
10715
- .${Ml} {
10735
+ .${Rl} {
10716
10736
  ${Ce()}
10717
10737
  }
10718
10738
 
10719
- .${Ml} .ag-header {
10739
+ .${Rl} .ag-header {
10720
10740
  border-bottom-color: var(--rapid-ag-header-foreground-color);
10721
10741
  font-weight: bold;
10722
10742
  }
10723
10743
 
10724
- .${Ml} .ag-root-wrapper {
10744
+ .${Rl} .ag-root-wrapper {
10725
10745
  border-radius: calc(var(--control-corner-radius) * 1px);
10726
10746
  }
10727
- `,jl="ag-theme-genesis-rapid-dark",Il=s.css`
10728
- ${$l}
10729
- ${ni(jl,Ll)}
10747
+ `,Il="ag-theme-genesis-rapid-dark",El=s.css`
10748
+ ${Ll}
10749
+ ${li(Il,Ml)}
10730
10750
 
10731
- .${jl} {
10751
+ .${Il} {
10732
10752
  ${Ce()}
10733
10753
  }
10734
10754
 
10735
- .${jl} .ag-header {
10755
+ .${Il} .ag-header {
10736
10756
  border-bottom-color: var(--rapid-ag-header-foreground-color);
10737
10757
  font-weight: bold;
10738
10758
  }
10739
10759
 
10740
- .${jl} .ag-cell {
10760
+ .${Il} .ag-cell {
10741
10761
  line-height: var(--ag-line-height, 32px);
10742
10762
  }
10743
10763
 
10744
- .${jl} .ag-root-wrapper {
10764
+ .${Il} .ag-root-wrapper {
10745
10765
  border-radius: calc(var(--control-corner-radius) * 1px);
10746
10766
  }
10747
- `,El=s.css`
10767
+ `,Pl=s.css`
10748
10768
  /* All the AG themes */
10749
- ${wl}
10769
+ ${yl}
10750
10770
 
10751
10771
  /* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
10752
- ${Rl}
10753
- ${Il}
10772
+ ${jl}
10773
+ ${El}
10754
10774
 
10755
10775
  .error {
10756
10776
  border-color: ${ue.shortPink} !important;
10757
10777
  }
10758
- `,Pl=yl,Ul="ag-theme-genesis-rapid-dark";const Gl=Al,Bl={zeroAgEditableRenderer:Yi,zeroAgActionRenderer:Xi,zeroAgActionsMenuRenderer:tn,zeroAgBooleanRenderer:sn,zeroAgTextRenderer:xn,zeroAgSelectRenderer:An,zeroAgDateEditor:mi,zeroAgMultiselectEditor:xi,zeroAgSelectEditor:Ti,zeroAgNumberEditor:Li,zeroAgStringEditor:Pi,zeroGridPro:class extends Sl{constructor(){super(...arguments),this.theme=Ul}themeChanged(e,a){(e||a===Ul)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[li.action]:Ki,[li.actionsMenu]:rn,[li.boolean]:dn,[li.editable]:Hi,[li.selectEditor]:Ai,[li.numberEditor]:$i,[li.multiselectEditor]:yi,[li.dateEditor]:hi,[li.stringEditor]:Ei};(this.theme===Ml||this.theme===jl)&&(this.headerHeight=null!==(a=e.headerHeight)&&void 0!==a?a:32,this.rowHeight=null!==(r=e.rowHeight)&&void 0!==r?r:32),super.gridOptions=e}}.compose(Object.assign({baseName:"grid-pro",template:Pl,styles:El,shadowOptions:undefined},Gl)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},_l={foundationGridProActionRenderer:Zi,foundationGridProActionsMenuRenderer:an,foundationAgBooleanRenderer:gn,foundationAgTextRenderer:yn,foundationAgTextFieldRenderer:vn,foundationAgEditableRenderer:_i,foundationAgSelectRenderer:Cn,foundationGridPro:Tl,foundationSelectEditor:Ci,foundationNumberEditor:Fi,foundationDateEditor:ui,foundationMultiselectEditor:wi,foundationStringEditor:Ii,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Hl,Yl=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Hl||(Hl={}));const Vl={Roboto:Se,"Segoe UI":'"Segoe UI", Arial, Helvetica, sans-serif',Monospace:'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace',"Times New Roman":'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif',Garamond:'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif',Georgia:'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',Helvetica:'Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif',Verdana:'Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif'},Ql=Vl["Segoe UI"],Wl=s.css`
10778
+ `,Ul=xl,Gl="ag-theme-genesis-rapid-dark";const Bl=Tl,_l={zeroAgEditableRenderer:Vi,zeroAgActionRenderer:en,zeroAgActionsMenuRenderer:on,zeroAgBooleanRenderer:cn,zeroAgTextRenderer:zn,zeroAgSelectRenderer:Tn,zeroAgDateEditor:vi,zeroAgMultiselectEditor:zi,zeroAgSelectEditor:Oi,zeroAgNumberEditor:Mi,zeroAgStringEditor:Ui,zeroGridPro:class extends Cl{constructor(){super(...arguments),this.theme=Gl}themeChanged(e,a){(e||a===Gl)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[gi.action]:Xi,[gi.actionsMenu]:tn,[gi.boolean]:sn,[gi.editable]:Yi,[gi.selectEditor]:Ti,[gi.numberEditor]:Li,[gi.multiselectEditor]:xi,[gi.dateEditor]:mi,[gi.stringEditor]:Pi};(this.theme===Rl||this.theme===Il)&&(this.headerHeight=null!==(a=e.headerHeight)&&void 0!==a?a:32,this.rowHeight=null!==(r=e.rowHeight)&&void 0!==r?r:32),super.gridOptions=e}}.compose(Object.assign({baseName:"grid-pro",template:Ul,styles:Pl,shadowOptions:undefined},Bl)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},Hl={foundationGridProActionRenderer:Ki,foundationGridProActionsMenuRenderer:rn,foundationAgBooleanRenderer:dn,foundationAgTextRenderer:xn,foundationAgTextFieldRenderer:bn,foundationAgEditableRenderer:Hi,foundationAgSelectRenderer:An,foundationGridPro:Ol,foundationSelectEditor:Ai,foundationNumberEditor:$i,foundationDateEditor:hi,foundationMultiselectEditor:yi,foundationStringEditor:Ei,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Yl,Vl=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Yl||(Yl={}));const Ql={Roboto:Se,"Segoe UI":'"Segoe UI", Arial, Helvetica, sans-serif',Monospace:'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace',"Times New Roman":'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif',Garamond:'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif',Georgia:'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',Helvetica:'Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif',Verdana:'Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif'},Wl=Ql["Segoe UI"],ql=s.css`
10759
10779
  ${(0,c.display)("block")} :host {
10760
10780
  width: 100%;
10761
10781
  display: inline-flex;
@@ -10887,7 +10907,7 @@
10887
10907
  alpha-button {
10888
10908
  margin: 0;
10889
10909
  }
10890
- `,ql=s.html`
10910
+ `,Jl=s.html`
10891
10911
  <template>
10892
10912
  <div class="configuration">
10893
10913
  ${(0,s.when)((e=>!e.customDesignMode),s.html`
@@ -11095,7 +11115,7 @@
11095
11115
  </div>
11096
11116
  </div>
11097
11117
  ${(0,s.when)((e=>!e.customDesignMode),s.html`
11098
- <alpha-checkbox :checked="${(0,cn.Z)((e=>e.preserveOptions),"boolean")}">
11118
+ <alpha-checkbox :checked="${(0,pn.Z)((e=>e.preserveOptions),"boolean")}">
11099
11119
  Preserve selected options when changing design systems
11100
11120
  </alpha-checkbox>
11101
11121
  `)}
@@ -11110,7 +11130,7 @@
11110
11130
  <slot></slot>
11111
11131
  </div>
11112
11132
  </template>
11113
- `,Jl=({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(Vl).find((a=>Vl[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Zl=Jl(De),Kl={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},Xl=Jl(i.designTokens),eg={zero:{prefix:"zero",tokenDefaults:Zl,buttons:Kl},alpha:{prefix:"alpha",tokenDefaults:Xl,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:Kl}};let ag=class extends s.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Zl.luminance===p.StandardLuminance.DarkMode,this.luminance=Zl.luminance,this.neutralColor=Zl.neutralColor,this.accentColor=Zl.accentColor,this.bodyFont=Zl.bodyFont,this.density=Zl.density,this.borderRadius=Zl.borderRadius,this.strokeWidth=Zl.strokeWidth,this.designUnit=Zl.designUnit,this.baseFontSize=Zl.baseFontSize,this.baseLineHeight=Zl.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof c.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof p.Combobox||e.target instanceof p.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof c.Slider){const a=parseInt(e.target.value),r=e.target.name;r&&Number.isInteger(a)&&(this[r]=a,this.updateUserSelections(r,a),this.styleUpdate())}},this.updateUserSelections=(e,a)=>{"ds"===e||this.tokenUpdateInProgress||(this.userSelections[e]=a)},this.modeChangeHandler=e=>{this.darkMode=e.target.checked,this.luminance=this.darkMode?p.StandardLuminance.DarkMode:p.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=Jl(a);eg.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Yl.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(eg[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Yl.__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:eg[this.ds].prefix,buttonAppearanceAccent:eg[this.ds].buttons.accent,buttonAppearanceNeutral:eg[this.ds].buttons.neutral,buttonAppearanceOutline:eg[this.ds].buttons.outline};this.$emit(Hl.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(eg[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Vl[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(Hl.STYLES_CHANGED,e)}setTokensFromDs(e){this.tokenUpdateInProgress=!0,Object.keys(e).forEach((a=>{this.preserveOptions&&void 0!==this.userSelections[a]?this[a]=this.userSelections[a]:this[a]=e[a]})),this.darkMode=this.luminance===p.StandardLuminance.DarkMode,s.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppName(){return fetch("/api/name").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},ke(),s.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Hl.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Yl.__decorate)([(0,s.attr)({mode:"boolean",attribute:"custom-design-mode"})],ag.prototype,"customDesignMode",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"designSystems",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"ds",void 0),(0,Yl.__decorate)([s.attr],ag.prototype,"darkMode",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"neutralColor",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"accentColor",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"bodyFont",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"density",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"borderRadius",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"strokeWidth",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"designUnit",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"baseFontSize",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"baseLineHeight",void 0),(0,Yl.__decorate)([s.observable],ag.prototype,"preserveOptions",void 0),ag=(0,Yl.__decorate)([(0,s.customElement)({name:"design-system-editor",template:ql,styles:Wl})],ag);const rg=e=>{const a=(e=>{const a=(0,je.parseColorHexRGB)(e);return a?p.SwatchRGB.from(a):null})(e);return a?p.PaletteRGB.create(a):null},tg=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},og=(e,a)=>{const r=rg(e.neutralColor);p.neutralPalette.setValueFor(a,r);const t=rg(e.accentColor);p.accentPalette.setValueFor(a,t),p.baseLayerLuminance.setValueFor(a,e.luminance),p.density.setValueFor(a,e.density),p.controlCornerRadius.setValueFor(a,e.borderRadius),p.strokeWidth.setValueFor(a,e.strokeWidth),p.designUnit.setValueFor(a,e.designUnit),p.bodyFont.setValueFor(a,e.bodyFont),p.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),p.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),p.typeRampMinus1FontSize.setValueFor(a,tg(p.typeRampBaseFontSize,ze.Yd.minusOne,a)),p.typeRampMinus1LineHeight.setValueFor(a,tg(p.typeRampBaseLineHeight,ze.Yd.minusOne,a)),p.typeRampMinus2FontSize.setValueFor(a,tg(p.typeRampBaseFontSize,ze.Yd.minusTwo,a)),p.typeRampMinus2LineHeight.setValueFor(a,tg(p.typeRampBaseLineHeight,ze.Yd.minusTwo,a)),p.typeRampPlus1FontSize.setValueFor(a,tg(p.typeRampBaseFontSize,ze.Yd.plusOne,a)),p.typeRampPlus1LineHeight.setValueFor(a,tg(p.typeRampBaseLineHeight,ze.Yd.plusOne,a)),p.typeRampPlus2FontSize.setValueFor(a,tg(p.typeRampBaseFontSize,ze.Yd.plusTwo,a)),p.typeRampPlus2LineHeight.setValueFor(a,tg(p.typeRampBaseLineHeight,ze.Yd.plusTwo,a)),p.typeRampPlus3FontSize.setValueFor(a,tg(p.typeRampBaseFontSize,ze.Yd.plusThree,a)),p.typeRampPlus3LineHeight.setValueFor(a,tg(p.typeRampBaseLineHeight,ze.Yd.plusThree,a)),p.typeRampPlus4FontSize.setValueFor(a,tg(p.typeRampBaseFontSize,ze.Yd.plusFour,a)),p.typeRampPlus4LineHeight.setValueFor(a,tg(p.typeRampBaseLineHeight,ze.Yd.plusFour,a)),p.typeRampPlus5FontSize.setValueFor(a,tg(p.typeRampBaseFontSize,ze.Yd.plusFive,a)),p.typeRampPlus5LineHeight.setValueFor(a,tg(p.typeRampBaseLineHeight,ze.Yd.plusFive,a)),p.typeRampPlus6FontSize.setValueFor(a,tg(p.typeRampBaseFontSize,ze.Yd.plusSix,a)),p.typeRampPlus6LineHeight.setValueFor(a,tg(p.typeRampBaseLineHeight,ze.Yd.plusSix,a))},ig=s.css`
11133
+ `,Zl=({design_tokens:e})=>({accentColor:e.color.accent.$value,neutralColor:e.color.neutral.$value,luminance:e.mode.luminance.$value,density:e.style.density.$value,designUnit:e.space.designUnit.$value,borderRadius:e.style.borderRadius.$value,strokeWidth:e.style.strokeWidth.$value,bodyFont:Object.keys(Ql).find((a=>Ql[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Kl=Zl(De),Xl={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},eg=Zl(i.designTokens),ag={zero:{prefix:"zero",tokenDefaults:Kl,buttons:Xl},alpha:{prefix:"alpha",tokenDefaults:eg,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:Xl}};let rg=class extends s.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Kl.luminance===p.StandardLuminance.DarkMode,this.luminance=Kl.luminance,this.neutralColor=Kl.neutralColor,this.accentColor=Kl.accentColor,this.bodyFont=Kl.bodyFont,this.density=Kl.density,this.borderRadius=Kl.borderRadius,this.strokeWidth=Kl.strokeWidth,this.designUnit=Kl.designUnit,this.baseFontSize=Kl.baseFontSize,this.baseLineHeight=Kl.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof c.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof p.Combobox||e.target instanceof p.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof c.Slider){const a=parseInt(e.target.value),r=e.target.name;r&&Number.isInteger(a)&&(this[r]=a,this.updateUserSelections(r,a),this.styleUpdate())}},this.updateUserSelections=(e,a)=>{"ds"===e||this.tokenUpdateInProgress||(this.userSelections[e]=a)},this.modeChangeHandler=e=>{this.darkMode=e.target.checked,this.luminance=this.darkMode?p.StandardLuminance.DarkMode:p.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=Zl(a);ag.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Vl.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(ag[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Vl.__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:ag[this.ds].prefix,buttonAppearanceAccent:ag[this.ds].buttons.accent,buttonAppearanceNeutral:ag[this.ds].buttons.neutral,buttonAppearanceOutline:ag[this.ds].buttons.outline};this.$emit(Yl.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(ag[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Ql[this.bodyFont],luminance:this.luminance,density:this.density,designUnit:this.designUnit,borderRadius:this.borderRadius,strokeWidth:this.strokeWidth,baseFontSize:this.baseFontSize,baseLineHeight:this.baseLineHeight};this.$emit(Yl.STYLES_CHANGED,e)}setTokensFromDs(e){this.tokenUpdateInProgress=!0,Object.keys(e).forEach((a=>{this.preserveOptions&&void 0!==this.userSelections[a]?this[a]=this.userSelections[a]:this[a]=e[a]})),this.darkMode=this.luminance===p.StandardLuminance.DarkMode,s.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppName(){return fetch("/api/name").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},ke(),s.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Yl.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Vl.__decorate)([(0,s.attr)({mode:"boolean",attribute:"custom-design-mode"})],rg.prototype,"customDesignMode",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"designSystems",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"ds",void 0),(0,Vl.__decorate)([s.attr],rg.prototype,"darkMode",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"neutralColor",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"accentColor",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"bodyFont",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"density",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"borderRadius",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"strokeWidth",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"designUnit",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"baseFontSize",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"baseLineHeight",void 0),(0,Vl.__decorate)([s.observable],rg.prototype,"preserveOptions",void 0),rg=(0,Vl.__decorate)([(0,s.customElement)({name:"design-system-editor",template:Jl,styles:ql})],rg);const tg=e=>{const a=(e=>{const a=(0,je.parseColorHexRGB)(e);return a?p.SwatchRGB.from(a):null})(e);return a?p.PaletteRGB.create(a):null},og=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},ig=(e,a)=>{const r=tg(e.neutralColor);p.neutralPalette.setValueFor(a,r);const t=tg(e.accentColor);p.accentPalette.setValueFor(a,t),p.baseLayerLuminance.setValueFor(a,e.luminance),p.density.setValueFor(a,e.density),p.controlCornerRadius.setValueFor(a,e.borderRadius),p.strokeWidth.setValueFor(a,e.strokeWidth),p.designUnit.setValueFor(a,e.designUnit),p.bodyFont.setValueFor(a,e.bodyFont),p.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),p.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),p.typeRampMinus1FontSize.setValueFor(a,og(p.typeRampBaseFontSize,ze.Yd.minusOne,a)),p.typeRampMinus1LineHeight.setValueFor(a,og(p.typeRampBaseLineHeight,ze.Yd.minusOne,a)),p.typeRampMinus2FontSize.setValueFor(a,og(p.typeRampBaseFontSize,ze.Yd.minusTwo,a)),p.typeRampMinus2LineHeight.setValueFor(a,og(p.typeRampBaseLineHeight,ze.Yd.minusTwo,a)),p.typeRampPlus1FontSize.setValueFor(a,og(p.typeRampBaseFontSize,ze.Yd.plusOne,a)),p.typeRampPlus1LineHeight.setValueFor(a,og(p.typeRampBaseLineHeight,ze.Yd.plusOne,a)),p.typeRampPlus2FontSize.setValueFor(a,og(p.typeRampBaseFontSize,ze.Yd.plusTwo,a)),p.typeRampPlus2LineHeight.setValueFor(a,og(p.typeRampBaseLineHeight,ze.Yd.plusTwo,a)),p.typeRampPlus3FontSize.setValueFor(a,og(p.typeRampBaseFontSize,ze.Yd.plusThree,a)),p.typeRampPlus3LineHeight.setValueFor(a,og(p.typeRampBaseLineHeight,ze.Yd.plusThree,a)),p.typeRampPlus4FontSize.setValueFor(a,og(p.typeRampBaseFontSize,ze.Yd.plusFour,a)),p.typeRampPlus4LineHeight.setValueFor(a,og(p.typeRampBaseLineHeight,ze.Yd.plusFour,a)),p.typeRampPlus5FontSize.setValueFor(a,og(p.typeRampBaseFontSize,ze.Yd.plusFive,a)),p.typeRampPlus5LineHeight.setValueFor(a,og(p.typeRampBaseLineHeight,ze.Yd.plusFive,a)),p.typeRampPlus6FontSize.setValueFor(a,og(p.typeRampBaseFontSize,ze.Yd.plusSix,a)),p.typeRampPlus6LineHeight.setValueFor(a,og(p.typeRampBaseLineHeight,ze.Yd.plusSix,a))},ng=s.css`
11114
11134
  :host {
11115
11135
  background: var(--fill-color);
11116
11136
  color: var(--neutral-foreground-rest);
@@ -11153,7 +11173,7 @@
11153
11173
  zero-design-system-provider {
11154
11174
  display: inline;
11155
11175
  }
11156
- `,ng=s.html`
11176
+ `,lg=s.html`
11157
11177
  ${e=>{return a=e.prefix,s.html`
11158
11178
  <template>
11159
11179
  <${a}-design-system-provider ${(0,s.ref)("provider")}>
@@ -11354,7 +11374,7 @@
11354
11374
  </${a}-design-system-provider>
11355
11375
  </template>
11356
11376
  `;var a}}
11357
- `;let lg=class extends s.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.buttonAppearanceAccent="primary-blue",this.buttonAppearanceNeutral="primary-grey",this.buttonAppearanceOutline="primary-gradient"}setDialogEventListeners(){this.showDialogTrigger.addEventListener("click",(()=>this.modal.show()),{passive:!0}),this.closeDialogTrigger.addEventListener("click",(()=>this.modal.close()),{passive:!0})}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Hl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setDialogEventListeners(),p.bodyFont.withDefault(Ql)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{og(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.buttonAppearanceAccent=e.detail.buttonAppearanceAccent,this.buttonAppearanceNeutral=e.detail.buttonAppearanceNeutral,this.buttonAppearanceOutline=e.detail.buttonAppearanceOutline,s.DOM.queueUpdate((()=>{this.setDialogEventListeners()}))}};(0,Yl.__decorate)([s.observable],lg.prototype,"modal",void 0),(0,Yl.__decorate)([s.attr],lg.prototype,"prefix",void 0),(0,Yl.__decorate)([s.observable],lg.prototype,"buttonAppearanceAccent",void 0),(0,Yl.__decorate)([s.observable],lg.prototype,"buttonAppearanceNeutral",void 0),(0,Yl.__decorate)([s.observable],lg.prototype,"buttonAppearanceOutline",void 0),(0,Yl.__decorate)([s.observable],lg.prototype,"provider",void 0),lg=(0,Yl.__decorate)([(0,s.customElement)({name:"preview-components",template:ng,styles:ig})],lg);const gg=s.css`
11377
+ `;let gg=class extends s.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.buttonAppearanceAccent="primary-blue",this.buttonAppearanceNeutral="primary-grey",this.buttonAppearanceOutline="primary-gradient"}setDialogEventListeners(){this.showDialogTrigger.addEventListener("click",(()=>this.modal.show()),{passive:!0}),this.closeDialogTrigger.addEventListener("click",(()=>this.modal.close()),{passive:!0})}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Yl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Yl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setDialogEventListeners(),p.bodyFont.withDefault(Wl)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ig(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.buttonAppearanceAccent=e.detail.buttonAppearanceAccent,this.buttonAppearanceNeutral=e.detail.buttonAppearanceNeutral,this.buttonAppearanceOutline=e.detail.buttonAppearanceOutline,s.DOM.queueUpdate((()=>{this.setDialogEventListeners()}))}};(0,Vl.__decorate)([s.observable],gg.prototype,"modal",void 0),(0,Vl.__decorate)([s.attr],gg.prototype,"prefix",void 0),(0,Vl.__decorate)([s.observable],gg.prototype,"buttonAppearanceAccent",void 0),(0,Vl.__decorate)([s.observable],gg.prototype,"buttonAppearanceNeutral",void 0),(0,Vl.__decorate)([s.observable],gg.prototype,"buttonAppearanceOutline",void 0),(0,Vl.__decorate)([s.observable],gg.prototype,"provider",void 0),gg=(0,Vl.__decorate)([(0,s.customElement)({name:"preview-components",template:lg,styles:ng})],gg);const dg=s.css`
11358
11378
  .export {
11359
11379
  display: flex;
11360
11380
  justify-content: center;
@@ -11365,7 +11385,7 @@
11365
11385
  display: flex;
11366
11386
  justify-content: space-between;
11367
11387
  }
11368
- `,dg=s.html`
11388
+ `,sg=s.html`
11369
11389
  <template>
11370
11390
  <div class="export">
11371
11391
  <alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
@@ -11386,7 +11406,7 @@
11386
11406
  </alpha-modal>
11387
11407
  </div>
11388
11408
  </template>
11389
- `;let sg=class extends s.FASTElement{constructor(){super(...arguments),this.formatValues=e=>{const a={design_tokens:{color:{accent:{$value:e.accentColor,$type:"color"},neutral:{$value:e.neutralColor,$type:"color"}},fontFamily:{bodyFont:{$value:e.bodyFont,$type:"fontFamily"}},typography:{baseFontSize:{$value:e.baseFontSize,$type:"dimension"},baseLineHeight:{$value:e.baseLineHeight,$type:"dimension"}},mode:{luminance:{$value:e.luminance,$type:"number"}},style:{density:{$value:e.density,$type:"number"},borderRadius:{$value:e.borderRadius,$type:"number"},strokeWidth:{$value:e.strokeWidth,$type:"number"}},space:{designUnit:{$value:e.designUnit,$type:"number"}}}};return JSON.stringify(a,null,3)},this.showModal=()=>this.modal.show(),this.closeModal=()=>this.modal.close(),this.updateTokens=()=>{fetch(`http://localhost:${location.port}/api/tokens`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokens:this.value})}).then((e=>{if(!e.ok)throw new Error(`API request failed with status ${e.status}`);return e.json()})).then((e=>{console.log("Tokens saved successfully:",e),this.$emit(Hl.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hl.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,Yl.__decorate)([s.attr],sg.prototype,"value",void 0),(0,Yl.__decorate)([s.attr],sg.prototype,"tokensPath",void 0),sg=(0,Yl.__decorate)([(0,s.customElement)({name:"design-system-export",template:dg,styles:gg})],sg);const cg=s.css`
11409
+ `;let cg=class extends s.FASTElement{constructor(){super(...arguments),this.formatValues=e=>{const a={design_tokens:{color:{accent:{$value:e.accentColor,$type:"color"},neutral:{$value:e.neutralColor,$type:"color"}},fontFamily:{bodyFont:{$value:e.bodyFont,$type:"fontFamily"}},typography:{baseFontSize:{$value:e.baseFontSize,$type:"dimension"},baseLineHeight:{$value:e.baseLineHeight,$type:"dimension"}},mode:{luminance:{$value:e.luminance,$type:"number"}},style:{density:{$value:e.density,$type:"number"},borderRadius:{$value:e.borderRadius,$type:"number"},strokeWidth:{$value:e.strokeWidth,$type:"number"}},space:{designUnit:{$value:e.designUnit,$type:"number"}}}};return JSON.stringify(a,null,3)},this.showModal=()=>this.modal.show(),this.closeModal=()=>this.modal.close(),this.updateTokens=()=>{fetch(`http://localhost:${location.port}/api/tokens`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokens:this.value})}).then((e=>{if(!e.ok)throw new Error(`API request failed with status ${e.status}`);return e.json()})).then((e=>{console.log("Tokens saved successfully:",e),this.$emit(Yl.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Yl.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,Vl.__decorate)([s.attr],cg.prototype,"value",void 0),(0,Vl.__decorate)([s.attr],cg.prototype,"tokensPath",void 0),cg=(0,Vl.__decorate)([(0,s.customElement)({name:"design-system-export",template:sg,styles:dg})],cg);const pg=s.css`
11390
11410
  .colors {
11391
11411
  display: flex;
11392
11412
  flex-wrap: wrap;
@@ -11399,23 +11419,23 @@
11399
11419
  flex-grow: 1;
11400
11420
  height: 20px;
11401
11421
  }
11402
- `,pg=s.html`
11422
+ `,ug=s.html`
11403
11423
  <ul class="colors">
11404
11424
  ${(0,s.repeat)((e=>e.swatches),s.html`
11405
11425
  <li class="color" style="background-color: ${e=>e.toColorString()}"></li>
11406
11426
  `)}
11407
11427
  </ul>
11408
- `;let ug=class extends s.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){p[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=rg(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Yl.__decorate)([s.observable],ug.prototype,"swatches",void 0),(0,Yl.__decorate)([s.attr],ug.prototype,"type",void 0),ug=(0,Yl.__decorate)([(0,s.customElement)({name:"color-palette",styles:cg,template:pg})],ug);const hg=s.css`
11428
+ `;let hg=class extends s.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){p[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=tg(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Yl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Vl.__decorate)([s.observable],hg.prototype,"swatches",void 0),(0,Vl.__decorate)([s.attr],hg.prototype,"type",void 0),hg=(0,Vl.__decorate)([(0,s.customElement)({name:"color-palette",styles:pg,template:ug})],hg);const mg=s.css`
11409
11429
  .preview {
11410
11430
  width: 40px;
11411
11431
  height: 40px;
11412
11432
  }
11413
- `,mg=s.html`
11433
+ `,vg=s.html`
11414
11434
  <div
11415
11435
  class="preview"
11416
11436
  style="background-color: ${e=>p[e.tokenName].createCSS()}"
11417
11437
  ></div>
11418
- `;let vg=class extends s.FASTElement{};(0,Yl.__decorate)([s.attr],vg.prototype,"tokenName",void 0),vg=(0,Yl.__decorate)([(0,s.customElement)({name:"color-token",styles:hg,template:mg})],vg);const bg=s.css`
11438
+ `;let bg=class extends s.FASTElement{};(0,Vl.__decorate)([s.attr],bg.prototype,"tokenName",void 0),bg=(0,Vl.__decorate)([(0,s.customElement)({name:"color-token",styles:mg,template:vg})],bg);const fg=s.css`
11419
11439
  .container {
11420
11440
  display: flex;
11421
11441
  width: 100%;
@@ -11463,7 +11483,7 @@
11463
11483
  .container > div:not(:last-child) {
11464
11484
  border-right: 1px solid #fafafa;
11465
11485
  }
11466
- `,fg=[{title:"Fill",subcategories:[{title:"Fill Colour",tokens:[{name:"fillColor",cssProperty:"--fill-color"}]},{title:"Accent Fill",tokens:[{name:"accentFillRest",cssProperty:"--accent-fill-rest"},{name:"accentFillHover",cssProperty:"--accent-fill-hover"},{name:"accentFillActive",cssProperty:"--accent-fill-active"},{name:"accentFillFocus",cssProperty:"--accent-fill-focus"}]},{title:"Neutral Fill",tokens:[{name:"neutralFillRest",cssProperty:"--neutral-fill-rest"},{name:"neutralFillHover",cssProperty:"--neutral-fill-hover"},{name:"neutralFillActive",cssProperty:"--neutral-fill-active"},{name:"neutralFillFocus",cssProperty:"--neutral-fill-focus"}]},{title:"Neutral Fill Input",tokens:[{name:"neutralFillInputRest",cssProperty:"--neutral-fill-input-rest"},{name:"neutralFillInputHover",cssProperty:"--neutral-fill-input-hover"},{name:"neutralFillInputActive",cssProperty:"--neutral-fill-input-active"},{name:"neutralFillInputFocus",cssProperty:"--neutral-fill-input-focus"}]},{title:"Neutral Fill Stealth",tokens:[{name:"neutralFillStealthRest",cssProperty:"--neutral-fill-stealth-rest"},{name:"neutralFillStealthHover",cssProperty:"--neutral-fill-stealth-hover"},{name:"neutralFillStealthActive",cssProperty:"--neutral-fill-stealth-active"},{name:"neutralFillStealthFocus",cssProperty:"--neutral-fill-stealth-focus"}]},{title:"Neutral Fill Strong",tokens:[{name:"neutralFillStrongRest",cssProperty:"--neutral-fill-strong-rest"},{name:"neutralFillStrongHover",cssProperty:"--neutral-fill-strong-hover"},{name:"neutralFillStrongActive",cssProperty:"--neutral-fill-strong-active"},{name:"neutralFillStrongFocus",cssProperty:"--neutral-fill-strong-focus"}]}]},{title:"Foreground",subcategories:[{title:"Neutral Foreground",tokens:[{name:"neutralForegroundRest",cssProperty:"--neutral-foreground-rest"},{name:"neutralForegroundHint",cssProperty:"--neutral-foreground-hint"}]},{title:"Accent Foreground",tokens:[{name:"accentForegroundRest",cssProperty:"--accent-foreground-rest"},{name:"accentForegroundHover",cssProperty:"--accent-foreground-hover"},{name:"accentForegroundActive",cssProperty:"--accent-foreground-active"},{name:"accentForegroundFocus",cssProperty:"--accent-foreground-focus"}]},{title:"Foreground on Accent",tokens:[{name:"foregroundOnAccentRest",cssProperty:"--foreground-on-accent-rest"},{name:"foregroundOnAccentHover",cssProperty:"--foreground-on-accent-hover"},{name:"foregroundOnAccentActive",cssProperty:"--foreground-on-accent-active"},{name:"foregroundOnAccentFocus",cssProperty:"--foreground-on-accent-focus"}]},{title:"Foreground on accent large",tokens:[{name:"foregroundOnAccentRestLarge",cssProperty:"--foreground-on-accent-rest-large"},{name:"foregroundOnAccentHoverLarge",cssProperty:"--foreground-on-accent-hover-large"},{name:"foregroundOnAccentActiveLarge",cssProperty:"--foreground-on-accent-active-large"},{name:"foregroundOnAccentFocusLarge",cssProperty:"--foreground-on-accent-focus-large"}]}]},{title:"Stroke",subcategories:[{title:"Focus Stroke",tokens:[{name:"focusStrokeOuter",cssProperty:"--focus-stroke-outer"},{name:"focusStrokeInner",cssProperty:"--focus-stroke-inner"}]},{title:"Neutral Stroke",tokens:[{name:"neutralStrokeRest",cssProperty:"---neutral-stroke-rest"},{name:"neutralStrokeHover",cssProperty:"--neutral-stroke-hover"},{name:"neutralStrokeActive",cssProperty:"--neutral-stroke-active"},{name:"neutralStrokeFocus",cssProperty:"--neutral-stroke-focus"}]},{title:"Neutral stroke divider",tokens:[{name:"neutralStrokeDividerRest",cssProperty:"--neutral-stroke-divider-rest"}]}]},{title:"Layer",subcategories:[{title:"Neutral Layers",tokens:[{name:"neutralLayer1",cssProperty:"--neutral-layer-1"},{name:"neutralLayer2",cssProperty:"--neutral-layer-2"},{name:"neutralLayer3",cssProperty:"--neutral-layer-3"},{name:"neutralLayer4",cssProperty:"--neutral-layer-4"}]},{title:"Neutral Layer Card Container",tokens:[{name:"neutralLayerCardContainer",cssProperty:"--neutral-layer-card-container"}]},{title:"Neutral Fill Layer",tokens:[{name:"neutralFillLayerRest",cssProperty:"--neutral-fill-layer-rest"}]},{title:"Neutral Layer Floating",tokens:[{name:"neutralLayerFloating",cssProperty:"--neutral-layer-floating"}]}]}],wg=s.html`
11486
+ `,wg=[{title:"Fill",subcategories:[{title:"Fill Colour",tokens:[{name:"fillColor",cssProperty:"--fill-color"}]},{title:"Accent Fill",tokens:[{name:"accentFillRest",cssProperty:"--accent-fill-rest"},{name:"accentFillHover",cssProperty:"--accent-fill-hover"},{name:"accentFillActive",cssProperty:"--accent-fill-active"},{name:"accentFillFocus",cssProperty:"--accent-fill-focus"}]},{title:"Neutral Fill",tokens:[{name:"neutralFillRest",cssProperty:"--neutral-fill-rest"},{name:"neutralFillHover",cssProperty:"--neutral-fill-hover"},{name:"neutralFillActive",cssProperty:"--neutral-fill-active"},{name:"neutralFillFocus",cssProperty:"--neutral-fill-focus"}]},{title:"Neutral Fill Input",tokens:[{name:"neutralFillInputRest",cssProperty:"--neutral-fill-input-rest"},{name:"neutralFillInputHover",cssProperty:"--neutral-fill-input-hover"},{name:"neutralFillInputActive",cssProperty:"--neutral-fill-input-active"},{name:"neutralFillInputFocus",cssProperty:"--neutral-fill-input-focus"}]},{title:"Neutral Fill Stealth",tokens:[{name:"neutralFillStealthRest",cssProperty:"--neutral-fill-stealth-rest"},{name:"neutralFillStealthHover",cssProperty:"--neutral-fill-stealth-hover"},{name:"neutralFillStealthActive",cssProperty:"--neutral-fill-stealth-active"},{name:"neutralFillStealthFocus",cssProperty:"--neutral-fill-stealth-focus"}]},{title:"Neutral Fill Strong",tokens:[{name:"neutralFillStrongRest",cssProperty:"--neutral-fill-strong-rest"},{name:"neutralFillStrongHover",cssProperty:"--neutral-fill-strong-hover"},{name:"neutralFillStrongActive",cssProperty:"--neutral-fill-strong-active"},{name:"neutralFillStrongFocus",cssProperty:"--neutral-fill-strong-focus"}]}]},{title:"Foreground",subcategories:[{title:"Neutral Foreground",tokens:[{name:"neutralForegroundRest",cssProperty:"--neutral-foreground-rest"},{name:"neutralForegroundHint",cssProperty:"--neutral-foreground-hint"}]},{title:"Accent Foreground",tokens:[{name:"accentForegroundRest",cssProperty:"--accent-foreground-rest"},{name:"accentForegroundHover",cssProperty:"--accent-foreground-hover"},{name:"accentForegroundActive",cssProperty:"--accent-foreground-active"},{name:"accentForegroundFocus",cssProperty:"--accent-foreground-focus"}]},{title:"Foreground on Accent",tokens:[{name:"foregroundOnAccentRest",cssProperty:"--foreground-on-accent-rest"},{name:"foregroundOnAccentHover",cssProperty:"--foreground-on-accent-hover"},{name:"foregroundOnAccentActive",cssProperty:"--foreground-on-accent-active"},{name:"foregroundOnAccentFocus",cssProperty:"--foreground-on-accent-focus"}]},{title:"Foreground on accent large",tokens:[{name:"foregroundOnAccentRestLarge",cssProperty:"--foreground-on-accent-rest-large"},{name:"foregroundOnAccentHoverLarge",cssProperty:"--foreground-on-accent-hover-large"},{name:"foregroundOnAccentActiveLarge",cssProperty:"--foreground-on-accent-active-large"},{name:"foregroundOnAccentFocusLarge",cssProperty:"--foreground-on-accent-focus-large"}]}]},{title:"Stroke",subcategories:[{title:"Focus Stroke",tokens:[{name:"focusStrokeOuter",cssProperty:"--focus-stroke-outer"},{name:"focusStrokeInner",cssProperty:"--focus-stroke-inner"}]},{title:"Neutral Stroke",tokens:[{name:"neutralStrokeRest",cssProperty:"---neutral-stroke-rest"},{name:"neutralStrokeHover",cssProperty:"--neutral-stroke-hover"},{name:"neutralStrokeActive",cssProperty:"--neutral-stroke-active"},{name:"neutralStrokeFocus",cssProperty:"--neutral-stroke-focus"}]},{title:"Neutral stroke divider",tokens:[{name:"neutralStrokeDividerRest",cssProperty:"--neutral-stroke-divider-rest"}]}]},{title:"Layer",subcategories:[{title:"Neutral Layers",tokens:[{name:"neutralLayer1",cssProperty:"--neutral-layer-1"},{name:"neutralLayer2",cssProperty:"--neutral-layer-2"},{name:"neutralLayer3",cssProperty:"--neutral-layer-3"},{name:"neutralLayer4",cssProperty:"--neutral-layer-4"}]},{title:"Neutral Layer Card Container",tokens:[{name:"neutralLayerCardContainer",cssProperty:"--neutral-layer-card-container"}]},{title:"Neutral Fill Layer",tokens:[{name:"neutralFillLayerRest",cssProperty:"--neutral-fill-layer-rest"}]},{title:"Neutral Layer Floating",tokens:[{name:"neutralLayerFloating",cssProperty:"--neutral-layer-floating"}]}]}],yg=s.html`
11467
11487
  <div class="row">
11468
11488
  <div
11469
11489
  class="preview"
@@ -11475,19 +11495,19 @@
11475
11495
  ${(e,a)=>p[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
11476
11496
  </div>
11477
11497
  </div>
11478
- `,yg=s.html`
11498
+ `,xg=s.html`
11479
11499
  <div class="container" ${(0,s.ref)("provider")}>
11480
- ${(0,s.repeat)((()=>fg),s.html`
11500
+ ${(0,s.repeat)((()=>wg),s.html`
11481
11501
  <div class="column">
11482
11502
  <h3 class="header-title">${e=>e.title}</h3>
11483
11503
  ${(0,s.repeat)((e=>e.subcategories),s.html`
11484
11504
  <h4>${e=>e.title}</h4>
11485
- ${(0,s.repeat)((e=>e.tokens),wg)}
11505
+ ${(0,s.repeat)((e=>e.tokens),yg)}
11486
11506
  `)}
11487
11507
  </div>
11488
11508
  `)}
11489
11509
  </div>
11490
- `;let xg=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hl.STYLES_CHANGED,(e=>{const a=e.detail;og(a,this.provider)}))}};(0,Yl.__decorate)([s.observable],xg.prototype,"provider",void 0),xg=(0,Yl.__decorate)([(0,s.customElement)({name:"color-tokens",template:yg,styles:bg})],xg);const zg=s.css`
11510
+ `;let zg=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Yl.STYLES_CHANGED,(e=>{const a=e.detail;ig(a,this.provider)}))}};(0,Vl.__decorate)([s.observable],zg.prototype,"provider",void 0),zg=(0,Vl.__decorate)([(0,s.customElement)({name:"color-tokens",template:xg,styles:fg})],zg);const kg=s.css`
11491
11511
  table {
11492
11512
  background: var(--neutral-fill-rest);
11493
11513
  color: var(--neutral-foreground-rest);
@@ -11496,7 +11516,7 @@
11496
11516
  th {
11497
11517
  text-align: left;
11498
11518
  }
11499
- `,kg=s.html`
11519
+ `,Sg=s.html`
11500
11520
  <table ${(0,s.ref)("provider")} style="font-family: ${()=>p.bodyFont.createCSS()}">
11501
11521
  <colgroup>
11502
11522
  <col style="width: 15%;" />
@@ -11724,7 +11744,7 @@
11724
11744
  </tr>
11725
11745
  </tbody>
11726
11746
  </table>
11727
- `;let Sg=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hl.STYLES_CHANGED,(e=>{const a=e.detail;og(a,this.provider)}))}};(0,Yl.__decorate)([s.observable],Sg.prototype,"provider",void 0),Sg=(0,Yl.__decorate)([(0,s.customElement)({name:"typography-tokens",template:kg,styles:zg})],Sg);const Cg=s.css`
11747
+ `;let Cg=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Yl.STYLES_CHANGED,(e=>{const a=e.detail;ig(a,this.provider)}))}};(0,Vl.__decorate)([s.observable],Cg.prototype,"provider",void 0),Cg=(0,Vl.__decorate)([(0,s.customElement)({name:"typography-tokens",template:Sg,styles:kg})],Cg);const Ag=s.css`
11728
11748
  :host {
11729
11749
  background: var(--fill-color);
11730
11750
  color: var(--neutral-foreground-rest);
@@ -11740,7 +11760,7 @@
11740
11760
  margin-top: 24px;
11741
11761
  padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
11742
11762
  }
11743
- `,Ag=s.html`
11763
+ `,Tg=s.html`
11744
11764
  <template>
11745
11765
  <alpha-tabs>
11746
11766
  <alpha-tab slot="tab">Components</alpha-tab>
@@ -11769,7 +11789,7 @@
11769
11789
  </alpha-tab-panel>
11770
11790
  </alpha-tabs>
11771
11791
  </template>
11772
- `;let Tg=class extends s.FASTElement{};Tg=(0,Yl.__decorate)([(0,s.customElement)({name:"design-system-preview",template:Ag,styles:Cg})],Tg);const Og={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"}]}]}}]},Dg={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"]}}},Ng={type:"VerticalLayout",dsPrefix:"zero",elements:[{type:"array",scope:"#/properties/users",options:{childUiSchema:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/firstname",label:"First Name"},{type:"Control",scope:"#/properties/lastname",label:"Last Name"},{type:"Control",scope:"#/properties/email",label:"Email"}]}}}]},Fg={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"]}}}},$g=s.css`
11792
+ `;let Og=class extends s.FASTElement{};Og=(0,Vl.__decorate)([(0,s.customElement)({name:"design-system-preview",template:Tg,styles:Ag})],Og);const Dg={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"}]}]}}]},Ng={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",dsPrefix:"zero",elements:[{type:"array",scope:"#/properties/users",options:{childUiSchema:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/firstname",label:"First Name"},{type:"Control",scope:"#/properties/lastname",label:"Last Name"},{type:"Control",scope:"#/properties/email",label:"Email"}]}}}]},$g={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"]}}}},Lg=s.css`
11773
11793
  :host {
11774
11794
  background: var(--fill-color);
11775
11795
  color: var(--neutral-foreground-rest);
@@ -11800,7 +11820,7 @@
11800
11820
  zero-design-system-provider {
11801
11821
  display: inline;
11802
11822
  }
11803
- `,Lg=s.html`
11823
+ `,Mg=s.html`
11804
11824
  ${e=>{return a=e.prefix,s.html`
11805
11825
  <template>
11806
11826
  <${a}-design-system-provider ${(0,s.ref)("provider")}>
@@ -11822,7 +11842,7 @@
11822
11842
  </${a}-design-system-provider>
11823
11843
  </template>
11824
11844
  `;var a}}
11825
- `;let Mg=class extends s.FASTElement{constructor(){super(...arguments),this.jsonSchema=Dg,this.uischema=Og,this.jsonSchemaArray=Fg,this.uiSchemaArray=Ng,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(Hl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Hl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{p.bodyFont.withDefault(Ql)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{og(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.uischema.dsPrefix=e.detail.prefix,this.uiSchemaArray.dsPrefix=e.detail.prefix}};(0,Yl.__decorate)([s.observable],Mg.prototype,"jsonSchema",void 0),(0,Yl.__decorate)([s.observable],Mg.prototype,"uischema",void 0),(0,Yl.__decorate)([s.observable],Mg.prototype,"jsonSchemaArray",void 0),(0,Yl.__decorate)([s.observable],Mg.prototype,"uiSchemaArray",void 0),(0,Yl.__decorate)([s.attr],Mg.prototype,"prefix",void 0),(0,Yl.__decorate)([s.observable],Mg.prototype,"provider",void 0),(0,Yl.__decorate)([s.observable],Mg.prototype,"editedEntity",void 0),(0,Yl.__decorate)([s.observable],Mg.prototype,"editedEntityArray",void 0),Mg=(0,Yl.__decorate)([(0,s.customElement)({name:"preview-form",template:Lg,styles:$g})],Mg);const Rg=s.css`
11845
+ `;let Rg=class extends s.FASTElement{constructor(){super(...arguments),this.jsonSchema=Ng,this.uischema=Dg,this.jsonSchemaArray=$g,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(Yl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Yl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{p.bodyFont.withDefault(Wl)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ig(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.uischema.dsPrefix=e.detail.prefix,this.uiSchemaArray.dsPrefix=e.detail.prefix}};(0,Vl.__decorate)([s.observable],Rg.prototype,"jsonSchema",void 0),(0,Vl.__decorate)([s.observable],Rg.prototype,"uischema",void 0),(0,Vl.__decorate)([s.observable],Rg.prototype,"jsonSchemaArray",void 0),(0,Vl.__decorate)([s.observable],Rg.prototype,"uiSchemaArray",void 0),(0,Vl.__decorate)([s.attr],Rg.prototype,"prefix",void 0),(0,Vl.__decorate)([s.observable],Rg.prototype,"provider",void 0),(0,Vl.__decorate)([s.observable],Rg.prototype,"editedEntity",void 0),(0,Vl.__decorate)([s.observable],Rg.prototype,"editedEntityArray",void 0),Rg=(0,Vl.__decorate)([(0,s.customElement)({name:"preview-form",template:Mg,styles:Lg})],Rg);const jg=s.css`
11826
11846
  :host {
11827
11847
  background: var(--fill-color);
11828
11848
  color: var(--neutral-foreground-rest);
@@ -11837,7 +11857,7 @@
11837
11857
  .grid-height {
11838
11858
  height: 450px;
11839
11859
  }
11840
- `,jg=s.html`
11860
+ `,Ig=s.html`
11841
11861
  ${e=>{return a=e.prefix,s.html`
11842
11862
  <template>
11843
11863
  <${a}-design-system-provider ${(0,s.ref)("provider")}>
@@ -11847,5 +11867,5 @@
11847
11867
  </${a}-design-system-provider>
11848
11868
  </template>
11849
11869
  `;var a}}
11850
- `;let Ig=class extends s.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[{make:"Toyota",model:"Celica",price:35e3,creationDate:1617624494293,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494295,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1619637452397,isCool:!1},{make:"Audi",model:"A6",price:8e4,creationDate:1617624494293,isCool:!0},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494295,isCool:!0},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1619637452397,isCool:!1},{make:"BMW",model:"Z8",price:9e4,creationDate:1617624494293,isCool:!1},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494295,isCool:!1},{make:"Toyota",model:"Celica",price:35e3,creationDate:1619637452397,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494293,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1617624494295,isCool:!0},{make:"Audi",model:"A6",price:8e4,creationDate:1619637452397,isCool:!1},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494293,isCool:!1},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1617624494295,isCool:!0},{make:"BMW",model:"Z8",price:9e4,creationDate:1619637452397,isCool:!0},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494293,isCool:!0}],this.columnDefs=[{field:"make"},{field:"model"},{field:"price"},{field:"creationDate"},{field:"isCool"}],this.gridOptions={defaultColDef:{resizable:!0,filter:!0},debug:!1,columnDefs:this.columnDefs,rowData:this.rowData}}setGridOptions(){this.grid.gridOptions=this.gridOptions}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Hl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setGridOptions(),p.bodyFont.withDefault(Ql)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{og(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,s.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Yl.__decorate)([s.observable],Ig.prototype,"grid",void 0),(0,Yl.__decorate)([s.attr],Ig.prototype,"prefix",void 0),(0,Yl.__decorate)([s.observable],Ig.prototype,"provider",void 0),(0,Yl.__decorate)([s.observable],Ig.prototype,"rowData",void 0),(0,Yl.__decorate)([s.observable],Ig.prototype,"columnDefs",void 0),(0,Yl.__decorate)([s.observable],Ig.prototype,"gridOptions",void 0),Ig=(0,Yl.__decorate)([(0,s.customElement)({name:"preview-grid",template:jg,styles:Rg})],Ig),((e,a="zero")=>{e&&(0,j.provideTokens)(t,o,e);const r=c.DesignSystem.getOrCreate(e).withPrefix(a);return(0,j.createDesignSystemProxy)(r)})().register(Zo,Bl),(0,i.provideDesignSystem)().register(i.baseComponents,_l)}}]);
11851
- //# sourceMappingURL=153.2d7277ae2b4d66bf27c66848f993d510.js.map
11870
+ `;let Eg=class extends s.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[{make:"Toyota",model:"Celica",price:35e3,creationDate:1617624494293,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494295,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1619637452397,isCool:!1},{make:"Audi",model:"A6",price:8e4,creationDate:1617624494293,isCool:!0},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494295,isCool:!0},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1619637452397,isCool:!1},{make:"BMW",model:"Z8",price:9e4,creationDate:1617624494293,isCool:!1},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494295,isCool:!1},{make:"Toyota",model:"Celica",price:35e3,creationDate:1619637452397,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494293,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1617624494295,isCool:!0},{make:"Audi",model:"A6",price:8e4,creationDate:1619637452397,isCool:!1},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494293,isCool:!1},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1617624494295,isCool:!0},{make:"BMW",model:"Z8",price:9e4,creationDate:1619637452397,isCool:!0},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494293,isCool:!0}],this.columnDefs=[{field:"make"},{field:"model"},{field:"price"},{field:"creationDate"},{field:"isCool"}],this.gridOptions={defaultColDef:{resizable:!0,filter:!0},debug:!1,columnDefs:this.columnDefs,rowData:this.rowData}}setGridOptions(){this.grid.gridOptions=this.gridOptions}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Yl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Yl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setGridOptions(),p.bodyFont.withDefault(Wl)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ig(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,s.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Vl.__decorate)([s.observable],Eg.prototype,"grid",void 0),(0,Vl.__decorate)([s.attr],Eg.prototype,"prefix",void 0),(0,Vl.__decorate)([s.observable],Eg.prototype,"provider",void 0),(0,Vl.__decorate)([s.observable],Eg.prototype,"rowData",void 0),(0,Vl.__decorate)([s.observable],Eg.prototype,"columnDefs",void 0),(0,Vl.__decorate)([s.observable],Eg.prototype,"gridOptions",void 0),Eg=(0,Vl.__decorate)([(0,s.customElement)({name:"preview-grid",template:Ig,styles:jg})],Eg),((e,a="zero")=>{e&&(0,j.provideTokens)(t,o,e);const r=c.DesignSystem.getOrCreate(e).withPrefix(a);return(0,j.createDesignSystemProxy)(r)})().register(Ko,_l),(0,i.provideDesignSystem)().register(i.baseComponents,Hl)}}]);
11871
+ //# sourceMappingURL=153.2856d9029085fff7518fcfa4af2cacd0.js.map