@genesislcap/design-system-configurator 14.101.4 → 14.102.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/{361.361.fc70575ed3327f3de0e8.js → 361.361.8eb5053becd9578c211e.js} +1 -1
- package/dist/{371.371.54cfcc6bcfe480a473b4.js → 371.371.4315a6f47a06d2366efd.js} +1 -1
- package/dist/{51.51.e8f42e7cccbc43fc6aba.js → 51.51.87e1a764238725e773e7.js} +1 -1
- package/dist/755.755.4c3a43b550491ab5a5f0.js +2 -0
- package/dist/{755.9a7aecd6f809d3501c72cb59e24e35af.js.map → 755.95b57e053a91273e8b6ebf724254e133.js.map} +1 -1
- package/dist/{8.8.6e97c519573d72269ff3.js → 8.8.52f840edf4fea2f4c057.js} +1 -1
- package/dist/{650.650.f855dc338b32ec866394.js → 916.916.91aa9d93d6977c8eb7a6.js} +106 -90
- package/dist/916.e066141fcc78ef50273cbacab6b0ed92.js.map +1 -0
- package/dist/designSystemConfigurator.fbcd7ee4587a2ed830dac912baff4960.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.63b3c5fbd8a251d33db9.js +2 -0
- package/dist/main.8f27cc5da4f360c13356e4b692e9046f.js.map +1 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +7 -7
- package/dist/650.831d175f27a8277481ebbcb644b17b20.js.map +0 -1
- package/dist/755.755.d574c913f16fac05dbb7.js +0 -2
- package/dist/designSystemConfigurator.5e773e11f9223c926d86cdb42ef99b64.js.map +0 -1
- package/dist/main.0146f1be7f0de80d1a576f90aa8dc1ef.js.map +0 -1
- package/dist/main.5f17f405b5864760d42e.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[916],{18916:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>Sl,ColorToken:()=>Tl,ColorTokens:()=>Ll,DesignSystemEditor:()=>pl,DesignSystemExport:()=>xl,DesignSystemPreview:()=>El,EventName:()=>al,PreviewComponents:()=>fl,PreviewForm:()=>Yl,PreviewGrid:()=>Wl,TypographyTokens:()=>$l,defaultBodyFont:()=>ol,fontFamilies:()=>tl});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:()=>ce,baseLayerLuminanceValue:()=>ue,bodyFontValue:()=>ke,controlCornerRadiusValue:()=>ve,densityValue:()=>be,designTokens:()=>Ae,designUnitValue:()=>fe,directionValue:()=>he,neutralPaletteValue:()=>pe,strokeWidthValue:()=>me,typeRampBaseFontSizeValue:()=>Se,typeRampBaseLineHeightValue:()=>Ce});var i=r(34960),n=r(92592),l=r(89074),g=r(13005),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;
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
}
|
|
187
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 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
|
|
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 N=s.html`
|
|
190
190
|
<template>
|
|
191
191
|
<json-forms
|
|
192
192
|
?readonly=${e=>e.readonly}
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
</slot>
|
|
211
211
|
`)}
|
|
212
212
|
</template>
|
|
213
|
-
`,
|
|
213
|
+
`,L=(0,d.or)(d.KmX,(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,d.ndu)(e,"boolean")))))),M={renderer:s.html`
|
|
214
214
|
${e=>((e="zero")=>s.html`
|
|
215
215
|
<template>
|
|
216
216
|
<control-wrapper
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
</control-wrapper>
|
|
231
231
|
</template>
|
|
232
232
|
`)(e.prefix)}
|
|
233
|
-
`,tester:(0,d.yMz)(3,
|
|
233
|
+
`,tester:(0,d.yMz)(3,L),mapper:d.xq9};var R=r(41478);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
|
|
@@ -470,11 +470,11 @@
|
|
|
470
470
|
</control-wrapper>
|
|
471
471
|
</template>
|
|
472
472
|
`)(e.prefix)}
|
|
473
|
-
`,re=(0,g.createLogger)("foundation-form"),te={renderer:ae,tester:(0,d.yMz)(2,d.Wdb),mapper:d.xq9},oe=[{renderer:ae,tester:(0,d.yMz)(1,d.DRl),mapper:d.xq9},te,M,V,Q,W,q,Z,J,ee,I,_,E,B,H];let ie=class extends c.FoundationElement{constructor(){super(...arguments),this.renderers=oe,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,re.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(re.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){re.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 ne,le,ge,de,se;(0,n.__decorate)([s.attr],ie.prototype,"resourceName",void 0),(0,n.__decorate)([s.observable],ie.prototype,"uischema",void 0),(0,n.__decorate)([s.observable],ie.prototype,"renderers",void 0),(0,n.__decorate)([s.observable],ie.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],ie.prototype,"connect",void 0),(0,n.__decorate)([s.observable],ie.prototype,"data",void 0),(0,n.__decorate)([s.observable],ie.prototype,"submitting",void 0),(0,n.__decorate)([s.observable],ie.prototype,"submitted",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],ie.prototype,"readonly",void 0),ie=(0,n.__decorate)([(0,s.customElement)({name:"foundation-form",template:
|
|
473
|
+
`,re=(0,g.createLogger)("foundation-form"),te={renderer:ae,tester:(0,d.yMz)(2,d.Wdb),mapper:d.xq9},oe=[{renderer:ae,tester:(0,d.yMz)(1,d.DRl),mapper:d.xq9},te,M,V,Q,W,q,Z,J,ee,I,_,E,B,H];let ie=class extends c.FoundationElement{constructor(){super(...arguments),this.renderers=oe,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,re.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(re.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){re.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 ne,le,ge,de,se;(0,n.__decorate)([s.attr],ie.prototype,"resourceName",void 0),(0,n.__decorate)([s.observable],ie.prototype,"uischema",void 0),(0,n.__decorate)([s.observable],ie.prototype,"renderers",void 0),(0,n.__decorate)([s.observable],ie.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],ie.prototype,"connect",void 0),(0,n.__decorate)([s.observable],ie.prototype,"data",void 0),(0,n.__decorate)([s.observable],ie.prototype,"submitting",void 0),(0,n.__decorate)([s.observable],ie.prototype,"submitted",void 0),(0,n.__decorate)([(0,s.attr)({mode:"boolean"})],ie.prototype,"readonly",void 0),ie=(0,n.__decorate)([(0,s.customElement)({name:"foundation-form",template:N,styles:h})],ie),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ne||(ne={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(le||(le={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(ge||(ge={})),function(e){e.grey="#7c909b"}(de||(de={})),function(e){e.chartPink="#fb8176",e.longGreen="#7acc79",e.shortPink="#f14376",e.warningYellow="#fcb35f",e.green="#44c14c",e.lightGreen="#69cd70",e.red="#ef4d28",e.lightRed="#ee6588",e.dodgerBlue="#33a9ff",e.lightDodgerBlue="#5cbaff",e.violet="#9b1e74",e.lightViolet="#b528af",e.white="#f9f9f9",e.silver="#c1c1c1",e.salomie="#ffdf94",e.lightSalomie="#ccb276",e.melon="#ffbbb2",e.lightMelon="#cc968e",e.portage="#8a99f5",e.lightPortage="#adb8f8",e.ice="#97f4eb",e.lightIce="#6befe2"}(se||(se={}));const ce=(0,R.paletteFromHex)(le.blue),pe=(0,R.paletteFromHex)(de.grey),ue=p.StandardLuminance.DarkMode;const he=r(5598).N.ltr,me=p.strokeWidth.getValueFor(p.strokeWidth.appliedTo[0]),ve=4,be=p.density.getValueFor(p.density.appliedTo[0]),fe=4;var we=r(47823);const ye=()=>{(0,we.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")},xe='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',ze=(e=we.Hd.Normal,a=we.U9.Regular)=>(0,we.py)(xe,e,a),ke=xe,Se=p.typeRampBaseFontSize.getValueFor(p.typeRampBaseFontSize.appliedTo[0]),Ce=p.typeRampBaseLineHeight.getValueFor(p.typeRampBaseLineHeight.appliedTo[0]),Ae={design_tokens:{color:{accent:{$value:ce.source.toColorString(),$type:"color"},neutral:{$value:pe.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:ke,$type:"fontFamily"}},typography:{baseFontSize:{$value:Se,$type:"dimension"},baseLineHeight:{$value:Ce,$type:"dimension"}},mode:{luminance:{$value:ue,$type:"number"}},style:{density:{$value:be,$type:"number"},borderRadius:{$value:ve,$type:"number"},strokeWidth:{$value:me,$type:"number"}},space:{designUnit:{$value:fe,$type:"number"}}}};class Te extends R.Accordion{}const De=Te.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,R.foundationAccordionTemplate)(e,a),styles:(e,a)=>s.css`
|
|
474
474
|
${(0,R.foundationAccordionStyles)(e,a)}
|
|
475
475
|
`,shadowOptions:R.foundationAccordionShadowOptions},R.defaultAccordionConfig));class Oe extends R.AccordionItem{}const Fe=Oe.compose(Object.assign({baseName:"accordion-item",template:(e,a)=>(0,R.foundationAccordionItemTemplate)(e,a),styles:(e,a)=>s.css`
|
|
476
476
|
${(0,R.foundationAccordionItemStyles)(e,a)};
|
|
477
|
-
`,shadowOptions:R.foundationAccordionItemShadowOptions},R.defaultAccordionItemConfig));class
|
|
477
|
+
`,shadowOptions:R.foundationAccordionItemShadowOptions},R.defaultAccordionItemConfig));class Ne extends R.ActionsMenu{}const Le=Ne.compose({baseName:"actions-menu",styles:(e,a)=>s.css`
|
|
478
478
|
:host {
|
|
479
479
|
--actions-opener-heigght-multiplier: 0.6px;
|
|
480
480
|
--menu-item-height-multiplier: 0.5px;
|
|
@@ -730,9 +730,9 @@
|
|
|
730
730
|
.separator {
|
|
731
731
|
color: var(--neutral-stroke-rest);
|
|
732
732
|
}
|
|
733
|
-
`,shadowOptions:R.foundationBreadcrumbItemShadowOptions},R.defaultBreadcrumbItemConfig));class Da extends R.Button{}const Oa=Da.compose(Object.assign({baseName:"button",template:(e,a)=>(0,R.foundationButtonTemplate)(e,a),styles:ca,shadowOptions:R.foundationButtonShadowOptions},R.defaultButtonConfig));class Fa extends R.Calendar{}const
|
|
733
|
+
`,shadowOptions:R.foundationBreadcrumbItemShadowOptions},R.defaultBreadcrumbItemConfig));class Da extends R.Button{}const Oa=Da.compose(Object.assign({baseName:"button",template:(e,a)=>(0,R.foundationButtonTemplate)(e,a),styles:ca,shadowOptions:R.foundationButtonShadowOptions},R.defaultButtonConfig));class Fa extends R.Calendar{}const Na=Fa.compose(Object.assign({baseName:"calendar",template:(e,a)=>(0,R.foundationCalendarTemplate)(e,a),styles:()=>s.css`
|
|
734
734
|
${(0,R.foundationCalendarStyles)()}
|
|
735
|
-
`,shadowOptions:R.foundationCalendarShadowOptions},R.defaultCalendarConfig));class
|
|
735
|
+
`,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`
|
|
736
736
|
${(0,R.foundationCardStyles)(e,a)}
|
|
737
737
|
:host {
|
|
738
738
|
background-color: var(--zero-card-fill-color, var(--neutral-layer-2));
|
|
@@ -982,7 +982,7 @@
|
|
|
982
982
|
${(0,R.dropdownMenuBaseStyles)("zero",e,a)}
|
|
983
983
|
`,template:R.foundationDropdownMenuTemplate}),Sr=s.html`
|
|
984
984
|
${(0,R.getPrefixedErrorBanner)("zero")}
|
|
985
|
-
`,Cr=R.foundationErrorBannerShadowOptions;class Ar extends R.ErrorBanner{}const Tr=Ar.compose({baseName:"error-banner",template:Sr,shadowOptions:Cr});class Dr extends R.ErrorBoundary{}const Or=Dr.compose({baseName:"error-boundary",template:R.foundationErrorBoundaryTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}});class Fr extends R.ErrorDialog{}const
|
|
985
|
+
`,Cr=R.foundationErrorBannerShadowOptions;class Ar extends R.ErrorBanner{}const Tr=Ar.compose({baseName:"error-banner",template:Sr,shadowOptions:Cr});class Dr extends R.ErrorBoundary{}const Or=Dr.compose({baseName:"error-boundary",template:R.foundationErrorBoundaryTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}});class Fr extends R.ErrorDialog{}const Nr=Fr.compose({baseName:"error-dialog",styles:R.foundationErrorDialogStyles,template:R.errorDialogTemplate,shadowOptions:R.foundationErrorDialogShadowOptions}),Lr=s.css`
|
|
986
986
|
${R.foundationFileUploadStyles}
|
|
987
987
|
::-webkit-scrollbar {
|
|
988
988
|
width: 12px;
|
|
@@ -1001,7 +1001,7 @@
|
|
|
1001
1001
|
}
|
|
1002
1002
|
`,Mr=s.html`
|
|
1003
1003
|
${(0,R.getPrefixedFileUpload)("zero")}
|
|
1004
|
-
`,Rr=R.defaultFileUploadConfig,$r=R.foundationFileUploadShadowOptions;class jr extends R.FileUpload{}const Ir=jr.compose(Object.assign({baseName:"file-upload",shadowOptions:$r,styles:
|
|
1004
|
+
`,Rr=R.defaultFileUploadConfig,$r=R.foundationFileUploadShadowOptions;class jr extends R.FileUpload{}const Ir=jr.compose(Object.assign({baseName:"file-upload",shadowOptions:$r,styles:Lr,template:Mr},Rr)),Er=s.html`
|
|
1005
1005
|
${(0,R.getPrefixedFilterTemplate)("zero")}
|
|
1006
1006
|
`;class Pr extends R.Filter{}const Ur=Pr.compose({baseName:"filter",template:Er,styles:R.foundationFilterStyles}),Br=s.html`
|
|
1007
1007
|
${(0,R.filterBarTemplate)("zero")}
|
|
@@ -1170,7 +1170,7 @@
|
|
|
1170
1170
|
}
|
|
1171
1171
|
`,Tt=s.html`
|
|
1172
1172
|
${(0,R.getPrefixedMultiselect)("zero")}
|
|
1173
|
-
`;class Dt extends R.Multiselect{}const Ot=R.defaultMultiselectConfig,Ft=R.foundationMultiselectShadowOptions,
|
|
1173
|
+
`;class Dt extends R.Multiselect{}const Ot=R.defaultMultiselectConfig,Ft=R.foundationMultiselectShadowOptions,Nt=Dt.compose(Object.assign({baseName:"multiselect",template:Tt,styles:At,shadowOptions:Ft},Ot));class Lt extends R.NotificationListener{}const Mt=Lt.compose({baseName:"notification-listener",template:R.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}}),Rt=(e,a)=>s.css`
|
|
1174
1174
|
${(0,R.foundationTextFieldStyles)(e,a)}
|
|
1175
1175
|
:host {
|
|
1176
1176
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1679,9 +1679,9 @@
|
|
|
1679
1679
|
:host([notify='serious']) .toast::after {
|
|
1680
1680
|
background-color: ${Ve(1)};
|
|
1681
1681
|
}
|
|
1682
|
-
`,Ao=R.defaultToastConfig,To=R.foundationToastShadowOptions;class Do extends R.Toast{}const Oo=Do.compose(Object.assign({baseName:"toast",shadowOptions:To,styles:Co,template:R.foundationToastTemplate},Ao));class Fo extends R.Toolbar{}const
|
|
1682
|
+
`,Ao=R.defaultToastConfig,To=R.foundationToastShadowOptions;class Do extends R.Toast{}const Oo=Do.compose(Object.assign({baseName:"toast",shadowOptions:To,styles:Co,template:R.foundationToastTemplate},Ao));class Fo extends R.Toolbar{}const No=Fo.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,R.foundationToolbarTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1683
1683
|
${(0,R.foundationToolbarStyles)(e,a)}
|
|
1684
|
-
`,shadowOptions:R.foundationToolbarShadowOptions},R.defaultToolbarConfig));class
|
|
1684
|
+
`,shadowOptions:R.foundationToolbarShadowOptions},R.defaultToolbarConfig));class Lo extends R.Tooltip{}const Mo=Lo.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,R.foundationTooltipTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1685
1685
|
${(0,R.foundationTooltipStyles)(e,a)}
|
|
1686
1686
|
`,shadowOptions:R.foundationTooltipShadowOptions},R.defaultTooltipConfig));class Ro extends R.TreeItem{}const $o=Ro.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,R.foundationTreeItemTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1687
1687
|
${(0,R.foundationTreeItemStyles)(e,a)}
|
|
@@ -1715,7 +1715,7 @@
|
|
|
1715
1715
|
${(0,R.foundationTreeViewStyles)(e,a)}
|
|
1716
1716
|
`,shadowOptions:R.foundationTreeViewShadowOptions},R.defaultTreeViewConfig)),Eo=s.html`
|
|
1717
1717
|
${(0,R.getPrefixedUrlInput)("zero")}
|
|
1718
|
-
`;class Po extends R.UrlInput{}const Uo={zeroAccordion:De,zeroAccordionItem:Fe,zeroActionsMenu:
|
|
1718
|
+
`;class Po extends R.UrlInput{}const Uo={zeroAccordion:De,zeroAccordionItem:Fe,zeroActionsMenu:Le,zeroAnchor:ua,zeroAnchoredRegion:ma,zeroAvatar:ba,zeroBadge:wa,zeroBanner:ka,zeroBreadcrumbItem:Ta,zeroBreadcrumb:Ca,zeroButton:Oa,zeroCalendar:Na,zeroCard:Ma,zeroCheckbox:$a,zeroCombobox:Wa,zeroConnectionIndicator:Ja,zeroDataGrid:er,zeroDesignSystemProvider:dr,zeroDialog:br,zeroDatePicker:tr,zeroDisclosure:wr,zeroDivider:xr,zeroDropdownMenu:kr,zeroErrorBoundary:Or,zeroNotificationListener:Mt,zeroErrorBanner:Tr,zeroErrorDialog:Nr,zeroFileUpload:Ir,zeroFilter:Ur,zeroFilterBar:_r,zeroFlexLayout:Yr,zeroFlipper:Qr,zeroFlyout:Xr,zeroGridLayout:at,zeroGridLayoutItem:tt,zeroHorizontalScroll:it,zeroIcon:dt,zeroListbox:ct,zeroListboxOption:ut,zeroMenu:vt,zeroMenuItem:wt,zeroModal:Ct,zeroMultiselect:Nt,zeroNumberField:Pt,zeroProgress:Bt,zeroProgressRing:Ht,zeroRadio:Vt,zeroRadioGroup:Wt,zeroSegmentedControl:Jt,zeroSegmentedItem:Kt,zeroSelect:eo,zeroSkeleton:ro,zeroSlider:oo,zeroSliderLabel:no,zeroSnackbar:po,zeroSwitch:ho,zeroTab:vo,zeroTabPanel:fo,zeroTabs:yo,zeroTextArea:zo,zeroTextField:So,zeroToast:Oo,zeroToolbar:No,zeroTooltip:Mo,zeroTreeItem:$o,zeroTreeView:Io,zeroUrlInput:Po.compose(Object.assign({baseName:"url-input",template:Eo,styles:(e,a)=>s.css`
|
|
1719
1719
|
${(0,R.foundationUrlInputStyles)(e,a)}
|
|
1720
1720
|
a {
|
|
1721
1721
|
color: ${le.blue};
|
|
@@ -1749,7 +1749,23 @@
|
|
|
1749
1749
|
:initialSelectedValue=${e=>e.params.value}
|
|
1750
1750
|
></options-datasource>
|
|
1751
1751
|
</${e}-combobox>
|
|
1752
|
-
`,Yo=Go.compose({baseName:"select-editor",styles:_o,template:Ho()});class Vo extends Go{}const Qo=Vo.compose({baseName:"select-editor",styles:_o,template:Ho("zero")})
|
|
1752
|
+
`,Yo=Go.compose({baseName:"select-editor",styles:_o,template:Ho()});class Vo extends Go{}const Qo=Vo.compose({baseName:"select-editor",styles:_o,template:Ho("zero")});class Wo extends c.FoundationElement{init(e){e&&(this.params=e,this.value=e.value)}getGui(){return this}focus(){}destroy(){}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a}}(0,Bo.__decorate)([s.observable],Wo.prototype,"params",void 0),(0,Bo.__decorate)([s.observable],Wo.prototype,"value",void 0);const qo=s.css`
|
|
1753
|
+
:host {
|
|
1754
|
+
display: flex;
|
|
1755
|
+
}
|
|
1756
|
+
`,Jo=(e="foundation")=>s.html`
|
|
1757
|
+
<${e}-number-field
|
|
1758
|
+
${(0,s.ref)("input")}
|
|
1759
|
+
withFormatting=${e=>e.params.withFormatting}
|
|
1760
|
+
:options=${e=>e.params.formatOptions}
|
|
1761
|
+
:value=${e=>void 0===e.value?"":String(e.value)}
|
|
1762
|
+
@input=${(e,a)=>{e.changeHandler(a.event)}}
|
|
1763
|
+
placeholder=${e=>e.params.placeholder}
|
|
1764
|
+
?disabled=${e=>e.params.disabled}
|
|
1765
|
+
hideStep
|
|
1766
|
+
style="width: 100%"
|
|
1767
|
+
></${e}-number-field>
|
|
1768
|
+
`,Zo=Wo.compose({baseName:"number-editor",styles:qo,template:Jo()});class Ko extends Wo{}const Xo=Ko.compose({baseName:"number-editor",styles:qo,template:Jo("zero")}),ei=(0,g.createLogger)("grid-pro");class ai 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){ei.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,Bo.__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,Bo.__decorate)([s.observable],ai.prototype,"params",void 0),(0,Bo.__decorate)([s.observable],ai.prototype,"pendingAction",void 0);const{create:ri}=c.DesignToken,ti=(ri("action-height-multiplier").withDefault("0.6px"),s.css`
|
|
1753
1769
|
.action-container {
|
|
1754
1770
|
align-items: center;
|
|
1755
1771
|
display: flex;
|
|
@@ -1764,8 +1780,8 @@
|
|
|
1764
1780
|
var(--action-height-multiplier)
|
|
1765
1781
|
);
|
|
1766
1782
|
}
|
|
1767
|
-
`),
|
|
1768
|
-
${
|
|
1783
|
+
`),oi=ai.compose({baseName:"grid-pro-action-renderer",styles:s.css`
|
|
1784
|
+
${ti}
|
|
1769
1785
|
`,template:s.html`
|
|
1770
1786
|
<div class="action-container" part="action-container">
|
|
1771
1787
|
<foundation-button
|
|
@@ -1775,8 +1791,8 @@
|
|
|
1775
1791
|
?disabled=${e=>{var a;return e.pendingAction||e.isDisabled(null===(a=e.params)||void 0===a?void 0:a.data)}}
|
|
1776
1792
|
appearance="${e=>e.params.appearance}"
|
|
1777
1793
|
@click=${e=>e.clickHandler()}">${e=>e.params.actionName}</foundation-button>
|
|
1778
|
-
</div>`});class
|
|
1779
|
-
${
|
|
1794
|
+
</div>`});class ii extends ai{}const ni=ii.compose({baseName:"grid-pro-action-renderer",styles:s.css`
|
|
1795
|
+
${ti}
|
|
1780
1796
|
`,template:s.html`
|
|
1781
1797
|
<div class="action-container" part="action-container">
|
|
1782
1798
|
<zero-button
|
|
@@ -1792,29 +1808,29 @@
|
|
|
1792
1808
|
`:e.params.actionName}
|
|
1793
1809
|
</zero-button>
|
|
1794
1810
|
</div>
|
|
1795
|
-
`});class
|
|
1811
|
+
`});class li extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,Bo.__decorate)([s.observable],li.prototype,"params",void 0);const gi=li.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
|
|
1796
1812
|
<foundation-actions-menu
|
|
1797
1813
|
name="${e=>e.params.headerName}"
|
|
1798
1814
|
:definition=${e=>e.params}
|
|
1799
1815
|
></foundation-actions-menu>
|
|
1800
|
-
`});class
|
|
1816
|
+
`});class di extends li{}const si=di.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
|
|
1801
1817
|
<zero-actions-menu
|
|
1802
1818
|
name="${e=>e.params.headerName}"
|
|
1803
1819
|
:definition=${e=>e.params}
|
|
1804
1820
|
></zero-actions-menu>
|
|
1805
|
-
`});var
|
|
1821
|
+
`});var ci=r(59783);class pi extends c.FoundationElement{init(e){e&&(this.params=e,this.selected=e.value)}changeHandler(e){this.selected=e.target.checked;if(!!!this.params.api.getEditingCells().find((e=>e.rowIndex===this.params.rowIndex&&e.column.getInstanceId()===this.params.column.getInstanceId()))){const{column:e,node:a,rowIndex:r,value:t}=this.params,o={type:ci.zW2.EVENT_CELL_EDITING_STARTED,column:e,colDef:null==e?void 0:e.getColDef(),data:a.data,node:a,rowIndex:r,rowPinned:a.rowPinned,value:t};this.params.api.dispatchEvent(o);const i=this.params.node.setDataValue(this.params.column,this.selected,"edit"),n={type:ci.zW2.EVENT_CELL_EDITING_STOPPED,column:e,colDef:null==e?void 0:e.getColDef(),data:a.data,node:a,rowIndex:r,rowPinned:a.rowPinned,value:t,oldValue:t,newValue:this.selected,valueChanged:i};this.params.api.dispatchEvent(n)}}getGui(){return this}destroy(){}refresh(e){return this.selected=e.value,!0}getValue(){return this.selected}}(0,Bo.__decorate)([s.observable],pi.prototype,"params",void 0),(0,Bo.__decorate)([s.observable],pi.prototype,"selected",void 0);const ui=s.css`
|
|
1806
1822
|
:host {
|
|
1807
1823
|
align-center: center;
|
|
1808
1824
|
display: flex;
|
|
1809
1825
|
height: 100%;
|
|
1810
1826
|
}
|
|
1811
|
-
`,
|
|
1827
|
+
`,hi=(e="foundation")=>{const a=`${e}-checkbox`;return s.html`
|
|
1812
1828
|
<${a}
|
|
1813
1829
|
@change=${(e,a)=>e.changeHandler(a.event)}
|
|
1814
1830
|
:checked=${e=>e.selected}
|
|
1815
1831
|
?disabled=${e=>!e.params.colDef.editable}
|
|
1816
1832
|
></${a}>
|
|
1817
|
-
`},
|
|
1833
|
+
`},mi=pi.compose({baseName:"boolean-renderer",styles:ui,template:hi()});class vi extends pi{}const bi=vi.compose({baseName:"boolean-renderer",styles:ui,template:hi("zero")});var fi=r(18471);const wi=(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 yi 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?wi(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,Bo.__decorate)([s.observable],yi.prototype,"textValue",void 0),(0,Bo.__decorate)([s.observable],yi.prototype,"params",void 0);const xi=s.css`
|
|
1818
1834
|
:host {
|
|
1819
1835
|
display: flex;
|
|
1820
1836
|
width: 100%;
|
|
@@ -1824,15 +1840,15 @@
|
|
|
1824
1840
|
.text-renderer {
|
|
1825
1841
|
width: 100%;
|
|
1826
1842
|
}
|
|
1827
|
-
`,
|
|
1843
|
+
`,zi=(e="foundation")=>{const a=`${e}-text-field`;return s.html`
|
|
1828
1844
|
<${a}
|
|
1829
1845
|
${(0,s.ref)("textField")}
|
|
1830
1846
|
type="text"
|
|
1831
1847
|
class="text-renderer"
|
|
1832
|
-
:value="${(0,
|
|
1848
|
+
:value="${(0,fi.Z)((e=>e.textValue))}"
|
|
1833
1849
|
@change="${(e,a)=>e.textChanged(a.event)}"
|
|
1834
1850
|
></${a}>
|
|
1835
|
-
`},
|
|
1851
|
+
`},ki=yi.compose({baseName:"grid-pro-text-renderer",styles:xi,template:zi()});class Si extends yi{}const Ci=xi,Ai=zi,Ti=Si.compose({baseName:"grid-text-renderer",styles:Ci,template:Ai()});const Di=class extends Si{}.compose({baseName:"grid-text-renderer",styles:Ci,template:Ai("zero")});class Oi 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=wi(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,Bo.__decorate)([s.observable],Oi.prototype,"params",void 0),(0,Bo.__decorate)([s.observable],Oi.prototype,"value",void 0);const Fi=s.css`
|
|
1836
1852
|
:host,
|
|
1837
1853
|
.select-renderer,
|
|
1838
1854
|
zero-option,
|
|
@@ -1841,7 +1857,7 @@
|
|
|
1841
1857
|
max-width: var(--select-renderer-max-width);
|
|
1842
1858
|
min-width: 100%;
|
|
1843
1859
|
}
|
|
1844
|
-
`,
|
|
1860
|
+
`,Ni=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return s.html`
|
|
1845
1861
|
<${a}
|
|
1846
1862
|
class="select-renderer"
|
|
1847
1863
|
@change=${(e,a)=>e.selectionChanged(a.event)}
|
|
@@ -1857,19 +1873,19 @@
|
|
|
1857
1873
|
<${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
|
|
1858
1874
|
`)}
|
|
1859
1875
|
</${a}>
|
|
1860
|
-
`},
|
|
1876
|
+
`},Li=Oi.compose({baseName:"select-renderer",styles:Fi,template:Ni()});const Mi=class extends Oi{}.compose({baseName:"select-renderer",styles:Fi,template:Ni("zero")});var Ri=r(89861),$i=r(86534),ji=r(75527),Ii=r(9492);const Ei=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,Ii.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Ii.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Ii.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Ii.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Ii.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Ii.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Ii.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Ii.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Ii.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Ii.__classPrivateFieldGet)(this,o,"f")&&((0,Ii.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Ii.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Ii.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Ii.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Ii.__classPrivateFieldGet)(this,r,"f")._key&&(0,Ii.__classPrivateFieldSet)(this,r,(0,Ii.__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,Ii.__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,Ii.__classPrivateFieldGet)(this,t,"f")!==(0,Ii.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Ii.__classPrivateFieldSet)(this,t,null!==(a=(0,Ii.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Ii.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Ii.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Ii.__classPrivateFieldSet)(this,t,null!==(o=(0,Ii.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Ii.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[Pi])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document||!(null===(t=r.getRootNode())||void 0===t?void 0:t.host))return{_key:"dom"};const o=r.getRootNode().host;if("FoundationLayoutMain"===o.class){const e=o;return e._key="foundation-layout",e}return(0,Ii.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},Pi=Symbol("layout-cache-document");var Ui=r(88556),Bi=r(9770);const Gi=s.html`
|
|
1861
1877
|
<template>
|
|
1862
1878
|
<slot ${(0,s.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
|
|
1863
1879
|
</template>
|
|
1864
|
-
`;let
|
|
1880
|
+
`;let _i=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,Bo.__decorate)([s.observable],_i.prototype,"renderer",void 0),(0,Bo.__decorate)([s.observable],_i.prototype,"rendererParams",void 0),(0,Bo.__decorate)([s.observable],_i.prototype,"slottedRenderer",void 0),_i=(0,Bo.__decorate)([(0,s.customElement)({name:"grid-pro-cell",template:Gi})],_i);const Hi=s.html`
|
|
1865
1881
|
<template>
|
|
1866
1882
|
<slot ${(0,s.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
|
|
1867
1883
|
</template>
|
|
1868
|
-
`;let
|
|
1869
|
-
.${
|
|
1884
|
+
`;let Yi=class extends c.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,Bo.__decorate)([s.observable],Yi.prototype,"slottedAgCell",void 0),(0,Bo.__decorate)([s.observable],Yi.prototype,"definition",void 0),Yi=(0,Bo.__decorate)([(0,s.customElement)({name:"grid-pro-column",template:Hi})],Yi);var Vi=r(82940),Qi=r(32449),Wi=r(9162),qi=r(5127),Ji=r(83123),Zi=r(35991),Ki=r(6852),Xi=r(26714),en=r(71452),an=r(99449),rn=r(30526),tn=r(21607);function on({value:e}){return(0,tn.D_)(e)}function nn({value:e}){return(0,tn.Lx)(e)}var ln,gn;!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"}(ln||(ln={})),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"}(gn||(gn={}));const dn=e=>`${e}-token-map`,sn=(e,a)=>s.css`
|
|
1885
|
+
.${dn(e)} {
|
|
1870
1886
|
${new R.CSSVarsTokenMapper(a)}
|
|
1871
1887
|
}
|
|
1872
|
-
`;var on;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.text="text",e.select="select",e.selectEditor="selectEditor"}(on||(on={}));var nn;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(nn||(nn={}));let ln=class extends(Ni(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Ui.WJ.MAX_ROWS_250,this.maxView=Ui.WJ.MAX_VIEW_1000,this.movingView=!1,this.pollingInterval=Ui.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 Qi.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Bi.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?Ui.WJ.REQUEST_SERVER_ROW_ID:Ui.WJ.DATASERVER_ROW_ID}init(){return(0,Bo.__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===Ui._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,Bo.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Wi.T)(1),(0,qi.b)(r),(0,Ji.b)((e=>Wo.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Wo.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 Qi.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,Bo.__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,Bo.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Wo.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 Wo.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===Gi.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,_i.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,_i.$)(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 Wo.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},nn.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},nn.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},nn.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(nn)){if(!this.rowDataMapper)return e;const r={};return a.includes(nn.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(nn.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(nn.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 Hi.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=on.boolean,r.cellEditor=on.boolean);break;case Hi.r.DATE:r.valueFormatter=Ki;break;case Hi.r.DATETIME:r.valueFormatter=Xi;break;case Hi.r.ENUM:r.cellEditor=on.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return 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,Bi.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,Bo.__decorate)([Yi.g],ln.prototype,"auth",void 0),(0,Bo.__decorate)([l.lj],ln.prototype,"connect",void 0),(0,Bo.__decorate)([Vi.Yh],ln.prototype,"datasource",void 0),(0,Bo.__decorate)([s.observable],ln.prototype,"deferredGridOptions",void 0),(0,Bo.__decorate)([s.observable],ln.prototype,"deferredColumnStates",void 0),(0,Bo.__decorate)([s.attr],ln.prototype,"criteria",void 0),(0,Bo.__decorate)([s.attr],ln.prototype,"fields",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],ln.prototype,"isSnapshot",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"max-rows"})],ln.prototype,"maxRows",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"max-view"})],ln.prototype,"maxView",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],ln.prototype,"movingView",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"order-by"})],ln.prototype,"orderBy",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"polling-interval"})],ln.prototype,"pollingInterval",void 0),(0,Bo.__decorate)([s.observable],ln.prototype,"request",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"resource-name"})],ln.prototype,"resourceName",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean"})],ln.prototype,"reverse",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"row-id"})],ln.prototype,"rowIdAttr",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],ln.prototype,"restartOnReconnection",void 0),(0,Bo.__decorate)([s.observable],ln.prototype,"rowDataMapper",void 0),ln=(0,Bo.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],ln);let gn=class extends ln{};gn=(0,Bo.__decorate)([(0,s.customElement)({name:"grid-pro-client-side-datasource"})],gn);var dn=r(66306),sn=r(47546);function cn(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 pn(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 null}}class un{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,Bo.__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,sn.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Gi.Cs.LOGOFF_ACK||o===Gi.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,_i.$)(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=>Wo.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,Bo.__decorate)([Yi.g],un.prototype,"auth",void 0),(0,Bo.__decorate)([l.lj],un.prototype,"connect",void 0);let hn=class extends(Ni(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Ui.WJ.MAX_ROWS_250,this.maxView=Ui.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,Bi.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,Bo.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Wo.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,dn.C)(e);const a=(0,dn.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new un({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});Wo.warn("Application not connected, falling back to local columnDefs/rowData")}reset(){var e;this.clearRowData(),this.dataserverStream=void 0,this.originalFieldDef=void 0,null===(e=this.agGrid.gridApi)||void 0===e||e.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));Wo.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 Wo.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,Bo.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Wo.debug(e)),(e=>Wo.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 Hi.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 Hi.r.DATE:case Hi.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 Hi.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 Hi.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=on.boolean,r.cellEditor=on.boolean);break;case Hi.r.DATE:r.valueFormatter=Ki;break;case Hi.r.DATETIME:r.valueFormatter=Xi;break;case Hi.r.ENUM:r.cellEditor=on.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:pn(e.type),filter:cn(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,Bo.__decorate)([l.lj],hn.prototype,"connect",void 0),(0,Bo.__decorate)([s.attr],hn.prototype,"criteria",void 0),(0,Bo.__decorate)([s.attr],hn.prototype,"fields",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],hn.prototype,"isSnapshot",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"max-rows"})],hn.prototype,"maxRows",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"max-view"})],hn.prototype,"maxView",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"moving-view"})],hn.prototype,"movingView",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"order-by"})],hn.prototype,"orderBy",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"resource-name"})],hn.prototype,"resourceName",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean"})],hn.prototype,"pagination",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"row-id"})],hn.prototype,"rowId",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean"})],hn.prototype,"reverse",void 0),hn=(0,Bo.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],hn);const mn='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO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fnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',vn='\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/bgK00N1IOvjTXAh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NxUZEt27XAj6sav9i+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',bn={[an.alpine]:mn,[an.alpineDark]:mn,[an.balham]:vn,[an.balhamDark]:vn,[an.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAA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nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},fn=mn,wn=s.css`
|
|
1888
|
+
`;var cn;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.text="text",e.select="select",e.selectEditor="selectEditor",e.numberEditor="numberEditor"}(cn||(cn={}));var pn;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(pn||(pn={}));let un=class extends(Ei(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Vi.WJ.MAX_ROWS_250,this.maxView=Vi.WJ.MAX_VIEW_1000,this.movingView=!1,this.pollingInterval=Vi.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 Xi.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Qi.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?Vi.WJ.REQUEST_SERVER_ROW_ID:Vi.WJ.DATASERVER_ROW_ID}init(){return(0,Bo.__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===Vi._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,Bo.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,en.T)(1),(0,an.b)(r),(0,rn.b)((e=>ei.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else ei.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 Xi.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,Bo.__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,Bo.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return ei.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 ei.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===Wi.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 ei.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},pn.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},pn.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},pn.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(pn)){if(!this.rowDataMapper)return e;const r={};return a.includes(pn.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(pn.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(pn.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 Ji.r.NUMBER:r.cellEditor=cn.numberEditor;break;case Ji.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=cn.boolean,r.cellEditor=cn.boolean);break;case Ji.r.DATE:r.valueFormatter=on;break;case Ji.r.DATETIME:r.valueFormatter=nn;break;case Ji.r.ENUM:r.cellEditor=cn.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return 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,Qi.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,Bo.__decorate)([Zi.g],un.prototype,"auth",void 0),(0,Bo.__decorate)([l.lj],un.prototype,"connect",void 0),(0,Bo.__decorate)([Ki.Yh],un.prototype,"datasource",void 0),(0,Bo.__decorate)([s.observable],un.prototype,"deferredGridOptions",void 0),(0,Bo.__decorate)([s.observable],un.prototype,"deferredColumnStates",void 0),(0,Bo.__decorate)([s.attr],un.prototype,"criteria",void 0),(0,Bo.__decorate)([s.attr],un.prototype,"fields",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],un.prototype,"isSnapshot",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"max-rows"})],un.prototype,"maxRows",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"max-view"})],un.prototype,"maxView",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],un.prototype,"movingView",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"order-by"})],un.prototype,"orderBy",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"polling-interval"})],un.prototype,"pollingInterval",void 0),(0,Bo.__decorate)([s.observable],un.prototype,"request",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"resource-name"})],un.prototype,"resourceName",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean"})],un.prototype,"reverse",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"row-id"})],un.prototype,"rowIdAttr",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],un.prototype,"restartOnReconnection",void 0),(0,Bo.__decorate)([s.observable],un.prototype,"rowDataMapper",void 0),un=(0,Bo.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],un);let hn=class extends un{};hn=(0,Bo.__decorate)([(0,s.customElement)({name:"grid-pro-client-side-datasource"})],hn);var mn=r(66306),vn=r(47546);function bn(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 fn(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 null}}class wn{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,Bo.__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,vn.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Wi.Cs.LOGOFF_ACK||o===Wi.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=>ei.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,Bo.__decorate)([Zi.g],wn.prototype,"auth",void 0),(0,Bo.__decorate)([l.lj],wn.prototype,"connect",void 0);let yn=class extends(Ei(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Vi.WJ.MAX_ROWS_250,this.maxView=Vi.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,Qi.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,Bo.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>ei.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,mn.C)(e);const a=(0,mn.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new wn({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});ei.warn("Application not connected, falling back to local columnDefs/rowData")}reset(){var e;this.clearRowData(),this.dataserverStream=void 0,this.originalFieldDef=void 0,null===(e=this.agGrid.gridApi)||void 0===e||e.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));ei.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 ei.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,Bo.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>ei.debug(e)),(e=>ei.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 Ji.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 Ji.r.DATE:case Ji.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 Ji.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 Ji.r.NUMBER:r.cellEditor=cn.numberEditor;break;case Ji.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=cn.boolean,r.cellEditor=cn.boolean);break;case Ji.r.DATE:r.valueFormatter=on;break;case Ji.r.DATETIME:r.valueFormatter=nn;break;case Ji.r.ENUM:r.cellEditor=cn.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:fn(e.type),filter:bn(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,Bo.__decorate)([l.lj],yn.prototype,"connect",void 0),(0,Bo.__decorate)([s.attr],yn.prototype,"criteria",void 0),(0,Bo.__decorate)([s.attr],yn.prototype,"fields",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],yn.prototype,"isSnapshot",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"max-rows"})],yn.prototype,"maxRows",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"max-view"})],yn.prototype,"maxView",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"moving-view"})],yn.prototype,"movingView",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"order-by"})],yn.prototype,"orderBy",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"resource-name"})],yn.prototype,"resourceName",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean"})],yn.prototype,"pagination",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"row-id"})],yn.prototype,"rowId",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean"})],yn.prototype,"reverse",void 0),yn=(0,Bo.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],yn);const xn='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAA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lTgB+gvDA9TyJJGbIMf6CADLvWhRUrjWuJH0vSqp0AYxdq7Tmf+5sYN3g2DCqxCIR5uJZqyIJPoZ4J5LY+gKUazY6BSu5tYrnZWTNhtLC560Aq5pu1Hxm2ADhCAgVDfnVHfDFWv3a/K+boiQrqqYbpmU7rucHYRQnaZYXZVU3bdcP4zQv67Yf53U/r/fn6869B4+ePHvx6s27D59rb8W2BFayi6GUQ3HMm/KqUkVQ4IU6kvi4naC+2zjVWTroy40OXNDAQOiCZDjdldAHKfe+ah+pTq7Sk7buUo8h76oOTFIx6EJ1moWamPOmukOhMysBX7vadsckqTmo3oEf6uxl7jbzzNKUb00TU5syF3ZcEjsz9qnYqzHsabj0FTo92y3fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',zn='\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/bccgSgISTwjfXQjUrV14PoMQtmKBCWgyDBHwf3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={[gn.alpine]:xn,[gn.alpineDark]:xn,[gn.balham]:zn,[gn.balhamDark]:zn,[gn.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKoQibUgE2AiQDgiQLgRQABCAFhF4HhQQbwx4zozZKkzKjKAuTKdl/nWDK2JwGzwo8TIbdeYNAtGkxGg6xYzGz3JUMFWCLQoUjcyveKfPZ/H3KUMoL2rS9u+gRJeZcVAgRJ5CkLZEpR8wJTYnXnVSMtFyNChezin1NlBr5GXihygP/477uwwhpzmQRmQv4h7xQ1ukb+qbAuHWw7/RtjIFWUFny28Ky25Mrtuy4tSU/Wc7/vwwfQIfAIXD7Tt+s5E8pTn5vAnqvAPcKcIYlde3bwySmDu1CBfgAWXCyv/537t/bNk2bB4wpAJyvJiygJTWLWk3INSABhcEIIFK3nVCyYoEK+KQzcN/aq94CoAZSukZXyN27/bAzE4LLJqw2fOFLyqTCsgoAg9cUEIwBlHm1VR6FqrN1Fdq2W2BBkEa6OUOPR0hZbsED+7l62hratnMRkZGRktL4unUngADAoQ+SAeVlCEiwaKia2gTOYABBQwR8VUQa6iVVYDKIgywZhkDpQzYwg2pogEKYClcQC2Qq0oXaYs5YPlaLUdgQ9tVNJaKVB0aVFF6cTCGhVBqdgYXJnWl1JgunLbYgr2OIF7acWFIHkWlSbS1dvGjSQkU6aoZmJIaoMxMaUYTNbdaUPjzDAU8jcamQigXK1UFkBoXGOSirP22bKJBeriEyKFKLF7ApHF2cslXcTZUOdQ9GypSIYfXSKoUsTiLtq2oYVCg9waGz9Gb0IKKzj0gNMtwgGptnTXVZcdTUqUJ9nII9zZYrIIqAaglVkSlOzY65X7msQ1WsjqE9ZeXZaQERzutqaDhP33SSojDkSuy0tGhJK4TKK3QzI7m73upywg2//HcOv8HYgNuxzN9yny6wS+OijiJbjLIFu66IFGspLEKaV6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q9WLXY8AG8hupZiGFJ1xJm+qGkTLRCYVwm6ItxMhTxKzms6NxGWFaV4+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},Sn=xn,Cn=s.css`
|
|
1873
1889
|
.ag-icon {
|
|
1874
1890
|
font-family: var(--ag-icon-font-family);
|
|
1875
1891
|
font-size: var(--ag-icon-size);
|
|
@@ -9046,7 +9062,7 @@
|
|
|
9046
9062
|
input[class^='ag-'][type='range']:disabled {
|
|
9047
9063
|
opacity: 0.5;
|
|
9048
9064
|
}
|
|
9049
|
-
`,
|
|
9065
|
+
`,An=s.css`
|
|
9050
9066
|
.ag-dnd-ghost {
|
|
9051
9067
|
background: var(--ag-header-background-color, var(--ag-background-color, #1f2126));
|
|
9052
9068
|
border: solid 1px;
|
|
@@ -9063,7 +9079,7 @@
|
|
|
9063
9079
|
overflow: hidden;
|
|
9064
9080
|
text-overflow: ellipsis;
|
|
9065
9081
|
}
|
|
9066
|
-
`,
|
|
9082
|
+
`,Tn=s.css`
|
|
9067
9083
|
.ag-theme-alpine,
|
|
9068
9084
|
.ag-theme-alpine-dark {
|
|
9069
9085
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -9513,7 +9529,7 @@
|
|
|
9513
9529
|
.ag-theme-alpine-dark {
|
|
9514
9530
|
color-scheme: dark;
|
|
9515
9531
|
}
|
|
9516
|
-
`,
|
|
9532
|
+
`,Dn=s.css`
|
|
9517
9533
|
.ag-theme-balham,
|
|
9518
9534
|
.ag-theme-balham-dark {
|
|
9519
9535
|
--ag-balham-active-color: #0091ea;
|
|
@@ -9783,7 +9799,7 @@
|
|
|
9783
9799
|
.ag-theme-balham-dark {
|
|
9784
9800
|
color-scheme: dark;
|
|
9785
9801
|
}
|
|
9786
|
-
`,
|
|
9802
|
+
`,On=s.css`
|
|
9787
9803
|
.ag-theme-material {
|
|
9788
9804
|
--ag-material-primary-color: #3f51b5;
|
|
9789
9805
|
--ag-material-accent-color: #ff4081;
|
|
@@ -10048,14 +10064,14 @@
|
|
|
10048
10064
|
.ag-theme-material .ag-picker-field-wrapper:focus {
|
|
10049
10065
|
box-shadow: 0 0 0 1px var(--ag-material-primary-color);
|
|
10050
10066
|
}
|
|
10051
|
-
`,
|
|
10052
|
-
${
|
|
10053
|
-
${
|
|
10054
|
-
${
|
|
10055
|
-
${
|
|
10056
|
-
${
|
|
10057
|
-
`,
|
|
10058
|
-
${
|
|
10067
|
+
`,Fn=s.css`
|
|
10068
|
+
${Cn}
|
|
10069
|
+
${An}
|
|
10070
|
+
${Tn}
|
|
10071
|
+
${Dn}
|
|
10072
|
+
${On}
|
|
10073
|
+
`,Nn=s.css`
|
|
10074
|
+
${Fn}
|
|
10059
10075
|
:host {
|
|
10060
10076
|
width: 100%;
|
|
10061
10077
|
height: 100%;
|
|
@@ -10082,14 +10098,14 @@
|
|
|
10082
10098
|
.ag-cell-inline-editing {
|
|
10083
10099
|
height: inherit !important;
|
|
10084
10100
|
}
|
|
10085
|
-
`,
|
|
10101
|
+
`,Ln=s.html`
|
|
10086
10102
|
<template>
|
|
10087
10103
|
<span part="grid" class="${e=>e.classNames}">
|
|
10088
10104
|
<slot name="grid" ${(0,s.ref)("gridSlot")}></slot>
|
|
10089
10105
|
<slot></slot>
|
|
10090
10106
|
</span>
|
|
10091
10107
|
</template>
|
|
10092
|
-
`;function Tn(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}ii.O3h.registerModules([Oi.jM,Di.I]);const Dn=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class On extends(Ni(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,$i.A)(rn(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=fn,this.columnComponentName="grid-pro-column",this.theme=an.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=ii.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Dn(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&&ii.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Dn(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={[on.action]:qo,[on.actionsMenu]:ai,[on.boolean]:ni,[on.selectEditor]:Go};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")||this.querySelector("grid-pro-client-side-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,Bo.__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.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),ii.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 ii.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}enableFlashingRows(){if(this.enableRowFlashing||this.enabledRowFlashing){if(!this.asyncAdd)return void Wo.warn("Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled");this.gridApi.addEventListener(ii.zW2.EVENT_ASYNC_TRANSACTIONS_FLUSHED,(e=>{e.results.forEach((e=>{e.add.length&&this.gridApi.flashCells({rowNodes:e.add})}))}))}}applyTemplateDefinitions(e,a=!1){return Wo.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;const t=e||[],o=Array.from(this.querySelectorAll(this.columnComponentName)).map((e=>e.definition)).map((e=>{this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0);const a=t.find((a=>e.field===a.field));return Object.assign(Object.assign({},a),e)})),i=o.map((e=>e.field)),n=[...o,...this.onlyTemplateColDefs?[]:t.filter((e=>!i.includes(e.field)))];if(this.gridProGenesisDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Tn(n,e);if((null===(r=this.gridProGenesisDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Tn(n,this.gridProGenesisDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=ii.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=ii.plv.ALL_PROPERTIES.map((e=>Dn(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},ii.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=bn[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Ri.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,Bo.__decorate)([s.observable],On.prototype,"columnApi",void 0),(0,Bo.__decorate)([s.observable],On.prototype,"gridApi",void 0),(0,Bo.__decorate)([Fi.z],On.prototype,"session",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],On.prototype,"autoCellRendererByType",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],On.prototype,"onlyTemplateColDefs",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],On.prototype,"gridAutosizingEnabled",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"add-index"})],On.prototype,"addIndex",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],On.prototype,"asyncAdd",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],On.prototype,"asyncRemove",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],On.prototype,"asyncUpdate",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],On.prototype,"enableCellFlashing",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],On.prototype,"enabledRowFlashing",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],On.prototype,"enableRowFlashing",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],On.prototype,"persistColumnStateKey",void 0),(0,Bo.__decorate)([s.observable],On.prototype,"gridFontFace",void 0),(0,Bo.__decorate)([s.attr],On.prototype,"columnComponentName",void 0),(0,Bo.__decorate)([s.observable],On.prototype,"eventsAndCallbacks",void 0),(0,Bo.__decorate)([s.attr],On.prototype,"headerHeight",void 0),(0,Bo.__decorate)([s.attr],On.prototype,"rowHeight",void 0),(0,Bo.__decorate)([s.attr],On.prototype,"theme",void 0),(0,Bo.__decorate)([s.observable],On.prototype,"classNames",void 0),(0,Bo.__decorate)([s.observable],On.prototype,"agGrid",void 0),(0,Bo.__decorate)([s.observable],On.prototype,"gridSlot",void 0),(0,Bo.__decorate)([s.observable],On.prototype,"gridComponents",void 0);const Fn=void 0,Ln={shadowOptions:void 0},Nn=On.compose(Object.assign({baseName:"grid-pro",styles:Cn,template:An,shadowOptions:Fn},Ln)),Mn={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"))},Rn={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:$n}=c.DesignToken,jn={backgroundColor:$n("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Rn.backgroundSwatch:Mn.backgroundSwatch)),borderColor:$n("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Rn.borderSwatch:Mn.borderSwatch)),foregroundColor:$n("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Rn.foregroundSwatch:Mn.foregroundSwatch)),headerForegroundColor:$n("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Rn.headerForegroundSwatch:Mn.headerForegroundSwatch)),rowHoverColor:$n("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Rn.rowHoverSwatch:Mn.rowHoverSwatch))},In=s.css`
|
|
10108
|
+
`;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}ci.O3h.registerModules([$i.jM,Ri.I]);const Rn=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class $n extends(Ei(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Bi.A)(dn(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=Sn,this.columnComponentName="grid-pro-column",this.theme=gn.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=ci.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Rn(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&&ci.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Rn(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={[cn.action]:ai,[cn.actionsMenu]:li,[cn.boolean]:pi,[cn.selectEditor]:Go,[cn.numberEditor]:Wo};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")||this.querySelector("grid-pro-client-side-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,Bo.__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.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),ci.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 ci.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}enableFlashingRows(){if(this.enableRowFlashing||this.enabledRowFlashing){if(!this.asyncAdd)return void ei.warn("Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled");this.gridApi.addEventListener(ci.zW2.EVENT_ASYNC_TRANSACTIONS_FLUSHED,(e=>{e.results.forEach((e=>{e.add.length&&this.gridApi.flashCells({rowNodes:e.add})}))}))}}applyTemplateDefinitions(e,a=!1){return ei.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;const t=e||[],o=Array.from(this.querySelectorAll(this.columnComponentName)).map((e=>e.definition)).map((e=>{this.enableCellFlashing&&void 0===e.enableCellChangeFlash&&(e.enableCellChangeFlash=!0);const a=t.find((a=>e.field===a.field));return Object.assign(Object.assign({},a),e)})),i=o.map((e=>e.field)),n=[...o,...this.onlyTemplateColDefs?[]:t.filter((e=>!i.includes(e.field)))];if(this.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=ci.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=ci.plv.ALL_PROPERTIES.map((e=>Rn(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},ci.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=kn[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Ui.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,Bo.__decorate)([s.observable],$n.prototype,"columnApi",void 0),(0,Bo.__decorate)([s.observable],$n.prototype,"gridApi",void 0),(0,Bo.__decorate)([ji.z],$n.prototype,"session",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],$n.prototype,"autoCellRendererByType",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],$n.prototype,"onlyTemplateColDefs",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],$n.prototype,"gridAutosizingEnabled",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"add-index"})],$n.prototype,"addIndex",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],$n.prototype,"asyncAdd",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],$n.prototype,"asyncRemove",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],$n.prototype,"asyncUpdate",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],$n.prototype,"enableCellFlashing",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],$n.prototype,"enabledRowFlashing",void 0),(0,Bo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],$n.prototype,"enableRowFlashing",void 0),(0,Bo.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],$n.prototype,"persistColumnStateKey",void 0),(0,Bo.__decorate)([s.observable],$n.prototype,"gridFontFace",void 0),(0,Bo.__decorate)([s.attr],$n.prototype,"columnComponentName",void 0),(0,Bo.__decorate)([s.observable],$n.prototype,"eventsAndCallbacks",void 0),(0,Bo.__decorate)([s.attr],$n.prototype,"headerHeight",void 0),(0,Bo.__decorate)([s.attr],$n.prototype,"rowHeight",void 0),(0,Bo.__decorate)([s.attr],$n.prototype,"theme",void 0),(0,Bo.__decorate)([s.observable],$n.prototype,"classNames",void 0),(0,Bo.__decorate)([s.observable],$n.prototype,"agGrid",void 0),(0,Bo.__decorate)([s.observable],$n.prototype,"gridSlot",void 0),(0,Bo.__decorate)([s.observable],$n.prototype,"gridComponents",void 0);const jn=void 0,In={shadowOptions:void 0},En=$n.compose(Object.assign({baseName:"grid-pro",styles:Nn,template:Ln,shadowOptions:jn},In)),Pn={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"))},Un={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:Bn}=c.DesignToken,Gn={backgroundColor:Bn("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Un.backgroundSwatch:Pn.backgroundSwatch)),borderColor:Bn("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Un.borderSwatch:Pn.borderSwatch)),foregroundColor:Bn("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Un.foregroundSwatch:Pn.foregroundSwatch)),headerForegroundColor:Bn("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Un.headerForegroundSwatch:Pn.headerForegroundSwatch)),rowHoverColor:Bn("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Un.rowHoverSwatch:Pn.rowHoverSwatch))},_n=s.css`
|
|
10093
10109
|
.ag-theme-genesis-rapid,
|
|
10094
10110
|
.ag-theme-genesis-rapid-dark {
|
|
10095
10111
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -10549,50 +10565,50 @@
|
|
|
10549
10565
|
.ag-theme-genesis-rapid-dark {
|
|
10550
10566
|
color-scheme: dark;
|
|
10551
10567
|
}
|
|
10552
|
-
`,
|
|
10553
|
-
${
|
|
10554
|
-
${
|
|
10568
|
+
`,Hn={[ln.backgroundColor]:Gn.backgroundColor,[ln.foregroundColor]:Gn.foregroundColor,[ln.oddRowBackgroundColor]:Gn.backgroundColor,[ln.headerBackgroundColor]:Gn.backgroundColor,[ln.headerForegroundColor]:Gn.headerForegroundColor,[ln.selectedRowBackgroundColor]:Gn.rowHoverColor,[ln.rowHoverColor]:Gn.rowHoverColor,[ln.borderColor]:Gn.borderColor,[ln.rowBorderColor]:Gn.rowHoverColor,[ln.modalOverlayBackgroundColor]:Gn.backgroundColor,[ln.inputFocusBoxShadow]:Gn.headerForegroundColor,[ln.inputFocusBorderColor]:Gn.headerForegroundColor,[ln.headerColumnResizeHandleColor]:Gn.headerForegroundColor},Yn="ag-theme-genesis-rapid",Vn=s.css`
|
|
10569
|
+
${_n}
|
|
10570
|
+
${sn(Yn,Hn)}
|
|
10555
10571
|
|
|
10556
|
-
.${
|
|
10572
|
+
.${Yn} {
|
|
10557
10573
|
${ze()}
|
|
10558
10574
|
}
|
|
10559
10575
|
|
|
10560
|
-
.${
|
|
10576
|
+
.${Yn} .ag-header {
|
|
10561
10577
|
border-bottom-color: var(--rapid-ag-header-foreground-color);
|
|
10562
10578
|
font-weight: bold;
|
|
10563
10579
|
}
|
|
10564
10580
|
|
|
10565
|
-
.${
|
|
10581
|
+
.${Yn} .ag-root-wrapper {
|
|
10566
10582
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
10567
10583
|
}
|
|
10568
|
-
`,
|
|
10569
|
-
${
|
|
10570
|
-
${
|
|
10584
|
+
`,Qn="ag-theme-genesis-rapid-dark",Wn=s.css`
|
|
10585
|
+
${_n}
|
|
10586
|
+
${sn(Qn,Hn)}
|
|
10571
10587
|
|
|
10572
|
-
.${
|
|
10588
|
+
.${Qn} {
|
|
10573
10589
|
${ze()}
|
|
10574
10590
|
}
|
|
10575
10591
|
|
|
10576
|
-
.${
|
|
10592
|
+
.${Qn} .ag-header {
|
|
10577
10593
|
border-bottom-color: var(--rapid-ag-header-foreground-color);
|
|
10578
10594
|
font-weight: bold;
|
|
10579
10595
|
}
|
|
10580
10596
|
|
|
10581
|
-
.${
|
|
10597
|
+
.${Qn} .ag-cell {
|
|
10582
10598
|
line-height: var(--ag-line-height, 32px);
|
|
10583
10599
|
}
|
|
10584
10600
|
|
|
10585
|
-
.${
|
|
10601
|
+
.${Qn} .ag-root-wrapper {
|
|
10586
10602
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
10587
10603
|
}
|
|
10588
|
-
`,
|
|
10604
|
+
`,qn=s.css`
|
|
10589
10605
|
/* All the AG themes */
|
|
10590
|
-
${
|
|
10606
|
+
${Nn}
|
|
10591
10607
|
|
|
10592
10608
|
/* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
|
|
10593
|
-
${
|
|
10594
|
-
${
|
|
10595
|
-
`,
|
|
10609
|
+
${Vn}
|
|
10610
|
+
${Wn}
|
|
10611
|
+
`,Jn=Ln,Zn="ag-theme-genesis-rapid-dark";const Kn=In,Xn={zeroAgActionRenderer:ni,zeroAgActionsMenuRenderer:si,zeroAgBooleanRenderer:bi,zeroAgTextRenderer:Di,zeroAgSelectRenderer:Mi,zeroAgSelectEditor:Qo,zeroAgNumberEditor:Xo,zeroGridPro:class extends $n{constructor(){super(...arguments),this.theme=Zn}themeChanged(e,a){(e||a===Zn)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[cn.action]:ii,[cn.actionsMenu]:di,[cn.boolean]:vi,[cn.selectEditor]:Vo,[cn.numberEditor]:Ko};(this.theme===Yn||this.theme===Qn)&&(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:Jn,styles:qn,shadowOptions:undefined},Kn)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},el={foundationGridProActionRenderer:oi,foundationGridProActionsMenuRenderer:gi,foundationAgBooleanRenderer:mi,foundationAgTextRenderer:Ti,foundationAgTextFieldRenderer:ki,foundationAgSelectRenderer:Li,foundationGridPro:En,foundationSelectEditor:Yo,foundationNumberEditor:Zo,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var al,rl=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(al||(al={}));const tl={Roboto:xe,"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'},ol=tl["Segoe UI"],il=s.css`
|
|
10596
10612
|
${(0,c.display)("block")} :host {
|
|
10597
10613
|
width: 100%;
|
|
10598
10614
|
display: inline-flex;
|
|
@@ -10724,7 +10740,7 @@
|
|
|
10724
10740
|
alpha-button {
|
|
10725
10741
|
margin: 0;
|
|
10726
10742
|
}
|
|
10727
|
-
`,
|
|
10743
|
+
`,nl=s.html`
|
|
10728
10744
|
<template>
|
|
10729
10745
|
<div class="configuration">
|
|
10730
10746
|
${(0,s.when)((e=>!e.customDesignMode),s.html`
|
|
@@ -10932,7 +10948,7 @@
|
|
|
10932
10948
|
</div>
|
|
10933
10949
|
</div>
|
|
10934
10950
|
${(0,s.when)((e=>!e.customDesignMode),s.html`
|
|
10935
|
-
<alpha-checkbox :checked="${(0,
|
|
10951
|
+
<alpha-checkbox :checked="${(0,fi.Z)((e=>e.preserveOptions),"boolean")}">
|
|
10936
10952
|
Preserve selected options when changing design systems
|
|
10937
10953
|
</alpha-checkbox>
|
|
10938
10954
|
`)}
|
|
@@ -10947,7 +10963,7 @@
|
|
|
10947
10963
|
<slot></slot>
|
|
10948
10964
|
</div>
|
|
10949
10965
|
</template>
|
|
10950
|
-
`,
|
|
10966
|
+
`,ll=({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(tl).find((a=>tl[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),gl=ll(Ae),dl={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},sl=ll(i.designTokens),cl={zero:{prefix:"zero",tokenDefaults:gl,buttons:dl},alpha:{prefix:"alpha",tokenDefaults:sl,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:dl}};let pl=class extends s.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=gl.luminance===p.StandardLuminance.DarkMode,this.luminance=gl.luminance,this.neutralColor=gl.neutralColor,this.accentColor=gl.accentColor,this.bodyFont=gl.bodyFont,this.density=gl.density,this.borderRadius=gl.borderRadius,this.strokeWidth=gl.strokeWidth,this.designUnit=gl.designUnit,this.baseFontSize=gl.baseFontSize,this.baseLineHeight=gl.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=ll(a);cl.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,rl.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(cl[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,rl.__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:cl[this.ds].prefix,buttonAppearanceAccent:cl[this.ds].buttons.accent,buttonAppearanceNeutral:cl[this.ds].buttons.neutral,buttonAppearanceOutline:cl[this.ds].buttons.outline};this.$emit(al.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(cl[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:tl[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(al.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={},ye(),s.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(al.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,rl.__decorate)([(0,s.attr)({mode:"boolean",attribute:"custom-design-mode"})],pl.prototype,"customDesignMode",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"designSystems",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"ds",void 0),(0,rl.__decorate)([s.attr],pl.prototype,"darkMode",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"neutralColor",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"accentColor",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"bodyFont",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"density",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"borderRadius",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"strokeWidth",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"designUnit",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"baseFontSize",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"baseLineHeight",void 0),(0,rl.__decorate)([s.observable],pl.prototype,"preserveOptions",void 0),pl=(0,rl.__decorate)([(0,s.customElement)({name:"design-system-editor",template:nl,styles:il})],pl);const ul=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},hl=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},ml=(e,a)=>{const r=ul(e.neutralColor);p.neutralPalette.setValueFor(a,r);const t=ul(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,hl(p.typeRampBaseFontSize,we.Yd.minusOne,a)),p.typeRampMinus1LineHeight.setValueFor(a,hl(p.typeRampBaseLineHeight,we.Yd.minusOne,a)),p.typeRampMinus2FontSize.setValueFor(a,hl(p.typeRampBaseFontSize,we.Yd.minusTwo,a)),p.typeRampMinus2LineHeight.setValueFor(a,hl(p.typeRampBaseLineHeight,we.Yd.minusTwo,a)),p.typeRampPlus1FontSize.setValueFor(a,hl(p.typeRampBaseFontSize,we.Yd.plusOne,a)),p.typeRampPlus1LineHeight.setValueFor(a,hl(p.typeRampBaseLineHeight,we.Yd.plusOne,a)),p.typeRampPlus2FontSize.setValueFor(a,hl(p.typeRampBaseFontSize,we.Yd.plusTwo,a)),p.typeRampPlus2LineHeight.setValueFor(a,hl(p.typeRampBaseLineHeight,we.Yd.plusTwo,a)),p.typeRampPlus3FontSize.setValueFor(a,hl(p.typeRampBaseFontSize,we.Yd.plusThree,a)),p.typeRampPlus3LineHeight.setValueFor(a,hl(p.typeRampBaseLineHeight,we.Yd.plusThree,a)),p.typeRampPlus4FontSize.setValueFor(a,hl(p.typeRampBaseFontSize,we.Yd.plusFour,a)),p.typeRampPlus4LineHeight.setValueFor(a,hl(p.typeRampBaseLineHeight,we.Yd.plusFour,a)),p.typeRampPlus5FontSize.setValueFor(a,hl(p.typeRampBaseFontSize,we.Yd.plusFive,a)),p.typeRampPlus5LineHeight.setValueFor(a,hl(p.typeRampBaseLineHeight,we.Yd.plusFive,a)),p.typeRampPlus6FontSize.setValueFor(a,hl(p.typeRampBaseFontSize,we.Yd.plusSix,a)),p.typeRampPlus6LineHeight.setValueFor(a,hl(p.typeRampBaseLineHeight,we.Yd.plusSix,a))},vl=s.css`
|
|
10951
10967
|
:host {
|
|
10952
10968
|
background: var(--fill-color);
|
|
10953
10969
|
color: var(--neutral-foreground-rest);
|
|
@@ -10990,7 +11006,7 @@
|
|
|
10990
11006
|
zero-design-system-provider {
|
|
10991
11007
|
display: inline;
|
|
10992
11008
|
}
|
|
10993
|
-
`,
|
|
11009
|
+
`,bl=s.html`
|
|
10994
11010
|
${e=>{return a=e.prefix,s.html`
|
|
10995
11011
|
<template>
|
|
10996
11012
|
<${a}-design-system-provider ${(0,s.ref)("provider")}>
|
|
@@ -11191,7 +11207,7 @@
|
|
|
11191
11207
|
</${a}-design-system-provider>
|
|
11192
11208
|
</template>
|
|
11193
11209
|
`;var a}}
|
|
11194
|
-
`;let
|
|
11210
|
+
`;let fl=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(al.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(al.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setDialogEventListeners(),p.bodyFont.withDefault(ol)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ml(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,rl.__decorate)([s.observable],fl.prototype,"modal",void 0),(0,rl.__decorate)([s.attr],fl.prototype,"prefix",void 0),(0,rl.__decorate)([s.observable],fl.prototype,"buttonAppearanceAccent",void 0),(0,rl.__decorate)([s.observable],fl.prototype,"buttonAppearanceNeutral",void 0),(0,rl.__decorate)([s.observable],fl.prototype,"buttonAppearanceOutline",void 0),(0,rl.__decorate)([s.observable],fl.prototype,"provider",void 0),fl=(0,rl.__decorate)([(0,s.customElement)({name:"preview-components",template:bl,styles:vl})],fl);const wl=s.css`
|
|
11195
11211
|
.export {
|
|
11196
11212
|
display: flex;
|
|
11197
11213
|
justify-content: center;
|
|
@@ -11202,7 +11218,7 @@
|
|
|
11202
11218
|
display: flex;
|
|
11203
11219
|
justify-content: space-between;
|
|
11204
11220
|
}
|
|
11205
|
-
`,
|
|
11221
|
+
`,yl=s.html`
|
|
11206
11222
|
<template>
|
|
11207
11223
|
<div class="export">
|
|
11208
11224
|
<alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
|
|
@@ -11223,7 +11239,7 @@
|
|
|
11223
11239
|
</alpha-modal>
|
|
11224
11240
|
</div>
|
|
11225
11241
|
</template>
|
|
11226
|
-
`;let
|
|
11242
|
+
`;let xl=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(al.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(al.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,rl.__decorate)([s.attr],xl.prototype,"value",void 0),(0,rl.__decorate)([s.attr],xl.prototype,"tokensPath",void 0),xl=(0,rl.__decorate)([(0,s.customElement)({name:"design-system-export",template:yl,styles:wl})],xl);const zl=s.css`
|
|
11227
11243
|
.colors {
|
|
11228
11244
|
display: flex;
|
|
11229
11245
|
flex-wrap: wrap;
|
|
@@ -11236,23 +11252,23 @@
|
|
|
11236
11252
|
flex-grow: 1;
|
|
11237
11253
|
height: 20px;
|
|
11238
11254
|
}
|
|
11239
|
-
`,
|
|
11255
|
+
`,kl=s.html`
|
|
11240
11256
|
<ul class="colors">
|
|
11241
11257
|
${(0,s.repeat)((e=>e.swatches),s.html`
|
|
11242
11258
|
<li class="color" style="background-color: ${e=>e.toColorString()}"></li>
|
|
11243
11259
|
`)}
|
|
11244
11260
|
</ul>
|
|
11245
|
-
`;let
|
|
11261
|
+
`;let Sl=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=ul(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(al.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,rl.__decorate)([s.observable],Sl.prototype,"swatches",void 0),(0,rl.__decorate)([s.attr],Sl.prototype,"type",void 0),Sl=(0,rl.__decorate)([(0,s.customElement)({name:"color-palette",styles:zl,template:kl})],Sl);const Cl=s.css`
|
|
11246
11262
|
.preview {
|
|
11247
11263
|
width: 40px;
|
|
11248
11264
|
height: 40px;
|
|
11249
11265
|
}
|
|
11250
|
-
`,
|
|
11266
|
+
`,Al=s.html`
|
|
11251
11267
|
<div
|
|
11252
11268
|
class="preview"
|
|
11253
11269
|
style="background-color: ${e=>p[e.tokenName].createCSS()}"
|
|
11254
11270
|
></div>
|
|
11255
|
-
`;let
|
|
11271
|
+
`;let Tl=class extends s.FASTElement{};(0,rl.__decorate)([s.attr],Tl.prototype,"tokenName",void 0),Tl=(0,rl.__decorate)([(0,s.customElement)({name:"color-token",styles:Cl,template:Al})],Tl);const Dl=s.css`
|
|
11256
11272
|
.container {
|
|
11257
11273
|
display: flex;
|
|
11258
11274
|
width: 100%;
|
|
@@ -11300,7 +11316,7 @@
|
|
|
11300
11316
|
.container > div:not(:last-child) {
|
|
11301
11317
|
border-right: 1px solid #fafafa;
|
|
11302
11318
|
}
|
|
11303
|
-
`,
|
|
11319
|
+
`,Ol=[{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"}]}]}],Fl=s.html`
|
|
11304
11320
|
<div class="row">
|
|
11305
11321
|
<div
|
|
11306
11322
|
class="preview"
|
|
@@ -11312,19 +11328,19 @@
|
|
|
11312
11328
|
${(e,a)=>p[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
|
|
11313
11329
|
</div>
|
|
11314
11330
|
</div>
|
|
11315
|
-
`,
|
|
11331
|
+
`,Nl=s.html`
|
|
11316
11332
|
<div class="container" ${(0,s.ref)("provider")}>
|
|
11317
|
-
${(0,s.repeat)((()=>
|
|
11333
|
+
${(0,s.repeat)((()=>Ol),s.html`
|
|
11318
11334
|
<div class="column">
|
|
11319
11335
|
<h3 class="header-title">${e=>e.title}</h3>
|
|
11320
11336
|
${(0,s.repeat)((e=>e.subcategories),s.html`
|
|
11321
11337
|
<h4>${e=>e.title}</h4>
|
|
11322
|
-
${(0,s.repeat)((e=>e.tokens),
|
|
11338
|
+
${(0,s.repeat)((e=>e.tokens),Fl)}
|
|
11323
11339
|
`)}
|
|
11324
11340
|
</div>
|
|
11325
11341
|
`)}
|
|
11326
11342
|
</div>
|
|
11327
|
-
`;let
|
|
11343
|
+
`;let Ll=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(al.STYLES_CHANGED,(e=>{const a=e.detail;ml(a,this.provider)}))}};(0,rl.__decorate)([s.observable],Ll.prototype,"provider",void 0),Ll=(0,rl.__decorate)([(0,s.customElement)({name:"color-tokens",template:Nl,styles:Dl})],Ll);const Ml=s.css`
|
|
11328
11344
|
table {
|
|
11329
11345
|
background: var(--neutral-fill-rest);
|
|
11330
11346
|
color: var(--neutral-foreground-rest);
|
|
@@ -11333,7 +11349,7 @@
|
|
|
11333
11349
|
th {
|
|
11334
11350
|
text-align: left;
|
|
11335
11351
|
}
|
|
11336
|
-
`,
|
|
11352
|
+
`,Rl=s.html`
|
|
11337
11353
|
<table ${(0,s.ref)("provider")} style="font-family: ${()=>p.bodyFont.createCSS()}">
|
|
11338
11354
|
<colgroup>
|
|
11339
11355
|
<col style="width: 15%;" />
|
|
@@ -11561,7 +11577,7 @@
|
|
|
11561
11577
|
</tr>
|
|
11562
11578
|
</tbody>
|
|
11563
11579
|
</table>
|
|
11564
|
-
`;let
|
|
11580
|
+
`;let $l=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(al.STYLES_CHANGED,(e=>{const a=e.detail;ml(a,this.provider)}))}};(0,rl.__decorate)([s.observable],$l.prototype,"provider",void 0),$l=(0,rl.__decorate)([(0,s.customElement)({name:"typography-tokens",template:Rl,styles:Ml})],$l);const jl=s.css`
|
|
11565
11581
|
:host {
|
|
11566
11582
|
background: var(--fill-color);
|
|
11567
11583
|
color: var(--neutral-foreground-rest);
|
|
@@ -11577,7 +11593,7 @@
|
|
|
11577
11593
|
margin-top: 24px;
|
|
11578
11594
|
padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
|
|
11579
11595
|
}
|
|
11580
|
-
`,
|
|
11596
|
+
`,Il=s.html`
|
|
11581
11597
|
<template>
|
|
11582
11598
|
<alpha-tabs>
|
|
11583
11599
|
<alpha-tab slot="tab">Components</alpha-tab>
|
|
@@ -11606,7 +11622,7 @@
|
|
|
11606
11622
|
</alpha-tab-panel>
|
|
11607
11623
|
</alpha-tabs>
|
|
11608
11624
|
</template>
|
|
11609
|
-
`;let
|
|
11625
|
+
`;let El=class extends s.FASTElement{};El=(0,rl.__decorate)([(0,s.customElement)({name:"design-system-preview",template:Il,styles:jl})],El);const Pl={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"}]}]}}]},Ul={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"]}}},Bl={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"}]}}}]},Gl={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"]}}}},_l=s.css`
|
|
11610
11626
|
:host {
|
|
11611
11627
|
background: var(--fill-color);
|
|
11612
11628
|
color: var(--neutral-foreground-rest);
|
|
@@ -11637,7 +11653,7 @@
|
|
|
11637
11653
|
zero-design-system-provider {
|
|
11638
11654
|
display: inline;
|
|
11639
11655
|
}
|
|
11640
|
-
`,
|
|
11656
|
+
`,Hl=s.html`
|
|
11641
11657
|
${e=>{return a=e.prefix,s.html`
|
|
11642
11658
|
<template>
|
|
11643
11659
|
<${a}-design-system-provider ${(0,s.ref)("provider")}>
|
|
@@ -11659,7 +11675,7 @@
|
|
|
11659
11675
|
</${a}-design-system-provider>
|
|
11660
11676
|
</template>
|
|
11661
11677
|
`;var a}}
|
|
11662
|
-
`;let
|
|
11678
|
+
`;let Yl=class extends s.FASTElement{constructor(){super(...arguments),this.jsonSchema=Ul,this.uischema=Pl,this.jsonSchemaArray=Gl,this.uiSchemaArray=Bl,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(al.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(al.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{p.bodyFont.withDefault(ol)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ml(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.uischema.dsPrefix=e.detail.prefix,this.uiSchemaArray.dsPrefix=e.detail.prefix}};(0,rl.__decorate)([s.observable],Yl.prototype,"jsonSchema",void 0),(0,rl.__decorate)([s.observable],Yl.prototype,"uischema",void 0),(0,rl.__decorate)([s.observable],Yl.prototype,"jsonSchemaArray",void 0),(0,rl.__decorate)([s.observable],Yl.prototype,"uiSchemaArray",void 0),(0,rl.__decorate)([s.attr],Yl.prototype,"prefix",void 0),(0,rl.__decorate)([s.observable],Yl.prototype,"provider",void 0),(0,rl.__decorate)([s.observable],Yl.prototype,"editedEntity",void 0),(0,rl.__decorate)([s.observable],Yl.prototype,"editedEntityArray",void 0),Yl=(0,rl.__decorate)([(0,s.customElement)({name:"preview-form",template:Hl,styles:_l})],Yl);const Vl=s.css`
|
|
11663
11679
|
:host {
|
|
11664
11680
|
background: var(--fill-color);
|
|
11665
11681
|
color: var(--neutral-foreground-rest);
|
|
@@ -11674,7 +11690,7 @@
|
|
|
11674
11690
|
.grid-height {
|
|
11675
11691
|
height: 450px;
|
|
11676
11692
|
}
|
|
11677
|
-
`,
|
|
11693
|
+
`,Ql=s.html`
|
|
11678
11694
|
${e=>{return a=e.prefix,s.html`
|
|
11679
11695
|
<template>
|
|
11680
11696
|
<${a}-design-system-provider ${(0,s.ref)("provider")}>
|
|
@@ -11684,5 +11700,5 @@
|
|
|
11684
11700
|
</${a}-design-system-provider>
|
|
11685
11701
|
</template>
|
|
11686
11702
|
`;var a}}
|
|
11687
|
-
`;let
|
|
11688
|
-
//# sourceMappingURL=
|
|
11703
|
+
`;let Wl=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(al.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(al.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setGridOptions(),p.bodyFont.withDefault(ol)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ml(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,s.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,rl.__decorate)([s.observable],Wl.prototype,"grid",void 0),(0,rl.__decorate)([s.attr],Wl.prototype,"prefix",void 0),(0,rl.__decorate)([s.observable],Wl.prototype,"provider",void 0),(0,rl.__decorate)([s.observable],Wl.prototype,"rowData",void 0),(0,rl.__decorate)([s.observable],Wl.prototype,"columnDefs",void 0),(0,rl.__decorate)([s.observable],Wl.prototype,"gridOptions",void 0),Wl=(0,rl.__decorate)([(0,s.customElement)({name:"preview-grid",template:Ql,styles:Vl})],Wl),((e,a="zero")=>{e&&(0,R.provideTokens)(t,o,e);const r=c.DesignSystem.getOrCreate(e).withPrefix(a);return(0,R.createDesignSystemProxy)(r)})().register(Uo,Xn),(0,i.provideDesignSystem)().register(i.baseComponents,el)}}]);
|
|
11704
|
+
//# sourceMappingURL=916.e066141fcc78ef50273cbacab6b0ed92.js.map
|