@genesislcap/design-system-configurator 14.127.4 → 14.127.6
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/{200.200.7bef7eec594555eba0ff.js → 200.200.dc980576709d738f6427.js} +1 -1
- package/dist/{269.269.f7c27c74c2689341da49.js → 269.269.a7167d8be5e4bfeca07c.js} +1 -1
- package/dist/{645.645.7e089ab92c60d439c9f4.js → 645.645.b3c344ea5810dc8434fc.js} +1 -1
- package/dist/{755.755.658417186af711d139bc.js → 755.755.d5e88e0da22374bbd806.js} +1 -1
- package/dist/{8.04aa0e4161bb30c09a97d4df9fe2ca1b.js.map → 8.17fb5c725550f75ede773e6c9c1c4e98.js.map} +1 -1
- package/dist/{8.8.d12174815357add98d4a.js → 8.8.2ad44c6a351973c49c7e.js} +2 -2
- package/dist/92.50fb31298d6b1b795250c67d6266708d.js.map +1 -0
- package/dist/{92.92.384528c541b150a2a46b.js → 92.92.ca44ca2aa185e89c8b93.js} +54 -46
- package/dist/{designSystemConfigurator.a3473b83171d2d24dccf52db9704e8e9.js.map → designSystemConfigurator.2b6ee1c42ef43c881299347228209bc8.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.8e55a55e374c38403ddbc83882a52b09.js.map → main.226526d4e4ebed0bf0916b05cae48f8b.js.map} +1 -1
- package/dist/{main.3e295baea3f6d8f3824c.js → main.dcb3da760b5444c9efd2.js} +2 -2
- package/dist/remoteEntry.js +2 -2
- package/package.json +7 -7
- package/dist/92.fa65dd0a6b309536e19bc0c7d8234778.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[92],{18092:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>ju,ColorToken:()=>Bu,ColorTokens:()=>Vu,DesignSystemEditor:()=>Cu,DesignSystemExport:()=>Lu,DesignSystemPreview:()=>Zu,EventName:()=>pu,PreviewComponents:()=>Du,PreviewForm:()=>oh,PreviewGrid:()=>lh,TypographyTokens:()=>Wu,defaultBodyFont:()=>mu,fontFamilies:()=>hu});var t={};r.r(t),r.d(t,{accentFillActive:()=>u.accentFillActive,accentFillActiveDelta:()=>u.accentFillActiveDelta,accentFillFocus:()=>u.accentFillFocus,accentFillFocusDelta:()=>u.accentFillFocusDelta,accentFillHover:()=>u.accentFillHover,accentFillHoverDelta:()=>u.accentFillHoverDelta,accentFillRest:()=>u.accentFillRest,accentFillRestDelta:()=>u.accentFillRestDelta,accentForegroundActive:()=>u.accentForegroundActive,accentForegroundActiveDelta:()=>u.accentForegroundActiveDelta,accentForegroundFocus:()=>u.accentForegroundFocus,accentForegroundFocusDelta:()=>u.accentForegroundFocusDelta,accentForegroundHover:()=>u.accentForegroundHover,accentForegroundHoverDelta:()=>u.accentForegroundHoverDelta,accentForegroundRest:()=>u.accentForegroundRest,accentForegroundRestDelta:()=>u.accentForegroundRestDelta,accentPalette:()=>u.accentPalette,baseHeightMultiplier:()=>u.baseHeightMultiplier,baseLayerLuminance:()=>u.baseLayerLuminance,bodyFont:()=>u.bodyFont,controlCornerRadius:()=>u.controlCornerRadius,density:()=>u.density,designUnit:()=>u.designUnit,direction:()=>u.direction,disabledOpacity:()=>u.disabledOpacity,fillColor:()=>u.fillColor,focusStrokeInner:()=>u.focusStrokeInner,focusStrokeOuter:()=>u.focusStrokeOuter,focusStrokeWidth:()=>u.focusStrokeWidth,foregroundOnAccentActive:()=>u.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>u.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>u.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>u.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>u.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>u.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>u.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>u.foregroundOnAccentRestLarge,neutralFillActive:()=>u.neutralFillActive,neutralFillActiveDelta:()=>u.neutralFillActiveDelta,neutralFillFocus:()=>u.neutralFillFocus,neutralFillFocusDelta:()=>u.neutralFillFocusDelta,neutralFillHover:()=>u.neutralFillHover,neutralFillHoverDelta:()=>u.neutralFillHoverDelta,neutralFillInputActive:()=>u.neutralFillInputActive,neutralFillInputActiveDelta:()=>u.neutralFillInputActiveDelta,neutralFillInputFocus:()=>u.neutralFillInputFocus,neutralFillInputFocusDelta:()=>u.neutralFillInputFocusDelta,neutralFillInputHover:()=>u.neutralFillInputHover,neutralFillInputHoverDelta:()=>u.neutralFillInputHoverDelta,neutralFillInputRest:()=>u.neutralFillInputRest,neutralFillInputRestDelta:()=>u.neutralFillInputRestDelta,neutralFillLayerRest:()=>u.neutralFillLayerRest,neutralFillLayerRestDelta:()=>u.neutralFillLayerRestDelta,neutralFillRest:()=>u.neutralFillRest,neutralFillRestDelta:()=>u.neutralFillRestDelta,neutralFillStealthActive:()=>u.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>u.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>u.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>u.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>u.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>u.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>u.neutralFillStealthRest,neutralFillStealthRestDelta:()=>u.neutralFillStealthRestDelta,neutralFillStrongActive:()=>u.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>u.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>u.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>u.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>u.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>u.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>u.neutralFillStrongRest,neutralFillStrongRestDelta:()=>u.neutralFillStrongRestDelta,neutralForegroundHint:()=>u.neutralForegroundHint,neutralForegroundRest:()=>u.neutralForegroundRest,neutralLayer1:()=>u.neutralLayer1,neutralLayer2:()=>u.neutralLayer2,neutralLayer3:()=>u.neutralLayer3,neutralLayer4:()=>u.neutralLayer4,neutralLayerCardContainer:()=>u.neutralLayerCardContainer,neutralLayerFloating:()=>u.neutralLayerFloating,neutralPalette:()=>u.neutralPalette,neutralStrokeActive:()=>u.neutralStrokeActive,neutralStrokeActiveDelta:()=>u.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>u.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>u.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>u.neutralStrokeFocus,neutralStrokeFocusDelta:()=>u.neutralStrokeFocusDelta,neutralStrokeHover:()=>u.neutralStrokeHover,neutralStrokeHoverDelta:()=>u.neutralStrokeHoverDelta,neutralStrokeRest:()=>u.neutralStrokeRest,neutralStrokeRestDelta:()=>u.neutralStrokeRestDelta,strokeWidth:()=>u.strokeWidth,typeRampBaseFontSize:()=>u.typeRampBaseFontSize,typeRampBaseLineHeight:()=>u.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>u.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>u.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>u.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>u.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>u.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>u.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>u.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>u.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>u.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>u.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>u.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>u.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>u.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>u.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>u.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>u.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>fe,baseLayerLuminanceValue:()=>ye,bodyFontValue:()=>De,controlCornerRadiusValue:()=>Se,densityValue:()=>Ce,designTokens:()=>Le,designUnitValue:()=>Ae,directionValue:()=>ke,neutralPaletteValue:()=>we,strokeWidthValue:()=>ze,typeRampBaseFontSizeValue:()=>Re,typeRampBaseLineHeightValue:()=>Ne});var i={};r.r(i),r.d(i,{accentFillActive:()=>u.accentFillActive,accentFillActiveDelta:()=>u.accentFillActiveDelta,accentFillFocus:()=>u.accentFillFocus,accentFillFocusDelta:()=>u.accentFillFocusDelta,accentFillHover:()=>u.accentFillHover,accentFillHoverDelta:()=>u.accentFillHoverDelta,accentFillRest:()=>u.accentFillRest,accentFillRestDelta:()=>u.accentFillRestDelta,accentForegroundActive:()=>u.accentForegroundActive,accentForegroundActiveDelta:()=>u.accentForegroundActiveDelta,accentForegroundFocus:()=>u.accentForegroundFocus,accentForegroundFocusDelta:()=>u.accentForegroundFocusDelta,accentForegroundHover:()=>u.accentForegroundHover,accentForegroundHoverDelta:()=>u.accentForegroundHoverDelta,accentForegroundRest:()=>u.accentForegroundRest,accentForegroundRestDelta:()=>u.accentForegroundRestDelta,accentPalette:()=>u.accentPalette,baseHeightMultiplier:()=>u.baseHeightMultiplier,baseLayerLuminance:()=>u.baseLayerLuminance,bodyFont:()=>u.bodyFont,buyColor:()=>pg,controlCornerRadius:()=>u.controlCornerRadius,defaultBuyColor:()=>cg,defaultErrorColor:()=>rg,defaultSellColor:()=>hg,defaultSuccessColor:()=>ig,defaultWarningColor:()=>gg,density:()=>u.density,designUnit:()=>u.designUnit,direction:()=>u.direction,disabledOpacity:()=>u.disabledOpacity,errorColor:()=>tg,fillColor:()=>u.fillColor,focusStrokeInner:()=>u.focusStrokeInner,focusStrokeOuter:()=>u.focusStrokeOuter,focusStrokeWidth:()=>u.focusStrokeWidth,foregroundOnAccentActive:()=>u.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>u.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>u.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>u.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>u.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>u.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>u.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>u.foregroundOnAccentRestLarge,neutralFillActive:()=>u.neutralFillActive,neutralFillActiveDelta:()=>u.neutralFillActiveDelta,neutralFillFocus:()=>u.neutralFillFocus,neutralFillFocusDelta:()=>u.neutralFillFocusDelta,neutralFillHover:()=>u.neutralFillHover,neutralFillHoverDelta:()=>u.neutralFillHoverDelta,neutralFillInputActive:()=>u.neutralFillInputActive,neutralFillInputActiveDelta:()=>u.neutralFillInputActiveDelta,neutralFillInputFocus:()=>u.neutralFillInputFocus,neutralFillInputFocusDelta:()=>u.neutralFillInputFocusDelta,neutralFillInputHover:()=>u.neutralFillInputHover,neutralFillInputHoverDelta:()=>u.neutralFillInputHoverDelta,neutralFillInputRest:()=>u.neutralFillInputRest,neutralFillInputRestDelta:()=>u.neutralFillInputRestDelta,neutralFillLayerRest:()=>u.neutralFillLayerRest,neutralFillLayerRestDelta:()=>u.neutralFillLayerRestDelta,neutralFillRest:()=>u.neutralFillRest,neutralFillRestDelta:()=>u.neutralFillRestDelta,neutralFillStealthActive:()=>u.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>u.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>u.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>u.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>u.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>u.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>u.neutralFillStealthRest,neutralFillStealthRestDelta:()=>u.neutralFillStealthRestDelta,neutralFillStrongActive:()=>u.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>u.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>u.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>u.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>u.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>u.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>u.neutralFillStrongRest,neutralFillStrongRestDelta:()=>u.neutralFillStrongRestDelta,neutralForegroundHint:()=>u.neutralForegroundHint,neutralForegroundRest:()=>u.neutralForegroundRest,neutralLayer1:()=>u.neutralLayer1,neutralLayer2:()=>u.neutralLayer2,neutralLayer3:()=>u.neutralLayer3,neutralLayer4:()=>u.neutralLayer4,neutralLayerCardContainer:()=>u.neutralLayerCardContainer,neutralLayerFloating:()=>u.neutralLayerFloating,neutralPalette:()=>u.neutralPalette,neutralStrokeActive:()=>u.neutralStrokeActive,neutralStrokeActiveDelta:()=>u.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>u.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>u.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>u.neutralStrokeFocus,neutralStrokeFocusDelta:()=>u.neutralStrokeFocusDelta,neutralStrokeHover:()=>u.neutralStrokeHover,neutralStrokeHoverDelta:()=>u.neutralStrokeHoverDelta,neutralStrokeRest:()=>u.neutralStrokeRest,neutralStrokeRestDelta:()=>u.neutralStrokeRestDelta,sellColor:()=>mg,strokeWidth:()=>u.strokeWidth,successColor:()=>ng,typeRampBaseFontSize:()=>u.typeRampBaseFontSize,typeRampBaseLineHeight:()=>u.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>u.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>u.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>u.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>u.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>u.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>u.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>u.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>u.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>u.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>u.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>u.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>u.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>u.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>u.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>u.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>u.typeRampPlus6LineHeight,warningColor:()=>sg});var n={};r.r(n),r.d(n,{accentFillActiveDeltaValue:()=>xg,accentFillFocusDeltaValue:()=>kg,accentFillHoverDeltaValue:()=>yg,accentFillRestDeltaValue:()=>wg,accentForegroundActiveDeltaValue:()=>Cg,accentForegroundFocusDeltaValue:()=>Ag,accentForegroundHoverDeltaValue:()=>Sg,accentForegroundRestDeltaValue:()=>zg,accentPaletteValue:()=>bg,baseHeightMultiplierValue:()=>es,baseLayerLuminanceValue:()=>fg,bodyFontValue:()=>os,controlCornerRadiusValue:()=>as,densityValue:()=>rs,designTokens:()=>zs,designUnitValue:()=>ts,directionValue:()=>Jg,disabledOpacityValue:()=>Zg,focusStrokeWidthValue:()=>Xg,neutralFillActiveDeltaValue:()=>Og,neutralFillFocusDeltaValue:()=>Tg,neutralFillHoverDeltaValue:()=>Fg,neutralFillInputActiveDeltaValue:()=>Ng,neutralFillInputFocusDeltaValue:()=>Lg,neutralFillInputHoverDeltaValue:()=>Rg,neutralFillInputRestDeltaValue:()=>Dg,neutralFillLayerRestDeltaValue:()=>Hg,neutralFillRestDeltaValue:()=>$g,neutralFillStealthActiveDeltaValue:()=>jg,neutralFillStealthFocusDeltaValue:()=>Eg,neutralFillStealthHoverDeltaValue:()=>Ig,neutralFillStealthRestDeltaValue:()=>Mg,neutralFillStrongActiveDeltaValue:()=>Ug,neutralFillStrongFocusDeltaValue:()=>Gg,neutralFillStrongHoverDeltaValue:()=>Bg,neutralFillStrongRestDeltaValue:()=>Pg,neutralPaletteValue:()=>vg,neutralStrokeActiveDeltaValue:()=>Yg,neutralStrokeDividerRestDeltaValue:()=>Wg,neutralStrokeFocusDeltaValue:()=>Qg,neutralStrokeHoverDeltaValue:()=>Vg,neutralStrokeRestDeltaValue:()=>_g,prefix:()=>qg,strokeWidthValue:()=>Kg,typeRampBaseFontSizeValue:()=>is,typeRampBaseLineHeightValue:()=>ns,typeRampMinus1FontSizeValue:()=>ls,typeRampMinus1LineHeightValue:()=>gs,typeRampMinus2FontSizeValue:()=>ss,typeRampMinus2LineHeightValue:()=>ds,typeRampPlus1FontSizeValue:()=>cs,typeRampPlus1LineHeightValue:()=>ps,typeRampPlus2FontSizeValue:()=>us,typeRampPlus2LineHeightValue:()=>hs,typeRampPlus3FontSizeValue:()=>ms,typeRampPlus3LineHeightValue:()=>bs,typeRampPlus4FontSizeValue:()=>vs,typeRampPlus4LineHeightValue:()=>fs,typeRampPlus5FontSizeValue:()=>ws,typeRampPlus5LineHeightValue:()=>ys,typeRampPlus6FontSizeValue:()=>xs,typeRampPlus6LineHeightValue:()=>ks});var l=r(773),g=r(92592),s=r(89074),d=r(60724),c=r(79292),p=r(99667),u=r(41663),h=r(67973);const m=c.css`
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[92],{18092:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>ju,ColorToken:()=>Bu,ColorTokens:()=>Vu,DesignSystemEditor:()=>Cu,DesignSystemExport:()=>Lu,DesignSystemPreview:()=>Zu,EventName:()=>pu,PreviewComponents:()=>Du,PreviewForm:()=>oh,PreviewGrid:()=>lh,TypographyTokens:()=>Wu,defaultBodyFont:()=>mu,fontFamilies:()=>hu});var t={};r.r(t),r.d(t,{accentFillActive:()=>u.accentFillActive,accentFillActiveDelta:()=>u.accentFillActiveDelta,accentFillFocus:()=>u.accentFillFocus,accentFillFocusDelta:()=>u.accentFillFocusDelta,accentFillHover:()=>u.accentFillHover,accentFillHoverDelta:()=>u.accentFillHoverDelta,accentFillRest:()=>u.accentFillRest,accentFillRestDelta:()=>u.accentFillRestDelta,accentForegroundActive:()=>u.accentForegroundActive,accentForegroundActiveDelta:()=>u.accentForegroundActiveDelta,accentForegroundFocus:()=>u.accentForegroundFocus,accentForegroundFocusDelta:()=>u.accentForegroundFocusDelta,accentForegroundHover:()=>u.accentForegroundHover,accentForegroundHoverDelta:()=>u.accentForegroundHoverDelta,accentForegroundRest:()=>u.accentForegroundRest,accentForegroundRestDelta:()=>u.accentForegroundRestDelta,accentPalette:()=>u.accentPalette,baseHeightMultiplier:()=>u.baseHeightMultiplier,baseLayerLuminance:()=>u.baseLayerLuminance,bodyFont:()=>u.bodyFont,controlCornerRadius:()=>u.controlCornerRadius,density:()=>u.density,designUnit:()=>u.designUnit,direction:()=>u.direction,disabledOpacity:()=>u.disabledOpacity,fillColor:()=>u.fillColor,focusStrokeInner:()=>u.focusStrokeInner,focusStrokeOuter:()=>u.focusStrokeOuter,focusStrokeWidth:()=>u.focusStrokeWidth,foregroundOnAccentActive:()=>u.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>u.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>u.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>u.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>u.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>u.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>u.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>u.foregroundOnAccentRestLarge,neutralFillActive:()=>u.neutralFillActive,neutralFillActiveDelta:()=>u.neutralFillActiveDelta,neutralFillFocus:()=>u.neutralFillFocus,neutralFillFocusDelta:()=>u.neutralFillFocusDelta,neutralFillHover:()=>u.neutralFillHover,neutralFillHoverDelta:()=>u.neutralFillHoverDelta,neutralFillInputActive:()=>u.neutralFillInputActive,neutralFillInputActiveDelta:()=>u.neutralFillInputActiveDelta,neutralFillInputFocus:()=>u.neutralFillInputFocus,neutralFillInputFocusDelta:()=>u.neutralFillInputFocusDelta,neutralFillInputHover:()=>u.neutralFillInputHover,neutralFillInputHoverDelta:()=>u.neutralFillInputHoverDelta,neutralFillInputRest:()=>u.neutralFillInputRest,neutralFillInputRestDelta:()=>u.neutralFillInputRestDelta,neutralFillLayerRest:()=>u.neutralFillLayerRest,neutralFillLayerRestDelta:()=>u.neutralFillLayerRestDelta,neutralFillRest:()=>u.neutralFillRest,neutralFillRestDelta:()=>u.neutralFillRestDelta,neutralFillStealthActive:()=>u.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>u.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>u.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>u.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>u.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>u.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>u.neutralFillStealthRest,neutralFillStealthRestDelta:()=>u.neutralFillStealthRestDelta,neutralFillStrongActive:()=>u.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>u.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>u.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>u.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>u.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>u.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>u.neutralFillStrongRest,neutralFillStrongRestDelta:()=>u.neutralFillStrongRestDelta,neutralForegroundHint:()=>u.neutralForegroundHint,neutralForegroundRest:()=>u.neutralForegroundRest,neutralLayer1:()=>u.neutralLayer1,neutralLayer2:()=>u.neutralLayer2,neutralLayer3:()=>u.neutralLayer3,neutralLayer4:()=>u.neutralLayer4,neutralLayerCardContainer:()=>u.neutralLayerCardContainer,neutralLayerFloating:()=>u.neutralLayerFloating,neutralPalette:()=>u.neutralPalette,neutralStrokeActive:()=>u.neutralStrokeActive,neutralStrokeActiveDelta:()=>u.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>u.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>u.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>u.neutralStrokeFocus,neutralStrokeFocusDelta:()=>u.neutralStrokeFocusDelta,neutralStrokeHover:()=>u.neutralStrokeHover,neutralStrokeHoverDelta:()=>u.neutralStrokeHoverDelta,neutralStrokeRest:()=>u.neutralStrokeRest,neutralStrokeRestDelta:()=>u.neutralStrokeRestDelta,strokeWidth:()=>u.strokeWidth,typeRampBaseFontSize:()=>u.typeRampBaseFontSize,typeRampBaseLineHeight:()=>u.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>u.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>u.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>u.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>u.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>u.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>u.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>u.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>u.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>u.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>u.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>u.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>u.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>u.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>u.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>u.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>u.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>fe,baseLayerLuminanceValue:()=>ye,bodyFontValue:()=>De,controlCornerRadiusValue:()=>Se,densityValue:()=>Ce,designTokens:()=>Le,designUnitValue:()=>$e,directionValue:()=>ke,neutralPaletteValue:()=>we,strokeWidthValue:()=>ze,typeRampBaseFontSizeValue:()=>Re,typeRampBaseLineHeightValue:()=>Ne});var i={};r.r(i),r.d(i,{accentFillActive:()=>u.accentFillActive,accentFillActiveDelta:()=>u.accentFillActiveDelta,accentFillFocus:()=>u.accentFillFocus,accentFillFocusDelta:()=>u.accentFillFocusDelta,accentFillHover:()=>u.accentFillHover,accentFillHoverDelta:()=>u.accentFillHoverDelta,accentFillRest:()=>u.accentFillRest,accentFillRestDelta:()=>u.accentFillRestDelta,accentForegroundActive:()=>u.accentForegroundActive,accentForegroundActiveDelta:()=>u.accentForegroundActiveDelta,accentForegroundFocus:()=>u.accentForegroundFocus,accentForegroundFocusDelta:()=>u.accentForegroundFocusDelta,accentForegroundHover:()=>u.accentForegroundHover,accentForegroundHoverDelta:()=>u.accentForegroundHoverDelta,accentForegroundRest:()=>u.accentForegroundRest,accentForegroundRestDelta:()=>u.accentForegroundRestDelta,accentPalette:()=>u.accentPalette,baseHeightMultiplier:()=>u.baseHeightMultiplier,baseLayerLuminance:()=>u.baseLayerLuminance,bodyFont:()=>u.bodyFont,buyColor:()=>pg,controlCornerRadius:()=>u.controlCornerRadius,defaultBuyColor:()=>cg,defaultErrorColor:()=>rg,defaultSellColor:()=>hg,defaultSuccessColor:()=>ig,defaultWarningColor:()=>gg,density:()=>u.density,designUnit:()=>u.designUnit,direction:()=>u.direction,disabledOpacity:()=>u.disabledOpacity,errorColor:()=>tg,fillColor:()=>u.fillColor,focusStrokeInner:()=>u.focusStrokeInner,focusStrokeOuter:()=>u.focusStrokeOuter,focusStrokeWidth:()=>u.focusStrokeWidth,foregroundOnAccentActive:()=>u.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>u.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>u.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>u.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>u.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>u.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>u.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>u.foregroundOnAccentRestLarge,neutralFillActive:()=>u.neutralFillActive,neutralFillActiveDelta:()=>u.neutralFillActiveDelta,neutralFillFocus:()=>u.neutralFillFocus,neutralFillFocusDelta:()=>u.neutralFillFocusDelta,neutralFillHover:()=>u.neutralFillHover,neutralFillHoverDelta:()=>u.neutralFillHoverDelta,neutralFillInputActive:()=>u.neutralFillInputActive,neutralFillInputActiveDelta:()=>u.neutralFillInputActiveDelta,neutralFillInputFocus:()=>u.neutralFillInputFocus,neutralFillInputFocusDelta:()=>u.neutralFillInputFocusDelta,neutralFillInputHover:()=>u.neutralFillInputHover,neutralFillInputHoverDelta:()=>u.neutralFillInputHoverDelta,neutralFillInputRest:()=>u.neutralFillInputRest,neutralFillInputRestDelta:()=>u.neutralFillInputRestDelta,neutralFillLayerRest:()=>u.neutralFillLayerRest,neutralFillLayerRestDelta:()=>u.neutralFillLayerRestDelta,neutralFillRest:()=>u.neutralFillRest,neutralFillRestDelta:()=>u.neutralFillRestDelta,neutralFillStealthActive:()=>u.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>u.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>u.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>u.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>u.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>u.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>u.neutralFillStealthRest,neutralFillStealthRestDelta:()=>u.neutralFillStealthRestDelta,neutralFillStrongActive:()=>u.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>u.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>u.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>u.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>u.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>u.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>u.neutralFillStrongRest,neutralFillStrongRestDelta:()=>u.neutralFillStrongRestDelta,neutralForegroundHint:()=>u.neutralForegroundHint,neutralForegroundRest:()=>u.neutralForegroundRest,neutralLayer1:()=>u.neutralLayer1,neutralLayer2:()=>u.neutralLayer2,neutralLayer3:()=>u.neutralLayer3,neutralLayer4:()=>u.neutralLayer4,neutralLayerCardContainer:()=>u.neutralLayerCardContainer,neutralLayerFloating:()=>u.neutralLayerFloating,neutralPalette:()=>u.neutralPalette,neutralStrokeActive:()=>u.neutralStrokeActive,neutralStrokeActiveDelta:()=>u.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>u.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>u.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>u.neutralStrokeFocus,neutralStrokeFocusDelta:()=>u.neutralStrokeFocusDelta,neutralStrokeHover:()=>u.neutralStrokeHover,neutralStrokeHoverDelta:()=>u.neutralStrokeHoverDelta,neutralStrokeRest:()=>u.neutralStrokeRest,neutralStrokeRestDelta:()=>u.neutralStrokeRestDelta,sellColor:()=>mg,strokeWidth:()=>u.strokeWidth,successColor:()=>ng,typeRampBaseFontSize:()=>u.typeRampBaseFontSize,typeRampBaseLineHeight:()=>u.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>u.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>u.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>u.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>u.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>u.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>u.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>u.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>u.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>u.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>u.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>u.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>u.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>u.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>u.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>u.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>u.typeRampPlus6LineHeight,warningColor:()=>sg});var n={};r.r(n),r.d(n,{accentFillActiveDeltaValue:()=>xg,accentFillFocusDeltaValue:()=>kg,accentFillHoverDeltaValue:()=>yg,accentFillRestDeltaValue:()=>wg,accentForegroundActiveDeltaValue:()=>Cg,accentForegroundFocusDeltaValue:()=>$g,accentForegroundHoverDeltaValue:()=>Sg,accentForegroundRestDeltaValue:()=>zg,accentPaletteValue:()=>bg,baseHeightMultiplierValue:()=>es,baseLayerLuminanceValue:()=>fg,bodyFontValue:()=>os,controlCornerRadiusValue:()=>as,densityValue:()=>rs,designTokens:()=>zs,designUnitValue:()=>ts,directionValue:()=>Jg,disabledOpacityValue:()=>Zg,focusStrokeWidthValue:()=>Xg,neutralFillActiveDeltaValue:()=>Og,neutralFillFocusDeltaValue:()=>Tg,neutralFillHoverDeltaValue:()=>Fg,neutralFillInputActiveDeltaValue:()=>Ng,neutralFillInputFocusDeltaValue:()=>Lg,neutralFillInputHoverDeltaValue:()=>Rg,neutralFillInputRestDeltaValue:()=>Dg,neutralFillLayerRestDeltaValue:()=>Hg,neutralFillRestDeltaValue:()=>Ag,neutralFillStealthActiveDeltaValue:()=>jg,neutralFillStealthFocusDeltaValue:()=>Eg,neutralFillStealthHoverDeltaValue:()=>Ig,neutralFillStealthRestDeltaValue:()=>Mg,neutralFillStrongActiveDeltaValue:()=>Ug,neutralFillStrongFocusDeltaValue:()=>Gg,neutralFillStrongHoverDeltaValue:()=>Bg,neutralFillStrongRestDeltaValue:()=>Pg,neutralPaletteValue:()=>vg,neutralStrokeActiveDeltaValue:()=>Yg,neutralStrokeDividerRestDeltaValue:()=>Wg,neutralStrokeFocusDeltaValue:()=>Qg,neutralStrokeHoverDeltaValue:()=>Vg,neutralStrokeRestDeltaValue:()=>_g,prefix:()=>qg,strokeWidthValue:()=>Kg,typeRampBaseFontSizeValue:()=>is,typeRampBaseLineHeightValue:()=>ns,typeRampMinus1FontSizeValue:()=>ls,typeRampMinus1LineHeightValue:()=>gs,typeRampMinus2FontSizeValue:()=>ss,typeRampMinus2LineHeightValue:()=>ds,typeRampPlus1FontSizeValue:()=>cs,typeRampPlus1LineHeightValue:()=>ps,typeRampPlus2FontSizeValue:()=>us,typeRampPlus2LineHeightValue:()=>hs,typeRampPlus3FontSizeValue:()=>ms,typeRampPlus3LineHeightValue:()=>bs,typeRampPlus4FontSizeValue:()=>vs,typeRampPlus4LineHeightValue:()=>fs,typeRampPlus5FontSizeValue:()=>ws,typeRampPlus5LineHeightValue:()=>ys,typeRampPlus6FontSizeValue:()=>xs,typeRampPlus6LineHeightValue:()=>ks});var l=r(37329),g=r(92592),s=r(89074),d=r(60724),c=r(79292),p=r(99667),u=r(41663),h=r(67973);const m=c.css`
|
|
2
2
|
:host {
|
|
3
3
|
border: calc(${u.strokeWidth} * 1px) solid transparent;
|
|
4
4
|
margin: 0;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
background: ${h.H.Canvas};
|
|
51
51
|
border-color: ${h.H.CanvasText};
|
|
52
52
|
}
|
|
53
|
-
`));var b=r(
|
|
53
|
+
`));var b=r(96008);const v=(0,b.createLogger)("foundation-form"),f={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"},w=c.html`
|
|
54
54
|
<template>
|
|
55
55
|
${(0,c.when)((e=>!1),c.html`
|
|
56
56
|
<zero-button class="clipboard-button" @click=${e=>e.copyUISchemaToClipboard()}>
|
|
@@ -62,11 +62,12 @@
|
|
|
62
62
|
:jsonforms=${e=>e.jsonforms}
|
|
63
63
|
:dispatch=${e=>e.dispatch}
|
|
64
64
|
:props=${e=>e.props}
|
|
65
|
+
:prefix=${e=>e.prefix}
|
|
65
66
|
?submitted=${e=>e.submitted}
|
|
66
67
|
/>
|
|
67
68
|
`)}
|
|
68
69
|
</template>
|
|
69
|
-
`,y=(e,a,r)=>{var t,o,i,n;return null!==(n=null===(i=null===(o=null===(t=null==r?void 0:r.options)||void 0===t?void 0:t.i18n)||void 0===o?void 0:o.error)||void 0===i?void 0:i[e.keyword])&&void 0!==n?n:((e,a,r)=>{var t;return"pattern"===(null==e?void 0:e.keyword)?null!==(t=f[e.params.pattern])&&void 0!==t?t:"Invalid pattern.":(0,d.zjv)(e,a,r)})(e,a,r)};let x=class extends c.FASTElement{constructor(){super(...arguments),this.dispatch=e=>{this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{core:(0,d.mpn)(this.jsonforms.core,e)}),this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})},this.validate=e=>{var a,r,t;const o=null===(r=null===(a=this.jsonforms)||void 0===a?void 0:a.core)||void 0===r?void 0:r.data;if(!o)return[];const i=[];return null===(t=null==e?void 0:e.elements)||void 0===t||t.forEach((e=>{var a,r,t,n;const l=null===(a=null==e?void 0:e.options)||void 0===a?void 0:a.validateFn;if("function"!=typeof l)return;const g=null===(t=null===(r=null==e?void 0:e.scope)||void 0===r?void 0:r.split("/"))||void 0===t?void 0:t.pop(),s=null==e?void 0:e.label;let d=null!==(n=l(o,g,s))&&void 0!==n?n:[];Array.isArray(d)||(d=[d]),i.push(...d)})),i}}prefixChanged(){this.schemaChanged()}schemaChanged(){var e,a,r,t;if(!this.schema)return;this.uichemaToUse=null!==(e=this.uischema)&&void 0!==e?e:d.Iiz.uiSchema(this.schema),this.uischema||console.log("UI schema not provided. Auto generated schema:",this.uichemaToUse);const o=this.validate(this.uichemaToUse);this.jsonforms={core:(()=>{const e={data:this.data,schema:this.schema,uischema:this.uichemaToUse};return(0,d.mpn)(e,d.eXO.init(this.data,this.schema,this.uichemaToUse,{validationMode:this.validationMode||"ValidateAndShow",ajv:this.ajv,additionalErrors:o}))})(),config:(0,d.LsR)(void 0,d.eXO.setConfig(this.config)),i18n:(0,d.YC9)(this.i18n,d.eXO.updateI18n(null===(a=this.i18n)||void 0===a?void 0:a.locale,null===(r=this.i18n)||void 0===r?void 0:r.translate,(null===(t=this.i18n)||void 0===t?void 0:t.translateError)||y)),renderers:this.renderers,readonly:this.readonly
|
|
70
|
+
`,y=(e,a,r)=>{var t,o,i,n;return null!==(n=null===(i=null===(o=null===(t=null==r?void 0:r.options)||void 0===t?void 0:t.i18n)||void 0===o?void 0:o.error)||void 0===i?void 0:i[e.keyword])&&void 0!==n?n:((e,a,r)=>{var t;return"pattern"===(null==e?void 0:e.keyword)?null!==(t=f[e.params.pattern])&&void 0!==t?t:"Invalid pattern.":(0,d.zjv)(e,a,r)})(e,a,r)};let x=class extends c.FASTElement{constructor(){super(...arguments),this.dispatch=e=>{this.jsonforms=Object.assign(Object.assign({},this.jsonforms),{core:(0,d.mpn)(this.jsonforms.core,e)}),this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})},this.validate=e=>{var a,r,t;const o=null===(r=null===(a=this.jsonforms)||void 0===a?void 0:a.core)||void 0===r?void 0:r.data;if(!o)return[];const i=[];return null===(t=null==e?void 0:e.elements)||void 0===t||t.forEach((e=>{var a,r,t,n;const l=null===(a=null==e?void 0:e.options)||void 0===a?void 0:a.validateFn;if("function"!=typeof l)return;const g=null===(t=null===(r=null==e?void 0:e.scope)||void 0===r?void 0:r.split("/"))||void 0===t?void 0:t.pop(),s=null==e?void 0:e.label;let d=null!==(n=l(o,g,s))&&void 0!==n?n:[];Array.isArray(d)||(d=[d]),i.push(...d)})),i}}prefixChanged(){this.schemaChanged()}schemaChanged(){var e,a,r,t;if(!this.schema)return;this.uichemaToUse=null!==(e=this.uischema)&&void 0!==e?e:d.Iiz.uiSchema(this.schema),this.uischema||console.log("UI schema not provided. Auto generated schema:",this.uichemaToUse);const o=this.validate(this.uichemaToUse);this.jsonforms={core:(()=>{const e={data:this.data,schema:this.schema,uischema:this.uichemaToUse};return(0,d.mpn)(e,d.eXO.init(this.data,this.schema,this.uichemaToUse,{validationMode:this.validationMode||"ValidateAndShow",ajv:this.ajv,additionalErrors:o}))})(),config:(0,d.LsR)(void 0,d.eXO.setConfig(this.config)),i18n:(0,d.YC9)(this.i18n,d.eXO.updateI18n(null===(a=this.i18n)||void 0===a?void 0:a.locale,null===(r=this.i18n)||void 0===r?void 0:r.translate,(null===(t=this.i18n)||void 0===t?void 0:t.translateError)||y)),renderers:this.renderers,readonly:this.readonly},this.$emit("data-change",{data:this.jsonforms.core.data,errors:this.jsonforms.core.errors})}uischemaChanged(){this.schemaChanged()}dataChanged(){this.schemaChanged()}renderersChanged(){this.schemaChanged()}validationModeChanged(){this.schemaChanged()}ajvChanged(){this.schemaChanged()}readonlyChanged(){this.schemaChanged()}configChanged(){this.schemaChanged()}get props(){var e;if(!this.schema&&!this.uischema)return;const a=null!==(e=this.uischema)&&void 0!==e?e:d.Iiz.uiSchema(this.schema);return{uischema:Object.assign(Object.assign({},a),{elements:a.elements.map((e=>"#/properties/TIMESTAMP"===e.scope?Object.assign(Object.assign({},e),{options:{hidden:!0}}):e))}),schema:this.schema,path:"",enabled:!0,visible:!0}}copyUISchemaToClipboard(){return(0,g.__awaiter)(this,void 0,void 0,(function*(){try{yield navigator.clipboard.writeText(JSON.stringify(this.uichemaToUse)),v.debug("Autogenerated UI schema copied to clipboard")}catch(e){v.error("Failed to copy autogenerated UI schema: ",e)}}))}};(0,g.__decorate)([(0,c.attr)({mode:"boolean"})],x.prototype,"submitted",void 0),(0,g.__decorate)([c.observable],x.prototype,"prefix",void 0),(0,g.__decorate)([c.observable],x.prototype,"jsonforms",void 0),(0,g.__decorate)([c.observable],x.prototype,"i18n",void 0),(0,g.__decorate)([c.observable],x.prototype,"uichemaToUse",void 0),(0,g.__decorate)([c.observable],x.prototype,"schema",void 0),(0,g.__decorate)([c.observable],x.prototype,"uischema",void 0),(0,g.__decorate)([c.observable],x.prototype,"data",void 0),(0,g.__decorate)([c.observable],x.prototype,"renderers",void 0),(0,g.__decorate)([c.observable],x.prototype,"validationMode",void 0),(0,g.__decorate)([c.observable],x.prototype,"ajv",void 0),(0,g.__decorate)([(0,c.attr)({mode:"boolean"})],x.prototype,"readonly",void 0),(0,g.__decorate)([c.observable],x.prototype,"config",void 0),x=(0,g.__decorate)([(0,c.customElement)({name:"json-forms",template:w,styles:c.css`
|
|
70
71
|
.clipboard-button {
|
|
71
72
|
display: flex;
|
|
72
73
|
}
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
?submitted=${(e,a)=>a.parent.form.submitted}
|
|
93
94
|
:dispatch=${(e,a)=>a.parent.form.dispatch}
|
|
94
95
|
:jsonforms=${(e,a)=>a.parent.form.jsonforms}
|
|
96
|
+
:prefix=${(e,a)=>a.parent.form.prefix}
|
|
95
97
|
:props=${(e,a)=>({uischema:a.parent.uiSchema,schema:a.parent.schema,renderers:a.parent.control.renderers,path:(0,d.ZBw)(a.parent.pathName,`${a.index}`),enabled:a.parent.control.enabled})}
|
|
96
98
|
></dispatch-renderer>
|
|
97
99
|
<${e}-button
|
|
@@ -114,7 +116,7 @@
|
|
|
114
116
|
Add another
|
|
115
117
|
</${e}-button>
|
|
116
118
|
</template>
|
|
117
|
-
`)(e.form.
|
|
119
|
+
`)(e.form.prefix)}
|
|
118
120
|
`})],z);const S=c.css`
|
|
119
121
|
.tabs-container::part(tablist) {
|
|
120
122
|
background-color: transparent;
|
|
@@ -142,6 +144,7 @@
|
|
|
142
144
|
?submitted=${(e,a)=>a.parentContext.parent.form.submitted}
|
|
143
145
|
:dispatch=${(e,a)=>a.parentContext.parent.form.dispatch}
|
|
144
146
|
:jsonforms=${(e,a)=>a.parentContext.parent.form.jsonforms}
|
|
147
|
+
:prefix=${(e,a)=>a.parentContext.parent.form.prefix}
|
|
145
148
|
:props=${(e,a)=>({uischema:e,schema:a.parentContext.parent.control.schema,renderers:a.parentContext.parent.control.renderers,path:a.parentContext.parent.control.path,enabled:a.parentContext.parent.control.enabled})}
|
|
146
149
|
></dispatch-renderer>
|
|
147
150
|
`)}
|
|
@@ -149,8 +152,8 @@
|
|
|
149
152
|
`)}
|
|
150
153
|
</${e}-tabs>
|
|
151
154
|
</template>
|
|
152
|
-
`)(e.form.
|
|
153
|
-
`})],C);const
|
|
155
|
+
`)(e.form.prefix)}
|
|
156
|
+
`})],C);const $=c.html`
|
|
154
157
|
<template>
|
|
155
158
|
${(0,c.when)((e=>{var a;return null===(a=e.control)||void 0===a?void 0:a.visible}),c.html`
|
|
156
159
|
<div
|
|
@@ -170,7 +173,7 @@
|
|
|
170
173
|
</div>
|
|
171
174
|
`)}
|
|
172
175
|
</template>
|
|
173
|
-
|
|
176
|
+
`,A=c.css`
|
|
174
177
|
.wrapperRoot {
|
|
175
178
|
margin-bottom: 20px;
|
|
176
179
|
}
|
|
@@ -193,9 +196,9 @@
|
|
|
193
196
|
width: 100%;
|
|
194
197
|
align-items: center;
|
|
195
198
|
}
|
|
196
|
-
`;let F=class extends c.FASTElement{get showDescription(){return!(0,d.tg6)(this.control.visible,this.control.description,this.control.isFocused,!!this.control.config.showUnfocusedDescription)}get computedLabel(){return(0,d.lgi)(this.control.label,this.control.required,!!this.control.config.hideRequiredAsterisk)}};(0,g.__decorate)([c.observable],F.prototype,"control",void 0),(0,g.__decorate)([c.observable],F.prototype,"touched",void 0),(0,g.__decorate)([c.volatile],F.prototype,"showDescription",null),(0,g.__decorate)([c.volatile],F.prototype,"computedLabel",null),F=(0,g.__decorate)([(0,c.customElement)({name:"control-wrapper",styles
|
|
199
|
+
`;let F=class extends c.FASTElement{get showDescription(){return!(0,d.tg6)(this.control.visible,this.control.description,this.control.isFocused,!!this.control.config.showUnfocusedDescription)}get computedLabel(){return(0,d.lgi)(this.control.label,this.control.required,!!this.control.config.hideRequiredAsterisk)}};(0,g.__decorate)([c.observable],F.prototype,"control",void 0),(0,g.__decorate)([c.observable],F.prototype,"touched",void 0),(0,g.__decorate)([c.volatile],F.prototype,"showDescription",null),(0,g.__decorate)([c.volatile],F.prototype,"computedLabel",null),F=(0,g.__decorate)([(0,c.customElement)({name:"control-wrapper",styles:A,template:$})],F);var O=r(80340),T=r.n(O);const D=c.html`
|
|
197
200
|
<template>${e=>e.determinedRenderer.renderer}</template>
|
|
198
|
-
`,R=c.css``;let N=class extends c.FASTElement{constructor(){super(...arguments),this.createRenderer=()=>{if(!this.jsonforms||!this.dispatch||!this.props)return;const e=(0,d.Q8v)({jsonforms:this.jsonforms},this.props),{rootSchema:a}=e,r=(0,g.__rest)(e,["rootSchema"]);this.renderer=r,this.control=((e,a,r,t)=>{const o=Object.assign({},t({jsonforms:a},e)),i=null===d.AZl||void 0===d.AZl?void 0:(0,d.AZl)(r);return Object.assign(Object.assign({},o),i)})(this.props,this.jsonforms,this.dispatch,this.determinedRenderer.mapper)}}jsonformsChanged(){this.createRenderer()}propsChanged(){this.createRenderer()}submittedChanged(){this.touched=!!this.submitted}onBlur(){this.touched=!0}get determinedRenderer(){const e=T()(this.renderer.renderers,(e=>e.tester(this.renderer.uischema,this.renderer.schema)));return void 0===e||-1===e.tester(this.renderer.uischema,this.renderer.schema)?(console.error("UnknownRenderer this.renderer.uischema",this.renderer.uischema),{renderer:"UnknownRenderer"}):e}disconnectedCallback(){super.disconnectedCallback(),this.touched=!1,this.submitted=!1}};(0,g.__decorate)([c.observable],N.prototype,"jsonforms",void 0),(0,g.__decorate)([c.observable],N.prototype,"props",void 0),(0,g.__decorate)([c.observable],N.prototype,"touched",void 0),(0,g.__decorate)([(0,c.attr)({mode:"boolean"})],N.prototype,"submitted",void 0),(0,g.__decorate)([c.observable],N.prototype,"dispatch",void 0),(0,g.__decorate)([c.observable],N.prototype,"control",void 0),(0,g.__decorate)([c.observable],N.prototype,"renderer",void 0),N=(0,g.__decorate)([(0,c.customElement)({name:"dispatch-renderer",template:D,styles:R})],N);const L=c.css`
|
|
201
|
+
`,R=c.css``;let N=class extends c.FASTElement{constructor(){super(...arguments),this.createRenderer=()=>{if(!this.jsonforms||!this.dispatch||!this.props)return;const e=(0,d.Q8v)({jsonforms:this.jsonforms},this.props),{rootSchema:a}=e,r=(0,g.__rest)(e,["rootSchema"]);this.renderer=r,this.control=((e,a,r,t)=>{const o=Object.assign({},t({jsonforms:a},e)),i=null===d.AZl||void 0===d.AZl?void 0:(0,d.AZl)(r);return Object.assign(Object.assign({},o),i)})(this.props,this.jsonforms,this.dispatch,this.determinedRenderer.mapper)}}jsonformsChanged(){this.createRenderer()}propsChanged(){this.createRenderer()}submittedChanged(){this.touched=!!this.submitted}prefixChanged(){this.createRenderer()}onBlur(){this.touched=!0}get determinedRenderer(){const e=T()(this.renderer.renderers,(e=>e.tester(this.renderer.uischema,this.renderer.schema)));return void 0===e||-1===e.tester(this.renderer.uischema,this.renderer.schema)?(console.error("UnknownRenderer this.renderer.uischema",this.renderer.uischema),{renderer:"UnknownRenderer"}):e}disconnectedCallback(){super.disconnectedCallback(),this.touched=!1,this.submitted=!1}};(0,g.__decorate)([c.observable],N.prototype,"jsonforms",void 0),(0,g.__decorate)([c.observable],N.prototype,"props",void 0),(0,g.__decorate)([c.observable],N.prototype,"touched",void 0),(0,g.__decorate)([(0,c.attr)({mode:"boolean"})],N.prototype,"submitted",void 0),(0,g.__decorate)([c.observable],N.prototype,"dispatch",void 0),(0,g.__decorate)([c.observable],N.prototype,"control",void 0),(0,g.__decorate)([c.observable],N.prototype,"renderer",void 0),(0,g.__decorate)([c.observable],N.prototype,"prefix",void 0),N=(0,g.__decorate)([(0,c.customElement)({name:"dispatch-renderer",template:D,styles:R})],N);const L=c.css`
|
|
199
202
|
.tabs-container::part(stepper-panel-container) {
|
|
200
203
|
display: flex;
|
|
201
204
|
justify-content: flex-start;
|
|
@@ -222,6 +225,7 @@
|
|
|
222
225
|
?submitted=${(e,a)=>a.parentContext.parent.form.submitted}
|
|
223
226
|
:dispatch=${(e,a)=>a.parentContext.parent.form.dispatch}
|
|
224
227
|
:jsonforms=${(e,a)=>a.parentContext.parent.form.jsonforms}
|
|
228
|
+
:prefix=${(e,a)=>a.parentContext.parent.form.prefix}
|
|
225
229
|
:props=${(e,a)=>({uischema:e,schema:a.parentContext.parent.control.schema,renderers:a.parentContext.parent.control.renderers,path:a.parentContext.parent.control.path,enabled:a.parentContext.parent.control.enabled})}
|
|
226
230
|
></dispatch-renderer>
|
|
227
231
|
`)}
|
|
@@ -229,7 +233,7 @@
|
|
|
229
233
|
`)}
|
|
230
234
|
</${e}-stepper>
|
|
231
235
|
</template>
|
|
232
|
-
`)(e.form.
|
|
236
|
+
`)(e.form.prefix)}
|
|
233
237
|
`})],M);const I=c.html`
|
|
234
238
|
${e=>(e=>c.html`
|
|
235
239
|
<template>
|
|
@@ -279,8 +283,8 @@
|
|
|
279
283
|
></${e}-checkbox>
|
|
280
284
|
</control-wrapper>
|
|
281
285
|
</template>
|
|
282
|
-
`)(e.
|
|
283
|
-
`,tester:(0,d.yMz)(3,j),mapper:d.xq9};var P=r(
|
|
286
|
+
`)(e.prefix)}
|
|
287
|
+
`,tester:(0,d.yMz)(3,j),mapper:d.xq9};var P=r(59189);const B=e=>a=>{if(!a||!(0,d.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},U=(0,d.xDy)(B("allOptionsResourceName"),(0,d.or)((0,d.wcO)((e=>(0,d.ndu)(e,"array"))),(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,d.ndu)(e,"array")))))));P.MultiselectDatasource;const G={renderer:c.html`
|
|
284
288
|
${e=>((e="zero")=>c.html`
|
|
285
289
|
<template>
|
|
286
290
|
<control-wrapper
|
|
@@ -305,7 +309,7 @@
|
|
|
305
309
|
</${e}-multiselect>
|
|
306
310
|
</control-wrapper>
|
|
307
311
|
</template>
|
|
308
|
-
`)(e.
|
|
312
|
+
`)(e.prefix)}
|
|
309
313
|
`,tester:(0,d.yMz)(4,U),mapper:d.xq9};P.OptionsDatasource;const H={renderer:c.html`
|
|
310
314
|
${e=>((e="zero")=>c.html`
|
|
311
315
|
<template>
|
|
@@ -335,7 +339,7 @@
|
|
|
335
339
|
</${e}-combobox>
|
|
336
340
|
</control-wrapper>
|
|
337
341
|
</template>
|
|
338
|
-
`)(e.
|
|
342
|
+
`)(e.prefix)}
|
|
339
343
|
`,tester:(0,d.yMz)(4,(0,d.or)(B("allOptionsResourceName"),B("data"))),mapper:d.xq9},_=(0,d.wcO)((e=>"org.joda.time.DateTime"===e.description)),V=(0,d.or)(_,(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>"org.joda.time.DateTime"===e.description))))),Y={renderer:c.html`
|
|
340
344
|
${e=>((e="zero")=>c.html`
|
|
341
345
|
<template>
|
|
@@ -356,7 +360,7 @@
|
|
|
356
360
|
></${e}-text-field>
|
|
357
361
|
</control-wrapper>
|
|
358
362
|
</template>
|
|
359
|
-
`)(e.
|
|
363
|
+
`)(e.prefix)}
|
|
360
364
|
`,tester:(0,d.yMz)(4,V),mapper:d.xq9},Q=(0,d.or)(d.UvK,(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>e.hasOwnProperty("enum")))))),W={renderer:c.html`
|
|
361
365
|
${e=>((e="zero")=>c.html`
|
|
362
366
|
<template>
|
|
@@ -379,7 +383,7 @@
|
|
|
379
383
|
</${e}-combobox>
|
|
380
384
|
</control-wrapper>
|
|
381
385
|
</template>
|
|
382
|
-
`)(e.
|
|
386
|
+
`)(e.prefix)}
|
|
383
387
|
`,tester:(0,d.yMz)(3,Q),mapper:(e,a)=>{const r=(0,d.xq9)(e,a),t=a.options||(r.schema.enum||r.schema.oneOf.find((e=>e.hasOwnProperty("enum"))).enum).map((a=>(0,d.vld)(a,(0,d.Ty2)()(e),(0,d.B49)(r.schema,r.uischema,r.path))))||r.schema.const&&[(0,d.vld)(r.schema.const,(0,d.Ty2)()(e),(0,d.B49)(r.schema,r.uischema,r.path))];return Object.assign(Object.assign({},r),{options:t})}},q={renderer:c.html`
|
|
384
388
|
<template>
|
|
385
389
|
<pre
|
|
@@ -416,6 +420,7 @@
|
|
|
416
420
|
?submitted=${(e,a)=>a.parent.submitted}
|
|
417
421
|
:dispatch=${(e,a)=>a.parent.dispatch}
|
|
418
422
|
:jsonforms=${(e,a)=>a.parent.jsonforms}
|
|
423
|
+
:prefix=${(e,a)=>a.parent.prefix}
|
|
419
424
|
:props=${(e,a)=>({uischema:e,schema:a.parent.control.schema,renderers:a.parent.control.renderers,path:a.parent.control.path,enabled:a.parent.control.enabled})}
|
|
420
425
|
></dispatch-renderer>
|
|
421
426
|
`)}
|
|
@@ -434,6 +439,7 @@
|
|
|
434
439
|
?submitted=${(e,a)=>a.parent.submitted}
|
|
435
440
|
:dispatch=${(e,a)=>a.parent.dispatch}
|
|
436
441
|
:jsonforms=${(e,a)=>a.parent.jsonforms}
|
|
442
|
+
:prefix=${(e,a)=>a.parent.prefix}
|
|
437
443
|
:props=${(e,a)=>({uischema:e,schema:a.parent.control.schema,renderers:a.parent.control.renderers,path:a.parent.control.path,enabled:a.parent.control.enabled})}
|
|
438
444
|
></dispatch-renderer>
|
|
439
445
|
`)}
|
|
@@ -447,6 +453,7 @@
|
|
|
447
453
|
?submitted=${(e,a)=>a.parent.submitted}
|
|
448
454
|
:dispatch=${(e,a)=>a.parent.dispatch}
|
|
449
455
|
:jsonforms=${(e,a)=>a.parent.jsonforms}
|
|
456
|
+
:prefix=${(e,a)=>a.parent.prefix}
|
|
450
457
|
:props=${(e,a)=>({uischema:e,schema:a.parent.control.schema,renderers:a.parent.control.renderers,path:a.parent.control.path,enabled:a.parent.control.enabled})}
|
|
451
458
|
></dispatch-renderer>
|
|
452
459
|
`)}
|
|
@@ -471,6 +478,7 @@
|
|
|
471
478
|
?submitted=${(e,a)=>a.parent.submitted}
|
|
472
479
|
:dispatch=${(e,a)=>a.parent.dispatch}
|
|
473
480
|
:jsonforms=${(e,a)=>a.parent.jsonforms}
|
|
481
|
+
:prefix=${(e,a)=>a.parent.prefix}
|
|
474
482
|
:props=${(e,a)=>({uischema:e,schema:a.parent.control.schema,renderers:a.parent.control.renderers,path:a.parent.control.path,enabled:a.parent.control.enabled})}
|
|
475
483
|
></dispatch-renderer>
|
|
476
484
|
</div>
|
|
@@ -501,7 +509,7 @@
|
|
|
501
509
|
></${e}-number-field>
|
|
502
510
|
</control-wrapper>
|
|
503
511
|
</template>
|
|
504
|
-
`)(e.
|
|
512
|
+
`)(e.prefix)}
|
|
505
513
|
`,tester:(0,d.yMz)(3,ie),mapper:d.xq9};var le=r(55509);function ge(e,a){const r=a.event.target.value;e.control.handleChange(e.control.path,""===r?null:r)}const se=c.html`
|
|
506
514
|
${e=>((e="zero")=>c.html`
|
|
507
515
|
<template>
|
|
@@ -537,8 +545,8 @@
|
|
|
537
545
|
`)}
|
|
538
546
|
</control-wrapper>
|
|
539
547
|
</template>
|
|
540
|
-
`)(e.
|
|
541
|
-
`,de={renderer:se,tester:(0,d.yMz)(2,d.Wdb),mapper:d.xq9},ce=[{renderer:se,tester:(0,d.yMz)(1,d.DRl),mapper:d.xq9},de,E,Z,K,X,ee,te,ae,re,ne,G,W,H,Y,q];let pe=class extends p.FoundationElement{constructor(){super(...arguments),this.prefix="zero",this.renderers=ce,this.errors=[],this.data={}}resourceNameChanged(){var e,a;return(0,g.__awaiter)(this,void 0,void 0,(function*(){if(this.jsonSchema=void 0,this.resourceName){const r=yield this.connect.getJSONSchema(this.resourceName);this.jsonSchema=null===(a=null===(e=null==r?void 0:r.INBOUND)||void 0===e?void 0:e.properties)||void 0===a?void 0:a.DETAILS}}))}removeDataProperties(){if(!this.jsonSchema||!this.data)return;const e=Object.keys(this.jsonSchema.properties);let a=0;return Object.keys(this.data).forEach((r=>{e.includes(r)||(delete this.data[r],a+=1,v.debug("Removing key ",r,"from provided data because it is not part of the payload"))})),a>0&&(this.data=Object.assign({},this.data)),a>0}_submit(){return(0,g.__awaiter)(this,void 0,void 0,(function*(){if(this.submitting)return;this.removeDataProperties()&&(yield c.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(v.debug({payload:e,errors:this.errors}),this.$emit("submit",{payload:e,errors:this.errors}),0!==Object.entries(e).length&&this.resourceName){this.submitting=!0;const a=yield this.connect.commitEvent(this.resourceName,{DETAILS:e});this.submitting=!1,a.ERROR?this.$emit("submit-failure",{payload:e,errors:a.ERROR}):this.$emit("submit-success",{payload:e})}}))}get isSubmitHidden(){return!this.readonly&&!this.hideSubmit}submitPart(e){this.submitted=!0}onChange(e){v.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors)}disconnectedCallback(){super.disconnectedCallback(),this.reset()}reset(e=!0){this.submitted=!1,e&&(this.data={})}};var ue,he,me,be,ve;(0,g.__decorate)([(0,c.attr)({attribute:"design-system-prefix"})],pe.prototype,"prefix",void 0),(0,g.__decorate)([c.attr],pe.prototype,"resourceName",void 0),(0,g.__decorate)([c.observable],pe.prototype,"uischema",void 0),(0,g.__decorate)([c.observable],pe.prototype,"renderers",void 0),(0,g.__decorate)([c.observable],pe.prototype,"jsonSchema",void 0),(0,g.__decorate)([s.lj],pe.prototype,"connect",void 0),(0,g.__decorate)([c.observable],pe.prototype,"data",void 0),(0,g.__decorate)([c.observable],pe.prototype,"submitting",void 0),(0,g.__decorate)([c.observable],pe.prototype,"submitted",void 0),(0,g.__decorate)([(0,c.attr)({mode:"boolean"})],pe.prototype,"readonly",void 0),(0,g.__decorate)([(0,c.attr)({attribute:"hide-submit-button",mode:"boolean"})],pe.prototype,"hideSubmit",void 0),(0,g.__decorate)([c.volatile],pe.prototype,"isSubmitHidden",null),pe=(0,g.__decorate)([(0,c.customElement)({name:"foundation-form",template:I,styles:m})],pe),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ue||(ue={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(he||(he={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(me||(me={})),function(e){e.grey="#7c909b"}(be||(be={})),function(e){e.chartPink="#fb8176",e.longGreen="#7acc79",e.shortPink="#f14376",e.warningYellow="#fcb35f",e.green="#44c14c",e.lightGreen="#69cd70",e.red="#ef4d28",e.lightRed="#ee6588",e.dodgerBlue="#33a9ff",e.lightDodgerBlue="#5cbaff",e.violet="#9b1e74",e.lightViolet="#b528af",e.white="#f9f9f9",e.silver="#c1c1c1",e.salomie="#ffdf94",e.lightSalomie="#ccb276",e.melon="#ffbbb2",e.lightMelon="#cc968e",e.portage="#8a99f5",e.lightPortage="#adb8f8",e.ice="#97f4eb",e.lightIce="#6befe2"}(ve||(ve={}));const fe=(0,P.paletteFromHex)(he.blue),we=(0,P.paletteFromHex)(be.grey),ye=u.StandardLuminance.DarkMode;var xe=r(5598);const ke=xe.N.ltr,ze=u.strokeWidth.getValueFor(u.strokeWidth.appliedTo[0]),Se=4,Ce=u.density.getValueFor(u.density.appliedTo[0])
|
|
548
|
+
`)(e.prefix)}
|
|
549
|
+
`,de={renderer:se,tester:(0,d.yMz)(2,d.Wdb),mapper:d.xq9},ce=[{renderer:se,tester:(0,d.yMz)(1,d.DRl),mapper:d.xq9},de,E,Z,K,X,ee,te,ae,re,ne,G,W,H,Y,q];let pe=class extends p.FoundationElement{constructor(){super(...arguments),this.prefix="zero",this.renderers=ce,this.errors=[],this.data={}}resourceNameChanged(){var e,a;return(0,g.__awaiter)(this,void 0,void 0,(function*(){if(this.jsonSchema=void 0,this.resourceName){const r=yield this.connect.getJSONSchema(this.resourceName);this.jsonSchema=null===(a=null===(e=null==r?void 0:r.INBOUND)||void 0===e?void 0:e.properties)||void 0===a?void 0:a.DETAILS}}))}removeDataProperties(){if(!this.jsonSchema||!this.data)return;const e=Object.keys(this.jsonSchema.properties);let a=0;return Object.keys(this.data).forEach((r=>{e.includes(r)||(delete this.data[r],a+=1,v.debug("Removing key ",r,"from provided data because it is not part of the payload"))})),a>0&&(this.data=Object.assign({},this.data)),a>0}_submit(){return(0,g.__awaiter)(this,void 0,void 0,(function*(){if(this.submitting)return;this.removeDataProperties()&&(yield c.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(v.debug({payload:e,errors:this.errors}),this.$emit("submit",{payload:e,errors:this.errors}),0!==Object.entries(e).length&&this.resourceName){this.submitting=!0;const a=yield this.connect.commitEvent(this.resourceName,{DETAILS:e});this.submitting=!1,a.ERROR?this.$emit("submit-failure",{payload:e,errors:a.ERROR}):this.$emit("submit-success",{payload:e})}}))}get isSubmitHidden(){return!this.readonly&&!this.hideSubmit}submitPart(e){this.submitted=!0}onChange(e){v.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors)}disconnectedCallback(){super.disconnectedCallback(),this.reset()}reset(e=!0){this.submitted=!1,e&&(this.data={})}};var ue,he,me,be,ve;(0,g.__decorate)([(0,c.attr)({attribute:"design-system-prefix"})],pe.prototype,"prefix",void 0),(0,g.__decorate)([c.attr],pe.prototype,"resourceName",void 0),(0,g.__decorate)([c.observable],pe.prototype,"uischema",void 0),(0,g.__decorate)([c.observable],pe.prototype,"renderers",void 0),(0,g.__decorate)([c.observable],pe.prototype,"jsonSchema",void 0),(0,g.__decorate)([s.lj],pe.prototype,"connect",void 0),(0,g.__decorate)([c.observable],pe.prototype,"data",void 0),(0,g.__decorate)([c.observable],pe.prototype,"submitting",void 0),(0,g.__decorate)([c.observable],pe.prototype,"submitted",void 0),(0,g.__decorate)([(0,c.attr)({mode:"boolean"})],pe.prototype,"readonly",void 0),(0,g.__decorate)([(0,c.attr)({attribute:"hide-submit-button",mode:"boolean"})],pe.prototype,"hideSubmit",void 0),(0,g.__decorate)([c.volatile],pe.prototype,"isSubmitHidden",null),pe=(0,g.__decorate)([(0,c.customElement)({name:"foundation-form",template:I,styles:m})],pe),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ue||(ue={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(he||(he={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(me||(me={})),function(e){e.grey="#7c909b"}(be||(be={})),function(e){e.chartPink="#fb8176",e.longGreen="#7acc79",e.shortPink="#f14376",e.warningYellow="#fcb35f",e.green="#44c14c",e.lightGreen="#69cd70",e.red="#ef4d28",e.lightRed="#ee6588",e.dodgerBlue="#33a9ff",e.lightDodgerBlue="#5cbaff",e.violet="#9b1e74",e.lightViolet="#b528af",e.white="#f9f9f9",e.silver="#c1c1c1",e.salomie="#ffdf94",e.lightSalomie="#ccb276",e.melon="#ffbbb2",e.lightMelon="#cc968e",e.portage="#8a99f5",e.lightPortage="#adb8f8",e.ice="#97f4eb",e.lightIce="#6befe2"}(ve||(ve={}));const fe=(0,P.paletteFromHex)(he.blue),we=(0,P.paletteFromHex)(be.grey),ye=u.StandardLuminance.DarkMode;var xe=r(5598);const ke=xe.N.ltr,ze=u.strokeWidth.getValueFor(u.strokeWidth.appliedTo[0]),Se=4,Ce=u.density.getValueFor(u.density.appliedTo[0]),$e=4;var Ae=r(47823);const Fe=()=>{(0,Ae.sW)("\n @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')\n","roboto-font-faces")},Oe='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',Te=(e=Ae.Hd.Normal,a=Ae.U9.Regular)=>(0,Ae.py)(Oe,e,a),De=Oe,Re=u.typeRampBaseFontSize.getValueFor(u.typeRampBaseFontSize.appliedTo[0]),Ne=u.typeRampBaseLineHeight.getValueFor(u.typeRampBaseLineHeight.appliedTo[0]),Le={design_tokens:{color:{accent:{$value:fe.source.toColorString(),$type:"color"},neutral:{$value:we.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:De,$type:"fontFamily"}},typography:{baseFontSize:{$value:Re,$type:"dimension"},baseLineHeight:{$value:Ne,$type:"dimension"}},mode:{luminance:{$value:ye,$type:"number"}},style:{density:{$value:Ce,$type:"number"},borderRadius:{$value:Se,$type:"number"},strokeWidth:{$value:ze,$type:"number"}},space:{designUnit:{$value:$e,$type:"number"}}}};class Me extends P.Accordion{}const Ie=Me.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,P.foundationAccordionTemplate)(e,a),styles:(e,a)=>c.css`
|
|
542
550
|
${(0,P.foundationAccordionStyles)(e,a)}
|
|
543
551
|
`,shadowOptions:P.foundationAccordionShadowOptions},P.defaultAccordionConfig));class je extends P.AccordionItem{}const Ee=je.compose(Object.assign({baseName:"accordion-item",template:(e,a)=>(0,P.foundationAccordionItemTemplate)(e,a),styles:(e,a)=>c.css`
|
|
544
552
|
${(0,P.foundationAccordionItemStyles)(e,a)};
|
|
@@ -784,7 +792,7 @@
|
|
|
784
792
|
${(0,P.foundationAnchoredRegionStyles)(e,a)}
|
|
785
793
|
`,shadowOptions:P.foundationAnchoredRegionShadowOptions},P.defaultAnchoredRegionConfig));class Sa extends P.Avatar{}const Ca=Sa.compose(Object.assign({baseName:"avatar",template:(e,a)=>(0,P.foundationAvatarTemplate)(e,a),styles:(e,a)=>c.css`
|
|
786
794
|
${(0,P.foundationAvatarStyles)(e,a)}
|
|
787
|
-
`,shadowOptions:P.foundationAvatarShadowOptions},P.defaultAvatarConfig));class
|
|
795
|
+
`,shadowOptions:P.foundationAvatarShadowOptions},P.defaultAvatarConfig));class $a extends P.Badge{}const Aa=$a.compose(Object.assign({baseName:"badge",template:(e,a)=>(0,P.foundationBadgeTemplate)(e,a),styles:(e,a)=>c.css`
|
|
788
796
|
${(0,P.foundationBadgeStyles)(e,a)}
|
|
789
797
|
:host {
|
|
790
798
|
--badge-fill-primary: ${qe()};
|
|
@@ -972,7 +980,7 @@
|
|
|
972
980
|
font-size: var(--type-ramp-plus-${r}-font-size);
|
|
973
981
|
line-height: var(--type-ramp-plus-${r}-line-height);
|
|
974
982
|
margin: 0;
|
|
975
|
-
${Te(
|
|
983
|
+
${Te(Ae.Hd.Normal,Ae.U9.Bold)}
|
|
976
984
|
}
|
|
977
985
|
`;class br extends u.DesignSystemProvider{constructor(){super(),(0,P.provideTokens)(t,o,this)}}(0,pr.__decorate)([(0,c.attr)({attribute:"card-fill-color",converter:P.swatchConverter}),(0,P.designToken)(u.neutralFillStealthRest)],br.prototype,"cardFillColor",void 0),(0,pr.__decorate)([(0,c.attr)({attribute:"card-foreground-color",converter:P.swatchConverter}),(0,P.designToken)(u.neutralForegroundRest)],br.prototype,"cardForegroundColor",void 0);const vr=br.compose({baseName:"design-system-provider",template:c.html`
|
|
978
986
|
<slot></slot>
|
|
@@ -1060,7 +1068,7 @@
|
|
|
1060
1068
|
.close-icon:active svg g path {
|
|
1061
1069
|
fill: ${_e(.33)};
|
|
1062
1070
|
}
|
|
1063
|
-
`,xr=P.defaultDialogConfig,kr=P.foundationDialogTemplate,zr=P.foundationDialogShadowOptions;class Sr extends P.Dialog{}const Cr=Sr.compose(Object.assign({baseName:"dialog",shadowOptions:zr,styles:yr,template:kr},xr));class
|
|
1071
|
+
`,xr=P.defaultDialogConfig,kr=P.foundationDialogTemplate,zr=P.foundationDialogShadowOptions;class Sr extends P.Dialog{}const Cr=Sr.compose(Object.assign({baseName:"dialog",shadowOptions:zr,styles:yr,template:kr},xr));class $r extends P.Disclosure{}const Ar=$r.compose(Object.assign({baseName:"disclosure",template:(e,a)=>(0,P.foundationDisclosureTemplate)(e,a),styles:(e,a)=>c.css`
|
|
1064
1072
|
${(0,P.foundationDisclosureStyles)(e,a)}
|
|
1065
1073
|
`,shadowOptions:P.foundationDialogShadowOptions},P.defaultDisclosureConfig));class Fr extends P.Divider{}const Or=Fr.compose(Object.assign({baseName:"divider",template:(e,a)=>(0,P.foundationDividerTemplate)(e,a),styles:(e,a)=>c.css`
|
|
1066
1074
|
${(0,P.foundationDividerStyles)(e,a)}
|
|
@@ -1200,14 +1208,14 @@
|
|
|
1200
1208
|
:host {
|
|
1201
1209
|
padding: 0;
|
|
1202
1210
|
}
|
|
1203
|
-
`,shadowOptions:zt})
|
|
1211
|
+
`,shadowOptions:zt}),$t=P.foundationMenuItemShadowOptions;class At extends P.MenuItem{}const Ft=At.compose(Object.assign({baseName:"menu-item",template:P.foundationMenuItemTemplate,styles:(e,a)=>c.css`
|
|
1204
1212
|
${(0,P.foundationMenuItemStyles)(e,a)}
|
|
1205
1213
|
|
|
1206
1214
|
:host {
|
|
1207
1215
|
background: none;
|
|
1208
1216
|
margin: 0;
|
|
1209
1217
|
}
|
|
1210
|
-
`,shadowOptions
|
|
1218
|
+
`,shadowOptions:$t},P.defaultMenuItemConfig)),Ot=c.css`
|
|
1211
1219
|
${yr}
|
|
1212
1220
|
`,Tt=P.defaultModalConfig,Dt=P.foundationModalTemplate,Rt=P.foundationModalShadowOptions;class Nt extends P.Modal{}const Lt=Nt.compose(Object.assign({baseName:"modal",shadowOptions:Rt,styles:Ot,template:Dt},Tt)),Mt=c.css`
|
|
1213
1221
|
${P.multiselectStyles}
|
|
@@ -1593,9 +1601,9 @@
|
|
|
1593
1601
|
}
|
|
1594
1602
|
`,zo=c.html`
|
|
1595
1603
|
${(0,P.getPrefixedStepper)("zero")}
|
|
1596
|
-
`;class So extends P.Stepper{}const Co=So.compose(Object.assign({baseName:"stepper",template:zo,styles:ko,shadowOptions:P.foundationStepperShadowOptions},P.defaultStepperConfig))
|
|
1604
|
+
`;class So extends P.Stepper{}const Co=So.compose(Object.assign({baseName:"stepper",template:zo,styles:ko,shadowOptions:P.foundationStepperShadowOptions},P.defaultStepperConfig)),$o=c.html`
|
|
1597
1605
|
${(0,P.getPrefixedStepperTab)("zero")}
|
|
1598
|
-
`;class
|
|
1606
|
+
`;class Ao extends P.StepperTab{}const Fo=Ao.compose(Object.assign({baseName:"stepper-tab",template:$o,styles:(e,a)=>c.css`
|
|
1599
1607
|
${(0,P.foundationStepperTabStyles)(e,a)}
|
|
1600
1608
|
|
|
1601
1609
|
zero-tree-item {
|
|
@@ -1834,7 +1842,7 @@
|
|
|
1834
1842
|
${(0,P.foundationTreeViewStyles)(e,a)}
|
|
1835
1843
|
`,shadowOptions:P.foundationTreeViewShadowOptions},P.defaultTreeViewConfig)),ri=c.html`
|
|
1836
1844
|
${(0,P.getPrefixedUrlInput)("zero")}
|
|
1837
|
-
`;class ti extends P.UrlInput{}const oi={zeroAccordion:Ie,zeroAccordionItem:Ee,zeroActionsMenu:Be,zeroAnchor:xa,zeroAnchoredRegion:za,zeroAvatar:Ca,zeroBadge
|
|
1845
|
+
`;class ti extends P.UrlInput{}const oi={zeroAccordion:Ie,zeroAccordionItem:Ee,zeroActionsMenu:Be,zeroAnchor:xa,zeroAnchoredRegion:za,zeroAvatar:Ca,zeroBadge:Aa,zeroBanner:Da,zeroBreadcrumbItem:Ma,zeroBreadcrumb:Na,zeroButton:ja,zeroCalendar:Pa,zeroCard:Ua,zeroCheckbox:Ha,zeroCombobox:rr,zeroConnectionIndicator:or,zeroDataGrid:gr,zeroDesignSystemProvider:vr,zeroDialog:Cr,zeroDatePicker:cr,zeroDisclosure:Ar,zeroDivider:Or,zeroDropdownMenu:Dr,zeroErrorBoundary:jr,zeroNotificationListener:Gt,zeroErrorBanner:Mr,zeroErrorDialog:Pr,zeroFileUpload:Vr,zeroFilter:Wr,zeroFilterBar:Zr,zeroFlexLayout:Xr,zeroFlipper:at,zeroFlyout:lt,zeroGridLayout:st,zeroGridLayoutItem:ct,zeroHorizontalScroll:ht,zeroIcon:ft,zeroListbox:yt,zeroListboxOption:kt,zeroMenu:Ct,zeroMenuItem:Ft,zeroModal:Lt,zeroMultiselect:Bt,zeroNumberField:Wt,zeroProgress:Jt,zeroProgressRing:Xt,zeroRadio:ao,zeroRadioGroup:to,zeroSegmentedControl:io,zeroSegmentedItem:lo,zeroSelect:so,zeroSkeleton:po,zeroSlider:ho,zeroSliderLabel:bo,zeroSnackbar:xo,zeroStepper:Co,zeroStepperTab:Fo,zeroStepperTabPanel:To,zeroSwitch:Ro,zeroTab:Lo,zeroTabPanel:Io,zeroTabs:Eo,zeroTextArea:Bo,zeroTextField:Go,zeroToast:Qo,zeroToolbar:qo,zeroTooltip:Zo,zeroTreeItem:Xo,zeroTreeView:ai,zeroUrlInput:ti.compose(Object.assign({baseName:"url-input",template:ri,styles:(e,a)=>c.css`
|
|
1838
1846
|
${(0,P.foundationUrlInputStyles)(e,a)}
|
|
1839
1847
|
a {
|
|
1840
1848
|
color: ${he.blue};
|
|
@@ -1860,7 +1868,7 @@
|
|
|
1860
1868
|
@input=${(e,a)=>e.changeHandler(a.event)}
|
|
1861
1869
|
style="width: ${e=>e.actualWidth}px"
|
|
1862
1870
|
></${e}-text-field>
|
|
1863
|
-
`,ki=wi.compose({baseName:"date-editor",styles:yi,template:xi()});class zi extends wi{}const Si=zi.compose({baseName:"date-editor",styles:yi,template:xi("zero")});class Ci extends p.FoundationElement{init(e){e&&(this.params=e,this.selectedOptions=e.value,this.params.selectedOptionsCallback&&this.params.selectedOptionsCallback(this.params.data).then((e=>{this.selectedOptions=e})),"string"==typeof e.value&&(this.selectedOptions=e.value.split(",")))}getGui(){return this}destroy(){}refresh(e){return!0}getValue(){return this.selectedOptions}isPopup(){return!0}changeHandler(e){this.selectedOptions=e.detail}isCancelBeforeStart(){return!!this.params.data[mi]}}(0,li.__decorate)([c.observable],Ci.prototype,"params",void 0),(0,li.__decorate)([c.observable],Ci.prototype,"selectedOptions",void 0);const
|
|
1871
|
+
`,ki=wi.compose({baseName:"date-editor",styles:yi,template:xi()});class zi extends wi{}const Si=zi.compose({baseName:"date-editor",styles:yi,template:xi("zero")});class Ci extends p.FoundationElement{init(e){e&&(this.params=e,this.selectedOptions=e.value,this.params.selectedOptionsCallback&&this.params.selectedOptionsCallback(this.params.data).then((e=>{this.selectedOptions=e})),"string"==typeof e.value&&(this.selectedOptions=e.value.split(",")))}getGui(){return this}destroy(){}refresh(e){return!0}getValue(){return this.selectedOptions}isPopup(){return!0}changeHandler(e){this.selectedOptions=e.detail}isCancelBeforeStart(){return!!this.params.data[mi]}}(0,li.__decorate)([c.observable],Ci.prototype,"params",void 0),(0,li.__decorate)([c.observable],Ci.prototype,"selectedOptions",void 0);const $i=c.css``,Ai=(e="foundation")=>c.html`
|
|
1864
1872
|
<${e}-multiselect
|
|
1865
1873
|
style="width: 100%"
|
|
1866
1874
|
?async=${e=>e.params.async}
|
|
@@ -1874,7 +1882,7 @@
|
|
|
1874
1882
|
:datasourceConfig=${e=>e.params.datasourceOptions}
|
|
1875
1883
|
></multiselect-datasource>
|
|
1876
1884
|
</${e}-multiselect>
|
|
1877
|
-
`,Fi=Ci.compose({baseName:"multiselect-editor",styles:Ai
|
|
1885
|
+
`,Fi=Ci.compose({baseName:"multiselect-editor",styles:$i,template:Ai()});class Oi extends Ci{}const Ti=Oi.compose({baseName:"multiselect-editor",styles:$i,template:Ai("zero")});class Di extends p.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.combobox.open=!0}changeHandler(e){var a;this.value=null===(a=e.detail)||void 0===a?void 0:a.value}isCancelBeforeStart(){return!!this.params.data[mi]}}(0,li.__decorate)([c.observable],Di.prototype,"params",void 0),(0,li.__decorate)([c.observable],Di.prototype,"value",void 0),(0,li.__decorate)([c.observable],Di.prototype,"actualWidth",void 0);const Ri=c.css``,Ni=(e="foundation")=>c.html`
|
|
1878
1886
|
<${e}-combobox
|
|
1879
1887
|
style="width: ${e=>e.actualWidth}px"
|
|
1880
1888
|
${(0,c.ref)("combobox")}
|
|
@@ -2013,7 +2021,7 @@
|
|
|
2013
2021
|
:value="${(0,yn.Z)((e=>e.textValue))}"
|
|
2014
2022
|
@change="${(e,a)=>e.textChanged(a.event)}"
|
|
2015
2023
|
></${a}>
|
|
2016
|
-
`},Cn=kn.compose({baseName:"grid-pro-text-renderer",styles:zn,template:Sn()});class
|
|
2024
|
+
`},Cn=kn.compose({baseName:"grid-pro-text-renderer",styles:zn,template:Sn()});class $n extends kn{}const An=zn,Fn=Sn,On=$n.compose({baseName:"grid-text-renderer",styles:An,template:Fn()});const Tn=class extends $n{}.compose({baseName:"grid-text-renderer",styles:An,template:Fn("zero")});class Dn extends p.FoundationElement{constructor(){super(...arguments),this.selectionChanged=e=>{this.value=e.target.value,this.params.onSelect(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.value=xn(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,li.__decorate)([c.observable],Dn.prototype,"params",void 0),(0,li.__decorate)([c.observable],Dn.prototype,"value",void 0);const Rn=c.css`
|
|
2017
2025
|
:host,
|
|
2018
2026
|
.select-renderer,
|
|
2019
2027
|
zero-option,
|
|
@@ -9960,7 +9968,7 @@
|
|
|
9960
9968
|
.ag-theme-balham-dark {
|
|
9961
9969
|
color-scheme: dark;
|
|
9962
9970
|
}
|
|
9963
|
-
|
|
9971
|
+
`,$l=c.css`
|
|
9964
9972
|
.ag-theme-material {
|
|
9965
9973
|
--ag-material-primary-color: #3f51b5;
|
|
9966
9974
|
--ag-material-accent-color: #ff4081;
|
|
@@ -10225,14 +10233,14 @@
|
|
|
10225
10233
|
.ag-theme-material .ag-picker-field-wrapper:focus {
|
|
10226
10234
|
box-shadow: 0 0 0 1px var(--ag-material-primary-color);
|
|
10227
10235
|
}
|
|
10228
|
-
|
|
10236
|
+
`,Al=c.css`
|
|
10229
10237
|
${kl}
|
|
10230
10238
|
${zl}
|
|
10231
10239
|
${Sl}
|
|
10232
10240
|
${Cl}
|
|
10233
|
-
${Al}
|
|
10234
|
-
`,Fl=c.css`
|
|
10235
10241
|
${$l}
|
|
10242
|
+
`,Fl=c.css`
|
|
10243
|
+
${Al}
|
|
10236
10244
|
:host {
|
|
10237
10245
|
width: 100%;
|
|
10238
10246
|
height: 100%;
|
|
@@ -10773,9 +10781,9 @@
|
|
|
10773
10781
|
.error {
|
|
10774
10782
|
border-color: ${ve.shortPink} !important;
|
|
10775
10783
|
}
|
|
10776
|
-
`,Wl=Ol,ql="ag-theme-genesis-rapid-dark";const Jl=Ml,Zl={zeroAgEditableRenderer:en,zeroAgActionRenderer:sn,zeroAgActionsMenuRenderer:un,zeroAgBooleanRenderer:wn,zeroAgTextRenderer:Tn,zeroAgSelectRenderer:Mn,zeroAgDateEditor:Si,zeroAgMultiselectEditor:Ti,zeroAgSelectEditor:Ii,zeroAgNumberEditor:Gi,zeroAgStringEditor:Wi,zeroGridPro:class extends Nl{constructor(){super(...arguments),this.theme=ql}themeChanged(e,a){(e||a===ql)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[hi.action]:gn,[hi.actionsMenu]:pn,[hi.boolean]:fn,[hi.editable]:Xi,[hi.selectEditor]:Mi,[hi.numberEditor]:Ui,[hi.multiselectEditor]:Oi,[hi.dateEditor]:zi,[hi.stringEditor]:Qi};(this.theme===Hl||this.theme===Vl)&&(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:Wl,styles:Ql,shadowOptions:undefined},Jl)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},Kl={foundationGridProActionRenderer:ln,foundationGridProActionsMenuRenderer:cn,foundationAgBooleanRenderer:vn,foundationAgTextRenderer:On,foundationAgTextFieldRenderer:Cn,foundationAgEditableRenderer:Ki,foundationAgSelectRenderer:Ln,foundationGridPro:Il,foundationSelectEditor:Li,foundationNumberEditor:Bi,foundationDateEditor:ki,foundationMultiselectEditor:Fi,foundationStringEditor:Yi,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Xl;!function(e){e.primary="#11C9FC",e.neutral="#7C909B",e.error="#F9644D",e.success="#7ACC79",e.warning="#FFB660",e.info="#11C9FC",e.buy="#7ACC79",e.sell="#F14376"}(Xl||(Xl={}));const{create:eg}=p.DesignToken,ag=(0,Ue.parseColorHexRGB)(Xl.error),rg=u.SwatchRGB.create(ag.r,ag.g,ag.b),tg=eg("error-color").withDefault(rg),og=(0,Ue.parseColorHexRGB)(Xl.success),ig=u.SwatchRGB.create(og.r,og.g,og.b),ng=eg("success-color").withDefault(ig),lg=(0,Ue.parseColorHexRGB)(Xl.warning),gg=u.SwatchRGB.create(lg.r,lg.g,lg.b),sg=eg("warning-color").withDefault(gg),dg=(0,Ue.parseColorHexRGB)(Xl.buy),cg=u.SwatchRGB.create(dg.r,dg.g,dg.b),pg=eg("buy-color").withDefault(cg),ug=(0,Ue.parseColorHexRGB)(Xl.sell),hg=u.SwatchRGB.create(ug.r,ug.g,ug.b),mg=eg("sell-color").withDefault(hg),bg=(0,P.paletteFromHex)(Xl.primary),vg=(0,P.paletteFromHex)(Xl.neutral),fg=u.StandardLuminance.DarkMode,wg=0,yg=4,xg=-5,kg=0,zg=0,Sg=6,Cg=-4,Ag=
|
|
10784
|
+
`,Wl=Ol,ql="ag-theme-genesis-rapid-dark";const Jl=Ml,Zl={zeroAgEditableRenderer:en,zeroAgActionRenderer:sn,zeroAgActionsMenuRenderer:un,zeroAgBooleanRenderer:wn,zeroAgTextRenderer:Tn,zeroAgSelectRenderer:Mn,zeroAgDateEditor:Si,zeroAgMultiselectEditor:Ti,zeroAgSelectEditor:Ii,zeroAgNumberEditor:Gi,zeroAgStringEditor:Wi,zeroGridPro:class extends Nl{constructor(){super(...arguments),this.theme=ql}themeChanged(e,a){(e||a===ql)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[hi.action]:gn,[hi.actionsMenu]:pn,[hi.boolean]:fn,[hi.editable]:Xi,[hi.selectEditor]:Mi,[hi.numberEditor]:Ui,[hi.multiselectEditor]:Oi,[hi.dateEditor]:zi,[hi.stringEditor]:Qi};(this.theme===Hl||this.theme===Vl)&&(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:Wl,styles:Ql,shadowOptions:undefined},Jl)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},Kl={foundationGridProActionRenderer:ln,foundationGridProActionsMenuRenderer:cn,foundationAgBooleanRenderer:vn,foundationAgTextRenderer:On,foundationAgTextFieldRenderer:Cn,foundationAgEditableRenderer:Ki,foundationAgSelectRenderer:Ln,foundationGridPro:Il,foundationSelectEditor:Li,foundationNumberEditor:Bi,foundationDateEditor:ki,foundationMultiselectEditor:Fi,foundationStringEditor:Yi,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Xl;!function(e){e.primary="#11C9FC",e.neutral="#7C909B",e.error="#F9644D",e.success="#7ACC79",e.warning="#FFB660",e.info="#11C9FC",e.buy="#7ACC79",e.sell="#F14376"}(Xl||(Xl={}));const{create:eg}=p.DesignToken,ag=(0,Ue.parseColorHexRGB)(Xl.error),rg=u.SwatchRGB.create(ag.r,ag.g,ag.b),tg=eg("error-color").withDefault(rg),og=(0,Ue.parseColorHexRGB)(Xl.success),ig=u.SwatchRGB.create(og.r,og.g,og.b),ng=eg("success-color").withDefault(ig),lg=(0,Ue.parseColorHexRGB)(Xl.warning),gg=u.SwatchRGB.create(lg.r,lg.g,lg.b),sg=eg("warning-color").withDefault(gg),dg=(0,Ue.parseColorHexRGB)(Xl.buy),cg=u.SwatchRGB.create(dg.r,dg.g,dg.b),pg=eg("buy-color").withDefault(cg),ug=(0,Ue.parseColorHexRGB)(Xl.sell),hg=u.SwatchRGB.create(ug.r,ug.g,ug.b),mg=eg("sell-color").withDefault(hg),bg=(0,P.paletteFromHex)(Xl.primary),vg=(0,P.paletteFromHex)(Xl.neutral),fg=u.StandardLuminance.DarkMode,wg=0,yg=4,xg=-5,kg=0,zg=0,Sg=6,Cg=-4,$g=0,Ag=7,Fg=10,Og=5,Tg=0,Dg=0,Rg=0,Ng=0,Lg=0,Mg=0,Ig=5,jg=3,Eg=0,Pg=0,Bg=8,Ug=-5,Gg=0,Hg=3,_g=25,Vg=40,Yg=16,Qg=25,Wg=8,qg="rapid",Jg=xe.N.ltr,Zg=.3,Kg=1,Xg=2,es=10,as=4,rs=0,ts=4,os='"Segoe UI", Arial, Helvetica, sans-serif',is="14px",ns="20px",ls="12px",gs="16px",ss="10px",ds="16px",cs="16px",ps="24px",us="20px",hs="28px",ms="28px",bs="36px",vs="34px",fs="44px",ws="46px",ys="56px",xs="60px",ks="72px",zs={design_tokens:{color:{accent:{$value:bg.source.toColorString(),$type:"color"},neutral:{$value:vg.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:os,$type:"fontFamily"}},typography:{baseFontSize:{$value:is,$type:"dimension"},baseLineHeight:{$value:ns,$type:"dimension"}},mode:{luminance:{$value:fg,$type:"number"}},style:{density:{$value:rs,$type:"number"},borderRadius:{$value:as,$type:"number"},strokeWidth:{$value:Kg,$type:"number"}},space:{designUnit:{$value:ts,$type:"number"}}}};class Ss extends u.DesignSystemProvider{constructor(){super(),(0,P.provideTokens)(i,n,this)}}const Cs=Ss.compose({baseName:"design-system-provider",template:c.html`
|
|
10777
10785
|
<slot></slot>
|
|
10778
|
-
`});class
|
|
10786
|
+
`});class $s extends P.Accordion{}const As=$s.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,P.foundationAccordionTemplate)(e,a),styles:(e,a)=>c.css`
|
|
10779
10787
|
${(0,P.foundationAccordionStyles)(e,a)}
|
|
10780
10788
|
|
|
10781
10789
|
:host {
|
|
@@ -11229,9 +11237,9 @@
|
|
|
11229
11237
|
font-size: var(--type-ramp-base-font-size);
|
|
11230
11238
|
color: var(--neutral-stroke-rest);
|
|
11231
11239
|
}
|
|
11232
|
-
`}),pd=["baseClass","baseName","shadowOptions","styles","template"],ud=e=>{const{definition:a}=e(),{shadowOptions:r,styles:t,template:o}=a,i=((e,a=pd)=>Object.keys(e).filter((e=>!a.includes(e))).reduce(((a,r)=>(a[r]=e[r],a)),{}))(a);return{shadowOptions:r,styles:t,template:o,defaultConfig:i}},{defaultConfig:hd,shadowOptions:md,styles:bd,template:vd}=ud(P.foundationDataGrid),{defaultConfig:fd,shadowOptions:wd,styles:yd,template:xd}=ud(P.foundationDataGridCell),{defaultConfig:kd,shadowOptions:zd,styles:Sd,template:Cd}=ud(P.foundationDataGridRow)
|
|
11240
|
+
`}),pd=["baseClass","baseName","shadowOptions","styles","template"],ud=e=>{const{definition:a}=e(),{shadowOptions:r,styles:t,template:o}=a,i=((e,a=pd)=>Object.keys(e).filter((e=>!a.includes(e))).reduce(((a,r)=>(a[r]=e[r],a)),{}))(a);return{shadowOptions:r,styles:t,template:o,defaultConfig:i}},{defaultConfig:hd,shadowOptions:md,styles:bd,template:vd}=ud(P.foundationDataGrid),{defaultConfig:fd,shadowOptions:wd,styles:yd,template:xd}=ud(P.foundationDataGridCell),{defaultConfig:kd,shadowOptions:zd,styles:Sd,template:Cd}=ud(P.foundationDataGridRow),$d=c.html`
|
|
11233
11241
|
${(0,P.getPrefixedDatePicker)("rapid")}
|
|
11234
|
-
`;class
|
|
11242
|
+
`;class Ad extends P.DatePicker{}const Fd=Ad.compose(Object.assign({baseName:"date-picker",template:$d,styles:()=>c.css`
|
|
11235
11243
|
${P.foundationDatePickerStyles}
|
|
11236
11244
|
|
|
11237
11245
|
:host {
|
|
@@ -11583,9 +11591,9 @@
|
|
|
11583
11591
|
></rapid-flipper>
|
|
11584
11592
|
`},Cc=zc.compose(Object.assign({baseName:"horizontal-scroll",template:(e,a)=>(0,P.foundationHorizontalScrollTemplate)(e,a),styles:(e,a)=>c.css`
|
|
11585
11593
|
${(0,P.foundationHorizontalScrollStyles)(e,a)}
|
|
11586
|
-
`,shadowOptions:P.foundationHorizontalScrollShadowOptions},Sc));class
|
|
11594
|
+
`,shadowOptions:P.foundationHorizontalScrollShadowOptions},Sc));class $c extends P.Icon{}const Ac=P.defaultIconConfig,Fc=P.foundationIconShadowOptions,Oc=$c.compose(Object.assign({baseName:"icon",template:P.foundationIconTemplate,styles:(e,a)=>c.css`
|
|
11587
11595
|
${(0,P.foundationIconStyles)(e,a)}
|
|
11588
|
-
`,shadowOptions:Fc}
|
|
11596
|
+
`,shadowOptions:Fc},Ac));class Tc extends P.Listbox{}const Dc=Tc.compose(Object.assign({baseName:"listbox",template:(e,a)=>(0,P.foundationListboxTemplate)(e,a),styles:(e,a)=>c.css`
|
|
11589
11597
|
${(0,P.foundationListboxStyles)(e,a)}
|
|
11590
11598
|
|
|
11591
11599
|
:host {
|
|
@@ -12078,7 +12086,7 @@
|
|
|
12078
12086
|
}
|
|
12079
12087
|
`,zp=c.html`
|
|
12080
12088
|
${(0,P.getPrefixedSnackbar)("rapid")}
|
|
12081
|
-
`,Sp=P.foundationSnackbarShadowOptions;class Cp extends P.Snackbar{}const
|
|
12089
|
+
`,Sp=P.foundationSnackbarShadowOptions;class Cp extends P.Snackbar{}const $p=Cp.compose({baseName:"snackbar",shadowOptions:Sp,styles:kp,template:zp}),Ap=c.css`
|
|
12082
12090
|
${P.foundationStepperStyles}
|
|
12083
12091
|
|
|
12084
12092
|
:host {
|
|
@@ -12127,7 +12135,7 @@
|
|
|
12127
12135
|
}
|
|
12128
12136
|
`,Fp=c.html`
|
|
12129
12137
|
${(0,P.getPrefixedStepper)("rapid")}
|
|
12130
|
-
`;class Op extends P.Stepper{}const Tp=Op.compose(Object.assign({baseName:"stepper",template:Fp,styles
|
|
12138
|
+
`;class Op extends P.Stepper{}const Tp=Op.compose(Object.assign({baseName:"stepper",template:Fp,styles:Ap,shadowOptions:P.foundationStepperShadowOptions},P.defaultStepperConfig)),Dp=c.html`
|
|
12131
12139
|
${(0,P.getPrefixedStepperTab)("rapid")}
|
|
12132
12140
|
`;class Rp extends P.StepperTab{}const Np=Rp.compose(Object.assign({baseName:"stepper-tab",template:Dp,styles:(e,a)=>c.css`
|
|
12133
12141
|
${(0,P.foundationStepperTabStyles)(e,a)}
|
|
@@ -12513,7 +12521,7 @@
|
|
|
12513
12521
|
${(0,P.foundationTreeViewStyles)(e,a)}
|
|
12514
12522
|
`,shadowOptions:P.foundationTreeViewShadowOptions},P.defaultTreeViewConfig)),su=c.html`
|
|
12515
12523
|
${(0,P.getPrefixedUrlInput)("rapid")}
|
|
12516
|
-
`;class du extends P.UrlInput{}const cu={designSystemProvider:Cs,rapidAccordion
|
|
12524
|
+
`;class du extends P.UrlInput{}const cu={designSystemProvider:Cs,rapidAccordion:As,rapidAccordionItem:Os,rapidActionsMenu:Ds,rapidAnchor:Ps,rapidAnchoredRegion:Us,rapidAvatar:Hs,rapidBadge:Vs,rapidBanner:qs,rapidBreadcrumb:Zs,rapidBreadcrumbItem:Xs,rapidButton:ad,rapidCalendar:td,rapidCard:id,rapidCheckbox:ld,rapidCombobox:sd,rapidConnectionIndicator:cd,rapidDataGrid:()=>(0,P.foundationDataGrid)(),rapidDataGridCell:()=>(0,P.foundationDataGridCell)(),rapidDataGridRow:()=>(0,P.foundationDataGridRow)(),rapidDatePicker:Fd,rapidDialog:Ld,rapidDisclosure:Id,rapidDivider:Ed,rapidDropdownMenu:Bd,rapidErrorBoundary:()=>(0,P.foundationErrorBoundary)(),rapidFileUpload:Jd,rapidFilter:Xd,rapidFilterBar:rc,rapidFlexLayout:()=>(0,P.foundationFlexLayout)(),rapidFlipper:gc,rapidFlyout:hc,rapidGridLayout:()=>(0,P.foundationGridLayout)(),rapidGridLayoutItem:()=>(0,P.foundationGridLayoutItem)(),rapidHorizontalScroll:Cc,rapidIcon:Oc,rapidListbox:Dc,rapidListboxOption:Nc,rapidMenu:Mc,rapidMenuItem:Ec,rapidModal:_c,rapidMultiselect:Jc,rapidNumberField:ap,rapidProgress:tp,rapidProgressRing:ip,rapidRadio:lp,rapidRadioGroup:sp,rapidSegmentedControl:cp,rapidSegmentedItem:up,rapidSelect:mp,rapidSkeleton:vp,rapidSlider:wp,rapidSliderLabel:xp,rapidSnackbar:$p,rapidStepper:Tp,rapidStepperTab:Np,rapidStepperTabPanel:Mp,rapidSwitch:Ep,rapidTab:Bp,rapidTabPanel:Gp,rapidTabs:_p,rapidTextArea:Yp,rapidTextField:Wp,rapidToast:Xp,rapidToolbar:au,rapidTooltip:tu,rapidTreeItem:nu,rapidTreeView:gu,rapidUrlInput:du.compose(Object.assign({baseName:"url-input",template:su,styles:(e,a)=>c.css`
|
|
12517
12525
|
${(0,P.foundationUrlInputStyles)(e,a)}
|
|
12518
12526
|
a {
|
|
12519
12527
|
color: var(--accent-fill-rest);
|
|
@@ -12884,7 +12892,7 @@
|
|
|
12884
12892
|
<slot></slot>
|
|
12885
12893
|
</div>
|
|
12886
12894
|
</template>
|
|
12887
|
-
`,fu=({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(hu).find((a=>hu[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),wu=fu(Le),yu={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient",text:"lightweight"},xu={accent:"primary",neutral:"secondary",font:"white"},ku=fu(l.designTokens),zu=fu(zs),Su={zero:{prefix:"zero",tokenDefaults:wu,buttons:yu,badge:xu},alpha:{prefix:"alpha",tokenDefaults:ku,buttons:{accent:"accent",neutral:"neutral",outline:"outline",text:"lightweight"},badge:{accent:"primary",neutral:"neutral",font:"white"}},rapid:{prefix:"rapid",tokenDefaults:zu,buttons:{accent:"primary",neutral:"neutral",outline:"primary-outline",text:"link"},badge:{accent:"primary",neutral:"neutral",font:"text"}},custom:{prefix:"zero",tokenDefaults:null,buttons:yu,badge:xu}};let Cu=class extends c.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=wu.luminance===u.StandardLuminance.DarkMode,this.luminance=wu.luminance,this.neutralColor=wu.neutralColor,this.accentColor=wu.accentColor,this.bodyFont=wu.bodyFont,this.density=wu.density,this.borderRadius=wu.borderRadius,this.strokeWidth=wu.strokeWidth,this.designUnit=wu.designUnit,this.baseFontSize=wu.baseFontSize,this.baseLineHeight=wu.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof p.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof u.Combobox||e.target instanceof u.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof p.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?u.StandardLuminance.DarkMode:u.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&c.DOM.queueUpdate((()=>{const e=fu(a);Su.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,uu.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(Su[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,uu.__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 e={name:(yield this.getAppName())||"Custom Design",value:"custom"};this.designSystems=[e],this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:Su[this.ds].prefix,buttonAppearanceAccent:Su[this.ds].buttons.accent,buttonAppearanceNeutral:Su[this.ds].buttons.neutral,buttonAppearanceOutline:Su[this.ds].buttons.outline,buttonAppearanceText:Su[this.ds].buttons.text,badgeAppearanceAccent:Su[this.ds].badge.accent,badgeAppearanceNeutral:Su[this.ds].badge.neutral,badgeText:Su[this.ds].badge.font};this.$emit(pu.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(Su[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:hu[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(pu.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===u.StandardLuminance.DarkMode,c.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppName(){return fetch("/api/name").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},Fe(),c.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(pu.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,uu.__decorate)([(0,c.attr)({mode:"boolean",attribute:"custom-design-mode"})],Cu.prototype,"customDesignMode",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"designSystems",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"ds",void 0),(0,uu.__decorate)([c.attr],Cu.prototype,"darkMode",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"neutralColor",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"accentColor",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"bodyFont",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"density",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"borderRadius",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"strokeWidth",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"designUnit",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"baseFontSize",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"baseLineHeight",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"preserveOptions",void 0),Cu=(0,uu.__decorate)([(0,c.customElement)({name:"design-system-editor",template:vu,styles:bu})],Cu);const
|
|
12895
|
+
`,fu=({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(hu).find((a=>hu[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),wu=fu(Le),yu={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient",text:"lightweight"},xu={accent:"primary",neutral:"secondary",font:"white"},ku=fu(l.designTokens),zu=fu(zs),Su={zero:{prefix:"zero",tokenDefaults:wu,buttons:yu,badge:xu},alpha:{prefix:"alpha",tokenDefaults:ku,buttons:{accent:"accent",neutral:"neutral",outline:"outline",text:"lightweight"},badge:{accent:"primary",neutral:"neutral",font:"white"}},rapid:{prefix:"rapid",tokenDefaults:zu,buttons:{accent:"primary",neutral:"neutral",outline:"primary-outline",text:"link"},badge:{accent:"primary",neutral:"neutral",font:"text"}},custom:{prefix:"zero",tokenDefaults:null,buttons:yu,badge:xu}};let Cu=class extends c.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=wu.luminance===u.StandardLuminance.DarkMode,this.luminance=wu.luminance,this.neutralColor=wu.neutralColor,this.accentColor=wu.accentColor,this.bodyFont=wu.bodyFont,this.density=wu.density,this.borderRadius=wu.borderRadius,this.strokeWidth=wu.strokeWidth,this.designUnit=wu.designUnit,this.baseFontSize=wu.baseFontSize,this.baseLineHeight=wu.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof p.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof u.Combobox||e.target instanceof u.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof p.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?u.StandardLuminance.DarkMode:u.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&c.DOM.queueUpdate((()=>{const e=fu(a);Su.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,uu.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(Su[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,uu.__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 e={name:(yield this.getAppName())||"Custom Design",value:"custom"};this.designSystems=[e],this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:Su[this.ds].prefix,buttonAppearanceAccent:Su[this.ds].buttons.accent,buttonAppearanceNeutral:Su[this.ds].buttons.neutral,buttonAppearanceOutline:Su[this.ds].buttons.outline,buttonAppearanceText:Su[this.ds].buttons.text,badgeAppearanceAccent:Su[this.ds].badge.accent,badgeAppearanceNeutral:Su[this.ds].badge.neutral,badgeText:Su[this.ds].badge.font};this.$emit(pu.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(Su[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:hu[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(pu.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===u.StandardLuminance.DarkMode,c.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppName(){return fetch("/api/name").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},Fe(),c.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(pu.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,uu.__decorate)([(0,c.attr)({mode:"boolean",attribute:"custom-design-mode"})],Cu.prototype,"customDesignMode",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"designSystems",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"ds",void 0),(0,uu.__decorate)([c.attr],Cu.prototype,"darkMode",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"neutralColor",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"accentColor",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"bodyFont",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"density",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"borderRadius",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"strokeWidth",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"designUnit",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"baseFontSize",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"baseLineHeight",void 0),(0,uu.__decorate)([c.observable],Cu.prototype,"preserveOptions",void 0),Cu=(0,uu.__decorate)([(0,c.customElement)({name:"design-system-editor",template:vu,styles:bu})],Cu);const $u=e=>{const a=(e=>{const a=(0,Ue.parseColorHexRGB)(e);return a?u.SwatchRGB.from(a):null})(e);return a?u.PaletteRGB.create(a):null},Au=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},Fu=(e,a)=>{const r=$u(e.neutralColor);u.neutralPalette.setValueFor(a,r);const t=$u(e.accentColor);u.accentPalette.setValueFor(a,t),u.baseLayerLuminance.setValueFor(a,e.luminance),u.density.setValueFor(a,e.density),u.controlCornerRadius.setValueFor(a,e.borderRadius),u.strokeWidth.setValueFor(a,e.strokeWidth),u.designUnit.setValueFor(a,e.designUnit),u.bodyFont.setValueFor(a,e.bodyFont),u.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),u.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),u.typeRampMinus1FontSize.setValueFor(a,Au(u.typeRampBaseFontSize,Ae.Yd.minusOne,a)),u.typeRampMinus1LineHeight.setValueFor(a,Au(u.typeRampBaseLineHeight,Ae.Yd.minusOne,a)),u.typeRampMinus2FontSize.setValueFor(a,Au(u.typeRampBaseFontSize,Ae.Yd.minusTwo,a)),u.typeRampMinus2LineHeight.setValueFor(a,Au(u.typeRampBaseLineHeight,Ae.Yd.minusTwo,a)),u.typeRampPlus1FontSize.setValueFor(a,Au(u.typeRampBaseFontSize,Ae.Yd.plusOne,a)),u.typeRampPlus1LineHeight.setValueFor(a,Au(u.typeRampBaseLineHeight,Ae.Yd.plusOne,a)),u.typeRampPlus2FontSize.setValueFor(a,Au(u.typeRampBaseFontSize,Ae.Yd.plusTwo,a)),u.typeRampPlus2LineHeight.setValueFor(a,Au(u.typeRampBaseLineHeight,Ae.Yd.plusTwo,a)),u.typeRampPlus3FontSize.setValueFor(a,Au(u.typeRampBaseFontSize,Ae.Yd.plusThree,a)),u.typeRampPlus3LineHeight.setValueFor(a,Au(u.typeRampBaseLineHeight,Ae.Yd.plusThree,a)),u.typeRampPlus4FontSize.setValueFor(a,Au(u.typeRampBaseFontSize,Ae.Yd.plusFour,a)),u.typeRampPlus4LineHeight.setValueFor(a,Au(u.typeRampBaseLineHeight,Ae.Yd.plusFour,a)),u.typeRampPlus5FontSize.setValueFor(a,Au(u.typeRampBaseFontSize,Ae.Yd.plusFive,a)),u.typeRampPlus5LineHeight.setValueFor(a,Au(u.typeRampBaseLineHeight,Ae.Yd.plusFive,a)),u.typeRampPlus6FontSize.setValueFor(a,Au(u.typeRampBaseFontSize,Ae.Yd.plusSix,a)),u.typeRampPlus6LineHeight.setValueFor(a,Au(u.typeRampBaseLineHeight,Ae.Yd.plusSix,a))},Ou=c.css`
|
|
12888
12896
|
:host {
|
|
12889
12897
|
--badge-fill-primary: var(--accent-fill-rest);
|
|
12890
12898
|
--badge-fill-neutral: var(--neutral-fill-rest);
|
|
@@ -13443,7 +13451,7 @@
|
|
|
13443
13451
|
<li class="color" style="background-color: ${e=>e.toColorString()}"></li>
|
|
13444
13452
|
`)}
|
|
13445
13453
|
</ul>
|
|
13446
|
-
`;let ju=class extends c.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){u[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&c.DOM.queueUpdate((()=>{const e
|
|
13454
|
+
`;let ju=class extends c.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){u[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&c.DOM.queueUpdate((()=>{const e=$u(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(pu.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,uu.__decorate)([c.observable],ju.prototype,"swatches",void 0),(0,uu.__decorate)([c.attr],ju.prototype,"type",void 0),ju=(0,uu.__decorate)([(0,c.customElement)({name:"color-palette",styles:Mu,template:Iu})],ju);const Eu=c.css`
|
|
13447
13455
|
.preview {
|
|
13448
13456
|
width: 40px;
|
|
13449
13457
|
height: 40px;
|
|
@@ -13888,4 +13896,4 @@
|
|
|
13888
13896
|
</template>
|
|
13889
13897
|
`)(e.prefix)}
|
|
13890
13898
|
`;let lh=class extends c.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[{make:"Toyota",model:"Celica",price:35e3,creationDate:1617624494293,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494295,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1619637452397,isCool:!1},{make:"Audi",model:"A6",price:8e4,creationDate:1617624494293,isCool:!0},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494295,isCool:!0},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1619637452397,isCool:!1},{make:"BMW",model:"Z8",price:9e4,creationDate:1617624494293,isCool:!1},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494295,isCool:!1},{make:"Toyota",model:"Celica",price:35e3,creationDate:1619637452397,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494293,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1617624494295,isCool:!0},{make:"Audi",model:"A6",price:8e4,creationDate:1619637452397,isCool:!1},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494293,isCool:!1},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1617624494295,isCool:!0},{make:"BMW",model:"Z8",price:9e4,creationDate:1619637452397,isCool:!0},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494293,isCool:!0}],this.columnDefs=[{field:"make"},{field:"model"},{field:"price"},{field:"creationDate"},{field:"isCool"}],this.gridOptions={defaultColDef:{resizable:!0,filter:!0},debug:!1,columnDefs:this.columnDefs,rowData:this.rowData}}setGridOptions(){this.grid.gridOptions=this.gridOptions}connectedCallback(){super.connectedCallback(),document.body.addEventListener(pu.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(pu.DS_CHANGED,(e=>{this.handleDSChanges(e)})),c.DOM.queueUpdate((()=>{this.setGridOptions(),u.bodyFont.withDefault(mu)}))}handleStyleChanges(e){const a=e.detail;a&&c.DOM.queueUpdate((()=>{Fu(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,c.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,uu.__decorate)([c.observable],lh.prototype,"grid",void 0),(0,uu.__decorate)([c.attr],lh.prototype,"prefix",void 0),(0,uu.__decorate)([c.observable],lh.prototype,"provider",void 0),(0,uu.__decorate)([c.observable],lh.prototype,"rowData",void 0),(0,uu.__decorate)([c.observable],lh.prototype,"columnDefs",void 0),(0,uu.__decorate)([c.observable],lh.prototype,"gridOptions",void 0),lh=(0,uu.__decorate)([(0,c.customElement)({name:"preview-grid",template:nh,styles:ih})],lh),((e,a="zero")=>{e&&(0,P.provideTokens)(t,o,e);const r=p.DesignSystem.getOrCreate(e).withPrefix(a);return(0,P.createDesignSystemProxy)(r)})().register(oi,Zl),(0,l.provideDesignSystem)().register(l.baseComponents,Kl),((e,a="rapid")=>{e&&(0,P.provideTokens)(i,n,e);const r=p.DesignSystem.getOrCreate(e).withPrefix(a);return(0,P.createDesignSystemProxy)(r)})().register(cu,Kl)}}]);
|
|
13891
|
-
//# sourceMappingURL=92.
|
|
13899
|
+
//# sourceMappingURL=92.50fb31298d6b1b795250c67d6266708d.js.map
|