@genesislcap/design-system-configurator 14.92.4 → 14.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/214.214.c71f4f228c490e425c07.js +3 -0
- package/dist/214.cf6192da538b4e2ee2d7d83521eee097.js.map +1 -0
- package/dist/{361.361.a733b7a46f1d3f6ada0c.js → 361.361.20880d39a0f0680ddf3f.js} +1 -1
- package/dist/{371.371.b9e80dcf201583e214a7.js → 371.371.a561a682484675db1414.js} +2 -2
- package/dist/{371.bb9e2778cca388b0d269d41a335d61d2.js.map → 371.bd3cfdcebe664d944cf25a05f56adc68.js.map} +1 -1
- package/dist/{688.688.f5760ce6d62d5feeeae6.js → 688.688.34c6c5c2280d7c46de44.js} +2 -2
- package/dist/{688.a973cf9ccfd3c1cdcf9bdad47afd0479.js.map → 688.6fe7e22c078658ea8cd077f055ea719b.js.map} +1 -1
- package/dist/701.3cd3872ef439fa424e418ebd7e4fd718.js.map +1 -0
- package/dist/{701.701.6fea2cbaa490c9798ab6.js → 701.701.1e75204912ccd2aaa306.js} +166 -157
- package/dist/721.11c520a2e42880bc92798c6f68f250b4.js.map +1 -0
- package/dist/{721.721.b0902eff80bc9fc93cdf.js → 721.721.aea4584852fac9e747d0.js} +234 -310
- package/dist/{755.3286f535f2f194a1cf0e810fede2ea5a.js.map → 755.0d64f062b3b634cd118d384847e796ca.js.map} +1 -1
- package/dist/755.755.b04bc28bc00aa586b026.js +2 -0
- package/dist/designSystemConfigurator.3ee4064a2c34e7dd0092bae7e79a57f1.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.71ef5d3d1e45401232639bc644642e4b.js.map +1 -0
- package/dist/main.a7f021f89ff0f020f2db.js +2 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +7 -7
- package/dist/701.b2cfeaa6d319cae6bea875db80ac3adb.js.map +0 -1
- package/dist/721.22ffc54444c98dca9713f534bb8a7f7c.js.map +0 -1
- package/dist/755.755.9f80c667329b48d545ce.js +0 -2
- package/dist/815.815.9c57739cb9af37e6002b.js +0 -3
- package/dist/815.ac9882d25112eab76df3410cec8bf570.js.map +0 -1
- package/dist/designSystemConfigurator.39b64348266c7579c3c37bbb4a09ce03.js.map +0 -1
- package/dist/main.741d4870b8d16867c86439219f8642b7.js.map +0 -1
- package/dist/main.7ebc1756a4e062721964.js +0 -2
- /package/dist/{815.815.9c57739cb9af37e6002b.js.LICENSE.txt → 214.214.c71f4f228c490e425c07.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[721],{41721:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[721],{41721:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>ml,ColorToken:()=>fl,ColorTokens:()=>kl,DesignSystemEditor:()=>tl,DesignSystemExport:()=>pl,DesignSystemPreview:()=>Ol,EventName:()=>Vn,PreviewComponents:()=>dl,PreviewForm:()=>jl,PreviewGrid:()=>Pl,TypographyTokens:()=>Al,defaultBodyFont:()=>qn,fontFamilies:()=>Wn});var t={};r.r(t),r.d(t,{accentFillActive:()=>p.accentFillActive,accentFillActiveDelta:()=>p.accentFillActiveDelta,accentFillFocus:()=>p.accentFillFocus,accentFillFocusDelta:()=>p.accentFillFocusDelta,accentFillHover:()=>p.accentFillHover,accentFillHoverDelta:()=>p.accentFillHoverDelta,accentFillRest:()=>p.accentFillRest,accentFillRestDelta:()=>p.accentFillRestDelta,accentForegroundActive:()=>p.accentForegroundActive,accentForegroundActiveDelta:()=>p.accentForegroundActiveDelta,accentForegroundFocus:()=>p.accentForegroundFocus,accentForegroundFocusDelta:()=>p.accentForegroundFocusDelta,accentForegroundHover:()=>p.accentForegroundHover,accentForegroundHoverDelta:()=>p.accentForegroundHoverDelta,accentForegroundRest:()=>p.accentForegroundRest,accentForegroundRestDelta:()=>p.accentForegroundRestDelta,accentPalette:()=>p.accentPalette,baseHeightMultiplier:()=>p.baseHeightMultiplier,baseLayerLuminance:()=>p.baseLayerLuminance,bodyFont:()=>p.bodyFont,controlCornerRadius:()=>p.controlCornerRadius,density:()=>p.density,designUnit:()=>p.designUnit,direction:()=>p.direction,disabledOpacity:()=>p.disabledOpacity,fillColor:()=>p.fillColor,focusStrokeInner:()=>p.focusStrokeInner,focusStrokeOuter:()=>p.focusStrokeOuter,focusStrokeWidth:()=>p.focusStrokeWidth,foregroundOnAccentActive:()=>p.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>p.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>p.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>p.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>p.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>p.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>p.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>p.foregroundOnAccentRestLarge,neutralFillActive:()=>p.neutralFillActive,neutralFillActiveDelta:()=>p.neutralFillActiveDelta,neutralFillFocus:()=>p.neutralFillFocus,neutralFillFocusDelta:()=>p.neutralFillFocusDelta,neutralFillHover:()=>p.neutralFillHover,neutralFillHoverDelta:()=>p.neutralFillHoverDelta,neutralFillInputActive:()=>p.neutralFillInputActive,neutralFillInputActiveDelta:()=>p.neutralFillInputActiveDelta,neutralFillInputFocus:()=>p.neutralFillInputFocus,neutralFillInputFocusDelta:()=>p.neutralFillInputFocusDelta,neutralFillInputHover:()=>p.neutralFillInputHover,neutralFillInputHoverDelta:()=>p.neutralFillInputHoverDelta,neutralFillInputRest:()=>p.neutralFillInputRest,neutralFillInputRestDelta:()=>p.neutralFillInputRestDelta,neutralFillLayerRest:()=>p.neutralFillLayerRest,neutralFillLayerRestDelta:()=>p.neutralFillLayerRestDelta,neutralFillRest:()=>p.neutralFillRest,neutralFillRestDelta:()=>p.neutralFillRestDelta,neutralFillStealthActive:()=>p.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>p.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>p.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>p.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>p.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>p.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>p.neutralFillStealthRest,neutralFillStealthRestDelta:()=>p.neutralFillStealthRestDelta,neutralFillStrongActive:()=>p.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>p.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>p.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>p.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>p.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>p.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>p.neutralFillStrongRest,neutralFillStrongRestDelta:()=>p.neutralFillStrongRestDelta,neutralForegroundHint:()=>p.neutralForegroundHint,neutralForegroundRest:()=>p.neutralForegroundRest,neutralLayer1:()=>p.neutralLayer1,neutralLayer2:()=>p.neutralLayer2,neutralLayer3:()=>p.neutralLayer3,neutralLayer4:()=>p.neutralLayer4,neutralLayerCardContainer:()=>p.neutralLayerCardContainer,neutralLayerFloating:()=>p.neutralLayerFloating,neutralPalette:()=>p.neutralPalette,neutralStrokeActive:()=>p.neutralStrokeActive,neutralStrokeActiveDelta:()=>p.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>p.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>p.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>p.neutralStrokeFocus,neutralStrokeFocusDelta:()=>p.neutralStrokeFocusDelta,neutralStrokeHover:()=>p.neutralStrokeHover,neutralStrokeHoverDelta:()=>p.neutralStrokeHoverDelta,neutralStrokeRest:()=>p.neutralStrokeRest,neutralStrokeRestDelta:()=>p.neutralStrokeRestDelta,strokeWidth:()=>p.strokeWidth,typeRampBaseFontSize:()=>p.typeRampBaseFontSize,typeRampBaseLineHeight:()=>p.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>p.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>p.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>p.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>p.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>p.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>p.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>p.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>p.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>p.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>p.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>p.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>p.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>p.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>p.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>p.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>p.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>se,baseLayerLuminanceValue:()=>pe,bodyFontValue:()=>ze,controlCornerRadiusValue:()=>me,densityValue:()=>ve,designTokens:()=>Ce,designUnitValue:()=>be,directionValue:()=>ue,neutralPaletteValue:()=>ce,strokeWidthValue:()=>he,typeRampBaseFontSizeValue:()=>ke,typeRampBaseLineHeightValue:()=>Se});var i=r(35814),n=r(92592),l=r(89074),g=r(6058),d=r(60724),s=r(83147),c=r(75951),p=r(13896),u=r(67973);const h=s.css`
|
|
2
2
|
:host {
|
|
3
3
|
border: calc(${p.strokeWidth} * 1px) solid transparent;
|
|
4
4
|
margin: 0;
|
|
@@ -184,9 +184,9 @@
|
|
|
184
184
|
width: 100%;
|
|
185
185
|
align-items: center;
|
|
186
186
|
}
|
|
187
|
-
`;let C=class extends s.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,n.__decorate)([s.observable],C.prototype,"control",void 0),(0,n.__decorate)([s.observable],C.prototype,"touched",void 0),(0,n.__decorate)([s.volatile],C.prototype,"showDescription",null),(0,n.__decorate)([s.volatile],C.prototype,"computedLabel",null),C=(0,n.__decorate)([(0,s.customElement)({name:"control-wrapper",styles:S,template:k})],C);var A=r(80340),T=r.n(A);const
|
|
187
|
+
`;let C=class extends s.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,n.__decorate)([s.observable],C.prototype,"control",void 0),(0,n.__decorate)([s.observable],C.prototype,"touched",void 0),(0,n.__decorate)([s.volatile],C.prototype,"showDescription",null),(0,n.__decorate)([s.volatile],C.prototype,"computedLabel",null),C=(0,n.__decorate)([(0,s.customElement)({name:"control-wrapper",styles:S,template:k})],C);var A=r(80340),T=r.n(A);const D=s.html`
|
|
188
188
|
<template>${e=>e.determinedRenderer.renderer}</template>
|
|
189
|
-
`,O=s.css``;let
|
|
189
|
+
`,O=s.css``;let F=class extends s.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,n.__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 this.prefix=this.jsonforms.core.uischema.dsPrefix,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,n.__decorate)([s.observable],F.prototype,"jsonforms",void 0),(0,n.__decorate)([s.observable],F.prototype,"props",void 0),(0,n.__decorate)([s.observable],F.prototype,"touched",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],F.prototype,"submitted",void 0),(0,n.__decorate)([s.observable],F.prototype,"dispatch",void 0),(0,n.__decorate)([s.observable],F.prototype,"control",void 0),(0,n.__decorate)([s.observable],F.prototype,"renderer",void 0),(0,n.__decorate)([s.observable],F.prototype,"prefix",void 0),F=(0,n.__decorate)([(0,s.customElement)({name:"dispatch-renderer",template:D,styles:O})],F);const L=s.html`
|
|
190
190
|
<template>
|
|
191
191
|
<json-forms
|
|
192
192
|
?readonly=${e=>e.readonly}
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
</control-wrapper>
|
|
231
231
|
</template>
|
|
232
232
|
`)(e.prefix)}
|
|
233
|
-
`,tester:(0,d.yMz)(3,M),mapper:d.xq9};var
|
|
233
|
+
`,tester:(0,d.yMz)(3,M),mapper:d.xq9};var R=r(92789);const $=e=>a=>{if(!a||!(0,d.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},j=(0,d.xDy)($("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")))))));R.MultiselectDatasource;const I={renderer:s.html`
|
|
234
234
|
${e=>((e="zero")=>s.html`
|
|
235
235
|
<template>
|
|
236
236
|
<control-wrapper
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
</control-wrapper>
|
|
256
256
|
</template>
|
|
257
257
|
`)(e.prefix)}
|
|
258
|
-
`,tester:(0,d.yMz)(4,j),mapper:d.xq9}
|
|
258
|
+
`,tester:(0,d.yMz)(4,j),mapper:d.xq9};R.OptionsDatasource;const E={renderer:s.html`
|
|
259
259
|
${e=>((e="zero")=>s.html`
|
|
260
260
|
<template>
|
|
261
261
|
<control-wrapper
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
</control-wrapper>
|
|
284
284
|
</template>
|
|
285
285
|
`)(e.prefix)}
|
|
286
|
-
`,tester:(0,d.yMz)(4,(0,d.or)(
|
|
286
|
+
`,tester:(0,d.yMz)(4,(0,d.or)($("allOptionsResourceName"),$("data"))),mapper:d.xq9},P=(0,d.wcO)((e=>"org.joda.time.DateTime"===e.description)),U={renderer:s.html`
|
|
287
287
|
${e=>((e="zero")=>s.html`
|
|
288
288
|
<template>
|
|
289
289
|
<control-wrapper
|
|
@@ -468,18 +468,18 @@
|
|
|
468
468
|
</control-wrapper>
|
|
469
469
|
</template>
|
|
470
470
|
`)(e.prefix)}
|
|
471
|
-
`,ae=(0,g.createLogger)("foundation-form"),re={renderer:ee,tester:(0,d.yMz)(2,d.Wdb),mapper:d.xq9},te=[{renderer:ee,tester:(0,d.yMz)(1,d.DRl),mapper:d.xq9},re,N,Y,V,Q,W,J,q,X,I,G,E,U,_];let oe=class extends c.FoundationElement{constructor(){super(...arguments),this.renderers=te,this.errors=[],this.data={}}resourceNameChanged(){var e,a;return(0,n.__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,ae.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,n.__awaiter)(this,void 0,void 0,(function*(){if(this.submitting)return;this.removeDataProperties()&&(yield s.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(ae.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})}}))}onChange(e){ae.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors)}connectedCallback(){super.connectedCallback(),this.addEventListener("submit-button-clicked",this._submit)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("submit-button-clicked",this._submit),this.reset()}reset(){this.submitted=!1,this.data={}}};var ie,ne,le,ge,de;(0,n.__decorate)([s.attr],oe.prototype,"resourceName",void 0),(0,n.__decorate)([s.observable],oe.prototype,"uischema",void 0),(0,n.__decorate)([s.observable],oe.prototype,"renderers",void 0),(0,n.__decorate)([s.observable],oe.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],oe.prototype,"connect",void 0),(0,n.__decorate)([s.observable],oe.prototype,"data",void 0),(0,n.__decorate)([s.observable],oe.prototype,"submitting",void 0),(0,n.__decorate)([s.observable],oe.prototype,"submitted",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],oe.prototype,"readonly",void 0),oe=(0,n.__decorate)([(0,s.customElement)({name:"foundation-form",template:L,styles:h})],oe),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ie||(ie={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(ne||(ne={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(le||(le={})),function(e){e.grey="#7c909b"}(ge||(ge={})),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"}(de||(de={}));const se=(0
|
|
472
|
-
${(0
|
|
473
|
-
`,shadowOptions
|
|
474
|
-
${(0
|
|
475
|
-
`,shadowOptions
|
|
471
|
+
`,ae=(0,g.createLogger)("foundation-form"),re={renderer:ee,tester:(0,d.yMz)(2,d.Wdb),mapper:d.xq9},te=[{renderer:ee,tester:(0,d.yMz)(1,d.DRl),mapper:d.xq9},re,N,Y,V,Q,W,J,q,X,I,G,E,U,_];let oe=class extends c.FoundationElement{constructor(){super(...arguments),this.renderers=te,this.errors=[],this.data={}}resourceNameChanged(){var e,a;return(0,n.__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,ae.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,n.__awaiter)(this,void 0,void 0,(function*(){if(this.submitting)return;this.removeDataProperties()&&(yield s.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(ae.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})}}))}onChange(e){ae.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors)}connectedCallback(){super.connectedCallback(),this.addEventListener("submit-button-clicked",this._submit)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("submit-button-clicked",this._submit),this.reset()}reset(){this.submitted=!1,this.data={}}};var ie,ne,le,ge,de;(0,n.__decorate)([s.attr],oe.prototype,"resourceName",void 0),(0,n.__decorate)([s.observable],oe.prototype,"uischema",void 0),(0,n.__decorate)([s.observable],oe.prototype,"renderers",void 0),(0,n.__decorate)([s.observable],oe.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],oe.prototype,"connect",void 0),(0,n.__decorate)([s.observable],oe.prototype,"data",void 0),(0,n.__decorate)([s.observable],oe.prototype,"submitting",void 0),(0,n.__decorate)([s.observable],oe.prototype,"submitted",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],oe.prototype,"readonly",void 0),oe=(0,n.__decorate)([(0,s.customElement)({name:"foundation-form",template:L,styles:h})],oe),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ie||(ie={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(ne||(ne={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(le||(le={})),function(e){e.grey="#7c909b"}(ge||(ge={})),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"}(de||(de={}));const se=(0,R.paletteFromHex)(ne.blue),ce=(0,R.paletteFromHex)(ge.grey),pe=p.StandardLuminance.DarkMode;const ue=r(5598).N.ltr,he=p.strokeWidth.getValueFor(p.strokeWidth.appliedTo[0]),me=4,ve=p.density.getValueFor(p.density.appliedTo[0]),be=4;var fe=r(47823);const we=()=>{(0,fe.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")},ye='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',xe=(e=fe.Hd.Normal,a=fe.U9.Regular)=>(0,fe.py)(ye,e,a),ze=ye,ke=p.typeRampBaseFontSize.getValueFor(p.typeRampBaseFontSize.appliedTo[0]),Se=p.typeRampBaseLineHeight.getValueFor(p.typeRampBaseLineHeight.appliedTo[0]),Ce={design_tokens:{color:{accent:{$value:se.source.toColorString(),$type:"color"},neutral:{$value:ce.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:ze,$type:"fontFamily"}},typography:{baseFontSize:{$value:ke,$type:"dimension"},baseLineHeight:{$value:Se,$type:"dimension"}},mode:{luminance:{$value:pe,$type:"number"}},style:{density:{$value:ve,$type:"number"},borderRadius:{$value:me,$type:"number"},strokeWidth:{$value:he,$type:"number"}},space:{designUnit:{$value:be,$type:"number"}}}};class Ae extends R.Accordion{}const Te=Ae.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,R.foundationAccordionTemplate)(e,a),styles:(e,a)=>s.css`
|
|
472
|
+
${(0,R.foundationAccordionStyles)(e,a)}
|
|
473
|
+
`,shadowOptions:R.foundationAccordionShadowOptions},R.defaultAccordionConfig));class De extends R.AccordionItem{}const Oe=De.compose(Object.assign({baseName:"accordion-item",template:(e,a)=>(0,R.foundationAccordionItemTemplate)(e,a),styles:(e,a)=>s.css`
|
|
474
|
+
${(0,R.foundationAccordionItemStyles)(e,a)};
|
|
475
|
+
`,shadowOptions:R.foundationAccordionItemShadowOptions},R.defaultAccordionItemConfig));class Fe extends R.ActionsMenu{}const Le=Fe.compose({baseName:"actions-menu",styles:(e,a)=>s.css`
|
|
476
476
|
:host {
|
|
477
477
|
--actions-opener-heigght-multiplier: 0.6px;
|
|
478
478
|
--menu-item-height-multiplier: 0.5px;
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
-
${(0
|
|
482
|
-
`,template
|
|
481
|
+
${(0,R.actionsMenuBaseStyles)(e,a)}
|
|
482
|
+
`,template:R.foundationActionsMenuTemplate});var Me=r(82694);const Ne=(e,a=1)=>new Me.ColorRGBA64(e.r,e.g,e.b,a).toStringWebRGBA(),Re=(0,Me.parseColorHexRGB)(ie.white),$e=(e=1)=>Ne(Re,e),je=((0,Me.parseColorHexRGB)(ie.black),(0,Me.parseColorHexRGB)("#585858")),Ie=(p.SwatchRGB.create(je.r,je.g,je.b),(0,Me.parseColorHexRGB)("#202126")),Ee=p.SwatchRGB.create(Ie.r,Ie.g,Ie.b),Pe=(p.PaletteRGB.from(Ee),(0,Me.parseColorHexRGB)(ne.blue)),Ue=(e=1)=>Ne(Pe,e),Be=p.SwatchRGB.create(Pe.r,Pe.g,Pe.b),Ge=(p.PaletteRGB.from(Be),(0,Me.parseColorHexRGB)(ne.purple)),_e=(e=1)=>Ne(Ge,e),He=(0,Me.parseColorHexRGB)(le.orange),Ye=(e=1)=>Ne(He,e),Ve=(0,Me.parseColorHexRGB)(le.teal),Qe=(e=1)=>Ne(Ve,e),We=((0,Me.parseColorHexRGB)(de.longGreen),(0,Me.parseColorHexRGB)(de.chartPink),(0,Me.parseColorHexRGB)(de.warningYellow)),qe=(0,Me.parseColorHexRGB)(de.chartPink),Je=(e=1)=>Ne(qe,e);function Ze(e,a){return new c.PropertyStyleSheetBehavior("appearance",e,a)}const Ke=.3,Xe=.1,ea=.5,aa=s.css`
|
|
483
483
|
:host([appearance='primary-blue']) {
|
|
484
484
|
background: ${Ue(Ke)};
|
|
485
485
|
border: 1px solid ${ne.blue};
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
:host([appearance='primary-blue']:active) {
|
|
493
493
|
background: ${Ue(Xe)};
|
|
494
494
|
border: 1px solid ${Ue(Ke)};
|
|
495
|
-
color: ${
|
|
495
|
+
color: ${$e(ea)};
|
|
496
496
|
}
|
|
497
497
|
`,ra=s.css`
|
|
498
498
|
:host([appearance='primary-purple']) {
|
|
@@ -507,7 +507,7 @@
|
|
|
507
507
|
:host([appearance='primary-purple']:active) {
|
|
508
508
|
background: ${_e(Xe)};
|
|
509
509
|
border: 1px solid ${_e(Ke)};
|
|
510
|
-
color: ${
|
|
510
|
+
color: ${$e(ea)};
|
|
511
511
|
}
|
|
512
512
|
`,ta=s.css`
|
|
513
513
|
:host {
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
background-origin: border-box;
|
|
546
546
|
border: solid 1px transparent;
|
|
547
547
|
box-shadow: 2px 1000px 1px rgb(0 0 0 / 30%) inset;
|
|
548
|
-
color: ${
|
|
548
|
+
color: ${$e(ea)};
|
|
549
549
|
}
|
|
550
550
|
`,oa=s.css`
|
|
551
551
|
:host([appearance='secondary-orange']) {
|
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
:host([appearance='secondary-orange']:active) {
|
|
561
561
|
background: ${Ye(Xe)};
|
|
562
562
|
border: 1px solid ${Ye(Ke)};
|
|
563
|
-
color: ${
|
|
563
|
+
color: ${$e(ea)};
|
|
564
564
|
}
|
|
565
565
|
`,ia=s.css`
|
|
566
566
|
:host([appearance='secondary-teal']) {
|
|
@@ -575,7 +575,7 @@
|
|
|
575
575
|
:host([appearance='secondary-teal']:active) {
|
|
576
576
|
background: ${Qe(Xe)};
|
|
577
577
|
border: 1px solid ${Qe(Ke)};
|
|
578
|
-
color: ${
|
|
578
|
+
color: ${$e(ea)};
|
|
579
579
|
}
|
|
580
580
|
`,na=s.css`
|
|
581
581
|
:host([appearance='neutral-grey']) {
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
border: 1px solid transparent;
|
|
651
651
|
border-right-color: ${Ue(Ke)};
|
|
652
652
|
border-left-color: ${_e(Ke)};
|
|
653
|
-
color: ${
|
|
653
|
+
color: ${$e(ea)};
|
|
654
654
|
}
|
|
655
655
|
`,ga=s.css`
|
|
656
656
|
:host([appearance='outline-secondary-orange']) {
|
|
@@ -665,7 +665,7 @@
|
|
|
665
665
|
:host([appearance='outline-secondary-orange']:active) {
|
|
666
666
|
background: transparent;
|
|
667
667
|
border: 1px solid ${Ye(Ke)};
|
|
668
|
-
color: ${
|
|
668
|
+
color: ${$e(ea)};
|
|
669
669
|
}
|
|
670
670
|
`,da=s.css`
|
|
671
671
|
:host([appearance='outline-secondary-teal']) {
|
|
@@ -680,24 +680,24 @@
|
|
|
680
680
|
:host([appearance='outline-secondary-teal']:active) {
|
|
681
681
|
background: transparent;
|
|
682
682
|
border: 1px solid ${Qe(Ke)};
|
|
683
|
-
color: ${
|
|
683
|
+
color: ${$e(ea)};
|
|
684
684
|
}
|
|
685
685
|
`,sa=(e,a)=>s.css`
|
|
686
|
-
${(0
|
|
686
|
+
${(0,R.foundationButtonStyles)(e,a)}
|
|
687
687
|
${s.css`
|
|
688
688
|
:host {
|
|
689
689
|
margin: 5px;
|
|
690
690
|
}
|
|
691
691
|
`}
|
|
692
|
-
`.withBehaviors(Ze("primary-blue",aa),Ze("primary-purple",ra),Ze("primary-gradient",ta),Ze("secondary-orange",oa),Ze("secondary-teal",ia),Ze("neutral-grey",na),Ze("outline-primary-gradient",la),Ze("outline-secondary-orange",ga),Ze("outline-secondary-teal",da));class ca extends
|
|
693
|
-
${(0
|
|
692
|
+
`.withBehaviors(Ze("primary-blue",aa),Ze("primary-purple",ra),Ze("primary-gradient",ta),Ze("secondary-orange",oa),Ze("secondary-teal",ia),Ze("neutral-grey",na),Ze("outline-primary-gradient",la),Ze("outline-secondary-orange",ga),Ze("outline-secondary-teal",da));class ca extends R.Anchor{}const pa=ca.compose(Object.assign({baseName:"anchor",template:(e,a)=>(0,R.foundationAnchorTemplate)(e,a),styles:(e,a)=>s.css`
|
|
693
|
+
${(0,R.foundationAnchorStyles)(e,a)}
|
|
694
694
|
${sa(e,a)}
|
|
695
|
-
`.withBehaviors(...sa(e,a).behaviors),shadowOptions
|
|
696
|
-
${(0
|
|
697
|
-
`,shadowOptions
|
|
698
|
-
${(0
|
|
699
|
-
`,shadowOptions
|
|
700
|
-
${(0
|
|
695
|
+
`.withBehaviors(...sa(e,a).behaviors),shadowOptions:R.foundationAnchorShadowOptions},R.defaultAnchorConfig));class ua extends R.AnchoredRegion{}const ha=ua.compose(Object.assign({baseName:"anchored-region",template:(e,a)=>(0,R.foundationAnchoredRegionTemplate)(e,a),styles:(e,a)=>s.css`
|
|
696
|
+
${(0,R.foundationAnchoredRegionStyles)(e,a)}
|
|
697
|
+
`,shadowOptions:R.foundationAnchoredRegionShadowOptions},R.defaultAnchoredRegionConfig));class ma extends R.Avatar{}const va=ma.compose(Object.assign({baseName:"avatar",template:(e,a)=>(0,R.foundationAvatarTemplate)(e,a),styles:(e,a)=>s.css`
|
|
698
|
+
${(0,R.foundationAvatarStyles)(e,a)}
|
|
699
|
+
`,shadowOptions:R.foundationAvatarShadowOptions},R.defaultAvatarConfig));class ba extends R.Badge{}const fa=ba.compose(Object.assign({baseName:"badge",template:(e,a)=>(0,R.foundationBadgeTemplate)(e,a),styles:(e,a)=>s.css`
|
|
700
|
+
${(0,R.foundationBadgeStyles)(e,a)}
|
|
701
701
|
:host {
|
|
702
702
|
--badge-fill-primary: ${Ue()};
|
|
703
703
|
--badge-fill-secondary: ${Qe()};
|
|
@@ -710,15 +710,15 @@
|
|
|
710
710
|
:host .control {
|
|
711
711
|
padding: calc(${p.designUnit} * 1px) calc(${p.designUnit} * 2px);
|
|
712
712
|
}
|
|
713
|
-
`,shadowOptions
|
|
714
|
-
${
|
|
713
|
+
`,shadowOptions:R.foundationBadgeShadowOptions},R.defaultBadgeConfig)),wa=s.css`
|
|
714
|
+
${R.foundationBannerStyles}
|
|
715
715
|
.banner {
|
|
716
716
|
background-color: ${p.neutralLayer1};
|
|
717
717
|
}
|
|
718
|
-
`,ya
|
|
719
|
-
${(0
|
|
720
|
-
`,shadowOptions:undefined},{}));class Ca extends
|
|
721
|
-
${(0
|
|
718
|
+
`,ya=R.foundationBannerShadowOptions;class xa extends R.Banner{}const za=xa.compose({baseName:"banner",shadowOptions:ya,styles:wa,template:R.foundationBannerTemplate});class ka extends R.Breadcrumb{}const Sa=ka.compose(Object.assign({baseName:"breadcrumb",template:(e,a)=>(0,R.foundationBreadcrumbTemplate)(e,a),styles:(e,a)=>s.css`
|
|
719
|
+
${(0,R.foundationBreadcrumbStyles)(e,a)}
|
|
720
|
+
`,shadowOptions:undefined},{}));class Ca extends R.BreadcrumbItem{}const Aa=Ca.compose(Object.assign({baseName:"breadcrumb-item",template:(e,a)=>(0,R.foundationBreadcrumbItemTemplate)(e,a),styles:(e,a)=>s.css`
|
|
721
|
+
${(0,R.foundationBreadcrumbItemStyles)(e,a)}
|
|
722
722
|
:host {
|
|
723
723
|
--neutral-foreground-rest: #18b2e3;
|
|
724
724
|
--accent-foreground-rest: #f1f1f1;
|
|
@@ -728,16 +728,16 @@
|
|
|
728
728
|
.separator {
|
|
729
729
|
color: var(--neutral-stroke-rest);
|
|
730
730
|
}
|
|
731
|
-
`,shadowOptions
|
|
732
|
-
${(0
|
|
733
|
-
`,shadowOptions
|
|
734
|
-
${(0
|
|
731
|
+
`,shadowOptions:R.foundationBreadcrumbItemShadowOptions},R.defaultBreadcrumbItemConfig));class Ta extends R.Button{}const Da=Ta.compose(Object.assign({baseName:"button",template:(e,a)=>(0,R.foundationButtonTemplate)(e,a),styles:sa,shadowOptions:R.foundationButtonShadowOptions},R.defaultButtonConfig));class Oa extends R.Calendar{}const Fa=Oa.compose(Object.assign({baseName:"calendar",template:(e,a)=>(0,R.foundationCalendarTemplate)(e,a),styles:()=>s.css`
|
|
732
|
+
${(0,R.foundationCalendarStyles)()}
|
|
733
|
+
`,shadowOptions:R.foundationCalendarShadowOptions},R.defaultCalendarConfig));class La extends R.Card{}const Ma=La.compose(Object.assign({baseName:"card",template:(e,a)=>(0,R.foundationCardTemplate)(e,a),styles:(e,a)=>s.css`
|
|
734
|
+
${(0,R.foundationCardStyles)(e,a)}
|
|
735
735
|
:host {
|
|
736
736
|
background-color: var(--zero-card-fill-color, var(--neutral-layer-2));
|
|
737
737
|
color: ${p.neutralForegroundRest};
|
|
738
738
|
}
|
|
739
|
-
`,shadowOptions
|
|
740
|
-
${(0
|
|
739
|
+
`,shadowOptions:R.foundationCardShadowOptions},R.defaultCardConfig));class Na extends R.Checkbox{}const Ra=Na.compose(Object.assign({baseName:"checkbox",template:(e,a)=>(0,R.foundationCheckboxTemplate)(e,a),styles:(e,a)=>s.css`
|
|
740
|
+
${(0,R.foundationCheckboxStyles)(e,a)}
|
|
741
741
|
:host {
|
|
742
742
|
--primary-gradient-angle: -113.5deg;
|
|
743
743
|
--foreground-on-accent-rest: ${ie.white};
|
|
@@ -756,8 +756,8 @@
|
|
|
756
756
|
box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;
|
|
757
757
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
758
758
|
}
|
|
759
|
-
`,shadowOptions
|
|
760
|
-
${(0
|
|
759
|
+
`,shadowOptions:R.foundationCheckboxShadowOptions},R.defaultCheckboxConfig)),$a=(0,Me.parseColorHexRGB)("#F1F1F1"),ja=Ne($a,1),Ia=(0,Me.parseColorHexRGB)("#879BA6"),Ea=Ne(Ia,.06),Pa=(0,Me.parseColorHexRGB)("#879BA6"),Ua=Ne(Pa,1),Ba=(0,Me.parseColorHexRGB)("#121212"),Ga=Ne(Ba,1),_a=(0,Me.parseColorHexRGB)("#2e3339"),Ha=Ne(_a,1);var Ya;!function(e){e.PrimaryBlue="primary-blue",e.PrimaryPurple="primary-purple",e.PrimaryGradient="primary-gradient",e.SecondaryOrange="secondary-orange",e.SecondaryTeal="secondary-teal",e.NeutralGrey="neutral-grey",e.OutlinePrimaryGradient="outline-primary-gradient",e.OutlineSecondaryOrange="outline-secondary-orange",e.OutlineSecondaryTeal="outline-secondary-teal"}(Ya||(Ya={}));Object.values(Ya);class Va extends R.Combobox{}const Qa=Va.compose(Object.assign({baseName:"combobox",template:(e,a)=>(0,R.foundationComboboxTemplate)(e,a),styles:(e,a)=>s.css`
|
|
760
|
+
${(0,R.foundationComboboxStyles)(e,a)}
|
|
761
761
|
:host {
|
|
762
762
|
--primary-gradient-angle: -113.5deg;
|
|
763
763
|
|
|
@@ -806,12 +806,12 @@
|
|
|
806
806
|
:host(:not([disabled])) .control:active {
|
|
807
807
|
background: none;
|
|
808
808
|
}
|
|
809
|
-
`,shadowOptions
|
|
810
|
-
${(0
|
|
811
|
-
`,shadowOptions
|
|
812
|
-
${(0
|
|
813
|
-
`,shadowOptions
|
|
814
|
-
${(0
|
|
809
|
+
`,shadowOptions:R.foundationComboboxShadowOptions},R.defaultComboboxConfig));class Wa extends R.ConnectionIndicator{}const qa=Wa.compose({baseName:"connection-indicator",template:R.foundationConnectionIndicatorTemplate,styles:R.foundationConnectionIndicatorStyles});class Ja extends R.DataGridCell{}Ja.compose(Object.assign({baseName:"data-grid-cell",template:c.dataGridCellTemplate,styles:(e,a)=>s.css`
|
|
810
|
+
${(0,R.foundationDataGridCellStyles)(e,a)}
|
|
811
|
+
`,shadowOptions:R.foundationDataGridCellShadowOptions},R.defaultDataGridCellConfig));class Za extends R.DataGridRow{}Za.compose(Object.assign({baseName:"data-grid-row",template:c.dataGridRowTemplate,styles:(e,a)=>s.css`
|
|
812
|
+
${(0,R.foundationDataGridRowStyles)(e,a)}
|
|
813
|
+
`,shadowOptions:R.foundationDataGridRowShadowOptions},R.defaultDataGridRowConfig));class Ka extends R.DataGrid{}const Xa=Ka.compose(Object.assign({baseName:"data-grid",template:(e,a)=>(0,R.foundationDataGridTemplate)(e,a),styles:(e,a)=>s.css`
|
|
814
|
+
${(0,R.foundationDataGridStyles)(e,a)}
|
|
815
815
|
::slotted(.sticky-header),
|
|
816
816
|
::slotted(.header) {
|
|
817
817
|
border-bottom-color: var(--neutral-color);
|
|
@@ -822,10 +822,10 @@
|
|
|
822
822
|
::slotted([role='row']) {
|
|
823
823
|
background-color: #1f2126;
|
|
824
824
|
}
|
|
825
|
-
`,shadowOptions
|
|
826
|
-
${(0
|
|
827
|
-
`;class ar extends
|
|
828
|
-
${
|
|
825
|
+
`,shadowOptions:R.foundationDataGridShadowOptions},R.defaultDataGridConfig)),er=s.html`
|
|
826
|
+
${(0,R.getPrefixedDatePicker)("zero")}
|
|
827
|
+
`;class ar extends R.DatePicker{}const rr=ar.compose(Object.assign({baseName:"date-picker",template:er,styles:()=>s.css`
|
|
828
|
+
${R.foundationDatePickerStyles}
|
|
829
829
|
:host {
|
|
830
830
|
--primary-gradient-angle: -113.5deg;
|
|
831
831
|
}
|
|
@@ -886,7 +886,7 @@
|
|
|
886
886
|
margin: 0;
|
|
887
887
|
${xe(fe.Hd.Normal,fe.U9.Bold)}
|
|
888
888
|
}
|
|
889
|
-
`;class lr extends p.DesignSystemProvider{constructor(){super(),(0
|
|
889
|
+
`;class lr extends p.DesignSystemProvider{constructor(){super(),(0,R.provideTokens)(t,o,this)}}(0,tr.__decorate)([(0,s.attr)({attribute:"card-fill-color",converter:R.swatchConverter}),(0,R.designToken)(p.neutralFillStealthRest)],lr.prototype,"cardFillColor",void 0),(0,tr.__decorate)([(0,s.attr)({attribute:"card-foreground-color",converter:R.swatchConverter}),(0,R.designToken)(p.neutralForegroundRest)],lr.prototype,"cardForegroundColor",void 0);const gr=lr.compose({baseName:"design-system-provider",template:s.html`
|
|
890
890
|
<slot></slot>
|
|
891
891
|
`,styles:e=>{const a=(e=>s.css`
|
|
892
892
|
${nr(e,"1","6")}
|
|
@@ -904,7 +904,7 @@
|
|
|
904
904
|
${xe()}
|
|
905
905
|
}
|
|
906
906
|
`}}),dr=(0,Me.parseColorHexRGB)("#121212"),sr=Ne(dr,1),cr=s.css`
|
|
907
|
-
${
|
|
907
|
+
${R.foundationDialogStyles}
|
|
908
908
|
:host {
|
|
909
909
|
--dialog-background: ${p.neutralLayer2};
|
|
910
910
|
}
|
|
@@ -958,11 +958,11 @@
|
|
|
958
958
|
}
|
|
959
959
|
|
|
960
960
|
.close-icon:hover svg {
|
|
961
|
-
background-color: ${
|
|
961
|
+
background-color: ${$e(.05)};
|
|
962
962
|
}
|
|
963
963
|
|
|
964
964
|
.close-icon:hover svg g path {
|
|
965
|
-
fill: ${
|
|
965
|
+
fill: ${$e(1)};
|
|
966
966
|
}
|
|
967
967
|
|
|
968
968
|
.close-icon:active svg {
|
|
@@ -970,18 +970,18 @@
|
|
|
970
970
|
}
|
|
971
971
|
|
|
972
972
|
.close-icon:active svg g path {
|
|
973
|
-
fill: ${
|
|
974
|
-
}
|
|
975
|
-
`,pr
|
|
976
|
-
${(0
|
|
977
|
-
`,shadowOptions
|
|
978
|
-
${(0
|
|
979
|
-
`,shadowOptions
|
|
980
|
-
${(0
|
|
981
|
-
`,template
|
|
982
|
-
${(0
|
|
983
|
-
`,Sr
|
|
984
|
-
${
|
|
973
|
+
fill: ${$e(.33)};
|
|
974
|
+
}
|
|
975
|
+
`,pr=R.defaultDialogConfig,ur=R.foundationDialogTemplate,hr=R.foundationDialogShadowOptions;class mr extends R.Dialog{}const vr=mr.compose(Object.assign({baseName:"dialog",shadowOptions:hr,styles:cr,template:ur},pr));class br extends R.Disclosure{}const fr=br.compose(Object.assign({baseName:"disclosure",template:(e,a)=>(0,R.foundationDisclosureTemplate)(e,a),styles:(e,a)=>s.css`
|
|
976
|
+
${(0,R.foundationDisclosureStyles)(e,a)}
|
|
977
|
+
`,shadowOptions:R.foundationDialogShadowOptions},R.defaultDisclosureConfig));class wr extends R.Divider{}const yr=wr.compose(Object.assign({baseName:"divider",template:(e,a)=>(0,R.foundationDividerTemplate)(e,a),styles:(e,a)=>s.css`
|
|
978
|
+
${(0,R.foundationDividerStyles)(e,a)}
|
|
979
|
+
`,shadowOptions:R.foundationDividerShadowOptions},R.defaultDividerConfig));class xr extends R.DropdownMenu{}const zr=xr.compose({baseName:"dropdown-menu",styles:(e,a)=>s.css`
|
|
980
|
+
${(0,R.dropdownMenuBaseStyles)("zero",e,a)}
|
|
981
|
+
`,template:R.foundationDropdownMenuTemplate}),kr=s.html`
|
|
982
|
+
${(0,R.getPrefixedErrorBanner)("zero")}
|
|
983
|
+
`,Sr=R.foundationErrorBannerShadowOptions;class Cr extends R.ErrorBanner{}const Ar=Cr.compose({baseName:"error-banner",template:kr,shadowOptions:Sr});class Tr extends R.ErrorBoundary{}const Dr=Tr.compose({baseName:"error-boundary",template:R.foundationErrorBoundaryTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}});class Or extends R.ErrorDialog{}const Fr=Or.compose({baseName:"error-dialog",styles:R.foundationErrorDialogStyles,template:R.errorDialogTemplate,shadowOptions:R.foundationErrorDialogShadowOptions}),Lr=s.css`
|
|
984
|
+
${R.foundationFileUploadStyles}
|
|
985
985
|
::-webkit-scrollbar {
|
|
986
986
|
width: 12px;
|
|
987
987
|
}
|
|
@@ -998,116 +998,40 @@
|
|
|
998
998
|
border: 3px solid rgb(31 33 38);
|
|
999
999
|
}
|
|
1000
1000
|
`,Mr=s.html`
|
|
1001
|
-
${(0
|
|
1002
|
-
`,Nr
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
<div class="flex-row">
|
|
1006
|
-
<div>${e=>e.label}</div>
|
|
1007
|
-
${Er}
|
|
1008
|
-
</div>
|
|
1009
|
-
<div class="flex-row">
|
|
1010
|
-
<zero-text-field ${(0,s.ref)("textFilterField")} type="text" :value=${(0,Ir.Z)((e=>e.textFilter))} />
|
|
1011
|
-
</div>
|
|
1012
|
-
`,Ur=s.html`
|
|
1013
|
-
<div class="flex-row">
|
|
1014
|
-
<div>${e=>e.label}</div>
|
|
1015
|
-
${Er}
|
|
1016
|
-
</div>
|
|
1017
|
-
<div class="flex-row">
|
|
1018
|
-
<zero-text-field
|
|
1019
|
-
${(0,s.ref)("numFilterFieldMin")}
|
|
1020
|
-
type="number"
|
|
1021
|
-
:value=${(0,Ir.Z)((e=>e.numFilterMin))}
|
|
1022
|
-
placeholder="min"
|
|
1023
|
-
></zero-text-field>
|
|
1024
|
-
<zero-text-field
|
|
1025
|
-
${(0,s.ref)("numFilterFieldMax")}
|
|
1026
|
-
type="number"
|
|
1027
|
-
:value=${(0,Ir.Z)((e=>e.numFilterMax))}
|
|
1028
|
-
placeholder="max"
|
|
1029
|
-
></zero-text-field>
|
|
1030
|
-
</div>
|
|
1031
|
-
`,Br=s.html`
|
|
1032
|
-
<div class="flex-row">
|
|
1033
|
-
<div>${e=>e.label}</div>
|
|
1034
|
-
${Er}
|
|
1035
|
-
</div>
|
|
1036
|
-
<div class="flex-row">
|
|
1037
|
-
<zero-text-field
|
|
1038
|
-
${(0,s.ref)("dateFilterFieldMin")}
|
|
1039
|
-
type="date"
|
|
1040
|
-
:value=${(0,Ir.Z)((e=>e.dateFilterMin))}
|
|
1041
|
-
placeholder="min"
|
|
1042
|
-
></zero-text-field>
|
|
1043
|
-
<zero-text-field
|
|
1044
|
-
${(0,s.ref)("dateFilterFieldMax")}
|
|
1045
|
-
type="date"
|
|
1046
|
-
:value=${(0,Ir.Z)((e=>e.dateFilterMax))}
|
|
1047
|
-
placeholder="max"
|
|
1048
|
-
></zero-text-field>
|
|
1049
|
-
</div>
|
|
1050
|
-
`;function Gr(e){var a,r,t;return null!==(t=null===(r=null===(a=null==e?void 0:e.event)||void 0===a?void 0:a.target)||void 0===r?void 0:r.value)&&void 0!==t?t:"all"}const _r=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],Hr=s.html`
|
|
1051
|
-
<div class="flex-row">
|
|
1052
|
-
<div>${e=>e.label}</div>
|
|
1053
|
-
${Er}
|
|
1054
|
-
</div>
|
|
1055
|
-
<div class="flex-row">
|
|
1056
|
-
<zero-select @change="${(e,a)=>e.onBooleanFilterSelection(Gr(a))}}">
|
|
1057
|
-
${(0,s.repeat)((()=>_r),s.html`
|
|
1058
|
-
<zero-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1059
|
-
${e=>e.name}
|
|
1060
|
-
</zero-option>
|
|
1061
|
-
`)}
|
|
1062
|
-
</zero-select>
|
|
1063
|
-
</div>
|
|
1064
|
-
`,Yr=s.html`
|
|
1065
|
-
<div class="flex-row">
|
|
1066
|
-
<div>${e=>e.label}</div>
|
|
1067
|
-
${Er}
|
|
1068
|
-
</div>
|
|
1069
|
-
<div class="flex-row">
|
|
1070
|
-
<zero-select @change="${(e,a)=>e.onEnumFilterSelection(Gr(a))}}">
|
|
1071
|
-
${(0,s.repeat)((e=>e.enumFilterOptions),s.html`
|
|
1072
|
-
<zero-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1073
|
-
${e=>e.name}
|
|
1074
|
-
</zero-option>
|
|
1075
|
-
`)}
|
|
1076
|
-
</zero-select>
|
|
1077
|
-
</div>
|
|
1078
|
-
`,Vr=s.html`
|
|
1079
|
-
<div class="filter-wrapper">${e=>(e=>{switch(e.type){case"number":return Ur;case"date":return Br;case"boolean":return Hr;case"enum":return Yr;default:return Pr}})(e)}</div>
|
|
1080
|
-
`;class Qr extends $.Filter{constructor(){super(...arguments),this.type=super.type,this.enumFilterOptions=super.enumFilterOptions}}(0,tr.__decorate)([s.attr],Qr.prototype,"fieldName",void 0),(0,tr.__decorate)([s.attr],Qr.prototype,"label",void 0),(0,tr.__decorate)([s.attr],Qr.prototype,"type",void 0),(0,tr.__decorate)([s.attr],Qr.prototype,"target",void 0),(0,tr.__decorate)([s.observable],Qr.prototype,"enumFilterOptions",void 0);const Wr=Qr.compose({baseName:"filter",template:Vr,styles:$.foundationFilterStyles});var qr=r(9770);const Jr=s.html`
|
|
1001
|
+
${(0,R.getPrefixedFileUpload)("zero")}
|
|
1002
|
+
`,Nr=R.defaultFileUploadConfig,Rr=R.foundationFileUploadShadowOptions;class $r extends R.FileUpload{}const jr=$r.compose(Object.assign({baseName:"file-upload",shadowOptions:Rr,styles:Lr,template:Mr},Nr)),Ir=s.html`
|
|
1003
|
+
${(0,R.getPrefixedFilterTemplate)("zero")}
|
|
1004
|
+
`;class Er extends R.Filter{}const Pr=Er.compose({baseName:"filter",template:Ir,styles:R.foundationFilterStyles});var Ur=r(9770);const Br=s.html`
|
|
1081
1005
|
${(0,s.when)((e=>e.collapsed),s.html`
|
|
1082
1006
|
<zero-icon name="chevron-down"></zero-icon>
|
|
1083
1007
|
`)}
|
|
1084
1008
|
${(0,s.when)((e=>!e.collapsed),s.html`
|
|
1085
1009
|
<zero-icon name="chevron-up"></zero-icon>
|
|
1086
1010
|
`)}
|
|
1087
|
-
`,
|
|
1011
|
+
`,Gr=s.html`
|
|
1088
1012
|
<div
|
|
1089
|
-
class=${e=>(0,
|
|
1013
|
+
class=${e=>(0,Ur.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1090
1014
|
@click="${e=>e.toggle()}"
|
|
1091
1015
|
>
|
|
1092
|
-
${
|
|
1016
|
+
${Br}
|
|
1093
1017
|
</div>
|
|
1094
|
-
<div class=${e=>(0,
|
|
1018
|
+
<div class=${e=>(0,Ur.A)(["filter-bar",!0],["collapsed",e.collapsed])}>
|
|
1095
1019
|
<div class="filter-grid" ${(0,s.ref)("filterGrid")}>
|
|
1096
1020
|
${(0,s.repeat)((e=>e.fields),s.html`
|
|
1097
1021
|
<zero-filter
|
|
1098
1022
|
label="${e=>e.UI_LABEL}"
|
|
1099
1023
|
target="${(e,a)=>{var r;return null===(r=a.parent)||void 0===r?void 0:r.target}}"
|
|
1100
|
-
type="${e=>(0
|
|
1024
|
+
type="${e=>(0,R.mapType)(e.TYPE)}"
|
|
1101
1025
|
fieldName="${e=>e.NAME}"
|
|
1102
1026
|
enumOptions="${e=>e.VALID_VALUES}"
|
|
1103
1027
|
/>
|
|
1104
1028
|
`)}
|
|
1105
1029
|
</div>
|
|
1106
1030
|
</div>
|
|
1107
|
-
`,
|
|
1108
|
-
${
|
|
1109
|
-
`;class
|
|
1110
|
-
${(0
|
|
1031
|
+
`,_r=s.html`
|
|
1032
|
+
${Gr}
|
|
1033
|
+
`;class Hr extends R.FilterBar{constructor(){super(...arguments),this.ready=super.ready,this.collapsed=!0}}(0,tr.__decorate)([s.attr],Hr.prototype,"resource",void 0),(0,tr.__decorate)([s.attr],Hr.prototype,"only",void 0),(0,tr.__decorate)([s.attr],Hr.prototype,"labels",void 0),(0,tr.__decorate)([s.attr],Hr.prototype,"target",void 0),(0,tr.__decorate)([s.observable],Hr.prototype,"ready",void 0),(0,tr.__decorate)([s.observable],Hr.prototype,"fields",void 0),(0,tr.__decorate)([s.observable],Hr.prototype,"collapsed",void 0);const Yr=Hr.compose({baseName:"filter-bar",template:_r,styles:(e,a)=>s.css`
|
|
1034
|
+
${(0,R.foundationFilterBarStyles)(e,a)}
|
|
1111
1035
|
.toggle,
|
|
1112
1036
|
.toggle-collapsed {
|
|
1113
1037
|
background: var(--ag-background-color, #181d1f);
|
|
@@ -1118,8 +1042,8 @@
|
|
|
1118
1042
|
.toggle-collapsed:hover {
|
|
1119
1043
|
color: var(--ag-alpine-active-color, #2196f3);
|
|
1120
1044
|
}
|
|
1121
|
-
`});class
|
|
1122
|
-
${(0
|
|
1045
|
+
`});class Vr extends R.FlexLayout{}const Qr=Vr.compose(Object.assign({baseName:"flex-layout",shadowOptions:R.foundationFlexLayoutShadowOptions,styles:R.foundationFlexLayoutStyles,template:R.foundationFlexLayoutTemplate},R.defaultFlexLayoutConfig));class Wr extends R.Flipper{}const qr=Wr.compose(Object.assign({baseName:"flipper",template:(e,a)=>(0,R.foundationFlipperTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1046
|
+
${(0,R.foundationFlipperStyles)(e,a)}
|
|
1123
1047
|
:host {
|
|
1124
1048
|
--foreground-on-accent-rest: ${ie.white};
|
|
1125
1049
|
--foreground-on-accent-hover: ${ie.white};
|
|
@@ -1142,8 +1066,8 @@
|
|
|
1142
1066
|
${ne.purple}
|
|
1143
1067
|
);
|
|
1144
1068
|
}
|
|
1145
|
-
`,shadowOptions
|
|
1146
|
-
${
|
|
1069
|
+
`,shadowOptions:R.foundationFlipperShadowOptions},R.defaultFlipperConfig)),Jr=s.css`
|
|
1070
|
+
${R.foundationFlyoutStyles}
|
|
1147
1071
|
div.flyout {
|
|
1148
1072
|
background-color: ${p.neutralLayer2};
|
|
1149
1073
|
border-color: ${p.neutralFillHover};
|
|
@@ -1169,20 +1093,20 @@
|
|
|
1169
1093
|
background-color: ${p.neutralFillHover};
|
|
1170
1094
|
border-radius: 3px;
|
|
1171
1095
|
}
|
|
1172
|
-
`,
|
|
1173
|
-
${(0
|
|
1174
|
-
`,
|
|
1175
|
-
${(0
|
|
1176
|
-
`,shadowOptions
|
|
1177
|
-
${(0
|
|
1178
|
-
`,shadowOptions:
|
|
1179
|
-
${(0
|
|
1096
|
+
`,Zr=s.html`
|
|
1097
|
+
${(0,R.getPrefixedFlyout)("zero")}
|
|
1098
|
+
`,Kr=R.defaultFlyoutConfig,Xr=R.foundationFlyoutShadowOptions;class et extends R.Flyout{}const at=et.compose(Object.assign({baseName:"flyout",shadowOptions:Xr,styles:Jr,template:Zr},Kr));class rt extends R.GridLayout{}const tt=rt.compose(Object.assign({baseName:"grid-layout",shadowOptions:R.foundationGridLayoutShadowOptions,styles:R.foundationGridLayoutStyles,template:R.foundationGridLayoutTemplate},R.defaultGridLayoutConfig));class ot extends R.GridLayoutItem{}const it=ot.compose(Object.assign({baseName:"grid-layout-item",shadowOptions:R.foundationGridLayoutItemShadowOptions,template:R.foundationGridLayoutItemTemplate},R.defaultGridLayoutItemConfig));class nt extends R.HorizontalScroll{}const lt=nt.compose(Object.assign({baseName:"horizontal-scroll",template:(e,a)=>(0,R.foundationHorizontalScrollTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1099
|
+
${(0,R.foundationHorizontalScrollStyles)(e,a)}
|
|
1100
|
+
`,shadowOptions:R.foundationHorizontalScrollShadowOptions},R.defaultHorizontalScrollConfig));class gt extends R.Icon{}const dt=R.defaultIconConfig,st=R.foundationIconShadowOptions,ct=gt.compose(Object.assign({baseName:"icon",template:R.foundationIconTemplate,styles:(e,a)=>s.css`
|
|
1101
|
+
${(0,R.foundationIconStyles)(e,a)}
|
|
1102
|
+
`,shadowOptions:st},dt));class pt extends R.Listbox{}const ut=pt.compose(Object.assign({baseName:"listbox",template:(e,a)=>(0,R.foundationListboxTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1103
|
+
${(0,R.foundationListboxStyles)(e,a)}
|
|
1180
1104
|
|
|
1181
1105
|
:host {
|
|
1182
1106
|
background: #1f2126;
|
|
1183
1107
|
}
|
|
1184
|
-
`,shadowOptions
|
|
1185
|
-
${(0
|
|
1108
|
+
`,shadowOptions:R.foundationListboxShadowOptions},R.defaultListboxConfig));class ht extends R.ListboxOption{}const mt=ht.compose(Object.assign({baseName:"option",template:(e,a)=>(0,R.foundationListboxOptionTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1109
|
+
${(0,R.foundationListboxOptionStyles)(e,a)}
|
|
1186
1110
|
:host {
|
|
1187
1111
|
background-color: ${ie.darkGrey};
|
|
1188
1112
|
margin: 0;
|
|
@@ -1198,23 +1122,23 @@
|
|
|
1198
1122
|
background-color: ${ie.darkerGrey};
|
|
1199
1123
|
color: ${ne.blue};
|
|
1200
1124
|
}
|
|
1201
|
-
`,shadowOptions
|
|
1202
|
-
${(0
|
|
1125
|
+
`,shadowOptions:R.foundationListboxOptionShadowOptions},R.defaultListboxOptionConfig)),vt=R.foundationMenuShadowOptions;class bt extends R.Menu{}const ft=bt.compose({baseName:"menu",template:R.foundationMenuTemplate,styles:(e,a)=>s.css`
|
|
1126
|
+
${(0,R.foundationMenuStyles)(e,a)}
|
|
1203
1127
|
|
|
1204
1128
|
:host {
|
|
1205
1129
|
padding: 0;
|
|
1206
1130
|
}
|
|
1207
|
-
`,shadowOptions:
|
|
1208
|
-
${(0
|
|
1131
|
+
`,shadowOptions:vt}),wt=R.foundationMenuItemShadowOptions;class yt extends R.MenuItem{}const xt=yt.compose(Object.assign({baseName:"menu-item",template:R.foundationMenuItemTemplate,styles:(e,a)=>s.css`
|
|
1132
|
+
${(0,R.foundationMenuItemStyles)(e,a)}
|
|
1209
1133
|
|
|
1210
1134
|
:host {
|
|
1211
1135
|
background: none;
|
|
1212
1136
|
margin: 0;
|
|
1213
1137
|
}
|
|
1214
|
-
`,shadowOptions:
|
|
1138
|
+
`,shadowOptions:wt},R.defaultMenuItemConfig)),zt=s.css`
|
|
1215
1139
|
${cr}
|
|
1216
|
-
`,
|
|
1217
|
-
${
|
|
1140
|
+
`,kt=R.defaultModalConfig,St=R.foundationModalTemplate,Ct=R.foundationModalShadowOptions;class At extends R.Modal{}const Tt=At.compose(Object.assign({baseName:"modal",shadowOptions:Ct,styles:zt,template:St},kt)),Dt=s.css`
|
|
1141
|
+
${R.multiselectStyles}
|
|
1218
1142
|
|
|
1219
1143
|
:host {
|
|
1220
1144
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1269,10 +1193,10 @@
|
|
|
1269
1193
|
.label {
|
|
1270
1194
|
color: ${Ua};
|
|
1271
1195
|
}
|
|
1272
|
-
`,
|
|
1273
|
-
${(0
|
|
1274
|
-
`;class
|
|
1275
|
-
${(0
|
|
1196
|
+
`,Ot=s.html`
|
|
1197
|
+
${(0,R.getPrefixedMultiselect)("zero")}
|
|
1198
|
+
`;class Ft extends R.Multiselect{}const Lt=R.defaultMultiselectConfig,Mt=R.foundationMultiselectShadowOptions,Nt=Ft.compose(Object.assign({baseName:"multiselect",template:Ot,styles:Dt,shadowOptions:Mt},Lt));class Rt extends R.NotificationListener{}const $t=Rt.compose({baseName:"notification-listener",template:R.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}}),jt=(e,a)=>s.css`
|
|
1199
|
+
${(0,R.foundationTextFieldStyles)(e,a)}
|
|
1276
1200
|
:host {
|
|
1277
1201
|
--primary-gradient-angle: -113.5deg;
|
|
1278
1202
|
}
|
|
@@ -1319,13 +1243,13 @@
|
|
|
1319
1243
|
color: ${Ua};
|
|
1320
1244
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
1321
1245
|
}
|
|
1322
|
-
`;class
|
|
1246
|
+
`;class It extends R.NumberField{}const Et=R.defaultNumberFieldConfig,Pt=R.foundationNumberFieldTemplate,Ut=R.foundationNumberFieldShadowOptions,Bt=It.compose(Object.assign({baseName:"number-field",template:Pt,styles:(e,a)=>s.css`
|
|
1323
1247
|
:host .root {
|
|
1324
1248
|
--focus-stroke-outer: transparent;
|
|
1325
1249
|
}
|
|
1326
|
-
${
|
|
1327
|
-
`,shadowOptions:
|
|
1328
|
-
${(0
|
|
1250
|
+
${jt(e,a)}
|
|
1251
|
+
`,shadowOptions:Ut},Et));class Gt extends R.Progress{}const _t=Gt.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,R.foundationProgressTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1252
|
+
${(0,R.foundationProgressStyles)(e,a)}
|
|
1329
1253
|
:host([appearance="secondary-teal"]) {
|
|
1330
1254
|
--accent-foreground-rest: ${le.teal};
|
|
1331
1255
|
}
|
|
@@ -1333,7 +1257,7 @@
|
|
|
1333
1257
|
:host([appearance='secondary-orange']) {
|
|
1334
1258
|
--accent-foreground-rest: ${le.orange};
|
|
1335
1259
|
}
|
|
1336
|
-
`,shadowOptions
|
|
1260
|
+
`,shadowOptions:R.foundationProgressShadowOptions},R.defaultProgressConfig));class Ht extends R.ProgressRing{}const Yt={indeterminateIndicator:`\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <defs>\n <linearGradient id="linear">\n <stop offset="0%" stop-color="${ne.purple}"/>\n <stop offset="100%" stop-color="${ne.blue}"/>\n </linearGradient>\n </defs>\n <circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>\n <circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>\n </svg>\n `},Vt=Ht.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>s.html`
|
|
1337
1261
|
<template
|
|
1338
1262
|
role="progressbar"
|
|
1339
1263
|
aria-valuenow="${e=>e.value}"
|
|
@@ -1367,12 +1291,12 @@
|
|
|
1367
1291
|
`)}
|
|
1368
1292
|
</template>
|
|
1369
1293
|
`,styles:(e,a)=>s.css`
|
|
1370
|
-
${(0
|
|
1294
|
+
${(0,R.foundationProgressRingStyles)(e,a)}
|
|
1371
1295
|
.indeterminate-indicator-1, .determinate {
|
|
1372
1296
|
stroke: ${"url(#linear)"};
|
|
1373
1297
|
}
|
|
1374
|
-
`,shadowOptions
|
|
1375
|
-
${(0
|
|
1298
|
+
`,shadowOptions:R.foundationProgressRingShadowOptions},Yt));class Qt extends R.Radio{}const Wt=Qt.compose(Object.assign({baseName:"radio",template:(e,a)=>(0,R.foundationRadioTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1299
|
+
${(0,R.foundationRadioStyles)(e,a)}
|
|
1376
1300
|
:host {
|
|
1377
1301
|
--primary-gradient-angle: -113.5deg;
|
|
1378
1302
|
}
|
|
@@ -1403,13 +1327,13 @@
|
|
|
1403
1327
|
${ne.purple}
|
|
1404
1328
|
);
|
|
1405
1329
|
}
|
|
1406
|
-
`,shadowOptions
|
|
1407
|
-
${(0
|
|
1330
|
+
`,shadowOptions:R.foundationRadioShadowOptions},R.defaultRadioConfig));class qt extends R.RadioGroup{}const Jt=qt.compose(Object.assign({baseName:"radio-group",template:(e,a)=>(0,R.foundationRadioGroupTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1331
|
+
${(0,R.foundationRadioGroupStyles)(e,a)}
|
|
1408
1332
|
:host([appearance="accent"]) {
|
|
1409
1333
|
background: green;
|
|
1410
1334
|
}
|
|
1411
|
-
`,shadowOptions
|
|
1412
|
-
${(0
|
|
1335
|
+
`,shadowOptions:R.foundationRadioGroupShadowOptions},R.defaultRadioGroupConfig));class Zt extends R.SegmentedControl{}const Kt=Zt.compose(Object.assign({baseName:"segmented-control",template:(e,a)=>(0,R.foundationSegmentedControlTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1336
|
+
${(0,R.foundationSegmentedControlStyles)(e,a)}
|
|
1413
1337
|
:host {
|
|
1414
1338
|
--primary-gradient-angle: -113.5deg;
|
|
1415
1339
|
}
|
|
@@ -1447,8 +1371,8 @@
|
|
|
1447
1371
|
border-color: transparent;
|
|
1448
1372
|
box-shadow: 2px 1000px 1px rgb(0 0 0 / 50%) inset;
|
|
1449
1373
|
}
|
|
1450
|
-
`,shadowOptions:undefined},{}));class
|
|
1451
|
-
${(0
|
|
1374
|
+
`,shadowOptions:undefined},{}));class Xt extends R.Radio{}const eo=Xt.compose(Object.assign({baseName:"segmented-item",template:(e,a)=>(0,R.foundationSegmentedItemTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1375
|
+
${(0,R.foundationSegmentedItemStyles)(e,a)}
|
|
1452
1376
|
:host {
|
|
1453
1377
|
color: var(--neutral-stroke-rest);
|
|
1454
1378
|
font-size: var(--type-ramp-minus-1-font-size);
|
|
@@ -1457,8 +1381,8 @@
|
|
|
1457
1381
|
:host([aria-checked='true']) {
|
|
1458
1382
|
color: ${ie.white};
|
|
1459
1383
|
}
|
|
1460
|
-
`,shadowOptions:undefined},{}));class
|
|
1461
|
-
${(0
|
|
1384
|
+
`,shadowOptions:undefined},{}));class ao extends R.Select{}const ro=ao.compose(Object.assign({baseName:"select",template:(e,a)=>(0,R.foundationSelectTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1385
|
+
${(0,R.foundationSelectStyles)(e,a)}
|
|
1462
1386
|
:host {
|
|
1463
1387
|
--primary-gradient-angle: -113.5deg;
|
|
1464
1388
|
|
|
@@ -1507,10 +1431,10 @@
|
|
|
1507
1431
|
:host(:not([disabled])) .control:active {
|
|
1508
1432
|
background: none;
|
|
1509
1433
|
}
|
|
1510
|
-
`,shadowOptions
|
|
1511
|
-
${(0
|
|
1512
|
-
`,shadowOptions
|
|
1513
|
-
${(0
|
|
1434
|
+
`,shadowOptions:R.foundationSelectShadowOptions},R.defaultSelectConfig));class to extends R.Skeleton{}const oo=to.compose(Object.assign({baseName:"skeleton",template:(e,a)=>(0,R.foundationSkeletonTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1435
|
+
${(0,R.foundationSkeletonStyles)(e,a)}
|
|
1436
|
+
`,shadowOptions:R.foundationSkeletonShadowOptions},R.defaultSkeletonConfig));class io extends R.Slider{}const no=io.compose(Object.assign({baseName:"slider",template:(e,a)=>(0,R.foundationSliderTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1437
|
+
${(0,R.foundationSliderStyles)(e,a)}
|
|
1514
1438
|
:host {
|
|
1515
1439
|
--primary-gradient-angle: -113.5deg;
|
|
1516
1440
|
}
|
|
@@ -1566,8 +1490,8 @@
|
|
|
1566
1490
|
.track-progress {
|
|
1567
1491
|
background-color: var(--neutral-stroke-rest);
|
|
1568
1492
|
}
|
|
1569
|
-
`,shadowOptions
|
|
1570
|
-
${(0
|
|
1493
|
+
`,shadowOptions:R.foundationSliderShadowOptions},R.defaultSliderConfig));class lo extends R.SliderLabel{}const go=lo.compose(Object.assign({baseName:"slider-label",template:(e,a)=>(0,R.foundationSliderLabelTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1494
|
+
${(0,R.foundationSliderLabelStyles)(e,a)}
|
|
1571
1495
|
.label {
|
|
1572
1496
|
padding: 6px 8px;
|
|
1573
1497
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
@@ -1577,8 +1501,8 @@
|
|
|
1577
1501
|
text-align: center;
|
|
1578
1502
|
font-size: var(--type-ramp-minus-1-font-size, 12px);
|
|
1579
1503
|
}
|
|
1580
|
-
`,shadowOptions
|
|
1581
|
-
${
|
|
1504
|
+
`,shadowOptions:R.foundationSliderLabelShadowOptions},R.defaultSliderLabelConfig)),so=s.css`
|
|
1505
|
+
${R.foundationSnackbarStyles}
|
|
1582
1506
|
.snackbar {
|
|
1583
1507
|
border: calc(var(--stroke-width) * 1px) solid ${p.neutralLayer2};
|
|
1584
1508
|
background-color: ${p.neutralLayer1};
|
|
@@ -1587,10 +1511,10 @@
|
|
|
1587
1511
|
:host([type='error']) .snackbar::after {
|
|
1588
1512
|
background-color: ${Je(1)};
|
|
1589
1513
|
}
|
|
1590
|
-
`,
|
|
1591
|
-
${(0
|
|
1592
|
-
`,
|
|
1593
|
-
${(0
|
|
1514
|
+
`,co=s.html`
|
|
1515
|
+
${(0,R.getPrefixedSnackbar)("zero")}
|
|
1516
|
+
`,po=R.foundationSnackbarShadowOptions;class uo extends R.Snackbar{}const ho=uo.compose({baseName:"snackbar",shadowOptions:po,styles:so,template:co});class mo extends R.Switch{}const vo=mo.compose(Object.assign({baseName:"switch",template:(e,a)=>(0,R.foundationSwitchTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1517
|
+
${(0,R.foundationSwitchStyles)(e,a)}
|
|
1594
1518
|
:host {
|
|
1595
1519
|
--primary-gradient-angle: -113.5deg;
|
|
1596
1520
|
}
|
|
@@ -1634,8 +1558,8 @@
|
|
|
1634
1558
|
${ne.purple}
|
|
1635
1559
|
);
|
|
1636
1560
|
}
|
|
1637
|
-
`,shadowOptions
|
|
1638
|
-
${(0
|
|
1561
|
+
`,shadowOptions:R.foundationSwitchShadowOptions},R.defaultSwitchConfig));class bo extends R.Tab{}const fo=bo.compose(Object.assign({baseName:"tab",template:(e,a)=>(0,R.foundationTabTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1562
|
+
${(0,R.foundationTabStyles)(e,a)}
|
|
1639
1563
|
:host {
|
|
1640
1564
|
background-color: ${p.neutralLayer2};
|
|
1641
1565
|
border-radius: calc(var(--control-corner-radius) * 2px) calc(var(--control-corner-radius) * 2px)
|
|
@@ -1658,13 +1582,13 @@
|
|
|
1658
1582
|
margin-right: 0;
|
|
1659
1583
|
background-color: var(--zero-card-fill-color);
|
|
1660
1584
|
}
|
|
1661
|
-
`,shadowOptions
|
|
1662
|
-
${(0
|
|
1585
|
+
`,shadowOptions:R.foundationTabShadowOptions},R.defaultTabConfig));class wo extends R.TabPanel{}const yo=wo.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,R.foundationTabPanelTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1586
|
+
${(0,R.foundationTabPanelStyles)(e,a)}
|
|
1663
1587
|
:host {
|
|
1664
1588
|
padding: 0;
|
|
1665
1589
|
}
|
|
1666
|
-
`,shadowOptions
|
|
1667
|
-
${(0
|
|
1590
|
+
`,shadowOptions:R.foundationTabPanelShadowOptions},R.defaultTabPanelConfig));class xo extends R.Tabs{}const zo=xo.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,R.foundationTabsTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1591
|
+
${(0,R.foundationTabsStyles)(e,a)}
|
|
1668
1592
|
:host .tablist {
|
|
1669
1593
|
padding: 0;
|
|
1670
1594
|
display: block;
|
|
@@ -1709,8 +1633,8 @@
|
|
|
1709
1633
|
height: 2px;
|
|
1710
1634
|
margin-top: 0;
|
|
1711
1635
|
}
|
|
1712
|
-
`,shadowOptions
|
|
1713
|
-
${(0
|
|
1636
|
+
`,shadowOptions:R.foundationTabsShadowOptions},R.defaultTabsConfig));class ko extends R.TextArea{}const So=ko.compose(Object.assign({baseName:"text-area",template:(e,a)=>(0,R.foundationTextAreaTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1637
|
+
${(0,R.foundationTextAreaStyles)(e,a)}
|
|
1714
1638
|
:host {
|
|
1715
1639
|
--primary-gradient-angle: -113.5deg;
|
|
1716
1640
|
}
|
|
@@ -1754,8 +1678,8 @@
|
|
|
1754
1678
|
color: ${Ua};
|
|
1755
1679
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
1756
1680
|
}
|
|
1757
|
-
`,shadowOptions
|
|
1758
|
-
${
|
|
1681
|
+
`,shadowOptions:R.foundationTextAreaShadowOptions},R.defaultTextAreaConfig));class Co extends R.TextField{}const Ao=Co.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,R.foundationTextFieldTemplate)(e,a),styles:jt,shadowOptions:R.foundationTextFieldShadowOptions},R.defaultTextFieldConfig)),To=s.css`
|
|
1682
|
+
${R.foundationToastStyles}
|
|
1759
1683
|
.toast {
|
|
1760
1684
|
border: calc(var(--stroke-width) * 1px) solid ${p.neutralLayer3};
|
|
1761
1685
|
background-color: ${p.neutralLayer1};
|
|
@@ -1780,12 +1704,12 @@
|
|
|
1780
1704
|
:host([notify='serious']) .toast::after {
|
|
1781
1705
|
background-color: ${Ye(1)};
|
|
1782
1706
|
}
|
|
1783
|
-
`,
|
|
1784
|
-
${(0
|
|
1785
|
-
`,shadowOptions
|
|
1786
|
-
${(0
|
|
1787
|
-
`,shadowOptions
|
|
1788
|
-
${(0
|
|
1707
|
+
`,Do=R.defaultToastConfig,Oo=R.foundationToastShadowOptions;class Fo extends R.Toast{}const Lo=Fo.compose(Object.assign({baseName:"toast",shadowOptions:Oo,styles:To,template:R.foundationToastTemplate},Do));class Mo extends R.Toolbar{}const No=Mo.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,R.foundationToolbarTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1708
|
+
${(0,R.foundationToolbarStyles)(e,a)}
|
|
1709
|
+
`,shadowOptions:R.foundationToolbarShadowOptions},R.defaultToolbarConfig));class Ro extends R.Tooltip{}const $o=Ro.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,R.foundationTooltipTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1710
|
+
${(0,R.foundationTooltipStyles)(e,a)}
|
|
1711
|
+
`,shadowOptions:R.foundationTooltipShadowOptions},R.defaultTooltipConfig));class jo extends R.TreeItem{}const Io=jo.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,R.foundationTreeItemTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1712
|
+
${(0,R.foundationTreeItemStyles)(e,a)}
|
|
1789
1713
|
:host {
|
|
1790
1714
|
--primary-gradient-angle: -113.5deg;
|
|
1791
1715
|
--base-height-multiplier: 15;
|
|
@@ -1812,9 +1736,9 @@
|
|
|
1812
1736
|
background-size: cover;
|
|
1813
1737
|
background-repeat: no-repeat;
|
|
1814
1738
|
}
|
|
1815
|
-
`,shadowOptions
|
|
1816
|
-
${(0
|
|
1817
|
-
`,shadowOptions
|
|
1739
|
+
`,shadowOptions:R.foundationTreeItemShadowOptions},R.defaultTreeItemConfig));class Eo extends R.TreeView{}const Po=Eo.compose(Object.assign({baseName:"tree-view",template:(e,a)=>(0,R.foundationTreeViewTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1740
|
+
${(0,R.foundationTreeViewStyles)(e,a)}
|
|
1741
|
+
`,shadowOptions:R.foundationTreeViewShadowOptions},R.defaultTreeViewConfig)),Uo=s.html`
|
|
1818
1742
|
<div class="container" value=${e=>e.value}>
|
|
1819
1743
|
<zero-text-field
|
|
1820
1744
|
class="url-input"
|
|
@@ -1830,8 +1754,8 @@
|
|
|
1830
1754
|
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
1831
1755
|
`)}
|
|
1832
1756
|
</div>
|
|
1833
|
-
`;class
|
|
1834
|
-
${(0
|
|
1757
|
+
`;class Bo extends R.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,tr.__decorate)([s.observable],Bo.prototype,"value",void 0),(0,tr.__decorate)([s.observable],Bo.prototype,"focused",void 0);const Go={zeroAccordion:Te,zeroAccordionItem:Oe,zeroActionsMenu:Le,zeroAnchor:pa,zeroAnchoredRegion:ha,zeroAvatar:va,zeroBadge:fa,zeroBanner:za,zeroBreadcrumbItem:Aa,zeroBreadcrumb:Sa,zeroButton:Da,zeroCalendar:Fa,zeroCard:Ma,zeroCheckbox:Ra,zeroCombobox:Qa,zeroConnectionIndicator:qa,zeroDataGrid:Xa,zeroDesignSystemProvider:gr,zeroDialog:vr,zeroDatePicker:rr,zeroDisclosure:fr,zeroDivider:yr,zeroDropdownMenu:zr,zeroErrorBoundary:Dr,zeroNotificationListener:$t,zeroErrorBanner:Ar,zeroErrorDialog:Fr,zeroFileUpload:jr,zeroFilter:Pr,zeroFilterBar:Yr,zeroFlexLayout:Qr,zeroFlipper:qr,zeroFlyout:at,zeroGridLayout:tt,zeroGridLayoutItem:it,zeroHorizontalScroll:lt,zeroIcon:ct,zeroListbox:ut,zeroListboxOption:mt,zeroMenu:ft,zeroMenuItem:xt,zeroModal:Tt,zeroMultiselect:Nt,zeroNumberField:Bt,zeroProgress:_t,zeroProgressRing:Vt,zeroRadio:Wt,zeroRadioGroup:Jt,zeroSegmentedControl:Kt,zeroSegmentedItem:eo,zeroSelect:ro,zeroSkeleton:oo,zeroSlider:no,zeroSliderLabel:go,zeroSnackbar:ho,zeroSwitch:vo,zeroTab:fo,zeroTabPanel:yo,zeroTabs:zo,zeroTextArea:So,zeroTextField:Ao,zeroToast:Lo,zeroToolbar:No,zeroTooltip:$o,zeroTreeItem:Io,zeroTreeView:Po,zeroUrlInput:Bo.compose(Object.assign({baseName:"url-input",template:Uo,styles:(e,a)=>s.css`
|
|
1758
|
+
${(0,R.foundationUrlInputStyles)(e,a)}
|
|
1835
1759
|
a {
|
|
1836
1760
|
color: ${ne.blue};
|
|
1837
1761
|
opacity: 65%;
|
|
@@ -1840,7 +1764,7 @@
|
|
|
1840
1764
|
a:hover {
|
|
1841
1765
|
opacity: 100%;
|
|
1842
1766
|
}
|
|
1843
|
-
`,shadowOptions
|
|
1767
|
+
`,shadowOptions:R.foundationUrlInputShadowOptions},R.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var _o=r(80249);const Ho=(0,g.createLogger)("grid-pro");class Yo extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return this.params=e,!0}isDisabled(e){var a;if("function"==typeof(null===(a=this.params)||void 0===a?void 0:a.isDisabled))try{return this.params.isDisabled(e)}catch(e){Ho.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,_o.__awaiter)(this,void 0,void 0,(function*(){this.pendingAction=!0,yield this.params.actionClick(this.params.data),this.pendingAction=!1}))}get dataTestId(){var e;if(this.params.dataTestId)return this.params.dataTestId+(null!==(e=this.params.data[this.params.uniqueFieldName])&&void 0!==e?e:"")}}(0,_o.__decorate)([s.observable],Yo.prototype,"params",void 0),(0,_o.__decorate)([s.observable],Yo.prototype,"pendingAction",void 0);const{create:Vo}=c.DesignToken,Qo=(Vo("action-height-multiplier").withDefault("0.6px"),s.css`
|
|
1844
1768
|
.action-container {
|
|
1845
1769
|
align-items: center;
|
|
1846
1770
|
display: flex;
|
|
@@ -1855,8 +1779,8 @@
|
|
|
1855
1779
|
var(--action-height-multiplier)
|
|
1856
1780
|
);
|
|
1857
1781
|
}
|
|
1858
|
-
`),
|
|
1859
|
-
${
|
|
1782
|
+
`),Wo=Yo.compose({baseName:"grid-pro-action-renderer",styles:s.css`
|
|
1783
|
+
${Qo}
|
|
1860
1784
|
`,template:s.html`
|
|
1861
1785
|
<div class="action-container" part="action-container">
|
|
1862
1786
|
<foundation-button
|
|
@@ -1866,8 +1790,8 @@
|
|
|
1866
1790
|
?disabled=${e=>{var a;return e.pendingAction||e.isDisabled(null===(a=e.params)||void 0===a?void 0:a.data)}}
|
|
1867
1791
|
appearance="${e=>e.params.appearance}"
|
|
1868
1792
|
@click=${e=>e.clickHandler()}">${e=>e.params.actionName}</foundation-button>
|
|
1869
|
-
</div>`});class
|
|
1870
|
-
${
|
|
1793
|
+
</div>`});class qo extends Yo{}const Jo=qo.compose({baseName:"grid-pro-action-renderer",styles:s.css`
|
|
1794
|
+
${Qo}
|
|
1871
1795
|
`,template:s.html`
|
|
1872
1796
|
<div class="action-container" part="action-container">
|
|
1873
1797
|
<zero-button
|
|
@@ -1883,29 +1807,29 @@
|
|
|
1883
1807
|
`:e.params.actionName}
|
|
1884
1808
|
</zero-button>
|
|
1885
1809
|
</div>
|
|
1886
|
-
`});class
|
|
1810
|
+
`});class Zo extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,_o.__decorate)([s.observable],Zo.prototype,"params",void 0);const Ko=Zo.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
|
|
1887
1811
|
<foundation-actions-menu
|
|
1888
1812
|
name="${e=>e.params.headerName}"
|
|
1889
1813
|
:definition=${e=>e.params}
|
|
1890
1814
|
></foundation-actions-menu>
|
|
1891
|
-
`});class
|
|
1815
|
+
`});class Xo extends Zo{}const ei=Xo.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
|
|
1892
1816
|
<zero-actions-menu
|
|
1893
1817
|
name="${e=>e.params.headerName}"
|
|
1894
1818
|
:definition=${e=>e.params}
|
|
1895
1819
|
></zero-actions-menu>
|
|
1896
|
-
`});class
|
|
1820
|
+
`});class ai extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,_o.__decorate)([s.observable],ai.prototype,"params",void 0);const ri=s.css`
|
|
1897
1821
|
:host {
|
|
1898
1822
|
align-center: center;
|
|
1899
1823
|
display: flex;
|
|
1900
1824
|
height: 100%;
|
|
1901
1825
|
}
|
|
1902
|
-
`,
|
|
1826
|
+
`,ti=(e="foundation")=>{const a=`${e}-checkbox`;return s.html`
|
|
1903
1827
|
<${a}
|
|
1904
1828
|
@change="${e=>{var a;return null===(a=e.params)||void 0===a?void 0:a.changeHandler(e.params)}}"
|
|
1905
1829
|
checked="${e=>{var a;return null===(a=e.params)||void 0===a?void 0:a.value}}"
|
|
1906
1830
|
readonly="${e=>{var a;return null===(a=e.params)||void 0===a?void 0:a.readonly}}"
|
|
1907
1831
|
></${a}>
|
|
1908
|
-
`},
|
|
1832
|
+
`},oi=ai.compose({baseName:"boolean-renderer",styles:ri,template:ti()});class ii extends ai{}const ni=ii.compose({baseName:"boolean-renderer",styles:ri,template:ti("zero")});var li=r(18471);const gi=(e,a)=>{if(a.indexOf(".")<0)return e[a];{const r=a.split(".");let t=e;for(;r.length>0&&t;){const e=r.shift();if(0===r.length)return t[e];t=t[e]}}};class di extends c.FoundationElement{constructor(){super(...arguments),this.textValue="",this.textChanged=e=>{this.textValue=e.target.value,this.params.onChange(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.textValue=""===this.textValue?gi(null===(a=null==e?void 0:e.node)||void 0===a?void 0:a.data,e.accessor):this.textValue)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,_o.__decorate)([s.observable],di.prototype,"textValue",void 0),(0,_o.__decorate)([s.observable],di.prototype,"params",void 0);const si=s.css`
|
|
1909
1833
|
:host {
|
|
1910
1834
|
display: flex;
|
|
1911
1835
|
width: 100%;
|
|
@@ -1915,15 +1839,15 @@
|
|
|
1915
1839
|
.text-renderer {
|
|
1916
1840
|
width: 100%;
|
|
1917
1841
|
}
|
|
1918
|
-
`,
|
|
1842
|
+
`,ci=(e="foundation")=>{const a=`${e}-text-field`;return s.html`
|
|
1919
1843
|
<${a}
|
|
1920
1844
|
${(0,s.ref)("textField")}
|
|
1921
1845
|
type="text"
|
|
1922
1846
|
class="text-renderer"
|
|
1923
|
-
:value="${(0,
|
|
1847
|
+
:value="${(0,li.Z)((e=>e.textValue))}"
|
|
1924
1848
|
@change="${(e,a)=>e.textChanged(a.event)}"
|
|
1925
1849
|
></${a}>
|
|
1926
|
-
`},
|
|
1850
|
+
`},pi=di.compose({baseName:"grid-pro-text-renderer",styles:si,template:ci()});class ui extends di{}const hi=si,mi=ci,vi=ui.compose({baseName:"grid-text-renderer",styles:hi,template:mi()});const bi=class extends ui{}.compose({baseName:"grid-text-renderer",styles:hi,template:mi("zero")});class fi extends c.FoundationElement{constructor(){super(...arguments),this.selectionChanged=e=>{this.value=e.target.value,this.params.onSelect(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.value=gi(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,_o.__decorate)([s.observable],fi.prototype,"params",void 0),(0,_o.__decorate)([s.observable],fi.prototype,"value",void 0);const wi=s.css`
|
|
1927
1851
|
:host,
|
|
1928
1852
|
.select-renderer,
|
|
1929
1853
|
zero-option,
|
|
@@ -1932,7 +1856,7 @@
|
|
|
1932
1856
|
max-width: var(--select-renderer-max-width);
|
|
1933
1857
|
min-width: 100%;
|
|
1934
1858
|
}
|
|
1935
|
-
`,
|
|
1859
|
+
`,yi=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return s.html`
|
|
1936
1860
|
<${a}
|
|
1937
1861
|
class="select-renderer"
|
|
1938
1862
|
@change=${(e,a)=>e.selectionChanged(a.event)}
|
|
@@ -1948,19 +1872,19 @@
|
|
|
1948
1872
|
<${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
|
|
1949
1873
|
`)}
|
|
1950
1874
|
</${a}>
|
|
1951
|
-
`},
|
|
1875
|
+
`},xi=fi.compose({baseName:"select-renderer",styles:wi,template:yi()});const zi=class extends fi{}.compose({baseName:"select-renderer",styles:wi,template:yi("zero")});var ki=r(89861),Si=r(59783),Ci=r(86534),Ai=r(75527),Ti=r(9492);const Di=e=>{var a,r,t,o,i,n,l,g,d;return d=class extends e{constructor(...e){super(e),a.add(this),r.set(this,{_key:"dom"}),t.set(this,""),o.set(this,!1),i.set(this,void 0),n.set(this,!1)}cloneNode(e){const a=this.deepClone();return e&&Array.from(this.childNodes).forEach((e=>{a.appendChild(e.cloneNode(!0))})),a}deepClone(){const e=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach((a=>e.setAttribute(a,this.getAttribute(a)))),e}get shouldRunDisconnect(){return!!(0,Ti.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Ti.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Ti.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Ti.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Ti.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Ti.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Ti.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Ti.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Ti.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Ti.__classPrivateFieldGet)(this,o,"f")&&((0,Ti.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Ti.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Ti.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Ti.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Ti.__classPrivateFieldGet)(this,r,"f")._key&&(0,Ti.__classPrivateFieldSet)(this,r,(0,Ti.__classPrivateFieldGet)(this,a,"m",g).call(this,this),"f")}},r=new WeakMap,t=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,a=new WeakSet,l=function(e){var a,o;if("foundation-layout"!==(0,Ti.__classPrivateFieldGet)(this,r,"f")._key)throw new Error("LifecycleMixin: should not be checking a token change if container not in the layout");const l=(0,Ti.__classPrivateFieldGet)(this,t,"f")!==(0,Ti.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Ti.__classPrivateFieldSet)(this,t,null!==(a=(0,Ti.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Ti.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Ti.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Ti.__classPrivateFieldSet)(this,t,null!==(o=(0,Ti.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Ti.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){if(!0===r.getRootNode()[Oi])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document)return{_key:"dom"};const t=r.getRootNode().host;if("FoundationLayoutMain"===t.class){const e=t;return e._key="foundation-layout",e}return(0,Ti.__classPrivateFieldGet)(this,a,"m",e).call(this,t)},d},Oi=Symbol("layout-cache-document");var Fi=r(88556);const Li=s.html`
|
|
1952
1876
|
<template>
|
|
1953
1877
|
<slot ${(0,s.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
|
|
1954
1878
|
</template>
|
|
1955
|
-
`;let
|
|
1879
|
+
`;let Mi=class extends c.FoundationElement{connectedCallback(){super.connectedCallback();const e=this.parentElement;this.renderer&&(e.definition.cellRenderer=this.renderer),this.rendererParams&&(e.definition.cellRendererParams=this.rendererParams)}init(e){this.rendererParams=e}getGui(){return"string"!=typeof this.renderer?this.renderer(this.rendererParams):this}destroy(){}refresh(e){return!1}slottedAgRendererChanged(){}};(0,_o.__decorate)([s.observable],Mi.prototype,"renderer",void 0),(0,_o.__decorate)([s.observable],Mi.prototype,"rendererParams",void 0),(0,_o.__decorate)([s.observable],Mi.prototype,"slottedRenderer",void 0),Mi=(0,_o.__decorate)([(0,s.customElement)({name:"grid-pro-cell",template:Li})],Mi);const Ni=s.html`
|
|
1956
1880
|
<template>
|
|
1957
1881
|
<slot ${(0,s.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
|
|
1958
1882
|
</template>
|
|
1959
|
-
`;let
|
|
1960
|
-
.${
|
|
1961
|
-
${new
|
|
1883
|
+
`;let Ri=class extends c.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};var $i,ji;(0,_o.__decorate)([s.observable],Ri.prototype,"slottedAgCell",void 0),(0,_o.__decorate)([s.observable],Ri.prototype,"definition",void 0),Ri=(0,_o.__decorate)([(0,s.customElement)({name:"grid-pro-column",template:Ni})],Ri),function(e){e.foregroundColor="--ag-foreground-color",e.dataColor="--ag-data-color",e.secondaryForegroundColor="--ag-secondary-foreground-color",e.headerForegroundColor="--ag-header-foreground-color",e.disabledForegroundColor="--ag-disabled-foreground-color",e.backgroundColor="--ag-background-color",e.headerBackgroundColor="--ag-header-background-color",e.subheaderBackgroundColor="--ag-subheader-background-color",e.subheaderToolbarBackgroundColor="--ag-subheader-toolbar-background-color",e.controlPanelBackgroundColor="--ag-control-panel-background-color",e.selectedRowBackgroundColor="--ag-selected-row-background-color",e.oddRowBackgroundColor="--ag-odd-row-background-color",e.rowHoverColor="--ag-row-hover-color",e.rangeSelectionBorderColor="--ag-range-selection-border-color",e.rangeSelectionBackgroundColor="--ag-range-selection-background-color",e.selectedTabUnderlineColor="--ag-selected-tab-underline-color",e.rangeSelectionChartCategoryBackgroundColor="--ag-range-selection-chart-category-background-color",e.rangeSelectionChartBackgroundColor="--ag-range-selection-chart-background-color",e.headerCellHoverBackgroundColor="--ag-header-cell-hover-background-color",e.headerCellMovingBackgroundColor="--ag-header-cell-moving-background-color",e.chipBackgroundColor="--ag-chip-background-color",e.borderColor="--ag-border-color",e.secondaryBorderColor="--ag-secondary-border-color",e.rowBorderColor="--ag-row-border-color",e.headerColumnSeparatorColor="--ag-header-column-separator-color",e.headerColumnResizeHandleColor="--ag-header-column-resize-handle-color",e.inputBorderColor="--ag-input-border-color",e.inputDisabledBorderColor="--ag-input-disabled-border-color",e.inputDisabledBackgroundColor="--ag-input-disabled-background-color",e.checkboxBackgroundColor="--ag-checkbox-background-color",e.checkboxCheckedColor="--ag-checkbox-checked-color",e.checkboxUncheckedColor="--ag-checkbox-unchecked-color",e.checkboxIndeterminateColor="--ag-checkbox-indeterminate-color",e.toggleButtonOffBorderColor="--ag-toggle-button-off-border-color",e.toggleButtonOffBackgroundColor="--ag-toggle-button-off-background-color",e.toggleButtonOnBorderColor="--ag-toggle-button-on-border-color",e.toggleButtonOnBackgroundColor="--ag-toggle-button-on-background-color",e.toggleButtonSwitchBackgroundColor="--ag-toggle-button-switch-background-color",e.toggleButtonSwitchBorderColor="--ag-toggle-button-switch-border-color",e.minichartSelectedChartColor="--ag-minichart-selected-chart-color",e.minichartSelectedPageColor="--ag-minichart-selected-page-color",e.modalOverlayBackgroundColor="--ag-modal-overlay-background-color",e.inputFocusBoxShadow="--ag-input-focus-box-shadow",e.inputFocusBorderColor="--ag-input-focus-border-color"}($i||($i={})),function(e){e.alpine="ag-theme-alpine",e.alpineDark="ag-theme-alpine-dark",e.balham="ag-theme-balham",e.balhamDark="ag-theme-balham-dark",e.material="ag-theme-material"}(ji||(ji={}));const Ii=e=>`${e}-token-map`,Ei=(e,a)=>s.css`
|
|
1884
|
+
.${Ii(e)} {
|
|
1885
|
+
${new R.CSSVarsTokenMapper(a)}
|
|
1962
1886
|
}
|
|
1963
|
-
`;var Qi;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.text="text",e.select="select"}(Qi||(Qi={}));const Wi='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMHau317e0FCManAAiSyCaunoRkkLFl1/9/c+VPMsnNEtBMGFedLLAjUj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+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',qi='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKr0ynOAE2AiQDghgLgQ4ABCAFhEYHhF0bXiRFpNekVVHJ/j8kcGOoVAN7L8rdRUEn6ZRdEY4cPSsWsYa1Wb2Sgi2cP95lTgmTT/ndiPe/iFyfMpSSB+B++a5qUUJ3i2yOTKBKGtAEZjDQ/79r5Z9JJgO0QJTwIt61qrKvDlDoCuP7P/w2/773RBsEC9gwEHQ884EFwsNiYDQqizIKCyNh1ayqcJH+M1lE4yJZuf0JLTfgdHNvseRobBRAwGBuVQKzJwnlrC2j0h1WndeaR8acU+fTftMv+IgvtuJeOZP9qfnXXNJ/nz0sdsqYLX3/bccgSgISTwjfXQjUrV14PoMQtmKBCWgyDBHwf3OlveyxK4GiKYHQ9exMZjK7zfz5ubvsYS5HlOOUECygAtoUiNcVVGUdsCPbVyXJVdq6VlVYXag55WB04UExdSgEyFx64PjfUGqRahgfQwg7jwHtGrcjBKQJJ/bgK00N1IOvjTXAhgXLh8BxyNDB37JRYL9LhiV1QrwwR50h0fNZo4upSKP1G3fY5KMN9MMe3sN4OhhLiIUW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WBEFne8bZ0xzW2VXY1V/6706+BWjIkbQpN/tnTALgAc7vDgx1qfjJv5u2LAzD6BbU37mdkSLdSf0dxr/7wGZfCIRm4QAk+T/hPz4obRlcNVfMDRbivHnAf0dKvvBBU9agR+tgN2OI0gMN5QV7SP3X4k4KtnOEIWYAiOBM19wg2rAALFxAASYMHZFUKDCEoE9R28SNkSfIBTwhNvCluj3xBFsY3cfDWv+JdwbB/OoolfpN7gaFafH857nP3AJhMNtaHje9b0BAisBM8zHoSzuTsQOlikNr4R2RTHSkJneQcvkRfL9dVipf8GTprRSnDcsMB4pkX9RsX6DnVVFb9ZYYZJ86z/YisKrRtDg1uRGUXmTqNy+IoCxZse9VSzP1h0JLWuIHEZSIl+NMkURQ0FPMhc774D27YnXsLP7/6iYkVW1J9oIX6KSU000uMDhG4PRZLZYbXaHH/61X+r8mc5sLl8olsqVaq3eaLbanW6vPxiOxpPpbL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Ji={[Hi.alpine]:Wi,[Hi.alpineDark]:Wi,[Hi.balham]:qi,[Hi.balhamDark]:qi,[Hi.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKoQibU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: normal;\n }\n'},Zi=Wi;var Ki=r(82940),Xi=r(32449),en=r(9162),an=r(5127),rn=r(83123),tn=r(35991),on=r(6852),nn=r(26714),ln=r(71452),gn=r(99449),dn=r(30526),sn=r(21607);function cn({value:e}){return(0,sn.D_)(e)}function pn({value:e}){return(0,sn.Lx)(e)}var un;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(un||(un={}));let hn=class extends(ji(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Ki.WJ.MAX_ROWS_250,this.maxView=Ki.WJ.MAX_VIEW_1000,this.movingView=!1,this.pollingInterval=Ki.WJ.REQ_REP_POLLING_INTERVAL_MS,this.reverse=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new nn.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Xi.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Ki.WJ.REQUEST_SERVER_ROW_ID:Ki.WJ.DATASERVER_ROW_ID}init(){return(0,Ko.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid&&this.datasource.validResourceName(this.resourceName)&&this.connect.isConnected){const e=yield this.connect.getMetadata(this.resourceName);this.isRequestServer=e.TYPE===Ki._g.REQUEST_SERVER;const a=Object.assign({getRowId:e=>e.data[this.rowId]},this.deferredGridOptions);this.agGrid.gridOptions=Object.assign({},a),this.agGrid.addEventListener("onGridReady",(()=>(0,Ko.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,ln.T)(1),(0,gn.b)(r),(0,dn.b)((e=>Xo.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Xo.warn("Application not connected, falling back to local columnDefs/rowData")}))}deinit(){this.reset()}reset(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.dataLogoff(),this.clearRowData(),this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new nn.X(new Map),this.datasource.deinit()}restart(){this.deinit(),this.init()}refreshRows(){this.setRowData(Array.from(this.rows.values()))}dataLogoff(){this.sourceRef&&!this.isRequestServer&&!this.isSnapshot&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.sourceRef),this.sourceRef=void 0}clearRowData(e=!0){var a,r,t,o;this.rows=new Map,this.agTransaction=void 0,e&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),null===(o=null===(t=this.agGrid)||void 0===t?void 0:t.gridApi)||void 0===o||o.setRowData([])}setRowData(e){var a;const r=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDefs();if(!r||0===r.length){const e=this.getAgColumnDefs(this.datasource.fieldMetadata);e&&this.agGrid.gridApi.setColumnDefs(e)}const t=this.rowDataMapper?this.rowDataMapper(e):e;this.agGrid.gridApi.setRowData(t),this.requiresFullRowDataAndColDefs=!1}reloadResourceData(){var e,a;return(0,Ko.__awaiter)(this,void 0,void 0,(function*(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.dataLogoff(),this.clearRowData(null),null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.showLoadingOverlay(),this.loadResourceData(null)}))}loadResourceData(e=!0){return(0,Ko.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Xo.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();if(this.isSnapshot){const e=yield this.datasource.snapshot();if(e){const a=this.handleSnapshot(e);this.setRowData(a)}}else Xo.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const a=e.MESSAGE_TYPE;if(a&&a===en.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,an.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,an.$)(e).inserts:e.inserts}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,maxRows:this.maxRows,maxView:this.maxView,movingView:this.movingView,orderBy:this.orderBy,pollingInterval:this.pollingInterval,request:this.request,resourceName:this.resourceName,reverse:this.reverse}}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}applyRequestServerData(e){var a;const r=e.REPLY;if(!Array.isArray(r)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void Xo.error("received invalid RequestServerResult",e);if(this.requiresFullRowDataAndColDefs){null==r||r.forEach((e=>{this.rows.set(e[this.rowId],e)}));const e=this.rows.size>0?Array.from(this.rows.values()):r;return void this.setRowData(e)}const t=[],o=Array.from(this.rows.values()).filter((e=>{const a=r.find((a=>a[this.rowId]===e[this.rowId]));return!a||(t.push(a),!1)})),i=r.filter((e=>!this.rows.has(e[this.rowId])));this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(i),this.handleStreamDeletes(o),this.handleStreamUpdates(t),this.applyAllAgTransactions()}applyDataserverData(e){var a;if(this.requiresFullRowDataAndColDefs){null===(a=e.inserts)||void 0===a||a.forEach((e=>{this.rows.set(e[this.rowId],e)}));const r=Array.from(this.rows.values());this.setRowData(r)}else this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(e.inserts),this.handleStreamDeletes(e.deletes),this.handleStreamUpdates(e.updates),this.applyAllAgTransactions()}applyAllAgTransactions(){this.agTransaction.add.length||this.agTransaction.update.length||this.agTransaction.remove.length?(this.agTransaction.add.length>0&&this.applyMappedAgTransaction({add:this.agTransaction.add,addIndex:this.agGrid.addIndex},un.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},un.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},un.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}applyMappedAgTransaction(e,a,r){const t=r?"applyTransactionAsync":"applyTransaction";this.agGrid.gridApi[t](this.mapTransaction(e,[a]))}mapTransaction(e,a=Object.values(un)){if(!this.rowDataMapper)return e;const r={};return a.includes(un.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(un.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(un.Update)&&(r.update=this.rowDataMapper(e.update,this.rows)),r}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rows.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r)}else this.agTransaction.add.push(e),this.agTransaction.addIndex=0;this.rows.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{this.agTransaction.remove.push({[this.rowId]:e[this.rowId]}),this.rows.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r),this.rows.set(e[this.rowId],r)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=(e.type,{suppressAndOrCondition:!0,filterOptions:["contains"]}),e.type){case rn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=Qi.boolean);break;case rn.r.DATE:r.valueFormatter=cn;break;case rn.r.DATETIME:r.valueFormatter=pn}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.agGrid.onlyTemplateColDefs&&!t||this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values()));return(0,Xi.p)(a.join(" && "),";")}setFilter(e,a){this.criteriaFromFilters.set(e,a),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}};(0,Ko.__decorate)([tn.g],hn.prototype,"auth",void 0),(0,Ko.__decorate)([l.lj],hn.prototype,"connect",void 0),(0,Ko.__decorate)([on.Yh],hn.prototype,"datasource",void 0),(0,Ko.__decorate)([s.observable],hn.prototype,"deferredGridOptions",void 0),(0,Ko.__decorate)([s.observable],hn.prototype,"deferredColumnStates",void 0),(0,Ko.__decorate)([s.attr],hn.prototype,"criteria",void 0),(0,Ko.__decorate)([s.attr],hn.prototype,"fields",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],hn.prototype,"isSnapshot",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"max-rows"})],hn.prototype,"maxRows",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"max-view"})],hn.prototype,"maxView",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],hn.prototype,"movingView",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"order-by"})],hn.prototype,"orderBy",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"polling-interval"})],hn.prototype,"pollingInterval",void 0),(0,Ko.__decorate)([s.observable],hn.prototype,"request",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"resource-name"})],hn.prototype,"resourceName",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean"})],hn.prototype,"reverse",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"row-id"})],hn.prototype,"rowIdAttr",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],hn.prototype,"restartOnReconnection",void 0),(0,Ko.__decorate)([s.observable],hn.prototype,"rowDataMapper",void 0),hn=(0,Ko.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],hn);let mn=class extends hn{};mn=(0,Ko.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],mn);var vn=r(66306),bn=r(47546);function fn(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"agNumberColumnFilter";case"date":case"datetime":return"agDateColumnFilter";default:return"agTextColumnFilter"}}function wn(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn";case"date":case"datetime":return"dateColumn";default:return"textColumn"}}function yn({value:e}){return(0,sn.D_)(e)}function xn({value:e}){return(0,sn.Lx)(e)}class zn{constructor(e){this.server_ROWS_COUNT=0,this.client_ROWS_COUNT=0,this.moreRows=!1,this.calculatedRowsCount=0,this.lastSequenceId=0,this.rowData=new Map,this.dataserverStream=e.stream,this.resourceName=e.resourceName,this.resourceParams=e.resourceParams,this.originalCriteriaMatch=e.resourceParams.CRITERIA_MATCH,this.resourceIndexes=e.resourceIndexes,this.resourceColDefs=e.resourceColDefs,this.maxRows=e.maxRows,this.maxView=e.maxView,this.rowId=e.rowId,this.pagination=e.pagination}getRows(e){var a;return(0,Ko.__awaiter)(this,void 0,void 0,(function*(){const r=e.request.filterModel,t=Object.keys(r).length>0,o=0===Object.keys(r).length,i=JSON.stringify(r)!==JSON.stringify(this.currentFilterModel);(i||t)&&(o&&this.currentFilterModel?(this.currentFilterModel=null,this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.restartSubscription()):i&&t&&(this.currentFilterModel=r,this.resourceParams.CRITERIA_MATCH=this.buildCriteriaMatchFromFilters(),this.restartSubscription()));const n=e.request.sortModel;if(n.length!==(null===(a=this.currentSortModel)||void 0===a?void 0:a.length)||n.length>0)if(0===n.length&&this.currentSortModel)this.currentSortModel=null,this.resourceParams.ORDER_BY=null,this.resourceParams.REVERSE=null,this.restartSubscription();else if(n.length>0){this.currentSortModel=n;const e=this.currentSortModel[0].colId,a=this.currentSortModel[0].sort,r=this.getOrderByAndToBeSortedColIds(this.resourceIndexes,e);r.toBeSorted.forEach((e=>{this.currentSortModel.push({sort:a,colId:e})})),this.resourceParams.ORDER_BY=r.orderBy,this.resourceParams.REVERSE="desc"===a,this.restartSubscription()}this.moreRows&&e.request.startRow>=Number(this.maxRows)&&this.connect.getMoreRows(this.streamSourceRef),this.dataserverStream.pipe((0,bn.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===en.Cs.LOGOFF_ACK||o===en.Cs.MSG_NACK))return void e.fail();if(this.moreRows=a.MORE_ROWS,!a.ROW){this.rowData=new Map;const a={rowData:Array.from(this.rowData.values()),rowCount:0};return void e.success(a)}{const e=(0,an.$)(a);this.handleInitialStreamLoad(e)}this.lastSequenceId=a.SEQUENCE_ID,1===this.lastSequenceId&&(this.streamSourceRef=a.SOURCE_REF,this.server_ROWS_COUNT=null!==(r=a.ROWS_COUNT)&&void 0!==r?r:this.rowData.size),!this.moreRows&&this.server_ROWS_COUNT>=this.client_ROWS_COUNT?this.calculatedRowsCount=this.client_ROWS_COUNT:this.calculatedRowsCount+=null!==(t=this.rowData.size)&&void 0!==t?t:0;const i={rowData:Array.from(this.rowData.values())};this.pagination&&(i.rowCount=Math.min(this.server_ROWS_COUNT,this.maxView)),e.request.endRow>this.maxView||e.request.endRow>this.calculatedRowsCount?i.rowCount=this.calculatedRowsCount:e.request.endRow===this.server_ROWS_COUNT&&(i.rowCount=this.server_ROWS_COUNT),e.success(i)}))}))}dataLogoff(){this.streamSourceRef&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.streamSourceRef),this.streamSourceRef=void 0}restartSubscription(){this.dataLogoff(),this.rowData=new Map,this.client_ROWS_COUNT=0;this.dataserverStream=this.connect.stream(this.resourceName,(e=>e),(e=>Xo.error(e)),this.resourceParams)}getOrderByAndToBeSortedColIds(e,a){for(const[r,t]of e.entries()){const e=t.findIndex((e=>e===a));if(-1!==e){const a=[...t];return a.splice(e,1),{orderBy:r,toBeSorted:a}}}}handleInitialStreamLoad(e){var a;if(!e)return;const r=new Map;null===(a=e.inserts)||void 0===a||a.forEach((e=>{r.set(e.ROW_REF,e)})),this.client_ROWS_COUNT+=r.size,this.rowData=r}buildCriteriaMatchFromFilters(){this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.resourceParams.CRITERIA_MATCH&&"string"==typeof this.resourceParams.CRITERIA_MATCH&&(this.resourceParams.CRITERIA_MATCH=this.resourceParams.CRITERIA_MATCH.split(";")),this.resourceParams.CRITERIA_MATCH||(this.resourceParams.CRITERIA_MATCH=[]);return this.resourceParams.CRITERIA_MATCH.concat(this.criteriaFromFilters()).join(" && ")}criteriaFromFilters(){const e=[];return this.getFiltersByType("text").forEach((a=>{if(this.currentFilterModel[a].filter||"false"!==this.currentFilterModel[a].type&&"true"!==this.currentFilterModel[a].type)switch(this.currentFilterModel[a].type){case"equals":e.push(`${a} == '${this.currentFilterModel[a].filter}'`);break;case"contains":e.push(`Expr.containsIgnoreCase(${a}, '${this.currentFilterModel[a].filter}')`)}else e.push(`${a} == ${this.currentFilterModel[a].type}`)})),this.getFiltersByType("number").forEach((a=>{const r=this.currentFilterModel[a].filter;switch(this.currentFilterModel[a].type){case"equals":!isNaN(r)&&e.push(`${a} == ${r}`);break;case"lessThan":!isNaN(r)&&e.push(`${a} < ${r}`);break;case"greaterThan":!isNaN(r)&&e.push(`${a} > ${r}`)}})),this.getFiltersByType("date").forEach((a=>{const r=this.currentFilterModel[a].dateFrom.replace(/-/g,"").replace("T","-").split(" ")[0];switch(this.currentFilterModel[a].type){case"equals":e.push(`Expr.dateIsEqual(${a}, '${r}')`);break;case"lessThan":e.push(`Expr.dateIsBefore(${a}, '${r}')`);break;case"greaterThan":e.push(`Expr.dateIsAfter(${a}, '${r}')`)}})),e}getFiltersByType(e){return Object.keys(this.currentFilterModel).filter((e=>-1!==this.resourceColDefs.findIndex((a=>a.NAME===e)))).filter((a=>this.currentFilterModel[a].filterType===e))}}(0,Ko.__decorate)([tn.g],zn.prototype,"auth",void 0),(0,Ko.__decorate)([l.lj],zn.prototype,"connect",void 0);let kn=class extends(ji(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Ki.WJ.MAX_ROWS_250,this.maxView=Ki.WJ.MAX_VIEW_1000,this.movingView=!0,this.pagination=!1,this.rowId="ROW_REF",this.reverse=!1}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,Xi.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.reset()}))}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions={getRowId:e=>e.data?e.data[this.rowId]:null,cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!0},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{}},void this.agGrid.addEventListener("onGridReady",(()=>(0,Ko.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Xo.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,vn.C)(e);const a=(0,vn.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new zn({stream:t,resourceName:this.resourceName,resourceParams:this.params,resourceIndexes:this.indexes,resourceColDefs:this.originalFieldDef,maxRows:this.maxRows,maxView:this.maxView,rowId:this.rowId,pagination:this.pagination}),this.agGrid.gridApi.setServerSideDatasource(this.dataserverStream)}))),{once:!0});Xo.warn("Application not connected, falling back to local columnDefs/rowData")}reset(){this.clearRowData(),this.dataserverStream=void 0,this.originalFieldDef=void 0,this.agGrid.gridApi.setServerSideDatasource(this.dataserverStream)}restart(){this.reset(),this.init()}get agGrid(){return this.parentElement}clearRowData(){var e,a,r,t;null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.setColumnDefs([]);const o={remove:[]};null===(r=this.agGrid.gridApi)||void 0===r||r.forEachNode((e=>{o.remove.push(e.data)})),null===(t=this.agGrid.gridApi)||void 0===t||t.applyServerSideTransaction(o)}getResourceIndexes(e){const a=new Map;return null==e||e.forEach((e=>{a.set(e.NAME,e.FIELDS.split(" "))})),a}get params(){const e={CRITERIA_MATCH:this.criteria,FIELDS:this.fields,MAX_ROWS:this.maxRows,MAX_VIEW:this.maxView,MOVING_VIEW:this.movingView,REVERSE:this.reverse},a=Array.from(this.indexes.keys());if(this.orderBy)if(a.findIndex((e=>e===this.orderBy))>-1)e.ORDER_BY=this.orderBy;else{const e=a.map((e=>e));Xo.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return Xo.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,Ko.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Xo.debug(e)),(e=>Xo.error(e)),null!=e?e:this.params)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=function(e){switch(e){case rn.r.BOOLEAN:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["contains",{displayKey:"true",displayName:"True",predicate:(e,a)=>"true"===a||!0===a,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,a)=>"false"===a||!1===a,numberOfInputs:0},{displayKey:"true-false",displayName:"True/False",predicate:(e,a)=>"true"===a||!0===a||"false"===a||!1===a,numberOfInputs:0}]};case rn.r.DATE:case rn.r.DATETIME:return{comparator:(e,a)=>{if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,browserDatePicker:!0,filterOptions:["equals","lessThan","greaterThan"]};case rn.r.NUMBER:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["equals","lessThan","greaterThan"]};default:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["contains","equals"]}}}(e.type),e.type){case rn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=Qi.boolean);break;case rn.r.DATE:r.valueFormatter=yn;break;case rn.r.DATETIME:r.valueFormatter=xn}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.agGrid.onlyTemplateColDefs&&!t||this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:wn(e.type),filter:fn(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.applyTemplateDefinitions(a,!0)}};(0,Ko.__decorate)([l.lj],kn.prototype,"connect",void 0),(0,Ko.__decorate)([s.attr],kn.prototype,"criteria",void 0),(0,Ko.__decorate)([s.attr],kn.prototype,"fields",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],kn.prototype,"isSnapshot",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"max-rows"})],kn.prototype,"maxRows",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"max-view"})],kn.prototype,"maxView",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"moving-view"})],kn.prototype,"movingView",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"order-by"})],kn.prototype,"orderBy",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"resource-name"})],kn.prototype,"resourceName",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean"})],kn.prototype,"pagination",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"row-id"})],kn.prototype,"rowId",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean"})],kn.prototype,"reverse",void 0),kn=(0,Ko.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],kn);const Sn=s.css`
|
|
1887
|
+
`;var Pi;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.text="text",e.select="select"}(Pi||(Pi={}));const Ui='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpB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aq5pu1Hxm2ADhCAgVDfnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Bi='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKr0ynOAE2AiQDghgLgQ4ABCAFhEYHhF0bXiRFpNekVVHJ/j8kcGOoVAN7L8rdRUEn6ZRdEY4cPSsWsYa1Wb2Sgi2cP95lTgmTT/ndiPe/iFyfMpSSB+B++a5qUUJ3i2yOTKBKGtAEZjDQ/79r5Z9JJgO0QJTwIt61qrKvDlDoCuP7P/w2/773RBsEC9gwEHQ884EFwsNiYDQqizIKCyNh1ayqcJH+M1lE4yJZuf0JLTfgdHNvseRobBRAwGBuVQKzJwnlrC2j0h1WndeaR8acU+fTftMv+IgvtuJeOZP9qfnXXNJ/nz0sdsqYLX3/bccgSgISTwjfXQjUrV14PoMQtmKBCWgyDBHwf3OlveyxK4GiKYHQ9exMZjK7zfz5ubvsYS5HlOOUECygAtoUiNcVVGUdsCPbVyXJVdq6VlVYXag55WB04UExdSgEyFx64PjfUGqRahgfQwg7jwHtGrcjB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wD9i9Vg702P6wdUszdjktjwNxUZEt27XAj6sav9i+rXY/0MHfoMaTL9f/w6kVcMrknc1sXmjMda7CqsA0MfB2wR8AI2WBEFne8bZ0xzW2VXY1V/6706+BWjIkbQpN/tnTALgAc7vDgx1qfjJv5u2LAzD6BbU37mdkSLdSf0dxr/7wGZfCIRm4QAk+T/hPz4obRlcNVfMDRbivHnAf0dKvvBBU9agR+tgN2OI0gMN5QV7SP3X4k4KtnOEIWYAiOBM19wg2rAALFxAASYMHZFUKDCEoE9R28SNkSfIBTwhNvCluj3xBFsY3cfDWv+JdwbB/OoolfpN7gaFafH857nP3AJhMNtaHje9b0BAisBM8zHoSzuTsQOlikNr4R2RTHSkJneQcvkRfL9dVipf8GTprRSnDcsMB4pkX9RsX6DnVVFb9ZYYZJ86z/YisKrRtDg1uRGUXmTqNy+IoCxZse9VSzP1h0JLWuIHEZSIl+NMkURQ0FPMhc774D27YnXsLP7/6iYkVW1J9oIX6KSU000uMDhG4PRZLZYbXaHH/61X+r8mc5sLl8olsqVaq3eaLbanW6vPxiOxpPpbL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Gi={[ji.alpine]:Ui,[ji.alpineDark]:Ui,[ji.balham]:Bi,[ji.balhamDark]:Bi,[ji.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf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19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},_i=Ui;var Hi=r(82940),Yi=r(32449),Vi=r(9162),Qi=r(5127),Wi=r(83123),qi=r(35991),Ji=r(6852),Zi=r(26714),Ki=r(71452),Xi=r(99449),en=r(30526),an=r(21607);function rn({value:e}){return(0,an.D_)(e)}function tn({value:e}){return(0,an.Lx)(e)}var on;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(on||(on={}));let nn=class extends(Di(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Hi.WJ.MAX_ROWS_250,this.maxView=Hi.WJ.MAX_VIEW_1000,this.movingView=!1,this.pollingInterval=Hi.WJ.REQ_REP_POLLING_INTERVAL_MS,this.reverse=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new Zi.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Yi.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Hi.WJ.REQUEST_SERVER_ROW_ID:Hi.WJ.DATASERVER_ROW_ID}init(){return(0,_o.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid&&this.datasource.validResourceName(this.resourceName)&&this.connect.isConnected){const e=yield this.connect.getMetadata(this.resourceName);this.isRequestServer=e.TYPE===Hi._g.REQUEST_SERVER;const a=Object.assign({getRowId:e=>e.data[this.rowId]},this.deferredGridOptions);this.agGrid.gridOptions=Object.assign({},a),this.agGrid.addEventListener("onGridReady",(()=>(0,_o.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Ki.T)(1),(0,Xi.b)(r),(0,en.b)((e=>Ho.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Ho.warn("Application not connected, falling back to local columnDefs/rowData")}))}deinit(){this.reset()}reset(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.dataLogoff(),this.clearRowData(),this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new Zi.X(new Map),this.datasource.deinit()}restart(){this.deinit(),this.init()}refreshRows(){this.setRowData(Array.from(this.rows.values()))}dataLogoff(){this.sourceRef&&!this.isRequestServer&&!this.isSnapshot&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.sourceRef),this.sourceRef=void 0}clearRowData(e=!0){var a,r,t,o;this.rows=new Map,this.agTransaction=void 0,e&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),null===(o=null===(t=this.agGrid)||void 0===t?void 0:t.gridApi)||void 0===o||o.setRowData([])}setRowData(e){var a;const r=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDefs();if(!r||0===r.length){const e=this.getAgColumnDefs(this.datasource.fieldMetadata);e&&this.agGrid.gridApi.setColumnDefs(e)}const t=this.rowDataMapper?this.rowDataMapper(e):e;this.agGrid.gridApi.setRowData(t),this.requiresFullRowDataAndColDefs=!1}reloadResourceData(){var e,a;return(0,_o.__awaiter)(this,void 0,void 0,(function*(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.dataLogoff(),this.clearRowData(null),null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.showLoadingOverlay(),this.loadResourceData(null)}))}loadResourceData(e=!0){return(0,_o.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Ho.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();if(this.isSnapshot){const e=yield this.datasource.snapshot();if(e){const a=this.handleSnapshot(e);this.setRowData(a)}}else Ho.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const a=e.MESSAGE_TYPE;if(a&&a===Vi.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Qi.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Qi.$)(e).inserts:e.inserts}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,maxRows:this.maxRows,maxView:this.maxView,movingView:this.movingView,orderBy:this.orderBy,pollingInterval:this.pollingInterval,request:this.request,resourceName:this.resourceName,reverse:this.reverse}}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}applyRequestServerData(e){var a;const r=e.REPLY;if(!Array.isArray(r)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void Ho.error("received invalid RequestServerResult",e);if(this.requiresFullRowDataAndColDefs){null==r||r.forEach((e=>{this.rows.set(e[this.rowId],e)}));const e=this.rows.size>0?Array.from(this.rows.values()):r;return void this.setRowData(e)}const t=[],o=Array.from(this.rows.values()).filter((e=>{const a=r.find((a=>a[this.rowId]===e[this.rowId]));return!a||(t.push(a),!1)})),i=r.filter((e=>!this.rows.has(e[this.rowId])));this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(i),this.handleStreamDeletes(o),this.handleStreamUpdates(t),this.applyAllAgTransactions()}applyDataserverData(e){var a;if(this.requiresFullRowDataAndColDefs){null===(a=e.inserts)||void 0===a||a.forEach((e=>{this.rows.set(e[this.rowId],e)}));const r=Array.from(this.rows.values());this.setRowData(r)}else this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(e.inserts),this.handleStreamDeletes(e.deletes),this.handleStreamUpdates(e.updates),this.applyAllAgTransactions()}applyAllAgTransactions(){this.agTransaction.add.length||this.agTransaction.update.length||this.agTransaction.remove.length?(this.agTransaction.add.length>0&&this.applyMappedAgTransaction({add:this.agTransaction.add,addIndex:this.agGrid.addIndex},on.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},on.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},on.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}applyMappedAgTransaction(e,a,r){const t=r?"applyTransactionAsync":"applyTransaction";this.agGrid.gridApi[t](this.mapTransaction(e,[a]))}mapTransaction(e,a=Object.values(on)){if(!this.rowDataMapper)return e;const r={};return a.includes(on.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(on.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(on.Update)&&(r.update=this.rowDataMapper(e.update,this.rows)),r}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rows.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r)}else this.agTransaction.add.push(e),this.agTransaction.addIndex=0;this.rows.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{this.agTransaction.remove.push({[this.rowId]:e[this.rowId]}),this.rows.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r),this.rows.set(e[this.rowId],r)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=(e.type,{suppressAndOrCondition:!0,filterOptions:["contains"]}),e.type){case Wi.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=Pi.boolean);break;case Wi.r.DATE:r.valueFormatter=rn;break;case Wi.r.DATETIME:r.valueFormatter=tn}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.agGrid.onlyTemplateColDefs&&!t||this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values()));return(0,Yi.p)(a.join(" && "),";")}setFilter(e,a){this.criteriaFromFilters.set(e,a),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}};(0,_o.__decorate)([qi.g],nn.prototype,"auth",void 0),(0,_o.__decorate)([l.lj],nn.prototype,"connect",void 0),(0,_o.__decorate)([Ji.Yh],nn.prototype,"datasource",void 0),(0,_o.__decorate)([s.observable],nn.prototype,"deferredGridOptions",void 0),(0,_o.__decorate)([s.observable],nn.prototype,"deferredColumnStates",void 0),(0,_o.__decorate)([s.attr],nn.prototype,"criteria",void 0),(0,_o.__decorate)([s.attr],nn.prototype,"fields",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],nn.prototype,"isSnapshot",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"max-rows"})],nn.prototype,"maxRows",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"max-view"})],nn.prototype,"maxView",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],nn.prototype,"movingView",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"order-by"})],nn.prototype,"orderBy",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"polling-interval"})],nn.prototype,"pollingInterval",void 0),(0,_o.__decorate)([s.observable],nn.prototype,"request",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"resource-name"})],nn.prototype,"resourceName",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean"})],nn.prototype,"reverse",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"row-id"})],nn.prototype,"rowIdAttr",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],nn.prototype,"restartOnReconnection",void 0),(0,_o.__decorate)([s.observable],nn.prototype,"rowDataMapper",void 0),nn=(0,_o.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],nn);let ln=class extends nn{};ln=(0,_o.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],ln);var gn=r(66306),dn=r(47546);function sn(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"agNumberColumnFilter";case"date":case"datetime":return"agDateColumnFilter";default:return"agTextColumnFilter"}}function cn(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn";case"date":case"datetime":return"dateColumn";default:return"textColumn"}}function pn({value:e}){return(0,an.D_)(e)}function un({value:e}){return(0,an.Lx)(e)}class hn{constructor(e){this.server_ROWS_COUNT=0,this.client_ROWS_COUNT=0,this.moreRows=!1,this.calculatedRowsCount=0,this.lastSequenceId=0,this.rowData=new Map,this.dataserverStream=e.stream,this.resourceName=e.resourceName,this.resourceParams=e.resourceParams,this.originalCriteriaMatch=e.resourceParams.CRITERIA_MATCH,this.resourceIndexes=e.resourceIndexes,this.resourceColDefs=e.resourceColDefs,this.maxRows=e.maxRows,this.maxView=e.maxView,this.rowId=e.rowId,this.pagination=e.pagination}getRows(e){var a;return(0,_o.__awaiter)(this,void 0,void 0,(function*(){const r=e.request.filterModel,t=Object.keys(r).length>0,o=0===Object.keys(r).length,i=JSON.stringify(r)!==JSON.stringify(this.currentFilterModel);(i||t)&&(o&&this.currentFilterModel?(this.currentFilterModel=null,this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.restartSubscription()):i&&t&&(this.currentFilterModel=r,this.resourceParams.CRITERIA_MATCH=this.buildCriteriaMatchFromFilters(),this.restartSubscription()));const n=e.request.sortModel;if(n.length!==(null===(a=this.currentSortModel)||void 0===a?void 0:a.length)||n.length>0)if(0===n.length&&this.currentSortModel)this.currentSortModel=null,this.resourceParams.ORDER_BY=null,this.resourceParams.REVERSE=null,this.restartSubscription();else if(n.length>0){this.currentSortModel=n;const e=this.currentSortModel[0].colId,a=this.currentSortModel[0].sort,r=this.getOrderByAndToBeSortedColIds(this.resourceIndexes,e);r.toBeSorted.forEach((e=>{this.currentSortModel.push({sort:a,colId:e})})),this.resourceParams.ORDER_BY=r.orderBy,this.resourceParams.REVERSE="desc"===a,this.restartSubscription()}this.moreRows&&e.request.startRow>=Number(this.maxRows)&&this.connect.getMoreRows(this.streamSourceRef),this.dataserverStream.pipe((0,dn.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Vi.Cs.LOGOFF_ACK||o===Vi.Cs.MSG_NACK))return void e.fail();if(this.moreRows=a.MORE_ROWS,!a.ROW){this.rowData=new Map;const a={rowData:Array.from(this.rowData.values()),rowCount:0};return void e.success(a)}{const e=(0,Qi.$)(a);this.handleInitialStreamLoad(e)}this.lastSequenceId=a.SEQUENCE_ID,1===this.lastSequenceId&&(this.streamSourceRef=a.SOURCE_REF,this.server_ROWS_COUNT=null!==(r=a.ROWS_COUNT)&&void 0!==r?r:this.rowData.size),!this.moreRows&&this.server_ROWS_COUNT>=this.client_ROWS_COUNT?this.calculatedRowsCount=this.client_ROWS_COUNT:this.calculatedRowsCount+=null!==(t=this.rowData.size)&&void 0!==t?t:0;const i={rowData:Array.from(this.rowData.values())};this.pagination&&(i.rowCount=Math.min(this.server_ROWS_COUNT,this.maxView)),e.request.endRow>this.maxView||e.request.endRow>this.calculatedRowsCount?i.rowCount=this.calculatedRowsCount:e.request.endRow===this.server_ROWS_COUNT&&(i.rowCount=this.server_ROWS_COUNT),e.success(i)}))}))}dataLogoff(){this.streamSourceRef&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.streamSourceRef),this.streamSourceRef=void 0}restartSubscription(){this.dataLogoff(),this.rowData=new Map,this.client_ROWS_COUNT=0;this.dataserverStream=this.connect.stream(this.resourceName,(e=>e),(e=>Ho.error(e)),this.resourceParams)}getOrderByAndToBeSortedColIds(e,a){for(const[r,t]of e.entries()){const e=t.findIndex((e=>e===a));if(-1!==e){const a=[...t];return a.splice(e,1),{orderBy:r,toBeSorted:a}}}}handleInitialStreamLoad(e){var a;if(!e)return;const r=new Map;null===(a=e.inserts)||void 0===a||a.forEach((e=>{r.set(e.ROW_REF,e)})),this.client_ROWS_COUNT+=r.size,this.rowData=r}buildCriteriaMatchFromFilters(){this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.resourceParams.CRITERIA_MATCH&&"string"==typeof this.resourceParams.CRITERIA_MATCH&&(this.resourceParams.CRITERIA_MATCH=this.resourceParams.CRITERIA_MATCH.split(";")),this.resourceParams.CRITERIA_MATCH||(this.resourceParams.CRITERIA_MATCH=[]);return this.resourceParams.CRITERIA_MATCH.concat(this.criteriaFromFilters()).join(" && ")}criteriaFromFilters(){const e=[];return this.getFiltersByType("text").forEach((a=>{if(this.currentFilterModel[a].filter||"false"!==this.currentFilterModel[a].type&&"true"!==this.currentFilterModel[a].type)switch(this.currentFilterModel[a].type){case"equals":e.push(`${a} == '${this.currentFilterModel[a].filter}'`);break;case"contains":e.push(`Expr.containsIgnoreCase(${a}, '${this.currentFilterModel[a].filter}')`)}else e.push(`${a} == ${this.currentFilterModel[a].type}`)})),this.getFiltersByType("number").forEach((a=>{const r=this.currentFilterModel[a].filter;switch(this.currentFilterModel[a].type){case"equals":!isNaN(r)&&e.push(`${a} == ${r}`);break;case"lessThan":!isNaN(r)&&e.push(`${a} < ${r}`);break;case"greaterThan":!isNaN(r)&&e.push(`${a} > ${r}`)}})),this.getFiltersByType("date").forEach((a=>{const r=this.currentFilterModel[a].dateFrom.replace(/-/g,"").replace("T","-").split(" ")[0];switch(this.currentFilterModel[a].type){case"equals":e.push(`Expr.dateIsEqual(${a}, '${r}')`);break;case"lessThan":e.push(`Expr.dateIsBefore(${a}, '${r}')`);break;case"greaterThan":e.push(`Expr.dateIsAfter(${a}, '${r}')`)}})),e}getFiltersByType(e){return Object.keys(this.currentFilterModel).filter((e=>-1!==this.resourceColDefs.findIndex((a=>a.NAME===e)))).filter((a=>this.currentFilterModel[a].filterType===e))}}(0,_o.__decorate)([qi.g],hn.prototype,"auth",void 0),(0,_o.__decorate)([l.lj],hn.prototype,"connect",void 0);let mn=class extends(Di(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Hi.WJ.MAX_ROWS_250,this.maxView=Hi.WJ.MAX_VIEW_1000,this.movingView=!0,this.pagination=!1,this.rowId="ROW_REF",this.reverse=!1}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,Yi.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.reset()}))}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions={getRowId:e=>e.data?e.data[this.rowId]:null,cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!0},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{}},void this.agGrid.addEventListener("onGridReady",(()=>(0,_o.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Ho.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,gn.C)(e);const a=(0,gn.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new hn({stream:t,resourceName:this.resourceName,resourceParams:this.params,resourceIndexes:this.indexes,resourceColDefs:this.originalFieldDef,maxRows:this.maxRows,maxView:this.maxView,rowId:this.rowId,pagination:this.pagination}),this.agGrid.gridApi.setServerSideDatasource(this.dataserverStream)}))),{once:!0});Ho.warn("Application not connected, falling back to local columnDefs/rowData")}reset(){this.clearRowData(),this.dataserverStream=void 0,this.originalFieldDef=void 0,this.agGrid.gridApi.setServerSideDatasource(this.dataserverStream)}restart(){this.reset(),this.init()}get agGrid(){return this.parentElement}clearRowData(){var e,a,r,t;null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.setColumnDefs([]);const o={remove:[]};null===(r=this.agGrid.gridApi)||void 0===r||r.forEachNode((e=>{o.remove.push(e.data)})),null===(t=this.agGrid.gridApi)||void 0===t||t.applyServerSideTransaction(o)}getResourceIndexes(e){const a=new Map;return null==e||e.forEach((e=>{a.set(e.NAME,e.FIELDS.split(" "))})),a}get params(){const e={CRITERIA_MATCH:this.criteria,FIELDS:this.fields,MAX_ROWS:this.maxRows,MAX_VIEW:this.maxView,MOVING_VIEW:this.movingView,REVERSE:this.reverse},a=Array.from(this.indexes.keys());if(this.orderBy)if(a.findIndex((e=>e===this.orderBy))>-1)e.ORDER_BY=this.orderBy;else{const e=a.map((e=>e));Ho.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return Ho.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,_o.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Ho.debug(e)),(e=>Ho.error(e)),null!=e?e:this.params)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=function(e){switch(e){case Wi.r.BOOLEAN:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["contains",{displayKey:"true",displayName:"True",predicate:(e,a)=>"true"===a||!0===a,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,a)=>"false"===a||!1===a,numberOfInputs:0},{displayKey:"true-false",displayName:"True/False",predicate:(e,a)=>"true"===a||!0===a||"false"===a||!1===a,numberOfInputs:0}]};case Wi.r.DATE:case Wi.r.DATETIME:return{comparator:(e,a)=>{if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,browserDatePicker:!0,filterOptions:["equals","lessThan","greaterThan"]};case Wi.r.NUMBER:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["equals","lessThan","greaterThan"]};default:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["contains","equals"]}}}(e.type),e.type){case Wi.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=Pi.boolean);break;case Wi.r.DATE:r.valueFormatter=pn;break;case Wi.r.DATETIME:r.valueFormatter=un}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.agGrid.onlyTemplateColDefs&&!t||this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:cn(e.type),filter:sn(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.applyTemplateDefinitions(a,!0)}};(0,_o.__decorate)([l.lj],mn.prototype,"connect",void 0),(0,_o.__decorate)([s.attr],mn.prototype,"criteria",void 0),(0,_o.__decorate)([s.attr],mn.prototype,"fields",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],mn.prototype,"isSnapshot",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"max-rows"})],mn.prototype,"maxRows",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"max-view"})],mn.prototype,"maxView",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"moving-view"})],mn.prototype,"movingView",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"order-by"})],mn.prototype,"orderBy",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"resource-name"})],mn.prototype,"resourceName",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean"})],mn.prototype,"pagination",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"row-id"})],mn.prototype,"rowId",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean"})],mn.prototype,"reverse",void 0),mn=(0,_o.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],mn);const vn=s.css`
|
|
1964
1888
|
.ag-icon {
|
|
1965
1889
|
font-family: var(--ag-icon-font-family);
|
|
1966
1890
|
font-size: var(--ag-icon-size);
|
|
@@ -9137,7 +9061,7 @@
|
|
|
9137
9061
|
input[class^='ag-'][type='range']:disabled {
|
|
9138
9062
|
opacity: 0.5;
|
|
9139
9063
|
}
|
|
9140
|
-
`,
|
|
9064
|
+
`,bn=s.css`
|
|
9141
9065
|
.ag-dnd-ghost {
|
|
9142
9066
|
background: var(--ag-header-background-color, var(--ag-background-color, #1f2126));
|
|
9143
9067
|
border: solid 1px;
|
|
@@ -9154,7 +9078,7 @@
|
|
|
9154
9078
|
overflow: hidden;
|
|
9155
9079
|
text-overflow: ellipsis;
|
|
9156
9080
|
}
|
|
9157
|
-
`,
|
|
9081
|
+
`,fn=s.css`
|
|
9158
9082
|
.ag-theme-alpine,
|
|
9159
9083
|
.ag-theme-alpine-dark {
|
|
9160
9084
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -9604,7 +9528,7 @@
|
|
|
9604
9528
|
.ag-theme-alpine-dark {
|
|
9605
9529
|
color-scheme: dark;
|
|
9606
9530
|
}
|
|
9607
|
-
`,
|
|
9531
|
+
`,wn=s.css`
|
|
9608
9532
|
.ag-theme-balham,
|
|
9609
9533
|
.ag-theme-balham-dark {
|
|
9610
9534
|
--ag-balham-active-color: #0091ea;
|
|
@@ -9874,7 +9798,7 @@
|
|
|
9874
9798
|
.ag-theme-balham-dark {
|
|
9875
9799
|
color-scheme: dark;
|
|
9876
9800
|
}
|
|
9877
|
-
`,
|
|
9801
|
+
`,yn=s.css`
|
|
9878
9802
|
.ag-theme-material {
|
|
9879
9803
|
--ag-material-primary-color: #3f51b5;
|
|
9880
9804
|
--ag-material-accent-color: #ff4081;
|
|
@@ -10139,14 +10063,14 @@
|
|
|
10139
10063
|
.ag-theme-material .ag-picker-field-wrapper:focus {
|
|
10140
10064
|
box-shadow: 0 0 0 1px var(--ag-material-primary-color);
|
|
10141
10065
|
}
|
|
10142
|
-
`,
|
|
10143
|
-
${
|
|
10144
|
-
${
|
|
10145
|
-
${
|
|
10146
|
-
${
|
|
10147
|
-
${
|
|
10148
|
-
`,
|
|
10149
|
-
${
|
|
10066
|
+
`,xn=s.css`
|
|
10067
|
+
${vn}
|
|
10068
|
+
${bn}
|
|
10069
|
+
${fn}
|
|
10070
|
+
${wn}
|
|
10071
|
+
${yn}
|
|
10072
|
+
`,zn=s.css`
|
|
10073
|
+
${xn}
|
|
10150
10074
|
:host {
|
|
10151
10075
|
width: 100%;
|
|
10152
10076
|
height: 100%;
|
|
@@ -10173,14 +10097,14 @@
|
|
|
10173
10097
|
.ag-cell-inline-editing {
|
|
10174
10098
|
height: inherit !important;
|
|
10175
10099
|
}
|
|
10176
|
-
`,
|
|
10100
|
+
`,kn=s.html`
|
|
10177
10101
|
<template>
|
|
10178
10102
|
<span part="grid" class="${e=>e.classNames}">
|
|
10179
10103
|
<slot name="grid" ${(0,s.ref)("gridSlot")}></slot>
|
|
10180
10104
|
<slot></slot>
|
|
10181
10105
|
</span>
|
|
10182
10106
|
</template>
|
|
10183
|
-
`;function Mn(e,a){const r={},t=[],o="field",i="colId";return a.forEach((a=>{const n=e.find((e=>e[o]===a[i]||e[i]&&e[i]===a[i]));if(n){const e=Object.assign(Object.assign({},n),a);r[n[o]]=e,t.push(e)}})),e.forEach((e=>{if(!r.hasOwnProperty(e[o])){const a=Object.assign({},e);r[e[o]]=a,t.push(a)}})),t}Mi.O3h.registerModules([Ni.jM,Li.I]);const Nn=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class $n extends(ji(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,qr.A)(Yi(a),a),this.insertFontFace(a)}constructor(){super(),this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.addIndex=0,this.asyncAdd=!1,this.asyncRemove=!1,this.asyncUpdate=!0,this.enableCellFlashing=!1,this.enabledRowFlashing=!1,this.enableRowFlashing=!1,this.gridFontFace=Zi,this.columnComponentName="grid-pro-column",this.theme=Hi.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Mi.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Nn(a)]=a,e)),{})}connectedCallback(){super.connectedCallback(),this.rehydrationAttempted=!1,this.gridAutosizingEnabled&&((e,a)=>{const r={root:document.documentElement};new IntersectionObserver((e=>{e.forEach((e=>{a(e.intersectionRatio>0)}))}),r).observe(e)})(this,(e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.shouldRunConnect&&Mi.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Nn(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[Qi.action]:ei,[Qi.actionsMenu]:ni,[Qi.boolean]:si};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout((()=>{var e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()}),5))}removeConfigWidthsToAutosize(e){return e.map((e=>Object.assign(Object.assign({},e),{width:null})))}saveColumnState(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){const e=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");let a=this.columnApi.getColumnState();if(a=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(a):a,0===a.length)return;e[this.persistColumnStateKey]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(e))}}getSavedColumnState(){const e=this.session.getLocalStorageItem("gridOptions");if(this.statePersistanceEnabled()&&e){const a=JSON.parse(e);if(this.persistColumnStateKey in a)return JSON.parse(a[this.persistColumnStateKey])}return[]}restoreColumnState(){var e;this.rehydrationAttempted=!0;const a=this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}cacheFilterConfig(){var e;this.filterConfig=(null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0}restoreCachedFilterConfig(){var e,a;void 0!==this.filterConfig&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(this.filterConfig),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}get gridOptions(){return this.agGridOptions}get gridProGenesisDatasource(){return this.querySelector("grid-pro-genesis-datasource")}set gridOptions(e){const a=this.globalEventListener.bind(this),r=()=>{this.saveColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:t,components:o,defaultColDef:i,onGridReady:n,onFirstDataRendered:l}=e,g=(0,Ko.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),d=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0},this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.enableFlashingRows.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProGenesisDatasource?d.columnDefs=t:d.columnDefs=this.applyTemplateDefinitions(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Mi.plv.copyAttributesToGridOptions(d,this.agAttributes));const c={globalEventListener:a};s.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Mi.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}enableFlashingRows(){if(this.enableRowFlashing||this.enabledRowFlashing){if(!this.asyncAdd)return void Xo.warn("Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled");this.gridApi.addEventListener(Mi.zW2.EVENT_ASYNC_TRANSACTIONS_FLUSHED,(e=>{e.results.forEach((e=>{e.add.length&&this.gridApi.flashCells({rowNodes:e.add})}))}))}}applyTemplateDefinitions(e,a=!1){return Xo.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;const t=e||[],o=this.querySelectorAll(this.columnComponentName),i=Array.from(o).map((e=>{var a;return null===(a=e.definition)||void 0===a?void 0:a.field}));let n=[];if(n=0===o.length?t:[...t.filter((e=>!i.includes(e.field))),...Array.from(o).map((e=>{var a;if(this.enableCellFlashing&&void 0===e.definition.enableCellChangeFlash&&(e.definition.enableCellChangeFlash=!0),!this.autoCellRendererByType||e.definition.valueFormatter)return e.definition;const r=null===(a=t.find((a=>e.definition.field===a.field)))||void 0===a?void 0:a.valueFormatter;return r&&(e.definition.valueFormatter=r),e.definition}))],this.gridProGenesisDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Mn(n,e);if((null===(r=this.gridProGenesisDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Mn(n,this.gridProGenesisDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Mi.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Mi.plv.ALL_PROPERTIES.map((e=>Nn(e)));return e.concat(a)}agAttributeChangedCallback(e,a,r){if(a===r)return;const t=this.agPropertiesMap[e];if(t&&(this.agAttributes[t]=r,this.initialised)){const e={};e[t]={currentValue:r},Mi.plv.processOnChange(e,this.gridApi)}}globalEventListener(e,a){const r=e.toLowerCase(),t=new Event(r);t.agGridDetails=a,this.dispatchEvent(t);const o="on"+r;"function"==typeof this[o]&&this[o](t)}insertFontFace(e){const a=Ji[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Ei.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,Ko.__decorate)([s.observable],$n.prototype,"columnApi",void 0),(0,Ko.__decorate)([s.observable],$n.prototype,"gridApi",void 0),(0,Ko.__decorate)([$i.z],$n.prototype,"session",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],$n.prototype,"autoCellRendererByType",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],$n.prototype,"onlyTemplateColDefs",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],$n.prototype,"gridAutosizingEnabled",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"add-index"})],$n.prototype,"addIndex",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],$n.prototype,"asyncAdd",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],$n.prototype,"asyncRemove",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],$n.prototype,"asyncUpdate",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],$n.prototype,"enableCellFlashing",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],$n.prototype,"enabledRowFlashing",void 0),(0,Ko.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],$n.prototype,"enableRowFlashing",void 0),(0,Ko.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],$n.prototype,"persistColumnStateKey",void 0),(0,Ko.__decorate)([s.observable],$n.prototype,"gridFontFace",void 0),(0,Ko.__decorate)([s.attr],$n.prototype,"columnComponentName",void 0),(0,Ko.__decorate)([s.observable],$n.prototype,"eventsAndCallbacks",void 0),(0,Ko.__decorate)([s.attr],$n.prototype,"headerHeight",void 0),(0,Ko.__decorate)([s.attr],$n.prototype,"rowHeight",void 0),(0,Ko.__decorate)([s.attr],$n.prototype,"theme",void 0),(0,Ko.__decorate)([s.observable],$n.prototype,"classNames",void 0),(0,Ko.__decorate)([s.observable],$n.prototype,"agGrid",void 0),(0,Ko.__decorate)([s.observable],$n.prototype,"gridSlot",void 0),(0,Ko.__decorate)([s.observable],$n.prototype,"gridComponents",void 0);const Rn=void 0,jn={shadowOptions:void 0},In=$n.compose(Object.assign({baseName:"grid-pro",styles:Dn,template:Ln,shadowOptions:Rn},jn)),En={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#879ba6")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#1f2126")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2e3339")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2b2e34"))},Pn={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#000000")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#181d1f")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#FFFFFF")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#babfc7")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2196f3"))},{create:Un}=c.DesignToken,Bn={backgroundColor:Un("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Pn.backgroundSwatch:En.backgroundSwatch)),borderColor:Un("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Pn.borderSwatch:En.borderSwatch)),foregroundColor:Un("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Pn.foregroundSwatch:En.foregroundSwatch)),headerForegroundColor:Un("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Pn.headerForegroundSwatch:En.headerForegroundSwatch)),rowHoverColor:Un("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Pn.rowHoverSwatch:En.rowHoverSwatch))},Gn=s.css`
|
|
10107
|
+
`;function Sn(e,a){const r={},t=[],o="field",i="colId";return a.forEach((a=>{const n=e.find((e=>e[o]===a[i]||e[i]&&e[i]===a[i]));if(n){const e=Object.assign(Object.assign({},n),a);r[n[o]]=e,t.push(e)}})),e.forEach((e=>{if(!r.hasOwnProperty(e[o])){const a=Object.assign({},e);r[e[o]]=a,t.push(a)}})),t}Si.O3h.registerModules([Ci.jM,ki.I]);const Cn=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class An extends(Di(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Ur.A)(Ii(a),a),this.insertFontFace(a)}constructor(){super(),this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.addIndex=0,this.asyncAdd=!1,this.asyncRemove=!1,this.asyncUpdate=!0,this.enableCellFlashing=!1,this.enabledRowFlashing=!1,this.enableRowFlashing=!1,this.gridFontFace=_i,this.columnComponentName="grid-pro-column",this.theme=ji.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Si.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Cn(a)]=a,e)),{})}connectedCallback(){super.connectedCallback(),this.rehydrationAttempted=!1,this.gridAutosizingEnabled&&((e,a)=>{const r={root:document.documentElement};new IntersectionObserver((e=>{e.forEach((e=>{a(e.intersectionRatio>0)}))}),r).observe(e)})(this,(e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.shouldRunConnect&&Si.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Cn(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[Pi.action]:Yo,[Pi.actionsMenu]:Zo,[Pi.boolean]:ai};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout((()=>{var e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()}),5))}removeConfigWidthsToAutosize(e){return e.map((e=>Object.assign(Object.assign({},e),{width:null})))}saveColumnState(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){const e=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");let a=this.columnApi.getColumnState();if(a=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(a):a,0===a.length)return;e[this.persistColumnStateKey]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(e))}}getSavedColumnState(){const e=this.session.getLocalStorageItem("gridOptions");if(this.statePersistanceEnabled()&&e){const a=JSON.parse(e);if(this.persistColumnStateKey in a)return JSON.parse(a[this.persistColumnStateKey])}return[]}restoreColumnState(){var e;this.rehydrationAttempted=!0;const a=this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}cacheFilterConfig(){var e;this.filterConfig=(null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0}restoreCachedFilterConfig(){var e,a;void 0!==this.filterConfig&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(this.filterConfig),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}get gridOptions(){return this.agGridOptions}get gridProGenesisDatasource(){return this.querySelector("grid-pro-genesis-datasource")}set gridOptions(e){const a=this.globalEventListener.bind(this),r=()=>{this.saveColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:t,components:o,defaultColDef:i,onGridReady:n,onFirstDataRendered:l}=e,g=(0,_o.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),d=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0},this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.enableFlashingRows.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProGenesisDatasource?d.columnDefs=t:d.columnDefs=this.applyTemplateDefinitions(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Si.plv.copyAttributesToGridOptions(d,this.agAttributes));const c={globalEventListener:a};s.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Si.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}enableFlashingRows(){if(this.enableRowFlashing||this.enabledRowFlashing){if(!this.asyncAdd)return void Ho.warn("Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled");this.gridApi.addEventListener(Si.zW2.EVENT_ASYNC_TRANSACTIONS_FLUSHED,(e=>{e.results.forEach((e=>{e.add.length&&this.gridApi.flashCells({rowNodes:e.add})}))}))}}applyTemplateDefinitions(e,a=!1){return Ho.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;const t=e||[],o=this.querySelectorAll(this.columnComponentName),i=Array.from(o).map((e=>{var a;return null===(a=e.definition)||void 0===a?void 0:a.field}));let n=[];if(n=0===o.length?t:[...t.filter((e=>!i.includes(e.field))),...Array.from(o).map((e=>{var a;if(this.enableCellFlashing&&void 0===e.definition.enableCellChangeFlash&&(e.definition.enableCellChangeFlash=!0),!this.autoCellRendererByType||e.definition.valueFormatter)return e.definition;const r=null===(a=t.find((a=>e.definition.field===a.field)))||void 0===a?void 0:a.valueFormatter;return r&&(e.definition.valueFormatter=r),e.definition}))],this.gridProGenesisDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Sn(n,e);if((null===(r=this.gridProGenesisDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Sn(n,this.gridProGenesisDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Si.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Si.plv.ALL_PROPERTIES.map((e=>Cn(e)));return e.concat(a)}agAttributeChangedCallback(e,a,r){if(a===r)return;const t=this.agPropertiesMap[e];if(t&&(this.agAttributes[t]=r,this.initialised)){const e={};e[t]={currentValue:r},Si.plv.processOnChange(e,this.gridApi)}}globalEventListener(e,a){const r=e.toLowerCase(),t=new Event(r);t.agGridDetails=a,this.dispatchEvent(t);const o="on"+r;"function"==typeof this[o]&&this[o](t)}insertFontFace(e){const a=Gi[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Fi.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,_o.__decorate)([s.observable],An.prototype,"columnApi",void 0),(0,_o.__decorate)([s.observable],An.prototype,"gridApi",void 0),(0,_o.__decorate)([Ai.z],An.prototype,"session",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],An.prototype,"autoCellRendererByType",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],An.prototype,"onlyTemplateColDefs",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],An.prototype,"gridAutosizingEnabled",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"add-index"})],An.prototype,"addIndex",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],An.prototype,"asyncAdd",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],An.prototype,"asyncRemove",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],An.prototype,"asyncUpdate",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],An.prototype,"enableCellFlashing",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],An.prototype,"enabledRowFlashing",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],An.prototype,"enableRowFlashing",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],An.prototype,"persistColumnStateKey",void 0),(0,_o.__decorate)([s.observable],An.prototype,"gridFontFace",void 0),(0,_o.__decorate)([s.attr],An.prototype,"columnComponentName",void 0),(0,_o.__decorate)([s.observable],An.prototype,"eventsAndCallbacks",void 0),(0,_o.__decorate)([s.attr],An.prototype,"headerHeight",void 0),(0,_o.__decorate)([s.attr],An.prototype,"rowHeight",void 0),(0,_o.__decorate)([s.attr],An.prototype,"theme",void 0),(0,_o.__decorate)([s.observable],An.prototype,"classNames",void 0),(0,_o.__decorate)([s.observable],An.prototype,"agGrid",void 0),(0,_o.__decorate)([s.observable],An.prototype,"gridSlot",void 0),(0,_o.__decorate)([s.observable],An.prototype,"gridComponents",void 0);const Tn=void 0,Dn={shadowOptions:void 0},On=An.compose(Object.assign({baseName:"grid-pro",styles:zn,template:kn,shadowOptions:Tn},Dn)),Fn={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#879ba6")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#1f2126")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2e3339")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2b2e34"))},Ln={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#000000")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#181d1f")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#FFFFFF")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#babfc7")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2196f3"))},{create:Mn}=c.DesignToken,Nn={backgroundColor:Mn("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Ln.backgroundSwatch:Fn.backgroundSwatch)),borderColor:Mn("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Ln.borderSwatch:Fn.borderSwatch)),foregroundColor:Mn("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Ln.foregroundSwatch:Fn.foregroundSwatch)),headerForegroundColor:Mn("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Ln.headerForegroundSwatch:Fn.headerForegroundSwatch)),rowHoverColor:Mn("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Ln.rowHoverSwatch:Fn.rowHoverSwatch))},Rn=s.css`
|
|
10184
10108
|
.ag-theme-genesis-rapid,
|
|
10185
10109
|
.ag-theme-genesis-rapid-dark {
|
|
10186
10110
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -10640,50 +10564,50 @@
|
|
|
10640
10564
|
.ag-theme-genesis-rapid-dark {
|
|
10641
10565
|
color-scheme: dark;
|
|
10642
10566
|
}
|
|
10643
|
-
|
|
10644
|
-
${
|
|
10645
|
-
${
|
|
10567
|
+
`,$n={[$i.backgroundColor]:Nn.backgroundColor,[$i.foregroundColor]:Nn.foregroundColor,[$i.oddRowBackgroundColor]:Nn.backgroundColor,[$i.headerBackgroundColor]:Nn.backgroundColor,[$i.headerForegroundColor]:Nn.headerForegroundColor,[$i.selectedRowBackgroundColor]:Nn.rowHoverColor,[$i.rowHoverColor]:Nn.rowHoverColor,[$i.borderColor]:Nn.borderColor,[$i.rowBorderColor]:Nn.rowHoverColor,[$i.modalOverlayBackgroundColor]:Nn.backgroundColor,[$i.inputFocusBoxShadow]:Nn.headerForegroundColor,[$i.inputFocusBorderColor]:Nn.headerForegroundColor,[$i.headerColumnResizeHandleColor]:Nn.headerForegroundColor},jn="ag-theme-genesis-rapid",In=s.css`
|
|
10568
|
+
${Rn}
|
|
10569
|
+
${Ei(jn,$n)}
|
|
10646
10570
|
|
|
10647
|
-
.${
|
|
10571
|
+
.${jn} {
|
|
10648
10572
|
${xe()}
|
|
10649
10573
|
}
|
|
10650
10574
|
|
|
10651
|
-
.${
|
|
10575
|
+
.${jn} .ag-header {
|
|
10652
10576
|
border-bottom-color: var(--rapid-ag-header-foreground-color);
|
|
10653
10577
|
font-weight: bold;
|
|
10654
10578
|
}
|
|
10655
10579
|
|
|
10656
|
-
.${
|
|
10580
|
+
.${jn} .ag-root-wrapper {
|
|
10657
10581
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
10658
10582
|
}
|
|
10659
|
-
`,
|
|
10660
|
-
${
|
|
10661
|
-
${
|
|
10583
|
+
`,En="ag-theme-genesis-rapid-dark",Pn=s.css`
|
|
10584
|
+
${Rn}
|
|
10585
|
+
${Ei(En,$n)}
|
|
10662
10586
|
|
|
10663
|
-
.${
|
|
10587
|
+
.${En} {
|
|
10664
10588
|
${xe()}
|
|
10665
10589
|
}
|
|
10666
10590
|
|
|
10667
|
-
.${
|
|
10591
|
+
.${En} .ag-header {
|
|
10668
10592
|
border-bottom-color: var(--rapid-ag-header-foreground-color);
|
|
10669
10593
|
font-weight: bold;
|
|
10670
10594
|
}
|
|
10671
10595
|
|
|
10672
|
-
.${
|
|
10596
|
+
.${En} .ag-cell {
|
|
10673
10597
|
line-height: var(--ag-line-height, 32px);
|
|
10674
10598
|
}
|
|
10675
10599
|
|
|
10676
|
-
.${
|
|
10600
|
+
.${En} .ag-root-wrapper {
|
|
10677
10601
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
10678
10602
|
}
|
|
10679
|
-
`,
|
|
10603
|
+
`,Un=s.css`
|
|
10680
10604
|
/* All the AG themes */
|
|
10681
|
-
${
|
|
10605
|
+
${zn}
|
|
10682
10606
|
|
|
10683
10607
|
/* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
|
|
10684
|
-
${
|
|
10685
|
-
${
|
|
10686
|
-
`,
|
|
10608
|
+
${In}
|
|
10609
|
+
${Pn}
|
|
10610
|
+
`,Bn=kn,Gn="ag-theme-genesis-rapid-dark";const _n=Dn,Hn={zeroAgActionRenderer:Jo,zeroAgActionsMenuRenderer:ei,zeroAgBooleanRenderer:ni,zeroAgTextRenderer:bi,zeroAgSelectRenderer:zi,zeroGridPro:class extends An{constructor(){super(...arguments),this.theme=Gn}themeChanged(e,a){(e||a===Gn)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[Pi.action]:qo,[Pi.actionsMenu]:Xo,[Pi.boolean]:ii};(this.theme===jn||this.theme===En)&&(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:Bn,styles:Un,shadowOptions:undefined},_n)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},Yn={foundationGridProActionRenderer:Wo,foundationGridProActionsMenuRenderer:Ko,foundationAgBooleanRenderer:oi,foundationAgTextRenderer:vi,foundationAgTextFieldRenderer:pi,foundationAgSelectRenderer:xi,foundationGridPro:On,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Vn,Qn=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Vn||(Vn={}));const Wn={Roboto:ye,"Segoe UI":'"Segoe UI", Arial, Helvetica, sans-serif',Monospace:'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace',"Times New Roman":'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif',Garamond:'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif',Georgia:'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',Helvetica:'Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif',Verdana:'Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif'},qn=Wn["Segoe UI"],Jn=s.css`
|
|
10687
10611
|
${(0,c.display)("block")} :host {
|
|
10688
10612
|
width: 100%;
|
|
10689
10613
|
display: inline-flex;
|
|
@@ -10815,7 +10739,7 @@
|
|
|
10815
10739
|
alpha-button {
|
|
10816
10740
|
margin: 0;
|
|
10817
10741
|
}
|
|
10818
|
-
`,
|
|
10742
|
+
`,Zn=s.html`
|
|
10819
10743
|
<template>
|
|
10820
10744
|
<div class="configuration">
|
|
10821
10745
|
${(0,s.when)((e=>!e.customDesignMode),s.html`
|
|
@@ -11023,7 +10947,7 @@
|
|
|
11023
10947
|
</div>
|
|
11024
10948
|
</div>
|
|
11025
10949
|
${(0,s.when)((e=>!e.customDesignMode),s.html`
|
|
11026
|
-
<alpha-checkbox :checked="${(0,
|
|
10950
|
+
<alpha-checkbox :checked="${(0,li.Z)((e=>e.preserveOptions),"boolean")}">
|
|
11027
10951
|
Preserve selected options when changing design systems
|
|
11028
10952
|
</alpha-checkbox>
|
|
11029
10953
|
`)}
|
|
@@ -11038,7 +10962,7 @@
|
|
|
11038
10962
|
<slot></slot>
|
|
11039
10963
|
</div>
|
|
11040
10964
|
</template>
|
|
11041
|
-
`,
|
|
10965
|
+
`,Kn=({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(Wn).find((a=>Wn[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Xn=Kn(Ce),el={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},al=Kn(i.designTokens),rl={zero:{prefix:"zero",tokenDefaults:Xn,buttons:el},alpha:{prefix:"alpha",tokenDefaults:al,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:el}};let tl=class extends s.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Xn.luminance===p.StandardLuminance.DarkMode,this.luminance=Xn.luminance,this.neutralColor=Xn.neutralColor,this.accentColor=Xn.accentColor,this.bodyFont=Xn.bodyFont,this.density=Xn.density,this.borderRadius=Xn.borderRadius,this.strokeWidth=Xn.strokeWidth,this.designUnit=Xn.designUnit,this.baseFontSize=Xn.baseFontSize,this.baseLineHeight=Xn.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof c.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof p.Combobox||e.target instanceof p.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof c.Slider){const a=parseInt(e.target.value),r=e.target.name;r&&Number.isInteger(a)&&(this[r]=a,this.updateUserSelections(r,a),this.styleUpdate())}},this.updateUserSelections=(e,a)=>{"ds"===e||this.tokenUpdateInProgress||(this.userSelections[e]=a)},this.modeChangeHandler=e=>{this.darkMode=e.target.checked,this.luminance=this.darkMode?p.StandardLuminance.DarkMode:p.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=Kn(a);rl.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Qn.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(rl[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Qn.__awaiter)(this,void 0,void 0,(function*(){const e=[{name:"Zero",value:"zero"},{name:"Foundation UI",value:"alpha"}];if(this.customDesignMode){const e={name:(yield this.getAppName())||"Custom Design",value:"custom"};this.designSystems=[e],this.ds="custom"}else this.designSystems=e}))}dsChanged(e,a){const r={prefix:rl[this.ds].prefix,buttonAppearanceAccent:rl[this.ds].buttons.accent,buttonAppearanceNeutral:rl[this.ds].buttons.neutral,buttonAppearanceOutline:rl[this.ds].buttons.outline};this.$emit(Vn.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(rl[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Wn[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(Vn.STYLES_CHANGED,e)}setTokensFromDs(e){this.tokenUpdateInProgress=!0,Object.keys(e).forEach((a=>{this.preserveOptions&&void 0!==this.userSelections[a]?this[a]=this.userSelections[a]:this[a]=e[a]})),this.darkMode=this.luminance===p.StandardLuminance.DarkMode,s.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppName(){return fetch("/api/name").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},we(),s.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Vn.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Qn.__decorate)([(0,s.attr)({mode:"boolean",attribute:"custom-design-mode"})],tl.prototype,"customDesignMode",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"designSystems",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"ds",void 0),(0,Qn.__decorate)([s.attr],tl.prototype,"darkMode",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"neutralColor",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"accentColor",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"bodyFont",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"density",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"borderRadius",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"strokeWidth",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"designUnit",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"baseFontSize",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"baseLineHeight",void 0),(0,Qn.__decorate)([s.observable],tl.prototype,"preserveOptions",void 0),tl=(0,Qn.__decorate)([(0,s.customElement)({name:"design-system-editor",template:Zn,styles:Jn})],tl);const ol=e=>{const a=(e=>{const a=(0,Me.parseColorHexRGB)(e);return a?p.SwatchRGB.from(a):null})(e);return a?p.PaletteRGB.create(a):null},il=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},nl=(e,a)=>{const r=ol(e.neutralColor);p.neutralPalette.setValueFor(a,r);const t=ol(e.accentColor);p.accentPalette.setValueFor(a,t),p.baseLayerLuminance.setValueFor(a,e.luminance),p.density.setValueFor(a,e.density),p.controlCornerRadius.setValueFor(a,e.borderRadius),p.strokeWidth.setValueFor(a,e.strokeWidth),p.designUnit.setValueFor(a,e.designUnit),p.bodyFont.setValueFor(a,e.bodyFont),p.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),p.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),p.typeRampMinus1FontSize.setValueFor(a,il(p.typeRampBaseFontSize,fe.Yd.minusOne,a)),p.typeRampMinus1LineHeight.setValueFor(a,il(p.typeRampBaseLineHeight,fe.Yd.minusOne,a)),p.typeRampMinus2FontSize.setValueFor(a,il(p.typeRampBaseFontSize,fe.Yd.minusTwo,a)),p.typeRampMinus2LineHeight.setValueFor(a,il(p.typeRampBaseLineHeight,fe.Yd.minusTwo,a)),p.typeRampPlus1FontSize.setValueFor(a,il(p.typeRampBaseFontSize,fe.Yd.plusOne,a)),p.typeRampPlus1LineHeight.setValueFor(a,il(p.typeRampBaseLineHeight,fe.Yd.plusOne,a)),p.typeRampPlus2FontSize.setValueFor(a,il(p.typeRampBaseFontSize,fe.Yd.plusTwo,a)),p.typeRampPlus2LineHeight.setValueFor(a,il(p.typeRampBaseLineHeight,fe.Yd.plusTwo,a)),p.typeRampPlus3FontSize.setValueFor(a,il(p.typeRampBaseFontSize,fe.Yd.plusThree,a)),p.typeRampPlus3LineHeight.setValueFor(a,il(p.typeRampBaseLineHeight,fe.Yd.plusThree,a)),p.typeRampPlus4FontSize.setValueFor(a,il(p.typeRampBaseFontSize,fe.Yd.plusFour,a)),p.typeRampPlus4LineHeight.setValueFor(a,il(p.typeRampBaseLineHeight,fe.Yd.plusFour,a)),p.typeRampPlus5FontSize.setValueFor(a,il(p.typeRampBaseFontSize,fe.Yd.plusFive,a)),p.typeRampPlus5LineHeight.setValueFor(a,il(p.typeRampBaseLineHeight,fe.Yd.plusFive,a)),p.typeRampPlus6FontSize.setValueFor(a,il(p.typeRampBaseFontSize,fe.Yd.plusSix,a)),p.typeRampPlus6LineHeight.setValueFor(a,il(p.typeRampBaseLineHeight,fe.Yd.plusSix,a))},ll=s.css`
|
|
11042
10966
|
:host {
|
|
11043
10967
|
background: var(--fill-color);
|
|
11044
10968
|
color: var(--neutral-foreground-rest);
|
|
@@ -11081,7 +11005,7 @@
|
|
|
11081
11005
|
zero-design-system-provider {
|
|
11082
11006
|
display: inline;
|
|
11083
11007
|
}
|
|
11084
|
-
`,
|
|
11008
|
+
`,gl=s.html`
|
|
11085
11009
|
${e=>{return a=e.prefix,s.html`
|
|
11086
11010
|
<template>
|
|
11087
11011
|
<${a}-design-system-provider ${(0,s.ref)("provider")}>
|
|
@@ -11282,7 +11206,7 @@
|
|
|
11282
11206
|
</${a}-design-system-provider>
|
|
11283
11207
|
</template>
|
|
11284
11208
|
`;var a}}
|
|
11285
|
-
`;let
|
|
11209
|
+
`;let dl=class extends s.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.buttonAppearanceAccent="primary-blue",this.buttonAppearanceNeutral="primary-grey",this.buttonAppearanceOutline="primary-gradient"}setDialogEventListeners(){this.showDialogTrigger.addEventListener("click",(()=>this.modal.show()),{passive:!0}),this.closeDialogTrigger.addEventListener("click",(()=>this.modal.close()),{passive:!0})}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Vn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Vn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setDialogEventListeners(),p.bodyFont.withDefault(qn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{nl(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.buttonAppearanceAccent=e.detail.buttonAppearanceAccent,this.buttonAppearanceNeutral=e.detail.buttonAppearanceNeutral,this.buttonAppearanceOutline=e.detail.buttonAppearanceOutline,s.DOM.queueUpdate((()=>{this.setDialogEventListeners()}))}};(0,Qn.__decorate)([s.observable],dl.prototype,"modal",void 0),(0,Qn.__decorate)([s.attr],dl.prototype,"prefix",void 0),(0,Qn.__decorate)([s.observable],dl.prototype,"buttonAppearanceAccent",void 0),(0,Qn.__decorate)([s.observable],dl.prototype,"buttonAppearanceNeutral",void 0),(0,Qn.__decorate)([s.observable],dl.prototype,"buttonAppearanceOutline",void 0),(0,Qn.__decorate)([s.observable],dl.prototype,"provider",void 0),dl=(0,Qn.__decorate)([(0,s.customElement)({name:"preview-components",template:gl,styles:ll})],dl);const sl=s.css`
|
|
11286
11210
|
.export {
|
|
11287
11211
|
display: flex;
|
|
11288
11212
|
justify-content: center;
|
|
@@ -11293,7 +11217,7 @@
|
|
|
11293
11217
|
display: flex;
|
|
11294
11218
|
justify-content: space-between;
|
|
11295
11219
|
}
|
|
11296
|
-
`,
|
|
11220
|
+
`,cl=s.html`
|
|
11297
11221
|
<template>
|
|
11298
11222
|
<div class="export">
|
|
11299
11223
|
<alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
|
|
@@ -11314,7 +11238,7 @@
|
|
|
11314
11238
|
</alpha-modal>
|
|
11315
11239
|
</div>
|
|
11316
11240
|
</template>
|
|
11317
|
-
`;let
|
|
11241
|
+
`;let pl=class extends s.FASTElement{constructor(){super(...arguments),this.formatValues=e=>{const a={design_tokens:{color:{accent:{$value:e.accentColor,$type:"color"},neutral:{$value:e.neutralColor,$type:"color"}},fontFamily:{bodyFont:{$value:e.bodyFont,$type:"fontFamily"}},typography:{baseFontSize:{$value:e.baseFontSize,$type:"dimension"},baseLineHeight:{$value:e.baseLineHeight,$type:"dimension"}},mode:{luminance:{$value:e.luminance,$type:"number"}},style:{density:{$value:e.density,$type:"number"},borderRadius:{$value:e.borderRadius,$type:"number"},strokeWidth:{$value:e.strokeWidth,$type:"number"}},space:{designUnit:{$value:e.designUnit,$type:"number"}}}};return JSON.stringify(a,null,3)},this.showModal=()=>this.modal.show(),this.closeModal=()=>this.modal.close(),this.updateTokens=()=>{fetch(`http://localhost:${location.port}/api/tokens`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokens:this.value})}).then((e=>{if(!e.ok)throw new Error(`API request failed with status ${e.status}`);return e.json()})).then((e=>{console.log("Tokens saved successfully:",e),this.$emit(Vn.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Vn.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,Qn.__decorate)([s.attr],pl.prototype,"value",void 0),(0,Qn.__decorate)([s.attr],pl.prototype,"tokensPath",void 0),pl=(0,Qn.__decorate)([(0,s.customElement)({name:"design-system-export",template:cl,styles:sl})],pl);const ul=s.css`
|
|
11318
11242
|
.colors {
|
|
11319
11243
|
display: flex;
|
|
11320
11244
|
flex-wrap: wrap;
|
|
@@ -11327,23 +11251,23 @@
|
|
|
11327
11251
|
flex-grow: 1;
|
|
11328
11252
|
height: 20px;
|
|
11329
11253
|
}
|
|
11330
|
-
`,
|
|
11254
|
+
`,hl=s.html`
|
|
11331
11255
|
<ul class="colors">
|
|
11332
11256
|
${(0,s.repeat)((e=>e.swatches),s.html`
|
|
11333
11257
|
<li class="color" style="background-color: ${e=>e.toColorString()}"></li>
|
|
11334
11258
|
`)}
|
|
11335
11259
|
</ul>
|
|
11336
|
-
`;let
|
|
11260
|
+
`;let ml=class extends s.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){p[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=ol(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Vn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Qn.__decorate)([s.observable],ml.prototype,"swatches",void 0),(0,Qn.__decorate)([s.attr],ml.prototype,"type",void 0),ml=(0,Qn.__decorate)([(0,s.customElement)({name:"color-palette",styles:ul,template:hl})],ml);const vl=s.css`
|
|
11337
11261
|
.preview {
|
|
11338
11262
|
width: 40px;
|
|
11339
11263
|
height: 40px;
|
|
11340
11264
|
}
|
|
11341
|
-
`,
|
|
11265
|
+
`,bl=s.html`
|
|
11342
11266
|
<div
|
|
11343
11267
|
class="preview"
|
|
11344
11268
|
style="background-color: ${e=>p[e.tokenName].createCSS()}"
|
|
11345
11269
|
></div>
|
|
11346
|
-
`;let
|
|
11270
|
+
`;let fl=class extends s.FASTElement{};(0,Qn.__decorate)([s.attr],fl.prototype,"tokenName",void 0),fl=(0,Qn.__decorate)([(0,s.customElement)({name:"color-token",styles:vl,template:bl})],fl);const wl=s.css`
|
|
11347
11271
|
.container {
|
|
11348
11272
|
display: flex;
|
|
11349
11273
|
width: 100%;
|
|
@@ -11391,7 +11315,7 @@
|
|
|
11391
11315
|
.container > div:not(:last-child) {
|
|
11392
11316
|
border-right: 1px solid #fafafa;
|
|
11393
11317
|
}
|
|
11394
|
-
`,
|
|
11318
|
+
`,yl=[{title:"Fill",subcategories:[{title:"Fill Colour",tokens:[{name:"fillColor",cssProperty:"--fill-color"}]},{title:"Accent Fill",tokens:[{name:"accentFillRest",cssProperty:"--accent-fill-rest"},{name:"accentFillHover",cssProperty:"--accent-fill-hover"},{name:"accentFillActive",cssProperty:"--accent-fill-active"},{name:"accentFillFocus",cssProperty:"--accent-fill-focus"}]},{title:"Neutral Fill",tokens:[{name:"neutralFillRest",cssProperty:"--neutral-fill-rest"},{name:"neutralFillHover",cssProperty:"--neutral-fill-hover"},{name:"neutralFillActive",cssProperty:"--neutral-fill-active"},{name:"neutralFillFocus",cssProperty:"--neutral-fill-focus"}]},{title:"Neutral Fill Input",tokens:[{name:"neutralFillInputRest",cssProperty:"--neutral-fill-input-rest"},{name:"neutralFillInputHover",cssProperty:"--neutral-fill-input-hover"},{name:"neutralFillInputActive",cssProperty:"--neutral-fill-input-active"},{name:"neutralFillInputFocus",cssProperty:"--neutral-fill-input-focus"}]},{title:"Neutral Fill Stealth",tokens:[{name:"neutralFillStealthRest",cssProperty:"--neutral-fill-stealth-rest"},{name:"neutralFillStealthHover",cssProperty:"--neutral-fill-stealth-hover"},{name:"neutralFillStealthActive",cssProperty:"--neutral-fill-stealth-active"},{name:"neutralFillStealthFocus",cssProperty:"--neutral-fill-stealth-focus"}]},{title:"Neutral Fill Strong",tokens:[{name:"neutralFillStrongRest",cssProperty:"--neutral-fill-strong-rest"},{name:"neutralFillStrongHover",cssProperty:"--neutral-fill-strong-hover"},{name:"neutralFillStrongActive",cssProperty:"--neutral-fill-strong-active"},{name:"neutralFillStrongFocus",cssProperty:"--neutral-fill-strong-focus"}]}]},{title:"Foreground",subcategories:[{title:"Neutral Foreground",tokens:[{name:"neutralForegroundRest",cssProperty:"--neutral-foreground-rest"},{name:"neutralForegroundHint",cssProperty:"--neutral-foreground-hint"}]},{title:"Accent Foreground",tokens:[{name:"accentForegroundRest",cssProperty:"--accent-foreground-rest"},{name:"accentForegroundHover",cssProperty:"--accent-foreground-hover"},{name:"accentForegroundActive",cssProperty:"--accent-foreground-active"},{name:"accentForegroundFocus",cssProperty:"--accent-foreground-focus"}]},{title:"Foreground on Accent",tokens:[{name:"foregroundOnAccentRest",cssProperty:"--foreground-on-accent-rest"},{name:"foregroundOnAccentHover",cssProperty:"--foreground-on-accent-hover"},{name:"foregroundOnAccentActive",cssProperty:"--foreground-on-accent-active"},{name:"foregroundOnAccentFocus",cssProperty:"--foreground-on-accent-focus"}]},{title:"Foreground on accent large",tokens:[{name:"foregroundOnAccentRestLarge",cssProperty:"--foreground-on-accent-rest-large"},{name:"foregroundOnAccentHoverLarge",cssProperty:"--foreground-on-accent-hover-large"},{name:"foregroundOnAccentActiveLarge",cssProperty:"--foreground-on-accent-active-large"},{name:"foregroundOnAccentFocusLarge",cssProperty:"--foreground-on-accent-focus-large"}]}]},{title:"Stroke",subcategories:[{title:"Focus Stroke",tokens:[{name:"focusStrokeOuter",cssProperty:"--focus-stroke-outer"},{name:"focusStrokeInner",cssProperty:"--focus-stroke-inner"}]},{title:"Neutral Stroke",tokens:[{name:"neutralStrokeRest",cssProperty:"---neutral-stroke-rest"},{name:"neutralStrokeHover",cssProperty:"--neutral-stroke-hover"},{name:"neutralStrokeActive",cssProperty:"--neutral-stroke-active"},{name:"neutralStrokeFocus",cssProperty:"--neutral-stroke-focus"}]},{title:"Neutral stroke divider",tokens:[{name:"neutralStrokeDividerRest",cssProperty:"--neutral-stroke-divider-rest"}]}]},{title:"Layer",subcategories:[{title:"Neutral Layers",tokens:[{name:"neutralLayer1",cssProperty:"--neutral-layer-1"},{name:"neutralLayer2",cssProperty:"--neutral-layer-2"},{name:"neutralLayer3",cssProperty:"--neutral-layer-3"},{name:"neutralLayer4",cssProperty:"--neutral-layer-4"}]},{title:"Neutral Layer Card Container",tokens:[{name:"neutralLayerCardContainer",cssProperty:"--neutral-layer-card-container"}]},{title:"Neutral Fill Layer",tokens:[{name:"neutralFillLayerRest",cssProperty:"--neutral-fill-layer-rest"}]},{title:"Neutral Layer Floating",tokens:[{name:"neutralLayerFloating",cssProperty:"--neutral-layer-floating"}]}]}],xl=s.html`
|
|
11395
11319
|
<div class="row">
|
|
11396
11320
|
<div
|
|
11397
11321
|
class="preview"
|
|
@@ -11403,19 +11327,19 @@
|
|
|
11403
11327
|
${(e,a)=>p[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
|
|
11404
11328
|
</div>
|
|
11405
11329
|
</div>
|
|
11406
|
-
`,
|
|
11330
|
+
`,zl=s.html`
|
|
11407
11331
|
<div class="container" ${(0,s.ref)("provider")}>
|
|
11408
|
-
${(0,s.repeat)((()=>
|
|
11332
|
+
${(0,s.repeat)((()=>yl),s.html`
|
|
11409
11333
|
<div class="column">
|
|
11410
11334
|
<h3 class="header-title">${e=>e.title}</h3>
|
|
11411
11335
|
${(0,s.repeat)((e=>e.subcategories),s.html`
|
|
11412
11336
|
<h4>${e=>e.title}</h4>
|
|
11413
|
-
${(0,s.repeat)((e=>e.tokens),
|
|
11337
|
+
${(0,s.repeat)((e=>e.tokens),xl)}
|
|
11414
11338
|
`)}
|
|
11415
11339
|
</div>
|
|
11416
11340
|
`)}
|
|
11417
11341
|
</div>
|
|
11418
|
-
`;let
|
|
11342
|
+
`;let kl=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Vn.STYLES_CHANGED,(e=>{const a=e.detail;nl(a,this.provider)}))}};(0,Qn.__decorate)([s.observable],kl.prototype,"provider",void 0),kl=(0,Qn.__decorate)([(0,s.customElement)({name:"color-tokens",template:zl,styles:wl})],kl);const Sl=s.css`
|
|
11419
11343
|
table {
|
|
11420
11344
|
background: var(--neutral-fill-rest);
|
|
11421
11345
|
color: var(--neutral-foreground-rest);
|
|
@@ -11424,7 +11348,7 @@
|
|
|
11424
11348
|
th {
|
|
11425
11349
|
text-align: left;
|
|
11426
11350
|
}
|
|
11427
|
-
`,
|
|
11351
|
+
`,Cl=s.html`
|
|
11428
11352
|
<table ${(0,s.ref)("provider")} style="font-family: ${()=>p.bodyFont.createCSS()}">
|
|
11429
11353
|
<colgroup>
|
|
11430
11354
|
<col style="width: 15%;" />
|
|
@@ -11652,7 +11576,7 @@
|
|
|
11652
11576
|
</tr>
|
|
11653
11577
|
</tbody>
|
|
11654
11578
|
</table>
|
|
11655
|
-
`;let
|
|
11579
|
+
`;let Al=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Vn.STYLES_CHANGED,(e=>{const a=e.detail;nl(a,this.provider)}))}};(0,Qn.__decorate)([s.observable],Al.prototype,"provider",void 0),Al=(0,Qn.__decorate)([(0,s.customElement)({name:"typography-tokens",template:Cl,styles:Sl})],Al);const Tl=s.css`
|
|
11656
11580
|
:host {
|
|
11657
11581
|
background: var(--fill-color);
|
|
11658
11582
|
color: var(--neutral-foreground-rest);
|
|
@@ -11668,7 +11592,7 @@
|
|
|
11668
11592
|
margin-top: 24px;
|
|
11669
11593
|
padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
|
|
11670
11594
|
}
|
|
11671
|
-
`,
|
|
11595
|
+
`,Dl=s.html`
|
|
11672
11596
|
<template>
|
|
11673
11597
|
<alpha-tabs>
|
|
11674
11598
|
<alpha-tab slot="tab">Components</alpha-tab>
|
|
@@ -11697,7 +11621,7 @@
|
|
|
11697
11621
|
</alpha-tab-panel>
|
|
11698
11622
|
</alpha-tabs>
|
|
11699
11623
|
</template>
|
|
11700
|
-
`;let
|
|
11624
|
+
`;let Ol=class extends s.FASTElement{};Ol=(0,Qn.__decorate)([(0,s.customElement)({name:"design-system-preview",template:Dl,styles:Tl})],Ol);const Fl={type:"VerticalLayout",dsPrefix:"zero",elements:[{type:"Group",label:"Group 1",scope:"#/properties/group1",options:{childElements:[{type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/group1/properties/NAME",label:"Name"}]}]}},{type:"Group",label:"Group 2",scope:"#/properties/group2",options:{childElements:[{type:"LayoutVertical2Columns",elements:[{type:"Control",scope:"#/properties/group2/properties/QUANTITY",label:"Quantity"},{type:"Control",scope:"#/properties/group2/properties/PRICE",label:"Price"},{type:"Control",scope:"#/properties/group2/properties/COUNTERPARTY_ID",options:{data:[{name:"Genesis Global",value:"GENESIS"},{name:"Acme Global",value:"ACME"}],valueField:"value",labelField:"name"},label:"Counterparty"},{type:"Control",scope:"#/properties/group2/properties/INSTRUMENT_ID",options:{data:[{name:"Bond",value:"BOND"},{name:"Equity",value:"EQUITY"}],valueField:"value",labelField:"name"},label:"Instrument"},{type:"Control",scope:"#/properties/group2/properties/SIDE",label:"Side"},{type:"Control",scope:"#/properties/group2/properties/TRADE_DATE",label:"Trade Date"},{type:"Control",scope:"#/properties/group2/properties/ACTIVE",label:"Active"}]}]}}]},Ll={type:"object",properties:{group1:{type:"object",properties:{NAME:{type:"string"}}},group2:{type:"object",properties:{QUANTITY:{type:"number"},PRICE:{type:"number"},COUNTERPARTY_ID:{type:"string"},INSTRUMENT_ID:{type:"string"},SIDE:{type:"string",enum:["BUY","SELL"]},TRADE_DATE:{type:"number",format:"date",description:"org.joda.time.DateTime"},ACTIVE:{type:"boolean"}},required:["QUANTITY","PRICE"]}}},Ml={type:"VerticalLayout",dsPrefix:"zero",elements:[{type:"array",scope:"#/properties/users",options:{childUiSchema:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/firstname",label:"First Name"},{type:"Control",scope:"#/properties/lastname",label:"Last Name"},{type:"Control",scope:"#/properties/email",label:"Email"}]}}}]},Nl={type:"object",properties:{users:{type:"array",items:{type:"object",title:"Users",properties:{firstname:{type:"string"},lastname:{type:"string"},email:{type:"string",format:"email"}},required:["firstname"]}}}},Rl=s.css`
|
|
11701
11625
|
:host {
|
|
11702
11626
|
background: var(--fill-color);
|
|
11703
11627
|
color: var(--neutral-foreground-rest);
|
|
@@ -11728,7 +11652,7 @@
|
|
|
11728
11652
|
zero-design-system-provider {
|
|
11729
11653
|
display: inline;
|
|
11730
11654
|
}
|
|
11731
|
-
|
|
11655
|
+
`,$l=s.html`
|
|
11732
11656
|
${e=>{return a=e.prefix,s.html`
|
|
11733
11657
|
<template>
|
|
11734
11658
|
<${a}-design-system-provider ${(0,s.ref)("provider")}>
|
|
@@ -11750,7 +11674,7 @@
|
|
|
11750
11674
|
</${a}-design-system-provider>
|
|
11751
11675
|
</template>
|
|
11752
11676
|
`;var a}}
|
|
11753
|
-
`;let
|
|
11677
|
+
`;let jl=class extends s.FASTElement{constructor(){super(...arguments),this.jsonSchema=Ll,this.uischema=Fl,this.jsonSchemaArray=Nl,this.uiSchemaArray=Ml,this.prefix="zero",this.editedEntity={group1:{NAME:"Test Name"},group2:{COUNTERPARTY_ID:"GENESIS",INSTRUMENT_ID:"BOND"}},this.editedEntityArray={users:[{firstname:"Max",lastname:"Mustermann",age:25,email:"max@mustermann.com"},{firstname:"John",lastname:"Doe",age:35,email:"john@doe.com"}]}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Vn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Vn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{p.bodyFont.withDefault(qn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{nl(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.uischema.dsPrefix=e.detail.prefix,this.uiSchemaArray.dsPrefix=e.detail.prefix}};(0,Qn.__decorate)([s.observable],jl.prototype,"jsonSchema",void 0),(0,Qn.__decorate)([s.observable],jl.prototype,"uischema",void 0),(0,Qn.__decorate)([s.observable],jl.prototype,"jsonSchemaArray",void 0),(0,Qn.__decorate)([s.observable],jl.prototype,"uiSchemaArray",void 0),(0,Qn.__decorate)([s.attr],jl.prototype,"prefix",void 0),(0,Qn.__decorate)([s.observable],jl.prototype,"provider",void 0),(0,Qn.__decorate)([s.observable],jl.prototype,"editedEntity",void 0),(0,Qn.__decorate)([s.observable],jl.prototype,"editedEntityArray",void 0),jl=(0,Qn.__decorate)([(0,s.customElement)({name:"preview-form",template:$l,styles:Rl})],jl);const Il=s.css`
|
|
11754
11678
|
:host {
|
|
11755
11679
|
background: var(--fill-color);
|
|
11756
11680
|
color: var(--neutral-foreground-rest);
|
|
@@ -11765,7 +11689,7 @@
|
|
|
11765
11689
|
.grid-height {
|
|
11766
11690
|
height: 450px;
|
|
11767
11691
|
}
|
|
11768
|
-
`,
|
|
11692
|
+
`,El=s.html`
|
|
11769
11693
|
${e=>{return a=e.prefix,s.html`
|
|
11770
11694
|
<template>
|
|
11771
11695
|
<${a}-design-system-provider ${(0,s.ref)("provider")}>
|
|
@@ -11775,5 +11699,5 @@
|
|
|
11775
11699
|
</${a}-design-system-provider>
|
|
11776
11700
|
</template>
|
|
11777
11701
|
`;var a}}
|
|
11778
|
-
`;let
|
|
11779
|
-
//# sourceMappingURL=721.
|
|
11702
|
+
`;let Pl=class extends s.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[{make:"Toyota",model:"Celica",price:35e3,creationDate:1617624494293,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494295,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1619637452397,isCool:!1},{make:"Audi",model:"A6",price:8e4,creationDate:1617624494293,isCool:!0},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494295,isCool:!0},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1619637452397,isCool:!1},{make:"BMW",model:"Z8",price:9e4,creationDate:1617624494293,isCool:!1},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494295,isCool:!1},{make:"Toyota",model:"Celica",price:35e3,creationDate:1619637452397,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494293,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1617624494295,isCool:!0},{make:"Audi",model:"A6",price:8e4,creationDate:1619637452397,isCool:!1},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494293,isCool:!1},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1617624494295,isCool:!0},{make:"BMW",model:"Z8",price:9e4,creationDate:1619637452397,isCool:!0},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494293,isCool:!0}],this.columnDefs=[{field:"make"},{field:"model"},{field:"price"},{field:"creationDate"},{field:"isCool"}],this.gridOptions={defaultColDef:{resizable:!0,filter:!0},debug:!1,columnDefs:this.columnDefs,rowData:this.rowData}}setGridOptions(){this.grid.gridOptions=this.gridOptions}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Vn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Vn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setGridOptions(),p.bodyFont.withDefault(qn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{nl(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,s.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Qn.__decorate)([s.observable],Pl.prototype,"grid",void 0),(0,Qn.__decorate)([s.attr],Pl.prototype,"prefix",void 0),(0,Qn.__decorate)([s.observable],Pl.prototype,"provider",void 0),(0,Qn.__decorate)([s.observable],Pl.prototype,"rowData",void 0),(0,Qn.__decorate)([s.observable],Pl.prototype,"columnDefs",void 0),(0,Qn.__decorate)([s.observable],Pl.prototype,"gridOptions",void 0),Pl=(0,Qn.__decorate)([(0,s.customElement)({name:"preview-grid",template:El,styles:Il})],Pl),((e,a="zero")=>{e&&(0,R.provideTokens)(t,o,e);const r=c.DesignSystem.getOrCreate(e).withPrefix(a);return(0,R.createDesignSystemProxy)(r)})().register(Go,Hn),(0,i.provideDesignSystem)().register(i.baseComponents,Yn)}}]);
|
|
11703
|
+
//# sourceMappingURL=721.11c520a2e42880bc92798c6f68f250b4.js.map
|