@genesislcap/design-system-configurator 14.199.2-alpha-1ab46f4.0 → 14.199.2
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.
- package/dist/{427.427.59ccf04082143975e476.js → 206.206.21173c7313a8aa69d2cb.js} +270 -270
- package/dist/206.46fe422e2e5df5ec11ef588fcee89e85.js.map +1 -0
- package/dist/698.698.a0067c6f4ae2d40700f3.js +2 -0
- package/dist/698.acf6c5e7ff062769eef1a726458a584a.js.map +1 -0
- package/dist/{designSystemConfigurator.b14df31be3ddd4913393ce0ea3b2cc04.js.map → designSystemConfigurator.0e5d8962debc9645ab812ef11be68b65.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/main.22778d33a82497b046ce.js +2 -0
- package/dist/{main.ebc0394d23afa5736bd84dc16bc92457.js.map → main.8efb08c61ff5ff496e4eada718af8fe1.js.map} +1 -1
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/427.14839744bb25537684851d03f8af021c.js.map +0 -1
- package/dist/698.698.4fa54f1187248d6ab1a2.js +0 -2
- package/dist/698.9ab73462f44b3ae6be603990927e499b.js.map +0 -1
- package/dist/main.a554bfa4be69fa77c3ca.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[427],{7526:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>Zm,ColorToken:()=>eb,ColorTokens:()=>ib,DesignSystemEditor:()=>jm,DesignSystemExport:()=>Wm,DesignSystemPreview:()=>cb,EventName:()=>Cm,PreviewComponents:()=>Vm,PreviewForm:()=>fb,PreviewGrid:()=>kb,TypographyTokens:()=>sb,defaultBodyFont:()=>Dm,fontFamilies:()=>Am});var t={};r.r(t),r.d(t,{accentFillActive:()=>f.accentFillActive,accentFillActiveDelta:()=>f.accentFillActiveDelta,accentFillFocus:()=>f.accentFillFocus,accentFillFocusDelta:()=>f.accentFillFocusDelta,accentFillHover:()=>f.accentFillHover,accentFillHoverDelta:()=>f.accentFillHoverDelta,accentFillRest:()=>f.accentFillRest,accentFillRestDelta:()=>f.accentFillRestDelta,accentForegroundActive:()=>f.accentForegroundActive,accentForegroundActiveDelta:()=>f.accentForegroundActiveDelta,accentForegroundFocus:()=>f.accentForegroundFocus,accentForegroundFocusDelta:()=>f.accentForegroundFocusDelta,accentForegroundHover:()=>f.accentForegroundHover,accentForegroundHoverDelta:()=>f.accentForegroundHoverDelta,accentForegroundRest:()=>f.accentForegroundRest,accentForegroundRestDelta:()=>f.accentForegroundRestDelta,accentPalette:()=>f.accentPalette,baseHeightMultiplier:()=>f.baseHeightMultiplier,baseLayerLuminance:()=>f.baseLayerLuminance,bodyFont:()=>f.bodyFont,buyColor:()=>He,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>Ue,defaultErrorColor:()=>Me,defaultSellColor:()=>Ye,defaultSuccessColor:()=>Ee,defaultWarningColor:()=>Be,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>Le,fillColor:()=>f.fillColor,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,sellColor:()=>Qe,strokeWidth:()=>f.strokeWidth,successColor:()=>je,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight,warningColor:()=>Ge});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>We,baseLayerLuminanceValue:()=>Je,bodyFontValue:()=>la,controlCornerRadiusValue:()=>ea,densityValue:()=>aa,designTokens:()=>da,designUnitValue:()=>ra,directionValue:()=>Ke,neutralPaletteValue:()=>qe,strokeWidthValue:()=>Xe,typeRampBaseFontSizeValue:()=>sa,typeRampBaseLineHeightValue:()=>ga});var i={};r.r(i),r.d(i,{accentFillActive:()=>f.accentFillActive,accentFillActiveDelta:()=>f.accentFillActiveDelta,accentFillFocus:()=>f.accentFillFocus,accentFillFocusDelta:()=>f.accentFillFocusDelta,accentFillHover:()=>f.accentFillHover,accentFillHoverDelta:()=>f.accentFillHoverDelta,accentFillRest:()=>f.accentFillRest,accentFillRestDelta:()=>f.accentFillRestDelta,accentForegroundActive:()=>f.accentForegroundActive,accentForegroundActiveDelta:()=>f.accentForegroundActiveDelta,accentForegroundFocus:()=>f.accentForegroundFocus,accentForegroundFocusDelta:()=>f.accentForegroundFocusDelta,accentForegroundHover:()=>f.accentForegroundHover,accentForegroundHoverDelta:()=>f.accentForegroundHoverDelta,accentForegroundRest:()=>f.accentForegroundRest,accentForegroundRestDelta:()=>f.accentForegroundRestDelta,accentPalette:()=>f.accentPalette,baseHeightMultiplier:()=>f.baseHeightMultiplier,baseLayerLuminance:()=>f.baseLayerLuminance,bodyFont:()=>f.bodyFont,buyColor:()=>$g,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>Cg,defaultErrorColor:()=>bg,defaultSellColor:()=>Dg,defaultSuccessColor:()=>wg,defaultWarningColor:()=>kg,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>vg,fillColor:()=>f.fillColor,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,sellColor:()=>Tg,strokeWidth:()=>f.strokeWidth,successColor:()=>yg,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight,warningColor:()=>zg});var n={};r.r(n),r.d(n,{accentFillActiveDeltaValue:()=>Lg,accentFillFocusDeltaValue:()=>Ig,accentFillHoverDeltaValue:()=>Mg,accentFillRestDeltaValue:()=>Ng,accentForegroundActiveDeltaValue:()=>Pg,accentForegroundFocusDeltaValue:()=>Bg,accentForegroundHoverDeltaValue:()=>jg,accentForegroundRestDeltaValue:()=>Eg,accentPaletteValue:()=>Og,baseHeightMultiplierValue:()=>hd,baseLayerLuminanceValue:()=>Rg,bodyFontValue:()=>fd,controlCornerRadiusValue:()=>md,densityValue:()=>bd,designTokens:()=>Ed,designUnitValue:()=>vd,directionValue:()=>dd,disabledOpacityValue:()=>cd,focusStrokeWidthValue:()=>ud,neutralFillActiveDeltaValue:()=>Ug,neutralFillFocusDeltaValue:()=>Hg,neutralFillHoverDeltaValue:()=>_g,neutralFillInputActiveDeltaValue:()=>Qg,neutralFillInputFocusDeltaValue:()=>Wg,neutralFillInputHoverDeltaValue:()=>Yg,neutralFillInputRestDeltaValue:()=>Vg,neutralFillLayerRestDeltaValue:()=>td,neutralFillRestDeltaValue:()=>Gg,neutralFillStealthActiveDeltaValue:()=>Zg,neutralFillStealthFocusDeltaValue:()=>Kg,neutralFillStealthHoverDeltaValue:()=>Jg,neutralFillStealthRestDeltaValue:()=>qg,neutralFillStrongActiveDeltaValue:()=>ad,neutralFillStrongFocusDeltaValue:()=>rd,neutralFillStrongHoverDeltaValue:()=>ed,neutralFillStrongRestDeltaValue:()=>Xg,neutralPaletteValue:()=>Fg,neutralStrokeActiveDeltaValue:()=>nd,neutralStrokeDividerRestDeltaValue:()=>sd,neutralStrokeFocusDeltaValue:()=>ld,neutralStrokeHoverDeltaValue:()=>id,neutralStrokeRestDeltaValue:()=>od,prefix:()=>gd,strokeWidthValue:()=>pd,typeRampBaseFontSizeValue:()=>wd,typeRampBaseLineHeightValue:()=>yd,typeRampMinus1FontSizeValue:()=>xd,typeRampMinus1LineHeightValue:()=>kd,typeRampMinus2FontSizeValue:()=>zd,typeRampMinus2LineHeightValue:()=>Sd,typeRampPlus1FontSizeValue:()=>Cd,typeRampPlus1LineHeightValue:()=>$d,typeRampPlus2FontSizeValue:()=>Ad,typeRampPlus2LineHeightValue:()=>Dd,typeRampPlus3FontSizeValue:()=>Td,typeRampPlus3LineHeightValue:()=>Od,typeRampPlus4FontSizeValue:()=>Fd,typeRampPlus4LineHeightValue:()=>Rd,typeRampPlus5FontSizeValue:()=>Nd,typeRampPlus5LineHeightValue:()=>Md,typeRampPlus6FontSizeValue:()=>Ld,typeRampPlus6LineHeightValue:()=>Id});var l=r(88649),s=r(24636),g=r(43543),d=r(17914);const c=e=>{var a,r,t,o,i,n,l,s,g;return g=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,d.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,d.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,d.__classPrivateFieldGet)(this,o,"f")&&((0,d.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&(0,d.__classPrivateFieldSet)(this,r,(0,d.__classPrivateFieldGet)(this,a,"m",s).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,d.__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,d.__classPrivateFieldGet)(this,t,"f")!==(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let s=!1;return"connect"===e?(0,d.__classPrivateFieldSet)(this,t,null!==(a=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(s=l,(0,d.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,d.__classPrivateFieldSet)(this,n,s,"f"),(0,d.__classPrivateFieldGet)(this,n,"f")&&this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(s=l,(0,d.__classPrivateFieldSet)(this,t,null!==(o=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,d.__classPrivateFieldGet)(this,i,"f"))),s},s=function e(r){var t;if(!0===r.getRootNode()[p])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,d.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},g},p=Symbol("layout-cache-document");var u=r(83453),h=r.n(u),m=r(60496),b=r(57418),v=r(34387),f=r(44405),w=r(85090);const y=b.css`
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[206],{79621:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>qm,ColorToken:()=>Km,ColorTokens:()=>tb,DesignSystemEditor:()=>Im,DesignSystemExport:()=>Ym,DesignSystemPreview:()=>sb,EventName:()=>zm,PreviewComponents:()=>_m,PreviewForm:()=>bb,PreviewGrid:()=>yb,TypographyTokens:()=>nb,defaultBodyFont:()=>$m,fontFamilies:()=>Cm});var t={};r.r(t),r.d(t,{accentFillActive:()=>f.accentFillActive,accentFillActiveDelta:()=>f.accentFillActiveDelta,accentFillFocus:()=>f.accentFillFocus,accentFillFocusDelta:()=>f.accentFillFocusDelta,accentFillHover:()=>f.accentFillHover,accentFillHoverDelta:()=>f.accentFillHoverDelta,accentFillRest:()=>f.accentFillRest,accentFillRestDelta:()=>f.accentFillRestDelta,accentForegroundActive:()=>f.accentForegroundActive,accentForegroundActiveDelta:()=>f.accentForegroundActiveDelta,accentForegroundFocus:()=>f.accentForegroundFocus,accentForegroundFocusDelta:()=>f.accentForegroundFocusDelta,accentForegroundHover:()=>f.accentForegroundHover,accentForegroundHoverDelta:()=>f.accentForegroundHoverDelta,accentForegroundRest:()=>f.accentForegroundRest,accentForegroundRestDelta:()=>f.accentForegroundRestDelta,accentPalette:()=>f.accentPalette,baseHeightMultiplier:()=>f.baseHeightMultiplier,baseLayerLuminance:()=>f.baseLayerLuminance,bodyFont:()=>f.bodyFont,buyColor:()=>He,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>_e,defaultErrorColor:()=>Le,defaultSellColor:()=>Ye,defaultSuccessColor:()=>je,defaultWarningColor:()=>Be,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>Me,fillColor:()=>f.fillColor,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,sellColor:()=>Qe,strokeWidth:()=>f.strokeWidth,successColor:()=>Ee,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight,warningColor:()=>Ge});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>We,baseLayerLuminanceValue:()=>Je,bodyFontValue:()=>la,controlCornerRadiusValue:()=>ea,densityValue:()=>aa,designTokens:()=>da,designUnitValue:()=>ra,directionValue:()=>Ke,neutralPaletteValue:()=>qe,strokeWidthValue:()=>Xe,typeRampBaseFontSizeValue:()=>ga,typeRampBaseLineHeightValue:()=>sa});var i={};r.r(i),r.d(i,{accentFillActive:()=>f.accentFillActive,accentFillActiveDelta:()=>f.accentFillActiveDelta,accentFillFocus:()=>f.accentFillFocus,accentFillFocusDelta:()=>f.accentFillFocusDelta,accentFillHover:()=>f.accentFillHover,accentFillHoverDelta:()=>f.accentFillHoverDelta,accentFillRest:()=>f.accentFillRest,accentFillRestDelta:()=>f.accentFillRestDelta,accentForegroundActive:()=>f.accentForegroundActive,accentForegroundActiveDelta:()=>f.accentForegroundActiveDelta,accentForegroundFocus:()=>f.accentForegroundFocus,accentForegroundFocusDelta:()=>f.accentForegroundFocusDelta,accentForegroundHover:()=>f.accentForegroundHover,accentForegroundHoverDelta:()=>f.accentForegroundHoverDelta,accentForegroundRest:()=>f.accentForegroundRest,accentForegroundRestDelta:()=>f.accentForegroundRestDelta,accentPalette:()=>f.accentPalette,baseHeightMultiplier:()=>f.baseHeightMultiplier,baseLayerLuminance:()=>f.baseLayerLuminance,bodyFont:()=>f.bodyFont,buyColor:()=>Ss,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>zs,defaultErrorColor:()=>hs,defaultSellColor:()=>$s,defaultSuccessColor:()=>vs,defaultWarningColor:()=>ys,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>ms,fillColor:()=>f.fillColor,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,sellColor:()=>As,strokeWidth:()=>f.strokeWidth,successColor:()=>fs,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight,warningColor:()=>xs});var n={};r.r(n),r.d(n,{accentFillActiveDeltaValue:()=>Ns,accentFillFocusDeltaValue:()=>Ls,accentFillHoverDeltaValue:()=>Rs,accentFillRestDeltaValue:()=>Fs,accentForegroundActiveDeltaValue:()=>js,accentForegroundFocusDeltaValue:()=>Es,accentForegroundHoverDeltaValue:()=>Is,accentForegroundRestDeltaValue:()=>Ms,accentPaletteValue:()=>Os,baseHeightMultiplierValue:()=>pd,baseLayerLuminanceValue:()=>Ts,bodyFontValue:()=>bd,controlCornerRadiusValue:()=>ud,densityValue:()=>hd,designTokens:()=>Md,designUnitValue:()=>md,directionValue:()=>gd,disabledOpacityValue:()=>sd,focusStrokeWidthValue:()=>cd,neutralFillActiveDeltaValue:()=>Gs,neutralFillFocusDeltaValue:()=>Us,neutralFillHoverDeltaValue:()=>Bs,neutralFillInputActiveDeltaValue:()=>Vs,neutralFillInputFocusDeltaValue:()=>Ys,neutralFillInputHoverDeltaValue:()=>Hs,neutralFillInputRestDeltaValue:()=>_s,neutralFillLayerRestDeltaValue:()=>ad,neutralFillRestDeltaValue:()=>Ps,neutralFillStealthActiveDeltaValue:()=>qs,neutralFillStealthFocusDeltaValue:()=>Js,neutralFillStealthHoverDeltaValue:()=>Ws,neutralFillStealthRestDeltaValue:()=>Qs,neutralFillStrongActiveDeltaValue:()=>Xs,neutralFillStrongFocusDeltaValue:()=>ed,neutralFillStrongHoverDeltaValue:()=>Ks,neutralFillStrongRestDeltaValue:()=>Zs,neutralPaletteValue:()=>Ds,neutralStrokeActiveDeltaValue:()=>od,neutralStrokeDividerRestDeltaValue:()=>nd,neutralStrokeFocusDeltaValue:()=>id,neutralStrokeHoverDeltaValue:()=>td,neutralStrokeRestDeltaValue:()=>rd,prefix:()=>ld,strokeWidthValue:()=>dd,typeRampBaseFontSizeValue:()=>vd,typeRampBaseLineHeightValue:()=>fd,typeRampMinus1FontSizeValue:()=>wd,typeRampMinus1LineHeightValue:()=>yd,typeRampMinus2FontSizeValue:()=>xd,typeRampMinus2LineHeightValue:()=>kd,typeRampPlus1FontSizeValue:()=>zd,typeRampPlus1LineHeightValue:()=>Sd,typeRampPlus2FontSizeValue:()=>Cd,typeRampPlus2LineHeightValue:()=>$d,typeRampPlus3FontSizeValue:()=>Ad,typeRampPlus3LineHeightValue:()=>Od,typeRampPlus4FontSizeValue:()=>Dd,typeRampPlus4LineHeightValue:()=>Td,typeRampPlus5FontSizeValue:()=>Fd,typeRampPlus5LineHeightValue:()=>Rd,typeRampPlus6FontSizeValue:()=>Nd,typeRampPlus6LineHeightValue:()=>Ld});var l=r(88649),g=r(24636),s=r(43543),d=r(17914);const c=e=>{var a,r,t,o,i,n,l,g,s;return s=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,d.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,d.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,d.__classPrivateFieldGet)(this,o,"f")&&((0,d.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&(0,d.__classPrivateFieldSet)(this,r,(0,d.__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,d.__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,d.__classPrivateFieldGet)(this,t,"f")!==(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,d.__classPrivateFieldSet)(this,t,null!==(a=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,d.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,d.__classPrivateFieldSet)(this,n,g,"f"),(0,d.__classPrivateFieldGet)(this,n,"f")&&this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,d.__classPrivateFieldSet)(this,t,null!==(o=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,d.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[p])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,d.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},s},p=Symbol("layout-cache-document");var u=r(83453),h=r.n(u),m=r(60496),b=r(57418),v=r(34387),f=r(44405),w=r(85090);const y=b.css`
|
|
2
2
|
:host {
|
|
3
3
|
border: calc(${f.strokeWidth} * 1px) solid transparent;
|
|
4
4
|
margin: 0;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
/>
|
|
74
74
|
`)}
|
|
75
75
|
</template>
|
|
76
|
-
`,C=(e,a,r)=>{var t,o,i,n;return null!==(n=null===(i=null===(o=null===(t=null==r?void 0:r.options)||void 0===t?void 0:t.i18n)||void 0===o?void 0:o.error)||void 0===i?void 0:i[e.keyword])&&void 0!==n?n:((e,a,r)=>{var t;return"pattern"===(null==e?void 0:e.keyword)?null!==(t=x[e.params.pattern])&&void 0!==t?t:"Invalid pattern.":(0,m.mXY)(e,a,r)})(e,a,r)};let $=class extends b.FASTElement{constructor(){super(...arguments),this.ajv=(0,m.grE)({useDefaults:!0}),this.dispatch=e=>{this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{core:(0,m.kkC)(this.jsonforms.core,e)}),this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})},this.validate=e=>{var a,r,t;const o=null===(r=null===(a=this.jsonforms)||void 0===a?void 0:a.core)||void 0===r?void 0:r.data;if(!o)return[];const i=[];return null===(t=null==e?void 0:e.elements)||void 0===t||t.forEach((e=>{var a,r,t,n;const l=null===(a=null==e?void 0:e.options)||void 0===a?void 0:a.validateFn;if("function"!=typeof l)return;const
|
|
76
|
+
`,C=(e,a,r)=>{var t,o,i,n;return null!==(n=null===(i=null===(o=null===(t=null==r?void 0:r.options)||void 0===t?void 0:t.i18n)||void 0===o?void 0:o.error)||void 0===i?void 0:i[e.keyword])&&void 0!==n?n:((e,a,r)=>{var t;return"pattern"===(null==e?void 0:e.keyword)?null!==(t=x[e.params.pattern])&&void 0!==t?t:"Invalid pattern.":(0,m.mXY)(e,a,r)})(e,a,r)};let $=class extends b.FASTElement{constructor(){super(...arguments),this.ajv=(0,m.grE)({useDefaults:!0}),this.dispatch=e=>{this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{core:(0,m.kkC)(this.jsonforms.core,e)}),this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})},this.validate=e=>{var a,r,t;const o=null===(r=null===(a=this.jsonforms)||void 0===a?void 0:a.core)||void 0===r?void 0:r.data;if(!o)return[];const i=[];return null===(t=null==e?void 0:e.elements)||void 0===t||t.forEach((e=>{var a,r,t,n;const l=null===(a=null==e?void 0:e.options)||void 0===a?void 0:a.validateFn;if("function"!=typeof l)return;const g=null===(t=null===(r=null==e?void 0:e.scope)||void 0===r?void 0:r.split("/"))||void 0===t?void 0:t.pop(),s=null==e?void 0:e.label;let d=null!==(n=l(o,g,s))&&void 0!==n?n:[];Array.isArray(d)||(d=[d]),i.push(...d)})),i}}prefixChanged(){this.schemaChanged()}schemaChanged(){var e,a,r,t;if(!this.schema)return;this.uichemaToUse=null!==(e=this.uischema)&&void 0!==e?e:m.wyb.uiSchema(this.schema),this.uischema||z.debug("UI schema not provided. Auto generated schema:",this.uichemaToUse);const o=this.validate(this.uichemaToUse);this.jsonforms={core:(()=>{const e={data:this.data,schema:this.schema,uischema:this.uichemaToUse};return(0,m.kkC)(e,m.En0.init(this.data,this.schema,this.uichemaToUse,{validationMode:this.validationMode||"ValidateAndShow",ajv:this.ajv,additionalErrors:o}))})(),config:(0,m.tWo)(void 0,m.En0.setConfig(this.config)),i18n:(0,m.Fxm)(this.i18n,m.En0.updateI18n(null===(a=this.i18n)||void 0===a?void 0:a.locale,null===(r=this.i18n)||void 0===r?void 0:r.translate,(null===(t=this.i18n)||void 0===t?void 0:t.translateError)||C)),renderers:this.renderers,readonly:this.readonly},this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})}uischemaChanged(){this.schemaChanged()}dataChanged(){this.schemaChanged()}renderersChanged(){this.schemaChanged()}validationModeChanged(){this.schemaChanged()}ajvChanged(){this.schemaChanged()}readonlyChanged(){this.schemaChanged()}configChanged(){this.schemaChanged()}get props(){var e;if(!this.schema&&!this.uischema)return;const a=null!==(e=this.uischema)&&void 0!==e?e:m.wyb.uiSchema(this.schema);return{uischema:Object.assign(Object.assign({},a),{elements:a.elements.map((e=>"#/properties/TIMESTAMP"===e.scope?Object.assign(Object.assign({},e),{options:{hidden:!0}}):e))}),schema:this.schema,path:"",enabled:!0,visible:!0}}copyUISchemaToClipboard(){return(0,g.__awaiter)(this,void 0,void 0,(function*(){try{yield navigator.clipboard.writeText(JSON.stringify(this.uichemaToUse)),z.debug("Autogenerated UI schema copied to clipboard")}catch(e){z.error("Failed to copy autogenerated UI schema: ",e)}}))}};(0,g.__decorate)([(0,b.attr)({mode:"boolean"})],$.prototype,"submitted",void 0),(0,g.__decorate)([b.observable],$.prototype,"prefix",void 0),(0,g.__decorate)([b.observable],$.prototype,"jsonforms",void 0),(0,g.__decorate)([b.observable],$.prototype,"i18n",void 0),(0,g.__decorate)([b.observable],$.prototype,"uichemaToUse",void 0),(0,g.__decorate)([b.observable],$.prototype,"schema",void 0),(0,g.__decorate)([b.observable],$.prototype,"uischema",void 0),(0,g.__decorate)([b.observable],$.prototype,"data",void 0),(0,g.__decorate)([b.observable],$.prototype,"renderers",void 0),(0,g.__decorate)([b.observable],$.prototype,"validationMode",void 0),(0,g.__decorate)([b.observable],$.prototype,"ajv",void 0),(0,g.__decorate)([(0,b.attr)({mode:"boolean"})],$.prototype,"readonly",void 0),(0,g.__decorate)([b.observable],$.prototype,"config",void 0),$=(0,g.__decorate)([(0,b.customElement)({name:"json-forms",template:S,styles:b.css`
|
|
77
77
|
.clipboard-button {
|
|
78
78
|
display: flex;
|
|
79
79
|
}
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
.item-control-btn:hover {
|
|
95
95
|
color: var(--accent-foreground-hover);
|
|
96
96
|
}
|
|
97
|
-
`;let
|
|
97
|
+
`;let O=class extends b.FASTElement{controlChanged(){if(this.control.uischema.options)return void(this.uiSchema=this.control.uischema.options.childUiSchema);this.schema=this.control.schema;const e=m.wyb.uiSchema(this.schema);this.uiSchema=Object.assign(Object.assign({},e),{type:"HorizontalLayout"}),z.debug("Auto generated uiSchema for layout array:",this.uiSchema)}addItem(){this.control.addItem(this.control.path,(0,m.DmA)(this.control.schema,this.control.rootSchema))()}deleteItem(e){this.control.removeItems(this.control.path,[e])()}};(0,g.__decorate)([b.observable],O.prototype,"form",void 0),(0,g.__decorate)([b.observable],O.prototype,"control",void 0),(0,g.__decorate)([b.observable],O.prototype,"schema",void 0),(0,g.__decorate)([b.observable],O.prototype,"uiSchema",void 0),O=(0,g.__decorate)([(0,b.customElement)({name:"array-list-wrapper",styles:A,template:b.html`
|
|
98
98
|
${e=>((e="zero")=>b.html`
|
|
99
99
|
<template>
|
|
100
100
|
${(0,b.repeat)((e=>Array(e.control.data)),b.html`
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
</${e}-button>
|
|
128
128
|
</template>
|
|
129
129
|
`)(e.form.prefix)}
|
|
130
|
-
`})],
|
|
130
|
+
`})],O);const D=b.css`
|
|
131
131
|
.tabs-container::part(tablist) {
|
|
132
132
|
background-color: transparent;
|
|
133
133
|
border-bottom: none;
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
.tab-panel-control {
|
|
141
141
|
margin-top: 10px;
|
|
142
142
|
}
|
|
143
|
-
`;let
|
|
143
|
+
`;let T=class extends b.FASTElement{};(0,g.__decorate)([b.observable],T.prototype,"form",void 0),(0,g.__decorate)([b.observable],T.prototype,"control",void 0),T=(0,g.__decorate)([(0,b.customElement)({name:"categorization-wrapper",styles:D,template:b.html`
|
|
144
144
|
${e=>((e="zero")=>b.html`
|
|
145
145
|
<template>
|
|
146
146
|
<${e}-tabs class="tabs-container">
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
</${e}-tabs>
|
|
164
164
|
</template>
|
|
165
165
|
`)(e.form.prefix)}
|
|
166
|
-
`})],
|
|
166
|
+
`})],T);const F=b.html`
|
|
167
167
|
<template>
|
|
168
168
|
${(0,b.when)((e=>{var a;return null===(a=e.control)||void 0===a?void 0:a.visible}),b.html`
|
|
169
169
|
<div
|
|
@@ -208,15 +208,15 @@
|
|
|
208
208
|
width: 100%;
|
|
209
209
|
align-items: center;
|
|
210
210
|
}
|
|
211
|
-
`;let N=class extends b.FASTElement{constructor(){super(...arguments),this.hideLabel=!1}get showDescription(){return!(0,m.Pfe)(this.control.visible,this.control.description,this.control.isFocused,!!this.control.config.showUnfocusedDescription)}get computedLabel(){return(0,m.m25)(this.control.label,this.control.required,!!this.control.config.hideRequiredAsterisk)}};(0,
|
|
211
|
+
`;let N=class extends b.FASTElement{constructor(){super(...arguments),this.hideLabel=!1}get showDescription(){return!(0,m.Pfe)(this.control.visible,this.control.description,this.control.isFocused,!!this.control.config.showUnfocusedDescription)}get computedLabel(){return(0,m.m25)(this.control.label,this.control.required,!!this.control.config.hideRequiredAsterisk)}};(0,g.__decorate)([b.observable],N.prototype,"control",void 0),(0,g.__decorate)([b.observable],N.prototype,"touched",void 0),(0,g.__decorate)([(0,b.attr)({mode:"boolean",attribute:"hide-label"})],N.prototype,"hideLabel",void 0),(0,g.__decorate)([b.volatile],N.prototype,"showDescription",null),(0,g.__decorate)([b.volatile],N.prototype,"computedLabel",null),N=(0,g.__decorate)([(0,b.customElement)({name:"control-wrapper",styles:R,template:F})],N);var L=r(20469),M=r.n(L);const I=b.html`
|
|
212
212
|
<template>${e=>e.determinedRenderer.renderer}</template>
|
|
213
|
-
`,
|
|
213
|
+
`,j=b.css``;let E=class extends b.FASTElement{constructor(){super(...arguments),this.createRenderer=()=>{if(!this.jsonforms||!this.dispatch||!this.props)return;const e=(0,m.DWl)({jsonforms:this.jsonforms},this.props),{rootSchema:a}=e,r=(0,g.__rest)(e,["rootSchema"]);this.renderer=r,this.control=((e,a,r,t,o)=>{var i;const n=Object.assign({},t({jsonforms:a},e)),l=null===(i=o||m.XGy)||void 0===i?void 0:i(r);return Object.assign(Object.assign({},n),l)})(this.props,this.jsonforms,this.dispatch,this.determinedRenderer.mapper,this.determinedRenderer.dispatchMapper)}}jsonformsChanged(){this.createRenderer()}propsChanged(){this.createRenderer()}submittedChanged(){this.touched=!!this.submitted}prefixChanged(){this.createRenderer()}onBlur(){this.touched=!0}get determinedRenderer(){const e=M()(this.renderer.renderers,(e=>e.tester(this.renderer.uischema,this.renderer.schema)));return void 0===e||-1===e.tester(this.renderer.uischema,this.renderer.schema)?(z.error("UnknownRenderer this.renderer.uischema",this.renderer.uischema),{renderer:"UnknownRenderer"}):e}disconnectedCallback(){super.disconnectedCallback(),this.touched=!1,this.submitted=!1}};(0,g.__decorate)([b.observable],E.prototype,"jsonforms",void 0),(0,g.__decorate)([b.observable],E.prototype,"props",void 0),(0,g.__decorate)([b.observable],E.prototype,"touched",void 0),(0,g.__decorate)([(0,b.attr)({mode:"boolean"})],E.prototype,"submitted",void 0),(0,g.__decorate)([b.observable],E.prototype,"dispatch",void 0),(0,g.__decorate)([b.observable],E.prototype,"control",void 0),(0,g.__decorate)([b.observable],E.prototype,"renderer",void 0),(0,g.__decorate)([b.observable],E.prototype,"prefix",void 0),E=(0,g.__decorate)([(0,b.customElement)({name:"dispatch-renderer",template:I,styles:j})],E);const P=b.css`
|
|
214
214
|
.tabs-container::part(stepper-panel-container) {
|
|
215
215
|
display: flex;
|
|
216
216
|
justify-content: flex-start;
|
|
217
217
|
align-items: flex-start;
|
|
218
218
|
}
|
|
219
|
-
`;let B=class extends b.FASTElement{connectedCallback(){super.connectedCallback(),this.propertyNames=this.control.uischema.elements.map((e=>e.scope.split("/").pop())),this.validation=this.propertyNames.map(((e,a)=>({isValid:()=>0===(0,m.L3M)(e,this.control.schema)(this.form).length&&Object.keys(this.control.data)[a]===e})))}submit(){this.$emit("submit-button-clicked")}nextStep(){this.$emit("submit-part");const e=this.propertyNames[this.stepper.activeTabIndex];this.control.data[e]||this.$emit("data-change",{data:Object.assign(Object.assign({},this.control.data),{[e]:{}})})}resetValidation(){this.$emit("reset-form")}};(0,
|
|
219
|
+
`;let B=class extends b.FASTElement{connectedCallback(){super.connectedCallback(),this.propertyNames=this.control.uischema.elements.map((e=>e.scope.split("/").pop())),this.validation=this.propertyNames.map(((e,a)=>({isValid:()=>0===(0,m.L3M)(e,this.control.schema)(this.form).length&&Object.keys(this.control.data)[a]===e})))}submit(){this.$emit("submit-button-clicked")}nextStep(){this.$emit("submit-part");const e=this.propertyNames[this.stepper.activeTabIndex];this.control.data[e]||this.$emit("data-change",{data:Object.assign(Object.assign({},this.control.data),{[e]:{}})})}resetValidation(){this.$emit("reset-form")}};(0,g.__decorate)([b.observable],B.prototype,"form",void 0),(0,g.__decorate)([b.observable],B.prototype,"control",void 0),(0,g.__decorate)([b.observable],B.prototype,"validation",void 0),(0,g.__decorate)([b.observable],B.prototype,"stepper",void 0),(0,g.__decorate)([b.observable],B.prototype,"propertyNames",void 0),B=(0,g.__decorate)([(0,b.customElement)({name:"stepper-wrapper",styles:P,template:b.html`
|
|
220
220
|
${e=>((e="zero")=>b.html`
|
|
221
221
|
<template>
|
|
222
222
|
<${e}-stepper
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
`)}
|
|
277
277
|
</template>
|
|
278
278
|
`)(e.prefix)}
|
|
279
|
-
`,
|
|
279
|
+
`,U=(0,m.or)(m.uA2,(0,m.f4S)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,m.dfR)(e,"boolean")))))),_={renderer:b.html`
|
|
280
280
|
${e=>((e="zero")=>b.html`
|
|
281
281
|
<template>
|
|
282
282
|
<control-wrapper
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
</control-wrapper>
|
|
298
298
|
</template>
|
|
299
299
|
`)(e.prefix)}
|
|
300
|
-
`,tester:(0,m.Hc7)(3,
|
|
300
|
+
`,tester:(0,m.Hc7)(3,U),mapper:m.kOB};var H=r(75515);const V=e=>a=>{if(!a||!(0,m.c0N)(a))return!1;const r=a.options;return!(!r||!r[e])},Y=(0,m.Uo6)(V("allOptionsResourceName"),(0,m.or)((0,m.f4S)((e=>(0,m.dfR)(e,"array"))),(0,m.f4S)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,m.dfR)(e,"array")))))));H.MultiselectDatasource;const Q={renderer:b.html`
|
|
301
301
|
${e=>((e="zero")=>b.html`
|
|
302
302
|
<template>
|
|
303
303
|
<control-wrapper
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
?submitted=${e=>e.submitted}
|
|
363
363
|
>
|
|
364
364
|
<${e}-text-field
|
|
365
|
-
:value=${e=>{if(!e.control.data)return"";const a=K(e.control),r=new Date(e.control.data),t=e=>e.toString().padStart(2,"0"),o=r.getUTCFullYear(),i=t(r.getUTCMonth()+1),n=t(r.getUTCDate()),l=t(r.getUTCHours()),
|
|
365
|
+
:value=${e=>{if(!e.control.data)return"";const a=K(e.control),r=new Date(e.control.data),t=e=>e.toString().padStart(2,"0"),o=r.getUTCFullYear(),i=t(r.getUTCMonth()+1),n=t(r.getUTCDate()),l=t(r.getUTCHours()),g=t(r.getUTCMinutes());return`${o}-${i}-${n}`+("datetime-local"===a?` ${l}:${g}`:"")}}
|
|
366
366
|
id=${e=>e.control.path}
|
|
367
367
|
type="${e=>K(e.control)}"
|
|
368
368
|
data-test-id=${e=>e.control.path}
|
|
@@ -416,11 +416,11 @@
|
|
|
416
416
|
<array-list-wrapper :form=${e=>e} :control=${e=>e.control}></array-list-wrapper>
|
|
417
417
|
</control-wrapper>
|
|
418
418
|
</template>
|
|
419
|
-
`,tester:(0,m.Hc7)(2,ne("object")),mapper:m.i8T,dispatchMapper:m.oid},
|
|
419
|
+
`,tester:(0,m.Hc7)(2,ne("object")),mapper:m.i8T,dispatchMapper:m.oid},ge={renderer:b.html`
|
|
420
420
|
<template>
|
|
421
421
|
<categorization-wrapper :form=${e=>e} :control=${e=>e.control}></categorization-wrapper>
|
|
422
422
|
</template>
|
|
423
|
-
`,tester:(0,m.Hc7)(2,(e=>"Categorization"===e.type)),mapper:m.n93},
|
|
423
|
+
`,tester:(0,m.Hc7)(2,(e=>"Categorization"===e.type)),mapper:m.n93},se={renderer:b.html`
|
|
424
424
|
<template>
|
|
425
425
|
<layout-wrapper :control=${e=>e.control} hide-label>
|
|
426
426
|
<div>
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
</div>
|
|
449
449
|
</layout-wrapper>
|
|
450
450
|
</template>
|
|
451
|
-
`,tester:(0,m.Hc7)(2,m.IZG),mapper:m.n93};let de=class extends b.FASTElement{constructor(){super(...arguments),this.hideLabel=!1}};(0,
|
|
451
|
+
`,tester:(0,m.Hc7)(2,m.IZG),mapper:m.n93};let de=class extends b.FASTElement{constructor(){super(...arguments),this.hideLabel=!1}};(0,g.__decorate)([b.observable],de.prototype,"control",void 0),(0,g.__decorate)([(0,b.attr)({mode:"boolean",attribute:"hide-label"})],de.prototype,"hideLabel",void 0),de=(0,g.__decorate)([(0,b.customElement)({name:"layout-wrapper",template:b.html`
|
|
452
452
|
${(0,b.when)((e=>e.control.label&&!e.hideLabel),b.html`
|
|
453
453
|
<div style="color: var(--neutral-foreground-hint);">${e=>e.control.label}</div>
|
|
454
454
|
`)}
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
</control-wrapper>
|
|
604
604
|
</template>
|
|
605
605
|
`)(e.prefix)}
|
|
606
|
-
`,ze={renderer:ke,tester:(0,m.Hc7)(2,m.Nyt),mapper:m.kOB},Se=[{renderer:ke,tester:(0,m.Hc7)(1,m.c0N),mapper:m.kOB},ze,
|
|
606
|
+
`,ze={renderer:ke,tester:(0,m.Hc7)(2,m.Nyt),mapper:m.kOB},Se=[{renderer:ke,tester:(0,m.Hc7)(1,m.c0N),mapper:m.kOB},ze,_,we,le,ge,se,pe,he,ce,ue,ve,Q,te,W,X,oe];let Ce=class extends(c(v.FoundationElement)){constructor(){super(...arguments),this.prefix="zero",this.renderers=Se,this.additionalRenderers=[],this.mergedRenderers=Se,this.errors=[],this.data={}}resourceNameChanged(){var e;return(0,g.__awaiter)(this,void 0,void 0,(function*(){if(this.jsonSchema=void 0,this.resourceName){const a=yield this.connect.getJSONSchema(this.resourceName);if(!a)return;const r=new(h())(a.INBOUND);this.jsonSchema=null===(e=(yield r.resolve()).properties)||void 0===e?void 0:e.DETAILS}}))}removeDataProperties(){if(!this.jsonSchema||!this.data)return;const e=Object.keys(this.jsonSchema.properties);let a=0;return Object.keys(this.data).forEach((r=>{e.includes(r)||(delete this.data[r],a+=1,z.debug("Removing key ",r,"from provided data because it is not part of the payload"))})),a>0&&(this.data=Object.assign({},this.data)),a>0}renderersChanged(){this.updateMergedRenderers()}additionalRenderersChanged(){this.updateMergedRenderers()}updateMergedRenderers(){const{renderers:e=[],additionalRenderers:a=[]}=this;this.mergedRenderers=[...e,...a]}_submit(){return(0,g.__awaiter)(this,void 0,void 0,(function*(){if(this.submitting)return;this.removeDataProperties()&&(yield b.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(z.debug({payload:e,errors:this.errors}),this.$emit("submit",{payload:e,errors:this.errors}),0!==Object.entries(e).length&&this.resourceName){this.submitting=!0;const a=yield this.connect.commitEvent(this.resourceName,{DETAILS:e});this.submitting=!1,a.ERROR?this.$emit("submit-failure",{payload:e,errors:a.ERROR}):this.$emit("submit-success",{payload:e})}}))}get isSubmitHidden(){return!this.readonly&&!this.hideSubmit}deepClone(){const e=super.deepClone();try{e.uischema=structuredClone(this.uischema),e.jsonSchema=structuredClone(this.jsonSchema)}catch(e){z.error("Error cloning form",e)}return e}submitPart(e){this.submitted=!0}onChange(e){z.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors)}disconnectedCallback(){super.disconnectedCallback(),this.reset()}reset(e=!0){this.submitted=!1,e&&(this.data={})}};(0,g.__decorate)([(0,b.attr)({attribute:"design-system-prefix"})],Ce.prototype,"prefix",void 0),(0,g.__decorate)([b.attr],Ce.prototype,"resourceName",void 0),(0,g.__decorate)([b.observable],Ce.prototype,"uischema",void 0),(0,g.__decorate)([b.observable],Ce.prototype,"renderers",void 0),(0,g.__decorate)([b.observable],Ce.prototype,"additionalRenderers",void 0),(0,g.__decorate)([b.observable],Ce.prototype,"mergedRenderers",void 0),(0,g.__decorate)([b.observable],Ce.prototype,"jsonSchema",void 0),(0,g.__decorate)([s.dm],Ce.prototype,"connect",void 0),(0,g.__decorate)([b.observable],Ce.prototype,"data",void 0),(0,g.__decorate)([b.observable],Ce.prototype,"submitting",void 0),(0,g.__decorate)([b.observable],Ce.prototype,"submitted",void 0),(0,g.__decorate)([(0,b.attr)({mode:"boolean"})],Ce.prototype,"readonly",void 0),(0,g.__decorate)([(0,b.attr)({attribute:"hide-submit-button",mode:"boolean"})],Ce.prototype,"hideSubmit",void 0),(0,g.__decorate)([b.volatile],Ce.prototype,"isSubmitHidden",null),Ce=(0,g.__decorate)([(0,b.customElement)({name:"foundation-form",template:G,styles:y})],Ce);var $e,Ae,Oe,De,Te,Fe=r(4273);!function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519",e.error="#F9644D",e.success="#7ACC79",e.warning="#FFB660",e.buy="#7ACC79",e.sell="#F14376"}($e||($e={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(Ae||(Ae={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(Oe||(Oe={})),function(e){e.grey="#7c909b"}(De||(De={})),function(e){e.chartPink="#fb8176",e.longGreen="#7acc79",e.shortPink="#f14376",e.warningYellow="#fcb35f",e.green="#44c14c",e.lightGreen="#69cd70",e.red="#ef4d28",e.lightRed="#ee6588",e.dodgerBlue="#33a9ff",e.lightDodgerBlue="#5cbaff",e.violet="#9b1e74",e.lightViolet="#b528af",e.white="#f9f9f9",e.silver="#c1c1c1",e.salomie="#ffdf94",e.lightSalomie="#ccb276",e.melon="#ffbbb2",e.lightMelon="#cc968e",e.portage="#8a99f5",e.lightPortage="#adb8f8",e.ice="#97f4eb",e.lightIce="#6befe2"}(Te||(Te={}));const{create:Re}=v.DesignToken,Ne=(0,Fe.parseColorHexRGB)($e.error),Le=f.SwatchRGB.create(Ne.r,Ne.g,Ne.b),Me=Re("error-color").withDefault(Le),Ie=(0,Fe.parseColorHexRGB)($e.success),je=f.SwatchRGB.create(Ie.r,Ie.g,Ie.b),Ee=Re("success-color").withDefault(je),Pe=(0,Fe.parseColorHexRGB)($e.warning),Be=f.SwatchRGB.create(Pe.r,Pe.g,Pe.b),Ge=Re("warning-color").withDefault(Be),Ue=(0,Fe.parseColorHexRGB)($e.buy),_e=f.SwatchRGB.create(Ue.r,Ue.g,Ue.b),He=Re("buy-color").withDefault(_e),Ve=(0,Fe.parseColorHexRGB)($e.sell),Ye=f.SwatchRGB.create(Ve.r,Ve.g,Ve.b),Qe=Re("sell-color").withDefault(Ye),We=(0,H.paletteFromHex)(Ae.blue),qe=(0,H.paletteFromHex)(De.grey),Je=f.StandardLuminance.DarkMode;var Ze=r(85109);const Ke=Ze.O.ltr,Xe=f.strokeWidth.getValueFor(f.strokeWidth.appliedTo[0]),ea=4,aa=f.density.getValueFor(f.density.appliedTo[0]),ra=4;var ta=r(80273);const oa=()=>{(0,ta.WP)("\n @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')\n","roboto-font-faces")},ia='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',na=(e=ta.zz.Normal,a=ta.IT.Regular)=>(0,ta.f4)(ia,e,a),la=ia,ga=f.typeRampBaseFontSize.getValueFor(f.typeRampBaseFontSize.appliedTo[0]),sa=f.typeRampBaseLineHeight.getValueFor(f.typeRampBaseLineHeight.appliedTo[0]),da={design_tokens:{color:{accent:{$value:We.source.toColorString(),$type:"color"},neutral:{$value:qe.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:la,$type:"fontFamily"}},typography:{baseFontSize:{$value:ga,$type:"dimension"},baseLineHeight:{$value:sa,$type:"dimension"}},mode:{luminance:{$value:Je,$type:"number"}},style:{density:{$value:aa,$type:"number"},borderRadius:{$value:ea,$type:"number"},strokeWidth:{$value:Xe,$type:"number"}},space:{designUnit:{$value:ra,$type:"number"}}}};class ca extends H.Accordion{}const pa=ca.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,H.foundationAccordionTemplate)(e,a),styles:(e,a)=>b.css`
|
|
607
607
|
${(0,H.foundationAccordionStyles)(e,a)}
|
|
608
608
|
`,shadowOptions:H.foundationAccordionShadowOptions},H.defaultAccordionConfig));class ua extends H.AccordionItem{}const ha=ua.compose(Object.assign({baseName:"accordion-item",template:(e,a)=>(0,H.foundationAccordionItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
609
609
|
${(0,H.foundationAccordionItemStyles)(e,a)};
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
${(0,H.actionsMenuBaseStyles)(e,a)}
|
|
635
|
-
`,template:H.foundationActionsMenuTemplate}),va=(e,a=1)=>new Fe.ColorRGBA64(e.r,e.g,e.b,a).toStringWebRGBA(),fa=(0,Fe.parseColorHexRGB)($e.white),wa=(e=1)=>va(fa,e),ya=((0,Fe.parseColorHexRGB)($e.black),(0,Fe.parseColorHexRGB)("#585858")),xa=(f.SwatchRGB.create(ya.r,ya.g,ya.b),(0,Fe.parseColorHexRGB)("#202126")),ka=f.SwatchRGB.create(xa.r,xa.g,xa.b),za=(f.PaletteRGB.from(ka),(0,Fe.parseColorHexRGB)(Ae.blue)),Sa=(e=1)=>va(za,e),Ca=f.SwatchRGB.create(za.r,za.g,za.b),$a=(f.PaletteRGB.from(Ca),(0,Fe.parseColorHexRGB)(Ae.purple)),Aa=(e=1)=>va($a,e),
|
|
635
|
+
`,template:H.foundationActionsMenuTemplate}),va=(e,a=1)=>new Fe.ColorRGBA64(e.r,e.g,e.b,a).toStringWebRGBA(),fa=(0,Fe.parseColorHexRGB)($e.white),wa=(e=1)=>va(fa,e),ya=((0,Fe.parseColorHexRGB)($e.black),(0,Fe.parseColorHexRGB)("#585858")),xa=(f.SwatchRGB.create(ya.r,ya.g,ya.b),(0,Fe.parseColorHexRGB)("#202126")),ka=f.SwatchRGB.create(xa.r,xa.g,xa.b),za=(f.PaletteRGB.from(ka),(0,Fe.parseColorHexRGB)(Ae.blue)),Sa=(e=1)=>va(za,e),Ca=f.SwatchRGB.create(za.r,za.g,za.b),$a=(f.PaletteRGB.from(Ca),(0,Fe.parseColorHexRGB)(Ae.purple)),Aa=(e=1)=>va($a,e),Oa=(0,Fe.parseColorHexRGB)(Oe.orange),Da=(e=1)=>va(Oa,e),Ta=(0,Fe.parseColorHexRGB)(Oe.teal),Fa=(e=1)=>va(Ta,e),Ra=((0,Fe.parseColorHexRGB)(Te.longGreen),(0,Fe.parseColorHexRGB)(Te.chartPink),(0,Fe.parseColorHexRGB)(Te.warningYellow)),Na=(0,Fe.parseColorHexRGB)(Te.chartPink),La=(e=1)=>va(Na,e);function Ma(e,a){return new v.PropertyStyleSheetBehavior("appearance",e,a)}const Ia=.3,ja=.1,Ea=.5,Pa=b.css`
|
|
636
636
|
:host([appearance='primary-blue']) {
|
|
637
637
|
background: ${Sa(Ia)};
|
|
638
638
|
border: 1px solid ${Ae.blue};
|
|
@@ -643,9 +643,9 @@
|
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
:host([appearance='primary-blue']:active) {
|
|
646
|
-
background: ${Sa(
|
|
646
|
+
background: ${Sa(ja)};
|
|
647
647
|
border: 1px solid ${Sa(Ia)};
|
|
648
|
-
color: ${wa(
|
|
648
|
+
color: ${wa(Ea)};
|
|
649
649
|
}
|
|
650
650
|
`,Ba=b.css`
|
|
651
651
|
:host([appearance='primary-purple']) {
|
|
@@ -658,9 +658,9 @@
|
|
|
658
658
|
}
|
|
659
659
|
|
|
660
660
|
:host([appearance='primary-purple']:active) {
|
|
661
|
-
background: ${Aa(
|
|
661
|
+
background: ${Aa(ja)};
|
|
662
662
|
border: 1px solid ${Aa(Ia)};
|
|
663
|
-
color: ${wa(
|
|
663
|
+
color: ${wa(Ea)};
|
|
664
664
|
}
|
|
665
665
|
`,Ga=b.css`
|
|
666
666
|
:host {
|
|
@@ -698,24 +698,24 @@
|
|
|
698
698
|
background-origin: border-box;
|
|
699
699
|
border: solid 1px transparent;
|
|
700
700
|
box-shadow: 2px 1000px 1px rgb(0 0 0 / 30%) inset;
|
|
701
|
-
color: ${wa(
|
|
701
|
+
color: ${wa(Ea)};
|
|
702
702
|
}
|
|
703
|
-
`,
|
|
703
|
+
`,Ua=b.css`
|
|
704
704
|
:host([appearance='secondary-orange']) {
|
|
705
|
-
background: ${
|
|
706
|
-
border: 1px solid ${
|
|
705
|
+
background: ${Da(Ia)};
|
|
706
|
+
border: 1px solid ${Oe.orange};
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
:host([appearance='secondary-orange']:hover) {
|
|
710
|
-
background: ${
|
|
710
|
+
background: ${Oe.orange};
|
|
711
711
|
}
|
|
712
712
|
|
|
713
713
|
:host([appearance='secondary-orange']:active) {
|
|
714
|
-
background: ${
|
|
715
|
-
border: 1px solid ${
|
|
716
|
-
color: ${wa(
|
|
714
|
+
background: ${Da(ja)};
|
|
715
|
+
border: 1px solid ${Da(Ia)};
|
|
716
|
+
color: ${wa(Ea)};
|
|
717
717
|
}
|
|
718
|
-
`,
|
|
718
|
+
`,_a=b.css`
|
|
719
719
|
:host([appearance='danger']) {
|
|
720
720
|
background: color-mix(in srgb, var(--error-color), transparent 50%);
|
|
721
721
|
border: calc(var(--stroke-width) * 1px) solid var(--error-color);
|
|
@@ -741,17 +741,17 @@
|
|
|
741
741
|
`,Ha=b.css`
|
|
742
742
|
:host([appearance='secondary-teal']) {
|
|
743
743
|
background: ${Fa(Ia)};
|
|
744
|
-
border: 1px solid ${
|
|
744
|
+
border: 1px solid ${Oe.teal};
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
:host([appearance='secondary-teal']:hover) {
|
|
748
|
-
background: ${
|
|
748
|
+
background: ${Oe.teal};
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
:host([appearance='secondary-teal']:active) {
|
|
752
|
-
background: ${Fa(
|
|
752
|
+
background: ${Fa(ja)};
|
|
753
753
|
border: 1px solid ${Fa(Ia)};
|
|
754
|
-
color: ${wa(
|
|
754
|
+
color: ${wa(Ea)};
|
|
755
755
|
}
|
|
756
756
|
`,Va=b.css`
|
|
757
757
|
:host([appearance='neutral-grey']) {
|
|
@@ -826,27 +826,27 @@
|
|
|
826
826
|
border: 1px solid transparent;
|
|
827
827
|
border-right-color: ${Sa(Ia)};
|
|
828
828
|
border-left-color: ${Aa(Ia)};
|
|
829
|
-
color: ${wa(
|
|
829
|
+
color: ${wa(Ea)};
|
|
830
830
|
}
|
|
831
831
|
`,Qa=b.css`
|
|
832
832
|
:host([appearance='outline-secondary-orange']) {
|
|
833
833
|
background: transparent;
|
|
834
|
-
border: 1px solid ${
|
|
834
|
+
border: 1px solid ${Oe.orange};
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
:host([appearance='outline-secondary-orange']:hover) {
|
|
838
|
-
background: ${
|
|
838
|
+
background: ${Da(Ia)};
|
|
839
839
|
}
|
|
840
840
|
|
|
841
841
|
:host([appearance='outline-secondary-orange']:active) {
|
|
842
842
|
background: transparent;
|
|
843
|
-
border: 1px solid ${
|
|
844
|
-
color: ${wa(
|
|
843
|
+
border: 1px solid ${Da(Ia)};
|
|
844
|
+
color: ${wa(Ea)};
|
|
845
845
|
}
|
|
846
846
|
`,Wa=b.css`
|
|
847
847
|
:host([appearance='outline-secondary-teal']) {
|
|
848
848
|
background: transparent;
|
|
849
|
-
border: 1px solid ${
|
|
849
|
+
border: 1px solid ${Oe.teal};
|
|
850
850
|
}
|
|
851
851
|
|
|
852
852
|
:host([appearance='outline-secondary-teal']:hover) {
|
|
@@ -856,7 +856,7 @@
|
|
|
856
856
|
:host([appearance='outline-secondary-teal']:active) {
|
|
857
857
|
background: transparent;
|
|
858
858
|
border: 1px solid ${Fa(Ia)};
|
|
859
|
-
color: ${wa(
|
|
859
|
+
color: ${wa(Ea)};
|
|
860
860
|
}
|
|
861
861
|
`,qa=(e,a)=>b.css`
|
|
862
862
|
${(0,H.foundationButtonStyles)(e,a)}
|
|
@@ -865,7 +865,7 @@
|
|
|
865
865
|
margin: 5px;
|
|
866
866
|
}
|
|
867
867
|
`}
|
|
868
|
-
`.withBehaviors(
|
|
868
|
+
`.withBehaviors(Ma("primary-blue",Pa),Ma("primary-purple",Ba),Ma("primary-gradient",Ga),Ma("secondary-orange",Ua),Ma("danger",_a),Ma("secondary-teal",Ha),Ma("neutral-grey",Va),Ma("outline-primary-gradient",Ya),Ma("outline-secondary-orange",Qa),Ma("outline-secondary-teal",Wa));class Ja extends H.Anchor{}const Za=Ja.compose(Object.assign({baseName:"anchor",template:(e,a)=>(0,H.foundationAnchorTemplate)(e,a),styles:(e,a)=>b.css`
|
|
869
869
|
${(0,H.foundationAnchorStyles)(e,a)}
|
|
870
870
|
${qa(e,a)}
|
|
871
871
|
`.withBehaviors(...qa(e,a).behaviors),shadowOptions:H.foundationAnchorShadowOptions},H.defaultAnchorConfig));class Ka extends H.AnchoredRegion{}const Xa=Ka.compose(Object.assign({baseName:"anchored-region",template:(e,a)=>(0,H.foundationAnchoredRegionTemplate)(e,a),styles:(e,a)=>b.css`
|
|
@@ -877,7 +877,7 @@
|
|
|
877
877
|
:host {
|
|
878
878
|
--badge-fill-primary: ${Sa()};
|
|
879
879
|
--badge-fill-secondary: ${Fa()};
|
|
880
|
-
--badge-fill-pink: ${
|
|
880
|
+
--badge-fill-pink: ${La()};
|
|
881
881
|
--badge-fill-transparent: transparent;
|
|
882
882
|
--badge-color-black: #000;
|
|
883
883
|
--badge-color-white: #fff;
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
.banner {
|
|
892
892
|
background-color: ${f.neutralLayer1};
|
|
893
893
|
}
|
|
894
|
-
`,ir=H.foundationBannerShadowOptions;class nr extends H.Banner{}const lr=nr.compose({baseName:"banner",shadowOptions:ir,styles:or,template:H.foundationBannerTemplate});class
|
|
894
|
+
`,ir=H.foundationBannerShadowOptions;class nr extends H.Banner{}const lr=nr.compose({baseName:"banner",shadowOptions:ir,styles:or,template:H.foundationBannerTemplate});class gr extends H.Breadcrumb{}const sr=gr.compose(Object.assign({baseName:"breadcrumb",template:(e,a)=>(0,H.foundationBreadcrumbTemplate)(e,a),styles:(e,a)=>b.css`
|
|
895
895
|
${(0,H.foundationBreadcrumbStyles)(e,a)}
|
|
896
896
|
`,shadowOptions:undefined},{}));class dr extends H.BreadcrumbItem{}const cr=dr.compose(Object.assign({baseName:"breadcrumb-item",template:(e,a)=>(0,H.foundationBreadcrumbItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
897
897
|
${(0,H.foundationBreadcrumbItemStyles)(e,a)}
|
|
@@ -948,14 +948,14 @@
|
|
|
948
948
|
box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;
|
|
949
949
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
950
950
|
}
|
|
951
|
-
`,shadowOptions:H.foundationCheckboxShadowOptions},H.defaultCheckboxConfig)),$r=(0,Fe.parseColorHexRGB)("#F1F1F1"),Ar=va($r,1),
|
|
951
|
+
`,shadowOptions:H.foundationCheckboxShadowOptions},H.defaultCheckboxConfig)),$r=(0,Fe.parseColorHexRGB)("#F1F1F1"),Ar=va($r,1),Or=(0,Fe.parseColorHexRGB)("#879BA6"),Dr=va(Or,.06),Tr=(0,Fe.parseColorHexRGB)("#879BA6"),Fr=va(Tr,1),Rr=(0,Fe.parseColorHexRGB)("#121212"),Nr=va(Rr,1),Lr=(0,Fe.parseColorHexRGB)("#2e3339"),Mr=va(Lr,1);var Ir;!function(e){e.PrimaryBlue="primary-blue",e.PrimaryPurple="primary-purple",e.PrimaryGradient="primary-gradient",e.SecondaryOrange="secondary-orange",e.Danger="danger",e.SecondaryTeal="secondary-teal",e.NeutralGrey="neutral-grey",e.OutlinePrimaryGradient="outline-primary-gradient",e.OutlineSecondaryOrange="outline-secondary-orange",e.OutlineSecondaryTeal="outline-secondary-teal"}(Ir||(Ir={}));Object.values(Ir);class jr extends H.Combobox{}const Er=jr.compose(Object.assign({baseName:"combobox",template:(e,a)=>(0,H.foundationComboboxTemplate)(e,a),styles:(e,a)=>b.css`
|
|
952
952
|
${(0,H.foundationComboboxStyles)(e,a)}
|
|
953
953
|
:host {
|
|
954
954
|
--primary-gradient-angle: -113.5deg;
|
|
955
955
|
|
|
956
956
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
957
|
-
border-color: ${
|
|
958
|
-
background: ${
|
|
957
|
+
border-color: ${Mr};
|
|
958
|
+
background: ${Dr};
|
|
959
959
|
}
|
|
960
960
|
|
|
961
961
|
:host(:focus-within:not([disabled])) {
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
|
|
982
982
|
:host(:hover:not([disabled]):not([open])) {
|
|
983
983
|
border-color: ${Ar};
|
|
984
|
-
background: ${
|
|
984
|
+
background: ${Dr};
|
|
985
985
|
}
|
|
986
986
|
|
|
987
987
|
:host([open][position='below']) .listbox {
|
|
@@ -1000,9 +1000,9 @@
|
|
|
1000
1000
|
}
|
|
1001
1001
|
`,shadowOptions:H.foundationComboboxShadowOptions},H.defaultComboboxConfig));class Pr extends H.ConnectionIndicator{}const Br=Pr.compose({baseName:"connection-indicator",template:H.foundationConnectionIndicatorTemplate,styles:H.foundationConnectionIndicatorStyles});class Gr extends H.DataGridCell{}Gr.compose(Object.assign({baseName:"data-grid-cell",template:v.dataGridCellTemplate,styles:(e,a)=>b.css`
|
|
1002
1002
|
${(0,H.foundationDataGridCellStyles)(e,a)}
|
|
1003
|
-
`,shadowOptions:H.foundationDataGridCellShadowOptions},H.defaultDataGridCellConfig));class
|
|
1003
|
+
`,shadowOptions:H.foundationDataGridCellShadowOptions},H.defaultDataGridCellConfig));class Ur extends H.DataGridRow{}Ur.compose(Object.assign({baseName:"data-grid-row",template:v.dataGridRowTemplate,styles:(e,a)=>b.css`
|
|
1004
1004
|
${(0,H.foundationDataGridRowStyles)(e,a)}
|
|
1005
|
-
`,shadowOptions:H.foundationDataGridRowShadowOptions},H.defaultDataGridRowConfig));class
|
|
1005
|
+
`,shadowOptions:H.foundationDataGridRowShadowOptions},H.defaultDataGridRowConfig));class _r extends H.DataGrid{}const Hr=_r.compose(Object.assign({baseName:"data-grid",template:(e,a)=>(0,H.foundationDataGridTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1006
1006
|
${(0,H.foundationDataGridStyles)(e,a)}
|
|
1007
1007
|
::slotted(.sticky-header),
|
|
1008
1008
|
::slotted(.header) {
|
|
@@ -1169,7 +1169,7 @@
|
|
|
1169
1169
|
.close-icon:active svg g path {
|
|
1170
1170
|
fill: ${wa(.33)};
|
|
1171
1171
|
}
|
|
1172
|
-
`,tt=H.defaultDialogConfig,ot=H.foundationDialogTemplate,it=H.foundationDialogShadowOptions;class nt extends H.Dialog{}const lt=nt.compose(Object.assign({baseName:"dialog",shadowOptions:it,styles:rt,template:ot},tt));class
|
|
1172
|
+
`,tt=H.defaultDialogConfig,ot=H.foundationDialogTemplate,it=H.foundationDialogShadowOptions;class nt extends H.Dialog{}const lt=nt.compose(Object.assign({baseName:"dialog",shadowOptions:it,styles:rt,template:ot},tt));class gt extends H.Disclosure{}const st=gt.compose(Object.assign({baseName:"disclosure",template:(e,a)=>(0,H.foundationDisclosureTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1173
1173
|
${(0,H.foundationDisclosureStyles)(e,a)}
|
|
1174
1174
|
`,shadowOptions:H.foundationDialogShadowOptions},H.defaultDisclosureConfig));class dt extends H.Divider{}const ct=dt.compose(Object.assign({baseName:"divider",template:(e,a)=>(0,H.foundationDividerTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1175
1175
|
${(0,H.foundationDividerStyles)(e,a)}
|
|
@@ -1196,9 +1196,9 @@
|
|
|
1196
1196
|
}
|
|
1197
1197
|
`,zt=b.html`
|
|
1198
1198
|
${(0,H.getPrefixedFileUpload)("zero")}
|
|
1199
|
-
`,St=H.defaultFileUploadConfig,Ct=H.foundationFileUploadShadowOptions;class $t extends H.FileUpload{}const At=$t.compose(Object.assign({baseName:"file-upload",shadowOptions:Ct,styles:kt,template:zt},St)),
|
|
1199
|
+
`,St=H.defaultFileUploadConfig,Ct=H.foundationFileUploadShadowOptions;class $t extends H.FileUpload{}const At=$t.compose(Object.assign({baseName:"file-upload",shadowOptions:Ct,styles:kt,template:zt},St)),Ot=b.html`
|
|
1200
1200
|
${(0,H.getPrefixedFilterTemplate)("zero")}
|
|
1201
|
-
`;class
|
|
1201
|
+
`;class Dt extends H.Filter{}const Tt=Dt.compose({baseName:"filter",template:Ot,styles:H.foundationFilterStyles}),Ft=b.html`
|
|
1202
1202
|
${(0,H.filterBarTemplate)("zero")}
|
|
1203
1203
|
`;class Rt extends H.FilterBar{}const Nt=Rt.compose({baseName:"filter-bar",template:Ft,styles:(e,a)=>b.css`
|
|
1204
1204
|
${(0,H.foundationFilterBarStyles)(e,a)}
|
|
@@ -1212,7 +1212,7 @@
|
|
|
1212
1212
|
.toggle-collapsed:hover {
|
|
1213
1213
|
color: var(--ag-alpine-active-color, #2196f3);
|
|
1214
1214
|
}
|
|
1215
|
-
`});class
|
|
1215
|
+
`});class Lt extends H.FlexLayout{}const Mt=Lt.compose(Object.assign({baseName:"flex-layout",shadowOptions:H.foundationFlexLayoutShadowOptions,styles:H.foundationFlexLayoutStyles,template:H.foundationFlexLayoutTemplate},H.defaultFlexLayoutConfig));class It extends H.Flipper{}const jt=It.compose(Object.assign({baseName:"flipper",template:(e,a)=>(0,H.foundationFlipperTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1216
1216
|
${(0,H.foundationFlipperStyles)(e,a)}
|
|
1217
1217
|
:host {
|
|
1218
1218
|
--foreground-on-accent-rest: ${$e.white};
|
|
@@ -1236,7 +1236,7 @@
|
|
|
1236
1236
|
${Ae.purple}
|
|
1237
1237
|
);
|
|
1238
1238
|
}
|
|
1239
|
-
`,shadowOptions:H.foundationFlipperShadowOptions},H.defaultFlipperConfig)),
|
|
1239
|
+
`,shadowOptions:H.foundationFlipperShadowOptions},H.defaultFlipperConfig)),Et=b.css`
|
|
1240
1240
|
${H.foundationFlyoutStyles}
|
|
1241
1241
|
div.flyout {
|
|
1242
1242
|
background-color: ${f.neutralLayer2};
|
|
@@ -1265,7 +1265,7 @@
|
|
|
1265
1265
|
}
|
|
1266
1266
|
`,Pt=b.html`
|
|
1267
1267
|
${(0,H.getPrefixedFlyout)("zero")}
|
|
1268
|
-
`,Bt=H.defaultFlyoutConfig,Gt=H.foundationFlyoutShadowOptions;class
|
|
1268
|
+
`,Bt=H.defaultFlyoutConfig,Gt=H.foundationFlyoutShadowOptions;class Ut extends H.Flyout{}const _t=Ut.compose(Object.assign({baseName:"flyout",shadowOptions:Gt,styles:Et,template:Pt},Bt));class Ht extends H.GridLayout{}const Vt=Ht.compose(Object.assign({baseName:"grid-layout",shadowOptions:H.foundationGridLayoutShadowOptions,styles:H.foundationGridLayoutStyles,template:H.foundationGridLayoutTemplate},H.defaultGridLayoutConfig));class Yt extends H.GridLayoutItem{}const Qt=Yt.compose(Object.assign({baseName:"grid-layout-item",shadowOptions:H.foundationGridLayoutItemShadowOptions,template:H.foundationGridLayoutItemTemplate},H.defaultGridLayoutItemConfig));class Wt extends H.HorizontalScroll{}const qt={nextFlipper:b.html`
|
|
1269
1269
|
<zero-flipper
|
|
1270
1270
|
@click="${e=>e.scrollToNext()}"
|
|
1271
1271
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
@@ -1309,14 +1309,14 @@
|
|
|
1309
1309
|
:host {
|
|
1310
1310
|
padding: 0;
|
|
1311
1311
|
}
|
|
1312
|
-
`,shadowOptions:io}),
|
|
1312
|
+
`,shadowOptions:io}),go=H.foundationMenuItemShadowOptions;class so extends H.MenuItem{}const co=so.compose(Object.assign({baseName:"menu-item",template:H.foundationMenuItemTemplate,styles:(e,a)=>b.css`
|
|
1313
1313
|
${(0,H.foundationMenuItemStyles)(e,a)}
|
|
1314
1314
|
|
|
1315
1315
|
:host {
|
|
1316
1316
|
background: none;
|
|
1317
1317
|
margin: 0;
|
|
1318
1318
|
}
|
|
1319
|
-
`,shadowOptions:
|
|
1319
|
+
`,shadowOptions:go},H.defaultMenuItemConfig)),po=b.css`
|
|
1320
1320
|
${rt}
|
|
1321
1321
|
`,uo=H.defaultModalConfig,ho=H.foundationModalTemplate,mo=H.foundationModalShadowOptions;class bo extends H.Modal{}const vo=bo.compose(Object.assign({baseName:"modal",shadowOptions:mo,styles:po,template:ho},uo)),fo=b.css`
|
|
1322
1322
|
${H.multiselectStyles}
|
|
@@ -1326,7 +1326,7 @@
|
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
1328
|
#display-field {
|
|
1329
|
-
background: ${
|
|
1329
|
+
background: ${Dr};
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
1332
|
#display-field:focus {
|
|
@@ -1388,8 +1388,8 @@
|
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
1390
|
:host .root {
|
|
1391
|
-
border: calc(var(--stroke-width) * 1px) solid ${
|
|
1392
|
-
background-color: ${
|
|
1391
|
+
border: calc(var(--stroke-width) * 1px) solid ${Mr};
|
|
1392
|
+
background-color: ${Dr};
|
|
1393
1393
|
}
|
|
1394
1394
|
|
|
1395
1395
|
:host(:hover:not([disabled])) .root {
|
|
@@ -1428,21 +1428,21 @@
|
|
|
1428
1428
|
.label-hidden {
|
|
1429
1429
|
margin: 0;
|
|
1430
1430
|
}
|
|
1431
|
-
`;class Ao extends H.NumberField{}const
|
|
1431
|
+
`;class Ao extends H.NumberField{}const Oo=H.defaultNumberFieldConfig,Do=H.foundationNumberFieldTemplate,To=H.foundationNumberFieldShadowOptions,Fo=Ao.compose(Object.assign({baseName:"number-field",template:Do,styles:(e,a)=>b.css`
|
|
1432
1432
|
:host .root {
|
|
1433
1433
|
--focus-stroke-outer: transparent;
|
|
1434
1434
|
}
|
|
1435
1435
|
${$o(e,a)}
|
|
1436
|
-
`,shadowOptions:
|
|
1436
|
+
`,shadowOptions:To},Oo));class Ro extends H.SystemHealthOverlay{}const No=Ro.compose(Object.assign({baseName:"system-health-overlay",template:H.foundationSystemHealthOverlayTemplate,styles:H.foundationSystemHealthOverlayStyles,shadowOptions:H.foundationSystemHealthOverlayShadowOptions},H.defaultSystemHealthOverlayConfig));class Lo extends H.Progress{}const Mo=Lo.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,H.foundationProgressTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1437
1437
|
${(0,H.foundationProgressStyles)(e,a)}
|
|
1438
1438
|
:host([appearance="secondary-teal"]) {
|
|
1439
|
-
--accent-foreground-rest: ${
|
|
1439
|
+
--accent-foreground-rest: ${Oe.teal};
|
|
1440
1440
|
}
|
|
1441
1441
|
|
|
1442
1442
|
:host([appearance='secondary-orange']) {
|
|
1443
|
-
--accent-foreground-rest: ${
|
|
1443
|
+
--accent-foreground-rest: ${Oe.orange};
|
|
1444
1444
|
}
|
|
1445
|
-
`,shadowOptions:H.foundationProgressShadowOptions},H.defaultProgressConfig));class Io extends H.ProgressRing{}const
|
|
1445
|
+
`,shadowOptions:H.foundationProgressShadowOptions},H.defaultProgressConfig));class Io extends H.ProgressRing{}const jo={indeterminateIndicator:`\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <defs>\n <linearGradient id="linear">\n <stop offset="0%" stop-color="${Ae.purple}"/>\n <stop offset="100%" stop-color="${Ae.blue}"/>\n </linearGradient>\n </defs>\n <circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>\n <circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>\n </svg>\n `},Eo=Io.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>b.html`
|
|
1446
1446
|
<template
|
|
1447
1447
|
role="progressbar"
|
|
1448
1448
|
aria-valuenow="${e=>e.value}"
|
|
@@ -1480,7 +1480,7 @@
|
|
|
1480
1480
|
.indeterminate-indicator-1, .determinate {
|
|
1481
1481
|
stroke: ${"url(#linear)"};
|
|
1482
1482
|
}
|
|
1483
|
-
`,shadowOptions:H.foundationProgressRingShadowOptions},
|
|
1483
|
+
`,shadowOptions:H.foundationProgressRingShadowOptions},jo));class Po extends H.Radio{}const Bo=Po.compose(Object.assign({baseName:"radio",template:(e,a)=>(0,H.foundationRadioTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1484
1484
|
${(0,H.foundationRadioStyles)(e,a)}
|
|
1485
1485
|
:host {
|
|
1486
1486
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1512,24 +1512,24 @@
|
|
|
1512
1512
|
${Ae.purple}
|
|
1513
1513
|
);
|
|
1514
1514
|
}
|
|
1515
|
-
`,shadowOptions:H.foundationRadioShadowOptions},H.defaultRadioConfig));class Go extends H.RadioGroup{}const
|
|
1515
|
+
`,shadowOptions:H.foundationRadioShadowOptions},H.defaultRadioConfig));class Go extends H.RadioGroup{}const Uo=Go.compose(Object.assign({baseName:"radio-group",template:(e,a)=>(0,H.foundationRadioGroupTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1516
1516
|
${(0,H.foundationRadioGroupStyles)(e,a)}
|
|
1517
1517
|
:host([appearance="accent"]) {
|
|
1518
1518
|
background: green;
|
|
1519
1519
|
}
|
|
1520
|
-
`,shadowOptions:H.foundationRadioGroupShadowOptions},H.defaultRadioGroupConfig)),
|
|
1520
|
+
`,shadowOptions:H.foundationRadioGroupShadowOptions},H.defaultRadioGroupConfig)),_o=b.css`
|
|
1521
1521
|
${H.foundationSearchBarStyles}
|
|
1522
1522
|
`,Ho=b.html`
|
|
1523
1523
|
${(0,H.getPrefixedSearchBar)("zero")}
|
|
1524
|
-
`;class Vo extends H.SearchBar{constructor(){super(...arguments),this.appearance="neutral-grey"}}const Yo=Vo.compose(Object.assign({baseName:"search-bar",template:Ho,styles:
|
|
1524
|
+
`;class Vo extends H.SearchBar{constructor(){super(...arguments),this.appearance="neutral-grey"}}const Yo=Vo.compose(Object.assign({baseName:"search-bar",template:Ho,styles:_o,shadowOptions:H.foundationSearchBarShadowOptions},H.defaultSearchBarConfig));class Qo extends H.SearchBarCombobox{}const Wo=Qo.compose(Object.assign({baseName:"search-bar-combobox",template:(e,a)=>(0,H.foundationSearchBarComboboxTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1525
1525
|
${(0,H.foundationSearchBarComboboxStyles)(e,a)}
|
|
1526
1526
|
|
|
1527
1527
|
:host {
|
|
1528
1528
|
--primary-gradient-angle: -113.5deg;
|
|
1529
1529
|
|
|
1530
1530
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1531
|
-
border-color: ${
|
|
1532
|
-
background: ${
|
|
1531
|
+
border-color: ${Mr};
|
|
1532
|
+
background: ${Dr};
|
|
1533
1533
|
}
|
|
1534
1534
|
|
|
1535
1535
|
:host(:focus-within:not([disabled])) {
|
|
@@ -1555,7 +1555,7 @@
|
|
|
1555
1555
|
|
|
1556
1556
|
:host(:hover:not([disabled]):not([open])) {
|
|
1557
1557
|
border-color: ${Ar};
|
|
1558
|
-
background: ${
|
|
1558
|
+
background: ${Dr};
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
1561
|
:host([open][position='below']) .listbox {
|
|
@@ -1618,8 +1618,8 @@
|
|
|
1618
1618
|
--primary-gradient-angle: -113.5deg;
|
|
1619
1619
|
|
|
1620
1620
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1621
|
-
border-color: ${
|
|
1622
|
-
background: ${
|
|
1621
|
+
border-color: ${Mr};
|
|
1622
|
+
background: ${Dr};
|
|
1623
1623
|
}
|
|
1624
1624
|
|
|
1625
1625
|
:host(:focus-within:not([disabled])) {
|
|
@@ -1645,7 +1645,7 @@
|
|
|
1645
1645
|
|
|
1646
1646
|
:host(:hover:not([disabled]):not(.open)) {
|
|
1647
1647
|
border-color: ${Ar};
|
|
1648
|
-
background: ${
|
|
1648
|
+
background: ${Dr};
|
|
1649
1649
|
}
|
|
1650
1650
|
|
|
1651
1651
|
:host([open][position='below']) .listbox {
|
|
@@ -1740,11 +1740,11 @@
|
|
|
1740
1740
|
}
|
|
1741
1741
|
|
|
1742
1742
|
:host([type='error']) .snackbar::after {
|
|
1743
|
-
background-color: ${
|
|
1743
|
+
background-color: ${La(1)};
|
|
1744
1744
|
}
|
|
1745
|
-
`,
|
|
1745
|
+
`,gi=b.html`
|
|
1746
1746
|
${(0,H.getPrefixedSnackbar)("zero")}
|
|
1747
|
-
`,
|
|
1747
|
+
`,si=H.foundationSnackbarShadowOptions;class di extends H.Snackbar{}const ci=di.compose({baseName:"snackbar",shadowOptions:si,styles:li,template:gi});class pi extends H.StackingIcons{}const ui=pi.compose({baseName:"stacking-icons",template:H.foundationStackingIconsTemplate,styles:(e,a)=>b.css`
|
|
1748
1748
|
${(0,H.foundationStackingIconsStyles)(e,a)}
|
|
1749
1749
|
`}),hi=b.css`
|
|
1750
1750
|
${H.foundationStepperStyles}
|
|
@@ -1836,9 +1836,9 @@
|
|
|
1836
1836
|
margin-right: 0;
|
|
1837
1837
|
background-color: var(--zero-card-fill-color);
|
|
1838
1838
|
}
|
|
1839
|
-
`,shadowOptions:H.foundationTabShadowOptions},H.defaultTabConfig));class Ai extends H.TabPanel{}const
|
|
1839
|
+
`,shadowOptions:H.foundationTabShadowOptions},H.defaultTabConfig));class Ai extends H.TabPanel{}const Oi=Ai.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,H.foundationTabPanelTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1840
1840
|
${(0,H.foundationTabPanelStyles)(e,a)}
|
|
1841
|
-
`,shadowOptions:H.foundationTabPanelShadowOptions},H.defaultTabPanelConfig));class
|
|
1841
|
+
`,shadowOptions:H.foundationTabPanelShadowOptions},H.defaultTabPanelConfig));class Di extends H.Tabs{}const Ti=Di.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,H.foundationTabsTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1842
1842
|
${(0,H.foundationTabsStyles)(e,a)}
|
|
1843
1843
|
:host .tablist {
|
|
1844
1844
|
padding: 0;
|
|
@@ -1892,14 +1892,14 @@
|
|
|
1892
1892
|
|
|
1893
1893
|
:host .control {
|
|
1894
1894
|
height: 100%;
|
|
1895
|
-
background-color: ${
|
|
1896
|
-
border: calc(var(--stroke-width) * 1px) solid ${
|
|
1895
|
+
background-color: ${Dr};
|
|
1896
|
+
border: calc(var(--stroke-width) * 1px) solid ${Mr};
|
|
1897
1897
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
1900
|
:host(:hover:not([disabled])) .control {
|
|
1901
1901
|
border-color: ${Ar};
|
|
1902
|
-
background: ${
|
|
1902
|
+
background: ${Dr};
|
|
1903
1903
|
}
|
|
1904
1904
|
|
|
1905
1905
|
:host(:focus-within:not([disabled])) .control {
|
|
@@ -1929,7 +1929,7 @@
|
|
|
1929
1929
|
color: ${Fr};
|
|
1930
1930
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
1931
1931
|
}
|
|
1932
|
-
`,shadowOptions:H.foundationTextAreaShadowOptions},H.defaultTextAreaConfig));class Ni extends H.TextField{}const
|
|
1932
|
+
`,shadowOptions:H.foundationTextAreaShadowOptions},H.defaultTextAreaConfig));class Ni extends H.TextField{}const Li=Ni.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,H.foundationTextFieldTemplate)(e,a),styles:$o,shadowOptions:H.foundationTextFieldShadowOptions},H.defaultTextFieldConfig)),Mi=b.css`
|
|
1933
1933
|
${H.foundationToastStyles}
|
|
1934
1934
|
.toast {
|
|
1935
1935
|
border: calc(var(--stroke-width) * 1px) solid ${f.neutralLayer3};
|
|
@@ -1941,7 +1941,7 @@
|
|
|
1941
1941
|
}
|
|
1942
1942
|
|
|
1943
1943
|
:host([notify='warning']) .toast::after {
|
|
1944
|
-
background-color: ${
|
|
1944
|
+
background-color: ${La(1)};
|
|
1945
1945
|
}
|
|
1946
1946
|
|
|
1947
1947
|
:host([notify='success']) .toast::after {
|
|
@@ -1953,11 +1953,11 @@
|
|
|
1953
1953
|
}
|
|
1954
1954
|
|
|
1955
1955
|
:host([notify='serious']) .toast::after {
|
|
1956
|
-
background-color: ${
|
|
1956
|
+
background-color: ${Da(1)};
|
|
1957
1957
|
}
|
|
1958
|
-
`,Ii=H.defaultToastConfig,
|
|
1958
|
+
`,Ii=H.defaultToastConfig,ji=H.foundationToastShadowOptions;class Ei extends H.Toast{}const Pi=Ei.compose(Object.assign({baseName:"toast",shadowOptions:ji,styles:Mi,template:H.foundationToastTemplate},Ii));class Bi extends H.Toolbar{}const Gi=Bi.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,H.foundationToolbarTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1959
1959
|
${(0,H.foundationToolbarStyles)(e,a)}
|
|
1960
|
-
`,shadowOptions:H.foundationToolbarShadowOptions},H.defaultToolbarConfig));class
|
|
1960
|
+
`,shadowOptions:H.foundationToolbarShadowOptions},H.defaultToolbarConfig));class Ui extends H.Tooltip{}const _i=Ui.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,H.foundationTooltipTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1961
1961
|
${(0,H.foundationTooltipStyles)(e,a)}
|
|
1962
1962
|
`,shadowOptions:H.foundationTooltipShadowOptions},H.defaultTooltipConfig));class Hi extends H.TreeItem{}const Vi=Hi.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,H.foundationTreeItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
1963
1963
|
${(0,H.foundationTreeItemStyles)(e,a)}
|
|
@@ -1991,7 +1991,7 @@
|
|
|
1991
1991
|
${(0,H.foundationTreeViewStyles)(e,a)}
|
|
1992
1992
|
`,shadowOptions:H.foundationTreeViewShadowOptions},H.defaultTreeViewConfig)),Wi=b.html`
|
|
1993
1993
|
${(0,H.getPrefixedUrlInput)("zero")}
|
|
1994
|
-
`;class qi extends H.UrlInput{}const Ji={zeroAccordion:pa,zeroAccordionItem:ha,zeroActionsMenu:ba,zeroAnchor:Za,zeroAnchoredRegion:Xa,zeroAvatar:ar,zeroBadge:tr,zeroBanner:lr,zeroBreadcrumbItem:cr,zeroBreadcrumb:
|
|
1994
|
+
`;class qi extends H.UrlInput{}const Ji={zeroAccordion:pa,zeroAccordionItem:ha,zeroActionsMenu:ba,zeroAnchor:Za,zeroAnchoredRegion:Xa,zeroAvatar:ar,zeroBadge:tr,zeroBanner:lr,zeroBreadcrumbItem:cr,zeroBreadcrumb:sr,zeroButton:ur,zeroCalendar:mr,zeroCard:vr,zeroCategorizedMultiselect:zr,zeroCheckbox:Cr,zeroCombobox:Er,zeroConnectionIndicator:Br,zeroDataGrid:Hr,zeroDesignSystemProvider:Xr,zeroDialog:lt,zeroDatePicker:Qr,zeroDisclosure:st,zeroDivider:ct,zeroDropdownMenu:ut,zeroErrorBoundary:wt,zeroNotificationListener:Co,zeroErrorBanner:vt,zeroErrorDialog:xt,zeroFileUpload:At,zeroFilter:Tt,zeroFilterBar:Nt,zeroFlexLayout:Mt,zeroFlipper:jt,zeroFlyout:_t,zeroGridLayout:Vt,zeroGridLayoutItem:Qt,zeroHorizontalScroll:Jt,zeroIcon:eo,zeroListbox:ro,zeroListboxOption:oo,zeroMenu:lo,zeroMenuItem:co,zeroModal:vo,zeroMultiselect:zo,zeroNumberField:Fo,zeroProgress:Mo,zeroProgressRing:Eo,zeroRadio:Bo,zeroRadioGroup:Uo,zeroSearchBar:Yo,zeroSearchBarCombobox:Wo,zeroSegmentedControl:Jo,zeroSegmentedItem:Ko,zeroSelect:ei,zeroSkeleton:ri,zeroSlider:oi,zeroSliderLabel:ni,zeroSnackbar:ci,zeroStackingIcons:ui,zeroStepper:vi,zeroStepperTab:yi,zeroStepperTabPanel:ki,zeroSwitch:Si,zeroSystemHealthOverlay:No,zeroTab:$i,zeroTabPanel:Oi,zeroTabs:Ti,zeroTextArea:Ri,zeroTextField:Li,zeroToast:Pi,zeroToolbar:Gi,zeroTooltip:_i,zeroTreeItem:Vi,zeroTreeView:Qi,zeroUrlInput:qi.compose(Object.assign({baseName:"url-input",template:Wi,styles:(e,a)=>b.css`
|
|
1995
1995
|
${(0,H.foundationUrlInputStyles)(e,a)}
|
|
1996
1996
|
a {
|
|
1997
1997
|
color: ${Ae.blue};
|
|
@@ -2005,7 +2005,7 @@
|
|
|
2005
2005
|
.${on(e)} {
|
|
2006
2006
|
${new H.CSSVarsTokenMapper(a)}
|
|
2007
2007
|
}
|
|
2008
|
-
`;var ln;!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"}(ln||(ln={}));const
|
|
2008
|
+
`;var ln;!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"}(ln||(ln={}));const gn="__editedColumn",sn="__errorColumn",dn={},cn=v.DI.createInterface((e=>e.instance(dn)));var pn;!function(e){e.camelCase="camelCase",e.capitalCase="capitalCase",e.dotCase="dotCase",e.headerCase="headerCase",e.noCase="noCase",e.paramCase="paramCase",e.pascalCase="pascalCase",e.pathCase="pathCase",e.sentenceCase="sentenceCase",e.snakeCase="snakeCase"}(pn||(pn={})),an().extend(tn());class un extends v.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[gn]}}(0,Xi.__decorate)([b.observable],un.prototype,"value",void 0),(0,Xi.__decorate)([b.observable],un.prototype,"actualWidth",void 0);const hn=b.css`
|
|
2009
2009
|
:host {
|
|
2010
2010
|
display: flex;
|
|
2011
2011
|
}
|
|
@@ -2017,7 +2017,7 @@
|
|
|
2017
2017
|
@input=${(e,a)=>e.changeHandler(a.event)}
|
|
2018
2018
|
style="width: ${e=>e.actualWidth}px"
|
|
2019
2019
|
></${e}-text-field>
|
|
2020
|
-
`,bn=un.compose({baseName:"date-editor",styles:hn,template:mn()});class vn extends un{}const fn=vn.compose({baseName:"date-editor",styles:hn,template:mn("zero")});class wn extends v.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[
|
|
2020
|
+
`,bn=un.compose({baseName:"date-editor",styles:hn,template:mn()});class vn extends un{}const fn=vn.compose({baseName:"date-editor",styles:hn,template:mn("zero")});class wn extends v.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[gn]}}(0,Xi.__decorate)([b.observable],wn.prototype,"params",void 0),(0,Xi.__decorate)([b.observable],wn.prototype,"selectedOptions",void 0);const yn=b.css``,xn=(e="foundation")=>b.html`
|
|
2021
2021
|
<${e}-multiselect
|
|
2022
2022
|
style="width: 100%"
|
|
2023
2023
|
?async=${e=>e.params.async}
|
|
@@ -2031,7 +2031,7 @@
|
|
|
2031
2031
|
:datasourceConfig=${e=>e.params.datasourceOptions}
|
|
2032
2032
|
></multiselect-datasource>
|
|
2033
2033
|
</${e}-multiselect>
|
|
2034
|
-
`,kn=wn.compose({baseName:"multiselect-editor",styles:yn,template:xn()});class zn extends wn{}const Sn=zn.compose({baseName:"multiselect-editor",styles:yn,template:xn("zero")});class Cn extends v.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[
|
|
2034
|
+
`,kn=wn.compose({baseName:"multiselect-editor",styles:yn,template:xn()});class zn extends wn{}const Sn=zn.compose({baseName:"multiselect-editor",styles:yn,template:xn("zero")});class Cn extends v.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[gn]}}(0,Xi.__decorate)([b.observable],Cn.prototype,"params",void 0),(0,Xi.__decorate)([b.observable],Cn.prototype,"value",void 0),(0,Xi.__decorate)([b.observable],Cn.prototype,"actualWidth",void 0);const $n=b.css``,An=(e="foundation")=>b.html`
|
|
2035
2035
|
<${e}-combobox
|
|
2036
2036
|
style="width: ${e=>e.actualWidth}px"
|
|
2037
2037
|
${(0,b.ref)("combobox")}
|
|
@@ -2048,7 +2048,7 @@
|
|
|
2048
2048
|
:initialSelectedValue=${e=>e.params.value}
|
|
2049
2049
|
></options-datasource>
|
|
2050
2050
|
</${e}-combobox>
|
|
2051
|
-
`,
|
|
2051
|
+
`,On=Cn.compose({baseName:"select-editor",styles:$n,template:An()});class Dn extends Cn{}const Tn=Dn.compose({baseName:"select-editor",styles:$n,template:An("zero")});class Fn extends v.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[gn]}}(0,Xi.__decorate)([b.observable],Fn.prototype,"params",void 0),(0,Xi.__decorate)([b.observable],Fn.prototype,"value",void 0),(0,Xi.__decorate)([b.observable],Fn.prototype,"actualWidth",void 0);const Rn=b.css`
|
|
2052
2052
|
:host {
|
|
2053
2053
|
display: flex;
|
|
2054
2054
|
}
|
|
@@ -2064,7 +2064,7 @@
|
|
|
2064
2064
|
hideStep
|
|
2065
2065
|
style="width: ${e=>e.actualWidth}px"
|
|
2066
2066
|
></${e}-number-field>
|
|
2067
|
-
`,
|
|
2067
|
+
`,Ln=Fn.compose({baseName:"number-editor",styles:Rn,template:Nn()});class Mn extends Fn{}const In=Mn.compose({baseName:"number-editor",styles:Rn,template:Nn("zero")});class jn extends v.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[gn]}}(0,Xi.__decorate)([b.observable],jn.prototype,"params",void 0),(0,Xi.__decorate)([b.observable],jn.prototype,"value",void 0),(0,Xi.__decorate)([b.observable],jn.prototype,"actualWidth",void 0);const En=b.css`
|
|
2068
2068
|
:host {
|
|
2069
2069
|
display: flex;
|
|
2070
2070
|
}
|
|
@@ -2077,7 +2077,7 @@
|
|
|
2077
2077
|
style="width: ${e=>e.actualWidth}px"
|
|
2078
2078
|
>
|
|
2079
2079
|
</${e}-text-field>
|
|
2080
|
-
`,Bn=
|
|
2080
|
+
`,Bn=jn.compose({baseName:"string-editor",styles:En,template:Pn()});class Gn extends jn{}const Un=Gn.compose({baseName:"string-editor",styles:En,template:Pn("zero")});class _n extends v.FoundationElement{init(e){e&&(this.valueFormatted=e.formatValue(e.value))}getGui(){return this}refresh(e){return this.valueFormatted=e.formatValue(e.value),!0}}(0,Xi.__decorate)([b.observable],_n.prototype,"valueFormatted",void 0);const Hn=b.css`
|
|
2081
2081
|
:host {
|
|
2082
2082
|
display: flex;
|
|
2083
2083
|
justify-content: space-between;
|
|
@@ -2086,7 +2086,7 @@
|
|
|
2086
2086
|
`,Vn=(e="foundation")=>b.html`
|
|
2087
2087
|
<span>${e=>e.valueFormatted}</span>
|
|
2088
2088
|
<${e}-progress-ring style="margin: 0; width: 20px; height: 20px"></${e}-progress-ring>
|
|
2089
|
-
`,Yn=
|
|
2089
|
+
`,Yn=_n.compose({baseName:"editable-renderer",styles:Hn,template:Vn()});class Qn extends _n{}const Wn=Qn.compose({baseName:"editable-renderer",styles:Hn,template:Vn("zero")});var qn=r(44210);const Jn=(0,k.createLogger)("grid-pro");class Zn extends v.FoundationElement{init(e){e&&(this.params=e,e.eGridCell.addEventListener("keydown",(e=>{e.key===qn.DDm.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){Jn.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,Xi.__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,Xi.__decorate)([b.observable],Zn.prototype,"params",void 0),(0,Xi.__decorate)([b.observable],Zn.prototype,"pendingAction",void 0);const{create:Kn}=v.DesignToken,Xn=(Kn("action-height-multiplier").withDefault("0.6px"),b.css`
|
|
2090
2090
|
.action-container {
|
|
2091
2091
|
align-items: center;
|
|
2092
2092
|
display: flex;
|
|
@@ -2140,7 +2140,7 @@
|
|
|
2140
2140
|
name="${e=>e.params.headerName}"
|
|
2141
2141
|
:definition=${e=>e.params}
|
|
2142
2142
|
></zero-actions-menu>
|
|
2143
|
-
`});class
|
|
2143
|
+
`});class gl extends v.FoundationElement{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){Jn.error("Error executing grid action cell renderer isDisabled callback:",e)}return!this.params.colDef.editable}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:qn.sVA.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:qn.sVA.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[gn]}}(0,Xi.__decorate)([b.observable],gl.prototype,"params",void 0),(0,Xi.__decorate)([b.observable],gl.prototype,"selected",void 0);const sl=b.css`
|
|
2144
2144
|
:host {
|
|
2145
2145
|
align-center: center;
|
|
2146
2146
|
display: flex;
|
|
@@ -2152,7 +2152,7 @@
|
|
|
2152
2152
|
:checked=${e=>e.selected}
|
|
2153
2153
|
?disabled=${e=>{var a;return e.isDisabled(null===(a=e.params)||void 0===a?void 0:a.data)}}
|
|
2154
2154
|
></${a}>
|
|
2155
|
-
`},cl=
|
|
2155
|
+
`},cl=gl.compose({baseName:"boolean-renderer",styles:sl,template:dl()});class pl extends gl{}const ul=pl.compose({baseName:"boolean-renderer",styles:sl,template:dl("zero")});var hl=r(40729);const ml=(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 bl extends v.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?ml(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}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){Jn.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}}(0,Xi.__decorate)([b.observable],bl.prototype,"textValue",void 0),(0,Xi.__decorate)([b.observable],bl.prototype,"params",void 0);const vl=b.css`
|
|
2156
2156
|
:host {
|
|
2157
2157
|
display: flex;
|
|
2158
2158
|
width: 100%;
|
|
@@ -2198,15 +2198,15 @@
|
|
|
2198
2198
|
<${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
|
|
2199
2199
|
`)}
|
|
2200
2200
|
</${a}>
|
|
2201
|
-
`},
|
|
2201
|
+
`},Ol=Cl.compose({baseName:"select-renderer",styles:$l,template:Al()});const Dl=class extends Cl{}.compose({baseName:"select-renderer",styles:$l,template:Al("zero")});var Tl=r(29310),Fl=r(84646),Rl=r(17190),Nl=r(21530),Ll=r(31679),Ml=r(89882),Il=r(62051),jl=r.n(Il);const El=b.html`
|
|
2202
2202
|
<template>
|
|
2203
2203
|
<slot ${(0,b.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
|
|
2204
2204
|
</template>
|
|
2205
|
-
`;let Pl=class extends v.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,Xi.__decorate)([b.observable],Pl.prototype,"renderer",void 0),(0,Xi.__decorate)([b.observable],Pl.prototype,"rendererParams",void 0),(0,Xi.__decorate)([b.observable],Pl.prototype,"slottedRenderer",void 0),Pl=(0,Xi.__decorate)([(0,b.customElement)({name:"grid-pro-cell",template:
|
|
2205
|
+
`;let Pl=class extends v.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,Xi.__decorate)([b.observable],Pl.prototype,"renderer",void 0),(0,Xi.__decorate)([b.observable],Pl.prototype,"rendererParams",void 0),(0,Xi.__decorate)([b.observable],Pl.prototype,"slottedRenderer",void 0),Pl=(0,Xi.__decorate)([(0,b.customElement)({name:"grid-pro-cell",template:El})],Pl);const Bl=b.html`
|
|
2206
2206
|
<template>
|
|
2207
2207
|
<slot ${(0,b.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
|
|
2208
2208
|
</template>
|
|
2209
|
-
`;let Gl=class extends(c(v.FoundationElement)){constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}deepClone(){const e=super.deepClone();return e.definition={},this.definition&&Object.keys(this.definition).forEach((a=>{"function"==typeof this.definition[a]?e.definition[a]=this.definition[a].bind(e):e.definition[a]=structuredClone(this.definition[a])})),e}};(0,Xi.__decorate)([b.observable],Gl.prototype,"slottedAgCell",void 0),(0,Xi.__decorate)([b.observable],Gl.prototype,"definition",void 0),Gl=(0,Xi.__decorate)([(0,b.customElement)({name:"grid-pro-column",template:Bl})],Gl);var _l=r(96730),Ul=r(21281),Hl=r(34193),Vl=r(97156),Yl=r(56607),Ql=r(10629),Wl=r(41392),ql=r(92453),Jl=r(2773),Zl=r(40370),Kl=r(6884),Xl=r(39087),es=r(9033),as=r(41119),rs=r(17465),ts=r(12066);function os(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 is(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn"}}function ns({value:e}){return(0,ts.CL)(e)}function ls({value:e}){return(0,ts.zT)(e)}const ss="datasource-error-close",gs="datasource";class ds extends((0,Zl.C)(v.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Kl.OD.MAX_ROWS_250,this.maxView=Kl.OD.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1,this.pollingInterval=Kl.OD.REQ_REP_POLLING_INTERVAL_MS,this.disablePolling=!1,this.requestAutoSetup=!0,this.criteriaFromFilters=new Map,this.update=new Vl.t(new Map)}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Kl.OD.REQUEST_SERVER_ROW_ID:Kl.OD.DATASERVER_ROW_ID}get hasDefaultRowId(){return!this.rowIdAttr||this.rowIdAttr===Kl.OD.REQUEST_SERVER_ROW_ID||this.rowIdAttr===Kl.OD.DATASERVER_ROW_ID}get defaultRowIdByResourceType(){return this.isRequestServer?Kl.OD.REQUEST_SERVER_ROW_ID:Kl.OD.DATASERVER_ROW_ID}datasourceOptions(){return{resourceName:this.resourceName,isSnapshot:this.isSnapshot,criteria:this.buildCriteria(),maxRows:+this.maxRows,viewNumber:this.viewNumber,fields:this.fields,maxView:+this.maxView,movingView:this.movingView,orderBy:this.orderBy,reverse:this.reverse,disablePolling:this.disablePolling,pollingInterval:this.pollingInterval,request:this.request,requestAutoSetup:this.requestAutoSetup}}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values())),r=(0,_l.Q)(a.join(" && "),";");return r||void 0}setFilter(e,a){this.criteriaFromFilters.set(e,a),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}get isRequestServer(){var e;return(null===(e=this.datasource.status)||void 0===e?void 0:e.type)===Xl.v.REQUEST_SERVER}datasourceStatusChanged(e,a){}get agGrid(){return this.parentElement}}var cs;(0,Xi.__decorate)([g.dm],ds.prototype,"connect",void 0),(0,Xi.__decorate)([es.yW],ds.prototype,"datasource",void 0),(0,Xi.__decorate)([b.observable],ds.prototype,"deferredGridOptions",void 0),(0,Xi.__decorate)([b.observable],ds.prototype,"deferredColumnStates",void 0),(0,Xi.__decorate)([b.observable],ds.prototype,"rowDataMapper",void 0),(0,Xi.__decorate)([b.attr],ds.prototype,"criteria",void 0),(0,Xi.__decorate)([b.attr],ds.prototype,"fields",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"is-snapshot"})],ds.prototype,"isSnapshot",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"max-rows"})],ds.prototype,"maxRows",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"max-view"})],ds.prototype,"maxView",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"moving-view"})],ds.prototype,"movingView",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"order-by"})],ds.prototype,"orderBy",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"resource-name"})],ds.prototype,"resourceName",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean"})],ds.prototype,"reverse",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"view-number"})],ds.prototype,"viewNumber",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"polling-interval"})],ds.prototype,"pollingInterval",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"disable-polling"})],ds.prototype,"disablePolling",void 0),(0,Xi.__decorate)([b.observable],ds.prototype,"request",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"request-auto-setup"})],ds.prototype,"requestAutoSetup",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"row-id"})],ds.prototype,"rowIdAttr",void 0),(0,Xi.__decorate)([b.volatile],ds.prototype,"isRequestServer",null),function(e){e.Add="add",e.Update="update",e.Remove="remove"}(cs||(cs={}));class ps extends ds{constructor(){super(...arguments),this.dataSubWasLoggedOff=!1,this.rowData=new Map,this.agTransaction={add:[],remove:[],update:[]}}generateColumnDefsFromMetadata(e,a){return null==e?void 0:e.flatMap((e=>{var r;const t={};switch(t.filterParams=a(e.type),e.type){case as.w.STRING:t.cellEditor=ln.stringEditor;break;case as.w.NUMBER:t.cellEditor=ln.numberEditor;break;case as.w.BOOLEAN:this.agGrid.autoCellRendererByType&&(t.cellRenderer=ln.boolean,t.cellEditor=ln.boolean);break;case as.w.DATE:t.valueFormatter=ns,t.cellEditor=ln.dateEditor;break;case as.w.DATETIME:t.valueFormatter=ls,t.cellEditor=ln.dateEditor,t.cellEditorParams={withTime:!0};break;case as.w.ENUM:e.enumOptions?(t.cellEditor=ln.selectEditor,t.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}):rs.v.warn(`No enumOptions found for field ${e.name}. Default cell editor applied.`)}const o=null===(r=this.agGrid.gridApi)||void 0===r?void 0:r.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:is(e.type),filter:os(e.type)},t),o)}))}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rowData.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rowData.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.rowData.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{if(this.hasDefaultRowId||this.isRequestServer)this.agTransaction.remove.push({[this.rowId]:e[this.rowId]});else{const a=Object.values(Object.fromEntries(this.rowData)).find((a=>a[this.defaultRowIdByResourceType]===e[this.defaultRowIdByResourceType]));this.agTransaction.remove.push({[this.rowId]:a[this.rowId]})}this.rowData.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{let a;if(this.hasDefaultRowId||this.isRequestServer){const r=this.rowData.get(e[this.rowId]);a=Object.assign(Object.assign({},r),e),this.agTransaction.update.push(a)}else{const r=Object.values(Object.fromEntries(this.rowData)).find((a=>a[this.defaultRowIdByResourceType]===e[this.defaultRowIdByResourceType]));a=Object.assign(Object.assign({},r),e),this.agTransaction.update.push(a)}this.rowData.set(e[this.rowId],a)}))}applyAllAgTransactions(){var e,a,r;if(!this.agTransaction.add.length&&!this.agTransaction.update.length&&!this.agTransaction.remove.length)return this.agGrid.gridApi.hideOverlay(),void(0===this.rowData.size&&this.agGrid.gridApi.showNoRowsOverlay());(null===(e=this.agTransaction.add)||void 0===e?void 0:e.length)>0&&this.applyMappedAgTransaction({add:this.agTransaction.add,addIndex:this.agGrid.addIndex},cs.Add,this.agGrid.asyncAdd),(null===(a=this.agTransaction.remove)||void 0===a?void 0:a.length)>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},cs.Remove,this.agGrid.asyncRemove),(null===(r=this.agTransaction.update)||void 0===r?void 0:r.length)>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},cs.Update,this.agGrid.asyncUpdate)}flashAddedCells(e){this.agGrid.enableRowFlashing&&(null==e?void 0:e.length)&&this.agGrid.gridApi.flashCells({rowNodes:e})}applyMappedAgTransaction(e,a,r){if(r)this.applyTransactionAsync(this.mapTransaction(e,[a]),(e=>{this.flashAddedCells(e.add)}));else{const r=this.applyTransaction(this.mapTransaction(e,[a]));this.flashAddedCells(r.add)}}applyTransaction(e){throw new Error("Method not implemented.")}applyTransactionAsync(e,a){throw new Error("Method not implemented.")}mapTransaction(e,a=Object.values(cs)){if(!this.rowDataMapper)return e;const r={};return a.includes(cs.Add)&&(r.add=this.rowDataMapper(e.add,this.rowData)),a.includes(cs.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rowData)),a.includes(cs.Update)&&(r.update=this.rowDataMapper(e.update,this.rowData)),r}}function us(e){switch(e){case as.w.DATE:case as.w.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,maxNumConditions:1,browserDatePicker:!0}}}const hs="datasource-error",ms="datasource-init",bs="datasource-size-changed";let vs=class extends(c(ps)){constructor(){super(...arguments),this.applyFuncName="applyTransaction",this.applyAsyncFuncName="applyTransactionAsync",this.restartOnReconnection=!1,this.keepColDefsOnClearRowData=!1,this.requiresFullRowDataAndColDefs=!0}criteriaChanged(e,a){const r=e!==(0,_l.Q)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}requestChanged(e,a){const r=e!==a;this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;b.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;b.DOM.queueUpdate((()=>{e&&this.destroy()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions={},this.deferredGridOptions&&Object.keys(this.deferredGridOptions).forEach((a=>{"function"==typeof this.deferredGridOptions[a]?e.deferredGridOptions[a]=this.deferredGridOptions[a].bind(e):"columnDefs"===a&&this.deferredGridOptions[a].length?e.deferredGridOptions[a]=this.colDefsDeepClone(a,e):e.deferredGridOptions[a]=structuredClone(this.deferredGridOptions[a])})),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}colDefsDeepClone(e,a){return this.deferredGridOptions[e].map((e=>{const r={};return Object.keys(e).forEach((t=>{"function"==typeof e[t]?r[t]=e[t].bind(a):r[t]=structuredClone(e[t])})),r}))}init(e,a){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid){const r=Object.assign(Object.assign(Object.assign({getRowId:e=>e.data[this.rowId]},e&&{columnDefs:e}),this.agGrid.agGridOptions),this.deferredGridOptions);this.agGrid.gridOptions=Object.assign({},r),this.agGrid.initGrid(),this.agGrid.addEventListener(qn.sVA.EVENT_GRID_READY,(()=>(0,Xi.__awaiter)(this,void 0,void 0,(function*(){a&&this.agGrid.columnApi.applyColumnState({state:a}),yield this.loadResourceData()}))),{once:!0});const t=600;this.updateSub=this.update.pipe((0,Ql.i)(1),(0,Wl.B)(t),(0,ql.M)((e=>Jn.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else this.handleErrors("Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.")}))}destroy(){this.reset()}deinit(){this.reset()}reset(){var e;Jn.debug("GridProGenesisDatasource.reset()",this.resourceName),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.clearRowData(),this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,null===(e=this.update)||void 0===e||e.unsubscribe(),this.update=new Vl.t(new Map),this.agGrid.removeAttribute("ds-disconnected"),this.datasource.destroy()}restart(){let e,a;this.keepColDefsOnClearRowData&&(e=this.agGrid.gridApi.getColumnDefs(),a=this.agGrid.columnApi.getColumnState()),this.destroy(),this.init(e,a)}refreshRows(){this.setRowData(Array.from(this.rowData.values()))}clearRowData(e=!0){var a,r,t,o;this.rowData=new Map,this.agTransaction=void 0,e&&!this.keepColDefsOnClearRowData&&(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;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const r=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDefs();if(!r||0===r.length){const e=yield this.getAgColumnDefs(this.datasource.fieldMetadata);e&&(e.forEach((e=>{e.rowGroup||(e.rowGroup=null),e.pivot||(e.pivot=null)})),this.agGrid.gridApi.setColumnDefs(e))}const t=this.rowDataMapper?this.rowDataMapper(e):e;this.agGrid.restoreCachedFilterConfig(),this.agTransaction={add:[...t],remove:[],update:[],addIndex:0},this.applyAllAgTransactions(),this.requiresFullRowDataAndColDefs=!1}))}reloadResourceData(){var e,a;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){Jn.debug("GridProGenesisDatasource.reloadResourceData()",this.resourceName),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.clearRowData(null),null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.showLoadingOverlay(),this.agGrid.removeAttribute("ds-disconnected"),this.loadResourceData(null)}))}loadResourceData(e=!0){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;try{if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Jn.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();if(this.$emit(ms),this.isSnapshot){const e=yield this.datasource.snapshot();if(e){const a=this.handleSnapshot(e);this.setRowData(a)}return}Jn.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.pipe((0,Jl.W)((e=>{var a;return this.handleErrors(null===(a=null==e?void 0:e.receivedMessage)||void 0===a?void 0:a.ERROR),Yl.w}))).subscribe((e=>{(null==e?void 0:e.ERROR)&&this.handleErrors(e.ERROR);const a=e.MESSAGE_TYPE;if(a&&a===Ul.Go.LOGOFF_ACK)return this.handleErrors(`Genesis datasource for ${this.resourceName} disconnected.`),void(this.dataSubWasLoggedOff=!0);if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Hl.d)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}catch(e){let{message:a}=e;e.receivedMessage&&(a=e.receivedMessage.ERROR),Jn.error(a),this.handleErrors(a)}}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Hl.d)(e).inserts:e.inserts}handleErrors(e){let a;if(Array.isArray(e)){a=e.map((e=>{if("string"==typeof e)return e;if("object"==typeof e&&null!==e&&"TEXT"in e)return e.TEXT;throw new Error("Array contains invalid elements")})).join(", ")}this.agGrid&&this.agGrid.setAttribute("ds-disconnected","ds-disconnected"),a&&(Jn.error(a),this.$emit(hs,{message:a}))}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}applyRequestServerData(e){var a;const r=this.rowData.size,t=e.REPLY;if(!Array.isArray(t)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void Jn.error("received invalid RequestServerResult",e);if(this.requiresFullRowDataAndColDefs){let e=!1;for(const a of t||[]){const r=a[this.rowId];if(!r){if(!e){const a=`The specified rowId (${this.rowId}) is not present in the data. Since this is not a snapshot (isSnapshot=false), the data will not be loaded. Please provide a valid 'row-id' attribute.`;Jn.error(a),e=!0}break}this.rowData.set(r,a)}if(e)return void this.destroy();const a=this.rowData.size>0?Array.from(this.rowData.values()):t;return this.handleSizeChanged(r,this.rowData.size),void this.setRowData(a)}const o=[],i=Array.from(this.rowData.values()).filter((e=>{const a=t.find((a=>a[this.rowId]===e[this.rowId]));return!a||(o.push(a),!1)})),n=t.filter((e=>!this.rowData.has(e[this.rowId])));this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(n),this.handleStreamDeletes(i),this.handleStreamUpdates(o),this.applyAllAgTransactions(),this.handleSizeChanged(r,this.rowData.size)}applyDataserverData(e){var a;const r=this.rowData.size;if(this.requiresFullRowDataAndColDefs){null===(a=e.inserts)||void 0===a||a.forEach((e=>{this.rowData.set(e[this.rowId],e)}));const t=Array.from(this.rowData.values());return this.setRowData(t),void this.handleSizeChanged(r,this.rowData.size)}this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(e.inserts),this.handleStreamDeletes(e.deletes),this.handleStreamUpdates(e.updates),this.applyAllAgTransactions(),this.handleSizeChanged(r,this.rowData.size)}getAgColumnDefs(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const a=this.generateColumnDefsFromMetadata(e,us);return yield this.agGrid.mergeAllColumnDefsAndStates(a,!0)}))}setFilter(e,a){this.criteriaFromFilters.set(e,a),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}applyTransaction(e){return this.agGrid.gridApi.applyTransaction(e)}applyTransactionAsync(e,a){this.agGrid.gridApi.applyTransactionAsync(e,a)}handleSizeChanged(e,a){e!==a&&this.$emit(bs,{value:a,oldValue:e})}};(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],vs.prototype,"restartOnReconnection",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"keep-col-defs-on-clear-row-data"})],vs.prototype,"keepColDefsOnClearRowData",void 0),vs=(0,Xi.__decorate)([(0,b.customElement)({name:"grid-pro-genesis-datasource"})],vs);let fs=class extends vs{};fs=(0,Xi.__decorate)([(0,b.customElement)({name:"grid-pro-client-side-datasource"})],fs);var ws=r(48707);function ys(e){switch(e){case as.w.BOOLEAN:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,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 as.w.DATE:case as.w.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,maxNumConditions:1,browserDatePicker:!0,filterOptions:["equals","lessThan","greaterThan","inRange",{displayKey:"isToday",displayName:"Is today",numberOfInputs:0,predicate:()=>!0},"blank","notBlank"]};case as.w.NUMBER:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,filterOptions:["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"]};default:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,maxNumConditions:1,filterOptions:["contains","equals","notEqual",{displayKey:"wordStartsWith",displayName:"Word starts sith",numberOfInputs:1,predicate:()=>!0},"blank","notBlank"]}}}var xs=r(40113),ks=r(32808);class zs{constructor(e){this.rowData=new Map,this.serverRowsCount=0,this.clientRowsCount=0,this.moreRows=!1,this.calculatedRowsCount=0,this.currentSequenceId=null,this.reloadResourceDataFunc=e.reloadResourceDataFunc,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,this.zeroBasedViewNumber=e.zeroBasedViewNumber}getRows(e){throw new Error("Method not implemented.")}setupFilteringAndSorting(e){var a;return(0,Xi.__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);if(i||t){if(o&&this.currentFilterModel)return this.currentFilterModel=null,this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,void(yield this.refreshDatasource(e));if(i&&t)return this.currentFilterModel=r,this.resourceParams.CRITERIA_MATCH=this.buildCriteriaMatchFromFilters(),void(yield this.refreshDatasource(e))}const n=e.request.sortModel;if((null===(a=this.currentSortModel)||void 0===a?void 0:a.length)!==n.length||n.length>0){if(0===n.length&&this.currentSortModel)return this.calculatedRowsCount=0,this.currentSortModel=null,this.resourceParams.ORDER_BY=null,this.resourceParams.REVERSE=null,void(yield this.refreshDatasource(e));if(n.length>0){this.currentSortModel=n;const a=n[0].colId,r=n[0].sort,t=this.getOrderByAndToBeSortedColIds(this.resourceIndexes,a);if(!t){this.calculatedRowsCount=0;const a=function(e){const a=[];for(const[r]of e)r&&a.push(r);return a}(this.resourceIndexes),r=function(e){const a=[];function r(e){for(const r of e)null!==r&&a.push(r)}for(const[a,t]of e)null!==a&&null!==t&&r(t);return a}(this.resourceIndexes);return rs.v.warn("The FIELD/column (${coldIdBeingSorted}) being sorted is not part of an INDEX, required for the [orderBy] operation. See https://learn.genesis.global/docs/database/data-types/index-entities/"),rs.v.debug("Available indexes:",a),rs.v.debug("Columns that can be sorted with the available indexes:",r),void e.fail()}if(JSON.stringify(n)!==JSON.stringify(this.currentSortModel))return this.resourceParams.ORDER_BY=t.orderBy,this.resourceParams.REVERSE="desc"===r,void(yield this.refreshDatasource(e))}}}))}destroy(){this.rowData=new Map,this.clientRowsCount=0,this.calculatedRowsCount=0,this.serverRowsCount=0,this.currentSequenceId=0,this.moreRows=!1,this.sourceRef=void 0,this.lastSuccessRowData=void 0}refreshDatasource(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){yield this.destroy(),yield this.reloadResourceDataFunc({criteria:this.resourceParams.CRITERIA_MATCH,orderBy:this.resourceParams.ORDER_BY,reverse:this.resourceParams.REVERSE})}))}getOrderByAndToBeSortedColIds(e,a){for(const[r,t]of e.entries()){const e=t.findIndex((e=>e===a));if(-1!==e){return{orderBy:r,toBeSorted:[...t].splice(e,1)}}}}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"blank":e.push(`${a} == ''`);break;case"contains":e.push(`Expr.containsIgnoreCase(${a}, '${this.currentFilterModel[a].filter}')`);break;case"equals":e.push(`${a} == '${this.currentFilterModel[a].filter}'`);break;case"notBlank":e.push(`${a} != ''`);break;case"notEqual":e.push(`${a} != '${this.currentFilterModel[a].filter}'`);break;case"wordStartsWith":e.push(`Expr.containsWordsStartingWithIgnoreCase(${a}, '${this.currentFilterModel[a].filter}')`)}else e.push(`${a} == ${this.currentFilterModel[a].type}`)})),this.getFiltersByType("number").forEach((a=>{const r=this.currentFilterModel[a].filter,t=this.currentFilterModel[a].filterTo;switch(this.currentFilterModel[a].type){case"equals":!isNaN(r)&&e.push(`${a} == ${r}`);break;case"notEqual":!isNaN(r)&&e.push(`${a} != ${r}`);break;case"greaterThan":!isNaN(r)&&e.push(`${a} > ${r}`);break;case"greaterThanOrEqual":!isNaN(r)&&e.push(`${a} >= ${r}`);break;case"lessThan":!isNaN(r)&&e.push(`${a} < ${r}`);break;case"lessThanOrEqual":!isNaN(r)&&e.push(`${a} <= ${r}`);break;case"inRange":!isNaN(r)&&!isNaN(t)&&e.push(`${a} >= ${r} && ${a} <= ${t}`);break;case"blank":e.push(`${a} == 0`);break;case"notBlank":e.push(`${a} != 0`)}})),this.getFiltersByType("date").forEach((a=>{var r,t;const o=null===(r=this.currentFilterModel[a].dateFrom)||void 0===r?void 0:r.replace(/-/g,"").replace("T","-").split(" ")[0],i=null===(t=this.currentFilterModel[a].dateTo)||void 0===t?void 0:t.replace(/-/g,"").replace("T","-").split(" ")[0];switch(this.currentFilterModel[a].type){case"equals":e.push(`Expr.dateIsEqual(${a}, '${o}')`);break;case"lessThan":e.push(`Expr.dateIsBefore(${a}, '${o}')`);break;case"greaterThan":e.push(`Expr.dateIsAfter(${a}, '${o}')`);break;case"inRange":e.push(`Expr.dateIsAfter(${a}, '${o}') && Expr.dateIsBefore(${a}, '${i}')`);break;case"isToday":const r=new Date,t=`${r.getFullYear()}-${(r.getMonth()+1).toString().padStart(2,"0")}-${r.getDate().toString().padStart(2,"0")} 00:00:00`;e.push(`Expr.dateIsEqual(${a}, '${t}')`);break;case"blank":e.push(`${a} == null`);break;case"notBlank":e.push(`${a} != null`)}})),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))}getPageNumber(e,a,r,t=!0){e>r&&(e=Math.floor((r-1)/a)*a+1);const o=Math.ceil(e/a);return t?o:o+1}getCorrectRowCount(e){const a=e.request.endRow;this.calculatedRowsCount=this.clientRowsCount||a;const r=Math.min(this.serverRowsCount,this.maxView);let t;return this.pagination?(t=this.resourceParams.CRITERIA_MATCH?void 0:Math.min(this.serverRowsCount,this.maxView),this.resourceParams.CRITERIA_MATCH&&(t=r),t):(a===this.serverRowsCount?t=this.serverRowsCount:a>this.maxView||a>this.calculatedRowsCount?t=Math.min(r,this.calculatedRowsCount):!this.moreRows&&this.serverRowsCount>this.calculatedRowsCount&&(t=this.calculatedRowsCount),t)}get isNotFirstViewNumber(){return this.zeroBasedViewNumber?this.currentSequenceId>0:this.currentSequenceId>1}}(0,Xi.__decorate)([xs.N],zs.prototype,"auth",void 0),(0,Xi.__decorate)([g.dm],zs.prototype,"connect",void 0),(0,Xi.__decorate)([ks.k],zs.prototype,"uuid",void 0);class Ss extends zs{constructor(e){super(e),this.createDataserverStreamFunc=e.createDataserverStreamFunc}refreshDatasource(e){const a=Object.create(null,{refreshDatasource:{get:()=>super.refreshDatasource}});return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){this.dataserverStreamSubscription.unsubscribe(),this.dataserverStreamSubscription=void 0,yield a.refreshDatasource.call(this,e)}))}getRows(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(yield this.setupFilteringAndSorting(e),this.pagination&&!this.isNewPageSize&&this.currentSequenceId>0)return void e.success(this.lastSuccessRowData);this.dataserverStream||(this.dataserverStream=yield this.createDataserverStreamFunc(this.resourceParams)),this.currentSequenceId>=1&&(this.moreRows||e.request.startRow>=Number(this.maxRows)||0===e.request.startRow)&&(this.pagination&&(this.resourceParams.VIEW_NUMBER=this.getPageNumber(e.request.startRow,this.maxRows,this.maxView,this.zeroBasedViewNumber)),this.connect.getMoreRows(this.sourceRef,this.resourceParams.VIEW_NUMBER));let a=!0;this.dataserverStreamSubscription=this.dataserverStream.subscribe((r=>{a&&b.DOM.queueUpdate((()=>(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(this.resourceParams.CRITERIA_MATCH){const e=yield this.connect.snapshot(this.resourceName,{MAX_ROWS:this.maxView,MAX_VIEW:this.maxView,CRITERIA_MATCH:this.resourceParams.CRITERIA_MATCH});e.ROW||e.ROWS_COUNT?this.serverRowsCount=this.resourceParams.CRITERIA_MATCH?e.ROW.length:e.ROWS_COUNT:(rs.v.warn("No data returned when criteria is applied."),this.serverRowsCount=0,this.clientRowsCount=0)}this.applyServerSideData(e,r),a=!1}))))}))}))}applyServerSideData(e,a){var r;const t=a.MESSAGE_TYPE;if(t&&(t===Ul.Go.LOGOFF_ACK||t===Ul.Go.MSG_NACK))return void e.fail();if(this.moreRows=a.MORE_ROWS,!a.ROW){this.rowData=new Map;const a={rowData:[],rowCount:0};return void e.success(a)}{const e=(0,Hl.d)(a);this.handleCurrentStreamLoad(e)}this.currentSequenceId=a.SEQUENCE_ID,1===this.currentSequenceId&&(this.sourceRef=a.SOURCE_REF,0===this.serverRowsCount&&(this.serverRowsCount=null!==(r=a.ROWS_COUNT)&&void 0!==r?r:this.rowData.size));const o={rowData:Array.from(this.rowData.values())};o.rowCount=this.getCorrectRowCount(e),this.lastSuccessRowData=o,e.success(o)}destroy(){const e=Object.create(null,{destroy:{get:()=>super.destroy}});var a;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){this.dataserverStream=void 0,null===(a=this.dataserverStreamSubscription)||void 0===a||a.unsubscribe(),this.dataserverStreamSubscription=void 0,yield e.destroy.call(this)}))}handleCurrentStreamLoad(e){var a,r;if(!e)return;const t=new Map;null===(a=e.inserts)||void 0===a||a.forEach((e=>{t.set(e[this.rowId],e)})),this.clientRowsCount+=null!==(r=e.inserts.length)&&void 0!==r?r:0,this.rowData=t}}class Cs extends zs{constructor(e){var a;super(e),this.createReqRepRequestFunc=e.createReqRepRequestFunc,(null===(a=e.resourceParams)||void 0===a?void 0:a.VIEW_NUMBER)||(this.resourceParams.VIEW_NUMBER=this.zeroBasedViewNumber?0:1)}getRows(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(yield this.setupFilteringAndSorting(e),this.pagination&&!this.isNewPageSize&&this.currentSequenceId>0)return void e.success(this.lastSuccessRowData);null!==this.currentSequenceId&&this.currentSequenceId>=0&&this.moreRows&&(this.pagination?this.resourceParams.VIEW_NUMBER=this.getPageNumber(e.request.startRow,this.maxRows,this.maxView):this.resourceParams.VIEW_NUMBER+=1);const a={DETAILS:{CRITERIA_MATCH:this.resourceParams.CRITERIA_MATCH,MAX_ROWS:this.resourceParams.MAX_ROWS,VIEW_NUMBER:this.resourceParams.VIEW_NUMBER}},r=yield this.createReqRepRequestFunc(a);let t=!1;if(-1!==r.NEXT_VIEW){const e=Object.assign(Object.assign({},a),{DETAILS:Object.assign(Object.assign({},a.DETAILS),{VIEW_NUMBER:r.NEXT_VIEW})});t=-1===(yield this.createReqRepRequestFunc(e)).NEXT_VIEW}let o=!0;o&&(this.applyServerSideData(e,r,t),o=!1)}))}applyServerSideData(e,a,r){var t;const o=a.MESSAGE_TYPE;if(o&&(o===Ul.Go.LOGOFF_ACK||o===Ul.Go.MSG_NACK))return void e.fail();if(this.moreRows=!r&&-1!==a.NEXT_VIEW&&a.NEXT_VIEW>this.resourceParams.VIEW_NUMBER,!a.REPLY){this.rowData=new Map;const a={rowData:[],rowCount:0};return void e.success(a)}this.handleCurrentStreamLoad(a.REPLY),this.currentSequenceId=this.resourceParams.VIEW_NUMBER,this.sourceRef=a.SOURCE_REF,this.serverRowsCount+=null!==(t=a.ROWS_COUNT)&&void 0!==t?t:this.rowData.size;const i={rowData:Array.from(this.rowData.values())};i.rowCount=this.getCorrectRowCount(e),this.lastSuccessRowData=i,e.success(i)}getCorrectRowCount(e){const a=this.moreRows?-1:e.request.startRow+this.serverRowsCount,r=e.request.endRow;this.calculatedRowsCount=this.serverRowsCount||r;const t=Math.min(a,this.maxView);let o;return this.pagination?(o=this.resourceParams.CRITERIA_MATCH?void 0:Math.min(a,this.maxView),this.resourceParams.CRITERIA_MATCH&&(o=t),!this.moreRows&&a>this.calculatedRowsCount&&(o=this.calculatedRowsCount),o):(r===a?o=a:r>this.maxView||r>this.calculatedRowsCount?o=Math.min(t,this.calculatedRowsCount):!this.moreRows&&a>this.calculatedRowsCount&&(o=this.calculatedRowsCount),o)}handleCurrentStreamLoad(e){if(!e||0==e.length)return;const a=new Map;e.forEach((e=>{const r=e[this.rowId];if(r)return void a.set(r,e);const t=`The specified rowId (${this.rowId}) is not present in the data. Since this is a snapshot (isSnapshot=true), an auto-generated UUID will be used. For custom identifiers, use the 'row-id' attribute.`;Jn.error(t);const o=this.uuid.createId();e[this.rowId]=o,a.set(o,e)})),this.rowData=a}}let $s=class extends(c(ps)){constructor(){super(...arguments),this.applyFuncName="applyServerSideTransaction",this.applyAsyncFuncName="applyServerSideTransactionAsync",this.pagination=!1,this.zeroBasedViewNumber=!1,this.liveUpdates=!1,this.request={}}resourceNameChanged(e,a){e&&e!==a&&b.DOM.queueUpdate((()=>(0,Xi.__awaiter)(this,void 0,void 0,(function*(){yield this.restart()}))))}criteriaChanged(e,a){const r=e!==(0,_l.Q)(a,";");this.ssrmDatasource&&r&&b.DOM.queueUpdate((()=>(0,Xi.__awaiter)(this,void 0,void 0,(function*(){yield this.reloadResourceData()}))))}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;b.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;b.DOM.queueUpdate((()=>(0,Xi.__awaiter)(this,void 0,void 0,(function*(){e&&(yield this.destroy())}))))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}reloadResourceData(e){var a,r,t,o,i,n;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(this.datasource.destroy(),null===(a=this.liveUpdatesStream)||void 0===a||a.unsubscribe(),this.liveUpdatesStream=void 0,this.clearRowData(null),e){const a=Object.assign(Object.assign({},this.datasourceOptions()),e);(yield this.datasource.init(a,!0,!1))||(null===(r=this.agGrid.gridApi)||void 0===r||r.setServerSideDatasource(null),Jn.error("Genesis Datasource re-init failed on filtering/sorting."))}else this.ssrmDatasource&&(yield this.ssrmDatasource.destroy(),this.ssrmDatasource=void 0),null===(t=this.agGrid.gridApi)||void 0===t||t.setServerSideDatasource(null),null===(o=this.agGrid.gridApi)||void 0===o||o.refreshServerSide({purge:!0}),null===(n=null===(i=this.agGrid)||void 0===i?void 0:i.gridApi)||void 0===n||n.showLoadingOverlay(),yield this.init()}))}init(){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid)return this.agGrid.gridOptions=Object.assign(Object.assign({getRowId:e=>e.data?e.data[this.rowId]:null,getRowStyle(e){var a,r;if(null===(r=null===(a=e.data)||void 0===a?void 0:a.ROW_REF)||void 0===r?void 0:r.includes("_deleted"))return{color:"grey"}},cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!1},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{},onPaginationChanged:e=>this.onPaginationChanged(e)},this.agGrid.agGridOptions),this.deferredGridOptions),this.agGrid.initGrid(),void this.agGrid.addEventListener(qn.sVA.EVENT_GRID_READY,(()=>(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(!(yield this.datasource.init(this.datasourceOptions(),!0,!1)))return Jn.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();this.$emit(ms),this.indexes=this.getResourceIndexes(this.datasource.availableIndexes);const e=(0,ws.X)(this.datasource.originalFieldDef),a=yield this.getAgColumnDefs(e);this.agGrid.gridApi.setColumnDefs(a),this.isRequestServer?this.ssrmDatasource=new Cs({createReqRepRequestFunc:this.createReqRepRequest.bind(this),reloadResourceDataFunc:this.reloadResourceData.bind(this),resourceName:this.resourceName,resourceParams:this.params,resourceIndexes:this.indexes,resourceColDefs:this.datasource.originalFieldDef,maxRows:+this.maxRows,maxView:+this.maxView,rowId:this.rowId,pagination:this.pagination,zeroBasedViewNumber:this.zeroBasedViewNumber}):this.ssrmDatasource=new Ss({createDataserverStreamFunc:this.createDataserverStream.bind(this),reloadResourceDataFunc:this.reloadResourceData.bind(this),resourceName:this.resourceName,resourceParams:this.params,resourceIndexes:this.indexes,resourceColDefs:this.datasource.originalFieldDef,maxRows:+this.maxRows,maxView:+this.maxView,rowId:this.rowId,pagination:this.pagination,zeroBasedViewNumber:this.zeroBasedViewNumber}),this.agGrid.gridApi.setServerSideDatasource(this.ssrmDatasource)}))),{once:!0});Jn.warn("Application not connected, falling back to local columnDefs/rowData")}))}onPaginationChanged(e){var a;this.agGrid.gridApi&&this.ssrmDatasource&&(this.ssrmDatasource.isNewPageSize=null!==(a=e.newPage)&&void 0!==a&&a)}destroy(){var e,a,r;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){this.datasource.destroy(),null===(e=this.liveUpdatesStream)||void 0===e||e.unsubscribe(),this.liveUpdatesStream=void 0,this.clearRowData(),this.ssrmDatasource&&(yield this.ssrmDatasource.destroy(),this.ssrmDatasource=void 0),null===(a=this.agGrid.gridApi)||void 0===a||a.setServerSideDatasource(null),null===(r=this.agGrid.gridApi)||void 0===r||r.refreshServerSide({purge:!0})}))}restart(){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){yield this.destroy(),this.init()}))}clearRowData(e=!0){var a,r,t,o;this.rowData=new Map,e&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),this.agTransaction={remove:[]},null===(t=this.agGrid.gridApi)||void 0===t||t.forEachNode((e=>{this.agTransaction.remove.push(e.data)})),null===(o=this.agGrid.gridApi)||void 0===o||o.applyServerSideTransaction(this.agTransaction),this.agTransaction=void 0}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));Jn.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 Jn.debug("Getting configured params:",e),e}get rowModel(){return this.agGrid.gridApi.getModel()}createReqRepRequest(e=null){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){return yield this.datasource.snapshot(e)}))}createDataserverStream(e=null){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(this.liveUpdates){const a=e=>(0,Xi.__awaiter)(this,void 0,void 0,(function*(){var a,r;if(e.MESSAGE_TYPE===Ul.Go.QUERY_UPDATE&&e.ROW){if(!this.ssrmDatasource)return;const t=(0,Hl.d)(e);this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(t.inserts),this.handleStreamUpdates(t.updates),this.handleStreamDeletes(t.deletes),e.SEQUENCE_ID>1&&(this.ssrmDatasource.clientRowsCount+=null!==(a=t.inserts.length)&&void 0!==a?a:0,this.ssrmDatasource.serverRowsCount+=null!==(r=t.inserts.length)&&void 0!==r?r:0),this.pagination?this.applyAllAgTransactions():setTimeout((()=>{this.applyAllAgTransactions()}),500)}})),r=e=>Jn.error(e);this.liveUpdatesStream=this.connect.stream(this.resourceName,(()=>{}),r,null!=e?e:this.params).subscribe((e=>a(e)))}return yield this.datasource.startStream(),this.datasource.stream}))}getAgColumnDefs(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const a=this.generateColumnDefsFromMetadata(e,ys);a.map((e=>({sortable:[].concat(...this.indexes.values()).includes(e.field)})));return yield this.agGrid.mergeAllColumnDefsAndStates(a,!0)}))}applyTransaction(e){return this.agGrid.gridApi.applyServerSideTransaction(e)}applyTransactionAsync(e,a){this.agGrid.gridApi.applyServerSideTransactionAsync(e,a)}};(0,Xi.__decorate)([(0,b.attr)({mode:"boolean"})],$s.prototype,"pagination",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"zero-based-view-number"})],$s.prototype,"zeroBasedViewNumber",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"live-updates"})],$s.prototype,"liveUpdates",void 0),(0,Xi.__decorate)([b.observable],$s.prototype,"request",void 0),$s=(0,Xi.__decorate)([(0,b.customElement)({name:"grid-pro-server-side-datasource"})],$s);const As='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIb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xCIR5uJZqyIJPoZ4J5LY+gKUazY6BSu5tYrnZWTNhtLC560Aq5pu1Hxm2ADhCAgVDfnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Ds='\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/bccgSgISTwjfXQjUrV14PoMQtmKBCWgyDBHwf3OlveyxK4GiKYHQ9exMZjK7zfz5ubvsYS5HlOOUECygAtoUiNcVVGUdsCPbVyXJV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mLupa1zydidnXR28WrEeFIi0yuxUrpl4IRi3MfIwiYrpuUi5oJwD9i9Vg702P6wdUszdjktjwNxUZEt27XAj6sav9i+rXY/0MHfoMaTL9f/w6kVcMrknc1sXmjMda7CqsA0MfB2wR8AI2WBEFne8bZ0xzW2VXY1V/6706+BWjIkbQpN/tnTALgAc7vDgx1qfjJv5u2LAzD6BbU37mdkSLdSf0dxr/7wGZfCIRm4QAk+T/hPz4obRlcNVfMDRbivHnAf0dKvvBBU9agR+tgN2OI0gMN5QV7SP3X4k4KtnOEIWYAiOBM19wg2rAALFxAASYMHZFUKDCEoE9R28SNkSfIBTwhNvCluj3xBFsY3cfDWv+JdwbB/OoolfpN7gaFafH857nP3AJhMNtaHje9b0BAisBM8zHoSzuTsQOlikNr4R2RTHSkJneQcvkRfL9dVipf8GTprRSnDcsMB4pkX9RsX6DnVVFb9ZYYZJ86z/YisKrRtDg1uRGUXmTqNy+IoCxZse9VSzP1h0JLWuIHEZSIl+NMkURQ0FPMhc774D27YnXsLP7/6iYkVW1J9oIX6KSU000uMDhG4PRZLZYbXaHH/61X+r8mc5sLl8olsqVaq3eaLbanW6vPxiOxpPpbL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Ts={[Ki.alpine]:As,[Ki.alpineDark]:As,[Ki.balham]:Ds,[Ki.balhamDark]:Ds,[Ki.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+OijiJbjLIFu66IFGspLEKaV6ZGt0yBLLRkv9IKWVUFo5LRPqqqI8sJLSUWjLIguMFlIyueuV2UTFV3T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+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},Os=As,Fs=b.css`
|
|
2209
|
+
`;let Gl=class extends(c(v.FoundationElement)){constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}deepClone(){const e=super.deepClone();return e.definition={},this.definition&&Object.keys(this.definition).forEach((a=>{"function"==typeof this.definition[a]?e.definition[a]=this.definition[a].bind(e):e.definition[a]=structuredClone(this.definition[a])})),e}};(0,Xi.__decorate)([b.observable],Gl.prototype,"slottedAgCell",void 0),(0,Xi.__decorate)([b.observable],Gl.prototype,"definition",void 0),Gl=(0,Xi.__decorate)([(0,b.customElement)({name:"grid-pro-column",template:Bl})],Gl);var Ul=r(6884),_l=r(96730),Hl=r(21281),Vl=r(34193),Yl=r(40113),Ql=r(9033),Wl=r(97156),ql=r(56607),Jl=r(10629),Zl=r(41392),Kl=r(92453),Xl=r(2773),eg=r(40370),ag=r(39087),rg=r(41119),tg=r(17465),og=r(12066);function ig(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 ng(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn"}}function lg({value:e}){return(0,og.CL)(e)}function gg({value:e}){return(0,og.zT)(e)}const sg="datasource-error-close",dg="datasource";class cg extends((0,eg.C)(v.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Ul.OD.MAX_ROWS_250,this.maxView=Ul.OD.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1,this.isRequestServer=!1}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Ul.OD.REQUEST_SERVER_ROW_ID:Ul.OD.DATASERVER_ROW_ID}get hasDefaultRowId(){return!this.rowIdAttr||this.rowIdAttr===Ul.OD.REQUEST_SERVER_ROW_ID||this.rowIdAttr===Ul.OD.DATASERVER_ROW_ID}get defaultRowIdByResourceType(){return this.isRequestServer?Ul.OD.REQUEST_SERVER_ROW_ID:Ul.OD.DATASERVER_ROW_ID}datasourceStatusChanged(e,a){this.isRequestServer=a.type===ag.v.REQUEST_SERVER}get agGrid(){return this.parentElement}}var pg;(0,Xi.__decorate)([s.dm],cg.prototype,"connect",void 0),(0,Xi.__decorate)([b.observable],cg.prototype,"deferredGridOptions",void 0),(0,Xi.__decorate)([b.observable],cg.prototype,"deferredColumnStates",void 0),(0,Xi.__decorate)([b.observable],cg.prototype,"rowDataMapper",void 0),(0,Xi.__decorate)([b.attr],cg.prototype,"criteria",void 0),(0,Xi.__decorate)([b.attr],cg.prototype,"fields",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"is-snapshot"})],cg.prototype,"isSnapshot",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"max-rows"})],cg.prototype,"maxRows",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"max-view"})],cg.prototype,"maxView",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"moving-view"})],cg.prototype,"movingView",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"order-by"})],cg.prototype,"orderBy",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"resource-name"})],cg.prototype,"resourceName",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean"})],cg.prototype,"reverse",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"row-id"})],cg.prototype,"rowIdAttr",void 0),function(e){e.Add="add",e.Update="update",e.Remove="remove"}(pg||(pg={}));class ug extends cg{constructor(){super(...arguments),this.dataSubWasLoggedOff=!1,this.rowData=new Map,this.agTransaction={add:[],remove:[],update:[]}}generateColumnDefsFromMetadata(e,a){return null==e?void 0:e.flatMap((e=>{var r;const t={};switch(t.filterParams=a(e.type),e.type){case rg.w.STRING:t.cellEditor=ln.stringEditor;break;case rg.w.NUMBER:t.cellEditor=ln.numberEditor;break;case rg.w.BOOLEAN:this.agGrid.autoCellRendererByType&&(t.cellRenderer=ln.boolean,t.cellEditor=ln.boolean);break;case rg.w.DATE:t.valueFormatter=lg,t.cellEditor=ln.dateEditor;break;case rg.w.DATETIME:t.valueFormatter=gg,t.cellEditor=ln.dateEditor,t.cellEditorParams={withTime:!0};break;case rg.w.ENUM:e.enumOptions?(t.cellEditor=ln.selectEditor,t.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}):tg.v.warn(`No enumOptions found for field ${e.name}. Default cell editor applied.`)}const o=null===(r=this.agGrid.gridApi)||void 0===r?void 0:r.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:ng(e.type),filter:ig(e.type)},t),o)}))}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rowData.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rowData.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.rowData.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{if(this.hasDefaultRowId||this.isRequestServer)this.agTransaction.remove.push({[this.rowId]:e[this.rowId]});else{const a=Object.values(Object.fromEntries(this.rowData)).find((a=>a[this.defaultRowIdByResourceType]===e[this.defaultRowIdByResourceType]));this.agTransaction.remove.push({[this.rowId]:a[this.rowId]})}this.rowData.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{let a;if(this.hasDefaultRowId||this.isRequestServer){const r=this.rowData.get(e[this.rowId]);a=Object.assign(Object.assign({},r),e),this.agTransaction.update.push(a)}else{const r=Object.values(Object.fromEntries(this.rowData)).find((a=>a[this.defaultRowIdByResourceType]===e[this.defaultRowIdByResourceType]));a=Object.assign(Object.assign({},r),e),this.agTransaction.update.push(a)}this.rowData.set(e[this.rowId],a)}))}applyAllAgTransactions(){var e,a,r;if(!this.agTransaction.add.length&&!this.agTransaction.update.length&&!this.agTransaction.remove.length)return this.agGrid.gridApi.hideOverlay(),void(0===this.rowData.size&&this.agGrid.gridApi.showNoRowsOverlay());(null===(e=this.agTransaction.add)||void 0===e?void 0:e.length)>0&&this.applyMappedAgTransaction({add:this.agTransaction.add,addIndex:this.agGrid.addIndex},pg.Add,this.agGrid.asyncAdd),(null===(a=this.agTransaction.remove)||void 0===a?void 0:a.length)>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},pg.Remove,this.agGrid.asyncRemove),(null===(r=this.agTransaction.update)||void 0===r?void 0:r.length)>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},pg.Update,this.agGrid.asyncUpdate)}flashAddedCells(e){this.agGrid.enableRowFlashing&&(null==e?void 0:e.length)&&this.agGrid.gridApi.flashCells({rowNodes:e})}applyMappedAgTransaction(e,a,r){if(r)this.applyTransactionAsync(this.mapTransaction(e,[a]),(e=>{this.flashAddedCells(e.add)}));else{const r=this.applyTransaction(this.mapTransaction(e,[a]));this.flashAddedCells(r.add)}}applyTransaction(e){throw new Error("Method not implemented.")}applyTransactionAsync(e,a){throw new Error("Method not implemented.")}mapTransaction(e,a=Object.values(pg)){if(!this.rowDataMapper)return e;const r={};return a.includes(pg.Add)&&(r.add=this.rowDataMapper(e.add,this.rowData)),a.includes(pg.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rowData)),a.includes(pg.Update)&&(r.update=this.rowDataMapper(e.update,this.rowData)),r}}class hg{constructor(){this.rowData=new Map}}function mg(e){switch(e){case rg.w.DATE:case rg.w.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}}}const bg="datasource-error",vg="datasource-init",fg="datasource-size-changed";let wg=class extends(c(ug)){constructor(){super(...arguments),this.applyFuncName="applyTransaction",this.applyAsyncFuncName="applyTransactionAsync",this.pollingInterval=Ul.OD.REQ_REP_POLLING_INTERVAL_MS,this.disablePolling=!1,this.restartOnReconnection=!1,this.keepColDefsOnClearRowData=!1,this.requiresFullRowDataAndColDefs=!0,this.criteriaFromFilters=new Map,this.update=new Wl.t(new Map)}criteriaChanged(e,a){const r=e!==(0,_l.Q)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}requestChanged(e,a){const r=e!==a;this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;b.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;b.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions={},this.deferredGridOptions&&Object.keys(this.deferredGridOptions).forEach((a=>{"function"==typeof this.deferredGridOptions[a]?e.deferredGridOptions[a]=this.deferredGridOptions[a].bind(e):"columnDefs"===a&&this.deferredGridOptions[a].length?e.deferredGridOptions[a]=this.colDefsDeepClone(a,e):e.deferredGridOptions[a]=structuredClone(this.deferredGridOptions[a])})),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}colDefsDeepClone(e,a){return this.deferredGridOptions[e].map((e=>{const r={};return Object.keys(e).forEach((t=>{"function"==typeof e[t]?r[t]=e[t].bind(a):r[t]=structuredClone(e[t])})),r}))}init(e,a){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid&&this.datasource.validResourceName(this.resourceName)){const r=Object.assign(Object.assign(Object.assign({getRowId:e=>e.data[this.rowId]},e&&{columnDefs:e}),this.agGrid.agGridOptions),this.deferredGridOptions);this.agGrid.gridOptions=Object.assign({},r),this.agGrid.initGrid(),this.agGrid.addEventListener("onGridReady",(()=>(0,Xi.__awaiter)(this,void 0,void 0,(function*(){a&&this.agGrid.columnApi.applyColumnState({state:a}),yield this.loadResourceData()}))),{once:!0});const t=600;this.updateSub=this.update.pipe((0,Jl.i)(1),(0,Zl.B)(t),(0,Kl.M)((e=>Jn.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else this.handleErrors("Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.")}))}deinit(){this.reset()}reset(){var e;Jn.debug("GridProGenesisDatasource.reset()",this.resourceName),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.clearRowData(),this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,null===(e=this.update)||void 0===e||e.unsubscribe(),this.update=new Wl.t(new Map),this.agGrid.removeAttribute("ds-disconnected"),this.datasource.deinit()}restart(){let e,a;this.keepColDefsOnClearRowData&&(e=this.agGrid.gridApi.getColumnDefs(),a=this.agGrid.columnApi.getColumnState()),this.deinit(),this.init(e,a)}refreshRows(){this.setRowData(Array.from(this.rowData.values()))}clearRowData(e=!0){var a,r,t,o;this.rowData=new Map,this.agTransaction=void 0,e&&!this.keepColDefsOnClearRowData&&(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;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const r=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDefs();if(!r||0===r.length){const e=yield this.getAgColumnDefs(this.datasource.fieldMetadata);e&&(e.forEach((e=>{e.rowGroup||(e.rowGroup=null),e.pivot||(e.pivot=null)})),this.agGrid.gridApi.setColumnDefs(e))}const t=this.rowDataMapper?this.rowDataMapper(e):e;this.agGrid.restoreCachedFilterConfig(),this.agTransaction={add:[...t],remove:[],update:[],addIndex:0},this.applyAllAgTransactions(),this.requiresFullRowDataAndColDefs=!1}))}reloadResourceData(){var e,a;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){Jn.debug("GridProGenesisDatasource.reloadResourceData()",this.resourceName),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.clearRowData(null),null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.showLoadingOverlay(),this.agGrid.removeAttribute("ds-disconnected"),this.loadResourceData(null)}))}loadResourceData(e=!0){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;try{if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Jn.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();if(this.$emit(vg),this.isSnapshot){const e=yield this.datasource.snapshot();if(e){const a=this.handleSnapshot(e);this.setRowData(a)}return}Jn.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.pipe((0,Xl.W)((e=>{var a;return this.handleErrors(null===(a=null==e?void 0:e.receivedMessage)||void 0===a?void 0:a.ERROR.join(", ")),ql.w}))).subscribe((e=>{(null==e?void 0:e.ERROR)&&this.handleErrors(e.ERROR.join(", "));const a=e.MESSAGE_TYPE;if(a&&a===Hl.Go.LOGOFF_ACK)return this.handleErrors(`Genesis datasource for ${this.resourceName} disconnected.`),void(this.dataSubWasLoggedOff=!0);if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Vl.d)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}catch(e){let{message:a}=e;e.receivedMessage&&(a=e.receivedMessage.ERROR),Jn.error(a),this.handleErrors(a)}}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Vl.d)(e).inserts:e.inserts}handleErrors(e){this.agGrid&&this.agGrid.setAttribute("ds-disconnected","ds-disconnected"),e&&(Jn.warn(e),this.$emit(bg,{message:e}))}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=this.rowData.size,t=e.REPLY;if(!Array.isArray(t)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void Jn.error("received invalid RequestServerResult",e);if(this.requiresFullRowDataAndColDefs){null==t||t.forEach((e=>{this.rowData.set(e[this.rowId],e)}));const e=this.rowData.size>0?Array.from(this.rowData.values()):t;return this.handleSizeChanged(r,this.rowData.size),void this.setRowData(e)}const o=[],i=Array.from(this.rowData.values()).filter((e=>{const a=t.find((a=>a[this.rowId]===e[this.rowId]));return!a||(o.push(a),!1)})),n=t.filter((e=>!this.rowData.has(e[this.rowId])));this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(n),this.handleStreamDeletes(i),this.handleStreamUpdates(o),this.applyAllAgTransactions(),this.handleSizeChanged(r,this.rowData.size)}applyDataserverData(e){var a;const r=this.rowData.size;if(this.requiresFullRowDataAndColDefs){null===(a=e.inserts)||void 0===a||a.forEach((e=>{this.rowData.set(e[this.rowId],e)}));const t=Array.from(this.rowData.values());return this.setRowData(t),void this.handleSizeChanged(r,this.rowData.size)}this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(e.inserts),this.handleStreamDeletes(e.deletes),this.handleStreamUpdates(e.updates),this.applyAllAgTransactions(),this.handleSizeChanged(r,this.rowData.size)}getAgColumnDefs(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const a=this.generateColumnDefsFromMetadata(e,mg);return yield 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,_l.Q)(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)}applyTransaction(e){return this.agGrid.gridApi.applyTransaction(e)}applyTransactionAsync(e,a){this.agGrid.gridApi.applyTransactionAsync(e,a)}handleSizeChanged(e,a){e!==a&&this.$emit(fg,{value:a,oldValue:e})}};(0,Xi.__decorate)([Yl.N],wg.prototype,"auth",void 0),(0,Xi.__decorate)([Ql.yW],wg.prototype,"datasource",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"polling-interval"})],wg.prototype,"pollingInterval",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"disable-polling"})],wg.prototype,"disablePolling",void 0),(0,Xi.__decorate)([b.observable],wg.prototype,"request",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],wg.prototype,"restartOnReconnection",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"keep-col-defs-on-clear-row-data"})],wg.prototype,"keepColDefsOnClearRowData",void 0),wg=(0,Xi.__decorate)([(0,b.customElement)({name:"grid-pro-genesis-datasource"})],wg);let yg=class extends wg{};yg=(0,Xi.__decorate)([(0,b.customElement)({name:"grid-pro-client-side-datasource"})],yg);var xg=r(48707);function kg(e){switch(e){case rg.w.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 rg.w.DATE:case rg.w.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 rg.w.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"]}}}class zg extends hg{constructor(e){super(),this.server_ROWS_COUNT=0,this.client_ROWS_COUNT=0,this.moreRows=!1,this.calculatedRowsCount=0,this.lastSequenceId=0,this.createDataserverStreamFunc=e.createDataserverStreamFunc,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,Xi.__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);if(i||t){if(o&&this.currentFilterModel)return this.currentFilterModel=null,this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,void(yield this.refreshDatasource(e));if(i&&t)return this.currentFilterModel=r,this.resourceParams.CRITERIA_MATCH=this.buildCriteriaMatchFromFilters(),void(yield this.refreshDatasource(e))}const n=e.request.sortModel;if((null===(a=this.currentSortModel)||void 0===a?void 0:a.length)!==n.length||n.length>0){if(0===n.length&&this.currentSortModel)return this.calculatedRowsCount=0,this.currentSortModel=null,this.resourceParams.ORDER_BY=null,this.resourceParams.REVERSE=null,void(yield this.refreshDatasource(e));if(n.length>0){this.currentSortModel=n;const a=n[0].colId,r=n[0].sort,t=this.getOrderByAndToBeSortedColIds(this.resourceIndexes,a);if(!t){this.calculatedRowsCount=0;const a=function(e){const a=[];for(const[r]of e)r&&a.push(r);return a}(this.resourceIndexes),r=function(e){const a=[];function r(e){for(const r of e)null!==r&&a.push(r)}for(const[a,t]of e)null!==a&&null!==t&&r(t);return a}(this.resourceIndexes);return Jn.warn("The FIELD/column (${coldIdBeingSorted}) being sorted is not part of an INDEX, required for the [orderBy] operation. See https://learn.genesis.global/docs/database/data-types/index-entities/"),Jn.debug("Available indexes:",a),Jn.debug("Columns that can be sorted with the available indexes:",r),void e.fail()}if(JSON.stringify(n)!==JSON.stringify(this.currentSortModel))return this.resourceParams.ORDER_BY=t.orderBy,this.resourceParams.REVERSE="desc"===r,void(yield this.refreshDatasource(e))}}this.moreRows&&e.request.startRow>=Number(this.maxRows)&&this.connect.getMoreRows(this.streamSourceRef),this.dataserverStream||(this.dataserverStream=yield this.createDataserverStreamFunc(this.resourceParams));let l=!0;this.dataserverStreamSubscription=this.dataserverStream.subscribe((a=>{l&&(this.applyServerSideData(e,a),l=!1)}))}))}applyServerSideData(e,a){var r;const t=a.MESSAGE_TYPE;if(t&&(t===Hl.Go.LOGOFF_ACK||t===Hl.Go.MSG_NACK))return void e.fail();if(this.moreRows=a.MORE_ROWS,!a.ROW){this.rowData=new Map;const a={rowData:[],rowCount:0};return void e.success(a)}{const e=(0,Vl.d)(a);this.handleCurrentStreamLoad(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);const o={rowData:Array.from(this.sortMapByNumericKey(this.rowData).values()),rowCount:this.pagination&&!this.resourceParams.CRITERIA_MATCH?Math.min(this.server_ROWS_COUNT,this.maxView):void 0};this.calculatedRowsCount=this.client_ROWS_COUNT,0===this.calculatedRowsCount&&(this.calculatedRowsCount=e.request.endRow),e.request.endRow>this.maxView||e.request.endRow>this.calculatedRowsCount?o.rowCount=this.calculatedRowsCount:e.request.endRow===this.server_ROWS_COUNT?o.rowCount=this.server_ROWS_COUNT:!this.moreRows&&this.server_ROWS_COUNT>this.calculatedRowsCount&&(o.rowCount=this.calculatedRowsCount),e.success(o)}sortMapByNumericKey(e){const a=Array.from(e.entries()).sort((([e],[a])=>+a-+e));return new Map(a)}deinit(){var e;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){this.rowData=new Map,this.client_ROWS_COUNT=0,this.calculatedRowsCount=0,this.server_ROWS_COUNT=0,this.dataserverStream=void 0,null===(e=this.dataserverStreamSubscription)||void 0===e||e.unsubscribe(),this.dataserverStreamSubscription=void 0,this.streamSourceRef=void 0}))}refreshDatasource(e){var a;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){yield this.deinit(),null===(a=e.api)||void 0===a||a.refreshServerSide({purge:!0}),e.fail()}))}getOrderByAndToBeSortedColIds(e,a){for(const[r,t]of e.entries()){const e=t.findIndex((e=>e===a));if(-1!==e){return{orderBy:r,toBeSorted:[...t].splice(e,1)}}}}handleCurrentStreamLoad(e){var a;if(!e)return;const r=new Map;null===(a=e.inserts)||void 0===a||a.forEach((e=>{r.set(e[this.rowId],e)})),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,Xi.__decorate)([Yl.N],zg.prototype,"auth",void 0),(0,Xi.__decorate)([s.dm],zg.prototype,"connect",void 0);let Sg=class extends(c(ug)){constructor(){super(...arguments),this.applyFuncName="applyServerSideTransaction",this.applyAsyncFuncName="applyServerSideTransactionAsync",this.pagination=!1}criteriaChanged(e,a){const r=e!==(0,_l.Q)(a,";");this.ssrmDatasource&&r&&this.reloadResourceData()}reloadResourceData(){var e,a,r;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){this.clearRowData(null),this.ssrmDatasource.streamSourceRef=void 0,this.ssrmDatasource=void 0,null===(e=this.agGrid.gridApi)||void 0===e||e.refreshServerSide({purge:!0}),null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.showLoadingOverlay(),this.init()}))}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;b.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;b.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}deinit(){var e;this.clearRowData(),this.ssrmDatasource.deinit(),this.ssrmDatasource=void 0,this.originalFieldDef=void 0,null===(e=this.agGrid.gridApi)||void 0===e||e.refreshServerSide({purge:!0})}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions=Object.assign(Object.assign({getRowId:e=>e.data?e.data[this.rowId]:null,getRowStyle(e){var a,r;if(null===(r=null===(a=e.data)||void 0===a?void 0:a.ROW_REF)||void 0===r?void 0:r.includes("_deleted"))return{color:"grey"}},cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!1},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{}},this.agGrid.agGridOptions),this.deferredGridOptions),this.agGrid.initGrid(),void this.agGrid.addEventListener("onGridReady",(()=>(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Jn.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,xg.a)(e);const a=(0,xg.X)(this.originalFieldDef),r=yield this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r),this.ssrmDatasource=new zg({createDataserverStreamFunc:this.createDataserverStream.bind(this),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.ssrmDatasource)}))),{once:!0});Jn.warn("Application not connected, falling back to local columnDefs/rowData")}restart(){this.deinit(),this.init()}clearRowData(e=!0){var a,r,t,o;this.rowData=new Map,e&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),this.agTransaction={remove:[]},null===(t=this.agGrid.gridApi)||void 0===t||t.forEachNode((e=>{this.agTransaction.remove.push(e.data)})),null===(o=this.agGrid.gridApi)||void 0===o||o.applyServerSideTransaction(this.agTransaction),this.agTransaction=void 0}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));Jn.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 Jn.debug("Getting configured params:",e),e}get rowModel(){return this.agGrid.gridApi.getModel()}createDataserverStream(e=null){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const a=e=>(0,Xi.__awaiter)(this,void 0,void 0,(function*(){var a;if(e.MESSAGE_TYPE===Hl.Go.QUERY_UPDATE&&e.ROW){if(!this.ssrmDatasource)return;const r=(0,Vl.d)(e);if(this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(r.inserts),this.handleStreamDeletesTemp(r.deletes),this.handleStreamUpdates(r.updates),this.ssrmDatasource.client_ROWS_COUNT+=null!==(a=r.inserts.length)&&void 0!==a?a:0,e.SEQUENCE_ID>1){const e=yield this.connect.snapshot(this.resourceName,{MAX_ROWS:1,MAX_VIEW:1,CRITERIA_MATCH:this.criteria});this.ssrmDatasource.server_ROWS_COUNT=e.ROWS_COUNT}this.applyAllAgTransactions()}}));return this.connect.stream(this.resourceName,(e=>{a(e)}),(e=>Jn.error(e)),null!=e?e:this.params)}))}handleStreamDeletesTemp(e){e&&e.forEach((e=>{const a=this.agGrid.gridApi.getRowNode(e.ROW_REF);a&&a.setData(Object.assign(Object.assign({},a.data),{ROW_REF:e.ROW_REF+"_deleted"}))}))}getAgColumnDefs(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const a=this.generateColumnDefsFromMetadata(e,kg);a.map((e=>({sortable:[].concat(...this.indexes.values()).includes(e.field)})));return yield this.agGrid.mergeAllColumnDefsAndStates(a,!0)}))}applyTransaction(e){return this.agGrid.gridApi.applyServerSideTransaction(e)}applyTransactionAsync(e,a){this.agGrid.gridApi.applyServerSideTransactionAsync(e,a)}};(0,Xi.__decorate)([(0,b.attr)({mode:"boolean"})],Sg.prototype,"pagination",void 0),Sg=(0,Xi.__decorate)([(0,b.customElement)({name:"grid-pro-server-side-datasource"})],Sg);const Cg='\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/Z2hfQ8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6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',$g='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKr0ynOAE2AiQDghgLgQ4ABCAFhEYHhF0bXiRFpNekVVHJ/j8kcGOoVAN7L8rdRUEn6ZRdEY4cPSsWsYa1Wb2Sgi2cP95lTgmTT/ndiPe/iFyfMpSSB+B++a5qUUJ3i2yOTKBKGtAEZjDQ/79r5Z9JJgO0QJTwIt61qrKvDlDoCuP7P/w2/773RBsEC9gwEHQ884EFwsNiYDQqizIKCyNh1ayqcJH+M1lE4yJZuf0JLTfgdHNvseRobBRAwGBuVQKzJwnlrC2j0h1WndeaR8acU+fTftMv+IgvtuJeOZP9qfnXXNJ/nz0sdsqYLX3/bccgSgISTwjfXQjUrV14PoMQtmKBCWgyDBHwf3OlveyxK4GiKYHQ9exMZjK7zfz5ubvsYS5HlOOUECygAtoUiNcVVGUdsCPbVyXJVdq6VlVYXag55WB04UExdSgEyFx64PjfUGqRahgfQwg7jwHtGrcjBKQJJ/bgK00N1IOvjTXAhgXLh8BxyNDB37JRYL9LhiV1QrwwR50h0fNZo4upSKP1G3fY5KMN9MMe3sN4OhhLiIUWJ7xbpSRFM2wEx2lLKwiysi6oyClzCg99Ec8TxilXY4ea+YgngzqZGPlo74Ign50j7RGuKl8qDZ8x4lCYLQkLtAgHOb6bcEcrG9Rqe+gsz8FVCONktVNlOA7WhI08pMz03cK7oYJ29T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gMN5QV7SP3X4k4KtnOEIWYAiOBM19wg2rAALFxAASYMHZFUKDCEoE9R28SNkSfIBTwhNvCluj3xBFsY3cfDWv+JdwbB/OoolfpN7gaFafH857nP3AJhMNtaHje9b0BAisBM8zHoSzuTsQOlikNr4R2RTHSkJneQcvkRfL9dVipf8GTprRSnDcsMB4pkX9RsX6DnVVFb9ZYYZJ86z/YisKrRtDg1uRGUXmTqNy+IoCxZse9VSzP1h0JLWuIHEZSIl+NMkURQ0FPMhc774D27YnXsLP7/6iYkVW1J9oIX6KSU000uMDhG4PRZLZYbXaHH/61X+r8mc5sLl8olsqVaq3eaLbanW6vPxiOxpPpbL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Ag={[Ki.alpine]:Cg,[Ki.alpineDark]:Cg,[Ki.balham]:$g,[Ki.balhamDark]:$g,[Ki.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKoQibUgE2AiQDgiQLgRQABCAFhF4HhQQbwx4zozZKkzKjKAuTKdl/nWDK2JwGzwo8TIbdeYNAtGkxGg6xYzGz3JUMFWCLQoUjcyveKfPZ/H3KUMoL2rS9u+gRJeZcVAgRJ5CkLZEpR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iBPQ/2Ugu2tpIOYYTNGkgep5wLxqTcmEdDTRwOxmqQkSDiU2nYslVDeiYiJ5Hy6isjNAuIMrBajAztCPqTpoGXVdGhPRfgO5R+pfnnArLxH9MGJgaACk2fXtioS/s0VOdhi3FfruLh0Rws4hf8ALfEC3Jb3n184cYrKS/MPVNBMq9DYCjp9X6Z9e0oKFsiISE7KsURfRhufcWi/6lkahiUW93Urmrl7NX6PouYTIBxsxfJrEa7vGPWqb3X7VC73+TVp35H17D4ACTtvwO51/ftuvwpfwbCfYTKEqA+B19jTBcROJd/EYpgam57W5yzRsklOnTtE0/b8ro71Rd44RT85pJMUZusvADGu0G1Xw/mbjxRXSG0wLw3hCB9ckfqdCA6LvneDVqPhClJRbjb18VPnRGGrc6N8rsDVJSitxWozffuIuRdzcdrpzbESxF+FqzpahiqHiKWWweIOPrzlDAZPcm4aqcqu4YLfI13gjKBV2vhyVIoQd9GMAQRjD+IUBnYL/D/csm7U631x8MR+PJdDZfLFfrzXa3PxxP58v1dn88qSQrqqYbpmU7rucHoWeee+GlV15746133q/tS5cX9KCBaQ1GeFqW4Zg1U2QwrpobRA+mNJrHnmftPgPtWeo8gSwqSgoEikd5CZWUvDsmkaXNIdZf1h9STVS2TEgFjKJdMcnzVTNcyrI544rdxazid93wxsRk0HxSu4k/tiVCGZajrDXX8WrhVftJ0RU/Ia/64ZpXjoa13dvpWmwq9WLXY8AG8hupZiGFJ1xJm+qGkTLRCYVwm6ItxMhTxKzms6NxGWFaV4+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},Og=Cg,Dg=b.css`
|
|
2210
2210
|
.ag-icon {
|
|
2211
2211
|
font-family: var(--ag-icon-font-family);
|
|
2212
2212
|
font-size: var(--ag-icon-size);
|
|
@@ -9383,7 +9383,7 @@
|
|
|
9383
9383
|
input[class^='ag-'][type='range']:disabled {
|
|
9384
9384
|
opacity: 0.5;
|
|
9385
9385
|
}
|
|
9386
|
-
`,
|
|
9386
|
+
`,Tg=b.css`
|
|
9387
9387
|
.ag-dnd-ghost {
|
|
9388
9388
|
background: var(--ag-header-background-color, var(--ag-background-color, #1f2126));
|
|
9389
9389
|
border: solid 1px;
|
|
@@ -9400,7 +9400,7 @@
|
|
|
9400
9400
|
overflow: hidden;
|
|
9401
9401
|
text-overflow: ellipsis;
|
|
9402
9402
|
}
|
|
9403
|
-
`,
|
|
9403
|
+
`,Fg=b.css`
|
|
9404
9404
|
.ag-theme-alpine,
|
|
9405
9405
|
.ag-theme-alpine-dark {
|
|
9406
9406
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -9850,7 +9850,7 @@
|
|
|
9850
9850
|
.ag-theme-alpine-dark {
|
|
9851
9851
|
color-scheme: dark;
|
|
9852
9852
|
}
|
|
9853
|
-
`,
|
|
9853
|
+
`,Rg=b.css`
|
|
9854
9854
|
.ag-theme-balham,
|
|
9855
9855
|
.ag-theme-balham-dark {
|
|
9856
9856
|
--ag-balham-active-color: #0091ea;
|
|
@@ -10120,7 +10120,7 @@
|
|
|
10120
10120
|
.ag-theme-balham-dark {
|
|
10121
10121
|
color-scheme: dark;
|
|
10122
10122
|
}
|
|
10123
|
-
`,
|
|
10123
|
+
`,Ng=b.css`
|
|
10124
10124
|
.ag-theme-material {
|
|
10125
10125
|
--ag-material-primary-color: #3f51b5;
|
|
10126
10126
|
--ag-material-accent-color: #ff4081;
|
|
@@ -10385,14 +10385,14 @@
|
|
|
10385
10385
|
.ag-theme-material .ag-picker-field-wrapper:focus {
|
|
10386
10386
|
box-shadow: 0 0 0 1px var(--ag-material-primary-color);
|
|
10387
10387
|
}
|
|
10388
|
-
`,
|
|
10389
|
-
${
|
|
10390
|
-
${
|
|
10391
|
-
${
|
|
10392
|
-
${
|
|
10393
|
-
${
|
|
10394
|
-
`,
|
|
10395
|
-
${
|
|
10388
|
+
`,Lg=b.css`
|
|
10389
|
+
${Dg}
|
|
10390
|
+
${Tg}
|
|
10391
|
+
${Fg}
|
|
10392
|
+
${Rg}
|
|
10393
|
+
${Ng}
|
|
10394
|
+
`,Mg=b.css`
|
|
10395
|
+
${Lg}
|
|
10396
10396
|
:host {
|
|
10397
10397
|
--datasource-error-background-color: var(--neutral-layer-4);
|
|
10398
10398
|
--datasource-error-background-opacity: 0.5;
|
|
@@ -10449,7 +10449,7 @@
|
|
|
10449
10449
|
opacity: var(--datasource-error-background-opacity);
|
|
10450
10450
|
z-index: 1;
|
|
10451
10451
|
}
|
|
10452
|
-
`,
|
|
10452
|
+
`,Ig=(e="foundation")=>b.html`
|
|
10453
10453
|
<template>
|
|
10454
10454
|
<span part="grid" class="${e=>e.classNames}">
|
|
10455
10455
|
<slot name="grid" ${(0,b.ref)("gridSlot")}></slot>
|
|
@@ -10458,7 +10458,7 @@
|
|
|
10458
10458
|
<slot
|
|
10459
10459
|
name="grid-datasource-error"
|
|
10460
10460
|
part="grid-datasource-error"
|
|
10461
|
-
class="${e=>e.gridErrorItems.filter((({type:e})=>e===
|
|
10461
|
+
class="${e=>e.gridErrorItems.filter((({type:e})=>e===dg)).length>0?"":"hidden"}"
|
|
10462
10462
|
>
|
|
10463
10463
|
<${e}-dialog
|
|
10464
10464
|
class="grid-datasource-error-dialog"
|
|
@@ -10483,7 +10483,7 @@
|
|
|
10483
10483
|
</${e}-dialog>
|
|
10484
10484
|
</slot>
|
|
10485
10485
|
</template>
|
|
10486
|
-
`,Ps=js();var Bs=r(98316);class Gs{getColumnState(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return[]}))}saveColumnState(e,a){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}getFilterModel(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return{}}))}saveFilterModel(e,a){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}}(0,Xi.__decorate)([Bs.N],Gs.prototype,"session",void 0);const _s=v.DI.createInterface((e=>e.singleton(Gs)));class Us{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 Hs(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}qn.syG.registerModules([Fl.n7,Ol.Q]);const Vs=qn.kNx.ALL_PROPERTIES.filter((e=>"rowData"!==e));class Ys extends(c(v.FoundationElement)){rowDataChanged(e,a){this.initialised&&this.gridApi.setRowData(a)}themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Ml.x)(on(a),a),this.insertFontFace(a)}getfilterModel(){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)}))}setFilterModel(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){this.persistFilterModelKey?yield this.statePersistence.saveFilterModel(this.persistFilterModelKey,e):this._filterConfig=e}))}constructor(){super(),this.gridErrorItems=[],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=Os,this.columnComponentName="grid-pro-column",this.theme=Ki.alpine,this.rehydrationAttempted=!1,this.rootEventsListeners=[],this.gridEventsQueue=[],this._filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Vs.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[tl(a)]=a,e)),{});const e=this.hideDatasourceError.bind(this);this.rootEventsListeners.push({key:ms,action:e},{key:ss,action:e},{key:hs,action:this.handleError.bind(this,gs)})}addEventListener(e,a,r){const t=e.startsWith("on")?e:`on${e.charAt(0).toUpperCase()+e.slice(1)}`;super.addEventListener(t,a,r),qn.kNx.PUBLIC_EVENTS.includes(t)&&(this.gridApi?this.addGridEventListener(t):this.gridEventsQueue.push(t))}addGridEventListener(e){this.gridApi.addEventListener(e,(a=>{this.$emit(e,a)}))}handleError(e,a){this.gridErrorItems=[...this.gridErrorItems,{detail:a.detail,type:e}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter((e=>e.type!==gs))}connectedCallback(){super.connectedCallback(),this.gridAutosizingEnabled&&(0,Rl.j)(this,(e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.rehydrationAttempted=!1,this.shouldRunConnect&&(Vs.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(tl(e),void 0,a)},enumerable:!0,configurable:!0})})),this.rootEventsListeners.forEach((({key:e,action:a})=>{this.addEventListener(e,a)})))}disconnectedCallback(){super.disconnectedCallback(),this.rehydrationAttempted=!1;const e=this.shouldRunDisconnect;this.rootEventsListeners.forEach((({key:e,action:a})=>{this.removeEventListener(e,a)})),b.DOM.queueUpdate((()=>{var a;e&&(this.initialised=!1,null===(a=this.gridApi)||void 0===a||a.destroy())}))}combineAllGridComponents(e){const a={[ln.action]:Zn,[ln.actionsMenu]:ol,[ln.boolean]:sl,[ln.editable]:Un,[ln.selectEditor]:Cn,[ln.numberEditor]:Fn,[ln.multiselectEditor]:wn,[ln.dateEditor]:un,[ln.stringEditor]:En};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(){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.columnApi.getColumnState();if(e=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(e):e,0===e.length||JSON.stringify(e)===JSON.stringify(this.columnState))return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,e)}}))}getSavedColumnState(){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=yield this.statePersistence.getColumnState(this.persistColumnStateKey)),this.columnState}))}restoreColumnState(){var e;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){this.rehydrationAttempted=!0;const a=yield this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}))}cacheFilterConfig(){var e;this.setFilterModel((null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0)}restoreCachedFilterConfig(){var e,a;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const r=yield this.getfilterModel();void 0!==r&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(r),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}))}get gridOptions(){return this.agGridOptions}get gridParams(){return{globalEventListener:this.globalEventListener.bind(this)}}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=El()(this.saveColumnState.bind(this),400),r=El()(this.cacheFilterConfig.bind(this),400),t=()=>{a(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:o,components:i,defaultColDef:n,getRowId:l,onGridReady:s,onFilterChanged:g}=e,d=(0,Xi.__rest)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged"]),c=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},n),components:this.combineAllGridComponents(i),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,this.gridEventsQueue.length&&this.gridEventsQueue.forEach((e=>{this.addGridEventListener(e)})),this.rowData&&this.gridApi.setRowData(this.rowData),s&&s(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onColumnPinned:t,onColumnResized:t,onColumnMoved:t,onDisplayedColumnsChanged:t,onFilterChanged:e=>{r(),g&&g(e)},onGridSizeChanged:t,onSortChanged:t}),d);this.gridProDatasource?(c.columnDefs=o,c.getRowId=l,this.setLocalGridOptions(c)):this.mergeAllColumnDefsAndStates(o).then((e=>{c.columnDefs=e,c.getRowId=l,this.setLocalGridOptions(c),this.initGrid()}))}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),qn.kNx.copyAttributesToGridOptions(e,this.agAttributes))}initGrid(){b.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new qn.xA9(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return Jn.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const t=e||[];t.forEach((e=>{if(this.headerCaseType&&e.field&&!e.headerName){const a=Ll[this.headerCaseType];a?e.headerName=a(e.field):Jn.warn(`Invalid header-case-type attribute value: ${this.headerCaseType}. Please use one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.`)}}));const 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[sn]===e.field)return{component:ln.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=Us,e.tooltipValueGetter=a=>{const r=a.data[gn];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[gn])||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=yield this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Hs(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Hs(n,this.gridProDatasource.deferredColumnStates)}return n}))}get observedAttributes(){const e=Vs.map((e=>e.toLowerCase())),a=Vs.map((e=>tl(e)));return e.concat(a)}agAttributeChangedCallback(e,a,r){if(a===r)return;const t=this.agPropertiesMap[e];if(t&&(this.agAttributes[t]=r,this.initialised)){const e={};e[t]={currentValue:r},qn.kNx.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=Ts[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Nl.O)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,Xi.__decorate)([b.observable],Ys.prototype,"columnApi",void 0),(0,Xi.__decorate)([b.observable],Ys.prototype,"gridApi",void 0),(0,Xi.__decorate)([b.observable],Ys.prototype,"gridErrorItems",void 0),(0,Xi.__decorate)([_s],Ys.prototype,"statePersistence",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Ys.prototype,"autoCellRendererByType",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Ys.prototype,"onlyTemplateColDefs",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"grid-autosizing"})],Ys.prototype,"gridAutosizingEnabled",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"add-index"})],Ys.prototype,"addIndex",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-add"})],Ys.prototype,"asyncAdd",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-remove"})],Ys.prototype,"asyncRemove",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-update"})],Ys.prototype,"asyncUpdate",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Ys.prototype,"enableCellFlashing",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Ys.prototype,"enabledRowFlashing",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Ys.prototype,"enableRowFlashing",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"persist-column-state-key"})],Ys.prototype,"persistColumnStateKey",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"persist-filter-model-key"})],Ys.prototype,"persistFilterModelKey",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"header-case-type"})],Ys.prototype,"headerCaseType",void 0),(0,Xi.__decorate)([b.observable],Ys.prototype,"rowData",void 0),(0,Xi.__decorate)([b.observable],Ys.prototype,"gridFontFace",void 0),(0,Xi.__decorate)([b.attr],Ys.prototype,"columnComponentName",void 0),(0,Xi.__decorate)([b.observable],Ys.prototype,"eventsAndCallbacks",void 0),(0,Xi.__decorate)([b.attr],Ys.prototype,"headerHeight",void 0),(0,Xi.__decorate)([b.attr],Ys.prototype,"rowHeight",void 0),(0,Xi.__decorate)([b.attr],Ys.prototype,"theme",void 0),(0,Xi.__decorate)([b.observable],Ys.prototype,"classNames",void 0),(0,Xi.__decorate)([b.observable],Ys.prototype,"agGrid",void 0),(0,Xi.__decorate)([b.observable],Ys.prototype,"gridSlot",void 0),(0,Xi.__decorate)([b.observable],Ys.prototype,"gridComponents",void 0),(0,Xi.__decorate)([cn],Ys.prototype,"gridOptionsConfig",void 0);const Qs=void 0,Ws={shadowOptions:void 0},qs=Ys.compose(Object.assign({baseName:"grid-pro",styles:Es,template:Ps,shadowOptions:Qs},Ws)),Js={foregroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#879ba6")),backgroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#1f2126")),borderSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#2e3339")),rowHoverSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#2b2e34"))},Zs={foregroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#000000")),headerForegroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#181d1f")),backgroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#FFFFFF")),borderSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#babfc7")),rowHoverSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#2196f3"))},{create:Ks}=v.DesignToken,Xs={backgroundColor:Ks("rapid-ag-background-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.backgroundSwatch:Js.backgroundSwatch)),borderColor:Ks("rapid-ag-border-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.borderSwatch:Js.borderSwatch)),foregroundColor:Ks("rapid-ag-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.foregroundSwatch:Js.foregroundSwatch)),headerForegroundColor:Ks("rapid-ag-header-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.headerForegroundSwatch:Js.headerForegroundSwatch)),rowHoverColor:Ks("rapid-ag-row-hover-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?Zs.rowHoverSwatch:Js.rowHoverSwatch))},eg=b.css`
|
|
10486
|
+
`,jg=Ig();var Eg=r(98316);class Pg{getColumnState(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return[]}))}saveColumnState(e,a){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}getFilterModel(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const a=this.session.getLocalStorageItem("gridOptions");if(a){const r=JSON.parse(a);if(e in r)return JSON.parse(r[e])}return{}}))}saveFilterModel(e,a){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const r=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");r[e]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(r))}))}}(0,Xi.__decorate)([Eg.N],Pg.prototype,"session",void 0);const Bg=v.DI.createInterface((e=>e.singleton(Pg)));class Gg{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 Ug(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}qn.syG.registerModules([Fl.n7,Tl.Q]);const _g=qn.kNx.ALL_PROPERTIES.filter((e=>"rowData"!==e));class Hg extends(c(v.FoundationElement)){rowDataChanged(e,a){this.initialised&&this.gridApi.setRowData(a)}themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Ll.x)(on(a),a),this.insertFontFace(a)}getfilterModel(){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(!this.persistFilterModelKey)return this._filterConfig;return yield this.statePersistence.getFilterModel(this.persistFilterModelKey)}))}setFilterModel(e){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){this.persistFilterModelKey?yield this.statePersistence.saveFilterModel(this.persistFilterModelKey,e):this._filterConfig=e}))}constructor(){super(),this.gridErrorItems=[],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=Og,this.columnComponentName="grid-pro-column",this.theme=Ki.alpine,this.rehydrationAttempted=!1,this.rootEventsListeners=[],this.gridEventsQueue=[],this._filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=_g.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[tl(a)]=a,e)),{});const e=this.hideDatasourceError.bind(this);this.rootEventsListeners.push({key:vg,action:e},{key:sg,action:e},{key:bg,action:this.handleError.bind(this,dg)})}addEventListener(e,a,r){super.addEventListener(e,a,r),qn.kNx.PUBLIC_EVENTS.includes(e)&&(this.gridApi?this.addGridEventListener(e):this.gridEventsQueue.push(e))}addGridEventListener(e){this.gridApi.addEventListener(e,(a=>{this.$emit(e,a)}))}handleError(e,a){this.gridErrorItems=[...this.gridErrorItems,{detail:a.detail,type:e}]}hideDatasourceError(){this.gridErrorItems=this.gridErrorItems.filter((e=>e.type!==dg))}connectedCallback(){super.connectedCallback(),this.gridAutosizingEnabled&&(0,Rl.j)(this,(e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.rehydrationAttempted=!1,this.shouldRunConnect&&(_g.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(tl(e),void 0,a)},enumerable:!0,configurable:!0})})),this.rootEventsListeners.forEach((({key:e,action:a})=>{this.addEventListener(e,a)})))}disconnectedCallback(){super.disconnectedCallback(),this.rehydrationAttempted=!1;const e=this.shouldRunDisconnect;this.rootEventsListeners.forEach((({key:e,action:a})=>{this.removeEventListener(e,a)})),b.DOM.queueUpdate((()=>{var a;e&&(this.initialised=!1,null===(a=this.gridApi)||void 0===a||a.destroy())}))}combineAllGridComponents(e){const a={[ln.action]:Zn,[ln.actionsMenu]:ol,[ln.boolean]:gl,[ln.editable]:_n,[ln.selectEditor]:Cn,[ln.numberEditor]:Fn,[ln.multiselectEditor]:wn,[ln.dateEditor]:un,[ln.stringEditor]:jn};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(){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){let e=this.columnApi.getColumnState();if(e=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(e):e,0===e.length||JSON.stringify(e)===JSON.stringify(this.columnState))return;yield this.statePersistence.saveColumnState(this.persistColumnStateKey,e)}}))}getSavedColumnState(){return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){return this.columnState=[],this.statePersistanceEnabled()&&(this.columnState=yield this.statePersistence.getColumnState(this.persistColumnStateKey)),this.columnState}))}restoreColumnState(){var e;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){this.rehydrationAttempted=!0;const a=yield this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}))}cacheFilterConfig(){var e;this.setFilterModel((null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0)}restoreCachedFilterConfig(){var e,a;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const r=yield this.getfilterModel();void 0!==r&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(r),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}))}get gridOptions(){return this.agGridOptions}get gridParams(){return{globalEventListener:this.globalEventListener.bind(this)}}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=jl()(this.saveColumnState.bind(this),400),r=jl()(this.cacheFilterConfig.bind(this),400),t=()=>{a(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:o,components:i,defaultColDef:n,getRowId:l,onGridReady:g,onFilterChanged:s}=e,d=(0,Xi.__rest)(e,["columnDefs","components","defaultColDef","getRowId","onGridReady","onFilterChanged"]),c=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.gridOptionsConfig),{defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},n),components:this.combineAllGridComponents(i),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,this.gridEventsQueue.length&&this.gridEventsQueue.forEach((e=>{this.addGridEventListener(e)})),this.rowData&&this.gridApi.setRowData(this.rowData),g&&g(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onColumnPinned:t,onColumnResized:t,onColumnMoved:t,onDisplayedColumnsChanged:t,onFilterChanged:e=>{r(),s&&s(e)},onGridSizeChanged:t,onSortChanged:t}),d);this.gridProDatasource?(c.columnDefs=o,c.getRowId=l,this.setLocalGridOptions(c)):this.mergeAllColumnDefsAndStates(o).then((e=>{c.columnDefs=e,c.getRowId=l,this.setLocalGridOptions(c),this.initGrid()}))}setLocalGridOptions(e){this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),qn.kNx.copyAttributesToGridOptions(e,this.agAttributes))}initGrid(){b.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new qn.xA9(this.gridSlot,this.agGridOptions,this.gridParams),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return Jn.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;return(0,Xi.__awaiter)(this,void 0,void 0,(function*(){const t=e||[];t.forEach((e=>{if(this.headerCaseType&&e.field&&!e.headerName){const a=Ml[this.headerCaseType];a?e.headerName=a(e.field):Jn.warn(`Invalid header-case-type attribute value: ${this.headerCaseType}. Please use one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.`)}}));const 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[gn]===e.field)return{component:ln.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=Gg,e.tooltipValueGetter=a=>{const r=a.data[sn];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[sn])||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=yield this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Ug(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Ug(n,this.gridProDatasource.deferredColumnStates)}return n}))}get observedAttributes(){const e=_g.map((e=>e.toLowerCase())),a=_g.map((e=>tl(e)));return e.concat(a)}agAttributeChangedCallback(e,a,r){if(a===r)return;const t=this.agPropertiesMap[e];if(t&&(this.agAttributes[t]=r,this.initialised)){const e={};e[t]={currentValue:r},qn.kNx.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=Ag[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Nl.O)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,Xi.__decorate)([b.observable],Hg.prototype,"columnApi",void 0),(0,Xi.__decorate)([b.observable],Hg.prototype,"gridApi",void 0),(0,Xi.__decorate)([b.observable],Hg.prototype,"gridErrorItems",void 0),(0,Xi.__decorate)([Bg],Hg.prototype,"statePersistence",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Hg.prototype,"autoCellRendererByType",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Hg.prototype,"onlyTemplateColDefs",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"grid-autosizing"})],Hg.prototype,"gridAutosizingEnabled",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"add-index"})],Hg.prototype,"addIndex",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-add"})],Hg.prototype,"asyncAdd",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-remove"})],Hg.prototype,"asyncRemove",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"async-update"})],Hg.prototype,"asyncUpdate",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Hg.prototype,"enableCellFlashing",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Hg.prototype,"enabledRowFlashing",void 0),(0,Xi.__decorate)([(0,b.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Hg.prototype,"enableRowFlashing",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"persist-column-state-key"})],Hg.prototype,"persistColumnStateKey",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"persist-filter-model-key"})],Hg.prototype,"persistFilterModelKey",void 0),(0,Xi.__decorate)([(0,b.attr)({attribute:"header-case-type"})],Hg.prototype,"headerCaseType",void 0),(0,Xi.__decorate)([b.observable],Hg.prototype,"rowData",void 0),(0,Xi.__decorate)([b.observable],Hg.prototype,"gridFontFace",void 0),(0,Xi.__decorate)([b.attr],Hg.prototype,"columnComponentName",void 0),(0,Xi.__decorate)([b.observable],Hg.prototype,"eventsAndCallbacks",void 0),(0,Xi.__decorate)([b.attr],Hg.prototype,"headerHeight",void 0),(0,Xi.__decorate)([b.attr],Hg.prototype,"rowHeight",void 0),(0,Xi.__decorate)([b.attr],Hg.prototype,"theme",void 0),(0,Xi.__decorate)([b.observable],Hg.prototype,"classNames",void 0),(0,Xi.__decorate)([b.observable],Hg.prototype,"agGrid",void 0),(0,Xi.__decorate)([b.observable],Hg.prototype,"gridSlot",void 0),(0,Xi.__decorate)([b.observable],Hg.prototype,"gridComponents",void 0),(0,Xi.__decorate)([cn],Hg.prototype,"gridOptionsConfig",void 0);const Vg=void 0,Yg={shadowOptions:void 0},Qg=Hg.compose(Object.assign({baseName:"grid-pro",styles:Mg,template:jg,shadowOptions:Vg},Yg)),Wg={foregroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#879ba6")),backgroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#1f2126")),borderSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#2e3339")),rowHoverSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#2b2e34"))},qg={foregroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#000000")),headerForegroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#181d1f")),backgroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#FFFFFF")),borderSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#babfc7")),rowHoverSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#2196f3"))},{create:Jg}=v.DesignToken,Zg={backgroundColor:Jg("rapid-ag-background-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?qg.backgroundSwatch:Wg.backgroundSwatch)),borderColor:Jg("rapid-ag-border-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?qg.borderSwatch:Wg.borderSwatch)),foregroundColor:Jg("rapid-ag-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?qg.foregroundSwatch:Wg.foregroundSwatch)),headerForegroundColor:Jg("rapid-ag-header-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?qg.headerForegroundSwatch:Wg.headerForegroundSwatch)),rowHoverColor:Jg("rapid-ag-row-hover-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?qg.rowHoverSwatch:Wg.rowHoverSwatch))},Kg=b.css`
|
|
10487
10487
|
.ag-theme-genesis-rapid,
|
|
10488
10488
|
.ag-theme-genesis-rapid-dark {
|
|
10489
10489
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -10943,56 +10943,56 @@
|
|
|
10943
10943
|
.ag-theme-genesis-rapid-dark {
|
|
10944
10944
|
color-scheme: dark;
|
|
10945
10945
|
}
|
|
10946
|
-
`,
|
|
10947
|
-
${
|
|
10948
|
-
${nn(
|
|
10946
|
+
`,Xg={[Zi.backgroundColor]:Zg.backgroundColor,[Zi.foregroundColor]:Zg.foregroundColor,[Zi.oddRowBackgroundColor]:Zg.backgroundColor,[Zi.headerBackgroundColor]:Zg.backgroundColor,[Zi.headerForegroundColor]:Zg.headerForegroundColor,[Zi.selectedRowBackgroundColor]:Zg.rowHoverColor,[Zi.rowHoverColor]:Zg.rowHoverColor,[Zi.borderColor]:Zg.borderColor,[Zi.rowBorderColor]:Zg.rowHoverColor,[Zi.modalOverlayBackgroundColor]:Zg.backgroundColor,[Zi.inputFocusBoxShadow]:Zg.headerForegroundColor,[Zi.inputFocusBorderColor]:Zg.headerForegroundColor,[Zi.headerColumnResizeHandleColor]:Zg.headerForegroundColor},es="ag-theme-genesis-rapid",as=b.css`
|
|
10947
|
+
${Kg}
|
|
10948
|
+
${nn(es,Xg)}
|
|
10949
10949
|
|
|
10950
|
-
.${
|
|
10950
|
+
.${es} {
|
|
10951
10951
|
${na()}
|
|
10952
10952
|
}
|
|
10953
10953
|
|
|
10954
|
-
.${
|
|
10954
|
+
.${es} .ag-header {
|
|
10955
10955
|
border-bottom-color: var(--rapid-ag-header-foreground-color);
|
|
10956
10956
|
font-weight: bold;
|
|
10957
10957
|
}
|
|
10958
10958
|
|
|
10959
|
-
.${
|
|
10959
|
+
.${es} .ag-root-wrapper {
|
|
10960
10960
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
10961
10961
|
}
|
|
10962
|
-
`,
|
|
10963
|
-
${
|
|
10964
|
-
${nn(
|
|
10962
|
+
`,rs="ag-theme-genesis-rapid-dark",ts=b.css`
|
|
10963
|
+
${Kg}
|
|
10964
|
+
${nn(rs,Xg)}
|
|
10965
10965
|
|
|
10966
|
-
.${
|
|
10966
|
+
.${rs} {
|
|
10967
10967
|
${na()}
|
|
10968
10968
|
}
|
|
10969
10969
|
|
|
10970
|
-
.${
|
|
10970
|
+
.${rs} .ag-header {
|
|
10971
10971
|
border-bottom-color: var(--rapid-ag-header-foreground-color);
|
|
10972
10972
|
font-weight: bold;
|
|
10973
10973
|
}
|
|
10974
10974
|
|
|
10975
|
-
.${
|
|
10975
|
+
.${rs} .ag-cell {
|
|
10976
10976
|
line-height: var(--ag-line-height, 32px);
|
|
10977
10977
|
}
|
|
10978
10978
|
|
|
10979
|
-
.${
|
|
10979
|
+
.${rs} .ag-root-wrapper {
|
|
10980
10980
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
10981
10981
|
}
|
|
10982
|
-
`,
|
|
10982
|
+
`,os=b.css`
|
|
10983
10983
|
/* All the AG themes */
|
|
10984
|
-
${
|
|
10984
|
+
${Mg}
|
|
10985
10985
|
|
|
10986
10986
|
/* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
|
|
10987
|
-
${
|
|
10988
|
-
${
|
|
10987
|
+
${as}
|
|
10988
|
+
${ts}
|
|
10989
10989
|
|
|
10990
10990
|
.error {
|
|
10991
|
-
border-color: ${
|
|
10991
|
+
border-color: ${Te.shortPink} !important;
|
|
10992
10992
|
}
|
|
10993
|
-
`,
|
|
10993
|
+
`,is=Ig("zero"),ns="ag-theme-genesis-rapid-dark";const ls=Vg,gs=Yg,ss={zeroAgEditableRenderer:Wn,zeroAgActionRenderer:rl,zeroAgActionsMenuRenderer:ll,zeroAgBooleanRenderer:ul,zeroAgTextRenderer:Sl,zeroAgSelectRenderer:Dl,zeroAgDateEditor:fn,zeroAgMultiselectEditor:Sn,zeroAgSelectEditor:Tn,zeroAgNumberEditor:In,zeroAgStringEditor:Un,zeroGridPro:class extends Hg{constructor(){super(...arguments),this.theme=ns}themeChanged(e,a){(e||a===ns)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[ln.action]:al,[ln.actionsMenu]:nl,[ln.boolean]:pl,[ln.editable]:Qn,[ln.selectEditor]:Dn,[ln.numberEditor]:Mn,[ln.multiselectEditor]:zn,[ln.dateEditor]:vn,[ln.stringEditor]:Gn};(this.theme===es||this.theme===rs)&&(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:is,styles:os,shadowOptions:ls},gs)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},ds={foundationGridProActionRenderer:el,foundationGridProActionsMenuRenderer:il,foundationAgBooleanRenderer:cl,foundationAgTextRenderer:zl,foundationAgTextFieldRenderer:wl,foundationAgEditableRenderer:Yn,foundationAgSelectRenderer:Ol,foundationGridPro:Qg,foundationSelectEditor:On,foundationNumberEditor:Ln,foundationDateEditor:bn,foundationMultiselectEditor:kn,foundationStringEditor:Bn,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var cs;!function(e){e.primary="#11C9FC",e.neutral="#7C909B",e.error="#F9644D",e.success="#7ACC79",e.warning="#FFB660",e.info="#11C9FC",e.buy="#7ACC79",e.sell="#F14376"}(cs||(cs={}));const{create:ps}=v.DesignToken,us=(0,Fe.parseColorHexRGB)(cs.error),hs=f.SwatchRGB.create(us.r,us.g,us.b),ms=ps("error-color").withDefault(hs),bs=(0,Fe.parseColorHexRGB)(cs.success),vs=f.SwatchRGB.create(bs.r,bs.g,bs.b),fs=ps("success-color").withDefault(vs),ws=(0,Fe.parseColorHexRGB)(cs.warning),ys=f.SwatchRGB.create(ws.r,ws.g,ws.b),xs=ps("warning-color").withDefault(ys),ks=(0,Fe.parseColorHexRGB)(cs.buy),zs=f.SwatchRGB.create(ks.r,ks.g,ks.b),Ss=ps("buy-color").withDefault(zs),Cs=(0,Fe.parseColorHexRGB)(cs.sell),$s=f.SwatchRGB.create(Cs.r,Cs.g,Cs.b),As=ps("sell-color").withDefault($s),Os=(0,H.paletteFromHex)(cs.primary),Ds=(0,H.paletteFromHex)(cs.neutral),Ts=f.StandardLuminance.DarkMode,Fs=0,Rs=4,Ns=-5,Ls=0,Ms=0,Is=6,js=-4,Es=0,Ps=7,Bs=10,Gs=5,Us=0,_s=0,Hs=0,Vs=0,Ys=0,Qs=0,Ws=5,qs=3,Js=0,Zs=0,Ks=8,Xs=-5,ed=0,ad=3,rd=25,td=40,od=16,id=25,nd=8,ld="rapid",gd=Ze.O.ltr,sd=.3,dd=1,cd=2,pd=10,ud=4,hd=0,md=4,bd='"Segoe UI", Arial, Helvetica, sans-serif',vd="14px",fd="20px",wd="13px",yd="19px",xd="12px",kd="18px",zd="15px",Sd="21px",Cd="16px",$d="22px",Ad="17px",Od="23px",Dd="18px",Td="24px",Fd="19px",Rd="25px",Nd="20px",Ld="26px",Md={design_tokens:{color:{accent:{$value:Os.source.toColorString(),$type:"color"},neutral:{$value:Ds.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:bd,$type:"fontFamily"}},typography:{baseFontSize:{$value:vd,$type:"dimension"},baseLineHeight:{$value:fd,$type:"dimension"}},mode:{luminance:{$value:Ts,$type:"number"}},style:{density:{$value:hd,$type:"number"},borderRadius:{$value:ud,$type:"number"},strokeWidth:{$value:dd,$type:"number"}},space:{designUnit:{$value:md,$type:"number"}}}};class Id extends f.DesignSystemProvider{constructor(){super(),(0,H.provideTokens)(i,n,this)}}const jd=Id.compose({baseName:"design-system-provider",template:b.html`
|
|
10994
10994
|
<slot></slot>
|
|
10995
|
-
`});class
|
|
10995
|
+
`});class Ed extends H.Accordion{}const Pd=Ed.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,H.foundationAccordionTemplate)(e,a),styles:(e,a)=>b.css`
|
|
10996
10996
|
${(0,H.foundationAccordionStyles)(e,a)}
|
|
10997
10997
|
|
|
10998
10998
|
:host {
|
|
@@ -11003,7 +11003,7 @@
|
|
|
11003
11003
|
.heading {
|
|
11004
11004
|
height: calc(var(--base-height-multiplier) * 4px);
|
|
11005
11005
|
}
|
|
11006
|
-
`,shadowOptions:H.foundationAccordionShadowOptions},H.defaultAccordionConfig));class
|
|
11006
|
+
`,shadowOptions:H.foundationAccordionShadowOptions},H.defaultAccordionConfig));class Bd extends H.AccordionItem{}const Gd=Bd.compose(Object.assign({baseName:"accordion-item",template:(e,a)=>(0,H.foundationAccordionItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11007
11007
|
${(0,H.foundationAccordionItemStyles)(e,a)}
|
|
11008
11008
|
|
|
11009
11009
|
:host {
|
|
@@ -11066,7 +11066,7 @@
|
|
|
11066
11066
|
grid-template-columns: auto 1fr auto;
|
|
11067
11067
|
align-items: center;
|
|
11068
11068
|
}
|
|
11069
|
-
`,shadowOptions:H.foundationAccordionItemShadowOptions},H.defaultAccordionItemConfig));class
|
|
11069
|
+
`,shadowOptions:H.foundationAccordionItemShadowOptions},H.defaultAccordionItemConfig));class Ud extends H.ActionsMenu{}const _d=Ud.compose({baseName:"actions-menu",styles:(e,a)=>b.css`
|
|
11070
11070
|
:host {
|
|
11071
11071
|
--actions-opener-height-multiplier: 0.6px;
|
|
11072
11072
|
--menu-item-height-multiplier: 0.5px;
|
|
@@ -11104,7 +11104,7 @@
|
|
|
11104
11104
|
.actions-vertical .menu-item:focus {
|
|
11105
11105
|
border: calc(var(--stroke-width) * 1px) solid var(--accent-foreground-focus);
|
|
11106
11106
|
}
|
|
11107
|
-
`,template:H.foundationActionsMenuTemplate});function
|
|
11107
|
+
`,template:H.foundationActionsMenuTemplate});function Hd(e,a){return new v.PropertyStyleSheetBehavior("appearance",e,a)}const Vd=b.css`
|
|
11108
11108
|
:host([appearance='primary']) {
|
|
11109
11109
|
background: color-mix(in srgb, var(--accent-fill-rest), transparent 50%);
|
|
11110
11110
|
border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);
|
|
@@ -11127,7 +11127,7 @@
|
|
|
11127
11127
|
background: color-mix(in srgb, var(--accent-fill-rest), transparent 70%);
|
|
11128
11128
|
border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);
|
|
11129
11129
|
}
|
|
11130
|
-
`,
|
|
11130
|
+
`,Yd=b.css`
|
|
11131
11131
|
:host([appearance='danger']) {
|
|
11132
11132
|
background: color-mix(in srgb, var(--error-color), transparent 50%);
|
|
11133
11133
|
border: calc(var(--stroke-width) * 1px) solid var(--error-color);
|
|
@@ -11150,7 +11150,7 @@
|
|
|
11150
11150
|
background: color-mix(in srgb, var(--error-color), transparent 70%);
|
|
11151
11151
|
border: calc(var(--stroke-width) * 1px) solid var(--error-color);
|
|
11152
11152
|
}
|
|
11153
|
-
`,
|
|
11153
|
+
`,Qd=b.css`
|
|
11154
11154
|
:host([appearance='primary-outline']) {
|
|
11155
11155
|
background: none;
|
|
11156
11156
|
border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);
|
|
@@ -11168,7 +11168,7 @@
|
|
|
11168
11168
|
color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%);
|
|
11169
11169
|
opacity: 100%;
|
|
11170
11170
|
}
|
|
11171
|
-
`,
|
|
11171
|
+
`,Wd=b.css`
|
|
11172
11172
|
:host([appearance='neutral-outline']) {
|
|
11173
11173
|
background: none;
|
|
11174
11174
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest);
|
|
@@ -11186,7 +11186,7 @@
|
|
|
11186
11186
|
color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%);
|
|
11187
11187
|
opacity: 100%;
|
|
11188
11188
|
}
|
|
11189
|
-
`,
|
|
11189
|
+
`,qd=b.css`
|
|
11190
11190
|
:host([appearance='link']) {
|
|
11191
11191
|
background: none;
|
|
11192
11192
|
border: none;
|
|
@@ -11209,7 +11209,7 @@
|
|
|
11209
11209
|
color: color-mix(in srgb, var(--accent-fill-rest), transparent 35%);
|
|
11210
11210
|
opacity: 100%;
|
|
11211
11211
|
}
|
|
11212
|
-
`,
|
|
11212
|
+
`,Jd=(e,a)=>b.css`
|
|
11213
11213
|
${(0,H.foundationButtonStyles)(e,a)}
|
|
11214
11214
|
${b.css`
|
|
11215
11215
|
:host {
|
|
@@ -11263,14 +11263,14 @@
|
|
|
11263
11263
|
opacity: 100%;
|
|
11264
11264
|
}
|
|
11265
11265
|
`}
|
|
11266
|
-
`.withBehaviors(
|
|
11266
|
+
`.withBehaviors(Hd("primary",Vd),Hd("danger",Yd),Hd("primary-outline",Qd),Hd("neutral-outline",Wd),Hd("link",qd));class Zd extends H.Anchor{}const Kd=Zd.compose(Object.assign({baseName:"anchor",template:(e,a)=>(0,H.foundationAnchorTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11267
11267
|
${(0,H.foundationAnchorStyles)(e,a)}
|
|
11268
|
-
${
|
|
11269
|
-
`.withBehaviors(...
|
|
11268
|
+
${Jd(e,a)}
|
|
11269
|
+
`.withBehaviors(...Jd(e,a).behaviors),shadowOptions:H.foundationAnchorShadowOptions},H.defaultAnchorConfig));class Xd extends H.AnchoredRegion{}const ec=Xd.compose(Object.assign({baseName:"anchored-region",template:(e,a)=>(0,H.foundationAnchoredRegionTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11270
11270
|
${(0,H.foundationAnchoredRegionStyles)(e,a)}
|
|
11271
|
-
`,shadowOptions:H.foundationAnchoredRegionShadowOptions},H.defaultAnchoredRegionConfig));class
|
|
11271
|
+
`,shadowOptions:H.foundationAnchoredRegionShadowOptions},H.defaultAnchoredRegionConfig));class ac extends H.Avatar{}const rc=ac.compose(Object.assign({baseName:"avatar",template:(e,a)=>(0,H.foundationAvatarTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11272
11272
|
${(0,H.foundationAvatarStyles)(e,a)}
|
|
11273
|
-
`,shadowOptions:H.foundationAvatarShadowOptions},H.defaultAvatarConfig));class
|
|
11273
|
+
`,shadowOptions:H.foundationAvatarShadowOptions},H.defaultAvatarConfig));class tc extends H.Badge{}const oc=tc.compose(Object.assign({baseName:"badge",template:(e,a)=>(0,H.foundationBadgeTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11274
11274
|
${(0,H.foundationBadgeStyles)(e,a)}
|
|
11275
11275
|
:host {
|
|
11276
11276
|
--badge-fill-primary: var(--accent-fill-rest);
|
|
@@ -11289,7 +11289,7 @@
|
|
|
11289
11289
|
padding: calc(${f.designUnit} * 1px) calc(${f.designUnit} * 2px);
|
|
11290
11290
|
border: none;
|
|
11291
11291
|
}
|
|
11292
|
-
`,shadowOptions:H.foundationBadgeShadowOptions},H.defaultBadgeConfig)),
|
|
11292
|
+
`,shadowOptions:H.foundationBadgeShadowOptions},H.defaultBadgeConfig)),ic=b.css`
|
|
11293
11293
|
${H.foundationBannerStyles}
|
|
11294
11294
|
:host {
|
|
11295
11295
|
--banner-height: calc(
|
|
@@ -11309,9 +11309,9 @@
|
|
|
11309
11309
|
font-family: var(--body-font);
|
|
11310
11310
|
line-height: var(--type-ramp-base-line-height);
|
|
11311
11311
|
}
|
|
11312
|
-
`,
|
|
11312
|
+
`,nc=H.foundationBannerShadowOptions;class lc extends H.Banner{}const gc=lc.compose({baseName:"banner",shadowOptions:nc,styles:ic,template:H.foundationBannerTemplate});class sc extends H.Breadcrumb{}const dc=sc.compose(Object.assign({baseName:"breadcrumb",template:(e,a)=>(0,H.foundationBreadcrumbTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11313
11313
|
${(0,H.foundationBreadcrumbStyles)(e,a)}
|
|
11314
|
-
`,shadowOptions:undefined},{}));class
|
|
11314
|
+
`,shadowOptions:undefined},{}));class cc extends H.BreadcrumbItem{}const pc=cc.compose(Object.assign({baseName:"breadcrumb-item",template:(e,a)=>(0,H.foundationBreadcrumbItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11315
11315
|
${(0,H.foundationBreadcrumbItemStyles)(e,a)}
|
|
11316
11316
|
.listitem {
|
|
11317
11317
|
color: var(--accent-foreground-rest);
|
|
@@ -11347,9 +11347,9 @@
|
|
|
11347
11347
|
.control:hover .start {
|
|
11348
11348
|
background: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%);
|
|
11349
11349
|
}
|
|
11350
|
-
`,shadowOptions:H.foundationBreadcrumbItemShadowOptions},H.defaultBreadcrumbItemConfig));class
|
|
11350
|
+
`,shadowOptions:H.foundationBreadcrumbItemShadowOptions},H.defaultBreadcrumbItemConfig));class uc extends H.Button{}const hc=uc.compose(Object.assign({baseName:"button",template:(e,a)=>(0,H.foundationButtonTemplate)(e,a),styles:Jd,shadowOptions:H.foundationButtonShadowOptions},H.defaultButtonConfig));class mc extends H.Calendar{}const bc=mc.compose(Object.assign({baseName:"calendar",template:(e,a)=>(0,H.foundationCalendarTemplate)(e,a),styles:()=>b.css`
|
|
11351
11351
|
${(0,H.foundationCalendarStyles)()}
|
|
11352
|
-
`,shadowOptions:H.foundationCalendarShadowOptions},H.defaultCalendarConfig));class
|
|
11352
|
+
`,shadowOptions:H.foundationCalendarShadowOptions},H.defaultCalendarConfig));class vc extends H.Card{}const fc=vc.compose(Object.assign({baseName:"card",template:(e,a)=>(0,H.foundationCardTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11353
11353
|
${(0,H.foundationCardStyles)(e,a)}
|
|
11354
11354
|
:host {
|
|
11355
11355
|
background: var(--neutral-layer-card-container);
|
|
@@ -11363,7 +11363,7 @@
|
|
|
11363
11363
|
::slotted(rapid-card) {
|
|
11364
11364
|
background: var(--neutral-layer-3);
|
|
11365
11365
|
}
|
|
11366
|
-
`,shadowOptions:H.foundationCardShadowOptions},H.defaultCardConfig)),
|
|
11366
|
+
`,shadowOptions:H.foundationCardShadowOptions},H.defaultCardConfig)),wc=b.css`
|
|
11367
11367
|
${H.categorizedMultiselectStyles}
|
|
11368
11368
|
|
|
11369
11369
|
.label {
|
|
@@ -11377,9 +11377,9 @@
|
|
|
11377
11377
|
rapid-checkbox:hover:not([disabled]) {
|
|
11378
11378
|
background: var(--neutral-layer-4);
|
|
11379
11379
|
}
|
|
11380
|
-
`,
|
|
11380
|
+
`,yc=b.html`
|
|
11381
11381
|
${(0,H.getPrefixedCategorizedMultiselect)("rapid")}
|
|
11382
|
-
`;class
|
|
11382
|
+
`;class xc extends H.CategorizedMultiselect{}const kc=H.defaultCategorizedMultiselectConfig,zc=H.foundationCategorizedMultiselectShadowOptions,Sc=xc.compose(Object.assign({baseName:"categorized-multiselect",template:yc,styles:wc,shadowOptions:zc},kc));class Cc extends H.Checkbox{}const $c=Cc.compose(Object.assign({baseName:"checkbox",template:(e,a)=>(0,H.foundationCheckboxTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11383
11383
|
${(0,H.foundationCheckboxStyles)(e,a)}
|
|
11384
11384
|
:host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator {
|
|
11385
11385
|
fill: var(--neutral-foreground-rest);
|
|
@@ -11394,7 +11394,7 @@
|
|
|
11394
11394
|
.label {
|
|
11395
11395
|
padding-inline-start: calc(var(--design-unit) * 2px);
|
|
11396
11396
|
}
|
|
11397
|
-
`,shadowOptions:H.foundationCheckboxShadowOptions},H.defaultCheckboxConfig));class
|
|
11397
|
+
`,shadowOptions:H.foundationCheckboxShadowOptions},H.defaultCheckboxConfig));class Ac extends H.Combobox{}const Oc=Ac.compose(Object.assign({baseName:"combobox",template:(e,a)=>(0,H.foundationComboboxTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11398
11398
|
${(0,H.foundationComboboxStyles)(e,a)}
|
|
11399
11399
|
:host {
|
|
11400
11400
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
@@ -11468,7 +11468,7 @@
|
|
|
11468
11468
|
::slotted([role='option']) {
|
|
11469
11469
|
margin: 0;
|
|
11470
11470
|
}
|
|
11471
|
-
`,shadowOptions:H.foundationComboboxShadowOptions},H.defaultComboboxConfig));class
|
|
11471
|
+
`,shadowOptions:H.foundationComboboxShadowOptions},H.defaultComboboxConfig));class Dc extends H.ConnectionIndicator{}const Tc=Dc.compose({baseName:"connection-indicator",template:H.foundationConnectionIndicatorTemplate,styles:(e,a)=>b.css`
|
|
11472
11472
|
${(0,H.foundationConnectionIndicatorStyles)(e,a)}
|
|
11473
11473
|
:host {
|
|
11474
11474
|
--light-size: calc(var(--design-unit) * 3px);
|
|
@@ -11491,9 +11491,9 @@
|
|
|
11491
11491
|
font-size: var(--type-ramp-base-font-size);
|
|
11492
11492
|
color: var(--neutral-stroke-rest);
|
|
11493
11493
|
}
|
|
11494
|
-
`}),
|
|
11494
|
+
`}),Fc=["baseClass","baseName","shadowOptions","styles","template"],Rc=e=>{const{definition:a}=e(),{shadowOptions:r,styles:t,template:o}=a,i=((e,a=Fc)=>Object.keys(e).filter((e=>!a.includes(e))).reduce(((a,r)=>(a[r]=e[r],a)),{}))(a);return{shadowOptions:r,styles:t,template:o,defaultConfig:i}},{defaultConfig:Nc,shadowOptions:Lc,styles:Mc,template:Ic}=Rc(H.foundationDataGrid),{defaultConfig:jc,shadowOptions:Ec,styles:Pc,template:Bc}=Rc(H.foundationDataGridCell),{defaultConfig:Gc,shadowOptions:Uc,styles:_c,template:Hc}=Rc(H.foundationDataGridRow),Vc=b.html`
|
|
11495
11495
|
${(0,H.getPrefixedDatePicker)("rapid")}
|
|
11496
|
-
`;class
|
|
11496
|
+
`;class Yc extends H.DatePicker{}const Qc=Yc.compose(Object.assign({baseName:"date-picker",template:Vc,styles:()=>b.css`
|
|
11497
11497
|
${H.foundationDatePickerStyles}
|
|
11498
11498
|
|
|
11499
11499
|
:host {
|
|
@@ -11576,7 +11576,7 @@
|
|
|
11576
11576
|
.week-days span {
|
|
11577
11577
|
font-size: var(--type-ramp-minus-2-font-size);
|
|
11578
11578
|
}
|
|
11579
|
-
`,shadowOptions:undefined},{})),
|
|
11579
|
+
`,shadowOptions:undefined},{})),Wc=b.css`
|
|
11580
11580
|
${H.foundationDialogStyles}
|
|
11581
11581
|
:host {
|
|
11582
11582
|
--color-error: var(--error-color);
|
|
@@ -11656,7 +11656,7 @@
|
|
|
11656
11656
|
.close-icon:active svg g path {
|
|
11657
11657
|
fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 67%);
|
|
11658
11658
|
}
|
|
11659
|
-
`,
|
|
11659
|
+
`,qc=H.defaultDialogConfig,Jc=H.foundationDialogTemplate,Zc=H.foundationDialogShadowOptions;class Kc extends H.Dialog{}const Xc=Kc.compose(Object.assign({baseName:"dialog",shadowOptions:Zc,styles:Wc,template:Jc},qc));class ep extends H.Disclosure{}const ap=ep.compose(Object.assign({baseName:"disclosure",template:(e,a)=>(0,H.foundationDisclosureTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11660
11660
|
${(0,H.foundationDisclosureStyles)(e,a)}
|
|
11661
11661
|
:host {
|
|
11662
11662
|
font-size: var(--type-ramp-base-font-size);
|
|
@@ -11673,9 +11673,9 @@
|
|
|
11673
11673
|
padding: 0 calc(var(--design-unit) * 4px) calc(var(--design-unit) * 4px);
|
|
11674
11674
|
text-align: center;
|
|
11675
11675
|
}
|
|
11676
|
-
`,shadowOptions:H.foundationDialogShadowOptions},H.defaultDisclosureConfig));class
|
|
11676
|
+
`,shadowOptions:H.foundationDialogShadowOptions},H.defaultDisclosureConfig));class rp extends H.Divider{}const tp=rp.compose(Object.assign({baseName:"divider",template:(e,a)=>(0,H.foundationDividerTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11677
11677
|
${(0,H.foundationDividerStyles)(e,a)}
|
|
11678
|
-
`,shadowOptions:H.foundationDividerShadowOptions},H.defaultDividerConfig));class
|
|
11678
|
+
`,shadowOptions:H.foundationDividerShadowOptions},H.defaultDividerConfig));class op extends H.DropdownMenu{}const ip=op.compose({baseName:"dropdown-menu",styles:(e,a)=>b.css`
|
|
11679
11679
|
${(0,H.dropdownMenuBaseStyles)("rapid",e,a)}
|
|
11680
11680
|
|
|
11681
11681
|
.actions-menu {
|
|
@@ -11690,7 +11690,7 @@
|
|
|
11690
11690
|
border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px);
|
|
11691
11691
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
11692
11692
|
}
|
|
11693
|
-
`,template:H.foundationDropdownMenuTemplate}),{defaultConfig:
|
|
11693
|
+
`,template:H.foundationDropdownMenuTemplate}),{defaultConfig:np,shadowOptions:lp,styles:gp,template:sp}=Rc(H.foundationErrorBoundary),dp=b.css`
|
|
11694
11694
|
${H.foundationFileUploadStyles}
|
|
11695
11695
|
::-webkit-scrollbar {
|
|
11696
11696
|
width: calc(var(--design-unit) * 3px);
|
|
@@ -11712,11 +11712,11 @@
|
|
|
11712
11712
|
:host::part(upload-file-button) {
|
|
11713
11713
|
margin: 0 0 calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px);
|
|
11714
11714
|
}
|
|
11715
|
-
`,
|
|
11715
|
+
`,cp=b.html`
|
|
11716
11716
|
${(0,H.getPrefixedFileUpload)("rapid")}
|
|
11717
|
-
`,
|
|
11717
|
+
`,pp=H.defaultFileUploadConfig,up=H.foundationFileUploadShadowOptions;class hp extends H.FileUpload{}const mp=hp.compose(Object.assign({baseName:"file-upload",shadowOptions:up,styles:dp,template:cp},pp)),bp=b.html`
|
|
11718
11718
|
${(0,H.getPrefixedFilterTemplate)("rapid")}
|
|
11719
|
-
`;class
|
|
11719
|
+
`;class vp extends H.Filter{}const fp=vp.compose({baseName:"filter",template:bp,styles:(e,a)=>b.css`
|
|
11720
11720
|
${H.foundationFilterStyles}
|
|
11721
11721
|
.filter-wrapper {
|
|
11722
11722
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
@@ -11743,9 +11743,9 @@
|
|
|
11743
11743
|
.flex-row rapid-select {
|
|
11744
11744
|
flex: 1;
|
|
11745
11745
|
}
|
|
11746
|
-
`}),
|
|
11746
|
+
`}),wp=b.html`
|
|
11747
11747
|
${(0,H.filterBarTemplate)("rapid")}
|
|
11748
|
-
`;class
|
|
11748
|
+
`;class yp extends H.FilterBar{}const xp=yp.compose({baseName:"filter-bar",template:wp,styles:(e,a)=>b.css`
|
|
11749
11749
|
${(0,H.foundationFilterBarStyles)(e,a)}
|
|
11750
11750
|
.toggle,
|
|
11751
11751
|
.toggle-collapsed {
|
|
@@ -11765,7 +11765,7 @@
|
|
|
11765
11765
|
.filter-bar {
|
|
11766
11766
|
background: var(--neutral-layer-3);
|
|
11767
11767
|
}
|
|
11768
|
-
`}),{defaultConfig:
|
|
11768
|
+
`}),{defaultConfig:kp,shadowOptions:zp,styles:Sp,template:Cp}=Rc(H.foundationFlexLayout);class $p extends H.Flipper{}const Ap=$p.compose(Object.assign({baseName:"flipper",template:(e,a)=>(0,H.foundationFlipperTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11769
11769
|
${(0,H.foundationFlipperStyles)(e,a)}
|
|
11770
11770
|
:host {
|
|
11771
11771
|
color: var(--neutral-foreground-rest);
|
|
@@ -11833,9 +11833,9 @@
|
|
|
11833
11833
|
background-color: var(--neutral-fill-hover);
|
|
11834
11834
|
border-radius: calc(var(--stroke-width) * 3px);
|
|
11835
11835
|
}
|
|
11836
|
-
`,
|
|
11836
|
+
`,Dp=b.html`
|
|
11837
11837
|
${(0,H.getPrefixedFlyout)("rapid")}
|
|
11838
|
-
`,
|
|
11838
|
+
`,Tp=H.defaultFlyoutConfig,Fp=H.foundationFlyoutShadowOptions;class Rp extends H.Flyout{}const Np=Rp.compose(Object.assign({baseName:"flyout",shadowOptions:Fp,styles:Op,template:Dp},Tp)),{defaultConfig:Lp,shadowOptions:Mp,styles:Ip,template:jp}=Rc(H.foundationGridLayout),{defaultConfig:Ep,shadowOptions:Pp,styles:Bp,template:Gp}=Rc(H.foundationGridLayoutItem);class Up extends H.HorizontalScroll{}const _p={nextFlipper:b.html`
|
|
11839
11839
|
<rapid-flipper
|
|
11840
11840
|
@click="${e=>e.scrollToNext()}"
|
|
11841
11841
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
@@ -11846,11 +11846,11 @@
|
|
|
11846
11846
|
direction="previous"
|
|
11847
11847
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
11848
11848
|
></rapid-flipper>
|
|
11849
|
-
`},
|
|
11849
|
+
`},Hp=Up.compose(Object.assign({baseName:"horizontal-scroll",template:(e,a)=>(0,H.foundationHorizontalScrollTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11850
11850
|
${(0,H.foundationHorizontalScrollStyles)(e,a)}
|
|
11851
|
-
`,shadowOptions:H.foundationHorizontalScrollShadowOptions},
|
|
11851
|
+
`,shadowOptions:H.foundationHorizontalScrollShadowOptions},_p));class Vp extends H.Icon{}const Yp=H.defaultIconConfig,Qp=H.foundationIconShadowOptions,Wp=Vp.compose(Object.assign({baseName:"icon",template:H.foundationIconTemplate,styles:(e,a)=>b.css`
|
|
11852
11852
|
${(0,H.foundationIconStyles)(e,a)}
|
|
11853
|
-
`,shadowOptions:
|
|
11853
|
+
`,shadowOptions:Qp},Yp));class qp extends H.Listbox{}const Jp=qp.compose(Object.assign({baseName:"listbox",template:(e,a)=>(0,H.foundationListboxTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11854
11854
|
${(0,H.foundationListboxStyles)(e,a)}
|
|
11855
11855
|
|
|
11856
11856
|
:host {
|
|
@@ -11861,7 +11861,7 @@
|
|
|
11861
11861
|
::slotted(*:last-child) {
|
|
11862
11862
|
border-bottom: none;
|
|
11863
11863
|
}
|
|
11864
|
-
`,shadowOptions:H.foundationListboxShadowOptions},H.defaultListboxConfig));class
|
|
11864
|
+
`,shadowOptions:H.foundationListboxShadowOptions},H.defaultListboxConfig));class Zp extends H.ListboxOption{}const Kp=Zp.compose(Object.assign({baseName:"option",template:(e,a)=>(0,H.foundationListboxOptionTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11865
11865
|
${(0,H.foundationListboxOptionStyles)(e,a)}
|
|
11866
11866
|
:host {
|
|
11867
11867
|
border-radius: 0;
|
|
@@ -11878,14 +11878,14 @@
|
|
|
11878
11878
|
background: var(--neutral-layer-4);
|
|
11879
11879
|
color: var(--accent-fill-rest);
|
|
11880
11880
|
}
|
|
11881
|
-
`,shadowOptions:H.foundationListboxOptionShadowOptions},H.defaultListboxOptionConfig));class
|
|
11881
|
+
`,shadowOptions:H.foundationListboxOptionShadowOptions},H.defaultListboxOptionConfig));class Xp extends H.Menu{}const eu=Xp.compose(Object.assign({baseName:"menu",template:(e,a)=>(0,H.foundationMenuTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11882
11882
|
${(0,H.foundationMenuStyles)(e,a)}
|
|
11883
11883
|
:host {
|
|
11884
11884
|
border: calc(var(--focus-stroke-width) * 1px) solid
|
|
11885
11885
|
color-mix(in srgb, ${f.neutralFillStealthHover}, transparent 15%);
|
|
11886
11886
|
padding: 0;
|
|
11887
11887
|
}
|
|
11888
|
-
`,shadowOptions:H.foundationMenuShadowOptions},H.defaultMenuConfig)),
|
|
11888
|
+
`,shadowOptions:H.foundationMenuShadowOptions},H.defaultMenuConfig)),au=H.foundationMenuItemShadowOptions;class ru extends H.MenuItem{}const tu=ru.compose(Object.assign({baseName:"menu-item",template:(e,a)=>(0,H.foundationMenuItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
11889
11889
|
${(0,H.foundationMenuItemStyles)(e,a)}
|
|
11890
11890
|
:host {
|
|
11891
11891
|
margin: 0;
|
|
@@ -11921,9 +11921,9 @@
|
|
|
11921
11921
|
background: ${f.neutralFillStealthHover}
|
|
11922
11922
|
color: ${f.neutralForegroundRest}
|
|
11923
11923
|
*/
|
|
11924
|
-
`,shadowOptions:
|
|
11925
|
-
${
|
|
11926
|
-
`,
|
|
11924
|
+
`,shadowOptions:au},H.defaultMenuItemConfig)),ou=b.css`
|
|
11925
|
+
${Wc}
|
|
11926
|
+
`,iu=H.defaultModalConfig,nu=H.foundationModalTemplate,lu=H.foundationModalShadowOptions;class gu extends H.Modal{}const su=gu.compose(Object.assign({baseName:"modal",shadowOptions:lu,styles:ou,template:nu},iu)),du=b.css`
|
|
11927
11927
|
${H.multiselectStyles}
|
|
11928
11928
|
|
|
11929
11929
|
#display-field {
|
|
@@ -11999,9 +11999,9 @@
|
|
|
11999
11999
|
rapid-checkbox[disabled] {
|
|
12000
12000
|
cursor: not-allowed;
|
|
12001
12001
|
}
|
|
12002
|
-
`,
|
|
12002
|
+
`,cu=b.html`
|
|
12003
12003
|
${(0,H.getPrefixedMultiselect)("rapid")}
|
|
12004
|
-
`;class
|
|
12004
|
+
`;class pu extends H.Multiselect{}const uu=H.defaultMultiselectConfig,hu=H.foundationMultiselectShadowOptions,mu=pu.compose(Object.assign({baseName:"multiselect",template:cu,styles:du,shadowOptions:hu},uu));class bu extends H.NotificationListener{}const vu=bu.compose({baseName:"notification-listener",template:H.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}});class fu extends H.NumberField{}const wu=H.defaultNumberFieldConfig,yu=H.foundationNumberFieldTemplate,xu=H.foundationNumberFieldShadowOptions,ku=fu.compose(Object.assign({baseName:"number-field",template:yu,styles:(e,a)=>b.css`
|
|
12005
12005
|
:host {
|
|
12006
12006
|
margin-bottom: calc(var(--design-unit) * 2px);
|
|
12007
12007
|
flex: 1 1 auto;
|
|
@@ -12092,11 +12092,11 @@
|
|
|
12092
12092
|
.control:focus-visible {
|
|
12093
12093
|
outline: none;
|
|
12094
12094
|
}
|
|
12095
|
-
`,shadowOptions:
|
|
12095
|
+
`,shadowOptions:xu},wu));class zu extends H.Progress{}const Su=zu.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,H.foundationProgressTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12096
12096
|
${(0,H.foundationProgressStyles)(e,a)}
|
|
12097
|
-
`,shadowOptions:H.foundationProgressShadowOptions},H.defaultProgressConfig));class
|
|
12097
|
+
`,shadowOptions:H.foundationProgressShadowOptions},H.defaultProgressConfig));class Cu extends H.ProgressRing{}const $u=Cu.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>(0,H.foundationProgressRingTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12098
12098
|
${(0,H.foundationProgressRingStyles)(e,a)}
|
|
12099
|
-
`,shadowOptions:H.foundationProgressRingShadowOptions},H.defaultProgressRingConfig));class
|
|
12099
|
+
`,shadowOptions:H.foundationProgressRingShadowOptions},H.defaultProgressRingConfig));class Au extends H.Radio{}const Ou=Au.compose(Object.assign({baseName:"radio",template:(e,a)=>(0,H.foundationRadioTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12100
12100
|
${(0,H.foundationRadioStyles)(e,a)}
|
|
12101
12101
|
:host {
|
|
12102
12102
|
margin: calc(var(--design-unit) * 2px) 0 calc(var(--design-unit) * 2px) 0;
|
|
@@ -12128,13 +12128,13 @@
|
|
|
12128
12128
|
:host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator {
|
|
12129
12129
|
background: var(--accent-fill-rest);
|
|
12130
12130
|
}
|
|
12131
|
-
`,shadowOptions:H.foundationRadioShadowOptions},H.defaultRadioConfig));class
|
|
12131
|
+
`,shadowOptions:H.foundationRadioShadowOptions},H.defaultRadioConfig));class Du extends H.RadioGroup{}const Tu=Du.compose(Object.assign({baseName:"radio-group",template:(e,a)=>(0,H.foundationRadioGroupTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12132
12132
|
${(0,H.foundationRadioGroupStyles)(e,a)}
|
|
12133
|
-
`,shadowOptions:H.foundationRadioGroupShadowOptions},H.defaultRadioGroupConfig)),
|
|
12133
|
+
`,shadowOptions:H.foundationRadioGroupShadowOptions},H.defaultRadioGroupConfig)),Fu=b.css`
|
|
12134
12134
|
${H.foundationSearchBarStyles}
|
|
12135
|
-
`,
|
|
12135
|
+
`,Ru=b.html`
|
|
12136
12136
|
${(0,H.getPrefixedSearchBar)("rapid")}
|
|
12137
|
-
`;class
|
|
12137
|
+
`;class Nu extends H.SearchBar{}const Lu=Nu.compose(Object.assign({baseName:"search-bar",template:Ru,styles:Fu,shadowOptions:H.foundationSearchBarShadowOptions},H.defaultSearchBarConfig));class Mu extends H.SearchBarCombobox{}const Iu=Mu.compose(Object.assign({baseName:"search-bar-combobox",template:(e,a)=>(0,H.foundationSearchBarComboboxTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12138
12138
|
${(0,H.foundationSearchBarComboboxStyles)(e,a)}
|
|
12139
12139
|
|
|
12140
12140
|
:host {
|
|
@@ -12165,7 +12165,7 @@
|
|
|
12165
12165
|
:host .listbox ::slotted(*:last-child) {
|
|
12166
12166
|
border-bottom: none;
|
|
12167
12167
|
}
|
|
12168
|
-
`,shadowOptions:H.foundationSearchBarComboboxShadowOptions},H.defaultSearchBarComboboxConfig));class
|
|
12168
|
+
`,shadowOptions:H.foundationSearchBarComboboxShadowOptions},H.defaultSearchBarComboboxConfig));class ju extends H.SegmentedControl{}const Eu=ju.compose(Object.assign({baseName:"segmented-control",template:(e,a)=>(0,H.foundationSegmentedControlTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12169
12169
|
${(0,H.foundationSegmentedControlStyles)(e,a)}
|
|
12170
12170
|
:host {
|
|
12171
12171
|
font-family: var(--body-font);
|
|
@@ -12201,7 +12201,7 @@
|
|
|
12201
12201
|
border-color: transparent;
|
|
12202
12202
|
box-shadow: 2px 1000px 1px rgb(0 0 0 / 50%) inset;
|
|
12203
12203
|
}
|
|
12204
|
-
`,shadowOptions:undefined},{}));class
|
|
12204
|
+
`,shadowOptions:undefined},{}));class Pu extends H.Radio{}const Bu=Pu.compose(Object.assign({baseName:"segmented-item",template:(e,a)=>(0,H.foundationSegmentedItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12205
12205
|
${(0,H.foundationSegmentedItemStyles)(e,a)}
|
|
12206
12206
|
:host {
|
|
12207
12207
|
color: var(--neutral-fill-strong-rest);
|
|
@@ -12213,7 +12213,7 @@
|
|
|
12213
12213
|
:host([aria-checked='true']) {
|
|
12214
12214
|
color: color-mix(in srgb, white, transparent 10%);
|
|
12215
12215
|
}
|
|
12216
|
-
`,shadowOptions:undefined},{}));class
|
|
12216
|
+
`,shadowOptions:undefined},{}));class Gu extends H.Select{}const Uu=Gu.compose(Object.assign({baseName:"select",template:(e,a)=>(0,H.foundationSelectTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12217
12217
|
${(0,H.foundationSelectStyles)(e,a)}
|
|
12218
12218
|
:host {
|
|
12219
12219
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
@@ -12285,14 +12285,14 @@
|
|
|
12285
12285
|
::slotted([role='option']) {
|
|
12286
12286
|
margin: 0;
|
|
12287
12287
|
}
|
|
12288
|
-
`,shadowOptions:H.foundationSelectShadowOptions},H.defaultSelectConfig));class
|
|
12288
|
+
`,shadowOptions:H.foundationSelectShadowOptions},H.defaultSelectConfig));class _u extends H.Skeleton{}const Hu=_u.compose(Object.assign({baseName:"skeleton",template:(e,a)=>(0,H.foundationSkeletonTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12289
12289
|
${(0,H.foundationSkeletonStyles)(e,a)}
|
|
12290
12290
|
:host {
|
|
12291
12291
|
--skeleton-fill: var(
|
|
12292
12292
|
--neutral-fill-stealth-rest
|
|
12293
12293
|
); /** value in ux doc rgba(242 242 242 / 0.1) */
|
|
12294
12294
|
}
|
|
12295
|
-
`,shadowOptions:H.foundationSkeletonShadowOptions},H.defaultSkeletonConfig));class
|
|
12295
|
+
`,shadowOptions:H.foundationSkeletonShadowOptions},H.defaultSkeletonConfig));class Vu extends H.Slider{}const Yu=Vu.compose(Object.assign({baseName:"slider",template:(e,a)=>(0,H.foundationSliderTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12296
12296
|
${(0,H.foundationSliderStyles)(e,a)}
|
|
12297
12297
|
|
|
12298
12298
|
.thumb-cursor {
|
|
@@ -12350,7 +12350,7 @@
|
|
|
12350
12350
|
background-color: var(--neutral-stroke-rest);
|
|
12351
12351
|
width: calc((var(--track-width) + 2) * 1px) !important;
|
|
12352
12352
|
}
|
|
12353
|
-
`,shadowOptions:H.foundationSliderShadowOptions},H.defaultSliderConfig));class
|
|
12353
|
+
`,shadowOptions:H.foundationSliderShadowOptions},H.defaultSliderConfig));class Qu extends H.SliderLabel{}const Wu=Qu.compose(Object.assign({baseName:"slider-label",template:(e,a)=>(0,H.foundationSliderLabelTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12354
12354
|
${(0,H.foundationSliderLabelStyles)(e,a)}
|
|
12355
12355
|
.label {
|
|
12356
12356
|
padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);
|
|
@@ -12361,7 +12361,7 @@
|
|
|
12361
12361
|
text-align: center;
|
|
12362
12362
|
font-size: var(--type-ramp-minus-1-font-size, 12px);
|
|
12363
12363
|
}
|
|
12364
|
-
`,shadowOptions:H.foundationSliderLabelShadowOptions},H.defaultSliderLabelConfig)),
|
|
12364
|
+
`,shadowOptions:H.foundationSliderLabelShadowOptions},H.defaultSliderLabelConfig)),qu=b.css`
|
|
12365
12365
|
${H.foundationSnackbarStyles}
|
|
12366
12366
|
.snackbar {
|
|
12367
12367
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);
|
|
@@ -12382,11 +12382,11 @@
|
|
|
12382
12382
|
.action {
|
|
12383
12383
|
gap: calc(var(--design-unit) * 2px);
|
|
12384
12384
|
}
|
|
12385
|
-
`,
|
|
12385
|
+
`,Ju=b.html`
|
|
12386
12386
|
${(0,H.getPrefixedSnackbar)("rapid")}
|
|
12387
|
-
`,
|
|
12387
|
+
`,Zu=H.foundationSnackbarShadowOptions;class Ku extends H.Snackbar{}const Xu=Ku.compose({baseName:"snackbar",shadowOptions:Zu,styles:qu,template:Ju});class eh extends H.StackingIcons{}const ah=eh.compose({baseName:"stacking-icons",template:H.foundationStackingIconsTemplate,styles:(e,a)=>b.css`
|
|
12388
12388
|
${(0,H.foundationStackingIconsStyles)(e,a)}
|
|
12389
|
-
`}),
|
|
12389
|
+
`}),rh=b.css`
|
|
12390
12390
|
${H.foundationStepperStyles}
|
|
12391
12391
|
|
|
12392
12392
|
:host {
|
|
@@ -12433,11 +12433,11 @@
|
|
|
12433
12433
|
padding: 0 calc(var(--design-unit) * 2px);
|
|
12434
12434
|
color: var(--neutral-foreground-hint);
|
|
12435
12435
|
}
|
|
12436
|
-
`,
|
|
12436
|
+
`,th=b.html`
|
|
12437
12437
|
${(0,H.getPrefixedStepper)("rapid")}
|
|
12438
|
-
`;class
|
|
12438
|
+
`;class oh extends H.Stepper{}const ih=oh.compose(Object.assign({baseName:"stepper",template:th,styles:rh,shadowOptions:H.foundationStepperShadowOptions},H.defaultStepperConfig)),nh=b.html`
|
|
12439
12439
|
${(0,H.getPrefixedStepperTab)("rapid")}
|
|
12440
|
-
`;class
|
|
12440
|
+
`;class lh extends H.StepperTab{}const gh=lh.compose(Object.assign({baseName:"stepper-tab",template:nh,styles:(e,a)=>b.css`
|
|
12441
12441
|
${(0,H.foundationStepperTabStyles)(e,a)}
|
|
12442
12442
|
|
|
12443
12443
|
rapid-tree-item {
|
|
@@ -12497,7 +12497,7 @@
|
|
|
12497
12497
|
:host([error]) .step-title {
|
|
12498
12498
|
color: var(--error-color);
|
|
12499
12499
|
}
|
|
12500
|
-
`,shadowOptions:H.foundationStepperTabShadowOptions},H.defaultStepperTabConfig));class
|
|
12500
|
+
`,shadowOptions:H.foundationStepperTabShadowOptions},H.defaultStepperTabConfig));class sh extends H.StepperTabPanel{}const dh=sh.compose(Object.assign({baseName:"stepper-tab-panel",template:(e,a)=>(0,H.foundationStepperTabPanelTemplate)(e,a),shadowOptions:H.foundationStepperTabPanelShadowOptions},H.defaultStepperTabPanelConfig)),ch={switch:'<div class="checked-indicator" part="checked-indicator"></div>'};class ph extends H.Switch{}const uh=ph.compose(Object.assign({baseName:"switch",template:(e,a)=>(0,H.foundationSwitchTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12501
12501
|
${(0,H.foundationSwitchStyles)(e,a)}
|
|
12502
12502
|
:host {
|
|
12503
12503
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -12534,7 +12534,7 @@
|
|
|
12534
12534
|
:host([aria-checked='true']:not([disabled])) .switch:active .checked-indicator {
|
|
12535
12535
|
background: var(--accent-fill-rest);
|
|
12536
12536
|
}
|
|
12537
|
-
`,shadowOptions:H.foundationSwitchShadowOptions},
|
|
12537
|
+
`,shadowOptions:H.foundationSwitchShadowOptions},ch));class hh extends H.Tab{}const mh=hh.compose(Object.assign({baseName:"tab",template:(e,a)=>(0,H.foundationTabTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12538
12538
|
${(0,H.foundationTabStyles)(e,a)}
|
|
12539
12539
|
:host {
|
|
12540
12540
|
background-color: var(--neutral-layer-2);
|
|
@@ -12547,13 +12547,13 @@
|
|
|
12547
12547
|
:host([aria-selected='true']:hover) {
|
|
12548
12548
|
background-color: var(--neutral-layer-4);
|
|
12549
12549
|
}
|
|
12550
|
-
`,shadowOptions:H.foundationTabShadowOptions},H.defaultTabConfig));class
|
|
12550
|
+
`,shadowOptions:H.foundationTabShadowOptions},H.defaultTabConfig));class bh extends H.TabPanel{}const vh=bh.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,H.foundationTabPanelTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12551
12551
|
${(0,H.foundationTabPanelStyles)(e,a)}
|
|
12552
12552
|
:host {
|
|
12553
12553
|
padding: 0;
|
|
12554
12554
|
background-color: var(--neutral-layer-4);
|
|
12555
12555
|
}
|
|
12556
|
-
`,shadowOptions:H.foundationTabPanelShadowOptions},H.defaultTabPanelConfig));class
|
|
12556
|
+
`,shadowOptions:H.foundationTabPanelShadowOptions},H.defaultTabPanelConfig));class fh extends H.Tabs{}const wh=fh.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,H.foundationTabsTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12557
12557
|
${(0,H.foundationTabsStyles)(e,a)}
|
|
12558
12558
|
:host {
|
|
12559
12559
|
--base-height-multiplier: 9;
|
|
@@ -12628,7 +12628,7 @@
|
|
|
12628
12628
|
:host([orientation='horizontal']) ::slotted([role='tabpanel'][slot='tabpanel']) {
|
|
12629
12629
|
padding: 0 calc((3 + (var(--design-unit) * 2 * var(--density))) * 1px);
|
|
12630
12630
|
}
|
|
12631
|
-
`,shadowOptions:H.foundationTabsShadowOptions},H.defaultTabsConfig));class
|
|
12631
|
+
`,shadowOptions:H.foundationTabsShadowOptions},H.defaultTabsConfig));class yh extends H.TextArea{}const xh=yh.compose(Object.assign({baseName:"text-area",template:(e,a)=>(0,H.foundationTextAreaTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12632
12632
|
${(0,H.foundationTextAreaStyles)(e,a)}
|
|
12633
12633
|
|
|
12634
12634
|
:host {
|
|
@@ -12660,7 +12660,7 @@
|
|
|
12660
12660
|
font-weight: 700;
|
|
12661
12661
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
12662
12662
|
}
|
|
12663
|
-
`,shadowOptions:H.foundationTextAreaShadowOptions},H.defaultTextAreaConfig));class
|
|
12663
|
+
`,shadowOptions:H.foundationTextAreaShadowOptions},H.defaultTextAreaConfig));class kh extends H.TextField{}const zh=kh.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,H.foundationTextFieldTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12664
12664
|
${(0,H.foundationTextFieldStyles)(e,a)}
|
|
12665
12665
|
|
|
12666
12666
|
:host {
|
|
@@ -12704,7 +12704,7 @@
|
|
|
12704
12704
|
.label-hidden {
|
|
12705
12705
|
margin: 0;
|
|
12706
12706
|
}
|
|
12707
|
-
`,shadowOptions:H.foundationTextFieldShadowOptions},H.defaultTextFieldConfig))
|
|
12707
|
+
`,shadowOptions:H.foundationTextFieldShadowOptions},H.defaultTextFieldConfig)),Sh=b.css`
|
|
12708
12708
|
${H.foundationToastStyles}
|
|
12709
12709
|
.toast {
|
|
12710
12710
|
background-color: ${f.neutralLayer1};
|
|
@@ -12759,7 +12759,7 @@
|
|
|
12759
12759
|
:host([notify='serious']) .toast::after {
|
|
12760
12760
|
background-color: var(--error-color);
|
|
12761
12761
|
}
|
|
12762
|
-
`,
|
|
12762
|
+
`,Ch=H.defaultToastConfig,$h=H.foundationToastShadowOptions;class Ah extends H.Toast{}const Oh=Ah.compose(Object.assign({baseName:"toast",shadowOptions:$h,styles:Sh,template:H.foundationToastTemplate},Ch));class Dh extends H.Toolbar{}const Th=Dh.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,H.foundationToolbarTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12763
12763
|
${(0,H.foundationToolbarStyles)(e,a)}
|
|
12764
12764
|
:host {
|
|
12765
12765
|
align-items: center;
|
|
@@ -12769,7 +12769,7 @@
|
|
|
12769
12769
|
.positioning-region {
|
|
12770
12770
|
align-items: center;
|
|
12771
12771
|
}
|
|
12772
|
-
`,shadowOptions:H.foundationToolbarShadowOptions},H.defaultToolbarConfig));class
|
|
12772
|
+
`,shadowOptions:H.foundationToolbarShadowOptions},H.defaultToolbarConfig));class Fh extends H.Tooltip{}const Rh=Fh.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,H.foundationTooltipTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12773
12773
|
${(0,H.foundationTooltipStyles)(e,a)}
|
|
12774
12774
|
|
|
12775
12775
|
:host {
|
|
@@ -12792,7 +12792,7 @@
|
|
|
12792
12792
|
alpha-anchored-region.bottom.right .tooltip {
|
|
12793
12793
|
margin-left: 0;
|
|
12794
12794
|
}
|
|
12795
|
-
`,shadowOptions:H.foundationTooltipShadowOptions},H.defaultTooltipConfig));class
|
|
12795
|
+
`,shadowOptions:H.foundationTooltipShadowOptions},H.defaultTooltipConfig));class Nh extends H.TreeItem{}const Lh={expandCollapseGlyph:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">\n <path d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"/>\n </svg>'},Mh=Nh.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,H.foundationTreeItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12796
12796
|
${(0,H.foundationTreeItemStyles)(e,a)}
|
|
12797
12797
|
:host {
|
|
12798
12798
|
font-size: var(--type-ramp-base-font-size);
|
|
@@ -12831,11 +12831,11 @@
|
|
|
12831
12831
|
width: calc(var(--design-unit) * 3px);
|
|
12832
12832
|
height: calc(var(--design-unit) * 3px);
|
|
12833
12833
|
}
|
|
12834
|
-
`,shadowOptions:H.foundationTreeItemShadowOptions},
|
|
12834
|
+
`,shadowOptions:H.foundationTreeItemShadowOptions},Lh));class Ih extends H.TreeView{}const jh=Ih.compose(Object.assign({baseName:"tree-view",template:(e,a)=>(0,H.foundationTreeViewTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12835
12835
|
${(0,H.foundationTreeViewStyles)(e,a)}
|
|
12836
|
-
`,shadowOptions:H.foundationTreeViewShadowOptions},H.defaultTreeViewConfig)),
|
|
12836
|
+
`,shadowOptions:H.foundationTreeViewShadowOptions},H.defaultTreeViewConfig)),Eh=b.html`
|
|
12837
12837
|
${(0,H.getPrefixedUrlInput)("rapid")}
|
|
12838
|
-
`;class
|
|
12838
|
+
`;class Ph extends H.UrlInput{}const Bh={designSystemProvider:jd,rapidAccordion:Pd,rapidAccordionItem:Gd,rapidActionsMenu:_d,rapidAnchor:Kd,rapidAnchoredRegion:ec,rapidAvatar:rc,rapidBadge:oc,rapidBanner:gc,rapidBreadcrumb:dc,rapidBreadcrumbItem:pc,rapidButton:hc,rapidCalendar:bc,rapidCard:fc,rapidCategorizedMultiselect:Sc,rapidCheckbox:$c,rapidCombobox:Oc,rapidConnectionIndicator:Tc,rapidDataGrid:()=>(0,H.foundationDataGrid)(),rapidDataGridCell:()=>(0,H.foundationDataGridCell)(),rapidDataGridRow:()=>(0,H.foundationDataGridRow)(),rapidDatePicker:Qc,rapidDialog:Xc,rapidDisclosure:ap,rapidDivider:tp,rapidDropdownMenu:ip,rapidErrorBoundary:()=>(0,H.foundationErrorBoundary)(),rapidFileUpload:mp,rapidFilter:fp,rapidFilterBar:xp,rapidFlexLayout:()=>(0,H.foundationFlexLayout)(),rapidFlipper:Ap,rapidFlyout:Np,rapidGridLayout:()=>(0,H.foundationGridLayout)(),rapidGridLayoutItem:()=>(0,H.foundationGridLayoutItem)(),rapidHorizontalScroll:Hp,rapidIcon:Wp,rapidListbox:Jp,rapidListboxOption:Kp,rapidMenu:eu,rapidMenuItem:tu,rapidModal:su,rapidMultiselect:mu,rapidNotificationListener:vu,rapidNumberField:ku,rapidProgress:Su,rapidProgressRing:$u,rapidRadio:Ou,rapidRadioGroup:Tu,rapidSearchBar:Lu,rapidSearchBarCombobox:Iu,rapidSegmentedControl:Eu,rapidSegmentedItem:Bu,rapidSelect:Uu,rapidSkeleton:Hu,rapidSlider:Yu,rapidSliderLabel:Wu,rapidSnackbar:Xu,rapidStackingIcons:ah,rapidStepper:ih,rapidStepperTab:gh,rapidStepperTabPanel:dh,rapidSwitch:uh,rapidTab:mh,rapidTabPanel:vh,rapidTabs:wh,rapidTextArea:xh,rapidTextField:zh,rapidToast:Oh,rapidToolbar:Th,rapidTooltip:Rh,rapidTreeItem:Mh,rapidTreeView:jh,rapidUrlInput:Ph.compose(Object.assign({baseName:"url-input",template:Eh,styles:(e,a)=>b.css`
|
|
12839
12839
|
${(0,H.foundationUrlInputStyles)(e,a)}
|
|
12840
12840
|
a {
|
|
12841
12841
|
color: var(--accent-fill-rest);
|
|
@@ -12851,7 +12851,7 @@
|
|
|
12851
12851
|
font-size: var(--type-ramp-base-font-size);
|
|
12852
12852
|
top: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) / 2 * 1px);
|
|
12853
12853
|
}
|
|
12854
|
-
`,shadowOptions:H.foundationUrlInputShadowOptions},H.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};class
|
|
12854
|
+
`,shadowOptions:H.foundationUrlInputShadowOptions},H.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};class Gh extends un{}const Uh=Gh.compose({baseName:"date-editor",styles:hn,template:mn("rapid")});class _h extends wn{}const Hh=_h.compose({baseName:"multiselect-editor",styles:yn,template:xn("rapid")});class Vh extends Cn{}const Yh=Vh.compose({baseName:"select-editor",styles:$n,template:An("rapid")});class Qh extends Fn{}const Wh=Qh.compose({baseName:"number-editor",styles:Rn,template:Nn("rapid")});class qh extends jn{}const Jh=qh.compose({baseName:"string-editor",styles:En,template:Pn("rapid")});class Zh extends _n{}const Kh=Zh.compose({baseName:"editable-renderer",styles:Hn,template:Vn("rapid")});class Xh extends Zn{}const em=Xh.compose({baseName:"grid-pro-action-renderer",styles:b.css`
|
|
12855
12855
|
${Xn}
|
|
12856
12856
|
.button-padding {
|
|
12857
12857
|
justify-content: center;
|
|
@@ -12873,12 +12873,12 @@
|
|
|
12873
12873
|
`:e.params.actionName}
|
|
12874
12874
|
</rapid-button>
|
|
12875
12875
|
</div>
|
|
12876
|
-
`});class
|
|
12876
|
+
`});class am extends ol{}const rm=am.compose({baseName:"grid-pro-actions-menu-renderer",template:b.html`
|
|
12877
12877
|
<rapid-actions-menu
|
|
12878
12878
|
name="${e=>e.params.headerName}"
|
|
12879
12879
|
:definition=${e=>e.params}
|
|
12880
12880
|
></rapid-actions-menu>
|
|
12881
|
-
`});class
|
|
12881
|
+
`});class tm extends gl{}const om=tm.compose({baseName:"boolean-renderer",styles:sl,template:dl("rapid")});const im=class extends yl{}.compose({baseName:"grid-text-renderer",styles:xl,template:kl("rapid")});const nm=class extends Cl{}.compose({baseName:"select-renderer",styles:$l,template:Al("rapid")}),lm={foregroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#879ba6")),backgroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#1f2126")),borderSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#2e3339")),rowHoverSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#2b2e34"))},gm={foregroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#000000")),headerForegroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#181d1f")),backgroundSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#FFFFFF")),borderSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#babfc7")),rowHoverSwatch:f.SwatchRGB.from((0,Fe.parseColorHexRGB)("#2196f3"))},{create:sm}=v.DesignToken,dm={backgroundColor:sm("rapid-ag-background-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?gm.backgroundSwatch:lm.backgroundSwatch)),borderColor:sm("rapid-ag-border-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?gm.borderSwatch:lm.borderSwatch)),foregroundColor:sm("rapid-ag-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?gm.foregroundSwatch:lm.foregroundSwatch)),headerForegroundColor:sm("rapid-ag-header-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?gm.headerForegroundSwatch:lm.headerForegroundSwatch)),rowHoverColor:sm("rapid-ag-row-hover-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?gm.rowHoverSwatch:lm.rowHoverSwatch))},cm=b.css`
|
|
12882
12882
|
.ag-theme-genesis-rapid,
|
|
12883
12883
|
.ag-theme-genesis-rapid-dark {
|
|
12884
12884
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -13339,76 +13339,76 @@
|
|
|
13339
13339
|
.ag-theme-genesis-rapid-dark {
|
|
13340
13340
|
color-scheme: dark;
|
|
13341
13341
|
}
|
|
13342
|
-
`,
|
|
13343
|
-
${
|
|
13344
|
-
${nn(
|
|
13342
|
+
`,pm={[Zi.backgroundColor]:dm.backgroundColor,[Zi.foregroundColor]:dm.foregroundColor,[Zi.oddRowBackgroundColor]:dm.backgroundColor,[Zi.headerBackgroundColor]:dm.backgroundColor,[Zi.headerForegroundColor]:dm.headerForegroundColor,[Zi.selectedRowBackgroundColor]:dm.rowHoverColor,[Zi.rowHoverColor]:dm.rowHoverColor,[Zi.borderColor]:dm.borderColor,[Zi.rowBorderColor]:dm.rowHoverColor,[Zi.modalOverlayBackgroundColor]:dm.backgroundColor,[Zi.inputFocusBoxShadow]:dm.headerForegroundColor,[Zi.inputFocusBorderColor]:dm.headerForegroundColor,[Zi.headerColumnResizeHandleColor]:dm.headerForegroundColor},um="ag-theme-genesis-rapid",hm=b.css`
|
|
13343
|
+
${cm}
|
|
13344
|
+
${nn(um,pm)}
|
|
13345
13345
|
|
|
13346
|
-
.${
|
|
13346
|
+
.${um} {
|
|
13347
13347
|
${na()}
|
|
13348
13348
|
font-family: var(--body-font);
|
|
13349
13349
|
}
|
|
13350
13350
|
|
|
13351
|
-
.${
|
|
13352
|
-
.${
|
|
13353
|
-
.${
|
|
13351
|
+
.${um} .ag-body .ag-body-viewport,
|
|
13352
|
+
.${um} .ag-header,
|
|
13353
|
+
.${um} .ag-row {
|
|
13354
13354
|
background-color: var(--neutral-layer-4);
|
|
13355
13355
|
}
|
|
13356
13356
|
|
|
13357
|
-
.${
|
|
13357
|
+
.${um} .ag-header {
|
|
13358
13358
|
border-bottom-color: var(--neutral-stroke-rest);
|
|
13359
13359
|
font-weight: bold;
|
|
13360
13360
|
font-size: var(--type-ramp-base-font-size);
|
|
13361
13361
|
}
|
|
13362
13362
|
|
|
13363
|
-
.${
|
|
13363
|
+
.${um} .ag-root-wrapper {
|
|
13364
13364
|
border-radius: calc(var(--ag-border-radius) * 1px);
|
|
13365
13365
|
border: 1px solid var(--rapid-ag-border-color);
|
|
13366
13366
|
}
|
|
13367
13367
|
|
|
13368
|
-
.${
|
|
13368
|
+
.${um} .ag-cell {
|
|
13369
13369
|
font-size: var(--type-ramp-minus-1-font-size);
|
|
13370
13370
|
}
|
|
13371
|
-
`,
|
|
13372
|
-
${
|
|
13373
|
-
${nn(
|
|
13371
|
+
`,mm="ag-theme-genesis-rapid-dark",bm=b.css`
|
|
13372
|
+
${cm}
|
|
13373
|
+
${nn(um,pm)}
|
|
13374
13374
|
|
|
13375
|
-
.${
|
|
13375
|
+
.${mm} {
|
|
13376
13376
|
${na()}
|
|
13377
13377
|
font-family: var(--body-font);
|
|
13378
13378
|
}
|
|
13379
13379
|
|
|
13380
|
-
.${
|
|
13381
|
-
.${
|
|
13382
|
-
.${
|
|
13380
|
+
.${mm} .ag-body .ag-body-viewport,
|
|
13381
|
+
.${mm} .ag-header,
|
|
13382
|
+
.${mm} .ag-row {
|
|
13383
13383
|
background-color: var(--neutral-layer-4);
|
|
13384
13384
|
}
|
|
13385
13385
|
|
|
13386
|
-
.${
|
|
13386
|
+
.${mm} .ag-header {
|
|
13387
13387
|
border-bottom-color: var(--neutral-stroke-rest);
|
|
13388
13388
|
font-weight: bold;
|
|
13389
13389
|
font-size: var(--type-ramp-base-font-size);
|
|
13390
13390
|
}
|
|
13391
13391
|
|
|
13392
|
-
.${
|
|
13392
|
+
.${mm} .ag-root-wrapper {
|
|
13393
13393
|
border-radius: calc(var(--ag-border-radius) * 1px);
|
|
13394
13394
|
border: 1px solid var(--rapid-ag-border-color);
|
|
13395
13395
|
}
|
|
13396
13396
|
|
|
13397
|
-
.${
|
|
13397
|
+
.${mm} .ag-cell {
|
|
13398
13398
|
font-size: var(--type-ramp-minus-1-font-size);
|
|
13399
13399
|
}
|
|
13400
|
-
`,
|
|
13400
|
+
`,vm=b.css`
|
|
13401
13401
|
/* All the AG themes */
|
|
13402
|
-
${
|
|
13402
|
+
${Mg}
|
|
13403
13403
|
|
|
13404
13404
|
/* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
|
|
13405
|
+
${hm}
|
|
13405
13406
|
${bm}
|
|
13406
|
-
${fm}
|
|
13407
13407
|
|
|
13408
13408
|
.error {
|
|
13409
|
-
border-color: ${
|
|
13409
|
+
border-color: ${Te.shortPink} !important;
|
|
13410
13410
|
}
|
|
13411
|
-
`,
|
|
13411
|
+
`,fm=Ig("rapid"),wm="ag-theme-genesis-rapid-dark";const ym=Vg,xm=Yg,km={rapidAgEditableRenderer:Kh,rapidAgActionRenderer:em,rapidAgActionsMenuRenderer:rm,rapidAgBooleanRenderer:om,rapidAgTextRenderer:im,rapidAgSelectRenderer:nm,rapidAgDateEditor:Uh,rapidAgMultiselectEditor:Hh,rapidAgSelectEditor:Yh,rapidAgNumberEditor:Wh,rapidAgStringEditor:Jh,rapidGridPro:class extends Hg{constructor(){super(...arguments),this.theme=wm}themeChanged(e,a){(e||a===wm)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[ln.action]:Xh,[ln.actionsMenu]:am,[ln.boolean]:tm,[ln.editable]:Zh,[ln.selectEditor]:Vh,[ln.numberEditor]:Qh,[ln.multiselectEditor]:_h,[ln.dateEditor]:Gh,[ln.stringEditor]:qh};(this.theme===um||this.theme===mm)&&(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:fm,styles:vm,shadowOptions:ym},xm)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var zm,Sm=r(91510);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(zm||(zm={}));const Cm={Roboto:ia,"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'},$m=Cm["Segoe UI"],Am=b.css`
|
|
13412
13412
|
${(0,v.display)("block")} :host {
|
|
13413
13413
|
width: 100%;
|
|
13414
13414
|
display: inline-flex;
|
|
@@ -13763,7 +13763,7 @@
|
|
|
13763
13763
|
<slot></slot>
|
|
13764
13764
|
</div>
|
|
13765
13765
|
</template>
|
|
13766
|
-
`,
|
|
13766
|
+
`,Dm=({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(Cm).find((a=>Cm[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Tm=Dm(da),Fm={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient",text:"lightweight"},Rm={accent:"primary",neutral:"secondary",font:"white"},Nm=Dm(l.designTokens),Lm=Dm(Md),Mm={zero:{prefix:"zero",tokenDefaults:Tm,buttons:Fm,badge:Rm},alpha:{prefix:"alpha",tokenDefaults:Nm,buttons:{accent:"accent",neutral:"neutral",outline:"outline",text:"lightweight"},badge:{accent:"primary",neutral:"neutral",font:"white"}},rapid:{prefix:"rapid",tokenDefaults:Lm,buttons:{accent:"primary",neutral:"neutral",outline:"primary-outline",text:"link"},badge:{accent:"primary",neutral:"neutral",font:"text"}},custom:{prefix:"zero",tokenDefaults:null,buttons:Fm,badge:Rm}};let Im=class extends b.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Tm.luminance===f.StandardLuminance.DarkMode,this.luminance=Tm.luminance,this.neutralColor=Tm.neutralColor,this.accentColor=Tm.accentColor,this.bodyFont=Tm.bodyFont,this.density=Tm.density,this.borderRadius=Tm.borderRadius,this.strokeWidth=Tm.strokeWidth,this.designUnit=Tm.designUnit,this.baseFontSize=Tm.baseFontSize,this.baseLineHeight=Tm.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof v.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof f.Combobox||e.target instanceof f.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof v.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?f.StandardLuminance.DarkMode:f.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&b.DOM.queueUpdate((()=>{const e=Dm(a);Mm.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Sm.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(Mm[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Sm.__awaiter)(this,void 0,void 0,(function*(){const e=[{name:"Zero",value:"zero"},{name:"Foundation UI",value:"alpha"},{name:"Rapid",value:"rapid"}];if(this.customDesignMode){const{appName:e="Custom Design",dsPrefix:a="custom"}=yield this.getAppDetails(),r={name:e,value:a};this.designSystems=[r],Mm.custom.prefix=a,Mm.custom.buttons=Mm[a].buttons,Mm.custom.badge=Mm[a].badge,this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:Mm[this.ds].prefix,buttonAppearanceAccent:Mm[this.ds].buttons.accent,buttonAppearanceNeutral:Mm[this.ds].buttons.neutral,buttonAppearanceOutline:Mm[this.ds].buttons.outline,buttonAppearanceText:Mm[this.ds].buttons.text,badgeAppearanceAccent:Mm[this.ds].badge.accent,badgeAppearanceNeutral:Mm[this.ds].badge.neutral,badgeText:Mm[this.ds].badge.font};this.$emit(zm.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(Mm[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Cm[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(zm.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===f.StandardLuminance.DarkMode,b.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppDetails(){return fetch("/api/details").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},oa(),b.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(zm.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Sm.__decorate)([(0,b.attr)({mode:"boolean",attribute:"custom-design-mode"})],Im.prototype,"customDesignMode",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"designSystems",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"ds",void 0),(0,Sm.__decorate)([b.attr],Im.prototype,"darkMode",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"neutralColor",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"accentColor",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"bodyFont",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"density",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"borderRadius",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"strokeWidth",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"designUnit",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"baseFontSize",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"baseLineHeight",void 0),(0,Sm.__decorate)([b.observable],Im.prototype,"preserveOptions",void 0),Im=(0,Sm.__decorate)([(0,b.customElement)({name:"design-system-editor",template:Om,styles:Am})],Im);const jm=(0,k.createLogger)("documentation-components"),Em=e=>{const a=(e=>{const a=(0,Fe.parseColorHexRGB)(e);return a?f.SwatchRGB.from(a):null})(e);return a?f.PaletteRGB.create(a):null},Pm=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},Bm=(e,a)=>{const r=Em(e.neutralColor);f.neutralPalette.setValueFor(a,r);const t=Em(e.accentColor);f.accentPalette.setValueFor(a,t),f.baseLayerLuminance.setValueFor(a,e.luminance),f.density.setValueFor(a,e.density),f.controlCornerRadius.setValueFor(a,e.borderRadius),f.strokeWidth.setValueFor(a,e.strokeWidth),f.designUnit.setValueFor(a,e.designUnit),f.bodyFont.setValueFor(a,e.bodyFont),f.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),f.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),f.typeRampMinus1FontSize.setValueFor(a,Pm(f.typeRampBaseFontSize,ta.Du.minusOne,a)),f.typeRampMinus1LineHeight.setValueFor(a,Pm(f.typeRampBaseLineHeight,ta.Du.minusOne,a)),f.typeRampMinus2FontSize.setValueFor(a,Pm(f.typeRampBaseFontSize,ta.Du.minusTwo,a)),f.typeRampMinus2LineHeight.setValueFor(a,Pm(f.typeRampBaseLineHeight,ta.Du.minusTwo,a)),f.typeRampPlus1FontSize.setValueFor(a,Pm(f.typeRampBaseFontSize,ta.Du.plusOne,a)),f.typeRampPlus1LineHeight.setValueFor(a,Pm(f.typeRampBaseLineHeight,ta.Du.plusOne,a)),f.typeRampPlus2FontSize.setValueFor(a,Pm(f.typeRampBaseFontSize,ta.Du.plusTwo,a)),f.typeRampPlus2LineHeight.setValueFor(a,Pm(f.typeRampBaseLineHeight,ta.Du.plusTwo,a)),f.typeRampPlus3FontSize.setValueFor(a,Pm(f.typeRampBaseFontSize,ta.Du.plusThree,a)),f.typeRampPlus3LineHeight.setValueFor(a,Pm(f.typeRampBaseLineHeight,ta.Du.plusThree,a)),f.typeRampPlus4FontSize.setValueFor(a,Pm(f.typeRampBaseFontSize,ta.Du.plusFour,a)),f.typeRampPlus4LineHeight.setValueFor(a,Pm(f.typeRampBaseLineHeight,ta.Du.plusFour,a)),f.typeRampPlus5FontSize.setValueFor(a,Pm(f.typeRampBaseFontSize,ta.Du.plusFive,a)),f.typeRampPlus5LineHeight.setValueFor(a,Pm(f.typeRampBaseLineHeight,ta.Du.plusFive,a)),f.typeRampPlus6FontSize.setValueFor(a,Pm(f.typeRampBaseFontSize,ta.Du.plusSix,a)),f.typeRampPlus6LineHeight.setValueFor(a,Pm(f.typeRampBaseLineHeight,ta.Du.plusSix,a))},Gm=b.css`
|
|
13767
13767
|
:host {
|
|
13768
13768
|
--badge-fill-primary: var(--accent-fill-rest);
|
|
13769
13769
|
--badge-fill-neutral: var(--neutral-fill-rest);
|
|
@@ -13859,7 +13859,7 @@
|
|
|
13859
13859
|
display: flex;
|
|
13860
13860
|
flex-direction: column;
|
|
13861
13861
|
}
|
|
13862
|
-
`,
|
|
13862
|
+
`,Um=b.html`
|
|
13863
13863
|
${e=>(e=>b.html`
|
|
13864
13864
|
<template>
|
|
13865
13865
|
<${e}-design-system-provider ${(0,b.ref)("provider")}>
|
|
@@ -14274,7 +14274,7 @@
|
|
|
14274
14274
|
</${e}-design-system-provider>
|
|
14275
14275
|
</template>
|
|
14276
14276
|
`)(e.prefix)}
|
|
14277
|
-
`;let
|
|
14277
|
+
`;let _m=class extends b.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.buttonAppearanceAccent="primary-blue",this.buttonAppearanceNeutral="primary-grey",this.buttonAppearanceOutline="primary-gradient",this.buttonAppearanceText="lightweight",this.badgeAppearanceAccent="primary",this.badgeAppearanceNeutral="secondary",this.badgeText="white",this.cards=Array.from({length:8},((e,a)=>a+1)),this.countries=["Afghanistan","Aland Islands","Albania","Algeria","American Samoa","Andorra","Angola","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bonaire, Sint Eustatius and Saba","Cambodia","Cameroon","Canada"],this.menuActions=[{name:"View",callback:e=>jm.debug("VIEWW!!!",e)},{name:"Delete",callback:e=>jm.debug("DELETE!!!",e)},{name:"Edit",callback:e=>jm.debug("EDIT!!!",e)},{name:"Wait",callback:e=>jm.debug("WAIT???",e)}],this.menuDefinition={actions:this.menuActions,buttonAppearance:"stealth",data:{name:"test"}},this.dropDownMenuItems=[{name:"Menu item 1",callback:()=>alert("Menu item 1 clicked"),icon:{name:"glasses"}},{name:"Menu item 2",callback:()=>alert("Menu item 2 clicked")},{name:"Menu item 3",callback:()=>alert("Menu item 3 clicked"),submenu:[{name:"Menu item 5",callback:()=>alert("Menu item 5 clicked"),icon:{name:"address-card"}},{name:"Menu item 6",callback:()=>alert("Menu item 6 clicked"),submenu:[{name:"Menu item 7",callback:()=>alert("Menu item 7 clicked"),color:"red",icon:{name:"address-card"}},{name:"Menu item 8",callback:()=>alert("Menu item 8 clicked"),isDisabled:()=>!0}]}]}]}connectedCallback(){super.connectedCallback(),document.body.addEventListener(zm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(zm.DS_CHANGED,(e=>{this.handleDSChanges(e)})),b.DOM.queueUpdate((()=>{f.bodyFont.withDefault($m)}))}handleStyleChanges(e){const a=e.detail;a&&b.DOM.queueUpdate((()=>{Bm(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,this.buttonAppearanceText=e.detail.buttonAppearanceText,this.badgeAppearanceAccent=e.detail.badgeAppearanceAccent,this.badgeAppearanceNeutral=e.detail.badgeAppearanceNeutral,this.badgeText=e.detail.badgeText}showDialog(e){this[e].show()}closeDialog(e){this[e].close()}dismissBanner(){this.banner.dismiss()}};(0,Sm.__decorate)([b.observable],_m.prototype,"modal",void 0),(0,Sm.__decorate)([b.attr],_m.prototype,"prefix",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"buttonAppearanceAccent",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"buttonAppearanceNeutral",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"buttonAppearanceOutline",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"buttonAppearanceText",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"badgeAppearanceAccent",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"badgeAppearanceNeutral",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"badgeText",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"cards",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"countries",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"menuActions",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"menuDefinition",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"dropDownMenuItems",void 0),(0,Sm.__decorate)([b.observable],_m.prototype,"provider",void 0),_m=(0,Sm.__decorate)([(0,b.customElement)({name:"preview-components",template:Um,styles:Gm})],_m);const Hm=b.css`
|
|
14278
14278
|
.export {
|
|
14279
14279
|
display: flex;
|
|
14280
14280
|
justify-content: center;
|
|
@@ -14285,7 +14285,7 @@
|
|
|
14285
14285
|
display: flex;
|
|
14286
14286
|
justify-content: space-between;
|
|
14287
14287
|
}
|
|
14288
|
-
`,
|
|
14288
|
+
`,Vm=b.html`
|
|
14289
14289
|
<template>
|
|
14290
14290
|
<div class="export">
|
|
14291
14291
|
<alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
|
|
@@ -14306,7 +14306,7 @@
|
|
|
14306
14306
|
</alpha-modal>
|
|
14307
14307
|
</div>
|
|
14308
14308
|
</template>
|
|
14309
|
-
`;let
|
|
14309
|
+
`;let Ym=class extends b.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=>{jm.log("Tokens saved successfully:",e),this.$emit(zm.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{jm.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(zm.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,Sm.__decorate)([b.attr],Ym.prototype,"value",void 0),(0,Sm.__decorate)([b.attr],Ym.prototype,"tokensPath",void 0),Ym=(0,Sm.__decorate)([(0,b.customElement)({name:"design-system-export",template:Vm,styles:Hm})],Ym);const Qm=b.css`
|
|
14310
14310
|
.colors {
|
|
14311
14311
|
display: flex;
|
|
14312
14312
|
flex-wrap: wrap;
|
|
@@ -14319,23 +14319,23 @@
|
|
|
14319
14319
|
flex-grow: 1;
|
|
14320
14320
|
height: 20px;
|
|
14321
14321
|
}
|
|
14322
|
-
`,
|
|
14322
|
+
`,Wm=b.html`
|
|
14323
14323
|
<ul class="colors">
|
|
14324
14324
|
${(0,b.repeat)((e=>e.swatches),b.html`
|
|
14325
14325
|
<li class="color" style="background-color: ${e=>e.toColorString()}"></li>
|
|
14326
14326
|
`)}
|
|
14327
14327
|
</ul>
|
|
14328
|
-
`;let
|
|
14328
|
+
`;let qm=class extends b.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){f[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&b.DOM.queueUpdate((()=>{const e=Em(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(zm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Sm.__decorate)([b.observable],qm.prototype,"swatches",void 0),(0,Sm.__decorate)([b.attr],qm.prototype,"type",void 0),qm=(0,Sm.__decorate)([(0,b.customElement)({name:"color-palette",styles:Qm,template:Wm})],qm);const Jm=b.css`
|
|
14329
14329
|
.preview {
|
|
14330
14330
|
width: 40px;
|
|
14331
14331
|
height: 40px;
|
|
14332
14332
|
}
|
|
14333
|
-
`,
|
|
14333
|
+
`,Zm=b.html`
|
|
14334
14334
|
<div
|
|
14335
14335
|
class="preview"
|
|
14336
14336
|
style="background-color: ${e=>f[e.tokenName].createCSS()}"
|
|
14337
14337
|
></div>
|
|
14338
|
-
`;let
|
|
14338
|
+
`;let Km=class extends b.FASTElement{};(0,Sm.__decorate)([b.attr],Km.prototype,"tokenName",void 0),Km=(0,Sm.__decorate)([(0,b.customElement)({name:"color-token",styles:Jm,template:Zm})],Km);const Xm=b.css`
|
|
14339
14339
|
.container {
|
|
14340
14340
|
display: flex;
|
|
14341
14341
|
width: 100%;
|
|
@@ -14383,7 +14383,7 @@
|
|
|
14383
14383
|
.container > div:not(:last-child) {
|
|
14384
14384
|
border-right: 1px solid #fafafa;
|
|
14385
14385
|
}
|
|
14386
|
-
`,
|
|
14386
|
+
`,eb=[{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"}]}]}],ab=b.html`
|
|
14387
14387
|
<div class="row">
|
|
14388
14388
|
<div
|
|
14389
14389
|
class="preview"
|
|
@@ -14395,19 +14395,19 @@
|
|
|
14395
14395
|
${(e,a)=>f[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
|
|
14396
14396
|
</div>
|
|
14397
14397
|
</div>
|
|
14398
|
-
`,
|
|
14398
|
+
`,rb=b.html`
|
|
14399
14399
|
<div class="container" ${(0,b.ref)("provider")}>
|
|
14400
|
-
${(0,b.repeat)((()=>
|
|
14400
|
+
${(0,b.repeat)((()=>eb),b.html`
|
|
14401
14401
|
<div class="column">
|
|
14402
14402
|
<h3 class="header-title">${e=>e.title}</h3>
|
|
14403
14403
|
${(0,b.repeat)((e=>e.subcategories),b.html`
|
|
14404
14404
|
<h4>${e=>e.title}</h4>
|
|
14405
|
-
${(0,b.repeat)((e=>e.tokens),
|
|
14405
|
+
${(0,b.repeat)((e=>e.tokens),ab)}
|
|
14406
14406
|
`)}
|
|
14407
14407
|
</div>
|
|
14408
14408
|
`)}
|
|
14409
14409
|
</div>
|
|
14410
|
-
`;let
|
|
14410
|
+
`;let tb=class extends b.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(zm.STYLES_CHANGED,(e=>{const a=e.detail;Bm(a,this.provider)}))}};(0,Sm.__decorate)([b.observable],tb.prototype,"provider",void 0),tb=(0,Sm.__decorate)([(0,b.customElement)({name:"color-tokens",template:rb,styles:Xm})],tb);const ob=b.css`
|
|
14411
14411
|
table {
|
|
14412
14412
|
background: var(--neutral-fill-rest);
|
|
14413
14413
|
color: var(--neutral-foreground-rest);
|
|
@@ -14416,7 +14416,7 @@
|
|
|
14416
14416
|
th {
|
|
14417
14417
|
text-align: left;
|
|
14418
14418
|
}
|
|
14419
|
-
`,
|
|
14419
|
+
`,ib=b.html`
|
|
14420
14420
|
<table ${(0,b.ref)("provider")} style="font-family: ${()=>f.bodyFont.createCSS()}">
|
|
14421
14421
|
<colgroup>
|
|
14422
14422
|
<col style="width: 15%;" />
|
|
@@ -14644,7 +14644,7 @@
|
|
|
14644
14644
|
</tr>
|
|
14645
14645
|
</tbody>
|
|
14646
14646
|
</table>
|
|
14647
|
-
`;let
|
|
14647
|
+
`;let nb=class extends b.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(zm.STYLES_CHANGED,(e=>{const a=e.detail;Bm(a,this.provider)}))}};(0,Sm.__decorate)([b.observable],nb.prototype,"provider",void 0),nb=(0,Sm.__decorate)([(0,b.customElement)({name:"typography-tokens",template:ib,styles:ob})],nb);const lb=b.css`
|
|
14648
14648
|
:host {
|
|
14649
14649
|
background: var(--fill-color);
|
|
14650
14650
|
color: var(--neutral-foreground-rest);
|
|
@@ -14660,7 +14660,7 @@
|
|
|
14660
14660
|
margin-top: 24px;
|
|
14661
14661
|
padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
|
|
14662
14662
|
}
|
|
14663
|
-
`,
|
|
14663
|
+
`,gb=b.html`
|
|
14664
14664
|
<template>
|
|
14665
14665
|
<alpha-tabs>
|
|
14666
14666
|
<alpha-tab slot="tab">Components</alpha-tab>
|
|
@@ -14689,7 +14689,7 @@
|
|
|
14689
14689
|
</alpha-tab-panel>
|
|
14690
14690
|
</alpha-tabs>
|
|
14691
14691
|
</template>
|
|
14692
|
-
`;let
|
|
14692
|
+
`;let sb=class extends b.FASTElement{};sb=(0,Sm.__decorate)([(0,b.customElement)({name:"design-system-preview",template:gb,styles:lb})],sb);const db={type:"VerticalLayout",elements:[{type:"Group",label:"Group 1",scope:"#/properties/group1",options:{childElements:[{type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/group1/properties/NAME",label:"Name"}]}]}},{type:"Group",label:"Group 2",scope:"#/properties/group2",options:{childElements:[{type:"LayoutVertical2Columns",elements:[{type:"Control",scope:"#/properties/group2/properties/QUANTITY",label:"Quantity"},{type:"Control",scope:"#/properties/group2/properties/PRICE",label:"Price"},{type:"Control",scope:"#/properties/group2/properties/COUNTERPARTY_ID",options:{data:[{name:"Genesis Global",value:"GENESIS"},{name:"Acme Global",value:"ACME"}],valueField:"value",labelField:"name"},label:"Counterparty"},{type:"Control",scope:"#/properties/group2/properties/INSTRUMENT_ID",options:{data:[{name:"Bond",value:"BOND"},{name:"Equity",value:"EQUITY"}],valueField:"value",labelField:"name"},label:"Instrument"},{type:"Control",scope:"#/properties/group2/properties/SIDE",label:"Side"},{type:"Control",scope:"#/properties/group2/properties/TRADE_DATE",label:"Trade Date"},{type:"Control",scope:"#/properties/group2/properties/ACTIVE",label:"Active"}]}]}}]},cb={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"]}}},pb={type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/users",options:{childUiSchema:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/firstname",label:"First Name"},{type:"Control",scope:"#/properties/lastname",label:"Last Name"},{type:"Control",scope:"#/properties/email",label:"Email"}]}}}]},ub={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"]}}}},hb=b.css`
|
|
14693
14693
|
:host {
|
|
14694
14694
|
background: var(--fill-color);
|
|
14695
14695
|
color: var(--neutral-foreground-rest);
|
|
@@ -14720,7 +14720,7 @@
|
|
|
14720
14720
|
zero-design-system-provider {
|
|
14721
14721
|
display: inline;
|
|
14722
14722
|
}
|
|
14723
|
-
`,
|
|
14723
|
+
`,mb=b.html`
|
|
14724
14724
|
${e=>(e=>b.html`
|
|
14725
14725
|
<template>
|
|
14726
14726
|
<${e}-design-system-provider ${(0,b.ref)("provider")}>
|
|
@@ -14744,7 +14744,7 @@
|
|
|
14744
14744
|
</${e}-design-system-provider>
|
|
14745
14745
|
</template>
|
|
14746
14746
|
`)(e.prefix)}
|
|
14747
|
-
`;let
|
|
14747
|
+
`;let bb=class extends b.FASTElement{constructor(){super(...arguments),this.jsonSchema=cb,this.uischema=db,this.jsonSchemaArray=ub,this.uiSchemaArray=pb,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(zm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(zm.DS_CHANGED,(e=>{this.handleDSChanges(e)})),b.DOM.queueUpdate((()=>{f.bodyFont.withDefault($m)}))}handleStyleChanges(e){const a=e.detail;a&&b.DOM.queueUpdate((()=>{Bm(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix}};(0,Sm.__decorate)([b.observable],bb.prototype,"jsonSchema",void 0),(0,Sm.__decorate)([b.observable],bb.prototype,"uischema",void 0),(0,Sm.__decorate)([b.observable],bb.prototype,"jsonSchemaArray",void 0),(0,Sm.__decorate)([b.observable],bb.prototype,"uiSchemaArray",void 0),(0,Sm.__decorate)([b.attr],bb.prototype,"prefix",void 0),(0,Sm.__decorate)([b.observable],bb.prototype,"provider",void 0),(0,Sm.__decorate)([b.observable],bb.prototype,"editedEntity",void 0),(0,Sm.__decorate)([b.observable],bb.prototype,"editedEntityArray",void 0),bb=(0,Sm.__decorate)([(0,b.customElement)({name:"preview-form",template:mb,styles:hb})],bb);const vb=[{athlete:"Michael Phelps",age:23,country:"United States",year:2008,date:"24/08/2008",sport:"Swimming",gold:8,silver:0,bronze:0,total:8,isActionDisabled:!0},{athlete:"Michael Phelps",age:19,country:"United States",year:2004,date:"29/08/2004",sport:"Swimming",gold:6,silver:0,bronze:2,total:8},{athlete:"Michael Phelps",age:27,country:"United States",year:2012,date:"12/08/2012",sport:"Swimming",gold:4,silver:2,bronze:0,total:6},{athlete:"Natalie Coughlin",age:25,country:"United States",year:2008,date:"24/08/2008",sport:"Swimming",gold:1,silver:2,bronze:3,total:6,isActionDisabled:!0},{athlete:"Aleksey Nemov",age:24,country:"Russia",year:2e3,date:"01/10/2000",sport:"Gymnastics",gold:2,silver:1,bronze:3,total:6},{athlete:"Alicia Coutts",age:24,country:"Australia",year:2012,date:"12/08/2012",sport:"Swimming",gold:1,silver:3,bronze:1,total:5,isActionDisabled:!0},{athlete:"Missy Franklin",age:17,country:"United States",year:2012,date:"12/08/2012",sport:"Swimming",gold:4,silver:0,bronze:1,total:5},{athlete:"Ryan Lochte",age:27,country:"United States",year:2012,date:"12/08/2012",sport:"Swimming",gold:2,silver:2,bronze:1,total:5},{athlete:"Allison Schmitt",age:22,country:"United States",year:2012,date:"12/08/2012",sport:"Swimming",gold:3,silver:1,bronze:1,total:5},{athlete:"Natalie Coughlin",age:21,country:"United States",year:2004,date:"29/08/2004",sport:"Swimming",gold:2,silver:2,bronze:1,total:5},{athlete:"Ian Thorpe",age:17,country:"Australia",year:2e3,date:"01/10/2000",sport:"Swimming",gold:3,silver:2,bronze:0,total:5},{athlete:"Dara Torres",age:33,country:"United States",year:2e3,date:"01/10/2000",sport:"Swimming",gold:2,silver:0,bronze:3,total:5},{athlete:"Cindy Klassen",age:26,country:"Canada",year:2006,date:"26/02/2006",sport:"Speed Skating",gold:1,silver:2,bronze:2,total:5},{athlete:"Nastia Liukin",age:18,country:"United States",year:2008,date:"24/08/2008",sport:"Gymnastics",gold:1,silver:3,bronze:1,total:5},{athlete:"Marit Bjørgen",age:29,country:"Norway",year:2010,date:"28/02/2010",sport:"Cross Country Skiing",gold:3,silver:1,bronze:1,total:5},{athlete:"Sun Yang",age:20,country:"China",year:2012,date:"12/08/2012",sport:"Swimming",gold:2,silver:1,bronze:1,total:4},{athlete:"Kirsty Coventry",age:24,country:"Zimbabwe",year:2008,date:"24/08/2008",sport:"Swimming",gold:1,silver:3,bronze:0,total:4},{athlete:"Libby Lenton-Trickett",age:23,country:"Australia",year:2008,date:"24/08/2008",sport:"Swimming",gold:2,silver:1,bronze:1,total:4},{athlete:"Ryan Lochte",age:24,country:"United States",year:2008,date:"24/08/2008",sport:"Swimming",gold:2,silver:0,bronze:2,total:4},{athlete:"Inge de Bruijn",age:30,country:"Netherlands",year:2004,date:"29/08/2004",sport:"Swimming",gold:1,silver:1,bronze:2,total:4},{athlete:"Petria Thomas",age:28,country:"Australia",year:2004,date:"29/08/2004",sport:"Swimming",gold:3,silver:1,bronze:0,total:4},{athlete:"Ian Thorpe",age:21,country:"Australia",year:2004,date:"29/08/2004",sport:"Swimming",gold:2,silver:1,bronze:1,total:4},{athlete:"Inge de Bruijn",age:27,country:"Netherlands",year:2e3,date:"01/10/2000",sport:"Swimming",gold:3,silver:1,bronze:0,total:4},{athlete:"Gary Hall Jr.",age:25,country:"United States",year:2e3,date:"01/10/2000",sport:"Swimming",gold:2,silver:1,bronze:1,total:4},{athlete:"Michael Klim",age:23,country:"Australia",year:2e3,date:"01/10/2000",sport:"Swimming",gold:2,silver:2,bronze:0,total:4},{athlete:"Susie O'Neill",age:27,country:"Australia",year:2e3,date:"01/10/2000",sport:"Swimming",gold:1,silver:3,bronze:0,total:4},{athlete:"Jenny Thompson",age:27,country:"United States",year:2e3,date:"01/10/2000",sport:"Swimming",gold:3,silver:0,bronze:1,total:4},{athlete:"Pieter van den Hoogenband",age:22,country:"Netherlands",year:2e3,date:"01/10/2000",sport:"Swimming",gold:2,silver:0,bronze:2,total:4},{athlete:"An Hyeon-Su",age:20,country:"South Korea",year:2006,date:"26/02/2006",sport:"Short-Track Speed Skating",gold:3,silver:0,bronze:1,total:4},{athlete:"Aliya Mustafina",age:17,country:"Russia",year:2012,date:"12/08/2012",sport:"Gymnastics",gold:1,silver:1,bronze:2,total:4},{athlete:"Shawn Johnson",age:16,country:"United States",year:2008,date:"24/08/2008",sport:"Gymnastics",gold:1,silver:3,bronze:0,total:4}],fb=b.css`
|
|
14748
14748
|
:host {
|
|
14749
14749
|
background: var(--fill-color);
|
|
14750
14750
|
color: var(--neutral-foreground-rest);
|
|
@@ -14759,7 +14759,7 @@
|
|
|
14759
14759
|
.grid-height {
|
|
14760
14760
|
height: 100%;
|
|
14761
14761
|
}
|
|
14762
|
-
`,
|
|
14762
|
+
`,wb=b.html`
|
|
14763
14763
|
${e=>(e=>b.html`
|
|
14764
14764
|
<template>
|
|
14765
14765
|
<${e}-design-system-provider ${(0,b.ref)("provider")}>
|
|
@@ -14788,5 +14788,5 @@
|
|
|
14788
14788
|
</${e}-design-system-provider>
|
|
14789
14789
|
</template>
|
|
14790
14790
|
`)(e.prefix)}
|
|
14791
|
-
`;let
|
|
14792
|
-
//# sourceMappingURL=
|
|
14791
|
+
`;let yb=class extends b.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[...vb],this.columnDefs=[{headerName:"#",colId:"rowNum",valueGetter:"node.id",width:80,pinned:"left"},{headerName:"Athlete",field:"athlete",width:150,pinned:"left"},{headerName:"Age",field:"age",width:90,pinned:"left"},{headerName:"Country",field:"country",width:150},{headerName:"Year",field:"year",width:90},{headerName:"Date",field:"date",width:110,filter:"agDateColumnFilter",filterParams:{buttons:["apply","reset"],browserDatePicker:!0,comparator:(e,a)=>{if(null==a)return-1;const r=a.split("/"),t=new Date(Number(r[2]),Number(r[1])-1,Number(r[0]));return e.getTime()===t.getTime()?0:t<e?-1:t>e?1:0}}},{headerName:"Sport",field:"sport",width:150,editable:!0},{headerName:"Gold",field:"gold",width:100},{headerName:"Silver",field:"silver",width:100},{headerName:"Bronze",field:"bronze",width:100},{headerName:"Total",field:"total",width:100,pinned:"right"}],this.gridOptions={defaultColDef:{resizable:!0,filter:!0},debug:!1,columnDefs:this.columnDefs,rowData:this.rowData},this.myCustomCheckboxRenderer=e=>2012===e.value?`<div><span style="color: var(--warning-color); font-weight: bold;">${e.value}</span></div>`:e.value,this.multipleCustomFoundationColumnConfigs=[{headerName:"Country",field:"country",cellRenderer:ln.boolean},{headerName:"Year",field:"year",cellRenderer:this.myCustomCheckboxRenderer}],this.multipleActions=[{name:"View",callback:e=>console.log("VIEWW!!!",e)},{name:"Delete",callback:e=>console.log("DELETE!!!",e)},{name:"Edit",callback:e=>console.log("EDIT!!!",e)},{name:"Wait",callback:e=>console.log("WHAT???",e)}],this.multipleActionsMenuSlottedConfig=((e,a={},r="⋮",t=!1,o)=>{const i={cellRenderer:ln.actionsMenu,cellRendererParams:{actions:e,buttonAppearance:o,isVertical:t,buttonText:r},cellStyle:{border:"none",overflow:"visible"},field:`${tl(a.headerName)||"actions-menu"}`,headerName:"Actions",width:150};return Object.assign(Object.assign({},i),a)})(this.multipleActions,{headerName:"Multiple Actions",width:140},"⋮",!0,"stealth"),this.singleActionSlottedConfig={headerName:"Single Action",width:200,cellRenderer:ln.action,cellRendererParams:{actionClick:e=>console.log("CLICKED ON SINGLE ACTION!!!!",e),actionName:"Single Action",appearance:"accent",isDisabled:e=>!!e.isActionDisabled,dataTestId:"singleActionTestId#",uniqueFieldName:"UNIQUE_ID"}}}setGridOptions(){this.grid.gridOptions=this.gridOptions}connectedCallback(){super.connectedCallback(),document.body.addEventListener(zm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(zm.DS_CHANGED,(e=>{this.handleDSChanges(e)})),b.DOM.queueUpdate((()=>{this.setGridOptions(),f.bodyFont.withDefault($m)}))}handleStyleChanges(e){const a=e.detail;a&&b.DOM.queueUpdate((()=>{Bm(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,b.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Sm.__decorate)([b.observable],yb.prototype,"grid",void 0),(0,Sm.__decorate)([b.attr],yb.prototype,"prefix",void 0),(0,Sm.__decorate)([b.observable],yb.prototype,"provider",void 0),(0,Sm.__decorate)([b.observable],yb.prototype,"rowData",void 0),(0,Sm.__decorate)([b.observable],yb.prototype,"columnDefs",void 0),(0,Sm.__decorate)([b.observable],yb.prototype,"gridOptions",void 0),yb=(0,Sm.__decorate)([(0,b.customElement)({name:"preview-grid",template:wb,styles:fb})],yb),((e,a="zero")=>{e&&(0,H.provideTokens)(t,o,e);const r=v.DesignSystem.getOrCreate(e).withPrefix(a);return(0,H.createDesignSystemProxy)(r)})().register(Ji,ss),(0,l.provideDesignSystem)().register(l.baseComponents,ds),((e,a="rapid")=>{e&&(0,H.provideTokens)(i,n,e);const r=v.DesignSystem.getOrCreate(e).withPrefix(a);return(0,H.createDesignSystemProxy)(r)})().register(Bh,km)}}]);
|
|
14792
|
+
//# sourceMappingURL=206.46fe422e2e5df5ec11ef588fcee89e85.js.map
|