@genesislcap/design-system-configurator 14.92.2 → 14.92.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{361.361.90f961d6845a1d20ded6.js → 361.361.efe2f6c08101b160632d.js} +1 -1
- package/dist/{371.371.2b8d402909efdcdba2bf.js → 371.371.d42167bffa214b673d0d.js} +1 -1
- package/dist/{688.688.8bddd93acc595ec381d0.js → 688.688.5e6366e19d94afca1bc3.js} +1 -1
- package/dist/701.12b13f7327a6c83702b37b8598afc1e3.js.map +1 -0
- package/dist/{701.701.ace3c3a81e802d44b429.js → 701.701.1a8676ccea627d1a008d.js} +253 -194
- package/dist/{721.721.7b5690e3f90b82ae119d.js → 721.721.8dfd70a5ddcb66bbeafc.js} +25 -62
- package/dist/721.99cb27c2a6f09084c2822162b21631f6.js.map +1 -0
- package/dist/{755.755.e8b34ef8390178f6525e.js → 755.755.a95494c01679af1cc1eb.js} +1 -1
- package/dist/{designSystemConfigurator.c45b4c4c00785f667a9c1c568cf3d3eb.js.map → designSystemConfigurator.760adc9553bfd3e0a4dfb9e340985eb4.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.1989e7f5ebf26cbbbbb4d23002b1800e.js.map → main.652ebaecc219f32807e90e7e6a09bb38.js.map} +1 -1
- package/dist/{main.0b5ceaa308b8ae88ea99.js → main.886498a4efd5d8368fa4.js} +2 -2
- package/dist/remoteEntry.js +2 -2
- package/package.json +7 -7
- package/dist/701.9441216759582277e759ec38c7309f8c.js.map +0 -1
- package/dist/721.9322adfc6f86103ea7668233c27c3d3e.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[701],{38701:(e,t,o)=>{o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>_,Anchor:()=>L,AnchoredRegion:()=>I,Avatar:()=>V,Badge:()=>K,Banner:()=>ie,BaseDatasource:()=>md,Breadcrumb:()=>le,BreadcrumbItem:()=>he,Button:()=>ye,CSSVarsTokenMapper:()=>rd,Calendar:()=>Ce,Card:()=>Le,Checkbox:()=>Ie,Combobox:()=>qe,ConnectionIndicator:()=>ot,DEFUALT_FILTER_BAR_COLUMNS:()=>$a,DataGrid:()=>st,DataGridCell:()=>ut,DataGridDatasource:()=>vd,DataGridRow:()=>gt,DatePicker:()=>Pt,Dialog:()=>Io,DialogElement:()=>Mo,Disclosure:()=>Bo,Divider:()=>Wo,DropdownMenu:()=>oi,ErrorBanner:()=>ri,ErrorBoundary:()=>$i,ErrorBoundaryEvent:()=>ci,ErrorDialog:()=>Ti,FaPrefixFromStyle:()=>Cn,FileUpload:()=>Ji,Filter:()=>va,FilterBar:()=>Ca,FilterEvents:()=>ma,FlexLayout:()=>Ra,FlexMediaQueriesEnum:()=>_a,Flipper:()=>Ia,Flyout:()=>Ua,FoundationDesignSystemProvider:()=>Oo,FoundationRouter:()=>Nd,GridLayout:()=>on,GridLayoutItem:()=>rn,GridMediaQueriesEnum:()=>Xa,HorizontalScroll:()=>pn,Icon:()=>Dn,Listbox:()=>Tn,ListboxOption:()=>Mn,Menu:()=>Gn,MenuItem:()=>qn,Modal:()=>os,Multiselect:()=>us,MultiselectDatasource:()=>Ld,NotificationListener:()=>_d,NumberField:()=>gs,OptionsDatasource:()=>Td,Popper:()=>Fs,Progress:()=>Os,ProgressRing:()=>Es,Radio:()=>js,RadioGroup:()=>Ys,SegmentedControl:()=>Qs,SegmentedItem:()=>al,Select:()=>cl,Skeleton:()=>gl,Slider:()=>$l,SliderLabel:()=>Tl,Snackbar:()=>Il,Switch:()=>Bl,Tab:()=>Wl,TabPanel:()=>Jl,Tabs:()=>nr,TextArea:()=>ur,TextField:()=>yr,Toast:()=>_r,Toolbar:()=>Lr,Tooltip:()=>Ir,TreeItem:()=>zr,TreeView:()=>Xr,UrlInput:()=>id,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:()=>fo,actionsMenuBaseStyles:()=>F,baseComponents:()=>nd,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>yo,black:()=>Gt,bodyFont:()=>s.bodyFont,closeIcon:()=>Ao,configureDesignSystem:()=>go,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>xo,createDesignSystemProxy:()=>sd,createFormData:()=>Yi,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>R,defaultAnchoredRegionConfig:()=>H,defaultAvatarConfig:()=>Y,defaultBadgeConfig:()=>Q,defaultBreadcrumbConfig:()=>de,defaultBreadcrumbItemConfig:()=>ve,defaultButtonConfig:()=>xe,defaultCalendarConfig:()=>_e,defaultCardConfig:()=>Re,defaultCheckboxConfig:()=>He,defaultComboboxConfig:()=>Ke,defaultDataGridCellConfig:()=>ht,defaultDataGridConfig:()=>rt,defaultDataGridRowConfig:()=>bt,defaultDatePickerConfig:()=>It,defaultDialogConfig:()=>No,defaultDisclosureConfig:()=>zo,defaultDividerConfig:()=>Xo,defaultFileUploadConfig:()=>ta,defaultFillColor:()=>Vt,defaultFlexLayoutConfig:()=>Aa,defaultFlipperConfig:()=>Ha,defaultFlyoutConfig:()=>Wa,defaultGridLayoutConfig:()=>en,defaultGridLayoutItemConfig:()=>ln,defaultHorizontalScrollConfig:()=>mn,defaultIconConfig:()=>$n,defaultListboxConfig:()=>An,defaultListboxOptionConfig:()=>Pn,defaultMenuConfig:()=>Vn,defaultMenuItemConfig:()=>Kn,defaultModalConfig:()=>ts,defaultMultiselectConfig:()=>cs,defaultNeutralForegroundContrast:()=>io,defaultNumberFieldConfig:()=>bs,defaultProgressConfig:()=>Ts,defaultProgressRingConfig:()=>Ms,defaultRadioConfig:()=>Gs,defaultRadioGroupConfig:()=>qs,defaultSegmentedControlConfig:()=>el,defaultSegmentedItemConfig:()=>sl,defaultSelectConfig:()=>pl,defaultSkeletonConfig:()=>bl,defaultSliderConfig:()=>Dl,defaultSliderLabelConfig:()=>Al,defaultSwitchConfig:()=>zl,defaultTabConfig:()=>Xl,defaultTabPanelConfig:()=>tr,defaultTabsConfig:()=>lr,defaultTextAreaConfig:()=>hr,defaultTextFieldConfig:()=>xr,defaultToastConfig:()=>Dr,defaultToolbarConfig:()=>Rr,defaultTooltipConfig:()=>Hr,defaultTreeItemConfig:()=>Ur,defaultTreeViewConfig:()=>Zr,defaultUrlInputConfig:()=>od,defineFactory:()=>Ad,density:()=>s.density,designToken:()=>ro,designUnit:()=>s.designUnit,designUnitValue:()=>Fo,direction:()=>s.direction,directionValue:()=>wo,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>qi,dropdownMenuBaseStyles:()=>Zo,errorDialogTemplate:()=>Oi,extractMenuItems:()=>Jo,fillColor:()=>s.fillColor,flyoutAnimationTime:()=>Ba,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:()=>O,foundationActionsMenuStyles:()=>S,foundationActionsMenuTemplate:()=>D,foundationAnchor:()=>E,foundationAnchorShadowOptions:()=>A,foundationAnchorStyles:()=>k,foundationAnchorTemplate:()=>T,foundationAnchoredRegion:()=>j,foundationAnchoredRegionShadowOptions:()=>P,foundationAnchoredRegionStyles:()=>M,foundationAnchoredRegionTemplate:()=>N,foundationAvatar:()=>W,foundationAvatarShadowOptions:()=>U,foundationAvatarStyles:()=>B,foundationAvatarTemplate:()=>G,foundationBadge:()=>J,foundationBadgeShadowOptions:()=>Z,foundationBadgeStyles:()=>q,foundationBadgeTemplate:()=>X,foundationBanner:()=>ae,foundationBannerShadowOptions:()=>oe,foundationBannerStyles:()=>ee,foundationBannerTemplate:()=>te,foundationBreadcrumb:()=>ce,foundationBreadcrumbItem:()=>ge,foundationBreadcrumbItemShadowOptions:()=>me,foundationBreadcrumbItemStyles:()=>ue,foundationBreadcrumbItemTemplate:()=>pe,foundationBreadcrumbShadowOptions:()=>re,foundationBreadcrumbStyles:()=>ne,foundationBreadcrumbTemplate:()=>se,foundationButton:()=>Fe,foundationButtonShadowOptions:()=>we,foundationButtonStyles:()=>fe,foundationButtonTemplate:()=>be,foundationCalendar:()=>Oe,foundationCalendarShadowOptions:()=>De,foundationCalendarStyles:()=>Se,foundationCalendarTemplate:()=>$e,foundationCard:()=>Ee,foundationCardShadowOptions:()=>Ae,foundationCardStyles:()=>ke,foundationCardTemplate:()=>Te,foundationCheckbox:()=>je,foundationCheckboxShadowOptions:()=>Pe,foundationCheckboxStyles:()=>Ne,foundationCheckboxTemplate:()=>Me,foundationCombobox:()=>Ze,foundationComboboxShadowOptions:()=>Xe,foundationComboboxStyles:()=>Ve,foundationComboboxTemplate:()=>Ue,foundationConnectionIndicator:()=>it,foundationConnectionIndicatorStyles:()=>et,foundationConnectionIndicatorTemplate:()=>tt,foundationDataGrid:()=>dt,foundationDataGridCell:()=>mt,foundationDataGridCellShadowOptions:()=>pt,foundationDataGridCellStyles:()=>ct,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>yt,foundationDataGridRowShadowOptions:()=>ft,foundationDataGridRowStyles:()=>vt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>lt,foundationDataGridStyles:()=>at,foundationDataGridTemplate:()=>nt,foundationDatePicker:()=>Ht,foundationDatePickerShadowOptions:()=>Mt,foundationDatePickerStyles:()=>Rt,foundationDatePickerTemplate:()=>Nt,foundationDesignSystemProvider:()=>ko,foundationDialog:()=>Po,foundationDialogShadowOptions:()=>Eo,foundationDialogStyles:()=>Lo,foundationDialogTemplate:()=>Ro,foundationDisclosure:()=>Vo,foundationDisclosureShadowOptions:()=>Go,foundationDisclosureStyles:()=>Ho,foundationDisclosureTemplate:()=>jo,foundationDivider:()=>Ko,foundationDividerShadowOptions:()=>qo,foundationDividerStyles:()=>Uo,foundationDividerTemplate:()=>Yo,foundationDropdownMenu:()=>ii,foundationDropdownMenuStyles:()=>Qo,foundationDropdownMenuTemplate:()=>ti,foundationErrorBanner:()=>di,foundationErrorBannerShadowOptions:()=>li,foundationErrorBannerTemplate:()=>si,foundationErrorBoundary:()=>Ci,foundationErrorBoundaryShadowOptions:()=>Si,foundationErrorBoundaryTemplate:()=>Fi,foundationErrorDialog:()=>Li,foundationErrorDialogShadowOptions:()=>ki,foundationErrorDialogStyles:()=>Di,foundationFileUpload:()=>oa,foundationFileUploadShadowOptions:()=>ea,foundationFileUploadStyles:()=>zi,foundationFileUploadTemplate:()=>Ui,foundationFilter:()=>ga,foundationFilterBar:()=>Da,foundationFilterBarStyles:()=>ba,foundationFilterBarTemplate:()=>Sa,foundationFilterStyles:()=>ia,foundationFilterTemplate:()=>ha,foundationFlexLayout:()=>Ea,foundationFlexLayoutShadowOptions:()=>La,foundationFlexLayoutStyles:()=>ka,foundationFlexLayoutTemplate:()=>Ta,foundationFlipper:()=>ja,foundationFlipperShadowOptions:()=>Pa,foundationFlipperStyles:()=>Na,foundationFlipperTemplate:()=>Ma,foundationFlyout:()=>qa,foundationFlyoutShadowOptions:()=>Ya,foundationFlyoutStyles:()=>Ga,foundationFlyoutTemplate:()=>Va,foundationGridLayout:()=>an,foundationGridLayoutItem:()=>dn,foundationGridLayoutItemShadowOptions:()=>sn,foundationGridLayoutItemTemplate:()=>nn,foundationGridLayoutShadowOptions:()=>Ja,foundationGridLayoutStyles:()=>Za,foundationGridLayoutTemplate:()=>Qa,foundationHorizontalScroll:()=>vn,foundationHorizontalScrollShadowOptions:()=>hn,foundationHorizontalScrollStyles:()=>cn,foundationHorizontalScrollTemplate:()=>un,foundationIcon:()=>_n,foundationIconShadowOptions:()=>Sn,foundationIconStyles:()=>xn,foundationIconTemplate:()=>Fn,foundationListbox:()=>Rn,foundationListboxOption:()=>Hn,foundationListboxOptionShadowOptions:()=>In,foundationListboxOptionStyles:()=>En,foundationListboxOptionTemplate:()=>Nn,foundationListboxShadowOptions:()=>Ln,foundationListboxStyles:()=>On,foundationListboxTemplate:()=>kn,foundationMenu:()=>Un,foundationMenuItem:()=>Zn,foundationMenuItemShadowOptions:()=>Xn,foundationMenuItemStyles:()=>Yn,foundationMenuItemTemplate:()=>Wn,foundationMenuShadowOptions:()=>zn,foundationMenuStyles:()=>jn,foundationMenuTemplate:()=>Bn,foundationModal:()=>is,foundationModalShadowOptions:()=>es,foundationModalStyles:()=>Qn,foundationModalTemplate:()=>Jn,foundationMultiselect:()=>ps,foundationMultiselectShadowOptions:()=>ds,foundationNotificationListener:()=>Od,foundationNotificationListenerShadowOptions:()=>Dd,foundationNotificationListenerTemplate:()=>gd,foundationNumberField:()=>ys,foundationNumberFieldShadowOptions:()=>fs,foundationNumberFieldStyles:()=>ms,foundationNumberFieldTemplate:()=>vs,foundationPopper:()=>Cs,foundationProgress:()=>Ls,foundationProgressRing:()=>Is,foundationProgressRingShadowOptions:()=>Ns,foundationProgressRingStyles:()=>As,foundationProgressRingTemplate:()=>Rs,foundationProgressShadowOptions:()=>ks,foundationProgressStyles:()=>Ds,foundationProgressTemplate:()=>_s,foundationRadio:()=>zs,foundationRadioGroup:()=>Xs,foundationRadioGroupShadowOptions:()=>Ws,foundationRadioGroupStyles:()=>Vs,foundationRadioGroupTemplate:()=>Us,foundationRadioShadowOptions:()=>Bs,foundationRadioStyles:()=>Ps,foundationRadioTemplate:()=>Hs,foundationSegmentedControl:()=>tl,foundationSegmentedControlShadowOptions:()=>Js,foundationSegmentedControlStyles:()=>Ks,foundationSegmentedControlTemplate:()=>Zs,foundationSegmentedItem:()=>ll,foundationSegmentedItemShadowOptions:()=>nl,foundationSegmentedItemStyles:()=>ol,foundationSegmentedItemTemplate:()=>il,foundationSelect:()=>hl,foundationSelectShadowOptions:()=>ul,foundationSelectStyles:()=>rl,foundationSelectTemplate:()=>dl,foundationSkeleton:()=>yl,foundationSkeletonShadowOptions:()=>fl,foundationSkeletonStyles:()=>ml,foundationSkeletonTemplate:()=>vl,foundationSlider:()=>_l,foundationSliderLabel:()=>Rl,foundationSliderLabelShadowOptions:()=>Ll,foundationSliderLabelStyles:()=>Ol,foundationSliderLabelTemplate:()=>kl,foundationSliderShadowOptions:()=>Cl,foundationSliderStyles:()=>wl,foundationSliderTemplate:()=>Sl,foundationSnackbar:()=>Pl,foundationSnackbarShadowOptions:()=>Ml,foundationSnackbarStyles:()=>El,foundationSnackbarTemplate:()=>Nl,foundationSwitch:()=>Vl,foundationSwitchShadowOptions:()=>Gl,foundationSwitchStyles:()=>Hl,foundationSwitchTemplate:()=>jl,foundationTab:()=>Kl,foundationTabPanel:()=>or,foundationTabPanelShadowOptions:()=>er,foundationTabPanelStyles:()=>Zl,foundationTabPanelTemplate:()=>Ql,foundationTabShadowOptions:()=>ql,foundationTabStyles:()=>Ul,foundationTabTemplate:()=>Yl,foundationTabs:()=>rr,foundationTabsShadowOptions:()=>sr,foundationTabsStyles:()=>ir,foundationTabsTemplate:()=>ar,foundationTextArea:()=>mr,foundationTextAreaShadowOptions:()=>pr,foundationTextAreaStyles:()=>dr,foundationTextAreaTemplate:()=>cr,foundationTextField:()=>Fr,foundationTextFieldShadowOptions:()=>wr,foundationTextFieldStyles:()=>fr,foundationTextFieldTemplate:()=>br,foundationToast:()=>Or,foundationToastShadowOptions:()=>Cr,foundationToastStyles:()=>Sr,foundationToastTemplate:()=>$r,foundationToolbar:()=>Er,foundationToolbarShadowOptions:()=>Ar,foundationToolbarStyles:()=>kr,foundationToolbarTemplate:()=>Tr,foundationTooltip:()=>jr,foundationTooltipShadowOptions:()=>Pr,foundationTooltipStyles:()=>Nr,foundationTooltipTemplate:()=>Mr,foundationTreeItem:()=>Yr,foundationTreeItemShadowOptions:()=>Vr,foundationTreeItemStyles:()=>Br,foundationTreeItemTemplate:()=>Gr,foundationTreeView:()=>Qr,foundationTreeViewShadowOptions:()=>Kr,foundationTreeViewStyles:()=>Wr,foundationTreeViewTemplate:()=>qr,foundationUrlInput:()=>ad,foundationUrlInputShadowOptions:()=>td,foundationUrlInputStyles:()=>Jr,fuiAccentPalette:()=>Jt,fuiAccentSwatch:()=>Qt,fuiCardFillColor:()=>oo,fuiCardForegroundColor:()=>no,fuiDefaultCardFillColor:()=>Yt,fuiDefaultCardPalette:()=>Wt,fuiFillColor:()=>to,fuiNeutralPalette:()=>Kt,fuiNeutralSwatch:()=>Xt,getDefaultConfig:()=>ho,getDropdownMenuTemplate:()=>ei,getErrorDialogTemplate:()=>_i,getExports:()=>mo,getFontawesomeIconsCss:()=>wn,getPrefixedDatePicker:()=>Et,getPrefixedFileUpload:()=>Vi,getPrefixedFlyout:()=>za,getPrefixedMultiselect:()=>ls,getTypeRampValue:()=>vo,jsonConverter:()=>xs,mapType:()=>ya,maxheight:()=>ns,media:()=>z,menuTemplate:()=>$,mixinFoundationFontFamily:()=>$o,multiselectStyles:()=>ss,multiselectTemplate:()=>rs,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:()=>bo,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:()=>uo,provideDesignSystem:()=>ld,provideTokens:()=>lo,registerFoundationDesignSystem:()=>Md,singleOptionTemplate:()=>C,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>co,tagFor:()=>Rd,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:()=>Wi,urlinputTemplate:()=>ed,white:()=>Bt});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:()=>io,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:()=>oo,fuiCardForegroundColor:()=>no,fuiFillColor:()=>to,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:()=>fo,baseLayerLuminanceValue:()=>yo,controlCornerRadiusValue:()=>xo,designUnitValue:()=>Fo,directionValue:()=>wo,neutralPaletteValue:()=>bo});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([[701],{38701:(e,t,o)=>{o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>_,Anchor:()=>L,AnchoredRegion:()=>I,Avatar:()=>V,Badge:()=>K,Banner:()=>de,BaseDatasource:()=>bd,Breadcrumb:()=>he,BreadcrumbItem:()=>ye,Button:()=>Ce,CSSVarsTokenMapper:()=>pd,Calendar:()=>Le,Card:()=>Ie,Checkbox:()=>ze,Combobox:()=>Ze,ConnectionIndicator:()=>nt,DEFUALT_FILTER_BAR_COLUMNS:()=>_a,DataGrid:()=>dt,DataGridCell:()=>mt,DataGridDatasource:()=>yd,DataGridRow:()=>yt,DatePicker:()=>Bt,Dialog:()=>Bo,DialogElement:()=>jo,Disclosure:()=>Uo,Divider:()=>Zo,DropdownMenu:()=>si,ErrorBanner:()=>ui,ErrorBoundary:()=>_i,ErrorBoundaryEvent:()=>hi,ErrorDialog:()=>Ri,FaPrefixFromStyle:()=>On,FileUpload:()=>oa,Filter:()=>ba,FilterBar:()=>Oa,FilterEvents:()=>fa,FlexLayout:()=>Ma,FlexMediaQueriesEnum:()=>Ta,Flipper:()=>ja,Flyout:()=>qa,FoundationDesignSystemProvider:()=>Lo,FoundationRouter:()=>Hd,GridLayout:()=>sn,GridLayoutItem:()=>un,GridMediaQueriesEnum:()=>Qa,HorizontalScroll:()=>vn,Icon:()=>kn,Listbox:()=>Rn,ListboxOption:()=>Hn,Menu:()=>Un,MenuItem:()=>Zn,Modal:()=>ns,Multiselect:()=>ms,MultiselectDatasource:()=>Nd,NotificationListener:()=>Ld,NumberField:()=>ys,OptionsDatasource:()=>Ed,Popper:()=>Cs,Progress:()=>Ls,ProgressRing:()=>Is,Radio:()=>zs,RadioGroup:()=>Xs,SegmentedControl:()=>tl,SegmentedItem:()=>ll,Select:()=>hl,Skeleton:()=>yl,Slider:()=>_l,SliderLabel:()=>Rl,Snackbar:()=>Bl,Switch:()=>Ul,Tab:()=>Zl,TabPanel:()=>ir,Tabs:()=>dr,TextArea:()=>vr,TextField:()=>$r,Toast:()=>Lr,Toolbar:()=>Nr,Tooltip:()=>Br,TreeItem:()=>Wr,TreeView:()=>Jr,UrlInput:()=>ld,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:()=>wo,actionsMenuBaseStyles:()=>F,baseComponents:()=>dd,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>Fo,black:()=>Ut,bodyFont:()=>s.bodyFont,closeIcon:()=>No,configureDesignSystem:()=>yo,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>So,createDesignSystemProxy:()=>cd,createFormData:()=>Xi,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>R,defaultAnchoredRegionConfig:()=>H,defaultAvatarConfig:()=>Y,defaultBadgeConfig:()=>Q,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>xe,defaultButtonConfig:()=>_e,defaultCalendarConfig:()=>Re,defaultCardConfig:()=>He,defaultCheckboxConfig:()=>Ue,defaultComboboxConfig:()=>Je,defaultDataGridCellConfig:()=>gt,defaultDataGridConfig:()=>ut,defaultDataGridRowConfig:()=>xt,defaultDatePickerConfig:()=>jt,defaultDialogConfig:()=>Ho,defaultDisclosureConfig:()=>Wo,defaultDividerConfig:()=>Jo,defaultFileUploadConfig:()=>aa,defaultFillColor:()=>Wt,defaultFlexLayoutConfig:()=>Na,defaultFlipperConfig:()=>Ga,defaultFlyoutConfig:()=>Ka,defaultGridLayoutConfig:()=>an,defaultGridLayoutItemConfig:()=>cn,defaultHorizontalScrollConfig:()=>fn,defaultIconConfig:()=>_n,defaultListboxConfig:()=>Nn,defaultListboxOptionConfig:()=>Bn,defaultMenuConfig:()=>Wn,defaultMenuItemConfig:()=>Jn,defaultModalConfig:()=>as,defaultMultiselectConfig:()=>hs,defaultNeutralForegroundContrast:()=>so,defaultNumberFieldConfig:()=>xs,defaultProgressConfig:()=>Rs,defaultProgressRingConfig:()=>Hs,defaultRadioConfig:()=>Us,defaultRadioGroupConfig:()=>Zs,defaultSegmentedControlConfig:()=>il,defaultSegmentedItemConfig:()=>dl,defaultSelectConfig:()=>vl,defaultSkeletonConfig:()=>xl,defaultSliderConfig:()=>kl,defaultSliderLabelConfig:()=>Nl,defaultSwitchConfig:()=>Wl,defaultTabConfig:()=>Jl,defaultTabPanelConfig:()=>nr,defaultTabsConfig:()=>ur,defaultTextAreaConfig:()=>fr,defaultTextFieldConfig:()=>Cr,defaultToastConfig:()=>Tr,defaultToolbarConfig:()=>Ir,defaultTooltipConfig:()=>zr,defaultTreeItemConfig:()=>Xr,defaultTreeViewConfig:()=>td,defaultUrlInputConfig:()=>sd,defineFactory:()=>Md,density:()=>s.density,designToken:()=>po,designUnit:()=>s.designUnit,designUnitValue:()=>Co,direction:()=>s.direction,directionValue:()=>$o,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>Zi,dropdownMenuBaseStyles:()=>ti,errorDialogTemplate:()=>Li,extractMenuItems:()=>ii,fillColor:()=>s.fillColor,flyoutAnimationTime:()=>Va,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:()=>O,foundationActionsMenuStyles:()=>$,foundationActionsMenuTemplate:()=>D,foundationAnchor:()=>E,foundationAnchorShadowOptions:()=>A,foundationAnchorStyles:()=>k,foundationAnchorTemplate:()=>T,foundationAnchoredRegion:()=>j,foundationAnchoredRegionShadowOptions:()=>P,foundationAnchoredRegionStyles:()=>M,foundationAnchoredRegionTemplate:()=>N,foundationAvatar:()=>W,foundationAvatarShadowOptions:()=>U,foundationAvatarStyles:()=>B,foundationAvatarTemplate:()=>G,foundationBadge:()=>J,foundationBadgeShadowOptions:()=>Z,foundationBadgeStyles:()=>q,foundationBadgeTemplate:()=>X,foundationBanner:()=>ce,foundationBannerShadowOptions:()=>re,foundationBannerStyles:()=>oe,foundationBannerTemplate:()=>le,foundationBreadcrumb:()=>ge,foundationBreadcrumbItem:()=>Fe,foundationBreadcrumbItemShadowOptions:()=>we,foundationBreadcrumbItemStyles:()=>fe,foundationBreadcrumbItemTemplate:()=>be,foundationBreadcrumbShadowOptions:()=>me,foundationBreadcrumbStyles:()=>ue,foundationBreadcrumbTemplate:()=>pe,foundationButton:()=>Oe,foundationButtonShadowOptions:()=>De,foundationButtonStyles:()=>$e,foundationButtonTemplate:()=>Se,foundationCalendar:()=>Ee,foundationCalendarShadowOptions:()=>Ae,foundationCalendarStyles:()=>ke,foundationCalendarTemplate:()=>Te,foundationCard:()=>je,foundationCardShadowOptions:()=>Pe,foundationCardStyles:()=>Ne,foundationCardTemplate:()=>Me,foundationCheckbox:()=>Ye,foundationCheckboxShadowOptions:()=>Ve,foundationCheckboxStyles:()=>Be,foundationCheckboxTemplate:()=>Ge,foundationCombobox:()=>et,foundationComboboxShadowOptions:()=>Qe,foundationComboboxStyles:()=>We,foundationComboboxTemplate:()=>qe,foundationConnectionIndicator:()=>st,foundationConnectionIndicatorStyles:()=>it,foundationConnectionIndicatorTemplate:()=>at,foundationDataGrid:()=>pt,foundationDataGridCell:()=>ft,foundationDataGridCellShadowOptions:()=>vt,foundationDataGridCellStyles:()=>ht,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>Ft,foundationDataGridRowShadowOptions:()=>wt,foundationDataGridRowStyles:()=>bt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>ct,foundationDataGridStyles:()=>lt,foundationDataGridTemplate:()=>rt,foundationDatePicker:()=>Gt,foundationDatePickerShadowOptions:()=>Ht,foundationDatePickerStyles:()=>Mt,foundationDatePickerTemplate:()=>Pt,foundationDesignSystemProvider:()=>Ao,foundationDialog:()=>Go,foundationDialogShadowOptions:()=>Po,foundationDialogStyles:()=>Eo,foundationDialogTemplate:()=>Io,foundationDisclosure:()=>qo,foundationDisclosureShadowOptions:()=>Yo,foundationDisclosureStyles:()=>zo,foundationDisclosureTemplate:()=>Vo,foundationDivider:()=>ei,foundationDividerShadowOptions:()=>Qo,foundationDividerStyles:()=>Xo,foundationDividerTemplate:()=>Ko,foundationDropdownMenu:()=>li,foundationDropdownMenuStyles:()=>oi,foundationDropdownMenuTemplate:()=>ni,foundationErrorBanner:()=>pi,foundationErrorBannerShadowOptions:()=>ci,foundationErrorBannerTemplate:()=>di,foundationErrorBoundary:()=>Oi,foundationErrorBoundaryShadowOptions:()=>Di,foundationErrorBoundaryTemplate:()=>Ci,foundationErrorDialog:()=>Ei,foundationErrorDialogShadowOptions:()=>Ai,foundationErrorDialogStyles:()=>ki,foundationFileUpload:()=>na,foundationFileUploadShadowOptions:()=>ia,foundationFileUploadStyles:()=>Yi,foundationFileUploadTemplate:()=>qi,foundationFilter:()=>ya,foundationFilterBar:()=>ka,foundationFilterBarStyles:()=>xa,foundationFilterBarTemplate:()=>Da,foundationFilterStyles:()=>sa,foundationFilterTemplate:()=>ga,foundationFlexLayout:()=>Ia,foundationFlexLayoutShadowOptions:()=>Ea,foundationFlexLayoutStyles:()=>Aa,foundationFlexLayoutTemplate:()=>Ra,foundationFlipper:()=>za,foundationFlipperShadowOptions:()=>Ba,foundationFlipperStyles:()=>Pa,foundationFlipperTemplate:()=>Ha,foundationFlyout:()=>Za,foundationFlyoutShadowOptions:()=>Xa,foundationFlyoutStyles:()=>Ua,foundationFlyoutTemplate:()=>Wa,foundationGridLayout:()=>ln,foundationGridLayoutItem:()=>pn,foundationGridLayoutItemShadowOptions:()=>dn,foundationGridLayoutItemTemplate:()=>rn,foundationGridLayoutShadowOptions:()=>on,foundationGridLayoutStyles:()=>en,foundationGridLayoutTemplate:()=>tn,foundationHorizontalScroll:()=>bn,foundationHorizontalScrollShadowOptions:()=>gn,foundationHorizontalScrollStyles:()=>hn,foundationHorizontalScrollTemplate:()=>mn,foundationIcon:()=>Tn,foundationIconShadowOptions:()=>Dn,foundationIconStyles:()=>Sn,foundationIconTemplate:()=>Cn,foundationListbox:()=>Mn,foundationListboxOption:()=>Gn,foundationListboxOptionShadowOptions:()=>jn,foundationListboxOptionStyles:()=>In,foundationListboxOptionTemplate:()=>Pn,foundationListboxShadowOptions:()=>En,foundationListboxStyles:()=>Ln,foundationListboxTemplate:()=>An,foundationMenu:()=>qn,foundationMenuItem:()=>es,foundationMenuItemShadowOptions:()=>Qn,foundationMenuItemStyles:()=>Xn,foundationMenuItemTemplate:()=>Kn,foundationMenuShadowOptions:()=>Yn,foundationMenuStyles:()=>zn,foundationMenuTemplate:()=>Vn,foundationModal:()=>ss,foundationModalShadowOptions:()=>is,foundationModalStyles:()=>ts,foundationModalTemplate:()=>os,foundationMultiselect:()=>vs,foundationMultiselectShadowOptions:()=>ps,foundationNotificationListener:()=>Ad,foundationNotificationListenerShadowOptions:()=>Td,foundationNotificationListenerTemplate:()=>wd,foundationNumberField:()=>Fs,foundationNumberFieldShadowOptions:()=>ws,foundationNumberFieldStyles:()=>fs,foundationNumberFieldTemplate:()=>bs,foundationPopper:()=>Os,foundationProgress:()=>Es,foundationProgressRing:()=>js,foundationProgressRingShadowOptions:()=>Ps,foundationProgressRingStyles:()=>Ns,foundationProgressRingTemplate:()=>Ms,foundationProgressShadowOptions:()=>As,foundationProgressStyles:()=>ks,foundationProgressTemplate:()=>Ts,foundationRadio:()=>Ys,foundationRadioGroup:()=>Qs,foundationRadioGroupShadowOptions:()=>Ks,foundationRadioGroupStyles:()=>Ws,foundationRadioGroupTemplate:()=>qs,foundationRadioShadowOptions:()=>Vs,foundationRadioStyles:()=>Bs,foundationRadioTemplate:()=>Gs,foundationSegmentedControl:()=>al,foundationSegmentedControlShadowOptions:()=>ol,foundationSegmentedControlStyles:()=>Js,foundationSegmentedControlTemplate:()=>el,foundationSegmentedItem:()=>cl,foundationSegmentedItemShadowOptions:()=>rl,foundationSegmentedItemStyles:()=>nl,foundationSegmentedItemTemplate:()=>sl,foundationSelect:()=>gl,foundationSelectShadowOptions:()=>ml,foundationSelectStyles:()=>ul,foundationSelectTemplate:()=>pl,foundationSkeleton:()=>Fl,foundationSkeletonShadowOptions:()=>wl,foundationSkeletonStyles:()=>fl,foundationSkeletonTemplate:()=>bl,foundationSlider:()=>Tl,foundationSliderLabel:()=>Ml,foundationSliderLabelShadowOptions:()=>El,foundationSliderLabelStyles:()=>Ll,foundationSliderLabelTemplate:()=>Al,foundationSliderShadowOptions:()=>Ol,foundationSliderStyles:()=>$l,foundationSliderTemplate:()=>Dl,foundationSnackbar:()=>Gl,foundationSnackbarShadowOptions:()=>jl,foundationSnackbarStyles:()=>Il,foundationSnackbarTemplate:()=>Hl,foundationSwitch:()=>ql,foundationSwitchShadowOptions:()=>Yl,foundationSwitchStyles:()=>zl,foundationSwitchTemplate:()=>Vl,foundationTab:()=>er,foundationTabPanel:()=>sr,foundationTabPanelShadowOptions:()=>ar,foundationTabPanelStyles:()=>tr,foundationTabPanelTemplate:()=>or,foundationTabShadowOptions:()=>Ql,foundationTabStyles:()=>Xl,foundationTabTemplate:()=>Kl,foundationTabs:()=>pr,foundationTabsShadowOptions:()=>cr,foundationTabsStyles:()=>lr,foundationTabsTemplate:()=>rr,foundationTextArea:()=>br,foundationTextAreaShadowOptions:()=>gr,foundationTextAreaStyles:()=>hr,foundationTextAreaTemplate:()=>mr,foundationTextField:()=>Dr,foundationTextFieldShadowOptions:()=>Sr,foundationTextFieldStyles:()=>xr,foundationTextFieldTemplate:()=>Fr,foundationToast:()=>Ar,foundationToastShadowOptions:()=>kr,foundationToastStyles:()=>_r,foundationToastTemplate:()=>Or,foundationToolbar:()=>Pr,foundationToolbarShadowOptions:()=>Mr,foundationToolbarStyles:()=>Rr,foundationToolbarTemplate:()=>Er,foundationTooltip:()=>Vr,foundationTooltipShadowOptions:()=>Gr,foundationTooltipStyles:()=>Hr,foundationTooltipTemplate:()=>jr,foundationTreeItem:()=>Kr,foundationTreeItemShadowOptions:()=>qr,foundationTreeItemStyles:()=>Ur,foundationTreeItemTemplate:()=>Yr,foundationTreeView:()=>od,foundationTreeViewShadowOptions:()=>ed,foundationTreeViewStyles:()=>Zr,foundationTreeViewTemplate:()=>Qr,foundationUrlInput:()=>rd,foundationUrlInputShadowOptions:()=>nd,foundationUrlInputStyles:()=>id,fuiAccentPalette:()=>oo,fuiAccentSwatch:()=>to,fuiCardFillColor:()=>no,fuiCardForegroundColor:()=>ro,fuiDefaultCardFillColor:()=>Xt,fuiDefaultCardPalette:()=>Kt,fuiFillColor:()=>ao,fuiNeutralPalette:()=>Jt,fuiNeutralSwatch:()=>Qt,getBannerTemplate:()=>se,getDefaultConfig:()=>go,getDialogTemplate:()=>Mo,getDropdownMenuTemplate:()=>ai,getErrorDialogTemplate:()=>Ti,getExports:()=>fo,getFontawesomeIconsCss:()=>$n,getPrefixedDatePicker:()=>It,getPrefixedErrorBanner:()=>ri,getPrefixedFileUpload:()=>Wi,getPrefixedFlyout:()=>Ya,getPrefixedMultiselect:()=>cs,getPrefixedSnackbar:()=>Pl,getTypeRampValue:()=>bo,jsonConverter:()=>Ss,mapType:()=>Fa,maxheight:()=>rs,media:()=>z,menuTemplate:()=>S,mixinFoundationFontFamily:()=>_o,multiselectStyles:()=>ds,multiselectTemplate:()=>us,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:()=>xo,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:()=>ud,provideTokens:()=>uo,registerFoundationDesignSystem:()=>jd,singleOptionTemplate:()=>C,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>ho,tagFor:()=>Id,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:()=>Ki,urlinputTemplate:()=>ad,white:()=>Vt});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:()=>so,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:()=>no,fuiCardForegroundColor:()=>ro,fuiFillColor:()=>ao,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:()=>wo,baseLayerLuminanceValue:()=>Fo,controlCornerRadiusValue:()=>So,designUnitValue:()=>Co,directionValue:()=>$o,neutralPaletteValue:()=>xo});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)}
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
display: flex;
|
|
103
103
|
flex-direction: column;
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
`,$=(e,t)=>l.css`
|
|
106
106
|
${F(e,t)}
|
|
107
|
-
|
|
107
|
+
`,S=l.html`
|
|
108
108
|
<fast-button
|
|
109
109
|
id="actiosnMenuTrigger"
|
|
110
110
|
class="actions-opener${e=>e.open?" opened":""}"
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
>
|
|
158
158
|
${e=>e.getTemplate()}
|
|
159
159
|
</div>
|
|
160
|
-
`;class _ 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(){if(!this.hideMenuSingleOption)return
|
|
160
|
+
`;class _ 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(){if(!this.hideMenuSingleOption)return S;const e=this.actions.filter((e=>!e.isDisabled||!e.isDisabled(this.rowData)));return this.singleOption=null,0!==e.length?1===e.length?(this.singleOption=e[0],C):S:void 0}}(0,w.__decorate)([l.observable],_.prototype,"actions",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"is-vertical",mode:"boolean"})],_.prototype,"isVertical",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"add-default-actions",mode:"boolean"})],_.prototype,"addDefaultActions",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close-on-action",mode:"boolean"})],_.prototype,"autoCloseOnAction",void 0),(0,w.__decorate)([l.observable],_.prototype,"classNames",void 0),(0,w.__decorate)([l.observable],_.prototype,"definition",void 0),(0,w.__decorate)([l.attr],_.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"open",mode:"boolean"})],_.prototype,"open",void 0),(0,w.__decorate)([l.attr],_.prototype,"buttonAppearance",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"hide-disabled",mode:"boolean"})],_.prototype,"hideDisabled",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],_.prototype,"hideMenuSingleOption",void 0),(0,w.__decorate)([l.observable],_.prototype,"singleOption",void 0);const O=_.compose({baseName:"actions-menu",styles:$,template:D}),k=(e,t)=>l.css`
|
|
161
161
|
${(0,s.anchorStyles)(e,t)}
|
|
162
162
|
`,T=(e,t)=>(0,n.anchorTemplate)(e,t);class L extends s.Anchor{}const A={delegatesFocus:!0,mode:"open"},R={},E=L.compose(Object.assign({baseName:"anchor",template:T,styles:k,shadowOptions:A},R)),N=(e,t)=>(0,n.anchoredRegionTemplate)(e,t),M=(e,t)=>l.css`
|
|
163
163
|
${(0,s.anchoredRegionStyles)(e,t)}
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
`)}
|
|
170
170
|
`;class V extends s.Avatar{}const U={delegatesFocus:!0,mode:"open"},Y={media:z},W=V.compose(Object.assign({baseName:"avatar",template:G,styles:B,shadowOptions:U},Y)),q=(e,t)=>l.css`
|
|
171
171
|
${(0,s.badgeStyles)(e,t)}
|
|
172
|
-
`,X=(e,t)=>(0,n.badgeTemplate)(e,t);class K extends s.Badge{}const Z=void 0,Q={},J=K.compose(Object.assign({baseName:"badge",template:X,styles:q,shadowOptions:Z},Q)),ee=l.css`
|
|
172
|
+
`,X=(e,t)=>(0,n.badgeTemplate)(e,t);class K extends s.Badge{}const Z=void 0,Q={},J=K.compose(Object.assign({baseName:"badge",template:X,styles:q,shadowOptions:Z},Q));var ee=o(30299);const te=(0,ee.createLogger)("foundation-ui"),oe=l.css`
|
|
173
173
|
@keyframes delete-animate {
|
|
174
174
|
from {
|
|
175
175
|
height: 100px;
|
|
@@ -240,32 +240,51 @@
|
|
|
240
240
|
flex: 1;
|
|
241
241
|
overflow: hidden;
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
243
|
+
`,ie=(e,t)=>!e.composedPath().includes(t),ae=(e,t)=>e.composedPath().includes(t),ne=e=>e.tagName.toLowerCase().split("-")[0],se=e=>l.html`
|
|
244
244
|
<div class="banner ${e=>e.dismissAnimation}" ${(0,l.ref)("banner")}>
|
|
245
245
|
<div part="content" class="content">
|
|
246
|
-
<slot name="content"
|
|
246
|
+
<slot name="content">
|
|
247
|
+
<div>
|
|
248
|
+
<div>${e=>{var t;return(null===(t=e.notification)||void 0===t?void 0:t.body)||"Place holder for notification message"}}</div>
|
|
249
|
+
</div>
|
|
250
|
+
</slot>
|
|
247
251
|
</div>
|
|
248
252
|
<div part="action" class="action">
|
|
249
|
-
<slot name="action" class="action"
|
|
253
|
+
<slot name="action" class="action">
|
|
254
|
+
<${e}-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>
|
|
255
|
+
${e=>{var t,o,i,a;return(null===(a=null===(i=null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||"Ignore"}}
|
|
256
|
+
</${e}-button>
|
|
257
|
+
${(0,l.repeat)((e=>{var t,o;return null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner.confirmingActions}),l.html`
|
|
258
|
+
<${e}-button
|
|
259
|
+
slot="action"
|
|
260
|
+
appearance="lightweight"
|
|
261
|
+
@click=${(e,t)=>{var o;null==e||e.action(),null===(o=t.parent)||void 0===o||o.dismissNotification()}}
|
|
262
|
+
>
|
|
263
|
+
${e=>e.label}
|
|
264
|
+
</${e}-button>
|
|
265
|
+
`)}
|
|
266
|
+
</slot>
|
|
250
267
|
</div>
|
|
251
268
|
</div>
|
|
252
|
-
`,
|
|
269
|
+
`,le=l.html`
|
|
270
|
+
${e=>se(ne(e))}
|
|
271
|
+
`,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){te.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:oe,template:le,shadowOptions:re}),ue=(e,t)=>l.css`
|
|
253
272
|
${(0,s.breadcrumbStyles)(e,t)}
|
|
254
|
-
`,
|
|
273
|
+
`,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`
|
|
255
274
|
${(0,s.breadcrumbItemStyles)(e,t)}
|
|
256
|
-
`,
|
|
275
|
+
`,be=(e,t)=>(0,n.breadcrumbItemTemplate)(e,t);class ye extends s.BreadcrumbItem{}const we=void 0,xe={separator:"/"},Fe=ye.compose(Object.assign({baseName:"breadcrumb-item",template:be,styles:fe,shadowOptions:we},xe)),$e=(e,t)=>l.css`
|
|
257
276
|
${(0,s.buttonStyles)(e,t)}
|
|
258
|
-
`,
|
|
277
|
+
`,Se=(e,t)=>(0,n.buttonTemplate)(e,t);class Ce extends s.Button{}const De={delegatesFocus:!0,mode:"open"},_e={},Oe=Ce.compose(Object.assign({baseName:"button",template:Se,styles:$e,shadowOptions:De},_e)),ke=()=>l.css`
|
|
259
278
|
${s.CalendarStyles}
|
|
260
|
-
|
|
279
|
+
`,Te=(e,t)=>(0,n.calendarTemplate)(e,t);class Le extends s.Calendar{}const Ae={delegatesFocus:!0,mode:"open"},Re={},Ee=Le.compose(Object.assign({baseName:"calendar",template:Te,styles:ke,shadowOptions:Ae},Re)),Ne=(e,t)=>l.css`
|
|
261
280
|
${(0,s.cardStyles)(e,t)}
|
|
262
281
|
:host {
|
|
263
282
|
background-color: var(--fui-card-fill-color);
|
|
264
283
|
color: var(--fui-card-foreground-color);
|
|
265
284
|
}
|
|
266
|
-
`,
|
|
285
|
+
`,Me=(e,t)=>(0,n.cardTemplate)(e,t);class Ie extends s.Card{}const Pe=void 0,He={},je=Ie.compose(Object.assign({baseName:"card",template:Me,styles:Ne,shadowOptions:Pe},He)),Be=(e,t)=>l.css`
|
|
267
286
|
${(0,s.checkboxStyles)(e,t)}
|
|
268
|
-
`,
|
|
287
|
+
`,Ge=(e,t)=>(0,n.checkboxTemplate)(e,t);class ze extends s.Checkbox{}const Ve=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=ze.compose(Object.assign({baseName:"checkbox",template:Ge,styles:Be,shadowOptions:Ve},Ue)),We=(e,t)=>l.css`
|
|
269
288
|
.combo-box-indicator {
|
|
270
289
|
transition-property: transform;
|
|
271
290
|
transition-duration: 0.2s;
|
|
@@ -277,7 +296,7 @@
|
|
|
277
296
|
}
|
|
278
297
|
|
|
279
298
|
${(0,s.comboboxStyles)(e,t)}
|
|
280
|
-
`,
|
|
299
|
+
`,qe=(e,t)=>(0,n.comboboxTemplate)(e,t);var Xe,Ke;class Ze extends s.Combobox{constructor(){super(...arguments),Xe.set(this,void 0),Ke.set(this,!1),this.caseSensitive=!1,this.ignoreInputClick=!1}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(ie(e,this))this.open=!1;else{if(ae(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!ae(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,Ke,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,Ke,"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,Xe,"f")||(0,w.__classPrivateFieldSet)(this,Xe,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,w.__classPrivateFieldGet)(this,Xe,"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))}}Xe=new WeakMap,Ke=new WeakMap,(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"case-sensitive"})],Ze.prototype,"caseSensitive",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"ignore-input-click"})],Ze.prototype,"ignoreInputClick",void 0);const Qe={delegatesFocus:!0,mode:"open"},Je={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 '},et=Ze.compose(Object.assign({baseName:"combobox",template:qe,styles:We,shadowOptions:Qe},Je));var tt=o(89074),ot=o(75527);const it=(e,t)=>l.css`
|
|
281
300
|
:host {
|
|
282
301
|
--light-size: 12px;
|
|
283
302
|
--height: calc(var(--design-unit) * 2px + var(--light-size));
|
|
@@ -328,18 +347,18 @@
|
|
|
328
347
|
text-overflow: ellipsis;
|
|
329
348
|
white-space: nowrap;
|
|
330
349
|
}
|
|
331
|
-
`,
|
|
350
|
+
`,at=l.html`
|
|
332
351
|
<div class=${e=>(0,x.A)(["light",!0],[e.colour,!0])}></div>
|
|
333
352
|
${(0,l.when)((e=>e.showLabel),l.html`
|
|
334
353
|
<div class="label">${e=>e.label}</div>
|
|
335
354
|
`)}
|
|
336
|
-
`;class
|
|
355
|
+
`;class nt 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)([tt.lj],nt.prototype,"connect",void 0),(0,w.__decorate)([ot.z],nt.prototype,"session",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"show-label"})],nt.prototype,"showLabel",void 0),(0,w.__decorate)([l.observable],nt.prototype,"label",void 0),(0,w.__decorate)([l.observable],nt.prototype,"colour",void 0);const st=nt.compose({baseName:"connection-indicator",template:at,styles:it}),lt=(e,t)=>l.css`
|
|
337
356
|
${(0,s.dataGridStyles)(e,t)}
|
|
338
|
-
`,
|
|
357
|
+
`,rt=(e,t)=>(0,n.dataGridTemplate)(e,t);class dt extends s.DataGrid{}const ct=void 0,ut={},pt=dt.compose(Object.assign({baseName:"data-grid",template:rt,styles:lt,shadowOptions:ct},ut)),ht=(e,t)=>l.css`
|
|
339
358
|
${(0,s.dataGridCellStyles)(e,t)}
|
|
340
|
-
`;class
|
|
359
|
+
`;class mt extends s.DataGridCell{}const vt=void 0,gt={},ft=mt.compose(Object.assign({baseName:"data-grid-cell",template:n.dataGridCellTemplate,styles:ht,shadowOptions:vt},gt)),bt=(e,t)=>l.css`
|
|
341
360
|
${(0,s.dataGridRowStyles)(e,t)}
|
|
342
|
-
`;class
|
|
361
|
+
`;class yt extends s.DataGridRow{}const wt=void 0,xt={},Ft=yt.compose(Object.assign({baseName:"data-grid-row",template:n.dataGridRowTemplate,styles:bt,shadowOptions:wt},xt));var $t=o(87530),St=o.n($t),Ct=o(55466),Dt=o.n(Ct),_t=o(82839),Ot=o.n(_t),kt=o(55477),Tt=o.n(kt),Lt=o(78113),At=o.n(Lt);class Rt{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()}}St().extend(At());class Et{constructor(e=null,t="default"){const o=new Rt(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+=St()(o.date).isLeapYear()?1:0)}getDay(e){return new Rt(new Date(this.year,this.number-1,e),this.lang)}}St().extend(At());class Nt{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new Rt(null,o),this.year=null!=e?e:this.today.year,this.month=new Et(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 Et(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new Et(new Date(this.year-1,11),this.lang):new Et(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new Et(new Date(this.year+1,0),this.lang):new Et(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new Et(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new Et(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new Et(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new Et(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new Et(new Date(this.year,this.month.number-1-1),this.lang)}}const Mt=l.css`
|
|
343
362
|
:host {
|
|
344
363
|
position: relative;
|
|
345
364
|
}
|
|
@@ -474,7 +493,7 @@
|
|
|
474
493
|
background: var(--neutral-stroke-hover);
|
|
475
494
|
color: (--neutral-foreground-rest);
|
|
476
495
|
}
|
|
477
|
-
`,
|
|
496
|
+
`,It=e=>l.html`
|
|
478
497
|
<${e}-text-field data-test-id="date-picker" readonly :value="${e=>e.formatDate}" part="date-toggle" class="date-toggle" ${(0,l.ref)("toggleButton")}>
|
|
479
498
|
<div class="input-icon-container" part="input-icon-container" slot="end"><${e}-icon variant="regular" name="calendar-alt" size="sm"></${e}-icon></div>
|
|
480
499
|
</${e}-text-field>
|
|
@@ -508,44 +527,49 @@
|
|
|
508
527
|
`)}
|
|
509
528
|
</div>
|
|
510
529
|
</div>
|
|
511
|
-
`,
|
|
512
|
-
${e=>
|
|
513
|
-
`,
|
|
530
|
+
`,Pt=l.html`
|
|
531
|
+
${e=>It(ne(e))}
|
|
532
|
+
`,Ht=void 0,jt={};class Bt extends n.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=St()(this.currentDate.Date).format(t))}valueChanged(e,t){if(t&&this.calendar){const e=St()().localeData().longDateFormat("L");this.currentDate=new Rt(St()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=St()(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",St().extend(Dt()),St().extend(Tt()),St().extend(Ot()),this.substringNumber=3;const e=this.getAttribute("value"),t=e?St()(e,"MM-DD-YYYY"):St()();this.currentDate=new Rt(t.toDate(),this.lang),this.calendar=new Nt(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=St()(this.currentDate.Date).format("MM-DD-YYYY")}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=St()(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 St()(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){St()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=St()(this.currentDate.Date).format(this.format),this.value=St()(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],Bt.prototype,"format",void 0),(0,w.__decorate)([l.attr],Bt.prototype,"lang",void 0),(0,w.__decorate)([l.attr],Bt.prototype,"visible",void 0),(0,w.__decorate)([l.attr],Bt.prototype,"position",void 0),(0,w.__decorate)([l.attr],Bt.prototype,"value",void 0),(0,w.__decorate)([l.observable],Bt.prototype,"currentDate",void 0),(0,w.__decorate)([l.observable],Bt.prototype,"currentMonth",void 0),(0,w.__decorate)([l.observable],Bt.prototype,"currentYear",void 0),(0,w.__decorate)([l.observable],Bt.prototype,"calendarDropdownClasses",void 0),(0,w.__decorate)([l.observable],Bt.prototype,"formatDate",void 0),(0,w.__decorate)([l.observable],Bt.prototype,"monthList",void 0);const Gt=Bt.compose(Object.assign({baseName:"date-picker",styles:Mt,template:Pt,shadowOptions:Ht},jt));var zt=o(82694);const Vt=s.SwatchRGB.create(1,1,1),Ut=s.SwatchRGB.create(0,0,0),Yt=(0,zt.parseColorHexRGB)("#585858"),Wt=s.SwatchRGB.create(Yt.r,Yt.g,Yt.b),qt=(0,zt.parseColorHexRGB)("#ffffff"),Xt=s.SwatchRGB.create(qt.r,qt.g,qt.b),Kt=s.PaletteRGB.from(Xt),Zt=(0,zt.parseColorHexRGB)("#eeeeee"),Qt=s.SwatchRGB.create(Zt.r,Zt.g,Zt.b),Jt=s.PaletteRGB.from(Qt),eo=(0,zt.parseColorHexRGB)("#08c3a5"),to=s.SwatchRGB.create(eo.r,eo.g,eo.b),oo=s.PaletteRGB.from(to),{create:io}=n.DesignToken,ao=io("fui-fill-color").withDefault(Wt),no=io({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(Xt),so=14;function lo(e,t){return e.colorContrast(t,so)}const ro=io({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>lo(io("fui-card-palette").withDefault(Kt).getValueFor(e),no.getValueFor(e))));var co=o(47823);const uo=(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 po(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const ho={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,zt.parseColorHexRGB)(e);return t?s.SwatchRGB.create(t.r,t.g,t.b):null}},mo=e=>s.PaletteRGB.from(s.SwatchRGB.from((0,zt.parseColorHexRGB)(e))),vo=["baseClass","baseName","shadowOptions","styles","template"],go=(e,t=vo)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),fo=e=>{const{definition:t}=e(),{shadowOptions:o,styles:i,template:a}=t;return{shadowOptions:o,styles:i,template:a,defaultConfig:go(t)}},bo=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),i=o[1],a=o[2];return Number(i)+t+a},yo=(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,co.Yd.minusOne)),s.typeRampMinus1LineHeight.setValueFor(e,bo(a,co.Yd.minusOne)),s.typeRampMinus2FontSize.setValueFor(e,bo(i,co.Yd.minusTwo)),s.typeRampMinus2LineHeight.setValueFor(e,bo(a,co.Yd.minusTwo)),s.typeRampPlus1FontSize.setValueFor(e,bo(i,co.Yd.plusOne)),s.typeRampPlus1LineHeight.setValueFor(e,bo(a,co.Yd.plusOne)),s.typeRampPlus2FontSize.setValueFor(e,bo(i,co.Yd.plusTwo)),s.typeRampPlus2LineHeight.setValueFor(e,bo(a,co.Yd.plusTwo)),s.typeRampPlus3FontSize.setValueFor(e,bo(i,co.Yd.plusThree)),s.typeRampPlus3LineHeight.setValueFor(e,bo(a,co.Yd.plusThree)),s.typeRampPlus4FontSize.setValueFor(e,bo(i,co.Yd.plusFour)),s.typeRampPlus4LineHeight.setValueFor(e,bo(a,co.Yd.plusFour)),s.typeRampPlus5FontSize.setValueFor(e,bo(i,co.Yd.plusFive)),s.typeRampPlus5LineHeight.setValueFor(e,bo(a,co.Yd.plusFive)),s.typeRampPlus6FontSize.setValueFor(e,bo(i,co.Yd.plusSix)),s.typeRampPlus6LineHeight.setValueFor(e,bo(a,co.Yd.plusSix))},wo=mo("#08c3a5"),xo=mo("#eeeeee"),Fo=s.StandardLuminance.DarkMode;const $o=o(5598).N.ltr,So=4,Co=4;var Do=o(67973);const _o=(e="normal",t="normal")=>`\n font-family: ${s.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,Oo=l.css`
|
|
514
533
|
${(0,n.display)("flex")}
|
|
515
534
|
:host {
|
|
516
535
|
flex: 1;
|
|
517
536
|
}
|
|
518
|
-
`,
|
|
537
|
+
`,ko=l.css`
|
|
519
538
|
:host {
|
|
520
|
-
background-color: ${
|
|
539
|
+
background-color: ${ao};
|
|
521
540
|
}
|
|
522
541
|
`.withBehaviors((0,n.forcedColorsStylesheetBehavior)(l.css`
|
|
523
542
|
:host {
|
|
524
|
-
background-color: ${
|
|
525
|
-
box-shadow: 0 0 0 1px ${
|
|
526
|
-
color: ${
|
|
543
|
+
background-color: ${Do.H.ButtonFace};
|
|
544
|
+
box-shadow: 0 0 0 1px ${Do.H.CanvasText};
|
|
545
|
+
color: ${Do.H.ButtonText};
|
|
527
546
|
}
|
|
528
|
-
`)),
|
|
547
|
+
`)),To=(e,t)=>l.css`
|
|
529
548
|
${e.name} ${"h"+t} {
|
|
530
549
|
margin: 0;
|
|
531
550
|
}
|
|
532
|
-
`;class
|
|
551
|
+
`;class Lo extends s.DesignSystemProvider{constructor(){super(),uo(i,a,this)}}(0,w.__decorate)([(0,l.attr)({attribute:"card-fill-color",converter:ho}),po(no)],Lo.prototype,"cardFillColor",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"card-foreground-color",converter:ho}),po(ro)],Lo.prototype,"cardForegroundColor",void 0);const Ao=Lo.compose({baseName:"design-system-provider",template:l.html`
|
|
533
552
|
<slot></slot>
|
|
534
553
|
`,styles:e=>{const t=(e=>l.css`
|
|
535
|
-
${
|
|
536
|
-
${
|
|
537
|
-
${
|
|
538
|
-
${
|
|
539
|
-
${
|
|
540
|
-
${
|
|
554
|
+
${To(e,"1")}
|
|
555
|
+
${To(e,"2")}
|
|
556
|
+
${To(e,"3")}
|
|
557
|
+
${To(e,"4")}
|
|
558
|
+
${To(e,"5")}
|
|
559
|
+
${To(e,"6")}
|
|
541
560
|
`)(e);return t.addStylesTo(document),l.css`
|
|
542
|
-
${
|
|
543
|
-
${
|
|
561
|
+
${Oo}
|
|
562
|
+
${ko}
|
|
544
563
|
${t}
|
|
545
564
|
:host * {
|
|
546
|
-
${
|
|
565
|
+
${_o()}
|
|
547
566
|
}
|
|
548
|
-
`}});var
|
|
567
|
+
`}});var Ro=o(15098);const Eo=l.css`
|
|
568
|
+
:host {
|
|
569
|
+
--dialog-min-width: 358px;
|
|
570
|
+
--notification-details-min-height: 40px;
|
|
571
|
+
}
|
|
572
|
+
|
|
549
573
|
.close-icon {
|
|
550
574
|
position: absolute;
|
|
551
575
|
right: calc(var(--design-unit) * 2px);
|
|
@@ -583,26 +607,57 @@
|
|
|
583
607
|
::slotted(zero-divider) {
|
|
584
608
|
width: 100%;
|
|
585
609
|
}
|
|
586
|
-
|
|
610
|
+
|
|
611
|
+
.title {
|
|
612
|
+
margin-top: calc(var(--design-unit) * 2px);
|
|
613
|
+
font-size: 14px;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.details {
|
|
617
|
+
font-size: 12px;
|
|
618
|
+
overflow: hidden;
|
|
619
|
+
min-height: var(--notification-details-min-height);
|
|
620
|
+
}
|
|
621
|
+
`,No=(e="start")=>`\n <svg class="svg-icon" slot="${e}" width="16px" height="16px">\n <g transform="matrix(1 0 0 1 -1865 -3576 )">\n <path d="M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z " fill-rule="nonzero" fill="#879ba6" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,Mo=e=>l.html`
|
|
587
622
|
<dialog ${(0,l.ref)("mainElement")} part="dialog">
|
|
588
623
|
<div class="content-wrapper">
|
|
589
624
|
<div part="top" class="top">
|
|
590
|
-
<slot name="top"
|
|
625
|
+
<slot name="top">
|
|
626
|
+
<h2 slot="top" class="title">${e=>{var t;return null===(t=e.notification)||void 0===t?void 0:t.title}}</h2>
|
|
627
|
+
</slot>
|
|
591
628
|
${(0,l.when)((e=>e.showCloseIcon),l.html`
|
|
592
|
-
<div class="close-icon" @click=${e=>e.close()}>${
|
|
629
|
+
<div class="close-icon" @click=${e=>e.close()}>${No()}</div>
|
|
593
630
|
`)}
|
|
594
631
|
</div>
|
|
595
|
-
<slot
|
|
632
|
+
<slot>
|
|
633
|
+
<div class="details">
|
|
634
|
+
${e=>{var t;return(null===(t=e.notification)||void 0===t?void 0:t.body)||"Place holder for notification message"}}
|
|
635
|
+
</div>
|
|
636
|
+
</slot>
|
|
596
637
|
<div part="bottom" class="bottom">
|
|
597
|
-
<slot name="bottom"
|
|
638
|
+
<slot name="bottom">
|
|
639
|
+
<${e}-button appearance="lightweight" @click=${e=>{e.dismiss()}}>
|
|
640
|
+
${e=>{var t,o,i,a;return(null===(a=null===(i=null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||"Ignore"}}
|
|
641
|
+
</${e}-button>
|
|
642
|
+
${(0,l.repeat)((e=>{var t,o;return null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog.confirmingActions}),l.html`
|
|
643
|
+
<${e}-button
|
|
644
|
+
appearance="lightweight"
|
|
645
|
+
@click=${(e,t)=>{null==e||e.action(),t.parent.closeDialog()}}
|
|
646
|
+
>
|
|
647
|
+
${e=>e.label}
|
|
648
|
+
</${e}-button>
|
|
649
|
+
`)}
|
|
650
|
+
</slot>
|
|
598
651
|
</div>
|
|
599
652
|
</div>
|
|
600
653
|
</dialog>
|
|
601
|
-
`,
|
|
654
|
+
`,Io=l.html`
|
|
655
|
+
${e=>Mo(ne(e))}
|
|
656
|
+
`,Po={mode:"open",delegatesFocus:!0},Ho={};class jo extends n.FoundationElement{constructor(){super(...arguments),this.position="centre",this.showCloseIcon=!0}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||Ro.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){te.error(e)}}}(0,w.__decorate)([l.observable],jo.prototype,"notification",void 0),(0,w.__decorate)([l.attr],jo.prototype,"position",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"show-close-icon"})],jo.prototype,"showCloseIcon",void 0),(0,w.__decorate)([l.observable],jo.prototype,"onShowCallback",void 0),(0,w.__decorate)([l.observable],jo.prototype,"onCloseCallback",void 0),(0,w.__decorate)([l.volatile],jo.prototype,"open",null);class Bo extends jo{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const Go=Bo.compose(Object.assign({baseName:"dialog",styles:Eo,template:Io,shadowOptions:Po},Ho)),zo=(e,t)=>l.css`
|
|
602
657
|
${(0,s.disclosureStyles)(e,t)}
|
|
603
|
-
`,
|
|
658
|
+
`,Vo=(e,t)=>(0,n.disclosureTemplate)(e,t);class Uo extends n.Disclosure{}const Yo=void 0,Wo={},qo=Uo.compose(Object.assign({baseName:"disclosure",template:Vo,styles:zo,shadowOptions:Yo},Wo)),Xo=(e,t)=>l.css`
|
|
604
659
|
${(0,s.dividerStyles)(e,t)}
|
|
605
|
-
`,
|
|
660
|
+
`,Ko=(e,t)=>(0,n.dividerTemplate)(e,t);class Zo extends n.Divider{}const Qo=void 0,Jo={},ei=Zo.compose(Object.assign({baseName:"divider",template:Ko,styles:Xo,shadowOptions:Qo},Jo)),ti=(e,t,o)=>l.css`
|
|
606
661
|
:host {
|
|
607
662
|
--dropdown-opener-height-multiplier: 0.7px;
|
|
608
663
|
--menu-item-height-multiplier: 0.7px;
|
|
@@ -665,9 +720,9 @@
|
|
|
665
720
|
var(--menu-item-height-multiplier)
|
|
666
721
|
);
|
|
667
722
|
}
|
|
668
|
-
`,
|
|
669
|
-
${
|
|
670
|
-
`,
|
|
723
|
+
`,oi=(e,t)=>l.css`
|
|
724
|
+
${ti("foundation",e,t)}
|
|
725
|
+
`,ii=(e,t)=>l.html`
|
|
671
726
|
${(0,l.repeat)((()=>e),l.html`
|
|
672
727
|
${(0,l.when)((e=>e.isDisabled&&e.isDisabled()),l.html`
|
|
673
728
|
<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>
|
|
@@ -688,12 +743,12 @@
|
|
|
688
743
|
`)}
|
|
689
744
|
${e=>e.name}
|
|
690
745
|
${(0,l.when)((e=>e.submenu),l.html`
|
|
691
|
-
<${t}-menu>${e=>
|
|
746
|
+
<${t}-menu>${e=>ii(e.submenu,t)}</${t}-menu>
|
|
692
747
|
`)}
|
|
693
748
|
</${t}-menu-item>
|
|
694
749
|
`)}
|
|
695
750
|
`)}
|
|
696
|
-
`,
|
|
751
|
+
`,ai=e=>l.html`
|
|
697
752
|
<div class="actions-container" part="actions-container">
|
|
698
753
|
<${e}-button
|
|
699
754
|
id="actiosnMenuTrigger"
|
|
@@ -710,37 +765,39 @@
|
|
|
710
765
|
class="actions-menu ${e=>e.classNames}"
|
|
711
766
|
part="actions-menu"
|
|
712
767
|
>
|
|
713
|
-
${t=>
|
|
768
|
+
${t=>ii(t.allItems,e)}
|
|
714
769
|
</${e}-menu>
|
|
715
770
|
</div>
|
|
716
|
-
`,
|
|
717
|
-
${e=>
|
|
718
|
-
`;class
|
|
719
|
-
|
|
771
|
+
`,ni=l.html`
|
|
772
|
+
${e=>ai(ne(e))}
|
|
773
|
+
`;class si 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){ie(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],si.prototype,"items",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],si.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"disable-button",mode:"boolean"})],si.prototype,"disabled",void 0),(0,w.__decorate)([l.observable],si.prototype,"classNames",void 0),(0,w.__decorate)([l.attr],si.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"open",mode:"boolean"})],si.prototype,"open",void 0),(0,w.__decorate)([l.attr],si.prototype,"buttonAppearance",void 0);const li=si.compose({baseName:"dropdown-menu",styles:oi,template:ni}),ri=e=>l.html`
|
|
774
|
+
<${e}-banner ${(0,l.ref)("banner")}>
|
|
720
775
|
<div slot="content">
|
|
721
776
|
<div>
|
|
722
777
|
${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}
|
|
723
778
|
</div>
|
|
724
779
|
</div>
|
|
725
780
|
|
|
726
|
-
|
|
781
|
+
<${e}-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>
|
|
727
782
|
${e=>{var t,o,i,a,n,s,l,r;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||(null===(r=null===(l=null===(s=null===(n=e.notification)||void 0===n?void 0:n.config)||void 0===s?void 0:s.banner)||void 0===l?void 0:l.dismissingAction)||void 0===r?void 0:r.label)||"Ignore"}}
|
|
728
|
-
|
|
783
|
+
</${e}-button>
|
|
729
784
|
${(0,l.repeat)((e=>{var t,o,i,a;return(null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner.confirmingActions)||(null===(a=null===(i=e.notification)||void 0===i?void 0:i.config)||void 0===a?void 0:a.banner.confirmingActions)}),l.html`
|
|
730
|
-
|
|
785
|
+
<${e}-button
|
|
731
786
|
slot="action"
|
|
732
787
|
appearance="lightweight"
|
|
733
788
|
@click=${(e,t)=>{var o;null==e||e.action(),null===(o=t.parent)||void 0===o||o.dismiss()}}
|
|
734
789
|
>
|
|
735
790
|
${e=>e.label}
|
|
736
|
-
|
|
791
|
+
</${e}-button>
|
|
737
792
|
`)}
|
|
738
|
-
|
|
739
|
-
`,
|
|
793
|
+
</${e}-banner>
|
|
794
|
+
`,di=l.html`
|
|
795
|
+
${e=>ri(ne(e))}
|
|
796
|
+
`,ci={mode:"open",delegatesFocus:!0};class ui extends n.FoundationElement{connectedCallback(){super.connectedCallback(),te.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){te.error(e)}}))}}(0,w.__decorate)([l.observable],ui.prototype,"error",void 0),(0,w.__decorate)([l.observable],ui.prototype,"notification",void 0);const pi=ui.compose({baseName:"error-banner",template:di,shadowOptions:ci});var hi,mi=o(6852);!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(hi||(hi={}));const vi=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"}`},gi=(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},fi=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},bi=(e,t)=>{var o,i,a,n,s,l,r,d,c,u,p,h,m;const v=t.split("-")[0],g=gi("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)},yi=(0,ee.createLogger)("foundation-error"),wi={alert:e=>{alert(vi(e))},notification:bi,dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-error-dialog`);gi("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);gi("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 fi()})(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}},xi=(e,t,o)=>{var i,a;yi.log({message:vi(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)||ee.LogLevel.Error)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{wi[i]&&wi[i](e,t,o)}))};class Fi{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 ee.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 $i=()=>new Fi;class Si{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 Ci=l.html`
|
|
740
797
|
<template ${(0,l.ref)("errorBoundary")}>
|
|
741
798
|
<slot></slot>
|
|
742
799
|
</template>
|
|
743
|
-
`,
|
|
800
|
+
`,Di={mode:"open",delegatesFocus:!0};class _i extends n.FoundationElement{constructor(){super(...arguments),this.logger=(0,ee.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(hi.ERROR_BOUNDARY_EVENT,(e=>{e.stopImmediatePropagation(),xi(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;xi($i().withTitle(e).withErrorDetails(o).withNotification((new Si).withType(i).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})))}))}}(0,w.__decorate)([l.observable],_i.prototype,"errorBoundary",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],_i.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],_i.prototype,"closeTimeout",void 0),(0,w.__decorate)([mi.Yh],_i.prototype,"datasource",void 0);const Oi=_i.compose({baseName:"error-boundary",template:Ci,shadowOptions:Di}),ki=l.css`
|
|
744
801
|
:host {
|
|
745
802
|
--design-unit: 3;
|
|
746
803
|
--dialog-max-width: 358px;
|
|
@@ -759,7 +816,7 @@
|
|
|
759
816
|
overflow: hidden;
|
|
760
817
|
min-height: var(--error-details-min-height);
|
|
761
818
|
}
|
|
762
|
-
`,
|
|
819
|
+
`,Ti=e=>l.html`
|
|
763
820
|
<${e}-dialog show-close-icon="false" ${(0,l.ref)("dialog")}>
|
|
764
821
|
<h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
|
|
765
822
|
<div class="details">${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}</div>
|
|
@@ -776,9 +833,9 @@
|
|
|
776
833
|
</${e}-button>
|
|
777
834
|
`)}
|
|
778
835
|
</${e}-dialog>
|
|
779
|
-
`,
|
|
780
|
-
${e=>
|
|
781
|
-
`,
|
|
836
|
+
`,Li=l.html`
|
|
837
|
+
${e=>Ti(ne(e))}
|
|
838
|
+
`,Ai={mode:"open",delegatesFocus:!0};class Ri extends n.FoundationElement{connectedCallback(){super.connectedCallback(),te.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){te.error(e)}}}(0,w.__decorate)([l.observable],Ri.prototype,"error",void 0),(0,w.__decorate)([l.observable],Ri.prototype,"notification",void 0);const Ei=Ri.compose({baseName:"error-dialog",template:Li,styles:ki,shadowOptions:Ai});var Ni=o(22296);const Mi=(0,ee.createLogger)("foundation-criteria");var Ii;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(Ii||(Ii={}));class Pi{constructor(e){this.$$operator=e}static And(){return new Pi(Ii.AND)}static Or(){return new Pi(Ii.OR)}static Not(){return new Pi(Ii.NOT)}static GreaterThan(){return new Pi(Ii.GT)}static GreaterThanOrEqual(){return new Pi(Ii.GE)}static LessThan(){return new Pi(Ii.LT)}static LessThanOrEqual(){return new Pi(Ii.LE)}static NotEqual(){return new Pi(Ii.NE)}static Equal(){return new Pi(Ii.EQ)}get operator(){return this.$$operator}}const Hi="default";class ji{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,Pi.And()),this.Or=(e,t={})=>this.withExpression(e,t,Pi.Or()),this.Not=(e,t={})=>this.withExpression(e,t,Pi.Not())}withExpression(e,t={},o=Pi.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=Hi)=>{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 Pi;return t&&Mi.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,Hi)}}else s(e,Hi);else s(e,"string"==typeof e?Hi: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 Pi){if(o[t-1]instanceof Pi)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof Pi?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const Bi=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},Gi=e=>t=>`${t.field} ${e} ${Bi(t)}`,zi=e=>Gi(Ii.EQ)(e);class Vi{constructor(e){this.serialiser=zi,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}}var Ui=o(21607);const Yi=l.css`
|
|
782
839
|
/* Host */
|
|
783
840
|
:host {
|
|
784
841
|
display: flex;
|
|
@@ -826,7 +883,7 @@
|
|
|
826
883
|
fast-data-grid-row {
|
|
827
884
|
align-items: center;
|
|
828
885
|
}
|
|
829
|
-
`,
|
|
886
|
+
`,Wi=e=>l.html`
|
|
830
887
|
<template>
|
|
831
888
|
<div class="file-selection">
|
|
832
889
|
<input type="file" multiple ${(0,l.ref)("fileInput")}
|
|
@@ -852,13 +909,13 @@
|
|
|
852
909
|
</${e}-data-grid>
|
|
853
910
|
</div>
|
|
854
911
|
</template>
|
|
855
|
-
`,
|
|
856
|
-
${e=>
|
|
857
|
-
`,
|
|
912
|
+
`,qi=l.html`
|
|
913
|
+
${e=>Wi(ne(e))}
|
|
914
|
+
`,Xi=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},Ki=(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))))},Zi=(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&&bi($i().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"),te.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&&bi($i().withTitle("Success").withErrorDetails("File downloaded successfully").withNotification({autoClose:!0,closeTimeout:5e3,type:"success"}).build(),"zero"),te.info("File downloaded successfully")}})).catch((e=>{te.error(e)}))},Qi=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],Ji=["text/plain","text/csv"],ea=["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"],ta=l.html`
|
|
858
915
|
${(0,l.when)((e=>e.rowData),l.html`
|
|
859
|
-
${e=>"DATETIME"===e.columnDefinition.type?(0,
|
|
916
|
+
${e=>"DATETIME"===e.columnDefinition.type?(0,Ui.Lx)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
|
|
860
917
|
`)}
|
|
861
|
-
`;class
|
|
918
|
+
`;class oa extends n.FoundationElement{constructor(){super(...arguments),this.acceptedFormats=[],this.accept="",this.fileSizeLimitBytes=104857600,this.uploadedFilesResourceName="ALL_FILE_ATTACHMENTS",this.uploadEventName="gwf/attachment-handler/upload",this.gridFields="",this.fileName="",this.uploadedFilesList=[],this.filesGridColumnDefinitions=[]}acceptChanged(){let e=[];this.accept.length>0&&this.accept.split(",").forEach((t=>{"image/*"===t?e=[...e,...Qi]:"office/*"===t?e=[...e,...ea]:"text/*"===t?e=[...e,...Ji]:e.push(t)})),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}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),(null===(t=this.filesGridColumnDefinitions)||void 0===t?void 0:t.length)||this.setColumnDefs()}))}setupGrid(){void 0!==this.entityId&&void 0!==this.fieldName&&(this.gridCriteria=(new ji).withExpression((new Vi).withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(const o of e.ROW)if(o.DETAILS)switch(o.DETAILS.OPERATION){case"INSERT":this.uploadedFilesList.unshift(o);break;case"MODIFY":t=this.uploadedFilesList.findIndex((e=>e.FILE_ATTACHMENT_ID===o.FILE_ATTACHMENT_ID)),this.uploadedFilesList.splice(t,1,o);break;case"DELETE":t=this.uploadedFilesList.findIndex((e=>e.FILE_ATTACHMENT_ID===o.FILE_ATTACHMENT_ID)),this.uploadedFilesList.splice(t,1);break;default:Ni.k.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,w.__awaiter)(this,void 0,void 0,(function*(){yield this.connect.stream(this.uploadedFilesResourceName,(e=>{var t;1===e.SEQUENCE_ID?this.uploadedFilesList=null!==(t=e.ROW)&&void 0!==t?t:[]:this.handleStreamRowOperation(e)}),(e=>{Ni.k.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){var e;return(0,w.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),o=[];this.gridFields.length>0?this.gridFields.split(" ").forEach((e=>{var i;const a=null===(i=t.FIELD)||void 0===i?void 0:i.find((t=>t.NAME===e));a?o.push(this.getColumnObject(a)):"DOWNLOAD"===e&&this.downloadEventName&&o.push(this.getDownloadColumn())})):(null===(e=t.FIELD)||void 0===e||e.forEach((e=>{o.push(this.getColumnObject(e))})),this.downloadEventName&&o.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=o}))}getDownloadColumn(){const e=this.tagName.toLowerCase().split("-")[0];return{columnDataKey:"FILE_NAME",title:"File",cellTemplate:l.html`
|
|
862
919
|
<template>
|
|
863
920
|
<div class="download-button-container">
|
|
864
921
|
<${e}-button
|
|
@@ -869,7 +926,7 @@
|
|
|
869
926
|
</${e}-button>
|
|
870
927
|
</div>
|
|
871
928
|
</template>
|
|
872
|
-
`}}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:
|
|
929
|
+
`}}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:ta}}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=Xi(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield Ki(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return Ni.k.error(t.ERROR),void this.$emit("errorOut",t.ERROR);Ni.k.info(t),this.clearSelection()}catch(e){Ni.k.error(e)}}))}handleFileDownload(e){Zi(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,w.__decorate)([l.observable],oa.prototype,"gridCriteria",void 0),(0,w.__decorate)([tt.lj],oa.prototype,"connect",void 0),(0,w.__decorate)([ot.z],oa.prototype,"session",void 0),(0,w.__decorate)([l.attr],oa.prototype,"label",void 0),(0,w.__decorate)([l.attr],oa.prototype,"accept",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"file-size-limit-bytes"})],oa.prototype,"fileSizeLimitBytes",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"uploaded-files-resource-name"})],oa.prototype,"uploadedFilesResourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"upload-event-name"})],oa.prototype,"uploadEventName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"field-name"})],oa.prototype,"fieldName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"entity-id"})],oa.prototype,"entityId",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"upload-key"})],oa.prototype,"uploadKey",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"grid-fields"})],oa.prototype,"gridFields",void 0),(0,w.__decorate)([l.observable],oa.prototype,"fileName",void 0),(0,w.__decorate)([l.observable],oa.prototype,"uploadedFilesList",void 0),(0,w.__decorate)([l.observable],oa.prototype,"filesGridColumnDefinitions",void 0);const ia=void 0,aa={},na=oa.compose(Object.assign({baseName:"file-upload",styles:Yi,template:qi,shadowOptions:ia},aa)),sa=l.css`
|
|
873
930
|
.filter-wrapper {
|
|
874
931
|
border: 1px solid gray;
|
|
875
932
|
border-radius: calc(var(--design-unit) * 2px);
|
|
@@ -920,77 +977,77 @@
|
|
|
920
977
|
.flex-row foundation-select {
|
|
921
978
|
flex: 1;
|
|
922
979
|
}
|
|
923
|
-
`;var
|
|
924
|
-
<div class="close-icon" @click=${e=>e.clear()}>${
|
|
925
|
-
`,
|
|
980
|
+
`;var la=o(18471);const ra=l.html`
|
|
981
|
+
<div class="close-icon" @click=${e=>e.clear()}>${No()}</div>
|
|
982
|
+
`,da=l.html`
|
|
926
983
|
<div class="flex-row">
|
|
927
984
|
<div>${e=>e.label}</div>
|
|
928
|
-
${
|
|
985
|
+
${ra}
|
|
929
986
|
</div>
|
|
930
987
|
<div class="flex-row">
|
|
931
988
|
<foundation-text-field
|
|
932
989
|
${(0,l.ref)("textFilterField")}
|
|
933
990
|
type="text"
|
|
934
|
-
:value=${(0,
|
|
991
|
+
:value=${(0,la.Z)((e=>e.textFilter))}
|
|
935
992
|
/>
|
|
936
993
|
</div>
|
|
937
|
-
`,
|
|
994
|
+
`,ca=l.html`
|
|
938
995
|
<div class="flex-row">
|
|
939
996
|
<div>${e=>e.label}</div>
|
|
940
|
-
${
|
|
997
|
+
${ra}
|
|
941
998
|
</div>
|
|
942
999
|
<div class="flex-row">
|
|
943
1000
|
<foundation-text-field
|
|
944
1001
|
${(0,l.ref)("numFilterFieldMin")}
|
|
945
1002
|
type="number"
|
|
946
|
-
:value=${(0,
|
|
1003
|
+
:value=${(0,la.Z)((e=>e.numFilterMin))}
|
|
947
1004
|
placeholder="min"
|
|
948
1005
|
></foundation-text-field>
|
|
949
1006
|
<foundation-text-field
|
|
950
1007
|
${(0,l.ref)("numFilterFieldMax")}
|
|
951
1008
|
type="number"
|
|
952
|
-
:value=${(0,
|
|
1009
|
+
:value=${(0,la.Z)((e=>e.numFilterMax))}
|
|
953
1010
|
placeholder="max"
|
|
954
1011
|
></foundation-text-field>
|
|
955
1012
|
</div>
|
|
956
|
-
`,
|
|
1013
|
+
`,ua=l.html`
|
|
957
1014
|
<div class="flex-row">
|
|
958
1015
|
<div>${e=>e.label}</div>
|
|
959
|
-
${
|
|
1016
|
+
${ra}
|
|
960
1017
|
</div>
|
|
961
1018
|
<div class="flex-row">
|
|
962
1019
|
<foundation-text-field
|
|
963
1020
|
${(0,l.ref)("dateFilterFieldMin")}
|
|
964
1021
|
type="date"
|
|
965
|
-
:value=${(0,
|
|
1022
|
+
:value=${(0,la.Z)((e=>e.dateFilterMin))}
|
|
966
1023
|
></foundation-text-field>
|
|
967
1024
|
<foundation-text-field
|
|
968
1025
|
${(0,l.ref)("dateFilterFieldMax")}
|
|
969
1026
|
type="date"
|
|
970
|
-
:value=${(0,
|
|
1027
|
+
:value=${(0,la.Z)((e=>e.dateFilterMax))}
|
|
971
1028
|
></foundation-text-field>
|
|
972
1029
|
</div>
|
|
973
|
-
`;function
|
|
1030
|
+
`;function pa(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 ha=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],ma=l.html`
|
|
974
1031
|
<div class="flex-row">
|
|
975
1032
|
<div>${e=>e.label}</div>
|
|
976
|
-
${
|
|
1033
|
+
${ra}
|
|
977
1034
|
</div>
|
|
978
1035
|
<div class="flex-row">
|
|
979
|
-
<foundation-select @change="${(e,t)=>e.onBooleanFilterSelection(
|
|
980
|
-
${(0,l.repeat)((()=>
|
|
1036
|
+
<foundation-select @change="${(e,t)=>e.onBooleanFilterSelection(pa(t))}}">
|
|
1037
|
+
${(0,l.repeat)((()=>ha),l.html`
|
|
981
1038
|
<foundation-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
982
1039
|
${e=>e.name}
|
|
983
1040
|
</foundation-option>
|
|
984
1041
|
`)}
|
|
985
1042
|
</foundation-select>
|
|
986
1043
|
</div>
|
|
987
|
-
`,
|
|
1044
|
+
`,va=l.html`
|
|
988
1045
|
<div class="flex-row">
|
|
989
1046
|
<div>${e=>e.label}</div>
|
|
990
|
-
${
|
|
1047
|
+
${ra}
|
|
991
1048
|
</div>
|
|
992
1049
|
<div class="flex-row">
|
|
993
|
-
<zero-select @change="${(e,t)=>e.onEnumFilterSelection(
|
|
1050
|
+
<zero-select @change="${(e,t)=>e.onEnumFilterSelection(pa(t))}}">
|
|
994
1051
|
${(0,l.repeat)((e=>e.enumFilterOptions),l.html`
|
|
995
1052
|
<zero-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
996
1053
|
${e=>e.name}
|
|
@@ -998,9 +1055,9 @@
|
|
|
998
1055
|
`)}
|
|
999
1056
|
</zero-select>
|
|
1000
1057
|
</div>
|
|
1001
|
-
`,
|
|
1002
|
-
<div class="filter-wrapper">${e=>(e=>{switch(e.type){case"number":return
|
|
1003
|
-
`;var
|
|
1058
|
+
`,ga=l.html`
|
|
1059
|
+
<div class="filter-wrapper">${e=>(e=>{switch(e.type){case"number":return ca;case"date":return ua;case"boolean":return ma;case"enum":return va;default:return da}})(e)}</div>
|
|
1060
|
+
`;var fa;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(fa||(fa={}));class ba 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(fa.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(fa.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(fa.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(fa.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(fa.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(fa.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(fa.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(fa.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(fa.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(fa.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(fa.clear,{fieldName:this.fieldName,target:this.target})}}(0,w.__decorate)([l.attr],ba.prototype,"fieldName",void 0),(0,w.__decorate)([l.attr],ba.prototype,"type",void 0),(0,w.__decorate)([l.attr],ba.prototype,"label",void 0),(0,w.__decorate)([l.attr],ba.prototype,"target",void 0),(0,w.__decorate)([l.observable],ba.prototype,"textFilter",void 0),(0,w.__decorate)([l.observable],ba.prototype,"numFilterMin",void 0),(0,w.__decorate)([l.observable],ba.prototype,"numFilterMax",void 0),(0,w.__decorate)([l.observable],ba.prototype,"dateFilterMin",void 0),(0,w.__decorate)([l.observable],ba.prototype,"dateFilterMax",void 0),(0,w.__decorate)([l.attr],ba.prototype,"enumOptions",void 0),(0,w.__decorate)([l.observable],ba.prototype,"enumFilterOptions",void 0);const ya=ba.compose({baseName:"filter",template:ga,styles:sa});var wa=o(41353);const xa=(e,t)=>l.css`
|
|
1004
1061
|
.filter-bar {
|
|
1005
1062
|
background-color: #2c2f33;
|
|
1006
1063
|
padding: calc(var(--design-unit) * 2px);
|
|
@@ -1036,21 +1093,21 @@
|
|
|
1036
1093
|
.toggle-collapsed {
|
|
1037
1094
|
color: #48ed9c;
|
|
1038
1095
|
}
|
|
1039
|
-
`,
|
|
1096
|
+
`,Fa=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"}},$a=l.html`
|
|
1040
1097
|
<p>Fetching metadata for ${e=>e.resource}...</p>
|
|
1041
|
-
`,
|
|
1098
|
+
`,Sa=l.html`
|
|
1042
1099
|
${(0,l.when)((e=>e.collapsed),l.html`
|
|
1043
1100
|
<foundation-icon name="arrow-up"></foundation-icon>
|
|
1044
1101
|
`)}
|
|
1045
1102
|
${(0,l.when)((e=>!e.collapsed),l.html`
|
|
1046
1103
|
<foundation-icon name="arrow-down"></foundation-icon>
|
|
1047
1104
|
`)}
|
|
1048
|
-
`,
|
|
1105
|
+
`,Ca=l.html`
|
|
1049
1106
|
<div
|
|
1050
1107
|
class=${e=>(0,x.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1051
1108
|
@click="${e=>e.toggle()}"
|
|
1052
1109
|
>
|
|
1053
|
-
${
|
|
1110
|
+
${Sa}
|
|
1054
1111
|
</div>
|
|
1055
1112
|
<div class=${e=>(0,x.A)(["filter-bar",!0],["collapsed",e.collapsed])}>
|
|
1056
1113
|
<div class="filter-grid" ${(0,l.ref)("filterGrid")}>
|
|
@@ -1058,16 +1115,16 @@
|
|
|
1058
1115
|
<foundation-filter
|
|
1059
1116
|
label="${e=>e.UI_LABEL}"
|
|
1060
1117
|
target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
|
|
1061
|
-
type="${e=>
|
|
1118
|
+
type="${e=>Fa(e.TYPE)}"
|
|
1062
1119
|
fieldName="${e=>e.NAME}"
|
|
1063
1120
|
></foundation-filter>
|
|
1064
1121
|
`)}
|
|
1065
1122
|
</div>
|
|
1066
1123
|
</div>
|
|
1067
|
-
`,
|
|
1068
|
-
${e=>e.ready?
|
|
1069
|
-
|
|
1070
|
-
${t&&`@media only screen and ${
|
|
1124
|
+
`,Da=l.html`
|
|
1125
|
+
${e=>e.ready?Ca:$a}
|
|
1126
|
+
`,_a=5;class Oa extends n.FoundationElement{constructor(){super(...arguments),this.columns=_a,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,wa.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=>te.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],Oa.prototype,"resource",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"only",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"labels",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"target",void 0),(0,w.__decorate)([l.attr],Oa.prototype,"columns",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"ready",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"fields",void 0),(0,w.__decorate)([tt.lj],Oa.prototype,"connect",void 0),(0,w.__decorate)([l.observable],Oa.prototype,"collapsed",void 0);const ka=Oa.compose({baseName:"filter-bar",template:Da,styles:xa});var Ta;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Ta||(Ta={}));const La=e=>{const t=e?`-${e}`:"";return l.css`
|
|
1127
|
+
${t&&`@media only screen and ${Ta[e]} {`}
|
|
1071
1128
|
:host(.spacing${t}-1x) slot {
|
|
1072
1129
|
gap: calc(var(--design-unit) * 2px);
|
|
1073
1130
|
}
|
|
@@ -1184,7 +1241,7 @@
|
|
|
1184
1241
|
align-content: space-evenly;
|
|
1185
1242
|
}
|
|
1186
1243
|
${t&&"}"}
|
|
1187
|
-
`},
|
|
1244
|
+
`},Aa=l.css`
|
|
1188
1245
|
:host {
|
|
1189
1246
|
width: 100%;
|
|
1190
1247
|
height: 100%;
|
|
@@ -1196,17 +1253,17 @@
|
|
|
1196
1253
|
display: flex;
|
|
1197
1254
|
}
|
|
1198
1255
|
|
|
1199
|
-
${
|
|
1200
|
-
${
|
|
1201
|
-
${
|
|
1202
|
-
${
|
|
1203
|
-
`,
|
|
1256
|
+
${La()}
|
|
1257
|
+
${La("lg")}
|
|
1258
|
+
${La("md")}
|
|
1259
|
+
${La("sm")}
|
|
1260
|
+
`,Ra=l.html`
|
|
1204
1261
|
<template>
|
|
1205
1262
|
<slot></slot>
|
|
1206
1263
|
</template>
|
|
1207
|
-
`,
|
|
1264
|
+
`,Ea=void 0,Na={};class Ma extends n.FoundationElement{}const Ia=Ma.compose(Object.assign({baseName:"flex-layout",styles:Aa,template:Ra,shadowOptions:Ea},Na)),Pa=(e,t)=>l.css`
|
|
1208
1265
|
${(0,s.flipperStyles)(e,t)}
|
|
1209
|
-
`,
|
|
1266
|
+
`,Ha=(e,t)=>(0,n.flipperTemplate)(e,t);class ja extends s.Flipper{}const Ba=void 0,Ga={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 '},za=ja.compose(Object.assign({baseName:"flipper",template:Ha,styles:Pa,shadowOptions:Ba},Ga)),Va=225,Ua=l.css`
|
|
1210
1267
|
/* Host */
|
|
1211
1268
|
:host {
|
|
1212
1269
|
display: inline-block;
|
|
@@ -1231,7 +1288,7 @@
|
|
|
1231
1288
|
height: 100%;
|
|
1232
1289
|
position: absolute;
|
|
1233
1290
|
/* stylelint-disable-next-line function-name-case */
|
|
1234
|
-
transition: transform ${
|
|
1291
|
+
transition: transform ${Va.toString()}ms ease-in;
|
|
1235
1292
|
width: 20%;
|
|
1236
1293
|
z-index: 2001;
|
|
1237
1294
|
}
|
|
@@ -1279,7 +1336,7 @@
|
|
|
1279
1336
|
opacity: 50%;
|
|
1280
1337
|
position: absolute;
|
|
1281
1338
|
/* stylelint-disable-next-line function-name-case */
|
|
1282
|
-
transition: opacity ${
|
|
1339
|
+
transition: opacity ${Va.toString()}ms linear;
|
|
1283
1340
|
width: 100%;
|
|
1284
1341
|
z-index: 2000;
|
|
1285
1342
|
}
|
|
@@ -1287,7 +1344,7 @@
|
|
|
1287
1344
|
:host([visuallyhidden]) div.background {
|
|
1288
1345
|
opacity: 0%;
|
|
1289
1346
|
}
|
|
1290
|
-
`,
|
|
1347
|
+
`,Ya=e=>l.html`
|
|
1291
1348
|
<div ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
|
|
1292
1349
|
<div class="container">
|
|
1293
1350
|
<div class="background" part="background" @click=${e=>e.closeFlyout()}></div>
|
|
@@ -1311,10 +1368,10 @@
|
|
|
1311
1368
|
</div>
|
|
1312
1369
|
</div>
|
|
1313
1370
|
</div>
|
|
1314
|
-
`,
|
|
1315
|
-
${e=>
|
|
1316
|
-
`;class
|
|
1317
|
-
${t&&`@media only screen and ${
|
|
1371
|
+
`,Wa=l.html`
|
|
1372
|
+
${e=>Ya(ne(e))}
|
|
1373
|
+
`;class qa 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],qa.prototype,"position",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],qa.prototype,"displayHeader",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],qa.prototype,"closed",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],qa.prototype,"visuallyhidden",void 0);const Xa=void 0,Ka={},Za=qa.compose(Object.assign({baseName:"flyout",styles:Ua,template:Wa,shadowOptions:Xa},Ka));var Qa;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Qa||(Qa={}));const Ja=e=>{const t=e?`-${e}`:"";return l.css`
|
|
1374
|
+
${t&&`@media only screen and ${Qa[e]} {`}
|
|
1318
1375
|
:host(.spacing${t}-1x) slot {
|
|
1319
1376
|
gap: calc(var(--design-unit) * 2px);
|
|
1320
1377
|
}
|
|
@@ -1399,32 +1456,32 @@
|
|
|
1399
1456
|
place-items: stretch;
|
|
1400
1457
|
}
|
|
1401
1458
|
${t&&"}"}
|
|
1402
|
-
`},
|
|
1459
|
+
`},en=l.css`
|
|
1403
1460
|
slot {
|
|
1404
1461
|
width: 100%;
|
|
1405
1462
|
height: 100%;
|
|
1406
1463
|
display: grid;
|
|
1407
1464
|
}
|
|
1408
1465
|
|
|
1409
|
-
${
|
|
1410
|
-
${
|
|
1411
|
-
${
|
|
1412
|
-
${
|
|
1413
|
-
`,
|
|
1466
|
+
${Ja()}
|
|
1467
|
+
${Ja("lg")}
|
|
1468
|
+
${Ja("md")}
|
|
1469
|
+
${Ja("sm")}
|
|
1470
|
+
`,tn=l.html`
|
|
1414
1471
|
<template>
|
|
1415
1472
|
<slot></slot>
|
|
1416
1473
|
</template>
|
|
1417
|
-
`,
|
|
1474
|
+
`,on=void 0,an={};class nn{constructor(e,t,o,i="1fr",a="1fr"){this.listenerCache=new WeakMap,this.query=window.matchMedia(e);const n=t&&l.cssPartial`grid-template-columns: repeat(${t}, ${i});`,s=o&&l.cssPartial`grid-template-rows: repeat(${o}, ${a});`;this.styles=l.css`
|
|
1418
1475
|
slot {
|
|
1419
1476
|
${s||""}
|
|
1420
1477
|
${n||""}
|
|
1421
1478
|
}
|
|
1422
|
-
`}bind(e){let t=!1;const o=o=>{const{matches:i}=o;i&&!t?(e.$fastController.addStyles(this.styles),t=!0):!i&&t&&(e.$fastController.removeStyles(this.styles),t=!1)};o({matches:this.query.matches}),this.query.addEventListener("change",o),this.listenerCache.set(e,o)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeEventListener("change",t),this.listenerCache.delete(e)),e.$fastController.removeStyles(this.styles)}}class
|
|
1479
|
+
`}bind(e){let t=!1;const o=o=>{const{matches:i}=o;i&&!t?(e.$fastController.addStyles(this.styles),t=!0):!i&&t&&(e.$fastController.removeStyles(this.styles),t=!1)};o({matches:this.query.matches}),this.query.addEventListener("change",o),this.listenerCache.set(e,o)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeEventListener("change",t),this.listenerCache.delete(e)),e.$fastController.removeStyles(this.styles)}}class sn extends n.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(Qa).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new nn(Qa[e],this[`col-${e}-count`],this[`row-${e}-count`],this[`col-${e}-width`],this[`row-${e}-height`])})).filter((e=>!!e));const e=this["row-count"]&&l.cssPartial`grid-template-rows: repeat(${this["row-count"]}, ${this["row-height"]||"1fr"});`,t=this["col-count"]&&l.cssPartial`grid-template-columns: repeat(${this["col-count"]}, ${this["col-width"]||"1fr"});`;this.baseStyles=l.css`
|
|
1423
1480
|
slot {
|
|
1424
1481
|
${e||""}
|
|
1425
1482
|
${t||""}
|
|
1426
1483
|
}
|
|
1427
|
-
`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.$fastController.removeStyles(this.baseStyles)}}(0,w.__decorate)([l.attr],
|
|
1484
|
+
`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.$fastController.removeStyles(this.baseStyles)}}(0,w.__decorate)([l.attr],sn.prototype,"col-count",void 0),(0,w.__decorate)([l.attr],sn.prototype,"col-width",void 0),(0,w.__decorate)([l.attr],sn.prototype,"col-lg-count",void 0),(0,w.__decorate)([l.attr],sn.prototype,"col-lg-width",void 0),(0,w.__decorate)([l.attr],sn.prototype,"col-md-count",void 0),(0,w.__decorate)([l.attr],sn.prototype,"col-md-width",void 0),(0,w.__decorate)([l.attr],sn.prototype,"col-sm-count",void 0),(0,w.__decorate)([l.attr],sn.prototype,"col-sm-width",void 0),(0,w.__decorate)([l.attr],sn.prototype,"row-count",void 0),(0,w.__decorate)([l.attr],sn.prototype,"row-height",void 0),(0,w.__decorate)([l.attr],sn.prototype,"row-lg-count",void 0),(0,w.__decorate)([l.attr],sn.prototype,"row-lg-height",void 0),(0,w.__decorate)([l.attr],sn.prototype,"row-md-count",void 0),(0,w.__decorate)([l.attr],sn.prototype,"row-md-height",void 0),(0,w.__decorate)([l.attr],sn.prototype,"row-sm-count",void 0),(0,w.__decorate)([l.attr],sn.prototype,"row-sm-height",void 0);const ln=sn.compose(Object.assign({baseName:"grid-layout",styles:en,template:tn,shadowOptions:on},an)),rn=l.html`
|
|
1428
1485
|
<template>
|
|
1429
1486
|
<style>
|
|
1430
1487
|
:host {
|
|
@@ -1453,9 +1510,9 @@
|
|
|
1453
1510
|
</style>
|
|
1454
1511
|
<slot></slot>
|
|
1455
1512
|
</template>
|
|
1456
|
-
`,
|
|
1513
|
+
`,dn=void 0,cn={};class un 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"})],un.prototype,"colNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-sm-number"})],un.prototype,"colSmNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-md-number"})],un.prototype,"colMdNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-lg-number"})],un.prototype,"colLgNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-number"})],un.prototype,"rowNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-sm-number"})],un.prototype,"rowSmNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-md-number"})],un.prototype,"rowMdNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-lg-number"})],un.prototype,"rowLgNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width"})],un.prototype,"width",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-sm"})],un.prototype,"widthSm",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-md"})],un.prototype,"widthMd",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-lg"})],un.prototype,"widthLg",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height"})],un.prototype,"height",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-sm"})],un.prototype,"heightSm",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-md"})],un.prototype,"heightMd",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-lg"})],un.prototype,"heightLg",void 0);const pn=un.compose(Object.assign({baseName:"grid-layout-item",template:rn,shadowOptions:dn},cn)),hn=(e,t)=>l.css`
|
|
1457
1514
|
${(0,s.horizontalScrollStyles)(e,t)}
|
|
1458
|
-
`,
|
|
1515
|
+
`,mn=(e,t)=>(0,n.horizontalScrollTemplate)(e,t);class vn extends s.HorizontalScroll{}const gn={delegatesFocus:!0,mode:"open"},fn={nextFlipper:l.html`
|
|
1459
1516
|
<fast-flipper
|
|
1460
1517
|
@click="${e=>e.scrollToNext()}"
|
|
1461
1518
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
@@ -1466,9 +1523,9 @@
|
|
|
1466
1523
|
direction="previous"
|
|
1467
1524
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
1468
1525
|
></fast-flipper>
|
|
1469
|
-
`},vn
|
|
1470
|
-
${
|
|
1471
|
-
`,
|
|
1526
|
+
`},bn=vn.compose(Object.assign({baseName:"horizontal-scroll",template:mn,styles:hn,shadowOptions:gn},fn));var yn=o(38938),wn=o(79840),xn=o(64739),Fn=o(75030);const $n=()=>(yn.vI.add(Fn.mRB,xn.NCV,wn.vnX),yn.vz.css()),Sn=(e,t)=>l.css`
|
|
1527
|
+
${$n()}
|
|
1528
|
+
`,Cn=l.html`
|
|
1472
1529
|
<template>
|
|
1473
1530
|
<i
|
|
1474
1531
|
${(0,l.ref)("iElement")}
|
|
@@ -1478,7 +1535,7 @@
|
|
|
1478
1535
|
<slot></slot>
|
|
1479
1536
|
</i>
|
|
1480
1537
|
</template>
|
|
1481
|
-
`,
|
|
1538
|
+
`,Dn={mode:"open",delegatesFocus:!0},_n={};var On;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(On||(On={}));class kn 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,yn.N)({prefix:On[this.variant],iconName:this.name}),t=(0,yn.qv)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,w.__decorate)([l.observable],kn.prototype,"iElement",void 0),(0,w.__decorate)([l.attr],kn.prototype,"name",void 0),(0,w.__decorate)([l.attr],kn.prototype,"size",void 0),(0,w.__decorate)([l.attr],kn.prototype,"variant",void 0);const Tn=kn.compose(Object.assign({baseName:"icon",template:Cn,styles:Sn,shadowOptions:Dn},_n)),Ln=(e,t)=>l.css`
|
|
1482
1539
|
${(0,s.listboxStyles)(e,t)}
|
|
1483
1540
|
|
|
1484
1541
|
:host {
|
|
@@ -1489,11 +1546,11 @@
|
|
|
1489
1546
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
1490
1547
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1491
1548
|
}
|
|
1492
|
-
`,
|
|
1549
|
+
`,An=(e,t)=>(0,n.listboxTemplate)(e,t);class Rn extends s.Listbox{}const En=void 0,Nn={},Mn=Rn.compose(Object.assign({baseName:"listbox",template:An,styles:Ln,shadowOptions:En},Nn)),In=(e,t)=>l.css`
|
|
1493
1550
|
${(0,s.optionStyles)(e,t)}
|
|
1494
|
-
`,
|
|
1551
|
+
`,Pn=(e,t)=>(0,n.listboxOptionTemplate)(e,t);class Hn extends s.ListboxOption{}const jn=void 0,Bn={},Gn=Hn.compose(Object.assign({baseName:"option",template:Pn,styles:In,shadowOptions:jn},Bn)),zn=(e,t)=>l.css`
|
|
1495
1552
|
${(0,s.menuStyles)(e,t)}
|
|
1496
|
-
`,
|
|
1553
|
+
`,Vn=(e,t)=>(0,n.menuTemplate)(e,t);class Un extends s.Menu{}const Yn=void 0,Wn={},qn=Un.compose(Object.assign({baseName:"menu",template:Vn,styles:zn,shadowOptions:Yn},Wn)),Xn=(e,t)=>l.css`
|
|
1497
1554
|
${(0,s.menuItemStyles)(e,t)}
|
|
1498
1555
|
|
|
1499
1556
|
:host, :host(.indent-0[aria-haspopup='menu']) {
|
|
@@ -1507,11 +1564,11 @@
|
|
|
1507
1564
|
height: auto;
|
|
1508
1565
|
width: auto;
|
|
1509
1566
|
}
|
|
1510
|
-
`,
|
|
1511
|
-
${
|
|
1512
|
-
`,
|
|
1513
|
-
${
|
|
1514
|
-
`,
|
|
1567
|
+
`,Kn=(e,t)=>(0,n.menuItemTemplate)(e,t);class Zn extends s.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const Qn=void 0,Jn={expandCollapseGlyph:'\n <svg\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n viewBox="0 0 16 16"\n 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 '},es=Zn.compose(Object.assign({baseName:"menu-item",template:Kn,styles:Xn,shadowOptions:Qn},Jn)),ts=l.css`
|
|
1568
|
+
${Eo}
|
|
1569
|
+
`,os=l.html`
|
|
1570
|
+
${Io}
|
|
1571
|
+
`,is={mode:"open",delegatesFocus:!0},as={};class ns extends jo{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.showModal()}}const ss=ns.compose(Object.assign({baseName:"modal",styles:ts,template:os,shadowOptions:is},as));var ls;!function(e){e.BELOW="below",e.ABOVE="above",e.DYNAMIC="dynamic"}(ls||(ls={}));const rs=230,ds=l.css`
|
|
1515
1572
|
.root {
|
|
1516
1573
|
position: relative;
|
|
1517
1574
|
width: inherit;
|
|
@@ -1638,7 +1695,7 @@
|
|
|
1638
1695
|
|
|
1639
1696
|
.visible {
|
|
1640
1697
|
visibility: visible;
|
|
1641
|
-
max-height: ${
|
|
1698
|
+
max-height: ${rs.toString()}px;
|
|
1642
1699
|
}
|
|
1643
1700
|
|
|
1644
1701
|
::slotted(foundation-checkbox),
|
|
@@ -1673,7 +1730,7 @@
|
|
|
1673
1730
|
.label-hidden {
|
|
1674
1731
|
display: none;
|
|
1675
1732
|
}
|
|
1676
|
-
`,
|
|
1733
|
+
`,cs=(e="foundation")=>l.html`
|
|
1677
1734
|
<label
|
|
1678
1735
|
part="label"
|
|
1679
1736
|
for="control"
|
|
@@ -1743,9 +1800,9 @@
|
|
|
1743
1800
|
</div>
|
|
1744
1801
|
</div>
|
|
1745
1802
|
</div>
|
|
1746
|
-
`,
|
|
1747
|
-
${
|
|
1748
|
-
`,
|
|
1803
|
+
`,us=l.html`
|
|
1804
|
+
${cs()}
|
|
1805
|
+
`,ps=void 0,hs={};class ms extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=ls.BELOW,this.initialisedOptions=!1}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===ls.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!==ls.DYNAMIC||this.setDropdownPosition(),this.open=!this.open}setDropdownPosition(){var e,t;(this.scrollContainer||this.parentElement).clientHeight-(this.offsetTop-(this.scrollContainer||this.parentElement).scrollTop)<rs+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)}setFilter(e){this.filteredAvailableOptions=[...this.options.filter((t=>{var o;const i=e.currentTarget;return("string"==typeof t?t:null!==(o=t.label)&&void 0!==o?o:t.value).toLowerCase().startsWith(i.value.toLowerCase())}))]}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){ie(e,this)&&(this.open=!1)}}(0,w.__decorate)([l.attr],ms.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ms.prototype,"all",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ms.prototype,"allSelected",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ms.prototype,"search",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ms.prototype,"disabled",void 0),(0,w.__decorate)([l.observable],ms.prototype,"defaultSlottedNodes",void 0),(0,w.__decorate)([l.observable],ms.prototype,"valueFormatter",void 0),(0,w.__decorate)([l.observable],ms.prototype,"open",void 0),(0,w.__decorate)([l.observable],ms.prototype,"options",void 0),(0,w.__decorate)([l.observable],ms.prototype,"selectedOptions",void 0),(0,w.__decorate)([l.observable],ms.prototype,"filteredAvailableOptions",void 0),(0,w.__decorate)([l.observable],ms.prototype,"scrollContainer",void 0),(0,w.__decorate)([l.observable],ms.prototype,"position",void 0),(0,w.__decorate)([l.observable],ms.prototype,"onAllSelectedCallback",void 0),(0,w.__decorate)([l.volatile],ms.prototype,"getDisplayValue",null),(0,w.__decorate)([l.volatile],ms.prototype,"getPlaceholder",null),(0,w.__decorate)([l.volatile],ms.prototype,"isAllSelected",null),(0,w.__decorate)([l.volatile],ms.prototype,"isAllOptionsDisabled",null);const vs=ms.compose(Object.assign({baseName:"multiselect",template:us,styles:ds,shadowOptions:ps},hs));class gs{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 fs=(e,t)=>l.css`
|
|
1749
1806
|
${(0,s.numberFieldStyles)(e,t)}
|
|
1750
1807
|
::part(label) {
|
|
1751
1808
|
color: var(--neutral-foreground-rest);
|
|
@@ -1775,7 +1832,7 @@
|
|
|
1775
1832
|
::part(end) {
|
|
1776
1833
|
margin-inline-end: unset;
|
|
1777
1834
|
}
|
|
1778
|
-
`,
|
|
1835
|
+
`,bs=(e,t)=>l.html`
|
|
1779
1836
|
<template class="${e=>e.readOnly?"readonly":""}">
|
|
1780
1837
|
<label
|
|
1781
1838
|
part="label"
|
|
@@ -1844,7 +1901,7 @@
|
|
|
1844
1901
|
${(0,n.endSlotTemplate)(e,t)}
|
|
1845
1902
|
</div>
|
|
1846
1903
|
</template>
|
|
1847
|
-
`;class
|
|
1904
|
+
`;class ys 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 gs(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 gs(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(t&&null!==t||!this.control){if(t&&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.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}))}}else this.control.value=""}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],ys.prototype,"autocomplete",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ys.prototype,"hideStep",void 0),(0,w.__decorate)([l.attr],ys.prototype,"value",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],ys.prototype,"withFormatting",void 0),(0,w.__decorate)([l.attr],ys.prototype,"locale",void 0);const ws={delegatesFocus:!0,mode:"open"},xs={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 '},Fs=ys.compose(Object.assign({baseName:"number-field",template:bs,styles:fs,shadowOptions:ws},xs));var $s=o(86975);const Ss={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Cs 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,$s.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],Cs.prototype,"selector",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Cs.prototype,"show",void 0),(0,w.__decorate)([l.attr],Cs.prototype,"event",void 0),(0,w.__decorate)([l.attr],Cs.prototype,"placement",void 0),(0,w.__decorate)([(0,l.attr)({converter:Ss})],Cs.prototype,"offset",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Cs.prototype,"flip",void 0);const Ds=l.css`
|
|
1848
1905
|
:host {
|
|
1849
1906
|
display: none;
|
|
1850
1907
|
inset: unset !important;
|
|
@@ -1854,22 +1911,22 @@
|
|
|
1854
1911
|
:host([show]) {
|
|
1855
1912
|
display: block;
|
|
1856
1913
|
}
|
|
1857
|
-
|
|
1914
|
+
`,_s=l.html`
|
|
1858
1915
|
<template>
|
|
1859
1916
|
<slot></slot>
|
|
1860
1917
|
</template>
|
|
1861
|
-
`,Cs
|
|
1918
|
+
`,Os=Cs.compose({baseName:"popper",styles:Ds,template:_s}),ks=(e,t)=>l.css`
|
|
1862
1919
|
${(0,s.progressStyles)(e,t)}
|
|
1863
1920
|
:host {
|
|
1864
1921
|
height: calc(var(--design-unit) * 2px);
|
|
1865
1922
|
}
|
|
1866
|
-
`,
|
|
1923
|
+
`,Ts=(e,t)=>(0,n.progressTemplate)(e,t);class Ls extends s.Progress{}const As=void 0,Rs={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},Es=Ls.compose(Object.assign({baseName:"progress",template:Ts,styles:ks,shadowOptions:As},Rs)),Ns=(e,t)=>l.css`
|
|
1867
1924
|
${(0,s.progressRingStyles)(e,t)}
|
|
1868
|
-
`,
|
|
1925
|
+
`,Ms=(e,t)=>(0,n.progressRingTemplate)(e,t);class Is extends s.Progress{}const Ps=void 0,Hs={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 '},js=Is.compose(Object.assign({baseName:"progress-ring",template:Ms,styles:Ns,shadowOptions:Ps},Hs)),Bs=(e,t)=>l.css`
|
|
1869
1926
|
${(0,s.radioStyles)(e,t)}
|
|
1870
|
-
`,
|
|
1927
|
+
`,Gs=(e,t)=>(0,n.radioTemplate)(e,t);class zs extends s.Radio{}const Vs=void 0,Us={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},Ys=zs.compose(Object.assign({baseName:"radio",template:Gs,styles:Bs,shadowOptions:Vs},Us)),Ws=(e,t)=>l.css`
|
|
1871
1928
|
${(0,s.radioGroupStyles)(e,t)}
|
|
1872
|
-
`,
|
|
1929
|
+
`,qs=(e,t)=>(0,n.radioGroupTemplate)(e,t);class Xs extends s.RadioGroup{}const Ks=void 0,Zs={},Qs=Xs.compose(Object.assign({baseName:"radio-group",template:qs,styles:Ws,shadowOptions:Ks},Zs)),Js=(e,t)=>l.css`
|
|
1873
1930
|
${(0,s.radioGroupStyles)(e,t)}
|
|
1874
1931
|
::slotted(foundation-segmented-item:first-of-type) {
|
|
1875
1932
|
border-radius: calc(var(--control-corner-radius) * 1px) 0 0
|
|
@@ -1882,7 +1939,7 @@
|
|
|
1882
1939
|
calc(var(--control-corner-radius) * 1px) 0;
|
|
1883
1940
|
border-left-width: 0;
|
|
1884
1941
|
}
|
|
1885
|
-
`,
|
|
1942
|
+
`,el=(e,t)=>(0,n.radioGroupTemplate)(e,t);class tl extends n.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.checked=!1})),super.valueChanged()}}const ol=void 0,il={},al=tl.compose(Object.assign({baseName:"segmented-control",template:el,styles:Js,shadowOptions:ol},il)),nl=(e,t)=>l.css`
|
|
1886
1943
|
${(0,s.radioStyles)(e,t)}
|
|
1887
1944
|
:host {
|
|
1888
1945
|
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
|
|
@@ -1893,7 +1950,7 @@
|
|
|
1893
1950
|
:host([aria-checked='true']) {
|
|
1894
1951
|
background: var(--accent-foreground-rest);
|
|
1895
1952
|
}
|
|
1896
|
-
`,
|
|
1953
|
+
`,sl=(e,t)=>l.html`
|
|
1897
1954
|
<template
|
|
1898
1955
|
role="radio"
|
|
1899
1956
|
aria-checked="${e=>e.checked}"
|
|
@@ -1907,21 +1964,21 @@
|
|
|
1907
1964
|
<slot></slot>
|
|
1908
1965
|
</span>
|
|
1909
1966
|
</template>
|
|
1910
|
-
`;class
|
|
1967
|
+
`;class ll extends s.Radio{}const rl=void 0,dl={},cl=ll.compose(Object.assign({baseName:"segmented-item",template:sl,styles:nl,shadowOptions:rl},dl)),ul=(e,t)=>l.css`
|
|
1911
1968
|
${(0,s.selectStyles)(e,t)}
|
|
1912
|
-
`,
|
|
1969
|
+
`,pl=(e,t)=>(0,n.selectTemplate)(e,t);class hl extends s.Select{}const ml=void 0,vl={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 '},gl=hl.compose(Object.assign({baseName:"select",template:pl,styles:ul,shadowOptions:ml},vl)),fl=(e,t)=>l.css`
|
|
1913
1970
|
${(0,s.skeletonStyles)(e,t)}
|
|
1914
|
-
`,
|
|
1971
|
+
`,bl=(e,t)=>(0,n.skeletonTemplate)(e,t);class yl extends s.Skeleton{}const wl=void 0,xl={},Fl=yl.compose(Object.assign({baseName:"skeleton",template:bl,styles:fl,shadowOptions:wl},xl)),$l=(e,t)=>l.css`
|
|
1915
1972
|
${(0,s.sliderStyles)(e,t)}
|
|
1916
1973
|
.track-progress {
|
|
1917
1974
|
background-color: var(--accent-fill-rest);
|
|
1918
1975
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1919
1976
|
}
|
|
1920
|
-
`;var
|
|
1977
|
+
`;var Sl=o(75511),Cl=o(62515);const Dl=(e,t)=>l.html`
|
|
1921
1978
|
<template
|
|
1922
1979
|
role="slider"
|
|
1923
1980
|
class="${e=>e.readOnly?"readonly":""}
|
|
1924
|
-
${e=>e.orientation||
|
|
1981
|
+
${e=>e.orientation||Sl.i.horizontal}"
|
|
1925
1982
|
tabindex="${e=>e.disabled?null:0}"
|
|
1926
1983
|
aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
|
|
1927
1984
|
aria-valuenow="${e=>e.value}"
|
|
@@ -1936,7 +1993,7 @@
|
|
|
1936
1993
|
<div ${(0,l.ref)("track")} part="track-container" class="track">
|
|
1937
1994
|
<div
|
|
1938
1995
|
class="track-progress"
|
|
1939
|
-
style="${e=>{const t=1-(0,
|
|
1996
|
+
style="${e=>{const t=1-(0,Cl.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;`}}"
|
|
1940
1997
|
></div>
|
|
1941
1998
|
</div>
|
|
1942
1999
|
<slot></slot>
|
|
@@ -1950,9 +2007,9 @@
|
|
|
1950
2007
|
</div>
|
|
1951
2008
|
</div>
|
|
1952
2009
|
</template>
|
|
1953
|
-
`;class
|
|
2010
|
+
`;class _l extends s.Slider{}const Ol=void 0,kl={thumb:'\n <div class="thumb-cursor"></div>\n '},Tl=_l.compose(Object.assign({baseName:"slider",template:Dl,styles:$l,shadowOptions:Ol},kl)),Ll=(e,t)=>l.css`
|
|
1954
2011
|
${(0,s.sliderLabelStyles)(e,t)}
|
|
1955
|
-
`,
|
|
2012
|
+
`,Al=(e,t)=>(0,n.sliderLabelTemplate)(e,t);class Rl extends s.SliderLabel{}const El=void 0,Nl={},Ml=Rl.compose(Object.assign({baseName:"slider-label",template:Al,styles:Ll,shadowOptions:El},Nl)),Il=l.css`
|
|
1956
2013
|
@keyframes append-animate {
|
|
1957
2014
|
from {
|
|
1958
2015
|
transform: translateX(100%);
|
|
@@ -2034,7 +2091,7 @@
|
|
|
2034
2091
|
flex: 1;
|
|
2035
2092
|
overflow: hidden;
|
|
2036
2093
|
}
|
|
2037
|
-
`,
|
|
2094
|
+
`,Pl=e=>l.html`
|
|
2038
2095
|
<div class="snackbar ${e=>e.deleteAnimation}" ${(0,l.ref)("snackbar")}>
|
|
2039
2096
|
<div part="content" class="content">
|
|
2040
2097
|
<div>
|
|
@@ -2043,17 +2100,19 @@
|
|
|
2043
2100
|
</div>
|
|
2044
2101
|
<div part="action" class="action">
|
|
2045
2102
|
${(0,l.repeat)((e=>{var t,o,i,a,n,s;return(null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.confirmingActions)||(null===(s=null===(n=null===(a=e.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.snackbar)||void 0===s?void 0:s.confirmingActions)}),l.html`
|
|
2046
|
-
|
|
2103
|
+
<${e}-button
|
|
2047
2104
|
slot="action"
|
|
2048
2105
|
appearance="lightweight"
|
|
2049
2106
|
@click=${(e,t)=>{var o;null==e||e.action(),null===(o=t.parent)||void 0===o||o.dismiss()}}
|
|
2050
2107
|
>
|
|
2051
2108
|
${e=>e.label}
|
|
2052
|
-
|
|
2109
|
+
</${e}-button>
|
|
2053
2110
|
`)}
|
|
2054
2111
|
</div>
|
|
2055
2112
|
</div>
|
|
2056
|
-
`,
|
|
2113
|
+
`,Hl=l.html`
|
|
2114
|
+
${e=>Pl(ne(e))}
|
|
2115
|
+
`,jl={mode:"open",delegatesFocus:!0};class Bl 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],Bl.prototype,"error",void 0),(0,w.__decorate)([l.observable],Bl.prototype,"notification",void 0),(0,w.__decorate)([l.observable],Bl.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],Bl.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],Bl.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"type"})],Bl.prototype,"type",void 0);const Gl=Bl.compose({baseName:"snackbar",styles:Il,template:Hl,shadowOptions:jl}),zl=(e,t)=>l.css`
|
|
2057
2116
|
${(0,s.switchStyles)(e,t)}
|
|
2058
2117
|
.checked-indicator {
|
|
2059
2118
|
transform: scale(1.3);
|
|
@@ -2066,24 +2125,24 @@
|
|
|
2066
2125
|
.checked-indicator {
|
|
2067
2126
|
border-radius: calc(var(--control-corner-radius) * 2px);
|
|
2068
2127
|
}
|
|
2069
|
-
`,
|
|
2128
|
+
`,Vl=(e,t)=>(0,n.switchTemplate)(e,t);class Ul extends s.Switch{}const Yl=void 0,Wl={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},ql=Ul.compose(Object.assign({baseName:"switch",template:Vl,styles:zl,shadowOptions:Yl},Wl)),Xl=(e,t)=>l.css`
|
|
2070
2129
|
${(0,s.tabStyles)(e,t)}
|
|
2071
|
-
`,
|
|
2130
|
+
`,Kl=(e,t)=>(0,n.tabTemplate)(e,t);class Zl extends s.Tab{}const Ql=void 0,Jl={},er=Zl.compose(Object.assign({baseName:"tab",template:Kl,styles:Xl,shadowOptions:Ql},Jl)),tr=(e,t)=>l.css`
|
|
2072
2131
|
${(0,s.tabPanelStyles)(e,t)}
|
|
2073
|
-
`,
|
|
2132
|
+
`,or=(e,t)=>(0,n.tabPanelTemplate)(e,t);class ir extends s.TabPanel{}const ar=void 0,nr={},sr=ir.compose(Object.assign({baseName:"tab-panel",template:or,styles:tr,shadowOptions:ar},nr)),lr=(e,t)=>l.css`
|
|
2074
2133
|
${(0,s.tabsStyles)(e,t)}
|
|
2075
|
-
`,
|
|
2134
|
+
`,rr=(e,t)=>(0,n.tabsTemplate)(e,t);class dr extends s.Tabs{}const cr=void 0,ur={},pr=dr.compose(Object.assign({baseName:"tabs",template:rr,styles:lr,shadowOptions:cr},ur)),hr=(e,t)=>l.css`
|
|
2076
2135
|
${(0,s.textAreaStyles)(e,t)}
|
|
2077
2136
|
:host .control {
|
|
2078
2137
|
padding: calc(var(--design-unit) * 3px);
|
|
2079
2138
|
}
|
|
2080
|
-
`,
|
|
2139
|
+
`,mr=(e,t)=>(0,n.textAreaTemplate)(e,t);class vr extends s.TextArea{}const gr=void 0,fr={},br=vr.compose(Object.assign({baseName:"text-area",template:mr,styles:hr,shadowOptions:gr},fr)),{create:yr}=n.DesignToken,wr=yr("active-color-scheme").withDefault((e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?"light":"dark")),xr=(e,t)=>l.css`
|
|
2081
2140
|
${(0,s.textFieldStyles)(e,t)}
|
|
2082
2141
|
|
|
2083
2142
|
input {
|
|
2084
|
-
color-scheme: ${
|
|
2143
|
+
color-scheme: ${wr};
|
|
2085
2144
|
}
|
|
2086
|
-
`,
|
|
2145
|
+
`,Fr=(e,t)=>l.html`
|
|
2087
2146
|
<template
|
|
2088
2147
|
class="
|
|
2089
2148
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -2145,7 +2204,7 @@
|
|
|
2145
2204
|
${(0,n.endSlotTemplate)(e,t)}
|
|
2146
2205
|
</div>
|
|
2147
2206
|
</template>
|
|
2148
|
-
`;class
|
|
2207
|
+
`;class $r 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],$r.prototype,"autocomplete",void 0),(0,w.__decorate)([l.attr],$r.prototype,"autocapitalize",void 0),(0,w.__decorate)([l.attr],$r.prototype,"step",void 0);const Sr={mode:"open",delegatesFocus:!0},Cr={},Dr=$r.compose(Object.assign({baseName:"text-field",template:Fr,styles:xr,shadowOptions:Sr},Cr)),_r=l.css`
|
|
2149
2208
|
@keyframes append-animate {
|
|
2150
2209
|
from {
|
|
2151
2210
|
transform: translateX(100%);
|
|
@@ -2246,12 +2305,12 @@
|
|
|
2246
2305
|
.close-icon svg {
|
|
2247
2306
|
cursor: pointer;
|
|
2248
2307
|
}
|
|
2249
|
-
|
|
2308
|
+
`,Or=l.html`
|
|
2250
2309
|
<div class="toast ${e=>e.deleteAnimation}" ${(0,l.ref)("toast")}>
|
|
2251
2310
|
<div class="content-wrapper">
|
|
2252
2311
|
<div part="top" class="top">
|
|
2253
2312
|
<slot name="top"></slot>
|
|
2254
|
-
<div class="close-icon" @click=${e=>e.close()}>${
|
|
2313
|
+
<div class="close-icon" @click=${e=>e.close()}>${No()}</div>
|
|
2255
2314
|
</div>
|
|
2256
2315
|
<div part="content" class="content">
|
|
2257
2316
|
<slot name="content"></slot>
|
|
@@ -2264,11 +2323,11 @@
|
|
|
2264
2323
|
</div>
|
|
2265
2324
|
</div>
|
|
2266
2325
|
</div>
|
|
2267
|
-
`,
|
|
2326
|
+
`,kr={mode:"open",delegatesFocus:!0},Tr={};class Lr 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],Lr.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],Lr.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],Lr.prototype,"autoClose",void 0);const Ar=Lr.compose(Object.assign({baseName:"toast",styles:_r,template:Or,shadowOptions:kr},Tr)),Rr=(e,t)=>l.css`
|
|
2268
2327
|
${(0,s.toolbarStyles)(e,t)}
|
|
2269
|
-
`,
|
|
2328
|
+
`,Er=(e,t)=>(0,n.toolbarTemplate)(e,t);class Nr extends s.Toolbar{}const Mr=void 0,Ir={},Pr=Nr.compose(Object.assign({baseName:"toolbar",template:Er,styles:Rr,shadowOptions:Mr},Ir)),Hr=(e,t)=>l.css`
|
|
2270
2329
|
${(0,s.tooltipStyles)(e,t)}
|
|
2271
|
-
`,
|
|
2330
|
+
`,jr=(e,t)=>(0,n.tooltipTemplate)(e,t);class Br extends s.Tooltip{}const Gr=void 0,zr={},Vr=Br.compose(Object.assign({baseName:"tooltip",template:jr,styles:Hr,shadowOptions:Gr},zr)),Ur=(e,t)=>l.css`
|
|
2272
2331
|
${(0,s.treeItemStyles)(e,t)}
|
|
2273
2332
|
:host {
|
|
2274
2333
|
--focus-stroke-width: 0;
|
|
@@ -2285,9 +2344,9 @@
|
|
|
2285
2344
|
.positioning-region {
|
|
2286
2345
|
height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
|
|
2287
2346
|
}
|
|
2288
|
-
`,
|
|
2347
|
+
`,Yr=(e,t)=>(0,n.treeItemTemplate)(e,t);class Wr extends s.TreeItem{}const qr=void 0,Xr={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>'},Kr=Wr.compose(Object.assign({baseName:"tree-item",template:Yr,styles:Ur,shadowOptions:qr},Xr)),Zr=(e,t)=>l.css`
|
|
2289
2348
|
${(0,s.treeViewStyles)(e,t)}
|
|
2290
|
-
`,
|
|
2349
|
+
`,Qr=(e,t)=>(0,n.treeViewTemplate)(e,t);class Jr extends n.TreeView{}const ed=void 0,td={},od=Jr.compose(Object.assign({baseName:"tree-view",template:Qr,styles:Zr,shadowOptions:ed},td)),id=(e,t)=>l.css`
|
|
2291
2350
|
.container {
|
|
2292
2351
|
position: relative;
|
|
2293
2352
|
width: 100%;
|
|
@@ -2307,7 +2366,7 @@
|
|
|
2307
2366
|
overflow: hidden;
|
|
2308
2367
|
text-overflow: ellipsis;
|
|
2309
2368
|
}
|
|
2310
|
-
`,
|
|
2369
|
+
`,ad=l.html`
|
|
2311
2370
|
<div class="container" value=${e=>e.value}>
|
|
2312
2371
|
<fast-text-field
|
|
2313
2372
|
class="url-input"
|
|
@@ -2323,9 +2382,9 @@
|
|
|
2323
2382
|
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
2324
2383
|
`)}
|
|
2325
2384
|
</div>
|
|
2326
|
-
`,
|
|
2385
|
+
`,nd=void 0,sd={};class ld 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],ld.prototype,"value",void 0),(0,w.__decorate)([l.observable],ld.prototype,"focused",void 0);const rd=ld.compose(Object.assign({baseName:"url-input",template:ad,styles:id,shadowOptions:nd},sd)),dd={foundationAccordion:h,foundationAccordionItem:y,foundationActionsMenu:O,foundationAnchor:E,foundationAnchoredRegion:j,foundationAvatar:W,foundationBadge:J,foundationBanner:ce,foundationBreadcrumbItem:Fe,foundationBreadcrumb:ge,foundationButton:Oe,foundationCalendar:Ee,foundationCard:je,foundationCheckbox:Ye,foundationCombobox:et,foundationConnectionIndicator:st,foundationDataGrid:pt,foundationDataGridCell:ft,foundationDataGridRow:Ft,foundationDatePicker:Gt,foundationDesignSystemProvider:Ao,foundationDialog:Go,foundationDisclosure:qo,foundationDivider:ei,foundationDropdownMenu:li,foundationErrorBoundary:Oi,foundationErrorBanner:pi,foundationErrorDialog:Ei,foundationFileUpload:na,foundationFilter:ya,foundationFilterBar:ka,foundationFlexLayout:Ia,foundationFlipper:za,foundationFlyout:Za,foundationGridLayout:ln,foundationGridLayoutItem:pn,foundationHorizontalScroll:bn,foundationIcon:Tn,foundationListbox:Mn,foundationListboxOption:Gn,foundationMenu:qn,foundationMenuItem:es,foundationModal:ss,foundationMultiselect:vs,foundationNumberField:Fs,foundationProgress:Es,foundationPopper:Os,foundationProgressRing:js,foundationRadio:Ys,foundationRadioGroup:Qs,foundationSegmentedControl:al,foundationSegmentedItem:cl,foundationSelect:gl,foundationSkeleton:Fl,foundationSlider:Tl,foundationSliderLabel:Ml,foundationSnackbar:Gl,foundationSwitch:ql,foundationTab:er,foundationTabPanel:sr,foundationTabs:pr,foundationTextArea:br,foundationTextField:Dr,foundationToast:Ar,foundationToolbar:Pr,foundationTooltip:Vr,foundationTreeItem:Kr,foundationTreeView:od,foundationUrlInput:rd,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};function cd(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 ud=(e,t="foundation")=>{e&&uo(i,a,e);return cd(n.DesignSystem.getOrCreate(e).withPrefix(t))};class pd 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(";")}}var hd=o(82940),md=o(32449),vd=o(9162),gd=o(5127),fd=o(26714);class bd extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=hd.WJ.MAX_ROWS_250,this.maxView=hd.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 fd.X(new Map)}criteriaChanged(e,t){const o=e!==(0,md.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 te.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===vd.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,gd.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else te.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 te.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,md.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)([tt.lj],bd.prototype,"connect",void 0),(0,w.__decorate)([mi.Yh],bd.prototype,"datasource",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],bd.prototype,"withGridInit",void 0),(0,w.__decorate)([l.attr],bd.prototype,"criteria",void 0),(0,w.__decorate)([l.attr],bd.prototype,"fields",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],bd.prototype,"isSnapshot",void 0),(0,w.__decorate)([l.attr],bd.prototype,"maxRows",void 0),(0,w.__decorate)([l.attr],bd.prototype,"maxView",void 0),(0,w.__decorate)([l.attr],bd.prototype,"orderBy",void 0),(0,w.__decorate)([l.attr],bd.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],bd.prototype,"reverse",void 0),(0,w.__decorate)([l.attr],bd.prototype,"rowId",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],bd.prototype,"withTimestampFormatting",void 0);let yd=class extends bd{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(){te.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){te.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){te.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){te.debug("handleStreamUpdates - Method not implemented.")}};yd=(0,w.__decorate)([(0,l.customElement)({name:"data-grid-datasource"})],yd);const wd=l.html`
|
|
2327
2386
|
<template ${(0,l.ref)("notificationListener")}>
|
|
2328
2387
|
<slot></slot>
|
|
2329
2388
|
</template>
|
|
2330
|
-
`;var fd;!function(e){e.NOTIFICATION_EVENT="notification-event"}(fd||(fd={}));const bd=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},xd=(0,ai.createLogger)("foundation-notifications"),Fd={alert:e=>{alert(bd(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 F=document.createElement(`${w}-toast`),S=document.createElement("div");S.setAttribute("slot","top"),S.textContent=e.title;const $=document.createElement("div");$.setAttribute("slot","content"),$.textContent=(null==e?void 0:e.body)||"";const C=document.createElement("div");let D;C.setAttribute("slot","date"),C.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)&&(D=document.createElement("div"),D.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:F})})),t.appearance&&o.setAttribute("appearance",t.appearance),D.appendChild(o)}))),F.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)&&F.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)&&F.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}`),F.appendChild(S),F.appendChild($),F.appendChild(C),D&&F.appendChild(D),x.appendChild(F)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-notification-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}},Sd=(e,t,o)=>{var i,a;xd.log({message:bd(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)||ai.LogLevel.Debug)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Fd[i]&&Fd[i](e,t,o)}))};class $d{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 ai.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 Cd{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 Dd={mode:"open",delegatesFocus:!0};class _d 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(fd.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),Sd(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,pd.$)(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})))),Sd((new $d).withTitle(o).withBody(i).withCreatedAt(n).withToast((new Cd).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],_d.prototype,"notificationListener",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],_d.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],_d.prototype,"closeTimeout",void 0),(0,w.__decorate)([l.observable],_d.prototype,"toastButtons",void 0),(0,w.__decorate)([ui.Yh],_d.prototype,"datasource",void 0);const Od=_d.compose({baseName:"notification-listener",template:gd,shadowOptions:Dd});var kd;let Td=kd=class extends md{constructor(){super(...arguments),this.optionElement="fast-option",this.isSnapshot=!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.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.fetchGenesisData(),this.valueField||ni.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof kd||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]})));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)}));const i=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=i}))}handleStreamInserts(e){ni.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ni.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ni.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],Td.prototype,"labelField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],Td.prototype,"valueField",void 0),(0,w.__decorate)([l.observable],Td.prototype,"labelFormatter",void 0),Td=kd=(0,w.__decorate)([(0,l.customElement)({name:"options-datasource"})],Td);let Ld=class extends md{constructor(){super(...arguments),this.isSnapshot=!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.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||ni.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label which is supported only in select and combobox (e.g label-field="NAME")')}))}clearData(){this.select.options=[]}syncComponentData(e){const t=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map((e=>({value:e[this.valueField],label:e[this.labelField]})));this.select.options=t}handleStreamInserts(e){ni.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ni.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ni.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],Ld.prototype,"valueField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],Ld.prototype,"labelField",void 0),Ld=(0,w.__decorate)([(0,l.customElement)({name:"multiselect-datasource"})],Ld);const Ad=(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 Rd(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 Ed=o(1279);let Nd=class extends(Ed.F0.from(l.FASTElement)){connectedCallback(){super.connectedCallback(),l.DOM.queueUpdate((()=>(0,w.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Nd=(0,w.__decorate)([(0,l.customElement)({name:"foundation-router"})],Nd);const Md=()=>ld().register(nd)}}]);
|
|
2331
|
-
//# sourceMappingURL=701.
|
|
2389
|
+
`;var xd;!function(e){e.NOTIFICATION_EVENT="notification-event"}(xd||(xd={}));const Fd=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"}`},$d=(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},Sd=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Cd=(0,ee.createLogger)("foundation-notifications"),Dd={alert:e=>{alert(Fd(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=$d("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 F=document.createElement(`${w}-toast`),$=document.createElement("div");$.setAttribute("slot","top"),$.textContent=e.title;const S=document.createElement("div");S.setAttribute("slot","content"),S.textContent=(null==e?void 0:e.body)||"";const C=document.createElement("div");let D;C.setAttribute("slot","date"),C.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)&&(D=document.createElement("div"),D.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:F})})),t.appearance&&o.setAttribute("appearance",t.appearance),D.appendChild(o)}))),F.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)&&F.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)&&F.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}`),F.appendChild($),F.appendChild(S),F.appendChild(C),D&&F.appendChild(D),x.appendChild(F)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);$d("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);$d("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 Sd()})(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}},_d=(e,t,o)=>{var i,a;Cd.log({message:Fd(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)||ee.LogLevel.Debug)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Dd[i]&&Dd[i](e,t,o)}))};class Od{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 ee.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 kd{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 Td={mode:"open",delegatesFocus:!0};class Ld 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(xd.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),_d(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,gd.$)(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})))),_d((new Od).withTitle(o).withBody(i).withCreatedAt(n).withToast((new kd).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],Ld.prototype,"notificationListener",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],Ld.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Ld.prototype,"closeTimeout",void 0),(0,w.__decorate)([l.observable],Ld.prototype,"toastButtons",void 0),(0,w.__decorate)([mi.Yh],Ld.prototype,"datasource",void 0);const Ad=Ld.compose({baseName:"notification-listener",template:wd,shadowOptions:Td});var Rd;let Ed=Rd=class extends bd{constructor(){super(...arguments),this.optionElement="fast-option",this.isSnapshot=!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.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.fetchGenesisData(),this.valueField||te.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof Rd||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]})));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)}));const i=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=i}))}handleStreamInserts(e){te.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){te.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){te.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],Ed.prototype,"labelField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],Ed.prototype,"valueField",void 0),(0,w.__decorate)([l.observable],Ed.prototype,"labelFormatter",void 0),Ed=Rd=(0,w.__decorate)([(0,l.customElement)({name:"options-datasource"})],Ed);let Nd=class extends bd{constructor(){super(...arguments),this.isSnapshot=!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.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||te.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label which is supported only in select and combobox (e.g label-field="NAME")')}))}clearData(){this.select.options=[]}syncComponentData(e){const t=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map((e=>({value:e[this.valueField],label:e[this.labelField]})));this.select.options=t}handleStreamInserts(e){te.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){te.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){te.debug("handleStreamUpdates - Method not implemented.")}};(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],Nd.prototype,"valueField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],Nd.prototype,"labelField",void 0),Nd=(0,w.__decorate)([(0,l.customElement)({name:"multiselect-datasource"})],Nd);const Md=(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 Id(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 Pd=o(1279);let Hd=class extends(Pd.F0.from(l.FASTElement)){connectedCallback(){super.connectedCallback(),l.DOM.queueUpdate((()=>(0,w.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Hd=(0,w.__decorate)([(0,l.customElement)({name:"foundation-router"})],Hd);const jd=()=>ud().register(dd)}}]);
|
|
2390
|
+
//# sourceMappingURL=701.12b13f7327a6c83702b37b8598afc1e3.js.map
|