@genesislcap/design-system-configurator 14.182.0 → 14.182.1
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/{325.325.538a69a0048c004257f4.js → 206.206.966cc866d9dcd9eb720a.js} +87 -87
- package/dist/206.e44ebdeb8a8e2a6616d4fb23577c629f.js.map +1 -0
- package/dist/{279.279.827c488202d2cf5801c4.js → 279.279.b8e66cd25155012b4375.js} +1 -1
- package/dist/{531.531.b5e0bd1b57ff39aa0356.js → 531.531.592cabf3457e1bda7d82.js} +1 -1
- package/dist/{548.548.cdba456318b4d572b317.js → 548.548.cf260ef50c92754add15.js} +2 -2
- package/dist/{548.1302eba0ac52ed9874e55977e489e1e8.js.map → 548.f67e6a5522e2599ebf40ecbcc26dbe94.js.map} +1 -1
- package/dist/653.653.647cef4619c51dbd4831.js +2 -0
- package/dist/{653.cd79d6d50e9f0dfe8ed96f08357afbae.js.map → 653.cda2755851515fbf4ce54a3f75f7351b.js.map} +1 -1
- package/dist/{842.842.5c6d57a6fdb04dc6f49f.js → 842.842.5f08d80e78b6ffab0046.js} +1 -1
- package/dist/{designSystemConfigurator.68673263585809a2e00ead6e3f8ed939.js.map → designSystemConfigurator.142c920f9ddfb2c3cf8f7693b4c8878c.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/main.5c6f8561efdcf9b1e4e1.js +2 -0
- package/dist/{main.71f4fca4d8da4bd4e3a1a21867b7c57a.js.map → main.5de98c857758f23d09b2ba8d986813e7.js.map} +1 -1
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/325.e437ee758435ddd98874ea9961c92420.js.map +0 -1
- package/dist/653.653.45e2e0d82eef109bb509.js +0 -2
- package/dist/main.cf1822edd6f71c30f89c.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[325],{40896:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>Lm,ColorToken:()=>Em,ColorTokens:()=>_m,DesignSystemEditor:()=>xm,DesignSystemExport:()=>Dm,DesignSystemPreview:()=>Wm,EventName:()=>gm,PreviewComponents:()=>Om,PreviewForm:()=>ab,PreviewGrid:()=>ib,TypographyTokens:()=>Vm,defaultBodyFont:()=>cm,fontFamilies:()=>dm});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,controlCornerRadius:()=>f.controlCornerRadius,defaultErrorColor:()=>Le,defaultSuccessColor:()=>Ee,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>Me,fillColor:()=>f.fillColor,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,strokeWidth:()=>f.strokeWidth,successColor:()=>je,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>Pe,baseLayerLuminanceValue:()=>Ge,bodyFontValue:()=>Ke,controlCornerRadiusValue:()=>Ve,densityValue:()=>Ye,designTokens:()=>aa,designUnitValue:()=>Qe,directionValue:()=>Ue,neutralPaletteValue:()=>Be,strokeWidthValue:()=>He,typeRampBaseFontSizeValue:()=>Xe,typeRampBaseLineHeightValue:()=>ea});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:()=>ps,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>cs,defaultErrorColor:()=>rs,defaultSellColor:()=>hs,defaultSuccessColor:()=>is,defaultWarningColor:()=>gs,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>ts,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:()=>ms,strokeWidth:()=>f.strokeWidth,successColor:()=>ns,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:()=>ss});var n={};r.r(n),r.d(n,{accentFillActiveDeltaValue:()=>xs,accentFillFocusDeltaValue:()=>ks,accentFillHoverDeltaValue:()=>ys,accentFillRestDeltaValue:()=>ws,accentForegroundActiveDeltaValue:()=>Cs,accentForegroundFocusDeltaValue:()=>$s,accentForegroundHoverDeltaValue:()=>Ss,accentForegroundRestDeltaValue:()=>zs,accentPaletteValue:()=>bs,baseHeightMultiplierValue:()=>ed,baseLayerLuminanceValue:()=>fs,bodyFontValue:()=>od,controlCornerRadiusValue:()=>ad,densityValue:()=>rd,designTokens:()=>zd,designUnitValue:()=>td,directionValue:()=>Js,disabledOpacityValue:()=>Zs,focusStrokeWidthValue:()=>Xs,neutralFillActiveDeltaValue:()=>Ts,neutralFillFocusDeltaValue:()=>Fs,neutralFillHoverDeltaValue:()=>Os,neutralFillInputActiveDeltaValue:()=>Ns,neutralFillInputFocusDeltaValue:()=>Ls,neutralFillInputHoverDeltaValue:()=>Rs,neutralFillInputRestDeltaValue:()=>Ds,neutralFillLayerRestDeltaValue:()=>Us,neutralFillRestDeltaValue:()=>As,neutralFillStealthActiveDeltaValue:()=>Es,neutralFillStealthFocusDeltaValue:()=>js,neutralFillStealthHoverDeltaValue:()=>Is,neutralFillStealthRestDeltaValue:()=>Ms,neutralFillStrongActiveDeltaValue:()=>Gs,neutralFillStrongFocusDeltaValue:()=>_s,neutralFillStrongHoverDeltaValue:()=>Bs,neutralFillStrongRestDeltaValue:()=>Ps,neutralPaletteValue:()=>vs,neutralStrokeActiveDeltaValue:()=>Ys,neutralStrokeDividerRestDeltaValue:()=>Ws,neutralStrokeFocusDeltaValue:()=>Qs,neutralStrokeHoverDeltaValue:()=>Vs,neutralStrokeRestDeltaValue:()=>Hs,prefix:()=>qs,strokeWidthValue:()=>Ks,typeRampBaseFontSizeValue:()=>id,typeRampBaseLineHeightValue:()=>nd,typeRampMinus1FontSizeValue:()=>ld,typeRampMinus1LineHeightValue:()=>gd,typeRampMinus2FontSizeValue:()=>sd,typeRampMinus2LineHeightValue:()=>dd,typeRampPlus1FontSizeValue:()=>cd,typeRampPlus1LineHeightValue:()=>pd,typeRampPlus2FontSizeValue:()=>ud,typeRampPlus2LineHeightValue:()=>hd,typeRampPlus3FontSizeValue:()=>md,typeRampPlus3LineHeightValue:()=>bd,typeRampPlus4FontSizeValue:()=>vd,typeRampPlus4LineHeightValue:()=>fd,typeRampPlus5FontSizeValue:()=>wd,typeRampPlus5LineHeightValue:()=>yd,typeRampPlus6FontSizeValue:()=>xd,typeRampPlus6LineHeightValue:()=>kd});var l=r(59462),g=r(24636),s=r(61503),d=r(17914);const c=e=>{var a,r,t,o,i,n,l,g,s;return s=class extends e{constructor(...e){super(e),a.add(this),r.set(this,{_key:"dom"}),t.set(this,""),o.set(this,!1),i.set(this,void 0),n.set(this,!1)}cloneNode(e){const a=this.deepClone();return e&&Array.from(this.childNodes).forEach((e=>{a.appendChild(e.cloneNode(!0))})),a}deepClone(){const e=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach((a=>e.setAttribute(a,this.getAttribute(a)))),e}get shouldRunDisconnect(){return!!(0,d.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,d.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,d.__classPrivateFieldGet)(this,o,"f")&&((0,d.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&(0,d.__classPrivateFieldSet)(this,r,(0,d.__classPrivateFieldGet)(this,a,"m",g).call(this,this),"f")}},r=new WeakMap,t=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,a=new WeakSet,l=function(e){var a,o;if("foundation-layout"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key)throw new Error("LifecycleMixin: should not be checking a token change if container not in the layout");const l=(0,d.__classPrivateFieldGet)(this,t,"f")!==(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,d.__classPrivateFieldSet)(this,t,null!==(a=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,d.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,d.__classPrivateFieldSet)(this,n,g,"f"),(0,d.__classPrivateFieldGet)(this,n,"f")&&this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,d.__classPrivateFieldSet)(this,t,null!==(o=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,d.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[p])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document||!(null===(t=r.getRootNode())||void 0===t?void 0:t.host))return{_key:"dom"};const o=r.getRootNode().host;if("FoundationLayoutMain"===o.class){const e=o;return e._key="foundation-layout",e}return(0,d.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},s},p=Symbol("layout-cache-document");var u=r(83453),h=r.n(u),m=r(60496),b=r(57418),v=r(34387),f=r(44405),w=r(85090);const y=b.css`
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[206],{79621:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>Im,ColorToken:()=>Pm,ColorTokens:()=>Hm,DesignSystemEditor:()=>zm,DesignSystemExport:()=>Nm,DesignSystemPreview:()=>Jm,EventName:()=>dm,PreviewComponents:()=>Fm,PreviewForm:()=>tb,PreviewGrid:()=>lb,TypographyTokens:()=>Qm,defaultBodyFont:()=>um,fontFamilies:()=>pm});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,controlCornerRadius:()=>f.controlCornerRadius,defaultErrorColor:()=>Le,defaultSuccessColor:()=>Ee,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>Me,fillColor:()=>f.fillColor,focusStrokeInner:()=>f.focusStrokeInner,focusStrokeOuter:()=>f.focusStrokeOuter,focusStrokeWidth:()=>f.focusStrokeWidth,foregroundOnAccentActive:()=>f.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>f.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>f.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>f.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>f.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>f.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>f.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>f.foregroundOnAccentRestLarge,neutralFillActive:()=>f.neutralFillActive,neutralFillActiveDelta:()=>f.neutralFillActiveDelta,neutralFillFocus:()=>f.neutralFillFocus,neutralFillFocusDelta:()=>f.neutralFillFocusDelta,neutralFillHover:()=>f.neutralFillHover,neutralFillHoverDelta:()=>f.neutralFillHoverDelta,neutralFillInputActive:()=>f.neutralFillInputActive,neutralFillInputActiveDelta:()=>f.neutralFillInputActiveDelta,neutralFillInputFocus:()=>f.neutralFillInputFocus,neutralFillInputFocusDelta:()=>f.neutralFillInputFocusDelta,neutralFillInputHover:()=>f.neutralFillInputHover,neutralFillInputHoverDelta:()=>f.neutralFillInputHoverDelta,neutralFillInputRest:()=>f.neutralFillInputRest,neutralFillInputRestDelta:()=>f.neutralFillInputRestDelta,neutralFillLayerRest:()=>f.neutralFillLayerRest,neutralFillLayerRestDelta:()=>f.neutralFillLayerRestDelta,neutralFillRest:()=>f.neutralFillRest,neutralFillRestDelta:()=>f.neutralFillRestDelta,neutralFillStealthActive:()=>f.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>f.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>f.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>f.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>f.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>f.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>f.neutralFillStealthRest,neutralFillStealthRestDelta:()=>f.neutralFillStealthRestDelta,neutralFillStrongActive:()=>f.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>f.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>f.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>f.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>f.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>f.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>f.neutralFillStrongRest,neutralFillStrongRestDelta:()=>f.neutralFillStrongRestDelta,neutralForegroundHint:()=>f.neutralForegroundHint,neutralForegroundRest:()=>f.neutralForegroundRest,neutralLayer1:()=>f.neutralLayer1,neutralLayer2:()=>f.neutralLayer2,neutralLayer3:()=>f.neutralLayer3,neutralLayer4:()=>f.neutralLayer4,neutralLayerCardContainer:()=>f.neutralLayerCardContainer,neutralLayerFloating:()=>f.neutralLayerFloating,neutralPalette:()=>f.neutralPalette,neutralStrokeActive:()=>f.neutralStrokeActive,neutralStrokeActiveDelta:()=>f.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>f.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>f.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>f.neutralStrokeFocus,neutralStrokeFocusDelta:()=>f.neutralStrokeFocusDelta,neutralStrokeHover:()=>f.neutralStrokeHover,neutralStrokeHoverDelta:()=>f.neutralStrokeHoverDelta,neutralStrokeRest:()=>f.neutralStrokeRest,neutralStrokeRestDelta:()=>f.neutralStrokeRestDelta,strokeWidth:()=>f.strokeWidth,successColor:()=>je,typeRampBaseFontSize:()=>f.typeRampBaseFontSize,typeRampBaseLineHeight:()=>f.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>f.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>f.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>f.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>f.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>f.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>f.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>f.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>f.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>f.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>f.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>f.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>f.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>f.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>f.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>f.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>f.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>Pe,baseLayerLuminanceValue:()=>Ge,bodyFontValue:()=>Ke,controlCornerRadiusValue:()=>Ve,densityValue:()=>Ye,designTokens:()=>aa,designUnitValue:()=>Qe,directionValue:()=>Ue,neutralPaletteValue:()=>Be,strokeWidthValue:()=>He,typeRampBaseFontSizeValue:()=>Xe,typeRampBaseLineHeightValue:()=>ea});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:()=>ps,controlCornerRadius:()=>f.controlCornerRadius,defaultBuyColor:()=>cs,defaultErrorColor:()=>rs,defaultSellColor:()=>hs,defaultSuccessColor:()=>is,defaultWarningColor:()=>gs,density:()=>f.density,designUnit:()=>f.designUnit,direction:()=>f.direction,disabledOpacity:()=>f.disabledOpacity,errorColor:()=>ts,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:()=>ms,strokeWidth:()=>f.strokeWidth,successColor:()=>ns,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:()=>ss});var n={};r.r(n),r.d(n,{accentFillActiveDeltaValue:()=>xs,accentFillFocusDeltaValue:()=>ks,accentFillHoverDeltaValue:()=>ys,accentFillRestDeltaValue:()=>ws,accentForegroundActiveDeltaValue:()=>Cs,accentForegroundFocusDeltaValue:()=>$s,accentForegroundHoverDeltaValue:()=>Ss,accentForegroundRestDeltaValue:()=>zs,accentPaletteValue:()=>bs,baseHeightMultiplierValue:()=>ed,baseLayerLuminanceValue:()=>fs,bodyFontValue:()=>od,controlCornerRadiusValue:()=>ad,densityValue:()=>rd,designTokens:()=>zd,designUnitValue:()=>td,directionValue:()=>Js,disabledOpacityValue:()=>Zs,focusStrokeWidthValue:()=>Xs,neutralFillActiveDeltaValue:()=>Ts,neutralFillFocusDeltaValue:()=>Fs,neutralFillHoverDeltaValue:()=>Os,neutralFillInputActiveDeltaValue:()=>Ns,neutralFillInputFocusDeltaValue:()=>Ls,neutralFillInputHoverDeltaValue:()=>Rs,neutralFillInputRestDeltaValue:()=>Ds,neutralFillLayerRestDeltaValue:()=>Us,neutralFillRestDeltaValue:()=>As,neutralFillStealthActiveDeltaValue:()=>Es,neutralFillStealthFocusDeltaValue:()=>js,neutralFillStealthHoverDeltaValue:()=>Is,neutralFillStealthRestDeltaValue:()=>Ms,neutralFillStrongActiveDeltaValue:()=>Gs,neutralFillStrongFocusDeltaValue:()=>_s,neutralFillStrongHoverDeltaValue:()=>Bs,neutralFillStrongRestDeltaValue:()=>Ps,neutralPaletteValue:()=>vs,neutralStrokeActiveDeltaValue:()=>Ys,neutralStrokeDividerRestDeltaValue:()=>Ws,neutralStrokeFocusDeltaValue:()=>Qs,neutralStrokeHoverDeltaValue:()=>Vs,neutralStrokeRestDeltaValue:()=>Hs,prefix:()=>qs,strokeWidthValue:()=>Ks,typeRampBaseFontSizeValue:()=>id,typeRampBaseLineHeightValue:()=>nd,typeRampMinus1FontSizeValue:()=>ld,typeRampMinus1LineHeightValue:()=>gd,typeRampMinus2FontSizeValue:()=>sd,typeRampMinus2LineHeightValue:()=>dd,typeRampPlus1FontSizeValue:()=>cd,typeRampPlus1LineHeightValue:()=>pd,typeRampPlus2FontSizeValue:()=>ud,typeRampPlus2LineHeightValue:()=>hd,typeRampPlus3FontSizeValue:()=>md,typeRampPlus3LineHeightValue:()=>bd,typeRampPlus4FontSizeValue:()=>vd,typeRampPlus4LineHeightValue:()=>fd,typeRampPlus5FontSizeValue:()=>wd,typeRampPlus5LineHeightValue:()=>yd,typeRampPlus6FontSizeValue:()=>xd,typeRampPlus6LineHeightValue:()=>kd});var l=r(17184),g=r(24636),s=r(61503),d=r(17914);const c=e=>{var a,r,t,o,i,n,l,g,s;return s=class extends e{constructor(...e){super(e),a.add(this),r.set(this,{_key:"dom"}),t.set(this,""),o.set(this,!1),i.set(this,void 0),n.set(this,!1)}cloneNode(e){const a=this.deepClone();return e&&Array.from(this.childNodes).forEach((e=>{a.appendChild(e.cloneNode(!0))})),a}deepClone(){const e=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach((a=>e.setAttribute(a,this.getAttribute(a)))),e}get shouldRunDisconnect(){return!!(0,d.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,d.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,d.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,d.__classPrivateFieldGet)(this,o,"f")&&((0,d.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,d.__classPrivateFieldGet)(this,r,"f").dragging||!(0,d.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,d.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key&&(0,d.__classPrivateFieldSet)(this,r,(0,d.__classPrivateFieldGet)(this,a,"m",g).call(this,this),"f")}},r=new WeakMap,t=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,a=new WeakSet,l=function(e){var a,o;if("foundation-layout"!==(0,d.__classPrivateFieldGet)(this,r,"f")._key)throw new Error("LifecycleMixin: should not be checking a token change if container not in the layout");const l=(0,d.__classPrivateFieldGet)(this,t,"f")!==(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,d.__classPrivateFieldSet)(this,t,null!==(a=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,d.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,d.__classPrivateFieldSet)(this,n,g,"f"),(0,d.__classPrivateFieldGet)(this,n,"f")&&this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,d.__classPrivateFieldSet)(this,t,null!==(o=(0,d.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,d.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[p])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document||!(null===(t=r.getRootNode())||void 0===t?void 0:t.host))return{_key:"dom"};const o=r.getRootNode().host;if("FoundationLayoutMain"===o.class){const e=o;return e._key="foundation-layout",e}return(0,d.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},s},p=Symbol("layout-cache-document");var u=r(83453),h=r.n(u),m=r(60496),b=r(57418),v=r(34387),f=r(44405),w=r(85090);const y=b.css`
|
|
2
2
|
:host {
|
|
3
3
|
border: calc(${f.strokeWidth} * 1px) solid transparent;
|
|
4
4
|
margin: 0;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
background: ${w.A.Canvas};
|
|
56
56
|
border-color: ${w.A.CanvasText};
|
|
57
57
|
}
|
|
58
|
-
`)),x={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"};var k=r(
|
|
58
|
+
`)),x={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"};var k=r(17054);const z=(0,k.createLogger)("foundation-form"),S=b.html`
|
|
59
59
|
<template>
|
|
60
60
|
${(0,b.when)((e=>!1),b.html`
|
|
61
61
|
<rapid-button class="clipboard-button" @click=${e=>e.copyUISchemaToClipboard()}>
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
</control-wrapper>
|
|
297
297
|
</template>
|
|
298
298
|
`)(e.prefix)}
|
|
299
|
-
`,tester:(0,m.Hc7)(3,_),mapper:m.kOB};var H=r(
|
|
299
|
+
`,tester:(0,m.Hc7)(3,_),mapper:m.kOB};var H=r(75806);const V=e=>a=>{if(!a||!(0,m.c0N)(a))return!1;const r=a.options;return!(!r||!r[e])},Y=(0,m.Uo6)(V("allOptionsResourceName"),(0,m.or)((0,m.f4S)((e=>(0,m.dfR)(e,"array"))),(0,m.f4S)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,m.dfR)(e,"array")))))));H.MultiselectDatasource;const Q={renderer:b.html`
|
|
300
300
|
${e=>((e="zero")=>b.html`
|
|
301
301
|
<template>
|
|
302
302
|
<control-wrapper
|
|
@@ -11946,7 +11946,7 @@
|
|
|
11946
11946
|
}
|
|
11947
11947
|
`,Kp=b.html`
|
|
11948
11948
|
${(0,H.getPrefixedMultiselect)("rapid")}
|
|
11949
|
-
`;class Xp extends H.Multiselect{}const eu=H.defaultMultiselectConfig,au=H.foundationMultiselectShadowOptions,ru=Xp.compose(Object.assign({baseName:"multiselect",template:Kp,styles:Zp,shadowOptions:au},eu));class tu extends H.
|
|
11949
|
+
`;class Xp extends H.Multiselect{}const eu=H.defaultMultiselectConfig,au=H.foundationMultiselectShadowOptions,ru=Xp.compose(Object.assign({baseName:"multiselect",template:Kp,styles:Zp,shadowOptions:au},eu));class tu extends H.NotificationListener{}const ou=tu.compose({baseName:"notification-listener",template:H.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}});class iu extends H.NumberField{}const nu=H.defaultNumberFieldConfig,lu=H.foundationNumberFieldTemplate,gu=H.foundationNumberFieldShadowOptions,su=iu.compose(Object.assign({baseName:"number-field",template:lu,styles:(e,a)=>b.css`
|
|
11950
11950
|
:host {
|
|
11951
11951
|
margin-bottom: calc(var(--design-unit) * 2px);
|
|
11952
11952
|
}
|
|
@@ -12031,11 +12031,11 @@
|
|
|
12031
12031
|
.control:focus-visible {
|
|
12032
12032
|
outline: none;
|
|
12033
12033
|
}
|
|
12034
|
-
`,shadowOptions:
|
|
12034
|
+
`,shadowOptions:gu},nu));class du extends H.Progress{}const cu=du.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,H.foundationProgressTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12035
12035
|
${(0,H.foundationProgressStyles)(e,a)}
|
|
12036
|
-
`,shadowOptions:H.foundationProgressShadowOptions},H.defaultProgressConfig));class
|
|
12036
|
+
`,shadowOptions:H.foundationProgressShadowOptions},H.defaultProgressConfig));class pu extends H.ProgressRing{}const uu=pu.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>(0,H.foundationProgressRingTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12037
12037
|
${(0,H.foundationProgressRingStyles)(e,a)}
|
|
12038
|
-
`,shadowOptions:H.foundationProgressRingShadowOptions},H.defaultProgressRingConfig));class
|
|
12038
|
+
`,shadowOptions:H.foundationProgressRingShadowOptions},H.defaultProgressRingConfig));class hu extends H.Radio{}const mu=hu.compose(Object.assign({baseName:"radio",template:(e,a)=>(0,H.foundationRadioTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12039
12039
|
${(0,H.foundationRadioStyles)(e,a)}
|
|
12040
12040
|
:host {
|
|
12041
12041
|
margin: calc(var(--design-unit) * 2px) 0 calc(var(--design-unit) * 2px) 0;
|
|
@@ -12067,13 +12067,13 @@
|
|
|
12067
12067
|
:host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator {
|
|
12068
12068
|
background: var(--accent-fill-rest);
|
|
12069
12069
|
}
|
|
12070
|
-
`,shadowOptions:H.foundationRadioShadowOptions},H.defaultRadioConfig));class
|
|
12070
|
+
`,shadowOptions:H.foundationRadioShadowOptions},H.defaultRadioConfig));class bu extends H.RadioGroup{}const vu=bu.compose(Object.assign({baseName:"radio-group",template:(e,a)=>(0,H.foundationRadioGroupTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12071
12071
|
${(0,H.foundationRadioGroupStyles)(e,a)}
|
|
12072
|
-
`,shadowOptions:H.foundationRadioGroupShadowOptions},H.defaultRadioGroupConfig)),
|
|
12072
|
+
`,shadowOptions:H.foundationRadioGroupShadowOptions},H.defaultRadioGroupConfig)),fu=b.css`
|
|
12073
12073
|
${H.foundationSearchBarStyles}
|
|
12074
|
-
`,
|
|
12074
|
+
`,wu=b.html`
|
|
12075
12075
|
${(0,H.getPrefixedSearchBar)("rapid")}
|
|
12076
|
-
`;class
|
|
12076
|
+
`;class yu extends H.SearchBar{}const xu=yu.compose(Object.assign({baseName:"search-bar",template:wu,styles:fu,shadowOptions:H.foundationSearchBarShadowOptions},H.defaultSearchBarConfig));class ku extends H.SearchBarCombobox{}const zu=ku.compose(Object.assign({baseName:"search-bar-combobox",template:(e,a)=>(0,H.foundationSearchBarComboboxTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12077
12077
|
${(0,H.foundationSearchBarComboboxStyles)(e,a)}
|
|
12078
12078
|
|
|
12079
12079
|
:host {
|
|
@@ -12104,7 +12104,7 @@
|
|
|
12104
12104
|
:host .listbox ::slotted(*:last-child) {
|
|
12105
12105
|
border-bottom: none;
|
|
12106
12106
|
}
|
|
12107
|
-
`,shadowOptions:H.foundationSearchBarComboboxShadowOptions},H.defaultSearchBarComboboxConfig));class
|
|
12107
|
+
`,shadowOptions:H.foundationSearchBarComboboxShadowOptions},H.defaultSearchBarComboboxConfig));class Su extends H.SegmentedControl{}const Cu=Su.compose(Object.assign({baseName:"segmented-control",template:(e,a)=>(0,H.foundationSegmentedControlTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12108
12108
|
${(0,H.foundationSegmentedControlStyles)(e,a)}
|
|
12109
12109
|
:host {
|
|
12110
12110
|
font-family: var(--body-font);
|
|
@@ -12140,7 +12140,7 @@
|
|
|
12140
12140
|
border-color: transparent;
|
|
12141
12141
|
box-shadow: 2px 1000px 1px rgb(0 0 0 / 50%) inset;
|
|
12142
12142
|
}
|
|
12143
|
-
`,shadowOptions:undefined},{}));class
|
|
12143
|
+
`,shadowOptions:undefined},{}));class $u extends H.Radio{}const Au=$u.compose(Object.assign({baseName:"segmented-item",template:(e,a)=>(0,H.foundationSegmentedItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12144
12144
|
${(0,H.foundationSegmentedItemStyles)(e,a)}
|
|
12145
12145
|
:host {
|
|
12146
12146
|
color: var(--neutral-fill-strong-rest);
|
|
@@ -12152,7 +12152,7 @@
|
|
|
12152
12152
|
:host([aria-checked='true']) {
|
|
12153
12153
|
color: color-mix(in srgb, white, transparent 10%);
|
|
12154
12154
|
}
|
|
12155
|
-
`,shadowOptions:undefined},{}));class
|
|
12155
|
+
`,shadowOptions:undefined},{}));class Ou extends H.Select{}const Tu=Ou.compose(Object.assign({baseName:"select",template:(e,a)=>(0,H.foundationSelectTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12156
12156
|
${(0,H.foundationSelectStyles)(e,a)}
|
|
12157
12157
|
:host {
|
|
12158
12158
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
@@ -12224,14 +12224,14 @@
|
|
|
12224
12224
|
::slotted([role='option']) {
|
|
12225
12225
|
margin: 0;
|
|
12226
12226
|
}
|
|
12227
|
-
`,shadowOptions:H.foundationSelectShadowOptions},H.defaultSelectConfig));class
|
|
12227
|
+
`,shadowOptions:H.foundationSelectShadowOptions},H.defaultSelectConfig));class Fu extends H.Skeleton{}const Du=Fu.compose(Object.assign({baseName:"skeleton",template:(e,a)=>(0,H.foundationSkeletonTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12228
12228
|
${(0,H.foundationSkeletonStyles)(e,a)}
|
|
12229
12229
|
:host {
|
|
12230
12230
|
--skeleton-fill: var(
|
|
12231
12231
|
--neutral-fill-stealth-rest
|
|
12232
12232
|
); /** value in ux doc rgba(242 242 242 / 0.1) */
|
|
12233
12233
|
}
|
|
12234
|
-
`,shadowOptions:H.foundationSkeletonShadowOptions},H.defaultSkeletonConfig));class
|
|
12234
|
+
`,shadowOptions:H.foundationSkeletonShadowOptions},H.defaultSkeletonConfig));class Ru extends H.Slider{}const Nu=Ru.compose(Object.assign({baseName:"slider",template:(e,a)=>(0,H.foundationSliderTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12235
12235
|
${(0,H.foundationSliderStyles)(e,a)}
|
|
12236
12236
|
|
|
12237
12237
|
.thumb-cursor {
|
|
@@ -12289,7 +12289,7 @@
|
|
|
12289
12289
|
background-color: var(--neutral-stroke-rest);
|
|
12290
12290
|
width: calc((var(--track-width) + 2) * 1px) !important;
|
|
12291
12291
|
}
|
|
12292
|
-
`,shadowOptions:H.foundationSliderShadowOptions},H.defaultSliderConfig));class
|
|
12292
|
+
`,shadowOptions:H.foundationSliderShadowOptions},H.defaultSliderConfig));class Lu extends H.SliderLabel{}const Mu=Lu.compose(Object.assign({baseName:"slider-label",template:(e,a)=>(0,H.foundationSliderLabelTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12293
12293
|
${(0,H.foundationSliderLabelStyles)(e,a)}
|
|
12294
12294
|
.label {
|
|
12295
12295
|
padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);
|
|
@@ -12300,7 +12300,7 @@
|
|
|
12300
12300
|
text-align: center;
|
|
12301
12301
|
font-size: var(--type-ramp-minus-1-font-size, 12px);
|
|
12302
12302
|
}
|
|
12303
|
-
`,shadowOptions:H.foundationSliderLabelShadowOptions},H.defaultSliderLabelConfig)),
|
|
12303
|
+
`,shadowOptions:H.foundationSliderLabelShadowOptions},H.defaultSliderLabelConfig)),Iu=b.css`
|
|
12304
12304
|
${H.foundationSnackbarStyles}
|
|
12305
12305
|
.snackbar {
|
|
12306
12306
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);
|
|
@@ -12321,11 +12321,11 @@
|
|
|
12321
12321
|
.action {
|
|
12322
12322
|
gap: calc(var(--design-unit) * 2px);
|
|
12323
12323
|
}
|
|
12324
|
-
`,
|
|
12324
|
+
`,Eu=b.html`
|
|
12325
12325
|
${(0,H.getPrefixedSnackbar)("rapid")}
|
|
12326
|
-
`,
|
|
12326
|
+
`,ju=H.foundationSnackbarShadowOptions;class Pu extends H.Snackbar{}const Bu=Pu.compose({baseName:"snackbar",shadowOptions:ju,styles:Iu,template:Eu});class Gu extends H.StackingIcons{}const _u=Gu.compose({baseName:"stacking-icons",template:H.foundationStackingIconsTemplate,styles:(e,a)=>b.css`
|
|
12327
12327
|
${(0,H.foundationStackingIconsStyles)(e,a)}
|
|
12328
|
-
`}),
|
|
12328
|
+
`}),Uu=b.css`
|
|
12329
12329
|
${H.foundationStepperStyles}
|
|
12330
12330
|
|
|
12331
12331
|
:host {
|
|
@@ -12372,11 +12372,11 @@
|
|
|
12372
12372
|
padding: 0 calc(var(--design-unit) * 2px);
|
|
12373
12373
|
color: var(--neutral-foreground-hint);
|
|
12374
12374
|
}
|
|
12375
|
-
`,
|
|
12375
|
+
`,Hu=b.html`
|
|
12376
12376
|
${(0,H.getPrefixedStepper)("rapid")}
|
|
12377
|
-
`;class
|
|
12377
|
+
`;class Vu extends H.Stepper{}const Yu=Vu.compose(Object.assign({baseName:"stepper",template:Hu,styles:Uu,shadowOptions:H.foundationStepperShadowOptions},H.defaultStepperConfig)),Qu=b.html`
|
|
12378
12378
|
${(0,H.getPrefixedStepperTab)("rapid")}
|
|
12379
|
-
`;class
|
|
12379
|
+
`;class Wu extends H.StepperTab{}const qu=Wu.compose(Object.assign({baseName:"stepper-tab",template:Qu,styles:(e,a)=>b.css`
|
|
12380
12380
|
${(0,H.foundationStepperTabStyles)(e,a)}
|
|
12381
12381
|
|
|
12382
12382
|
rapid-tree-item {
|
|
@@ -12436,7 +12436,7 @@
|
|
|
12436
12436
|
:host([error]) .step-title {
|
|
12437
12437
|
color: var(--error-color);
|
|
12438
12438
|
}
|
|
12439
|
-
`,shadowOptions:H.foundationStepperTabShadowOptions},H.defaultStepperTabConfig));class
|
|
12439
|
+
`,shadowOptions:H.foundationStepperTabShadowOptions},H.defaultStepperTabConfig));class Ju extends H.StepperTabPanel{}const Zu=Ju.compose(Object.assign({baseName:"stepper-tab-panel",template:(e,a)=>(0,H.foundationStepperTabPanelTemplate)(e,a),shadowOptions:H.foundationStepperTabPanelShadowOptions},H.defaultStepperTabPanelConfig)),Ku={switch:'<div class="checked-indicator" part="checked-indicator"></div>'};class Xu extends H.Switch{}const eh=Xu.compose(Object.assign({baseName:"switch",template:(e,a)=>(0,H.foundationSwitchTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12440
12440
|
${(0,H.foundationSwitchStyles)(e,a)}
|
|
12441
12441
|
:host {
|
|
12442
12442
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -12473,7 +12473,7 @@
|
|
|
12473
12473
|
:host([aria-checked='true']:not([disabled])) .switch:active .checked-indicator {
|
|
12474
12474
|
background: var(--accent-fill-rest);
|
|
12475
12475
|
}
|
|
12476
|
-
`,shadowOptions:H.foundationSwitchShadowOptions},
|
|
12476
|
+
`,shadowOptions:H.foundationSwitchShadowOptions},Ku));class ah extends H.Tab{}const rh=ah.compose(Object.assign({baseName:"tab",template:(e,a)=>(0,H.foundationTabTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12477
12477
|
${(0,H.foundationTabStyles)(e,a)}
|
|
12478
12478
|
:host {
|
|
12479
12479
|
background-color: var(--neutral-layer-2);
|
|
@@ -12486,13 +12486,13 @@
|
|
|
12486
12486
|
:host([aria-selected='true']:hover) {
|
|
12487
12487
|
background-color: var(--neutral-layer-4);
|
|
12488
12488
|
}
|
|
12489
|
-
`,shadowOptions:H.foundationTabShadowOptions},H.defaultTabConfig));class
|
|
12489
|
+
`,shadowOptions:H.foundationTabShadowOptions},H.defaultTabConfig));class th extends H.TabPanel{}const oh=th.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,H.foundationTabPanelTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12490
12490
|
${(0,H.foundationTabPanelStyles)(e,a)}
|
|
12491
12491
|
:host {
|
|
12492
12492
|
padding: 0;
|
|
12493
12493
|
background-color: var(--neutral-layer-4);
|
|
12494
12494
|
}
|
|
12495
|
-
`,shadowOptions:H.foundationTabPanelShadowOptions},H.defaultTabPanelConfig));class
|
|
12495
|
+
`,shadowOptions:H.foundationTabPanelShadowOptions},H.defaultTabPanelConfig));class ih extends H.Tabs{}const nh=ih.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,H.foundationTabsTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12496
12496
|
${(0,H.foundationTabsStyles)(e,a)}
|
|
12497
12497
|
:host {
|
|
12498
12498
|
--base-height-multiplier: 9;
|
|
@@ -12567,7 +12567,7 @@
|
|
|
12567
12567
|
:host([orientation='horizontal']) ::slotted([role='tabpanel'][slot='tabpanel']) {
|
|
12568
12568
|
padding: 0 calc((3 + (var(--design-unit) * 2 * var(--density))) * 1px);
|
|
12569
12569
|
}
|
|
12570
|
-
`,shadowOptions:H.foundationTabsShadowOptions},H.defaultTabsConfig));class
|
|
12570
|
+
`,shadowOptions:H.foundationTabsShadowOptions},H.defaultTabsConfig));class lh extends H.TextArea{}const gh=lh.compose(Object.assign({baseName:"text-area",template:(e,a)=>(0,H.foundationTextAreaTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12571
12571
|
${(0,H.foundationTextAreaStyles)(e,a)}
|
|
12572
12572
|
|
|
12573
12573
|
:host .control {
|
|
@@ -12593,7 +12593,7 @@
|
|
|
12593
12593
|
font-weight: 700;
|
|
12594
12594
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
12595
12595
|
}
|
|
12596
|
-
`,shadowOptions:H.foundationTextAreaShadowOptions},H.defaultTextAreaConfig));class
|
|
12596
|
+
`,shadowOptions:H.foundationTextAreaShadowOptions},H.defaultTextAreaConfig));class sh extends H.TextField{}const dh=sh.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,H.foundationTextFieldTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12597
12597
|
${(0,H.foundationTextFieldStyles)(e,a)}
|
|
12598
12598
|
|
|
12599
12599
|
:host {
|
|
@@ -12630,7 +12630,7 @@
|
|
|
12630
12630
|
font-weight: 700;
|
|
12631
12631
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
12632
12632
|
}
|
|
12633
|
-
`,shadowOptions:H.foundationTextFieldShadowOptions},H.defaultTextFieldConfig)),
|
|
12633
|
+
`,shadowOptions:H.foundationTextFieldShadowOptions},H.defaultTextFieldConfig)),ch=b.css`
|
|
12634
12634
|
${H.foundationToastStyles}
|
|
12635
12635
|
.toast {
|
|
12636
12636
|
background-color: ${f.neutralLayer1};
|
|
@@ -12685,7 +12685,7 @@
|
|
|
12685
12685
|
:host([notify='serious']) .toast::after {
|
|
12686
12686
|
background-color: var(--error-color);
|
|
12687
12687
|
}
|
|
12688
|
-
`,
|
|
12688
|
+
`,ph=H.defaultToastConfig,uh=H.foundationToastShadowOptions;class hh extends H.Toast{}const mh=hh.compose(Object.assign({baseName:"toast",shadowOptions:uh,styles:ch,template:H.foundationToastTemplate},ph));class bh extends H.Toolbar{}const vh=bh.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,H.foundationToolbarTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12689
12689
|
${(0,H.foundationToolbarStyles)(e,a)}
|
|
12690
12690
|
:host {
|
|
12691
12691
|
align-items: center;
|
|
@@ -12695,7 +12695,7 @@
|
|
|
12695
12695
|
.positioning-region {
|
|
12696
12696
|
align-items: center;
|
|
12697
12697
|
}
|
|
12698
|
-
`,shadowOptions:H.foundationToolbarShadowOptions},H.defaultToolbarConfig));class
|
|
12698
|
+
`,shadowOptions:H.foundationToolbarShadowOptions},H.defaultToolbarConfig));class fh extends H.Tooltip{}const wh=fh.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,H.foundationTooltipTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12699
12699
|
${(0,H.foundationTooltipStyles)(e,a)}
|
|
12700
12700
|
|
|
12701
12701
|
:host {
|
|
@@ -12718,7 +12718,7 @@
|
|
|
12718
12718
|
alpha-anchored-region.bottom.right .tooltip {
|
|
12719
12719
|
margin-left: 0;
|
|
12720
12720
|
}
|
|
12721
|
-
`,shadowOptions:H.foundationTooltipShadowOptions},H.defaultTooltipConfig));class
|
|
12721
|
+
`,shadowOptions:H.foundationTooltipShadowOptions},H.defaultTooltipConfig));class yh extends H.TreeItem{}const xh={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>'},kh=yh.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,H.foundationTreeItemTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12722
12722
|
${(0,H.foundationTreeItemStyles)(e,a)}
|
|
12723
12723
|
:host {
|
|
12724
12724
|
font-size: var(--type-ramp-base-font-size);
|
|
@@ -12757,11 +12757,11 @@
|
|
|
12757
12757
|
width: calc(var(--design-unit) * 3px);
|
|
12758
12758
|
height: calc(var(--design-unit) * 3px);
|
|
12759
12759
|
}
|
|
12760
|
-
`,shadowOptions:H.foundationTreeItemShadowOptions},
|
|
12760
|
+
`,shadowOptions:H.foundationTreeItemShadowOptions},xh));class zh extends H.TreeView{}const Sh=zh.compose(Object.assign({baseName:"tree-view",template:(e,a)=>(0,H.foundationTreeViewTemplate)(e,a),styles:(e,a)=>b.css`
|
|
12761
12761
|
${(0,H.foundationTreeViewStyles)(e,a)}
|
|
12762
|
-
`,shadowOptions:H.foundationTreeViewShadowOptions},H.defaultTreeViewConfig)),
|
|
12762
|
+
`,shadowOptions:H.foundationTreeViewShadowOptions},H.defaultTreeViewConfig)),Ch=b.html`
|
|
12763
12763
|
${(0,H.getPrefixedUrlInput)("rapid")}
|
|
12764
|
-
`;class
|
|
12764
|
+
`;class $h extends H.UrlInput{}const Ah={designSystemProvider:Cd,rapidAccordion:Ad,rapidAccordionItem:Td,rapidActionsMenu:Dd,rapidAnchor:Pd,rapidAnchoredRegion:Gd,rapidAvatar:Ud,rapidBadge:Vd,rapidBanner:qd,rapidBreadcrumb:Zd,rapidBreadcrumbItem:Xd,rapidButton:ac,rapidCalendar:tc,rapidCard:ic,rapidCategorizedMultiselect:cc,rapidCheckbox:uc,rapidCombobox:mc,rapidConnectionIndicator:vc,rapidDataGrid:()=>(0,H.foundationDataGrid)(),rapidDataGridCell:()=>(0,H.foundationDataGridCell)(),rapidDataGridRow:()=>(0,H.foundationDataGridRow)(),rapidDatePicker:Lc,rapidDialog:Bc,rapidDisclosure:_c,rapidDivider:Hc,rapidDropdownMenu:Yc,rapidErrorBoundary:()=>(0,H.foundationErrorBoundary)(),rapidFileUpload:rp,rapidFilter:ip,rapidFilterBar:gp,rapidFlexLayout:()=>(0,H.foundationFlexLayout)(),rapidFlipper:hp,rapidFlyout:yp,rapidGridLayout:()=>(0,H.foundationGridLayout)(),rapidGridLayoutItem:()=>(0,H.foundationGridLayoutItem)(),rapidHorizontalScroll:Dp,rapidIcon:Mp,rapidListbox:Ep,rapidListboxOption:Pp,rapidMenu:Gp,rapidMenuItem:Hp,rapidModal:Jp,rapidMultiselect:ru,rapidNotificationListener:ou,rapidNumberField:su,rapidProgress:cu,rapidProgressRing:uu,rapidRadio:mu,rapidRadioGroup:vu,rapidSearchBar:xu,rapidSearchBarCombobox:zu,rapidSegmentedControl:Cu,rapidSegmentedItem:Au,rapidSelect:Tu,rapidSkeleton:Du,rapidSlider:Nu,rapidSliderLabel:Mu,rapidSnackbar:Bu,rapidStackingIcons:_u,rapidStepper:Yu,rapidStepperTab:qu,rapidStepperTabPanel:Zu,rapidSwitch:eh,rapidTab:rh,rapidTabPanel:oh,rapidTabs:nh,rapidTextArea:gh,rapidTextField:dh,rapidToast:mh,rapidToolbar:vh,rapidTooltip:wh,rapidTreeItem:kh,rapidTreeView:Sh,rapidUrlInput:$h.compose(Object.assign({baseName:"url-input",template:Ch,styles:(e,a)=>b.css`
|
|
12765
12765
|
${(0,H.foundationUrlInputStyles)(e,a)}
|
|
12766
12766
|
a {
|
|
12767
12767
|
color: var(--accent-fill-rest);
|
|
@@ -12777,7 +12777,7 @@
|
|
|
12777
12777
|
font-size: var(--type-ramp-base-font-size);
|
|
12778
12778
|
top: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) / 2 * 1px);
|
|
12779
12779
|
}
|
|
12780
|
-
`,shadowOptions:H.foundationUrlInputShadowOptions},H.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};class
|
|
12780
|
+
`,shadowOptions:H.foundationUrlInputShadowOptions},H.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};class Oh extends rn{}const Th=Oh.compose({baseName:"date-editor",styles:tn,template:on("rapid")});class Fh extends sn{}const Dh=Fh.compose({baseName:"multiselect-editor",styles:dn,template:cn("rapid")});class Rh extends mn{}const Nh=Rh.compose({baseName:"select-editor",styles:bn,template:vn("rapid")});class Lh extends xn{}const Mh=Lh.compose({baseName:"number-editor",styles:kn,template:zn("rapid")});class Ih extends An{}const Eh=Ih.compose({baseName:"string-editor",styles:On,template:Tn("rapid")});class jh extends Nn{}const Ph=jh.compose({baseName:"editable-renderer",styles:Ln,template:Mn("rapid")});class Bh extends Gn{}const Gh=Bh.compose({baseName:"grid-pro-action-renderer",styles:b.css`
|
|
12781
12781
|
${Un}
|
|
12782
12782
|
.button-padding {
|
|
12783
12783
|
justify-content: center;
|
|
@@ -12799,12 +12799,12 @@
|
|
|
12799
12799
|
`:e.params.actionName}
|
|
12800
12800
|
</rapid-button>
|
|
12801
12801
|
</div>
|
|
12802
|
-
`});class
|
|
12802
|
+
`});class _h extends Wn{}const Uh=_h.compose({baseName:"grid-pro-actions-menu-renderer",template:b.html`
|
|
12803
12803
|
<rapid-actions-menu
|
|
12804
12804
|
name="${e=>e.params.headerName}"
|
|
12805
12805
|
:definition=${e=>e.params}
|
|
12806
12806
|
></rapid-actions-menu>
|
|
12807
|
-
`});class
|
|
12807
|
+
`});class Hh extends Kn{}const Vh=Hh.compose({baseName:"boolean-renderer",styles:Xn,template:el("rapid")});const Yh=class extends dl{}.compose({baseName:"grid-text-renderer",styles:cl,template:pl("rapid")});const Qh=class extends ml{}.compose({baseName:"select-renderer",styles:bl,template:vl("rapid")}),Wh={foregroundSwatch:f.SwatchRGB.from((0,De.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:f.SwatchRGB.from((0,De.parseColorHexRGB)("#879ba6")),backgroundSwatch:f.SwatchRGB.from((0,De.parseColorHexRGB)("#1f2126")),borderSwatch:f.SwatchRGB.from((0,De.parseColorHexRGB)("#2e3339")),rowHoverSwatch:f.SwatchRGB.from((0,De.parseColorHexRGB)("#2b2e34"))},qh={foregroundSwatch:f.SwatchRGB.from((0,De.parseColorHexRGB)("#000000")),headerForegroundSwatch:f.SwatchRGB.from((0,De.parseColorHexRGB)("#181d1f")),backgroundSwatch:f.SwatchRGB.from((0,De.parseColorHexRGB)("#FFFFFF")),borderSwatch:f.SwatchRGB.from((0,De.parseColorHexRGB)("#babfc7")),rowHoverSwatch:f.SwatchRGB.from((0,De.parseColorHexRGB)("#2196f3"))},{create:Jh}=v.DesignToken,Zh={backgroundColor:Jh("rapid-ag-background-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?qh.backgroundSwatch:Wh.backgroundSwatch)),borderColor:Jh("rapid-ag-border-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?qh.borderSwatch:Wh.borderSwatch)),foregroundColor:Jh("rapid-ag-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?qh.foregroundSwatch:Wh.foregroundSwatch)),headerForegroundColor:Jh("rapid-ag-header-foreground-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?qh.headerForegroundSwatch:Wh.headerForegroundSwatch)),rowHoverColor:Jh("rapid-ag-row-hover-color").withDefault((e=>f.baseLayerLuminance.getValueFor(e)===f.StandardLuminance.LightMode?qh.rowHoverSwatch:Wh.rowHoverSwatch))},Kh=b.css`
|
|
12808
12808
|
.ag-theme-genesis-rapid,
|
|
12809
12809
|
.ag-theme-genesis-rapid-dark {
|
|
12810
12810
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -13265,76 +13265,76 @@
|
|
|
13265
13265
|
.ag-theme-genesis-rapid-dark {
|
|
13266
13266
|
color-scheme: dark;
|
|
13267
13267
|
}
|
|
13268
|
-
`,
|
|
13269
|
-
${
|
|
13270
|
-
${qi(
|
|
13268
|
+
`,Xh={[Gi.backgroundColor]:Zh.backgroundColor,[Gi.foregroundColor]:Zh.foregroundColor,[Gi.oddRowBackgroundColor]:Zh.backgroundColor,[Gi.headerBackgroundColor]:Zh.backgroundColor,[Gi.headerForegroundColor]:Zh.headerForegroundColor,[Gi.selectedRowBackgroundColor]:Zh.rowHoverColor,[Gi.rowHoverColor]:Zh.rowHoverColor,[Gi.borderColor]:Zh.borderColor,[Gi.rowBorderColor]:Zh.rowHoverColor,[Gi.modalOverlayBackgroundColor]:Zh.backgroundColor,[Gi.inputFocusBoxShadow]:Zh.headerForegroundColor,[Gi.inputFocusBorderColor]:Zh.headerForegroundColor,[Gi.headerColumnResizeHandleColor]:Zh.headerForegroundColor},em="ag-theme-genesis-rapid",am=b.css`
|
|
13269
|
+
${Kh}
|
|
13270
|
+
${qi(em,Xh)}
|
|
13271
13271
|
|
|
13272
|
-
.${
|
|
13272
|
+
.${em} {
|
|
13273
13273
|
${Ze()}
|
|
13274
13274
|
font-family: var(--body-font);
|
|
13275
13275
|
}
|
|
13276
13276
|
|
|
13277
|
-
.${
|
|
13278
|
-
.${
|
|
13279
|
-
.${
|
|
13277
|
+
.${em} .ag-body .ag-body-viewport,
|
|
13278
|
+
.${em} .ag-header,
|
|
13279
|
+
.${em} .ag-row {
|
|
13280
13280
|
background-color: var(--neutral-layer-4);
|
|
13281
13281
|
}
|
|
13282
13282
|
|
|
13283
|
-
.${
|
|
13283
|
+
.${em} .ag-header {
|
|
13284
13284
|
border-bottom-color: var(--neutral-stroke-rest);
|
|
13285
13285
|
font-weight: bold;
|
|
13286
13286
|
font-size: var(--type-ramp-base-font-size);
|
|
13287
13287
|
}
|
|
13288
13288
|
|
|
13289
|
-
.${
|
|
13289
|
+
.${em} .ag-root-wrapper {
|
|
13290
13290
|
border-radius: calc(var(--ag-border-radius) * 1px);
|
|
13291
13291
|
border: 1px solid var(--rapid-ag-border-color);
|
|
13292
13292
|
}
|
|
13293
13293
|
|
|
13294
|
-
.${
|
|
13294
|
+
.${em} .ag-cell {
|
|
13295
13295
|
font-size: var(--type-ramp-minus-1-font-size);
|
|
13296
13296
|
}
|
|
13297
|
-
`,
|
|
13298
|
-
${
|
|
13299
|
-
${qi(
|
|
13297
|
+
`,rm="ag-theme-genesis-rapid-dark",tm=b.css`
|
|
13298
|
+
${Kh}
|
|
13299
|
+
${qi(em,Xh)}
|
|
13300
13300
|
|
|
13301
|
-
.${
|
|
13301
|
+
.${rm} {
|
|
13302
13302
|
${Ze()}
|
|
13303
13303
|
font-family: var(--body-font);
|
|
13304
13304
|
}
|
|
13305
13305
|
|
|
13306
|
-
.${
|
|
13307
|
-
.${
|
|
13308
|
-
.${
|
|
13306
|
+
.${rm} .ag-body .ag-body-viewport,
|
|
13307
|
+
.${rm} .ag-header,
|
|
13308
|
+
.${rm} .ag-row {
|
|
13309
13309
|
background-color: var(--neutral-layer-4);
|
|
13310
13310
|
}
|
|
13311
13311
|
|
|
13312
|
-
.${
|
|
13312
|
+
.${rm} .ag-header {
|
|
13313
13313
|
border-bottom-color: var(--neutral-stroke-rest);
|
|
13314
13314
|
font-weight: bold;
|
|
13315
13315
|
font-size: var(--type-ramp-base-font-size);
|
|
13316
13316
|
}
|
|
13317
13317
|
|
|
13318
|
-
.${
|
|
13318
|
+
.${rm} .ag-root-wrapper {
|
|
13319
13319
|
border-radius: calc(var(--ag-border-radius) * 1px);
|
|
13320
13320
|
border: 1px solid var(--rapid-ag-border-color);
|
|
13321
13321
|
}
|
|
13322
13322
|
|
|
13323
|
-
.${
|
|
13323
|
+
.${rm} .ag-cell {
|
|
13324
13324
|
font-size: var(--type-ramp-minus-1-font-size);
|
|
13325
13325
|
}
|
|
13326
|
-
`,
|
|
13326
|
+
`,om=b.css`
|
|
13327
13327
|
/* All the AG themes */
|
|
13328
13328
|
${Sg}
|
|
13329
13329
|
|
|
13330
13330
|
/* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
|
|
13331
|
-
${Xh}
|
|
13332
13331
|
${am}
|
|
13332
|
+
${tm}
|
|
13333
13333
|
|
|
13334
13334
|
.error {
|
|
13335
13335
|
border-color: ${Fe.shortPink} !important;
|
|
13336
13336
|
}
|
|
13337
|
-
`,
|
|
13337
|
+
`,im=Cg("rapid"),nm="ag-theme-genesis-rapid-dark";const lm=Ng,gm=Lg,sm={rapidAgEditableRenderer:Ph,rapidAgActionRenderer:Gh,rapidAgActionsMenuRenderer:Uh,rapidAgBooleanRenderer:Vh,rapidAgTextRenderer:Yh,rapidAgSelectRenderer:Qh,rapidAgDateEditor:Th,rapidAgMultiselectEditor:Dh,rapidAgSelectEditor:Nh,rapidAgNumberEditor:Mh,rapidAgStringEditor:Eh,rapidGridPro:class extends Rg{constructor(){super(...arguments),this.theme=nm}themeChanged(e,a){(e||a===nm)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[Ji.action]:Bh,[Ji.actionsMenu]:_h,[Ji.boolean]:Hh,[Ji.editable]:jh,[Ji.selectEditor]:Rh,[Ji.numberEditor]:Lh,[Ji.multiselectEditor]:Fh,[Ji.dateEditor]:Oh,[Ji.stringEditor]:Ih};(this.theme===em||this.theme===rm)&&(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:im,styles:om,shadowOptions:lm},gm)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var dm,cm=r(91510);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(dm||(dm={}));const pm={Roboto:Je,"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'},um=pm["Segoe UI"],hm=b.css`
|
|
13338
13338
|
${(0,v.display)("block")} :host {
|
|
13339
13339
|
width: 100%;
|
|
13340
13340
|
display: inline-flex;
|
|
@@ -13466,7 +13466,7 @@
|
|
|
13466
13466
|
alpha-button {
|
|
13467
13467
|
margin: 0;
|
|
13468
13468
|
}
|
|
13469
|
-
`,
|
|
13469
|
+
`,mm=b.html`
|
|
13470
13470
|
<template>
|
|
13471
13471
|
<div class="configuration">
|
|
13472
13472
|
${(0,b.when)((e=>!e.customDesignMode),b.html`
|
|
@@ -13689,7 +13689,7 @@
|
|
|
13689
13689
|
<slot></slot>
|
|
13690
13690
|
</div>
|
|
13691
13691
|
</template>
|
|
13692
|
-
`,
|
|
13692
|
+
`,bm=({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(pm).find((a=>pm[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),vm=bm(aa),fm={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient",text:"lightweight"},wm={accent:"primary",neutral:"secondary",font:"white"},ym=bm(l.designTokens),xm=bm(zd),km={zero:{prefix:"zero",tokenDefaults:vm,buttons:fm,badge:wm},alpha:{prefix:"alpha",tokenDefaults:ym,buttons:{accent:"accent",neutral:"neutral",outline:"outline",text:"lightweight"},badge:{accent:"primary",neutral:"neutral",font:"white"}},rapid:{prefix:"rapid",tokenDefaults:xm,buttons:{accent:"primary",neutral:"neutral",outline:"primary-outline",text:"link"},badge:{accent:"primary",neutral:"neutral",font:"text"}},custom:{prefix:"zero",tokenDefaults:null,buttons:fm,badge:wm}};let zm=class extends b.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=vm.luminance===f.StandardLuminance.DarkMode,this.luminance=vm.luminance,this.neutralColor=vm.neutralColor,this.accentColor=vm.accentColor,this.bodyFont=vm.bodyFont,this.density=vm.density,this.borderRadius=vm.borderRadius,this.strokeWidth=vm.strokeWidth,this.designUnit=vm.designUnit,this.baseFontSize=vm.baseFontSize,this.baseLineHeight=vm.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=bm(a);km.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,cm.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(km[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,cm.__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],km.custom.prefix=a,km.custom.buttons=km[a].buttons,km.custom.badge=km[a].badge,this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:km[this.ds].prefix,buttonAppearanceAccent:km[this.ds].buttons.accent,buttonAppearanceNeutral:km[this.ds].buttons.neutral,buttonAppearanceOutline:km[this.ds].buttons.outline,buttonAppearanceText:km[this.ds].buttons.text,badgeAppearanceAccent:km[this.ds].badge.accent,badgeAppearanceNeutral:km[this.ds].badge.neutral,badgeText:km[this.ds].badge.font};this.$emit(dm.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(km[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:pm[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(dm.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={},qe(),b.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(dm.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,cm.__decorate)([(0,b.attr)({mode:"boolean",attribute:"custom-design-mode"})],zm.prototype,"customDesignMode",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"designSystems",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"ds",void 0),(0,cm.__decorate)([b.attr],zm.prototype,"darkMode",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"neutralColor",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"accentColor",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"bodyFont",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"density",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"borderRadius",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"strokeWidth",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"designUnit",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"baseFontSize",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"baseLineHeight",void 0),(0,cm.__decorate)([b.observable],zm.prototype,"preserveOptions",void 0),zm=(0,cm.__decorate)([(0,b.customElement)({name:"design-system-editor",template:mm,styles:hm})],zm);const Sm=(0,k.createLogger)("documentation-components"),Cm=e=>{const a=(e=>{const a=(0,De.parseColorHexRGB)(e);return a?f.SwatchRGB.from(a):null})(e);return a?f.PaletteRGB.create(a):null},$m=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},Am=(e,a)=>{const r=Cm(e.neutralColor);f.neutralPalette.setValueFor(a,r);const t=Cm(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,$m(f.typeRampBaseFontSize,We.Du.minusOne,a)),f.typeRampMinus1LineHeight.setValueFor(a,$m(f.typeRampBaseLineHeight,We.Du.minusOne,a)),f.typeRampMinus2FontSize.setValueFor(a,$m(f.typeRampBaseFontSize,We.Du.minusTwo,a)),f.typeRampMinus2LineHeight.setValueFor(a,$m(f.typeRampBaseLineHeight,We.Du.minusTwo,a)),f.typeRampPlus1FontSize.setValueFor(a,$m(f.typeRampBaseFontSize,We.Du.plusOne,a)),f.typeRampPlus1LineHeight.setValueFor(a,$m(f.typeRampBaseLineHeight,We.Du.plusOne,a)),f.typeRampPlus2FontSize.setValueFor(a,$m(f.typeRampBaseFontSize,We.Du.plusTwo,a)),f.typeRampPlus2LineHeight.setValueFor(a,$m(f.typeRampBaseLineHeight,We.Du.plusTwo,a)),f.typeRampPlus3FontSize.setValueFor(a,$m(f.typeRampBaseFontSize,We.Du.plusThree,a)),f.typeRampPlus3LineHeight.setValueFor(a,$m(f.typeRampBaseLineHeight,We.Du.plusThree,a)),f.typeRampPlus4FontSize.setValueFor(a,$m(f.typeRampBaseFontSize,We.Du.plusFour,a)),f.typeRampPlus4LineHeight.setValueFor(a,$m(f.typeRampBaseLineHeight,We.Du.plusFour,a)),f.typeRampPlus5FontSize.setValueFor(a,$m(f.typeRampBaseFontSize,We.Du.plusFive,a)),f.typeRampPlus5LineHeight.setValueFor(a,$m(f.typeRampBaseLineHeight,We.Du.plusFive,a)),f.typeRampPlus6FontSize.setValueFor(a,$m(f.typeRampBaseFontSize,We.Du.plusSix,a)),f.typeRampPlus6LineHeight.setValueFor(a,$m(f.typeRampBaseLineHeight,We.Du.plusSix,a))},Om=b.css`
|
|
13693
13693
|
:host {
|
|
13694
13694
|
--badge-fill-primary: var(--accent-fill-rest);
|
|
13695
13695
|
--badge-fill-neutral: var(--neutral-fill-rest);
|
|
@@ -13785,7 +13785,7 @@
|
|
|
13785
13785
|
display: flex;
|
|
13786
13786
|
flex-direction: column;
|
|
13787
13787
|
}
|
|
13788
|
-
`,
|
|
13788
|
+
`,Tm=b.html`
|
|
13789
13789
|
${e=>(e=>b.html`
|
|
13790
13790
|
<template>
|
|
13791
13791
|
<${e}-design-system-provider ${(0,b.ref)("provider")}>
|
|
@@ -14200,7 +14200,7 @@
|
|
|
14200
14200
|
</${e}-design-system-provider>
|
|
14201
14201
|
</template>
|
|
14202
14202
|
`)(e.prefix)}
|
|
14203
|
-
`;let
|
|
14203
|
+
`;let Fm=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=>Sm.debug("VIEWW!!!",e)},{name:"Delete",callback:e=>Sm.debug("DELETE!!!",e)},{name:"Edit",callback:e=>Sm.debug("EDIT!!!",e)},{name:"Wait",callback:e=>Sm.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(dm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(dm.DS_CHANGED,(e=>{this.handleDSChanges(e)})),b.DOM.queueUpdate((()=>{f.bodyFont.withDefault(um)}))}handleStyleChanges(e){const a=e.detail;a&&b.DOM.queueUpdate((()=>{Am(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,cm.__decorate)([b.observable],Fm.prototype,"modal",void 0),(0,cm.__decorate)([b.attr],Fm.prototype,"prefix",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"buttonAppearanceAccent",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"buttonAppearanceNeutral",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"buttonAppearanceOutline",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"buttonAppearanceText",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"badgeAppearanceAccent",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"badgeAppearanceNeutral",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"badgeText",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"cards",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"countries",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"menuActions",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"menuDefinition",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"dropDownMenuItems",void 0),(0,cm.__decorate)([b.observable],Fm.prototype,"provider",void 0),Fm=(0,cm.__decorate)([(0,b.customElement)({name:"preview-components",template:Tm,styles:Om})],Fm);const Dm=b.css`
|
|
14204
14204
|
.export {
|
|
14205
14205
|
display: flex;
|
|
14206
14206
|
justify-content: center;
|
|
@@ -14211,7 +14211,7 @@
|
|
|
14211
14211
|
display: flex;
|
|
14212
14212
|
justify-content: space-between;
|
|
14213
14213
|
}
|
|
14214
|
-
`,
|
|
14214
|
+
`,Rm=b.html`
|
|
14215
14215
|
<template>
|
|
14216
14216
|
<div class="export">
|
|
14217
14217
|
<alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
|
|
@@ -14232,7 +14232,7 @@
|
|
|
14232
14232
|
</alpha-modal>
|
|
14233
14233
|
</div>
|
|
14234
14234
|
</template>
|
|
14235
|
-
`;let
|
|
14235
|
+
`;let Nm=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=>{Sm.log("Tokens saved successfully:",e),this.$emit(dm.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{Sm.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(dm.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,cm.__decorate)([b.attr],Nm.prototype,"value",void 0),(0,cm.__decorate)([b.attr],Nm.prototype,"tokensPath",void 0),Nm=(0,cm.__decorate)([(0,b.customElement)({name:"design-system-export",template:Rm,styles:Dm})],Nm);const Lm=b.css`
|
|
14236
14236
|
.colors {
|
|
14237
14237
|
display: flex;
|
|
14238
14238
|
flex-wrap: wrap;
|
|
@@ -14245,23 +14245,23 @@
|
|
|
14245
14245
|
flex-grow: 1;
|
|
14246
14246
|
height: 20px;
|
|
14247
14247
|
}
|
|
14248
|
-
`,
|
|
14248
|
+
`,Mm=b.html`
|
|
14249
14249
|
<ul class="colors">
|
|
14250
14250
|
${(0,b.repeat)((e=>e.swatches),b.html`
|
|
14251
14251
|
<li class="color" style="background-color: ${e=>e.toColorString()}"></li>
|
|
14252
14252
|
`)}
|
|
14253
14253
|
</ul>
|
|
14254
|
-
`;let
|
|
14254
|
+
`;let Im=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=Cm(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(dm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,cm.__decorate)([b.observable],Im.prototype,"swatches",void 0),(0,cm.__decorate)([b.attr],Im.prototype,"type",void 0),Im=(0,cm.__decorate)([(0,b.customElement)({name:"color-palette",styles:Lm,template:Mm})],Im);const Em=b.css`
|
|
14255
14255
|
.preview {
|
|
14256
14256
|
width: 40px;
|
|
14257
14257
|
height: 40px;
|
|
14258
14258
|
}
|
|
14259
|
-
`,
|
|
14259
|
+
`,jm=b.html`
|
|
14260
14260
|
<div
|
|
14261
14261
|
class="preview"
|
|
14262
14262
|
style="background-color: ${e=>f[e.tokenName].createCSS()}"
|
|
14263
14263
|
></div>
|
|
14264
|
-
`;let
|
|
14264
|
+
`;let Pm=class extends b.FASTElement{};(0,cm.__decorate)([b.attr],Pm.prototype,"tokenName",void 0),Pm=(0,cm.__decorate)([(0,b.customElement)({name:"color-token",styles:Em,template:jm})],Pm);const Bm=b.css`
|
|
14265
14265
|
.container {
|
|
14266
14266
|
display: flex;
|
|
14267
14267
|
width: 100%;
|
|
@@ -14309,7 +14309,7 @@
|
|
|
14309
14309
|
.container > div:not(:last-child) {
|
|
14310
14310
|
border-right: 1px solid #fafafa;
|
|
14311
14311
|
}
|
|
14312
|
-
`,
|
|
14312
|
+
`,Gm=[{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"}]}]}],_m=b.html`
|
|
14313
14313
|
<div class="row">
|
|
14314
14314
|
<div
|
|
14315
14315
|
class="preview"
|
|
@@ -14321,19 +14321,19 @@
|
|
|
14321
14321
|
${(e,a)=>f[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
|
|
14322
14322
|
</div>
|
|
14323
14323
|
</div>
|
|
14324
|
-
`,
|
|
14324
|
+
`,Um=b.html`
|
|
14325
14325
|
<div class="container" ${(0,b.ref)("provider")}>
|
|
14326
|
-
${(0,b.repeat)((()=>
|
|
14326
|
+
${(0,b.repeat)((()=>Gm),b.html`
|
|
14327
14327
|
<div class="column">
|
|
14328
14328
|
<h3 class="header-title">${e=>e.title}</h3>
|
|
14329
14329
|
${(0,b.repeat)((e=>e.subcategories),b.html`
|
|
14330
14330
|
<h4>${e=>e.title}</h4>
|
|
14331
|
-
${(0,b.repeat)((e=>e.tokens),
|
|
14331
|
+
${(0,b.repeat)((e=>e.tokens),_m)}
|
|
14332
14332
|
`)}
|
|
14333
14333
|
</div>
|
|
14334
14334
|
`)}
|
|
14335
14335
|
</div>
|
|
14336
|
-
`;let
|
|
14336
|
+
`;let Hm=class extends b.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(dm.STYLES_CHANGED,(e=>{const a=e.detail;Am(a,this.provider)}))}};(0,cm.__decorate)([b.observable],Hm.prototype,"provider",void 0),Hm=(0,cm.__decorate)([(0,b.customElement)({name:"color-tokens",template:Um,styles:Bm})],Hm);const Vm=b.css`
|
|
14337
14337
|
table {
|
|
14338
14338
|
background: var(--neutral-fill-rest);
|
|
14339
14339
|
color: var(--neutral-foreground-rest);
|
|
@@ -14342,7 +14342,7 @@
|
|
|
14342
14342
|
th {
|
|
14343
14343
|
text-align: left;
|
|
14344
14344
|
}
|
|
14345
|
-
`,
|
|
14345
|
+
`,Ym=b.html`
|
|
14346
14346
|
<table ${(0,b.ref)("provider")} style="font-family: ${()=>f.bodyFont.createCSS()}">
|
|
14347
14347
|
<colgroup>
|
|
14348
14348
|
<col style="width: 15%;" />
|
|
@@ -14570,7 +14570,7 @@
|
|
|
14570
14570
|
</tr>
|
|
14571
14571
|
</tbody>
|
|
14572
14572
|
</table>
|
|
14573
|
-
`;let
|
|
14573
|
+
`;let Qm=class extends b.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(dm.STYLES_CHANGED,(e=>{const a=e.detail;Am(a,this.provider)}))}};(0,cm.__decorate)([b.observable],Qm.prototype,"provider",void 0),Qm=(0,cm.__decorate)([(0,b.customElement)({name:"typography-tokens",template:Ym,styles:Vm})],Qm);const Wm=b.css`
|
|
14574
14574
|
:host {
|
|
14575
14575
|
background: var(--fill-color);
|
|
14576
14576
|
color: var(--neutral-foreground-rest);
|
|
@@ -14586,7 +14586,7 @@
|
|
|
14586
14586
|
margin-top: 24px;
|
|
14587
14587
|
padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
|
|
14588
14588
|
}
|
|
14589
|
-
`,
|
|
14589
|
+
`,qm=b.html`
|
|
14590
14590
|
<template>
|
|
14591
14591
|
<alpha-tabs>
|
|
14592
14592
|
<alpha-tab slot="tab">Components</alpha-tab>
|
|
@@ -14615,7 +14615,7 @@
|
|
|
14615
14615
|
</alpha-tab-panel>
|
|
14616
14616
|
</alpha-tabs>
|
|
14617
14617
|
</template>
|
|
14618
|
-
`;let
|
|
14618
|
+
`;let Jm=class extends b.FASTElement{};Jm=(0,cm.__decorate)([(0,b.customElement)({name:"design-system-preview",template:qm,styles:Wm})],Jm);const Zm={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"}]}]}}]},Km={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"]}}},Xm={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"}]}}}]},eb={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"]}}}},ab=b.css`
|
|
14619
14619
|
:host {
|
|
14620
14620
|
background: var(--fill-color);
|
|
14621
14621
|
color: var(--neutral-foreground-rest);
|
|
@@ -14646,7 +14646,7 @@
|
|
|
14646
14646
|
zero-design-system-provider {
|
|
14647
14647
|
display: inline;
|
|
14648
14648
|
}
|
|
14649
|
-
`,
|
|
14649
|
+
`,rb=b.html`
|
|
14650
14650
|
${e=>(e=>b.html`
|
|
14651
14651
|
<template>
|
|
14652
14652
|
<${e}-design-system-provider ${(0,b.ref)("provider")}>
|
|
@@ -14670,7 +14670,7 @@
|
|
|
14670
14670
|
</${e}-design-system-provider>
|
|
14671
14671
|
</template>
|
|
14672
14672
|
`)(e.prefix)}
|
|
14673
|
-
`;let
|
|
14673
|
+
`;let tb=class extends b.FASTElement{constructor(){super(...arguments),this.jsonSchema=Km,this.uischema=Zm,this.jsonSchemaArray=eb,this.uiSchemaArray=Xm,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(dm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(dm.DS_CHANGED,(e=>{this.handleDSChanges(e)})),b.DOM.queueUpdate((()=>{f.bodyFont.withDefault(um)}))}handleStyleChanges(e){const a=e.detail;a&&b.DOM.queueUpdate((()=>{Am(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix}};(0,cm.__decorate)([b.observable],tb.prototype,"jsonSchema",void 0),(0,cm.__decorate)([b.observable],tb.prototype,"uischema",void 0),(0,cm.__decorate)([b.observable],tb.prototype,"jsonSchemaArray",void 0),(0,cm.__decorate)([b.observable],tb.prototype,"uiSchemaArray",void 0),(0,cm.__decorate)([b.attr],tb.prototype,"prefix",void 0),(0,cm.__decorate)([b.observable],tb.prototype,"provider",void 0),(0,cm.__decorate)([b.observable],tb.prototype,"editedEntity",void 0),(0,cm.__decorate)([b.observable],tb.prototype,"editedEntityArray",void 0),tb=(0,cm.__decorate)([(0,b.customElement)({name:"preview-form",template:rb,styles:ab})],tb);const ob=[{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}],ib=b.css`
|
|
14674
14674
|
:host {
|
|
14675
14675
|
background: var(--fill-color);
|
|
14676
14676
|
color: var(--neutral-foreground-rest);
|
|
@@ -14685,7 +14685,7 @@
|
|
|
14685
14685
|
.grid-height {
|
|
14686
14686
|
height: 100%;
|
|
14687
14687
|
}
|
|
14688
|
-
`,
|
|
14688
|
+
`,nb=b.html`
|
|
14689
14689
|
${e=>(e=>b.html`
|
|
14690
14690
|
<template>
|
|
14691
14691
|
<${e}-design-system-provider ${(0,b.ref)("provider")}>
|
|
@@ -14714,5 +14714,5 @@
|
|
|
14714
14714
|
</${e}-design-system-provider>
|
|
14715
14715
|
</template>
|
|
14716
14716
|
`)(e.prefix)}
|
|
14717
|
-
`;let
|
|
14718
|
-
//# sourceMappingURL=
|
|
14717
|
+
`;let lb=class extends b.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[...ob],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:Ji.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:Ji.actionsMenu,cellRendererParams:{actions:e,buttonAppearance:o,isVertical:t,buttonText:r},cellStyle:{border:"none",overflow:"visible"},field:`${Qn(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:Ji.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(dm.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(dm.DS_CHANGED,(e=>{this.handleDSChanges(e)})),b.DOM.queueUpdate((()=>{this.setGridOptions(),f.bodyFont.withDefault(um)}))}handleStyleChanges(e){const a=e.detail;a&&b.DOM.queueUpdate((()=>{Am(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,b.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,cm.__decorate)([b.observable],lb.prototype,"grid",void 0),(0,cm.__decorate)([b.attr],lb.prototype,"prefix",void 0),(0,cm.__decorate)([b.observable],lb.prototype,"provider",void 0),(0,cm.__decorate)([b.observable],lb.prototype,"rowData",void 0),(0,cm.__decorate)([b.observable],lb.prototype,"columnDefs",void 0),(0,cm.__decorate)([b.observable],lb.prototype,"gridOptions",void 0),lb=(0,cm.__decorate)([(0,b.customElement)({name:"preview-grid",template:nb,styles:ib})],lb),((e,a="zero")=>{e&&(0,H.provideTokens)(t,o,e);const r=v.DesignSystem.getOrCreate(e).withPrefix(a);return(0,H.createDesignSystemProxy)(r)})().register(Bi,Zg),(0,l.provideDesignSystem)().register(l.baseComponents,Kg),((e,a="rapid")=>{e&&(0,H.provideTokens)(i,n,e);const r=v.DesignSystem.getOrCreate(e).withPrefix(a);return(0,H.createDesignSystemProxy)(r)})().register(Ah,sm)}}]);
|
|
14718
|
+
//# sourceMappingURL=206.e44ebdeb8a8e2a6616d4fb23577c629f.js.map
|