@genesislcap/design-system-configurator 14.211.1 → 14.211.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/{279.279.dea2de0f8db0d8a563a1.js → 279.279.2257eb732c8e113c67c6.js} +1 -1
- package/dist/{264.264.04fed589df641fc6b474.js → 445.445.d79e6bf4effe5ac2e261.js} +86 -86
- package/dist/445.eb7f443ead4e533d176418e0c59c04e2.js.map +1 -0
- package/dist/{531.531.0bcc97e42527895ed4e6.js → 531.531.bab9d5b23390a5c85c05.js} +1 -1
- package/dist/{548.548.90ebed5003e9d615c5f3.js → 548.548.96019bb20f924ee5f78b.js} +1 -1
- package/dist/{445.c50ffd4726ee25b236e7bf65a987fa89.js.map → 588.1dda26db99a44ea03ec06602879996d7.js.map} +1 -1
- package/dist/{445.445.2ba7d4f10beca887a425.js → 588.588.5d8c88e86d8620cd868f.js} +3 -3
- package/dist/{653.653.854597bf459cca5cbc19.js → 653.653.18f67b01e016011c39a4.js} +1 -1
- package/dist/{698.698.2253f9f65d861d6dbcd2.js → 698.698.96b24cd808e539ea105b.js} +1 -1
- package/dist/{826.826.1e632865488cd8a9db67.js → 826.826.bdc41e92b3ea86ed6515.js} +2 -2
- package/dist/designSystemConfigurator.69b92ab6c979d5015da8a9ad91d2fdfd.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.1f87b0f665cf72eefea0.js +2 -0
- package/dist/main.3d27a9f6b472e8a77b4f6f5c0f48587a.js.map +1 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/264.75a0a6bdf22748489d7a8db2ec12068e.js.map +0 -1
- package/dist/designSystemConfigurator.42db0a708837ad95b168e9b37066cfcd.js.map +0 -1
- package/dist/main.10ee581a5a0a76d9837c.js +0 -2
- package/dist/main.58010e6843a3035ad4e60c403e46c190.js.map +0 -1
- /package/dist/{445.445.2ba7d4f10beca887a425.js.LICENSE.txt → 588.588.5d8c88e86d8620cd868f.js.LICENSE.txt} +0 -0
- /package/dist/{826.826.1e632865488cd8a9db67.js.LICENSE.txt → 826.826.bdc41e92b3ea86ed6515.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[264],{51175:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>Xm,ColorToken:()=>rb,ColorTokens:()=>lb,DesignSystemEditor:()=>Bm,DesignSystemExport:()=>Jm,DesignSystemPreview:()=>ub,EventName:()=>Am,PreviewComponents:()=>Qm,PreviewForm:()=>yb,PreviewGrid:()=>Sb,TypographyTokens:()=>db,defaultBodyFont:()=>Om,fontFamilies:()=>Tm});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:()=>Ve,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>He,defaultErrorColor:()=>Le,defaultSellColor:()=>Qe,defaultSuccessColor:()=>je,defaultWarningColor:()=>Ge,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>Ie,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:()=>We,strokeWidth:()=>f.strokeWidth,successColor:()=>Pe,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:()=>_e});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>qe,baseLayerLuminanceValue:()=>Ze,bodyFontValue:()=>sa,controlCornerRadiusValue:()=>aa,densityValue:()=>ra,designTokens:()=>ca,designUnitValue:()=>ta,directionValue:()=>Xe,neutralPaletteValue:()=>Je,strokeWidthValue:()=>ea,typeRampBaseFontSizeValue:()=>ga,typeRampBaseLineHeightValue:()=>da});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:()=>Ag,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>$g,defaultErrorColor:()=>vg,defaultSellColor:()=>Tg,defaultSuccessColor:()=>yg,defaultWarningColor:()=>zg,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>fg,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:()=>Og,strokeWidth:()=>f.strokeWidth,successColor:()=>xg,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:()=>Sg});var n={};r.r(n),r.d(n,{accentFillActiveDeltaValue:()=>Ig,accentFillFocusDeltaValue:()=>Eg,accentFillHoverDeltaValue:()=>Lg,accentFillRestDeltaValue:()=>Mg,accentForegroundActiveDeltaValue:()=>Bg,accentForegroundFocusDeltaValue:()=>Gg,accentForegroundHoverDeltaValue:()=>Pg,accentForegroundRestDeltaValue:()=>jg,accentPaletteValue:()=>Fg,baseHeightMultiplierValue:()=>md,baseLayerLuminanceValue:()=>Ng,bodyFontValue:()=>wd,controlCornerRadiusValue:()=>bd,densityValue:()=>vd,designTokens:()=>jd,designUnitValue:()=>fd,directionValue:()=>cd,disabledOpacityValue:()=>pd,focusStrokeWidthValue:()=>hd,neutralFillActiveDeltaValue:()=>Hg,neutralFillFocusDeltaValue:()=>Vg,neutralFillHoverDeltaValue:()=>Ug,neutralFillInputActiveDeltaValue:()=>Wg,neutralFillInputFocusDeltaValue:()=>qg,neutralFillInputHoverDeltaValue:()=>Qg,neutralFillInputRestDeltaValue:()=>Yg,neutralFillLayerRestDeltaValue:()=>od,neutralFillRestDeltaValue:()=>_g,neutralFillStealthActiveDeltaValue:()=>Kg,neutralFillStealthFocusDeltaValue:()=>Xg,neutralFillStealthHoverDeltaValue:()=>Zg,neutralFillStealthRestDeltaValue:()=>Jg,neutralFillStrongActiveDeltaValue:()=>rd,neutralFillStrongFocusDeltaValue:()=>td,neutralFillStrongHoverDeltaValue:()=>ad,neutralFillStrongRestDeltaValue:()=>ed,neutralPaletteValue:()=>Rg,neutralStrokeActiveDeltaValue:()=>ld,neutralStrokeDividerRestDeltaValue:()=>gd,neutralStrokeFocusDeltaValue:()=>sd,neutralStrokeHoverDeltaValue:()=>nd,neutralStrokeRestDeltaValue:()=>id,prefix:()=>dd,strokeWidthValue:()=>ud,typeRampBaseFontSizeValue:()=>yd,typeRampBaseLineHeightValue:()=>xd,typeRampMinus1FontSizeValue:()=>kd,typeRampMinus1LineHeightValue:()=>zd,typeRampMinus2FontSizeValue:()=>Sd,typeRampMinus2LineHeightValue:()=>Cd,typeRampPlus1FontSizeValue:()=>$d,typeRampPlus1LineHeightValue:()=>Ad,typeRampPlus2FontSizeValue:()=>Dd,typeRampPlus2LineHeightValue:()=>Td,typeRampPlus3FontSizeValue:()=>Od,typeRampPlus3LineHeightValue:()=>Fd,typeRampPlus4FontSizeValue:()=>Rd,typeRampPlus4LineHeightValue:()=>Nd,typeRampPlus5FontSizeValue:()=>Md,typeRampPlus5LineHeightValue:()=>Ld,typeRampPlus6FontSizeValue:()=>Id,typeRampPlus6LineHeightValue:()=>Ed});var l=r(32647),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([[445],{13984:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>ab,ColorToken:()=>ob,ColorTokens:()=>gb,DesignSystemEditor:()=>_m,DesignSystemExport:()=>Km,DesignSystemPreview:()=>mb,EventName:()=>Tm,PreviewComponents:()=>qm,PreviewForm:()=>kb,PreviewGrid:()=>$b,TypographyTokens:()=>pb,defaultBodyFont:()=>Rm,fontFamilies:()=>Fm});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:()=>Ve,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>He,defaultErrorColor:()=>Le,defaultSellColor:()=>Qe,defaultSuccessColor:()=>je,defaultWarningColor:()=>Ge,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>Ie,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:()=>We,strokeWidth:()=>f.strokeWidth,successColor:()=>Pe,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:()=>_e});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>qe,baseLayerLuminanceValue:()=>Ze,bodyFontValue:()=>sa,controlCornerRadiusValue:()=>aa,densityValue:()=>ra,designTokens:()=>ca,designUnitValue:()=>ta,directionValue:()=>Xe,neutralPaletteValue:()=>Je,strokeWidthValue:()=>ea,typeRampBaseFontSizeValue:()=>ga,typeRampBaseLineHeightValue:()=>da});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:()=>Ag,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>$g,defaultErrorColor:()=>vg,defaultSellColor:()=>Tg,defaultSuccessColor:()=>yg,defaultWarningColor:()=>zg,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>fg,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:()=>Og,strokeWidth:()=>f.strokeWidth,successColor:()=>xg,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:()=>Sg});var n={};r.r(n),r.d(n,{accentFillActiveDeltaValue:()=>Ig,accentFillFocusDeltaValue:()=>Eg,accentFillHoverDeltaValue:()=>Lg,accentFillRestDeltaValue:()=>Mg,accentForegroundActiveDeltaValue:()=>Bg,accentForegroundFocusDeltaValue:()=>Gg,accentForegroundHoverDeltaValue:()=>Pg,accentForegroundRestDeltaValue:()=>jg,accentPaletteValue:()=>Fg,baseHeightMultiplierValue:()=>md,baseLayerLuminanceValue:()=>Ng,bodyFontValue:()=>wd,controlCornerRadiusValue:()=>bd,densityValue:()=>vd,designTokens:()=>jd,designUnitValue:()=>fd,directionValue:()=>cd,disabledOpacityValue:()=>pd,focusStrokeWidthValue:()=>hd,neutralFillActiveDeltaValue:()=>Hg,neutralFillFocusDeltaValue:()=>Vg,neutralFillHoverDeltaValue:()=>Ug,neutralFillInputActiveDeltaValue:()=>Wg,neutralFillInputFocusDeltaValue:()=>qg,neutralFillInputHoverDeltaValue:()=>Qg,neutralFillInputRestDeltaValue:()=>Yg,neutralFillLayerRestDeltaValue:()=>od,neutralFillRestDeltaValue:()=>_g,neutralFillStealthActiveDeltaValue:()=>Kg,neutralFillStealthFocusDeltaValue:()=>Xg,neutralFillStealthHoverDeltaValue:()=>Zg,neutralFillStealthRestDeltaValue:()=>Jg,neutralFillStrongActiveDeltaValue:()=>rd,neutralFillStrongFocusDeltaValue:()=>td,neutralFillStrongHoverDeltaValue:()=>ad,neutralFillStrongRestDeltaValue:()=>ed,neutralPaletteValue:()=>Rg,neutralStrokeActiveDeltaValue:()=>ld,neutralStrokeDividerRestDeltaValue:()=>gd,neutralStrokeFocusDeltaValue:()=>sd,neutralStrokeHoverDeltaValue:()=>nd,neutralStrokeRestDeltaValue:()=>id,prefix:()=>dd,strokeWidthValue:()=>ud,typeRampBaseFontSizeValue:()=>yd,typeRampBaseLineHeightValue:()=>xd,typeRampMinus1FontSizeValue:()=>kd,typeRampMinus1LineHeightValue:()=>zd,typeRampMinus2FontSizeValue:()=>Sd,typeRampMinus2LineHeightValue:()=>Cd,typeRampPlus1FontSizeValue:()=>$d,typeRampPlus1LineHeightValue:()=>Ad,typeRampPlus2FontSizeValue:()=>Dd,typeRampPlus2LineHeightValue:()=>Td,typeRampPlus3FontSizeValue:()=>Od,typeRampPlus3LineHeightValue:()=>Fd,typeRampPlus4FontSizeValue:()=>Rd,typeRampPlus4LineHeightValue:()=>Nd,typeRampPlus5FontSizeValue:()=>Md,typeRampPlus5LineHeightValue:()=>Ld,typeRampPlus6FontSizeValue:()=>Id,typeRampPlus6LineHeightValue:()=>Ed});var l=r(42950),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`
|
|
2
2
|
:host {
|
|
3
3
|
border: calc(${f.strokeWidth} * 1px) solid transparent;
|
|
4
4
|
margin: 0;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
background: ${w.A.Canvas};
|
|
57
57
|
border-color: ${w.A.CanvasText};
|
|
58
58
|
}
|
|
59
|
-
`)),x={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"};var k=r(
|
|
59
|
+
`)),x={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"};var k=r(24716);const z=(0,k.createLogger)("foundation-form"),S=b.html`
|
|
60
60
|
<template>
|
|
61
61
|
${(0,b.when)((e=>!1),b.html`
|
|
62
62
|
<rapid-button class="clipboard-button" @click=${e=>e.copyUISchemaToClipboard()}>
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
</control-wrapper>
|
|
329
329
|
</template>
|
|
330
330
|
`)(e.prefix)}
|
|
331
|
-
`,tester:(0,m.Hc7)(3,U),mapper:m.kOB};var V=r(
|
|
331
|
+
`,tester:(0,m.Hc7)(3,U),mapper:m.kOB};var V=r(86172);const Y=e=>a=>{if(!a||!(0,m.c0N)(a))return!1;const r=a.options;return!(!r||!r[e])},Q=(0,m.Uo6)(Y("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")))))));V.MultiselectDatasource;const W={renderer:b.html`
|
|
332
332
|
${e=>((e="zero")=>b.html`
|
|
333
333
|
<template>
|
|
334
334
|
<control-wrapper
|
|
@@ -12144,11 +12144,11 @@
|
|
|
12144
12144
|
.control:focus-visible {
|
|
12145
12145
|
outline: none;
|
|
12146
12146
|
}
|
|
12147
|
-
`,shadowOptions:Cu},zu));class Au extends V.
|
|
12147
|
+
`,shadowOptions:Cu},zu));class Au extends V.SystemHealthOverlay{}const Du=Au.compose(Object.assign({baseName:"system-health-overlay",template:V.foundationSystemHealthOverlayTemplate,styles:V.foundationSystemHealthOverlayStyles,shadowOptions:V.foundationSystemHealthOverlayShadowOptions},V.defaultSystemHealthOverlayConfig));class Tu extends V.Progress{}const Ou=Tu.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,V.foundationProgressTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12148
12148
|
${(0,V.foundationProgressStyles)(e,a)}
|
|
12149
|
-
`,shadowOptions:V.foundationProgressShadowOptions},V.defaultProgressConfig));class
|
|
12149
|
+
`,shadowOptions:V.foundationProgressShadowOptions},V.defaultProgressConfig));class Fu extends V.ProgressRing{}const Ru=Fu.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>(0,V.foundationProgressRingTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12150
12150
|
${(0,V.foundationProgressRingStyles)(e,a)}
|
|
12151
|
-
`,shadowOptions:V.foundationProgressRingShadowOptions},V.defaultProgressRingConfig));class
|
|
12151
|
+
`,shadowOptions:V.foundationProgressRingShadowOptions},V.defaultProgressRingConfig));class Nu extends V.Radio{}const Mu=Nu.compose(Object.assign({baseName:"radio",template:(e,a)=>(0,V.foundationRadioTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12152
12152
|
${(0,V.foundationRadioStyles)(e,a)}
|
|
12153
12153
|
:host {
|
|
12154
12154
|
margin: calc(var(--design-unit) * 2px) 0 calc(var(--design-unit) * 2px) 0;
|
|
@@ -12180,13 +12180,13 @@
|
|
|
12180
12180
|
:host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator {
|
|
12181
12181
|
background: var(--accent-fill-rest);
|
|
12182
12182
|
}
|
|
12183
|
-
`,shadowOptions:V.foundationRadioShadowOptions},V.defaultRadioConfig));class
|
|
12183
|
+
`,shadowOptions:V.foundationRadioShadowOptions},V.defaultRadioConfig));class Lu extends V.RadioGroup{}const Iu=Lu.compose(Object.assign({baseName:"radio-group",template:(e,a)=>(0,V.foundationRadioGroupTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12184
12184
|
${(0,V.foundationRadioGroupStyles)(e,a)}
|
|
12185
|
-
`,shadowOptions:V.foundationRadioGroupShadowOptions},V.defaultRadioGroupConfig)),
|
|
12185
|
+
`,shadowOptions:V.foundationRadioGroupShadowOptions},V.defaultRadioGroupConfig)),Eu=b.css`
|
|
12186
12186
|
${V.foundationSearchBarStyles}
|
|
12187
|
-
`,
|
|
12187
|
+
`,ju=b.html`
|
|
12188
12188
|
${(0,V.getPrefixedSearchBar)("rapid")}
|
|
12189
|
-
`;class
|
|
12189
|
+
`;class Pu extends V.SearchBar{}const Bu=Pu.compose(Object.assign({baseName:"search-bar",template:ju,styles:Eu,shadowOptions:V.foundationSearchBarShadowOptions},V.defaultSearchBarConfig));class Gu extends V.SearchBarCombobox{}const _u=Gu.compose(Object.assign({baseName:"search-bar-combobox",template:(e,a)=>(0,V.foundationSearchBarComboboxTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12190
12190
|
${(0,V.foundationSearchBarComboboxStyles)(e,a)}
|
|
12191
12191
|
|
|
12192
12192
|
:host {
|
|
@@ -12217,7 +12217,7 @@
|
|
|
12217
12217
|
:host .listbox ::slotted(*:last-child) {
|
|
12218
12218
|
border-bottom: none;
|
|
12219
12219
|
}
|
|
12220
|
-
`,shadowOptions:V.foundationSearchBarComboboxShadowOptions},V.defaultSearchBarComboboxConfig));class
|
|
12220
|
+
`,shadowOptions:V.foundationSearchBarComboboxShadowOptions},V.defaultSearchBarComboboxConfig));class Uu extends V.SegmentedControl{}const Hu=Uu.compose(Object.assign({baseName:"segmented-control",template:(e,a)=>(0,V.foundationSegmentedControlTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12221
12221
|
${(0,V.foundationSegmentedControlStyles)(e,a)}
|
|
12222
12222
|
:host {
|
|
12223
12223
|
font-family: var(--body-font);
|
|
@@ -12253,7 +12253,7 @@
|
|
|
12253
12253
|
border-color: transparent;
|
|
12254
12254
|
box-shadow: 2px 1000px 1px rgb(0 0 0 / 50%) inset;
|
|
12255
12255
|
}
|
|
12256
|
-
`,shadowOptions:undefined},{}));class
|
|
12256
|
+
`,shadowOptions:undefined},{}));class Vu extends V.Radio{}const Yu=Vu.compose(Object.assign({baseName:"segmented-item",template:(e,a)=>(0,V.foundationSegmentedItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12257
12257
|
${(0,V.foundationSegmentedItemStyles)(e,a)}
|
|
12258
12258
|
:host {
|
|
12259
12259
|
color: var(--neutral-fill-strong-rest);
|
|
@@ -12265,7 +12265,7 @@
|
|
|
12265
12265
|
:host([aria-checked='true']) {
|
|
12266
12266
|
color: color-mix(in srgb, white, transparent 10%);
|
|
12267
12267
|
}
|
|
12268
|
-
`,shadowOptions:undefined},{}));class
|
|
12268
|
+
`,shadowOptions:undefined},{}));class Qu extends V.Select{}const Wu=Qu.compose(Object.assign({baseName:"select",template:(e,a)=>(0,V.foundationSelectTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12269
12269
|
${(0,V.foundationSelectStyles)(e,a)}
|
|
12270
12270
|
:host {
|
|
12271
12271
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
@@ -12337,14 +12337,14 @@
|
|
|
12337
12337
|
::slotted([role='option']) {
|
|
12338
12338
|
margin: 0;
|
|
12339
12339
|
}
|
|
12340
|
-
`,shadowOptions:V.foundationSelectShadowOptions},V.defaultSelectConfig));class
|
|
12340
|
+
`,shadowOptions:V.foundationSelectShadowOptions},V.defaultSelectConfig));class qu extends V.Skeleton{}const Ju=qu.compose(Object.assign({baseName:"skeleton",template:(e,a)=>(0,V.foundationSkeletonTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12341
12341
|
${(0,V.foundationSkeletonStyles)(e,a)}
|
|
12342
12342
|
:host {
|
|
12343
12343
|
--skeleton-fill: var(
|
|
12344
12344
|
--neutral-fill-stealth-rest
|
|
12345
12345
|
); /** value in ux doc rgba(242 242 242 / 0.1) */
|
|
12346
12346
|
}
|
|
12347
|
-
`,shadowOptions:V.foundationSkeletonShadowOptions},V.defaultSkeletonConfig));class
|
|
12347
|
+
`,shadowOptions:V.foundationSkeletonShadowOptions},V.defaultSkeletonConfig));class Zu extends V.Slider{}const Ku=Zu.compose(Object.assign({baseName:"slider",template:(e,a)=>(0,V.foundationSliderTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12348
12348
|
${(0,V.foundationSliderStyles)(e,a)}
|
|
12349
12349
|
|
|
12350
12350
|
.thumb-cursor {
|
|
@@ -12402,7 +12402,7 @@
|
|
|
12402
12402
|
background-color: var(--neutral-stroke-rest);
|
|
12403
12403
|
width: calc((var(--track-width) + 2) * 1px) !important;
|
|
12404
12404
|
}
|
|
12405
|
-
`,shadowOptions:V.foundationSliderShadowOptions},V.defaultSliderConfig));class
|
|
12405
|
+
`,shadowOptions:V.foundationSliderShadowOptions},V.defaultSliderConfig));class Xu extends V.SliderLabel{}const eh=Xu.compose(Object.assign({baseName:"slider-label",template:(e,a)=>(0,V.foundationSliderLabelTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12406
12406
|
${(0,V.foundationSliderLabelStyles)(e,a)}
|
|
12407
12407
|
.label {
|
|
12408
12408
|
padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);
|
|
@@ -12413,7 +12413,7 @@
|
|
|
12413
12413
|
text-align: center;
|
|
12414
12414
|
font-size: var(--type-ramp-minus-1-font-size, 12px);
|
|
12415
12415
|
}
|
|
12416
|
-
`,shadowOptions:V.foundationSliderLabelShadowOptions},V.defaultSliderLabelConfig)),
|
|
12416
|
+
`,shadowOptions:V.foundationSliderLabelShadowOptions},V.defaultSliderLabelConfig)),ah=b.css`
|
|
12417
12417
|
${V.foundationSnackbarStyles}
|
|
12418
12418
|
.snackbar {
|
|
12419
12419
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);
|
|
@@ -12434,11 +12434,11 @@
|
|
|
12434
12434
|
.action {
|
|
12435
12435
|
gap: calc(var(--design-unit) * 2px);
|
|
12436
12436
|
}
|
|
12437
|
-
`,
|
|
12437
|
+
`,rh=b.html`
|
|
12438
12438
|
${(0,V.getPrefixedSnackbar)("rapid")}
|
|
12439
|
-
`,
|
|
12439
|
+
`,th=V.foundationSnackbarShadowOptions;class oh extends V.Snackbar{}const ih=oh.compose({baseName:"snackbar",shadowOptions:th,styles:ah,template:rh});class nh extends V.StackingIcons{}const lh=nh.compose({baseName:"stacking-icons",template:V.foundationStackingIconsTemplate,styles:(e,a)=>b.css`
|
|
12440
12440
|
${(0,V.foundationStackingIconsStyles)(e,a)}
|
|
12441
|
-
`}),
|
|
12441
|
+
`}),sh=b.css`
|
|
12442
12442
|
${V.foundationStepperStyles}
|
|
12443
12443
|
|
|
12444
12444
|
:host {
|
|
@@ -12485,11 +12485,11 @@
|
|
|
12485
12485
|
padding: 0 calc(var(--design-unit) * 2px);
|
|
12486
12486
|
color: var(--neutral-foreground-hint);
|
|
12487
12487
|
}
|
|
12488
|
-
`,
|
|
12488
|
+
`,gh=b.html`
|
|
12489
12489
|
${(0,V.getPrefixedStepper)("rapid")}
|
|
12490
|
-
`;class
|
|
12490
|
+
`;class dh extends V.Stepper{}const ch=dh.compose(Object.assign({baseName:"stepper",template:gh,styles:sh,shadowOptions:V.foundationStepperShadowOptions},V.defaultStepperConfig)),ph=b.html`
|
|
12491
12491
|
${(0,V.getPrefixedStepperTab)("rapid")}
|
|
12492
|
-
`;class
|
|
12492
|
+
`;class uh extends V.StepperTab{}const hh=uh.compose(Object.assign({baseName:"stepper-tab",template:ph,styles:(e,a)=>b.css`
|
|
12493
12493
|
${(0,V.foundationStepperTabStyles)(e,a)}
|
|
12494
12494
|
|
|
12495
12495
|
rapid-tree-item {
|
|
@@ -12549,7 +12549,7 @@
|
|
|
12549
12549
|
:host([error]) .step-title {
|
|
12550
12550
|
color: var(--error-color);
|
|
12551
12551
|
}
|
|
12552
|
-
`,shadowOptions:V.foundationStepperTabShadowOptions},V.defaultStepperTabConfig));class
|
|
12552
|
+
`,shadowOptions:V.foundationStepperTabShadowOptions},V.defaultStepperTabConfig));class mh extends V.StepperTabPanel{}const bh=mh.compose(Object.assign({baseName:"stepper-tab-panel",template:(e,a)=>(0,V.foundationStepperTabPanelTemplate)(e,a),shadowOptions:V.foundationStepperTabPanelShadowOptions},V.defaultStepperTabPanelConfig)),vh={switch:'<div class="checked-indicator" part="checked-indicator"></div>'};class fh extends V.Switch{}const wh=fh.compose(Object.assign({baseName:"switch",template:(e,a)=>(0,V.foundationSwitchTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12553
12553
|
${(0,V.foundationSwitchStyles)(e,a)}
|
|
12554
12554
|
:host {
|
|
12555
12555
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -12586,7 +12586,7 @@
|
|
|
12586
12586
|
:host([aria-checked='true']:not([disabled])) .switch:active .checked-indicator {
|
|
12587
12587
|
background: var(--accent-fill-rest);
|
|
12588
12588
|
}
|
|
12589
|
-
`,shadowOptions:V.foundationSwitchShadowOptions},
|
|
12589
|
+
`,shadowOptions:V.foundationSwitchShadowOptions},vh));class yh extends V.Tab{}const xh=yh.compose(Object.assign({baseName:"tab",template:(e,a)=>(0,V.foundationTabTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12590
12590
|
${(0,V.foundationTabStyles)(e,a)}
|
|
12591
12591
|
:host {
|
|
12592
12592
|
background-color: var(--neutral-layer-2);
|
|
@@ -12599,13 +12599,13 @@
|
|
|
12599
12599
|
:host([aria-selected='true']:hover) {
|
|
12600
12600
|
background-color: var(--neutral-layer-4);
|
|
12601
12601
|
}
|
|
12602
|
-
`,shadowOptions:V.foundationTabShadowOptions},V.defaultTabConfig));class
|
|
12602
|
+
`,shadowOptions:V.foundationTabShadowOptions},V.defaultTabConfig));class kh extends V.TabPanel{}const zh=kh.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,V.foundationTabPanelTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12603
12603
|
${(0,V.foundationTabPanelStyles)(e,a)}
|
|
12604
12604
|
:host {
|
|
12605
12605
|
padding: 0;
|
|
12606
12606
|
background-color: var(--neutral-layer-4);
|
|
12607
12607
|
}
|
|
12608
|
-
`,shadowOptions:V.foundationTabPanelShadowOptions},V.defaultTabPanelConfig));class
|
|
12608
|
+
`,shadowOptions:V.foundationTabPanelShadowOptions},V.defaultTabPanelConfig));class Sh extends V.Tabs{}const Ch=Sh.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,V.foundationTabsTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12609
12609
|
${(0,V.foundationTabsStyles)(e,a)}
|
|
12610
12610
|
:host {
|
|
12611
12611
|
--base-height-multiplier: 9;
|
|
@@ -12680,7 +12680,7 @@
|
|
|
12680
12680
|
:host([orientation='horizontal']) ::slotted([role='tabpanel'][slot='tabpanel']) {
|
|
12681
12681
|
padding: 0 calc((3 + (var(--design-unit) * 2 * var(--density))) * 1px);
|
|
12682
12682
|
}
|
|
12683
|
-
`,shadowOptions:V.foundationTabsShadowOptions},V.defaultTabsConfig));class
|
|
12683
|
+
`,shadowOptions:V.foundationTabsShadowOptions},V.defaultTabsConfig));class $h extends V.TextArea{}const Ah=$h.compose(Object.assign({baseName:"text-area",template:(e,a)=>(0,V.foundationTextAreaTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12684
12684
|
${(0,V.foundationTextAreaStyles)(e,a)}
|
|
12685
12685
|
|
|
12686
12686
|
:host {
|
|
@@ -12712,7 +12712,7 @@
|
|
|
12712
12712
|
font-weight: 700;
|
|
12713
12713
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
12714
12714
|
}
|
|
12715
|
-
`,shadowOptions:V.foundationTextAreaShadowOptions},V.defaultTextAreaConfig));class
|
|
12715
|
+
`,shadowOptions:V.foundationTextAreaShadowOptions},V.defaultTextAreaConfig));class Dh extends V.TextField{}const Th=Dh.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,V.foundationTextFieldTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12716
12716
|
${(0,V.foundationTextFieldStyles)(e,a)}
|
|
12717
12717
|
|
|
12718
12718
|
:host {
|
|
@@ -12756,7 +12756,7 @@
|
|
|
12756
12756
|
.label-hidden {
|
|
12757
12757
|
margin: 0;
|
|
12758
12758
|
}
|
|
12759
|
-
`,shadowOptions:V.foundationTextFieldShadowOptions},V.defaultTextFieldConfig)),
|
|
12759
|
+
`,shadowOptions:V.foundationTextFieldShadowOptions},V.defaultTextFieldConfig)),Oh=b.css`
|
|
12760
12760
|
${V.foundationToastStyles}
|
|
12761
12761
|
.toast {
|
|
12762
12762
|
background-color: ${f.neutralLayer1};
|
|
@@ -12811,7 +12811,7 @@
|
|
|
12811
12811
|
:host([notify='serious']) .toast::after {
|
|
12812
12812
|
background-color: var(--error-color);
|
|
12813
12813
|
}
|
|
12814
|
-
`,
|
|
12814
|
+
`,Fh=V.defaultToastConfig,Rh=V.foundationToastShadowOptions;class Nh extends V.Toast{}const Mh=Nh.compose(Object.assign({baseName:"toast",shadowOptions:Rh,styles:Oh,template:V.foundationToastTemplate},Fh));class Lh extends V.Toolbar{}const Ih=Lh.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,V.foundationToolbarTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12815
12815
|
${(0,V.foundationToolbarStyles)(e,a)}
|
|
12816
12816
|
:host {
|
|
12817
12817
|
align-items: center;
|
|
@@ -12821,7 +12821,7 @@
|
|
|
12821
12821
|
.positioning-region {
|
|
12822
12822
|
align-items: center;
|
|
12823
12823
|
}
|
|
12824
|
-
`,shadowOptions:V.foundationToolbarShadowOptions},V.defaultToolbarConfig));class
|
|
12824
|
+
`,shadowOptions:V.foundationToolbarShadowOptions},V.defaultToolbarConfig));class Eh extends V.Tooltip{}const jh=Eh.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,V.foundationTooltipTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12825
12825
|
${(0,V.foundationTooltipStyles)(e,a)}
|
|
12826
12826
|
|
|
12827
12827
|
:host {
|
|
@@ -12844,7 +12844,7 @@
|
|
|
12844
12844
|
alpha-anchored-region.bottom.right .tooltip {
|
|
12845
12845
|
margin-left: 0;
|
|
12846
12846
|
}
|
|
12847
|
-
`,shadowOptions:V.foundationTooltipShadowOptions},V.defaultTooltipConfig));class
|
|
12847
|
+
`,shadowOptions:V.foundationTooltipShadowOptions},V.defaultTooltipConfig));class Ph extends V.TreeItem{}const Bh={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>'},Gh=Ph.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,V.foundationTreeItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12848
12848
|
${(0,V.foundationTreeItemStyles)(e,a)}
|
|
12849
12849
|
:host {
|
|
12850
12850
|
font-size: var(--type-ramp-base-font-size);
|
|
@@ -12883,11 +12883,11 @@
|
|
|
12883
12883
|
width: calc(var(--design-unit) * 3px);
|
|
12884
12884
|
height: calc(var(--design-unit) * 3px);
|
|
12885
12885
|
}
|
|
12886
|
-
`,shadowOptions:V.foundationTreeItemShadowOptions},
|
|
12886
|
+
`,shadowOptions:V.foundationTreeItemShadowOptions},Bh));class _h extends V.TreeView{}const Uh=_h.compose(Object.assign({baseName:"tree-view",template:(e,a)=>(0,V.foundationTreeViewTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12887
12887
|
${(0,V.foundationTreeViewStyles)(e,a)}
|
|
12888
|
-
`,shadowOptions:V.foundationTreeViewShadowOptions},V.defaultTreeViewConfig)),
|
|
12888
|
+
`,shadowOptions:V.foundationTreeViewShadowOptions},V.defaultTreeViewConfig)),Hh=b.html`
|
|
12889
12889
|
${(0,V.getPrefixedUrlInput)("rapid")}
|
|
12890
|
-
`;class
|
|
12890
|
+
`;class Vh extends V.UrlInput{}const Yh={designSystemProvider:Bd,rapidAccordion:_d,rapidAccordionItem:Hd,rapidActionsMenu:Yd,rapidAnchor:ac,rapidAnchoredRegion:tc,rapidAvatar:ic,rapidBadge:lc,rapidBanner:cc,rapidBreadcrumb:uc,rapidBreadcrumbItem:mc,rapidButton:vc,rapidCalendar:wc,rapidCard:xc,rapidCategorizedMultiselect:Ac,rapidCheckbox:Tc,rapidCombobox:Fc,rapidConnectionIndicator:Nc,rapidDataGrid:()=>(0,V.foundationDataGrid)(),rapidDataGridCell:()=>(0,V.foundationDataGridCell)(),rapidDataGridRow:()=>(0,V.foundationDataGridRow)(),rapidDatePicker:Jc,rapidDialog:rp,rapidDisclosure:op,rapidDivider:np,rapidDropdownMenu:sp,rapidErrorBoundary:()=>(0,V.foundationErrorBoundary)(),rapidFileUpload:fp,rapidFilter:xp,rapidFilterBar:Sp,rapidFlexLayout:()=>(0,V.foundationFlexLayout)(),rapidFlipper:Op,rapidFlyout:Ip,rapidGridLayout:()=>(0,V.foundationGridLayout)(),rapidGridLayoutItem:()=>(0,V.foundationGridLayoutItem)(),rapidHorizontalScroll:Qp,rapidIcon:Kp,rapidListbox:eu,rapidListboxOption:ru,rapidMenu:ou,rapidMenuItem:lu,rapidModal:uu,rapidMultiselect:wu,rapidNotificationListener:xu,rapidNumberField:$u,rapidProgress:Ou,rapidProgressRing:Ru,rapidRadio:Mu,rapidRadioGroup:Iu,rapidSearchBar:Bu,rapidSearchBarCombobox:_u,rapidSegmentedControl:Hu,rapidSegmentedItem:Yu,rapidSelect:Wu,rapidSkeleton:Ju,rapidSlider:Ku,rapidSliderLabel:eh,rapidSnackbar:ih,rapidStackingIcons:lh,rapidStepper:ch,rapidStepperTab:hh,rapidStepperTabPanel:bh,rapidSwitch:wh,rapidSystemHealthOverlay:Du,rapidTab:xh,rapidTabPanel:zh,rapidTabs:Ch,rapidTextArea:Ah,rapidTextField:Th,rapidToast:Mh,rapidToolbar:Ih,rapidTooltip:jh,rapidTreeItem:Gh,rapidTreeView:Uh,rapidUrlInput:Vh.compose(Object.assign({baseName:"url-input",template:Hh,styles:(e,a)=>b.css`
|
|
12891
12891
|
${(0,V.foundationUrlInputStyles)(e,a)}
|
|
12892
12892
|
a {
|
|
12893
12893
|
color: var(--accent-fill-rest);
|
|
@@ -12903,7 +12903,7 @@
|
|
|
12903
12903
|
font-size: var(--type-ramp-base-font-size);
|
|
12904
12904
|
top: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) / 2 * 1px);
|
|
12905
12905
|
}
|
|
12906
|
-
`,shadowOptions:V.foundationUrlInputShadowOptions},V.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};class
|
|
12906
|
+
`,shadowOptions:V.foundationUrlInputShadowOptions},V.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};class Qh extends mn{}const Wh=Qh.compose({baseName:"date-editor",styles:bn,template:vn("rapid")});class qh extends xn{}const Jh=qh.compose({baseName:"multiselect-editor",styles:kn,template:zn("rapid")});class Zh extends An{}const Kh=Zh.compose({baseName:"select-editor",styles:Dn,template:Tn("rapid")});class Xh extends Nn{}const em=Xh.compose({baseName:"number-editor",styles:Mn,template:Ln("rapid")});class am extends Pn{}const rm=am.compose({baseName:"string-editor",styles:Bn,template:Gn("rapid")});class tm extends Vn{}const om=tm.compose({baseName:"editable-renderer",styles:Yn,template:Qn("rapid")});class im extends Xn{}const nm=im.compose({baseName:"grid-pro-action-renderer",styles:b.css`
|
|
12907
12907
|
${al}
|
|
12908
12908
|
.button-padding {
|
|
12909
12909
|
justify-content: center;
|
|
@@ -12925,12 +12925,12 @@
|
|
|
12925
12925
|
`:e.params.actionName}
|
|
12926
12926
|
</rapid-button>
|
|
12927
12927
|
</div>
|
|
12928
|
-
`});class
|
|
12928
|
+
`});class lm extends nl{}const sm=lm.compose({baseName:"grid-pro-actions-menu-renderer",template:b.html`
|
|
12929
12929
|
<rapid-actions-menu
|
|
12930
12930
|
name="${e=>e.params.headerName}"
|
|
12931
12931
|
:definition=${e=>e.params}
|
|
12932
12932
|
></rapid-actions-menu>
|
|
12933
|
-
`});class
|
|
12933
|
+
`});class gm extends dl{}const dm=gm.compose({baseName:"boolean-renderer",styles:cl,template:pl("rapid")});const cm=class extends kl{}.compose({baseName:"grid-text-renderer",styles:zl,template:Sl("rapid")});const pm=class extends Al{}.compose({baseName:"select-renderer",styles:Dl,template:Tl("rapid")}),um={foregroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#879ba6")),backgroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#1f2126")),borderSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#2e3339")),rowHoverSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#2b2e34"))},hm={foregroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#000000")),headerForegroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#181d1f")),backgroundSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#FFFFFF")),borderSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#babfc7")),rowHoverSwatch:f.SwatchRGB.from((0,Re.parseColorHexRGB)("#2196f3"))},{create:mm}=v.DesignToken,bm={backgroundColor:mm("rapid-ag-background-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?hm.backgroundSwatch:um.backgroundSwatch)),borderColor:mm("rapid-ag-border-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?hm.borderSwatch:um.borderSwatch)),foregroundColor:mm("rapid-ag-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?hm.foregroundSwatch:um.foregroundSwatch)),headerForegroundColor:mm("rapid-ag-header-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?hm.headerForegroundSwatch:um.headerForegroundSwatch)),rowHoverColor:mm("rapid-ag-row-hover-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?hm.rowHoverSwatch:um.rowHoverSwatch))},vm=b.css`
|
|
12934
12934
|
.ag-theme-genesis-rapid,
|
|
12935
12935
|
.ag-theme-genesis-rapid-dark {
|
|
12936
12936
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -13391,76 +13391,76 @@
|
|
|
13391
13391
|
.ag-theme-genesis-rapid-dark {
|
|
13392
13392
|
color-scheme: dark;
|
|
13393
13393
|
}
|
|
13394
|
-
`,
|
|
13395
|
-
${
|
|
13396
|
-
${sn(
|
|
13394
|
+
`,fm={[Xi.backgroundColor]:bm.backgroundColor,[Xi.foregroundColor]:bm.foregroundColor,[Xi.oddRowBackgroundColor]:bm.backgroundColor,[Xi.headerBackgroundColor]:bm.backgroundColor,[Xi.headerForegroundColor]:bm.headerForegroundColor,[Xi.selectedRowBackgroundColor]:bm.rowHoverColor,[Xi.rowHoverColor]:bm.rowHoverColor,[Xi.borderColor]:bm.borderColor,[Xi.rowBorderColor]:bm.rowHoverColor,[Xi.modalOverlayBackgroundColor]:bm.backgroundColor,[Xi.inputFocusBoxShadow]:bm.headerForegroundColor,[Xi.inputFocusBorderColor]:bm.headerForegroundColor,[Xi.headerColumnResizeHandleColor]:bm.headerForegroundColor},wm="ag-theme-genesis-rapid",ym=b.css`
|
|
13395
|
+
${vm}
|
|
13396
|
+
${sn(wm,fm)}
|
|
13397
13397
|
|
|
13398
|
-
.${
|
|
13398
|
+
.${wm} {
|
|
13399
13399
|
${la()}
|
|
13400
13400
|
font-family: var(--body-font);
|
|
13401
13401
|
}
|
|
13402
13402
|
|
|
13403
|
-
.${
|
|
13404
|
-
.${
|
|
13405
|
-
.${
|
|
13403
|
+
.${wm} .ag-body .ag-body-viewport,
|
|
13404
|
+
.${wm} .ag-header,
|
|
13405
|
+
.${wm} .ag-row {
|
|
13406
13406
|
background-color: var(--neutral-layer-4);
|
|
13407
13407
|
}
|
|
13408
13408
|
|
|
13409
|
-
.${
|
|
13409
|
+
.${wm} .ag-header {
|
|
13410
13410
|
border-bottom-color: var(--neutral-stroke-rest);
|
|
13411
13411
|
font-weight: bold;
|
|
13412
13412
|
font-size: var(--type-ramp-base-font-size);
|
|
13413
13413
|
}
|
|
13414
13414
|
|
|
13415
|
-
.${
|
|
13415
|
+
.${wm} .ag-root-wrapper {
|
|
13416
13416
|
border-radius: calc(var(--ag-border-radius) * 1px);
|
|
13417
13417
|
border: 1px solid var(--rapid-ag-border-color);
|
|
13418
13418
|
}
|
|
13419
13419
|
|
|
13420
|
-
.${
|
|
13420
|
+
.${wm} .ag-cell {
|
|
13421
13421
|
font-size: var(--type-ramp-minus-1-font-size);
|
|
13422
13422
|
}
|
|
13423
|
-
`,
|
|
13424
|
-
${
|
|
13425
|
-
${sn(
|
|
13423
|
+
`,xm="ag-theme-genesis-rapid-dark",km=b.css`
|
|
13424
|
+
${vm}
|
|
13425
|
+
${sn(wm,fm)}
|
|
13426
13426
|
|
|
13427
|
-
.${
|
|
13427
|
+
.${xm} {
|
|
13428
13428
|
${la()}
|
|
13429
13429
|
font-family: var(--body-font);
|
|
13430
13430
|
}
|
|
13431
13431
|
|
|
13432
|
-
.${
|
|
13433
|
-
.${
|
|
13434
|
-
.${
|
|
13432
|
+
.${xm} .ag-body .ag-body-viewport,
|
|
13433
|
+
.${xm} .ag-header,
|
|
13434
|
+
.${xm} .ag-row {
|
|
13435
13435
|
background-color: var(--neutral-layer-4);
|
|
13436
13436
|
}
|
|
13437
13437
|
|
|
13438
|
-
.${
|
|
13438
|
+
.${xm} .ag-header {
|
|
13439
13439
|
border-bottom-color: var(--neutral-stroke-rest);
|
|
13440
13440
|
font-weight: bold;
|
|
13441
13441
|
font-size: var(--type-ramp-base-font-size);
|
|
13442
13442
|
}
|
|
13443
13443
|
|
|
13444
|
-
.${
|
|
13444
|
+
.${xm} .ag-root-wrapper {
|
|
13445
13445
|
border-radius: calc(var(--ag-border-radius) * 1px);
|
|
13446
13446
|
border: 1px solid var(--rapid-ag-border-color);
|
|
13447
13447
|
}
|
|
13448
13448
|
|
|
13449
|
-
.${
|
|
13449
|
+
.${xm} .ag-cell {
|
|
13450
13450
|
font-size: var(--type-ramp-minus-1-font-size);
|
|
13451
13451
|
}
|
|
13452
|
-
`,
|
|
13452
|
+
`,zm=b.css`
|
|
13453
13453
|
/* All the AG themes */
|
|
13454
13454
|
${js}
|
|
13455
13455
|
|
|
13456
13456
|
/* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
|
|
13457
|
-
${fm}
|
|
13458
13457
|
${ym}
|
|
13458
|
+
${km}
|
|
13459
13459
|
|
|
13460
13460
|
.error {
|
|
13461
13461
|
border-color: ${Fe.shortPink} !important;
|
|
13462
13462
|
}
|
|
13463
|
-
`,
|
|
13463
|
+
`,Sm=Ps("rapid"),Cm="ag-theme-genesis-rapid-dark";const $m=Ws,Am=qs,Dm={rapidAgEditableRenderer:om,rapidAgActionRenderer:nm,rapidAgActionsMenuRenderer:sm,rapidAgBooleanRenderer:dm,rapidAgTextRenderer:cm,rapidAgSelectRenderer:pm,rapidAgDateEditor:Wh,rapidAgMultiselectEditor:Jh,rapidAgSelectEditor:Kh,rapidAgNumberEditor:em,rapidAgStringEditor:rm,rapidGridPro:class extends Qs{constructor(){super(...arguments),this.theme=Cm}themeChanged(e,a){(e||a===Cm)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[gn.action]:im,[gn.actionsMenu]:lm,[gn.boolean]:gm,[gn.editable]:tm,[gn.selectEditor]:Zh,[gn.numberEditor]:Xh,[gn.multiselectEditor]:qh,[gn.dateEditor]:Qh,[gn.stringEditor]:am};(this.theme===wm||this.theme===xm)&&(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:Sm,styles:zm,shadowOptions:$m},Am)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Tm,Om=r(91510);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Tm||(Tm={}));const Fm={Roboto:na,"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'},Rm=Fm["Segoe UI"],Nm=b.css`
|
|
13464
13464
|
${(0,v.display)("block")} :host {
|
|
13465
13465
|
width: 100%;
|
|
13466
13466
|
display: inline-flex;
|
|
@@ -13592,7 +13592,7 @@
|
|
|
13592
13592
|
alpha-button {
|
|
13593
13593
|
margin: 0;
|
|
13594
13594
|
}
|
|
13595
|
-
`,
|
|
13595
|
+
`,Mm=b.html`
|
|
13596
13596
|
<template>
|
|
13597
13597
|
<div class="configuration">
|
|
13598
13598
|
${(0,b.when)((e=>!e.customDesignMode),b.html`
|
|
@@ -13815,7 +13815,7 @@
|
|
|
13815
13815
|
<slot></slot>
|
|
13816
13816
|
</div>
|
|
13817
13817
|
</template>
|
|
13818
|
-
`,
|
|
13818
|
+
`,Lm=({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(Fm).find((a=>Fm[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Im=Lm(ca),Em={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient",text:"lightweight"},jm={accent:"primary",neutral:"secondary",font:"white"},Pm=Lm(l.designTokens),Bm=Lm(jd),Gm={zero:{prefix:"zero",tokenDefaults:Im,buttons:Em,badge:jm},alpha:{prefix:"alpha",tokenDefaults:Pm,buttons:{accent:"accent",neutral:"neutral",outline:"outline",text:"lightweight"},badge:{accent:"primary",neutral:"neutral",font:"white"}},rapid:{prefix:"rapid",tokenDefaults:Bm,buttons:{accent:"primary",neutral:"neutral",outline:"primary-outline",text:"link"},badge:{accent:"primary",neutral:"neutral",font:"text"}},custom:{prefix:"zero",tokenDefaults:null,buttons:Em,badge:jm}};let _m=class extends b.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Im.luminance===f.StandardLuminance.DarkMode,this.luminance=Im.luminance,this.neutralColor=Im.neutralColor,this.accentColor=Im.accentColor,this.bodyFont=Im.bodyFont,this.density=Im.density,this.borderRadius=Im.borderRadius,this.strokeWidth=Im.strokeWidth,this.designUnit=Im.designUnit,this.baseFontSize=Im.baseFontSize,this.baseLineHeight=Im.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=Lm(a);Gm.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Om.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(Gm[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Om.__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],Gm.custom.prefix=a,Gm.custom.buttons=Gm[a].buttons,Gm.custom.badge=Gm[a].badge,this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:Gm[this.ds].prefix,buttonAppearanceAccent:Gm[this.ds].buttons.accent,buttonAppearanceNeutral:Gm[this.ds].buttons.neutral,buttonAppearanceOutline:Gm[this.ds].buttons.outline,buttonAppearanceText:Gm[this.ds].buttons.text,badgeAppearanceAccent:Gm[this.ds].badge.accent,badgeAppearanceNeutral:Gm[this.ds].badge.neutral,badgeText:Gm[this.ds].badge.font};this.$emit(Tm.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(Gm[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Fm[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(Tm.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={},ia(),b.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Tm.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Om.__decorate)([(0,b.attr)({mode:"boolean",attribute:"custom-design-mode"})],_m.prototype,"customDesignMode",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"designSystems",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"ds",void 0),(0,Om.__decorate)([b.attr],_m.prototype,"darkMode",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"neutralColor",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"accentColor",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"bodyFont",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"density",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"borderRadius",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"strokeWidth",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"designUnit",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"baseFontSize",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"baseLineHeight",void 0),(0,Om.__decorate)([b.observable],_m.prototype,"preserveOptions",void 0),_m=(0,Om.__decorate)([(0,b.customElement)({name:"design-system-editor",template:Mm,styles:Nm})],_m);const Um=(0,k.createLogger)("documentation-components"),Hm=e=>{const a=(e=>{const a=(0,Re.parseColorHexRGB)(e);return a?f.SwatchRGB.from(a):null})(e);return a?f.PaletteRGB.create(a):null},Vm=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},Ym=(e,a)=>{const r=Hm(e.neutralColor);f.neutralPalette.setValueFor(a,r);const t=Hm(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,Vm(f.typeRampBaseFontSize,oa.Du.minusOne,a)),f.typeRampMinus1LineHeight.setValueFor(a,Vm(f.typeRampBaseLineHeight,oa.Du.minusOne,a)),f.typeRampMinus2FontSize.setValueFor(a,Vm(f.typeRampBaseFontSize,oa.Du.minusTwo,a)),f.typeRampMinus2LineHeight.setValueFor(a,Vm(f.typeRampBaseLineHeight,oa.Du.minusTwo,a)),f.typeRampPlus1FontSize.setValueFor(a,Vm(f.typeRampBaseFontSize,oa.Du.plusOne,a)),f.typeRampPlus1LineHeight.setValueFor(a,Vm(f.typeRampBaseLineHeight,oa.Du.plusOne,a)),f.typeRampPlus2FontSize.setValueFor(a,Vm(f.typeRampBaseFontSize,oa.Du.plusTwo,a)),f.typeRampPlus2LineHeight.setValueFor(a,Vm(f.typeRampBaseLineHeight,oa.Du.plusTwo,a)),f.typeRampPlus3FontSize.setValueFor(a,Vm(f.typeRampBaseFontSize,oa.Du.plusThree,a)),f.typeRampPlus3LineHeight.setValueFor(a,Vm(f.typeRampBaseLineHeight,oa.Du.plusThree,a)),f.typeRampPlus4FontSize.setValueFor(a,Vm(f.typeRampBaseFontSize,oa.Du.plusFour,a)),f.typeRampPlus4LineHeight.setValueFor(a,Vm(f.typeRampBaseLineHeight,oa.Du.plusFour,a)),f.typeRampPlus5FontSize.setValueFor(a,Vm(f.typeRampBaseFontSize,oa.Du.plusFive,a)),f.typeRampPlus5LineHeight.setValueFor(a,Vm(f.typeRampBaseLineHeight,oa.Du.plusFive,a)),f.typeRampPlus6FontSize.setValueFor(a,Vm(f.typeRampBaseFontSize,oa.Du.plusSix,a)),f.typeRampPlus6LineHeight.setValueFor(a,Vm(f.typeRampBaseLineHeight,oa.Du.plusSix,a))},Qm=b.css`
|
|
13819
13819
|
:host {
|
|
13820
13820
|
--badge-fill-primary: var(--accent-fill-rest);
|
|
13821
13821
|
--badge-fill-neutral: var(--neutral-fill-rest);
|
|
@@ -13911,7 +13911,7 @@
|
|
|
13911
13911
|
display: flex;
|
|
13912
13912
|
flex-direction: column;
|
|
13913
13913
|
}
|
|
13914
|
-
`,
|
|
13914
|
+
`,Wm=b.html`
|
|
13915
13915
|
${e=>(e=>b.html`
|
|
13916
13916
|
<template>
|
|
13917
13917
|
<${e}-design-system-provider ${(0,b.ref)("provider")}>
|
|
@@ -14326,7 +14326,7 @@
|
|
|
14326
14326
|
</${e}-design-system-provider>
|
|
14327
14327
|
</template>
|
|
14328
14328
|
`)(e.prefix)}
|
|
14329
|
-
`;let
|
|
14329
|
+
`;let qm=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=>Um.debug("VIEWW!!!",e)},{name:"Delete",callback:e=>Um.debug("DELETE!!!",e)},{name:"Edit",callback:e=>Um.debug("EDIT!!!",e)},{name:"Wait",callback:e=>Um.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(Tm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Tm.DS_CHANGED,(e=>{this.handleDSChanges(e)})),b.DOM.queueUpdate((()=>{f.bodyFont.withDefault(Rm)}))}handleStyleChanges(e){const a=e.detail;a&&b.DOM.queueUpdate((()=>{Ym(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,Om.__decorate)([b.observable],qm.prototype,"modal",void 0),(0,Om.__decorate)([b.attr],qm.prototype,"prefix",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"buttonAppearanceAccent",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"buttonAppearanceNeutral",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"buttonAppearanceOutline",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"buttonAppearanceText",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"badgeAppearanceAccent",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"badgeAppearanceNeutral",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"badgeText",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"cards",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"countries",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"menuActions",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"menuDefinition",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"dropDownMenuItems",void 0),(0,Om.__decorate)([b.observable],qm.prototype,"provider",void 0),qm=(0,Om.__decorate)([(0,b.customElement)({name:"preview-components",template:Wm,styles:Qm})],qm);const Jm=b.css`
|
|
14330
14330
|
.export {
|
|
14331
14331
|
display: flex;
|
|
14332
14332
|
justify-content: center;
|
|
@@ -14337,7 +14337,7 @@
|
|
|
14337
14337
|
display: flex;
|
|
14338
14338
|
justify-content: space-between;
|
|
14339
14339
|
}
|
|
14340
|
-
`,
|
|
14340
|
+
`,Zm=b.html`
|
|
14341
14341
|
<template>
|
|
14342
14342
|
<div class="export">
|
|
14343
14343
|
<alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
|
|
@@ -14358,7 +14358,7 @@
|
|
|
14358
14358
|
</alpha-modal>
|
|
14359
14359
|
</div>
|
|
14360
14360
|
</template>
|
|
14361
|
-
`;let
|
|
14361
|
+
`;let Km=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=>{Um.log("Tokens saved successfully:",e),this.$emit(Tm.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{Um.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Tm.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,Om.__decorate)([b.attr],Km.prototype,"value",void 0),(0,Om.__decorate)([b.attr],Km.prototype,"tokensPath",void 0),Km=(0,Om.__decorate)([(0,b.customElement)({name:"design-system-export",template:Zm,styles:Jm})],Km);const Xm=b.css`
|
|
14362
14362
|
.colors {
|
|
14363
14363
|
display: flex;
|
|
14364
14364
|
flex-wrap: wrap;
|
|
@@ -14371,23 +14371,23 @@
|
|
|
14371
14371
|
flex-grow: 1;
|
|
14372
14372
|
height: 20px;
|
|
14373
14373
|
}
|
|
14374
|
-
`,
|
|
14374
|
+
`,eb=b.html`
|
|
14375
14375
|
<ul class="colors">
|
|
14376
14376
|
${(0,b.repeat)((e=>e.swatches),b.html`
|
|
14377
14377
|
<li class="color" style="background-color: ${e=>e.toColorString()}"></li>
|
|
14378
14378
|
`)}
|
|
14379
14379
|
</ul>
|
|
14380
|
-
`;let
|
|
14380
|
+
`;let ab=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=Hm(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Tm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Om.__decorate)([b.observable],ab.prototype,"swatches",void 0),(0,Om.__decorate)([b.attr],ab.prototype,"type",void 0),ab=(0,Om.__decorate)([(0,b.customElement)({name:"color-palette",styles:Xm,template:eb})],ab);const rb=b.css`
|
|
14381
14381
|
.preview {
|
|
14382
14382
|
width: 40px;
|
|
14383
14383
|
height: 40px;
|
|
14384
14384
|
}
|
|
14385
|
-
`,
|
|
14385
|
+
`,tb=b.html`
|
|
14386
14386
|
<div
|
|
14387
14387
|
class="preview"
|
|
14388
14388
|
style="background-color: ${e=>f[e.tokenName].createCSS()}"
|
|
14389
14389
|
></div>
|
|
14390
|
-
`;let
|
|
14390
|
+
`;let ob=class extends b.FASTElement{};(0,Om.__decorate)([b.attr],ob.prototype,"tokenName",void 0),ob=(0,Om.__decorate)([(0,b.customElement)({name:"color-token",styles:rb,template:tb})],ob);const ib=b.css`
|
|
14391
14391
|
.container {
|
|
14392
14392
|
display: flex;
|
|
14393
14393
|
width: 100%;
|
|
@@ -14435,7 +14435,7 @@
|
|
|
14435
14435
|
.container > div:not(:last-child) {
|
|
14436
14436
|
border-right: 1px solid #fafafa;
|
|
14437
14437
|
}
|
|
14438
|
-
`,
|
|
14438
|
+
`,nb=[{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"}]}]}],lb=b.html`
|
|
14439
14439
|
<div class="row">
|
|
14440
14440
|
<div
|
|
14441
14441
|
class="preview"
|
|
@@ -14447,19 +14447,19 @@
|
|
|
14447
14447
|
${(e,a)=>f[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
|
|
14448
14448
|
</div>
|
|
14449
14449
|
</div>
|
|
14450
|
-
`,
|
|
14450
|
+
`,sb=b.html`
|
|
14451
14451
|
<div class="container" ${(0,b.ref)("provider")}>
|
|
14452
|
-
${(0,b.repeat)((()=>
|
|
14452
|
+
${(0,b.repeat)((()=>nb),b.html`
|
|
14453
14453
|
<div class="column">
|
|
14454
14454
|
<h3 class="header-title">${e=>e.title}</h3>
|
|
14455
14455
|
${(0,b.repeat)((e=>e.subcategories),b.html`
|
|
14456
14456
|
<h4>${e=>e.title}</h4>
|
|
14457
|
-
${(0,b.repeat)((e=>e.tokens),
|
|
14457
|
+
${(0,b.repeat)((e=>e.tokens),lb)}
|
|
14458
14458
|
`)}
|
|
14459
14459
|
</div>
|
|
14460
14460
|
`)}
|
|
14461
14461
|
</div>
|
|
14462
|
-
`;let
|
|
14462
|
+
`;let gb=class extends b.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Tm.STYLES_CHANGED,(e=>{const a=e.detail;Ym(a,this.provider)}))}};(0,Om.__decorate)([b.observable],gb.prototype,"provider",void 0),gb=(0,Om.__decorate)([(0,b.customElement)({name:"color-tokens",template:sb,styles:ib})],gb);const db=b.css`
|
|
14463
14463
|
table {
|
|
14464
14464
|
background: var(--neutral-fill-rest);
|
|
14465
14465
|
color: var(--neutral-foreground-rest);
|
|
@@ -14468,7 +14468,7 @@
|
|
|
14468
14468
|
th {
|
|
14469
14469
|
text-align: left;
|
|
14470
14470
|
}
|
|
14471
|
-
`,
|
|
14471
|
+
`,cb=b.html`
|
|
14472
14472
|
<table ${(0,b.ref)("provider")} style="font-family: ${()=>f.bodyFont.createCSS()}">
|
|
14473
14473
|
<colgroup>
|
|
14474
14474
|
<col style="width: 15%;" />
|
|
@@ -14696,7 +14696,7 @@
|
|
|
14696
14696
|
</tr>
|
|
14697
14697
|
</tbody>
|
|
14698
14698
|
</table>
|
|
14699
|
-
`;let
|
|
14699
|
+
`;let pb=class extends b.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Tm.STYLES_CHANGED,(e=>{const a=e.detail;Ym(a,this.provider)}))}};(0,Om.__decorate)([b.observable],pb.prototype,"provider",void 0),pb=(0,Om.__decorate)([(0,b.customElement)({name:"typography-tokens",template:cb,styles:db})],pb);const ub=b.css`
|
|
14700
14700
|
:host {
|
|
14701
14701
|
background: var(--fill-color);
|
|
14702
14702
|
color: var(--neutral-foreground-rest);
|
|
@@ -14712,7 +14712,7 @@
|
|
|
14712
14712
|
margin-top: 24px;
|
|
14713
14713
|
padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
|
|
14714
14714
|
}
|
|
14715
|
-
`,
|
|
14715
|
+
`,hb=b.html`
|
|
14716
14716
|
<template>
|
|
14717
14717
|
<alpha-tabs>
|
|
14718
14718
|
<alpha-tab slot="tab">Components</alpha-tab>
|
|
@@ -14741,7 +14741,7 @@
|
|
|
14741
14741
|
</alpha-tab-panel>
|
|
14742
14742
|
</alpha-tabs>
|
|
14743
14743
|
</template>
|
|
14744
|
-
`;let
|
|
14744
|
+
`;let mb=class extends b.FASTElement{};mb=(0,Om.__decorate)([(0,b.customElement)({name:"design-system-preview",template:hb,styles:ub})],mb);const bb={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"}]}]}}]},vb={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"]}}},fb={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"}]}}}]},wb={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"]}}}},yb=b.css`
|
|
14745
14745
|
:host {
|
|
14746
14746
|
background: var(--fill-color);
|
|
14747
14747
|
color: var(--neutral-foreground-rest);
|
|
@@ -14772,7 +14772,7 @@
|
|
|
14772
14772
|
zero-design-system-provider {
|
|
14773
14773
|
display: inline;
|
|
14774
14774
|
}
|
|
14775
|
-
`,
|
|
14775
|
+
`,xb=b.html`
|
|
14776
14776
|
${e=>(e=>b.html`
|
|
14777
14777
|
<template>
|
|
14778
14778
|
<${e}-design-system-provider ${(0,b.ref)("provider")}>
|
|
@@ -14796,7 +14796,7 @@
|
|
|
14796
14796
|
</${e}-design-system-provider>
|
|
14797
14797
|
</template>
|
|
14798
14798
|
`)(e.prefix)}
|
|
14799
|
-
`;let
|
|
14799
|
+
`;let kb=class extends b.FASTElement{constructor(){super(...arguments),this.jsonSchema=vb,this.uischema=bb,this.jsonSchemaArray=wb,this.uiSchemaArray=fb,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(Tm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Tm.DS_CHANGED,(e=>{this.handleDSChanges(e)})),b.DOM.queueUpdate((()=>{f.bodyFont.withDefault(Rm)}))}handleStyleChanges(e){const a=e.detail;a&&b.DOM.queueUpdate((()=>{Ym(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix}};(0,Om.__decorate)([b.observable],kb.prototype,"jsonSchema",void 0),(0,Om.__decorate)([b.observable],kb.prototype,"uischema",void 0),(0,Om.__decorate)([b.observable],kb.prototype,"jsonSchemaArray",void 0),(0,Om.__decorate)([b.observable],kb.prototype,"uiSchemaArray",void 0),(0,Om.__decorate)([b.attr],kb.prototype,"prefix",void 0),(0,Om.__decorate)([b.observable],kb.prototype,"provider",void 0),(0,Om.__decorate)([b.observable],kb.prototype,"editedEntity",void 0),(0,Om.__decorate)([b.observable],kb.prototype,"editedEntityArray",void 0),kb=(0,Om.__decorate)([(0,b.customElement)({name:"preview-form",template:xb,styles:yb})],kb);const zb=[{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}],Sb=b.css`
|
|
14800
14800
|
:host {
|
|
14801
14801
|
background: var(--fill-color);
|
|
14802
14802
|
color: var(--neutral-foreground-rest);
|
|
@@ -14811,7 +14811,7 @@
|
|
|
14811
14811
|
.grid-height {
|
|
14812
14812
|
height: 100%;
|
|
14813
14813
|
}
|
|
14814
|
-
`,
|
|
14814
|
+
`,Cb=b.html`
|
|
14815
14815
|
${e=>(e=>b.html`
|
|
14816
14816
|
<template>
|
|
14817
14817
|
<${e}-design-system-provider ${(0,b.ref)("provider")}>
|
|
@@ -14840,5 +14840,5 @@
|
|
|
14840
14840
|
</${e}-design-system-provider>
|
|
14841
14841
|
</template>
|
|
14842
14842
|
`)(e.prefix)}
|
|
14843
|
-
`;let
|
|
14844
|
-
//# sourceMappingURL=
|
|
14843
|
+
`;let $b=class extends b.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[...zb],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:gn.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:gn.actionsMenu,cellRendererParams:{actions:e,buttonAppearance:o,isVertical:t,buttonText:r},cellStyle:{border:"none",overflow:"visible"},field:`${il(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:gn.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(Tm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Tm.DS_CHANGED,(e=>{this.handleDSChanges(e)})),b.DOM.queueUpdate((()=>{this.setGridOptions(),f.bodyFont.withDefault(Rm)}))}handleStyleChanges(e){const a=e.detail;a&&b.DOM.queueUpdate((()=>{Ym(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,b.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Om.__decorate)([b.observable],$b.prototype,"grid",void 0),(0,Om.__decorate)([b.attr],$b.prototype,"prefix",void 0),(0,Om.__decorate)([b.observable],$b.prototype,"provider",void 0),(0,Om.__decorate)([b.observable],$b.prototype,"rowData",void 0),(0,Om.__decorate)([b.observable],$b.prototype,"columnDefs",void 0),(0,Om.__decorate)([b.observable],$b.prototype,"gridOptions",void 0),$b=(0,Om.__decorate)([(0,b.customElement)({name:"preview-grid",template:Cb,styles:Sb})],$b),((e,a="zero")=>{e&&(0,V.provideTokens)(t,o,e);const r=v.DesignSystem.getOrCreate(e).withPrefix(a);return(0,V.createDesignSystemProxy)(r)})().register(Ki,pg),(0,l.provideDesignSystem)().register(l.baseComponents,ug),((e,a="rapid")=>{e&&(0,V.provideTokens)(i,n,e);const r=v.DesignSystem.getOrCreate(e).withPrefix(a);return(0,V.createDesignSystemProxy)(r)})().register(Yh,Dm)}}]);
|
|
14844
|
+
//# sourceMappingURL=445.eb7f443ead4e533d176418e0c59c04e2.js.map
|