@genesislcap/design-system-configurator 14.125.0 → 14.126.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/{180.180.55a353f5780867fe91ab.js → 180.180.d68c2300b42caa36c492.js} +144 -172
- package/dist/180.6e08e931a0d24058e36a897e7fe291bc.js.map +1 -0
- package/dist/{200.200.b868ca968ce8acaed580.js → 200.200.44bcdf578015f361122a.js} +2 -2
- package/dist/{200.e1b8da3ae3ebc8e6f8d14510648bbeea.js.map → 200.282560fecee536dffe7ab496134a61cd.js.map} +1 -1
- package/dist/{269.269.44fae0d827e0c944c410.js → 269.269.58f76f42bddfcfb8d71b.js} +1 -1
- package/dist/645.1a8bcac3ab28d1d6b1b1ff6181d464b2.js.map +1 -0
- package/dist/{645.645.cf0940a349e5035acdf7.js → 645.645.16dbeb427dca47f80724.js} +52 -54
- package/dist/{755.755.b7c2f08e6b765ec6ac61.js → 755.755.9f0d4e7e206bfb4e97e1.js} +1 -1
- package/dist/{8.8.37008b7b82da351970e7.js → 8.8.30c23a373b09dffa9472.js} +2 -2
- package/dist/{8.17fb5c725550f75ede773e6c9c1c4e98.js.map → 8.aab7d3cc543301610182da8470a00c42.js.map} +1 -1
- package/dist/designSystemConfigurator.ed60b1851af8f4ee2b4a81b2dfeb6a93.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.860a9c81fa6b0d394f99.js +2 -0
- package/dist/main.9572fe3ca6de4f007b3da30ba3b08e95.js.map +1 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +7 -7
- package/dist/180.7b70a8d34847ee3ce8a7d2ae3f9d1f19.js.map +0 -1
- package/dist/645.0b8bd02cf23fa74029f3e78f8cde1529.js.map +0 -1
- package/dist/designSystemConfigurator.349bc53988209d227db343adf6add6dd.js.map +0 -1
- package/dist/main.77c348913f0867a49c11.js +0 -2
- package/dist/main.950e116d0002ea21b916a5bd25e44f2d.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[180],{34180:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[180],{34180:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>bg,ColorToken:()=>yg,ColorTokens:()=>Cg,DesignSystemEditor:()=>ig,DesignSystemExport:()=>hg,DesignSystemPreview:()=>Fg,EventName:()=>Wl,PreviewComponents:()=>cg,PreviewForm:()=>Eg,PreviewGrid:()=>Gg,TypographyTokens:()=>Og,defaultBodyFont:()=>Zl,fontFamilies:()=>Jl});var t={};r.r(t),r.d(t,{accentFillActive:()=>c.accentFillActive,accentFillActiveDelta:()=>c.accentFillActiveDelta,accentFillFocus:()=>c.accentFillFocus,accentFillFocusDelta:()=>c.accentFillFocusDelta,accentFillHover:()=>c.accentFillHover,accentFillHoverDelta:()=>c.accentFillHoverDelta,accentFillRest:()=>c.accentFillRest,accentFillRestDelta:()=>c.accentFillRestDelta,accentForegroundActive:()=>c.accentForegroundActive,accentForegroundActiveDelta:()=>c.accentForegroundActiveDelta,accentForegroundFocus:()=>c.accentForegroundFocus,accentForegroundFocusDelta:()=>c.accentForegroundFocusDelta,accentForegroundHover:()=>c.accentForegroundHover,accentForegroundHoverDelta:()=>c.accentForegroundHoverDelta,accentForegroundRest:()=>c.accentForegroundRest,accentForegroundRestDelta:()=>c.accentForegroundRestDelta,accentPalette:()=>c.accentPalette,baseHeightMultiplier:()=>c.baseHeightMultiplier,baseLayerLuminance:()=>c.baseLayerLuminance,bodyFont:()=>c.bodyFont,controlCornerRadius:()=>c.controlCornerRadius,density:()=>c.density,designUnit:()=>c.designUnit,direction:()=>c.direction,disabledOpacity:()=>c.disabledOpacity,fillColor:()=>c.fillColor,focusStrokeInner:()=>c.focusStrokeInner,focusStrokeOuter:()=>c.focusStrokeOuter,focusStrokeWidth:()=>c.focusStrokeWidth,foregroundOnAccentActive:()=>c.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>c.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>c.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>c.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>c.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>c.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>c.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>c.foregroundOnAccentRestLarge,neutralFillActive:()=>c.neutralFillActive,neutralFillActiveDelta:()=>c.neutralFillActiveDelta,neutralFillFocus:()=>c.neutralFillFocus,neutralFillFocusDelta:()=>c.neutralFillFocusDelta,neutralFillHover:()=>c.neutralFillHover,neutralFillHoverDelta:()=>c.neutralFillHoverDelta,neutralFillInputActive:()=>c.neutralFillInputActive,neutralFillInputActiveDelta:()=>c.neutralFillInputActiveDelta,neutralFillInputFocus:()=>c.neutralFillInputFocus,neutralFillInputFocusDelta:()=>c.neutralFillInputFocusDelta,neutralFillInputHover:()=>c.neutralFillInputHover,neutralFillInputHoverDelta:()=>c.neutralFillInputHoverDelta,neutralFillInputRest:()=>c.neutralFillInputRest,neutralFillInputRestDelta:()=>c.neutralFillInputRestDelta,neutralFillLayerRest:()=>c.neutralFillLayerRest,neutralFillLayerRestDelta:()=>c.neutralFillLayerRestDelta,neutralFillRest:()=>c.neutralFillRest,neutralFillRestDelta:()=>c.neutralFillRestDelta,neutralFillStealthActive:()=>c.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>c.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>c.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>c.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>c.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>c.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>c.neutralFillStealthRest,neutralFillStealthRestDelta:()=>c.neutralFillStealthRestDelta,neutralFillStrongActive:()=>c.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>c.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>c.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>c.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>c.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>c.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>c.neutralFillStrongRest,neutralFillStrongRestDelta:()=>c.neutralFillStrongRestDelta,neutralForegroundHint:()=>c.neutralForegroundHint,neutralForegroundRest:()=>c.neutralForegroundRest,neutralLayer1:()=>c.neutralLayer1,neutralLayer2:()=>c.neutralLayer2,neutralLayer3:()=>c.neutralLayer3,neutralLayer4:()=>c.neutralLayer4,neutralLayerCardContainer:()=>c.neutralLayerCardContainer,neutralLayerFloating:()=>c.neutralLayerFloating,neutralPalette:()=>c.neutralPalette,neutralStrokeActive:()=>c.neutralStrokeActive,neutralStrokeActiveDelta:()=>c.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>c.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>c.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>c.neutralStrokeFocus,neutralStrokeFocusDelta:()=>c.neutralStrokeFocusDelta,neutralStrokeHover:()=>c.neutralStrokeHover,neutralStrokeHoverDelta:()=>c.neutralStrokeHoverDelta,neutralStrokeRest:()=>c.neutralStrokeRest,neutralStrokeRestDelta:()=>c.neutralStrokeRestDelta,strokeWidth:()=>c.strokeWidth,typeRampBaseFontSize:()=>c.typeRampBaseFontSize,typeRampBaseLineHeight:()=>c.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>c.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>c.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>c.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>c.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>c.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>c.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>c.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>c.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>c.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>c.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>c.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>c.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>c.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>c.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>c.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>c.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>ve,baseLayerLuminanceValue:()=>fe,bodyFontValue:()=>Oe,controlCornerRadiusValue:()=>xe,densityValue:()=>ze,designTokens:()=>Fe,designUnitValue:()=>ke,directionValue:()=>we,neutralPaletteValue:()=>be,strokeWidthValue:()=>ye,typeRampBaseFontSizeValue:()=>De,typeRampBaseLineHeightValue:()=>Ne});var i=r(77661),n=r(92592),l=r(89074),g=r(60724),d=r(83147),s=r(75951),c=r(13896),p=r(67973);const u=d.css`
|
|
2
2
|
:host {
|
|
3
3
|
border: calc(${c.strokeWidth} * 1px) solid transparent;
|
|
4
4
|
margin: 0;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
background: ${p.H.Canvas};
|
|
51
51
|
border-color: ${p.H.CanvasText};
|
|
52
52
|
}
|
|
53
|
-
`));var h=r(
|
|
53
|
+
`));var h=r(8484);const m=(0,h.createLogger)("foundation-form"),v={"^[\\+]?[(]?[0-9]{3}[)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{4,6}$":"Invalid phone number. Must match +###-###-######"},b=d.html`
|
|
54
54
|
<template>
|
|
55
55
|
${(0,d.when)((e=>!1),d.html`
|
|
56
56
|
<zero-button class="clipboard-button" @click=${e=>e.copyUISchemaToClipboard()}>
|
|
@@ -195,13 +195,13 @@
|
|
|
195
195
|
}
|
|
196
196
|
`;let A=class extends d.FASTElement{get showDescription(){return!(0,g.tg6)(this.control.visible,this.control.description,this.control.isFocused,!!this.control.config.showUnfocusedDescription)}get computedLabel(){return(0,g.lgi)(this.control.label,this.control.required,!!this.control.config.hideRequiredAsterisk)}};(0,n.__decorate)([d.observable],A.prototype,"control",void 0),(0,n.__decorate)([d.observable],A.prototype,"touched",void 0),(0,n.__decorate)([d.volatile],A.prototype,"showDescription",null),(0,n.__decorate)([d.volatile],A.prototype,"computedLabel",null),A=(0,n.__decorate)([(0,d.customElement)({name:"control-wrapper",styles:C,template:S})],A);var T=r(80340),O=r.n(T);const D=d.html`
|
|
197
197
|
<template>${e=>e.determinedRenderer.renderer}</template>
|
|
198
|
-
`,N=d.css``;let
|
|
198
|
+
`,N=d.css``;let F=class extends d.FASTElement{constructor(){super(...arguments),this.createRenderer=()=>{if(!this.jsonforms||!this.dispatch||!this.props)return;const e=(0,g.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===g.AZl||void 0===g.AZl?void 0:(0,g.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=O()(this.renderer.renderers,(e=>e.tester(this.renderer.uischema,this.renderer.schema)));return void 0===e||-1===e.tester(this.renderer.uischema,this.renderer.schema)?(console.error("UnknownRenderer this.renderer.uischema",this.renderer.uischema),{renderer:"UnknownRenderer"}):e}disconnectedCallback(){super.disconnectedCallback(),this.touched=!1,this.submitted=!1}};(0,n.__decorate)([d.observable],F.prototype,"jsonforms",void 0),(0,n.__decorate)([d.observable],F.prototype,"props",void 0),(0,n.__decorate)([d.observable],F.prototype,"touched",void 0),(0,n.__decorate)([(0,d.attr)({mode:"boolean"})],F.prototype,"submitted",void 0),(0,n.__decorate)([d.observable],F.prototype,"dispatch",void 0),(0,n.__decorate)([d.observable],F.prototype,"control",void 0),(0,n.__decorate)([d.observable],F.prototype,"renderer",void 0),F=(0,n.__decorate)([(0,d.customElement)({name:"dispatch-renderer",template:D,styles:N})],F);const $=d.css`
|
|
199
199
|
.tabs-container::part(stepper-panel-container) {
|
|
200
200
|
display: flex;
|
|
201
201
|
justify-content: flex-start;
|
|
202
202
|
align-items: flex-start;
|
|
203
203
|
}
|
|
204
|
-
`;let L=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),this.propertyNames=this.control.uischema.elements.map((e=>e.scope.split("/").pop())),this.validation=this.propertyNames.map(((e,a)=>({isValid:()=>0===(0,g.qiS)(e,this.control.schema)(this.form).length&&Object.keys(this.control.data)[a]===e})))}submit(){this.$emit("submit-button-clicked")}nextStep(){this.$emit("submit-part");const e=this.propertyNames[this.stepper.activeTabIndex];this.control.data[e]||this.$emit("data-change",{data:Object.assign(Object.assign({},this.control.data),{[e]:{}})})}resetValidation(){this.$emit("reset-form")}};(0,n.__decorate)([d.observable],L.prototype,"form",void 0),(0,n.__decorate)([d.observable],L.prototype,"control",void 0),(0,n.__decorate)([d.observable],L.prototype,"validation",void 0),(0,n.__decorate)([d.observable],L.prototype,"stepper",void 0),(0,n.__decorate)([d.observable],L.prototype,"propertyNames",void 0),L=(0,n.__decorate)([(0,d.customElement)({name:"stepper-wrapper",styles
|
|
204
|
+
`;let L=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),this.propertyNames=this.control.uischema.elements.map((e=>e.scope.split("/").pop())),this.validation=this.propertyNames.map(((e,a)=>({isValid:()=>0===(0,g.qiS)(e,this.control.schema)(this.form).length&&Object.keys(this.control.data)[a]===e})))}submit(){this.$emit("submit-button-clicked")}nextStep(){this.$emit("submit-part");const e=this.propertyNames[this.stepper.activeTabIndex];this.control.data[e]||this.$emit("data-change",{data:Object.assign(Object.assign({},this.control.data),{[e]:{}})})}resetValidation(){this.$emit("reset-form")}};(0,n.__decorate)([d.observable],L.prototype,"form",void 0),(0,n.__decorate)([d.observable],L.prototype,"control",void 0),(0,n.__decorate)([d.observable],L.prototype,"validation",void 0),(0,n.__decorate)([d.observable],L.prototype,"stepper",void 0),(0,n.__decorate)([d.observable],L.prototype,"propertyNames",void 0),L=(0,n.__decorate)([(0,d.customElement)({name:"stepper-wrapper",styles:$,template:d.html`
|
|
205
205
|
${e=>((e="zero")=>d.html`
|
|
206
206
|
<template>
|
|
207
207
|
<${e}-stepper
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
</control-wrapper>
|
|
281
281
|
</template>
|
|
282
282
|
`)(e.jsonforms.prefix)}
|
|
283
|
-
`,tester:(0,g.yMz)(3,R),mapper:g.xq9};var I=r(
|
|
283
|
+
`,tester:(0,g.yMz)(3,R),mapper:g.xq9};var I=r(85017);const E=e=>a=>{if(!a||!(0,g.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},P=(0,g.xDy)(E("allOptionsResourceName"),(0,g.or)((0,g.wcO)((e=>(0,g.ndu)(e,"array"))),(0,g.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,g.ndu)(e,"array")))))));I.MultiselectDatasource;const U={renderer:d.html`
|
|
284
284
|
${e=>((e="zero")=>d.html`
|
|
285
285
|
<template>
|
|
286
286
|
<control-wrapper
|
|
@@ -327,6 +327,7 @@
|
|
|
327
327
|
resourceName=${e=>{var a;return null===(a=e.control.uischema.options)||void 0===a?void 0:a.allOptionsResourceName}}
|
|
328
328
|
value-field=${e=>{var a;return null===(a=e.control.uischema.options)||void 0===a?void 0:a.valueField}}
|
|
329
329
|
label-field=${e=>{var a;return null===(a=e.control.uischema.options)||void 0===a?void 0:a.labelField}}
|
|
330
|
+
option-element="${e}-option"
|
|
330
331
|
:datasourceConfig=${e=>{var a;return null===(a=e.control.uischema.options)||void 0===a?void 0:a.datasourceConfig}}
|
|
331
332
|
:data=${e=>{var a;return null===(a=e.control.uischema.options)||void 0===a?void 0:a.data}}
|
|
332
333
|
:initialSelectedValue=${e=>e.control.data}
|
|
@@ -537,7 +538,7 @@
|
|
|
537
538
|
</control-wrapper>
|
|
538
539
|
</template>
|
|
539
540
|
`)(e.jsonforms.prefix)}
|
|
540
|
-
`,ge={renderer:le,tester:(0,g.yMz)(2,g.Wdb),mapper:g.xq9},de=[{renderer:le,tester:(0,g.yMz)(1,g.DRl),mapper:g.xq9},ge,j,q,J,Z,K,ae,X,ee,oe,U,V,G,H,Q];let se=class extends s.FoundationElement{constructor(){super(...arguments),this.prefix="zero",this.renderers=de,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,m.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 d.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(m.debug({payload:e,errors:this.errors}),this.$emit("submit",{payload:e,errors:this.errors}),0!==Object.entries(e).length&&this.resourceName){this.submitting=!0;const a=yield this.connect.commitEvent(this.resourceName,{DETAILS:e});this.submitting=!1,a.ERROR?this.$emit("submit-failure",{payload:e,errors:a.ERROR}):this.$emit("submit-success",{payload:e})}}))}get isSubmitHidden(){return!this.readonly&&!this.hideSubmit}submitPart(e){this.submitted=!0}onChange(e){m.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors)}disconnectedCallback(){super.disconnectedCallback(),this.reset()}reset(e=!0){this.submitted=!1,e&&(this.data={})}};var ce,pe,ue,he,me;(0,n.__decorate)([(0,d.attr)({attribute:"design-system-prefix"})],se.prototype,"prefix",void 0),(0,n.__decorate)([d.attr],se.prototype,"resourceName",void 0),(0,n.__decorate)([d.observable],se.prototype,"uischema",void 0),(0,n.__decorate)([d.observable],se.prototype,"renderers",void 0),(0,n.__decorate)([d.observable],se.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],se.prototype,"connect",void 0),(0,n.__decorate)([d.observable],se.prototype,"data",void 0),(0,n.__decorate)([d.observable],se.prototype,"submitting",void 0),(0,n.__decorate)([d.observable],se.prototype,"submitted",void 0),(0,n.__decorate)([(0,d.attr)({mode:"boolean"})],se.prototype,"readonly",void 0),(0,n.__decorate)([(0,d.attr)({attribute:"hide-submit-button",mode:"boolean"})],se.prototype,"hideSubmit",void 0),(0,n.__decorate)([d.volatile],se.prototype,"isSubmitHidden",null),se=(0,n.__decorate)([(0,d.customElement)({name:"foundation-form",template:M,styles:u})],se),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ce||(ce={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(pe||(pe={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(ue||(ue={})),function(e){e.grey="#7c909b"}(he||(he={})),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"}(me||(me={}));const ve=(0,I.paletteFromHex)(pe.blue),be=(0,I.paletteFromHex)(he.grey),fe=c.StandardLuminance.DarkMode;const we=r(5598).N.ltr,ye=c.strokeWidth.getValueFor(c.strokeWidth.appliedTo[0]),xe=4,ze=c.density.getValueFor(c.density.appliedTo[0]),ke=4;var Se=r(47823);const Ce=()=>{(0,Se.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")},Ae='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',Te=(e=Se.Hd.Normal,a=Se.U9.Regular)=>(0,Se.py)(Ae,e,a),Oe=Ae,De=c.typeRampBaseFontSize.getValueFor(c.typeRampBaseFontSize.appliedTo[0]),Ne=c.typeRampBaseLineHeight.getValueFor(c.typeRampBaseLineHeight.appliedTo[0])
|
|
541
|
+
`,ge={renderer:le,tester:(0,g.yMz)(2,g.Wdb),mapper:g.xq9},de=[{renderer:le,tester:(0,g.yMz)(1,g.DRl),mapper:g.xq9},ge,j,q,J,Z,K,ae,X,ee,oe,U,V,G,H,Q];let se=class extends s.FoundationElement{constructor(){super(...arguments),this.prefix="zero",this.renderers=de,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,m.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 d.DOM.nextUpdate()),this.submitted=!0;const e=Object.assign({},this.data);if(m.debug({payload:e,errors:this.errors}),this.$emit("submit",{payload:e,errors:this.errors}),0!==Object.entries(e).length&&this.resourceName){this.submitting=!0;const a=yield this.connect.commitEvent(this.resourceName,{DETAILS:e});this.submitting=!1,a.ERROR?this.$emit("submit-failure",{payload:e,errors:a.ERROR}):this.$emit("submit-success",{payload:e})}}))}get isSubmitHidden(){return!this.readonly&&!this.hideSubmit}submitPart(e){this.submitted=!0}onChange(e){m.debug({event:e}),e.detail&&(this.data=e.detail.data,this.errors=e.detail.errors)}disconnectedCallback(){super.disconnectedCallback(),this.reset()}reset(e=!0){this.submitted=!1,e&&(this.data={})}};var ce,pe,ue,he,me;(0,n.__decorate)([(0,d.attr)({attribute:"design-system-prefix"})],se.prototype,"prefix",void 0),(0,n.__decorate)([d.attr],se.prototype,"resourceName",void 0),(0,n.__decorate)([d.observable],se.prototype,"uischema",void 0),(0,n.__decorate)([d.observable],se.prototype,"renderers",void 0),(0,n.__decorate)([d.observable],se.prototype,"jsonSchema",void 0),(0,n.__decorate)([l.lj],se.prototype,"connect",void 0),(0,n.__decorate)([d.observable],se.prototype,"data",void 0),(0,n.__decorate)([d.observable],se.prototype,"submitting",void 0),(0,n.__decorate)([d.observable],se.prototype,"submitted",void 0),(0,n.__decorate)([(0,d.attr)({mode:"boolean"})],se.prototype,"readonly",void 0),(0,n.__decorate)([(0,d.attr)({attribute:"hide-submit-button",mode:"boolean"})],se.prototype,"hideSubmit",void 0),(0,n.__decorate)([d.volatile],se.prototype,"isSubmitHidden",null),se=(0,n.__decorate)([(0,d.customElement)({name:"foundation-form",template:M,styles:u})],se),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(ce||(ce={})),function(e){e.blue="#0eafe2",e.purple="#654df9"}(pe||(pe={})),function(e){e.orange="#ff6d52",e.teal="#08c3a5"}(ue||(ue={})),function(e){e.grey="#7c909b"}(he||(he={})),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"}(me||(me={}));const ve=(0,I.paletteFromHex)(pe.blue),be=(0,I.paletteFromHex)(he.grey),fe=c.StandardLuminance.DarkMode;const we=r(5598).N.ltr,ye=c.strokeWidth.getValueFor(c.strokeWidth.appliedTo[0]),xe=4,ze=c.density.getValueFor(c.density.appliedTo[0]),ke=4;var Se=r(47823);const Ce=()=>{(0,Se.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")},Ae='Roboto, "Segoe UI", Arial, Helvetica, sans-serif',Te=(e=Se.Hd.Normal,a=Se.U9.Regular)=>(0,Se.py)(Ae,e,a),Oe=Ae,De=c.typeRampBaseFontSize.getValueFor(c.typeRampBaseFontSize.appliedTo[0]),Ne=c.typeRampBaseLineHeight.getValueFor(c.typeRampBaseLineHeight.appliedTo[0]),Fe={design_tokens:{color:{accent:{$value:ve.source.toColorString(),$type:"color"},neutral:{$value:be.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:Oe,$type:"fontFamily"}},typography:{baseFontSize:{$value:De,$type:"dimension"},baseLineHeight:{$value:Ne,$type:"dimension"}},mode:{luminance:{$value:fe,$type:"number"}},style:{density:{$value:ze,$type:"number"},borderRadius:{$value:xe,$type:"number"},strokeWidth:{$value:ye,$type:"number"}},space:{designUnit:{$value:ke,$type:"number"}}}};class $e extends I.Accordion{}const Le=$e.compose(Object.assign({baseName:"accordion",template:(e,a)=>(0,I.foundationAccordionTemplate)(e,a),styles:(e,a)=>d.css`
|
|
541
542
|
${(0,I.foundationAccordionStyles)(e,a)}
|
|
542
543
|
`,shadowOptions:I.foundationAccordionShadowOptions},I.defaultAccordionConfig));class Me extends I.AccordionItem{}const Re=Me.compose(Object.assign({baseName:"accordion-item",template:(e,a)=>(0,I.foundationAccordionItemTemplate)(e,a),styles:(e,a)=>d.css`
|
|
543
544
|
${(0,I.foundationAccordionItemStyles)(e,a)};
|
|
@@ -804,7 +805,7 @@
|
|
|
804
805
|
}
|
|
805
806
|
`,Aa=I.foundationBannerShadowOptions;class Ta extends I.Banner{}const Oa=Ta.compose({baseName:"banner",shadowOptions:Aa,styles:Ca,template:I.foundationBannerTemplate});class Da extends I.Breadcrumb{}const Na=Da.compose(Object.assign({baseName:"breadcrumb",template:(e,a)=>(0,I.foundationBreadcrumbTemplate)(e,a),styles:(e,a)=>d.css`
|
|
806
807
|
${(0,I.foundationBreadcrumbStyles)(e,a)}
|
|
807
|
-
`,shadowOptions:undefined},{}));class
|
|
808
|
+
`,shadowOptions:undefined},{}));class Fa extends I.BreadcrumbItem{}const $a=Fa.compose(Object.assign({baseName:"breadcrumb-item",template:(e,a)=>(0,I.foundationBreadcrumbItemTemplate)(e,a),styles:(e,a)=>d.css`
|
|
808
809
|
${(0,I.foundationBreadcrumbItemStyles)(e,a)}
|
|
809
810
|
:host {
|
|
810
811
|
--neutral-foreground-rest: #18b2e3;
|
|
@@ -1067,7 +1068,7 @@
|
|
|
1067
1068
|
${(0,I.dropdownMenuBaseStyles)("zero",e,a)}
|
|
1068
1069
|
`,template:I.foundationDropdownMenuTemplate}),Dr=d.html`
|
|
1069
1070
|
${(0,I.getPrefixedErrorBanner)("zero")}
|
|
1070
|
-
`,Nr=I.foundationErrorBannerShadowOptions;class
|
|
1071
|
+
`,Nr=I.foundationErrorBannerShadowOptions;class Fr extends I.ErrorBanner{}const $r=Fr.compose({baseName:"error-banner",template:Dr,shadowOptions:Nr});class Lr extends I.ErrorBoundary{}const Mr=Lr.compose({baseName:"error-boundary",template:I.foundationErrorBoundaryTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}});class Rr extends I.ErrorDialog{}const jr=Rr.compose({baseName:"error-dialog",styles:I.foundationErrorDialogStyles,template:I.errorDialogTemplate,shadowOptions:I.foundationErrorDialogShadowOptions}),Ir=d.css`
|
|
1071
1072
|
${I.foundationFileUploadStyles}
|
|
1072
1073
|
::-webkit-scrollbar {
|
|
1073
1074
|
width: 12px;
|
|
@@ -1155,17 +1156,28 @@
|
|
|
1155
1156
|
}
|
|
1156
1157
|
`,et=d.html`
|
|
1157
1158
|
${(0,I.getPrefixedFlyout)("zero")}
|
|
1158
|
-
`,at=I.defaultFlyoutConfig,rt=I.foundationFlyoutShadowOptions;class tt extends I.Flyout{}const ot=tt.compose(Object.assign({baseName:"flyout",shadowOptions:rt,styles:Xr,template:et},at));class it extends I.GridLayout{}const nt=it.compose(Object.assign({baseName:"grid-layout",shadowOptions:I.foundationGridLayoutShadowOptions,styles:I.foundationGridLayoutStyles,template:I.foundationGridLayoutTemplate},I.defaultGridLayoutConfig));class lt extends I.GridLayoutItem{}const gt=lt.compose(Object.assign({baseName:"grid-layout-item",shadowOptions:I.foundationGridLayoutItemShadowOptions,template:I.foundationGridLayoutItemTemplate},I.defaultGridLayoutItemConfig));class dt extends I.HorizontalScroll{}const st=
|
|
1159
|
+
`,at=I.defaultFlyoutConfig,rt=I.foundationFlyoutShadowOptions;class tt extends I.Flyout{}const ot=tt.compose(Object.assign({baseName:"flyout",shadowOptions:rt,styles:Xr,template:et},at));class it extends I.GridLayout{}const nt=it.compose(Object.assign({baseName:"grid-layout",shadowOptions:I.foundationGridLayoutShadowOptions,styles:I.foundationGridLayoutStyles,template:I.foundationGridLayoutTemplate},I.defaultGridLayoutConfig));class lt extends I.GridLayoutItem{}const gt=lt.compose(Object.assign({baseName:"grid-layout-item",shadowOptions:I.foundationGridLayoutItemShadowOptions,template:I.foundationGridLayoutItemTemplate},I.defaultGridLayoutItemConfig));class dt extends I.HorizontalScroll{}const st={nextFlipper:d.html`
|
|
1160
|
+
<zero-flipper
|
|
1161
|
+
@click="${e=>e.scrollToNext()}"
|
|
1162
|
+
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
1163
|
+
></zero-flipper>
|
|
1164
|
+
`,previousFlipper:d.html`
|
|
1165
|
+
<zero-flipper
|
|
1166
|
+
@click="${e=>e.scrollToPrevious()}"
|
|
1167
|
+
direction="previous"
|
|
1168
|
+
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
1169
|
+
></zero-flipper>
|
|
1170
|
+
`},ct=dt.compose(Object.assign({baseName:"horizontal-scroll",template:(e,a)=>(0,I.foundationHorizontalScrollTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1159
1171
|
${(0,I.foundationHorizontalScrollStyles)(e,a)}
|
|
1160
|
-
`,shadowOptions:I.foundationHorizontalScrollShadowOptions},
|
|
1172
|
+
`,shadowOptions:I.foundationHorizontalScrollShadowOptions},st));class pt extends I.Icon{}const ut=I.defaultIconConfig,ht=I.foundationIconShadowOptions,mt=pt.compose(Object.assign({baseName:"icon",template:I.foundationIconTemplate,styles:(e,a)=>d.css`
|
|
1161
1173
|
${(0,I.foundationIconStyles)(e,a)}
|
|
1162
|
-
`,shadowOptions:
|
|
1174
|
+
`,shadowOptions:ht},ut));class vt extends I.Listbox{}const bt=vt.compose(Object.assign({baseName:"listbox",template:(e,a)=>(0,I.foundationListboxTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1163
1175
|
${(0,I.foundationListboxStyles)(e,a)}
|
|
1164
1176
|
|
|
1165
1177
|
:host {
|
|
1166
1178
|
background: #1f2126;
|
|
1167
1179
|
}
|
|
1168
|
-
`,shadowOptions:I.foundationListboxShadowOptions},I.defaultListboxConfig));class
|
|
1180
|
+
`,shadowOptions:I.foundationListboxShadowOptions},I.defaultListboxConfig));class ft extends I.ListboxOption{}const wt=ft.compose(Object.assign({baseName:"option",template:(e,a)=>(0,I.foundationListboxOptionTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1169
1181
|
${(0,I.foundationListboxOptionStyles)(e,a)}
|
|
1170
1182
|
:host {
|
|
1171
1183
|
background-color: ${ce.darkGrey};
|
|
@@ -1182,22 +1194,22 @@
|
|
|
1182
1194
|
background-color: ${ce.darkerGrey};
|
|
1183
1195
|
color: ${pe.blue};
|
|
1184
1196
|
}
|
|
1185
|
-
`,shadowOptions:I.foundationListboxOptionShadowOptions},I.defaultListboxOptionConfig)),
|
|
1197
|
+
`,shadowOptions:I.foundationListboxOptionShadowOptions},I.defaultListboxOptionConfig)),yt=I.foundationMenuShadowOptions;class xt extends I.Menu{}const zt=xt.compose({baseName:"menu",template:I.foundationMenuTemplate,styles:(e,a)=>d.css`
|
|
1186
1198
|
${(0,I.foundationMenuStyles)(e,a)}
|
|
1187
1199
|
|
|
1188
1200
|
:host {
|
|
1189
1201
|
padding: 0;
|
|
1190
1202
|
}
|
|
1191
|
-
`,shadowOptions:
|
|
1203
|
+
`,shadowOptions:yt}),kt=I.foundationMenuItemShadowOptions;class St extends I.MenuItem{}const Ct=St.compose(Object.assign({baseName:"menu-item",template:I.foundationMenuItemTemplate,styles:(e,a)=>d.css`
|
|
1192
1204
|
${(0,I.foundationMenuItemStyles)(e,a)}
|
|
1193
1205
|
|
|
1194
1206
|
:host {
|
|
1195
1207
|
background: none;
|
|
1196
1208
|
margin: 0;
|
|
1197
1209
|
}
|
|
1198
|
-
`,shadowOptions:
|
|
1210
|
+
`,shadowOptions:kt},I.defaultMenuItemConfig)),At=d.css`
|
|
1199
1211
|
${br}
|
|
1200
|
-
`,
|
|
1212
|
+
`,Tt=I.defaultModalConfig,Ot=I.foundationModalTemplate,Dt=I.foundationModalShadowOptions;class Nt extends I.Modal{}const Ft=Nt.compose(Object.assign({baseName:"modal",shadowOptions:Dt,styles:At,template:Ot},Tt)),$t=d.css`
|
|
1201
1213
|
${I.multiselectStyles}
|
|
1202
1214
|
|
|
1203
1215
|
:host {
|
|
@@ -1253,9 +1265,9 @@
|
|
|
1253
1265
|
.label {
|
|
1254
1266
|
color: ${Va};
|
|
1255
1267
|
}
|
|
1256
|
-
`,
|
|
1268
|
+
`,Lt=d.html`
|
|
1257
1269
|
${(0,I.getPrefixedMultiselect)("zero")}
|
|
1258
|
-
`;class
|
|
1270
|
+
`;class Mt extends I.Multiselect{}const Rt=I.defaultMultiselectConfig,jt=I.foundationMultiselectShadowOptions,It=Mt.compose(Object.assign({baseName:"multiselect",template:Lt,styles:$t,shadowOptions:jt},Rt));class Et extends I.NotificationListener{}const Pt=Et.compose({baseName:"notification-listener",template:I.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}}),Ut=(e,a)=>d.css`
|
|
1259
1271
|
${(0,I.foundationTextFieldStyles)(e,a)}
|
|
1260
1272
|
:host {
|
|
1261
1273
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1303,12 +1315,12 @@
|
|
|
1303
1315
|
color: ${Va};
|
|
1304
1316
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
1305
1317
|
}
|
|
1306
|
-
`;class
|
|
1318
|
+
`;class Gt extends I.NumberField{}const Bt=I.defaultNumberFieldConfig,_t=I.foundationNumberFieldTemplate,Ht=I.foundationNumberFieldShadowOptions,Yt=Gt.compose(Object.assign({baseName:"number-field",template:_t,styles:(e,a)=>d.css`
|
|
1307
1319
|
:host .root {
|
|
1308
1320
|
--focus-stroke-outer: transparent;
|
|
1309
1321
|
}
|
|
1310
|
-
${
|
|
1311
|
-
`,shadowOptions:
|
|
1322
|
+
${Ut(e,a)}
|
|
1323
|
+
`,shadowOptions:Ht},Bt));class Vt extends I.Progress{}const Qt=Vt.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,I.foundationProgressTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1312
1324
|
${(0,I.foundationProgressStyles)(e,a)}
|
|
1313
1325
|
:host([appearance="secondary-teal"]) {
|
|
1314
1326
|
--accent-foreground-rest: ${ue.teal};
|
|
@@ -1317,7 +1329,7 @@
|
|
|
1317
1329
|
:host([appearance='secondary-orange']) {
|
|
1318
1330
|
--accent-foreground-rest: ${ue.orange};
|
|
1319
1331
|
}
|
|
1320
|
-
`,shadowOptions:I.foundationProgressShadowOptions},I.defaultProgressConfig));class
|
|
1332
|
+
`,shadowOptions:I.foundationProgressShadowOptions},I.defaultProgressConfig));class Wt extends I.ProgressRing{}const qt={indeterminateIndicator:`\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <defs>\n <linearGradient id="linear">\n <stop offset="0%" stop-color="${pe.purple}"/>\n <stop offset="100%" stop-color="${pe.blue}"/>\n </linearGradient>\n </defs>\n <circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>\n <circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>\n </svg>\n `},Jt=Wt.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>d.html`
|
|
1321
1333
|
<template
|
|
1322
1334
|
role="progressbar"
|
|
1323
1335
|
aria-valuenow="${e=>e.value}"
|
|
@@ -1355,7 +1367,7 @@
|
|
|
1355
1367
|
.indeterminate-indicator-1, .determinate {
|
|
1356
1368
|
stroke: ${"url(#linear)"};
|
|
1357
1369
|
}
|
|
1358
|
-
`,shadowOptions:I.foundationProgressRingShadowOptions},
|
|
1370
|
+
`,shadowOptions:I.foundationProgressRingShadowOptions},qt));class Zt extends I.Radio{}const Kt=Zt.compose(Object.assign({baseName:"radio",template:(e,a)=>(0,I.foundationRadioTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1359
1371
|
${(0,I.foundationRadioStyles)(e,a)}
|
|
1360
1372
|
:host {
|
|
1361
1373
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1387,12 +1399,12 @@
|
|
|
1387
1399
|
${pe.purple}
|
|
1388
1400
|
);
|
|
1389
1401
|
}
|
|
1390
|
-
`,shadowOptions:I.foundationRadioShadowOptions},I.defaultRadioConfig));class
|
|
1402
|
+
`,shadowOptions:I.foundationRadioShadowOptions},I.defaultRadioConfig));class Xt extends I.RadioGroup{}const eo=Xt.compose(Object.assign({baseName:"radio-group",template:(e,a)=>(0,I.foundationRadioGroupTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1391
1403
|
${(0,I.foundationRadioGroupStyles)(e,a)}
|
|
1392
1404
|
:host([appearance="accent"]) {
|
|
1393
1405
|
background: green;
|
|
1394
1406
|
}
|
|
1395
|
-
`,shadowOptions:I.foundationRadioGroupShadowOptions},I.defaultRadioGroupConfig));class
|
|
1407
|
+
`,shadowOptions:I.foundationRadioGroupShadowOptions},I.defaultRadioGroupConfig));class ao extends I.SegmentedControl{}const ro=ao.compose(Object.assign({baseName:"segmented-control",template:(e,a)=>(0,I.foundationSegmentedControlTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1396
1408
|
${(0,I.foundationSegmentedControlStyles)(e,a)}
|
|
1397
1409
|
:host {
|
|
1398
1410
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1431,7 +1443,7 @@
|
|
|
1431
1443
|
border-color: transparent;
|
|
1432
1444
|
box-shadow: 2px 1000px 1px rgb(0 0 0 / 50%) inset;
|
|
1433
1445
|
}
|
|
1434
|
-
`,shadowOptions:undefined},{}));class
|
|
1446
|
+
`,shadowOptions:undefined},{}));class to extends I.Radio{}const oo=to.compose(Object.assign({baseName:"segmented-item",template:(e,a)=>(0,I.foundationSegmentedItemTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1435
1447
|
${(0,I.foundationSegmentedItemStyles)(e,a)}
|
|
1436
1448
|
:host {
|
|
1437
1449
|
color: var(--neutral-stroke-rest);
|
|
@@ -1441,7 +1453,7 @@
|
|
|
1441
1453
|
:host([aria-checked='true']) {
|
|
1442
1454
|
color: ${ce.white};
|
|
1443
1455
|
}
|
|
1444
|
-
`,shadowOptions:undefined},{}));class
|
|
1456
|
+
`,shadowOptions:undefined},{}));class io extends I.Select{}const no=io.compose(Object.assign({baseName:"select",template:(e,a)=>(0,I.foundationSelectTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1445
1457
|
${(0,I.foundationSelectStyles)(e,a)}
|
|
1446
1458
|
:host {
|
|
1447
1459
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1491,9 +1503,9 @@
|
|
|
1491
1503
|
:host(:not([disabled])) .control:active {
|
|
1492
1504
|
background: none;
|
|
1493
1505
|
}
|
|
1494
|
-
`,shadowOptions:I.foundationSelectShadowOptions},I.defaultSelectConfig));class
|
|
1506
|
+
`,shadowOptions:I.foundationSelectShadowOptions},I.defaultSelectConfig));class lo extends I.Skeleton{}const go=lo.compose(Object.assign({baseName:"skeleton",template:(e,a)=>(0,I.foundationSkeletonTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1495
1507
|
${(0,I.foundationSkeletonStyles)(e,a)}
|
|
1496
|
-
`,shadowOptions:I.foundationSkeletonShadowOptions},I.defaultSkeletonConfig));class
|
|
1508
|
+
`,shadowOptions:I.foundationSkeletonShadowOptions},I.defaultSkeletonConfig));class so extends I.Slider{}const co=so.compose(Object.assign({baseName:"slider",template:(e,a)=>(0,I.foundationSliderTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1497
1509
|
${(0,I.foundationSliderStyles)(e,a)}
|
|
1498
1510
|
:host {
|
|
1499
1511
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1550,7 +1562,7 @@
|
|
|
1550
1562
|
.track-progress {
|
|
1551
1563
|
background-color: var(--neutral-stroke-rest);
|
|
1552
1564
|
}
|
|
1553
|
-
`,shadowOptions:I.foundationSliderShadowOptions},I.defaultSliderConfig));class
|
|
1565
|
+
`,shadowOptions:I.foundationSliderShadowOptions},I.defaultSliderConfig));class po extends I.SliderLabel{}const uo=po.compose(Object.assign({baseName:"slider-label",template:(e,a)=>(0,I.foundationSliderLabelTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1554
1566
|
${(0,I.foundationSliderLabelStyles)(e,a)}
|
|
1555
1567
|
.label {
|
|
1556
1568
|
padding: 6px 8px;
|
|
@@ -1561,7 +1573,7 @@
|
|
|
1561
1573
|
text-align: center;
|
|
1562
1574
|
font-size: var(--type-ramp-minus-1-font-size, 12px);
|
|
1563
1575
|
}
|
|
1564
|
-
`,shadowOptions:I.foundationSliderLabelShadowOptions},I.defaultSliderLabelConfig)),
|
|
1576
|
+
`,shadowOptions:I.foundationSliderLabelShadowOptions},I.defaultSliderLabelConfig)),ho=d.css`
|
|
1565
1577
|
${I.foundationSnackbarStyles}
|
|
1566
1578
|
.snackbar {
|
|
1567
1579
|
border: calc(var(--stroke-width) * 1px) solid ${c.neutralLayer2};
|
|
@@ -1571,56 +1583,19 @@
|
|
|
1571
1583
|
:host([type='error']) .snackbar::after {
|
|
1572
1584
|
background-color: ${ra(1)};
|
|
1573
1585
|
}
|
|
1574
|
-
`,
|
|
1586
|
+
`,mo=d.html`
|
|
1575
1587
|
${(0,I.getPrefixedSnackbar)("zero")}
|
|
1576
|
-
`,
|
|
1588
|
+
`,vo=I.foundationSnackbarShadowOptions;class bo extends I.Snackbar{}const fo=bo.compose({baseName:"snackbar",shadowOptions:vo,styles:ho,template:mo}),wo=d.css`
|
|
1577
1589
|
${I.foundationStepperStyles}
|
|
1578
1590
|
|
|
1579
1591
|
.stepper-tab {
|
|
1580
1592
|
background-color: var(--neutral-layer-3);
|
|
1581
1593
|
}
|
|
1582
|
-
`,
|
|
1594
|
+
`,yo=d.html`
|
|
1583
1595
|
${(0,I.getPrefixedStepper)("zero")}
|
|
1584
|
-
`;class
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
${(0,ie.l)((e=>e.orientation===s.TabsOrientation.vertical),d.html`
|
|
1588
|
-
<zero-tree-item ${(0,d.ref)("treeItem")} class="tree-item">
|
|
1589
|
-
${(0,d.when)((e=>e.completed),d.html`
|
|
1590
|
-
<zero-icon
|
|
1591
|
-
name="check-circle"
|
|
1592
|
-
variant="regular"
|
|
1593
|
-
size="lg"
|
|
1594
|
-
class="completed-icon"
|
|
1595
|
-
></zero-icon>
|
|
1596
|
-
`)}
|
|
1597
|
-
${(0,d.when)((e=>e.error),d.html`
|
|
1598
|
-
<zero-icon
|
|
1599
|
-
name="times-circle"
|
|
1600
|
-
variant="regular"
|
|
1601
|
-
size="lg"
|
|
1602
|
-
class="error-icon"
|
|
1603
|
-
></zero-icon>
|
|
1604
|
-
`)}
|
|
1605
|
-
<slot></slot>
|
|
1606
|
-
</zero-tree-item>
|
|
1607
|
-
`,d.html`
|
|
1608
|
-
<div class="step-number-container">
|
|
1609
|
-
<span class="step-number">${e=>e.tabPosition}</span>
|
|
1610
|
-
<slot class="step-title"></slot>
|
|
1611
|
-
${(0,d.when)((e=>!e.isLast),d.html`
|
|
1612
|
-
<zero-icon
|
|
1613
|
-
class="angle-icon"
|
|
1614
|
-
name="angle-right"
|
|
1615
|
-
variant="solid"
|
|
1616
|
-
size="lg"
|
|
1617
|
-
></zero-icon>
|
|
1618
|
-
`)}
|
|
1619
|
-
</div>
|
|
1620
|
-
`)}
|
|
1621
|
-
${(0,s.endSlotTemplate)(e,a)}
|
|
1622
|
-
</template>
|
|
1623
|
-
`,styles:(e,a)=>d.css`
|
|
1596
|
+
`;class xo extends I.Stepper{}const zo=xo.compose(Object.assign({baseName:"stepper",template:yo,styles:wo,shadowOptions:I.foundationStepperShadowOptions},I.defaultStepperConfig)),ko=d.html`
|
|
1597
|
+
${(0,I.getPrefixedStepperTab)("zero")}
|
|
1598
|
+
`;class So extends I.StepperTab{}const Co=So.compose(Object.assign({baseName:"stepper-tab",template:ko,styles:(e,a)=>d.css`
|
|
1624
1599
|
${(0,I.foundationStepperTabStyles)(e,a)}
|
|
1625
1600
|
|
|
1626
1601
|
zero-tree-item {
|
|
@@ -1632,11 +1607,7 @@
|
|
|
1632
1607
|
|
|
1633
1608
|
border-bottom: 1px solid var(--fill-color);
|
|
1634
1609
|
}
|
|
1635
|
-
|
|
1636
|
-
zero-icon {
|
|
1637
|
-
margin-right: 5px;
|
|
1638
|
-
}
|
|
1639
|
-
`,shadowOptions:I.foundationStepperTabShadowOptions},I.defaultStepperTabConfig));class So extends I.StepperTabPanel{}const Co=So.compose(Object.assign({baseName:"stepper-tab-panel",template:(e,a)=>(0,I.foundationStepperTabPanelTemplate)(e,a),shadowOptions:I.foundationStepperTabPanelShadowOptions},I.defaultStepperTabPanelConfig));class Ao extends I.Switch{}const To=Ao.compose(Object.assign({baseName:"switch",template:(e,a)=>(0,I.foundationSwitchTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1610
|
+
`,shadowOptions:I.foundationStepperTabShadowOptions},I.defaultStepperTabConfig));class Ao extends I.StepperTabPanel{}const To=Ao.compose(Object.assign({baseName:"stepper-tab-panel",template:(e,a)=>(0,I.foundationStepperTabPanelTemplate)(e,a),shadowOptions:I.foundationStepperTabPanelShadowOptions},I.defaultStepperTabPanelConfig));class Oo extends I.Switch{}const Do=Oo.compose(Object.assign({baseName:"switch",template:(e,a)=>(0,I.foundationSwitchTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1640
1611
|
${(0,I.foundationSwitchStyles)(e,a)}
|
|
1641
1612
|
:host {
|
|
1642
1613
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1681,7 +1652,7 @@
|
|
|
1681
1652
|
${pe.purple}
|
|
1682
1653
|
);
|
|
1683
1654
|
}
|
|
1684
|
-
`,shadowOptions:I.foundationSwitchShadowOptions},I.defaultSwitchConfig));class
|
|
1655
|
+
`,shadowOptions:I.foundationSwitchShadowOptions},I.defaultSwitchConfig));class No extends I.Tab{}const Fo=No.compose(Object.assign({baseName:"tab",template:(e,a)=>(0,I.foundationTabTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1685
1656
|
${(0,I.foundationTabStyles)(e,a)}
|
|
1686
1657
|
:host {
|
|
1687
1658
|
background-color: ${c.neutralLayer2};
|
|
@@ -1705,12 +1676,12 @@
|
|
|
1705
1676
|
margin-right: 0;
|
|
1706
1677
|
background-color: var(--zero-card-fill-color);
|
|
1707
1678
|
}
|
|
1708
|
-
`,shadowOptions:I.foundationTabShadowOptions},I.defaultTabConfig));class
|
|
1679
|
+
`,shadowOptions:I.foundationTabShadowOptions},I.defaultTabConfig));class $o extends I.TabPanel{}const Lo=$o.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,I.foundationTabPanelTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1709
1680
|
${(0,I.foundationTabPanelStyles)(e,a)}
|
|
1710
1681
|
:host {
|
|
1711
1682
|
padding: 0;
|
|
1712
1683
|
}
|
|
1713
|
-
`,shadowOptions:I.foundationTabPanelShadowOptions},I.defaultTabPanelConfig));class
|
|
1684
|
+
`,shadowOptions:I.foundationTabPanelShadowOptions},I.defaultTabPanelConfig));class Mo extends I.Tabs{}const Ro=Mo.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,I.foundationTabsTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1714
1685
|
${(0,I.foundationTabsStyles)(e,a)}
|
|
1715
1686
|
:host .tablist {
|
|
1716
1687
|
padding: 0;
|
|
@@ -1756,7 +1727,7 @@
|
|
|
1756
1727
|
height: 2px;
|
|
1757
1728
|
margin-top: 0;
|
|
1758
1729
|
}
|
|
1759
|
-
`,shadowOptions:I.foundationTabsShadowOptions},I.defaultTabsConfig));class
|
|
1730
|
+
`,shadowOptions:I.foundationTabsShadowOptions},I.defaultTabsConfig));class jo extends I.TextArea{}const Io=jo.compose(Object.assign({baseName:"text-area",template:(e,a)=>(0,I.foundationTextAreaTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1760
1731
|
${(0,I.foundationTextAreaStyles)(e,a)}
|
|
1761
1732
|
:host {
|
|
1762
1733
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1801,7 +1772,7 @@
|
|
|
1801
1772
|
color: ${Va};
|
|
1802
1773
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
1803
1774
|
}
|
|
1804
|
-
`,shadowOptions:I.foundationTextAreaShadowOptions},I.defaultTextAreaConfig));class
|
|
1775
|
+
`,shadowOptions:I.foundationTextAreaShadowOptions},I.defaultTextAreaConfig));class Eo extends I.TextField{}const Po=Eo.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,I.foundationTextFieldTemplate)(e,a),styles:Ut,shadowOptions:I.foundationTextFieldShadowOptions},I.defaultTextFieldConfig)),Uo=d.css`
|
|
1805
1776
|
${I.foundationToastStyles}
|
|
1806
1777
|
.toast {
|
|
1807
1778
|
border: calc(var(--stroke-width) * 1px) solid ${c.neutralLayer3};
|
|
@@ -1827,11 +1798,11 @@
|
|
|
1827
1798
|
:host([notify='serious']) .toast::after {
|
|
1828
1799
|
background-color: ${Ze(1)};
|
|
1829
1800
|
}
|
|
1830
|
-
`,
|
|
1801
|
+
`,Go=I.defaultToastConfig,Bo=I.foundationToastShadowOptions;class _o extends I.Toast{}const Ho=_o.compose(Object.assign({baseName:"toast",shadowOptions:Bo,styles:Uo,template:I.foundationToastTemplate},Go));class Yo extends I.Toolbar{}const Vo=Yo.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,I.foundationToolbarTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1831
1802
|
${(0,I.foundationToolbarStyles)(e,a)}
|
|
1832
|
-
`,shadowOptions:I.foundationToolbarShadowOptions},I.defaultToolbarConfig));class
|
|
1803
|
+
`,shadowOptions:I.foundationToolbarShadowOptions},I.defaultToolbarConfig));class Qo extends I.Tooltip{}const Wo=Qo.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,I.foundationTooltipTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1833
1804
|
${(0,I.foundationTooltipStyles)(e,a)}
|
|
1834
|
-
`,shadowOptions:I.foundationTooltipShadowOptions},I.defaultTooltipConfig));class
|
|
1805
|
+
`,shadowOptions:I.foundationTooltipShadowOptions},I.defaultTooltipConfig));class qo extends I.TreeItem{}const Jo=qo.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,I.foundationTreeItemTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1835
1806
|
${(0,I.foundationTreeItemStyles)(e,a)}
|
|
1836
1807
|
:host {
|
|
1837
1808
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1859,11 +1830,11 @@
|
|
|
1859
1830
|
background-size: cover;
|
|
1860
1831
|
background-repeat: no-repeat;
|
|
1861
1832
|
}
|
|
1862
|
-
`,shadowOptions:I.foundationTreeItemShadowOptions},I.defaultTreeItemConfig));class
|
|
1833
|
+
`,shadowOptions:I.foundationTreeItemShadowOptions},I.defaultTreeItemConfig));class Zo extends I.TreeView{}const Ko=Zo.compose(Object.assign({baseName:"tree-view",template:(e,a)=>(0,I.foundationTreeViewTemplate)(e,a),styles:(e,a)=>d.css`
|
|
1863
1834
|
${(0,I.foundationTreeViewStyles)(e,a)}
|
|
1864
|
-
`,shadowOptions:I.foundationTreeViewShadowOptions},I.defaultTreeViewConfig)),
|
|
1835
|
+
`,shadowOptions:I.foundationTreeViewShadowOptions},I.defaultTreeViewConfig)),Xo=d.html`
|
|
1865
1836
|
${(0,I.getPrefixedUrlInput)("zero")}
|
|
1866
|
-
`;class
|
|
1837
|
+
`;class ei extends I.UrlInput{}const ai={zeroAccordion:Le,zeroAccordionItem:Re,zeroActionsMenu:Ie,zeroAnchor:fa,zeroAnchoredRegion:ya,zeroAvatar:za,zeroBadge:Sa,zeroBanner:Oa,zeroBreadcrumbItem:$a,zeroBreadcrumb:Na,zeroButton:Ma,zeroCalendar:ja,zeroCard:Ea,zeroCheckbox:Ua,zeroCombobox:Xa,zeroConnectionIndicator:ar,zeroDataGrid:ir,zeroDesignSystemProvider:hr,zeroDialog:zr,zeroDatePicker:gr,zeroDisclosure:Sr,zeroDivider:Ar,zeroDropdownMenu:Or,zeroErrorBoundary:Mr,zeroNotificationListener:Pt,zeroErrorBanner:$r,zeroErrorDialog:jr,zeroFileUpload:Br,zeroFilter:Yr,zeroFilterBar:Wr,zeroFlexLayout:Jr,zeroFlipper:Kr,zeroFlyout:ot,zeroGridLayout:nt,zeroGridLayoutItem:gt,zeroHorizontalScroll:ct,zeroIcon:mt,zeroListbox:bt,zeroListboxOption:wt,zeroMenu:zt,zeroMenuItem:Ct,zeroModal:Ft,zeroMultiselect:It,zeroNumberField:Yt,zeroProgress:Qt,zeroProgressRing:Jt,zeroRadio:Kt,zeroRadioGroup:eo,zeroSegmentedControl:ro,zeroSegmentedItem:oo,zeroSelect:no,zeroSkeleton:go,zeroSlider:co,zeroSliderLabel:uo,zeroSnackbar:fo,zeroStepper:zo,zeroStepperTab:Co,zeroStepperTabPanel:To,zeroSwitch:Do,zeroTab:Fo,zeroTabPanel:Lo,zeroTabs:Ro,zeroTextArea:Io,zeroTextField:Po,zeroToast:Ho,zeroToolbar:Vo,zeroTooltip:Wo,zeroTreeItem:Jo,zeroTreeView:Ko,zeroUrlInput:ei.compose(Object.assign({baseName:"url-input",template:Xo,styles:(e,a)=>d.css`
|
|
1867
1838
|
${(0,I.foundationUrlInputStyles)(e,a)}
|
|
1868
1839
|
a {
|
|
1869
1840
|
color: ${pe.blue};
|
|
@@ -1873,23 +1844,23 @@
|
|
|
1873
1844
|
a:hover {
|
|
1874
1845
|
opacity: 100%;
|
|
1875
1846
|
}
|
|
1876
|
-
`,shadowOptions:I.foundationUrlInputShadowOptions},I.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var
|
|
1877
|
-
.${
|
|
1847
|
+
`,shadowOptions:I.foundationUrlInputShadowOptions},I.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var ri,ti,oi=r(80249),ii=r(87530),ni=r.n(ii),li=r(79014),gi=r.n(li);!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"}(ri||(ri={})),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"}(ti||(ti={}));const di=e=>`${e}-token-map`,si=(e,a)=>d.css`
|
|
1848
|
+
.${di(e)} {
|
|
1878
1849
|
${new I.CSSVarsTokenMapper(a)}
|
|
1879
1850
|
}
|
|
1880
|
-
`;var
|
|
1851
|
+
`;var ci;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.editable="editable",e.text="text",e.select="select",e.dateEditor="dateEditor",e.selectEditor="selectEditor",e.numberEditor="numberEditor",e.stringEditor="stringEditor",e.multiselectEditor="multiselectEditor"}(ci||(ci={}));const pi="__editedColumn",ui="__errorColumn";ni().extend(gi());class hi extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.dateFormat=e.withTime?"YYYY-MM-DDTHH:mm":"YYYY-MM-DD",this.inputType=e.withTime?"datetime-local":"date",this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}changeHandler(e){const a=e.target.control.valueAsNumber;this.value=isNaN(a)?void 0:a}afterGuiAttached(){this.input.focus()}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],hi.prototype,"value",void 0),(0,oi.__decorate)([d.observable],hi.prototype,"actualWidth",void 0);const mi=d.css`
|
|
1881
1852
|
:host {
|
|
1882
1853
|
display: flex;
|
|
1883
1854
|
}
|
|
1884
|
-
`,
|
|
1855
|
+
`,vi=(e="foundation")=>d.html`
|
|
1885
1856
|
<${e}-text-field
|
|
1886
1857
|
${(0,d.ref)("input")}
|
|
1887
|
-
:value=${e=>void 0===e.value||null===e.value?"":
|
|
1858
|
+
:value=${e=>void 0===e.value||null===e.value?"":ni().utc(e.value).format(e.dateFormat)}
|
|
1888
1859
|
type=${e=>e.inputType}
|
|
1889
1860
|
@input=${(e,a)=>e.changeHandler(a.event)}
|
|
1890
1861
|
style="width: ${e=>e.actualWidth}px"
|
|
1891
1862
|
></${e}-text-field>
|
|
1892
|
-
`,
|
|
1863
|
+
`,bi=hi.compose({baseName:"date-editor",styles:mi,template:vi()});class fi extends hi{}const wi=fi.compose({baseName:"date-editor",styles:mi,template:vi("zero")});class yi extends s.FoundationElement{init(e){e&&(this.params=e,this.selectedOptions=e.value,this.params.selectedOptionsCallback&&this.params.selectedOptionsCallback(this.params.data).then((e=>{this.selectedOptions=e})),"string"==typeof e.value&&(this.selectedOptions=e.value.split(",")))}getGui(){return this}destroy(){}refresh(e){return!0}getValue(){return this.selectedOptions}isPopup(){return!0}changeHandler(e){this.selectedOptions=e.detail}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],yi.prototype,"params",void 0),(0,oi.__decorate)([d.observable],yi.prototype,"selectedOptions",void 0);const xi=d.css``,zi=(e="foundation")=>d.html`
|
|
1893
1864
|
<${e}-multiselect
|
|
1894
1865
|
style="width: 100%"
|
|
1895
1866
|
?async=${e=>e.params.async}
|
|
@@ -1903,7 +1874,7 @@
|
|
|
1903
1874
|
:datasourceConfig=${e=>e.params.datasourceOptions}
|
|
1904
1875
|
></multiselect-datasource>
|
|
1905
1876
|
</${e}-multiselect>
|
|
1906
|
-
`,
|
|
1877
|
+
`,ki=yi.compose({baseName:"multiselect-editor",styles:xi,template:zi()});class Si extends yi{}const Ci=Si.compose({baseName:"multiselect-editor",styles:xi,template:zi("zero")});class Ai extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.combobox.open=!0}changeHandler(e){var a;this.value=null===(a=e.detail)||void 0===a?void 0:a.value}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],Ai.prototype,"params",void 0),(0,oi.__decorate)([d.observable],Ai.prototype,"value",void 0),(0,oi.__decorate)([d.observable],Ai.prototype,"actualWidth",void 0);const Ti=d.css``,Oi=(e="foundation")=>d.html`
|
|
1907
1878
|
<${e}-combobox
|
|
1908
1879
|
style="width: ${e=>e.actualWidth}px"
|
|
1909
1880
|
${(0,d.ref)("combobox")}
|
|
@@ -1914,16 +1885,17 @@
|
|
|
1914
1885
|
resourceName=${e=>e.params.allOptionsResourceName}
|
|
1915
1886
|
value-field=${e=>e.params.valueField}
|
|
1916
1887
|
label-field=${e=>e.params.labelField}
|
|
1888
|
+
option-element="${e}-option"
|
|
1917
1889
|
:datasourceConfig=${e=>e.params.datasourceOptions}
|
|
1918
1890
|
:data=${e=>e.params.values}
|
|
1919
1891
|
:initialSelectedValue=${e=>e.params.value}
|
|
1920
1892
|
></options-datasource>
|
|
1921
1893
|
</${e}-combobox>
|
|
1922
|
-
`,
|
|
1894
|
+
`,Di=Ai.compose({baseName:"select-editor",styles:Ti,template:Oi()});class Ni extends Ai{}const Fi=Ni.compose({baseName:"select-editor",styles:Ti,template:Oi("zero")});class $i extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){const a=parseFloat(e.target.value);this.value=isNaN(a)?void 0:a}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],$i.prototype,"params",void 0),(0,oi.__decorate)([d.observable],$i.prototype,"value",void 0),(0,oi.__decorate)([d.observable],$i.prototype,"actualWidth",void 0);const Li=d.css`
|
|
1923
1895
|
:host {
|
|
1924
1896
|
display: flex;
|
|
1925
1897
|
}
|
|
1926
|
-
`,
|
|
1898
|
+
`,Mi=(e="foundation")=>d.html`
|
|
1927
1899
|
<${e}-number-field
|
|
1928
1900
|
${(0,d.ref)("input")}
|
|
1929
1901
|
withFormatting=${e=>e.params.withFormatting}
|
|
@@ -1935,11 +1907,11 @@
|
|
|
1935
1907
|
hideStep
|
|
1936
1908
|
style="width: ${e=>e.actualWidth}px"
|
|
1937
1909
|
></${e}-number-field>
|
|
1938
|
-
`,
|
|
1910
|
+
`,Ri=$i.compose({baseName:"number-editor",styles:Li,template:Mi()});class ji extends $i{}const Ii=ji.compose({baseName:"number-editor",styles:Li,template:Mi("zero")});class Ei extends s.FoundationElement{init(e){e&&(this.params=e,this.value=e.value,this.actualWidth=e.column.getActualWidth())}getGui(){return this}refresh(e){return!0}getValue(){return this.value}isPopup(){return!0}afterGuiAttached(){this.input.focus()}changeHandler(e){this.value=e.target.value}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],Ei.prototype,"params",void 0),(0,oi.__decorate)([d.observable],Ei.prototype,"value",void 0),(0,oi.__decorate)([d.observable],Ei.prototype,"actualWidth",void 0);const Pi=d.css`
|
|
1939
1911
|
:host {
|
|
1940
1912
|
display: flex;
|
|
1941
1913
|
}
|
|
1942
|
-
`,
|
|
1914
|
+
`,Ui=(e="foundation")=>d.html`
|
|
1943
1915
|
<${e}-text-field
|
|
1944
1916
|
${(0,d.ref)("input")}
|
|
1945
1917
|
:value=${e=>void 0===e.value?"":e.value}
|
|
@@ -1948,16 +1920,16 @@
|
|
|
1948
1920
|
style="width: ${e=>e.actualWidth}px"
|
|
1949
1921
|
>
|
|
1950
1922
|
</${e}-text-field>
|
|
1951
|
-
`,
|
|
1923
|
+
`,Gi=Ei.compose({baseName:"string-editor",styles:Pi,template:Ui()});class Bi extends Ei{}const _i=Bi.compose({baseName:"string-editor",styles:Pi,template:Ui("zero")});class Hi extends s.FoundationElement{init(e){e&&(this.valueFormatted=e.formatValue(e.value))}getGui(){return this}refresh(e){return this.valueFormatted=e.formatValue(e.value),!0}}(0,oi.__decorate)([d.observable],Hi.prototype,"valueFormatted",void 0);const Yi=d.css`
|
|
1952
1924
|
:host {
|
|
1953
1925
|
display: flex;
|
|
1954
1926
|
justify-content: space-between;
|
|
1955
1927
|
align-items: center;
|
|
1956
1928
|
}
|
|
1957
|
-
`,
|
|
1929
|
+
`,Vi=(e="foundation")=>d.html`
|
|
1958
1930
|
<span>${e=>e.valueFormatted}</span>
|
|
1959
1931
|
<${e}-progress-ring style="margin: 0; width: 20px; height: 20px"></${e}-progress-ring>
|
|
1960
|
-
`,
|
|
1932
|
+
`,Qi=Hi.compose({baseName:"editable-renderer",styles:Yi,template:Vi()});class Wi extends Hi{}const qi=Wi.compose({baseName:"editable-renderer",styles:Yi,template:Vi("zero")});var Ji=r(59783);const Zi=(0,h.createLogger)("grid-pro");class Ki extends s.FoundationElement{init(e){e&&(this.params=e,e.eGridCell.addEventListener("keydown",(e=>{e.key===Ji.VDZ.ENTER&&this.clickHandler()})))}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){Zi.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,oi.__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,oi.__decorate)([d.observable],Ki.prototype,"params",void 0),(0,oi.__decorate)([d.observable],Ki.prototype,"pendingAction",void 0);const{create:Xi}=s.DesignToken,en=(Xi("action-height-multiplier").withDefault("0.6px"),d.css`
|
|
1961
1933
|
.action-container {
|
|
1962
1934
|
align-items: center;
|
|
1963
1935
|
display: flex;
|
|
@@ -1972,8 +1944,8 @@
|
|
|
1972
1944
|
var(--action-height-multiplier)
|
|
1973
1945
|
);
|
|
1974
1946
|
}
|
|
1975
|
-
`),
|
|
1976
|
-
${
|
|
1947
|
+
`),an=Ki.compose({baseName:"grid-pro-action-renderer",styles:d.css`
|
|
1948
|
+
${en}
|
|
1977
1949
|
`,template:d.html`
|
|
1978
1950
|
<div class="action-container" part="action-container">
|
|
1979
1951
|
<foundation-button
|
|
@@ -1983,8 +1955,8 @@
|
|
|
1983
1955
|
?disabled=${e=>{var a;return e.pendingAction||e.isDisabled(null===(a=e.params)||void 0===a?void 0:a.data)}}
|
|
1984
1956
|
appearance="${e=>e.params.appearance}"
|
|
1985
1957
|
@click=${e=>e.clickHandler()}">${e=>e.params.actionName}</foundation-button>
|
|
1986
|
-
</div>`});class
|
|
1987
|
-
${
|
|
1958
|
+
</div>`});class rn extends Ki{}const tn=rn.compose({baseName:"grid-pro-action-renderer",styles:d.css`
|
|
1959
|
+
${en}
|
|
1988
1960
|
`,template:d.html`
|
|
1989
1961
|
<div class="action-container" part="action-container">
|
|
1990
1962
|
<zero-button
|
|
@@ -2001,29 +1973,29 @@
|
|
|
2001
1973
|
`:e.params.actionName}
|
|
2002
1974
|
</zero-button>
|
|
2003
1975
|
</div>
|
|
2004
|
-
`});class
|
|
1976
|
+
`});class on extends s.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,oi.__decorate)([d.observable],on.prototype,"params",void 0);const nn=on.compose({baseName:"grid-pro-actions-menu-renderer",template:d.html`
|
|
2005
1977
|
<foundation-actions-menu
|
|
2006
1978
|
name="${e=>e.params.headerName}"
|
|
2007
1979
|
:definition=${e=>e.params}
|
|
2008
1980
|
></foundation-actions-menu>
|
|
2009
|
-
`});class
|
|
1981
|
+
`});class ln extends on{}const gn=ln.compose({baseName:"grid-pro-actions-menu-renderer",template:d.html`
|
|
2010
1982
|
<zero-actions-menu
|
|
2011
1983
|
name="${e=>e.params.headerName}"
|
|
2012
1984
|
:definition=${e=>e.params}
|
|
2013
1985
|
></zero-actions-menu>
|
|
2014
|
-
`});class
|
|
1986
|
+
`});class dn extends s.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:Ji.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:Ji.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}isCancelBeforeStart(){return!!this.params.data[pi]}}(0,oi.__decorate)([d.observable],dn.prototype,"params",void 0),(0,oi.__decorate)([d.observable],dn.prototype,"selected",void 0);const sn=d.css`
|
|
2015
1987
|
:host {
|
|
2016
1988
|
align-center: center;
|
|
2017
1989
|
display: flex;
|
|
2018
1990
|
height: 100%;
|
|
2019
1991
|
}
|
|
2020
|
-
`,
|
|
1992
|
+
`,cn=(e="foundation")=>{const a=`${e}-checkbox`;return d.html`
|
|
2021
1993
|
<${a}
|
|
2022
1994
|
@change=${(e,a)=>e.changeHandler(a.event)}
|
|
2023
1995
|
:checked=${e=>e.selected}
|
|
2024
1996
|
?disabled=${e=>!e.params.colDef.editable}
|
|
2025
1997
|
></${a}>
|
|
2026
|
-
`},
|
|
1998
|
+
`},pn=dn.compose({baseName:"boolean-renderer",styles:sn,template:cn()});class un extends dn{}const hn=un.compose({baseName:"boolean-renderer",styles:sn,template:cn("zero")});var mn=r(18471);const vn=(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 bn extends s.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?vn(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,oi.__decorate)([d.observable],bn.prototype,"textValue",void 0),(0,oi.__decorate)([d.observable],bn.prototype,"params",void 0);const fn=d.css`
|
|
2027
1999
|
:host {
|
|
2028
2000
|
display: flex;
|
|
2029
2001
|
width: 100%;
|
|
@@ -2033,15 +2005,15 @@
|
|
|
2033
2005
|
.text-renderer {
|
|
2034
2006
|
width: 100%;
|
|
2035
2007
|
}
|
|
2036
|
-
`,
|
|
2008
|
+
`,wn=(e="foundation")=>{const a=`${e}-text-field`;return d.html`
|
|
2037
2009
|
<${a}
|
|
2038
2010
|
${(0,d.ref)("textField")}
|
|
2039
2011
|
type="text"
|
|
2040
2012
|
class="text-renderer"
|
|
2041
|
-
:value="${(0,
|
|
2013
|
+
:value="${(0,mn.Z)((e=>e.textValue))}"
|
|
2042
2014
|
@change="${(e,a)=>e.textChanged(a.event)}"
|
|
2043
2015
|
></${a}>
|
|
2044
|
-
`},
|
|
2016
|
+
`},yn=bn.compose({baseName:"grid-pro-text-renderer",styles:fn,template:wn()});class xn extends bn{}const zn=fn,kn=wn,Sn=xn.compose({baseName:"grid-text-renderer",styles:zn,template:kn()});const Cn=class extends xn{}.compose({baseName:"grid-text-renderer",styles:zn,template:kn("zero")});class An extends s.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=vn(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,oi.__decorate)([d.observable],An.prototype,"params",void 0),(0,oi.__decorate)([d.observable],An.prototype,"value",void 0);const Tn=d.css`
|
|
2045
2017
|
:host,
|
|
2046
2018
|
.select-renderer,
|
|
2047
2019
|
zero-option,
|
|
@@ -2050,7 +2022,7 @@
|
|
|
2050
2022
|
max-width: var(--select-renderer-max-width);
|
|
2051
2023
|
min-width: 100%;
|
|
2052
2024
|
}
|
|
2053
|
-
`,
|
|
2025
|
+
`,On=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return d.html`
|
|
2054
2026
|
<${a}
|
|
2055
2027
|
class="select-renderer"
|
|
2056
2028
|
@change=${(e,a)=>e.selectionChanged(a.event)}
|
|
@@ -2066,15 +2038,15 @@
|
|
|
2066
2038
|
<${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
|
|
2067
2039
|
`)}
|
|
2068
2040
|
</${a}>
|
|
2069
|
-
`},
|
|
2041
|
+
`},Dn=An.compose({baseName:"select-renderer",styles:Tn,template:On()});const Nn=class extends An{}.compose({baseName:"select-renderer",styles:Tn,template:On("zero")});var Fn=r(89861),$n=r(86534),Ln=r(75527),Mn=r(9492);const Rn=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,Mn.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Mn.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Mn.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Mn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Mn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Mn.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Mn.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Mn.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Mn.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Mn.__classPrivateFieldGet)(this,o,"f")&&((0,Mn.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Mn.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Mn.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Mn.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Mn.__classPrivateFieldGet)(this,r,"f")._key&&(0,Mn.__classPrivateFieldSet)(this,r,(0,Mn.__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,Mn.__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,Mn.__classPrivateFieldGet)(this,t,"f")!==(0,Mn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Mn.__classPrivateFieldSet)(this,t,null!==(a=(0,Mn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Mn.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Mn.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Mn.__classPrivateFieldSet)(this,t,null!==(o=(0,Mn.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Mn.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){var t;if(!0===r.getRootNode()[jn])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,Mn.__classPrivateFieldGet)(this,a,"m",e).call(this,o)},d},jn=Symbol("layout-cache-document");var In=r(88556),En=r(9770);const Pn=d.html`
|
|
2070
2042
|
<template>
|
|
2071
2043
|
<slot ${(0,d.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
|
|
2072
2044
|
</template>
|
|
2073
|
-
`;let
|
|
2045
|
+
`;let Un=class extends s.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,oi.__decorate)([d.observable],Un.prototype,"renderer",void 0),(0,oi.__decorate)([d.observable],Un.prototype,"rendererParams",void 0),(0,oi.__decorate)([d.observable],Un.prototype,"slottedRenderer",void 0),Un=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-cell",template:Pn})],Un);const Gn=d.html`
|
|
2074
2046
|
<template>
|
|
2075
2047
|
<slot ${(0,d.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
|
|
2076
2048
|
</template>
|
|
2077
|
-
`;let Un=class extends s.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,ri.__decorate)([d.observable],Un.prototype,"slottedAgCell",void 0),(0,ri.__decorate)([d.observable],Un.prototype,"definition",void 0),Un=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-column",template:Pn})],Un);var Gn=r(82940),Bn=r(32449),_n=r(9162),Hn=r(5127),Yn=r(83123),Vn=r(35991),Qn=r(6852),Wn=r(26714),qn=r(71452),Jn=r(99449),Zn=r(30526);class Kn extends s.FoundationElement{constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Gn.WJ.MAX_ROWS_250,this.maxView=Gn.WJ.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1}}(0,ri.__decorate)([l.lj],Kn.prototype,"connect",void 0),(0,ri.__decorate)([d.observable],Kn.prototype,"deferredGridOptions",void 0),(0,ri.__decorate)([d.observable],Kn.prototype,"deferredColumnStates",void 0),(0,ri.__decorate)([d.attr],Kn.prototype,"criteria",void 0),(0,ri.__decorate)([d.attr],Kn.prototype,"fields",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"is-snapshot"})],Kn.prototype,"isSnapshot",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"max-rows"})],Kn.prototype,"maxRows",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"max-view"})],Kn.prototype,"maxView",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"moving-view"})],Kn.prototype,"movingView",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"order-by"})],Kn.prototype,"orderBy",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"resource-name"})],Kn.prototype,"resourceName",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean"})],Kn.prototype,"reverse",void 0);var Xn=r(21607);function el({value:e}){return(0,Xn.D_)(e)}function al({value:e}){return(0,Xn.Lx)(e)}var rl;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(rl||(rl={}));let tl=class extends(Ln(Kn)){constructor(){super(...arguments),this.pollingInterval=Gn.WJ.REQ_REP_POLLING_INTERVAL_MS,this.disablePolling=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new Wn.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Bn.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.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;d.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Gn.WJ.REQUEST_SERVER_ROW_ID:Gn.WJ.DATASERVER_ROW_ID}init(){return(0,ri.__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);if(!e)return void qi.warn(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);this.isRequestServer=e.TYPE===Gn._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,ri.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,qn.T)(1),(0,Jn.b)(r),(0,Zn.b)((e=>qi.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else qi.warn("Application not connected or invalid resource name, datasource will not work. 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 Wn.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,ri.__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,ri.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return qi.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 qi.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===_n.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Hn.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Hn.$)(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,disablePolling:this.disablePolling,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 qi.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},rl.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},rl.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},rl.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}flashAddedCells(e){this.agGrid.enableRowFlashing&&e.length&&this.agGrid.gridApi.flashCells({rowNodes:e})}applyMappedAgTransaction(e,a,r){if(r)this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(e,[a]),(e=>{this.flashAddedCells(e.add)}));else{const r=this.agGrid.gridApi.applyTransaction(this.mapTransaction(e,[a]));this.flashAddedCells(r.add)}}mapTransaction(e,a=Object.values(rl)){if(!this.rowDataMapper)return e;const r={};return a.includes(rl.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(rl.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(rl.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=function(e){switch(e){case Yn.r.DATE:case Yn.r.DATETIME:return{comparator:function(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}}}(e.type),e.type){case Yn.r.STRING:r.cellEditor=di.stringEditor;break;case Yn.r.NUMBER:r.cellEditor=di.numberEditor,r.filter="agNumberColumnFilter";break;case Yn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=di.boolean,r.cellEditor=di.boolean);break;case Yn.r.DATE:r.valueFormatter=el,r.cellEditor=di.dateEditor,r.filter="agDateColumnFilter";break;case Yn.r.DATETIME:r.valueFormatter=al,r.filter="agDateColumnFilter",r.cellEditor=di.dateEditor,r.cellEditorParams={withTime:!0};break;case Yn.r.ENUM:e.enumOptions?(r.cellEditor=di.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}):qi.warn(`No enumOptions found for field ${e.name}. Default cell editor applied.`)}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,Bn.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,ri.__decorate)([Vn.g],tl.prototype,"auth",void 0),(0,ri.__decorate)([Qn.Yh],tl.prototype,"datasource",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"polling-interval"})],tl.prototype,"pollingInterval",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"disable-polling"})],tl.prototype,"disablePolling",void 0),(0,ri.__decorate)([d.observable],tl.prototype,"request",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"row-id"})],tl.prototype,"rowIdAttr",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],tl.prototype,"restartOnReconnection",void 0),(0,ri.__decorate)([d.observable],tl.prototype,"rowDataMapper",void 0),tl=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-genesis-datasource"})],tl);let ol=class extends tl{};ol=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-client-side-datasource"})],ol);var il=r(66306),nl=r(47546);function ll(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 gl(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 dl{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,ri.__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,nl.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===_n.Cs.LOGOFF_ACK||o===_n.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,Hn.$)(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=>qi.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,ri.__decorate)([Vn.g],dl.prototype,"auth",void 0),(0,ri.__decorate)([l.lj],dl.prototype,"connect",void 0);let sl=class extends(Ln(Kn)){constructor(){super(...arguments),this.pagination=!1,this.rowId="ROW_REF"}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,Bn.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;d.DOM.queueUpdate((()=>{e&&this.reset()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions=Object.assign({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=>{}},this.deferredGridOptions),void this.agGrid.addEventListener("onGridReady",(()=>(0,ri.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>qi.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,il.C)(e);const a=(0,il.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new dl({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});qi.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));qi.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 qi.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,ri.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>qi.debug(e)),(e=>qi.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 Yn.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 Yn.r.DATE:case Yn.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 Yn.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 Yn.r.NUMBER:r.cellEditor=di.numberEditor;break;case Yn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=di.boolean,r.cellEditor=di.boolean);break;case Yn.r.DATE:r.valueFormatter=el;break;case Yn.r.DATETIME:r.valueFormatter=al;break;case Yn.r.ENUM:r.cellEditor=di.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:gl(e.type),filter:ll(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,ri.__decorate)([(0,d.attr)({mode:"boolean"})],sl.prototype,"pagination",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"row-id"})],sl.prototype,"rowId",void 0),sl=(0,ri.__decorate)([(0,d.customElement)({name:"grid-pro-server-side-datasource"})],sl);const cl='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMHau317e0FCManAAiSyCaunoRkkLFl1/9/c+VPMsnNEtBMGFedLLAjUjWiUlf3+d7r9jXZ9QR298S0qL4ULfAzmTVNTp0mtPCuUzXkB9rmv+OwOMJMsBBtenrY+GctjprYgZGc8X+zSHSRfcvw1zpZ98C2kVXG2W5VN1e6FQaG8JwEf+HchRXcb/Z2hfQ8dNS65LeVddel9vIEBkLLAG+YnEKJNWojAGE6V6EkgmyIn4SZ/+fnUtsboqwa/IGs0PNzOvCvzXv/pcBZSpRymlLWAZIFgrumAmgArDY7BSznJvyER6Hm7NyE1oMAmTOP2W4ovkxHhBjDKOYx0rGd6gY9HsC1iTrjjQhAvisbO3rs5NnKm1fs3qoPidYOoKweNm9YtwIO46CaAQG+y6kDZXNP/PIvsNmO0J44x/o4N66Ot+LG+FSETZ0xCmh8diIJRcgUKg1LIC5GV+kMnGkwBUV1HbzQOxJrQ0SKWJvX3t1aFRHoqOtzRWTyveVTZfGGblRq755mi6egbDIkb+zKVJeTkPgMFsIIrr8G88QITUASqOJ5TBJLAyetqNuvUi9cwsEiSVfknTKJKFwXJEifKEg4TRaVoTf9KidqWxWTaM4Qhckx5sC9WV2VzEdYip117wlE4pFNoTH6pLaKlnSP3jkqCOWFb04+eok58yIR6Fpbc7h7VYskIzvBi/sbie0gREpS0BX75I92Tzz1WaffwH8gR5tNGv6Ou1SeWdaN1SV9UZTp7rskIKhKTKO2KKdINUyJyBebzykRFeRxykSE2WFRIO9B1isS0hgQYcL5JAPPxDZCJCtZJhixKBq5KJYoW69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TcUX2zPj/AL+0JO3/nkAvwE23tJm1M5r/MXKLsYquvmateVvUAAkgy6aucqD/aG2VSGIlbPMayL8j5WieIXKG465nS7Whn3qhsVcU2yXhBHu+MlTgB+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',pl='\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+M1lE4yJZuf0JLTfgdHNvseRobBRA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cHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',ul={[ai.alpine]:cl,[ai.alpineDark]:cl,[ai.balham]:pl,[ai.balhamDark]:pl,[ai.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+SAeVlCEiwaKia2gTOYABBQwR8VUQa6iVVYDKIgywZhkDpQzYwg2pogEKYClcQC2Qq0oXaYs5YPlaLUdgQ9tVNJaKVB0aVFF6cTCGhVBqdgYXJnWl1JgunLbYgr2OIF7acWFIHkWlSbS1dvGjSQkU6aoZmJIaoMxMaUYTNbdaUPjzDAU8jcamQigXK1UFkBoXGOSirP22bKJBeriEyKFKLF7ApHF2cslXcTZUOdQ9GypSIYfXSKoUsTiLtq2oYVCg9waGz9Gb0IKKzj0gNMtwgGptnTXVZcdTUqUJ9nII9zZYrIIqAaglVkSlOz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UvDsmkaXNIdZf1h9STVS2TEgFjKJdMcnzVTNcyrI544rdxazid93wxsRk0HxSu4k/tiVCGZajrDXX8WrhVftJ0RU/Ia/64ZpXjoa13dvpWmwq9WLXY8AG8hupZiGFJ1xJm+qGkTLRCYVwm6ItxMhTxKzms6NxGWFaV4+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},hl=cl,ml=d.css`
|
|
2049
|
+
`;let Bn=class extends s.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};(0,oi.__decorate)([d.observable],Bn.prototype,"slottedAgCell",void 0),(0,oi.__decorate)([d.observable],Bn.prototype,"definition",void 0),Bn=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-column",template:Gn})],Bn);var _n=r(82940),Hn=r(32449),Yn=r(9162),Vn=r(5127),Qn=r(83123),Wn=r(35991),qn=r(6852),Jn=r(26714),Zn=r(71452),Kn=r(99449),Xn=r(30526);class el extends s.FoundationElement{constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=_n.WJ.MAX_ROWS_250,this.maxView=_n.WJ.MAX_VIEW_1000,this.movingView=!1,this.reverse=!1}}(0,oi.__decorate)([l.lj],el.prototype,"connect",void 0),(0,oi.__decorate)([d.observable],el.prototype,"deferredGridOptions",void 0),(0,oi.__decorate)([d.observable],el.prototype,"deferredColumnStates",void 0),(0,oi.__decorate)([d.attr],el.prototype,"criteria",void 0),(0,oi.__decorate)([d.attr],el.prototype,"fields",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"is-snapshot"})],el.prototype,"isSnapshot",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"max-rows"})],el.prototype,"maxRows",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"max-view"})],el.prototype,"maxView",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"moving-view"})],el.prototype,"movingView",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"order-by"})],el.prototype,"orderBy",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"resource-name"})],el.prototype,"resourceName",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean"})],el.prototype,"reverse",void 0);var al=r(21607);function rl({value:e}){return(0,al.D_)(e)}function tl({value:e}){return(0,al.Lx)(e)}var ol;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(ol||(ol={}));let il=class extends(Rn(el)){constructor(){super(...arguments),this.pollingInterval=_n.WJ.REQ_REP_POLLING_INTERVAL_MS,this.disablePolling=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new Jn.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Hn.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.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;d.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?_n.WJ.REQUEST_SERVER_ROW_ID:_n.WJ.DATASERVER_ROW_ID}init(){return(0,oi.__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);if(!e)return void Zi.warn(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);this.isRequestServer=e.TYPE===_n._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,oi.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Zn.T)(1),(0,Kn.b)(r),(0,Xn.b)((e=>Zi.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Zi.warn("Application not connected or invalid resource name, datasource will not work. 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 Jn.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,oi.__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,oi.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Zi.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 Zi.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===Yn.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Vn.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Vn.$)(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,disablePolling:this.disablePolling,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 Zi.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},ol.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},ol.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},ol.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}flashAddedCells(e){this.agGrid.enableRowFlashing&&e.length&&this.agGrid.gridApi.flashCells({rowNodes:e})}applyMappedAgTransaction(e,a,r){if(r)this.agGrid.gridApi.applyTransactionAsync(this.mapTransaction(e,[a]),(e=>{this.flashAddedCells(e.add)}));else{const r=this.agGrid.gridApi.applyTransaction(this.mapTransaction(e,[a]));this.flashAddedCells(r.add)}}mapTransaction(e,a=Object.values(ol)){if(!this.rowDataMapper)return e;const r={};return a.includes(ol.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(ol.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(ol.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=function(e){switch(e){case Qn.r.DATE:case Qn.r.DATETIME:return{comparator:function(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}}}(e.type),e.type){case Qn.r.STRING:r.cellEditor=ci.stringEditor;break;case Qn.r.NUMBER:r.cellEditor=ci.numberEditor,r.filter="agNumberColumnFilter";break;case Qn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=ci.boolean,r.cellEditor=ci.boolean);break;case Qn.r.DATE:r.valueFormatter=rl,r.cellEditor=ci.dateEditor,r.filter="agDateColumnFilter";break;case Qn.r.DATETIME:r.valueFormatter=tl,r.filter="agDateColumnFilter",r.cellEditor=ci.dateEditor,r.cellEditorParams={withTime:!0};break;case Qn.r.ENUM:e.enumOptions?(r.cellEditor=ci.selectEditor,r.cellEditorParams={values:e.enumOptions.map((e=>({value:e,label:e}))),valueField:"value",labelField:"label"}):Zi.warn(`No enumOptions found for field ${e.name}. Default cell editor applied.`)}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,Hn.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,oi.__decorate)([Wn.g],il.prototype,"auth",void 0),(0,oi.__decorate)([qn.Yh],il.prototype,"datasource",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"polling-interval"})],il.prototype,"pollingInterval",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"disable-polling"})],il.prototype,"disablePolling",void 0),(0,oi.__decorate)([d.observable],il.prototype,"request",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"row-id"})],il.prototype,"rowIdAttr",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],il.prototype,"restartOnReconnection",void 0),(0,oi.__decorate)([d.observable],il.prototype,"rowDataMapper",void 0),il=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-genesis-datasource"})],il);let nl=class extends il{};nl=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-client-side-datasource"})],nl);var ll=r(66306),gl=r(47546);function dl(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 sl(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 cl{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,oi.__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,gl.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Yn.Cs.LOGOFF_ACK||o===Yn.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,Vn.$)(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=>Zi.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,oi.__decorate)([Wn.g],cl.prototype,"auth",void 0),(0,oi.__decorate)([l.lj],cl.prototype,"connect",void 0);let pl=class extends(Rn(el)){constructor(){super(...arguments),this.pagination=!1,this.rowId="ROW_REF"}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,Hn.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;d.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;d.DOM.queueUpdate((()=>{e&&this.reset()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.deferredColumnStates=structuredClone(this.deferredColumnStates),e}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions=Object.assign({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=>{}},this.deferredGridOptions),void this.agGrid.addEventListener("onGridReady",(()=>(0,oi.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Zi.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,ll.C)(e);const a=(0,ll.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new cl({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});Zi.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));Zi.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 Zi.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,oi.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Zi.debug(e)),(e=>Zi.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 Qn.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 Qn.r.DATE:case Qn.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 Qn.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 Qn.r.NUMBER:r.cellEditor=ci.numberEditor;break;case Qn.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=ci.boolean,r.cellEditor=ci.boolean);break;case Qn.r.DATE:r.valueFormatter=rl;break;case Qn.r.DATETIME:r.valueFormatter=tl;break;case Qn.r.ENUM:r.cellEditor=ci.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:sl(e.type),filter:dl(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,oi.__decorate)([(0,d.attr)({mode:"boolean"})],pl.prototype,"pagination",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"row-id"})],pl.prototype,"rowId",void 0),pl=(0,oi.__decorate)([(0,d.customElement)({name:"grid-pro-server-side-datasource"})],pl);const ul='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMHau317e0FCManAAiSyCaunoRkkLFl1/9/c+VPMsnNEtBMGFedLLAjUjWiUlf3+d7r9jXZ9QR298S0qL4ULfAzmTVNTp0mtPCuUzXkB9rmv+OwOMJMsBBtenrY+GctjprYgZGc8X+zSHSRfcvw1zpZ98C2kVXG2W5VN1e6FQaG8JwEf+HchRXcb/Z2hfQ8dNS65LeVddel9vIEBkLLAG+YnEKJNWojAGE6V6EkgmyIn4SZ/+fnUtsboqwa/IGs0PNzOvCvzXv/pcBZSpRymlLWAZ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wmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);\n font-weight: normal;\n font-style: normal;\n }\n',hl='\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/bgK00N1IOvjTXAhgXLh8BxyNDB37JRYL9LhiV1QrwwR50h0fNZo4upSKP1G3fY5KMN9MMe3sN4OhhLiIUWJ7xbpSRFM2wEx2lLKwiysi6oyClzCg99Ec8TxilXY4ea+YgngzqZGPlo74Ign50j7RGuKl8qDZ8x4lCYLQkLtAgHOb6bcEcrG9Rqe+gsz8FVCONktVNlOA7WhI08pMz03cK7oYJ29TlhKPWBJYE7i5Juc0OhwsBrG9rKbO6EX3Rm7SqcMYMpaztrilmkMrImHVEbzcilHcJDqJDa8BAVMXJkYOeTwgaNs7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B/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',ml={[ti.alpine]:ul,[ti.alpineDark]:ul,[ti.balham]:hl,[ti.balhamDark]:hl,[ti.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/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O5R+pfnnArLxH9MGJgaACk2fXtioS/s0VOdhi3FfruLh0Rws4hf8ALfEC3Jb3n184cYrKS/MPVNBMq9DYCjp9X6Z9e0oKFsiISE7KsURfRhufcWi/6lkahiUW93Urmrl7NX6PouYTIBxsxfJrEa7vGPWqb3X7VC73+TVp35H17D4ACTtvwO51/ftuvwpfwbCfYTKEqA+B19jTBcROJd/EYpgam57W5yzRsklOnTtE0/b8ro71Rd44RT85pJMUZusvADGu0G1Xw/mbjxRXSG0wLw3hCB9ckfqdCA6LvneDVqPhClJRbjb18VPnRGGrc6N8rsDVJSitxWozffuIuRdzcdrpzbESxF+FqzpahiqHiKWWweIOPrzlDAZPcm4aqcqu4YLfI13gjKBV2vhyVIoQd9GMAQRjD+IUBnYL/D/csm7U631x8MR+PJdDZfLFfrzXa3PxxP58v1dn88qSQrqqYbpmU7rucHoWeee+GlV15746133q/tS5cX9KCBaQ1GeFqW4Zg1U2QwrpobRA+mNJrHnmftPgPtWeo8gSwqSgoEikd5CZWUvDsmkaXNIdZf1h9STVS2TEgFjKJdMcnzVTNcyrI544rdxazid93wxsRk0HxSu4k/tiVCGZajrDXX8WrhVftJ0RU/Ia/64ZpXjoa13dvpWmwq9WLXY8AG8hupZiGFJ1xJm+qGkTLRCYVwm6ItxMhTxKzms6NxGWFaV4+sB3Luu+G2r6pMLTu3n/KjVWk/6EqpEbfKo6GgtTylg3UTtI19Cm1MhIlK62ETRyqIdsPNdFnOSBv1Nf6VLAJPIBUwMlUY0eBRb6Z9J6myuZHztBYA);\n font-weight: normal;\n font-style: normal;\n }\n'},vl=ul,bl=d.css`
|
|
2078
2050
|
.ag-icon {
|
|
2079
2051
|
font-family: var(--ag-icon-font-family);
|
|
2080
2052
|
font-size: var(--ag-icon-size);
|
|
@@ -9251,7 +9223,7 @@
|
|
|
9251
9223
|
input[class^='ag-'][type='range']:disabled {
|
|
9252
9224
|
opacity: 0.5;
|
|
9253
9225
|
}
|
|
9254
|
-
`,
|
|
9226
|
+
`,fl=d.css`
|
|
9255
9227
|
.ag-dnd-ghost {
|
|
9256
9228
|
background: var(--ag-header-background-color, var(--ag-background-color, #1f2126));
|
|
9257
9229
|
border: solid 1px;
|
|
@@ -9268,7 +9240,7 @@
|
|
|
9268
9240
|
overflow: hidden;
|
|
9269
9241
|
text-overflow: ellipsis;
|
|
9270
9242
|
}
|
|
9271
|
-
`,
|
|
9243
|
+
`,wl=d.css`
|
|
9272
9244
|
.ag-theme-alpine,
|
|
9273
9245
|
.ag-theme-alpine-dark {
|
|
9274
9246
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -9718,7 +9690,7 @@
|
|
|
9718
9690
|
.ag-theme-alpine-dark {
|
|
9719
9691
|
color-scheme: dark;
|
|
9720
9692
|
}
|
|
9721
|
-
`,
|
|
9693
|
+
`,yl=d.css`
|
|
9722
9694
|
.ag-theme-balham,
|
|
9723
9695
|
.ag-theme-balham-dark {
|
|
9724
9696
|
--ag-balham-active-color: #0091ea;
|
|
@@ -9988,7 +9960,7 @@
|
|
|
9988
9960
|
.ag-theme-balham-dark {
|
|
9989
9961
|
color-scheme: dark;
|
|
9990
9962
|
}
|
|
9991
|
-
`,
|
|
9963
|
+
`,xl=d.css`
|
|
9992
9964
|
.ag-theme-material {
|
|
9993
9965
|
--ag-material-primary-color: #3f51b5;
|
|
9994
9966
|
--ag-material-accent-color: #ff4081;
|
|
@@ -10253,14 +10225,14 @@
|
|
|
10253
10225
|
.ag-theme-material .ag-picker-field-wrapper:focus {
|
|
10254
10226
|
box-shadow: 0 0 0 1px var(--ag-material-primary-color);
|
|
10255
10227
|
}
|
|
10256
|
-
`,
|
|
10257
|
-
${ml}
|
|
10258
|
-
${vl}
|
|
10228
|
+
`,zl=d.css`
|
|
10259
10229
|
${bl}
|
|
10260
10230
|
${fl}
|
|
10261
10231
|
${wl}
|
|
10262
|
-
`,xl=d.css`
|
|
10263
10232
|
${yl}
|
|
10233
|
+
${xl}
|
|
10234
|
+
`,kl=d.css`
|
|
10235
|
+
${zl}
|
|
10264
10236
|
:host {
|
|
10265
10237
|
width: 100%;
|
|
10266
10238
|
height: 100%;
|
|
@@ -10287,14 +10259,14 @@
|
|
|
10287
10259
|
.ag-cell-inline-editing {
|
|
10288
10260
|
height: inherit !important;
|
|
10289
10261
|
}
|
|
10290
|
-
`,
|
|
10262
|
+
`,Sl=d.html`
|
|
10291
10263
|
<template>
|
|
10292
10264
|
<span part="grid" class="${e=>e.classNames}">
|
|
10293
10265
|
<slot name="grid" ${(0,d.ref)("gridSlot")}></slot>
|
|
10294
10266
|
<slot></slot>
|
|
10295
10267
|
</span>
|
|
10296
10268
|
</template>
|
|
10297
|
-
`;class kl{init(e){const a=this.eGui=document.createElement("div"),r=e.value;a.classList.add("custom-tooltip"),a.style["background-color"]="#f14376",a.style.border="1px inside",a.style["border-color"]="#2e3339",a.style["border-radius"]="4px",a.style.padding="5px",a.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",a.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}function Sl(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}Wi.O3h.registerModules([Nn.jM,Dn.I]);const Cl=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Al extends(Ln(s.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,jn.A)(li(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=hl,this.columnComponentName="grid-pro-column",this.theme=ai.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Wi.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Cl(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&&Wi.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Cl(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(this.initialised=!1,null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[di.action]:Ji,[di.actionsMenu]:rn,[di.boolean]:ln,[di.editable]:Bi,[di.selectEditor]:Si,[di.numberEditor]:Ni,[di.multiselectEditor]:fi,[di.dateEditor]:pi,[di.stringEditor]:ji};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 gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-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,ri.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),s=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),defaultCsvExportParams:this.csvExportParams,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.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProDatasource?s.columnDefs=t:s.columnDefs=this.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Wi.plv.copyAttributesToGridOptions(s,this.agAttributes));const c={globalEventListener:a};d.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Wi.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return qi.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),e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=a=>{if(a.data[si]===e.field)return{component:di.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=kl,e.tooltipValueGetter=a=>{const r=a.data[ci];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[ci])||void 0===a?void 0:a.column)===e.colDef.field}}));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.gridProDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Sl(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Sl(n,this.gridProDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Wi.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Wi.plv.ALL_PROPERTIES.map((e=>Cl(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},Wi.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=ul[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Rn.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}get csvExportParams(){return{processCellCallback:e=>["+","-","=","@","\t","\n"].some((a=>String(e.value).startsWith(a)))?"#ERROR formulas not allowed":e.value}}}(0,ri.__decorate)([d.observable],Al.prototype,"columnApi",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridApi",void 0),(0,ri.__decorate)([$n.z],Al.prototype,"session",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Al.prototype,"autoCellRendererByType",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Al.prototype,"onlyTemplateColDefs",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"grid-autosizing"})],Al.prototype,"gridAutosizingEnabled",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"add-index"})],Al.prototype,"addIndex",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-add"})],Al.prototype,"asyncAdd",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-remove"})],Al.prototype,"asyncRemove",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-update"})],Al.prototype,"asyncUpdate",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Al.prototype,"enableCellFlashing",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Al.prototype,"enabledRowFlashing",void 0),(0,ri.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Al.prototype,"enableRowFlashing",void 0),(0,ri.__decorate)([(0,d.attr)({attribute:"persist-column-state-key"})],Al.prototype,"persistColumnStateKey",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridFontFace",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"columnComponentName",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"eventsAndCallbacks",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"headerHeight",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"rowHeight",void 0),(0,ri.__decorate)([d.attr],Al.prototype,"theme",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"classNames",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"agGrid",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridSlot",void 0),(0,ri.__decorate)([d.observable],Al.prototype,"gridComponents",void 0);const Tl=void 0,Ol={shadowOptions:void 0},Dl=Al.compose(Object.assign({baseName:"grid-pro",styles:xl,template:zl,shadowOptions:Tl},Ol)),Nl={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#879ba6")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#1f2126")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2e3339")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2b2e34"))},$l={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#000000")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#181d1f")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#FFFFFF")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#babfc7")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2196f3"))},{create:Fl}=s.DesignToken,Ll={backgroundColor:Fl("rapid-ag-background-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.backgroundSwatch:Nl.backgroundSwatch)),borderColor:Fl("rapid-ag-border-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.borderSwatch:Nl.borderSwatch)),foregroundColor:Fl("rapid-ag-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.foregroundSwatch:Nl.foregroundSwatch)),headerForegroundColor:Fl("rapid-ag-header-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.headerForegroundSwatch:Nl.headerForegroundSwatch)),rowHoverColor:Fl("rapid-ag-row-hover-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?$l.rowHoverSwatch:Nl.rowHoverSwatch))},Ml=d.css`
|
|
10269
|
+
`;class Cl{init(e){const a=this.eGui=document.createElement("div"),r=e.value;a.classList.add("custom-tooltip"),a.style["background-color"]="#f14376",a.style.border="1px inside",a.style["border-color"]="#2e3339",a.style["border-radius"]="4px",a.style.padding="5px",a.style["box-shadow"]="0px 4px 10px 0px rgba(0, 0, 0, 0.25);",a.innerHTML=`<span style='color: #000000; font-size: 10px'>${r}</span>`}getGui(){return this.eGui}}function Al(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}Ji.O3h.registerModules([$n.jM,Fn.I]);const Tl=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Ol extends(Rn(s.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,En.A)(di(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=vl,this.columnComponentName="grid-pro-column",this.theme=ti.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Ji.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Tl(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&&Ji.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Tl(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(this.initialised=!1,null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[ci.action]:Ki,[ci.actionsMenu]:on,[ci.boolean]:dn,[ci.editable]:Hi,[ci.selectEditor]:Ai,[ci.numberEditor]:$i,[ci.multiselectEditor]:yi,[ci.dateEditor]:hi,[ci.stringEditor]:Ei};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 gridProDatasource(){return this.querySelector("grid-pro-genesis-datasource")||this.querySelector("grid-pro-client-side-datasource")||this.querySelector("grid-pro-server-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,oi.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),s=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),defaultCsvExportParams:this.csvExportParams,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.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProDatasource?s.columnDefs=t:s.columnDefs=this.mergeAllColumnDefsAndStates(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Ji.plv.copyAttributesToGridOptions(s,this.agAttributes));const c={globalEventListener:a};d.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Ji.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}applyTemplateDefinitions(e,a=!1){return Zi.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),e.editable&&(e.cellRenderer||e.cellRendererSelector||(e.cellRendererSelector=a=>{if(a.data[pi]===e.field)return{component:ci.editable}}),e.tooltipComponent||e.tooltipValueGetter||(e.tooltipComponent=Cl,e.tooltipValueGetter=a=>{const r=a.data[ui];if(r&&r.column===e.field)return r.message}),e.cellClassRules||(e.cellClassRules={error:e=>{var a;return(null===(a=e.data[ui])||void 0===a?void 0:a.column)===e.colDef.field}}));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.gridProDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Al(n,e);if((null===(r=this.gridProDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Al(n,this.gridProDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Ji.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Ji.plv.ALL_PROPERTIES.map((e=>Tl(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},Ji.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=ml[e]||this.gridFontFace;this.destroyFontFace();const r=(0,In.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}get csvExportParams(){return{processCellCallback:e=>["+","-","=","@","\t","\n"].some((a=>String(e.value).startsWith(a)))?"#ERROR formulas not allowed":e.value}}}(0,oi.__decorate)([d.observable],Ol.prototype,"columnApi",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"gridApi",void 0),(0,oi.__decorate)([Ln.z],Ol.prototype,"session",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Ol.prototype,"autoCellRendererByType",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Ol.prototype,"onlyTemplateColDefs",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"grid-autosizing"})],Ol.prototype,"gridAutosizingEnabled",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"add-index"})],Ol.prototype,"addIndex",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-add"})],Ol.prototype,"asyncAdd",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-remove"})],Ol.prototype,"asyncRemove",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"async-update"})],Ol.prototype,"asyncUpdate",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Ol.prototype,"enableCellFlashing",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Ol.prototype,"enabledRowFlashing",void 0),(0,oi.__decorate)([(0,d.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Ol.prototype,"enableRowFlashing",void 0),(0,oi.__decorate)([(0,d.attr)({attribute:"persist-column-state-key"})],Ol.prototype,"persistColumnStateKey",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"gridFontFace",void 0),(0,oi.__decorate)([d.attr],Ol.prototype,"columnComponentName",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"eventsAndCallbacks",void 0),(0,oi.__decorate)([d.attr],Ol.prototype,"headerHeight",void 0),(0,oi.__decorate)([d.attr],Ol.prototype,"rowHeight",void 0),(0,oi.__decorate)([d.attr],Ol.prototype,"theme",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"classNames",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"agGrid",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"gridSlot",void 0),(0,oi.__decorate)([d.observable],Ol.prototype,"gridComponents",void 0);const Dl=void 0,Nl={shadowOptions:void 0},Fl=Ol.compose(Object.assign({baseName:"grid-pro",styles:kl,template:Sl,shadowOptions:Dl},Nl)),$l={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#879ba6")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#1f2126")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2e3339")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2b2e34"))},Ll={foregroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#000000")),headerForegroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#181d1f")),backgroundSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#FFFFFF")),borderSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#babfc7")),rowHoverSwatch:c.SwatchRGB.from((0,Ee.parseColorHexRGB)("#2196f3"))},{create:Ml}=s.DesignToken,Rl={backgroundColor:Ml("rapid-ag-background-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ll.backgroundSwatch:$l.backgroundSwatch)),borderColor:Ml("rapid-ag-border-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ll.borderSwatch:$l.borderSwatch)),foregroundColor:Ml("rapid-ag-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ll.foregroundSwatch:$l.foregroundSwatch)),headerForegroundColor:Ml("rapid-ag-header-foreground-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ll.headerForegroundSwatch:$l.headerForegroundSwatch)),rowHoverColor:Ml("rapid-ag-row-hover-color").withDefault((e=>c.baseLayerLuminance.getValueFor(e)===c.StandardLuminance.LightMode?Ll.rowHoverSwatch:$l.rowHoverSwatch))},jl=d.css`
|
|
10298
10270
|
.ag-theme-genesis-rapid,
|
|
10299
10271
|
.ag-theme-genesis-rapid-dark {
|
|
10300
10272
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -10754,54 +10726,54 @@
|
|
|
10754
10726
|
.ag-theme-genesis-rapid-dark {
|
|
10755
10727
|
color-scheme: dark;
|
|
10756
10728
|
}
|
|
10757
|
-
`,
|
|
10758
|
-
${
|
|
10759
|
-
${
|
|
10729
|
+
`,Il={[ri.backgroundColor]:Rl.backgroundColor,[ri.foregroundColor]:Rl.foregroundColor,[ri.oddRowBackgroundColor]:Rl.backgroundColor,[ri.headerBackgroundColor]:Rl.backgroundColor,[ri.headerForegroundColor]:Rl.headerForegroundColor,[ri.selectedRowBackgroundColor]:Rl.rowHoverColor,[ri.rowHoverColor]:Rl.rowHoverColor,[ri.borderColor]:Rl.borderColor,[ri.rowBorderColor]:Rl.rowHoverColor,[ri.modalOverlayBackgroundColor]:Rl.backgroundColor,[ri.inputFocusBoxShadow]:Rl.headerForegroundColor,[ri.inputFocusBorderColor]:Rl.headerForegroundColor,[ri.headerColumnResizeHandleColor]:Rl.headerForegroundColor},El="ag-theme-genesis-rapid",Pl=d.css`
|
|
10730
|
+
${jl}
|
|
10731
|
+
${si(El,Il)}
|
|
10760
10732
|
|
|
10761
|
-
.${
|
|
10733
|
+
.${El} {
|
|
10762
10734
|
${Te()}
|
|
10763
10735
|
}
|
|
10764
10736
|
|
|
10765
|
-
.${
|
|
10737
|
+
.${El} .ag-header {
|
|
10766
10738
|
border-bottom-color: var(--rapid-ag-header-foreground-color);
|
|
10767
10739
|
font-weight: bold;
|
|
10768
10740
|
}
|
|
10769
10741
|
|
|
10770
|
-
.${
|
|
10742
|
+
.${El} .ag-root-wrapper {
|
|
10771
10743
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
10772
10744
|
}
|
|
10773
|
-
`,
|
|
10774
|
-
${
|
|
10775
|
-
${
|
|
10745
|
+
`,Ul="ag-theme-genesis-rapid-dark",Gl=d.css`
|
|
10746
|
+
${jl}
|
|
10747
|
+
${si(Ul,Il)}
|
|
10776
10748
|
|
|
10777
|
-
.${
|
|
10749
|
+
.${Ul} {
|
|
10778
10750
|
${Te()}
|
|
10779
10751
|
}
|
|
10780
10752
|
|
|
10781
|
-
.${
|
|
10753
|
+
.${Ul} .ag-header {
|
|
10782
10754
|
border-bottom-color: var(--rapid-ag-header-foreground-color);
|
|
10783
10755
|
font-weight: bold;
|
|
10784
10756
|
}
|
|
10785
10757
|
|
|
10786
|
-
.${
|
|
10758
|
+
.${Ul} .ag-cell {
|
|
10787
10759
|
line-height: var(--ag-line-height, 32px);
|
|
10788
10760
|
}
|
|
10789
10761
|
|
|
10790
|
-
.${
|
|
10762
|
+
.${Ul} .ag-root-wrapper {
|
|
10791
10763
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
10792
10764
|
}
|
|
10793
|
-
`,
|
|
10765
|
+
`,Bl=d.css`
|
|
10794
10766
|
/* All the AG themes */
|
|
10795
|
-
${
|
|
10767
|
+
${kl}
|
|
10796
10768
|
|
|
10797
10769
|
/* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
|
|
10798
|
-
${Il}
|
|
10799
10770
|
${Pl}
|
|
10771
|
+
${Gl}
|
|
10800
10772
|
|
|
10801
10773
|
.error {
|
|
10802
10774
|
border-color: ${me.shortPink} !important;
|
|
10803
10775
|
}
|
|
10804
|
-
`,
|
|
10776
|
+
`,_l=Sl,Hl="ag-theme-genesis-rapid-dark";const Yl=Nl,Vl={zeroAgEditableRenderer:qi,zeroAgActionRenderer:tn,zeroAgActionsMenuRenderer:gn,zeroAgBooleanRenderer:hn,zeroAgTextRenderer:Cn,zeroAgSelectRenderer:Nn,zeroAgDateEditor:wi,zeroAgMultiselectEditor:Ci,zeroAgSelectEditor:Fi,zeroAgNumberEditor:Ii,zeroAgStringEditor:_i,zeroGridPro:class extends Ol{constructor(){super(...arguments),this.theme=Hl}themeChanged(e,a){(e||a===Hl)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[ci.action]:rn,[ci.actionsMenu]:ln,[ci.boolean]:un,[ci.editable]:Wi,[ci.selectEditor]:Ni,[ci.numberEditor]:ji,[ci.multiselectEditor]:Si,[ci.dateEditor]:fi,[ci.stringEditor]:Bi};(this.theme===El||this.theme===Ul)&&(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:_l,styles:Bl,shadowOptions:undefined},Yl)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},Ql={foundationGridProActionRenderer:an,foundationGridProActionsMenuRenderer:nn,foundationAgBooleanRenderer:pn,foundationAgTextRenderer:Sn,foundationAgTextFieldRenderer:yn,foundationAgEditableRenderer:Qi,foundationAgSelectRenderer:Dn,foundationGridPro:Fl,foundationSelectEditor:Di,foundationNumberEditor:Ri,foundationDateEditor:bi,foundationMultiselectEditor:ki,foundationStringEditor:Gi,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Wl,ql=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Wl||(Wl={}));const Jl={Roboto:Ae,"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'},Zl=Jl["Segoe UI"],Kl=d.css`
|
|
10805
10777
|
${(0,s.display)("block")} :host {
|
|
10806
10778
|
width: 100%;
|
|
10807
10779
|
display: inline-flex;
|
|
@@ -10933,7 +10905,7 @@
|
|
|
10933
10905
|
alpha-button {
|
|
10934
10906
|
margin: 0;
|
|
10935
10907
|
}
|
|
10936
|
-
`,
|
|
10908
|
+
`,Xl=d.html`
|
|
10937
10909
|
<template>
|
|
10938
10910
|
<div class="configuration">
|
|
10939
10911
|
${(0,d.when)((e=>!e.customDesignMode),d.html`
|
|
@@ -11141,7 +11113,7 @@
|
|
|
11141
11113
|
</div>
|
|
11142
11114
|
</div>
|
|
11143
11115
|
${(0,d.when)((e=>!e.customDesignMode),d.html`
|
|
11144
|
-
<alpha-checkbox :checked="${(0,
|
|
11116
|
+
<alpha-checkbox :checked="${(0,mn.Z)((e=>e.preserveOptions),"boolean")}">
|
|
11145
11117
|
Preserve selected options when changing design systems
|
|
11146
11118
|
</alpha-checkbox>
|
|
11147
11119
|
`)}
|
|
@@ -11156,7 +11128,7 @@
|
|
|
11156
11128
|
<slot></slot>
|
|
11157
11129
|
</div>
|
|
11158
11130
|
</template>
|
|
11159
|
-
`,
|
|
11131
|
+
`,eg=({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(Jl).find((a=>Jl[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),ag=eg(Fe),rg={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},tg=eg(i.designTokens),og={zero:{prefix:"zero",tokenDefaults:ag,buttons:rg},alpha:{prefix:"alpha",tokenDefaults:tg,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:rg}};let ig=class extends d.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=ag.luminance===c.StandardLuminance.DarkMode,this.luminance=ag.luminance,this.neutralColor=ag.neutralColor,this.accentColor=ag.accentColor,this.bodyFont=ag.bodyFont,this.density=ag.density,this.borderRadius=ag.borderRadius,this.strokeWidth=ag.strokeWidth,this.designUnit=ag.designUnit,this.baseFontSize=ag.baseFontSize,this.baseLineHeight=ag.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof s.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof c.Combobox||e.target instanceof c.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof s.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?c.StandardLuminance.DarkMode:c.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&d.DOM.queueUpdate((()=>{const e=eg(a);og.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,ql.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(og[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,ql.__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:og[this.ds].prefix,buttonAppearanceAccent:og[this.ds].buttons.accent,buttonAppearanceNeutral:og[this.ds].buttons.neutral,buttonAppearanceOutline:og[this.ds].buttons.outline};this.$emit(Wl.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(og[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Jl[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(Wl.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===c.StandardLuminance.DarkMode,d.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={},Ce(),d.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Wl.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,ql.__decorate)([(0,d.attr)({mode:"boolean",attribute:"custom-design-mode"})],ig.prototype,"customDesignMode",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"designSystems",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"ds",void 0),(0,ql.__decorate)([d.attr],ig.prototype,"darkMode",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"neutralColor",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"accentColor",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"bodyFont",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"density",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"borderRadius",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"strokeWidth",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"designUnit",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"baseFontSize",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"baseLineHeight",void 0),(0,ql.__decorate)([d.observable],ig.prototype,"preserveOptions",void 0),ig=(0,ql.__decorate)([(0,d.customElement)({name:"design-system-editor",template:Xl,styles:Kl})],ig);const ng=e=>{const a=(e=>{const a=(0,Ee.parseColorHexRGB)(e);return a?c.SwatchRGB.from(a):null})(e);return a?c.PaletteRGB.create(a):null},lg=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},gg=(e,a)=>{const r=ng(e.neutralColor);c.neutralPalette.setValueFor(a,r);const t=ng(e.accentColor);c.accentPalette.setValueFor(a,t),c.baseLayerLuminance.setValueFor(a,e.luminance),c.density.setValueFor(a,e.density),c.controlCornerRadius.setValueFor(a,e.borderRadius),c.strokeWidth.setValueFor(a,e.strokeWidth),c.designUnit.setValueFor(a,e.designUnit),c.bodyFont.setValueFor(a,e.bodyFont),c.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),c.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),c.typeRampMinus1FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.minusOne,a)),c.typeRampMinus1LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.minusOne,a)),c.typeRampMinus2FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.minusTwo,a)),c.typeRampMinus2LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.minusTwo,a)),c.typeRampPlus1FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusOne,a)),c.typeRampPlus1LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusOne,a)),c.typeRampPlus2FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusTwo,a)),c.typeRampPlus2LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusTwo,a)),c.typeRampPlus3FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusThree,a)),c.typeRampPlus3LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusThree,a)),c.typeRampPlus4FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusFour,a)),c.typeRampPlus4LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusFour,a)),c.typeRampPlus5FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusFive,a)),c.typeRampPlus5LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusFive,a)),c.typeRampPlus6FontSize.setValueFor(a,lg(c.typeRampBaseFontSize,Se.Yd.plusSix,a)),c.typeRampPlus6LineHeight.setValueFor(a,lg(c.typeRampBaseLineHeight,Se.Yd.plusSix,a))},dg=d.css`
|
|
11160
11132
|
:host {
|
|
11161
11133
|
background: var(--fill-color);
|
|
11162
11134
|
color: var(--neutral-foreground-rest);
|
|
@@ -11199,7 +11171,7 @@
|
|
|
11199
11171
|
zero-design-system-provider {
|
|
11200
11172
|
display: inline;
|
|
11201
11173
|
}
|
|
11202
|
-
`,
|
|
11174
|
+
`,sg=d.html`
|
|
11203
11175
|
${e=>{return a=e.prefix,d.html`
|
|
11204
11176
|
<template>
|
|
11205
11177
|
<${a}-design-system-provider ${(0,d.ref)("provider")}>
|
|
@@ -11400,7 +11372,7 @@
|
|
|
11400
11372
|
</${a}-design-system-provider>
|
|
11401
11373
|
</template>
|
|
11402
11374
|
`;var a}}
|
|
11403
|
-
`;let
|
|
11375
|
+
`;let cg=class extends d.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(Wl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Wl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{this.setDialogEventListeners(),c.bodyFont.withDefault(Zl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{gg(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,d.DOM.queueUpdate((()=>{this.setDialogEventListeners()}))}};(0,ql.__decorate)([d.observable],cg.prototype,"modal",void 0),(0,ql.__decorate)([d.attr],cg.prototype,"prefix",void 0),(0,ql.__decorate)([d.observable],cg.prototype,"buttonAppearanceAccent",void 0),(0,ql.__decorate)([d.observable],cg.prototype,"buttonAppearanceNeutral",void 0),(0,ql.__decorate)([d.observable],cg.prototype,"buttonAppearanceOutline",void 0),(0,ql.__decorate)([d.observable],cg.prototype,"provider",void 0),cg=(0,ql.__decorate)([(0,d.customElement)({name:"preview-components",template:sg,styles:dg})],cg);const pg=d.css`
|
|
11404
11376
|
.export {
|
|
11405
11377
|
display: flex;
|
|
11406
11378
|
justify-content: center;
|
|
@@ -11411,7 +11383,7 @@
|
|
|
11411
11383
|
display: flex;
|
|
11412
11384
|
justify-content: space-between;
|
|
11413
11385
|
}
|
|
11414
|
-
`,
|
|
11386
|
+
`,ug=d.html`
|
|
11415
11387
|
<template>
|
|
11416
11388
|
<div class="export">
|
|
11417
11389
|
<alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
|
|
@@ -11432,7 +11404,7 @@
|
|
|
11432
11404
|
</alpha-modal>
|
|
11433
11405
|
</div>
|
|
11434
11406
|
</template>
|
|
11435
|
-
`;let
|
|
11407
|
+
`;let hg=class extends d.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(Wl.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Wl.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,ql.__decorate)([d.attr],hg.prototype,"value",void 0),(0,ql.__decorate)([d.attr],hg.prototype,"tokensPath",void 0),hg=(0,ql.__decorate)([(0,d.customElement)({name:"design-system-export",template:ug,styles:pg})],hg);const mg=d.css`
|
|
11436
11408
|
.colors {
|
|
11437
11409
|
display: flex;
|
|
11438
11410
|
flex-wrap: wrap;
|
|
@@ -11445,23 +11417,23 @@
|
|
|
11445
11417
|
flex-grow: 1;
|
|
11446
11418
|
height: 20px;
|
|
11447
11419
|
}
|
|
11448
|
-
`,
|
|
11420
|
+
`,vg=d.html`
|
|
11449
11421
|
<ul class="colors">
|
|
11450
11422
|
${(0,d.repeat)((e=>e.swatches),d.html`
|
|
11451
11423
|
<li class="color" style="background-color: ${e=>e.toColorString()}"></li>
|
|
11452
11424
|
`)}
|
|
11453
11425
|
</ul>
|
|
11454
|
-
`;let
|
|
11426
|
+
`;let bg=class extends d.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){c[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{const e=ng(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Wl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,ql.__decorate)([d.observable],bg.prototype,"swatches",void 0),(0,ql.__decorate)([d.attr],bg.prototype,"type",void 0),bg=(0,ql.__decorate)([(0,d.customElement)({name:"color-palette",styles:mg,template:vg})],bg);const fg=d.css`
|
|
11455
11427
|
.preview {
|
|
11456
11428
|
width: 40px;
|
|
11457
11429
|
height: 40px;
|
|
11458
11430
|
}
|
|
11459
|
-
`,
|
|
11431
|
+
`,wg=d.html`
|
|
11460
11432
|
<div
|
|
11461
11433
|
class="preview"
|
|
11462
11434
|
style="background-color: ${e=>c[e.tokenName].createCSS()}"
|
|
11463
11435
|
></div>
|
|
11464
|
-
`;let
|
|
11436
|
+
`;let yg=class extends d.FASTElement{};(0,ql.__decorate)([d.attr],yg.prototype,"tokenName",void 0),yg=(0,ql.__decorate)([(0,d.customElement)({name:"color-token",styles:fg,template:wg})],yg);const xg=d.css`
|
|
11465
11437
|
.container {
|
|
11466
11438
|
display: flex;
|
|
11467
11439
|
width: 100%;
|
|
@@ -11509,7 +11481,7 @@
|
|
|
11509
11481
|
.container > div:not(:last-child) {
|
|
11510
11482
|
border-right: 1px solid #fafafa;
|
|
11511
11483
|
}
|
|
11512
|
-
`,
|
|
11484
|
+
`,zg=[{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"}]}]}],kg=d.html`
|
|
11513
11485
|
<div class="row">
|
|
11514
11486
|
<div
|
|
11515
11487
|
class="preview"
|
|
@@ -11521,19 +11493,19 @@
|
|
|
11521
11493
|
${(e,a)=>c[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
|
|
11522
11494
|
</div>
|
|
11523
11495
|
</div>
|
|
11524
|
-
`,
|
|
11496
|
+
`,Sg=d.html`
|
|
11525
11497
|
<div class="container" ${(0,d.ref)("provider")}>
|
|
11526
|
-
${(0,d.repeat)((()=>
|
|
11498
|
+
${(0,d.repeat)((()=>zg),d.html`
|
|
11527
11499
|
<div class="column">
|
|
11528
11500
|
<h3 class="header-title">${e=>e.title}</h3>
|
|
11529
11501
|
${(0,d.repeat)((e=>e.subcategories),d.html`
|
|
11530
11502
|
<h4>${e=>e.title}</h4>
|
|
11531
|
-
${(0,d.repeat)((e=>e.tokens),
|
|
11503
|
+
${(0,d.repeat)((e=>e.tokens),kg)}
|
|
11532
11504
|
`)}
|
|
11533
11505
|
</div>
|
|
11534
11506
|
`)}
|
|
11535
11507
|
</div>
|
|
11536
|
-
`;let
|
|
11508
|
+
`;let Cg=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Wl.STYLES_CHANGED,(e=>{const a=e.detail;gg(a,this.provider)}))}};(0,ql.__decorate)([d.observable],Cg.prototype,"provider",void 0),Cg=(0,ql.__decorate)([(0,d.customElement)({name:"color-tokens",template:Sg,styles:xg})],Cg);const Ag=d.css`
|
|
11537
11509
|
table {
|
|
11538
11510
|
background: var(--neutral-fill-rest);
|
|
11539
11511
|
color: var(--neutral-foreground-rest);
|
|
@@ -11542,7 +11514,7 @@
|
|
|
11542
11514
|
th {
|
|
11543
11515
|
text-align: left;
|
|
11544
11516
|
}
|
|
11545
|
-
`,
|
|
11517
|
+
`,Tg=d.html`
|
|
11546
11518
|
<table ${(0,d.ref)("provider")} style="font-family: ${()=>c.bodyFont.createCSS()}">
|
|
11547
11519
|
<colgroup>
|
|
11548
11520
|
<col style="width: 15%;" />
|
|
@@ -11770,7 +11742,7 @@
|
|
|
11770
11742
|
</tr>
|
|
11771
11743
|
</tbody>
|
|
11772
11744
|
</table>
|
|
11773
|
-
`;let
|
|
11745
|
+
`;let Og=class extends d.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Wl.STYLES_CHANGED,(e=>{const a=e.detail;gg(a,this.provider)}))}};(0,ql.__decorate)([d.observable],Og.prototype,"provider",void 0),Og=(0,ql.__decorate)([(0,d.customElement)({name:"typography-tokens",template:Tg,styles:Ag})],Og);const Dg=d.css`
|
|
11774
11746
|
:host {
|
|
11775
11747
|
background: var(--fill-color);
|
|
11776
11748
|
color: var(--neutral-foreground-rest);
|
|
@@ -11786,7 +11758,7 @@
|
|
|
11786
11758
|
margin-top: 24px;
|
|
11787
11759
|
padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
|
|
11788
11760
|
}
|
|
11789
|
-
`,
|
|
11761
|
+
`,Ng=d.html`
|
|
11790
11762
|
<template>
|
|
11791
11763
|
<alpha-tabs>
|
|
11792
11764
|
<alpha-tab slot="tab">Components</alpha-tab>
|
|
@@ -11815,7 +11787,7 @@
|
|
|
11815
11787
|
</alpha-tab-panel>
|
|
11816
11788
|
</alpha-tabs>
|
|
11817
11789
|
</template>
|
|
11818
|
-
`;let
|
|
11790
|
+
`;let Fg=class extends d.FASTElement{};Fg=(0,ql.__decorate)([(0,d.customElement)({name:"design-system-preview",template:Ng,styles:Dg})],Fg);const $g={type:"VerticalLayout",elements:[{type:"Group",label:"Group 1",scope:"#/properties/group1",options:{childElements:[{type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/group1/properties/NAME",label:"Name"}]}]}},{type:"Group",label:"Group 2",scope:"#/properties/group2",options:{childElements:[{type:"LayoutVertical2Columns",elements:[{type:"Control",scope:"#/properties/group2/properties/QUANTITY",label:"Quantity"},{type:"Control",scope:"#/properties/group2/properties/PRICE",label:"Price"},{type:"Control",scope:"#/properties/group2/properties/COUNTERPARTY_ID",options:{data:[{name:"Genesis Global",value:"GENESIS"},{name:"Acme Global",value:"ACME"}],valueField:"value",labelField:"name"},label:"Counterparty"},{type:"Control",scope:"#/properties/group2/properties/INSTRUMENT_ID",options:{data:[{name:"Bond",value:"BOND"},{name:"Equity",value:"EQUITY"}],valueField:"value",labelField:"name"},label:"Instrument"},{type:"Control",scope:"#/properties/group2/properties/SIDE",label:"Side"},{type:"Control",scope:"#/properties/group2/properties/TRADE_DATE",label:"Trade Date"},{type:"Control",scope:"#/properties/group2/properties/ACTIVE",label:"Active"}]}]}}]},Lg={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"]}}},Mg={type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/users",options:{childUiSchema:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/firstname",label:"First Name"},{type:"Control",scope:"#/properties/lastname",label:"Last Name"},{type:"Control",scope:"#/properties/email",label:"Email"}]}}}]},Rg={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"]}}}},jg=d.css`
|
|
11819
11791
|
:host {
|
|
11820
11792
|
background: var(--fill-color);
|
|
11821
11793
|
color: var(--neutral-foreground-rest);
|
|
@@ -11846,7 +11818,7 @@
|
|
|
11846
11818
|
zero-design-system-provider {
|
|
11847
11819
|
display: inline;
|
|
11848
11820
|
}
|
|
11849
|
-
`,
|
|
11821
|
+
`,Ig=d.html`
|
|
11850
11822
|
${e=>{return a=e.prefix,d.html`
|
|
11851
11823
|
<template>
|
|
11852
11824
|
<${a}-design-system-provider ${(0,d.ref)("provider")}>
|
|
@@ -11870,7 +11842,7 @@
|
|
|
11870
11842
|
</${a}-design-system-provider>
|
|
11871
11843
|
</template>
|
|
11872
11844
|
`;var a}}
|
|
11873
|
-
`;let
|
|
11845
|
+
`;let Eg=class extends d.FASTElement{constructor(){super(...arguments),this.jsonSchema=Lg,this.uischema=$g,this.jsonSchemaArray=Rg,this.uiSchemaArray=Mg,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(Wl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Wl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{c.bodyFont.withDefault(Zl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{gg(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix}};(0,ql.__decorate)([d.observable],Eg.prototype,"jsonSchema",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"uischema",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"jsonSchemaArray",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"uiSchemaArray",void 0),(0,ql.__decorate)([d.attr],Eg.prototype,"prefix",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"provider",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"editedEntity",void 0),(0,ql.__decorate)([d.observable],Eg.prototype,"editedEntityArray",void 0),Eg=(0,ql.__decorate)([(0,d.customElement)({name:"preview-form",template:Ig,styles:jg})],Eg);const Pg=d.css`
|
|
11874
11846
|
:host {
|
|
11875
11847
|
background: var(--fill-color);
|
|
11876
11848
|
color: var(--neutral-foreground-rest);
|
|
@@ -11885,7 +11857,7 @@
|
|
|
11885
11857
|
.grid-height {
|
|
11886
11858
|
height: 450px;
|
|
11887
11859
|
}
|
|
11888
|
-
`,
|
|
11860
|
+
`,Ug=d.html`
|
|
11889
11861
|
${e=>{return a=e.prefix,d.html`
|
|
11890
11862
|
<template>
|
|
11891
11863
|
<${a}-design-system-provider ${(0,d.ref)("provider")}>
|
|
@@ -11895,5 +11867,5 @@
|
|
|
11895
11867
|
</${a}-design-system-provider>
|
|
11896
11868
|
</template>
|
|
11897
11869
|
`;var a}}
|
|
11898
|
-
`;let
|
|
11899
|
-
//# sourceMappingURL=180.
|
|
11870
|
+
`;let Gg=class extends d.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(Wl.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Wl.DS_CHANGED,(e=>{this.handleDSChanges(e)})),d.DOM.queueUpdate((()=>{this.setGridOptions(),c.bodyFont.withDefault(Zl)}))}handleStyleChanges(e){const a=e.detail;a&&d.DOM.queueUpdate((()=>{gg(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,d.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,ql.__decorate)([d.observable],Gg.prototype,"grid",void 0),(0,ql.__decorate)([d.attr],Gg.prototype,"prefix",void 0),(0,ql.__decorate)([d.observable],Gg.prototype,"provider",void 0),(0,ql.__decorate)([d.observable],Gg.prototype,"rowData",void 0),(0,ql.__decorate)([d.observable],Gg.prototype,"columnDefs",void 0),(0,ql.__decorate)([d.observable],Gg.prototype,"gridOptions",void 0),Gg=(0,ql.__decorate)([(0,d.customElement)({name:"preview-grid",template:Ug,styles:Pg})],Gg),((e,a="zero")=>{e&&(0,I.provideTokens)(t,o,e);const r=s.DesignSystem.getOrCreate(e).withPrefix(a);return(0,I.createDesignSystemProxy)(r)})().register(ai,Vl),(0,i.provideDesignSystem)().register(i.baseComponents,Ql)}}]);
|
|
11871
|
+
//# sourceMappingURL=180.6e08e931a0d24058e36a897e7fe291bc.js.map
|