@genesislcap/design-system-configurator 14.94.0 → 14.94.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{361.361.0de4f2fc0f9e092b51f9.js → 361.361.1de8339bd0673dfc2231.js} +1 -1
- package/dist/{371.371.fd00805f562186f1f316.js → 371.371.17ab637e481fbced9a3f.js} +1 -1
- package/dist/{688.688.921a40aacbaaaebde4b2.js → 688.688.4324f9e4bb0bec4a43cd.js} +2 -2
- package/dist/{688.a973cf9ccfd3c1cdcf9bdad47afd0479.js.map → 688.cd3cd649fbb2b22ee982d264ddc54f25.js.map} +1 -1
- package/dist/{701.701.a1bdad1dbee946b5aedc.js → 701.701.bf0c8fb58a1c7251b735.js} +117 -116
- package/dist/701.7d7de264f3cdb3c7b555b972c519bf8e.js.map +1 -0
- package/dist/721.594f4eed2e06393edd7842628c7b7be6.js.map +1 -0
- package/dist/{721.721.252a4154818b9fc98dbf.js → 721.721.da562a5a89607429125e.js} +115 -142
- package/dist/{755.755.db8b7c105509cba9e26b.js → 755.755.602c10ea84ab9228ffe0.js} +1 -1
- package/dist/{designSystemConfigurator.569bac42777ce9f1fa38e9b2bfa1258b.js.map → designSystemConfigurator.1d185382f342f1b81b36fd41bc7a04c2.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.fb007c65888d6ee8ff2c.js → main.5559ce1cd68737bc5082.js} +2 -2
- package/dist/{main.3d661ef17640cabe5567e8ccde376edd.js.map → main.f5b52ad13a34a0354726d1aa1213bc6b.js.map} +1 -1
- package/dist/remoteEntry.js +2 -2
- package/package.json +7 -7
- package/dist/701.9d6e15bf1ecd199d5629b7ae84336eb6.js.map +0 -1
- package/dist/721.f2ca8c93ce4af1e43d44ea2c088f1541.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[721],{41721:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[721],{41721:(e,a,r)=>{r.r(a),r.d(a,{ColorPalette:()=>ul,ColorToken:()=>vl,ColorTokens:()=>xl,DesignSystemEditor:()=>al,DesignSystemExport:()=>sl,DesignSystemPreview:()=>Tl,EventName:()=>Hn,PreviewComponents:()=>ll,PreviewForm:()=>Rl,PreviewGrid:()=>Il,TypographyTokens:()=>Sl,defaultBodyFont:()=>Qn,fontFamilies:()=>Vn});var t={};r.r(t),r.d(t,{accentFillActive:()=>p.accentFillActive,accentFillActiveDelta:()=>p.accentFillActiveDelta,accentFillFocus:()=>p.accentFillFocus,accentFillFocusDelta:()=>p.accentFillFocusDelta,accentFillHover:()=>p.accentFillHover,accentFillHoverDelta:()=>p.accentFillHoverDelta,accentFillRest:()=>p.accentFillRest,accentFillRestDelta:()=>p.accentFillRestDelta,accentForegroundActive:()=>p.accentForegroundActive,accentForegroundActiveDelta:()=>p.accentForegroundActiveDelta,accentForegroundFocus:()=>p.accentForegroundFocus,accentForegroundFocusDelta:()=>p.accentForegroundFocusDelta,accentForegroundHover:()=>p.accentForegroundHover,accentForegroundHoverDelta:()=>p.accentForegroundHoverDelta,accentForegroundRest:()=>p.accentForegroundRest,accentForegroundRestDelta:()=>p.accentForegroundRestDelta,accentPalette:()=>p.accentPalette,baseHeightMultiplier:()=>p.baseHeightMultiplier,baseLayerLuminance:()=>p.baseLayerLuminance,bodyFont:()=>p.bodyFont,controlCornerRadius:()=>p.controlCornerRadius,density:()=>p.density,designUnit:()=>p.designUnit,direction:()=>p.direction,disabledOpacity:()=>p.disabledOpacity,fillColor:()=>p.fillColor,focusStrokeInner:()=>p.focusStrokeInner,focusStrokeOuter:()=>p.focusStrokeOuter,focusStrokeWidth:()=>p.focusStrokeWidth,foregroundOnAccentActive:()=>p.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>p.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>p.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>p.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>p.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>p.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>p.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>p.foregroundOnAccentRestLarge,neutralFillActive:()=>p.neutralFillActive,neutralFillActiveDelta:()=>p.neutralFillActiveDelta,neutralFillFocus:()=>p.neutralFillFocus,neutralFillFocusDelta:()=>p.neutralFillFocusDelta,neutralFillHover:()=>p.neutralFillHover,neutralFillHoverDelta:()=>p.neutralFillHoverDelta,neutralFillInputActive:()=>p.neutralFillInputActive,neutralFillInputActiveDelta:()=>p.neutralFillInputActiveDelta,neutralFillInputFocus:()=>p.neutralFillInputFocus,neutralFillInputFocusDelta:()=>p.neutralFillInputFocusDelta,neutralFillInputHover:()=>p.neutralFillInputHover,neutralFillInputHoverDelta:()=>p.neutralFillInputHoverDelta,neutralFillInputRest:()=>p.neutralFillInputRest,neutralFillInputRestDelta:()=>p.neutralFillInputRestDelta,neutralFillLayerRest:()=>p.neutralFillLayerRest,neutralFillLayerRestDelta:()=>p.neutralFillLayerRestDelta,neutralFillRest:()=>p.neutralFillRest,neutralFillRestDelta:()=>p.neutralFillRestDelta,neutralFillStealthActive:()=>p.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>p.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>p.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>p.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>p.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>p.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>p.neutralFillStealthRest,neutralFillStealthRestDelta:()=>p.neutralFillStealthRestDelta,neutralFillStrongActive:()=>p.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>p.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>p.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>p.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>p.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>p.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>p.neutralFillStrongRest,neutralFillStrongRestDelta:()=>p.neutralFillStrongRestDelta,neutralForegroundHint:()=>p.neutralForegroundHint,neutralForegroundRest:()=>p.neutralForegroundRest,neutralLayer1:()=>p.neutralLayer1,neutralLayer2:()=>p.neutralLayer2,neutralLayer3:()=>p.neutralLayer3,neutralLayer4:()=>p.neutralLayer4,neutralLayerCardContainer:()=>p.neutralLayerCardContainer,neutralLayerFloating:()=>p.neutralLayerFloating,neutralPalette:()=>p.neutralPalette,neutralStrokeActive:()=>p.neutralStrokeActive,neutralStrokeActiveDelta:()=>p.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>p.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>p.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>p.neutralStrokeFocus,neutralStrokeFocusDelta:()=>p.neutralStrokeFocusDelta,neutralStrokeHover:()=>p.neutralStrokeHover,neutralStrokeHoverDelta:()=>p.neutralStrokeHoverDelta,neutralStrokeRest:()=>p.neutralStrokeRest,neutralStrokeRestDelta:()=>p.neutralStrokeRestDelta,strokeWidth:()=>p.strokeWidth,typeRampBaseFontSize:()=>p.typeRampBaseFontSize,typeRampBaseLineHeight:()=>p.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>p.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>p.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>p.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>p.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>p.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>p.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>p.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>p.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>p.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>p.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>p.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>p.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>p.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>p.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>p.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>p.typeRampPlus6LineHeight});var o={};r.r(o),r.d(o,{accentPaletteValue:()=>se,baseLayerLuminanceValue:()=>pe,bodyFontValue:()=>ze,controlCornerRadiusValue:()=>me,densityValue:()=>ve,designTokens:()=>Ce,designUnitValue:()=>be,directionValue:()=>ue,neutralPaletteValue:()=>ce,strokeWidthValue:()=>he,typeRampBaseFontSizeValue:()=>ke,typeRampBaseLineHeightValue:()=>Se});var i=r(79743),n=r(92592),l=r(89074),g=r(89753),d=r(60724),s=r(83147),c=r(75951),p=r(13896),u=r(67973);const h=s.css`
|
|
2
2
|
:host {
|
|
3
3
|
border: calc(${p.strokeWidth} * 1px) solid transparent;
|
|
4
4
|
margin: 0;
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
</control-wrapper>
|
|
231
231
|
</template>
|
|
232
232
|
`)(e.prefix)}
|
|
233
|
-
`,tester:(0,d.yMz)(3,M),mapper:d.xq9};var R=r(
|
|
233
|
+
`,tester:(0,d.yMz)(3,M),mapper:d.xq9};var R=r(70242);const $=e=>a=>{if(!a||!(0,d.DRl)(a))return!1;const r=a.options;return!(!r||!r[e])},j=(0,d.xDy)($("allOptionsResourceName"),(0,d.or)((0,d.wcO)((e=>(0,d.ndu)(e,"array"))),(0,d.wcO)((e=>e.hasOwnProperty("oneOf")&&e.oneOf.some((e=>(0,d.ndu)(e,"array")))))));R.MultiselectDatasource;const I={renderer:s.html`
|
|
234
234
|
${e=>((e="zero")=>s.html`
|
|
235
235
|
<template>
|
|
236
236
|
<control-wrapper
|
|
@@ -1001,36 +1001,9 @@
|
|
|
1001
1001
|
${(0,R.getPrefixedFileUpload)("zero")}
|
|
1002
1002
|
`,Nr=R.defaultFileUploadConfig,Rr=R.foundationFileUploadShadowOptions;class $r extends R.FileUpload{}const jr=$r.compose(Object.assign({baseName:"file-upload",shadowOptions:Rr,styles:Lr,template:Mr},Nr)),Ir=s.html`
|
|
1003
1003
|
${(0,R.getPrefixedFilterTemplate)("zero")}
|
|
1004
|
-
`;class Er extends R.Filter{}const Pr=Er.compose({baseName:"filter",template:Ir,styles:R.foundationFilterStyles})
|
|
1005
|
-
${(0,
|
|
1006
|
-
|
|
1007
|
-
`)}
|
|
1008
|
-
${(0,s.when)((e=>!e.collapsed),s.html`
|
|
1009
|
-
<zero-icon name="chevron-up"></zero-icon>
|
|
1010
|
-
`)}
|
|
1011
|
-
`,Gr=s.html`
|
|
1012
|
-
<div
|
|
1013
|
-
class=${e=>(0,Ur.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1014
|
-
@click="${e=>e.toggle()}"
|
|
1015
|
-
>
|
|
1016
|
-
${Br}
|
|
1017
|
-
</div>
|
|
1018
|
-
<div class=${e=>(0,Ur.A)(["filter-bar",!0],["collapsed",e.collapsed])}>
|
|
1019
|
-
<div class="filter-grid" ${(0,s.ref)("filterGrid")}>
|
|
1020
|
-
${(0,s.repeat)((e=>e.fields),s.html`
|
|
1021
|
-
<zero-filter
|
|
1022
|
-
label="${e=>e.UI_LABEL}"
|
|
1023
|
-
target="${(e,a)=>{var r;return null===(r=a.parent)||void 0===r?void 0:r.target}}"
|
|
1024
|
-
type="${e=>(0,R.mapType)(e.TYPE)}"
|
|
1025
|
-
fieldName="${e=>e.NAME}"
|
|
1026
|
-
enumOptions="${e=>e.VALID_VALUES}"
|
|
1027
|
-
/>
|
|
1028
|
-
`)}
|
|
1029
|
-
</div>
|
|
1030
|
-
</div>
|
|
1031
|
-
`,_r=s.html`
|
|
1032
|
-
${Gr}
|
|
1033
|
-
`;class Hr extends R.FilterBar{constructor(){super(...arguments),this.ready=super.ready,this.collapsed=!0}}(0,tr.__decorate)([s.attr],Hr.prototype,"resource",void 0),(0,tr.__decorate)([s.attr],Hr.prototype,"only",void 0),(0,tr.__decorate)([s.attr],Hr.prototype,"labels",void 0),(0,tr.__decorate)([s.attr],Hr.prototype,"target",void 0),(0,tr.__decorate)([s.observable],Hr.prototype,"ready",void 0),(0,tr.__decorate)([s.observable],Hr.prototype,"fields",void 0),(0,tr.__decorate)([s.observable],Hr.prototype,"collapsed",void 0);const Yr=Hr.compose({baseName:"filter-bar",template:_r,styles:(e,a)=>s.css`
|
|
1004
|
+
`;class Er extends R.Filter{}const Pr=Er.compose({baseName:"filter",template:Ir,styles:R.foundationFilterStyles}),Ur=s.html`
|
|
1005
|
+
${(0,R.filterBarTemplate)("zero")}
|
|
1006
|
+
`;class Br extends R.FilterBar{}const Gr=Br.compose({baseName:"filter-bar",template:Ur,styles:(e,a)=>s.css`
|
|
1034
1007
|
${(0,R.foundationFilterBarStyles)(e,a)}
|
|
1035
1008
|
.toggle,
|
|
1036
1009
|
.toggle-collapsed {
|
|
@@ -1042,7 +1015,7 @@
|
|
|
1042
1015
|
.toggle-collapsed:hover {
|
|
1043
1016
|
color: var(--ag-alpine-active-color, #2196f3);
|
|
1044
1017
|
}
|
|
1045
|
-
`});class
|
|
1018
|
+
`});class _r extends R.FlexLayout{}const Hr=_r.compose(Object.assign({baseName:"flex-layout",shadowOptions:R.foundationFlexLayoutShadowOptions,styles:R.foundationFlexLayoutStyles,template:R.foundationFlexLayoutTemplate},R.defaultFlexLayoutConfig));class Yr extends R.Flipper{}const Vr=Yr.compose(Object.assign({baseName:"flipper",template:(e,a)=>(0,R.foundationFlipperTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1046
1019
|
${(0,R.foundationFlipperStyles)(e,a)}
|
|
1047
1020
|
:host {
|
|
1048
1021
|
--foreground-on-accent-rest: ${ie.white};
|
|
@@ -1066,7 +1039,7 @@
|
|
|
1066
1039
|
${ne.purple}
|
|
1067
1040
|
);
|
|
1068
1041
|
}
|
|
1069
|
-
`,shadowOptions:R.foundationFlipperShadowOptions},R.defaultFlipperConfig)),
|
|
1042
|
+
`,shadowOptions:R.foundationFlipperShadowOptions},R.defaultFlipperConfig)),Qr=s.css`
|
|
1070
1043
|
${R.foundationFlyoutStyles}
|
|
1071
1044
|
div.flyout {
|
|
1072
1045
|
background-color: ${p.neutralLayer2};
|
|
@@ -1093,19 +1066,19 @@
|
|
|
1093
1066
|
background-color: ${p.neutralFillHover};
|
|
1094
1067
|
border-radius: 3px;
|
|
1095
1068
|
}
|
|
1096
|
-
`,
|
|
1069
|
+
`,Wr=s.html`
|
|
1097
1070
|
${(0,R.getPrefixedFlyout)("zero")}
|
|
1098
|
-
`,
|
|
1071
|
+
`,qr=R.defaultFlyoutConfig,Jr=R.foundationFlyoutShadowOptions;class Zr extends R.Flyout{}const Kr=Zr.compose(Object.assign({baseName:"flyout",shadowOptions:Jr,styles:Qr,template:Wr},qr));class Xr extends R.GridLayout{}const et=Xr.compose(Object.assign({baseName:"grid-layout",shadowOptions:R.foundationGridLayoutShadowOptions,styles:R.foundationGridLayoutStyles,template:R.foundationGridLayoutTemplate},R.defaultGridLayoutConfig));class at extends R.GridLayoutItem{}const rt=at.compose(Object.assign({baseName:"grid-layout-item",shadowOptions:R.foundationGridLayoutItemShadowOptions,template:R.foundationGridLayoutItemTemplate},R.defaultGridLayoutItemConfig));class tt extends R.HorizontalScroll{}const ot=tt.compose(Object.assign({baseName:"horizontal-scroll",template:(e,a)=>(0,R.foundationHorizontalScrollTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1099
1072
|
${(0,R.foundationHorizontalScrollStyles)(e,a)}
|
|
1100
|
-
`,shadowOptions:R.foundationHorizontalScrollShadowOptions},R.defaultHorizontalScrollConfig));class
|
|
1073
|
+
`,shadowOptions:R.foundationHorizontalScrollShadowOptions},R.defaultHorizontalScrollConfig));class it extends R.Icon{}const nt=R.defaultIconConfig,lt=R.foundationIconShadowOptions,gt=it.compose(Object.assign({baseName:"icon",template:R.foundationIconTemplate,styles:(e,a)=>s.css`
|
|
1101
1074
|
${(0,R.foundationIconStyles)(e,a)}
|
|
1102
|
-
`,shadowOptions:
|
|
1075
|
+
`,shadowOptions:lt},nt));class dt extends R.Listbox{}const st=dt.compose(Object.assign({baseName:"listbox",template:(e,a)=>(0,R.foundationListboxTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1103
1076
|
${(0,R.foundationListboxStyles)(e,a)}
|
|
1104
1077
|
|
|
1105
1078
|
:host {
|
|
1106
1079
|
background: #1f2126;
|
|
1107
1080
|
}
|
|
1108
|
-
`,shadowOptions:R.foundationListboxShadowOptions},R.defaultListboxConfig));class
|
|
1081
|
+
`,shadowOptions:R.foundationListboxShadowOptions},R.defaultListboxConfig));class ct extends R.ListboxOption{}const pt=ct.compose(Object.assign({baseName:"option",template:(e,a)=>(0,R.foundationListboxOptionTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1109
1082
|
${(0,R.foundationListboxOptionStyles)(e,a)}
|
|
1110
1083
|
:host {
|
|
1111
1084
|
background-color: ${ie.darkGrey};
|
|
@@ -1122,22 +1095,22 @@
|
|
|
1122
1095
|
background-color: ${ie.darkerGrey};
|
|
1123
1096
|
color: ${ne.blue};
|
|
1124
1097
|
}
|
|
1125
|
-
`,shadowOptions:R.foundationListboxOptionShadowOptions},R.defaultListboxOptionConfig)),
|
|
1098
|
+
`,shadowOptions:R.foundationListboxOptionShadowOptions},R.defaultListboxOptionConfig)),ut=R.foundationMenuShadowOptions;class ht extends R.Menu{}const mt=ht.compose({baseName:"menu",template:R.foundationMenuTemplate,styles:(e,a)=>s.css`
|
|
1126
1099
|
${(0,R.foundationMenuStyles)(e,a)}
|
|
1127
1100
|
|
|
1128
1101
|
:host {
|
|
1129
1102
|
padding: 0;
|
|
1130
1103
|
}
|
|
1131
|
-
`,shadowOptions:
|
|
1104
|
+
`,shadowOptions:ut}),vt=R.foundationMenuItemShadowOptions;class bt extends R.MenuItem{}const ft=bt.compose(Object.assign({baseName:"menu-item",template:R.foundationMenuItemTemplate,styles:(e,a)=>s.css`
|
|
1132
1105
|
${(0,R.foundationMenuItemStyles)(e,a)}
|
|
1133
1106
|
|
|
1134
1107
|
:host {
|
|
1135
1108
|
background: none;
|
|
1136
1109
|
margin: 0;
|
|
1137
1110
|
}
|
|
1138
|
-
`,shadowOptions:
|
|
1111
|
+
`,shadowOptions:vt},R.defaultMenuItemConfig)),wt=s.css`
|
|
1139
1112
|
${cr}
|
|
1140
|
-
`,
|
|
1113
|
+
`,yt=R.defaultModalConfig,xt=R.foundationModalTemplate,zt=R.foundationModalShadowOptions;class kt extends R.Modal{}const St=kt.compose(Object.assign({baseName:"modal",shadowOptions:zt,styles:wt,template:xt},yt)),Ct=s.css`
|
|
1141
1114
|
${R.multiselectStyles}
|
|
1142
1115
|
|
|
1143
1116
|
:host {
|
|
@@ -1193,9 +1166,9 @@
|
|
|
1193
1166
|
.label {
|
|
1194
1167
|
color: ${Ua};
|
|
1195
1168
|
}
|
|
1196
|
-
`,
|
|
1169
|
+
`,At=s.html`
|
|
1197
1170
|
${(0,R.getPrefixedMultiselect)("zero")}
|
|
1198
|
-
`;class
|
|
1171
|
+
`;class Tt extends R.Multiselect{}const Dt=R.defaultMultiselectConfig,Ot=R.foundationMultiselectShadowOptions,Ft=Tt.compose(Object.assign({baseName:"multiselect",template:At,styles:Ct,shadowOptions:Ot},Dt));class Lt extends R.NotificationListener{}const Mt=Lt.compose({baseName:"notification-listener",template:R.foundationNotificationListenerTemplate,shadowOptions:{mode:"open",delegatesFocus:!0}}),Nt=(e,a)=>s.css`
|
|
1199
1172
|
${(0,R.foundationTextFieldStyles)(e,a)}
|
|
1200
1173
|
:host {
|
|
1201
1174
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1243,12 +1216,12 @@
|
|
|
1243
1216
|
color: ${Ua};
|
|
1244
1217
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
1245
1218
|
}
|
|
1246
|
-
`;class
|
|
1219
|
+
`;class Rt extends R.NumberField{}const $t=R.defaultNumberFieldConfig,jt=R.foundationNumberFieldTemplate,It=R.foundationNumberFieldShadowOptions,Et=Rt.compose(Object.assign({baseName:"number-field",template:jt,styles:(e,a)=>s.css`
|
|
1247
1220
|
:host .root {
|
|
1248
1221
|
--focus-stroke-outer: transparent;
|
|
1249
1222
|
}
|
|
1250
|
-
${
|
|
1251
|
-
`,shadowOptions:
|
|
1223
|
+
${Nt(e,a)}
|
|
1224
|
+
`,shadowOptions:It},$t));class Pt extends R.Progress{}const Ut=Pt.compose(Object.assign({baseName:"progress",template:(e,a)=>(0,R.foundationProgressTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1252
1225
|
${(0,R.foundationProgressStyles)(e,a)}
|
|
1253
1226
|
:host([appearance="secondary-teal"]) {
|
|
1254
1227
|
--accent-foreground-rest: ${le.teal};
|
|
@@ -1257,7 +1230,7 @@
|
|
|
1257
1230
|
:host([appearance='secondary-orange']) {
|
|
1258
1231
|
--accent-foreground-rest: ${le.orange};
|
|
1259
1232
|
}
|
|
1260
|
-
`,shadowOptions:R.foundationProgressShadowOptions},R.defaultProgressConfig));class
|
|
1233
|
+
`,shadowOptions:R.foundationProgressShadowOptions},R.defaultProgressConfig));class Bt extends R.ProgressRing{}const Gt={indeterminateIndicator:`\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <defs>\n <linearGradient id="linear">\n <stop offset="0%" stop-color="${ne.purple}"/>\n <stop offset="100%" stop-color="${ne.blue}"/>\n </linearGradient>\n </defs>\n <circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>\n <circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>\n </svg>\n `},_t=Bt.compose(Object.assign({baseName:"progress-ring",template:(e,a)=>s.html`
|
|
1261
1234
|
<template
|
|
1262
1235
|
role="progressbar"
|
|
1263
1236
|
aria-valuenow="${e=>e.value}"
|
|
@@ -1295,7 +1268,7 @@
|
|
|
1295
1268
|
.indeterminate-indicator-1, .determinate {
|
|
1296
1269
|
stroke: ${"url(#linear)"};
|
|
1297
1270
|
}
|
|
1298
|
-
`,shadowOptions:R.foundationProgressRingShadowOptions},
|
|
1271
|
+
`,shadowOptions:R.foundationProgressRingShadowOptions},Gt));class Ht extends R.Radio{}const Yt=Ht.compose(Object.assign({baseName:"radio",template:(e,a)=>(0,R.foundationRadioTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1299
1272
|
${(0,R.foundationRadioStyles)(e,a)}
|
|
1300
1273
|
:host {
|
|
1301
1274
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1327,12 +1300,12 @@
|
|
|
1327
1300
|
${ne.purple}
|
|
1328
1301
|
);
|
|
1329
1302
|
}
|
|
1330
|
-
`,shadowOptions:R.foundationRadioShadowOptions},R.defaultRadioConfig));class
|
|
1303
|
+
`,shadowOptions:R.foundationRadioShadowOptions},R.defaultRadioConfig));class Vt extends R.RadioGroup{}const Qt=Vt.compose(Object.assign({baseName:"radio-group",template:(e,a)=>(0,R.foundationRadioGroupTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1331
1304
|
${(0,R.foundationRadioGroupStyles)(e,a)}
|
|
1332
1305
|
:host([appearance="accent"]) {
|
|
1333
1306
|
background: green;
|
|
1334
1307
|
}
|
|
1335
|
-
`,shadowOptions:R.foundationRadioGroupShadowOptions},R.defaultRadioGroupConfig));class
|
|
1308
|
+
`,shadowOptions:R.foundationRadioGroupShadowOptions},R.defaultRadioGroupConfig));class Wt extends R.SegmentedControl{}const qt=Wt.compose(Object.assign({baseName:"segmented-control",template:(e,a)=>(0,R.foundationSegmentedControlTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1336
1309
|
${(0,R.foundationSegmentedControlStyles)(e,a)}
|
|
1337
1310
|
:host {
|
|
1338
1311
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1371,7 +1344,7 @@
|
|
|
1371
1344
|
border-color: transparent;
|
|
1372
1345
|
box-shadow: 2px 1000px 1px rgb(0 0 0 / 50%) inset;
|
|
1373
1346
|
}
|
|
1374
|
-
`,shadowOptions:undefined},{}));class
|
|
1347
|
+
`,shadowOptions:undefined},{}));class Jt extends R.Radio{}const Zt=Jt.compose(Object.assign({baseName:"segmented-item",template:(e,a)=>(0,R.foundationSegmentedItemTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1375
1348
|
${(0,R.foundationSegmentedItemStyles)(e,a)}
|
|
1376
1349
|
:host {
|
|
1377
1350
|
color: var(--neutral-stroke-rest);
|
|
@@ -1381,7 +1354,7 @@
|
|
|
1381
1354
|
:host([aria-checked='true']) {
|
|
1382
1355
|
color: ${ie.white};
|
|
1383
1356
|
}
|
|
1384
|
-
`,shadowOptions:undefined},{}));class
|
|
1357
|
+
`,shadowOptions:undefined},{}));class Kt extends R.Select{}const Xt=Kt.compose(Object.assign({baseName:"select",template:(e,a)=>(0,R.foundationSelectTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1385
1358
|
${(0,R.foundationSelectStyles)(e,a)}
|
|
1386
1359
|
:host {
|
|
1387
1360
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1431,9 +1404,9 @@
|
|
|
1431
1404
|
:host(:not([disabled])) .control:active {
|
|
1432
1405
|
background: none;
|
|
1433
1406
|
}
|
|
1434
|
-
`,shadowOptions:R.foundationSelectShadowOptions},R.defaultSelectConfig));class
|
|
1407
|
+
`,shadowOptions:R.foundationSelectShadowOptions},R.defaultSelectConfig));class eo extends R.Skeleton{}const ao=eo.compose(Object.assign({baseName:"skeleton",template:(e,a)=>(0,R.foundationSkeletonTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1435
1408
|
${(0,R.foundationSkeletonStyles)(e,a)}
|
|
1436
|
-
`,shadowOptions:R.foundationSkeletonShadowOptions},R.defaultSkeletonConfig));class
|
|
1409
|
+
`,shadowOptions:R.foundationSkeletonShadowOptions},R.defaultSkeletonConfig));class ro extends R.Slider{}const to=ro.compose(Object.assign({baseName:"slider",template:(e,a)=>(0,R.foundationSliderTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1437
1410
|
${(0,R.foundationSliderStyles)(e,a)}
|
|
1438
1411
|
:host {
|
|
1439
1412
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1490,7 +1463,7 @@
|
|
|
1490
1463
|
.track-progress {
|
|
1491
1464
|
background-color: var(--neutral-stroke-rest);
|
|
1492
1465
|
}
|
|
1493
|
-
`,shadowOptions:R.foundationSliderShadowOptions},R.defaultSliderConfig));class
|
|
1466
|
+
`,shadowOptions:R.foundationSliderShadowOptions},R.defaultSliderConfig));class oo extends R.SliderLabel{}const io=oo.compose(Object.assign({baseName:"slider-label",template:(e,a)=>(0,R.foundationSliderLabelTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1494
1467
|
${(0,R.foundationSliderLabelStyles)(e,a)}
|
|
1495
1468
|
.label {
|
|
1496
1469
|
padding: 6px 8px;
|
|
@@ -1501,7 +1474,7 @@
|
|
|
1501
1474
|
text-align: center;
|
|
1502
1475
|
font-size: var(--type-ramp-minus-1-font-size, 12px);
|
|
1503
1476
|
}
|
|
1504
|
-
`,shadowOptions:R.foundationSliderLabelShadowOptions},R.defaultSliderLabelConfig)),
|
|
1477
|
+
`,shadowOptions:R.foundationSliderLabelShadowOptions},R.defaultSliderLabelConfig)),no=s.css`
|
|
1505
1478
|
${R.foundationSnackbarStyles}
|
|
1506
1479
|
.snackbar {
|
|
1507
1480
|
border: calc(var(--stroke-width) * 1px) solid ${p.neutralLayer2};
|
|
@@ -1511,9 +1484,9 @@
|
|
|
1511
1484
|
:host([type='error']) .snackbar::after {
|
|
1512
1485
|
background-color: ${Je(1)};
|
|
1513
1486
|
}
|
|
1514
|
-
`,
|
|
1487
|
+
`,lo=s.html`
|
|
1515
1488
|
${(0,R.getPrefixedSnackbar)("zero")}
|
|
1516
|
-
`,
|
|
1489
|
+
`,go=R.foundationSnackbarShadowOptions;class so extends R.Snackbar{}const co=so.compose({baseName:"snackbar",shadowOptions:go,styles:no,template:lo});class po extends R.Switch{}const uo=po.compose(Object.assign({baseName:"switch",template:(e,a)=>(0,R.foundationSwitchTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1517
1490
|
${(0,R.foundationSwitchStyles)(e,a)}
|
|
1518
1491
|
:host {
|
|
1519
1492
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1558,7 +1531,7 @@
|
|
|
1558
1531
|
${ne.purple}
|
|
1559
1532
|
);
|
|
1560
1533
|
}
|
|
1561
|
-
`,shadowOptions:R.foundationSwitchShadowOptions},R.defaultSwitchConfig));class
|
|
1534
|
+
`,shadowOptions:R.foundationSwitchShadowOptions},R.defaultSwitchConfig));class ho extends R.Tab{}const mo=ho.compose(Object.assign({baseName:"tab",template:(e,a)=>(0,R.foundationTabTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1562
1535
|
${(0,R.foundationTabStyles)(e,a)}
|
|
1563
1536
|
:host {
|
|
1564
1537
|
background-color: ${p.neutralLayer2};
|
|
@@ -1582,12 +1555,12 @@
|
|
|
1582
1555
|
margin-right: 0;
|
|
1583
1556
|
background-color: var(--zero-card-fill-color);
|
|
1584
1557
|
}
|
|
1585
|
-
`,shadowOptions:R.foundationTabShadowOptions},R.defaultTabConfig));class
|
|
1558
|
+
`,shadowOptions:R.foundationTabShadowOptions},R.defaultTabConfig));class vo extends R.TabPanel{}const bo=vo.compose(Object.assign({baseName:"tab-panel",template:(e,a)=>(0,R.foundationTabPanelTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1586
1559
|
${(0,R.foundationTabPanelStyles)(e,a)}
|
|
1587
1560
|
:host {
|
|
1588
1561
|
padding: 0;
|
|
1589
1562
|
}
|
|
1590
|
-
`,shadowOptions:R.foundationTabPanelShadowOptions},R.defaultTabPanelConfig));class
|
|
1563
|
+
`,shadowOptions:R.foundationTabPanelShadowOptions},R.defaultTabPanelConfig));class fo extends R.Tabs{}const wo=fo.compose(Object.assign({baseName:"tabs",template:(e,a)=>(0,R.foundationTabsTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1591
1564
|
${(0,R.foundationTabsStyles)(e,a)}
|
|
1592
1565
|
:host .tablist {
|
|
1593
1566
|
padding: 0;
|
|
@@ -1633,7 +1606,7 @@
|
|
|
1633
1606
|
height: 2px;
|
|
1634
1607
|
margin-top: 0;
|
|
1635
1608
|
}
|
|
1636
|
-
`,shadowOptions:R.foundationTabsShadowOptions},R.defaultTabsConfig));class
|
|
1609
|
+
`,shadowOptions:R.foundationTabsShadowOptions},R.defaultTabsConfig));class yo extends R.TextArea{}const xo=yo.compose(Object.assign({baseName:"text-area",template:(e,a)=>(0,R.foundationTextAreaTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1637
1610
|
${(0,R.foundationTextAreaStyles)(e,a)}
|
|
1638
1611
|
:host {
|
|
1639
1612
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1678,7 +1651,7 @@
|
|
|
1678
1651
|
color: ${Ua};
|
|
1679
1652
|
margin: calc(var(--design-unit) * 2px) 0;
|
|
1680
1653
|
}
|
|
1681
|
-
`,shadowOptions:R.foundationTextAreaShadowOptions},R.defaultTextAreaConfig));class
|
|
1654
|
+
`,shadowOptions:R.foundationTextAreaShadowOptions},R.defaultTextAreaConfig));class zo extends R.TextField{}const ko=zo.compose(Object.assign({baseName:"text-field",template:(e,a)=>(0,R.foundationTextFieldTemplate)(e,a),styles:Nt,shadowOptions:R.foundationTextFieldShadowOptions},R.defaultTextFieldConfig)),So=s.css`
|
|
1682
1655
|
${R.foundationToastStyles}
|
|
1683
1656
|
.toast {
|
|
1684
1657
|
border: calc(var(--stroke-width) * 1px) solid ${p.neutralLayer3};
|
|
@@ -1704,11 +1677,11 @@
|
|
|
1704
1677
|
:host([notify='serious']) .toast::after {
|
|
1705
1678
|
background-color: ${Ye(1)};
|
|
1706
1679
|
}
|
|
1707
|
-
`,
|
|
1680
|
+
`,Co=R.defaultToastConfig,Ao=R.foundationToastShadowOptions;class To extends R.Toast{}const Do=To.compose(Object.assign({baseName:"toast",shadowOptions:Ao,styles:So,template:R.foundationToastTemplate},Co));class Oo extends R.Toolbar{}const Fo=Oo.compose(Object.assign({baseName:"toolbar",template:(e,a)=>(0,R.foundationToolbarTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1708
1681
|
${(0,R.foundationToolbarStyles)(e,a)}
|
|
1709
|
-
`,shadowOptions:R.foundationToolbarShadowOptions},R.defaultToolbarConfig));class
|
|
1682
|
+
`,shadowOptions:R.foundationToolbarShadowOptions},R.defaultToolbarConfig));class Lo extends R.Tooltip{}const Mo=Lo.compose(Object.assign({baseName:"tooltip",template:(e,a)=>(0,R.foundationTooltipTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1710
1683
|
${(0,R.foundationTooltipStyles)(e,a)}
|
|
1711
|
-
`,shadowOptions:R.foundationTooltipShadowOptions},R.defaultTooltipConfig));class
|
|
1684
|
+
`,shadowOptions:R.foundationTooltipShadowOptions},R.defaultTooltipConfig));class No extends R.TreeItem{}const Ro=No.compose(Object.assign({baseName:"tree-item",template:(e,a)=>(0,R.foundationTreeItemTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1712
1685
|
${(0,R.foundationTreeItemStyles)(e,a)}
|
|
1713
1686
|
:host {
|
|
1714
1687
|
--primary-gradient-angle: -113.5deg;
|
|
@@ -1736,9 +1709,9 @@
|
|
|
1736
1709
|
background-size: cover;
|
|
1737
1710
|
background-repeat: no-repeat;
|
|
1738
1711
|
}
|
|
1739
|
-
`,shadowOptions:R.foundationTreeItemShadowOptions},R.defaultTreeItemConfig));class
|
|
1712
|
+
`,shadowOptions:R.foundationTreeItemShadowOptions},R.defaultTreeItemConfig));class $o extends R.TreeView{}const jo=$o.compose(Object.assign({baseName:"tree-view",template:(e,a)=>(0,R.foundationTreeViewTemplate)(e,a),styles:(e,a)=>s.css`
|
|
1740
1713
|
${(0,R.foundationTreeViewStyles)(e,a)}
|
|
1741
|
-
`,shadowOptions:R.foundationTreeViewShadowOptions},R.defaultTreeViewConfig)),
|
|
1714
|
+
`,shadowOptions:R.foundationTreeViewShadowOptions},R.defaultTreeViewConfig)),Io=s.html`
|
|
1742
1715
|
<div class="container" value=${e=>e.value}>
|
|
1743
1716
|
<zero-text-field
|
|
1744
1717
|
class="url-input"
|
|
@@ -1754,7 +1727,7 @@
|
|
|
1754
1727
|
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
1755
1728
|
`)}
|
|
1756
1729
|
</div>
|
|
1757
|
-
`;class
|
|
1730
|
+
`;class Eo extends R.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,tr.__decorate)([s.observable],Eo.prototype,"value",void 0),(0,tr.__decorate)([s.observable],Eo.prototype,"focused",void 0);const Po={zeroAccordion:Te,zeroAccordionItem:Oe,zeroActionsMenu:Le,zeroAnchor:pa,zeroAnchoredRegion:ha,zeroAvatar:va,zeroBadge:fa,zeroBanner:za,zeroBreadcrumbItem:Aa,zeroBreadcrumb:Sa,zeroButton:Da,zeroCalendar:Fa,zeroCard:Ma,zeroCheckbox:Ra,zeroCombobox:Qa,zeroConnectionIndicator:qa,zeroDataGrid:Xa,zeroDesignSystemProvider:gr,zeroDialog:vr,zeroDatePicker:rr,zeroDisclosure:fr,zeroDivider:yr,zeroDropdownMenu:zr,zeroErrorBoundary:Dr,zeroNotificationListener:Mt,zeroErrorBanner:Ar,zeroErrorDialog:Fr,zeroFileUpload:jr,zeroFilter:Pr,zeroFilterBar:Gr,zeroFlexLayout:Hr,zeroFlipper:Vr,zeroFlyout:Kr,zeroGridLayout:et,zeroGridLayoutItem:rt,zeroHorizontalScroll:ot,zeroIcon:gt,zeroListbox:st,zeroListboxOption:pt,zeroMenu:mt,zeroMenuItem:ft,zeroModal:St,zeroMultiselect:Ft,zeroNumberField:Et,zeroProgress:Ut,zeroProgressRing:_t,zeroRadio:Yt,zeroRadioGroup:Qt,zeroSegmentedControl:qt,zeroSegmentedItem:Zt,zeroSelect:Xt,zeroSkeleton:ao,zeroSlider:to,zeroSliderLabel:io,zeroSnackbar:co,zeroSwitch:uo,zeroTab:mo,zeroTabPanel:bo,zeroTabs:wo,zeroTextArea:xo,zeroTextField:ko,zeroToast:Do,zeroToolbar:Fo,zeroTooltip:Mo,zeroTreeItem:Ro,zeroTreeView:jo,zeroUrlInput:Eo.compose(Object.assign({baseName:"url-input",template:Io,styles:(e,a)=>s.css`
|
|
1758
1731
|
${(0,R.foundationUrlInputStyles)(e,a)}
|
|
1759
1732
|
a {
|
|
1760
1733
|
color: ${ne.blue};
|
|
@@ -1764,7 +1737,7 @@
|
|
|
1764
1737
|
a:hover {
|
|
1765
1738
|
opacity: 100%;
|
|
1766
1739
|
}
|
|
1767
|
-
`,shadowOptions:R.foundationUrlInputShadowOptions},R.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var
|
|
1740
|
+
`,shadowOptions:R.foundationUrlInputShadowOptions},R.defaultUrlInputConfig)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Uo=r(80249);const Bo=(0,g.createLogger)("grid-pro");class Go extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return this.params=e,!0}isDisabled(e){var a;if("function"==typeof(null===(a=this.params)||void 0===a?void 0:a.isDisabled))try{return this.params.isDisabled(e)}catch(e){Bo.error("Error executing grid action cell renderer isDisabled callback:",e)}return!1}clickHandler(){return(0,Uo.__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,Uo.__decorate)([s.observable],Go.prototype,"params",void 0),(0,Uo.__decorate)([s.observable],Go.prototype,"pendingAction",void 0);const{create:_o}=c.DesignToken,Ho=(_o("action-height-multiplier").withDefault("0.6px"),s.css`
|
|
1768
1741
|
.action-container {
|
|
1769
1742
|
align-items: center;
|
|
1770
1743
|
display: flex;
|
|
@@ -1779,8 +1752,8 @@
|
|
|
1779
1752
|
var(--action-height-multiplier)
|
|
1780
1753
|
);
|
|
1781
1754
|
}
|
|
1782
|
-
`),
|
|
1783
|
-
${
|
|
1755
|
+
`),Yo=Go.compose({baseName:"grid-pro-action-renderer",styles:s.css`
|
|
1756
|
+
${Ho}
|
|
1784
1757
|
`,template:s.html`
|
|
1785
1758
|
<div class="action-container" part="action-container">
|
|
1786
1759
|
<foundation-button
|
|
@@ -1790,8 +1763,8 @@
|
|
|
1790
1763
|
?disabled=${e=>{var a;return e.pendingAction||e.isDisabled(null===(a=e.params)||void 0===a?void 0:a.data)}}
|
|
1791
1764
|
appearance="${e=>e.params.appearance}"
|
|
1792
1765
|
@click=${e=>e.clickHandler()}">${e=>e.params.actionName}</foundation-button>
|
|
1793
|
-
</div>`});class
|
|
1794
|
-
${
|
|
1766
|
+
</div>`});class Vo extends Go{}const Qo=Vo.compose({baseName:"grid-pro-action-renderer",styles:s.css`
|
|
1767
|
+
${Ho}
|
|
1795
1768
|
`,template:s.html`
|
|
1796
1769
|
<div class="action-container" part="action-container">
|
|
1797
1770
|
<zero-button
|
|
@@ -1807,29 +1780,29 @@
|
|
|
1807
1780
|
`:e.params.actionName}
|
|
1808
1781
|
</zero-button>
|
|
1809
1782
|
</div>
|
|
1810
|
-
`});class
|
|
1783
|
+
`});class Wo extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}refresh(e){return!1}}(0,Uo.__decorate)([s.observable],Wo.prototype,"params",void 0);const qo=Wo.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
|
|
1811
1784
|
<foundation-actions-menu
|
|
1812
1785
|
name="${e=>e.params.headerName}"
|
|
1813
1786
|
:definition=${e=>e.params}
|
|
1814
1787
|
></foundation-actions-menu>
|
|
1815
|
-
`});class
|
|
1788
|
+
`});class Jo extends Wo{}const Zo=Jo.compose({baseName:"grid-pro-actions-menu-renderer",template:s.html`
|
|
1816
1789
|
<zero-actions-menu
|
|
1817
1790
|
name="${e=>e.params.headerName}"
|
|
1818
1791
|
:definition=${e=>e.params}
|
|
1819
1792
|
></zero-actions-menu>
|
|
1820
|
-
`});class
|
|
1793
|
+
`});class Ko extends c.FoundationElement{init(e){e&&(this.params=e)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,Uo.__decorate)([s.observable],Ko.prototype,"params",void 0);const Xo=s.css`
|
|
1821
1794
|
:host {
|
|
1822
1795
|
align-center: center;
|
|
1823
1796
|
display: flex;
|
|
1824
1797
|
height: 100%;
|
|
1825
1798
|
}
|
|
1826
|
-
`,
|
|
1799
|
+
`,ei=(e="foundation")=>{const a=`${e}-checkbox`;return s.html`
|
|
1827
1800
|
<${a}
|
|
1828
1801
|
@change="${e=>{var a;return null===(a=e.params)||void 0===a?void 0:a.changeHandler(e.params)}}"
|
|
1829
1802
|
checked="${e=>{var a;return null===(a=e.params)||void 0===a?void 0:a.value}}"
|
|
1830
1803
|
readonly="${e=>{var a;return null===(a=e.params)||void 0===a?void 0:a.readonly}}"
|
|
1831
1804
|
></${a}>
|
|
1832
|
-
`},
|
|
1805
|
+
`},ai=Ko.compose({baseName:"boolean-renderer",styles:Xo,template:ei()});class ri extends Ko{}const ti=ri.compose({baseName:"boolean-renderer",styles:Xo,template:ei("zero")});var oi=r(18471);const ii=(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 ni extends c.FoundationElement{constructor(){super(...arguments),this.textValue="",this.textChanged=e=>{this.textValue=e.target.value,this.params.onChange(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.textValue=""===this.textValue?ii(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,Uo.__decorate)([s.observable],ni.prototype,"textValue",void 0),(0,Uo.__decorate)([s.observable],ni.prototype,"params",void 0);const li=s.css`
|
|
1833
1806
|
:host {
|
|
1834
1807
|
display: flex;
|
|
1835
1808
|
width: 100%;
|
|
@@ -1839,15 +1812,15 @@
|
|
|
1839
1812
|
.text-renderer {
|
|
1840
1813
|
width: 100%;
|
|
1841
1814
|
}
|
|
1842
|
-
`,
|
|
1815
|
+
`,gi=(e="foundation")=>{const a=`${e}-text-field`;return s.html`
|
|
1843
1816
|
<${a}
|
|
1844
1817
|
${(0,s.ref)("textField")}
|
|
1845
1818
|
type="text"
|
|
1846
1819
|
class="text-renderer"
|
|
1847
|
-
:value="${(0,
|
|
1820
|
+
:value="${(0,oi.Z)((e=>e.textValue))}"
|
|
1848
1821
|
@change="${(e,a)=>e.textChanged(a.event)}"
|
|
1849
1822
|
></${a}>
|
|
1850
|
-
`},
|
|
1823
|
+
`},di=ni.compose({baseName:"grid-pro-text-renderer",styles:li,template:gi()});class si extends ni{}const ci=li,pi=gi,ui=si.compose({baseName:"grid-text-renderer",styles:ci,template:pi()});const hi=class extends si{}.compose({baseName:"grid-text-renderer",styles:ci,template:pi("zero")});class mi extends c.FoundationElement{constructor(){super(...arguments),this.selectionChanged=e=>{this.value=e.target.value,this.params.onSelect(e.target.value,this.params)}}init(e){var a;e&&(this.params=e,this.value=ii(null===(a=e.node)||void 0===a?void 0:a.data,e.accessor)||void 0)}getGui(){return this}destroy(){}refresh(e){return!0}}(0,Uo.__decorate)([s.observable],mi.prototype,"params",void 0),(0,Uo.__decorate)([s.observable],mi.prototype,"value",void 0);const vi=s.css`
|
|
1851
1824
|
:host,
|
|
1852
1825
|
.select-renderer,
|
|
1853
1826
|
zero-option,
|
|
@@ -1856,7 +1829,7 @@
|
|
|
1856
1829
|
max-width: var(--select-renderer-max-width);
|
|
1857
1830
|
min-width: 100%;
|
|
1858
1831
|
}
|
|
1859
|
-
`,
|
|
1832
|
+
`,bi=(e="foundation")=>{const a=`${e}-select`,r=`${e}-option`;return s.html`
|
|
1860
1833
|
<${a}
|
|
1861
1834
|
class="select-renderer"
|
|
1862
1835
|
@change=${(e,a)=>e.selectionChanged(a.event)}
|
|
@@ -1872,19 +1845,19 @@
|
|
|
1872
1845
|
<${r} value=${e=>e.name}>${e=>e.displayName}</${r}>
|
|
1873
1846
|
`)}
|
|
1874
1847
|
</${a}>
|
|
1875
|
-
`},
|
|
1848
|
+
`},fi=mi.compose({baseName:"select-renderer",styles:vi,template:bi()});const wi=class extends mi{}.compose({baseName:"select-renderer",styles:vi,template:bi("zero")});var yi=r(89861),xi=r(59783),zi=r(86534),ki=r(75527),Si=r(9492);const Ci=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,Si.__classPrivateFieldGet)(this,n,"f")||("dom"===(0,Si.__classPrivateFieldGet)(this,r,"f")._key||"foundation-layout-cache"!==(0,Si.__classPrivateFieldGet)(this,r,"f")._key&&!((0,Si.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Si.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Si.__classPrivateFieldGet)(this,a,"m",l).call(this,"disconnect")))}get shouldRunConnect(){if((0,Si.__classPrivateFieldGet)(this,n,"f"))return!0;if("dom"===(0,Si.__classPrivateFieldGet)(this,r,"f")._key)return!0;if("foundation-layout-cache"===(0,Si.__classPrivateFieldGet)(this,r,"f")._key)return!1;let e="reconnect";return!1===(0,Si.__classPrivateFieldGet)(this,o,"f")&&((0,Si.__classPrivateFieldSet)(this,o,!0,"f"),e="connect"),!((0,Si.__classPrivateFieldGet)(this,r,"f").dragging||!(0,Si.__classPrivateFieldGet)(this,r,"f").hasFirstLoaded||(0,Si.__classPrivateFieldGet)(this,a,"m",l).call(this,e))}connectedCallback(){super.connectedCallback(),"foundation-layout"!==(0,Si.__classPrivateFieldGet)(this,r,"f")._key&&(0,Si.__classPrivateFieldSet)(this,r,(0,Si.__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,Si.__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,Si.__classPrivateFieldGet)(this,t,"f")!==(0,Si.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken;let g=!1;return"connect"===e?(0,Si.__classPrivateFieldSet)(this,t,null!==(a=(0,Si.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==a?a:"","f"):"disconnect"===e?(g=l,(0,Si.__classPrivateFieldSet)(this,i,setTimeout((()=>{(0,Si.__classPrivateFieldSet)(this,n,!0,"f"),this.disconnectedCallback()}),1e4),"f")):"reconnect"===e&&(g=l,(0,Si.__classPrivateFieldSet)(this,t,null!==(o=(0,Si.__classPrivateFieldGet)(this,r,"f").lifecycleUpdateToken)&&void 0!==o?o:"","f"),clearTimeout((0,Si.__classPrivateFieldGet)(this,i,"f"))),g},g=function e(r){if(!0===r.getRootNode()[Ai])return{_key:"foundation-layout-cache"};if(r.getRootNode()instanceof Document)return{_key:"dom"};const t=r.getRootNode().host;if("FoundationLayoutMain"===t.class){const e=t;return e._key="foundation-layout",e}return(0,Si.__classPrivateFieldGet)(this,a,"m",e).call(this,t)},d},Ai=Symbol("layout-cache-document");var Ti=r(88556),Di=r(9770);const Oi=s.html`
|
|
1876
1849
|
<template>
|
|
1877
1850
|
<slot ${(0,s.slotted)("slottedRenderer")} @slotchange="${e=>e.slottedAgRendererChanged()}"></slot>
|
|
1878
1851
|
</template>
|
|
1879
|
-
`;let
|
|
1852
|
+
`;let Fi=class extends c.FoundationElement{connectedCallback(){super.connectedCallback();const e=this.parentElement;this.renderer&&(e.definition.cellRenderer=this.renderer),this.rendererParams&&(e.definition.cellRendererParams=this.rendererParams)}init(e){this.rendererParams=e}getGui(){return"string"!=typeof this.renderer?this.renderer(this.rendererParams):this}destroy(){}refresh(e){return!1}slottedAgRendererChanged(){}};(0,Uo.__decorate)([s.observable],Fi.prototype,"renderer",void 0),(0,Uo.__decorate)([s.observable],Fi.prototype,"rendererParams",void 0),(0,Uo.__decorate)([s.observable],Fi.prototype,"slottedRenderer",void 0),Fi=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-cell",template:Oi})],Fi);const Li=s.html`
|
|
1880
1853
|
<template>
|
|
1881
1854
|
<slot ${(0,s.slotted)("slottedAgCell")} @slotchange="${e=>e.slottedAgCellChanged()}"></slot>
|
|
1882
1855
|
</template>
|
|
1883
|
-
`;let
|
|
1884
|
-
.${
|
|
1856
|
+
`;let Mi=class extends c.FoundationElement{constructor(){super(...arguments),this.definition={}}slottedAgCellChanged(){}};var Ni,Ri;(0,Uo.__decorate)([s.observable],Mi.prototype,"slottedAgCell",void 0),(0,Uo.__decorate)([s.observable],Mi.prototype,"definition",void 0),Mi=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-column",template:Li})],Mi),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"}(Ni||(Ni={})),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"}(Ri||(Ri={}));const $i=e=>`${e}-token-map`,ji=(e,a)=>s.css`
|
|
1857
|
+
.${$i(e)} {
|
|
1885
1858
|
${new R.CSSVarsTokenMapper(a)}
|
|
1886
1859
|
}
|
|
1887
|
-
`;var Pi;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.text="text",e.select="select"}(Pi||(Pi={}));const Ui='\n @font-face {\n font-family: "agGridAlpine";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMHau317e0FCManAAiSyCaunoRkkLFl1/9/c+VPMsnNEtBMGFedLLAjUjWiUlf3+d7r9jXZ9QR298S0qL4ULfAzmTVNTp0mtPCuUzXkB9rmv+OwOMJMsBBtenrY+GctjprYgZGc8X+zSHSRfcvw1zpZ98C2kVXG2W5VN1e6FQaG8JwEf+HchRXcb/Z2hfQ8dNS65LeVddel9vIEBkLLAG+YnEKJNWojAGE6V6EkgmyIn4SZ/+fnUtsboqwa/IGs0PNzOvCvzXv/pcBZSpRymlLWAZIFgrumAmgArDY7BSznJvyER6Hm7NyE1oMAmTOP2W4ovkxHhBjDKOYx0rGd6gY9HsC1iTrjjQhAvisbO3rs5NnKm1fs3qoPidYOoKweNm9YtwIO46CaAQG+y6kDZXNP/PIvsNmO0J44x/o4N66Ot+LG+FSETZ0xCmh8diIJRcgUKg1LIC5GV+kMnGkwBUV1HbzQOxJrQ0SKWJvX3t1aFRHoqOtzRWTyveVTZfGGblRq755mi6egbDIkb+zKVJeTkPgMFsIIrr8G88QITUASqOJ5TBJLAyetqNuvUi9cwsEiSVfknTKJKFwXJEifKEg4TRaVoTf9KidqWxWTaM4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XqpiKbholwui05d6ymOvr4rvfbvnEuD/2Lt6UJO/LtcDLUAjLO7+6TfmdLsqQ1oX9N1GBdZaqb1U6z/q75SrwQ8/Q0nP38sYCya/8Olal7o7hJgPz+nTjjmCEjw0ihgE3KAue6Ez7v6sQAMBCBRVzH0QE+m7QFOUA8oIHQ7QMAd+l1GAzbMBJSuy4FO132so8Klf1DS9T/b9TcUX2zPj/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',Bi='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKr0ynOAE2AiQDghgLgQ4ABCAFhEYHhF0bXiRFpNekVVHJ/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NhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Gi={[ji.alpine]:Ui,[ji.alpineDark]:Ui,[ji.balham]:Bi,[ji.balhamDark]:Bi,[ji.material]:'\n @font-face {\n font-family: "agGridMaterial";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAItAAAA+4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKoQibUgE2AiQDgiQLgRQABCAFhF4HhQQbwx4zozZKkzKjKAuTKdl/nWDK2JwGzwo8TIbdeYNAtGkxGg6xYzGz3JUMFWCLQoUjcyveKfPZ/H3KUMoL2rS9u+gRJeZcVAgRJ5CkLZEpR8wJTYnXnVSMtFyNChezin1NlBr5GXihygP/477uwwhpzmQRmQv4h7xQ1ukb+qbAuHWw7/RtjIFWUFny28Ky25Mrtuy4tSU/Wc7/vwwfQIfAIXD7Tt+s5E8pTn5vAnqvAPcKcIYlde3bwySmDu1CBfgAWXCyv/537t/bNk2bB4wpAJyvJiygJTWLWk3INSABhcEIIFK3nVCyYoEK+KQzcN/aq94CoAZSukZXyN27/bAzE4LLJqw2fOFLyqTCsgoAg9cUEIwBlHm1VR6FqrN1Fdq2W2BBkEa6OUOPR0hZbsED+7l62hratnMRkZGRktL4unUngADAoQ+SAeVlCEiwaKia2gTOYABBQwR8VUQa6iVVYDKIgywZhkDpQzYwg2pogEKYClcQC2Qq0oXaYs5YPlaLUdgQ9tVNJaKVB0aVFF6cTCG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cdrpzbESxF+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'},_i=Ui;var Hi=r(82940),Yi=r(32449),Vi=r(9162),Qi=r(5127),Wi=r(83123),qi=r(35991),Ji=r(6852),Zi=r(26714),Ki=r(71452),Xi=r(99449),en=r(30526),an=r(21607);function rn({value:e}){return(0,an.D_)(e)}function tn({value:e}){return(0,an.Lx)(e)}var on;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(on||(on={}));let nn=class extends(Di(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Hi.WJ.MAX_ROWS_250,this.maxView=Hi.WJ.MAX_VIEW_1000,this.movingView=!1,this.pollingInterval=Hi.WJ.REQ_REP_POLLING_INTERVAL_MS,this.reverse=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new Zi.X(new Map)}criteriaChanged(e,a){const r=e!==(0,Yi.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Hi.WJ.REQUEST_SERVER_ROW_ID:Hi.WJ.DATASERVER_ROW_ID}init(){return(0,_o.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid&&this.datasource.validResourceName(this.resourceName)&&this.connect.isConnected){const e=yield this.connect.getMetadata(this.resourceName);this.isRequestServer=e.TYPE===Hi._g.REQUEST_SERVER;const a=Object.assign({getRowId:e=>e.data[this.rowId]},this.deferredGridOptions);this.agGrid.gridOptions=Object.assign({},a),this.agGrid.addEventListener("onGridReady",(()=>(0,_o.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Ki.T)(1),(0,Xi.b)(r),(0,en.b)((e=>Ho.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Ho.warn("Application not connected, falling back to local columnDefs/rowData")}))}deinit(){this.reset()}reset(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.dataLogoff(),this.clearRowData(),this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new Zi.X(new Map),this.datasource.deinit()}restart(){this.deinit(),this.init()}refreshRows(){this.setRowData(Array.from(this.rows.values()))}dataLogoff(){this.sourceRef&&!this.isRequestServer&&!this.isSnapshot&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.sourceRef),this.sourceRef=void 0}clearRowData(e=!0){var a,r,t,o;this.rows=new Map,this.agTransaction=void 0,e&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),null===(o=null===(t=this.agGrid)||void 0===t?void 0:t.gridApi)||void 0===o||o.setRowData([])}setRowData(e){var a;const r=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDefs();if(!r||0===r.length){const e=this.getAgColumnDefs(this.datasource.fieldMetadata);e&&this.agGrid.gridApi.setColumnDefs(e)}const t=this.rowDataMapper?this.rowDataMapper(e):e;this.agGrid.gridApi.setRowData(t),this.requiresFullRowDataAndColDefs=!1}reloadResourceData(){var e,a;return(0,_o.__awaiter)(this,void 0,void 0,(function*(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.dataLogoff(),this.clearRowData(null),null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.showLoadingOverlay(),this.loadResourceData(null)}))}loadResourceData(e=!0){return(0,_o.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Ho.debug(`Genesis Datasource init failed for ${this.resourceName}`),void this.clearRowData();if(this.isSnapshot){const e=yield this.datasource.snapshot();if(e){const a=this.handleSnapshot(e);this.setRowData(a)}}else Ho.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const a=e.MESSAGE_TYPE;if(a&&a===Vi.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Qi.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Qi.$)(e).inserts:e.inserts}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,maxRows:this.maxRows,maxView:this.maxView,movingView:this.movingView,orderBy:this.orderBy,pollingInterval:this.pollingInterval,request:this.request,resourceName:this.resourceName,reverse:this.reverse}}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}applyRequestServerData(e){var a;const r=e.REPLY;if(!Array.isArray(r)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void Ho.error("received invalid RequestServerResult",e);if(this.requiresFullRowDataAndColDefs){null==r||r.forEach((e=>{this.rows.set(e[this.rowId],e)}));const e=this.rows.size>0?Array.from(this.rows.values()):r;return void this.setRowData(e)}const t=[],o=Array.from(this.rows.values()).filter((e=>{const a=r.find((a=>a[this.rowId]===e[this.rowId]));return!a||(t.push(a),!1)})),i=r.filter((e=>!this.rows.has(e[this.rowId])));this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(i),this.handleStreamDeletes(o),this.handleStreamUpdates(t),this.applyAllAgTransactions()}applyDataserverData(e){var a;if(this.requiresFullRowDataAndColDefs){null===(a=e.inserts)||void 0===a||a.forEach((e=>{this.rows.set(e[this.rowId],e)}));const r=Array.from(this.rows.values());this.setRowData(r)}else this.agTransaction={add:[],remove:[],update:[]},this.handleStreamInserts(e.inserts),this.handleStreamDeletes(e.deletes),this.handleStreamUpdates(e.updates),this.applyAllAgTransactions()}applyAllAgTransactions(){this.agTransaction.add.length||this.agTransaction.update.length||this.agTransaction.remove.length?(this.agTransaction.add.length>0&&this.applyMappedAgTransaction({add:this.agTransaction.add,addIndex:this.agGrid.addIndex},on.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},on.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},on.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}applyMappedAgTransaction(e,a,r){const t=r?"applyTransactionAsync":"applyTransaction";this.agGrid.gridApi[t](this.mapTransaction(e,[a]))}mapTransaction(e,a=Object.values(on)){if(!this.rowDataMapper)return e;const r={};return a.includes(on.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(on.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(on.Update)&&(r.update=this.rowDataMapper(e.update,this.rows)),r}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rows.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r)}else this.agTransaction.add.push(e),this.agTransaction.addIndex=0;this.rows.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{this.agTransaction.remove.push({[this.rowId]:e[this.rowId]}),this.rows.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r),this.rows.set(e[this.rowId],r)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=(e.type,{suppressAndOrCondition:!0,filterOptions:["contains"]}),e.type){case Wi.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=Pi.boolean);break;case Wi.r.DATE:r.valueFormatter=rn;break;case Wi.r.DATETIME:r.valueFormatter=tn}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.agGrid.onlyTemplateColDefs&&!t||this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values()));return(0,Yi.p)(a.join(" && "),";")}setFilter(e,a){this.criteriaFromFilters.set(e,a),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}};(0,_o.__decorate)([qi.g],nn.prototype,"auth",void 0),(0,_o.__decorate)([l.lj],nn.prototype,"connect",void 0),(0,_o.__decorate)([Ji.Yh],nn.prototype,"datasource",void 0),(0,_o.__decorate)([s.observable],nn.prototype,"deferredGridOptions",void 0),(0,_o.__decorate)([s.observable],nn.prototype,"deferredColumnStates",void 0),(0,_o.__decorate)([s.attr],nn.prototype,"criteria",void 0),(0,_o.__decorate)([s.attr],nn.prototype,"fields",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],nn.prototype,"isSnapshot",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"max-rows"})],nn.prototype,"maxRows",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"max-view"})],nn.prototype,"maxView",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],nn.prototype,"movingView",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"order-by"})],nn.prototype,"orderBy",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"polling-interval"})],nn.prototype,"pollingInterval",void 0),(0,_o.__decorate)([s.observable],nn.prototype,"request",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"resource-name"})],nn.prototype,"resourceName",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean"})],nn.prototype,"reverse",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"row-id"})],nn.prototype,"rowIdAttr",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],nn.prototype,"restartOnReconnection",void 0),(0,_o.__decorate)([s.observable],nn.prototype,"rowDataMapper",void 0),nn=(0,_o.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],nn);let ln=class extends nn{};ln=(0,_o.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],ln);var gn=r(66306),dn=r(47546);function sn(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"agNumberColumnFilter";case"date":case"datetime":return"agDateColumnFilter";default:return"agTextColumnFilter"}}function cn(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn";case"date":case"datetime":return"dateColumn";default:return"textColumn"}}function pn({value:e}){return(0,an.D_)(e)}function un({value:e}){return(0,an.Lx)(e)}class hn{constructor(e){this.server_ROWS_COUNT=0,this.client_ROWS_COUNT=0,this.moreRows=!1,this.calculatedRowsCount=0,this.lastSequenceId=0,this.rowData=new Map,this.dataserverStream=e.stream,this.resourceName=e.resourceName,this.resourceParams=e.resourceParams,this.originalCriteriaMatch=e.resourceParams.CRITERIA_MATCH,this.resourceIndexes=e.resourceIndexes,this.resourceColDefs=e.resourceColDefs,this.maxRows=e.maxRows,this.maxView=e.maxView,this.rowId=e.rowId,this.pagination=e.pagination}getRows(e){var a;return(0,_o.__awaiter)(this,void 0,void 0,(function*(){const r=e.request.filterModel,t=Object.keys(r).length>0,o=0===Object.keys(r).length,i=JSON.stringify(r)!==JSON.stringify(this.currentFilterModel);(i||t)&&(o&&this.currentFilterModel?(this.currentFilterModel=null,this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.restartSubscription()):i&&t&&(this.currentFilterModel=r,this.resourceParams.CRITERIA_MATCH=this.buildCriteriaMatchFromFilters(),this.restartSubscription()));const n=e.request.sortModel;if(n.length!==(null===(a=this.currentSortModel)||void 0===a?void 0:a.length)||n.length>0)if(0===n.length&&this.currentSortModel)this.currentSortModel=null,this.resourceParams.ORDER_BY=null,this.resourceParams.REVERSE=null,this.restartSubscription();else if(n.length>0){this.currentSortModel=n;const e=this.currentSortModel[0].colId,a=this.currentSortModel[0].sort,r=this.getOrderByAndToBeSortedColIds(this.resourceIndexes,e);r.toBeSorted.forEach((e=>{this.currentSortModel.push({sort:a,colId:e})})),this.resourceParams.ORDER_BY=r.orderBy,this.resourceParams.REVERSE="desc"===a,this.restartSubscription()}this.moreRows&&e.request.startRow>=Number(this.maxRows)&&this.connect.getMoreRows(this.streamSourceRef),this.dataserverStream.pipe((0,dn.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Vi.Cs.LOGOFF_ACK||o===Vi.Cs.MSG_NACK))return void e.fail();if(this.moreRows=a.MORE_ROWS,!a.ROW){this.rowData=new Map;const a={rowData:Array.from(this.rowData.values()),rowCount:0};return void e.success(a)}{const e=(0,Qi.$)(a);this.handleInitialStreamLoad(e)}this.lastSequenceId=a.SEQUENCE_ID,1===this.lastSequenceId&&(this.streamSourceRef=a.SOURCE_REF,this.server_ROWS_COUNT=null!==(r=a.ROWS_COUNT)&&void 0!==r?r:this.rowData.size),!this.moreRows&&this.server_ROWS_COUNT>=this.client_ROWS_COUNT?this.calculatedRowsCount=this.client_ROWS_COUNT:this.calculatedRowsCount+=null!==(t=this.rowData.size)&&void 0!==t?t:0;const i={rowData:Array.from(this.rowData.values())};this.pagination&&(i.rowCount=Math.min(this.server_ROWS_COUNT,this.maxView)),e.request.endRow>this.maxView||e.request.endRow>this.calculatedRowsCount?i.rowCount=this.calculatedRowsCount:e.request.endRow===this.server_ROWS_COUNT&&(i.rowCount=this.server_ROWS_COUNT),e.success(i)}))}))}dataLogoff(){this.streamSourceRef&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.streamSourceRef),this.streamSourceRef=void 0}restartSubscription(){this.dataLogoff(),this.rowData=new Map,this.client_ROWS_COUNT=0;this.dataserverStream=this.connect.stream(this.resourceName,(e=>e),(e=>Ho.error(e)),this.resourceParams)}getOrderByAndToBeSortedColIds(e,a){for(const[r,t]of e.entries()){const e=t.findIndex((e=>e===a));if(-1!==e){const a=[...t];return a.splice(e,1),{orderBy:r,toBeSorted:a}}}}handleInitialStreamLoad(e){var a;if(!e)return;const r=new Map;null===(a=e.inserts)||void 0===a||a.forEach((e=>{r.set(e.ROW_REF,e)})),this.client_ROWS_COUNT+=r.size,this.rowData=r}buildCriteriaMatchFromFilters(){this.resourceParams.CRITERIA_MATCH=this.originalCriteriaMatch,this.resourceParams.CRITERIA_MATCH&&"string"==typeof this.resourceParams.CRITERIA_MATCH&&(this.resourceParams.CRITERIA_MATCH=this.resourceParams.CRITERIA_MATCH.split(";")),this.resourceParams.CRITERIA_MATCH||(this.resourceParams.CRITERIA_MATCH=[]);return this.resourceParams.CRITERIA_MATCH.concat(this.criteriaFromFilters()).join(" && ")}criteriaFromFilters(){const e=[];return this.getFiltersByType("text").forEach((a=>{if(this.currentFilterModel[a].filter||"false"!==this.currentFilterModel[a].type&&"true"!==this.currentFilterModel[a].type)switch(this.currentFilterModel[a].type){case"equals":e.push(`${a} == '${this.currentFilterModel[a].filter}'`);break;case"contains":e.push(`Expr.containsIgnoreCase(${a}, '${this.currentFilterModel[a].filter}')`)}else e.push(`${a} == ${this.currentFilterModel[a].type}`)})),this.getFiltersByType("number").forEach((a=>{const r=this.currentFilterModel[a].filter;switch(this.currentFilterModel[a].type){case"equals":!isNaN(r)&&e.push(`${a} == ${r}`);break;case"lessThan":!isNaN(r)&&e.push(`${a} < ${r}`);break;case"greaterThan":!isNaN(r)&&e.push(`${a} > ${r}`)}})),this.getFiltersByType("date").forEach((a=>{const r=this.currentFilterModel[a].dateFrom.replace(/-/g,"").replace("T","-").split(" ")[0];switch(this.currentFilterModel[a].type){case"equals":e.push(`Expr.dateIsEqual(${a}, '${r}')`);break;case"lessThan":e.push(`Expr.dateIsBefore(${a}, '${r}')`);break;case"greaterThan":e.push(`Expr.dateIsAfter(${a}, '${r}')`)}})),e}getFiltersByType(e){return Object.keys(this.currentFilterModel).filter((e=>-1!==this.resourceColDefs.findIndex((a=>a.NAME===e)))).filter((a=>this.currentFilterModel[a].filterType===e))}}(0,_o.__decorate)([qi.g],hn.prototype,"auth",void 0),(0,_o.__decorate)([l.lj],hn.prototype,"connect",void 0);let mn=class extends(Di(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Hi.WJ.MAX_ROWS_250,this.maxView=Hi.WJ.MAX_VIEW_1000,this.movingView=!0,this.pagination=!1,this.rowId="ROW_REF",this.reverse=!1}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,Yi.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.reset()}))}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions={getRowId:e=>e.data?e.data[this.rowId]:null,cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!0},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{}},void this.agGrid.addEventListener("onGridReady",(()=>(0,_o.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Ho.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,gn.C)(e);const a=(0,gn.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new hn({stream:t,resourceName:this.resourceName,resourceParams:this.params,resourceIndexes:this.indexes,resourceColDefs:this.originalFieldDef,maxRows:this.maxRows,maxView:this.maxView,rowId:this.rowId,pagination:this.pagination}),this.agGrid.gridApi.setServerSideDatasource(this.dataserverStream)}))),{once:!0});Ho.warn("Application not connected, falling back to local columnDefs/rowData")}reset(){this.clearRowData(),this.dataserverStream=void 0,this.originalFieldDef=void 0,this.agGrid.gridApi.setServerSideDatasource(this.dataserverStream)}restart(){this.reset(),this.init()}get agGrid(){return this.parentElement}clearRowData(){var e,a,r,t;null===(a=null===(e=this.agGrid)||void 0===e?void 0:e.gridApi)||void 0===a||a.setColumnDefs([]);const o={remove:[]};null===(r=this.agGrid.gridApi)||void 0===r||r.forEachNode((e=>{o.remove.push(e.data)})),null===(t=this.agGrid.gridApi)||void 0===t||t.applyServerSideTransaction(o)}getResourceIndexes(e){const a=new Map;return null==e||e.forEach((e=>{a.set(e.NAME,e.FIELDS.split(" "))})),a}get params(){const e={CRITERIA_MATCH:this.criteria,FIELDS:this.fields,MAX_ROWS:this.maxRows,MAX_VIEW:this.maxView,MOVING_VIEW:this.movingView,REVERSE:this.reverse},a=Array.from(this.indexes.keys());if(this.orderBy)if(a.findIndex((e=>e===this.orderBy))>-1)e.ORDER_BY=this.orderBy;else{const e=a.map((e=>e));Ho.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return Ho.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,_o.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Ho.debug(e)),(e=>Ho.error(e)),null!=e?e:this.params)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=function(e){switch(e){case Wi.r.BOOLEAN:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["contains",{displayKey:"true",displayName:"True",predicate:(e,a)=>"true"===a||!0===a,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,a)=>"false"===a||!1===a,numberOfInputs:0},{displayKey:"true-false",displayName:"True/False",predicate:(e,a)=>"true"===a||!0===a||"false"===a||!1===a,numberOfInputs:0}]};case Wi.r.DATE:case Wi.r.DATETIME:return{comparator:(e,a)=>{if(!a)return-1;const r=new Date(a).setHours(0,0,0,0),t=e.getTime();return r===t?0:r<t?-1:r>t?1:void 0},buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,browserDatePicker:!0,filterOptions:["equals","lessThan","greaterThan"]};case Wi.r.NUMBER:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["equals","lessThan","greaterThan"]};default:return{buttons:["reset","apply"],closeOnApply:!0,closeOnClear:!0,suppressAndOrCondition:!0,filterOptions:["contains","equals"]}}}(e.type),e.type){case Wi.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=Pi.boolean);break;case Wi.r.DATE:r.valueFormatter=pn;break;case Wi.r.DATETIME:r.valueFormatter=un}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.agGrid.onlyTemplateColDefs&&!t||this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:cn(e.type),filter:sn(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,_o.__decorate)([l.lj],mn.prototype,"connect",void 0),(0,_o.__decorate)([s.attr],mn.prototype,"criteria",void 0),(0,_o.__decorate)([s.attr],mn.prototype,"fields",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],mn.prototype,"isSnapshot",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"max-rows"})],mn.prototype,"maxRows",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"max-view"})],mn.prototype,"maxView",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"moving-view"})],mn.prototype,"movingView",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"order-by"})],mn.prototype,"orderBy",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"resource-name"})],mn.prototype,"resourceName",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean"})],mn.prototype,"pagination",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"row-id"})],mn.prototype,"rowId",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean"})],mn.prototype,"reverse",void 0),mn=(0,_o.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],mn);const vn=s.css`
|
|
1860
|
+
`;var Ii;!function(e){e.action="action",e.actionsMenu="actionsMenu",e.boolean="boolean",e.text="text",e.select="select"}(Ii||(Ii={}));const Ei='\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+zKVJeTkPgMFsIIr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OYpihiSB7JUXB/oI+iZaGt9tQq2n9Q0derrnU/2o8lgXVDNY1oD9p6TyUb0YWZhdYyCKXNkXqpiKbholwui05d6ymOvr4rvfbvnEuD/2Lt6UJO/LtcDLUAjLO7+6TfmdLsqQ1oX9N1GBdZaqb1U6z/q75SrwQ8/Q0nP38sYCya/8Olal7o7hJgPz+nTjjmCEjw0ihgE3KAue6Ez7v6sQAMBCBRVzH0QE+m7QFOUA8oIHQ7QMAd+l1GAzbMBJSuy4FO132so8Klf1DS9T/b9TcUX2zPj/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',Pi='\n @font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABQsAAsAAAAAKcgAABPaAAEAAAAAAAAAAAAAAAA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bL6gjAuptFmu1pvtbn84ns4XDx49efbi1Vs5W70cg1MSCFvVmfZlqz7d6kANsdG3YvlyBgb9MdNhPOSC+ZU6R0ADApwCKoFveakVlYY/1xmJxxxO4rkLU01YTnWisNICZqczHxvdqZSt/padqUU38Ner98fMyrAw32INB2OJqvhtkt/aFmvTmxmWi+xcD7nZ+VTz7k1dcFcrbWzY6IV2MZUJ6PoUh5DCJ+xSxdp3kgvHwUQ4w5RRxUh7zCaXToItSdi0s5B84bIvhsa5ihCOZO1V6kTYcHNediUWOC2PgUFGQ3vsP9PWCBnuBr4JA4xQVl/f1j2SteIwIAKC9got8j7MDsYfkio7WlifZQUAAA==);\n font-weight: normal;\n font-style: normal;\n }\n',Ui={[Ri.alpine]:Ei,[Ri.alpineDark]:Ei,[Ri.balham]:Pi,[Ri.balhamDark]:Pi,[Ri.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+SAeVlCEiwaKia2gTOYABBQwR8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G1Xw/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'},Bi=Ei;var Gi=r(82940),_i=r(32449),Hi=r(9162),Yi=r(5127),Vi=r(83123),Qi=r(35991),Wi=r(6852),qi=r(26714),Ji=r(71452),Zi=r(99449),Ki=r(30526),Xi=r(21607);function en({value:e}){return(0,Xi.D_)(e)}function an({value:e}){return(0,Xi.Lx)(e)}var rn;!function(e){e.Add="add",e.Update="update",e.Remove="remove"}(rn||(rn={}));let tn=class extends(Ci(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Gi.WJ.MAX_ROWS_250,this.maxView=Gi.WJ.MAX_VIEW_1000,this.movingView=!1,this.pollingInterval=Gi.WJ.REQ_REP_POLLING_INTERVAL_MS,this.reverse=!1,this.restartOnReconnection=!1,this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.rows=new Map,this.criteriaFromFilters=new Map,this.update=new qi.X(new Map)}criteriaChanged(e,a){const r=e!==(0,_i.p)(a,";");this.datasource.initialized&&r&&this.reloadResourceData()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()})),this.connectionSub=this.connect.isConnected$.subscribe((e=>{var a;e&&(null===(a=this.agGrid)||void 0===a?void 0:a.attributes["ds-disconnected"])&&(this.agGrid.removeAttribute("ds-disconnected"),this.restartOnReconnection&&this.reloadResourceData()),e||this.agGrid.setAttribute("ds-disconnected","ds-disconnected")}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.deinit()}))}deepClone(){const e=super.deepClone();return e.deferredGridOptions=structuredClone(this.deferredGridOptions),e.request=structuredClone(this.request),e}get agGrid(){return this.parentElement}get rowId(){return this.rowIdAttr?this.rowIdAttr:this.isRequestServer?Gi.WJ.REQUEST_SERVER_ROW_ID:Gi.WJ.DATASERVER_ROW_ID}init(){return(0,Uo.__awaiter)(this,void 0,void 0,(function*(){if(this.agGrid&&this.datasource.validResourceName(this.resourceName)&&this.connect.isConnected){const e=yield this.connect.getMetadata(this.resourceName);this.isRequestServer=e.TYPE===Gi._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,Uo.__awaiter)(this,void 0,void 0,(function*(){yield this.loadResourceData()}))),{once:!0});const r=600;this.updateSub=this.update.pipe((0,Ji.T)(1),(0,Zi.b)(r),(0,Ki.b)((e=>Bo.debug("filters (debounced): ",e)))).subscribe((e=>{this.reloadResourceData()}))}else Bo.warn("Application not connected, falling back to local columnDefs/rowData")}))}deinit(){this.reset()}reset(){this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.updateSub&&(this.updateSub.unsubscribe(),this.updateSub=void 0),this.connectionSub&&(this.connectionSub.unsubscribe(),this.connectionSub=void 0),this.dataLogoff(),this.clearRowData(),this.isRequestServer=!1,this.requiresFullRowDataAndColDefs=!0,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new qi.X(new Map),this.datasource.deinit()}restart(){this.deinit(),this.init()}refreshRows(){this.setRowData(Array.from(this.rows.values()))}dataLogoff(){this.sourceRef&&!this.isRequestServer&&!this.isSnapshot&&this.auth.isLoggedIn&&this.connect.dataLogoff(this.sourceRef),this.sourceRef=void 0}clearRowData(e=!0){var a,r,t,o;this.rows=new Map,this.agTransaction=void 0,e&&(null===(r=null===(a=this.agGrid)||void 0===a?void 0:a.gridApi)||void 0===r||r.setColumnDefs([])),null===(o=null===(t=this.agGrid)||void 0===t?void 0:t.gridApi)||void 0===o||o.setRowData([])}setRowData(e){var a;const r=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDefs();if(!r||0===r.length){const e=this.getAgColumnDefs(this.datasource.fieldMetadata);e&&this.agGrid.gridApi.setColumnDefs(e)}const t=this.rowDataMapper?this.rowDataMapper(e):e;this.agGrid.gridApi.setRowData(t),this.requiresFullRowDataAndColDefs=!1}reloadResourceData(){var e,a;return(0,Uo.__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,Uo.__awaiter)(this,void 0,void 0,(function*(){const a=e||!this.datasource.initialized;if(!(yield this.datasource.init(this.datasourceOptions(),a)))return Bo.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 Bo.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===Hi.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const a=(0,Yi.$)(e);this.handleStreamResult(a)}else this.handleStreamResult(e)}))}))}handleSnapshot(e){return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,Yi.$)(e).inserts:e.inserts}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,maxRows:this.maxRows,maxView:this.maxView,movingView:this.movingView,orderBy:this.orderBy,pollingInterval:this.pollingInterval,request:this.request,resourceName:this.resourceName,reverse:this.reverse}}handleStreamResult(e){e&&(this.isRequestServer?this.applyRequestServerData(e):this.applyDataserverData(e))}applyRequestServerData(e){var a;const r=e.REPLY;if(!Array.isArray(r)||!(null===(a=e.MESSAGE_TYPE)||void 0===a?void 0:a.startsWith("REP_")))return void Bo.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},rn.Add,this.agGrid.asyncAdd),this.agTransaction.remove.length>0&&this.applyMappedAgTransaction({remove:this.agTransaction.remove},rn.Remove,this.agGrid.asyncRemove),this.agTransaction.update.length>0&&this.applyMappedAgTransaction({update:this.agTransaction.update},rn.Update,this.agGrid.asyncUpdate)):this.agGrid.gridApi.showNoRowsOverlay()}applyMappedAgTransaction(e,a,r){const t=r?"applyTransactionAsync":"applyTransaction";this.agGrid.gridApi[t](this.mapTransaction(e,[a]))}mapTransaction(e,a=Object.values(rn)){if(!this.rowDataMapper)return e;const r={};return a.includes(rn.Add)&&(r.add=this.rowDataMapper(e.add,this.rows)),a.includes(rn.Remove)&&(r.remove=this.rowDataMapper(e.remove,this.rows)),a.includes(rn.Update)&&(r.update=this.rowDataMapper(e.update,this.rows)),r}handleStreamInserts(e){null==e||e.forEach((e=>{if(this.rows.has(e[this.rowId])||this.dataSubWasLoggedOff){const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r)}else this.agTransaction.add.push(e),this.agTransaction.addIndex=0;this.rows.set(e[this.rowId],e)}))}handleStreamDeletes(e){null==e||e.forEach((e=>{this.agTransaction.remove.push({[this.rowId]:e[this.rowId]}),this.rows.delete(e[this.rowId])}))}handleStreamUpdates(e){null==e||e.forEach((e=>{const a=this.rows.get(e[this.rowId]),r=Object.assign(Object.assign({},a),e);this.agTransaction.update.push(r),this.rows.set(e[this.rowId],r)}))}getAgColumnDefs(e){const a=null==e?void 0:e.flatMap((e=>{var a;const r={};switch(r.filterParams=(e.type,{suppressAndOrCondition:!0,filterOptions:["contains"]}),e.type){case Vi.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=Ii.boolean);break;case Vi.r.DATE:r.valueFormatter=en;break;case Vi.r.DATETIME:r.valueFormatter=an}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.agGrid.onlyTemplateColDefs&&!t||this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}buildCriteria(){var e;const a=((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).concat(Array.from(this.criteriaFromFilters.values()));return(0,_i.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,Uo.__decorate)([Qi.g],tn.prototype,"auth",void 0),(0,Uo.__decorate)([l.lj],tn.prototype,"connect",void 0),(0,Uo.__decorate)([Wi.Yh],tn.prototype,"datasource",void 0),(0,Uo.__decorate)([s.observable],tn.prototype,"deferredGridOptions",void 0),(0,Uo.__decorate)([s.observable],tn.prototype,"deferredColumnStates",void 0),(0,Uo.__decorate)([s.attr],tn.prototype,"criteria",void 0),(0,Uo.__decorate)([s.attr],tn.prototype,"fields",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],tn.prototype,"isSnapshot",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-rows"})],tn.prototype,"maxRows",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-view"})],tn.prototype,"maxView",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"moving-view"})],tn.prototype,"movingView",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"order-by"})],tn.prototype,"orderBy",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"polling-interval"})],tn.prototype,"pollingInterval",void 0),(0,Uo.__decorate)([s.observable],tn.prototype,"request",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"resource-name"})],tn.prototype,"resourceName",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean"})],tn.prototype,"reverse",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"row-id"})],tn.prototype,"rowIdAttr",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"restart-on-reconnection"})],tn.prototype,"restartOnReconnection",void 0),(0,Uo.__decorate)([s.observable],tn.prototype,"rowDataMapper",void 0),tn=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],tn);let on=class extends tn{};on=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-genesis-datasource"})],on);var nn=r(66306),ln=r(47546);function gn(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 dn(e){switch(null==e?void 0:e.toLowerCase()){case"int":case"long":case"double":case"bigdecimal":case"number":return"numericColumn";case"date":case"datetime":return"dateColumn";default:return"textColumn"}}function sn({value:e}){return(0,Xi.D_)(e)}function cn({value:e}){return(0,Xi.Lx)(e)}class pn{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,Uo.__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,ln.q)(1)).subscribe((a=>{var r,t;const o=a.MESSAGE_TYPE;if(o&&(o===Hi.Cs.LOGOFF_ACK||o===Hi.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,Yi.$)(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=>Bo.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,Uo.__decorate)([Qi.g],pn.prototype,"auth",void 0),(0,Uo.__decorate)([l.lj],pn.prototype,"connect",void 0);let un=class extends(Ci(c.FoundationElement)){constructor(){super(...arguments),this.isSnapshot=!1,this.maxRows=Gi.WJ.MAX_ROWS_250,this.maxView=Gi.WJ.MAX_VIEW_1000,this.movingView=!0,this.pagination=!1,this.rowId="ROW_REF",this.reverse=!1}criteriaChanged(e,a){const r=!e&&a,t=e!==(0,_i.p)(a,";");!r&&t&&this.restart()}resourceNameChanged(e,a){e&&e!==a&&this.restart()}connectedCallback(){super.connectedCallback();const e=this.shouldRunConnect;s.DOM.queueUpdate((()=>{e&&this.init()}))}disconnectedCallback(){super.disconnectedCallback();const e=this.shouldRunDisconnect;s.DOM.queueUpdate((()=>{e&&this.reset()}))}init(){if(this.agGrid&&this.resourceName&&this.connect.isConnected)return this.agGrid.gridOptions={getRowId:e=>e.data?e.data[this.rowId]:null,cacheBlockSize:this.maxRows,defaultColDef:{filter:!0,resizable:!0,sortable:!0},pagination:this.pagination,paginationPageSize:this.maxRows,rowBuffer:0,rowModelType:"serverSide",suppressServerSideInfiniteScroll:!1,suppressMultiSort:!0,onFilterChanged:e=>{},onSortChanged:e=>{}},void this.agGrid.addEventListener("onGridReady",(()=>(0,Uo.__awaiter)(this,void 0,void 0,(function*(){const e=yield this.connect.getMetadata(this.resourceName).catch((e=>Bo.error(e)));if(!e)return!1;this.indexes=this.getResourceIndexes(e.INDEXES),this.originalFieldDef=(0,nn.C)(e);const a=(0,nn.i)(this.originalFieldDef),r=this.getAgColumnDefs(a);this.agGrid.gridApi.setColumnDefs(r);const t=yield this.createDataserverStream();this.dataserverStream=new pn({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});Bo.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));Bo.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 Bo.debug("Getting configured params:",e),e}createDataserverStream(e=null){return(0,Uo.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.resourceName,(e=>Bo.debug(e)),(e=>Bo.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 Vi.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 Vi.r.DATE:case Vi.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 Vi.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 Vi.r.BOOLEAN:this.agGrid.autoCellRendererByType&&(r.cellRenderer=Ii.boolean);break;case Vi.r.DATE:r.valueFormatter=sn;break;case Vi.r.DATETIME:r.valueFormatter=cn}const t=null===(a=this.agGrid.gridApi)||void 0===a?void 0:a.getColumnDef(e.name);return this.agGrid.onlyTemplateColDefs&&!t||this.fields&&!this.fields.includes(e.name)?[]:Object.assign(Object.assign({field:e.name,type:dn(e.type),filter:gn(e.type),sortable:[].concat(...this.indexes.values()).includes(e.name)},r),t)}));return this.agGrid.mergeAllColumnDefsAndStates(a,!0)}};(0,Uo.__decorate)([l.lj],un.prototype,"connect",void 0),(0,Uo.__decorate)([s.attr],un.prototype,"criteria",void 0),(0,Uo.__decorate)([s.attr],un.prototype,"fields",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"is-snapshot"})],un.prototype,"isSnapshot",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-rows"})],un.prototype,"maxRows",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"max-view"})],un.prototype,"maxView",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"moving-view"})],un.prototype,"movingView",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"order-by"})],un.prototype,"orderBy",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"resource-name"})],un.prototype,"resourceName",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean"})],un.prototype,"pagination",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"row-id"})],un.prototype,"rowId",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean"})],un.prototype,"reverse",void 0),un=(0,Uo.__decorate)([(0,s.customElement)({name:"grid-pro-server-side-datasource"})],un);const hn=s.css`
|
|
1888
1861
|
.ag-icon {
|
|
1889
1862
|
font-family: var(--ag-icon-font-family);
|
|
1890
1863
|
font-size: var(--ag-icon-size);
|
|
@@ -9061,7 +9034,7 @@
|
|
|
9061
9034
|
input[class^='ag-'][type='range']:disabled {
|
|
9062
9035
|
opacity: 0.5;
|
|
9063
9036
|
}
|
|
9064
|
-
`,
|
|
9037
|
+
`,mn=s.css`
|
|
9065
9038
|
.ag-dnd-ghost {
|
|
9066
9039
|
background: var(--ag-header-background-color, var(--ag-background-color, #1f2126));
|
|
9067
9040
|
border: solid 1px;
|
|
@@ -9078,7 +9051,7 @@
|
|
|
9078
9051
|
overflow: hidden;
|
|
9079
9052
|
text-overflow: ellipsis;
|
|
9080
9053
|
}
|
|
9081
|
-
`,
|
|
9054
|
+
`,vn=s.css`
|
|
9082
9055
|
.ag-theme-alpine,
|
|
9083
9056
|
.ag-theme-alpine-dark {
|
|
9084
9057
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -9528,7 +9501,7 @@
|
|
|
9528
9501
|
.ag-theme-alpine-dark {
|
|
9529
9502
|
color-scheme: dark;
|
|
9530
9503
|
}
|
|
9531
|
-
`,
|
|
9504
|
+
`,bn=s.css`
|
|
9532
9505
|
.ag-theme-balham,
|
|
9533
9506
|
.ag-theme-balham-dark {
|
|
9534
9507
|
--ag-balham-active-color: #0091ea;
|
|
@@ -9798,7 +9771,7 @@
|
|
|
9798
9771
|
.ag-theme-balham-dark {
|
|
9799
9772
|
color-scheme: dark;
|
|
9800
9773
|
}
|
|
9801
|
-
`,
|
|
9774
|
+
`,fn=s.css`
|
|
9802
9775
|
.ag-theme-material {
|
|
9803
9776
|
--ag-material-primary-color: #3f51b5;
|
|
9804
9777
|
--ag-material-accent-color: #ff4081;
|
|
@@ -10063,14 +10036,14 @@
|
|
|
10063
10036
|
.ag-theme-material .ag-picker-field-wrapper:focus {
|
|
10064
10037
|
box-shadow: 0 0 0 1px var(--ag-material-primary-color);
|
|
10065
10038
|
}
|
|
10066
|
-
`,
|
|
10039
|
+
`,wn=s.css`
|
|
10040
|
+
${hn}
|
|
10041
|
+
${mn}
|
|
10067
10042
|
${vn}
|
|
10068
10043
|
${bn}
|
|
10069
10044
|
${fn}
|
|
10045
|
+
`,yn=s.css`
|
|
10070
10046
|
${wn}
|
|
10071
|
-
${yn}
|
|
10072
|
-
`,zn=s.css`
|
|
10073
|
-
${xn}
|
|
10074
10047
|
:host {
|
|
10075
10048
|
width: 100%;
|
|
10076
10049
|
height: 100%;
|
|
@@ -10097,14 +10070,14 @@
|
|
|
10097
10070
|
.ag-cell-inline-editing {
|
|
10098
10071
|
height: inherit !important;
|
|
10099
10072
|
}
|
|
10100
|
-
`,
|
|
10073
|
+
`,xn=s.html`
|
|
10101
10074
|
<template>
|
|
10102
10075
|
<span part="grid" class="${e=>e.classNames}">
|
|
10103
10076
|
<slot name="grid" ${(0,s.ref)("gridSlot")}></slot>
|
|
10104
10077
|
<slot></slot>
|
|
10105
10078
|
</span>
|
|
10106
10079
|
</template>
|
|
10107
|
-
`;function Sn(e,a){const r={},t=[],o="field",i="colId";return a.forEach((a=>{const n=e.find((e=>e[o]===a[i]||e[i]&&e[i]===a[i]));if(n){const e=Object.assign(Object.assign({},n),a);r[n[o]]=e,t.push(e)}})),e.forEach((e=>{if(!r.hasOwnProperty(e[o])){const a=Object.assign({},e);r[e[o]]=a,t.push(a)}})),t}Si.O3h.registerModules([Ci.jM,ki.I]);const Cn=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class An extends(Di(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Ur.A)(Ii(a),a),this.insertFontFace(a)}constructor(){super(),this.autoCellRendererByType=!1,this.onlyTemplateColDefs=!1,this.gridAutosizingEnabled=!1,this.addIndex=0,this.asyncAdd=!1,this.asyncRemove=!1,this.asyncUpdate=!0,this.enableCellFlashing=!1,this.enabledRowFlashing=!1,this.enableRowFlashing=!1,this.gridFontFace=_i,this.columnComponentName="grid-pro-column",this.theme=ji.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=Si.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[Cn(a)]=a,e)),{})}connectedCallback(){super.connectedCallback(),this.rehydrationAttempted=!1,this.gridAutosizingEnabled&&((e,a)=>{const r={root:document.documentElement};new IntersectionObserver((e=>{e.forEach((e=>{a(e.intersectionRatio>0)}))}),r).observe(e)})(this,(e=>{e&&this.debouncedColumnAutosize.bind(this)()})),this.shouldRunConnect&&Si.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(Cn(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[Pi.action]:Yo,[Pi.actionsMenu]:Zo,[Pi.boolean]:ai};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout((()=>{var e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()}),5))}removeConfigWidthsToAutosize(e){return e.map((e=>Object.assign(Object.assign({},e),{width:null})))}saveColumnState(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){const e=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");let a=this.columnApi.getColumnState();if(a=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(a):a,0===a.length)return;e[this.persistColumnStateKey]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(e))}}getSavedColumnState(){const e=this.session.getLocalStorageItem("gridOptions");if(this.statePersistanceEnabled()&&e){const a=JSON.parse(e);if(this.persistColumnStateKey in a)return JSON.parse(a[this.persistColumnStateKey])}return[]}restoreColumnState(){var e;this.rehydrationAttempted=!0;const a=this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}cacheFilterConfig(){var e;this.filterConfig=(null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0}restoreCachedFilterConfig(){var e,a;void 0!==this.filterConfig&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(this.filterConfig),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}get gridOptions(){return this.agGridOptions}get gridProGenesisDatasource(){return this.querySelector("grid-pro-genesis-datasource")}set gridOptions(e){const a=this.globalEventListener.bind(this),r=()=>{this.saveColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:t,components:o,defaultColDef:i,onGridReady:n,onFirstDataRendered:l}=e,g=(0,_o.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),d=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0},this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.enableFlashingRows.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProGenesisDatasource?d.columnDefs=t:d.columnDefs=this.applyTemplateDefinitions(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),Si.plv.copyAttributesToGridOptions(d,this.agAttributes));const c={globalEventListener:a};s.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new Si.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}enableFlashingRows(){if(this.enableRowFlashing||this.enabledRowFlashing){if(!this.asyncAdd)return void Ho.warn("Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled");this.gridApi.addEventListener(Si.zW2.EVENT_ASYNC_TRANSACTIONS_FLUSHED,(e=>{e.results.forEach((e=>{e.add.length&&this.gridApi.flashCells({rowNodes:e.add})}))}))}}applyTemplateDefinitions(e,a=!1){return Ho.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;const t=e||[],o=this.querySelectorAll(this.columnComponentName),i=Array.from(o).map((e=>{var a;return null===(a=e.definition)||void 0===a?void 0:a.field}));let n=[];if(n=0===o.length?t:[...t.filter((e=>!i.includes(e.field))),...Array.from(o).map((e=>{var a;if(this.enableCellFlashing&&void 0===e.definition.enableCellChangeFlash&&(e.definition.enableCellChangeFlash=!0),!this.autoCellRendererByType||e.definition.valueFormatter)return e.definition;const r=null===(a=t.find((a=>e.definition.field===a.field)))||void 0===a?void 0:a.valueFormatter;return r&&(e.definition.valueFormatter=r),e.definition}))],this.gridProGenesisDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return Sn(n,e);if((null===(r=this.gridProGenesisDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return Sn(n,this.gridProGenesisDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=Si.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=Si.plv.ALL_PROPERTIES.map((e=>Cn(e)));return e.concat(a)}agAttributeChangedCallback(e,a,r){if(a===r)return;const t=this.agPropertiesMap[e];if(t&&(this.agAttributes[t]=r,this.initialised)){const e={};e[t]={currentValue:r},Si.plv.processOnChange(e,this.gridApi)}}globalEventListener(e,a){const r=e.toLowerCase(),t=new Event(r);t.agGridDetails=a,this.dispatchEvent(t);const o="on"+r;"function"==typeof this[o]&&this[o](t)}insertFontFace(e){const a=Gi[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Fi.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,_o.__decorate)([s.observable],An.prototype,"columnApi",void 0),(0,_o.__decorate)([s.observable],An.prototype,"gridApi",void 0),(0,_o.__decorate)([Ai.z],An.prototype,"session",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],An.prototype,"autoCellRendererByType",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],An.prototype,"onlyTemplateColDefs",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],An.prototype,"gridAutosizingEnabled",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"add-index"})],An.prototype,"addIndex",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],An.prototype,"asyncAdd",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],An.prototype,"asyncRemove",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],An.prototype,"asyncUpdate",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],An.prototype,"enableCellFlashing",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],An.prototype,"enabledRowFlashing",void 0),(0,_o.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],An.prototype,"enableRowFlashing",void 0),(0,_o.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],An.prototype,"persistColumnStateKey",void 0),(0,_o.__decorate)([s.observable],An.prototype,"gridFontFace",void 0),(0,_o.__decorate)([s.attr],An.prototype,"columnComponentName",void 0),(0,_o.__decorate)([s.observable],An.prototype,"eventsAndCallbacks",void 0),(0,_o.__decorate)([s.attr],An.prototype,"headerHeight",void 0),(0,_o.__decorate)([s.attr],An.prototype,"rowHeight",void 0),(0,_o.__decorate)([s.attr],An.prototype,"theme",void 0),(0,_o.__decorate)([s.observable],An.prototype,"classNames",void 0),(0,_o.__decorate)([s.observable],An.prototype,"agGrid",void 0),(0,_o.__decorate)([s.observable],An.prototype,"gridSlot",void 0),(0,_o.__decorate)([s.observable],An.prototype,"gridComponents",void 0);const Tn=void 0,Dn={shadowOptions:void 0},On=An.compose(Object.assign({baseName:"grid-pro",styles:zn,template:kn,shadowOptions:Tn},Dn)),Fn={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#879ba6")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#1f2126")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2e3339")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2b2e34"))},Ln={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#000000")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#181d1f")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#FFFFFF")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#babfc7")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2196f3"))},{create:Mn}=c.DesignToken,Nn={backgroundColor:Mn("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Ln.backgroundSwatch:Fn.backgroundSwatch)),borderColor:Mn("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Ln.borderSwatch:Fn.borderSwatch)),foregroundColor:Mn("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Ln.foregroundSwatch:Fn.foregroundSwatch)),headerForegroundColor:Mn("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Ln.headerForegroundSwatch:Fn.headerForegroundSwatch)),rowHoverColor:Mn("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?Ln.rowHoverSwatch:Fn.rowHoverSwatch))},Rn=s.css`
|
|
10080
|
+
`;function zn(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}xi.O3h.registerModules([zi.jM,yi.I]);const kn=e=>e.replace(/([a-z])([A-Z])|\s+/g,"$1-$2").toLowerCase();class Sn extends(Ci(c.FoundationElement)){themeChanged(e,a){if(!a)return this.classNames="",void this.destroyFontFace();this.classNames=(0,Di.A)($i(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=Bi,this.columnComponentName="grid-pro-column",this.theme=Ri.alpine,this.rehydrationAttempted=!1,this.filterConfig=void 0,this.agAttributes={},this.agPropertiesMap=xi.plv.ALL_PROPERTIES.reduce(((e,a)=>(e[a.toLowerCase()]=a,e[kn(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&&xi.plv.ALL_PROPERTIES.forEach((e=>{Object.defineProperty(this,e,{set:a=>{this.agAttributeChangedCallback(kn(e),void 0,a)},enumerable:!0,configurable:!0})}))}disconnectedCallback(){var e;this.cacheFilterConfig(),super.disconnectedCallback(),this.rehydrationAttempted=!1,this.shouldRunDisconnect&&(null===(e=this.gridApi)||void 0===e||e.destroy())}combineAllGridComponents(e){const a={[Ii.action]:Go,[Ii.actionsMenu]:Wo,[Ii.boolean]:Ko};return Object.assign(Object.assign(Object.assign({},a),e),this.gridComponents)}statePersistanceEnabled(){return!(!this.persistColumnStateKey||0===this.persistColumnStateKey.length)}debouncedColumnAutosize(){this.gridAutosizingEnabled&&(this.debounced&&(clearTimeout(this.debounced),this.debounced=null),this.debounced=setTimeout((()=>{var e;null===(e=this.gridApi)||void 0===e||e.sizeColumnsToFit()}),5))}removeConfigWidthsToAutosize(e){return e.map((e=>Object.assign(Object.assign({},e),{width:null})))}saveColumnState(){if(this.rehydrationAttempted&&this.statePersistanceEnabled()){const e=JSON.parse(this.session.getLocalStorageItem("gridOptions")||"{}");let a=this.columnApi.getColumnState();if(a=this.gridAutosizingEnabled?this.removeConfigWidthsToAutosize(a):a,0===a.length)return;e[this.persistColumnStateKey]=JSON.stringify(a),this.session.setLocalStorageItem("gridOptions",JSON.stringify(e))}}getSavedColumnState(){const e=this.session.getLocalStorageItem("gridOptions");if(this.statePersistanceEnabled()&&e){const a=JSON.parse(e);if(this.persistColumnStateKey in a)return JSON.parse(a[this.persistColumnStateKey])}return[]}restoreColumnState(){var e;this.rehydrationAttempted=!0;const a=this.getSavedColumnState();a&&a.length>0&&(null===(e=this.columnApi)||void 0===e||e.applyColumnState({state:a,applyOrder:!0}))}cacheFilterConfig(){var e;this.filterConfig=(null===(e=this.gridApi)||void 0===e?void 0:e.getFilterModel())||void 0}restoreCachedFilterConfig(){var e,a;void 0!==this.filterConfig&&(null===(e=this.gridApi)||void 0===e||e.setFilterModel(this.filterConfig),null===(a=this.gridApi)||void 0===a||a.onFilterChanged())}get gridOptions(){return this.agGridOptions}get gridProGenesisDatasource(){return this.querySelector("grid-pro-genesis-datasource")}set gridOptions(e){const a=this.globalEventListener.bind(this),r=()=>{this.saveColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()};Array.from(this.attributes).forEach((e=>{const a=this.agPropertiesMap[e.name];a&&(this.agAttributes[a]=e.value)}));const{columnDefs:t,components:o,defaultColDef:i,onGridReady:n,onFirstDataRendered:l}=e,g=(0,Uo.__rest)(e,["columnDefs","components","defaultColDef","onGridReady","onFirstDataRendered"]),d=Object.assign(Object.assign(Object.assign({defaultColDef:Object.assign({enableCellChangeFlash:this.enableCellFlashing,filter:!0,resizable:!0,sortable:!0},i),components:this.combineAllGridComponents(o),suppressDragLeaveHidesColumns:!0},this.eventsAndCallbacks),{onGridReady:a=>{var r,t;this.gridApi=null!==(r=e.api)&&void 0!==r?r:a.api,this.columnApi=null!==(t=e.columnApi)&&void 0!==t?t:a.columnApi,n&&n(a),this.$emit("onGridReady",{event:a,gridId:this.id}),this.restoreColumnState.bind(this)(),this.debouncedColumnAutosize.bind(this)()},onFirstDataRendered:e=>{this.enableFlashingRows.bind(this)(),this.restoreCachedFilterConfig.bind(this)(),l&&l(e)},onColumnPinned:r,onColumnResized:r,onColumnMoved:r,onDisplayedColumnsChanged:r,onFilterChanged:r,onGridSizeChanged:r,onSortChanged:r}),g);this.gridProGenesisDatasource?d.columnDefs=t:d.columnDefs=this.applyTemplateDefinitions(t),this.agGridOptions=Object.assign(Object.assign({},this.agGridOptions),xi.plv.copyAttributesToGridOptions(d,this.agAttributes));const c={globalEventListener:a};s.DOM.queueUpdate((()=>{this.initialised&&this.gridSlot.firstChild&&this.gridSlot.removeChild(this.gridSlot.firstChild),this.agGrid=new xi.rjZ(this.gridSlot,this.agGridOptions,c),this.initialised=!0}))}enableFlashingRows(){if(this.enableRowFlashing||this.enabledRowFlashing){if(!this.asyncAdd)return void Bo.warn("Row Flashing (enableRowFlashing) only works when Grid has async Add Transactions (asyncAdd) enabled");this.gridApi.addEventListener(xi.zW2.EVENT_ASYNC_TRANSACTIONS_FLUSHED,(e=>{e.results.forEach((e=>{e.add.length&&this.gridApi.flashCells({rowNodes:e.add})}))}))}}applyTemplateDefinitions(e,a=!1){return Bo.deprecated("applyTemplateDefinitions","Use `mergeAllColumnDefsAndStates` instead."),this.mergeAllColumnDefsAndStates(e,a)}mergeAllColumnDefsAndStates(e,a=!1){var r;const t=e||[],o=this.querySelectorAll(this.columnComponentName),i=Array.from(o).map((e=>{var a;return null===(a=e.definition)||void 0===a?void 0:a.field}));let n=[];if(n=0===o.length?t:[...t.filter((e=>!i.includes(e.field))),...Array.from(o).map((e=>{var a;if(this.enableCellFlashing&&void 0===e.definition.enableCellChangeFlash&&(e.definition.enableCellChangeFlash=!0),!this.autoCellRendererByType||e.definition.valueFormatter)return e.definition;const r=null===(a=t.find((a=>e.definition.field===a.field)))||void 0===a?void 0:a.valueFormatter;return r&&(e.definition.valueFormatter=r),e.definition}))],this.gridProGenesisDatasource&&a){const e=this.getSavedColumnState();if((null==e?void 0:e.length)>0)return zn(n,e);if((null===(r=this.gridProGenesisDatasource.deferredColumnStates)||void 0===r?void 0:r.length)>0)return zn(n,this.gridProGenesisDatasource.deferredColumnStates)}return n}get observedAttributes(){const e=xi.plv.ALL_PROPERTIES.map((e=>e.toLowerCase())),a=xi.plv.ALL_PROPERTIES.map((e=>kn(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},xi.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=Ui[e]||this.gridFontFace;this.destroyFontFace();const r=(0,Ti.L)(a,`${e}-fonts`);r&&(this.fontFaceDestroy=r)}destroyFontFace(){this.fontFaceDestroy&&(this.fontFaceDestroy(),this.fontFaceDestroy=null)}}(0,Uo.__decorate)([s.observable],Sn.prototype,"columnApi",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"gridApi",void 0),(0,Uo.__decorate)([ki.z],Sn.prototype,"session",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"auto-cell-renderer-by-type",mode:"boolean"})],Sn.prototype,"autoCellRendererByType",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"only-template-col-defs",mode:"boolean"})],Sn.prototype,"onlyTemplateColDefs",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"grid-autosizing"})],Sn.prototype,"gridAutosizingEnabled",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"add-index"})],Sn.prototype,"addIndex",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-add"})],Sn.prototype,"asyncAdd",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-remove"})],Sn.prototype,"asyncRemove",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"async-update"})],Sn.prototype,"asyncUpdate",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-cell-flashing"})],Sn.prototype,"enableCellFlashing",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enabled-row-flashing"})],Sn.prototype,"enabledRowFlashing",void 0),(0,Uo.__decorate)([(0,s.attr)({mode:"boolean",attribute:"enable-row-flashing"})],Sn.prototype,"enableRowFlashing",void 0),(0,Uo.__decorate)([(0,s.attr)({attribute:"persist-column-state-key"})],Sn.prototype,"persistColumnStateKey",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"gridFontFace",void 0),(0,Uo.__decorate)([s.attr],Sn.prototype,"columnComponentName",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"eventsAndCallbacks",void 0),(0,Uo.__decorate)([s.attr],Sn.prototype,"headerHeight",void 0),(0,Uo.__decorate)([s.attr],Sn.prototype,"rowHeight",void 0),(0,Uo.__decorate)([s.attr],Sn.prototype,"theme",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"classNames",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"agGrid",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"gridSlot",void 0),(0,Uo.__decorate)([s.observable],Sn.prototype,"gridComponents",void 0);const Cn=void 0,An={shadowOptions:void 0},Tn=Sn.compose(Object.assign({baseName:"grid-pro",styles:yn,template:xn,shadowOptions:Cn},An)),Dn={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#cccccc")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#879ba6")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#1f2126")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2e3339")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2b2e34"))},On={foregroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#000000")),headerForegroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#181d1f")),backgroundSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#FFFFFF")),borderSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#babfc7")),rowHoverSwatch:p.SwatchRGB.from((0,Me.parseColorHexRGB)("#2196f3"))},{create:Fn}=c.DesignToken,Ln={backgroundColor:Fn("rapid-ag-background-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?On.backgroundSwatch:Dn.backgroundSwatch)),borderColor:Fn("rapid-ag-border-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?On.borderSwatch:Dn.borderSwatch)),foregroundColor:Fn("rapid-ag-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?On.foregroundSwatch:Dn.foregroundSwatch)),headerForegroundColor:Fn("rapid-ag-header-foreground-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?On.headerForegroundSwatch:Dn.headerForegroundSwatch)),rowHoverColor:Fn("rapid-ag-row-hover-color").withDefault((e=>p.baseLayerLuminance.getValueFor(e)===p.StandardLuminance.LightMode?On.rowHoverSwatch:Dn.rowHoverSwatch))},Mn=s.css`
|
|
10108
10081
|
.ag-theme-genesis-rapid,
|
|
10109
10082
|
.ag-theme-genesis-rapid-dark {
|
|
10110
10083
|
--ag-alpine-active-color: #2196f3;
|
|
@@ -10564,50 +10537,50 @@
|
|
|
10564
10537
|
.ag-theme-genesis-rapid-dark {
|
|
10565
10538
|
color-scheme: dark;
|
|
10566
10539
|
}
|
|
10567
|
-
|
|
10568
|
-
${
|
|
10569
|
-
${
|
|
10540
|
+
`,Nn={[Ni.backgroundColor]:Ln.backgroundColor,[Ni.foregroundColor]:Ln.foregroundColor,[Ni.oddRowBackgroundColor]:Ln.backgroundColor,[Ni.headerBackgroundColor]:Ln.backgroundColor,[Ni.headerForegroundColor]:Ln.headerForegroundColor,[Ni.selectedRowBackgroundColor]:Ln.rowHoverColor,[Ni.rowHoverColor]:Ln.rowHoverColor,[Ni.borderColor]:Ln.borderColor,[Ni.rowBorderColor]:Ln.rowHoverColor,[Ni.modalOverlayBackgroundColor]:Ln.backgroundColor,[Ni.inputFocusBoxShadow]:Ln.headerForegroundColor,[Ni.inputFocusBorderColor]:Ln.headerForegroundColor,[Ni.headerColumnResizeHandleColor]:Ln.headerForegroundColor},Rn="ag-theme-genesis-rapid",$n=s.css`
|
|
10541
|
+
${Mn}
|
|
10542
|
+
${ji(Rn,Nn)}
|
|
10570
10543
|
|
|
10571
|
-
.${
|
|
10544
|
+
.${Rn} {
|
|
10572
10545
|
${xe()}
|
|
10573
10546
|
}
|
|
10574
10547
|
|
|
10575
|
-
.${
|
|
10548
|
+
.${Rn} .ag-header {
|
|
10576
10549
|
border-bottom-color: var(--rapid-ag-header-foreground-color);
|
|
10577
10550
|
font-weight: bold;
|
|
10578
10551
|
}
|
|
10579
10552
|
|
|
10580
|
-
.${
|
|
10553
|
+
.${Rn} .ag-root-wrapper {
|
|
10581
10554
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
10582
10555
|
}
|
|
10583
|
-
`,
|
|
10584
|
-
${
|
|
10585
|
-
${
|
|
10556
|
+
`,jn="ag-theme-genesis-rapid-dark",In=s.css`
|
|
10557
|
+
${Mn}
|
|
10558
|
+
${ji(jn,Nn)}
|
|
10586
10559
|
|
|
10587
|
-
.${
|
|
10560
|
+
.${jn} {
|
|
10588
10561
|
${xe()}
|
|
10589
10562
|
}
|
|
10590
10563
|
|
|
10591
|
-
.${
|
|
10564
|
+
.${jn} .ag-header {
|
|
10592
10565
|
border-bottom-color: var(--rapid-ag-header-foreground-color);
|
|
10593
10566
|
font-weight: bold;
|
|
10594
10567
|
}
|
|
10595
10568
|
|
|
10596
|
-
.${
|
|
10569
|
+
.${jn} .ag-cell {
|
|
10597
10570
|
line-height: var(--ag-line-height, 32px);
|
|
10598
10571
|
}
|
|
10599
10572
|
|
|
10600
|
-
.${
|
|
10573
|
+
.${jn} .ag-root-wrapper {
|
|
10601
10574
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
10602
10575
|
}
|
|
10603
|
-
`,
|
|
10576
|
+
`,En=s.css`
|
|
10604
10577
|
/* All the AG themes */
|
|
10605
|
-
${
|
|
10578
|
+
${yn}
|
|
10606
10579
|
|
|
10607
10580
|
/* 100% custom, CSS based, our own name: ag-theme-genesis-rapid */
|
|
10581
|
+
${$n}
|
|
10608
10582
|
${In}
|
|
10609
|
-
|
|
10610
|
-
`,Bn=kn,Gn="ag-theme-genesis-rapid-dark";const _n=Dn,Hn={zeroAgActionRenderer:Jo,zeroAgActionsMenuRenderer:ei,zeroAgBooleanRenderer:ni,zeroAgTextRenderer:bi,zeroAgSelectRenderer:zi,zeroGridPro:class extends An{constructor(){super(...arguments),this.theme=Gn}themeChanged(e,a){(e||a===Gn)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[Pi.action]:qo,[Pi.actionsMenu]:Xo,[Pi.boolean]:ii};(this.theme===jn||this.theme===En)&&(this.headerHeight=null!==(a=e.headerHeight)&&void 0!==a?a:32,this.rowHeight=null!==(r=e.rowHeight)&&void 0!==r?r:32),super.gridOptions=e}}.compose(Object.assign({baseName:"grid-pro",template:Bn,styles:Un,shadowOptions:undefined},_n)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},Yn={foundationGridProActionRenderer:Wo,foundationGridProActionsMenuRenderer:Ko,foundationAgBooleanRenderer:oi,foundationAgTextRenderer:vi,foundationAgTextFieldRenderer:pi,foundationAgSelectRenderer:xi,foundationGridPro:On,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Vn,Qn=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Vn||(Vn={}));const Wn={Roboto:ye,"Segoe UI":'"Segoe UI", Arial, Helvetica, sans-serif',Monospace:'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace',"Times New Roman":'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif',Garamond:'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif',Georgia:'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',Helvetica:'Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif',Verdana:'Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif'},qn=Wn["Segoe UI"],Jn=s.css`
|
|
10583
|
+
`,Pn=xn,Un="ag-theme-genesis-rapid-dark";const Bn=An,Gn={zeroAgActionRenderer:Qo,zeroAgActionsMenuRenderer:Zo,zeroAgBooleanRenderer:ti,zeroAgTextRenderer:hi,zeroAgSelectRenderer:wi,zeroGridPro:class extends Sn{constructor(){super(...arguments),this.theme=Un}themeChanged(e,a){(e||a===Un)&&super.themeChanged(e,a)}set gridOptions(e){var a,r;e.components={[Ii.action]:Vo,[Ii.actionsMenu]:Jo,[Ii.boolean]:ri};(this.theme===Rn||this.theme===jn)&&(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:Pn,styles:En,shadowOptions:undefined},Bn)),register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}},_n={foundationGridProActionRenderer:Yo,foundationGridProActionsMenuRenderer:qo,foundationAgBooleanRenderer:ai,foundationAgTextRenderer:ui,foundationAgTextFieldRenderer:di,foundationAgSelectRenderer:fi,foundationGridPro:Tn,register(e,...a){if(e)for(const r in this)"register"!==r&&this[r]().register(e,...a)}};var Hn,Yn=r(11223);!function(e){e.STYLES_CHANGED="styles-changed",e.DS_CHANGED="design-system-changed",e.APPLY_CUSTOM_DESIGN="apply-custom-design"}(Hn||(Hn={}));const Vn={Roboto:ye,"Segoe UI":'"Segoe UI", Arial, Helvetica, sans-serif',Monospace:'Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace',"Times New Roman":'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif',Garamond:'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif',Georgia:'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',Helvetica:'Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif',Verdana:'Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif'},Qn=Vn["Segoe UI"],Wn=s.css`
|
|
10611
10584
|
${(0,c.display)("block")} :host {
|
|
10612
10585
|
width: 100%;
|
|
10613
10586
|
display: inline-flex;
|
|
@@ -10739,7 +10712,7 @@
|
|
|
10739
10712
|
alpha-button {
|
|
10740
10713
|
margin: 0;
|
|
10741
10714
|
}
|
|
10742
|
-
`,
|
|
10715
|
+
`,qn=s.html`
|
|
10743
10716
|
<template>
|
|
10744
10717
|
<div class="configuration">
|
|
10745
10718
|
${(0,s.when)((e=>!e.customDesignMode),s.html`
|
|
@@ -10947,7 +10920,7 @@
|
|
|
10947
10920
|
</div>
|
|
10948
10921
|
</div>
|
|
10949
10922
|
${(0,s.when)((e=>!e.customDesignMode),s.html`
|
|
10950
|
-
<alpha-checkbox :checked="${(0,
|
|
10923
|
+
<alpha-checkbox :checked="${(0,oi.Z)((e=>e.preserveOptions),"boolean")}">
|
|
10951
10924
|
Preserve selected options when changing design systems
|
|
10952
10925
|
</alpha-checkbox>
|
|
10953
10926
|
`)}
|
|
@@ -10962,7 +10935,7 @@
|
|
|
10962
10935
|
<slot></slot>
|
|
10963
10936
|
</div>
|
|
10964
10937
|
</template>
|
|
10965
|
-
`,
|
|
10938
|
+
`,Jn=({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(Vn).find((a=>Vn[a]===e.fontFamily.bodyFont.$value)),baseFontSize:e.typography.baseFontSize.$value,baseLineHeight:e.typography.baseLineHeight.$value}),Zn=Jn(Ce),Kn={accent:"primary-blue",neutral:"neutral-grey",outline:"primary-gradient"},Xn=Jn(i.designTokens),el={zero:{prefix:"zero",tokenDefaults:Zn,buttons:Kn},alpha:{prefix:"alpha",tokenDefaults:Xn,buttons:{accent:"accent",neutral:"neutral",outline:"outline"}},custom:{prefix:"zero",tokenDefaults:null,buttons:Kn}};let al=class extends s.FASTElement{constructor(){super(...arguments),this.customDesignMode=!1,this.userSelections={},this.ds="zero",this.darkMode=Zn.luminance===p.StandardLuminance.DarkMode,this.luminance=Zn.luminance,this.neutralColor=Zn.neutralColor,this.accentColor=Zn.accentColor,this.bodyFont=Zn.bodyFont,this.density=Zn.density,this.borderRadius=Zn.borderRadius,this.strokeWidth=Zn.strokeWidth,this.designUnit=Zn.designUnit,this.baseFontSize=Zn.baseFontSize,this.baseLineHeight=Zn.baseLineHeight,this.preserveOptions=!0,this.tokenUpdateInProgress=!1,this.changeHandler=e=>{if(e.target instanceof c.RadioGroup||e.target instanceof HTMLInputElement||e.target instanceof p.Combobox||e.target instanceof p.Select){const{name:a,value:r}=e.target;a&&r&&(this[a]=r,this.updateUserSelections(a,r),this.styleUpdate())}else if(e.target instanceof c.Slider){const a=parseInt(e.target.value),r=e.target.name;r&&Number.isInteger(a)&&(this[r]=a,this.updateUserSelections(r,a),this.styleUpdate())}},this.updateUserSelections=(e,a)=>{"ds"===e||this.tokenUpdateInProgress||(this.userSelections[e]=a)},this.modeChangeHandler=e=>{this.darkMode=e.target.checked,this.luminance=this.darkMode?p.StandardLuminance.DarkMode:p.StandardLuminance.LightMode,this.updateUserSelections("luminance",this.luminance),this.styleUpdate()},this.applyCustomDSTokens=e=>{const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=Jn(a);el.custom.tokenDefaults=e,this.setTokensFromDs(e),this.styleUpdate()}))},this.resetChanges=()=>(0,Yn.__awaiter)(this,void 0,void 0,(function*(){this.userSelections={},this.setTokensFromDs(el[this.ds].tokenDefaults),this.styleUpdate()}))}customDesignModeChanged(e,a){return(0,Yn.__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:el[this.ds].prefix,buttonAppearanceAccent:el[this.ds].buttons.accent,buttonAppearanceNeutral:el[this.ds].buttons.neutral,buttonAppearanceOutline:el[this.ds].buttons.outline};this.$emit(Hn.DS_CHANGED,r),this.preserveOptions||(this.userSelections={}),this.setTokensFromDs(el[this.ds].tokenDefaults),this.styleUpdate()}styleUpdate(){const e={accentColor:this.accentColor,neutralColor:this.neutralColor,bodyFont:Vn[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(Hn.STYLES_CHANGED,e)}setTokensFromDs(e){this.tokenUpdateInProgress=!0,Object.keys(e).forEach((a=>{this.preserveOptions&&void 0!==this.userSelections[a]?this[a]=this.userSelections[a]:this[a]=e[a]})),this.darkMode=this.luminance===p.StandardLuminance.DarkMode,s.DOM.queueUpdate((()=>{this.tokenUpdateInProgress=!1}))}getAppName(){return fetch("/api/name").then((e=>e.ok&&e.json())).then((e=>e)).catch((e=>{console.error("Error fetching tokens:",e)}))}connectedCallback(){super.connectedCallback(),this.userSelections={},we(),s.DOM.queueUpdate((()=>{this.styleUpdate()})),document.body.addEventListener(Hn.APPLY_CUSTOM_DESIGN,(e=>{this.applyCustomDSTokens(e)}))}};(0,Yn.__decorate)([(0,s.attr)({mode:"boolean",attribute:"custom-design-mode"})],al.prototype,"customDesignMode",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"designSystems",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"ds",void 0),(0,Yn.__decorate)([s.attr],al.prototype,"darkMode",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"neutralColor",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"accentColor",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"bodyFont",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"density",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"borderRadius",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"strokeWidth",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"designUnit",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"baseFontSize",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"baseLineHeight",void 0),(0,Yn.__decorate)([s.observable],al.prototype,"preserveOptions",void 0),al=(0,Yn.__decorate)([(0,s.customElement)({name:"design-system-editor",template:qn,styles:Wn})],al);const rl=e=>{const a=(e=>{const a=(0,Me.parseColorHexRGB)(e);return a?p.SwatchRGB.from(a):null})(e);return a?p.PaletteRGB.create(a):null},tl=(e,a,r)=>{const t=e.getValueFor(r).match(/^(\d+)([a-z]+)/i),o=t[1],i=t[2];return Number(o)+a+i},ol=(e,a)=>{const r=rl(e.neutralColor);p.neutralPalette.setValueFor(a,r);const t=rl(e.accentColor);p.accentPalette.setValueFor(a,t),p.baseLayerLuminance.setValueFor(a,e.luminance),p.density.setValueFor(a,e.density),p.controlCornerRadius.setValueFor(a,e.borderRadius),p.strokeWidth.setValueFor(a,e.strokeWidth),p.designUnit.setValueFor(a,e.designUnit),p.bodyFont.setValueFor(a,e.bodyFont),p.typeRampBaseFontSize.setValueFor(a,e.baseFontSize),p.typeRampBaseLineHeight.setValueFor(a,e.baseLineHeight),p.typeRampMinus1FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.minusOne,a)),p.typeRampMinus1LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.minusOne,a)),p.typeRampMinus2FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.minusTwo,a)),p.typeRampMinus2LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.minusTwo,a)),p.typeRampPlus1FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusOne,a)),p.typeRampPlus1LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusOne,a)),p.typeRampPlus2FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusTwo,a)),p.typeRampPlus2LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusTwo,a)),p.typeRampPlus3FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusThree,a)),p.typeRampPlus3LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusThree,a)),p.typeRampPlus4FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusFour,a)),p.typeRampPlus4LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusFour,a)),p.typeRampPlus5FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusFive,a)),p.typeRampPlus5LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusFive,a)),p.typeRampPlus6FontSize.setValueFor(a,tl(p.typeRampBaseFontSize,fe.Yd.plusSix,a)),p.typeRampPlus6LineHeight.setValueFor(a,tl(p.typeRampBaseLineHeight,fe.Yd.plusSix,a))},il=s.css`
|
|
10966
10939
|
:host {
|
|
10967
10940
|
background: var(--fill-color);
|
|
10968
10941
|
color: var(--neutral-foreground-rest);
|
|
@@ -11005,7 +10978,7 @@
|
|
|
11005
10978
|
zero-design-system-provider {
|
|
11006
10979
|
display: inline;
|
|
11007
10980
|
}
|
|
11008
|
-
`,
|
|
10981
|
+
`,nl=s.html`
|
|
11009
10982
|
${e=>{return a=e.prefix,s.html`
|
|
11010
10983
|
<template>
|
|
11011
10984
|
<${a}-design-system-provider ${(0,s.ref)("provider")}>
|
|
@@ -11206,7 +11179,7 @@
|
|
|
11206
11179
|
</${a}-design-system-provider>
|
|
11207
11180
|
</template>
|
|
11208
11181
|
`;var a}}
|
|
11209
|
-
`;let
|
|
11182
|
+
`;let ll=class extends s.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.buttonAppearanceAccent="primary-blue",this.buttonAppearanceNeutral="primary-grey",this.buttonAppearanceOutline="primary-gradient"}setDialogEventListeners(){this.showDialogTrigger.addEventListener("click",(()=>this.modal.show()),{passive:!0}),this.closeDialogTrigger.addEventListener("click",(()=>this.modal.close()),{passive:!0})}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Hn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setDialogEventListeners(),p.bodyFont.withDefault(Qn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ol(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.buttonAppearanceAccent=e.detail.buttonAppearanceAccent,this.buttonAppearanceNeutral=e.detail.buttonAppearanceNeutral,this.buttonAppearanceOutline=e.detail.buttonAppearanceOutline,s.DOM.queueUpdate((()=>{this.setDialogEventListeners()}))}};(0,Yn.__decorate)([s.observable],ll.prototype,"modal",void 0),(0,Yn.__decorate)([s.attr],ll.prototype,"prefix",void 0),(0,Yn.__decorate)([s.observable],ll.prototype,"buttonAppearanceAccent",void 0),(0,Yn.__decorate)([s.observable],ll.prototype,"buttonAppearanceNeutral",void 0),(0,Yn.__decorate)([s.observable],ll.prototype,"buttonAppearanceOutline",void 0),(0,Yn.__decorate)([s.observable],ll.prototype,"provider",void 0),ll=(0,Yn.__decorate)([(0,s.customElement)({name:"preview-components",template:nl,styles:il})],ll);const gl=s.css`
|
|
11210
11183
|
.export {
|
|
11211
11184
|
display: flex;
|
|
11212
11185
|
justify-content: center;
|
|
@@ -11217,7 +11190,7 @@
|
|
|
11217
11190
|
display: flex;
|
|
11218
11191
|
justify-content: space-between;
|
|
11219
11192
|
}
|
|
11220
|
-
`,
|
|
11193
|
+
`,dl=s.html`
|
|
11221
11194
|
<template>
|
|
11222
11195
|
<div class="export">
|
|
11223
11196
|
<alpha-button appearance="accent" @click="${e=>e.showModal()}">Save Changes</alpha-button>
|
|
@@ -11238,7 +11211,7 @@
|
|
|
11238
11211
|
</alpha-modal>
|
|
11239
11212
|
</div>
|
|
11240
11213
|
</template>
|
|
11241
|
-
`;let
|
|
11214
|
+
`;let sl=class extends s.FASTElement{constructor(){super(...arguments),this.formatValues=e=>{const a={design_tokens:{color:{accent:{$value:e.accentColor,$type:"color"},neutral:{$value:e.neutralColor,$type:"color"}},fontFamily:{bodyFont:{$value:e.bodyFont,$type:"fontFamily"}},typography:{baseFontSize:{$value:e.baseFontSize,$type:"dimension"},baseLineHeight:{$value:e.baseLineHeight,$type:"dimension"}},mode:{luminance:{$value:e.luminance,$type:"number"}},style:{density:{$value:e.density,$type:"number"},borderRadius:{$value:e.borderRadius,$type:"number"},strokeWidth:{$value:e.strokeWidth,$type:"number"}},space:{designUnit:{$value:e.designUnit,$type:"number"}}}};return JSON.stringify(a,null,3)},this.showModal=()=>this.modal.show(),this.closeModal=()=>this.modal.close(),this.updateTokens=()=>{fetch(`http://localhost:${location.port}/api/tokens`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokens:this.value})}).then((e=>{if(!e.ok)throw new Error(`API request failed with status ${e.status}`);return e.json()})).then((e=>{console.log("Tokens saved successfully:",e),this.$emit(Hn.APPLY_CUSTOM_DESIGN,e.message)})).catch((e=>{console.error("Error saving tokens:",e)})),this.closeModal()}}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hn.STYLES_CHANGED,(e=>{const a=e;this.value=this.formatValues(a.detail)}))}};(0,Yn.__decorate)([s.attr],sl.prototype,"value",void 0),(0,Yn.__decorate)([s.attr],sl.prototype,"tokensPath",void 0),sl=(0,Yn.__decorate)([(0,s.customElement)({name:"design-system-export",template:dl,styles:gl})],sl);const cl=s.css`
|
|
11242
11215
|
.colors {
|
|
11243
11216
|
display: flex;
|
|
11244
11217
|
flex-wrap: wrap;
|
|
@@ -11251,23 +11224,23 @@
|
|
|
11251
11224
|
flex-grow: 1;
|
|
11252
11225
|
height: 20px;
|
|
11253
11226
|
}
|
|
11254
|
-
`,
|
|
11227
|
+
`,pl=s.html`
|
|
11255
11228
|
<ul class="colors">
|
|
11256
11229
|
${(0,s.repeat)((e=>e.swatches),s.html`
|
|
11257
11230
|
<li class="color" style="background-color: ${e=>e.toColorString()}"></li>
|
|
11258
11231
|
`)}
|
|
11259
11232
|
</ul>
|
|
11260
|
-
`;let
|
|
11233
|
+
`;let ul=class extends s.FASTElement{constructor(){super(...arguments),this.swatches=[]}typeChanged(){if(this.type){p[this.type+"Palette"].subscribe({handleChange:e=>{const a=e.token.getValueFor(this);this.swatches=[...a.swatches]}},this)}}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{const e=rl(a[`${this.type}Color`]);this.swatches=[...e.swatches]}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)}))}};(0,Yn.__decorate)([s.observable],ul.prototype,"swatches",void 0),(0,Yn.__decorate)([s.attr],ul.prototype,"type",void 0),ul=(0,Yn.__decorate)([(0,s.customElement)({name:"color-palette",styles:cl,template:pl})],ul);const hl=s.css`
|
|
11261
11234
|
.preview {
|
|
11262
11235
|
width: 40px;
|
|
11263
11236
|
height: 40px;
|
|
11264
11237
|
}
|
|
11265
|
-
`,
|
|
11238
|
+
`,ml=s.html`
|
|
11266
11239
|
<div
|
|
11267
11240
|
class="preview"
|
|
11268
11241
|
style="background-color: ${e=>p[e.tokenName].createCSS()}"
|
|
11269
11242
|
></div>
|
|
11270
|
-
`;let
|
|
11243
|
+
`;let vl=class extends s.FASTElement{};(0,Yn.__decorate)([s.attr],vl.prototype,"tokenName",void 0),vl=(0,Yn.__decorate)([(0,s.customElement)({name:"color-token",styles:hl,template:ml})],vl);const bl=s.css`
|
|
11271
11244
|
.container {
|
|
11272
11245
|
display: flex;
|
|
11273
11246
|
width: 100%;
|
|
@@ -11315,7 +11288,7 @@
|
|
|
11315
11288
|
.container > div:not(:last-child) {
|
|
11316
11289
|
border-right: 1px solid #fafafa;
|
|
11317
11290
|
}
|
|
11318
|
-
`,
|
|
11291
|
+
`,fl=[{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"}]}]}],wl=s.html`
|
|
11319
11292
|
<div class="row">
|
|
11320
11293
|
<div
|
|
11321
11294
|
class="preview"
|
|
@@ -11327,19 +11300,19 @@
|
|
|
11327
11300
|
${(e,a)=>p[e.name].getValueFor(a.parentContext.parentContext.parent.provider).toColorString().toUpperCase()}
|
|
11328
11301
|
</div>
|
|
11329
11302
|
</div>
|
|
11330
|
-
`,
|
|
11303
|
+
`,yl=s.html`
|
|
11331
11304
|
<div class="container" ${(0,s.ref)("provider")}>
|
|
11332
|
-
${(0,s.repeat)((()=>
|
|
11305
|
+
${(0,s.repeat)((()=>fl),s.html`
|
|
11333
11306
|
<div class="column">
|
|
11334
11307
|
<h3 class="header-title">${e=>e.title}</h3>
|
|
11335
11308
|
${(0,s.repeat)((e=>e.subcategories),s.html`
|
|
11336
11309
|
<h4>${e=>e.title}</h4>
|
|
11337
|
-
${(0,s.repeat)((e=>e.tokens),
|
|
11310
|
+
${(0,s.repeat)((e=>e.tokens),wl)}
|
|
11338
11311
|
`)}
|
|
11339
11312
|
</div>
|
|
11340
11313
|
`)}
|
|
11341
11314
|
</div>
|
|
11342
|
-
`;let
|
|
11315
|
+
`;let xl=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hn.STYLES_CHANGED,(e=>{const a=e.detail;ol(a,this.provider)}))}};(0,Yn.__decorate)([s.observable],xl.prototype,"provider",void 0),xl=(0,Yn.__decorate)([(0,s.customElement)({name:"color-tokens",template:yl,styles:bl})],xl);const zl=s.css`
|
|
11343
11316
|
table {
|
|
11344
11317
|
background: var(--neutral-fill-rest);
|
|
11345
11318
|
color: var(--neutral-foreground-rest);
|
|
@@ -11348,7 +11321,7 @@
|
|
|
11348
11321
|
th {
|
|
11349
11322
|
text-align: left;
|
|
11350
11323
|
}
|
|
11351
|
-
`,
|
|
11324
|
+
`,kl=s.html`
|
|
11352
11325
|
<table ${(0,s.ref)("provider")} style="font-family: ${()=>p.bodyFont.createCSS()}">
|
|
11353
11326
|
<colgroup>
|
|
11354
11327
|
<col style="width: 15%;" />
|
|
@@ -11576,7 +11549,7 @@
|
|
|
11576
11549
|
</tr>
|
|
11577
11550
|
</tbody>
|
|
11578
11551
|
</table>
|
|
11579
|
-
`;let
|
|
11552
|
+
`;let Sl=class extends s.FASTElement{connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hn.STYLES_CHANGED,(e=>{const a=e.detail;ol(a,this.provider)}))}};(0,Yn.__decorate)([s.observable],Sl.prototype,"provider",void 0),Sl=(0,Yn.__decorate)([(0,s.customElement)({name:"typography-tokens",template:kl,styles:zl})],Sl);const Cl=s.css`
|
|
11580
11553
|
:host {
|
|
11581
11554
|
background: var(--fill-color);
|
|
11582
11555
|
color: var(--neutral-foreground-rest);
|
|
@@ -11592,7 +11565,7 @@
|
|
|
11592
11565
|
margin-top: 24px;
|
|
11593
11566
|
padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px);
|
|
11594
11567
|
}
|
|
11595
|
-
`,
|
|
11568
|
+
`,Al=s.html`
|
|
11596
11569
|
<template>
|
|
11597
11570
|
<alpha-tabs>
|
|
11598
11571
|
<alpha-tab slot="tab">Components</alpha-tab>
|
|
@@ -11621,7 +11594,7 @@
|
|
|
11621
11594
|
</alpha-tab-panel>
|
|
11622
11595
|
</alpha-tabs>
|
|
11623
11596
|
</template>
|
|
11624
|
-
`;let
|
|
11597
|
+
`;let Tl=class extends s.FASTElement{};Tl=(0,Yn.__decorate)([(0,s.customElement)({name:"design-system-preview",template:Al,styles:Cl})],Tl);const Dl={type:"VerticalLayout",dsPrefix:"zero",elements:[{type:"Group",label:"Group 1",scope:"#/properties/group1",options:{childElements:[{type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/group1/properties/NAME",label:"Name"}]}]}},{type:"Group",label:"Group 2",scope:"#/properties/group2",options:{childElements:[{type:"LayoutVertical2Columns",elements:[{type:"Control",scope:"#/properties/group2/properties/QUANTITY",label:"Quantity"},{type:"Control",scope:"#/properties/group2/properties/PRICE",label:"Price"},{type:"Control",scope:"#/properties/group2/properties/COUNTERPARTY_ID",options:{data:[{name:"Genesis Global",value:"GENESIS"},{name:"Acme Global",value:"ACME"}],valueField:"value",labelField:"name"},label:"Counterparty"},{type:"Control",scope:"#/properties/group2/properties/INSTRUMENT_ID",options:{data:[{name:"Bond",value:"BOND"},{name:"Equity",value:"EQUITY"}],valueField:"value",labelField:"name"},label:"Instrument"},{type:"Control",scope:"#/properties/group2/properties/SIDE",label:"Side"},{type:"Control",scope:"#/properties/group2/properties/TRADE_DATE",label:"Trade Date"},{type:"Control",scope:"#/properties/group2/properties/ACTIVE",label:"Active"}]}]}}]},Ol={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"]}}},Fl={type:"VerticalLayout",dsPrefix:"zero",elements:[{type:"array",scope:"#/properties/users",options:{childUiSchema:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/firstname",label:"First Name"},{type:"Control",scope:"#/properties/lastname",label:"Last Name"},{type:"Control",scope:"#/properties/email",label:"Email"}]}}}]},Ll={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"]}}}},Ml=s.css`
|
|
11625
11598
|
:host {
|
|
11626
11599
|
background: var(--fill-color);
|
|
11627
11600
|
color: var(--neutral-foreground-rest);
|
|
@@ -11652,7 +11625,7 @@
|
|
|
11652
11625
|
zero-design-system-provider {
|
|
11653
11626
|
display: inline;
|
|
11654
11627
|
}
|
|
11655
|
-
|
|
11628
|
+
`,Nl=s.html`
|
|
11656
11629
|
${e=>{return a=e.prefix,s.html`
|
|
11657
11630
|
<template>
|
|
11658
11631
|
<${a}-design-system-provider ${(0,s.ref)("provider")}>
|
|
@@ -11674,7 +11647,7 @@
|
|
|
11674
11647
|
</${a}-design-system-provider>
|
|
11675
11648
|
</template>
|
|
11676
11649
|
`;var a}}
|
|
11677
|
-
`;let
|
|
11650
|
+
`;let Rl=class extends s.FASTElement{constructor(){super(...arguments),this.jsonSchema=Ol,this.uischema=Dl,this.jsonSchemaArray=Ll,this.uiSchemaArray=Fl,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(Hn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Hn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{p.bodyFont.withDefault(Qn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ol(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,this.uischema.dsPrefix=e.detail.prefix,this.uiSchemaArray.dsPrefix=e.detail.prefix}};(0,Yn.__decorate)([s.observable],Rl.prototype,"jsonSchema",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"uischema",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"jsonSchemaArray",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"uiSchemaArray",void 0),(0,Yn.__decorate)([s.attr],Rl.prototype,"prefix",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"provider",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"editedEntity",void 0),(0,Yn.__decorate)([s.observable],Rl.prototype,"editedEntityArray",void 0),Rl=(0,Yn.__decorate)([(0,s.customElement)({name:"preview-form",template:Nl,styles:Ml})],Rl);const $l=s.css`
|
|
11678
11651
|
:host {
|
|
11679
11652
|
background: var(--fill-color);
|
|
11680
11653
|
color: var(--neutral-foreground-rest);
|
|
@@ -11689,7 +11662,7 @@
|
|
|
11689
11662
|
.grid-height {
|
|
11690
11663
|
height: 450px;
|
|
11691
11664
|
}
|
|
11692
|
-
`,
|
|
11665
|
+
`,jl=s.html`
|
|
11693
11666
|
${e=>{return a=e.prefix,s.html`
|
|
11694
11667
|
<template>
|
|
11695
11668
|
<${a}-design-system-provider ${(0,s.ref)("provider")}>
|
|
@@ -11699,5 +11672,5 @@
|
|
|
11699
11672
|
</${a}-design-system-provider>
|
|
11700
11673
|
</template>
|
|
11701
11674
|
`;var a}}
|
|
11702
|
-
`;let
|
|
11703
|
-
//# sourceMappingURL=721.
|
|
11675
|
+
`;let Il=class extends s.FASTElement{constructor(){super(...arguments),this.prefix="zero",this.rowData=[{make:"Toyota",model:"Celica",price:35e3,creationDate:1617624494293,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494295,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1619637452397,isCool:!1},{make:"Audi",model:"A6",price:8e4,creationDate:1617624494293,isCool:!0},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494295,isCool:!0},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1619637452397,isCool:!1},{make:"BMW",model:"Z8",price:9e4,creationDate:1617624494293,isCool:!1},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494295,isCool:!1},{make:"Toyota",model:"Celica",price:35e3,creationDate:1619637452397,isCool:!0},{make:"Ford",model:"Mondeo",price:32e3,creationDate:1617624494293,isCool:!1},{make:"Porsche",model:"Boxter",price:72e3,creationDate:1617624494295,isCool:!0},{make:"Audi",model:"A6",price:8e4,creationDate:1619637452397,isCool:!1},{make:"Renault",model:"Clio",price:2e4,creationDate:1617624494293,isCool:!1},{make:"Chevrolet",model:"Camaro",price:4e4,creationDate:1617624494295,isCool:!0},{make:"BMW",model:"Z8",price:9e4,creationDate:1619637452397,isCool:!0},{make:"Suzuki",model:"Jimny",price:23e3,creationDate:1617624494293,isCool:!0}],this.columnDefs=[{field:"make"},{field:"model"},{field:"price"},{field:"creationDate"},{field:"isCool"}],this.gridOptions={defaultColDef:{resizable:!0,filter:!0},debug:!1,columnDefs:this.columnDefs,rowData:this.rowData}}setGridOptions(){this.grid.gridOptions=this.gridOptions}connectedCallback(){super.connectedCallback(),document.body.addEventListener(Hn.STYLES_CHANGED,(e=>{this.handleStyleChanges(e)})),document.body.addEventListener(Hn.DS_CHANGED,(e=>{this.handleDSChanges(e)})),s.DOM.queueUpdate((()=>{this.setGridOptions(),p.bodyFont.withDefault(Qn)}))}handleStyleChanges(e){const a=e.detail;a&&s.DOM.queueUpdate((()=>{ol(a,this.provider)}))}handleDSChanges(e){this.prefix=e.detail.prefix,s.DOM.queueUpdate((()=>{this.setGridOptions()}))}};(0,Yn.__decorate)([s.observable],Il.prototype,"grid",void 0),(0,Yn.__decorate)([s.attr],Il.prototype,"prefix",void 0),(0,Yn.__decorate)([s.observable],Il.prototype,"provider",void 0),(0,Yn.__decorate)([s.observable],Il.prototype,"rowData",void 0),(0,Yn.__decorate)([s.observable],Il.prototype,"columnDefs",void 0),(0,Yn.__decorate)([s.observable],Il.prototype,"gridOptions",void 0),Il=(0,Yn.__decorate)([(0,s.customElement)({name:"preview-grid",template:jl,styles:$l})],Il),((e,a="zero")=>{e&&(0,R.provideTokens)(t,o,e);const r=c.DesignSystem.getOrCreate(e).withPrefix(a);return(0,R.createDesignSystemProxy)(r)})().register(Po,Gn),(0,i.provideDesignSystem)().register(i.baseComponents,_n)}}]);
|
|
11676
|
+
//# sourceMappingURL=721.594f4eed2e06393edd7842628c7b7be6.js.map
|