@genesislcap/design-system-configurator 14.92.5 → 14.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/214.214.c71f4f228c490e425c07.js +3 -0
- package/dist/214.cf6192da538b4e2ee2d7d83521eee097.js.map +1 -0
- package/dist/{361.361.487e10755b1afebd53d4.js → 361.361.20880d39a0f0680ddf3f.js} +1 -1
- package/dist/{371.371.23362dae23bd83c3806e.js → 371.371.a561a682484675db1414.js} +2 -2
- package/dist/{371.bb9e2778cca388b0d269d41a335d61d2.js.map → 371.bd3cfdcebe664d944cf25a05f56adc68.js.map} +1 -1
- package/dist/{688.688.fa7b7d98b8fefcf63a0e.js → 688.688.34c6c5c2280d7c46de44.js} +2 -2
- package/dist/{688.cd3cd649fbb2b22ee982d264ddc54f25.js.map → 688.6fe7e22c078658ea8cd077f055ea719b.js.map} +1 -1
- package/dist/701.3cd3872ef439fa424e418ebd7e4fd718.js.map +1 -0
- package/dist/{701.701.324df93bf7d63b1b0978.js → 701.701.1e75204912ccd2aaa306.js} +166 -157
- package/dist/721.11c520a2e42880bc92798c6f68f250b4.js.map +1 -0
- package/dist/{721.721.ccace6a00f79813dab66.js → 721.721.aea4584852fac9e747d0.js} +234 -310
- package/dist/{755.3286f535f2f194a1cf0e810fede2ea5a.js.map → 755.0d64f062b3b634cd118d384847e796ca.js.map} +1 -1
- package/dist/755.755.b04bc28bc00aa586b026.js +2 -0
- package/dist/designSystemConfigurator.3ee4064a2c34e7dd0092bae7e79a57f1.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.71ef5d3d1e45401232639bc644642e4b.js.map +1 -0
- package/dist/main.a7f021f89ff0f020f2db.js +2 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +7 -7
- package/dist/701.b2cfeaa6d319cae6bea875db80ac3adb.js.map +0 -1
- package/dist/721.99cb27c2a6f09084c2822162b21631f6.js.map +0 -1
- package/dist/755.755.e020f8bafe6e9ef80efb.js +0 -2
- package/dist/815.815.9c57739cb9af37e6002b.js +0 -3
- package/dist/815.ac9882d25112eab76df3410cec8bf570.js.map +0 -1
- package/dist/designSystemConfigurator.e3c0de41fab37cdc578b62253cec76f1.js.map +0 -1
- package/dist/main.816bb9c17b28d0926fb9.js +0 -2
- package/dist/main.c5f306dac5932130854aa9546a29deb8.js.map +0 -1
- /package/dist/{815.815.9c57739cb9af37e6002b.js.LICENSE.txt → 214.214.c71f4f228c490e425c07.js.LICENSE.txt} +0 -0
|
@@ -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:()=>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`
|
|
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:()=>vs,Breadcrumb:()=>he,BreadcrumbItem:()=>ye,Button:()=>De,CSSVarsTokenMapper:()=>yd,Calendar:()=>Le,Card:()=>Ie,Checkbox:()=>ze,Combobox:()=>Ze,ConnectionIndicator:()=>nt,DEFUALT_FILTER_BAR_COLUMNS:()=>Da,DataGrid:()=>dt,DataGridCell:()=>mt,DataGridDatasource:()=>wd,DataGridRow:()=>yt,DatePicker:()=>Bt,Dialog:()=>Bo,DialogElement:()=>jo,Disclosure:()=>Uo,Divider:()=>Zo,DropdownMenu:()=>si,ErrorBanner:()=>ui,ErrorBoundary:()=>_i,ErrorBoundaryEvent:()=>hi,ErrorDialog:()=>Ri,FaPrefixFromStyle:()=>Cn,FileUpload:()=>ia,Filter:()=>ga,FilterBar:()=>Ca,FilterEvents:()=>va,FlexLayout:()=>Ea,FlexMediaQueriesEnum:()=>Oa,Flipper:()=>Pa,Flyout:()=>Ya,FoundationDesignSystemProvider:()=>Lo,FoundationRouter:()=>Hd,GridLayout:()=>an,GridLayoutItem:()=>dn,GridMediaQueriesEnum:()=>Ka,HorizontalScroll:()=>hn,Icon:()=>_n,Listbox:()=>Ln,ListboxOption:()=>In,Menu:()=>zn,MenuItem:()=>Xn,Modal:()=>is,Multiselect:()=>xs,MultiselectDatasource:()=>gs,NotificationListener:()=>Ad,NumberField:()=>Cs,OptionsDatasource:()=>Nd,Popper:()=>As,Progress:()=>Ps,ProgressRing:()=>Vs,Radio:()=>Ks,RadioGroup:()=>ol,SegmentedControl:()=>rl,SegmentedItem:()=>ml,Select:()=>wl,Skeleton:()=>Cl,Slider:()=>El,SliderLabel:()=>jl,Snackbar:()=>ql,Switch:()=>Ql,Tab:()=>ar,TabPanel:()=>cr,Tabs:()=>gr,TextArea:()=>Fr,TextField:()=>Tr,Toast:()=>Pr,Toolbar:()=>Gr,Tooltip:()=>qr,TreeItem:()=>ed,TreeView:()=>sd,UrlInput:()=>md,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:()=>gd,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>Fo,black:()=>Ut,bodyFont:()=>s.bodyFont,closeIcon:()=>No,configureDesignSystem:()=>yo,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>So,createDesignSystemProxy:()=>fd,createFormData:()=>Ki,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:()=>na,defaultFillColor:()=>Wt,defaultFlexLayoutConfig:()=>Ra,defaultFlipperConfig:()=>ja,defaultFlyoutConfig:()=>qa,defaultGridLayoutConfig:()=>tn,defaultGridLayoutItemConfig:()=>rn,defaultHorizontalScrollConfig:()=>vn,defaultIconConfig:()=>Dn,defaultListboxConfig:()=>Rn,defaultListboxOptionConfig:()=>Hn,defaultMenuConfig:()=>Un,defaultMenuItemConfig:()=>Zn,defaultModalConfig:()=>os,defaultMultiselectConfig:()=>ws,defaultNeutralForegroundContrast:()=>so,defaultNumberFieldConfig:()=>Os,defaultProgressConfig:()=>js,defaultProgressRingConfig:()=>Ys,defaultRadioConfig:()=>Qs,defaultRadioGroupConfig:()=>al,defaultSegmentedControlConfig:()=>cl,defaultSegmentedItemConfig:()=>gl,defaultSelectConfig:()=>Fl,defaultSkeletonConfig:()=>Ol,defaultSliderConfig:()=>Ml,defaultSliderLabelConfig:()=>Gl,defaultSwitchConfig:()=>er,defaultTabConfig:()=>sr,defaultTabPanelConfig:()=>pr,defaultTabsConfig:()=>br,defaultTextAreaConfig:()=>Sr,defaultTextFieldConfig:()=>Ar,defaultToastConfig:()=>Ir,defaultToolbarConfig:()=>Vr,defaultTooltipConfig:()=>Kr,defaultTreeItemConfig:()=>od,defaultTreeViewConfig:()=>rd,defaultUrlInputConfig:()=>hd,defineFactory:()=>Md,density:()=>s.density,designToken:()=>po,designUnit:()=>s.designUnit,designUnitValue:()=>Do,direction:()=>s.direction,directionValue:()=>$o,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>Qi,dropdownMenuBaseStyles:()=>ti,errorDialogTemplate:()=>Li,extractMenuItems:()=>ii,fillColor:()=>s.fillColor,flyoutAnimationTime:()=>Ga,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:()=>C,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:()=>Ce,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:()=>Ci,foundationErrorBoundaryTemplate:()=>Di,foundationErrorDialog:()=>Ei,foundationErrorDialogShadowOptions:()=>Ai,foundationErrorDialogStyles:()=>ki,foundationFileUpload:()=>sa,foundationFileUploadShadowOptions:()=>aa,foundationFileUploadStyles:()=>Wi,foundationFileUploadTemplate:()=>Xi,foundationFilter:()=>fa,foundationFilterBar:()=>_a,foundationFilterBarStyles:()=>ya,foundationFilterBarTemplate:()=>Sa,foundationFilterStyles:()=>la,foundationFilterTemplate:()=>ma,foundationFlexLayout:()=>Na,foundationFlexLayoutShadowOptions:()=>Aa,foundationFlexLayoutStyles:()=>Ta,foundationFlexLayoutTemplate:()=>La,foundationFlipper:()=>Ba,foundationFlipperShadowOptions:()=>Ha,foundationFlipperStyles:()=>Ma,foundationFlipperTemplate:()=>Ia,foundationFlyout:()=>Xa,foundationFlyoutShadowOptions:()=>Wa,foundationFlyoutStyles:()=>za,foundationFlyoutTemplate:()=>Ua,foundationGridLayout:()=>nn,foundationGridLayoutItem:()=>cn,foundationGridLayoutItemShadowOptions:()=>ln,foundationGridLayoutItemTemplate:()=>sn,foundationGridLayoutShadowOptions:()=>en,foundationGridLayoutStyles:()=>Qa,foundationGridLayoutTemplate:()=>Ja,foundationHorizontalScroll:()=>gn,foundationHorizontalScrollShadowOptions:()=>mn,foundationHorizontalScrollStyles:()=>un,foundationHorizontalScrollTemplate:()=>pn,foundationIcon:()=>On,foundationIconShadowOptions:()=>Sn,foundationIconStyles:()=>Fn,foundationIconTemplate:()=>$n,foundationListbox:()=>En,foundationListboxOption:()=>jn,foundationListboxOptionShadowOptions:()=>Pn,foundationListboxOptionStyles:()=>Nn,foundationListboxOptionTemplate:()=>Mn,foundationListboxShadowOptions:()=>An,foundationListboxStyles:()=>kn,foundationListboxTemplate:()=>Tn,foundationMenu:()=>Yn,foundationMenuItem:()=>Qn,foundationMenuItemShadowOptions:()=>Kn,foundationMenuItemStyles:()=>Wn,foundationMenuItemTemplate:()=>qn,foundationMenuShadowOptions:()=>Vn,foundationMenuStyles:()=>Bn,foundationMenuTemplate:()=>Gn,foundationModal:()=>as,foundationModalShadowOptions:()=>ts,foundationModalStyles:()=>Jn,foundationModalTemplate:()=>es,foundationMultiselect:()=>Fs,foundationMultiselectShadowOptions:()=>ys,foundationNotificationListener:()=>Rd,foundationNotificationListenerShadowOptions:()=>Ld,foundationNotificationListenerTemplate:()=>xd,foundationNumberField:()=>ks,foundationNumberFieldShadowOptions:()=>_s,foundationNumberFieldStyles:()=>Ss,foundationNumberFieldTemplate:()=>Ds,foundationPopper:()=>Ns,foundationProgress:()=>Bs,foundationProgressRing:()=>Ws,foundationProgressRingShadowOptions:()=>Us,foundationProgressRingStyles:()=>Gs,foundationProgressRingTemplate:()=>zs,foundationProgressShadowOptions:()=>Hs,foundationProgressStyles:()=>Ms,foundationProgressTemplate:()=>Is,foundationRadio:()=>Js,foundationRadioGroup:()=>nl,foundationRadioGroupShadowOptions:()=>il,foundationRadioGroupStyles:()=>el,foundationRadioGroupTemplate:()=>tl,foundationRadioShadowOptions:()=>Zs,foundationRadioStyles:()=>qs,foundationRadioTemplate:()=>Xs,foundationSegmentedControl:()=>ul,foundationSegmentedControlShadowOptions:()=>dl,foundationSegmentedControlStyles:()=>sl,foundationSegmentedControlTemplate:()=>ll,foundationSegmentedItem:()=>fl,foundationSegmentedItemShadowOptions:()=>vl,foundationSegmentedItemStyles:()=>pl,foundationSegmentedItemTemplate:()=>hl,foundationSelect:()=>$l,foundationSelectShadowOptions:()=>xl,foundationSelectStyles:()=>bl,foundationSelectTemplate:()=>yl,foundationSkeleton:()=>kl,foundationSkeletonShadowOptions:()=>_l,foundationSkeletonStyles:()=>Sl,foundationSkeletonTemplate:()=>Dl,foundationSlider:()=>Il,foundationSliderLabel:()=>zl,foundationSliderLabelShadowOptions:()=>Bl,foundationSliderLabelStyles:()=>Pl,foundationSliderLabelTemplate:()=>Hl,foundationSliderShadowOptions:()=>Nl,foundationSliderStyles:()=>Tl,foundationSliderTemplate:()=>Rl,foundationSnackbar:()=>Xl,foundationSnackbarShadowOptions:()=>Wl,foundationSnackbarStyles:()=>Vl,foundationSnackbarTemplate:()=>Yl,foundationSwitch:()=>tr,foundationSwitchShadowOptions:()=>Jl,foundationSwitchStyles:()=>Kl,foundationSwitchTemplate:()=>Zl,foundationTab:()=>lr,foundationTabPanel:()=>hr,foundationTabPanelShadowOptions:()=>ur,foundationTabPanelStyles:()=>rr,foundationTabPanelTemplate:()=>dr,foundationTabShadowOptions:()=>nr,foundationTabStyles:()=>or,foundationTabTemplate:()=>ir,foundationTabs:()=>yr,foundationTabsShadowOptions:()=>fr,foundationTabsStyles:()=>mr,foundationTabsTemplate:()=>vr,foundationTextArea:()=>Dr,foundationTextAreaShadowOptions:()=>$r,foundationTextAreaStyles:()=>wr,foundationTextAreaTemplate:()=>xr,foundationTextField:()=>Rr,foundationTextFieldShadowOptions:()=>Lr,foundationTextFieldStyles:()=>Or,foundationTextFieldTemplate:()=>kr,foundationToast:()=>Hr,foundationToastShadowOptions:()=>Mr,foundationToastStyles:()=>Er,foundationToastTemplate:()=>Nr,foundationToolbar:()=>Ur,foundationToolbarShadowOptions:()=>zr,foundationToolbarStyles:()=>jr,foundationToolbarTemplate:()=>Br,foundationTooltip:()=>Zr,foundationTooltipShadowOptions:()=>Xr,foundationTooltipStyles:()=>Yr,foundationTooltipTemplate:()=>Wr,foundationTreeItem:()=>id,foundationTreeItemShadowOptions:()=>td,foundationTreeItemStyles:()=>Qr,foundationTreeItemTemplate:()=>Jr,foundationTreeView:()=>dd,foundationTreeViewShadowOptions:()=>ld,foundationTreeViewStyles:()=>ad,foundationTreeViewTemplate:()=>nd,foundationUrlInput:()=>vd,foundationUrlInputShadowOptions:()=>pd,foundationUrlInputStyles:()=>cd,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:()=>xn,getPrefixedDatePicker:()=>It,getPrefixedErrorBanner:()=>ri,getPrefixedFileUpload:()=>qi,getPrefixedFilterTemplate:()=>ha,getPrefixedFlyout:()=>Va,getPrefixedMultiselect:()=>fs,getPrefixedSnackbar:()=>Ul,getTypeRampValue:()=>bo,jsonConverter:()=>Ls,mapType:()=>wa,maxheight:()=>ds,media:()=>z,menuTemplate:()=>S,mixinFoundationFontFamily:()=>_o,multiselectStyles:()=>cs,multiselectTemplate:()=>bs,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:()=>bd,provideTokens:()=>uo,registerFoundationDesignSystem:()=>jd,singleOptionTemplate:()=>D,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:()=>Zi,urlinputTemplate:()=>ud,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:()=>Do,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)}
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
`)}
|
|
141
141
|
`,{positioning:!0})}
|
|
142
142
|
</fast-menu>
|
|
143
|
-
`,
|
|
143
|
+
`,D=l.html`
|
|
144
144
|
<fast-button
|
|
145
145
|
appearance="${e=>e.buttonAppearance}"
|
|
146
146
|
part="actions-opener"
|
|
@@ -150,14 +150,14 @@
|
|
|
150
150
|
>
|
|
151
151
|
${e=>e.getLabel(null==e?void 0:e.singleOption.name)}
|
|
152
152
|
</fast-button>
|
|
153
|
-
`,
|
|
153
|
+
`,C=l.html`
|
|
154
154
|
<div
|
|
155
155
|
class="actions-container${e=>e.isVertical?" actions-vertical":""}"
|
|
156
156
|
part="actions-container"
|
|
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 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],
|
|
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],D):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:C}),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));var ee=o(
|
|
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(6058);const te=(0,ee.createLogger)("foundation-ui"),oe=l.css`
|
|
173
173
|
@keyframes delete-animate {
|
|
174
174
|
from {
|
|
175
175
|
height: 100px;
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
${(0,s.breadcrumbItemStyles)(e,t)}
|
|
278
278
|
`,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`
|
|
279
279
|
${(0,s.buttonStyles)(e,t)}
|
|
280
|
-
`,Se=(e,t)=>(0,n.buttonTemplate)(e,t);class
|
|
280
|
+
`,Se=(e,t)=>(0,n.buttonTemplate)(e,t);class De extends s.Button{}const Ce={delegatesFocus:!0,mode:"open"},_e={},Oe=De.compose(Object.assign({baseName:"button",template:Se,styles:$e,shadowOptions:Ce},_e)),ke=()=>l.css`
|
|
281
281
|
${s.CalendarStyles}
|
|
282
282
|
`,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`
|
|
283
283
|
${(0,s.cardStyles)(e,t)}
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
${(0,s.dataGridCellStyles)(e,t)}
|
|
362
362
|
`;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`
|
|
363
363
|
${(0,s.dataGridRowStyles)(e,t)}
|
|
364
|
-
`;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),
|
|
364
|
+
`;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),Dt=o(55466),Ct=o.n(Dt),_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`
|
|
365
365
|
:host {
|
|
366
366
|
position: relative;
|
|
367
367
|
}
|
|
@@ -532,7 +532,7 @@
|
|
|
532
532
|
</div>
|
|
533
533
|
`,Pt=l.html`
|
|
534
534
|
${e=>It(ne(e))}
|
|
535
|
-
`,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(
|
|
535
|
+
`,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(Ct()),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,Do=4;var Co=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`
|
|
536
536
|
${(0,n.display)("flex")}
|
|
537
537
|
:host {
|
|
538
538
|
flex: 1;
|
|
@@ -543,9 +543,9 @@
|
|
|
543
543
|
}
|
|
544
544
|
`.withBehaviors((0,n.forcedColorsStylesheetBehavior)(l.css`
|
|
545
545
|
:host {
|
|
546
|
-
background-color: ${
|
|
547
|
-
box-shadow: 0 0 0 1px ${
|
|
548
|
-
color: ${
|
|
546
|
+
background-color: ${Co.H.ButtonFace};
|
|
547
|
+
box-shadow: 0 0 0 1px ${Co.H.CanvasText};
|
|
548
|
+
color: ${Co.H.ButtonText};
|
|
549
549
|
}
|
|
550
550
|
`)),To=(e,t)=>l.css`
|
|
551
551
|
${e.name} ${"h"+t} {
|
|
@@ -800,11 +800,11 @@
|
|
|
800
800
|
</${e}-banner>
|
|
801
801
|
`,di=l.html`
|
|
802
802
|
${e=>ri(ne(e))}
|
|
803
|
-
`,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
|
|
803
|
+
`,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 Di=l.html`
|
|
804
804
|
<template ${(0,l.ref)("errorBoundary")}>
|
|
805
805
|
<slot></slot>
|
|
806
806
|
</template>
|
|
807
|
-
`,
|
|
807
|
+
`,Ci={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:Di,shadowOptions:Ci}),ki=l.css`
|
|
808
808
|
:host {
|
|
809
809
|
--design-unit: 3;
|
|
810
810
|
--dialog-max-width: 358px;
|
|
@@ -842,7 +842,7 @@
|
|
|
842
842
|
</${e}-dialog>
|
|
843
843
|
`,Li=l.html`
|
|
844
844
|
${e=>Ti(ne(e))}
|
|
845
|
-
`,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)
|
|
845
|
+
`,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),Vi=e=>`Expr.containsIgnoreCase(${e.field}, ${Bi(e)})`;class Ui{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 Yi=o(21607);const Wi=l.css`
|
|
846
846
|
/* Host */
|
|
847
847
|
:host {
|
|
848
848
|
display: flex;
|
|
@@ -890,7 +890,7 @@
|
|
|
890
890
|
fast-data-grid-row {
|
|
891
891
|
align-items: center;
|
|
892
892
|
}
|
|
893
|
-
`,
|
|
893
|
+
`,qi=e=>l.html`
|
|
894
894
|
<template>
|
|
895
895
|
<div class="file-selection">
|
|
896
896
|
<input type="file" multiple ${(0,l.ref)("fileInput")}
|
|
@@ -916,13 +916,13 @@
|
|
|
916
916
|
</${e}-data-grid>
|
|
917
917
|
</div>
|
|
918
918
|
</template>
|
|
919
|
-
`,
|
|
920
|
-
${e=>
|
|
921
|
-
`,
|
|
919
|
+
`,Xi=l.html`
|
|
920
|
+
${e=>qi(ne(e))}
|
|
921
|
+
`,Ki=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},Zi=(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))))},Qi=(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)}))},Ji=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],ea=["text/plain","text/csv"],ta=["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"],oa=l.html`
|
|
922
922
|
${(0,l.when)((e=>e.rowData),l.html`
|
|
923
|
-
${e=>"DATETIME"===e.columnDefinition.type?(0,
|
|
923
|
+
${e=>"DATETIME"===e.columnDefinition.type?(0,Yi.Lx)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
|
|
924
924
|
`)}
|
|
925
|
-
`;class
|
|
925
|
+
`;class ia 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,...Ji]:"office/*"===t?e=[...e,...ta]:"text/*"===t?e=[...e,...ea]: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 Ui).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`
|
|
926
926
|
<template>
|
|
927
927
|
<div class="download-button-container">
|
|
928
928
|
<${e}-button
|
|
@@ -933,7 +933,7 @@
|
|
|
933
933
|
</${e}-button>
|
|
934
934
|
</div>
|
|
935
935
|
</template>
|
|
936
|
-
`}}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:
|
|
936
|
+
`}}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:oa}}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=Ki(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield Zi(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){Qi(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,w.__decorate)([l.observable],ia.prototype,"gridCriteria",void 0),(0,w.__decorate)([tt.lj],ia.prototype,"connect",void 0),(0,w.__decorate)([ot.z],ia.prototype,"session",void 0),(0,w.__decorate)([l.attr],ia.prototype,"label",void 0),(0,w.__decorate)([l.attr],ia.prototype,"accept",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"file-size-limit-bytes"})],ia.prototype,"fileSizeLimitBytes",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"uploaded-files-resource-name"})],ia.prototype,"uploadedFilesResourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"upload-event-name"})],ia.prototype,"uploadEventName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"field-name"})],ia.prototype,"fieldName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"entity-id"})],ia.prototype,"entityId",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"upload-key"})],ia.prototype,"uploadKey",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"grid-fields"})],ia.prototype,"gridFields",void 0),(0,w.__decorate)([l.observable],ia.prototype,"fileName",void 0),(0,w.__decorate)([l.observable],ia.prototype,"uploadedFilesList",void 0),(0,w.__decorate)([l.observable],ia.prototype,"filesGridColumnDefinitions",void 0);const aa=void 0,na={},sa=ia.compose(Object.assign({baseName:"file-upload",styles:Wi,template:Xi,shadowOptions:aa},na)),la=l.css`
|
|
937
937
|
.filter-wrapper {
|
|
938
938
|
border: 1px solid gray;
|
|
939
939
|
border-radius: calc(var(--design-unit) * 2px);
|
|
@@ -984,87 +984,89 @@
|
|
|
984
984
|
.flex-row foundation-select {
|
|
985
985
|
flex: 1;
|
|
986
986
|
}
|
|
987
|
-
`;var
|
|
987
|
+
`;var ra=o(18471);const da=l.html`
|
|
988
988
|
<div class="close-icon" @click=${e=>e.clear()}>${No()}</div>
|
|
989
|
-
|
|
990
|
-
<div class="flex-row">
|
|
991
|
-
<div>${e=>e.label}</div>
|
|
992
|
-
${ra}
|
|
993
|
-
</div>
|
|
994
|
-
<div class="flex-row">
|
|
995
|
-
<foundation-text-field
|
|
996
|
-
${(0,l.ref)("textFilterField")}
|
|
997
|
-
type="text"
|
|
998
|
-
:value=${(0,la.Z)((e=>e.textFilter))}
|
|
999
|
-
/>
|
|
1000
|
-
</div>
|
|
1001
|
-
`,ca=l.html`
|
|
989
|
+
`;function ca(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 ua=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],pa=(e,t)=>{switch(e.type){case"number":return(e=>l.html`
|
|
1002
990
|
<div class="flex-row">
|
|
1003
991
|
<div>${e=>e.label}</div>
|
|
1004
|
-
${
|
|
992
|
+
${da}
|
|
1005
993
|
</div>
|
|
1006
994
|
<div class="flex-row">
|
|
1007
|
-
|
|
995
|
+
<${e}-text-field
|
|
1008
996
|
${(0,l.ref)("numFilterFieldMin")}
|
|
1009
997
|
type="number"
|
|
1010
|
-
:value=${(0,
|
|
998
|
+
:value=${(0,ra.Z)((e=>e.numFilterMin))}
|
|
1011
999
|
placeholder="min"
|
|
1012
|
-
|
|
1013
|
-
|
|
1000
|
+
></${e}-text-field>
|
|
1001
|
+
<${e}-text-field
|
|
1014
1002
|
${(0,l.ref)("numFilterFieldMax")}
|
|
1015
1003
|
type="number"
|
|
1016
|
-
:value=${(0,
|
|
1004
|
+
:value=${(0,ra.Z)((e=>e.numFilterMax))}
|
|
1017
1005
|
placeholder="max"
|
|
1018
|
-
|
|
1006
|
+
></${e}-text-field>
|
|
1019
1007
|
</div>
|
|
1020
|
-
|
|
1008
|
+
`)(t);case"date":return(e=>l.html`
|
|
1021
1009
|
<div class="flex-row">
|
|
1022
1010
|
<div>${e=>e.label}</div>
|
|
1023
|
-
${
|
|
1011
|
+
${da}
|
|
1024
1012
|
</div>
|
|
1025
1013
|
<div class="flex-row">
|
|
1026
|
-
|
|
1014
|
+
<${e}-text-field
|
|
1027
1015
|
${(0,l.ref)("dateFilterFieldMin")}
|
|
1028
1016
|
type="date"
|
|
1029
|
-
:value=${(0,
|
|
1030
|
-
|
|
1031
|
-
|
|
1017
|
+
:value=${(0,ra.Z)((e=>e.dateFilterMin))}
|
|
1018
|
+
></${e}-text-field>
|
|
1019
|
+
<${e}-text-field
|
|
1032
1020
|
${(0,l.ref)("dateFilterFieldMax")}
|
|
1033
1021
|
type="date"
|
|
1034
|
-
:value=${(0,
|
|
1035
|
-
|
|
1022
|
+
:value=${(0,ra.Z)((e=>e.dateFilterMax))}
|
|
1023
|
+
></${e}-text-field>
|
|
1036
1024
|
</div>
|
|
1037
|
-
|
|
1025
|
+
`)(t);case"boolean":return(e=>l.html`
|
|
1038
1026
|
<div class="flex-row">
|
|
1039
1027
|
<div>${e=>e.label}</div>
|
|
1040
|
-
${
|
|
1028
|
+
${da}
|
|
1041
1029
|
</div>
|
|
1042
1030
|
<div class="flex-row">
|
|
1043
|
-
|
|
1044
|
-
${(0,l.repeat)((()=>
|
|
1045
|
-
|
|
1031
|
+
<${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(ca(t))}}">
|
|
1032
|
+
${(0,l.repeat)((()=>ua),l.html`
|
|
1033
|
+
<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1046
1034
|
${e=>e.name}
|
|
1047
|
-
|
|
1035
|
+
</${e}-option>
|
|
1048
1036
|
`)}
|
|
1049
|
-
|
|
1037
|
+
</${e}-select>
|
|
1050
1038
|
</div>
|
|
1051
|
-
|
|
1039
|
+
`)(t);case"enum":return(e=>l.html`
|
|
1052
1040
|
<div class="flex-row">
|
|
1053
1041
|
<div>${e=>e.label}</div>
|
|
1054
|
-
${
|
|
1042
|
+
${da}
|
|
1055
1043
|
</div>
|
|
1056
1044
|
<div class="flex-row">
|
|
1057
|
-
|
|
1045
|
+
<${e}-select @change="${(e,t)=>e.onEnumFilterSelection(ca(t))}}">
|
|
1058
1046
|
${(0,l.repeat)((e=>e.enumFilterOptions),l.html`
|
|
1059
|
-
|
|
1047
|
+
<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1060
1048
|
${e=>e.name}
|
|
1061
|
-
|
|
1049
|
+
</${e}-option>
|
|
1062
1050
|
`)}
|
|
1063
|
-
|
|
1051
|
+
</${e}-select>
|
|
1064
1052
|
</div>
|
|
1065
|
-
|
|
1066
|
-
<div class="
|
|
1067
|
-
|
|
1053
|
+
`)(t);default:return(e=>l.html`
|
|
1054
|
+
<div class="flex-row">
|
|
1055
|
+
<div>${e=>e.label}</div>
|
|
1056
|
+
${da}
|
|
1057
|
+
</div>
|
|
1058
|
+
<div class="flex-row">
|
|
1059
|
+
<${e}-text-field
|
|
1060
|
+
${(0,l.ref)("textFilterField")}
|
|
1061
|
+
type="text"
|
|
1062
|
+
:value=${(0,ra.Z)((e=>e.textFilter))}
|
|
1063
|
+
/>
|
|
1064
|
+
</div>
|
|
1065
|
+
`)(t)}},ha=e=>l.html`
|
|
1066
|
+
<div class="filter-wrapper">${t=>pa(t,e)}</div>
|
|
1067
|
+
`,ma=l.html`
|
|
1068
|
+
${e=>ha(ne(e))}</div>
|
|
1069
|
+
`;var va;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(va||(va={}));class ga 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(va.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(va.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(va.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(va.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(va.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(va.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(va.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(va.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(va.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(va.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(va.clear,{fieldName:this.fieldName,target:this.target})}}(0,w.__decorate)([l.attr],ga.prototype,"fieldName",void 0),(0,w.__decorate)([l.attr],ga.prototype,"type",void 0),(0,w.__decorate)([l.attr],ga.prototype,"label",void 0),(0,w.__decorate)([l.attr],ga.prototype,"target",void 0),(0,w.__decorate)([l.observable],ga.prototype,"textFilter",void 0),(0,w.__decorate)([l.observable],ga.prototype,"numFilterMin",void 0),(0,w.__decorate)([l.observable],ga.prototype,"numFilterMax",void 0),(0,w.__decorate)([l.observable],ga.prototype,"dateFilterMin",void 0),(0,w.__decorate)([l.observable],ga.prototype,"dateFilterMax",void 0),(0,w.__decorate)([l.attr],ga.prototype,"enumOptions",void 0),(0,w.__decorate)([l.observable],ga.prototype,"enumFilterOptions",void 0);const fa=ga.compose({baseName:"filter",template:ma,styles:la});var ba=o(41353);const ya=(e,t)=>l.css`
|
|
1068
1070
|
.filter-bar {
|
|
1069
1071
|
background-color: #2c2f33;
|
|
1070
1072
|
padding: calc(var(--design-unit) * 2px);
|
|
@@ -1100,21 +1102,21 @@
|
|
|
1100
1102
|
.toggle-collapsed {
|
|
1101
1103
|
color: #48ed9c;
|
|
1102
1104
|
}
|
|
1103
|
-
`,
|
|
1105
|
+
`,wa=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"}},xa=l.html`
|
|
1104
1106
|
<p>Fetching metadata for ${e=>e.resource}...</p>
|
|
1105
|
-
`,
|
|
1107
|
+
`,Fa=l.html`
|
|
1106
1108
|
${(0,l.when)((e=>e.collapsed),l.html`
|
|
1107
1109
|
<foundation-icon name="arrow-up"></foundation-icon>
|
|
1108
1110
|
`)}
|
|
1109
1111
|
${(0,l.when)((e=>!e.collapsed),l.html`
|
|
1110
1112
|
<foundation-icon name="arrow-down"></foundation-icon>
|
|
1111
1113
|
`)}
|
|
1112
|
-
|
|
1114
|
+
`,$a=l.html`
|
|
1113
1115
|
<div
|
|
1114
1116
|
class=${e=>(0,x.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1115
1117
|
@click="${e=>e.toggle()}"
|
|
1116
1118
|
>
|
|
1117
|
-
${
|
|
1119
|
+
${Fa}
|
|
1118
1120
|
</div>
|
|
1119
1121
|
<div class=${e=>(0,x.A)(["filter-bar",!0],["collapsed",e.collapsed])}>
|
|
1120
1122
|
<div class="filter-grid" ${(0,l.ref)("filterGrid")}>
|
|
@@ -1122,16 +1124,16 @@
|
|
|
1122
1124
|
<foundation-filter
|
|
1123
1125
|
label="${e=>e.UI_LABEL}"
|
|
1124
1126
|
target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
|
|
1125
|
-
type="${e=>
|
|
1127
|
+
type="${e=>wa(e.TYPE)}"
|
|
1126
1128
|
fieldName="${e=>e.NAME}"
|
|
1127
1129
|
></foundation-filter>
|
|
1128
1130
|
`)}
|
|
1129
1131
|
</div>
|
|
1130
1132
|
</div>
|
|
1131
|
-
`,
|
|
1132
|
-
${e=>e.ready
|
|
1133
|
-
`,
|
|
1134
|
-
${t&&`@media only screen and ${
|
|
1133
|
+
`,Sa=l.html`
|
|
1134
|
+
${e=>e.ready?$a:xa}
|
|
1135
|
+
`,Da=5;class Ca extends n.FoundationElement{constructor(){super(...arguments),this.columns=Da,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,ba.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],Ca.prototype,"resource",void 0),(0,w.__decorate)([l.attr],Ca.prototype,"only",void 0),(0,w.__decorate)([l.attr],Ca.prototype,"labels",void 0),(0,w.__decorate)([l.attr],Ca.prototype,"target",void 0),(0,w.__decorate)([l.attr],Ca.prototype,"columns",void 0),(0,w.__decorate)([l.observable],Ca.prototype,"ready",void 0),(0,w.__decorate)([l.observable],Ca.prototype,"fields",void 0),(0,w.__decorate)([tt.lj],Ca.prototype,"connect",void 0),(0,w.__decorate)([l.observable],Ca.prototype,"collapsed",void 0);const _a=Ca.compose({baseName:"filter-bar",template:Sa,styles:ya});var Oa;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Oa||(Oa={}));const ka=e=>{const t=e?`-${e}`:"";return l.css`
|
|
1136
|
+
${t&&`@media only screen and ${Oa[e]} {`}
|
|
1135
1137
|
:host(.spacing${t}-1x) slot {
|
|
1136
1138
|
gap: calc(var(--design-unit) * 2px);
|
|
1137
1139
|
}
|
|
@@ -1248,7 +1250,7 @@
|
|
|
1248
1250
|
align-content: space-evenly;
|
|
1249
1251
|
}
|
|
1250
1252
|
${t&&"}"}
|
|
1251
|
-
`},
|
|
1253
|
+
`},Ta=l.css`
|
|
1252
1254
|
:host {
|
|
1253
1255
|
width: 100%;
|
|
1254
1256
|
height: 100%;
|
|
@@ -1260,17 +1262,17 @@
|
|
|
1260
1262
|
display: flex;
|
|
1261
1263
|
}
|
|
1262
1264
|
|
|
1263
|
-
${
|
|
1264
|
-
${
|
|
1265
|
-
${
|
|
1266
|
-
${
|
|
1267
|
-
`,
|
|
1265
|
+
${ka()}
|
|
1266
|
+
${ka("lg")}
|
|
1267
|
+
${ka("md")}
|
|
1268
|
+
${ka("sm")}
|
|
1269
|
+
`,La=l.html`
|
|
1268
1270
|
<template>
|
|
1269
1271
|
<slot></slot>
|
|
1270
1272
|
</template>
|
|
1271
|
-
`,
|
|
1273
|
+
`,Aa=void 0,Ra={};class Ea extends n.FoundationElement{}const Na=Ea.compose(Object.assign({baseName:"flex-layout",styles:Ta,template:La,shadowOptions:Aa},Ra)),Ma=(e,t)=>l.css`
|
|
1272
1274
|
${(0,s.flipperStyles)(e,t)}
|
|
1273
|
-
`,
|
|
1275
|
+
`,Ia=(e,t)=>(0,n.flipperTemplate)(e,t);class Pa extends s.Flipper{}const Ha=void 0,ja={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 '},Ba=Pa.compose(Object.assign({baseName:"flipper",template:Ia,styles:Ma,shadowOptions:Ha},ja)),Ga=225,za=l.css`
|
|
1274
1276
|
/* Host */
|
|
1275
1277
|
:host {
|
|
1276
1278
|
display: inline-block;
|
|
@@ -1295,7 +1297,7 @@
|
|
|
1295
1297
|
height: 100%;
|
|
1296
1298
|
position: absolute;
|
|
1297
1299
|
/* stylelint-disable-next-line function-name-case */
|
|
1298
|
-
transition: transform ${
|
|
1300
|
+
transition: transform ${Ga.toString()}ms ease-in;
|
|
1299
1301
|
width: 20%;
|
|
1300
1302
|
z-index: 2001;
|
|
1301
1303
|
}
|
|
@@ -1343,7 +1345,7 @@
|
|
|
1343
1345
|
opacity: 50%;
|
|
1344
1346
|
position: absolute;
|
|
1345
1347
|
/* stylelint-disable-next-line function-name-case */
|
|
1346
|
-
transition: opacity ${
|
|
1348
|
+
transition: opacity ${Ga.toString()}ms linear;
|
|
1347
1349
|
width: 100%;
|
|
1348
1350
|
z-index: 2000;
|
|
1349
1351
|
}
|
|
@@ -1351,7 +1353,7 @@
|
|
|
1351
1353
|
:host([visuallyhidden]) div.background {
|
|
1352
1354
|
opacity: 0%;
|
|
1353
1355
|
}
|
|
1354
|
-
`,
|
|
1356
|
+
`,Va=e=>l.html`
|
|
1355
1357
|
<div ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
|
|
1356
1358
|
<div class="container">
|
|
1357
1359
|
<div class="background" part="background" @click=${e=>e.closeFlyout()}></div>
|
|
@@ -1375,10 +1377,10 @@
|
|
|
1375
1377
|
</div>
|
|
1376
1378
|
</div>
|
|
1377
1379
|
</div>
|
|
1378
|
-
`,
|
|
1379
|
-
${e=>
|
|
1380
|
-
`;class
|
|
1381
|
-
${t&&`@media only screen and ${
|
|
1380
|
+
`,Ua=l.html`
|
|
1381
|
+
${e=>Va(ne(e))}
|
|
1382
|
+
`;class Ya 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],Ya.prototype,"position",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ya.prototype,"displayHeader",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ya.prototype,"closed",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Ya.prototype,"visuallyhidden",void 0);const Wa=void 0,qa={},Xa=Ya.compose(Object.assign({baseName:"flyout",styles:za,template:Ua,shadowOptions:Wa},qa));var Ka;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Ka||(Ka={}));const Za=e=>{const t=e?`-${e}`:"";return l.css`
|
|
1383
|
+
${t&&`@media only screen and ${Ka[e]} {`}
|
|
1382
1384
|
:host(.spacing${t}-1x) slot {
|
|
1383
1385
|
gap: calc(var(--design-unit) * 2px);
|
|
1384
1386
|
}
|
|
@@ -1463,32 +1465,32 @@
|
|
|
1463
1465
|
place-items: stretch;
|
|
1464
1466
|
}
|
|
1465
1467
|
${t&&"}"}
|
|
1466
|
-
`},
|
|
1468
|
+
`},Qa=l.css`
|
|
1467
1469
|
slot {
|
|
1468
1470
|
width: 100%;
|
|
1469
1471
|
height: 100%;
|
|
1470
1472
|
display: grid;
|
|
1471
1473
|
}
|
|
1472
1474
|
|
|
1473
|
-
${
|
|
1474
|
-
${
|
|
1475
|
-
${
|
|
1476
|
-
${
|
|
1477
|
-
`,
|
|
1475
|
+
${Za()}
|
|
1476
|
+
${Za("lg")}
|
|
1477
|
+
${Za("md")}
|
|
1478
|
+
${Za("sm")}
|
|
1479
|
+
`,Ja=l.html`
|
|
1478
1480
|
<template>
|
|
1479
1481
|
<slot></slot>
|
|
1480
1482
|
</template>
|
|
1481
|
-
`,
|
|
1483
|
+
`,en=void 0,tn={};class on{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`
|
|
1482
1484
|
slot {
|
|
1483
1485
|
${s||""}
|
|
1484
1486
|
${n||""}
|
|
1485
1487
|
}
|
|
1486
|
-
`}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
|
|
1488
|
+
`}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 an extends n.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(Ka).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new on(Ka[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`
|
|
1487
1489
|
slot {
|
|
1488
1490
|
${e||""}
|
|
1489
1491
|
${t||""}
|
|
1490
1492
|
}
|
|
1491
|
-
`,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],
|
|
1493
|
+
`,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],an.prototype,"col-count",void 0),(0,w.__decorate)([l.attr],an.prototype,"col-width",void 0),(0,w.__decorate)([l.attr],an.prototype,"col-lg-count",void 0),(0,w.__decorate)([l.attr],an.prototype,"col-lg-width",void 0),(0,w.__decorate)([l.attr],an.prototype,"col-md-count",void 0),(0,w.__decorate)([l.attr],an.prototype,"col-md-width",void 0),(0,w.__decorate)([l.attr],an.prototype,"col-sm-count",void 0),(0,w.__decorate)([l.attr],an.prototype,"col-sm-width",void 0),(0,w.__decorate)([l.attr],an.prototype,"row-count",void 0),(0,w.__decorate)([l.attr],an.prototype,"row-height",void 0),(0,w.__decorate)([l.attr],an.prototype,"row-lg-count",void 0),(0,w.__decorate)([l.attr],an.prototype,"row-lg-height",void 0),(0,w.__decorate)([l.attr],an.prototype,"row-md-count",void 0),(0,w.__decorate)([l.attr],an.prototype,"row-md-height",void 0),(0,w.__decorate)([l.attr],an.prototype,"row-sm-count",void 0),(0,w.__decorate)([l.attr],an.prototype,"row-sm-height",void 0);const nn=an.compose(Object.assign({baseName:"grid-layout",styles:Qa,template:Ja,shadowOptions:en},tn)),sn=l.html`
|
|
1492
1494
|
<template>
|
|
1493
1495
|
<style>
|
|
1494
1496
|
:host {
|
|
@@ -1517,9 +1519,9 @@
|
|
|
1517
1519
|
</style>
|
|
1518
1520
|
<slot></slot>
|
|
1519
1521
|
</template>
|
|
1520
|
-
`,
|
|
1522
|
+
`,ln=void 0,rn={};class dn 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"})],dn.prototype,"colNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-sm-number"})],dn.prototype,"colSmNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-md-number"})],dn.prototype,"colMdNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"col-lg-number"})],dn.prototype,"colLgNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-number"})],dn.prototype,"rowNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-sm-number"})],dn.prototype,"rowSmNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-md-number"})],dn.prototype,"rowMdNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"row-lg-number"})],dn.prototype,"rowLgNumber",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width"})],dn.prototype,"width",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-sm"})],dn.prototype,"widthSm",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-md"})],dn.prototype,"widthMd",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"width-lg"})],dn.prototype,"widthLg",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height"})],dn.prototype,"height",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-sm"})],dn.prototype,"heightSm",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-md"})],dn.prototype,"heightMd",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"height-lg"})],dn.prototype,"heightLg",void 0);const cn=dn.compose(Object.assign({baseName:"grid-layout-item",template:sn,shadowOptions:ln},rn)),un=(e,t)=>l.css`
|
|
1521
1523
|
${(0,s.horizontalScrollStyles)(e,t)}
|
|
1522
|
-
`,
|
|
1524
|
+
`,pn=(e,t)=>(0,n.horizontalScrollTemplate)(e,t);class hn extends s.HorizontalScroll{}const mn={delegatesFocus:!0,mode:"open"},vn={nextFlipper:l.html`
|
|
1523
1525
|
<fast-flipper
|
|
1524
1526
|
@click="${e=>e.scrollToNext()}"
|
|
1525
1527
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
@@ -1530,9 +1532,9 @@
|
|
|
1530
1532
|
direction="previous"
|
|
1531
1533
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
1532
1534
|
></fast-flipper>
|
|
1533
|
-
`},
|
|
1534
|
-
${
|
|
1535
|
-
|
|
1535
|
+
`},gn=hn.compose(Object.assign({baseName:"horizontal-scroll",template:pn,styles:un,shadowOptions:mn},vn));var fn=o(38938),bn=o(79840),yn=o(64739),wn=o(75030);const xn=()=>(fn.vI.add(wn.mRB,yn.NCV,bn.vnX),fn.vz.css()),Fn=(e,t)=>l.css`
|
|
1536
|
+
${xn()}
|
|
1537
|
+
`,$n=l.html`
|
|
1536
1538
|
<template>
|
|
1537
1539
|
<i
|
|
1538
1540
|
${(0,l.ref)("iElement")}
|
|
@@ -1542,7 +1544,7 @@
|
|
|
1542
1544
|
<slot></slot>
|
|
1543
1545
|
</i>
|
|
1544
1546
|
</template>
|
|
1545
|
-
`,
|
|
1547
|
+
`,Sn={mode:"open",delegatesFocus:!0},Dn={};var Cn;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Cn||(Cn={}));class _n 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,fn.N)({prefix:Cn[this.variant],iconName:this.name}),t=(0,fn.qv)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,w.__decorate)([l.observable],_n.prototype,"iElement",void 0),(0,w.__decorate)([l.attr],_n.prototype,"name",void 0),(0,w.__decorate)([l.attr],_n.prototype,"size",void 0),(0,w.__decorate)([l.attr],_n.prototype,"variant",void 0);const On=_n.compose(Object.assign({baseName:"icon",template:$n,styles:Fn,shadowOptions:Sn},Dn)),kn=(e,t)=>l.css`
|
|
1546
1548
|
${(0,s.listboxStyles)(e,t)}
|
|
1547
1549
|
|
|
1548
1550
|
:host {
|
|
@@ -1553,11 +1555,11 @@
|
|
|
1553
1555
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
1554
1556
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1555
1557
|
}
|
|
1556
|
-
`,
|
|
1558
|
+
`,Tn=(e,t)=>(0,n.listboxTemplate)(e,t);class Ln extends s.Listbox{}const An=void 0,Rn={},En=Ln.compose(Object.assign({baseName:"listbox",template:Tn,styles:kn,shadowOptions:An},Rn)),Nn=(e,t)=>l.css`
|
|
1557
1559
|
${(0,s.optionStyles)(e,t)}
|
|
1558
|
-
`,
|
|
1560
|
+
`,Mn=(e,t)=>(0,n.listboxOptionTemplate)(e,t);class In extends s.ListboxOption{}const Pn=void 0,Hn={},jn=In.compose(Object.assign({baseName:"option",template:Mn,styles:Nn,shadowOptions:Pn},Hn)),Bn=(e,t)=>l.css`
|
|
1559
1561
|
${(0,s.menuStyles)(e,t)}
|
|
1560
|
-
`,
|
|
1562
|
+
`,Gn=(e,t)=>(0,n.menuTemplate)(e,t);class zn extends s.Menu{}const Vn=void 0,Un={},Yn=zn.compose(Object.assign({baseName:"menu",template:Gn,styles:Bn,shadowOptions:Vn},Un)),Wn=(e,t)=>l.css`
|
|
1561
1563
|
${(0,s.menuItemStyles)(e,t)}
|
|
1562
1564
|
|
|
1563
1565
|
:host, :host(.indent-0[aria-haspopup='menu']) {
|
|
@@ -1571,11 +1573,11 @@
|
|
|
1571
1573
|
height: auto;
|
|
1572
1574
|
width: auto;
|
|
1573
1575
|
}
|
|
1574
|
-
`,
|
|
1576
|
+
`,qn=(e,t)=>(0,n.menuItemTemplate)(e,t);class Xn extends s.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const Kn=void 0,Zn={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 '},Qn=Xn.compose(Object.assign({baseName:"menu-item",template:qn,styles:Wn,shadowOptions:Kn},Zn)),Jn=l.css`
|
|
1575
1577
|
${Eo}
|
|
1576
|
-
`,
|
|
1578
|
+
`,es=l.html`
|
|
1577
1579
|
${Io}
|
|
1578
|
-
`,
|
|
1580
|
+
`,ts={mode:"open",delegatesFocus:!0},os={};class is extends jo{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.showModal()}}const as=is.compose(Object.assign({baseName:"modal",styles:Jn,template:es,shadowOptions:ts},os));var ns,ss=o(82940),ls=o(40001),rs=o.n(ls);!function(e){e.BELOW="below",e.ABOVE="above",e.DYNAMIC="dynamic"}(ns||(ns={}));const ds=230,cs=l.css`
|
|
1579
1581
|
.root {
|
|
1580
1582
|
position: relative;
|
|
1581
1583
|
width: inherit;
|
|
@@ -1702,7 +1704,7 @@
|
|
|
1702
1704
|
|
|
1703
1705
|
.visible {
|
|
1704
1706
|
visibility: visible;
|
|
1705
|
-
max-height: ${
|
|
1707
|
+
max-height: ${ds.toString()}px;
|
|
1706
1708
|
}
|
|
1707
1709
|
|
|
1708
1710
|
::slotted(foundation-checkbox),
|
|
@@ -1737,7 +1739,7 @@
|
|
|
1737
1739
|
.label-hidden {
|
|
1738
1740
|
display: none;
|
|
1739
1741
|
}
|
|
1740
|
-
|
|
1742
|
+
`;var us=o(32449),ps=o(9162),hs=o(5127),ms=o(26714);class vs extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=ss.WJ.MAX_ROWS_250,this.maxView=ss.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 ms.X(new Map)}criteriaChanged(e,t){const o=e!==(0,us.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===ps.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,hs.$)(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,us.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],vs.prototype,"connect",void 0),(0,w.__decorate)([mi.Yh],vs.prototype,"datasource",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],vs.prototype,"withGridInit",void 0),(0,w.__decorate)([l.attr],vs.prototype,"criteria",void 0),(0,w.__decorate)([l.attr],vs.prototype,"fields",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],vs.prototype,"isSnapshot",void 0),(0,w.__decorate)([l.attr],vs.prototype,"maxRows",void 0),(0,w.__decorate)([l.attr],vs.prototype,"maxView",void 0),(0,w.__decorate)([l.attr],vs.prototype,"orderBy",void 0),(0,w.__decorate)([l.attr],vs.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],vs.prototype,"reverse",void 0),(0,w.__decorate)([l.attr],vs.prototype,"rowId",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],vs.prototype,"withTimestampFormatting",void 0);let gs=class extends vs{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){var t;const o=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map((e=>({value:e[this.valueField],label:e[this.labelField]})));(null===(t=this.select)||void 0===t?void 0:t.async)&&(this.select.loading=!1),this.select.options=o}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"})],gs.prototype,"valueField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"label-field"})],gs.prototype,"labelField",void 0),gs=(0,w.__decorate)([(0,l.customElement)({name:"multiselect-datasource"})],gs);const fs=(e="foundation")=>l.html`
|
|
1741
1743
|
<label
|
|
1742
1744
|
part="label"
|
|
1743
1745
|
for="control"
|
|
@@ -1778,12 +1780,16 @@
|
|
|
1778
1780
|
<${e}-text-field
|
|
1779
1781
|
id="filter-search"
|
|
1780
1782
|
part="filter-search"
|
|
1783
|
+
value=${(0,ra.Z)((e=>e.filterSearchValue),"string","input")}
|
|
1781
1784
|
placeholder="${e=>e.getPlaceholder}"
|
|
1782
|
-
@input=${(e,t)=>e.
|
|
1785
|
+
@input=${(e,t)=>e.inputHandler()}
|
|
1783
1786
|
@change=${(e,t)=>e.changeHandler(t.event)}
|
|
1784
1787
|
></${e}-text-field>
|
|
1785
1788
|
`)}
|
|
1786
1789
|
<div class="checkbox-container">
|
|
1790
|
+
${(0,l.when)((e=>e.loading),l.html`
|
|
1791
|
+
<${e}-progress slot="indicator"></${e}-progress>
|
|
1792
|
+
`)}
|
|
1787
1793
|
${(0,l.when)((e=>e.all),l.html`
|
|
1788
1794
|
<${e}-checkbox
|
|
1789
1795
|
@click=${e=>e.selectCheckboxAll()}
|
|
@@ -1807,9 +1813,12 @@
|
|
|
1807
1813
|
</div>
|
|
1808
1814
|
</div>
|
|
1809
1815
|
</div>
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1816
|
+
<slot
|
|
1817
|
+
${(0,l.slotted)({property:"slottedDatasource",filter:e=>e instanceof gs})}
|
|
1818
|
+
></slot>
|
|
1819
|
+
`,bs=l.html`
|
|
1820
|
+
${fs()}
|
|
1821
|
+
`,ys=void 0,ws={};class xs extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.async=!1,this.debounce=500,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=ns.BELOW,this.initialisedOptions=!1}debounceChanged(e,t){this.debouncedInputHandler=rs()(this.asyncSetFilter,t)}openChanged(e,t){var o,i,a,n;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.arrowIcon)||void 0===o||o.classList.add("flipped"),null===(i=this.optionsElement)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(a=this.arrowIcon)||void 0===a||a.classList.remove("flipped"),null===(n=this.optionsElement)||void 0===n||n.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===ns.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!==ns.DYNAMIC||this.setDropdownPosition(),this.open=!this.open}setDropdownPosition(){var e,t;(this.scrollContainer||this.parentElement).clientHeight-(this.offsetTop-(this.scrollContainer||this.parentElement).scrollTop)<ds+this.offsetHeight?null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"):null===(t=this.optionsElement)||void 0===t||t.classList.remove("position-above")}optionGetter(e){return"string"!=typeof e?e.value:e}getItemLabel(e){let t;return e?(t="string"==typeof e?e:e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getDisplayValue(){let e="";switch(this.selectedOptions.length){case 0:e=this.getPlaceholder;break;case 1:{const t=this.options.find((e=>this.optionGetter(e)===this.selectedOptions[0]));e=this.getItemLabel(t);break}case this.options.length:e=`All ${this.name}`.trim();break;default:e=`${this.selectedOptions.length} Selected`}return e}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}get isAllSelected(){return!this.isAllOptionsDisabled&&this.selectedOptions.length===this.getEnabledOptionsCount()}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}getEnabledOptionsCount(){return this.options.length-this.options.filter(this.isOptionDisabled).length}selectCheckboxAll(){const e=this.selectedOptions.length===this.getEnabledOptionsCount();this.selectedOptions=e?[]:this.options.filter((e=>!this.isOptionDisabled(e))).map((e=>this.optionGetter(e))),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}setFilter(){this.filteredAvailableOptions=[...this.options.filter((e=>{var t;return("string"==typeof e?e:null!==(t=e.label)&&void 0!==t?t:e.value).toLowerCase().startsWith(this.filterSearchValue.toLowerCase())}))]}asyncSetFilter(){if(this.slottedDatasource.length>0){const e=this.slottedDatasource[0].datasource.resourceType;e===ss._g.DATASERVER&&this.dataserverCriteriaBuilder(),e===ss._g.REQUEST_SERVER&&this.requestServerCriteriaBuilder()}else this.loading=!1,te.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality.")}dataserverCriteriaBuilder(){var e;const t=new ji;t.withExpression((new Ui).withField(null!==(e=this.slottedDatasource[0].labelField)&&void 0!==e?e:this.slottedDatasource[0].valueField).withValue(this.filterSearchValue).withSerialiser(Vi).build()),this.slottedDatasource[0].criteria=t.build()}requestServerCriteriaBuilder(){var e;const t=null!==(e=this.slottedDatasource[0].labelField)&&void 0!==e?e:this.slottedDatasource[0].valueField;this.slottedDatasource[0].request={[t]:`${this.filterSearchValue}*`},this.slottedDatasource[0].fetchGenesisData()}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){ie(e,this)&&(this.open=!1)}}(0,w.__decorate)([l.attr],xs.prototype,"name",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],xs.prototype,"all",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],xs.prototype,"allSelected",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],xs.prototype,"search",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],xs.prototype,"disabled",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],xs.prototype,"async",void 0),(0,w.__decorate)([l.attr],xs.prototype,"debounce",void 0),(0,w.__decorate)([l.observable],xs.prototype,"defaultSlottedNodes",void 0),(0,w.__decorate)([l.observable],xs.prototype,"slottedDatasource",void 0),(0,w.__decorate)([l.observable],xs.prototype,"valueFormatter",void 0),(0,w.__decorate)([l.observable],xs.prototype,"loading",void 0),(0,w.__decorate)([l.observable],xs.prototype,"filterSearchValue",void 0),(0,w.__decorate)([l.observable],xs.prototype,"open",void 0),(0,w.__decorate)([l.observable],xs.prototype,"options",void 0),(0,w.__decorate)([l.observable],xs.prototype,"selectedOptions",void 0),(0,w.__decorate)([l.observable],xs.prototype,"filteredAvailableOptions",void 0),(0,w.__decorate)([l.observable],xs.prototype,"scrollContainer",void 0),(0,w.__decorate)([l.observable],xs.prototype,"position",void 0),(0,w.__decorate)([l.observable],xs.prototype,"onAllSelectedCallback",void 0),(0,w.__decorate)([l.volatile],xs.prototype,"getDisplayValue",null),(0,w.__decorate)([l.volatile],xs.prototype,"getPlaceholder",null),(0,w.__decorate)([l.volatile],xs.prototype,"isAllSelected",null),(0,w.__decorate)([l.volatile],xs.prototype,"isAllOptionsDisabled",null);const Fs=xs.compose(Object.assign({baseName:"multiselect",template:bs,styles:cs,shadowOptions:ys},ws));class $s{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 Ss=(e,t)=>l.css`
|
|
1813
1822
|
${(0,s.numberFieldStyles)(e,t)}
|
|
1814
1823
|
::part(label) {
|
|
1815
1824
|
color: var(--neutral-foreground-rest);
|
|
@@ -1839,7 +1848,7 @@
|
|
|
1839
1848
|
::part(end) {
|
|
1840
1849
|
margin-inline-end: unset;
|
|
1841
1850
|
}
|
|
1842
|
-
`,
|
|
1851
|
+
`,Ds=(e,t)=>l.html`
|
|
1843
1852
|
<template class="${e=>e.readOnly?"readonly":""}">
|
|
1844
1853
|
<label
|
|
1845
1854
|
part="label"
|
|
@@ -1908,7 +1917,7 @@
|
|
|
1908
1917
|
${(0,n.endSlotTemplate)(e,t)}
|
|
1909
1918
|
</div>
|
|
1910
1919
|
</template>
|
|
1911
|
-
`;class
|
|
1920
|
+
`;class Cs 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 $s(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 $s(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],Cs.prototype,"autocomplete",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Cs.prototype,"hideStep",void 0),(0,w.__decorate)([l.attr],Cs.prototype,"value",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],Cs.prototype,"withFormatting",void 0),(0,w.__decorate)([l.attr],Cs.prototype,"locale",void 0);const _s={delegatesFocus:!0,mode:"open"},Os={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 '},ks=Cs.compose(Object.assign({baseName:"number-field",template:Ds,styles:Ss,shadowOptions:_s},Os));var Ts=o(86975);const Ls={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class As 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,Ts.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],As.prototype,"selector",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],As.prototype,"show",void 0),(0,w.__decorate)([l.attr],As.prototype,"event",void 0),(0,w.__decorate)([l.attr],As.prototype,"placement",void 0),(0,w.__decorate)([(0,l.attr)({converter:Ls})],As.prototype,"offset",void 0),(0,w.__decorate)([(0,l.attr)({mode:"boolean"})],As.prototype,"flip",void 0);const Rs=l.css`
|
|
1912
1921
|
:host {
|
|
1913
1922
|
display: none;
|
|
1914
1923
|
inset: unset !important;
|
|
@@ -1918,22 +1927,22 @@
|
|
|
1918
1927
|
:host([show]) {
|
|
1919
1928
|
display: block;
|
|
1920
1929
|
}
|
|
1921
|
-
`,
|
|
1930
|
+
`,Es=l.html`
|
|
1922
1931
|
<template>
|
|
1923
1932
|
<slot></slot>
|
|
1924
1933
|
</template>
|
|
1925
|
-
`,
|
|
1934
|
+
`,Ns=As.compose({baseName:"popper",styles:Rs,template:Es}),Ms=(e,t)=>l.css`
|
|
1926
1935
|
${(0,s.progressStyles)(e,t)}
|
|
1927
1936
|
:host {
|
|
1928
1937
|
height: calc(var(--design-unit) * 2px);
|
|
1929
1938
|
}
|
|
1930
|
-
`,
|
|
1939
|
+
`,Is=(e,t)=>(0,n.progressTemplate)(e,t);class Ps extends s.Progress{}const Hs=void 0,js={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},Bs=Ps.compose(Object.assign({baseName:"progress",template:Is,styles:Ms,shadowOptions:Hs},js)),Gs=(e,t)=>l.css`
|
|
1931
1940
|
${(0,s.progressRingStyles)(e,t)}
|
|
1932
|
-
`,
|
|
1941
|
+
`,zs=(e,t)=>(0,n.progressRingTemplate)(e,t);class Vs extends s.Progress{}const Us=void 0,Ys={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 '},Ws=Vs.compose(Object.assign({baseName:"progress-ring",template:zs,styles:Gs,shadowOptions:Us},Ys)),qs=(e,t)=>l.css`
|
|
1933
1942
|
${(0,s.radioStyles)(e,t)}
|
|
1934
|
-
`,
|
|
1943
|
+
`,Xs=(e,t)=>(0,n.radioTemplate)(e,t);class Ks extends s.Radio{}const Zs=void 0,Qs={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},Js=Ks.compose(Object.assign({baseName:"radio",template:Xs,styles:qs,shadowOptions:Zs},Qs)),el=(e,t)=>l.css`
|
|
1935
1944
|
${(0,s.radioGroupStyles)(e,t)}
|
|
1936
|
-
`,
|
|
1945
|
+
`,tl=(e,t)=>(0,n.radioGroupTemplate)(e,t);class ol extends s.RadioGroup{}const il=void 0,al={},nl=ol.compose(Object.assign({baseName:"radio-group",template:tl,styles:el,shadowOptions:il},al)),sl=(e,t)=>l.css`
|
|
1937
1946
|
${(0,s.radioGroupStyles)(e,t)}
|
|
1938
1947
|
::slotted(foundation-segmented-item:first-of-type) {
|
|
1939
1948
|
border-radius: calc(var(--control-corner-radius) * 1px) 0 0
|
|
@@ -1946,7 +1955,7 @@
|
|
|
1946
1955
|
calc(var(--control-corner-radius) * 1px) 0;
|
|
1947
1956
|
border-left-width: 0;
|
|
1948
1957
|
}
|
|
1949
|
-
`,
|
|
1958
|
+
`,ll=(e,t)=>(0,n.radioGroupTemplate)(e,t);class rl extends n.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.checked=!1})),super.valueChanged()}}const dl=void 0,cl={},ul=rl.compose(Object.assign({baseName:"segmented-control",template:ll,styles:sl,shadowOptions:dl},cl)),pl=(e,t)=>l.css`
|
|
1950
1959
|
${(0,s.radioStyles)(e,t)}
|
|
1951
1960
|
:host {
|
|
1952
1961
|
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
|
|
@@ -1957,7 +1966,7 @@
|
|
|
1957
1966
|
:host([aria-checked='true']) {
|
|
1958
1967
|
background: var(--accent-foreground-rest);
|
|
1959
1968
|
}
|
|
1960
|
-
`,
|
|
1969
|
+
`,hl=(e,t)=>l.html`
|
|
1961
1970
|
<template
|
|
1962
1971
|
role="radio"
|
|
1963
1972
|
aria-checked="${e=>e.checked}"
|
|
@@ -1971,21 +1980,21 @@
|
|
|
1971
1980
|
<slot></slot>
|
|
1972
1981
|
</span>
|
|
1973
1982
|
</template>
|
|
1974
|
-
`;class
|
|
1983
|
+
`;class ml extends s.Radio{}const vl=void 0,gl={},fl=ml.compose(Object.assign({baseName:"segmented-item",template:hl,styles:pl,shadowOptions:vl},gl)),bl=(e,t)=>l.css`
|
|
1975
1984
|
${(0,s.selectStyles)(e,t)}
|
|
1976
|
-
`,
|
|
1985
|
+
`,yl=(e,t)=>(0,n.selectTemplate)(e,t);class wl extends s.Select{}const xl=void 0,Fl={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 '},$l=wl.compose(Object.assign({baseName:"select",template:yl,styles:bl,shadowOptions:xl},Fl)),Sl=(e,t)=>l.css`
|
|
1977
1986
|
${(0,s.skeletonStyles)(e,t)}
|
|
1978
|
-
`,
|
|
1987
|
+
`,Dl=(e,t)=>(0,n.skeletonTemplate)(e,t);class Cl extends s.Skeleton{}const _l=void 0,Ol={},kl=Cl.compose(Object.assign({baseName:"skeleton",template:Dl,styles:Sl,shadowOptions:_l},Ol)),Tl=(e,t)=>l.css`
|
|
1979
1988
|
${(0,s.sliderStyles)(e,t)}
|
|
1980
1989
|
.track-progress {
|
|
1981
1990
|
background-color: var(--accent-fill-rest);
|
|
1982
1991
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1983
1992
|
}
|
|
1984
|
-
`;var
|
|
1993
|
+
`;var Ll=o(75511),Al=o(62515);const Rl=(e,t)=>l.html`
|
|
1985
1994
|
<template
|
|
1986
1995
|
role="slider"
|
|
1987
1996
|
class="${e=>e.readOnly?"readonly":""}
|
|
1988
|
-
${e=>e.orientation||
|
|
1997
|
+
${e=>e.orientation||Ll.i.horizontal}"
|
|
1989
1998
|
tabindex="${e=>e.disabled?null:0}"
|
|
1990
1999
|
aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
|
|
1991
2000
|
aria-valuenow="${e=>e.value}"
|
|
@@ -2000,7 +2009,7 @@
|
|
|
2000
2009
|
<div ${(0,l.ref)("track")} part="track-container" class="track">
|
|
2001
2010
|
<div
|
|
2002
2011
|
class="track-progress"
|
|
2003
|
-
style="${e=>{const t=1-(0,
|
|
2012
|
+
style="${e=>{const t=1-(0,Al.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;`}}"
|
|
2004
2013
|
></div>
|
|
2005
2014
|
</div>
|
|
2006
2015
|
<slot></slot>
|
|
@@ -2014,9 +2023,9 @@
|
|
|
2014
2023
|
</div>
|
|
2015
2024
|
</div>
|
|
2016
2025
|
</template>
|
|
2017
|
-
`;class
|
|
2026
|
+
`;class El extends s.Slider{}const Nl=void 0,Ml={thumb:'\n <div class="thumb-cursor"></div>\n '},Il=El.compose(Object.assign({baseName:"slider",template:Rl,styles:Tl,shadowOptions:Nl},Ml)),Pl=(e,t)=>l.css`
|
|
2018
2027
|
${(0,s.sliderLabelStyles)(e,t)}
|
|
2019
|
-
`,
|
|
2028
|
+
`,Hl=(e,t)=>(0,n.sliderLabelTemplate)(e,t);class jl extends s.SliderLabel{}const Bl=void 0,Gl={},zl=jl.compose(Object.assign({baseName:"slider-label",template:Hl,styles:Pl,shadowOptions:Bl},Gl)),Vl=l.css`
|
|
2020
2029
|
@keyframes append-animate {
|
|
2021
2030
|
from {
|
|
2022
2031
|
transform: translateX(100%);
|
|
@@ -2098,7 +2107,7 @@
|
|
|
2098
2107
|
flex: 1;
|
|
2099
2108
|
overflow: hidden;
|
|
2100
2109
|
}
|
|
2101
|
-
`,
|
|
2110
|
+
`,Ul=e=>l.html`
|
|
2102
2111
|
<div class="snackbar ${e=>e.deleteAnimation}" ${(0,l.ref)("snackbar")}>
|
|
2103
2112
|
<div part="content" class="content">
|
|
2104
2113
|
<div>
|
|
@@ -2117,9 +2126,9 @@
|
|
|
2117
2126
|
`)}
|
|
2118
2127
|
</div>
|
|
2119
2128
|
</div>
|
|
2120
|
-
`,
|
|
2121
|
-
${e=>
|
|
2122
|
-
`,
|
|
2129
|
+
`,Yl=l.html`
|
|
2130
|
+
${e=>Ul(ne(e))}
|
|
2131
|
+
`,Wl={mode:"open",delegatesFocus:!0};class ql 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],ql.prototype,"error",void 0),(0,w.__decorate)([l.observable],ql.prototype,"notification",void 0),(0,w.__decorate)([l.observable],ql.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],ql.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],ql.prototype,"autoClose",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"type"})],ql.prototype,"type",void 0);const Xl=ql.compose({baseName:"snackbar",styles:Vl,template:Yl,shadowOptions:Wl}),Kl=(e,t)=>l.css`
|
|
2123
2132
|
${(0,s.switchStyles)(e,t)}
|
|
2124
2133
|
.checked-indicator {
|
|
2125
2134
|
transform: scale(1.3);
|
|
@@ -2132,24 +2141,24 @@
|
|
|
2132
2141
|
.checked-indicator {
|
|
2133
2142
|
border-radius: calc(var(--control-corner-radius) * 2px);
|
|
2134
2143
|
}
|
|
2135
|
-
`,
|
|
2144
|
+
`,Zl=(e,t)=>(0,n.switchTemplate)(e,t);class Ql extends s.Switch{}const Jl=void 0,er={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},tr=Ql.compose(Object.assign({baseName:"switch",template:Zl,styles:Kl,shadowOptions:Jl},er)),or=(e,t)=>l.css`
|
|
2136
2145
|
${(0,s.tabStyles)(e,t)}
|
|
2137
|
-
`,
|
|
2146
|
+
`,ir=(e,t)=>(0,n.tabTemplate)(e,t);class ar extends s.Tab{}const nr=void 0,sr={},lr=ar.compose(Object.assign({baseName:"tab",template:ir,styles:or,shadowOptions:nr},sr)),rr=(e,t)=>l.css`
|
|
2138
2147
|
${(0,s.tabPanelStyles)(e,t)}
|
|
2139
|
-
`,
|
|
2148
|
+
`,dr=(e,t)=>(0,n.tabPanelTemplate)(e,t);class cr extends s.TabPanel{}const ur=void 0,pr={},hr=cr.compose(Object.assign({baseName:"tab-panel",template:dr,styles:rr,shadowOptions:ur},pr)),mr=(e,t)=>l.css`
|
|
2140
2149
|
${(0,s.tabsStyles)(e,t)}
|
|
2141
|
-
`,
|
|
2150
|
+
`,vr=(e,t)=>(0,n.tabsTemplate)(e,t);class gr extends s.Tabs{}const fr=void 0,br={},yr=gr.compose(Object.assign({baseName:"tabs",template:vr,styles:mr,shadowOptions:fr},br)),wr=(e,t)=>l.css`
|
|
2142
2151
|
${(0,s.textAreaStyles)(e,t)}
|
|
2143
2152
|
:host .control {
|
|
2144
2153
|
padding: calc(var(--design-unit) * 3px);
|
|
2145
2154
|
}
|
|
2146
|
-
`,
|
|
2155
|
+
`,xr=(e,t)=>(0,n.textAreaTemplate)(e,t);class Fr extends s.TextArea{}const $r=void 0,Sr={},Dr=Fr.compose(Object.assign({baseName:"text-area",template:xr,styles:wr,shadowOptions:$r},Sr)),{create:Cr}=n.DesignToken,_r=Cr("active-color-scheme").withDefault((e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?"light":"dark")),Or=(e,t)=>l.css`
|
|
2147
2156
|
${(0,s.textFieldStyles)(e,t)}
|
|
2148
2157
|
|
|
2149
2158
|
input {
|
|
2150
|
-
color-scheme: ${
|
|
2159
|
+
color-scheme: ${_r};
|
|
2151
2160
|
}
|
|
2152
|
-
`,
|
|
2161
|
+
`,kr=(e,t)=>l.html`
|
|
2153
2162
|
<template
|
|
2154
2163
|
class="
|
|
2155
2164
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -2211,7 +2220,7 @@
|
|
|
2211
2220
|
${(0,n.endSlotTemplate)(e,t)}
|
|
2212
2221
|
</div>
|
|
2213
2222
|
</template>
|
|
2214
|
-
`;class
|
|
2223
|
+
`;class Tr 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],Tr.prototype,"autocomplete",void 0),(0,w.__decorate)([l.attr],Tr.prototype,"autocapitalize",void 0),(0,w.__decorate)([l.attr],Tr.prototype,"step",void 0);const Lr={mode:"open",delegatesFocus:!0},Ar={},Rr=Tr.compose(Object.assign({baseName:"text-field",template:kr,styles:Or,shadowOptions:Lr},Ar)),Er=l.css`
|
|
2215
2224
|
@keyframes append-animate {
|
|
2216
2225
|
from {
|
|
2217
2226
|
transform: translateX(100%);
|
|
@@ -2312,7 +2321,7 @@
|
|
|
2312
2321
|
.close-icon svg {
|
|
2313
2322
|
cursor: pointer;
|
|
2314
2323
|
}
|
|
2315
|
-
`,
|
|
2324
|
+
`,Nr=l.html`
|
|
2316
2325
|
<div class="toast ${e=>e.deleteAnimation}" ${(0,l.ref)("toast")}>
|
|
2317
2326
|
<div class="content-wrapper">
|
|
2318
2327
|
<div part="top" class="top">
|
|
@@ -2330,11 +2339,11 @@
|
|
|
2330
2339
|
</div>
|
|
2331
2340
|
</div>
|
|
2332
2341
|
</div>
|
|
2333
|
-
`,
|
|
2342
|
+
`,Mr={mode:"open",delegatesFocus:!0},Ir={};class Pr 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],Pr.prototype,"deleteAnimation",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout"})],Pr.prototype,"closeTimeout",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"auto-close"})],Pr.prototype,"autoClose",void 0);const Hr=Pr.compose(Object.assign({baseName:"toast",styles:Er,template:Nr,shadowOptions:Mr},Ir)),jr=(e,t)=>l.css`
|
|
2334
2343
|
${(0,s.toolbarStyles)(e,t)}
|
|
2335
|
-
`,
|
|
2344
|
+
`,Br=(e,t)=>(0,n.toolbarTemplate)(e,t);class Gr extends s.Toolbar{}const zr=void 0,Vr={},Ur=Gr.compose(Object.assign({baseName:"toolbar",template:Br,styles:jr,shadowOptions:zr},Vr)),Yr=(e,t)=>l.css`
|
|
2336
2345
|
${(0,s.tooltipStyles)(e,t)}
|
|
2337
|
-
`,
|
|
2346
|
+
`,Wr=(e,t)=>(0,n.tooltipTemplate)(e,t);class qr extends s.Tooltip{}const Xr=void 0,Kr={},Zr=qr.compose(Object.assign({baseName:"tooltip",template:Wr,styles:Yr,shadowOptions:Xr},Kr)),Qr=(e,t)=>l.css`
|
|
2338
2347
|
${(0,s.treeItemStyles)(e,t)}
|
|
2339
2348
|
:host {
|
|
2340
2349
|
--focus-stroke-width: 0;
|
|
@@ -2351,9 +2360,9 @@
|
|
|
2351
2360
|
.positioning-region {
|
|
2352
2361
|
height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
|
|
2353
2362
|
}
|
|
2354
|
-
`,
|
|
2363
|
+
`,Jr=(e,t)=>(0,n.treeItemTemplate)(e,t);class ed extends s.TreeItem{}const td=void 0,od={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>'},id=ed.compose(Object.assign({baseName:"tree-item",template:Jr,styles:Qr,shadowOptions:td},od)),ad=(e,t)=>l.css`
|
|
2355
2364
|
${(0,s.treeViewStyles)(e,t)}
|
|
2356
|
-
`,
|
|
2365
|
+
`,nd=(e,t)=>(0,n.treeViewTemplate)(e,t);class sd extends n.TreeView{}const ld=void 0,rd={},dd=sd.compose(Object.assign({baseName:"tree-view",template:nd,styles:ad,shadowOptions:ld},rd)),cd=(e,t)=>l.css`
|
|
2357
2366
|
.container {
|
|
2358
2367
|
position: relative;
|
|
2359
2368
|
width: 100%;
|
|
@@ -2373,7 +2382,7 @@
|
|
|
2373
2382
|
overflow: hidden;
|
|
2374
2383
|
text-overflow: ellipsis;
|
|
2375
2384
|
}
|
|
2376
|
-
`,
|
|
2385
|
+
`,ud=l.html`
|
|
2377
2386
|
<div class="container" value=${e=>e.value}>
|
|
2378
2387
|
<fast-text-field
|
|
2379
2388
|
class="url-input"
|
|
@@ -2389,9 +2398,9 @@
|
|
|
2389
2398
|
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
2390
2399
|
`)}
|
|
2391
2400
|
</div>
|
|
2392
|
-
`,
|
|
2401
|
+
`,pd=void 0,hd={};class md 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],md.prototype,"value",void 0),(0,w.__decorate)([l.observable],md.prototype,"focused",void 0);const vd=md.compose(Object.assign({baseName:"url-input",template:ud,styles:cd,shadowOptions:pd},hd)),gd={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:sa,foundationFilter:fa,foundationFilterBar:_a,foundationFlexLayout:Na,foundationFlipper:Ba,foundationFlyout:Xa,foundationGridLayout:nn,foundationGridLayoutItem:cn,foundationHorizontalScroll:gn,foundationIcon:On,foundationListbox:En,foundationListboxOption:jn,foundationMenu:Yn,foundationMenuItem:Qn,foundationModal:as,foundationMultiselect:Fs,foundationNumberField:ks,foundationProgress:Bs,foundationPopper:Ns,foundationProgressRing:Ws,foundationRadio:Js,foundationRadioGroup:nl,foundationSegmentedControl:ul,foundationSegmentedItem:fl,foundationSelect:$l,foundationSkeleton:kl,foundationSlider:Il,foundationSliderLabel:zl,foundationSnackbar:Xl,foundationSwitch:tr,foundationTab:lr,foundationTabPanel:hr,foundationTabs:yr,foundationTextArea:Dr,foundationTextField:Rr,foundationToast:Hr,foundationToolbar:Ur,foundationTooltip:Zr,foundationTreeItem:id,foundationTreeView:dd,foundationUrlInput:vd,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};function fd(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 bd=(e,t="foundation")=>{e&&uo(i,a,e);return fd(n.DesignSystem.getOrCreate(e).withPrefix(t))};class yd extends l.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return l.cssPartial`${e}: ${t}`}createTokensCSS(){const e=[];for(const[t,o]of Object.entries(this.tokenMap))e.push(this.createTokenPartial(t,o).createCSS());return e}createCSS(){return this.createTokensCSS().join(";")}}let wd=class extends vs{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.")}};wd=(0,w.__decorate)([(0,l.customElement)({name:"data-grid-datasource"})],wd);const xd=l.html`
|
|
2393
2402
|
<template ${(0,l.ref)("notificationListener")}>
|
|
2394
2403
|
<slot></slot>
|
|
2395
2404
|
</template>
|
|
2396
|
-
`;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)}}]);
|
|
2397
|
-
//# sourceMappingURL=701.
|
|
2405
|
+
`;var Fd;!function(e){e.NOTIFICATION_EVENT="notification-event"}(Fd||(Fd={}));const $d=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"}`},Sd=(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},Dd=()=>{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"),_d={alert:e=>{alert($d(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=Sd("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 D=document.createElement("div");let C;D.setAttribute("slot","date"),D.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.toast)||void 0===s?void 0:s.buttons)&&(null===(d=null===(r=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===r?void 0:r.buttons)||void 0===d?void 0:d.length)&&(C=document.createElement("div"),C.setAttribute("slot","bottom"),e.config.toast.buttons.forEach((t=>{const o=document.createElement(`${w}-button`);o.textContent=t.placeholder||"example placeholder",o.addEventListener("click",(()=>{const{details:i}=e.config.toast;if(t.action)return t.action({details:i,buttonElement:o,toastElement:F})})),t.appearance&&o.setAttribute("appearance",t.appearance),C.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(D),C&&F.appendChild(C),x.appendChild(F)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);Sd("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Sd("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 Dd()})(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}},Od=(e,t,o)=>{var i,a;Cd.log({message:$d(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=>{_d[i]&&_d[i](e,t,o)}))};class kd{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 Td{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 Ld={mode:"open",delegatesFocus:!0};class Ad 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(),Od(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,hs.$)(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})))),Od((new kd).withTitle(o).withBody(i).withCreatedAt(n).withToast((new Td).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],Ad.prototype,"notificationListener",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"resource-name"})],Ad.prototype,"resourceName",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Ad.prototype,"closeTimeout",void 0),(0,w.__decorate)([l.observable],Ad.prototype,"toastButtons",void 0),(0,w.__decorate)([mi.Yh],Ad.prototype,"datasource",void 0);const Rd=Ad.compose({baseName:"notification-listener",template:xd,shadowOptions:Ld});var Ed;let Nd=Ed=class extends vs{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 Ed||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"})],Nd.prototype,"labelField",void 0),(0,w.__decorate)([(0,l.attr)({attribute:"value-field"})],Nd.prototype,"valueField",void 0),(0,w.__decorate)([l.observable],Nd.prototype,"labelFormatter",void 0),Nd=Ed=(0,w.__decorate)([(0,l.customElement)({name:"options-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=()=>bd().register(gd)}}]);
|
|
2406
|
+
//# sourceMappingURL=701.3cd3872ef439fa424e418ebd7e4fd718.js.map
|