@genesislcap/design-system-configurator 14.104.0 → 14.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/269.269.97f573d8143bd782d8de.js +4 -0
- package/dist/269.7a20416c239baf1583bc46e78dfa5f54.js.map +1 -0
- package/dist/{51.51.acd8104ae9385efa62be.js → 303.303.2d39d494024cf31dbbd8.js} +234 -96
- package/dist/303.56cc215ec5c9a04c3433b2ae95c38d3f.js.map +1 -0
- package/dist/{371.371.e435400bf3cabd81f364.js → 371.371.015144ecee851c041255.js} +1 -1
- package/dist/566.184c6fcf2eabba14b3ccb9bd74822002.js.map +1 -0
- package/dist/{916.916.7d4c634cf9a1a4236a82.js → 566.566.8529c1c077ec34dd76d1.js} +170 -102
- package/dist/{755.755.903bb4e969b3c4e50d34.js → 755.755.ee5fb50ff01fc9d78c0b.js} +1 -1
- package/dist/{8.5394062b4834c8f5d05d079dfd31f253.js.map → 8.17fb5c725550f75ede773e6c9c1c4e98.js.map} +1 -1
- package/dist/{8.8.324207f314134779c4a2.js → 8.8.c69be000e53cfcffe74c.js} +2 -2
- package/dist/designSystemConfigurator.05470705b39ceb981475549871744439.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.c6003f57a95e74eabcb2.js +2 -0
- package/dist/main.f8d258e8f6e1dcc5d4b5667cb60bb20b.js.map +1 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +7 -7
- package/dist/361.361.a6e61bd781aa9e8bbb08.js +0 -4
- package/dist/361.7f53beccc36aa326237c570a2d5229d3.js.map +0 -1
- package/dist/51.f2cb8ab298867b1d7766d1df3335ae0d.js.map +0 -1
- package/dist/916.07567837e9fcdd5bc3c48089a9f8b8d9.js.map +0 -1
- package/dist/designSystemConfigurator.1f596d0c0fbd51beaf6b315e1485a4c6.js.map +0 -1
- package/dist/main.032bb1da8c9d3e31b00cb5349535e7da.js.map +0 -1
- package/dist/main.2965d69d95d298293c02.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[51],{50051:(e,t,o)=>{o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>T,Anchor:()=>E,AnchoredRegion:()=>j,Avatar:()=>W,Badge:()=>J,Banner:()=>de,BaseDatasource:()=>ot,Breadcrumb:()=>he,BreadcrumbItem:()=>ye,Button:()=>De,CSSVarsTokenMapper:()=>Fd,Calendar:()=>Le,Card:()=>Me,Checkbox:()=>Ve,Combobox:()=>xt,ConnectionIndicator:()=>Ot,DEFUALT_FILTER_BAR_COLUMNS:()=>Ia,DataGrid:()=>At,DataGridCell:()=>Mt,DataGridDatasource:()=>Sd,DataGridRow:()=>Gt,DatePicker:()=>uo,Dialog:()=>ci,DialogElement:()=>di,Disclosure:()=>mi,Divider:()=>wi,DropdownMenu:()=>ki,ErrorBanner:()=>Ei,ErrorBoundary:()=>Xi,ErrorBoundaryEvent:()=>Ii,ErrorDialog:()=>ta,FaPrefixFromStyle:()=>Mn,FileUpload:()=>va,Filter:()=>Oa,FilterBar:()=>Ma,FilterEvents:()=>Ca,FlexLayout:()=>Ua,FlexMediaQueriesEnum:()=>Pa,Flipper:()=>Xa,Flyout:()=>an,FoundationDesignSystemProvider:()=>ei,FoundationRouter:()=>Bd,GridLayout:()=>vn,GridLayoutItem:()=>wn,GridMediaQueriesEnum:()=>rn,HorizontalScroll:()=>Sn,Icon:()=>Hn,Listbox:()=>Gn,ListboxOption:()=>qn,Menu:()=>es,MenuItem:()=>ss,Modal:()=>ms,Multiselect:()=>Ss,MultiselectDatasource:()=>ys,NotificationListener:()=>Id,NumberField:()=>ks,OptionsDatasource:()=>gt,Popper:()=>Ns,Progress:()=>Bs,ProgressRing:()=>Ws,Radio:()=>Js,RadioGroup:()=>nl,SegmentedControl:()=>ul,SegmentedItem:()=>fl,Select:()=>Fl,Skeleton:()=>kl,Slider:()=>Ml,SliderLabel:()=>Vl,Snackbar:()=>Zl,Switch:()=>tr,Tab:()=>lr,TabPanel:()=>hr,Tabs:()=>yr,TextArea:()=>Dr,TextField:()=>Rr,Toast:()=>Br,Toolbar:()=>Ur,Tooltip:()=>Zr,TreeItem:()=>id,TreeView:()=>dd,UrlInput:()=>bd,accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,accentPaletteValue:()=>Vo,actionsMenuBaseStyles:()=>$,baseComponents:()=>wd,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>Uo,black:()=>vo,bodyFont:()=>s.bodyFont,closeIcon:()=>ai,configureDesignSystem:()=>Go,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>Wo,createDesignSystemProxy:()=>xd,createFormData:()=>ra,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>I,defaultAnchoredRegionConfig:()=>G,defaultAvatarConfig:()=>X,defaultBadgeConfig:()=>te,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>xe,defaultButtonConfig:()=>Ce,defaultCalendarConfig:()=>Re,defaultCardConfig:()=>Pe,defaultCheckboxConfig:()=>Ue,defaultComboboxConfig:()=>Ft,defaultDataGridCellConfig:()=>Pt,defaultDataGridConfig:()=>Et,defaultDataGridRowConfig:()=>zt,defaultDatePickerConfig:()=>co,defaultDialogConfig:()=>ri,defaultDisclosureConfig:()=>gi,defaultDividerConfig:()=>$i,defaultFileUploadConfig:()=>fa,defaultFillColor:()=>fo,defaultFlexLayoutConfig:()=>za,defaultFlipperConfig:()=>Za,defaultFlyoutConfig:()=>sn,defaultGridLayoutConfig:()=>hn,defaultGridLayoutItemConfig:()=>yn,defaultHorizontalScrollConfig:()=>_n,defaultIconConfig:()=>In,defaultListboxConfig:()=>zn,defaultListboxOptionConfig:()=>Kn,defaultMenuConfig:()=>os,defaultMenuItemConfig:()=>rs,defaultModalConfig:()=>hs,defaultMultiselectConfig:()=>Fs,defaultNeutralForegroundContrast:()=>To,defaultNumberFieldConfig:()=>Ls,defaultProgressConfig:()=>Vs,defaultProgressRingConfig:()=>Xs,defaultRadioConfig:()=>tl,defaultRadioGroupConfig:()=>ll,defaultSegmentedControlConfig:()=>hl,defaultSegmentedItemConfig:()=>yl,defaultSelectConfig:()=>Dl,defaultSkeletonConfig:()=>Ll,defaultSliderConfig:()=>Pl,defaultSliderLabelConfig:()=>Ul,defaultSwitchConfig:()=>ir,defaultTabConfig:()=>dr,defaultTabPanelConfig:()=>vr,defaultTabsConfig:()=>xr,defaultTextAreaConfig:()=>Cr,defaultTextFieldConfig:()=>Nr,defaultToastConfig:()=>jr,defaultToolbarConfig:()=>Wr,defaultTooltipConfig:()=>Jr,defaultTreeItemConfig:()=>nd,defaultTreeViewConfig:()=>ud,defaultUrlInputConfig:()=>fd,defineFactory:()=>Hd,density:()=>s.density,designToken:()=>No,designUnit:()=>s.designUnit,designUnitValue:()=>qo,direction:()=>s.direction,directionValue:()=>Yo,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>ca,dropdownMenuBaseStyles:()=>Si,errorDialogTemplate:()=>Ji,extractMenuItems:()=>_i,fillColor:()=>s.fillColor,filterBarTemplate:()=>Ea,flyoutAnimationTime:()=>Ja,focusStrokeInner:()=>s.focusStrokeInner,focusStrokeOuter:()=>s.focusStrokeOuter,focusStrokeWidth:()=>s.focusStrokeWidth,foregroundOnAccentActive:()=>s.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>s.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>s.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>s.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>s.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>s.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>s.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>s.foregroundOnAccentRestLarge,foundationAccordion:()=>h,foundationAccordionItem:()=>y,foundationAccordionItemShadowOptions:()=>f,foundationAccordionItemStyles:()=>m,foundationAccordionItemTemplate:()=>v,foundationAccordionShadowOptions:()=>u,foundationAccordionStyles:()=>r,foundationAccordionTemplate:()=>d,foundationActionsMenu:()=>L,foundationActionsMenuStyles:()=>F,foundationActionsMenuTemplate:()=>k,foundationAnchor:()=>M,foundationAnchorShadowOptions:()=>N,foundationAnchorStyles:()=>A,foundationAnchorTemplate:()=>R,foundationAnchoredRegion:()=>V,foundationAnchoredRegionShadowOptions:()=>B,foundationAnchoredRegionStyles:()=>P,foundationAnchoredRegionTemplate:()=>H,foundationAvatar:()=>K,foundationAvatarShadowOptions:()=>q,foundationAvatarStyles:()=>z,foundationAvatarTemplate:()=>U,foundationBadge:()=>oe,foundationBadgeShadowOptions:()=>ee,foundationBadgeStyles:()=>Z,foundationBadgeTemplate:()=>Q,foundationBanner:()=>ce,foundationBannerShadowOptions:()=>re,foundationBannerStyles:()=>ne,foundationBannerTemplate:()=>le,foundationBreadcrumb:()=>ge,foundationBreadcrumbItem:()=>$e,foundationBreadcrumbItemShadowOptions:()=>we,foundationBreadcrumbItemStyles:()=>fe,foundationBreadcrumbItemTemplate:()=>be,foundationBreadcrumbShadowOptions:()=>me,foundationBreadcrumbStyles:()=>ue,foundationBreadcrumbTemplate:()=>pe,foundationButton:()=>Oe,foundationButtonShadowOptions:()=>_e,foundationButtonStyles:()=>Fe,foundationButtonTemplate:()=>Se,foundationCalendar:()=>Ee,foundationCalendarShadowOptions:()=>Ae,foundationCalendarStyles:()=>ke,foundationCalendarTemplate:()=>Te,foundationCard:()=>je,foundationCardShadowOptions:()=>He,foundationCardStyles:()=>Ne,foundationCardTemplate:()=>Ie,foundationCheckbox:()=>Ye,foundationCheckboxShadowOptions:()=>ze,foundationCheckboxStyles:()=>Be,foundationCheckboxTemplate:()=>Ge,foundationCombobox:()=>St,foundationComboboxShadowOptions:()=>$t,foundationComboboxStyles:()=>ft,foundationComboboxTemplate:()=>bt,foundationConnectionIndicator:()=>kt,foundationConnectionIndicatorStyles:()=>_t,foundationConnectionIndicatorTemplate:()=>Ct,foundationDataGrid:()=>Nt,foundationDataGridCell:()=>jt,foundationDataGridCellShadowOptions:()=>Ht,foundationDataGridCellStyles:()=>It,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>Ut,foundationDataGridRowShadowOptions:()=>Vt,foundationDataGridRowStyles:()=>Bt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>Rt,foundationDataGridStyles:()=>Tt,foundationDataGridTemplate:()=>Lt,foundationDatePicker:()=>po,foundationDatePickerShadowOptions:()=>ro,foundationDatePickerStyles:()=>no,foundationDatePickerTemplate:()=>lo,foundationDesignSystemProvider:()=>ti,foundationDialog:()=>ui,foundationDialogShadowOptions:()=>li,foundationDialogStyles:()=>ii,foundationDialogTemplate:()=>si,foundationDisclosure:()=>fi,foundationDisclosureShadowOptions:()=>vi,foundationDisclosureStyles:()=>pi,foundationDisclosureTemplate:()=>hi,foundationDivider:()=>Fi,foundationDividerShadowOptions:()=>xi,foundationDividerStyles:()=>bi,foundationDividerTemplate:()=>yi,foundationDropdownMenu:()=>Ti,foundationDropdownMenuStyles:()=>Di,foundationDropdownMenuTemplate:()=>Oi,foundationErrorBanner:()=>Ni,foundationErrorBannerShadowOptions:()=>Ri,foundationErrorBannerTemplate:()=>Ai,foundationErrorBoundary:()=>Ki,foundationErrorBoundaryShadowOptions:()=>qi,foundationErrorBoundaryTemplate:()=>Wi,foundationErrorDialog:()=>oa,foundationErrorDialogShadowOptions:()=>ea,foundationErrorDialogStyles:()=>Zi,foundationFileUpload:()=>ba,foundationFileUploadShadowOptions:()=>ga,foundationFileUploadStyles:()=>na,foundationFileUploadTemplate:()=>la,foundationFilter:()=>ka,foundationFilterBar:()=>Ha,foundationFilterBarStyles:()=>La,foundationFilterBarTemplate:()=>Na,foundationFilterStyles:()=>ya,foundationFilterTemplate:()=>_a,foundationFlexLayout:()=>Ya,foundationFlexLayoutShadowOptions:()=>Va,foundationFlexLayoutStyles:()=>Ba,foundationFlexLayoutTemplate:()=>Ga,foundationFlipper:()=>Qa,foundationFlipperShadowOptions:()=>Ka,foundationFlipperStyles:()=>Wa,foundationFlipperTemplate:()=>qa,foundationFlyout:()=>ln,foundationFlyoutShadowOptions:()=>nn,foundationFlyoutStyles:()=>en,foundationFlyoutTemplate:()=>on,foundationGridLayout:()=>gn,foundationGridLayoutItem:()=>xn,foundationGridLayoutItemShadowOptions:()=>bn,foundationGridLayoutItemTemplate:()=>fn,foundationGridLayoutShadowOptions:()=>pn,foundationGridLayoutStyles:()=>cn,foundationGridLayoutTemplate:()=>un,foundationHorizontalScroll:()=>Cn,foundationHorizontalScrollShadowOptions:()=>Dn,foundationHorizontalScrollStyles:()=>$n,foundationHorizontalScrollTemplate:()=>Fn,foundationIcon:()=>Pn,foundationIconShadowOptions:()=>Nn,foundationIconStyles:()=>Rn,foundationIconTemplate:()=>En,foundationListbox:()=>Un,foundationListboxOption:()=>Zn,foundationListboxOptionShadowOptions:()=>Xn,foundationListboxOptionStyles:()=>Yn,foundationListboxOptionTemplate:()=>Wn,foundationListboxShadowOptions:()=>Vn,foundationListboxStyles:()=>jn,foundationListboxTemplate:()=>Bn,foundationMenu:()=>is,foundationMenuItem:()=>ds,foundationMenuItemShadowOptions:()=>ls,foundationMenuItemStyles:()=>as,foundationMenuItemTemplate:()=>ns,foundationMenuShadowOptions:()=>ts,foundationMenuStyles:()=>Qn,foundationMenuTemplate:()=>Jn,foundationModal:()=>vs,foundationModalShadowOptions:()=>ps,foundationModalStyles:()=>cs,foundationModalTemplate:()=>us,foundationMultiselect:()=>Ds,foundationMultiselectShadowOptions:()=>$s,foundationNotificationListener:()=>Md,foundationNotificationListenerShadowOptions:()=>Nd,foundationNotificationListenerTemplate:()=>Dd,foundationNumberField:()=>As,foundationNumberFieldShadowOptions:()=>Ts,foundationNumberFieldStyles:()=>Cs,foundationNumberFieldTemplate:()=>Os,foundationPopper:()=>Hs,foundationProgress:()=>zs,foundationProgressRing:()=>Ks,foundationProgressRingShadowOptions:()=>qs,foundationProgressRingStyles:()=>Us,foundationProgressRingTemplate:()=>Ys,foundationProgressShadowOptions:()=>Gs,foundationProgressStyles:()=>Ps,foundationProgressTemplate:()=>js,foundationRadio:()=>ol,foundationRadioGroup:()=>rl,foundationRadioGroupShadowOptions:()=>sl,foundationRadioGroupStyles:()=>il,foundationRadioGroupTemplate:()=>al,foundationRadioShadowOptions:()=>el,foundationRadioStyles:()=>Zs,foundationRadioTemplate:()=>Qs,foundationSegmentedControl:()=>ml,foundationSegmentedControlShadowOptions:()=>pl,foundationSegmentedControlStyles:()=>dl,foundationSegmentedControlTemplate:()=>cl,foundationSegmentedItem:()=>wl,foundationSegmentedItemShadowOptions:()=>bl,foundationSegmentedItemStyles:()=>vl,foundationSegmentedItemTemplate:()=>gl,foundationSelect:()=>_l,foundationSelectShadowOptions:()=>Sl,foundationSelectStyles:()=>xl,foundationSelectTemplate:()=>$l,foundationSkeleton:()=>Al,foundationSkeletonShadowOptions:()=>Tl,foundationSkeletonStyles:()=>Cl,foundationSkeletonTemplate:()=>Ol,foundationSlider:()=>jl,foundationSliderLabel:()=>Yl,foundationSliderLabelShadowOptions:()=>zl,foundationSliderLabelStyles:()=>Bl,foundationSliderLabelTemplate:()=>Gl,foundationSliderShadowOptions:()=>Hl,foundationSliderStyles:()=>Rl,foundationSliderTemplate:()=>Il,foundationSnackbar:()=>Ql,foundationSnackbarShadowOptions:()=>Kl,foundationSnackbarStyles:()=>Wl,foundationSnackbarTemplate:()=>Xl,foundationSwitch:()=>ar,foundationSwitchShadowOptions:()=>or,foundationSwitchStyles:()=>Jl,foundationSwitchTemplate:()=>er,foundationTab:()=>cr,foundationTabPanel:()=>gr,foundationTabPanelShadowOptions:()=>mr,foundationTabPanelStyles:()=>ur,foundationTabPanelTemplate:()=>pr,foundationTabShadowOptions:()=>rr,foundationTabStyles:()=>nr,foundationTabTemplate:()=>sr,foundationTabs:()=>$r,foundationTabsShadowOptions:()=>wr,foundationTabsStyles:()=>fr,foundationTabsTemplate:()=>br,foundationTextArea:()=>Or,foundationTextAreaShadowOptions:()=>_r,foundationTextAreaStyles:()=>Fr,foundationTextAreaTemplate:()=>Sr,foundationTextField:()=>Ir,foundationTextFieldShadowOptions:()=>Er,foundationTextFieldStyles:()=>Lr,foundationTextFieldTemplate:()=>Ar,foundationToast:()=>Gr,foundationToastShadowOptions:()=>Pr,foundationToastStyles:()=>Mr,foundationToastTemplate:()=>Hr,foundationToolbar:()=>qr,foundationToolbarShadowOptions:()=>Yr,foundationToolbarStyles:()=>Vr,foundationToolbarTemplate:()=>zr,foundationTooltip:()=>ed,foundationTooltipShadowOptions:()=>Qr,foundationTooltipStyles:()=>Xr,foundationTooltipTemplate:()=>Kr,foundationTreeItem:()=>sd,foundationTreeItemShadowOptions:()=>ad,foundationTreeItemStyles:()=>td,foundationTreeItemTemplate:()=>od,foundationTreeView:()=>pd,foundationTreeViewShadowOptions:()=>cd,foundationTreeViewStyles:()=>ld,foundationTreeViewTemplate:()=>rd,foundationUrlInput:()=>yd,foundationUrlInputShadowOptions:()=>gd,foundationUrlInputStyles:()=>hd,foundationUrlInputTemplate:()=>vd,fuiAccentPalette:()=>_o,fuiAccentSwatch:()=>Do,fuiCardFillColor:()=>ko,fuiCardForegroundColor:()=>Ao,fuiDefaultCardFillColor:()=>yo,fuiDefaultCardPalette:()=>wo,fuiFillColor:()=>Oo,fuiNeutralPalette:()=>Fo,fuiNeutralSwatch:()=>$o,getBannerTemplate:()=>se,getDefaultConfig:()=>Po,getDialogTemplate:()=>ni,getDropdownMenuTemplate:()=>Ci,getErrorDialogTemplate:()=>Qi,getExports:()=>jo,getFontawesomeIconsCss:()=>An,getPrefixedDatePicker:()=>so,getPrefixedErrorBanner:()=>Li,getPrefixedFileUpload:()=>sa,getPrefixedFilterTemplate:()=>Da,getPrefixedFlyout:()=>tn,getPrefixedMultiselect:()=>ws,getPrefixedSnackbar:()=>ql,getPrefixedUrlInput:()=>md,getTypeRampValue:()=>Bo,jsonConverter:()=>Es,mapType:()=>Aa,maxheight:()=>fs,media:()=>Y,menuTemplate:()=>C,mixinFoundationFontFamily:()=>Ko,multiselectStyles:()=>bs,multiselectTemplate:()=>xs,neutralFillActive:()=>s.neutralFillActive,neutralFillActiveDelta:()=>s.neutralFillActiveDelta,neutralFillFocus:()=>s.neutralFillFocus,neutralFillFocusDelta:()=>s.neutralFillFocusDelta,neutralFillHover:()=>s.neutralFillHover,neutralFillHoverDelta:()=>s.neutralFillHoverDelta,neutralFillInputActive:()=>s.neutralFillInputActive,neutralFillInputActiveDelta:()=>s.neutralFillInputActiveDelta,neutralFillInputFocus:()=>s.neutralFillInputFocus,neutralFillInputFocusDelta:()=>s.neutralFillInputFocusDelta,neutralFillInputHover:()=>s.neutralFillInputHover,neutralFillInputHoverDelta:()=>s.neutralFillInputHoverDelta,neutralFillInputRest:()=>s.neutralFillInputRest,neutralFillInputRestDelta:()=>s.neutralFillInputRestDelta,neutralFillLayerRest:()=>s.neutralFillLayerRest,neutralFillLayerRestDelta:()=>s.neutralFillLayerRestDelta,neutralFillRest:()=>s.neutralFillRest,neutralFillRestDelta:()=>s.neutralFillRestDelta,neutralFillStealthActive:()=>s.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>s.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>s.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>s.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>s.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>s.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>s.neutralFillStealthRest,neutralFillStealthRestDelta:()=>s.neutralFillStealthRestDelta,neutralFillStrongActive:()=>s.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>s.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>s.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>s.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>s.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>s.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>s.neutralFillStrongRest,neutralFillStrongRestDelta:()=>s.neutralFillStrongRestDelta,neutralForeground:()=>Lo,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralPaletteValue:()=>zo,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,paletteFromHex:()=>Mo,provideDesignSystem:()=>$d,provideTokens:()=>Eo,registerFoundationDesignSystem:()=>Gd,singleOptionTemplate:()=>O,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>Io,tagFor:()=>Pd,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight,uploadFiles:()=>da,white:()=>mo});var i={};o.r(i),o.d(i,{accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,bodyFont:()=>s.bodyFont,controlCornerRadius:()=>s.controlCornerRadius,defaultNeutralForegroundContrast:()=>To,density:()=>s.density,designUnit:()=>s.designUnit,direction:()=>s.direction,disabledOpacity:()=>s.disabledOpacity,fillColor:()=>s.fillColor,focusStrokeInner:()=>s.focusStrokeInner,focusStrokeOuter:()=>s.focusStrokeOuter,focusStrokeWidth:()=>s.focusStrokeWidth,foregroundOnAccentActive:()=>s.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>s.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>s.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>s.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>s.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>s.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>s.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>s.foregroundOnAccentRestLarge,fuiCardFillColor:()=>ko,fuiCardForegroundColor:()=>Ao,fuiFillColor:()=>Oo,neutralFillActive:()=>s.neutralFillActive,neutralFillActiveDelta:()=>s.neutralFillActiveDelta,neutralFillFocus:()=>s.neutralFillFocus,neutralFillFocusDelta:()=>s.neutralFillFocusDelta,neutralFillHover:()=>s.neutralFillHover,neutralFillHoverDelta:()=>s.neutralFillHoverDelta,neutralFillInputActive:()=>s.neutralFillInputActive,neutralFillInputActiveDelta:()=>s.neutralFillInputActiveDelta,neutralFillInputFocus:()=>s.neutralFillInputFocus,neutralFillInputFocusDelta:()=>s.neutralFillInputFocusDelta,neutralFillInputHover:()=>s.neutralFillInputHover,neutralFillInputHoverDelta:()=>s.neutralFillInputHoverDelta,neutralFillInputRest:()=>s.neutralFillInputRest,neutralFillInputRestDelta:()=>s.neutralFillInputRestDelta,neutralFillLayerRest:()=>s.neutralFillLayerRest,neutralFillLayerRestDelta:()=>s.neutralFillLayerRestDelta,neutralFillRest:()=>s.neutralFillRest,neutralFillRestDelta:()=>s.neutralFillRestDelta,neutralFillStealthActive:()=>s.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>s.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>s.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>s.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>s.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>s.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>s.neutralFillStealthRest,neutralFillStealthRestDelta:()=>s.neutralFillStealthRestDelta,neutralFillStrongActive:()=>s.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>s.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>s.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>s.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>s.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>s.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>s.neutralFillStrongRest,neutralFillStrongRestDelta:()=>s.neutralFillStrongRestDelta,neutralForeground:()=>Lo,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,strokeWidth:()=>s.strokeWidth,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight});var a={};o.r(a),o.d(a,{accentPaletteValue:()=>Vo,baseLayerLuminanceValue:()=>Uo,controlCornerRadiusValue:()=>Wo,designUnitValue:()=>qo,directionValue:()=>Yo,neutralPaletteValue:()=>zo});var n=o(75951),s=o(13896),l=o(83147);const r=(e,t)=>l.css`
|
|
1
|
+
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[303],{30303:(e,t,o)=>{o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>T,Anchor:()=>R,AnchoredRegion:()=>j,Avatar:()=>W,Badge:()=>J,Banner:()=>de,BaseDatasource:()=>ot,Breadcrumb:()=>he,BreadcrumbItem:()=>ye,Button:()=>_e,CSSVarsTokenMapper:()=>Bd,Calendar:()=>Ae,Card:()=>Me,Checkbox:()=>Ge,Combobox:()=>xt,ConnectionIndicator:()=>Ot,DEFUALT_FILTER_BAR_COLUMNS:()=>Na,DataGrid:()=>Lt,DataGridCell:()=>Mt,DataGridDatasource:()=>Vd,DataGridRow:()=>Vt,DatePicker:()=>uo,Dialog:()=>ci,DialogElement:()=>di,Disclosure:()=>mi,Divider:()=>wi,DropdownMenu:()=>ki,ErrorBanner:()=>Ri,ErrorBoundary:()=>Xi,ErrorBoundaryEvent:()=>Ni,ErrorDialog:()=>ta,FaPrefixFromStyle:()=>Mn,FileUpload:()=>va,Filter:()=>Oa,FilterBar:()=>Ma,FilterEvents:()=>Da,FlexLayout:()=>Ua,FlexMediaQueriesEnum:()=>Ha,Flipper:()=>Xa,Flyout:()=>an,FoundationDesignSystemProvider:()=>ei,FoundationRouter:()=>nc,GridLayout:()=>vn,GridLayoutItem:()=>wn,GridMediaQueriesEnum:()=>rn,HorizontalScroll:()=>Fn,Icon:()=>Pn,Listbox:()=>Vn,ListboxOption:()=>qn,Menu:()=>es,MenuItem:()=>ss,Modal:()=>ms,Multiselect:()=>Fs,MultiselectDatasource:()=>ys,NotificationListener:()=>ec,NumberField:()=>ks,OptionsDatasource:()=>gt,Popper:()=>Is,Progress:()=>Bs,ProgressRing:()=>Ws,Radio:()=>Js,RadioGroup:()=>nl,SegmentedControl:()=>ul,SegmentedItem:()=>fl,Select:()=>Sl,Skeleton:()=>kl,Slider:()=>Ml,SliderLabel:()=>Gl,Snackbar:()=>Zl,Stepper:()=>or,StepperTab:()=>rr,StepperTabPanel:()=>hr,Switch:()=>yr,Tab:()=>_r,TabPanel:()=>Ar,Tabs:()=>Mr,TextArea:()=>Gr,TextField:()=>Zr,Toast:()=>nd,Toolbar:()=>dd,Tooltip:()=>vd,TreeItem:()=>xd,TreeView:()=>Dd,UrlInput:()=>Nd,accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,accentPaletteValue:()=>Go,actionsMenuBaseStyles:()=>$,baseComponents:()=>Pd,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>Uo,black:()=>vo,bodyFont:()=>s.bodyFont,closeIcon:()=>ai,configureDesignSystem:()=>Vo,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>Wo,createDesignSystemProxy:()=>Hd,createFormData:()=>ra,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>N,defaultAnchoredRegionConfig:()=>V,defaultAvatarConfig:()=>X,defaultBadgeConfig:()=>te,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>xe,defaultButtonConfig:()=>De,defaultCalendarConfig:()=>Ee,defaultCardConfig:()=>He,defaultCheckboxConfig:()=>Ue,defaultComboboxConfig:()=>St,defaultDataGridCellConfig:()=>Ht,defaultDataGridConfig:()=>Rt,defaultDataGridRowConfig:()=>zt,defaultDatePickerConfig:()=>co,defaultDialogConfig:()=>ri,defaultDisclosureConfig:()=>gi,defaultDividerConfig:()=>$i,defaultFileUploadConfig:()=>fa,defaultFillColor:()=>fo,defaultFlexLayoutConfig:()=>za,defaultFlipperConfig:()=>Za,defaultFlyoutConfig:()=>sn,defaultGridLayoutConfig:()=>hn,defaultGridLayoutItemConfig:()=>yn,defaultHorizontalScrollConfig:()=>Cn,defaultIconConfig:()=>Nn,defaultListboxConfig:()=>zn,defaultListboxOptionConfig:()=>Kn,defaultMenuConfig:()=>os,defaultMenuItemConfig:()=>rs,defaultModalConfig:()=>hs,defaultMultiselectConfig:()=>Ss,defaultNeutralForegroundContrast:()=>To,defaultNumberFieldConfig:()=>As,defaultProgressConfig:()=>Gs,defaultProgressRingConfig:()=>Xs,defaultRadioConfig:()=>tl,defaultRadioGroupConfig:()=>ll,defaultSegmentedControlConfig:()=>hl,defaultSegmentedItemConfig:()=>yl,defaultSelectConfig:()=>_l,defaultSkeletonConfig:()=>Al,defaultSliderConfig:()=>Hl,defaultSliderLabelConfig:()=>Ul,defaultStepperConfig:()=>ar,defaultStepperTabConfig:()=>cr,defaultStepperTabPanelConfig:()=>vr,defaultSwitchConfig:()=>xr,defaultTabConfig:()=>Dr,defaultTabPanelConfig:()=>Er,defaultTabsConfig:()=>Hr,defaultTextAreaConfig:()=>Ur,defaultTextFieldConfig:()=>Jr,defaultToastConfig:()=>ad,defaultToolbarConfig:()=>ud,defaultTooltipConfig:()=>fd,defaultTreeItemConfig:()=>Sd,defaultTreeViewConfig:()=>kd,defaultUrlInputConfig:()=>Id,defineFactory:()=>oc,density:()=>s.density,designToken:()=>Io,designUnit:()=>s.designUnit,designUnitValue:()=>qo,direction:()=>s.direction,directionValue:()=>Yo,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>ca,dropdownMenuBaseStyles:()=>Fi,errorDialogTemplate:()=>Ji,extractMenuItems:()=>Ci,fillColor:()=>s.fillColor,filterBarTemplate:()=>Ra,flyoutAnimationTime:()=>Ja,focusStrokeInner:()=>s.focusStrokeInner,focusStrokeOuter:()=>s.focusStrokeOuter,focusStrokeWidth:()=>s.focusStrokeWidth,foregroundOnAccentActive:()=>s.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>s.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>s.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>s.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>s.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>s.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>s.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>s.foregroundOnAccentRestLarge,foundationAccordion:()=>h,foundationAccordionItem:()=>y,foundationAccordionItemShadowOptions:()=>f,foundationAccordionItemStyles:()=>m,foundationAccordionItemTemplate:()=>v,foundationAccordionShadowOptions:()=>u,foundationAccordionStyles:()=>r,foundationAccordionTemplate:()=>d,foundationActionsMenu:()=>A,foundationActionsMenuStyles:()=>S,foundationActionsMenuTemplate:()=>k,foundationAnchor:()=>M,foundationAnchorShadowOptions:()=>I,foundationAnchorStyles:()=>L,foundationAnchorTemplate:()=>E,foundationAnchoredRegion:()=>G,foundationAnchoredRegionShadowOptions:()=>B,foundationAnchoredRegionStyles:()=>H,foundationAnchoredRegionTemplate:()=>P,foundationAvatar:()=>K,foundationAvatarShadowOptions:()=>q,foundationAvatarStyles:()=>z,foundationAvatarTemplate:()=>U,foundationBadge:()=>oe,foundationBadgeShadowOptions:()=>ee,foundationBadgeStyles:()=>Z,foundationBadgeTemplate:()=>Q,foundationBanner:()=>ce,foundationBannerShadowOptions:()=>re,foundationBannerStyles:()=>ne,foundationBannerTemplate:()=>le,foundationBreadcrumb:()=>ge,foundationBreadcrumbItem:()=>$e,foundationBreadcrumbItemShadowOptions:()=>we,foundationBreadcrumbItemStyles:()=>fe,foundationBreadcrumbItemTemplate:()=>be,foundationBreadcrumbShadowOptions:()=>me,foundationBreadcrumbStyles:()=>ue,foundationBreadcrumbTemplate:()=>pe,foundationButton:()=>Oe,foundationButtonShadowOptions:()=>Ce,foundationButtonStyles:()=>Se,foundationButtonTemplate:()=>Fe,foundationCalendar:()=>Re,foundationCalendarShadowOptions:()=>Le,foundationCalendarStyles:()=>ke,foundationCalendarTemplate:()=>Te,foundationCard:()=>je,foundationCardShadowOptions:()=>Pe,foundationCardStyles:()=>Ie,foundationCardTemplate:()=>Ne,foundationCheckbox:()=>Ye,foundationCheckboxShadowOptions:()=>ze,foundationCheckboxStyles:()=>Be,foundationCheckboxTemplate:()=>Ve,foundationCombobox:()=>Ft,foundationComboboxShadowOptions:()=>$t,foundationComboboxStyles:()=>ft,foundationComboboxTemplate:()=>bt,foundationConnectionIndicator:()=>kt,foundationConnectionIndicatorStyles:()=>Ct,foundationConnectionIndicatorTemplate:()=>Dt,foundationDataGrid:()=>It,foundationDataGridCell:()=>jt,foundationDataGridCellShadowOptions:()=>Pt,foundationDataGridCellStyles:()=>Nt,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>Ut,foundationDataGridRowShadowOptions:()=>Gt,foundationDataGridRowStyles:()=>Bt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>Et,foundationDataGridStyles:()=>Tt,foundationDataGridTemplate:()=>At,foundationDatePicker:()=>po,foundationDatePickerShadowOptions:()=>ro,foundationDatePickerStyles:()=>no,foundationDatePickerTemplate:()=>lo,foundationDesignSystemProvider:()=>ti,foundationDialog:()=>ui,foundationDialogShadowOptions:()=>li,foundationDialogStyles:()=>ii,foundationDialogTemplate:()=>si,foundationDisclosure:()=>fi,foundationDisclosureShadowOptions:()=>vi,foundationDisclosureStyles:()=>pi,foundationDisclosureTemplate:()=>hi,foundationDivider:()=>Si,foundationDividerShadowOptions:()=>xi,foundationDividerStyles:()=>bi,foundationDividerTemplate:()=>yi,foundationDropdownMenu:()=>Ti,foundationDropdownMenuStyles:()=>_i,foundationDropdownMenuTemplate:()=>Oi,foundationErrorBanner:()=>Ii,foundationErrorBannerShadowOptions:()=>Ei,foundationErrorBannerTemplate:()=>Li,foundationErrorBoundary:()=>Ki,foundationErrorBoundaryShadowOptions:()=>qi,foundationErrorBoundaryTemplate:()=>Wi,foundationErrorDialog:()=>oa,foundationErrorDialogShadowOptions:()=>ea,foundationErrorDialogStyles:()=>Zi,foundationFileUpload:()=>ba,foundationFileUploadShadowOptions:()=>ga,foundationFileUploadStyles:()=>na,foundationFileUploadTemplate:()=>la,foundationFilter:()=>ka,foundationFilterBar:()=>Pa,foundationFilterBarStyles:()=>Aa,foundationFilterBarTemplate:()=>Ia,foundationFilterStyles:()=>ya,foundationFilterTemplate:()=>Ca,foundationFlexLayout:()=>Ya,foundationFlexLayoutShadowOptions:()=>Ga,foundationFlexLayoutStyles:()=>Ba,foundationFlexLayoutTemplate:()=>Va,foundationFlipper:()=>Qa,foundationFlipperShadowOptions:()=>Ka,foundationFlipperStyles:()=>Wa,foundationFlipperTemplate:()=>qa,foundationFlyout:()=>ln,foundationFlyoutShadowOptions:()=>nn,foundationFlyoutStyles:()=>en,foundationFlyoutTemplate:()=>on,foundationGridLayout:()=>gn,foundationGridLayoutItem:()=>xn,foundationGridLayoutItemShadowOptions:()=>bn,foundationGridLayoutItemTemplate:()=>fn,foundationGridLayoutShadowOptions:()=>pn,foundationGridLayoutStyles:()=>cn,foundationGridLayoutTemplate:()=>un,foundationHorizontalScroll:()=>Dn,foundationHorizontalScrollShadowOptions:()=>_n,foundationHorizontalScrollStyles:()=>$n,foundationHorizontalScrollTemplate:()=>Sn,foundationIcon:()=>Hn,foundationIconShadowOptions:()=>In,foundationIconStyles:()=>En,foundationIconTemplate:()=>Rn,foundationListbox:()=>Un,foundationListboxOption:()=>Zn,foundationListboxOptionShadowOptions:()=>Xn,foundationListboxOptionStyles:()=>Yn,foundationListboxOptionTemplate:()=>Wn,foundationListboxShadowOptions:()=>Gn,foundationListboxStyles:()=>jn,foundationListboxTemplate:()=>Bn,foundationMenu:()=>is,foundationMenuItem:()=>ds,foundationMenuItemShadowOptions:()=>ls,foundationMenuItemStyles:()=>as,foundationMenuItemTemplate:()=>ns,foundationMenuShadowOptions:()=>ts,foundationMenuStyles:()=>Qn,foundationMenuTemplate:()=>Jn,foundationModal:()=>vs,foundationModalShadowOptions:()=>ps,foundationModalStyles:()=>cs,foundationModalTemplate:()=>us,foundationMultiselect:()=>_s,foundationMultiselectShadowOptions:()=>$s,foundationNotificationListener:()=>tc,foundationNotificationListenerShadowOptions:()=>Jd,foundationNotificationListenerTemplate:()=>Gd,foundationNumberField:()=>Ls,foundationNumberFieldShadowOptions:()=>Ts,foundationNumberFieldStyles:()=>Ds,foundationNumberFieldTemplate:()=>Os,foundationPopper:()=>Ps,foundationProgress:()=>zs,foundationProgressRing:()=>Ks,foundationProgressRingShadowOptions:()=>qs,foundationProgressRingStyles:()=>Us,foundationProgressRingTemplate:()=>Ys,foundationProgressShadowOptions:()=>Vs,foundationProgressStyles:()=>Hs,foundationProgressTemplate:()=>js,foundationRadio:()=>ol,foundationRadioGroup:()=>rl,foundationRadioGroupShadowOptions:()=>sl,foundationRadioGroupStyles:()=>il,foundationRadioGroupTemplate:()=>al,foundationRadioShadowOptions:()=>el,foundationRadioStyles:()=>Zs,foundationRadioTemplate:()=>Qs,foundationSegmentedControl:()=>ml,foundationSegmentedControlShadowOptions:()=>pl,foundationSegmentedControlStyles:()=>dl,foundationSegmentedControlTemplate:()=>cl,foundationSegmentedItem:()=>wl,foundationSegmentedItemShadowOptions:()=>bl,foundationSegmentedItemStyles:()=>vl,foundationSegmentedItemTemplate:()=>gl,foundationSelect:()=>Cl,foundationSelectShadowOptions:()=>Fl,foundationSelectStyles:()=>xl,foundationSelectTemplate:()=>$l,foundationSkeleton:()=>Ll,foundationSkeletonShadowOptions:()=>Tl,foundationSkeletonStyles:()=>Dl,foundationSkeletonTemplate:()=>Ol,foundationSlider:()=>jl,foundationSliderLabel:()=>Yl,foundationSliderLabelShadowOptions:()=>zl,foundationSliderLabelStyles:()=>Bl,foundationSliderLabelTemplate:()=>Vl,foundationSliderShadowOptions:()=>Pl,foundationSliderStyles:()=>El,foundationSliderTemplate:()=>Nl,foundationSnackbar:()=>Ql,foundationSnackbarShadowOptions:()=>Kl,foundationSnackbarStyles:()=>Wl,foundationSnackbarTemplate:()=>Xl,foundationStepper:()=>nr,foundationStepperShadowOptions:()=>ir,foundationStepperStyles:()=>Jl,foundationStepperTab:()=>ur,foundationStepperTabPanel:()=>gr,foundationStepperTabPanelShadowOptions:()=>mr,foundationStepperTabPanelTemplate:()=>pr,foundationStepperTabShadowOptions:()=>dr,foundationStepperTabStyles:()=>sr,foundationStepperTabTemplate:()=>lr,foundationStepperTemplate:()=>tr,foundationSwitch:()=>$r,foundationSwitchShadowOptions:()=>wr,foundationSwitchStyles:()=>fr,foundationSwitchTemplate:()=>br,foundationTab:()=>Or,foundationTabPanel:()=>Rr,foundationTabPanelShadowOptions:()=>Lr,foundationTabPanelStyles:()=>kr,foundationTabPanelTemplate:()=>Tr,foundationTabShadowOptions:()=>Cr,foundationTabStyles:()=>Sr,foundationTabTemplate:()=>Fr,foundationTabs:()=>jr,foundationTabsShadowOptions:()=>Pr,foundationTabsStyles:()=>Ir,foundationTabsTemplate:()=>Nr,foundationTextArea:()=>Yr,foundationTextAreaShadowOptions:()=>zr,foundationTextAreaStyles:()=>Br,foundationTextAreaTemplate:()=>Vr,foundationTextField:()=>ed,foundationTextFieldShadowOptions:()=>Qr,foundationTextFieldStyles:()=>Xr,foundationTextFieldTemplate:()=>Kr,foundationToast:()=>sd,foundationToastShadowOptions:()=>id,foundationToastStyles:()=>td,foundationToastTemplate:()=>od,foundationToolbar:()=>pd,foundationToolbarShadowOptions:()=>cd,foundationToolbarStyles:()=>ld,foundationToolbarTemplate:()=>rd,foundationTooltip:()=>bd,foundationTooltipShadowOptions:()=>gd,foundationTooltipStyles:()=>hd,foundationTooltipTemplate:()=>md,foundationTreeItem:()=>Fd,foundationTreeItemShadowOptions:()=>$d,foundationTreeItemStyles:()=>yd,foundationTreeItemTemplate:()=>wd,foundationTreeView:()=>Td,foundationTreeViewShadowOptions:()=>Od,foundationTreeViewStyles:()=>_d,foundationTreeViewTemplate:()=>Cd,foundationUrlInput:()=>Md,foundationUrlInputShadowOptions:()=>Rd,foundationUrlInputStyles:()=>Ad,foundationUrlInputTemplate:()=>Ed,fuiAccentPalette:()=>Co,fuiAccentSwatch:()=>_o,fuiCardFillColor:()=>ko,fuiCardForegroundColor:()=>Lo,fuiDefaultCardFillColor:()=>yo,fuiDefaultCardPalette:()=>wo,fuiFillColor:()=>Oo,fuiNeutralPalette:()=>So,fuiNeutralSwatch:()=>$o,getBannerTemplate:()=>se,getDefaultConfig:()=>Ho,getDialogTemplate:()=>ni,getDropdownMenuTemplate:()=>Di,getErrorDialogTemplate:()=>Qi,getExports:()=>jo,getFontawesomeIconsCss:()=>Ln,getPrefixedDatePicker:()=>so,getPrefixedErrorBanner:()=>Ai,getPrefixedFileUpload:()=>sa,getPrefixedFilterTemplate:()=>_a,getPrefixedFlyout:()=>tn,getPrefixedMultiselect:()=>ws,getPrefixedSnackbar:()=>ql,getPrefixedStepper:()=>er,getPrefixedUrlInput:()=>Ld,getTypeRampValue:()=>Bo,jsonConverter:()=>Rs,mapType:()=>La,maxheight:()=>fs,media:()=>Y,menuTemplate:()=>D,mixinFoundationFontFamily:()=>Ko,multiselectStyles:()=>bs,multiselectTemplate:()=>xs,neutralFillActive:()=>s.neutralFillActive,neutralFillActiveDelta:()=>s.neutralFillActiveDelta,neutralFillFocus:()=>s.neutralFillFocus,neutralFillFocusDelta:()=>s.neutralFillFocusDelta,neutralFillHover:()=>s.neutralFillHover,neutralFillHoverDelta:()=>s.neutralFillHoverDelta,neutralFillInputActive:()=>s.neutralFillInputActive,neutralFillInputActiveDelta:()=>s.neutralFillInputActiveDelta,neutralFillInputFocus:()=>s.neutralFillInputFocus,neutralFillInputFocusDelta:()=>s.neutralFillInputFocusDelta,neutralFillInputHover:()=>s.neutralFillInputHover,neutralFillInputHoverDelta:()=>s.neutralFillInputHoverDelta,neutralFillInputRest:()=>s.neutralFillInputRest,neutralFillInputRestDelta:()=>s.neutralFillInputRestDelta,neutralFillLayerRest:()=>s.neutralFillLayerRest,neutralFillLayerRestDelta:()=>s.neutralFillLayerRestDelta,neutralFillRest:()=>s.neutralFillRest,neutralFillRestDelta:()=>s.neutralFillRestDelta,neutralFillStealthActive:()=>s.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>s.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>s.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>s.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>s.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>s.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>s.neutralFillStealthRest,neutralFillStealthRestDelta:()=>s.neutralFillStealthRestDelta,neutralFillStrongActive:()=>s.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>s.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>s.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>s.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>s.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>s.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>s.neutralFillStrongRest,neutralFillStrongRestDelta:()=>s.neutralFillStrongRestDelta,neutralForeground:()=>Ao,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralPaletteValue:()=>zo,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,paletteFromHex:()=>Mo,provideDesignSystem:()=>jd,provideTokens:()=>Ro,registerFoundationDesignSystem:()=>sc,singleOptionTemplate:()=>O,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>No,tagFor:()=>ic,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight,uploadFiles:()=>da,white:()=>mo});var i={};o.r(i),o.d(i,{accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,bodyFont:()=>s.bodyFont,controlCornerRadius:()=>s.controlCornerRadius,defaultNeutralForegroundContrast:()=>To,density:()=>s.density,designUnit:()=>s.designUnit,direction:()=>s.direction,disabledOpacity:()=>s.disabledOpacity,fillColor:()=>s.fillColor,focusStrokeInner:()=>s.focusStrokeInner,focusStrokeOuter:()=>s.focusStrokeOuter,focusStrokeWidth:()=>s.focusStrokeWidth,foregroundOnAccentActive:()=>s.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>s.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>s.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>s.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>s.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>s.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>s.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>s.foregroundOnAccentRestLarge,fuiCardFillColor:()=>ko,fuiCardForegroundColor:()=>Lo,fuiFillColor:()=>Oo,neutralFillActive:()=>s.neutralFillActive,neutralFillActiveDelta:()=>s.neutralFillActiveDelta,neutralFillFocus:()=>s.neutralFillFocus,neutralFillFocusDelta:()=>s.neutralFillFocusDelta,neutralFillHover:()=>s.neutralFillHover,neutralFillHoverDelta:()=>s.neutralFillHoverDelta,neutralFillInputActive:()=>s.neutralFillInputActive,neutralFillInputActiveDelta:()=>s.neutralFillInputActiveDelta,neutralFillInputFocus:()=>s.neutralFillInputFocus,neutralFillInputFocusDelta:()=>s.neutralFillInputFocusDelta,neutralFillInputHover:()=>s.neutralFillInputHover,neutralFillInputHoverDelta:()=>s.neutralFillInputHoverDelta,neutralFillInputRest:()=>s.neutralFillInputRest,neutralFillInputRestDelta:()=>s.neutralFillInputRestDelta,neutralFillLayerRest:()=>s.neutralFillLayerRest,neutralFillLayerRestDelta:()=>s.neutralFillLayerRestDelta,neutralFillRest:()=>s.neutralFillRest,neutralFillRestDelta:()=>s.neutralFillRestDelta,neutralFillStealthActive:()=>s.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>s.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>s.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>s.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>s.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>s.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>s.neutralFillStealthRest,neutralFillStealthRestDelta:()=>s.neutralFillStealthRestDelta,neutralFillStrongActive:()=>s.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>s.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>s.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>s.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>s.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>s.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>s.neutralFillStrongRest,neutralFillStrongRestDelta:()=>s.neutralFillStrongRestDelta,neutralForeground:()=>Ao,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,strokeWidth:()=>s.strokeWidth,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight});var a={};o.r(a),o.d(a,{accentPaletteValue:()=>Go,baseLayerLuminanceValue:()=>Uo,controlCornerRadiusValue:()=>Wo,designUnitValue:()=>qo,directionValue:()=>Yo,neutralPaletteValue:()=>zo});var n=o(75951),s=o(13896),l=o(83147);const r=(e,t)=>l.css`
|
|
2
2
|
${(0,s.accordionStyles)(e,t)}
|
|
3
3
|
`,d=(e,t)=>(0,n.accordionTemplate)(e,t);class c extends n.Accordion{}const u={delegatesFocus:!0,mode:"open"},p={},h=c.compose(Object.assign({baseName:"accordion",template:d,styles:r,shadowOptions:u},p)),m=(e,t)=>l.css`
|
|
4
4
|
${(0,s.accordionItemStyles)(e,t)}
|
|
@@ -103,9 +103,9 @@
|
|
|
103
103
|
display: flex;
|
|
104
104
|
flex-direction: column;
|
|
105
105
|
}
|
|
106
|
-
`,
|
|
106
|
+
`,S=(e,t)=>l.css`
|
|
107
107
|
${$(e,t)}
|
|
108
|
-
`,
|
|
108
|
+
`,F=(e,t)=>!e.composedPath().includes(t),_=(e,t)=>e.composedPath().includes(t),C=e=>e.tagName.toLowerCase().split("-")[0],D=e=>l.html`
|
|
109
109
|
<${e}-button
|
|
110
110
|
id="actiosnMenuTrigger"
|
|
111
111
|
class="actions-opener${e=>e.open?" opened":""}"
|
|
@@ -156,13 +156,13 @@
|
|
|
156
156
|
class="actions-container${e=>e.isVertical?" actions-vertical":""}"
|
|
157
157
|
part="actions-container"
|
|
158
158
|
>
|
|
159
|
-
${e=>e.getTemplate(
|
|
159
|
+
${e=>e.getTemplate(C(e))}
|
|
160
160
|
</div>
|
|
161
|
-
`;class T extends n.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var o;this.actions=null!==(o=null==t?void 0:t.actions)&&void 0!==o?o:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=(0,x.A)(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return this.rowData?"function"==typeof e?e(this.rowData):e:""}getTemplate(e){if(!this.hideMenuSingleOption)return
|
|
161
|
+
`;class T extends n.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var o;this.actions=null!==(o=null==t?void 0:t.actions)&&void 0!==o?o:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=(0,x.A)(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return this.rowData?"function"==typeof e?e(this.rowData):e:""}getTemplate(e){if(!this.hideMenuSingleOption)return D(e);const t=this.actions.filter((e=>!e.isDisabled||!e.isDisabled(this.rowData)));return this.singleOption=null,0!==t.length?1===t.length?(this.singleOption=t[0],O(e)):D(e):void 0}}(0,w.__decorate)([l.observable],T.prototype,"actions",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"is-vertical",mode:"boolean"})],T.prototype,"isVertical",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"add-default-actions",mode:"boolean"})],T.prototype,"addDefaultActions",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close-on-action",mode:"boolean"})],T.prototype,"autoCloseOnAction",void 0),(0,w.__decorate)([l.observable],T.prototype,"classNames",void 0),(0,w.__decorate)([l.observable],T.prototype,"definition",void 0),(0,w.__decorate)([l.attr],T.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"open",mode:"boolean"})],T.prototype,"open",void 0),(0,w.__decorate)([l.attr],T.prototype,"buttonAppearance",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"hide-disabled",mode:"boolean"})],T.prototype,"hideDisabled",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],T.prototype,"hideMenuSingleOption",void 0),(0,w.__decorate)([l.observable],T.prototype,"singleOption",void 0);const A=T.compose({baseName:"actions-menu",styles:S,template:k}),L=(e,t)=>l.css`
|
|
162
162
|
${(0,s.anchorStyles)(e,t)}
|
|
163
|
-
`,
|
|
163
|
+
`,E=(e,t)=>(0,n.anchorTemplate)(e,t);class R extends s.Anchor{}const I={delegatesFocus:!0,mode:"open"},N={},M=R.compose(Object.assign({baseName:"anchor",template:E,styles:L,shadowOptions:I},N)),P=(e,t)=>(0,n.anchoredRegionTemplate)(e,t),H=(e,t)=>l.css`
|
|
164
164
|
${(0,s.anchoredRegionStyles)(e,t)}
|
|
165
|
-
`;class j extends s.AnchoredRegion{}const B={delegatesFocus:!0,mode:"open"},
|
|
165
|
+
`;class j extends s.AnchoredRegion{}const B={delegatesFocus:!0,mode:"open"},V={},G=j.compose(Object.assign({baseName:"anchored-region",template:P,styles:H,shadowOptions:B},V)),z=(e,t)=>l.css`
|
|
166
166
|
${(0,s.avatarStyles)(e,t)}
|
|
167
167
|
`,U=(e,t)=>(0,n.avatarTemplate)(e,t),Y=l.html`
|
|
168
168
|
${(0,l.when)((e=>e.imgSrc),l.html`
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
`)}
|
|
171
171
|
`;class W extends s.Avatar{}const q={delegatesFocus:!0,mode:"open"},X={media:Y},K=W.compose(Object.assign({baseName:"avatar",template:U,styles:z,shadowOptions:q},X)),Z=(e,t)=>l.css`
|
|
172
172
|
${(0,s.badgeStyles)(e,t)}
|
|
173
|
-
`,Q=(e,t)=>(0,n.badgeTemplate)(e,t);class J extends s.Badge{}const ee=void 0,te={},oe=J.compose(Object.assign({baseName:"badge",template:Q,styles:Z,shadowOptions:ee},te));var ie=o(
|
|
173
|
+
`,Q=(e,t)=>(0,n.badgeTemplate)(e,t);class J extends s.Badge{}const ee=void 0,te={},oe=J.compose(Object.assign({baseName:"badge",template:Q,styles:Z,shadowOptions:ee},te));var ie=o(13539);const ae=(0,ie.createLogger)("foundation-ui"),ne=l.css`
|
|
174
174
|
@keyframes delete-animate {
|
|
175
175
|
from {
|
|
176
176
|
height: 100px;
|
|
@@ -271,24 +271,24 @@
|
|
|
271
271
|
</div>
|
|
272
272
|
</div>
|
|
273
273
|
`,le=l.html`
|
|
274
|
-
${e=>se(
|
|
274
|
+
${e=>se(C(e))}
|
|
275
275
|
`,re={mode:"open",delegatesFocus:!0};class de extends n.FoundationElement{constructor(){super(...arguments),this.dismissAnimation=""}connectedCallback(){super.connectedCallback()}dismiss(){return this.dismissAnimation="banner-delete",new Promise((e=>{this.banner.onanimationend=()=>{this.remove(),e()}}))}dismissNotification(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{yield this.dismiss(),this.remove()}catch(e){ae.error(e)}}))}}(0,w.__decorate)([l.observable],de.prototype,"dismissAnimation",void 0),(0,w.__decorate)([l.observable],de.prototype,"notification",void 0);const ce=de.compose({baseName:"banner",styles:ne,template:le,shadowOptions:re}),ue=(e,t)=>l.css`
|
|
276
276
|
${(0,s.breadcrumbStyles)(e,t)}
|
|
277
277
|
`,pe=(e,t)=>(0,n.breadcrumbTemplate)(e,t);class he extends s.Breadcrumb{}const me=void 0,ve={},ge=he.compose(Object.assign({baseName:"breadcrumb",template:pe,styles:ue,shadowOptions:me},ve)),fe=(e,t)=>l.css`
|
|
278
278
|
${(0,s.breadcrumbItemStyles)(e,t)}
|
|
279
|
-
`,be=(e,t)=>(0,n.breadcrumbItemTemplate)(e,t);class ye extends s.BreadcrumbItem{}const we=void 0,xe={separator:"/"},$e=ye.compose(Object.assign({baseName:"breadcrumb-item",template:be,styles:fe,shadowOptions:we},xe)),
|
|
279
|
+
`,be=(e,t)=>(0,n.breadcrumbItemTemplate)(e,t);class ye extends s.BreadcrumbItem{}const we=void 0,xe={separator:"/"},$e=ye.compose(Object.assign({baseName:"breadcrumb-item",template:be,styles:fe,shadowOptions:we},xe)),Se=(e,t)=>l.css`
|
|
280
280
|
${(0,s.buttonStyles)(e,t)}
|
|
281
|
-
`,
|
|
281
|
+
`,Fe=(e,t)=>(0,n.buttonTemplate)(e,t);class _e extends s.Button{}const Ce={delegatesFocus:!0,mode:"open"},De={},Oe=_e.compose(Object.assign({baseName:"button",template:Fe,styles:Se,shadowOptions:Ce},De)),ke=()=>l.css`
|
|
282
282
|
${s.CalendarStyles}
|
|
283
|
-
`,Te=(e,t)=>(0,n.calendarTemplate)(e,t);class
|
|
283
|
+
`,Te=(e,t)=>(0,n.calendarTemplate)(e,t);class Ae extends s.Calendar{}const Le={delegatesFocus:!0,mode:"open"},Ee={},Re=Ae.compose(Object.assign({baseName:"calendar",template:Te,styles:ke,shadowOptions:Le},Ee)),Ie=(e,t)=>l.css`
|
|
284
284
|
${(0,s.cardStyles)(e,t)}
|
|
285
285
|
:host {
|
|
286
286
|
background-color: var(--fui-card-fill-color);
|
|
287
287
|
color: var(--fui-card-foreground-color);
|
|
288
288
|
}
|
|
289
|
-
`,
|
|
289
|
+
`,Ne=(e,t)=>(0,n.cardTemplate)(e,t);class Me extends s.Card{}const Pe=void 0,He={},je=Me.compose(Object.assign({baseName:"card",template:Ne,styles:Ie,shadowOptions:Pe},He)),Be=(e,t)=>l.css`
|
|
290
290
|
${(0,s.checkboxStyles)(e,t)}
|
|
291
|
-
`,Ge=(e,t)=>(0,n.checkboxTemplate)(e,t);class Ve extends s.Checkbox{}const ze=void 0,Ue={checkedIndicator:'\n <svg\n aria-hidden="true"\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '},Ye=Ve.compose(Object.assign({baseName:"checkbox",template:Ge,styles:Be,shadowOptions:ze},Ue));var We=o(82940),qe=o(40001),Xe=o.n(qe),Ke=o(32449),Ze=o(9162),Qe=o(5127),Je=o(89074),et=o(6852),tt=o(26714);class ot extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=We.WJ.MAX_ROWS_250,this.maxView=We.WJ.MAX_VIEW_1000,this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new tt.X(new Map)}criteriaChanged(e,t){const o=e!==(0,Ke.p)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){super.disconnectedCallback(),this.clearData()}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,w.__awaiter)(this,void 0,void 0,(function*(){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else ae.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===Ze.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,Qe.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else ae.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void ae.error("received invalid RequestServerResult",e);if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,a;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,Ke.p)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}}(0,w.__decorate)([Je.lj],ot.prototype,"connect",void 0),(0,w.__decorate)([et.Yh],ot.prototype,"datasource",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"withGridInit",void 0),(0,w.__decorate)([l.attr],ot.prototype,"criteria",void 0),(0,w.__decorate)([l.attr],ot.prototype,"fields",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"isSnapshot",void 0),(0,w.__decorate)([l.attr],ot.prototype,"maxRows",void 0),(0,w.__decorate)([l.attr],ot.prototype,"maxView",void 0),(0,w.__decorate)([l.attr],ot.prototype,"orderBy",void 0),(0,w.__decorate)([l.attr],ot.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"reverse",void 0),(0,w.__decorate)([l.attr],ot.prototype,"rowId",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],ot.prototype,"withTimestampFormatting",void 0);const it=(0,ie.createLogger)("foundation-criteria");var at;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(at||(at={}));class nt{constructor(e){this.$$operator=e}static And(){return new nt(at.AND)}static Or(){return new nt(at.OR)}static Not(){return new nt(at.NOT)}static GreaterThan(){return new nt(at.GT)}static GreaterThanOrEqual(){return new nt(at.GE)}static LessThan(){return new nt(at.LT)}static LessThanOrEqual(){return new nt(at.LE)}static NotEqual(){return new nt(at.NE)}static Equal(){return new nt(at.EQ)}get operator(){return this.$$operator}}const st="default";class lt{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,nt.And()),this.Or=(e,t={})=>this.withExpression(e,t,nt.Or()),this.Not=(e,t={})=>this.withExpression(e,t,nt.Not())}withExpression(e,t={},o=nt.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=st)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||a,condition:i,expression:e}]};if(Array.isArray(e))if(a){const t=e.filter((e=>{const t=e instanceof nt;return t&&it.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(n)t.forEach((e=>{s(e,n)}));else{const e=(l=a,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,l]:e)));s(e,st)}}else s(e,st);else s(e,"string"==typeof e?st:e.group);var l;return this}build(e){const t=Object.entries(this.expressions).reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[t]:`(${o.filter((({condition:e})=>!e||e())).map((({expression:e,join:t},o,i)=>this.parseExpression(e,i[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const i=[];return o&&t&&i.push(` ${o.operator} `),"string"==typeof e?i.push(e):Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof nt){if(o[t-1]instanceof nt)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof nt?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const rt=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},dt=e=>t=>`${t.field} ${e} ${rt(t)}`,ct=e=>dt(at.EQ)(e),ut=e=>`Expr.containsIgnoreCase(${e.field}, ${rt(e)})`;class pt{constructor(e){this.serialiser=ct,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}function ht(e,t){var o;const i=new lt;i.withExpression((new pt).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(ut).build()),e.criteria=i.build()}function mt(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var vt;let gt=vt=class extends ot{constructor(){super(...arguments),this.initalSelectedValueInitialized=!1,this.optionElement="fast-option",this.isSnapshot=!0}initialSelectedValueChanged(e,t){t&&(this.initalSelectedValueInitialized=!1)}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select.addEventListener("change",(e=>{const t=this.options.find((t=>t.label===e.target.value));this.select.$emit("value-change",t)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof xt&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData()),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}asyncModeIntialization(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===We._g.DATASERVER&&ht(this,this.initialSelectedValue),e===We._g.REQUEST_SERVER&&mt(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof vt||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));if(this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e)})),!this.initalSelectedValueInitialized){const e=this.initialSelectedValue||0===this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";l.DOM.queueUpdate((()=>{this.select.value=e})),this.initalSelectedValueInitialized=!0}}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],gt.prototype,"labelField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],gt.prototype,"valueField",void 0),(0,w.__decorate)([l.observable],gt.prototype,"labelFormatter",void 0),(0,w.__decorate)([l.observable],gt.prototype,"initialSelectedValue",void 0),gt=vt=(0,w.__decorate)([(0,l.customElement)({name:"options-datasource"})],gt);const ft=(e,t)=>l.css`
|
|
291
|
+
`,Ve=(e,t)=>(0,n.checkboxTemplate)(e,t);class Ge extends s.Checkbox{}const ze=void 0,Ue={checkedIndicator:'\n <svg\n aria-hidden="true"\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '},Ye=Ge.compose(Object.assign({baseName:"checkbox",template:Ve,styles:Be,shadowOptions:ze},Ue));var We=o(82940),qe=o(40001),Xe=o.n(qe),Ke=o(32449),Ze=o(9162),Qe=o(5127),Je=o(89074),et=o(6852),tt=o(26714);class ot extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=We.WJ.MAX_ROWS_250,this.maxView=We.WJ.MAX_VIEW_1000,this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new tt.X(new Map)}criteriaChanged(e,t){const o=e!==(0,Ke.p)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){super.disconnectedCallback(),this.clearData()}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,w.__awaiter)(this,void 0,void 0,(function*(){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else ae.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===Ze.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,Qe.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else ae.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void ae.error("received invalid RequestServerResult",e);if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,a;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,Ke.p)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}}(0,w.__decorate)([Je.lj],ot.prototype,"connect",void 0),(0,w.__decorate)([et.Yh],ot.prototype,"datasource",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"withGridInit",void 0),(0,w.__decorate)([l.attr],ot.prototype,"criteria",void 0),(0,w.__decorate)([l.attr],ot.prototype,"fields",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"isSnapshot",void 0),(0,w.__decorate)([l.attr],ot.prototype,"maxRows",void 0),(0,w.__decorate)([l.attr],ot.prototype,"maxView",void 0),(0,w.__decorate)([l.attr],ot.prototype,"orderBy",void 0),(0,w.__decorate)([l.attr],ot.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"reverse",void 0),(0,w.__decorate)([l.attr],ot.prototype,"rowId",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],ot.prototype,"withTimestampFormatting",void 0);const it=(0,ie.createLogger)("foundation-criteria");var at;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(at||(at={}));class nt{constructor(e){this.$$operator=e}static And(){return new nt(at.AND)}static Or(){return new nt(at.OR)}static Not(){return new nt(at.NOT)}static GreaterThan(){return new nt(at.GT)}static GreaterThanOrEqual(){return new nt(at.GE)}static LessThan(){return new nt(at.LT)}static LessThanOrEqual(){return new nt(at.LE)}static NotEqual(){return new nt(at.NE)}static Equal(){return new nt(at.EQ)}get operator(){return this.$$operator}}const st="default";class lt{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,nt.And()),this.Or=(e,t={})=>this.withExpression(e,t,nt.Or()),this.Not=(e,t={})=>this.withExpression(e,t,nt.Not())}withExpression(e,t={},o=nt.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=st)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||a,condition:i,expression:e}]};if(Array.isArray(e))if(a){const t=e.filter((e=>{const t=e instanceof nt;return t&&it.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(n)t.forEach((e=>{s(e,n)}));else{const e=(l=a,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,l]:e)));s(e,st)}}else s(e,st);else s(e,"string"==typeof e?st:e.group);var l;return this}build(e){const t=Object.entries(this.expressions).reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[t]:`(${o.filter((({condition:e})=>!e||e())).map((({expression:e,join:t},o,i)=>this.parseExpression(e,i[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const i=[];return o&&t&&i.push(` ${o.operator} `),"string"==typeof e?i.push(e):Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof nt){if(o[t-1]instanceof nt)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof nt?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const rt=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},dt=e=>t=>`${t.field} ${e} ${rt(t)}`,ct=e=>dt(at.EQ)(e),ut=e=>`Expr.containsIgnoreCase(${e.field}, ${rt(e)})`;class pt{constructor(e){this.serialiser=ct,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}function ht(e,t){var o;const i=new lt;i.withExpression((new pt).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(ut).build()),e.criteria=i.build()}function mt(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var vt;let gt=vt=class extends ot{constructor(){super(...arguments),this.initalSelectedValueInitialized=!1,this.optionElement="fast-option",this.isSnapshot=!0}initialSelectedValueChanged(e,t){t&&(this.initalSelectedValueInitialized=!1)}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select.addEventListener("change",(e=>{const t=this.options.find((t=>t.label===e.target.value));this.select.$emit("value-change",t)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof xt&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData()),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}asyncModeIntialization(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===We._g.DATASERVER&&ht(this,this.initialSelectedValue),e===We._g.REQUEST_SERVER&&mt(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof vt||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));if(this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e)})),!this.initalSelectedValueInitialized){const e=this.initialSelectedValue||0===this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";l.DOM.queueUpdate((()=>{this.select.value=e})),this.initalSelectedValueInitialized=!0}}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],gt.prototype,"labelField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],gt.prototype,"valueField",void 0),(0,w.__decorate)([l.observable],gt.prototype,"labelFormatter",void 0),(0,w.__decorate)([l.observable],gt.prototype,"initialSelectedValue",void 0),gt=vt=(0,w.__decorate)([(0,l.customElement)({name:"options-datasource"})],gt);const ft=(e,t)=>l.css`
|
|
292
292
|
.combo-box-indicator {
|
|
293
293
|
transition-property: transform;
|
|
294
294
|
transition-duration: 0.2s;
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
></slot>
|
|
354
354
|
</div>
|
|
355
355
|
</template>
|
|
356
|
-
`;var yt,wt;class xt extends s.Combobox{constructor(){super(...arguments),yt.set(this,void 0),wt.set(this,!1),this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1}debounceChanged(e,t){this.debouncedInputHandler=Xe()(this.asyncSetFilter,t)}get value(){return l.Observable.track(this,"value"),this._ourValue}set value(e){var t,o,i;const a=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const a=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===e.toLowerCase(),n=this.options?this.options.findIndex(a):-1,s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,l=null===(o=this.options[n])||void 0===o?void 0:o.text;this.selectedIndex=s!==l?n:this.selectedIndex,e=(null===(i=this.firstSelectedOption)||void 0===i?void 0:i.text)||e}a!==e&&(this._ourValue=e,super.valueChanged(a,e),l.Observable.notify(this,"value"))}filterOptions(){this.autocomplete&&this.autocomplete!==n.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,[t,o]=this.caseSensitive?[e,e=>e.text.startsWith(t)]:[e.toLowerCase(),e=>e.text.toLowerCase().startsWith(t)];this.filteredOptions=this._options.filter(o),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach((e=>e.hidden=!this.filteredOptions.includes(e))))}clickHandler(e){if(!this.disabled)if(
|
|
356
|
+
`;var yt,wt;class xt extends s.Combobox{constructor(){super(...arguments),yt.set(this,void 0),wt.set(this,!1),this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1}debounceChanged(e,t){this.debouncedInputHandler=Xe()(this.asyncSetFilter,t)}get value(){return l.Observable.track(this,"value"),this._ourValue}set value(e){var t,o,i;const a=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const a=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===e.toLowerCase(),n=this.options?this.options.findIndex(a):-1,s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,l=null===(o=this.options[n])||void 0===o?void 0:o.text;this.selectedIndex=s!==l?n:this.selectedIndex,e=(null===(i=this.firstSelectedOption)||void 0===i?void 0:i.text)||e}a!==e&&(this._ourValue=e,super.valueChanged(a,e),l.Observable.notify(this,"value"))}filterOptions(){this.autocomplete&&this.autocomplete!==n.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,[t,o]=this.caseSensitive?[e,e=>e.text.startsWith(t)]:[e.toLowerCase(),e=>e.text.toLowerCase().startsWith(t)];this.filteredOptions=this._options.filter(o),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach((e=>e.hidden=!this.filteredOptions.includes(e))))}clickHandler(e){if(!this.disabled)if(F(e,this))this.open=!1;else{if(_(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!_(e,this.control))return super.clickHandler(e)}}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":if((0,w.__classPrivateFieldSet)(this,wt,this.open,"f"),!this.open)return!0;break;case"Escape":if(this.control.value!==this.currentValue)return this.filter="",this.filterOptions(),this.control.value=this.currentValue,this.selectItemByValue(this.currentValue),void(this.open=!1);if(!this.open)return!0}const o=super.keydownHandler(e);return"Enter"!==t?o:void 0}keyupHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":return!(0,w.__classPrivateFieldGet)(this,wt,"f");case"ArrowLeft":case"ArrowRight":case"Home":case"End":return;case"Backspace":case"Delete":const t=super.keyupHandler(e);return this.selectItemByValue(this.control.value),t}return super.keyupHandler(e)}get indicator(){return(0,w.__classPrivateFieldGet)(this,yt,"f")||(0,w.__classPrivateFieldSet)(this,yt,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,w.__classPrivateFieldGet)(this,yt,"f")}selectItemByValue(e){var t,o,i;this.selectedIndex=null!==(o=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>t.text===e)))&&void 0!==o?o:-1,null===(i=this.options)||void 0===i||i.forEach(((e,t)=>e.selected=t===this.selectedIndex))}inputHandler(e){this.async?this.debouncedInputHandler():super.inputHandler(e)}asyncSetFilter(){const e=this.slottedDatasource.assignedNodes().filter((e=>e instanceof gt));if(e.length>0){const t=e[0].datasource.resourceType;t===We._g.DATASERVER&&ht(e[0],this.control.value),t===We._g.REQUEST_SERVER&&mt(e[0],this.control.value)}else ae.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}}yt=new WeakMap,wt=new WeakMap,(0,w.__decorate)([l.observable],xt.prototype,"slottedDatasource",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],xt.prototype,"async",void 0),(0,w.__decorate)([l.attr],xt.prototype,"debounce",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"case-sensitive"})],xt.prototype,"caseSensitive",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"ignore-input-click"})],xt.prototype,"ignoreInputClick",void 0);const $t={delegatesFocus:!0,mode:"open"},St={indicator:'\n <svg\n class="combo-box-indicator"\n part="combo-box-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '},Ft=xt.compose(Object.assign({baseName:"combobox",template:bt,styles:ft,shadowOptions:$t},St));var _t=o(75527);const Ct=(e,t)=>l.css`
|
|
357
357
|
:host {
|
|
358
358
|
--light-size: 12px;
|
|
359
359
|
--height: calc(var(--design-unit) * 2px + var(--light-size));
|
|
@@ -404,18 +404,18 @@
|
|
|
404
404
|
text-overflow: ellipsis;
|
|
405
405
|
white-space: nowrap;
|
|
406
406
|
}
|
|
407
|
-
`,
|
|
407
|
+
`,Dt=l.html`
|
|
408
408
|
<div class=${e=>(0,x.A)(["light",!0],[e.colour,!0])}></div>
|
|
409
409
|
${(0,l.when)((e=>e.showLabel),l.html`
|
|
410
410
|
<div class="label">${e=>e.label}</div>
|
|
411
411
|
`)}
|
|
412
|
-
`;class Ot extends n.FoundationElement{constructor(){super(...arguments),this.showLabel=!1,this.label="disconnected",this.colour="red"}connectedCallback(){super.connectedCallback(),this.subscription=this.connect.isConnectedSubject.subscribe((e=>{this.label=this.getLabel(e),this.colour=e?"green":"red"}))}disconnectedCallback(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}getLabel(e){if(!e)return"disconnected";return`${this.session.getSessionStorageItem("hostUrl")} ✔`}}(0,w.__decorate)([Je.lj],Ot.prototype,"connect",void 0),(0,w.__decorate)([
|
|
412
|
+
`;class Ot extends n.FoundationElement{constructor(){super(...arguments),this.showLabel=!1,this.label="disconnected",this.colour="red"}connectedCallback(){super.connectedCallback(),this.subscription=this.connect.isConnectedSubject.subscribe((e=>{this.label=this.getLabel(e),this.colour=e?"green":"red"}))}disconnectedCallback(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}getLabel(e){if(!e)return"disconnected";return`${this.session.getSessionStorageItem("hostUrl")} ✔`}}(0,w.__decorate)([Je.lj],Ot.prototype,"connect",void 0),(0,w.__decorate)([_t.z],Ot.prototype,"session",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"show-label"})],Ot.prototype,"showLabel",void 0),(0,w.__decorate)([l.observable],Ot.prototype,"label",void 0),(0,w.__decorate)([l.observable],Ot.prototype,"colour",void 0);const kt=Ot.compose({baseName:"connection-indicator",template:Dt,styles:Ct}),Tt=(e,t)=>l.css`
|
|
413
413
|
${(0,s.dataGridStyles)(e,t)}
|
|
414
|
-
`,
|
|
414
|
+
`,At=(e,t)=>(0,n.dataGridTemplate)(e,t);class Lt extends s.DataGrid{}const Et=void 0,Rt={},It=Lt.compose(Object.assign({baseName:"data-grid",template:At,styles:Tt,shadowOptions:Et},Rt)),Nt=(e,t)=>l.css`
|
|
415
415
|
${(0,s.dataGridCellStyles)(e,t)}
|
|
416
|
-
`;class Mt extends s.DataGridCell{}const
|
|
416
|
+
`;class Mt extends s.DataGridCell{}const Pt=void 0,Ht={},jt=Mt.compose(Object.assign({baseName:"data-grid-cell",template:n.dataGridCellTemplate,styles:Nt,shadowOptions:Pt},Ht)),Bt=(e,t)=>l.css`
|
|
417
417
|
${(0,s.dataGridRowStyles)(e,t)}
|
|
418
|
-
`;class
|
|
418
|
+
`;class Vt extends s.DataGridRow{}const Gt=void 0,zt={},Ut=Vt.compose(Object.assign({baseName:"data-grid-row",template:n.dataGridRowTemplate,styles:Bt,shadowOptions:Gt},zt));var Yt=o(87530),Wt=o.n(Yt),qt=o(55466),Xt=o.n(qt),Kt=o(82839),Zt=o.n(Kt),Qt=o(55477),Jt=o.n(Qt),eo=o(78113),to=o.n(eo);class oo{constructor(e=null,t="default"){e=null!=e?e:new Date,this.Date=e,this.date=e.getDate(),this.day=e.toLocaleString(t,{weekday:"long"}),this.dayNumber=e.getDay()+1,this.dayShort=e.toLocaleString(t,{weekday:"short"}),this.year=e.getFullYear(),this.yearShort=Number(e.toLocaleString(t,{year:"2-digit"})),this.month=e.toLocaleString(t,{month:"long"}),this.monthShort=e.toLocaleString(t,{month:"short"}),this.monthNumber=e.getMonth()+1,this.timestamp=e.getTime()}}Wt().extend(to());class io{constructor(e=null,t="default"){const o=new oo(e,t);this.lang=t,this.name=o.month,this.number=o.monthNumber,this.year=o.year,this.numberOfDays=[31,28,31,30,31,30,31,31,30,31,30,31][this.number-1],2===this.number&&(this.numberOfDays+=Wt()(o.date).isLeapYear()?1:0)}getDay(e){return new oo(new Date(this.year,this.number-1,e),this.lang)}}Wt().extend(to());class ao{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new oo(null,o),this.year=null!=e?e:this.today.year,this.month=new io(new Date(this.year,(t||this.today.monthNumber)-1),o),this.lang=o,this.weekDays.forEach(((e,t)=>{const o=this.month.getDay(t);this.weekDays[o.dayNumber-1]=o.day}))}getMonth(e){return new io(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new io(new Date(this.year-1,11),this.lang):new io(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new io(new Date(this.year+1,0),this.lang):new io(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new io(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new io(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new io(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new io(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new io(new Date(this.year,this.month.number-1-1),this.lang)}}const no=l.css`
|
|
419
419
|
:host {
|
|
420
420
|
position: relative;
|
|
421
421
|
}
|
|
@@ -585,8 +585,8 @@
|
|
|
585
585
|
</div>
|
|
586
586
|
</div>
|
|
587
587
|
`,lo=l.html`
|
|
588
|
-
${e=>so(
|
|
589
|
-
`,ro=void 0,co={};class uo extends n.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=Wt()(this.currentDate.Date).format(t))}valueChanged(e,t){if(t&&this.calendar){const e=Wt()().localeData().longDateFormat("L");this.currentDate=new oo(Wt()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=Wt()(this.currentDate.Date).format(this.format),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}}constructor(){super(),this.format="MM-DD-YYYY",this.lang="en-US",this.visible=!1,this.position="bottom",Wt().extend(Xt()),Wt().extend(Jt()),Wt().extend(Zt()),this.substringNumber=3;const e=this.getAttribute("value"),t=e?Wt()(e,"MM-DD-YYYY"):Wt()();this.currentDate=new oo(t.toDate(),this.lang),this.calendar=new ao(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=Wt()(this.currentDate.Date).format("MM-DD-YYYY")}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=Wt()(this.currentDate.Date).format(this.format),this.toggleButton.addEventListener("click",(()=>this.toggleCalendar())),this.prevBtn.addEventListener("click",(()=>this.prevMonth())),this.nextBtn.addEventListener("click",(()=>this.nextMonth())),this.monthList=this.getMonthDaysGrid()}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,x.A)(["visible",this.visible],this.position)}isSelectedDate(e){return Wt()(e.Date).isSame(this.currentDate.Date,"day")}isCurrentCalendarMonth(){return this.currentMonth===this.currentDate.monthNumber&&this.currentYear===this.currentDate.year}prevMonth(){this.calendar.goToPreviousMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}nextMonth(){this.calendar.goToNextMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}selectDay(e){Wt()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=Wt()(this.currentDate.Date).format(this.format),this.value=Wt()(e.Date).format("MM-DD-YYYY"),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),o=e.dayNumber-1,i=this.calendar.month.numberOfDays+o,a=Array.from({length:i});for(let e=o;e<i;e+=1)a[e]=this.calendar.month.getDay(e+1-o);for(let e=0;e<o;e+=1){const i=o-(e+1);a[e]=t.getDay(t.numberOfDays-i)}return a}}(0,w.__decorate)([l.attr],uo.prototype,"format",void 0),(0,w.__decorate)([l.attr],uo.prototype,"lang",void 0),(0,w.__decorate)([l.attr],uo.prototype,"visible",void 0),(0,w.__decorate)([l.attr],uo.prototype,"position",void 0),(0,w.__decorate)([l.attr],uo.prototype,"value",void 0),(0,w.__decorate)([l.observable],uo.prototype,"currentDate",void 0),(0,w.__decorate)([l.observable],uo.prototype,"currentMonth",void 0),(0,w.__decorate)([l.observable],uo.prototype,"currentYear",void 0),(0,w.__decorate)([l.observable],uo.prototype,"calendarDropdownClasses",void 0),(0,w.__decorate)([l.observable],uo.prototype,"formatDate",void 0),(0,w.__decorate)([l.observable],uo.prototype,"monthList",void 0);const po=uo.compose(Object.assign({baseName:"date-picker",styles:no,template:lo,shadowOptions:ro},co));var ho=o(82694);const mo=s.SwatchRGB.create(1,1,1),vo=s.SwatchRGB.create(0,0,0),go=(0,ho.parseColorHexRGB)("#585858"),fo=s.SwatchRGB.create(go.r,go.g,go.b),bo=(0,ho.parseColorHexRGB)("#ffffff"),yo=s.SwatchRGB.create(bo.r,bo.g,bo.b),wo=s.PaletteRGB.from(yo),xo=(0,ho.parseColorHexRGB)("#eeeeee"),$o=s.SwatchRGB.create(xo.r,xo.g,xo.b),
|
|
588
|
+
${e=>so(C(e))}
|
|
589
|
+
`,ro=void 0,co={};class uo extends n.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=Wt()(this.currentDate.Date).format(t))}valueChanged(e,t){if(t&&this.calendar){const e=Wt()().localeData().longDateFormat("L");this.currentDate=new oo(Wt()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=Wt()(this.currentDate.Date).format(this.format),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}}constructor(){super(),this.format="MM-DD-YYYY",this.lang="en-US",this.visible=!1,this.position="bottom",Wt().extend(Xt()),Wt().extend(Jt()),Wt().extend(Zt()),this.substringNumber=3;const e=this.getAttribute("value"),t=e?Wt()(e,"MM-DD-YYYY"):Wt()();this.currentDate=new oo(t.toDate(),this.lang),this.calendar=new ao(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=Wt()(this.currentDate.Date).format("MM-DD-YYYY")}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=Wt()(this.currentDate.Date).format(this.format),this.toggleButton.addEventListener("click",(()=>this.toggleCalendar())),this.prevBtn.addEventListener("click",(()=>this.prevMonth())),this.nextBtn.addEventListener("click",(()=>this.nextMonth())),this.monthList=this.getMonthDaysGrid()}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,x.A)(["visible",this.visible],this.position)}isSelectedDate(e){return Wt()(e.Date).isSame(this.currentDate.Date,"day")}isCurrentCalendarMonth(){return this.currentMonth===this.currentDate.monthNumber&&this.currentYear===this.currentDate.year}prevMonth(){this.calendar.goToPreviousMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}nextMonth(){this.calendar.goToNextMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}selectDay(e){Wt()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=Wt()(this.currentDate.Date).format(this.format),this.value=Wt()(e.Date).format("MM-DD-YYYY"),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),o=e.dayNumber-1,i=this.calendar.month.numberOfDays+o,a=Array.from({length:i});for(let e=o;e<i;e+=1)a[e]=this.calendar.month.getDay(e+1-o);for(let e=0;e<o;e+=1){const i=o-(e+1);a[e]=t.getDay(t.numberOfDays-i)}return a}}(0,w.__decorate)([l.attr],uo.prototype,"format",void 0),(0,w.__decorate)([l.attr],uo.prototype,"lang",void 0),(0,w.__decorate)([l.attr],uo.prototype,"visible",void 0),(0,w.__decorate)([l.attr],uo.prototype,"position",void 0),(0,w.__decorate)([l.attr],uo.prototype,"value",void 0),(0,w.__decorate)([l.observable],uo.prototype,"currentDate",void 0),(0,w.__decorate)([l.observable],uo.prototype,"currentMonth",void 0),(0,w.__decorate)([l.observable],uo.prototype,"currentYear",void 0),(0,w.__decorate)([l.observable],uo.prototype,"calendarDropdownClasses",void 0),(0,w.__decorate)([l.observable],uo.prototype,"formatDate",void 0),(0,w.__decorate)([l.observable],uo.prototype,"monthList",void 0);const po=uo.compose(Object.assign({baseName:"date-picker",styles:no,template:lo,shadowOptions:ro},co));var ho=o(82694);const mo=s.SwatchRGB.create(1,1,1),vo=s.SwatchRGB.create(0,0,0),go=(0,ho.parseColorHexRGB)("#585858"),fo=s.SwatchRGB.create(go.r,go.g,go.b),bo=(0,ho.parseColorHexRGB)("#ffffff"),yo=s.SwatchRGB.create(bo.r,bo.g,bo.b),wo=s.PaletteRGB.from(yo),xo=(0,ho.parseColorHexRGB)("#eeeeee"),$o=s.SwatchRGB.create(xo.r,xo.g,xo.b),So=s.PaletteRGB.from($o),Fo=(0,ho.parseColorHexRGB)("#08c3a5"),_o=s.SwatchRGB.create(Fo.r,Fo.g,Fo.b),Co=s.PaletteRGB.from(_o),{create:Do}=n.DesignToken,Oo=Do("fui-fill-color").withDefault(fo),ko=Do({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(yo),To=14;function Ao(e,t){return e.colorContrast(t,To)}const Lo=Do({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>Ao(Do("fui-card-palette").withDefault(wo).getValueFor(e),ko.getValueFor(e))));var Eo=o(47823);const Ro=(e,t,o)=>{const i=o?(e,t)=>e.setValueFor(o,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach((o=>{const a=`${o}Value`;t[a]&&i(e[o],t[a])}))};function Io(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const No={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,ho.parseColorHexRGB)(e);return t?s.SwatchRGB.create(t.r,t.g,t.b):null}},Mo=e=>s.PaletteRGB.from(s.SwatchRGB.from((0,ho.parseColorHexRGB)(e))),Po=["baseClass","baseName","shadowOptions","styles","template"],Ho=(e,t=Po)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),jo=e=>{const{definition:t}=e(),{shadowOptions:o,styles:i,template:a}=t;return{shadowOptions:o,styles:i,template:a,defaultConfig:Ho(t)}},Bo=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),i=o[1],a=o[2];return Number(i)+t+a},Vo=(e,t)=>{const o=t.design_tokens;s.accentPalette.setValueFor(e,Mo(o.color.accent.$value)),s.neutralPalette.setValueFor(e,Mo(o.color.neutral.$value)),s.bodyFont.setValueFor(e,o.fontFamily.bodyFont.$value),s.baseLayerLuminance.setValueFor(e,o.mode.luminance.$value),s.density.setValueFor(e,o.style.density.$value),s.controlCornerRadius.setValueFor(e,o.style.borderRadius.$value),s.strokeWidth.setValueFor(e,o.style.strokeWidth.$value),s.designUnit.setValueFor(e,o.space.designUnit.$value),s.typeRampBaseFontSize.setValueFor(e,o.typography.baseFontSize.$value),s.typeRampBaseLineHeight.setValueFor(e,o.typography.baseLineHeight.$value);const i=s.typeRampBaseFontSize.getValueFor(e),a=s.typeRampBaseLineHeight.getValueFor(e);s.typeRampMinus1FontSize.setValueFor(e,Bo(i,Eo.Yd.minusOne)),s.typeRampMinus1LineHeight.setValueFor(e,Bo(a,Eo.Yd.minusOne)),s.typeRampMinus2FontSize.setValueFor(e,Bo(i,Eo.Yd.minusTwo)),s.typeRampMinus2LineHeight.setValueFor(e,Bo(a,Eo.Yd.minusTwo)),s.typeRampPlus1FontSize.setValueFor(e,Bo(i,Eo.Yd.plusOne)),s.typeRampPlus1LineHeight.setValueFor(e,Bo(a,Eo.Yd.plusOne)),s.typeRampPlus2FontSize.setValueFor(e,Bo(i,Eo.Yd.plusTwo)),s.typeRampPlus2LineHeight.setValueFor(e,Bo(a,Eo.Yd.plusTwo)),s.typeRampPlus3FontSize.setValueFor(e,Bo(i,Eo.Yd.plusThree)),s.typeRampPlus3LineHeight.setValueFor(e,Bo(a,Eo.Yd.plusThree)),s.typeRampPlus4FontSize.setValueFor(e,Bo(i,Eo.Yd.plusFour)),s.typeRampPlus4LineHeight.setValueFor(e,Bo(a,Eo.Yd.plusFour)),s.typeRampPlus5FontSize.setValueFor(e,Bo(i,Eo.Yd.plusFive)),s.typeRampPlus5LineHeight.setValueFor(e,Bo(a,Eo.Yd.plusFive)),s.typeRampPlus6FontSize.setValueFor(e,Bo(i,Eo.Yd.plusSix)),s.typeRampPlus6LineHeight.setValueFor(e,Bo(a,Eo.Yd.plusSix))},Go=Mo("#08c3a5"),zo=Mo("#eeeeee"),Uo=s.StandardLuminance.DarkMode;const Yo=o(5598).N.ltr,Wo=4,qo=4;var Xo=o(67973);const Ko=(e="normal",t="normal")=>`\n font-family: ${s.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,Zo=l.css`
|
|
590
590
|
${(0,n.display)("flex")}
|
|
591
591
|
:host {
|
|
592
592
|
flex: 1;
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
${e.name} ${"h"+t} {
|
|
606
606
|
margin: 0;
|
|
607
607
|
}
|
|
608
|
-
`;class ei extends s.DesignSystemProvider{constructor(){super(),
|
|
608
|
+
`;class ei extends s.DesignSystemProvider{constructor(){super(),Ro(i,a,this)}}(0,w.__decorate)([(0,l.attr)({attribute:"card-fill-color",converter:No}),Io(ko)],ei.prototype,"cardFillColor",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"card-foreground-color",converter:No}),Io(Lo)],ei.prototype,"cardForegroundColor",void 0);const ti=ei.compose({baseName:"design-system-provider",template:l.html`
|
|
609
609
|
<slot></slot>
|
|
610
610
|
`,styles:e=>{const t=(e=>l.css`
|
|
611
611
|
${Jo(e,"1")}
|
|
@@ -713,12 +713,12 @@
|
|
|
713
713
|
</div>
|
|
714
714
|
</dialog>
|
|
715
715
|
`,si=l.html`
|
|
716
|
-
${e=>ni(
|
|
716
|
+
${e=>ni(C(e))}
|
|
717
717
|
`,li={mode:"open",delegatesFocus:!0},ri={};class di extends n.FoundationElement{constructor(){super(...arguments),this.position="centre",this.showCloseIcon=!0}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||oi.Z.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback()}))}get open(){return this.mainElement.hasAttribute("open")}close(){this.mainElement.close()}dismiss(){var e,t,o,i;(null===(i=null===(o=null===(t=null===(e=this.notification)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){ae.error(e)}}}(0,w.__decorate)([l.observable],di.prototype,"notification",void 0),(0,w.__decorate)([l.attr],di.prototype,"position",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"show-close-icon"})],di.prototype,"showCloseIcon",void 0),(0,w.__decorate)([l.observable],di.prototype,"onShowCallback",void 0),(0,w.__decorate)([l.observable],di.prototype,"onCloseCallback",void 0),(0,w.__decorate)([l.volatile],di.prototype,"open",null);class ci extends di{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const ui=ci.compose(Object.assign({baseName:"dialog",styles:ii,template:si,shadowOptions:li},ri)),pi=(e,t)=>l.css`
|
|
718
718
|
${(0,s.disclosureStyles)(e,t)}
|
|
719
719
|
`,hi=(e,t)=>(0,n.disclosureTemplate)(e,t);class mi extends n.Disclosure{}const vi=void 0,gi={},fi=mi.compose(Object.assign({baseName:"disclosure",template:hi,styles:pi,shadowOptions:vi},gi)),bi=(e,t)=>l.css`
|
|
720
720
|
${(0,s.dividerStyles)(e,t)}
|
|
721
|
-
`,yi=(e,t)=>(0,n.dividerTemplate)(e,t);class wi extends n.Divider{}const xi=void 0,$i={},
|
|
721
|
+
`,yi=(e,t)=>(0,n.dividerTemplate)(e,t);class wi extends n.Divider{}const xi=void 0,$i={},Si=wi.compose(Object.assign({baseName:"divider",template:yi,styles:bi,shadowOptions:xi},$i)),Fi=(e,t,o)=>l.css`
|
|
722
722
|
:host {
|
|
723
723
|
--dropdown-opener-height-multiplier: 0.7px;
|
|
724
724
|
--menu-item-height-multiplier: 0.7px;
|
|
@@ -781,9 +781,9 @@
|
|
|
781
781
|
var(--menu-item-height-multiplier)
|
|
782
782
|
);
|
|
783
783
|
}
|
|
784
|
-
`,
|
|
785
|
-
${
|
|
786
|
-
`,
|
|
784
|
+
`,_i=(e,t)=>l.css`
|
|
785
|
+
${Fi("foundation",e,t)}
|
|
786
|
+
`,Ci=(e,t)=>l.html`
|
|
787
787
|
${(0,l.repeat)((()=>e),l.html`
|
|
788
788
|
${(0,l.when)((e=>e.isDisabled&&e.isDisabled()),l.html`
|
|
789
789
|
<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>
|
|
@@ -804,12 +804,12 @@
|
|
|
804
804
|
`)}
|
|
805
805
|
${e=>e.name}
|
|
806
806
|
${(0,l.when)((e=>e.submenu),l.html`
|
|
807
|
-
<${t}-menu>${e=>
|
|
807
|
+
<${t}-menu>${e=>Ci(e.submenu,t)}</${t}-menu>
|
|
808
808
|
`)}
|
|
809
809
|
</${t}-menu-item>
|
|
810
810
|
`)}
|
|
811
811
|
`)}
|
|
812
|
-
`,
|
|
812
|
+
`,Di=e=>l.html`
|
|
813
813
|
<div class="actions-container" part="actions-container">
|
|
814
814
|
<${e}-button
|
|
815
815
|
id="actiosnMenuTrigger"
|
|
@@ -826,12 +826,12 @@
|
|
|
826
826
|
class="actions-menu ${e=>e.classNames}"
|
|
827
827
|
part="actions-menu"
|
|
828
828
|
>
|
|
829
|
-
${t=>
|
|
829
|
+
${t=>Ci(t.allItems,e)}
|
|
830
830
|
</${e}-menu>
|
|
831
831
|
</div>
|
|
832
832
|
`,Oi=l.html`
|
|
833
|
-
${e=>
|
|
834
|
-
`;class ki extends n.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){
|
|
833
|
+
${e=>Di(C(e))}
|
|
834
|
+
`;class ki extends n.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){F(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,x.A)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,w.__decorate)([l.observable],ki.prototype,"items",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],ki.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"disable-button",mode:"boolean"})],ki.prototype,"disabled",void 0),(0,w.__decorate)([l.observable],ki.prototype,"classNames",void 0),(0,w.__decorate)([l.attr],ki.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"open",mode:"boolean"})],ki.prototype,"open",void 0),(0,w.__decorate)([l.attr],ki.prototype,"buttonAppearance",void 0);const Ti=ki.compose({baseName:"dropdown-menu",styles:_i,template:Oi}),Ai=e=>l.html`
|
|
835
835
|
<${e}-banner ${(0,l.ref)("banner")}>
|
|
836
836
|
<div slot="content">
|
|
837
837
|
<div>
|
|
@@ -852,13 +852,13 @@
|
|
|
852
852
|
</${e}-button>
|
|
853
853
|
`)}
|
|
854
854
|
</${e}-banner>
|
|
855
|
-
`,
|
|
856
|
-
${e=>
|
|
857
|
-
`,
|
|
855
|
+
`,Li=l.html`
|
|
856
|
+
${e=>Ai(C(e))}
|
|
857
|
+
`,Ei={mode:"open",delegatesFocus:!0};class Ri extends n.FoundationElement{connectedCallback(){super.connectedCallback(),ae.deprecated("ErrorBanner","Use `${prefix}-banner` instead.")}dismiss(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){ae.error(e)}}))}}(0,w.__decorate)([l.observable],Ri.prototype,"error",void 0),(0,w.__decorate)([l.observable],Ri.prototype,"notification",void 0);const Ii=Ri.compose({baseName:"error-banner",template:Li,shadowOptions:Ei});var Ni;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(Ni||(Ni={}));const Mi=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.errorDetails)&&void 0!==o?o:"Something went wrong"}`},Pi=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},Hi=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},ji=(e,t)=>{var o,i,a,n,s,l,r,d,c,u,p,h,m;const v=t.split("-")[0],g=Pi("notify-container",t);if(g)switch(g.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.notification)||void 0===i?void 0:i.position){case"top-left":g.style.top="0",g.style.left="0";break;case"bottom-left":g.style.bottom="0",g.style.left="0";break;case"bottom-right":g.style.bottom="0",g.style.right="0";break;default:g.style.top="0",g.style.right="0"}const f=document.createElement(`${v}-toast`),b=document.createElement("div");b.setAttribute("slot","top"),b.textContent=null!==(a=e.title)&&void 0!==a?a:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const w=document.createElement("div");w.setAttribute("slot","date"),w.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.notification)||void 0===s?void 0:s.type)||""),(null===(r=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.notification)||void 0===r?void 0:r.autoClose)&&f.setAttribute("auto-close",`${null===(c=null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.notification)||void 0===c?void 0:c.autoClose}`),(null===(p=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.notification)||void 0===p?void 0:p.closeTimeout)&&f.setAttribute("close-timeout",`${null===(m=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.notification)||void 0===m?void 0:m.closeTimeout}`),f.appendChild(b),f.appendChild(y),f.appendChild(w),g.appendChild(f)},Bi=(0,ie.createLogger)("foundation-error"),Vi={alert:e=>{alert(Mi(e))},notification:ji,dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-error-dialog`);Pi("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Pi("snack-container",t).appendChild(i),i.error=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-error-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("error-banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return Hi()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.error=e}},Gi=(e,t,o)=>{var i,a;Bi.log({message:Mi(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||ie.LogLevel.Error)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Vi[i]&&Vi[i](e,t,o)}))};class zi{withTitle(e){return this.title=e,this}withErrorDetails(e){return this.errorDetails=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withNotification(e){return this.notification=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.errorDetails)throw new Error("Missing required param 'errorDetails'");let e={title:this.title,errorDetails:this.errorDetails},t={};return this.logLevel in ie.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}const Ui=()=>new zi;class Yi{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),e}}const Wi=l.html`
|
|
858
858
|
<template ${(0,l.ref)("errorBoundary")}>
|
|
859
859
|
<slot></slot>
|
|
860
860
|
</template>
|
|
861
|
-
`,qi={mode:"open",delegatesFocus:!0};class Xi extends n.FoundationElement{constructor(){super(...arguments),this.logger=(0,ie.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(
|
|
861
|
+
`,qi={mode:"open",delegatesFocus:!0};class Xi extends n.FoundationElement{constructor(){super(...arguments),this.logger=(0,ie.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(Ni.ERROR_BOUNDARY_EVENT,(e=>{e.stopImmediatePropagation(),Gi(e.detail,this.tagName,this.errorBoundary)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||t.subscribe((e=>{if(!e.ROW)return;const t=null==e?void 0:e.ROW[0];if(e.SEQUENCE_ID>1){const e=t.HEADER,o=null==t?void 0:t.BODY,i=t.NOTIFY_SEVERITY;Gi(Ui().withTitle(e).withErrorDetails(o).withNotification((new Yi).withType(i).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})))}))}}(0,w.__decorate)([l.observable],Xi.prototype,"errorBoundary",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],Xi.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Xi.prototype,"closeTimeout",void 0),(0,w.__decorate)([et.Yh],Xi.prototype,"datasource",void 0);const Ki=Xi.compose({baseName:"error-boundary",template:Wi,shadowOptions:qi}),Zi=l.css`
|
|
862
862
|
:host {
|
|
863
863
|
--design-unit: 3;
|
|
864
864
|
--dialog-max-width: 358px;
|
|
@@ -895,7 +895,7 @@
|
|
|
895
895
|
`)}
|
|
896
896
|
</${e}-dialog>
|
|
897
897
|
`,Ji=l.html`
|
|
898
|
-
${e=>Qi(
|
|
898
|
+
${e=>Qi(C(e))}
|
|
899
899
|
`,ea={mode:"open",delegatesFocus:!0};class ta extends n.FoundationElement{connectedCallback(){super.connectedCallback(),ae.deprecated("ErrorDialog","Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){var e,t,o,i,a,n,s,l;(null===(i=null===(o=null===(t=null===(e=this.error)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.error.config.dialog.dismissingAction.action(),(null===(l=null===(s=null===(n=null===(a=this.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.dialog)||void 0===s?void 0:s.dismissingAction)||void 0===l?void 0:l.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){ae.error(e)}}}(0,w.__decorate)([l.observable],ta.prototype,"error",void 0),(0,w.__decorate)([l.observable],ta.prototype,"notification",void 0);const oa=ta.compose({baseName:"error-dialog",template:Ji,styles:Zi,shadowOptions:ea});var ia=o(22296),aa=o(21607);const na=l.css`
|
|
900
900
|
/* Host */
|
|
901
901
|
:host {
|
|
@@ -971,7 +971,7 @@
|
|
|
971
971
|
</div>
|
|
972
972
|
</template>
|
|
973
973
|
`,la=l.html`
|
|
974
|
-
${e=>sa(
|
|
974
|
+
${e=>sa(C(e))}
|
|
975
975
|
`,ra=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},da=(e,t,o)=>{const i=new Headers;return i.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:"POST",body:t,headers:i}).then((e=>e.json().then((e=>e))))},ca=(e,t,o,i="GET",a,n)=>{const s=new Headers;s.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:i,body:n,headers:s}).then((e=>(0,w.__awaiter)(void 0,void 0,void 0,(function*(){var t;if(e.ok)return e.blob();{const o=yield e.json();a&&ji(Ui().withTitle(null==o?void 0:o.MESSAGE_TYPE).withErrorDetails(null===(t=null==o?void 0:o.DETAILS)||void 0===t?void 0:t.ERROR).withNotification({autoClose:!0,closeTimeout:5e3,type:"warning"}).build(),"zero"),ae.error(o||"An error occurred while downloading the file.")}})))).then((e=>{if(e){const o=window.URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=t,document.body.appendChild(i),i.click(),i.remove(),a&&ji(Ui().withTitle("Success").withErrorDetails("File downloaded successfully").withNotification({autoClose:!0,closeTimeout:5e3,type:"success"}).build(),"zero"),ae.info("File downloaded successfully")}})).catch((e=>{ae.error(e)}))},ua=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],pa=["text/plain","text/csv"],ha=["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/pdf"],ma=l.html`
|
|
976
976
|
${(0,l.when)((e=>e.rowData),l.html`
|
|
977
977
|
${e=>"DATETIME"===e.columnDefinition.type?(0,aa.Lx)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
</${e}-button>
|
|
988
988
|
</div>
|
|
989
989
|
</template>
|
|
990
|
-
`}}getColumnObject(e){return{columnDataKey:e.NAME,title:e.NAME.toLowerCase().split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),type:e.TYPE,cellTemplate:ma}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t,o;const i=Array.from(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.files)&&void 0!==o?o:[]);this.onFilesSelected(i)}onFilesSelected(e){if(e.length>0&&this.acceptedFormats.length>0){for(const t of e){if(!(this.accept.split(",").includes(".msg")&&t.name&&t.name.endsWith("msg")||this.acceptedFormats.includes(t.type)))return void alert(`Not a valid file type. Accepted Formats are ${this.accept}`);if(t.size>this.fileSizeLimitBytes)return void alert(`File size exceeds the file size limit of ${this.fileSizeLimitBytes} bytes`)}this.selectedFiles=e,this.fileName=this.selectedFiles.map((e=>e.name.trim())).join()}}handleFileUpload(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{const e=ra(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield da(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return ia.k.error(t.ERROR),void this.$emit("errorOut",t.ERROR);ia.k.info(t),this.clearSelection()}catch(e){ia.k.error(e)}}))}handleFileDownload(e){ca(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,w.__decorate)([l.observable],va.prototype,"gridCriteria",void 0),(0,w.__decorate)([Je.lj],va.prototype,"connect",void 0),(0,w.__decorate)([
|
|
990
|
+
`}}getColumnObject(e){return{columnDataKey:e.NAME,title:e.NAME.toLowerCase().split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),type:e.TYPE,cellTemplate:ma}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t,o;const i=Array.from(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.files)&&void 0!==o?o:[]);this.onFilesSelected(i)}onFilesSelected(e){if(e.length>0&&this.acceptedFormats.length>0){for(const t of e){if(!(this.accept.split(",").includes(".msg")&&t.name&&t.name.endsWith("msg")||this.acceptedFormats.includes(t.type)))return void alert(`Not a valid file type. Accepted Formats are ${this.accept}`);if(t.size>this.fileSizeLimitBytes)return void alert(`File size exceeds the file size limit of ${this.fileSizeLimitBytes} bytes`)}this.selectedFiles=e,this.fileName=this.selectedFiles.map((e=>e.name.trim())).join()}}handleFileUpload(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){try{const e=ra(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield da(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return ia.k.error(t.ERROR),void this.$emit("errorOut",t.ERROR);ia.k.info(t),this.clearSelection()}catch(e){ia.k.error(e)}}))}handleFileDownload(e){ca(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,w.__decorate)([l.observable],va.prototype,"gridCriteria",void 0),(0,w.__decorate)([Je.lj],va.prototype,"connect",void 0),(0,w.__decorate)([_t.z],va.prototype,"session",void 0),(0,w.__decorate)([l.attr],va.prototype,"label",void 0),(0,w.__decorate)([l.attr],va.prototype,"accept",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"file-size-limit-bytes"})],va.prototype,"fileSizeLimitBytes",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"uploaded-files-resource-name"})],va.prototype,"uploadedFilesResourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"upload-event-name"})],va.prototype,"uploadEventName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"field-name"})],va.prototype,"fieldName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"entity-id"})],va.prototype,"entityId",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"upload-key"})],va.prototype,"uploadKey",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"grid-fields"})],va.prototype,"gridFields",void 0),(0,w.__decorate)([l.observable],va.prototype,"fileName",void 0),(0,w.__decorate)([l.observable],va.prototype,"uploadedFilesList",void 0),(0,w.__decorate)([l.observable],va.prototype,"filesGridColumnDefinitions",void 0);const ga=void 0,fa={},ba=va.compose(Object.assign({baseName:"file-upload",styles:na,template:la,shadowOptions:ga},fa)),ya=l.css`
|
|
991
991
|
.filter-wrapper {
|
|
992
992
|
border: 1px solid gray;
|
|
993
993
|
border-radius: calc(var(--design-unit) * 2px);
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
}
|
|
1041
1041
|
`;var wa=o(18471);const xa=l.html`
|
|
1042
1042
|
<div class="close-icon" @click=${e=>e.clear()}>${ai()}</div>
|
|
1043
|
-
`;function $a(e){var t,o,i;return null!==(i=null===(o=null===(t=null==e?void 0:e.event)||void 0===t?void 0:t.target)||void 0===o?void 0:o.value)&&void 0!==i?i:"all"}const
|
|
1043
|
+
`;function $a(e){var t,o,i;return null!==(i=null===(o=null===(t=null==e?void 0:e.event)||void 0===t?void 0:t.target)||void 0===o?void 0:o.value)&&void 0!==i?i:"all"}const Sa=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],Fa=(e,t)=>{switch(e.type){case"number":return(e=>l.html`
|
|
1044
1044
|
<div class="flex-row">
|
|
1045
1045
|
<div>${e=>e.label}</div>
|
|
1046
1046
|
${xa}
|
|
@@ -1083,7 +1083,7 @@
|
|
|
1083
1083
|
</div>
|
|
1084
1084
|
<div class="flex-row">
|
|
1085
1085
|
<${e}-select @change="${(e,t)=>e.onBooleanFilterSelection($a(t))}}">
|
|
1086
|
-
${(0,l.repeat)((()=>
|
|
1086
|
+
${(0,l.repeat)((()=>Sa),l.html`
|
|
1087
1087
|
<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1088
1088
|
${e=>e.name}
|
|
1089
1089
|
</${e}-option>
|
|
@@ -1116,11 +1116,11 @@
|
|
|
1116
1116
|
:value=${(0,wa.Z)((e=>e.textFilter))}
|
|
1117
1117
|
/>
|
|
1118
1118
|
</div>
|
|
1119
|
-
`)(t)}},
|
|
1120
|
-
<div class="filter-wrapper">${t=>
|
|
1121
|
-
`,
|
|
1122
|
-
${e=>
|
|
1123
|
-
`;var
|
|
1119
|
+
`)(t)}},_a=e=>l.html`
|
|
1120
|
+
<div class="filter-wrapper">${t=>Fa(t,e)}</div>
|
|
1121
|
+
`,Ca=l.html`
|
|
1122
|
+
${e=>_a(C(e))}</div>
|
|
1123
|
+
`;var Da;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(Da||(Da={}));class Oa extends n.FoundationElement{constructor(){super(...arguments),this.type="text",this.textFilter="",this.enumFilterOptions=[{name:"All",value:"all",selected:!0}]}textFilterChanged(e,t){if(!(null==t?void 0:t.length))return void this.$emit(Da.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(Da.change,{fieldName:this.fieldName,filter:o,target:this.target})}numFilterMinChanged(e,t){this.numFilterMin=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}numFilterMaxChanged(e,t){this.numFilterMax=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}handleNumericFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t))return void this.$emit(Da.clear,{fieldName:this.fieldName,target:this.target});const o=`${this.fieldName} >= ${e}`,i=`${this.fieldName} <= ${t}`,a=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${i})`:o:i;this.$emit(Da.change,{fieldName:this.fieldName,filter:a,target:this.target})}formatDate(e){if(Number.isFinite(e))return new Date(e).toISOString().slice(0,19).replace(/-/g,"").replace("T","-")}dateFilterMinChanged(e,t){this.dateMinMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}dateFilterMaxChanged(e,t){this.dateMaxMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}handleDateFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t))return void this.$emit(Da.clear,{fieldName:this.fieldName});const o=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,i=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,a=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${i})`:o:i;this.$emit(Da.change,{fieldName:this.fieldName,filter:a,target:this.target})}connectedCallback(){var e;if(super.connectedCallback(),null===(e=this.enumOptions)||void 0===e?void 0:e.length){const e=this.enumOptions.includes("|")?"|":",",t=this.enumOptions.split(e).map((e=>({name:e,value:e})));this.enumFilterOptions=[{name:"All",value:"all",selected:!0},...t]}}clear(){switch(this.type){case"number":this.numFilterFieldMin.value=void 0,this.numFilterFieldMax.value=void 0,this.numFilterMin=void 0,this.numFilterMax=void 0;break;case"date":this.dateFilterFieldMin.value="",this.dateFilterFieldMax.value="",this.dateMinMS=NaN,this.dateMaxMS=NaN;break;case"text":this.textFilterField.value=""}this.$emit(Da.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(Da.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(Da.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(Da.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(Da.clear,{fieldName:this.fieldName,target:this.target})}}(0,w.__decorate)([l.attr],Oa.prototype,"fieldName",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"type",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"label",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"target",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"textFilter",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"numFilterMin",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"numFilterMax",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"dateFilterMin",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"dateFilterMax",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"enumOptions",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"enumFilterOptions",void 0);const ka=Oa.compose({baseName:"filter",template:Ca,styles:ya});var Ta=o(41353);const Aa=(e,t)=>l.css`
|
|
1124
1124
|
.filter-bar {
|
|
1125
1125
|
background-color: #2c2f33;
|
|
1126
1126
|
padding: calc(var(--design-unit) * 2px);
|
|
@@ -1156,9 +1156,9 @@
|
|
|
1156
1156
|
.toggle-collapsed {
|
|
1157
1157
|
color: #48ed9c;
|
|
1158
1158
|
}
|
|
1159
|
-
`,
|
|
1159
|
+
`,La=e=>{switch(e){case"INT":case"DOUBLE":case"LONG":return"number";case"DATETIME":return"date";case"BOOLEAN":return"boolean";case"ENUM":return"enum";default:return"text"}},Ea=l.html`
|
|
1160
1160
|
<p>Fetching metadata for ${e=>e.resource}...</p>
|
|
1161
|
-
`,
|
|
1161
|
+
`,Ra=e=>l.html`
|
|
1162
1162
|
<div
|
|
1163
1163
|
class=${e=>(0,x.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1164
1164
|
@click="${e=>e.toggle()}"
|
|
@@ -1178,17 +1178,17 @@
|
|
|
1178
1178
|
<${e}-filter
|
|
1179
1179
|
label="${e=>e.UI_LABEL}"
|
|
1180
1180
|
target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
|
|
1181
|
-
type="${e=>
|
|
1181
|
+
type="${e=>La(e.TYPE)}"
|
|
1182
1182
|
fieldName="${e=>e.NAME}"
|
|
1183
1183
|
enumOptions="${e=>e.VALID_VALUES}"
|
|
1184
1184
|
></${e}-filter>
|
|
1185
1185
|
`)}
|
|
1186
1186
|
</div>
|
|
1187
1187
|
</div>
|
|
1188
|
-
`,
|
|
1189
|
-
${e=>e.ready?
|
|
1190
|
-
`,
|
|
1191
|
-
${t&&`@media only screen and ${
|
|
1188
|
+
`,Ia=l.html`
|
|
1189
|
+
${e=>e.ready?Ra(C(e)):Ea}
|
|
1190
|
+
`,Na=5;class Ma extends n.FoundationElement{constructor(){super(...arguments),this.columns=Na,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,o,i,a;let n=!1,s=[];(null===(e=null==this?void 0:this.labels)||void 0===e?void 0:e.length)&&(s=null===(t=this.labels.split(","))||void 0===t?void 0:t.map((e=>e.trim())),n=(null===(o=this.fields)||void 0===o?void 0:o.length)===(null==s?void 0:s.length));for(let e=0;null!==(a=e<(null===(i=this.fields)||void 0===i?void 0:i.length))&&void 0!==a&&a;e+=1){const t=n?s[e]:this.camelCasePreserveWhitespace(this.fields[e].NAME.replace(/_/g," "));this.fields[e].UI_LABEL=t}}camelCasePreserveWhitespace(e){return e.split(" ").map((e=>(0,Ta.Ho)(e))).join(" ")}resourceChanged(e,t){e!==t&&(null==e?void 0:e.length)&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then((e=>{var t,o;if(this.fields=e.FIELD,null===(t=this.only)||void 0===t?void 0:t.length){const e=this.only.split(",").map((e=>e.trim())),t=(t,o)=>e.indexOf(t.NAME)>e.indexOf(o.NAME)?1:-1;this.fields=null===(o=this.fields)||void 0===o?void 0:o.filter((t=>e.includes(t.NAME))).sort(t)}this.ready=!0})).then((()=>this.initLabels())).then((()=>window.requestAnimationFrame((()=>{this.adjustColumnStyles()})))).catch((e=>ae.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,w.__decorate)([l.attr],Ma.prototype,"resource",void 0),(0,w.__decorate)([l.attr],Ma.prototype,"only",void 0),(0,w.__decorate)([l.attr],Ma.prototype,"labels",void 0),(0,w.__decorate)([l.attr],Ma.prototype,"target",void 0),(0,w.__decorate)([l.attr],Ma.prototype,"columns",void 0),(0,w.__decorate)([l.observable],Ma.prototype,"ready",void 0),(0,w.__decorate)([l.observable],Ma.prototype,"fields",void 0),(0,w.__decorate)([Je.lj],Ma.prototype,"connect",void 0),(0,w.__decorate)([l.observable],Ma.prototype,"collapsed",void 0);const Pa=Ma.compose({baseName:"filter-bar",template:Ia,styles:Aa});var Ha;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Ha||(Ha={}));const ja=e=>{const t=e?`-${e}`:"";return l.css`
|
|
1191
|
+
${t&&`@media only screen and ${Ha[e]} {`}
|
|
1192
1192
|
:host(.spacing${t}-1x) slot {
|
|
1193
1193
|
gap: calc(var(--design-unit) * 2px);
|
|
1194
1194
|
}
|
|
@@ -1321,11 +1321,11 @@
|
|
|
1321
1321
|
${ja("lg")}
|
|
1322
1322
|
${ja("md")}
|
|
1323
1323
|
${ja("sm")}
|
|
1324
|
-
`,
|
|
1324
|
+
`,Va=l.html`
|
|
1325
1325
|
<template>
|
|
1326
1326
|
<slot></slot>
|
|
1327
1327
|
</template>
|
|
1328
|
-
`,
|
|
1328
|
+
`,Ga=void 0,za={};class Ua extends n.FoundationElement{}const Ya=Ua.compose(Object.assign({baseName:"flex-layout",styles:Ba,template:Va,shadowOptions:Ga},za)),Wa=(e,t)=>l.css`
|
|
1329
1329
|
${(0,s.flipperStyles)(e,t)}
|
|
1330
1330
|
`,qa=(e,t)=>(0,n.flipperTemplate)(e,t);class Xa extends s.Flipper{}const Ka=void 0,Za={next:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n ',previous:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n />\n </svg>\n '},Qa=Xa.compose(Object.assign({baseName:"flipper",template:qa,styles:Wa,shadowOptions:Ka},Za)),Ja=225,en=l.css`
|
|
1331
1331
|
/* Host */
|
|
@@ -1433,7 +1433,7 @@
|
|
|
1433
1433
|
</div>
|
|
1434
1434
|
</div>
|
|
1435
1435
|
`,on=l.html`
|
|
1436
|
-
${e=>tn(
|
|
1436
|
+
${e=>tn(C(e))}
|
|
1437
1437
|
`;class an extends n.FoundationElement{constructor(){super(...arguments),this.position="right",this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}closedChanged(){this.closed||setTimeout((()=>this.visuallyhidden=!1),1)}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit("closed"))}}(0,w.__decorate)([l.attr],an.prototype,"position",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],an.prototype,"displayHeader",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],an.prototype,"closed",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],an.prototype,"visuallyhidden",void 0);const nn=void 0,sn={},ln=an.compose(Object.assign({baseName:"flyout",styles:en,template:on,shadowOptions:nn},sn));var rn;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(rn||(rn={}));const dn=e=>{const t=e?`-${e}`:"";return l.css`
|
|
1438
1438
|
${t&&`@media only screen and ${rn[e]} {`}
|
|
1439
1439
|
:host(.spacing${t}-1x) slot {
|
|
@@ -1576,7 +1576,7 @@
|
|
|
1576
1576
|
</template>
|
|
1577
1577
|
`,bn=void 0,yn={};class wn extends n.FoundationElement{setGridItemProperties(e,t,o,i){if(t&&e&&o&&i){return`grid-row: ${0===t||0===i?"auto":`${t} / ${Number(t)+Number(i)}`}; grid-column: ${0===e||0===o?"auto":`${e} / ${Number(e)+Number(o)}`}`}}}(0,w.__decorate)([(0,l.attr)({attribute:"col-number"})],wn.prototype,"colNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-sm-number"})],wn.prototype,"colSmNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-md-number"})],wn.prototype,"colMdNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-lg-number"})],wn.prototype,"colLgNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-number"})],wn.prototype,"rowNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-sm-number"})],wn.prototype,"rowSmNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-md-number"})],wn.prototype,"rowMdNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-lg-number"})],wn.prototype,"rowLgNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width"})],wn.prototype,"width",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-sm"})],wn.prototype,"widthSm",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-md"})],wn.prototype,"widthMd",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-lg"})],wn.prototype,"widthLg",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height"})],wn.prototype,"height",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-sm"})],wn.prototype,"heightSm",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-md"})],wn.prototype,"heightMd",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-lg"})],wn.prototype,"heightLg",void 0);const xn=wn.compose(Object.assign({baseName:"grid-layout-item",template:fn,shadowOptions:bn},yn)),$n=(e,t)=>l.css`
|
|
1578
1578
|
${(0,s.horizontalScrollStyles)(e,t)}
|
|
1579
|
-
`,
|
|
1579
|
+
`,Sn=(e,t)=>(0,n.horizontalScrollTemplate)(e,t);class Fn extends s.HorizontalScroll{}const _n={delegatesFocus:!0,mode:"open"},Cn={nextFlipper:l.html`
|
|
1580
1580
|
<fast-flipper
|
|
1581
1581
|
@click="${e=>e.scrollToNext()}"
|
|
1582
1582
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
@@ -1587,9 +1587,9 @@
|
|
|
1587
1587
|
direction="previous"
|
|
1588
1588
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
1589
1589
|
></fast-flipper>
|
|
1590
|
-
`},
|
|
1591
|
-
${
|
|
1592
|
-
`,
|
|
1590
|
+
`},Dn=Fn.compose(Object.assign({baseName:"horizontal-scroll",template:Sn,styles:$n,shadowOptions:_n},Cn));var On=o(38938),kn=o(79840),Tn=o(64739),An=o(75030);const Ln=()=>(On.vI.add(An.mRB,Tn.NCV,kn.vnX),On.vz.css()),En=(e,t)=>l.css`
|
|
1591
|
+
${Ln()}
|
|
1592
|
+
`,Rn=l.html`
|
|
1593
1593
|
<template>
|
|
1594
1594
|
<i
|
|
1595
1595
|
${(0,l.ref)("iElement")}
|
|
@@ -1599,7 +1599,7 @@
|
|
|
1599
1599
|
<slot></slot>
|
|
1600
1600
|
</i>
|
|
1601
1601
|
</template>
|
|
1602
|
-
`,
|
|
1602
|
+
`,In={mode:"open",delegatesFocus:!0},Nn={};var Mn;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Mn||(Mn={}));class Pn extends n.FoundationElement{constructor(){super(...arguments),this.size="sm",this.variant="solid"}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}variantChanged(e,t){t&&this.loadIcon()}connectedCallback(){super.connectedCallback(),this.loadIcon()}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren()}loadIcon(){if(!this.iElement)return;const e=(0,On.N)({prefix:Mn[this.variant],iconName:this.name}),t=(0,On.qv)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,w.__decorate)([l.observable],Pn.prototype,"iElement",void 0),(0,w.__decorate)([l.attr],Pn.prototype,"name",void 0),(0,w.__decorate)([l.attr],Pn.prototype,"size",void 0),(0,w.__decorate)([l.attr],Pn.prototype,"variant",void 0);const Hn=Pn.compose(Object.assign({baseName:"icon",template:Rn,styles:En,shadowOptions:In},Nn)),jn=(e,t)=>l.css`
|
|
1603
1603
|
${(0,s.listboxStyles)(e,t)}
|
|
1604
1604
|
|
|
1605
1605
|
:host {
|
|
@@ -1610,7 +1610,7 @@
|
|
|
1610
1610
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
1611
1611
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1612
1612
|
}
|
|
1613
|
-
`,Bn=(e,t)=>(0,n.listboxTemplate)(e,t);class
|
|
1613
|
+
`,Bn=(e,t)=>(0,n.listboxTemplate)(e,t);class Vn extends s.Listbox{}const Gn=void 0,zn={},Un=Vn.compose(Object.assign({baseName:"listbox",template:Bn,styles:jn,shadowOptions:Gn},zn)),Yn=(e,t)=>l.css`
|
|
1614
1614
|
${(0,s.optionStyles)(e,t)}
|
|
1615
1615
|
`,Wn=(e,t)=>(0,n.listboxOptionTemplate)(e,t);class qn extends s.ListboxOption{}const Xn=void 0,Kn={},Zn=qn.compose(Object.assign({baseName:"option",template:Wn,styles:Yn,shadowOptions:Xn},Kn)),Qn=(e,t)=>l.css`
|
|
1616
1616
|
${(0,s.menuStyles)(e,t)}
|
|
@@ -1873,7 +1873,7 @@
|
|
|
1873
1873
|
></slot>
|
|
1874
1874
|
`,xs=l.html`
|
|
1875
1875
|
${ws()}
|
|
1876
|
-
`,$s=void 0,
|
|
1876
|
+
`,$s=void 0,Ss={};class Fs extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.async=!1,this.debounce=500,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=gs.BELOW,this.initialisedOptions=!1}debounceChanged(e,t){this.debouncedInputHandler=Xe()(this.asyncSetFilter,t)}openChanged(e,t){var o,i,a,n;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.arrowIcon)||void 0===o||o.classList.add("flipped"),null===(i=this.optionsElement)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(a=this.arrowIcon)||void 0===a||a.classList.remove("flipped"),null===(n=this.optionsElement)||void 0===n||n.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===gs.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map((e=>this.optionGetter(e)))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}toggle(){this.open||this.position!==gs.DYNAMIC||this.setDropdownPosition(),this.open=!this.open}setDropdownPosition(){var e,t;(this.scrollContainer||this.parentElement).clientHeight-(this.offsetTop-(this.scrollContainer||this.parentElement).scrollTop)<fs+this.offsetHeight?null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"):null===(t=this.optionsElement)||void 0===t||t.classList.remove("position-above")}optionGetter(e){return"string"!=typeof e?e.value:e}getItemLabel(e){let t;return e?(t="string"==typeof e?e:e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getDisplayValue(){let e="";switch(this.selectedOptions.length){case 0:e=this.getPlaceholder;break;case 1:{const t=this.options.find((e=>this.optionGetter(e)===this.selectedOptions[0]));e=this.getItemLabel(t);break}case this.options.length:e=`All ${this.name}`.trim();break;default:e=`${this.selectedOptions.length} Selected`}return e}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}get isAllSelected(){return!this.isAllOptionsDisabled&&this.selectedOptions.length===this.getEnabledOptionsCount()}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}getEnabledOptionsCount(){return this.options.length-this.options.filter(this.isOptionDisabled).length}selectCheckboxAll(){const e=this.selectedOptions.length===this.getEnabledOptionsCount();this.selectedOptions=e?[]:this.options.filter((e=>!this.isOptionDisabled(e))).map((e=>this.optionGetter(e))),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}setFilter(){this.filteredAvailableOptions=[...this.options.filter((e=>{var t;return("string"==typeof e?e:null!==(t=e.label)&&void 0!==t?t:e.value).toLowerCase().startsWith(this.filterSearchValue.toLowerCase())}))]}asyncSetFilter(){if(this.slottedDatasource.length>0){const e=this.slottedDatasource[0].datasource.resourceType;e===We._g.DATASERVER&&ht(this.slottedDatasource[0],this.filterSearchValue),e===We._g.REQUEST_SERVER&&mt(this.slottedDatasource[0],this.filterSearchValue)}else this.loading=!1,ae.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality.")}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){F(e,this)&&(this.open=!1)}}(0,w.__decorate)([l.attr],Fs.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Fs.prototype,"all",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Fs.prototype,"allSelected",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Fs.prototype,"search",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Fs.prototype,"disabled",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Fs.prototype,"async",void 0),(0,w.__decorate)([l.attr],Fs.prototype,"debounce",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"defaultSlottedNodes",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"slottedDatasource",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"valueFormatter",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"loading",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"filterSearchValue",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"open",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"options",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"selectedOptions",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"filteredAvailableOptions",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"scrollContainer",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"position",void 0),(0,w.__decorate)([l.observable],Fs.prototype,"onAllSelectedCallback",void 0),(0,w.__decorate)([l.volatile],Fs.prototype,"getDisplayValue",null),(0,w.__decorate)([l.volatile],Fs.prototype,"getPlaceholder",null),(0,w.__decorate)([l.volatile],Fs.prototype,"isAllSelected",null),(0,w.__decorate)([l.volatile],Fs.prototype,"isAllOptionsDisabled",null);const _s=Fs.compose(Object.assign({baseName:"multiselect",template:xs,styles:bs,shadowOptions:$s},Ss));class Cs{constructor(e){const t=new Intl.NumberFormat(e).formatToParts(12345.6),o=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(o.map(((e,t)=>[e,t])));this._group=new RegExp(`[${t.find((e=>"group"===e.type)).value}]`,"g"),this._decimal=new RegExp(`[${t.find((e=>"decimal"===e.type)).value}]`),this._separator=new RegExp(`[$${t.find((e=>"decimal"===e.type)).value}](?:0*$|[^0]0+$)`),this._numeral=new RegExp(`[${o.join("")}]`,"g"),this._index=e=>i.get(e)}parse(e){return(e=e.trim().replace(this._group,"").replace(this._decimal,".").replace(this._numeral,this._index))?+e:NaN}hasSeparator(e){return this._separator.test(e)}}const Ds=(e,t)=>l.css`
|
|
1877
1877
|
${(0,s.numberFieldStyles)(e,t)}
|
|
1878
1878
|
::part(label) {
|
|
1879
1879
|
color: var(--neutral-foreground-rest);
|
|
@@ -1972,7 +1972,7 @@
|
|
|
1972
1972
|
${(0,n.endSlotTemplate)(e,t)}
|
|
1973
1973
|
</div>
|
|
1974
1974
|
</template>
|
|
1975
|
-
`;class ks extends s.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}sanitiseInputVal(e){return String(new
|
|
1975
|
+
`;class ks extends s.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}sanitiseInputVal(e){return String(new Cs(this.locale).parse(String(e)))}toIntlNumberFormat(e){return Intl.NumberFormat(this.locale,this.options).format(Number(e))}validateValue(e,t=!0){let o=parseFloat(parseFloat(t?this.sanitiseInputVal(e):e).toPrecision(12));return isNaN(o)&&(o=""),String(o)}validateMinMax(e,t=!0){var o,i;let a=parseFloat(this.validateValue(e,t));return isNaN(a)?a="":(a=Math.min(a,null!==(o=this.max)&&void 0!==o?o:a),a=Math.max(a,null!==(i=this.min)&&void 0!==i?i:a)),String(a)}stepUp(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.value=t.toString(),this.control.value=this.validateMinMax(t.toString(),this.withFormatting),this.handleTextInput()}stepDown(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.value=t.toString(),this.control.value=this.validateMinMax(t.toString(),this.withFormatting),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){this.isUserInput=!0,this.withFormatting&&!new Cs(this.locale).hasSeparator(this.control.value)?l.DOM.queueUpdate((()=>{const e=this.validateValue(this.control.value);this.control.value=this.toIntlNumberFormat(e),this.value=e,this.$emit("input")})):this.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||l.DOM.queueUpdate((()=>{this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.value=this.control.value,this.$emit("input")}))}valueChanged(e,t){if(null==t&&this.control)this.control.value="";else if(null!=t&&t!==e){if(!this.isUserInput)return this.value=this.withFormatting?this.validateMinMax(this.value):this.validateMinMax(this.value,!1),void l.DOM.queueUpdate((()=>{this.control.value=this.withFormatting&&this.value?this.toIntlNumberFormat(this.value):this.value}));const e=t;l.DOM.queueUpdate((()=>{var o;""!==(null===(o=this.control)||void 0===o?void 0:o.value)?""!==this.value?(this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e,this.value=this.withFormatting?this.sanitiseInputVal(this.control.value):this.control.value):this.control.value=t:this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e}))}}handleBlur(){this.isUserInput=!1,this.value=this.validateMinMax(this.control.value,this.withFormatting),this.control.value=this.withFormatting&&this.value?this.toIntlNumberFormat(this.value):this.value,this.$emit("input")}}(0,w.__decorate)([l.attr],ks.prototype,"autocomplete",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ks.prototype,"hideStep",void 0),(0,w.__decorate)([l.attr],ks.prototype,"value",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ks.prototype,"withFormatting",void 0),(0,w.__decorate)([l.attr],ks.prototype,"locale",void 0);const Ts={delegatesFocus:!0,mode:"open"},As={stepDownGlyph:'\n <svg class="step-down-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z"/>\n </svg>\n ',stepUpGlyph:'\n <svg class="step-up-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 16.9814C5.02785 16.9814 4.45387 15.7165 5.16108 14.9083L10.6829 8.59762C11.3801 7.80079 12.6197 7.80079 13.3169 8.59762L18.8388 14.9083C19.5459 15.7165 18.972 16.9814 17.898 16.9814H6.1018Z"/>\n </svg>\n '},Ls=ks.compose(Object.assign({baseName:"number-field",template:Os,styles:Ds,shadowOptions:Ts},As));var Es=o(86975);const Rs={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Is extends n.FoundationElement{constructor(){super(...arguments),this.show=!1,this.event="click",this.placement="bottom",this.flip=!1}selectorChanged(e,t){t!==e&&(this.popper&&this.popper.destroy(),this.target&&this.target.removeEventListener(this.event,this.toggle.bind(this)),this.target=this.getRootNode().querySelector(this.selector),this.target.addEventListener(this.event,this.toggle.bind(this)),this.popper=(0,Es.fi)(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset||[0,0]}},{name:"flip",enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}}(0,w.__decorate)([l.attr],Is.prototype,"selector",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Is.prototype,"show",void 0),(0,w.__decorate)([l.attr],Is.prototype,"event",void 0),(0,w.__decorate)([l.attr],Is.prototype,"placement",void 0),(0,w.__decorate)([(0,l.attr)({converter:Rs})],Is.prototype,"offset",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Is.prototype,"flip",void 0);const Ns=l.css`
|
|
1976
1976
|
:host {
|
|
1977
1977
|
display: none;
|
|
1978
1978
|
inset: unset !important;
|
|
@@ -1986,12 +1986,12 @@
|
|
|
1986
1986
|
<template>
|
|
1987
1987
|
<slot></slot>
|
|
1988
1988
|
</template>
|
|
1989
|
-
`,
|
|
1989
|
+
`,Ps=Is.compose({baseName:"popper",styles:Ns,template:Ms}),Hs=(e,t)=>l.css`
|
|
1990
1990
|
${(0,s.progressStyles)(e,t)}
|
|
1991
1991
|
:host {
|
|
1992
1992
|
height: calc(var(--design-unit) * 2px);
|
|
1993
1993
|
}
|
|
1994
|
-
`,js=(e,t)=>(0,n.progressTemplate)(e,t);class Bs extends s.Progress{}const
|
|
1994
|
+
`,js=(e,t)=>(0,n.progressTemplate)(e,t);class Bs extends s.Progress{}const Vs=void 0,Gs={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},zs=Bs.compose(Object.assign({baseName:"progress",template:js,styles:Hs,shadowOptions:Vs},Gs)),Us=(e,t)=>l.css`
|
|
1995
1995
|
${(0,s.progressRingStyles)(e,t)}
|
|
1996
1996
|
`,Ys=(e,t)=>(0,n.progressRingTemplate)(e,t);class Ws extends s.Progress{}const qs=void 0,Xs={indeterminateIndicator:'\n <svg class="progress" part="progress" viewBox="0 0 16 16">\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 '},Ks=Ws.compose(Object.assign({baseName:"progress-ring",template:Ys,styles:Us,shadowOptions:qs},Xs)),Zs=(e,t)=>l.css`
|
|
1997
1997
|
${(0,s.radioStyles)(e,t)}
|
|
@@ -2037,19 +2037,19 @@
|
|
|
2037
2037
|
</template>
|
|
2038
2038
|
`;class fl extends s.Radio{}const bl=void 0,yl={},wl=fl.compose(Object.assign({baseName:"segmented-item",template:gl,styles:vl,shadowOptions:bl},yl)),xl=(e,t)=>l.css`
|
|
2039
2039
|
${(0,s.selectStyles)(e,t)}
|
|
2040
|
-
`,$l=(e,t)=>(0,n.selectTemplate)(e,t);class
|
|
2040
|
+
`,$l=(e,t)=>(0,n.selectTemplate)(e,t);class Sl extends s.Select{}const Fl=void 0,_l={indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '},Cl=Sl.compose(Object.assign({baseName:"select",template:$l,styles:xl,shadowOptions:Fl},_l)),Dl=(e,t)=>l.css`
|
|
2041
2041
|
${(0,s.skeletonStyles)(e,t)}
|
|
2042
|
-
`,Ol=(e,t)=>(0,n.skeletonTemplate)(e,t);class kl extends s.Skeleton{}const Tl=void 0,
|
|
2042
|
+
`,Ol=(e,t)=>(0,n.skeletonTemplate)(e,t);class kl extends s.Skeleton{}const Tl=void 0,Al={},Ll=kl.compose(Object.assign({baseName:"skeleton",template:Ol,styles:Dl,shadowOptions:Tl},Al)),El=(e,t)=>l.css`
|
|
2043
2043
|
${(0,s.sliderStyles)(e,t)}
|
|
2044
2044
|
.track-progress {
|
|
2045
2045
|
background-color: var(--accent-fill-rest);
|
|
2046
2046
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
2047
2047
|
}
|
|
2048
|
-
`;var
|
|
2048
|
+
`;var Rl=o(75511),Il=o(62515);const Nl=(e,t)=>l.html`
|
|
2049
2049
|
<template
|
|
2050
2050
|
role="slider"
|
|
2051
2051
|
class="${e=>e.readOnly?"readonly":""}
|
|
2052
|
-
${e=>e.orientation||
|
|
2052
|
+
${e=>e.orientation||Rl.i.horizontal}"
|
|
2053
2053
|
tabindex="${e=>e.disabled?null:0}"
|
|
2054
2054
|
aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
|
|
2055
2055
|
aria-valuenow="${e=>e.value}"
|
|
@@ -2064,7 +2064,7 @@
|
|
|
2064
2064
|
<div ${(0,l.ref)("track")} part="track-container" class="track">
|
|
2065
2065
|
<div
|
|
2066
2066
|
class="track-progress"
|
|
2067
|
-
style="${e=>{const t=1-(0,
|
|
2067
|
+
style="${e=>{const t=1-(0,Il.b9)(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),o=Math.round(100*(1-t));return"horizontal"===e.orientation?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${o}%;`:`height: calc(var(--track-width) * 1px); width: ${o}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${o}%;`:`width: calc(var(--track-width) * 1px); height: ${o}%; transition: all 0.2s ease;`}}"
|
|
2068
2068
|
></div>
|
|
2069
2069
|
</div>
|
|
2070
2070
|
<slot></slot>
|
|
@@ -2078,9 +2078,9 @@
|
|
|
2078
2078
|
</div>
|
|
2079
2079
|
</div>
|
|
2080
2080
|
</template>
|
|
2081
|
-
`;class Ml extends s.Slider{}const
|
|
2081
|
+
`;class Ml extends s.Slider{}const Pl=void 0,Hl={thumb:'\n <div class="thumb-cursor"></div>\n '},jl=Ml.compose(Object.assign({baseName:"slider",template:Nl,styles:El,shadowOptions:Pl},Hl)),Bl=(e,t)=>l.css`
|
|
2082
2082
|
${(0,s.sliderLabelStyles)(e,t)}
|
|
2083
|
-
`,
|
|
2083
|
+
`,Vl=(e,t)=>(0,n.sliderLabelTemplate)(e,t);class Gl extends s.SliderLabel{}const zl=void 0,Ul={},Yl=Gl.compose(Object.assign({baseName:"slider-label",template:Vl,styles:Bl,shadowOptions:zl},Ul)),Wl=l.css`
|
|
2084
2084
|
@keyframes append-animate {
|
|
2085
2085
|
from {
|
|
2086
2086
|
transform: translateX(100%);
|
|
@@ -2182,8 +2182,146 @@
|
|
|
2182
2182
|
</div>
|
|
2183
2183
|
</div>
|
|
2184
2184
|
`,Xl=l.html`
|
|
2185
|
-
${e=>ql(
|
|
2186
|
-
`,Kl={mode:"open",delegatesFocus:!0};class Zl extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!0,this.type=""}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout((()=>{this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss()}}),this.closeTimeout)}errorChanged(e,t){var o,i,a;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:""}notificationChanged(e,t){var o,i,a;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:""}dismiss(){this.remove()}}(0,w.__decorate)([l.observable],Zl.prototype,"error",void 0),(0,w.__decorate)([l.observable],Zl.prototype,"notification",void 0),(0,w.__decorate)([l.observable],Zl.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],Zl.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],Zl.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"type"})],Zl.prototype,"type",void 0);const Ql=Zl.compose({baseName:"snackbar",styles:Wl,template:Xl,shadowOptions:Kl}),Jl=
|
|
2185
|
+
${e=>ql(C(e))}
|
|
2186
|
+
`,Kl={mode:"open",delegatesFocus:!0};class Zl extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!0,this.type=""}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout((()=>{this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss()}}),this.closeTimeout)}errorChanged(e,t){var o,i,a;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:""}notificationChanged(e,t){var o,i,a;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:""}dismiss(){this.remove()}}(0,w.__decorate)([l.observable],Zl.prototype,"error",void 0),(0,w.__decorate)([l.observable],Zl.prototype,"notification",void 0),(0,w.__decorate)([l.observable],Zl.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],Zl.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],Zl.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"type"})],Zl.prototype,"type",void 0);const Ql=Zl.compose({baseName:"snackbar",styles:Wl,template:Xl,shadowOptions:Kl}),Jl=l.css`
|
|
2187
|
+
:host {
|
|
2188
|
+
display: flex;
|
|
2189
|
+
height: 100%;
|
|
2190
|
+
width: 100%;
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
.stepper-tab {
|
|
2194
|
+
display: flex;
|
|
2195
|
+
flex-direction: column;
|
|
2196
|
+
width: 60%;
|
|
2197
|
+
height: 100%;
|
|
2198
|
+
max-width: 370px;
|
|
2199
|
+
border-radius: 0;
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
.action-buttons-container {
|
|
2203
|
+
width: 100%;
|
|
2204
|
+
display: flex;
|
|
2205
|
+
justify-content: flex-end;
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
.stepper-panel-container {
|
|
2209
|
+
height: 100%;
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
.stepper-tab-menu {
|
|
2213
|
+
display: flex;
|
|
2214
|
+
flex-direction: column;
|
|
2215
|
+
width: 100%;
|
|
2216
|
+
margin-bottom: 30px;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
.stepper-tab-progress {
|
|
2220
|
+
display: flex;
|
|
2221
|
+
flex-direction: column;
|
|
2222
|
+
align-items: center;
|
|
2223
|
+
justify-content: start;
|
|
2224
|
+
flex: 1;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
.stepper-tab-progress .progress-ring {
|
|
2228
|
+
--design-unit: 10;
|
|
2229
|
+
|
|
2230
|
+
margin: 0;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
.stepper-tab-panel {
|
|
2234
|
+
display: flex;
|
|
2235
|
+
flex-direction: column;
|
|
2236
|
+
width: 100%;
|
|
2237
|
+
border-radius: 0;
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
label {
|
|
2241
|
+
padding: 0 10px;
|
|
2242
|
+
color: rgb(135 155 166);
|
|
2243
|
+
display: block;
|
|
2244
|
+
cursor: pointer;
|
|
2245
|
+
text-align: center;
|
|
2246
|
+
font-size: var(--type-ramp-base-font-size);
|
|
2247
|
+
line-height: var(--type-ramp-base-line-height);
|
|
2248
|
+
font-style: normal;
|
|
2249
|
+
margin: calc(var(--design-unit) * 2px) 0;
|
|
2250
|
+
}
|
|
2251
|
+
`;const er=e=>l.html`
|
|
2252
|
+
<${e}-card class="stepper-tab" part="stepper-tab" role="stepper-tab" data-test-id="stepper-tab">
|
|
2253
|
+
<div class="stepper-tab-menu" part="stepper-tab-menu">
|
|
2254
|
+
<slot name="tab" ${(0,l.slotted)("tabs")}></slot>
|
|
2255
|
+
</div>
|
|
2256
|
+
<div class="stepper-tab-progress" part="stepper-tab-progress">
|
|
2257
|
+
<${e}-progress-ring class="progress-ring" part="progress-ring" value=${e=>e.progressValue}></${e}-progress-ring>
|
|
2258
|
+
<label>You have completed ${e=>e.progressValue}% of the fields required to create a project</label>
|
|
2259
|
+
</div>
|
|
2260
|
+
</${e}-card>
|
|
2261
|
+
<${e}-card class="stepper-tab-panel" part="stepper-tab-panel" data-test-id="stepper-tab-panel">
|
|
2262
|
+
<div class="stepper-panel-container" part="stepper-panel-container">
|
|
2263
|
+
<slot name="tab-panel" ${(0,l.slotted)("tabpanels")}></slot>
|
|
2264
|
+
</div>
|
|
2265
|
+
<div class="action-buttons-container" part="action-buttons-container">
|
|
2266
|
+
<slot name="action-buttons">
|
|
2267
|
+
<${e}-button @click=${e=>e.previousStep()} ?disabled=${e=>e.disabledPreviousStep}>Back</${e}-button>
|
|
2268
|
+
${function(e,t,o){const i=e=>"function"==typeof e?e:()=>e,a=i(t),n=i(o);return(t,o)=>e(t,o)?a(t,o):n(t,o)}((e=>e.isLastStep),l.html`
|
|
2269
|
+
<${e}-button @click=${e=>e._submit()} ?disabled=${e=>e.islastStepValid} data-test-id="submit-button">
|
|
2270
|
+
Submit
|
|
2271
|
+
</${e}-button>
|
|
2272
|
+
`,l.html`
|
|
2273
|
+
<${e}-button @click=${e=>e.nextStep()} data-test-id="next-button">Next</${e}-button>
|
|
2274
|
+
`)}
|
|
2275
|
+
</slot>
|
|
2276
|
+
</div>
|
|
2277
|
+
</${e}-card>
|
|
2278
|
+
`,tr=l.html`
|
|
2279
|
+
${e=>er(C(e))}
|
|
2280
|
+
`;class or extends n.FoundationElement{constructor(){super(...arguments),this.progressValue=0,this.activeTabIndex=0,this.completedIds=new Map,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((e,t)=>{if("tab"===e.slot){const o=this.activeTabIndex===t,i=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-selected",o?"true":"false"),e.setAttribute("disabled",o?"false":"true"),e.setAttribute("selected",o?"true":"false"),e.setAttribute("aria-controls",a),e.setAttribute("tabindex",o?"0":"-1"),o&&(this.activetab=e,this.activeid=i)}}))},this.getCompletedTabs=()=>{this.tabs.forEach(((e,t)=>{const o=this.tabIds[t],i=e.isCompleted();this.completedIds.set(o,i)}));let e=0;for(const t of this.completedIds.values())!0===t&&(e+=1);this.progressValue=Math.round(e/this.tabpanels.length*100)},this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const o=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",o),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))}}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex])}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,Ta.EL)()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,Ta.EL)()}`}))}}(0,w.__decorate)([l.attr],or.prototype,"activeid",void 0),(0,w.__decorate)([l.observable],or.prototype,"tabs",void 0),(0,w.__decorate)([l.observable],or.prototype,"tabpanels",void 0),(0,w.__decorate)([l.observable],or.prototype,"validation",void 0),(0,w.__decorate)([l.observable],or.prototype,"progressValue",void 0),(0,w.__decorate)([l.observable],or.prototype,"activeTabIndex",void 0),(0,w.__decorate)([l.volatile],or.prototype,"disabledPreviousStep",null),(0,w.__decorate)([l.volatile],or.prototype,"isLastStep",null),(0,w.__decorate)([l.volatile],or.prototype,"islastStepValid",null);const ir=void 0,ar={},nr=or.compose(Object.assign({baseName:"stepper",template:tr,styles:Jl,shadowOptions:ir},ar)),sr=(e,t)=>l.css`
|
|
2281
|
+
.tree-item::part(content-region) {
|
|
2282
|
+
margin-inline-start: 0;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
foundation-icon {
|
|
2286
|
+
margin-right: 5px;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
.completed-icon {
|
|
2290
|
+
color: #45c983;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
.error-icon {
|
|
2294
|
+
color: #b66060;
|
|
2295
|
+
}
|
|
2296
|
+
`,lr=(e,t)=>l.html`
|
|
2297
|
+
<template slot="tab" role="stepper-tab" aria-disabled="${e=>e.disabled}">
|
|
2298
|
+
${(0,n.startSlotTemplate)(e,t)}
|
|
2299
|
+
<foundation-tree-item ${(0,l.ref)("treeItem")} class="tree-item" part="tree-item">
|
|
2300
|
+
${(0,l.when)((e=>e.completed),l.html`
|
|
2301
|
+
<foundation-icon
|
|
2302
|
+
name="check-circle"
|
|
2303
|
+
variant="regular"
|
|
2304
|
+
size="lg"
|
|
2305
|
+
class="completed-icon"
|
|
2306
|
+
></foundation-icon>
|
|
2307
|
+
`)}
|
|
2308
|
+
${(0,l.when)((e=>e.error),l.html`
|
|
2309
|
+
<foundation-icon
|
|
2310
|
+
name="times-circle"
|
|
2311
|
+
variant="regular"
|
|
2312
|
+
size="lg"
|
|
2313
|
+
class="error-icon"
|
|
2314
|
+
></foundation-icon>
|
|
2315
|
+
`)}
|
|
2316
|
+
<slot></slot>
|
|
2317
|
+
</foundation-tree-item>
|
|
2318
|
+
${(0,n.endSlotTemplate)(e,t)}
|
|
2319
|
+
</template>
|
|
2320
|
+
`;class rr extends n.FoundationElement{isCompleted(){return this.completed}selectedChanged(){this.treeItem&&(this.treeItem.selected=this.selected)}}(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],rr.prototype,"disabled",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],rr.prototype,"selected",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],rr.prototype,"completed",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],rr.prototype,"error",void 0);const dr=void 0,cr={},ur=rr.compose(Object.assign({baseName:"stepper-tab",template:lr,styles:sr,shadowOptions:dr},cr)),pr=()=>l.html`
|
|
2321
|
+
<template slot="tab-panel" role="stepper-tab-panel">
|
|
2322
|
+
<slot></slot>
|
|
2323
|
+
</template>
|
|
2324
|
+
`;class hr extends n.FoundationElement{}const mr=void 0,vr={},gr=hr.compose(Object.assign({baseName:"stepper-tab-panel",template:pr,shadowOptions:mr},vr)),fr=(e,t)=>l.css`
|
|
2187
2325
|
${(0,s.switchStyles)(e,t)}
|
|
2188
2326
|
.checked-indicator {
|
|
2189
2327
|
transform: scale(1.3);
|
|
@@ -2196,24 +2334,24 @@
|
|
|
2196
2334
|
.checked-indicator {
|
|
2197
2335
|
border-radius: calc(var(--control-corner-radius) * 2px);
|
|
2198
2336
|
}
|
|
2199
|
-
`,
|
|
2337
|
+
`,br=(e,t)=>(0,n.switchTemplate)(e,t);class yr extends s.Switch{}const wr=void 0,xr={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},$r=yr.compose(Object.assign({baseName:"switch",template:br,styles:fr,shadowOptions:wr},xr)),Sr=(e,t)=>l.css`
|
|
2200
2338
|
${(0,s.tabStyles)(e,t)}
|
|
2201
|
-
`,
|
|
2339
|
+
`,Fr=(e,t)=>(0,n.tabTemplate)(e,t);class _r extends s.Tab{}const Cr=void 0,Dr={},Or=_r.compose(Object.assign({baseName:"tab",template:Fr,styles:Sr,shadowOptions:Cr},Dr)),kr=(e,t)=>l.css`
|
|
2202
2340
|
${(0,s.tabPanelStyles)(e,t)}
|
|
2203
|
-
`,
|
|
2341
|
+
`,Tr=(e,t)=>(0,n.tabPanelTemplate)(e,t);class Ar extends s.TabPanel{}const Lr=void 0,Er={},Rr=Ar.compose(Object.assign({baseName:"tab-panel",template:Tr,styles:kr,shadowOptions:Lr},Er)),Ir=(e,t)=>l.css`
|
|
2204
2342
|
${(0,s.tabsStyles)(e,t)}
|
|
2205
|
-
`,
|
|
2343
|
+
`,Nr=(e,t)=>(0,n.tabsTemplate)(e,t);class Mr extends s.Tabs{}const Pr=void 0,Hr={},jr=Mr.compose(Object.assign({baseName:"tabs",template:Nr,styles:Ir,shadowOptions:Pr},Hr)),Br=(e,t)=>l.css`
|
|
2206
2344
|
${(0,s.textAreaStyles)(e,t)}
|
|
2207
2345
|
:host .control {
|
|
2208
2346
|
padding: calc(var(--design-unit) * 3px);
|
|
2209
2347
|
}
|
|
2210
|
-
`,
|
|
2348
|
+
`,Vr=(e,t)=>(0,n.textAreaTemplate)(e,t);class Gr extends s.TextArea{}const zr=void 0,Ur={},Yr=Gr.compose(Object.assign({baseName:"text-area",template:Vr,styles:Br,shadowOptions:zr},Ur)),{create:Wr}=n.DesignToken,qr=Wr("active-color-scheme").withDefault((e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?"light":"dark")),Xr=(e,t)=>l.css`
|
|
2211
2349
|
${(0,s.textFieldStyles)(e,t)}
|
|
2212
2350
|
|
|
2213
2351
|
input {
|
|
2214
|
-
color-scheme: ${
|
|
2352
|
+
color-scheme: ${qr};
|
|
2215
2353
|
}
|
|
2216
|
-
`,
|
|
2354
|
+
`,Kr=(e,t)=>l.html`
|
|
2217
2355
|
<template
|
|
2218
2356
|
class="
|
|
2219
2357
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -2275,7 +2413,7 @@
|
|
|
2275
2413
|
${(0,n.endSlotTemplate)(e,t)}
|
|
2276
2414
|
</div>
|
|
2277
2415
|
</template>
|
|
2278
|
-
`;class
|
|
2416
|
+
`;class Zr extends s.TextField{constructor(){super(...arguments),this.autocapitalize="off"}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}}(0,w.__decorate)([l.attr],Zr.prototype,"autocomplete",void 0),(0,w.__decorate)([l.attr],Zr.prototype,"autocapitalize",void 0),(0,w.__decorate)([l.attr],Zr.prototype,"step",void 0);const Qr={mode:"open",delegatesFocus:!0},Jr={},ed=Zr.compose(Object.assign({baseName:"text-field",template:Kr,styles:Xr,shadowOptions:Qr},Jr)),td=l.css`
|
|
2279
2417
|
@keyframes append-animate {
|
|
2280
2418
|
from {
|
|
2281
2419
|
transform: translateX(100%);
|
|
@@ -2376,7 +2514,7 @@
|
|
|
2376
2514
|
.close-icon svg {
|
|
2377
2515
|
cursor: pointer;
|
|
2378
2516
|
}
|
|
2379
|
-
`,
|
|
2517
|
+
`,od=l.html`
|
|
2380
2518
|
<div class="toast ${e=>e.deleteAnimation}" ${(0,l.ref)("toast")}>
|
|
2381
2519
|
<div class="content-wrapper">
|
|
2382
2520
|
<div part="top" class="top">
|
|
@@ -2394,11 +2532,11 @@
|
|
|
2394
2532
|
</div>
|
|
2395
2533
|
</div>
|
|
2396
2534
|
</div>
|
|
2397
|
-
`,
|
|
2535
|
+
`,id={mode:"open",delegatesFocus:!0},ad={};class nd extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!1}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout((()=>{this.deleteAnimation="toast-delete",this.toast.onanimationend=()=>{this.remove()}}),this.closeTimeout)}close(){this.remove()}}(0,w.__decorate)([l.observable],nd.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],nd.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],nd.prototype,"autoClose",void 0);const sd=nd.compose(Object.assign({baseName:"toast",styles:td,template:od,shadowOptions:id},ad)),ld=(e,t)=>l.css`
|
|
2398
2536
|
${(0,s.toolbarStyles)(e,t)}
|
|
2399
|
-
`,
|
|
2537
|
+
`,rd=(e,t)=>(0,n.toolbarTemplate)(e,t);class dd extends s.Toolbar{}const cd=void 0,ud={},pd=dd.compose(Object.assign({baseName:"toolbar",template:rd,styles:ld,shadowOptions:cd},ud)),hd=(e,t)=>l.css`
|
|
2400
2538
|
${(0,s.tooltipStyles)(e,t)}
|
|
2401
|
-
`,
|
|
2539
|
+
`,md=(e,t)=>(0,n.tooltipTemplate)(e,t);class vd extends s.Tooltip{}const gd=void 0,fd={},bd=vd.compose(Object.assign({baseName:"tooltip",template:md,styles:hd,shadowOptions:gd},fd)),yd=(e,t)=>l.css`
|
|
2402
2540
|
${(0,s.treeItemStyles)(e,t)}
|
|
2403
2541
|
:host {
|
|
2404
2542
|
--focus-stroke-width: 0;
|
|
@@ -2415,9 +2553,9 @@
|
|
|
2415
2553
|
.positioning-region {
|
|
2416
2554
|
height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
|
|
2417
2555
|
}
|
|
2418
|
-
`,
|
|
2556
|
+
`,wd=(e,t)=>(0,n.treeItemTemplate)(e,t);class xd extends s.TreeItem{}const $d=void 0,Sd={expandCollapseGlyph:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">\n <path d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"></path>\n </svg>'},Fd=xd.compose(Object.assign({baseName:"tree-item",template:wd,styles:yd,shadowOptions:$d},Sd)),_d=(e,t)=>l.css`
|
|
2419
2557
|
${(0,s.treeViewStyles)(e,t)}
|
|
2420
|
-
`,
|
|
2558
|
+
`,Cd=(e,t)=>(0,n.treeViewTemplate)(e,t);class Dd extends n.TreeView{}const Od=void 0,kd={},Td=Dd.compose(Object.assign({baseName:"tree-view",template:Cd,styles:_d,shadowOptions:Od},kd)),Ad=(e,t)=>l.css`
|
|
2421
2559
|
.container {
|
|
2422
2560
|
position: relative;
|
|
2423
2561
|
width: 100%;
|
|
@@ -2437,7 +2575,7 @@
|
|
|
2437
2575
|
overflow: hidden;
|
|
2438
2576
|
text-overflow: ellipsis;
|
|
2439
2577
|
}
|
|
2440
|
-
`,
|
|
2578
|
+
`,Ld=e=>l.html`
|
|
2441
2579
|
<div class="container" value=${e=>e.value}>
|
|
2442
2580
|
<${e}-text-field
|
|
2443
2581
|
class="url-input"
|
|
@@ -2452,11 +2590,11 @@
|
|
|
2452
2590
|
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
2453
2591
|
`)}
|
|
2454
2592
|
</div>
|
|
2455
|
-
`,
|
|
2456
|
-
${e=>
|
|
2457
|
-
`,
|
|
2593
|
+
`,Ed=l.html`
|
|
2594
|
+
${e=>Ld(C(e))}
|
|
2595
|
+
`,Rd=void 0,Id={};class Nd extends s.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,w.__decorate)([l.observable],Nd.prototype,"value",void 0),(0,w.__decorate)([l.observable],Nd.prototype,"focused",void 0);const Md=Nd.compose(Object.assign({baseName:"url-input",template:Ed,styles:Ad,shadowOptions:Rd},Id)),Pd={foundationAccordion:h,foundationAccordionItem:y,foundationActionsMenu:A,foundationAnchor:M,foundationAnchoredRegion:G,foundationAvatar:K,foundationBadge:oe,foundationBanner:ce,foundationBreadcrumbItem:$e,foundationBreadcrumb:ge,foundationButton:Oe,foundationCalendar:Re,foundationCard:je,foundationCheckbox:Ye,foundationCombobox:Ft,foundationConnectionIndicator:kt,foundationDataGrid:It,foundationDataGridCell:jt,foundationDataGridRow:Ut,foundationDatePicker:po,foundationDesignSystemProvider:ti,foundationDialog:ui,foundationDisclosure:fi,foundationDivider:Si,foundationDropdownMenu:Ti,foundationErrorBoundary:Ki,foundationErrorBanner:Ii,foundationErrorDialog:oa,foundationFileUpload:ba,foundationFilter:ka,foundationFilterBar:Pa,foundationFlexLayout:Ya,foundationFlipper:Qa,foundationFlyout:ln,foundationGridLayout:gn,foundationGridLayoutItem:xn,foundationHorizontalScroll:Dn,foundationIcon:Hn,foundationListbox:Un,foundationListboxOption:Zn,foundationMenu:is,foundationMenuItem:ds,foundationModal:vs,foundationMultiselect:_s,foundationNumberField:Ls,foundationProgress:zs,foundationPopper:Ps,foundationProgressRing:Ks,foundationRadio:ol,foundationRadioGroup:rl,foundationSegmentedControl:ml,foundationSegmentedItem:wl,foundationSelect:Cl,foundationSkeleton:Ll,foundationSlider:jl,foundationSliderLabel:Yl,foundationSnackbar:Ql,foundationStepper:nr,foundationStepperTab:ur,foundationStepperTabPanel:gr,foundationSwitch:$r,foundationTab:Or,foundationTabPanel:Rr,foundationTabs:jr,foundationTextArea:Yr,foundationTextField:ed,foundationToast:sd,foundationToolbar:pd,foundationTooltip:bd,foundationTreeItem:Fd,foundationTreeView:Td,foundationUrlInput:Md,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};function Hd(e){return new Proxy(e,{get:(e,t,...o)=>{if(["withPrefix","withShadowRootMode","withElementDisambiguation"].includes(t))throw new Error("Modification of the Design System is not allowed.");return Reflect.get(e,t,...o)}})}const jd=(e,t="foundation")=>{e&&Ro(i,a,e);return Hd(n.DesignSystem.getOrCreate(e).withPrefix(t))};class Bd extends l.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return l.cssPartial`${e}: ${t}`}createTokensCSS(){const e=[];for(const[t,o]of Object.entries(this.tokenMap))e.push(this.createTokenPartial(t,o).createCSS());return e}createCSS(){return this.createTokensCSS().join(";")}}let Vd=class extends ot{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()}))}getColumnDefs(e){return null==e?void 0:e.flatMap((e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name}))}clearData(){ae.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),o=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=o,this.dataGrid.rowsData=t}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};Vd=(0,w.__decorate)([(0,l.customElement)({name:"data-grid-datasource"})],Vd);const Gd=l.html`
|
|
2458
2596
|
<template ${(0,l.ref)("notificationListener")}>
|
|
2459
2597
|
<slot></slot>
|
|
2460
2598
|
</template>
|
|
2461
|
-
`;var
|
|
2462
|
-
//# sourceMappingURL=
|
|
2599
|
+
`;var zd;!function(e){e.NOTIFICATION_EVENT="notification-event"}(zd||(zd={}));const Ud=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.body)&&void 0!==o?o:"Something went wrong"}`},Yd=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},Wd=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},qd=(0,ie.createLogger)("foundation-notifications"),Xd={alert:e=>{alert(Ud(e))},toast:(e,t)=>{var o,i,a,n,s,l,r,d,c,u,p,h,m,v,g,f,b,y;const w=t.split("-")[0],x=Yd("notify-container",t);if(x)switch(x.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.toast)||void 0===i?void 0:i.position){case"top-left":x.style.top="0",x.style.left="0";break;case"bottom-left":x.style.bottom="0",x.style.left="0";break;case"bottom-right":x.style.bottom="0",x.style.right="0";break;default:x.style.top="0",x.style.right="0"}const $=document.createElement(`${w}-toast`),S=document.createElement("div");S.setAttribute("slot","top"),S.textContent=e.title;const F=document.createElement("div");F.setAttribute("slot","content"),F.textContent=(null==e?void 0:e.body)||"";const _=document.createElement("div");let C;_.setAttribute("slot","date"),_.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.toast)||void 0===s?void 0:s.buttons)&&(null===(d=null===(r=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===r?void 0:r.buttons)||void 0===d?void 0:d.length)&&(C=document.createElement("div"),C.setAttribute("slot","bottom"),e.config.toast.buttons.forEach((t=>{const o=document.createElement(`${w}-button`);o.textContent=t.placeholder||"example placeholder",o.addEventListener("click",(()=>{const{details:i}=e.config.toast;if(t.action)return t.action({details:i,buttonElement:o,toastElement:$})})),t.appearance&&o.setAttribute("appearance",t.appearance),C.appendChild(o)}))),$.setAttribute("notify",(null===(u=null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.toast)||void 0===u?void 0:u.type)||""),(null===(h=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.toast)||void 0===h?void 0:h.autoClose)&&$.setAttribute("auto-close",`${null===(v=null===(m=null==e?void 0:e.config)||void 0===m?void 0:m.toast)||void 0===v?void 0:v.autoClose}`),(null===(f=null===(g=null==e?void 0:e.config)||void 0===g?void 0:g.toast)||void 0===f?void 0:f.closeTimeout)&&$.setAttribute("close-timeout",`${null===(y=null===(b=null==e?void 0:e.config)||void 0===b?void 0:b.toast)||void 0===y?void 0:y.closeTimeout}`),$.appendChild(S),$.appendChild(F),$.appendChild(_),C&&$.appendChild(C),x.appendChild($)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);Yd("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Yd("snack-container",t).appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return Wd()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.notification=e}},Kd=(e,t,o)=>{var i,a;qd.log({message:Ud(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||ie.LogLevel.Debug)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Xd[i]&&Xd[i](e,t,o)}))};class Zd{withTitle(e){return this.title=e,this}withBody(e){return this.body=e,this}withCreatedAt(e){return this.createdAt=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withToast(e){return this.toast=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.body)throw new Error("Missing required param 'body'");let e={title:this.title,body:this.body},t={};return this.createdAt&&(e=Object.assign({createdAt:this.createdAt},e)),this.logLevel in ie.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.toast&&(t=Object.assign({toast:this.toast},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class Qd{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}withDetails(e){return this.details=e,this}withButtons(e){return this.buttons=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),this.details&&(e=Object.assign({details:this.details},e)),this.buttons&&(e=Object.assign({buttons:this.buttons},e)),e}}const Jd={mode:"open",delegatesFocus:!0};class ec extends n.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,w.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(zd.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),Kd(e.detail,this.tagName,this.notificationListener)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||t.subscribe((e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,Qe.$)(e))})))}))}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((e=>{var t;const{HEADER:o,MESSAGE:i,NOTIFY_SEVERITY:a}=e,n=e.CREATED_AT?new Date(e.CREATED_AT):void 0,s=e.EXPIRY?e.EXPIRY-e.CREATED_AT:0;let l=[];this.toastButtons&&this.toastButtons.length>0&&(l=this.toastButtons.filter((({condition:t})=>!t||t({details:e})))),Kd((new Zd).withTitle(o).withBody(i).withCreatedAt(n).withToast((new Qd).withDetails(e).withType(null==a?void 0:a.toLowerCase()).withButtons(l).withAutoClose(null!==(t=!!s)&&void 0!==t?t:!!this.closeTimeout).withCloseTimeout(null!=s?s:this.closeTimeout).build()).build(),this.tagName,this.notificationListener)}))}}(0,w.__decorate)([l.observable],ec.prototype,"notificationListener",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],ec.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],ec.prototype,"closeTimeout",void 0),(0,w.__decorate)([l.observable],ec.prototype,"toastButtons",void 0),(0,w.__decorate)([et.Yh],ec.prototype,"datasource",void 0);const tc=ec.compose({baseName:"notification-listener",template:Gd,shadowOptions:Jd}),oc=(e,t)=>o=>{const i="function"==typeof t?t:(a=t,e=>Object.assign(Object.assign({},a),e));var a;return l.FASTElement.define(class extends e{},i(o))};function ic(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=l.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}var ac=o(1279);let nc=class extends(ac.F0.from(l.FASTElement)){connectedCallback(){super.connectedCallback(),l.DOM.queueUpdate((()=>(0,w.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};nc=(0,w.__decorate)([(0,l.customElement)({name:"foundation-router"})],nc);const sc=()=>jd().register(Pd)}}]);
|
|
2600
|
+
//# sourceMappingURL=303.56cc215ec5c9a04c3433b2ae95c38d3f.js.map
|