@genesislcap/design-system-configurator 14.151.1 → 14.152.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/{200.200.fa7d31eaa004bc88b7fd.js → 200.200.501de7750bb5788bf98d.js} +1 -1
- package/dist/374.249ab8f81d0d35301b57bb444e936db4.js.map +1 -0
- package/dist/{859.859.4bce0b5f71bbf53dbc27.js → 374.374.a68953aa993a645b49d5.js} +176 -176
- package/dist/{394.394.14dc33e6f5859431b5f6.js → 394.394.f3763778645ef9baa298.js} +1 -1
- package/dist/614.614.00f40dcb6436dda7b655.js +3 -0
- package/dist/614.ab2243ef12594b651aabfda555ad6136.js.map +1 -0
- package/dist/{460.460.80c95e86a09065a234b7.js → 752.752.05a20dfc920b2cab88c9.js} +266 -266
- package/dist/752.811e806b2b5f2d1cc09e556119b156bf.js.map +1 -0
- package/dist/755.755.dd6eb221b053916a2cd1.js +2 -0
- package/dist/{755.a3cac47cc4cd6e213d2b372c956c558b.js.map → 755.9a7aecd6f809d3501c72cb59e24e35af.js.map} +1 -1
- package/dist/{8.8.0dc5d63951f9b088d545.js → 8.8.4a3ca68fe47ef21eed08.js} +1 -1
- package/dist/962.851c748777f449b1391192f1dc5df2a8.js.map +1 -0
- package/dist/962.962.374fd45cd8c8388d9a1c.js +2 -0
- package/dist/designSystemConfigurator.c2772da1979d22fc3aea0dab7727f07b.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.5e39102adfc4bec0d83b05d833c8351e.js.map +1 -0
- package/dist/main.7f25dd2e859c3d6937cf.js +2 -0
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/460.900b13449ef6bb091b57f436ba91653b.js.map +0 -1
- package/dist/618.44834f0d0360b9eb5f59427872e2510c.js.map +0 -1
- package/dist/618.618.356fe1ef7a9bf86eff53.js +0 -3
- package/dist/644.2201d52f8ea6cd0639210ea0710cd219.js.map +0 -1
- package/dist/644.644.33957a4e7e2ace0acd79.js +0 -3
- package/dist/644.644.33957a4e7e2ace0acd79.js.LICENSE.txt +0 -1
- package/dist/755.755.3c8ad4f4c68a6b10b6d5.js +0 -2
- package/dist/859.436cfee9c26ff04b9e11e3778d6a9b91.js.map +0 -1
- package/dist/designSystemConfigurator.67f697c68fb44ec1e7d0b186d7e7f08d.js.map +0 -1
- package/dist/main.b70de8236779767ae64d.js +0 -2
- package/dist/main.bc9cf5ca84b0fcd9c1bafcd6c16ac505.js.map +0 -1
- /package/dist/{618.618.356fe1ef7a9bf86eff53.js.LICENSE.txt → 614.614.00f40dcb6436dda7b655.js.LICENSE.txt} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[460],{64460:(e,t,o)=>{o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>T,Anchor:()=>I,AnchoredRegion:()=>B,Avatar:()=>q,Badge:()=>J,Banner:()=>de,BaseDatasource:()=>ot,Breadcrumb:()=>he,BreadcrumbItem:()=>ye,Button:()=>_e,COMBO_INPUT_MIN_LENGTH:()=>wl,CSSVarsTokenMapper:()=>hc,Calendar:()=>Le,Card:()=>Me,Checkbox:()=>ze,Combobox:()=>xt,ConnectionIndicator:()=>Ot,DEFUALT_FILTER_BAR_COLUMNS:()=>ja,DataGrid:()=>Lt,DataGridCell:()=>Nt,DataGridDatasource:()=>mc,DataGridRow:()=>jt,DatePicker:()=>co,Dialog:()=>di,DialogElement:()=>ri,Disclosure:()=>hi,Divider:()=>yi,DropdownMenu:()=>Di,ErrorBanner:()=>Ai,ErrorBoundary:()=>Yi,ErrorBoundaryEvent:()=>Ri,ErrorDialog:()=>Qi,FaPrefixFromStyle:()=>Vn,FileUpload:()=>xa,Filter:()=>Aa,FilterBar:()=>Va,FilterEvents:()=>Ea,FlexLayout:()=>Xa,FlexMediaQueriesEnum:()=>Ga,Flipper:()=>en,Flyout:()=>dn,FoundationDesignSystemProvider:()=>Jo,FoundationRouteCollection:()=>Ac,FoundationRouter:()=>Ec,FoundationRouterConfiguration:()=>Ic,GridLayout:()=>xn,GridLayoutItem:()=>_n,GridMediaQueriesEnum:()=>hn,HorizontalScroll:()=>kn,INPUT_MIN_LENGTH:()=>xl,Icon:()=>zn,Listbox:()=>qn,ListboxOption:()=>Jn,Menu:()=>ns,MenuItem:()=>us,Modal:()=>ys,Multiselect:()=>ks,MultiselectDatasource:()=>Fs,NotificationListener:()=>fc,NumberField:()=>Is,OptionsDatasource:()=>vt,Popper:()=>Bs,Progress:()=>Ys,ProgressRing:()=>Qs,Radio:()=>al,RadioGroup:()=>cl,SCROLL_TIMEOUT:()=>yl,SearchBar:()=>Sl,SearchBarCombobox:()=>kl,SegmentedControl:()=>Rl,SegmentedItem:()=>jl,Select:()=>ql,Skeleton:()=>Jl,Slider:()=>lr,SliderLabel:()=>hr,Snackbar:()=>wr,Stepper:()=>Or,StepperTab:()=>Ir,StepperTabPanel:()=>Hr,Switch:()=>Ur,Tab:()=>Zr,TabPanel:()=>id,Tabs:()=>dd,TextArea:()=>vd,TextField:()=>Sd,Toast:()=>Ld,Toolbar:()=>Rd,Tooltip:()=>jd,TreeItem:()=>qd,TreeView:()=>Jd,UrlInput:()=>rc,accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,accentPaletteValue:()=>Vo,actionsMenuBaseStyles:()=>$,baseComponents:()=>cc,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>Go,black:()=>mo,bodyFont:()=>s.bodyFont,closeIcon:()=>ii,configureDesignSystem:()=>jo,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>Yo,createDesignSystemProxy:()=>uc,createFormData:()=>ha,crossIcon:()=>vl,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>f,defaultAnchorConfig:()=>N,defaultAnchoredRegionConfig:()=>V,defaultAvatarConfig:()=>K,defaultBadgeConfig:()=>te,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>we,defaultButtonConfig:()=>Oe,defaultCalendarConfig:()=>Ae,defaultCardConfig:()=>He,defaultCheckboxConfig:()=>Ue,defaultComboboxConfig:()=>$t,defaultDataGridCellConfig:()=>Pt,defaultDataGridConfig:()=>At,defaultDataGridRowConfig:()=>zt,defaultDatePickerConfig:()=>ro,defaultDialogConfig:()=>li,defaultDisclosureConfig:()=>vi,defaultDividerConfig:()=>wi,defaultFileUploadConfig:()=>$a,defaultFillColor:()=>go,defaultFlexLayoutConfig:()=>Ka,defaultFlipperConfig:()=>on,defaultFlyoutConfig:()=>un,defaultGridLayoutConfig:()=>fn,defaultGridLayoutItemConfig:()=>Fn,defaultHorizontalScrollConfig:()=>Ln,defaultIconConfig:()=>jn,defaultListboxConfig:()=>Kn,defaultListboxOptionConfig:()=>ts,defaultMenuConfig:()=>ls,defaultMenuItemConfig:()=>hs,defaultModalConfig:()=>fs,defaultMultiselectConfig:()=>Ds,defaultNavItemPredicate:()=>$c,defaultNeutralForegroundContrast:()=>ko,defaultNumberFieldConfig:()=>Ns,defaultPlacementIndexPadding:()=>Sc,defaultProgressConfig:()=>Ws,defaultProgressRingConfig:()=>el,defaultRadioConfig:()=>sl,defaultRadioGroupConfig:()=>pl,defaultSearchBarComboboxConfig:()=>Ll,defaultSearchBarConfig:()=>_l,defaultSegmentedControlConfig:()=>Ml,defaultSegmentedItemConfig:()=>zl,defaultSelectConfig:()=>Kl,defaultSkeletonConfig:()=>tr,defaultSliderConfig:()=>dr,defaultSliderLabelConfig:()=>vr,defaultStepperConfig:()=>kr,defaultStepperTabConfig:()=>Nr,defaultStepperTabPanelConfig:()=>jr,defaultSwitchConfig:()=>qr,defaultTabConfig:()=>Jr,defaultTabPanelConfig:()=>nd,defaultTabsConfig:()=>ud,defaultTextAreaConfig:()=>bd,defaultTextFieldConfig:()=>_d,defaultToastConfig:()=>Td,defaultToolbarConfig:()=>Md,defaultTooltipConfig:()=>zd,defaultTreeItemConfig:()=>Kd,defaultTreeViewConfig:()=>tc,defaultUrlInputConfig:()=>lc,defineFactory:()=>xc,density:()=>s.density,designToken:()=>Io,designUnit:()=>s.designUnit,designUnitValue:()=>qo,direction:()=>s.direction,directionValue:()=>Uo,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>va,dropdownMenuBaseStyles:()=>Si,errorDialogTemplate:()=>Xi,extractMenuItems:()=>_i,fillColor:()=>s.fillColor,filterBarTemplate:()=>Ha,flyoutAnimationTime:()=>nn,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:()=>b,foundationAccordionItemStyles:()=>m,foundationAccordionItemTemplate:()=>v,foundationAccordionShadowOptions:()=>u,foundationAccordionStyles:()=>r,foundationAccordionTemplate:()=>d,foundationActionsMenu:()=>L,foundationActionsMenuStyles:()=>S,foundationActionsMenuTemplate:()=>k,foundationAnchor:()=>M,foundationAnchorShadowOptions:()=>R,foundationAnchorStyles:()=>E,foundationAnchorTemplate:()=>A,foundationAnchoredRegion:()=>z,foundationAnchoredRegionShadowOptions:()=>j,foundationAnchoredRegionStyles:()=>H,foundationAnchoredRegionTemplate:()=>P,foundationAvatar:()=>X,foundationAvatarShadowOptions:()=>W,foundationAvatarStyles:()=>G,foundationAvatarTemplate:()=>U,foundationBadge:()=>oe,foundationBadgeShadowOptions:()=>ee,foundationBadgeStyles:()=>Z,foundationBadgeTemplate:()=>Q,foundationBanner:()=>ce,foundationBannerShadowOptions:()=>re,foundationBannerStyles:()=>ne,foundationBannerTemplate:()=>le,foundationBreadcrumb:()=>ge,foundationBreadcrumbItem:()=>$e,foundationBreadcrumbItemShadowOptions:()=>xe,foundationBreadcrumbItemStyles:()=>be,foundationBreadcrumbItemTemplate:()=>fe,foundationBreadcrumbShadowOptions:()=>me,foundationBreadcrumbStyles:()=>ue,foundationBreadcrumbTemplate:()=>pe,foundationButton:()=>De,foundationButtonShadowOptions:()=>Ce,foundationButtonStyles:()=>Se,foundationButtonTemplate:()=>Fe,foundationCalendar:()=>Ie,foundationCalendarShadowOptions:()=>Ee,foundationCalendarStyles:()=>ke,foundationCalendarTemplate:()=>Te,foundationCard:()=>Be,foundationCardShadowOptions:()=>Pe,foundationCardStyles:()=>Re,foundationCardTemplate:()=>Ne,foundationCheckbox:()=>Ye,foundationCheckboxShadowOptions:()=>Ge,foundationCheckboxStyles:()=>je,foundationCheckboxTemplate:()=>Ve,foundationCombobox:()=>St,foundationComboboxShadowOptions:()=>wt,foundationComboboxStyles:()=>gt,foundationComboboxTemplate:()=>bt,foundationConnectionIndicator:()=>Dt,foundationConnectionIndicatorStyles:()=>_t,foundationConnectionIndicatorTemplate:()=>Ct,foundationDataGrid:()=>It,foundationDataGridCell:()=>Ht,foundationDataGridCellShadowOptions:()=>Mt,foundationDataGridCellStyles:()=>Rt,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>Gt,foundationDataGridRowShadowOptions:()=>Vt,foundationDataGridRowStyles:()=>Bt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>Et,foundationDataGridStyles:()=>kt,foundationDataGridTemplate:()=>Tt,foundationDatePicker:()=>uo,foundationDatePickerShadowOptions:()=>lo,foundationDatePickerStyles:()=>ao,foundationDatePickerTemplate:()=>so,foundationDesignSystemProvider:()=>ei,foundationDialog:()=>ci,foundationDialogShadowOptions:()=>si,foundationDialogStyles:()=>oi,foundationDialogTemplate:()=>ni,foundationDisclosure:()=>gi,foundationDisclosureShadowOptions:()=>mi,foundationDisclosureStyles:()=>ui,foundationDisclosureTemplate:()=>pi,foundationDivider:()=>$i,foundationDividerShadowOptions:()=>xi,foundationDividerStyles:()=>bi,foundationDividerTemplate:()=>fi,foundationDropdownMenu:()=>ki,foundationDropdownMenuStyles:()=>Fi,foundationDropdownMenuTemplate:()=>Oi,foundationErrorBanner:()=>Ii,foundationErrorBannerShadowOptions:()=>Ei,foundationErrorBannerTemplate:()=>Li,foundationErrorBoundary:()=>qi,foundationErrorBoundaryShadowOptions:()=>Ui,foundationErrorBoundaryTemplate:()=>Gi,foundationErrorDialog:()=>Ji,foundationErrorDialogShadowOptions:()=>Zi,foundationErrorDialogStyles:()=>Wi,foundationFileUpload:()=>Sa,foundationFileUploadShadowOptions:()=>wa,foundationFileUploadStyles:()=>oa,foundationFileUploadTemplate:()=>aa,foundationFilter:()=>Ia,foundationFilterBar:()=>za,foundationFilterBarStyles:()=>Na,foundationFilterBarTemplate:()=>Ba,foundationFilterStyles:()=>Fa,foundationFilterTemplate:()=>La,foundationFlexLayout:()=>Za,foundationFlexLayoutShadowOptions:()=>Wa,foundationFlexLayoutStyles:()=>Ya,foundationFlexLayoutTemplate:()=>qa,foundationFlipper:()=>an,foundationFlipperShadowOptions:()=>tn,foundationFlipperStyles:()=>Qa,foundationFlipperTemplate:()=>Ja,foundationFlyout:()=>pn,foundationFlyoutShadowOptions:()=>cn,foundationFlyoutStyles:()=>sn,foundationFlyoutTemplate:()=>rn,foundationGridLayout:()=>wn,foundationGridLayoutItem:()=>Cn,foundationGridLayoutItemShadowOptions:()=>Sn,foundationGridLayoutItemTemplate:()=>$n,foundationGridLayoutShadowOptions:()=>bn,foundationGridLayoutStyles:()=>vn,foundationGridLayoutTemplate:()=>gn,foundationHorizontalScroll:()=>En,foundationHorizontalScrollShadowOptions:()=>Tn,foundationHorizontalScrollStyles:()=>On,foundationHorizontalScrollTemplate:()=>Dn,foundationIcon:()=>Gn,foundationIconShadowOptions:()=>Bn,foundationIconStyles:()=>Pn,foundationIconTemplate:()=>Hn,foundationListbox:()=>Xn,foundationListboxOption:()=>os,foundationListboxOptionShadowOptions:()=>es,foundationListboxOptionStyles:()=>Zn,foundationListboxOptionTemplate:()=>Qn,foundationListboxShadowOptions:()=>Wn,foundationListboxStyles:()=>Un,foundationListboxTemplate:()=>Yn,foundationMenu:()=>rs,foundationMenuItem:()=>ms,foundationMenuItemShadowOptions:()=>ps,foundationMenuItemStyles:()=>ds,foundationMenuItemTemplate:()=>cs,foundationMenuShadowOptions:()=>ss,foundationMenuStyles:()=>is,foundationMenuTemplate:()=>as,foundationModal:()=>xs,foundationModalShadowOptions:()=>bs,foundationModalStyles:()=>vs,foundationModalTemplate:()=>gs,foundationMultiselect:()=>Ts,foundationMultiselectShadowOptions:()=>Os,foundationNotificationListener:()=>yc,foundationNotificationListenerShadowOptions:()=>bc,foundationNotificationListenerTemplate:()=>vc,foundationNumberField:()=>Ms,foundationNumberFieldShadowOptions:()=>Rs,foundationNumberFieldStyles:()=>Es,foundationNumberFieldTemplate:()=>As,foundationPopper:()=>zs,foundationProgress:()=>Ks,foundationProgressRing:()=>tl,foundationProgressRingShadowOptions:()=>Js,foundationProgressRingStyles:()=>Xs,foundationProgressRingTemplate:()=>Zs,foundationProgressShadowOptions:()=>qs,foundationProgressStyles:()=>Gs,foundationProgressTemplate:()=>Us,foundationRadio:()=>ll,foundationRadioGroup:()=>hl,foundationRadioGroupShadowOptions:()=>ul,foundationRadioGroupStyles:()=>rl,foundationRadioGroupTemplate:()=>dl,foundationRadioShadowOptions:()=>nl,foundationRadioStyles:()=>ol,foundationRadioTemplate:()=>il,foundationSearchBar:()=>Cl,foundationSearchBarCombobox:()=>El,foundationSearchBarComboboxShadowOptions:()=>Tl,foundationSearchBarComboboxStyles:()=>Ol,foundationSearchBarComboboxTemplate:()=>Dl,foundationSearchBarShadowOptions:()=>Fl,foundationSearchBarStyles:()=>ml,foundationSearchBarTemplate:()=>fl,foundationSegmentedControl:()=>Pl,foundationSegmentedControlShadowOptions:()=>Nl,foundationSegmentedControlStyles:()=>Al,foundationSegmentedControlTemplate:()=>Il,foundationSegmentedItem:()=>Gl,foundationSegmentedItemShadowOptions:()=>Vl,foundationSegmentedItemStyles:()=>Hl,foundationSegmentedItemTemplate:()=>Bl,foundationSelect:()=>Xl,foundationSelectShadowOptions:()=>Wl,foundationSelectStyles:()=>Ul,foundationSelectTemplate:()=>Yl,foundationSkeleton:()=>or,foundationSkeletonShadowOptions:()=>er,foundationSkeletonStyles:()=>Zl,foundationSkeletonTemplate:()=>Ql,foundationSlider:()=>cr,foundationSliderLabel:()=>gr,foundationSliderLabelShadowOptions:()=>mr,foundationSliderLabelStyles:()=>ur,foundationSliderLabelTemplate:()=>pr,foundationSliderShadowOptions:()=>rr,foundationSliderStyles:()=>ir,foundationSliderTemplate:()=>sr,foundationSnackbar:()=>$r,foundationSnackbarShadowOptions:()=>xr,foundationSnackbarStyles:()=>br,foundationSnackbarTemplate:()=>yr,foundationStepper:()=>Tr,foundationStepperShadowOptions:()=>Dr,foundationStepperStyles:()=>Sr,foundationStepperTab:()=>Mr,foundationStepperTabPanel:()=>Vr,foundationStepperTabPanelShadowOptions:()=>Br,foundationStepperTabPanelTemplate:()=>Pr,foundationStepperTabShadowOptions:()=>Rr,foundationStepperTabStyles:()=>Lr,foundationStepperTabTemplate:()=>Ar,foundationStepperTemplate:()=>Cr,foundationSwitch:()=>Wr,foundationSwitchShadowOptions:()=>Yr,foundationSwitchStyles:()=>zr,foundationSwitchTemplate:()=>Gr,foundationTab:()=>ed,foundationTabPanel:()=>sd,foundationTabPanelShadowOptions:()=>ad,foundationTabPanelStyles:()=>td,foundationTabPanelTemplate:()=>od,foundationTabShadowOptions:()=>Qr,foundationTabStyles:()=>Kr,foundationTabTemplate:()=>Xr,foundationTabs:()=>pd,foundationTabsShadowOptions:()=>cd,foundationTabsStyles:()=>ld,foundationTabsTemplate:()=>rd,foundationTextArea:()=>fd,foundationTextAreaShadowOptions:()=>gd,foundationTextAreaStyles:()=>hd,foundationTextAreaTemplate:()=>md,foundationTextField:()=>Cd,foundationTextFieldShadowOptions:()=>Fd,foundationTextFieldStyles:()=>wd,foundationTextFieldTemplate:()=>$d,foundationToast:()=>Ed,foundationToastShadowOptions:()=>kd,foundationToastStyles:()=>Od,foundationToastTemplate:()=>Dd,foundationToolbar:()=>Pd,foundationToolbarShadowOptions:()=>Nd,foundationToolbarStyles:()=>Ad,foundationToolbarTemplate:()=>Id,foundationTooltip:()=>Gd,foundationTooltipShadowOptions:()=>Vd,foundationTooltipStyles:()=>Hd,foundationTooltipTemplate:()=>Bd,foundationTreeItem:()=>Xd,foundationTreeItemShadowOptions:()=>Wd,foundationTreeItemStyles:()=>Ud,foundationTreeItemTemplate:()=>Yd,foundationTreeView:()=>oc,foundationTreeViewShadowOptions:()=>ec,foundationTreeViewStyles:()=>Zd,foundationTreeViewTemplate:()=>Qd,foundationUrlInput:()=>dc,foundationUrlInputShadowOptions:()=>sc,foundationUrlInputStyles:()=>ic,foundationUrlInputTemplate:()=>nc,fuiAccentPalette:()=>_o,fuiAccentSwatch:()=>Fo,fuiCardFillColor:()=>Do,fuiCardForegroundColor:()=>Lo,fuiDefaultCardFillColor:()=>fo,fuiDefaultCardPalette:()=>yo,fuiFillColor:()=>Oo,fuiNeutralPalette:()=>$o,fuiNeutralSwatch:()=>wo,getBannerTemplate:()=>se,getCriteriaBuilder:()=>$l,getDefaultConfig:()=>Po,getDialogTemplate:()=>ai,getDropdownMenuTemplate:()=>Ci,getErrorDialogTemplate:()=>Ki,getExports:()=>Ho,getFontawesomeIconsCss:()=>Mn,getNavItems:()=>Fc,getPrefixedDatePicker:()=>no,getPrefixedErrorBanner:()=>Ti,getPrefixedFileUpload:()=>ia,getPrefixedFilterTemplate:()=>Ta,getPrefixedFlyout:()=>ln,getPrefixedMultiselect:()=>_s,getPrefixedSearchBar:()=>bl,getPrefixedSnackbar:()=>fr,getPrefixedStepper:()=>_r,getPrefixedStepperTab:()=>Er,getPrefixedUrlInput:()=>ac,getTypeRampValue:()=>Bo,jsonConverter:()=>Hs,mapType:()=>Ma,maxheight:()=>$s,media:()=>Y,menuTemplate:()=>O,mixinFoundationFontFamily:()=>Ko,multiselectStyles:()=>Ss,multiselectTemplate:()=>Cs,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:()=>To,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralPaletteValue:()=>zo,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,paletteFromHex:()=>No,plusIcon:()=>gl,provideDesignSystem:()=>pc,provideTokens:()=>Ao,registerFoundationDesignSystem:()=>Rc,singleOptionTemplate:()=>D,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>Ro,tagFor:()=>wc,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:()=>ma,white:()=>ho});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:()=>ko,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:()=>Do,fuiCardForegroundColor:()=>Lo,fuiFillColor:()=>Oo,neutralFillActive:()=>s.neutralFillActive,neutralFillActiveDelta:()=>s.neutralFillActiveDelta,neutralFillFocus:()=>s.neutralFillFocus,neutralFillFocusDelta:()=>s.neutralFillFocusDelta,neutralFillHover:()=>s.neutralFillHover,neutralFillHoverDelta:()=>s.neutralFillHoverDelta,neutralFillInputActive:()=>s.neutralFillInputActive,neutralFillInputActiveDelta:()=>s.neutralFillInputActiveDelta,neutralFillInputFocus:()=>s.neutralFillInputFocus,neutralFillInputFocusDelta:()=>s.neutralFillInputFocusDelta,neutralFillInputHover:()=>s.neutralFillInputHover,neutralFillInputHoverDelta:()=>s.neutralFillInputHoverDelta,neutralFillInputRest:()=>s.neutralFillInputRest,neutralFillInputRestDelta:()=>s.neutralFillInputRestDelta,neutralFillLayerRest:()=>s.neutralFillLayerRest,neutralFillLayerRestDelta:()=>s.neutralFillLayerRestDelta,neutralFillRest:()=>s.neutralFillRest,neutralFillRestDelta:()=>s.neutralFillRestDelta,neutralFillStealthActive:()=>s.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>s.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>s.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>s.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>s.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>s.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>s.neutralFillStealthRest,neutralFillStealthRestDelta:()=>s.neutralFillStealthRestDelta,neutralFillStrongActive:()=>s.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>s.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>s.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>s.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>s.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>s.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>s.neutralFillStrongRest,neutralFillStrongRestDelta:()=>s.neutralFillStrongRestDelta,neutralForeground:()=>To,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,strokeWidth:()=>s.strokeWidth,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight});var a={};o.r(a),o.d(a,{accentPaletteValue:()=>Vo,baseLayerLuminanceValue:()=>Go,controlCornerRadiusValue:()=>Yo,designUnitValue:()=>qo,directionValue:()=>Uo,neutralPaletteValue:()=>zo});var n=o(99667),s=o(41663),l=o(79292);const r=(e,t)=>l.css`
|
|
1
|
+
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[752],{26980:(e,t,o)=>{"use strict";o.d(t,{KA:()=>r,Q3:()=>n,Vj:()=>d,Ze:()=>s});o(93964);var i=o(96335);function a(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function n(){if(i.jU){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function s(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}function r(e){return function(e){for(var t,o=Object.create(null),i=/([^&=]+)=?([^&]*)/g;t=i.exec(e);){var n=a(t[1]),s=a(t[2]);"[]"===n.substring(n.length-2)?(o[n=n.substring(0,n.length-2)]||(o[n]=[])).push(s):o[n]=""===s||s}for(var r in o){var d=r.split("[");d.length>1&&(l(o,d.map((function(e){return e.replace(/[?[\]\\ ]/g,"")})),o[r]),delete o[r])}return o}(function(e){if(e){var t=e.match(/\?(.*)/);return t&&t[1]?t[1].split("#")[0]:""}return i.jU&&window.location.search.substring(1)}(e))}function l(e,t,o){for(var i=t.length-1,a=0;a<i;++a){var n=t[a];if("__proto__"===n||"constructor"===n)break;n in e||(e[n]={}),e=e[n]}e[t[i]]=o}function d(){for(var e="",t=0,o=4294967295*Math.random()|0;t++<36;){var i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],a=15&o;e+="-"==i||"4"==i?i:("x"==i?a:3&a|8).toString(16),o=t%8==0?4294967295*Math.random()|0:o>>4}return e}},55466:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,n={},s=function(e){return(e=+e)+(e>68?1900:2e3)},r=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),o=60*t[1]+(+t[2]||0);return 0===o?0:"+"===t[0]?-o:o}(e)}],d=function(e){var t=n[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var o,i=n.meridiem;if(i){for(var a=1;a<=24;a+=1)if(e.indexOf(i(a,0,t))>-1){o=a>12;break}}else o=e===(t?"pm":"PM");return o},u={A:[a,function(e){this.afternoon=c(e,!1)}],a:[a,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,r("seconds")],ss:[i,r("seconds")],m:[i,r("minutes")],mm:[i,r("minutes")],H:[i,r("hours")],h:[i,r("hours")],HH:[i,r("hours")],hh:[i,r("hours")],D:[i,r("day")],DD:[o,r("day")],Do:[a,function(e){var t=n.ordinal,o=e.match(/\d+/);if(this.day=o[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],M:[i,r("month")],MM:[o,r("month")],MMM:[a,function(e){var t=d("months"),o=(d("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(o<1)throw new Error;this.month=o%12||o}],MMMM:[a,function(e){var t=d("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,r("year")],YY:[o,function(e){this.year=s(e)}],YYYY:[/\d{4}/,r("year")],Z:l,ZZ:l};function p(o){var i,a;i=o,a=n&&n.formats;for(var s=(o=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,o,i){var n=i&&i.toUpperCase();return o||a[i]||e[i]||a[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))).match(t),r=s.length,l=0;l<r;l+=1){var d=s[l],c=u[d],p=c&&c[0],h=c&&c[1];s[l]=h?{regex:p,parser:h}:d.replace(/^\[|\]$/g,"")}return function(e){for(var t={},o=0,i=0;o<r;o+=1){var a=s[o];if("string"==typeof a)i+=a.length;else{var n=a.regex,l=a.parser,d=e.slice(i),c=n.exec(d)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var o=e.hours;t?o<12&&(e.hours+=12):12===o&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,o){o.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var i=t.prototype,a=i.parse;i.parse=function(e){var t=e.date,i=e.utc,s=e.args;this.$u=i;var r=s[1];if("string"==typeof r){var l=!0===s[2],d=!0===s[3],c=l||d,u=s[2];d&&(u=s[2]),n=this.$locale(),!l&&u&&(n=o.Ls[u]),this.$d=function(e,t,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=p(t)(e),a=i.year,n=i.month,s=i.day,r=i.hours,l=i.minutes,d=i.seconds,c=i.milliseconds,u=i.zone,h=new Date,m=s||(a||n?1:h.getDate()),v=a||h.getFullYear(),g=0;a&&!n||(g=n>0?n-1:h.getMonth());var f=r||0,b=l||0,y=d||0,x=c||0;return u?new Date(Date.UTC(v,g,m,f,b,y,x+60*u.offset*1e3)):o?new Date(Date.UTC(v,g,m,f,b,y,x)):new Date(v,g,m,f,b,y,x)}catch(e){return new Date("")}}(t,r,i),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),c&&t!=this.format(r)&&(this.$d=new Date("")),n={}}else if(r instanceof Array)for(var h=r.length,m=1;m<=h;m+=1){s[1]=r[m-1];var v=o.apply(this,s);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}m===h&&(this.$d=new Date(""))}else a.call(this,e)}}}()},78113:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}()},82839:function(e){e.exports=function(){"use strict";return function(e,t,o){var i=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},n=function(e,t,o,i,n){var s=e.name?e:e.$locale(),r=a(s[t]),l=a(s[o]),d=r||l.map((function(e){return e.slice(0,i)}));if(!n)return d;var c=s.weekStart;return d.map((function(e,t){return d[(t+(c||0))%7]}))},s=function(){return o.Ls[o.locale()]},r=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):n(e,"months")},monthsShort:function(t){return t?t.format("MMM"):n(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):n(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):n(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):n(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return r(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return l.bind(this)()},o.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(t){return r(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},o.months=function(){return n(s(),"months")},o.monthsShort=function(){return n(s(),"monthsShort","months",3)},o.weekdays=function(e){return n(s(),"weekdays",null,null,e)},o.weekdaysShort=function(e){return n(s(),"weekdaysShort","weekdays",3,e)},o.weekdaysMin=function(e){return n(s(),"weekdaysMin","weekdays",2,e)}}}()},55477:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,o,i){var a=o.prototype,n=a.format;i.en.formats=e,a.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var o=this.$locale().formats,i=function(t,o){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,i,a){var n=a&&a.toUpperCase();return i||o[a]||e[a]||o[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))}(t,void 0===o?{}:o);return n.call(this,i)}}}()},93964:function(e){e.exports=function(e,t,o,i,a){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:a;return e===a?o:e}},64460:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>T,Anchor:()=>I,AnchoredRegion:()=>B,Avatar:()=>W,Badge:()=>J,Banner:()=>de,BaseDatasource:()=>ot,Breadcrumb:()=>he,BreadcrumbItem:()=>ye,Button:()=>_e,COMBO_INPUT_MIN_LENGTH:()=>wr,CSSVarsTokenMapper:()=>hc,Calendar:()=>Le,Card:()=>Ne,Checkbox:()=>ze,Combobox:()=>xt,ConnectionIndicator:()=>Dt,DEFUALT_FILTER_BAR_COLUMNS:()=>ja,DataGrid:()=>Lt,DataGridCell:()=>Mt,DataGridDatasource:()=>mc,DataGridRow:()=>jt,DatePicker:()=>co,Dialog:()=>di,DialogElement:()=>li,Disclosure:()=>hi,Divider:()=>yi,DropdownMenu:()=>Oi,ErrorBanner:()=>Ei,ErrorBoundary:()=>Ui,ErrorBoundaryEvent:()=>Ri,ErrorDialog:()=>Qi,FaPrefixFromStyle:()=>Vn,FileUpload:()=>xa,Filter:()=>Ea,FilterBar:()=>Va,FilterEvents:()=>Aa,FlexLayout:()=>Xa,FlexMediaQueriesEnum:()=>Ga,Flipper:()=>en,Flyout:()=>dn,FoundationDesignSystemProvider:()=>Jo,FoundationRouteCollection:()=>Ec,FoundationRouter:()=>Ac,FoundationRouterConfiguration:()=>Ic,GridLayout:()=>xn,GridLayoutItem:()=>_n,GridMediaQueriesEnum:()=>hn,HorizontalScroll:()=>kn,INPUT_MIN_LENGTH:()=>xr,Icon:()=>zn,Listbox:()=>Wn,ListboxOption:()=>Jn,Menu:()=>ns,MenuItem:()=>us,Modal:()=>ys,Multiselect:()=>ks,MultiselectDatasource:()=>Fs,NotificationListener:()=>bc,NumberField:()=>Is,OptionsDatasource:()=>vt,Popper:()=>Bs,Progress:()=>Us,ProgressRing:()=>Qs,Radio:()=>ar,RadioGroup:()=>cr,SCROLL_TIMEOUT:()=>yr,SearchBar:()=>Sr,SearchBarCombobox:()=>kr,SegmentedControl:()=>Rr,SegmentedItem:()=>jr,Select:()=>Wr,Skeleton:()=>Jr,Slider:()=>rl,SliderLabel:()=>hl,Snackbar:()=>wl,Stepper:()=>Dl,StepperTab:()=>Il,StepperTabPanel:()=>Hl,Switch:()=>Yl,Tab:()=>Kl,TabPanel:()=>id,Tabs:()=>dd,TextArea:()=>vd,TextField:()=>Sd,Toast:()=>Ld,Toolbar:()=>Rd,Tooltip:()=>jd,TreeItem:()=>Wd,TreeView:()=>Jd,UrlInput:()=>lc,accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,accentPaletteValue:()=>Vo,actionsMenuBaseStyles:()=>$,baseComponents:()=>cc,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>Go,black:()=>mo,bodyFont:()=>s.bodyFont,closeIcon:()=>ii,configureDesignSystem:()=>jo,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>Uo,createDesignSystemProxy:()=>uc,createFormData:()=>ha,crossIcon:()=>vr,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>b,defaultAnchorConfig:()=>M,defaultAnchoredRegionConfig:()=>V,defaultAvatarConfig:()=>Z,defaultBadgeConfig:()=>te,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>we,defaultButtonConfig:()=>De,defaultCalendarConfig:()=>Ee,defaultCardConfig:()=>He,defaultCheckboxConfig:()=>Ye,defaultComboboxConfig:()=>$t,defaultDataGridCellConfig:()=>Pt,defaultDataGridConfig:()=>Et,defaultDataGridRowConfig:()=>zt,defaultDatePickerConfig:()=>lo,defaultDialogConfig:()=>ri,defaultDisclosureConfig:()=>vi,defaultDividerConfig:()=>wi,defaultFileUploadConfig:()=>$a,defaultFillColor:()=>go,defaultFlexLayoutConfig:()=>Za,defaultFlipperConfig:()=>on,defaultFlyoutConfig:()=>un,defaultGridLayoutConfig:()=>bn,defaultGridLayoutItemConfig:()=>Fn,defaultHorizontalScrollConfig:()=>Ln,defaultIconConfig:()=>jn,defaultListboxConfig:()=>Zn,defaultListboxOptionConfig:()=>ts,defaultMenuConfig:()=>rs,defaultMenuItemConfig:()=>hs,defaultModalConfig:()=>bs,defaultMultiselectConfig:()=>Os,defaultNavItemPredicate:()=>$c,defaultNeutralForegroundContrast:()=>ko,defaultNumberFieldConfig:()=>Ms,defaultPlacementIndexPadding:()=>Sc,defaultProgressConfig:()=>qs,defaultProgressRingConfig:()=>er,defaultRadioConfig:()=>sr,defaultRadioGroupConfig:()=>pr,defaultSearchBarComboboxConfig:()=>Lr,defaultSearchBarConfig:()=>_r,defaultSegmentedControlConfig:()=>Nr,defaultSegmentedItemConfig:()=>zr,defaultSelectConfig:()=>Zr,defaultSkeletonConfig:()=>tl,defaultSliderConfig:()=>dl,defaultSliderLabelConfig:()=>vl,defaultStepperConfig:()=>kl,defaultStepperTabConfig:()=>Ml,defaultStepperTabPanelConfig:()=>jl,defaultSwitchConfig:()=>Wl,defaultTabConfig:()=>Jl,defaultTabPanelConfig:()=>nd,defaultTabsConfig:()=>ud,defaultTextAreaConfig:()=>fd,defaultTextFieldConfig:()=>_d,defaultToastConfig:()=>Td,defaultToolbarConfig:()=>Nd,defaultTooltipConfig:()=>zd,defaultTreeItemConfig:()=>Zd,defaultTreeViewConfig:()=>tc,defaultUrlInputConfig:()=>rc,defineFactory:()=>xc,density:()=>s.density,designToken:()=>Io,designUnit:()=>s.designUnit,designUnitValue:()=>Wo,direction:()=>s.direction,directionValue:()=>Yo,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>va,dropdownMenuBaseStyles:()=>Si,errorDialogTemplate:()=>Xi,extractMenuItems:()=>_i,fillColor:()=>s.fillColor,filterBarTemplate:()=>Ha,flyoutAnimationTime:()=>nn,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:()=>l,foundationAccordionTemplate:()=>d,foundationActionsMenu:()=>L,foundationActionsMenuStyles:()=>S,foundationActionsMenuTemplate:()=>k,foundationAnchor:()=>N,foundationAnchorShadowOptions:()=>R,foundationAnchorStyles:()=>A,foundationAnchorTemplate:()=>E,foundationAnchoredRegion:()=>z,foundationAnchoredRegionShadowOptions:()=>j,foundationAnchoredRegionStyles:()=>H,foundationAnchoredRegionTemplate:()=>P,foundationAvatar:()=>X,foundationAvatarShadowOptions:()=>q,foundationAvatarStyles:()=>G,foundationAvatarTemplate:()=>Y,foundationBadge:()=>oe,foundationBadgeShadowOptions:()=>ee,foundationBadgeStyles:()=>K,foundationBadgeTemplate:()=>Q,foundationBanner:()=>ce,foundationBannerShadowOptions:()=>le,foundationBannerStyles:()=>ne,foundationBannerTemplate:()=>re,foundationBreadcrumb:()=>ge,foundationBreadcrumbItem:()=>$e,foundationBreadcrumbItemShadowOptions:()=>xe,foundationBreadcrumbItemStyles:()=>fe,foundationBreadcrumbItemTemplate:()=>be,foundationBreadcrumbShadowOptions:()=>me,foundationBreadcrumbStyles:()=>ue,foundationBreadcrumbTemplate:()=>pe,foundationButton:()=>Oe,foundationButtonShadowOptions:()=>Ce,foundationButtonStyles:()=>Se,foundationButtonTemplate:()=>Fe,foundationCalendar:()=>Ie,foundationCalendarShadowOptions:()=>Ae,foundationCalendarStyles:()=>ke,foundationCalendarTemplate:()=>Te,foundationCard:()=>Be,foundationCardShadowOptions:()=>Pe,foundationCardStyles:()=>Re,foundationCardTemplate:()=>Me,foundationCheckbox:()=>Ue,foundationCheckboxShadowOptions:()=>Ge,foundationCheckboxStyles:()=>je,foundationCheckboxTemplate:()=>Ve,foundationCombobox:()=>St,foundationComboboxShadowOptions:()=>wt,foundationComboboxStyles:()=>gt,foundationComboboxTemplate:()=>ft,foundationConnectionIndicator:()=>Ot,foundationConnectionIndicatorStyles:()=>_t,foundationConnectionIndicatorTemplate:()=>Ct,foundationDataGrid:()=>It,foundationDataGridCell:()=>Ht,foundationDataGridCellShadowOptions:()=>Nt,foundationDataGridCellStyles:()=>Rt,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>Gt,foundationDataGridRowShadowOptions:()=>Vt,foundationDataGridRowStyles:()=>Bt,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>At,foundationDataGridStyles:()=>kt,foundationDataGridTemplate:()=>Tt,foundationDatePicker:()=>uo,foundationDatePickerShadowOptions:()=>ro,foundationDatePickerStyles:()=>ao,foundationDatePickerTemplate:()=>so,foundationDesignSystemProvider:()=>ei,foundationDialog:()=>ci,foundationDialogShadowOptions:()=>si,foundationDialogStyles:()=>oi,foundationDialogTemplate:()=>ni,foundationDisclosure:()=>gi,foundationDisclosureShadowOptions:()=>mi,foundationDisclosureStyles:()=>ui,foundationDisclosureTemplate:()=>pi,foundationDivider:()=>$i,foundationDividerShadowOptions:()=>xi,foundationDividerStyles:()=>fi,foundationDividerTemplate:()=>bi,foundationDropdownMenu:()=>ki,foundationDropdownMenuStyles:()=>Fi,foundationDropdownMenuTemplate:()=>Di,foundationErrorBanner:()=>Ii,foundationErrorBannerShadowOptions:()=>Ai,foundationErrorBannerTemplate:()=>Li,foundationErrorBoundary:()=>Wi,foundationErrorBoundaryShadowOptions:()=>Yi,foundationErrorBoundaryTemplate:()=>Gi,foundationErrorDialog:()=>Ji,foundationErrorDialogShadowOptions:()=>Ki,foundationErrorDialogStyles:()=>qi,foundationFileUpload:()=>Sa,foundationFileUploadShadowOptions:()=>wa,foundationFileUploadStyles:()=>oa,foundationFileUploadTemplate:()=>aa,foundationFilter:()=>Ia,foundationFilterBar:()=>za,foundationFilterBarStyles:()=>Ma,foundationFilterBarTemplate:()=>Ba,foundationFilterStyles:()=>Fa,foundationFilterTemplate:()=>La,foundationFlexLayout:()=>Ka,foundationFlexLayoutShadowOptions:()=>qa,foundationFlexLayoutStyles:()=>Ua,foundationFlexLayoutTemplate:()=>Wa,foundationFlipper:()=>an,foundationFlipperShadowOptions:()=>tn,foundationFlipperStyles:()=>Qa,foundationFlipperTemplate:()=>Ja,foundationFlyout:()=>pn,foundationFlyoutShadowOptions:()=>cn,foundationFlyoutStyles:()=>sn,foundationFlyoutTemplate:()=>ln,foundationGridLayout:()=>wn,foundationGridLayoutItem:()=>Cn,foundationGridLayoutItemShadowOptions:()=>Sn,foundationGridLayoutItemTemplate:()=>$n,foundationGridLayoutShadowOptions:()=>fn,foundationGridLayoutStyles:()=>vn,foundationGridLayoutTemplate:()=>gn,foundationHorizontalScroll:()=>An,foundationHorizontalScrollShadowOptions:()=>Tn,foundationHorizontalScrollStyles:()=>Dn,foundationHorizontalScrollTemplate:()=>On,foundationIcon:()=>Gn,foundationIconShadowOptions:()=>Bn,foundationIconStyles:()=>Pn,foundationIconTemplate:()=>Hn,foundationListbox:()=>Xn,foundationListboxOption:()=>os,foundationListboxOptionShadowOptions:()=>es,foundationListboxOptionStyles:()=>Kn,foundationListboxOptionTemplate:()=>Qn,foundationListboxShadowOptions:()=>qn,foundationListboxStyles:()=>Yn,foundationListboxTemplate:()=>Un,foundationMenu:()=>ls,foundationMenuItem:()=>ms,foundationMenuItemShadowOptions:()=>ps,foundationMenuItemStyles:()=>ds,foundationMenuItemTemplate:()=>cs,foundationMenuShadowOptions:()=>ss,foundationMenuStyles:()=>is,foundationMenuTemplate:()=>as,foundationModal:()=>xs,foundationModalShadowOptions:()=>fs,foundationModalStyles:()=>vs,foundationModalTemplate:()=>gs,foundationMultiselect:()=>Ts,foundationMultiselectShadowOptions:()=>Ds,foundationNotificationListener:()=>yc,foundationNotificationListenerShadowOptions:()=>fc,foundationNotificationListenerTemplate:()=>vc,foundationNumberField:()=>Ns,foundationNumberFieldShadowOptions:()=>Rs,foundationNumberFieldStyles:()=>As,foundationNumberFieldTemplate:()=>Es,foundationPopper:()=>zs,foundationProgress:()=>Zs,foundationProgressRing:()=>tr,foundationProgressRingShadowOptions:()=>Js,foundationProgressRingStyles:()=>Xs,foundationProgressRingTemplate:()=>Ks,foundationProgressShadowOptions:()=>Ws,foundationProgressStyles:()=>Gs,foundationProgressTemplate:()=>Ys,foundationRadio:()=>rr,foundationRadioGroup:()=>hr,foundationRadioGroupShadowOptions:()=>ur,foundationRadioGroupStyles:()=>lr,foundationRadioGroupTemplate:()=>dr,foundationRadioShadowOptions:()=>nr,foundationRadioStyles:()=>or,foundationRadioTemplate:()=>ir,foundationSearchBar:()=>Cr,foundationSearchBarCombobox:()=>Ar,foundationSearchBarComboboxShadowOptions:()=>Tr,foundationSearchBarComboboxStyles:()=>Dr,foundationSearchBarComboboxTemplate:()=>Or,foundationSearchBarShadowOptions:()=>Fr,foundationSearchBarStyles:()=>mr,foundationSearchBarTemplate:()=>br,foundationSegmentedControl:()=>Pr,foundationSegmentedControlShadowOptions:()=>Mr,foundationSegmentedControlStyles:()=>Er,foundationSegmentedControlTemplate:()=>Ir,foundationSegmentedItem:()=>Gr,foundationSegmentedItemShadowOptions:()=>Vr,foundationSegmentedItemStyles:()=>Hr,foundationSegmentedItemTemplate:()=>Br,foundationSelect:()=>Xr,foundationSelectShadowOptions:()=>qr,foundationSelectStyles:()=>Yr,foundationSelectTemplate:()=>Ur,foundationSkeleton:()=>ol,foundationSkeletonShadowOptions:()=>el,foundationSkeletonStyles:()=>Kr,foundationSkeletonTemplate:()=>Qr,foundationSlider:()=>cl,foundationSliderLabel:()=>gl,foundationSliderLabelShadowOptions:()=>ml,foundationSliderLabelStyles:()=>ul,foundationSliderLabelTemplate:()=>pl,foundationSliderShadowOptions:()=>ll,foundationSliderStyles:()=>il,foundationSliderTemplate:()=>sl,foundationSnackbar:()=>$l,foundationSnackbarShadowOptions:()=>xl,foundationSnackbarStyles:()=>fl,foundationSnackbarTemplate:()=>yl,foundationStepper:()=>Tl,foundationStepperShadowOptions:()=>Ol,foundationStepperStyles:()=>Sl,foundationStepperTab:()=>Nl,foundationStepperTabPanel:()=>Vl,foundationStepperTabPanelShadowOptions:()=>Bl,foundationStepperTabPanelTemplate:()=>Pl,foundationStepperTabShadowOptions:()=>Rl,foundationStepperTabStyles:()=>Ll,foundationStepperTabTemplate:()=>El,foundationStepperTemplate:()=>Cl,foundationSwitch:()=>ql,foundationSwitchShadowOptions:()=>Ul,foundationSwitchStyles:()=>zl,foundationSwitchTemplate:()=>Gl,foundationTab:()=>ed,foundationTabPanel:()=>sd,foundationTabPanelShadowOptions:()=>ad,foundationTabPanelStyles:()=>td,foundationTabPanelTemplate:()=>od,foundationTabShadowOptions:()=>Ql,foundationTabStyles:()=>Zl,foundationTabTemplate:()=>Xl,foundationTabs:()=>pd,foundationTabsShadowOptions:()=>cd,foundationTabsStyles:()=>rd,foundationTabsTemplate:()=>ld,foundationTextArea:()=>bd,foundationTextAreaShadowOptions:()=>gd,foundationTextAreaStyles:()=>hd,foundationTextAreaTemplate:()=>md,foundationTextField:()=>Cd,foundationTextFieldShadowOptions:()=>Fd,foundationTextFieldStyles:()=>wd,foundationTextFieldTemplate:()=>$d,foundationToast:()=>Ad,foundationToastShadowOptions:()=>kd,foundationToastStyles:()=>Dd,foundationToastTemplate:()=>Od,foundationToolbar:()=>Pd,foundationToolbarShadowOptions:()=>Md,foundationToolbarStyles:()=>Ed,foundationToolbarTemplate:()=>Id,foundationTooltip:()=>Gd,foundationTooltipShadowOptions:()=>Vd,foundationTooltipStyles:()=>Hd,foundationTooltipTemplate:()=>Bd,foundationTreeItem:()=>Xd,foundationTreeItemShadowOptions:()=>qd,foundationTreeItemStyles:()=>Yd,foundationTreeItemTemplate:()=>Ud,foundationTreeView:()=>oc,foundationTreeViewShadowOptions:()=>ec,foundationTreeViewStyles:()=>Kd,foundationTreeViewTemplate:()=>Qd,foundationUrlInput:()=>dc,foundationUrlInputShadowOptions:()=>sc,foundationUrlInputStyles:()=>ic,foundationUrlInputTemplate:()=>nc,fuiAccentPalette:()=>_o,fuiAccentSwatch:()=>Fo,fuiCardFillColor:()=>Oo,fuiCardForegroundColor:()=>Lo,fuiDefaultCardFillColor:()=>bo,fuiDefaultCardPalette:()=>yo,fuiFillColor:()=>Do,fuiNeutralPalette:()=>$o,fuiNeutralSwatch:()=>wo,getBannerTemplate:()=>se,getCriteriaBuilder:()=>$r,getDefaultConfig:()=>Po,getDialogTemplate:()=>ai,getDropdownMenuTemplate:()=>Ci,getErrorDialogTemplate:()=>Zi,getExports:()=>Ho,getFontawesomeIconsCss:()=>Nn,getNavItems:()=>Fc,getPrefixedDatePicker:()=>no,getPrefixedErrorBanner:()=>Ti,getPrefixedFileUpload:()=>ia,getPrefixedFilterTemplate:()=>Ta,getPrefixedFlyout:()=>rn,getPrefixedMultiselect:()=>_s,getPrefixedSearchBar:()=>fr,getPrefixedSnackbar:()=>bl,getPrefixedStepper:()=>_l,getPrefixedStepperTab:()=>Al,getPrefixedUrlInput:()=>ac,getTypeRampValue:()=>Bo,jsonConverter:()=>Hs,mapType:()=>Na,maxheight:()=>$s,media:()=>U,menuTemplate:()=>D,mixinFoundationFontFamily:()=>Zo,multiselectStyles:()=>Ss,multiselectTemplate:()=>Cs,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:()=>To,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralPaletteValue:()=>zo,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,paletteFromHex:()=>Mo,plusIcon:()=>gr,provideDesignSystem:()=>pc,provideTokens:()=>Eo,registerFoundationDesignSystem:()=>Rc,singleOptionTemplate:()=>O,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>Ro,tagFor:()=>wc,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:()=>ma,white:()=>ho});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:()=>ko,density:()=>s.density,designUnit:()=>s.designUnit,direction:()=>s.direction,disabledOpacity:()=>s.disabledOpacity,fillColor:()=>s.fillColor,focusStrokeInner:()=>s.focusStrokeInner,focusStrokeOuter:()=>s.focusStrokeOuter,focusStrokeWidth:()=>s.focusStrokeWidth,foregroundOnAccentActive:()=>s.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>s.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>s.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>s.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>s.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>s.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>s.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>s.foregroundOnAccentRestLarge,fuiCardFillColor:()=>Oo,fuiCardForegroundColor:()=>Lo,fuiFillColor:()=>Do,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:()=>To,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,strokeWidth:()=>s.strokeWidth,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight});var a={};o.r(a),o.d(a,{accentPaletteValue:()=>Vo,baseLayerLuminanceValue:()=>Go,controlCornerRadiusValue:()=>Uo,designUnitValue:()=>Wo,directionValue:()=>Yo,neutralPaletteValue:()=>zo});var n=o(99667),s=o(41663),r=o(79292);const l=(e,t)=>r.css`
|
|
2
2
|
${(0,s.accordionStyles)(e,t)}
|
|
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:
|
|
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:l,shadowOptions:u},p)),m=(e,t)=>r.css`
|
|
4
4
|
${(0,s.accordionItemStyles)(e,t)}
|
|
5
5
|
|
|
6
6
|
slot[name='collapsed-icon'] {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
stroke: var(--accent-foreground-rest);
|
|
15
15
|
fill: none;
|
|
16
16
|
}
|
|
17
|
-
`,v=(e,t)=>(0,n.accordionItemTemplate)(e,t);class g extends s.AccordionItem{}const
|
|
17
|
+
`,v=(e,t)=>(0,n.accordionItemTemplate)(e,t);class g extends s.AccordionItem{}const f={delegatesFocus:!0,mode:"open"},b={collapsedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="collapsed-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>',expandedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="expanded-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="minus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>'},y=g.compose(Object.assign({baseName:"accordion-item",template:v,styles:m,shadowOptions:f},b));var x=o(38092),w=o(9770);const $=(e,t)=>r.css`
|
|
18
18
|
:host {
|
|
19
19
|
--actions-opener-height-multiplier: 0.7px;
|
|
20
20
|
--actions-opener-bg-color: 249 254 255;
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
display: flex;
|
|
106
106
|
flex-direction: column;
|
|
107
107
|
}
|
|
108
|
-
`,S=(e,t)=>
|
|
108
|
+
`,S=(e,t)=>r.css`
|
|
109
109
|
${$(e,t)}
|
|
110
|
-
`,F=(e,t)=>!e.composedPath().includes(t),_=(e,t)=>e.composedPath().includes(t),C=e=>e.tagName.toLowerCase().split("-")[0],
|
|
110
|
+
`,F=(e,t)=>!e.composedPath().includes(t),_=(e,t)=>e.composedPath().includes(t),C=e=>e.tagName.toLowerCase().split("-")[0],D=e=>r.html`
|
|
111
111
|
<${e}-button
|
|
112
112
|
id="actiosnMenuTrigger"
|
|
113
113
|
class="actions-opener${e=>e.open?" opened":""}"
|
|
@@ -115,13 +115,13 @@
|
|
|
115
115
|
part="actions-opener"
|
|
116
116
|
@click=${e=>e.toggleActionsMenuVisibility()}
|
|
117
117
|
>
|
|
118
|
-
${e=>e.open?"✖":
|
|
118
|
+
${e=>e.open?"✖":r.html`
|
|
119
119
|
${e.name}
|
|
120
120
|
`}
|
|
121
121
|
</${e}-button>
|
|
122
|
-
<${e}-menu ${(0,
|
|
123
|
-
${(0,
|
|
124
|
-
${(0,
|
|
122
|
+
<${e}-menu ${(0,r.ref)("actionsMenu")} class="actions-menu ${e=>e.classNames}" part="actions-menu">
|
|
123
|
+
${(0,r.repeat)((e=>e.allActions),r.html`
|
|
124
|
+
${(0,r.when)(((e,t)=>e.isDisabled&&e.isDisabled(t.parent.rowData)),r.html`
|
|
125
125
|
<${e}-menu-item
|
|
126
126
|
class="menu-item"
|
|
127
127
|
tabindex="${(e,t)=>t.index}"
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
${(e,t)=>t.parent.getLabel(e.name)}
|
|
132
132
|
</${e}-menu-item>
|
|
133
133
|
`)}
|
|
134
|
-
${(0,
|
|
134
|
+
${(0,r.when)(((e,t)=>!e.isDisabled||!e.isDisabled(t.parent.rowData)),r.html`
|
|
135
135
|
<${e}-menu-item
|
|
136
136
|
class="menu-item"
|
|
137
137
|
tabindex="${(e,t)=>t.index}"
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
`)}
|
|
144
144
|
`,{positioning:!0})}
|
|
145
145
|
</${e}-menu>
|
|
146
|
-
`,
|
|
146
|
+
`,O=e=>r.html`
|
|
147
147
|
<${e}-button
|
|
148
148
|
appearance="${e=>e.buttonAppearance}"
|
|
149
149
|
part="actions-opener"
|
|
@@ -153,26 +153,26 @@
|
|
|
153
153
|
>
|
|
154
154
|
${e=>e.getLabel(null==e?void 0:e.singleOption.name)}
|
|
155
155
|
</${e}-button>
|
|
156
|
-
`,k=
|
|
156
|
+
`,k=r.html`
|
|
157
157
|
<div
|
|
158
158
|
class="actions-container${e=>e.isVertical?" actions-vertical":""}"
|
|
159
159
|
part="actions-container"
|
|
160
160
|
>
|
|
161
161
|
${e=>e.getTemplate(C(e))}
|
|
162
162
|
</div>
|
|
163
|
-
`;class T extends n.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var o;this.actions=null!==(o=null==t?void 0:t.actions)&&void 0!==o?o:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=(0,w.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"function"==typeof e?e(this.rowData):e}getTemplate(e){if(!this.hideMenuSingleOption)return
|
|
163
|
+
`;class T extends n.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var o;this.actions=null!==(o=null==t?void 0:t.actions)&&void 0!==o?o:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=(0,w.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"function"==typeof e?e(this.rowData):e}getTemplate(e){if(!this.hideMenuSingleOption)return D(e);const t=this.actions.filter((e=>!e.isDisabled||!e.isDisabled(this.rowData)));return this.singleOption=null,0!==t.length?1===t.length?(this.singleOption=t[0],O(e)):D(e):void 0}}(0,x.__decorate)([r.observable],T.prototype,"actions",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"is-vertical",mode:"boolean"})],T.prototype,"isVertical",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"add-default-actions",mode:"boolean"})],T.prototype,"addDefaultActions",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close-on-action",mode:"boolean"})],T.prototype,"autoCloseOnAction",void 0),(0,x.__decorate)([r.observable],T.prototype,"classNames",void 0),(0,x.__decorate)([r.observable],T.prototype,"definition",void 0),(0,x.__decorate)([r.attr],T.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"open",mode:"boolean"})],T.prototype,"open",void 0),(0,x.__decorate)([r.attr],T.prototype,"buttonAppearance",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"hide-disabled",mode:"boolean"})],T.prototype,"hideDisabled",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],T.prototype,"hideMenuSingleOption",void 0),(0,x.__decorate)([r.observable],T.prototype,"singleOption",void 0);const L=T.compose({baseName:"actions-menu",styles:S,template:k}),A=(e,t)=>r.css`
|
|
164
164
|
${(0,s.anchorStyles)(e,t)}
|
|
165
|
-
`,
|
|
165
|
+
`,E=(e,t)=>(0,n.anchorTemplate)(e,t);class I extends s.Anchor{}const R={delegatesFocus:!0,mode:"open"},M={},N=I.compose(Object.assign({baseName:"anchor",template:E,styles:A,shadowOptions:R},M)),P=(e,t)=>(0,n.anchoredRegionTemplate)(e,t),H=(e,t)=>r.css`
|
|
166
166
|
${(0,s.anchoredRegionStyles)(e,t)}
|
|
167
|
-
`;class B extends s.AnchoredRegion{}const j={delegatesFocus:!0,mode:"open"},V={},z=B.compose(Object.assign({baseName:"anchored-region",template:P,styles:H,shadowOptions:j},V)),G=(e,t)=>
|
|
167
|
+
`;class B extends s.AnchoredRegion{}const j={delegatesFocus:!0,mode:"open"},V={},z=B.compose(Object.assign({baseName:"anchored-region",template:P,styles:H,shadowOptions:j},V)),G=(e,t)=>r.css`
|
|
168
168
|
${(0,s.avatarStyles)(e,t)}
|
|
169
|
-
`,
|
|
170
|
-
${(0,
|
|
169
|
+
`,Y=(e,t)=>(0,n.avatarTemplate)(e,t),U=r.html`
|
|
170
|
+
${(0,r.when)((e=>e.imgSrc),r.html`
|
|
171
171
|
<img src="${e=>e.imgSrc}" alt="${e=>e.alt}" slot="media" class="media" part="media" />
|
|
172
172
|
`)}
|
|
173
|
-
`;class
|
|
173
|
+
`;class W extends s.Avatar{}const q={delegatesFocus:!0,mode:"open"},Z={media:U},X=W.compose(Object.assign({baseName:"avatar",template:Y,styles:G,shadowOptions:q},Z)),K=(e,t)=>r.css`
|
|
174
174
|
${(0,s.badgeStyles)(e,t)}
|
|
175
|
-
`,Q=(e,t)=>(0,n.badgeTemplate)(e,t);class J extends s.Badge{}const ee=void 0,te={},oe=J.compose(Object.assign({baseName:"badge",template:Q,styles:
|
|
175
|
+
`,Q=(e,t)=>(0,n.badgeTemplate)(e,t);class J extends s.Badge{}const ee=void 0,te={},oe=J.compose(Object.assign({baseName:"badge",template:Q,styles:K,shadowOptions:ee},te));var ie=o(49969);const ae=(0,ie.createLogger)("foundation-ui"),ne=r.css`
|
|
176
176
|
@keyframes delete-animate {
|
|
177
177
|
from {
|
|
178
178
|
height: 100px;
|
|
@@ -243,11 +243,11 @@
|
|
|
243
243
|
flex: 1;
|
|
244
244
|
overflow: hidden;
|
|
245
245
|
}
|
|
246
|
-
`,se=e=>
|
|
247
|
-
<div class="banner ${e=>e.dismissAnimation}" ${(0,
|
|
246
|
+
`,se=e=>r.html`
|
|
247
|
+
<div class="banner ${e=>e.dismissAnimation}" ${(0,r.ref)("banner")}>
|
|
248
248
|
<div part="content" class="content">
|
|
249
249
|
<slot name="content">
|
|
250
|
-
${(0,
|
|
250
|
+
${(0,r.when)((e=>e.notification),r.html`
|
|
251
251
|
<div>
|
|
252
252
|
<div>${e=>{var t;return(null===(t=e.notification)||void 0===t?void 0:t.body)||"Place holder for notification message"}}</div>
|
|
253
253
|
</div>
|
|
@@ -256,11 +256,11 @@
|
|
|
256
256
|
</div>
|
|
257
257
|
<div part="action" class="action">
|
|
258
258
|
<slot name="action" class="action">
|
|
259
|
-
${(0,
|
|
259
|
+
${(0,r.when)((e=>e.notification),r.html`
|
|
260
260
|
<${e}-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>
|
|
261
261
|
${e=>{var t,o,i,a;return(null===(a=null===(i=null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||"Ignore"}}
|
|
262
262
|
</${e}-button>`)}
|
|
263
|
-
${(0,
|
|
263
|
+
${(0,r.repeat)((e=>{var t,o;return null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner.confirmingActions}),r.html`
|
|
264
264
|
<${e}-button
|
|
265
265
|
slot="action"
|
|
266
266
|
appearance="lightweight"
|
|
@@ -272,25 +272,25 @@
|
|
|
272
272
|
</slot>
|
|
273
273
|
</div>
|
|
274
274
|
</div>
|
|
275
|
-
`,
|
|
275
|
+
`,re=r.html`
|
|
276
276
|
${e=>se(C(e))}
|
|
277
|
-
`,
|
|
277
|
+
`,le={mode:"open",delegatesFocus:!0};class de extends n.FoundationElement{constructor(){super(...arguments),this.dismissAnimation=""}connectedCallback(){super.connectedCallback()}dismiss(){return this.dismissAnimation="banner-delete",new Promise((e=>{this.banner.onanimationend=()=>{this.remove(),e()}}))}dismissNotification(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){try{yield this.dismiss(),this.remove()}catch(e){ae.error(e)}}))}}(0,x.__decorate)([r.observable],de.prototype,"dismissAnimation",void 0),(0,x.__decorate)([r.observable],de.prototype,"notification",void 0);const ce=de.compose({baseName:"banner",styles:ne,template:re,shadowOptions:le}),ue=(e,t)=>r.css`
|
|
278
278
|
${(0,s.breadcrumbStyles)(e,t)}
|
|
279
|
-
`,pe=(e,t)=>(0,n.breadcrumbTemplate)(e,t);class he extends s.Breadcrumb{}const me=void 0,ve={},ge=he.compose(Object.assign({baseName:"breadcrumb",template:pe,styles:ue,shadowOptions:me},ve)),
|
|
279
|
+
`,pe=(e,t)=>(0,n.breadcrumbTemplate)(e,t);class he extends s.Breadcrumb{}const me=void 0,ve={},ge=he.compose(Object.assign({baseName:"breadcrumb",template:pe,styles:ue,shadowOptions:me},ve)),fe=(e,t)=>r.css`
|
|
280
280
|
${(0,s.breadcrumbItemStyles)(e,t)}
|
|
281
|
-
`,
|
|
281
|
+
`,be=(e,t)=>(0,n.breadcrumbItemTemplate)(e,t);class ye extends s.BreadcrumbItem{}const xe=void 0,we={separator:"/"},$e=ye.compose(Object.assign({baseName:"breadcrumb-item",template:be,styles:fe,shadowOptions:xe},we)),Se=(e,t)=>r.css`
|
|
282
282
|
${(0,s.buttonStyles)(e,t)}
|
|
283
|
-
`,Fe=(e,t)=>(0,n.buttonTemplate)(e,t);class _e extends s.Button{}const Ce={delegatesFocus:!0,mode:"open"},
|
|
283
|
+
`,Fe=(e,t)=>(0,n.buttonTemplate)(e,t);class _e extends s.Button{}const Ce={delegatesFocus:!0,mode:"open"},De={},Oe=_e.compose(Object.assign({baseName:"button",template:Fe,styles:Se,shadowOptions:Ce},De)),ke=()=>r.css`
|
|
284
284
|
${s.CalendarStyles}
|
|
285
|
-
`,Te=(e,t)=>(0,n.calendarTemplate)(e,t);class Le extends s.Calendar{}const
|
|
285
|
+
`,Te=(e,t)=>(0,n.calendarTemplate)(e,t);class Le extends s.Calendar{}const Ae={delegatesFocus:!0,mode:"open"},Ee={},Ie=Le.compose(Object.assign({baseName:"calendar",template:Te,styles:ke,shadowOptions:Ae},Ee)),Re=(e,t)=>r.css`
|
|
286
286
|
${(0,s.cardStyles)(e,t)}
|
|
287
287
|
:host {
|
|
288
288
|
background-color: var(--fui-card-fill-color);
|
|
289
289
|
color: var(--fui-card-foreground-color);
|
|
290
290
|
}
|
|
291
|
-
`,
|
|
291
|
+
`,Me=(e,t)=>(0,n.cardTemplate)(e,t);class Ne extends s.Card{}const Pe=void 0,He={},Be=Ne.compose(Object.assign({baseName:"card",template:Me,styles:Re,shadowOptions:Pe},He)),je=(e,t)=>r.css`
|
|
292
292
|
${(0,s.checkboxStyles)(e,t)}
|
|
293
|
-
`,Ve=(e,t)=>(0,n.checkboxTemplate)(e,t);class ze extends s.Checkbox{}const Ge=void 0,Ue={checkedIndicator:'\n <svg\n aria-hidden="true"\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '},Ye=ze.compose(Object.assign({baseName:"checkbox",template:Ve,styles:je,shadowOptions:Ge},Ue));var qe=o(82940),We=o(40001),Ke=o.n(We),Xe=o(32449),Ze=o(9162),Qe=o(5127),Je=o(66526),et=o(6852),tt=o(26714);class ot extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=qe.WJ.MAX_ROWS_250,this.maxView=qe.WJ.MAX_VIEW_1000,this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new tt.X(new Map)}criteriaChanged(e,t){const o=e!==(0,Xe.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,x.__awaiter)(this,void 0,void 0,(function*(){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else ae.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===Ze.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,Qe.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else ae.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void ae.error("received invalid RequestServerResult",e);if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,a;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,Xe.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,x.__decorate)([Je.lj],ot.prototype,"connect",void 0),(0,x.__decorate)([et.Yh],ot.prototype,"datasource",void 0),(0,x.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"withGridInit",void 0),(0,x.__decorate)([l.attr],ot.prototype,"criteria",void 0),(0,x.__decorate)([l.attr],ot.prototype,"fields",void 0),(0,x.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"isSnapshot",void 0),(0,x.__decorate)([l.attr],ot.prototype,"maxRows",void 0),(0,x.__decorate)([l.attr],ot.prototype,"maxView",void 0),(0,x.__decorate)([l.attr],ot.prototype,"orderBy",void 0),(0,x.__decorate)([l.attr],ot.prototype,"resourceName",void 0),(0,x.__decorate)([(0,l.attr)({mode:"boolean"})],ot.prototype,"reverse",void 0),(0,x.__decorate)([l.attr],ot.prototype,"rowId",void 0),(0,x.__decorate)([(0,l.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],ot.prototype,"withTimestampFormatting",void 0);const it=(0,ie.createLogger)("foundation-criteria");var at;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(at||(at={}));class nt{constructor(e){this.$$operator=e}static And(){return new nt(at.AND)}static Or(){return new nt(at.OR)}static Not(){return new nt(at.NOT)}static GreaterThan(){return new nt(at.GT)}static GreaterThanOrEqual(){return new nt(at.GE)}static LessThan(){return new nt(at.LT)}static LessThanOrEqual(){return new nt(at.LE)}static NotEqual(){return new nt(at.NE)}static Equal(){return new nt(at.EQ)}get operator(){return this.$$operator}}const st="default";class lt{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,nt.And()),this.Or=(e,t={})=>this.withExpression(e,t,nt.Or()),this.Not=(e,t={})=>this.withExpression(e,t,nt.Not())}withExpression(e,t={},o=nt.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=st)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||a,condition:i,expression:e}]};if(Array.isArray(e))if(a){const t=e.filter((e=>{const t=e instanceof nt;return t&&it.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(n)t.forEach((e=>{s(e,n)}));else{const e=(l=a,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,l]:e)));s(e,st)}}else s(e,st);else s(e,"string"==typeof e?st:e.group);var l;return this}build(e){const t=Object.entries(this.expressions).reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[t]:`(${o.filter((({condition:e})=>!e||e())).map((({expression:e,join:t},o,i)=>this.parseExpression(e,i[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const i=[];return o&&t&&i.push(` ${o.operator} `),"string"==typeof e?i.push(e):Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof nt){if(o[t-1]instanceof nt)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof nt?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const rt=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},dt=e=>t=>`${t.field} ${e} ${rt(t)}`,ct={AND:e=>dt(at.AND)(e),OR:e=>dt(at.OR)(e),NOT:e=>dt(at.NOT)(e),GT:e=>dt(at.GT)(e),GE:e=>dt(at.GE)(e),LT:e=>dt(at.LT)(e),LE:e=>dt(at.LE)(e),NE:e=>dt(at.NE)(e),EQ:e=>dt(at.EQ)(e),equals:e=>`${e.field}.equals(${rt(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${rt(e)})`,contains:e=>`Expr.contains(${e.field}, ${rt(e)})`,fieldContains:e=>`${e.field}.contains(${rt(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${rt(e)})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${rt(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${rt(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${rt(e)})`};class ut{constructor(e){this.serialiser=ct.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}function pt(e,t){var o;const i=new lt;i.withExpression((new ut).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(ct.containsIgnoreCase).build()),e.criteria=i.build()}function ht(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var mt;let vt=mt=class extends ot{constructor(){super(...arguments),this.emptyDataLabel="No matching records",this.initalSelectedValueInitialized=!1,this.isSnapshot=!0}initialSelectedValueChanged(e,t){t&&(this.initalSelectedValueInitialized=!1)}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t,o;return(0,x.__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.optionElement=null!==(o=this.optionElement)&&void 0!==o?o:`${C(this.select)}-option`,this.select.addEventListener("change",(e=>{var t;const o=null===(t=this.options)||void 0===t?void 0:t.find((t=>t.label===e.target.value));this.select.$emit("value-change",o)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof s.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData()),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}asyncModeIntialization(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===qe._g.DATASERVER&&pt(this,this.initialSelectedValue),e===qe._g.REQUEST_SERVER&&ht(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof mt||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());if(o.length>0){this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));if(this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e)})),!this.initalSelectedValueInitialized){const e=this.initialSelectedValue||0===this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";l.DOM.queueUpdate((()=>{this.select.value=e})),this.initalSelectedValueInitialized=!0}}else{const e=document.createElement(this.optionElement);e.textContent=this.emptyDataLabel,e.value="",e.disabled=!0,this.select.appendChild(e)}}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,x.__decorate)([(0,l.attr)({attribute:"label-field"})],vt.prototype,"labelField",void 0),(0,x.__decorate)([(0,l.attr)({attribute:"option-element"})],vt.prototype,"optionElement",void 0),(0,x.__decorate)([(0,l.attr)({attribute:"value-field"})],vt.prototype,"valueField",void 0),(0,x.__decorate)([(0,l.attr)({attribute:"empty-data-label"})],vt.prototype,"emptyDataLabel",void 0),(0,x.__decorate)([l.observable],vt.prototype,"labelFormatter",void 0),(0,x.__decorate)([l.observable],vt.prototype,"initialSelectedValue",void 0),vt=mt=(0,x.__decorate)([(0,l.customElement)({name:"options-datasource"})],vt);const gt=(e,t)=>l.css`
|
|
293
|
+
`,Ve=(e,t)=>(0,n.checkboxTemplate)(e,t);class ze extends s.Checkbox{}const Ge=void 0,Ye={checkedIndicator:'\n <svg\n aria-hidden="true"\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '},Ue=ze.compose(Object.assign({baseName:"checkbox",template:Ve,styles:je,shadowOptions:Ge},Ye));var We=o(82940),qe=o(40001),Ze=o.n(qe),Xe=o(32449),Ke=o(9162),Qe=o(5127),Je=o(66526),et=o(6852),tt=o(26714);class ot extends n.FoundationElement{constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=We.WJ.MAX_ROWS_250,this.maxView=We.WJ.MAX_VIEW_1000,this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new tt.X(new Map)}criteriaChanged(e,t){const o=e!==(0,Xe.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,x.__awaiter)(this,void 0,void 0,(function*(){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else ae.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===Ke.Cs.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,Qe.$)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else ae.debug(`Genesis Datasource init failed for ${this.resourceName}`)}))}initDatasource(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void ae.error("received invalid RequestServerResult",e);if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,a;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,Xe.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,x.__decorate)([Je.lj],ot.prototype,"connect",void 0),(0,x.__decorate)([et.Yh],ot.prototype,"datasource",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],ot.prototype,"withGridInit",void 0),(0,x.__decorate)([r.attr],ot.prototype,"criteria",void 0),(0,x.__decorate)([r.attr],ot.prototype,"fields",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],ot.prototype,"isSnapshot",void 0),(0,x.__decorate)([r.attr],ot.prototype,"maxRows",void 0),(0,x.__decorate)([r.attr],ot.prototype,"maxView",void 0),(0,x.__decorate)([r.attr],ot.prototype,"orderBy",void 0),(0,x.__decorate)([r.attr],ot.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],ot.prototype,"reverse",void 0),(0,x.__decorate)([r.attr],ot.prototype,"rowId",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],ot.prototype,"withTimestampFormatting",void 0);const it=(0,ie.createLogger)("foundation-criteria");var at;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(at||(at={}));class nt{constructor(e){this.$$operator=e}static And(){return new nt(at.AND)}static Or(){return new nt(at.OR)}static Not(){return new nt(at.NOT)}static GreaterThan(){return new nt(at.GT)}static GreaterThanOrEqual(){return new nt(at.GE)}static LessThan(){return new nt(at.LT)}static LessThanOrEqual(){return new nt(at.LE)}static NotEqual(){return new nt(at.NE)}static Equal(){return new nt(at.EQ)}get operator(){return this.$$operator}}const st="default";class rt{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,nt.And()),this.Or=(e,t={})=>this.withExpression(e,t,nt.Or()),this.Not=(e,t={})=>this.withExpression(e,t,nt.Not())}withExpression(e,t={},o=nt.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=st)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||a,condition:i,expression:e}]};if(Array.isArray(e))if(a){const t=e.filter((e=>{const t=e instanceof nt;return t&&it.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(n)t.forEach((e=>{s(e,n)}));else{const e=(r=a,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,r]:e)));s(e,st)}}else s(e,st);else s(e,"string"==typeof e?st:e.group);var r;return this}build(e){const t=Object.entries(this.expressions).reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[t]:`(${o.filter((({condition:e})=>!e||e())).map((({expression:e,join:t},o,i)=>this.parseExpression(e,i[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const i=[];return o&&t&&i.push(` ${o.operator} `),"string"==typeof e?i.push(e):Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof nt){if(o[t-1]instanceof nt)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof nt?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const lt=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},dt=e=>t=>`${t.field} ${e} ${lt(t)}`,ct={AND:e=>dt(at.AND)(e),OR:e=>dt(at.OR)(e),NOT:e=>dt(at.NOT)(e),GT:e=>dt(at.GT)(e),GE:e=>dt(at.GE)(e),LT:e=>dt(at.LT)(e),LE:e=>dt(at.LE)(e),NE:e=>dt(at.NE)(e),EQ:e=>dt(at.EQ)(e),equals:e=>`${e.field}.equals(${lt(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${lt(e)})`,contains:e=>`Expr.contains(${e.field}, ${lt(e)})`,fieldContains:e=>`${e.field}.contains(${lt(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${lt(e)})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${lt(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${lt(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${lt(e)})`};class ut{constructor(e){this.serialiser=ct.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}function pt(e,t){var o;const i=new rt;i.withExpression((new ut).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(ct.containsIgnoreCase).build()),e.criteria=i.build()}function ht(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var mt;let vt=mt=class extends ot{constructor(){super(...arguments),this.emptyDataLabel="No matching records",this.initalSelectedValueInitialized=!1,this.isSnapshot=!0}initialSelectedValueChanged(e,t){t&&(this.initalSelectedValueInitialized=!1)}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t,o;return(0,x.__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.optionElement=null!==(o=this.optionElement)&&void 0!==o?o:`${C(this.select)}-option`,this.select.addEventListener("change",(e=>{var t;const o=null===(t=this.options)||void 0===t?void 0:t.find((t=>t.label===e.target.value));this.select.$emit("value-change",o)})),this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof s.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData()),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}asyncModeIntialization(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===We._g.DATASERVER&&pt(this,this.initialSelectedValue),e===We._g.REQUEST_SERVER&&ht(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof mt||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());if(o.length>0){this.options=o.map((e=>({value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):e[this.labelField]})));if(this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e)})),!this.initalSelectedValueInitialized){const e=this.initialSelectedValue||0===this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";r.DOM.queueUpdate((()=>{this.select.value=e})),this.initalSelectedValueInitialized=!0}}else{const e=document.createElement(this.optionElement);e.textContent=this.emptyDataLabel,e.value="",e.disabled=!0,this.select.appendChild(e)}}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,x.__decorate)([(0,r.attr)({attribute:"label-field"})],vt.prototype,"labelField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"option-element"})],vt.prototype,"optionElement",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"value-field"})],vt.prototype,"valueField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"empty-data-label"})],vt.prototype,"emptyDataLabel",void 0),(0,x.__decorate)([r.observable],vt.prototype,"labelFormatter",void 0),(0,x.__decorate)([r.observable],vt.prototype,"initialSelectedValue",void 0),vt=mt=(0,x.__decorate)([(0,r.customElement)({name:"options-datasource"})],vt);const gt=(e,t)=>r.css`
|
|
294
294
|
.combo-box-indicator {
|
|
295
295
|
transition-property: transform;
|
|
296
296
|
transition-duration: 0.2s;
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
${(0,s.comboboxStyles)(e,t)}
|
|
305
|
-
`,
|
|
305
|
+
`,ft=(e,t)=>r.html`
|
|
306
306
|
<template
|
|
307
307
|
aria-disabled="${e=>e.ariaDisabled}"
|
|
308
308
|
autocomplete="${e=>e.autocomplete}"
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
:value="${e=>e.value}"
|
|
333
333
|
@input="${(e,t)=>e.inputHandler(t.event)}"
|
|
334
334
|
@keyup="${(e,t)=>e.keyupHandler(t.event)}"
|
|
335
|
-
${(0,
|
|
335
|
+
${(0,r.ref)("control")}
|
|
336
336
|
/>
|
|
337
337
|
<div class="indicator" part="indicator" aria-hidden="true">
|
|
338
338
|
<slot name="indicator">${t.indicator||""}</slot>
|
|
@@ -347,15 +347,15 @@
|
|
|
347
347
|
role="listbox"
|
|
348
348
|
?disabled="${e=>e.disabled}"
|
|
349
349
|
?hidden="${e=>!e.open}"
|
|
350
|
-
${(0,
|
|
350
|
+
${(0,r.ref)("listbox")}
|
|
351
351
|
>
|
|
352
352
|
<slot
|
|
353
|
-
${(0,
|
|
354
|
-
${(0,
|
|
353
|
+
${(0,r.ref)("slottedDatasource")}
|
|
354
|
+
${(0,r.slotted)({filter:n.Listbox.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
|
|
355
355
|
></slot>
|
|
356
356
|
</div>
|
|
357
357
|
</template>
|
|
358
|
-
`;var
|
|
358
|
+
`;var bt,yt;class xt extends s.Combobox{constructor(){super(...arguments),bt.set(this,void 0),yt.set(this,!1),this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1}debounceChanged(e,t){this.debouncedInputHandler=Ze()(this.asyncSetFilter,t)}get value(){return r.Observable.track(this,"value"),this._ourValue}set value(e){var t,o,i;const a=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const a=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===e.toLowerCase(),n=this.options?this.options.findIndex(a):-1,s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,r=null===(o=this.options[n])||void 0===o?void 0:o.text;this.selectedIndex=s!==r?n:this.selectedIndex,e=(null===(i=this.firstSelectedOption)||void 0===i?void 0:i.text)||e}a!==e&&(this._ourValue=e,super.valueChanged(a,e),r.Observable.notify(this,"value"))}slottedOptionsChanged(e,t){const o=!!this.async;super.slottedOptionsChanged(e,t),this.updateValue(o)}filterOptions(){this.autocomplete&&this.autocomplete!==n.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,[t,o]=this.caseSensitive?[e,e=>e.text.startsWith(t)]:[e.toLowerCase(),e=>e.text.toLowerCase().startsWith(t)];this.filteredOptions=this._options.filter(o),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach((e=>e.hidden=!this.filteredOptions.includes(e))))}clickHandler(e){if(!this.disabled)if(F(e,this))this.open=!1;else{if(_(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!_(e,this.control))return super.clickHandler(e)}}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":if((0,x.__classPrivateFieldSet)(this,yt,this.open,"f"),!this.open)return!0;break;case"Escape":if(this.control.value!==this.currentValue)return this.filter="",this.filterOptions(),this.control.value=this.currentValue,this.selectItemByValue(this.currentValue),void(this.open=!1);if(!this.open)return!0}const o=super.keydownHandler(e);return"Enter"!==t?o:void 0}keyupHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":return!(0,x.__classPrivateFieldGet)(this,yt,"f");case"ArrowLeft":case"ArrowRight":case"Home":case"End":return;case"Backspace":case"Delete":const t=super.keyupHandler(e);return this.selectItemByValue(this.control.value),t}return super.keyupHandler(e)}get indicator(){return(0,x.__classPrivateFieldGet)(this,bt,"f")||(0,x.__classPrivateFieldSet)(this,bt,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,x.__classPrivateFieldGet)(this,bt,"f")}selectItemByValue(e){var t,o,i;this.selectedIndex=null!==(o=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>t.text===e)))&&void 0!==o?o:-1,null===(i=this.options)||void 0===i||i.forEach(((e,t)=>e.selected=t===this.selectedIndex))}inputHandler(e){this.async?this.debouncedInputHandler():super.inputHandler(e)}asyncSetFilter(){const e=this.slottedDatasource.assignedNodes().filter((e=>e instanceof vt));if(e.length>0){const t=e[0].datasource.resourceType;t===We._g.DATASERVER&&pt(e[0],this.control.value),t===We._g.REQUEST_SERVER&&ht(e[0],this.control.value)}else ae.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}}bt=new WeakMap,yt=new WeakMap,(0,x.__decorate)([r.observable],xt.prototype,"slottedDatasource",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],xt.prototype,"async",void 0),(0,x.__decorate)([r.attr],xt.prototype,"debounce",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"case-sensitive"})],xt.prototype,"caseSensitive",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"ignore-input-click"})],xt.prototype,"ignoreInputClick",void 0);const wt={delegatesFocus:!0,mode:"open"},$t={indicator:'\n <svg\n class="combo-box-indicator"\n part="combo-box-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '},St=xt.compose(Object.assign({baseName:"combobox",template:ft,styles:gt,shadowOptions:wt},$t));var Ft=o(75527);const _t=(e,t)=>r.css`
|
|
359
359
|
:host {
|
|
360
360
|
--light-size: 12px;
|
|
361
361
|
--height: calc(var(--design-unit) * 2px + var(--light-size));
|
|
@@ -406,18 +406,18 @@
|
|
|
406
406
|
text-overflow: ellipsis;
|
|
407
407
|
white-space: nowrap;
|
|
408
408
|
}
|
|
409
|
-
`,Ct=
|
|
409
|
+
`,Ct=r.html`
|
|
410
410
|
<div class=${e=>(0,w.A)(["light",!0],[e.colour,!0])}></div>
|
|
411
|
-
${(0,
|
|
411
|
+
${(0,r.when)((e=>e.showLabel),r.html`
|
|
412
412
|
<div class="label">${e=>e.label}</div>
|
|
413
413
|
`)}
|
|
414
|
-
`;class
|
|
414
|
+
`;class Dt extends n.FoundationElement{constructor(){super(...arguments),this.showLabel=!1,this.label="disconnected",this.colour="red"}connectedCallback(){super.connectedCallback(),this.subscription=this.connect.isConnectedSubject.subscribe((e=>{this.label=this.getLabel(e),this.colour=e?"green":"red"}))}disconnectedCallback(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}getLabel(e){if(!e)return"disconnected";return`${this.session.getSessionStorageItem("hostUrl")} ✔`}}(0,x.__decorate)([Je.lj],Dt.prototype,"connect",void 0),(0,x.__decorate)([Ft.z],Dt.prototype,"session",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"show-label"})],Dt.prototype,"showLabel",void 0),(0,x.__decorate)([r.observable],Dt.prototype,"label",void 0),(0,x.__decorate)([r.observable],Dt.prototype,"colour",void 0);const Ot=Dt.compose({baseName:"connection-indicator",template:Ct,styles:_t}),kt=(e,t)=>r.css`
|
|
415
415
|
${(0,s.dataGridStyles)(e,t)}
|
|
416
|
-
`,Tt=(e,t)=>(0,n.dataGridTemplate)(e,t);class Lt extends s.DataGrid{}const
|
|
416
|
+
`,Tt=(e,t)=>(0,n.dataGridTemplate)(e,t);class Lt extends s.DataGrid{}const At=void 0,Et={},It=Lt.compose(Object.assign({baseName:"data-grid",template:Tt,styles:kt,shadowOptions:At},Et)),Rt=(e,t)=>r.css`
|
|
417
417
|
${(0,s.dataGridCellStyles)(e,t)}
|
|
418
|
-
`;class
|
|
418
|
+
`;class Mt extends s.DataGridCell{}const Nt=void 0,Pt={},Ht=Mt.compose(Object.assign({baseName:"data-grid-cell",template:n.dataGridCellTemplate,styles:Rt,shadowOptions:Nt},Pt)),Bt=(e,t)=>r.css`
|
|
419
419
|
${(0,s.dataGridRowStyles)(e,t)}
|
|
420
|
-
`;class jt extends s.DataGridRow{}const Vt=void 0,zt={},Gt=jt.compose(Object.assign({baseName:"data-grid-row",template:n.dataGridRowTemplate,styles:Bt,shadowOptions:Vt},zt));var
|
|
420
|
+
`;class jt extends s.DataGridRow{}const Vt=void 0,zt={},Gt=jt.compose(Object.assign({baseName:"data-grid-row",template:n.dataGridRowTemplate,styles:Bt,shadowOptions:Vt},zt));var Yt=o(87530),Ut=o.n(Yt),Wt=o(55466),qt=o.n(Wt),Zt=o(82839),Xt=o.n(Zt),Kt=o(55477),Qt=o.n(Kt),Jt=o(78113),eo=o.n(Jt);class to{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()}}Ut().extend(eo());class oo{constructor(e=null,t="default"){const o=new to(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+=Ut()(o.date).isLeapYear()?1:0)}getDay(e){return new to(new Date(this.year,this.number-1,e),this.lang)}}Ut().extend(eo());class io{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new to(null,o),this.year=null!=e?e:this.today.year,this.month=new oo(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 oo(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new oo(new Date(this.year-1,11),this.lang):new oo(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new oo(new Date(this.year+1,0),this.lang):new oo(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new oo(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new oo(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new oo(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new oo(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new oo(new Date(this.year,this.month.number-1-1),this.lang)}}const ao=r.css`
|
|
421
421
|
:host {
|
|
422
422
|
position: relative;
|
|
423
423
|
}
|
|
@@ -560,8 +560,8 @@
|
|
|
560
560
|
.date-toggle[readonly] .label {
|
|
561
561
|
cursor: pointer;
|
|
562
562
|
}
|
|
563
|
-
`,no=e=>
|
|
564
|
-
<${e}-text-field data-test-id="date-picker" readonly :value="${e=>e.formatDate}" part="date-toggle" class="date-toggle" ${(0,
|
|
563
|
+
`,no=e=>r.html`
|
|
564
|
+
<${e}-text-field data-test-id="date-picker" readonly :value="${e=>e.formatDate}" part="date-toggle" class="date-toggle" ${(0,r.ref)("toggleButton")}>
|
|
565
565
|
${e=>e.label}
|
|
566
566
|
<div class="input-icon-container" part="input-icon-container" slot="end"><${e}-icon variant="regular" name="calendar-alt" size="sm"></${e}-icon></div>
|
|
567
567
|
</${e}-text-field>
|
|
@@ -569,21 +569,21 @@
|
|
|
569
569
|
<div class="header">
|
|
570
570
|
<h3>${e=>e.currentMonth} ${e=>e.currentYear}</h3>
|
|
571
571
|
<div class="months-arrows">
|
|
572
|
-
<div class="icon-container" ${(0,
|
|
572
|
+
<div class="icon-container" ${(0,r.ref)("prevBtn")}>
|
|
573
573
|
<${e}-icon name="angle-left" class="prev-month" aria-label="previous month"></${e}-icon>
|
|
574
574
|
</div>
|
|
575
|
-
<div class="icon-container" ${(0,
|
|
575
|
+
<div class="icon-container" ${(0,r.ref)("nextBtn")}>
|
|
576
576
|
<${e}-icon name="angle-right" class="next-month" aria-label="next month"></${e}-icon>
|
|
577
577
|
</div>
|
|
578
578
|
</div>
|
|
579
579
|
</div>
|
|
580
580
|
<div class="week-days">
|
|
581
|
-
${(0,
|
|
581
|
+
${(0,r.repeat)((e=>e.calendar.weekDays),r.html`
|
|
582
582
|
<span>${(e,t)=>e.substring(0,t.parent.substringNumber)}</span>
|
|
583
583
|
`)}
|
|
584
584
|
</div>
|
|
585
|
-
<div class="month-days" ${(0,
|
|
586
|
-
${(0,
|
|
585
|
+
<div class="month-days" ${(0,r.ref)("calendarDaysContainer")}>
|
|
586
|
+
${(0,r.repeat)((e=>e.monthList),r.html`
|
|
587
587
|
<button
|
|
588
588
|
class="month-day
|
|
589
589
|
${(e,t)=>t.parent.isSelectedDate(e)?"selected":""}
|
|
@@ -595,44 +595,44 @@
|
|
|
595
595
|
`)}
|
|
596
596
|
</div>
|
|
597
597
|
</div>
|
|
598
|
-
`,so=
|
|
598
|
+
`,so=r.html`
|
|
599
599
|
${e=>no(C(e))}
|
|
600
|
-
`,
|
|
600
|
+
`,ro=void 0,lo={};class co extends n.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=Ut()(this.currentDate.Date).format(t))}valueChanged(e,t){if(t&&this.calendar){const e=Ut()().localeData().longDateFormat("L");this.currentDate=new to(Ut()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=Ut()(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",Ut().extend(qt()),Ut().extend(Qt()),Ut().extend(Xt()),this.substringNumber=3;const e=this.getAttribute("value"),t=e?Ut()(e,"MM-DD-YYYY"):Ut()();this.currentDate=new to(t.toDate(),this.lang),this.calendar=new io(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=Ut()(this.currentDate.Date).format("MM-DD-YYYY")}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=Ut()(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,w.A)(["visible",this.visible],this.position)}isSelectedDate(e){return Ut()(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){Ut()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=Ut()(this.currentDate.Date).format(this.format),this.value=Ut()(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,x.__decorate)([r.attr],co.prototype,"format",void 0),(0,x.__decorate)([r.attr],co.prototype,"lang",void 0),(0,x.__decorate)([r.attr],co.prototype,"visible",void 0),(0,x.__decorate)([r.attr],co.prototype,"position",void 0),(0,x.__decorate)([r.attr],co.prototype,"label",void 0),(0,x.__decorate)([r.attr],co.prototype,"value",void 0),(0,x.__decorate)([r.observable],co.prototype,"currentDate",void 0),(0,x.__decorate)([r.observable],co.prototype,"currentMonth",void 0),(0,x.__decorate)([r.observable],co.prototype,"currentYear",void 0),(0,x.__decorate)([r.observable],co.prototype,"calendarDropdownClasses",void 0),(0,x.__decorate)([r.observable],co.prototype,"formatDate",void 0),(0,x.__decorate)([r.observable],co.prototype,"monthList",void 0);const uo=co.compose(Object.assign({baseName:"date-picker",styles:ao,template:so,shadowOptions:ro},lo));var po=o(43556);const ho=s.SwatchRGB.create(1,1,1),mo=s.SwatchRGB.create(0,0,0),vo=(0,po.parseColorHexRGB)("#585858"),go=s.SwatchRGB.create(vo.r,vo.g,vo.b),fo=(0,po.parseColorHexRGB)("#ffffff"),bo=s.SwatchRGB.create(fo.r,fo.g,fo.b),yo=s.PaletteRGB.from(bo),xo=(0,po.parseColorHexRGB)("#eeeeee"),wo=s.SwatchRGB.create(xo.r,xo.g,xo.b),$o=s.PaletteRGB.from(wo),So=(0,po.parseColorHexRGB)("#08c3a5"),Fo=s.SwatchRGB.create(So.r,So.g,So.b),_o=s.PaletteRGB.from(Fo),{create:Co}=n.DesignToken,Do=Co("fui-fill-color").withDefault(go),Oo=Co({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(bo),ko=14;function To(e,t){return e.colorContrast(t,ko)}const Lo=Co({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>To(Co("fui-card-palette").withDefault(yo).getValueFor(e),Oo.getValueFor(e))));var Ao=o(47823);const Eo=(e,t,o)=>{const i=o?(e,t)=>e.setValueFor(o,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach((o=>{const a=`${o}Value`;t[a]&&i(e[o],t[a])}))};function Io(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const Ro={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,po.parseColorHexRGB)(e);return t?s.SwatchRGB.create(t.r,t.g,t.b):null}},Mo=e=>s.PaletteRGB.from(s.SwatchRGB.from((0,po.parseColorHexRGB)(e))),No=["baseClass","baseName","shadowOptions","styles","template"],Po=(e,t=No)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),Ho=e=>{const{definition:t}=e(),{shadowOptions:o,styles:i,template:a}=t;return{shadowOptions:o,styles:i,template:a,defaultConfig:Po(t)}},Bo=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),i=o[1],a=o[2];return Number(i)+t+a},jo=(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,Ao.Yd.minusOne)),s.typeRampMinus1LineHeight.setValueFor(e,Bo(a,Ao.Yd.minusOne)),s.typeRampMinus2FontSize.setValueFor(e,Bo(i,Ao.Yd.minusTwo)),s.typeRampMinus2LineHeight.setValueFor(e,Bo(a,Ao.Yd.minusTwo)),s.typeRampPlus1FontSize.setValueFor(e,Bo(i,Ao.Yd.plusOne)),s.typeRampPlus1LineHeight.setValueFor(e,Bo(a,Ao.Yd.plusOne)),s.typeRampPlus2FontSize.setValueFor(e,Bo(i,Ao.Yd.plusTwo)),s.typeRampPlus2LineHeight.setValueFor(e,Bo(a,Ao.Yd.plusTwo)),s.typeRampPlus3FontSize.setValueFor(e,Bo(i,Ao.Yd.plusThree)),s.typeRampPlus3LineHeight.setValueFor(e,Bo(a,Ao.Yd.plusThree)),s.typeRampPlus4FontSize.setValueFor(e,Bo(i,Ao.Yd.plusFour)),s.typeRampPlus4LineHeight.setValueFor(e,Bo(a,Ao.Yd.plusFour)),s.typeRampPlus5FontSize.setValueFor(e,Bo(i,Ao.Yd.plusFive)),s.typeRampPlus5LineHeight.setValueFor(e,Bo(a,Ao.Yd.plusFive)),s.typeRampPlus6FontSize.setValueFor(e,Bo(i,Ao.Yd.plusSix)),s.typeRampPlus6LineHeight.setValueFor(e,Bo(a,Ao.Yd.plusSix))},Vo=Mo("#08c3a5"),zo=Mo("#eeeeee"),Go=s.StandardLuminance.DarkMode;const Yo=o(5598).N.ltr,Uo=4,Wo=4;var qo=o(67973);const Zo=(e="normal",t="normal")=>`\n font-family: ${s.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,Xo=r.css`
|
|
601
601
|
${(0,n.display)("flex")}
|
|
602
602
|
:host {
|
|
603
603
|
flex: 1;
|
|
604
604
|
}
|
|
605
|
-
`,
|
|
605
|
+
`,Ko=r.css`
|
|
606
606
|
:host {
|
|
607
|
-
background-color: ${
|
|
607
|
+
background-color: ${Do};
|
|
608
608
|
}
|
|
609
|
-
`.withBehaviors((0,n.forcedColorsStylesheetBehavior)(
|
|
609
|
+
`.withBehaviors((0,n.forcedColorsStylesheetBehavior)(r.css`
|
|
610
610
|
:host {
|
|
611
|
-
background-color: ${
|
|
612
|
-
box-shadow: 0 0 0 1px ${
|
|
613
|
-
color: ${
|
|
611
|
+
background-color: ${qo.H.ButtonFace};
|
|
612
|
+
box-shadow: 0 0 0 1px ${qo.H.CanvasText};
|
|
613
|
+
color: ${qo.H.ButtonText};
|
|
614
614
|
}
|
|
615
|
-
`)),Qo=(e,t)=>
|
|
615
|
+
`)),Qo=(e,t)=>r.css`
|
|
616
616
|
${e.name} ${"h"+t} {
|
|
617
617
|
margin: 0;
|
|
618
618
|
}
|
|
619
|
-
`;class Jo extends s.DesignSystemProvider{constructor(){super(),
|
|
619
|
+
`;class Jo extends s.DesignSystemProvider{constructor(){super(),Eo(i,a,this)}}(0,x.__decorate)([(0,r.attr)({attribute:"card-fill-color",converter:Ro}),Io(Oo)],Jo.prototype,"cardFillColor",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"card-foreground-color",converter:Ro}),Io(Lo)],Jo.prototype,"cardForegroundColor",void 0);const ei=Jo.compose({baseName:"design-system-provider",template:r.html`
|
|
620
620
|
<slot></slot>
|
|
621
|
-
`,styles:e=>{const t=(e=>
|
|
621
|
+
`,styles:e=>{const t=(e=>r.css`
|
|
622
622
|
${Qo(e,"1")}
|
|
623
623
|
${Qo(e,"2")}
|
|
624
624
|
${Qo(e,"3")}
|
|
625
625
|
${Qo(e,"4")}
|
|
626
626
|
${Qo(e,"5")}
|
|
627
627
|
${Qo(e,"6")}
|
|
628
|
-
`)(e);return t.addStylesTo(document),
|
|
628
|
+
`)(e);return t.addStylesTo(document),r.css`
|
|
629
629
|
${Xo}
|
|
630
|
-
${
|
|
630
|
+
${Ko}
|
|
631
631
|
${t}
|
|
632
632
|
:host * {
|
|
633
|
-
${
|
|
633
|
+
${Zo()}
|
|
634
634
|
}
|
|
635
|
-
`}});var ti=o(15098);const oi=
|
|
635
|
+
`}});var ti=o(15098);const oi=r.css`
|
|
636
636
|
:host {
|
|
637
637
|
--dialog-min-width: 358px;
|
|
638
638
|
--notification-details-min-height: 40px;
|
|
@@ -686,19 +686,19 @@
|
|
|
686
686
|
overflow: hidden;
|
|
687
687
|
min-height: var(--notification-details-min-height);
|
|
688
688
|
}
|
|
689
|
-
`,ii=(e="start")=>`\n <svg class="svg-icon" slot="${e}" width="16px" height="16px">\n <g transform="matrix(1 0 0 1 -1865 -3576 )">\n <path d="M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z " fill-rule="nonzero" fill="#879ba6" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,ai=e=>
|
|
690
|
-
<dialog ${(0,
|
|
689
|
+
`,ii=(e="start")=>`\n <svg class="svg-icon" slot="${e}" width="16px" height="16px">\n <g transform="matrix(1 0 0 1 -1865 -3576 )">\n <path d="M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z " fill-rule="nonzero" fill="#879ba6" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,ai=e=>r.html`
|
|
690
|
+
<dialog ${(0,r.ref)("mainElement")} part="dialog">
|
|
691
691
|
<div class="content-wrapper">
|
|
692
692
|
<div part="top" class="top">
|
|
693
693
|
<slot name="top">
|
|
694
694
|
<h2 slot="top" class="title">${e=>{var t;return null===(t=e.notification)||void 0===t?void 0:t.title}}</h2>
|
|
695
695
|
</slot>
|
|
696
|
-
${(0,
|
|
696
|
+
${(0,r.when)((e=>e.showCloseIcon),r.html`
|
|
697
697
|
<div class="close-icon" @click=${e=>e.close()}>${ii()}</div>
|
|
698
698
|
`)}
|
|
699
699
|
</div>
|
|
700
700
|
<slot>
|
|
701
|
-
${(0,
|
|
701
|
+
${(0,r.when)((e=>e.notification),r.html`
|
|
702
702
|
<div class="details">
|
|
703
703
|
${e=>{var t;return(null===(t=e.notification)||void 0===t?void 0:t.body)||"Place holder for notification message"}}
|
|
704
704
|
</div>
|
|
@@ -706,12 +706,12 @@
|
|
|
706
706
|
</slot>
|
|
707
707
|
<div part="bottom" class="bottom">
|
|
708
708
|
<slot name="bottom">
|
|
709
|
-
${(0,
|
|
709
|
+
${(0,r.when)((e=>e.notification),r.html`
|
|
710
710
|
<${e}-button appearance="lightweight" @click=${e=>{e.dismiss()}}>
|
|
711
711
|
${e=>{var t,o,i,a;return(null===(a=null===(i=null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||"Ignore"}}
|
|
712
712
|
</${e}-button>
|
|
713
713
|
`)}
|
|
714
|
-
${(0,
|
|
714
|
+
${(0,r.repeat)((e=>{var t,o;return null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog.confirmingActions}),r.html`
|
|
715
715
|
<${e}-button
|
|
716
716
|
appearance="lightweight"
|
|
717
717
|
@click=${(e,t)=>{null==e||e.action(),t.parent.closeDialog()}}
|
|
@@ -723,13 +723,13 @@
|
|
|
723
723
|
</div>
|
|
724
724
|
</div>
|
|
725
725
|
</dialog>
|
|
726
|
-
`,ni=
|
|
726
|
+
`,ni=r.html`
|
|
727
727
|
${e=>ai(C(e))}
|
|
728
|
-
`,si={mode:"open",delegatesFocus:!0},
|
|
728
|
+
`,si={mode:"open",delegatesFocus:!0},ri={};class li extends n.FoundationElement{constructor(){super(...arguments),this.position="centre",this.showCloseIcon=!0}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||ti.Z.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback()}))}get open(){return this.mainElement.hasAttribute("open")}close(){this.mainElement.close()}dismiss(){var e,t,o,i;(null===(i=null===(o=null===(t=null===(e=this.notification)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){ae.error(e)}}}(0,x.__decorate)([r.observable],li.prototype,"notification",void 0),(0,x.__decorate)([r.attr],li.prototype,"position",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"show-close-icon"})],li.prototype,"showCloseIcon",void 0),(0,x.__decorate)([r.observable],li.prototype,"onShowCallback",void 0),(0,x.__decorate)([r.observable],li.prototype,"onCloseCallback",void 0),(0,x.__decorate)([r.volatile],li.prototype,"open",null);class di extends li{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const ci=di.compose(Object.assign({baseName:"dialog",styles:oi,template:ni,shadowOptions:si},ri)),ui=(e,t)=>r.css`
|
|
729
729
|
${(0,s.disclosureStyles)(e,t)}
|
|
730
|
-
`,pi=(e,t)=>(0,n.disclosureTemplate)(e,t);class hi extends n.Disclosure{}const mi=void 0,vi={},gi=hi.compose(Object.assign({baseName:"disclosure",template:pi,styles:ui,shadowOptions:mi},vi)),
|
|
730
|
+
`,pi=(e,t)=>(0,n.disclosureTemplate)(e,t);class hi extends n.Disclosure{}const mi=void 0,vi={},gi=hi.compose(Object.assign({baseName:"disclosure",template:pi,styles:ui,shadowOptions:mi},vi)),fi=(e,t)=>r.css`
|
|
731
731
|
${(0,s.dividerStyles)(e,t)}
|
|
732
|
-
`,
|
|
732
|
+
`,bi=(e,t)=>(0,n.dividerTemplate)(e,t);class yi extends n.Divider{}const xi=void 0,wi={},$i=yi.compose(Object.assign({baseName:"divider",template:bi,styles:fi,shadowOptions:xi},wi)),Si=(e,t,o)=>r.css`
|
|
733
733
|
:host {
|
|
734
734
|
--dropdown-opener-height-multiplier: 0.7px;
|
|
735
735
|
--menu-item-height-multiplier: 0.7px;
|
|
@@ -792,20 +792,20 @@
|
|
|
792
792
|
var(--menu-item-height-multiplier)
|
|
793
793
|
);
|
|
794
794
|
}
|
|
795
|
-
`,Fi=(e,t)=>
|
|
795
|
+
`,Fi=(e,t)=>r.css`
|
|
796
796
|
${Si("foundation",e,t)}
|
|
797
|
-
`,_i=(e,t)=>
|
|
798
|
-
${(0,
|
|
799
|
-
${(0,
|
|
797
|
+
`,_i=(e,t)=>r.html`
|
|
798
|
+
${(0,r.repeat)((()=>e),r.html`
|
|
799
|
+
${(0,r.when)((e=>e.isDisabled&&e.isDisabled()),r.html`
|
|
800
800
|
<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>
|
|
801
801
|
`)}
|
|
802
|
-
${(0,
|
|
802
|
+
${(0,r.when)((e=>!e.isDisabled||!e.isDisabled()),r.html`
|
|
803
803
|
<${t}-menu-item
|
|
804
804
|
class="menu-item"
|
|
805
805
|
@click=${e=>e.submenu?"":e.callback()}
|
|
806
806
|
style="${e=>e.color?`color: ${e.color};`:""}"
|
|
807
807
|
>
|
|
808
|
-
${(0,
|
|
808
|
+
${(0,r.when)((e=>e.icon),r.html`
|
|
809
809
|
<${t}-icon
|
|
810
810
|
name=${e=>e.icon.name}
|
|
811
811
|
size=${e=>e.icon.size}
|
|
@@ -814,13 +814,13 @@
|
|
|
814
814
|
></${t}-icon>
|
|
815
815
|
`)}
|
|
816
816
|
${e=>e.name}
|
|
817
|
-
${(0,
|
|
817
|
+
${(0,r.when)((e=>e.submenu),r.html`
|
|
818
818
|
<${t}-menu>${e=>_i(e.submenu,t)}</${t}-menu>
|
|
819
819
|
`)}
|
|
820
820
|
</${t}-menu-item>
|
|
821
821
|
`)}
|
|
822
822
|
`)}
|
|
823
|
-
`,Ci=e=>
|
|
823
|
+
`,Ci=e=>r.html`
|
|
824
824
|
<div class="actions-container" part="actions-container">
|
|
825
825
|
<${e}-button
|
|
826
826
|
id="actiosnMenuTrigger"
|
|
@@ -833,17 +833,17 @@
|
|
|
833
833
|
<slot>${e=>e.name}</slot>
|
|
834
834
|
</${e}-button>
|
|
835
835
|
<${e}-menu
|
|
836
|
-
${(0,
|
|
836
|
+
${(0,r.ref)("dropdownMenu")}
|
|
837
837
|
class="actions-menu ${e=>e.classNames}"
|
|
838
838
|
part="actions-menu"
|
|
839
839
|
>
|
|
840
840
|
${t=>_i(t.allItems,e)}
|
|
841
841
|
</${e}-menu>
|
|
842
842
|
</div>
|
|
843
|
-
`,
|
|
843
|
+
`,Di=r.html`
|
|
844
844
|
${e=>Ci(C(e))}
|
|
845
|
-
`;class
|
|
846
|
-
<${e}-banner ${(0,
|
|
845
|
+
`;class Oi extends n.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){F(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,w.A)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,x.__decorate)([r.observable],Oi.prototype,"items",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close",mode:"boolean"})],Oi.prototype,"autoClose",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"disable-button",mode:"boolean"})],Oi.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],Oi.prototype,"classNames",void 0),(0,x.__decorate)([r.attr],Oi.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"open",mode:"boolean"})],Oi.prototype,"open",void 0),(0,x.__decorate)([r.attr],Oi.prototype,"buttonAppearance",void 0);const ki=Oi.compose({baseName:"dropdown-menu",styles:Fi,template:Di}),Ti=e=>r.html`
|
|
846
|
+
<${e}-banner ${(0,r.ref)("banner")}>
|
|
847
847
|
<div slot="content">
|
|
848
848
|
<div>
|
|
849
849
|
${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}
|
|
@@ -851,9 +851,9 @@
|
|
|
851
851
|
</div>
|
|
852
852
|
|
|
853
853
|
<${e}-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>
|
|
854
|
-
${e=>{var t,o,i,a,n,s,l
|
|
854
|
+
${e=>{var t,o,i,a,n,s,r,l;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||(null===(l=null===(r=null===(s=null===(n=e.notification)||void 0===n?void 0:n.config)||void 0===s?void 0:s.banner)||void 0===r?void 0:r.dismissingAction)||void 0===l?void 0:l.label)||"Ignore"}}
|
|
855
855
|
</${e}-button>
|
|
856
|
-
${(0,
|
|
856
|
+
${(0,r.repeat)((e=>{var t,o,i,a;return(null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner.confirmingActions)||(null===(a=null===(i=e.notification)||void 0===i?void 0:i.config)||void 0===a?void 0:a.banner.confirmingActions)}),r.html`
|
|
857
857
|
<${e}-button
|
|
858
858
|
slot="action"
|
|
859
859
|
appearance="lightweight"
|
|
@@ -863,13 +863,13 @@
|
|
|
863
863
|
</${e}-button>
|
|
864
864
|
`)}
|
|
865
865
|
</${e}-banner>
|
|
866
|
-
`,Li=
|
|
866
|
+
`,Li=r.html`
|
|
867
867
|
${e=>Ti(C(e))}
|
|
868
|
-
`,
|
|
869
|
-
<template ${(0,
|
|
868
|
+
`,Ai={mode:"open",delegatesFocus:!0};class Ei extends n.FoundationElement{connectedCallback(){super.connectedCallback(),ae.deprecated("ErrorBanner","Use `${prefix}-banner` instead.")}dismiss(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){ae.error(e)}}))}}(0,x.__decorate)([r.observable],Ei.prototype,"error",void 0),(0,x.__decorate)([r.observable],Ei.prototype,"notification",void 0);const Ii=Ei.compose({baseName:"error-banner",template:Li,shadowOptions:Ai});var Ri;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(Ri||(Ri={}));const Mi=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.errorDetails)&&void 0!==o?o:"Something went wrong"}`},Ni=(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},Pi=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},Hi=(0,ie.createLogger)("foundation-error"),Bi={alert:e=>{alert(Mi(e))},notification:(e,t)=>{var o,i,a,n,s,r,l,d,c,u,p,h,m;const v=t.split("-")[0],g=Ni("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 x=document.createElement("div");x.setAttribute("slot","date"),x.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===(l=null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.notification)||void 0===l?void 0:l.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(x),g.appendChild(f)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-error-dialog`);Ni("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Ni("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 Pi()})(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}},ji=(e,t,o)=>{var i,a;Hi.log({message:Mi(e),level:(i=e,(null==i?void 0:i.logLevel)||(null===(a=null==i?void 0:i.config)||void 0===a?void 0:a.logLevel)||ie.LogLevel.Error)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Bi[i]&&Bi[i](e,t,o)}))};class Vi{withTitle(e){return this.title=e,this}withErrorDetails(e){return this.errorDetails=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withNotification(e){return this.notification=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.errorDetails)throw new Error("Missing required param 'errorDetails'");let e={title:this.title,errorDetails:this.errorDetails},t={};return this.logLevel in ie.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class zi{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 Gi=r.html`
|
|
869
|
+
<template ${(0,r.ref)("errorBoundary")}>
|
|
870
870
|
<slot></slot>
|
|
871
871
|
</template>
|
|
872
|
-
`,
|
|
872
|
+
`,Yi={mode:"open",delegatesFocus:!0};class Ui extends n.FoundationElement{constructor(){super(...arguments),this.logger=(0,ie.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,x.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(Ri.ERROR_BOUNDARY_EVENT,(e=>{e.stopImmediatePropagation(),ji(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;ji((new Vi).withTitle(e).withErrorDetails(o).withNotification((new zi).withType(i).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})))}))}}(0,x.__decorate)([r.observable],Ui.prototype,"errorBoundary",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"resource-name"})],Ui.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],Ui.prototype,"closeTimeout",void 0),(0,x.__decorate)([et.Yh],Ui.prototype,"datasource",void 0);const Wi=Ui.compose({baseName:"error-boundary",template:Gi,shadowOptions:Yi}),qi=r.css`
|
|
873
873
|
:host {
|
|
874
874
|
--design-unit: 3;
|
|
875
875
|
--dialog-max-width: 358px;
|
|
@@ -888,14 +888,14 @@
|
|
|
888
888
|
overflow: hidden;
|
|
889
889
|
min-height: var(--error-details-min-height);
|
|
890
890
|
}
|
|
891
|
-
`,
|
|
892
|
-
<${e}-dialog show-close-icon="false" ${(0,
|
|
891
|
+
`,Zi=e=>r.html`
|
|
892
|
+
<${e}-dialog show-close-icon="false" ${(0,r.ref)("dialog")}>
|
|
893
893
|
<h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
|
|
894
894
|
<div class="details">${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}</div>
|
|
895
895
|
<${e}-button slot="bottom" appearance="lightweight" @click=${e=>{e.dismiss()}}>
|
|
896
|
-
${e=>{var t,o,i,a,n,s,l
|
|
896
|
+
${e=>{var t,o,i,a,n,s,r,l;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||(null===(l=null===(r=null===(s=null===(n=e.notification)||void 0===n?void 0:n.config)||void 0===s?void 0:s.dialog)||void 0===r?void 0:r.dismissingAction)||void 0===l?void 0:l.label)||"Ignore"}}
|
|
897
897
|
</${e}-button>
|
|
898
|
-
${(0,
|
|
898
|
+
${(0,r.repeat)((e=>{var t,o,i,a;return(null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog.confirmingActions)||(null===(a=null===(i=e.notification)||void 0===i?void 0:i.config)||void 0===a?void 0:a.dialog.confirmingActions)}),r.html`
|
|
899
899
|
<${e}-button
|
|
900
900
|
slot="bottom"
|
|
901
901
|
appearance="lightweight"
|
|
@@ -905,9 +905,9 @@
|
|
|
905
905
|
</${e}-button>
|
|
906
906
|
`)}
|
|
907
907
|
</${e}-dialog>
|
|
908
|
-
`,Xi=
|
|
909
|
-
${e=>
|
|
910
|
-
`,
|
|
908
|
+
`,Xi=r.html`
|
|
909
|
+
${e=>Zi(C(e))}
|
|
910
|
+
`,Ki={mode:"open",delegatesFocus:!0};class Qi extends n.FoundationElement{connectedCallback(){super.connectedCallback(),ae.deprecated("ErrorDialog","Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){var e,t,o,i,a,n,s,r;(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===(r=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===r?void 0:r.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){ae.error(e)}}}(0,x.__decorate)([r.observable],Qi.prototype,"error",void 0),(0,x.__decorate)([r.observable],Qi.prototype,"notification",void 0);const Ji=Qi.compose({baseName:"error-dialog",template:Xi,styles:qi,shadowOptions:Ki});var ea=o(22296),ta=o(21607);const oa=r.css`
|
|
911
911
|
/* Host */
|
|
912
912
|
:host {
|
|
913
913
|
display: flex;
|
|
@@ -955,16 +955,16 @@
|
|
|
955
955
|
fast-data-grid-row {
|
|
956
956
|
align-items: center;
|
|
957
957
|
}
|
|
958
|
-
`,ia=e=>
|
|
958
|
+
`,ia=e=>r.html`
|
|
959
959
|
<template>
|
|
960
960
|
<div class="file-selection">
|
|
961
|
-
<input type="file" multiple ${(0,
|
|
961
|
+
<input type="file" multiple ${(0,r.ref)("fileInput")}
|
|
962
962
|
@change=${(e,t)=>e.onInputChange(t.event)} :accept="${e=>e.accept}"/>
|
|
963
963
|
<${e}-text-field readOnly type="text" id="fileName" part="file-name-input" class="file-name-input"
|
|
964
964
|
:label="${e=>e.label}"
|
|
965
965
|
:value="${e=>e.fileName}">
|
|
966
966
|
${e=>e.label}
|
|
967
|
-
${(0,
|
|
967
|
+
${(0,r.when)((e=>e.fileName),r.html`
|
|
968
968
|
<${e}-icon slot="end" class="clear-icon" name="xmark"
|
|
969
969
|
@click=${e=>e.clearSelection()}></${e}-icon>
|
|
970
970
|
`)}
|
|
@@ -981,13 +981,13 @@
|
|
|
981
981
|
</${e}-data-grid>
|
|
982
982
|
</div>
|
|
983
983
|
</template>
|
|
984
|
-
`,aa=
|
|
984
|
+
`,aa=r.html`
|
|
985
985
|
${e=>ia(C(e))}
|
|
986
|
-
`,na=(0,ie.createLogger)("foundation-notifications"),sa=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"}`},
|
|
987
|
-
${(0,
|
|
986
|
+
`,na=(0,ie.createLogger)("foundation-notifications"),sa=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"}`},ra=e=>{var t,o;na.log({message:sa(e),level:(t=e,(null==t?void 0:t.logLevel)||(null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.logLevel)||ie.LogLevel.Debug)})},la=(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},da=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},ca=(e,t,o)=>{var i,a,n,s,r,l,d,c,u,p,h,m,v,g,f,b,y,x;ra(e);const w=t.split("-")[0],$=null!=o?o:la("notify-container",t);if($)switch($.style.position="fixed",null===(a=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.toast)||void 0===a?void 0:a.position){case"top-left":$.style.top="0",$.style.left="0";break;case"bottom-left":$.style.bottom="0",$.style.left="0";break;case"bottom-right":$.style.bottom="0",$.style.right="0";break;default:$.style.top="0",$.style.right="0"}const S=document.createElement(`${w}-toast`),F=document.createElement("div");F.setAttribute("slot","top"),F.textContent=e.title;const _=document.createElement("div");_.setAttribute("slot","content"),_.textContent=(null==e?void 0:e.body)||"";const C=document.createElement("div");let D;C.setAttribute("slot","date"),C.textContent=(null===(n=null==e?void 0:e.createdAt)||void 0===n?void 0:n.toLocaleTimeString())||"",(null===(r=null===(s=null==e?void 0:e.config)||void 0===s?void 0:s.toast)||void 0===r?void 0:r.buttons)&&(null===(c=null===(d=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===d?void 0:d.buttons)||void 0===c?void 0:c.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:S})})),t.appearance&&o.setAttribute("appearance",t.appearance),D.appendChild(o)}))),S.setAttribute("notify",(null===(p=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.toast)||void 0===p?void 0:p.type)||""),(null===(m=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.toast)||void 0===m?void 0:m.autoClose)&&S.setAttribute("auto-close",`${null===(g=null===(v=null==e?void 0:e.config)||void 0===v?void 0:v.toast)||void 0===g?void 0:g.autoClose}`),(null===(b=null===(f=null==e?void 0:e.config)||void 0===f?void 0:f.toast)||void 0===b?void 0:b.closeTimeout)&&S.setAttribute("close-timeout",`${null===(x=null===(y=null==e?void 0:e.config)||void 0===y?void 0:y.toast)||void 0===x?void 0:x.closeTimeout}`),S.appendChild(F),S.appendChild(_),S.appendChild(C),D&&S.appendChild(D),$.appendChild(S)},ua={alert:e=>{ra(e),alert(sa(e))},toast:ca,dialog:(e,t)=>{ra(e);const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);la("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{ra(e);const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);la("snack-container",t).appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;ra(e);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 da()})(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}},pa=(e,t,o)=>{Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{ua[i]&&ua[i](e,t,o)}))},ha=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},ma=(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))))},va=(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,x.__awaiter)(void 0,void 0,void 0,(function*(){var t;if(e.ok)return e.blob();{const o=yield e.json();a&&pa({title:null==o?void 0:o.MESSAGE_TYPE,body:null===(t=null==o?void 0:o.DETAILS)||void 0===t?void 0:t.ERROR,config:{toast:{autoClose:!0,closeTimeout:5e3,type:"warning"}}},"zero"),ae.error(o||"An error occurred while downloading the file.")}})))).then((e=>{if(e){const o=window.URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=t,document.body.appendChild(i),i.click(),i.remove(),a&&pa({title:"Success",body:"File downloaded successfully",config:{toast:{autoClose:!0,closeTimeout:5e3,type:"success"}}},"zero"),ae.info("File downloaded successfully")}})).catch((e=>{ae.error(e)}))},ga=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],fa=["text/plain","text/csv"],ba=["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"],ya=r.html`
|
|
987
|
+
${(0,r.when)((e=>e.rowData),r.html`
|
|
988
988
|
${e=>"DATETIME"===e.columnDefinition.type?(0,ta.Lx)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
|
|
989
989
|
`)}
|
|
990
|
-
`;class xa 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,...ga]:"office/*"===t?e=[...e,...
|
|
990
|
+
`;class xa 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,...ga]:"office/*"===t?e=[...e,...ba]:"text/*"===t?e=[...e,...fa]: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,x.__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 rt).withExpression((new ut).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:ea.k.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,x.__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=>{ea.k.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){var e;return(0,x.__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:r.html`
|
|
991
991
|
<template>
|
|
992
992
|
<div class="download-button-container">
|
|
993
993
|
<${e}-button
|
|
@@ -998,7 +998,7 @@
|
|
|
998
998
|
</${e}-button>
|
|
999
999
|
</div>
|
|
1000
1000
|
</template>
|
|
1001
|
-
`}}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:ya}}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,x.__awaiter)(this,void 0,void 0,(function*(){try{const e=ha(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield ma(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return ea.k.error(t.ERROR),void this.$emit("errorOut",t.ERROR);ea.k.info(t),this.clearSelection()}catch(e){ea.k.error(e)}}))}handleFileDownload(e){va(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,x.__decorate)([
|
|
1001
|
+
`}}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:ya}}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,x.__awaiter)(this,void 0,void 0,(function*(){try{const e=ha(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield ma(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return ea.k.error(t.ERROR),void this.$emit("errorOut",t.ERROR);ea.k.info(t),this.clearSelection()}catch(e){ea.k.error(e)}}))}handleFileDownload(e){va(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,x.__decorate)([r.observable],xa.prototype,"gridCriteria",void 0),(0,x.__decorate)([Je.lj],xa.prototype,"connect",void 0),(0,x.__decorate)([Ft.z],xa.prototype,"session",void 0),(0,x.__decorate)([r.attr],xa.prototype,"label",void 0),(0,x.__decorate)([r.attr],xa.prototype,"accept",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"file-size-limit-bytes"})],xa.prototype,"fileSizeLimitBytes",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"uploaded-files-resource-name"})],xa.prototype,"uploadedFilesResourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"upload-event-name"})],xa.prototype,"uploadEventName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"field-name"})],xa.prototype,"fieldName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"entity-id"})],xa.prototype,"entityId",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"upload-key"})],xa.prototype,"uploadKey",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"grid-fields"})],xa.prototype,"gridFields",void 0),(0,x.__decorate)([r.observable],xa.prototype,"fileName",void 0),(0,x.__decorate)([r.observable],xa.prototype,"uploadedFilesList",void 0),(0,x.__decorate)([r.observable],xa.prototype,"filesGridColumnDefinitions",void 0);const wa=void 0,$a={},Sa=xa.compose(Object.assign({baseName:"file-upload",styles:oa,template:aa,shadowOptions:wa},$a)),Fa=r.css`
|
|
1002
1002
|
.filter-wrapper {
|
|
1003
1003
|
border: 1px solid gray;
|
|
1004
1004
|
border-radius: calc(var(--design-unit) * 2px);
|
|
@@ -1049,89 +1049,89 @@
|
|
|
1049
1049
|
.flex-row foundation-select {
|
|
1050
1050
|
flex: 1;
|
|
1051
1051
|
}
|
|
1052
|
-
`;var _a=o(18471);const Ca=
|
|
1052
|
+
`;var _a=o(18471);const Ca=r.html`
|
|
1053
1053
|
<div class="close-icon" @click=${e=>e.clear()}>${ii()}</div>
|
|
1054
|
-
`;function
|
|
1054
|
+
`;function Da(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 Oa=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],ka=(e,t)=>{switch(e.type){case"number":return(e=>r.html`
|
|
1055
1055
|
<div class="flex-row">
|
|
1056
1056
|
<div>${e=>e.label}</div>
|
|
1057
1057
|
${Ca}
|
|
1058
1058
|
</div>
|
|
1059
1059
|
<div class="flex-row">
|
|
1060
1060
|
<${e}-text-field
|
|
1061
|
-
${(0,
|
|
1061
|
+
${(0,r.ref)("numFilterFieldMin")}
|
|
1062
1062
|
type="number"
|
|
1063
1063
|
:value=${(0,_a.Z)((e=>e.numFilterMin))}
|
|
1064
1064
|
placeholder="min"
|
|
1065
1065
|
></${e}-text-field>
|
|
1066
1066
|
<${e}-text-field
|
|
1067
|
-
${(0,
|
|
1067
|
+
${(0,r.ref)("numFilterFieldMax")}
|
|
1068
1068
|
type="number"
|
|
1069
1069
|
:value=${(0,_a.Z)((e=>e.numFilterMax))}
|
|
1070
1070
|
placeholder="max"
|
|
1071
1071
|
></${e}-text-field>
|
|
1072
1072
|
</div>
|
|
1073
|
-
`)(t);case"date":return(e=>
|
|
1073
|
+
`)(t);case"date":return(e=>r.html`
|
|
1074
1074
|
<div class="flex-row">
|
|
1075
1075
|
<div>${e=>e.label}</div>
|
|
1076
1076
|
${Ca}
|
|
1077
1077
|
</div>
|
|
1078
1078
|
<div class="flex-row">
|
|
1079
1079
|
<${e}-text-field
|
|
1080
|
-
${(0,
|
|
1080
|
+
${(0,r.ref)("dateFilterFieldMin")}
|
|
1081
1081
|
type="date"
|
|
1082
1082
|
:value=${(0,_a.Z)((e=>e.dateFilterMin))}
|
|
1083
1083
|
></${e}-text-field>
|
|
1084
1084
|
<${e}-text-field
|
|
1085
|
-
${(0,
|
|
1085
|
+
${(0,r.ref)("dateFilterFieldMax")}
|
|
1086
1086
|
type="date"
|
|
1087
1087
|
:value=${(0,_a.Z)((e=>e.dateFilterMax))}
|
|
1088
1088
|
></${e}-text-field>
|
|
1089
1089
|
</div>
|
|
1090
|
-
`)(t);case"boolean":return(e=>
|
|
1090
|
+
`)(t);case"boolean":return(e=>r.html`
|
|
1091
1091
|
<div class="flex-row">
|
|
1092
1092
|
<div>${e=>e.label}</div>
|
|
1093
1093
|
${Ca}
|
|
1094
1094
|
</div>
|
|
1095
1095
|
<div class="flex-row">
|
|
1096
|
-
<${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(
|
|
1097
|
-
${(0,
|
|
1096
|
+
<${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(Da(t))}}">
|
|
1097
|
+
${(0,r.repeat)((()=>Oa),r.html`
|
|
1098
1098
|
<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1099
1099
|
${e=>e.name}
|
|
1100
1100
|
</${e}-option>
|
|
1101
1101
|
`)}
|
|
1102
1102
|
</${e}-select>
|
|
1103
1103
|
</div>
|
|
1104
|
-
`)(t);case"enum":return(e=>
|
|
1104
|
+
`)(t);case"enum":return(e=>r.html`
|
|
1105
1105
|
<div class="flex-row">
|
|
1106
1106
|
<div>${e=>e.label}</div>
|
|
1107
1107
|
${Ca}
|
|
1108
1108
|
</div>
|
|
1109
1109
|
<div class="flex-row">
|
|
1110
|
-
<${e}-select @change="${(e,t)=>e.onEnumFilterSelection(
|
|
1111
|
-
${(0,
|
|
1110
|
+
<${e}-select @change="${(e,t)=>e.onEnumFilterSelection(Da(t))}}">
|
|
1111
|
+
${(0,r.repeat)((e=>e.enumFilterOptions),r.html`
|
|
1112
1112
|
<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
|
|
1113
1113
|
${e=>e.name}
|
|
1114
1114
|
</${e}-option>
|
|
1115
1115
|
`)}
|
|
1116
1116
|
</${e}-select>
|
|
1117
1117
|
</div>
|
|
1118
|
-
`)(t);default:return(e=>
|
|
1118
|
+
`)(t);default:return(e=>r.html`
|
|
1119
1119
|
<div class="flex-row">
|
|
1120
1120
|
<div>${e=>e.label}</div>
|
|
1121
1121
|
${Ca}
|
|
1122
1122
|
</div>
|
|
1123
1123
|
<div class="flex-row">
|
|
1124
1124
|
<${e}-text-field
|
|
1125
|
-
${(0,
|
|
1125
|
+
${(0,r.ref)("textFilterField")}
|
|
1126
1126
|
type="text"
|
|
1127
1127
|
:value=${(0,_a.Z)((e=>e.textFilter))}
|
|
1128
1128
|
/>
|
|
1129
1129
|
</div>
|
|
1130
|
-
`)(t)}},Ta=e=>
|
|
1130
|
+
`)(t)}},Ta=e=>r.html`
|
|
1131
1131
|
<div class="filter-wrapper">${t=>ka(t,e)}</div>
|
|
1132
|
-
`,La=
|
|
1132
|
+
`,La=r.html`
|
|
1133
1133
|
${e=>Ta(C(e))}</div>
|
|
1134
|
-
`;var
|
|
1134
|
+
`;var Aa;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(Aa||(Aa={}));class Ea 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(Aa.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(Aa.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(Aa.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(Aa.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(Aa.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(Aa.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(Aa.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(Aa.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(Aa.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(Aa.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(Aa.clear,{fieldName:this.fieldName,target:this.target})}}(0,x.__decorate)([r.attr],Ea.prototype,"fieldName",void 0),(0,x.__decorate)([r.attr],Ea.prototype,"type",void 0),(0,x.__decorate)([r.attr],Ea.prototype,"label",void 0),(0,x.__decorate)([r.attr],Ea.prototype,"target",void 0),(0,x.__decorate)([r.observable],Ea.prototype,"textFilter",void 0),(0,x.__decorate)([r.observable],Ea.prototype,"numFilterMin",void 0),(0,x.__decorate)([r.observable],Ea.prototype,"numFilterMax",void 0),(0,x.__decorate)([r.observable],Ea.prototype,"dateFilterMin",void 0),(0,x.__decorate)([r.observable],Ea.prototype,"dateFilterMax",void 0),(0,x.__decorate)([r.attr],Ea.prototype,"enumOptions",void 0),(0,x.__decorate)([r.observable],Ea.prototype,"enumFilterOptions",void 0);const Ia=Ea.compose({baseName:"filter",template:La,styles:Fa});var Ra=o(41353);const Ma=(e,t)=>r.css`
|
|
1135
1135
|
.filter-bar {
|
|
1136
1136
|
background-color: #2c2f33;
|
|
1137
1137
|
padding: calc(var(--design-unit) * 2px);
|
|
@@ -1167,38 +1167,38 @@
|
|
|
1167
1167
|
.toggle-collapsed {
|
|
1168
1168
|
color: #48ed9c;
|
|
1169
1169
|
}
|
|
1170
|
-
`,
|
|
1170
|
+
`,Na=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"}},Pa=r.html`
|
|
1171
1171
|
<p>Fetching metadata for ${e=>e.resource}...</p>
|
|
1172
|
-
`,Ha=e=>
|
|
1172
|
+
`,Ha=e=>r.html`
|
|
1173
1173
|
<div
|
|
1174
1174
|
class=${e=>(0,w.A)(["toggle",!0],["toggle-collapsed",e.collapsed])}
|
|
1175
1175
|
@click="${e=>e.toggle()}"
|
|
1176
1176
|
>
|
|
1177
|
-
${(e=>
|
|
1178
|
-
${(0,
|
|
1177
|
+
${(e=>r.html`
|
|
1178
|
+
${(0,r.when)((e=>e.collapsed),r.html`
|
|
1179
1179
|
<${e}-icon name="chevron-up"></${e}-icon>
|
|
1180
1180
|
`)}
|
|
1181
|
-
${(0,
|
|
1181
|
+
${(0,r.when)((e=>!e.collapsed),r.html`
|
|
1182
1182
|
<${e}-icon name="chevron-down"></${e}-icon>
|
|
1183
1183
|
`)}
|
|
1184
1184
|
`)(e)}
|
|
1185
1185
|
</div>
|
|
1186
1186
|
<div class=${e=>(0,w.A)(["filter-bar",!0],["collapsed",e.collapsed])}>
|
|
1187
|
-
<div class="filter-grid" ${(0,
|
|
1188
|
-
${(0,
|
|
1187
|
+
<div class="filter-grid" ${(0,r.ref)("filterGrid")}>
|
|
1188
|
+
${(0,r.repeat)((e=>e.fields),r.html`
|
|
1189
1189
|
<${e}-filter
|
|
1190
1190
|
label="${e=>e.UI_LABEL}"
|
|
1191
1191
|
target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
|
|
1192
|
-
type="${e=>
|
|
1192
|
+
type="${e=>Na(e.TYPE)}"
|
|
1193
1193
|
fieldName="${e=>e.NAME}"
|
|
1194
1194
|
enumOptions="${e=>e.VALID_VALUES}"
|
|
1195
1195
|
></${e}-filter>
|
|
1196
1196
|
`)}
|
|
1197
1197
|
</div>
|
|
1198
1198
|
</div>
|
|
1199
|
-
`,Ba=
|
|
1199
|
+
`,Ba=r.html`
|
|
1200
1200
|
${e=>e.ready?Ha(C(e)):Pa}
|
|
1201
|
-
`,ja=5;class Va extends n.FoundationElement{constructor(){super(...arguments),this.columns=ja,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,Ra.Ho)(e))).join(" ")}resourceChanged(e,t){e!==t&&(null==e?void 0:e.length)&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then((e=>{var t,o;if(this.fields=e.FIELD,null===(t=this.only)||void 0===t?void 0:t.length){const e=this.only.split(",").map((e=>e.trim())),t=(t,o)=>e.indexOf(t.NAME)>e.indexOf(o.NAME)?1:-1;this.fields=null===(o=this.fields)||void 0===o?void 0:o.filter((t=>e.includes(t.NAME))).sort(t)}this.ready=!0})).then((()=>this.initLabels())).then((()=>window.requestAnimationFrame((()=>{this.adjustColumnStyles()})))).catch((e=>ae.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,x.__decorate)([
|
|
1201
|
+
`,ja=5;class Va extends n.FoundationElement{constructor(){super(...arguments),this.columns=ja,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,Ra.Ho)(e))).join(" ")}resourceChanged(e,t){e!==t&&(null==e?void 0:e.length)&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then((e=>{var t,o;if(this.fields=e.FIELD,null===(t=this.only)||void 0===t?void 0:t.length){const e=this.only.split(",").map((e=>e.trim())),t=(t,o)=>e.indexOf(t.NAME)>e.indexOf(o.NAME)?1:-1;this.fields=null===(o=this.fields)||void 0===o?void 0:o.filter((t=>e.includes(t.NAME))).sort(t)}this.ready=!0})).then((()=>this.initLabels())).then((()=>window.requestAnimationFrame((()=>{this.adjustColumnStyles()})))).catch((e=>ae.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,x.__decorate)([r.attr],Va.prototype,"resource",void 0),(0,x.__decorate)([r.attr],Va.prototype,"only",void 0),(0,x.__decorate)([r.attr],Va.prototype,"labels",void 0),(0,x.__decorate)([r.attr],Va.prototype,"target",void 0),(0,x.__decorate)([r.attr],Va.prototype,"columns",void 0),(0,x.__decorate)([r.observable],Va.prototype,"ready",void 0),(0,x.__decorate)([r.observable],Va.prototype,"fields",void 0),(0,x.__decorate)([Je.lj],Va.prototype,"connect",void 0),(0,x.__decorate)([r.observable],Va.prototype,"collapsed",void 0);const za=Va.compose({baseName:"filter-bar",template:Ba,styles:Ma});var Ga;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Ga||(Ga={}));const Ya=e=>{const t=e?`-${e}`:"";return r.css`
|
|
1202
1202
|
${t&&`@media only screen and ${Ga[e]} {`}
|
|
1203
1203
|
:host(.spacing${t}-1x) slot {
|
|
1204
1204
|
gap: calc(var(--design-unit) * 2px);
|
|
@@ -1316,7 +1316,7 @@
|
|
|
1316
1316
|
align-content: space-evenly;
|
|
1317
1317
|
}
|
|
1318
1318
|
${t&&"}"}
|
|
1319
|
-
`},
|
|
1319
|
+
`},Ua=r.css`
|
|
1320
1320
|
:host {
|
|
1321
1321
|
width: 100%;
|
|
1322
1322
|
height: 100%;
|
|
@@ -1328,17 +1328,17 @@
|
|
|
1328
1328
|
display: flex;
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
|
-
${
|
|
1332
|
-
${
|
|
1333
|
-
${
|
|
1334
|
-
${
|
|
1335
|
-
`,
|
|
1331
|
+
${Ya()}
|
|
1332
|
+
${Ya("lg")}
|
|
1333
|
+
${Ya("md")}
|
|
1334
|
+
${Ya("sm")}
|
|
1335
|
+
`,Wa=r.html`
|
|
1336
1336
|
<template>
|
|
1337
1337
|
<slot></slot>
|
|
1338
1338
|
</template>
|
|
1339
|
-
`,
|
|
1339
|
+
`,qa=void 0,Za={};class Xa extends n.FoundationElement{}const Ka=Xa.compose(Object.assign({baseName:"flex-layout",styles:Ua,template:Wa,shadowOptions:qa},Za)),Qa=(e,t)=>r.css`
|
|
1340
1340
|
${(0,s.flipperStyles)(e,t)}
|
|
1341
|
-
`,Ja=(e,t)=>(0,n.flipperTemplate)(e,t);class en extends s.Flipper{}const tn=void 0,on={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 '},an=en.compose(Object.assign({baseName:"flipper",template:Ja,styles:Qa,shadowOptions:tn},on)),nn=225,sn=
|
|
1341
|
+
`,Ja=(e,t)=>(0,n.flipperTemplate)(e,t);class en extends s.Flipper{}const tn=void 0,on={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 '},an=en.compose(Object.assign({baseName:"flipper",template:Ja,styles:Qa,shadowOptions:tn},on)),nn=225,sn=r.css`
|
|
1342
1342
|
/* Host */
|
|
1343
1343
|
:host {
|
|
1344
1344
|
display: inline-block;
|
|
@@ -1419,12 +1419,12 @@
|
|
|
1419
1419
|
:host([visuallyhidden]) div.background {
|
|
1420
1420
|
opacity: 0%;
|
|
1421
1421
|
}
|
|
1422
|
-
`,
|
|
1422
|
+
`,rn=e=>r.html`
|
|
1423
1423
|
<div ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
|
|
1424
1424
|
<div class="container">
|
|
1425
1425
|
<div class="background" part="background" @click=${e=>e.closeFlyout()}></div>
|
|
1426
1426
|
<div class="flyout" part="flyout" @transitionend=${e=>e.closingFinished()}>
|
|
1427
|
-
${(0,
|
|
1427
|
+
${(0,r.when)((e=>e.displayHeader),r.html`
|
|
1428
1428
|
<div class="header" part="header">
|
|
1429
1429
|
<div class="title" part="title">
|
|
1430
1430
|
<slot name="title"></slot>
|
|
@@ -1443,9 +1443,9 @@
|
|
|
1443
1443
|
</div>
|
|
1444
1444
|
</div>
|
|
1445
1445
|
</div>
|
|
1446
|
-
`,
|
|
1447
|
-
${e=>
|
|
1448
|
-
`;class dn 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,x.__decorate)([
|
|
1446
|
+
`,ln=r.html`
|
|
1447
|
+
${e=>rn(C(e))}
|
|
1448
|
+
`;class dn 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,x.__decorate)([r.attr],dn.prototype,"position",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],dn.prototype,"displayHeader",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],dn.prototype,"closed",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],dn.prototype,"visuallyhidden",void 0);const cn=void 0,un={},pn=dn.compose(Object.assign({baseName:"flyout",styles:sn,template:ln,shadowOptions:cn},un));var hn;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(hn||(hn={}));const mn=e=>{const t=e?`-${e}`:"";return r.css`
|
|
1449
1449
|
${t&&`@media only screen and ${hn[e]} {`}
|
|
1450
1450
|
:host(.spacing${t}-1x) slot {
|
|
1451
1451
|
gap: calc(var(--design-unit) * 2px);
|
|
@@ -1531,7 +1531,7 @@
|
|
|
1531
1531
|
place-items: stretch;
|
|
1532
1532
|
}
|
|
1533
1533
|
${t&&"}"}
|
|
1534
|
-
`},vn=
|
|
1534
|
+
`},vn=r.css`
|
|
1535
1535
|
slot {
|
|
1536
1536
|
width: 100%;
|
|
1537
1537
|
height: 100%;
|
|
@@ -1542,21 +1542,21 @@
|
|
|
1542
1542
|
${mn("lg")}
|
|
1543
1543
|
${mn("md")}
|
|
1544
1544
|
${mn("sm")}
|
|
1545
|
-
`,gn=
|
|
1545
|
+
`,gn=r.html`
|
|
1546
1546
|
<template>
|
|
1547
1547
|
<slot></slot>
|
|
1548
1548
|
</template>
|
|
1549
|
-
`,
|
|
1549
|
+
`,fn=void 0,bn={};class yn{constructor(e,t,o,i="1fr",a="1fr"){this.listenerCache=new WeakMap,this.query=window.matchMedia(e);const n=t&&r.cssPartial`grid-template-columns: repeat(${t}, ${i});`,s=o&&r.cssPartial`grid-template-rows: repeat(${o}, ${a});`;this.styles=r.css`
|
|
1550
1550
|
slot {
|
|
1551
1551
|
${s||""}
|
|
1552
1552
|
${n||""}
|
|
1553
1553
|
}
|
|
1554
|
-
`}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 xn extends n.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(hn).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new yn(hn[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"]&&
|
|
1554
|
+
`}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 xn extends n.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(hn).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new yn(hn[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"]&&r.cssPartial`grid-template-rows: repeat(${this["row-count"]}, ${this["row-height"]||"1fr"});`,t=this["col-count"]&&r.cssPartial`grid-template-columns: repeat(${this["col-count"]}, ${this["col-width"]||"1fr"});`;this.baseStyles=r.css`
|
|
1555
1555
|
slot {
|
|
1556
1556
|
${e||""}
|
|
1557
1557
|
${t||""}
|
|
1558
1558
|
}
|
|
1559
|
-
`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.$fastController.removeStyles(this.baseStyles)}}(0,x.__decorate)([
|
|
1559
|
+
`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.$fastController.removeStyles(this.baseStyles)}}(0,x.__decorate)([r.attr],xn.prototype,"col-count",void 0),(0,x.__decorate)([r.attr],xn.prototype,"col-width",void 0),(0,x.__decorate)([r.attr],xn.prototype,"col-lg-count",void 0),(0,x.__decorate)([r.attr],xn.prototype,"col-lg-width",void 0),(0,x.__decorate)([r.attr],xn.prototype,"col-md-count",void 0),(0,x.__decorate)([r.attr],xn.prototype,"col-md-width",void 0),(0,x.__decorate)([r.attr],xn.prototype,"col-sm-count",void 0),(0,x.__decorate)([r.attr],xn.prototype,"col-sm-width",void 0),(0,x.__decorate)([r.attr],xn.prototype,"row-count",void 0),(0,x.__decorate)([r.attr],xn.prototype,"row-height",void 0),(0,x.__decorate)([r.attr],xn.prototype,"row-lg-count",void 0),(0,x.__decorate)([r.attr],xn.prototype,"row-lg-height",void 0),(0,x.__decorate)([r.attr],xn.prototype,"row-md-count",void 0),(0,x.__decorate)([r.attr],xn.prototype,"row-md-height",void 0),(0,x.__decorate)([r.attr],xn.prototype,"row-sm-count",void 0),(0,x.__decorate)([r.attr],xn.prototype,"row-sm-height",void 0);const wn=xn.compose(Object.assign({baseName:"grid-layout",styles:vn,template:gn,shadowOptions:fn},bn)),$n=r.html`
|
|
1560
1560
|
<template>
|
|
1561
1561
|
<style>
|
|
1562
1562
|
:host {
|
|
@@ -1585,32 +1585,32 @@
|
|
|
1585
1585
|
</style>
|
|
1586
1586
|
<slot></slot>
|
|
1587
1587
|
</template>
|
|
1588
|
-
`,Sn=void 0,Fn={};class _n 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,x.__decorate)([(0,
|
|
1588
|
+
`,Sn=void 0,Fn={};class _n 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,x.__decorate)([(0,r.attr)({attribute:"col-number"})],_n.prototype,"colNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-sm-number"})],_n.prototype,"colSmNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-md-number"})],_n.prototype,"colMdNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-lg-number"})],_n.prototype,"colLgNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-number"})],_n.prototype,"rowNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-sm-number"})],_n.prototype,"rowSmNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-md-number"})],_n.prototype,"rowMdNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-lg-number"})],_n.prototype,"rowLgNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width"})],_n.prototype,"width",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-sm"})],_n.prototype,"widthSm",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-md"})],_n.prototype,"widthMd",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-lg"})],_n.prototype,"widthLg",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height"})],_n.prototype,"height",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-sm"})],_n.prototype,"heightSm",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-md"})],_n.prototype,"heightMd",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-lg"})],_n.prototype,"heightLg",void 0);const Cn=_n.compose(Object.assign({baseName:"grid-layout-item",template:$n,shadowOptions:Sn},Fn)),Dn=(e,t)=>r.css`
|
|
1589
1589
|
${(0,s.horizontalScrollStyles)(e,t)}
|
|
1590
|
-
`,
|
|
1590
|
+
`,On=(e,t)=>(0,n.horizontalScrollTemplate)(e,t);class kn extends s.HorizontalScroll{}const Tn={delegatesFocus:!0,mode:"open"},Ln={nextFlipper:r.html`
|
|
1591
1591
|
<foundation-flipper
|
|
1592
1592
|
@click="${e=>e.scrollToNext()}"
|
|
1593
1593
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
1594
1594
|
></foundation-flipper>
|
|
1595
|
-
`,previousFlipper:
|
|
1595
|
+
`,previousFlipper:r.html`
|
|
1596
1596
|
<foundation-flipper
|
|
1597
1597
|
@click="${e=>e.scrollToPrevious()}"
|
|
1598
1598
|
direction="previous"
|
|
1599
1599
|
aria-hidden="${e=>e.flippersHiddenFromAT}"
|
|
1600
1600
|
></foundation-flipper>
|
|
1601
|
-
`},
|
|
1602
|
-
${
|
|
1603
|
-
`,Hn=
|
|
1601
|
+
`},An=kn.compose(Object.assign({baseName:"horizontal-scroll",template:On,styles:Dn,shadowOptions:Tn},Ln));var En=o(38938),In=o(79840),Rn=o(64739),Mn=o(75030);const Nn=()=>(En.vI.add(Mn.mRB,Rn.NCV,In.vnX),En.vz.css()),Pn=(e,t)=>r.css`
|
|
1602
|
+
${Nn()}
|
|
1603
|
+
`,Hn=r.html`
|
|
1604
1604
|
<template>
|
|
1605
1605
|
<i
|
|
1606
|
-
${(0,
|
|
1606
|
+
${(0,r.ref)("iElement")}
|
|
1607
1607
|
class=${e=>`fa-${e.name} fa-${e.size} fa-${e.variant}`}
|
|
1608
1608
|
part=${e=>`icon-${e.name}-${e.size}-${e.variant}`}
|
|
1609
1609
|
>
|
|
1610
1610
|
<slot></slot>
|
|
1611
1611
|
</i>
|
|
1612
1612
|
</template>
|
|
1613
|
-
`,Bn={mode:"open",delegatesFocus:!0},jn={};var Vn;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Vn||(Vn={}));class zn 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,
|
|
1613
|
+
`,Bn={mode:"open",delegatesFocus:!0},jn={};var Vn;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Vn||(Vn={}));class zn 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,En.N)({prefix:Vn[this.variant],iconName:this.name}),t=(0,En.qv)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,x.__decorate)([r.observable],zn.prototype,"iElement",void 0),(0,x.__decorate)([r.attr],zn.prototype,"name",void 0),(0,x.__decorate)([r.attr],zn.prototype,"size",void 0),(0,x.__decorate)([r.attr],zn.prototype,"variant",void 0);const Gn=zn.compose(Object.assign({baseName:"icon",template:Hn,styles:Pn,shadowOptions:Bn},jn)),Yn=(e,t)=>r.css`
|
|
1614
1614
|
${(0,s.listboxStyles)(e,t)}
|
|
1615
1615
|
|
|
1616
1616
|
:host {
|
|
@@ -1621,11 +1621,11 @@
|
|
|
1621
1621
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
|
|
1622
1622
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
1623
1623
|
}
|
|
1624
|
-
`,
|
|
1624
|
+
`,Un=(e,t)=>(0,n.listboxTemplate)(e,t);class Wn extends s.Listbox{}const qn=void 0,Zn={},Xn=Wn.compose(Object.assign({baseName:"listbox",template:Un,styles:Yn,shadowOptions:qn},Zn)),Kn=(e,t)=>r.css`
|
|
1625
1625
|
${(0,s.optionStyles)(e,t)}
|
|
1626
|
-
`,Qn=(e,t)=>(0,n.listboxOptionTemplate)(e,t);class Jn extends s.ListboxOption{}const es=void 0,ts={},os=Jn.compose(Object.assign({baseName:"option",template:Qn,styles:
|
|
1626
|
+
`,Qn=(e,t)=>(0,n.listboxOptionTemplate)(e,t);class Jn extends s.ListboxOption{}const es=void 0,ts={},os=Jn.compose(Object.assign({baseName:"option",template:Qn,styles:Kn,shadowOptions:es},ts)),is=(e,t)=>r.css`
|
|
1627
1627
|
${(0,s.menuStyles)(e,t)}
|
|
1628
|
-
`,as=(e,t)=>(0,n.menuTemplate)(e,t);class ns extends s.Menu{}const ss=void 0,
|
|
1628
|
+
`,as=(e,t)=>(0,n.menuTemplate)(e,t);class ns extends s.Menu{}const ss=void 0,rs={},ls=ns.compose(Object.assign({baseName:"menu",template:as,styles:is,shadowOptions:ss},rs)),ds=(e,t)=>r.css`
|
|
1629
1629
|
${(0,s.menuItemStyles)(e,t)}
|
|
1630
1630
|
|
|
1631
1631
|
:host, :host(.indent-0[aria-haspopup='menu']) {
|
|
@@ -1639,11 +1639,11 @@
|
|
|
1639
1639
|
height: auto;
|
|
1640
1640
|
width: auto;
|
|
1641
1641
|
}
|
|
1642
|
-
`,cs=(e,t)=>(0,n.menuItemTemplate)(e,t);class us extends s.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const ps=void 0,hs={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 '},ms=us.compose(Object.assign({baseName:"menu-item",template:cs,styles:ds,shadowOptions:ps},hs)),vs=
|
|
1642
|
+
`,cs=(e,t)=>(0,n.menuItemTemplate)(e,t);class us extends s.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const ps=void 0,hs={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 '},ms=us.compose(Object.assign({baseName:"menu-item",template:cs,styles:ds,shadowOptions:ps},hs)),vs=r.css`
|
|
1643
1643
|
${oi}
|
|
1644
|
-
`,gs=
|
|
1644
|
+
`,gs=r.html`
|
|
1645
1645
|
${ni}
|
|
1646
|
-
`,
|
|
1646
|
+
`,fs={mode:"open",delegatesFocus:!0},bs={};class ys extends li{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.showModal()}}const xs=ys.compose(Object.assign({baseName:"modal",styles:vs,template:gs,shadowOptions:fs},bs));var ws;!function(e){e.BELOW="below",e.ABOVE="above"}(ws||(ws={}));const $s=230,Ss=r.css`
|
|
1647
1647
|
.root {
|
|
1648
1648
|
position: relative;
|
|
1649
1649
|
width: inherit;
|
|
@@ -1810,7 +1810,7 @@
|
|
|
1810
1810
|
.label-hidden {
|
|
1811
1811
|
display: none;
|
|
1812
1812
|
}
|
|
1813
|
-
`;let Fs=class extends ot{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,x.__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||ae.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){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,x.__decorate)([(0,
|
|
1813
|
+
`;let Fs=class extends ot{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,x.__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||ae.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){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,x.__decorate)([(0,r.attr)({attribute:"value-field"})],Fs.prototype,"valueField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"label-field"})],Fs.prototype,"labelField",void 0),Fs=(0,x.__decorate)([(0,r.customElement)({name:"multiselect-datasource"})],Fs);const _s=(e="foundation")=>r.html`
|
|
1814
1814
|
<label
|
|
1815
1815
|
part="label"
|
|
1816
1816
|
for="control"
|
|
@@ -1818,7 +1818,7 @@
|
|
|
1818
1818
|
>
|
|
1819
1819
|
<slot
|
|
1820
1820
|
name="label"
|
|
1821
|
-
${(0,
|
|
1821
|
+
${(0,r.slotted)({property:"defaultSlottedNodes",filter:n.whitespaceFilter})}
|
|
1822
1822
|
></slot>
|
|
1823
1823
|
</label>
|
|
1824
1824
|
<div class="root" part="root">
|
|
@@ -1826,7 +1826,7 @@
|
|
|
1826
1826
|
<div part="indicator" class="indicator" @click=${e=>!e.disabled&&e.toggle()}>
|
|
1827
1827
|
<svg
|
|
1828
1828
|
viewBox="0 0 12 7"
|
|
1829
|
-
${(0,
|
|
1829
|
+
${(0,r.ref)("arrowIcon")}
|
|
1830
1830
|
id="arrow-icon"
|
|
1831
1831
|
class="${e=>(0,w.A)(["disabled-svg",e.disabled])}"
|
|
1832
1832
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1846,8 +1846,8 @@
|
|
|
1846
1846
|
@click=${e=>e.toggle()}
|
|
1847
1847
|
/>
|
|
1848
1848
|
</div>
|
|
1849
|
-
<div ${(0,
|
|
1850
|
-
${(0,
|
|
1849
|
+
<div ${(0,r.ref)("optionsElement")} class="options">
|
|
1850
|
+
${(0,r.when)((e=>e.search),r.html`
|
|
1851
1851
|
<${e}-text-field
|
|
1852
1852
|
id="filter-search"
|
|
1853
1853
|
part="filter-search"
|
|
@@ -1858,10 +1858,10 @@
|
|
|
1858
1858
|
></${e}-text-field>
|
|
1859
1859
|
`)}
|
|
1860
1860
|
<div class="checkbox-container">
|
|
1861
|
-
${(0,
|
|
1861
|
+
${(0,r.when)((e=>e.loading),r.html`
|
|
1862
1862
|
<${e}-progress slot="indicator"></${e}-progress>
|
|
1863
1863
|
`)}
|
|
1864
|
-
${(0,
|
|
1864
|
+
${(0,r.when)((e=>e.all),r.html`
|
|
1865
1865
|
<${e}-checkbox
|
|
1866
1866
|
@click=${e=>e.selectCheckboxAll()}
|
|
1867
1867
|
@change=${(e,t)=>e.changeHandler(t.event)}
|
|
@@ -1871,7 +1871,7 @@
|
|
|
1871
1871
|
All ${e=>e.name}
|
|
1872
1872
|
</${e}-checkbox>
|
|
1873
1873
|
`)}
|
|
1874
|
-
${(0,
|
|
1874
|
+
${(0,r.repeat)((e=>e.filteredAvailableOptions),r.html`
|
|
1875
1875
|
<${e}-checkbox
|
|
1876
1876
|
@click=${(e,t)=>t.parent.selectCheckboxOne(e)}
|
|
1877
1877
|
@change=${(e,t)=>t.parent.changeHandler(t.event)}
|
|
@@ -1885,11 +1885,11 @@
|
|
|
1885
1885
|
</div>
|
|
1886
1886
|
</div>
|
|
1887
1887
|
<slot
|
|
1888
|
-
${(0,
|
|
1888
|
+
${(0,r.slotted)({property:"slottedDatasource",filter:e=>e instanceof Fs})}
|
|
1889
1889
|
></slot>
|
|
1890
|
-
`,Cs=
|
|
1890
|
+
`,Cs=r.html`
|
|
1891
1891
|
${_s()}
|
|
1892
|
-
`,
|
|
1892
|
+
`,Ds=void 0,Os={};class ks extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,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=ws.BELOW,this.initialisedOptions=!1}debounceChanged(e,t){this.debouncedInputHandler=Ze()(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===ws.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}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)}setDropdownPosition(){let e=this.position;if(this.autoPosition){let t=this.assignedSlot?this.assignedSlot.parentElement:this.parentElement;for(;t&&!t.classList.contains("content-wrapper");)t=t.parentElement;if(t){const o=t.getBoundingClientRect(),i=this.getBoundingClientRect(),a=o.top+o.height/2;e=i.top<a?ws.BELOW:ws.ABOVE}else{const t=this.getBoundingClientRect(),o=window.innerHeight,i=t.top,a=o-t.bottom;e=a<t.height&&i>a?ws.ABOVE:ws.BELOW}}e===ws.ABOVE?(this.optionsElement.classList.add("position-above"),this.optionsElement.classList.remove("position-below")):e===ws.BELOW&&(this.optionsElement.classList.add("position-below"),this.optionsElement.classList.remove("position-above"))}optionGetter(e){return"string"!=typeof e?e.value:e}getItemLabel(e){let t;return e?(t="string"==typeof e?e:e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getDisplayValue(){let e="";switch(this.selectedOptions.length){case 0:e=this.getPlaceholder;break;case 1:{const t=this.options.find((e=>this.optionGetter(e)===this.selectedOptions[0]));e=this.getItemLabel(t);break}case this.options.length:e=`All ${this.name}`.trim();break;default:e=`${this.selectedOptions.length} Selected`}return e}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}get isAllSelected(){return!this.isAllOptionsDisabled&&this.selectedOptions.length===this.getEnabledOptionsCount()}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}getEnabledOptionsCount(){return this.options.length-this.options.filter(this.isOptionDisabled).length}selectCheckboxAll(){const e=this.selectedOptions.length===this.getEnabledOptionsCount();this.selectedOptions=e?[]:this.options.filter((e=>!this.isOptionDisabled(e))).map((e=>this.optionGetter(e))),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}setFilter(){this.filteredAvailableOptions=[...this.options.filter((e=>{var t;return("string"==typeof e?e:null!==(t=e.label)&&void 0!==t?t:e.value).toLowerCase().startsWith(this.filterSearchValue.toLowerCase())}))]}asyncSetFilter(){if(this.slottedDatasource.length>0){const e=this.slottedDatasource[0].datasource.resourceType;e===We._g.DATASERVER&&pt(this.slottedDatasource[0],this.filterSearchValue),e===We._g.REQUEST_SERVER&&ht(this.slottedDatasource[0],this.filterSearchValue)}else this.loading=!1,ae.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality.")}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){F(e,this)&&(this.open=!1)}}(0,x.__decorate)([r.attr],ks.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"auto-position"})],ks.prototype,"autoPosition",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],ks.prototype,"all",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],ks.prototype,"allSelected",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],ks.prototype,"search",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],ks.prototype,"disabled",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],ks.prototype,"async",void 0),(0,x.__decorate)([r.attr],ks.prototype,"debounce",void 0),(0,x.__decorate)([r.observable],ks.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],ks.prototype,"slottedDatasource",void 0),(0,x.__decorate)([r.observable],ks.prototype,"valueFormatter",void 0),(0,x.__decorate)([r.observable],ks.prototype,"loading",void 0),(0,x.__decorate)([r.observable],ks.prototype,"filterSearchValue",void 0),(0,x.__decorate)([r.observable],ks.prototype,"open",void 0),(0,x.__decorate)([r.observable],ks.prototype,"options",void 0),(0,x.__decorate)([r.observable],ks.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],ks.prototype,"filteredAvailableOptions",void 0),(0,x.__decorate)([r.observable],ks.prototype,"scrollContainer",void 0),(0,x.__decorate)([r.observable],ks.prototype,"position",void 0),(0,x.__decorate)([r.observable],ks.prototype,"onAllSelectedCallback",void 0),(0,x.__decorate)([r.volatile],ks.prototype,"getDisplayValue",null),(0,x.__decorate)([r.volatile],ks.prototype,"getPlaceholder",null),(0,x.__decorate)([r.volatile],ks.prototype,"isAllSelected",null),(0,x.__decorate)([r.volatile],ks.prototype,"isAllOptionsDisabled",null);const Ts=ks.compose(Object.assign({baseName:"multiselect",template:Cs,styles:Ss,shadowOptions:Ds},Os));class Ls{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 As=(e,t)=>r.css`
|
|
1893
1893
|
${(0,s.numberFieldStyles)(e,t)}
|
|
1894
1894
|
::part(label) {
|
|
1895
1895
|
color: var(--neutral-foreground-rest);
|
|
@@ -1919,14 +1919,14 @@
|
|
|
1919
1919
|
::part(end) {
|
|
1920
1920
|
margin-inline-end: unset;
|
|
1921
1921
|
}
|
|
1922
|
-
`,
|
|
1922
|
+
`,Es=(e,t)=>r.html`
|
|
1923
1923
|
<template class="${e=>e.readOnly?"readonly":""}">
|
|
1924
1924
|
<label
|
|
1925
1925
|
part="label"
|
|
1926
1926
|
for="${e=>e.id?e.id:"control"}"
|
|
1927
1927
|
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
1928
1928
|
>
|
|
1929
|
-
<slot ${(0,
|
|
1929
|
+
<slot ${(0,r.slotted)("defaultSlottedNodes")}></slot>
|
|
1930
1930
|
</label>
|
|
1931
1931
|
<div class="root" part="root">
|
|
1932
1932
|
${(0,n.startSlotTemplate)(e,t)}
|
|
@@ -1973,9 +1973,9 @@
|
|
|
1973
1973
|
aria-owns="${e=>e.ariaOwns}"
|
|
1974
1974
|
aria-relevant="${e=>e.ariaRelevant}"
|
|
1975
1975
|
aria-roledescription="${e=>e.ariaRoledescription}"
|
|
1976
|
-
${(0,
|
|
1976
|
+
${(0,r.ref)("control")}
|
|
1977
1977
|
/>
|
|
1978
|
-
${(0,
|
|
1978
|
+
${(0,r.when)((e=>!e.hideStep&&!e.readOnly&&!e.disabled),r.html`
|
|
1979
1979
|
<div class="controls" part="controls">
|
|
1980
1980
|
<div class="step-up" part="step-up" @click="${e=>e.stepUp()}">
|
|
1981
1981
|
<slot name="step-up-glyph">${t.stepUpGlyph||""}</slot>
|
|
@@ -1988,7 +1988,7 @@
|
|
|
1988
1988
|
${(0,n.endSlotTemplate)(e,t)}
|
|
1989
1989
|
</div>
|
|
1990
1990
|
</template>
|
|
1991
|
-
`;class Is 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 Ls(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 Ls(this.locale).hasSeparator(this.control.value)?
|
|
1991
|
+
`;class Is 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 Ls(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 Ls(this.locale).hasSeparator(this.control.value)?r.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)||r.DOM.queueUpdate((()=>{this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.value=this.control.value,this.$emit("input")}))}valueChanged(e,t){if(null==t&&this.control)this.control.value="";else if(null!=t&&t!==e){if(!this.isUserInput)return this.value=this.withFormatting?this.validateMinMax(this.value):this.validateMinMax(this.value,!1),void r.DOM.queueUpdate((()=>{this.control.value=this.withFormatting&&this.value?this.toIntlNumberFormat(this.value):this.value}));const e=t;r.DOM.queueUpdate((()=>{var o;""!==(null===(o=this.control)||void 0===o?void 0:o.value)?""!==this.value?(this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e,this.value=this.withFormatting?this.sanitiseInputVal(this.control.value):this.control.value):this.control.value=t:this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e}))}}handleBlur(){this.isUserInput=!1,this.value=this.validateMinMax(this.control.value,this.withFormatting),this.control.value=this.withFormatting&&this.value?this.toIntlNumberFormat(this.value):this.value,this.$emit("input")}}(0,x.__decorate)([r.attr],Is.prototype,"autocomplete",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Is.prototype,"hideStep",void 0),(0,x.__decorate)([r.attr],Is.prototype,"value",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Is.prototype,"withFormatting",void 0),(0,x.__decorate)([r.attr],Is.prototype,"locale",void 0);const Rs={delegatesFocus:!0,mode:"open"},Ms={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 '},Ns=Is.compose(Object.assign({baseName:"number-field",template:Es,styles:As,shadowOptions:Rs},Ms));var Ps=o(86975);const Hs={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Bs 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,Ps.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,x.__decorate)([r.attr],Bs.prototype,"selector",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Bs.prototype,"show",void 0),(0,x.__decorate)([r.attr],Bs.prototype,"event",void 0),(0,x.__decorate)([r.attr],Bs.prototype,"placement",void 0),(0,x.__decorate)([(0,r.attr)({converter:Hs})],Bs.prototype,"offset",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Bs.prototype,"flip",void 0);const js=r.css`
|
|
1992
1992
|
:host {
|
|
1993
1993
|
display: none;
|
|
1994
1994
|
inset: unset !important;
|
|
@@ -1998,22 +1998,22 @@
|
|
|
1998
1998
|
:host([show]) {
|
|
1999
1999
|
display: block;
|
|
2000
2000
|
}
|
|
2001
|
-
`,Vs=
|
|
2001
|
+
`,Vs=r.html`
|
|
2002
2002
|
<template>
|
|
2003
2003
|
<slot></slot>
|
|
2004
2004
|
</template>
|
|
2005
|
-
`,zs=Bs.compose({baseName:"popper",styles:js,template:Vs}),Gs=(e,t)=>
|
|
2005
|
+
`,zs=Bs.compose({baseName:"popper",styles:js,template:Vs}),Gs=(e,t)=>r.css`
|
|
2006
2006
|
${(0,s.progressStyles)(e,t)}
|
|
2007
2007
|
:host {
|
|
2008
2008
|
height: calc(var(--design-unit) * 2px);
|
|
2009
2009
|
}
|
|
2010
|
-
`,
|
|
2010
|
+
`,Ys=(e,t)=>(0,n.progressTemplate)(e,t);class Us extends s.Progress{}const Ws=void 0,qs={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},Zs=Us.compose(Object.assign({baseName:"progress",template:Ys,styles:Gs,shadowOptions:Ws},qs)),Xs=(e,t)=>r.css`
|
|
2011
2011
|
${(0,s.progressRingStyles)(e,t)}
|
|
2012
|
-
`,
|
|
2012
|
+
`,Ks=(e,t)=>(0,n.progressRingTemplate)(e,t);class Qs extends s.Progress{}const Js=void 0,er={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 '},tr=Qs.compose(Object.assign({baseName:"progress-ring",template:Ks,styles:Xs,shadowOptions:Js},er)),or=(e,t)=>r.css`
|
|
2013
2013
|
${(0,s.radioStyles)(e,t)}
|
|
2014
|
-
`,
|
|
2014
|
+
`,ir=(e,t)=>(0,n.radioTemplate)(e,t);class ar extends s.Radio{}const nr=void 0,sr={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},rr=ar.compose(Object.assign({baseName:"radio",template:ir,styles:or,shadowOptions:nr},sr)),lr=(e,t)=>r.css`
|
|
2015
2015
|
${(0,s.radioGroupStyles)(e,t)}
|
|
2016
|
-
`,
|
|
2016
|
+
`,dr=(e,t)=>(0,n.radioGroupTemplate)(e,t);class cr extends s.RadioGroup{}const ur=void 0,pr={},hr=cr.compose(Object.assign({baseName:"radio-group",template:dr,styles:lr,shadowOptions:ur},pr)),mr=r.css`
|
|
2017
2017
|
.search-bar-combobox {
|
|
2018
2018
|
width: 100%;
|
|
2019
2019
|
min-width: auto;
|
|
@@ -2106,17 +2106,17 @@
|
|
|
2106
2106
|
.close-icon {
|
|
2107
2107
|
color: var(--accent-fill-rest);
|
|
2108
2108
|
}
|
|
2109
|
-
`,
|
|
2109
|
+
`,vr=(e="start")=>'\n<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" width="10px" height="10px">\n <g transform="matrix(1 0 0 1 -256 -14 )">\n <path class="cross-icon" fill="white" d="M 9.9265625 8.865937499999998 L 6.060625000000001 5 L 9.265625 1.795 L 9.9265625 1.1340624999999993 C 10.0240625 1.0365624999999996 10.0240625 0.8781249999999996 9.9265625 0.7806249999999992 L 9.219375 0.07343749999999982 C 9.121875 -0.024062500000000542 8.9634375 -0.024062500000000542 8.8659375 0.07343749999999982 L 5 3.9393750000000005 L 1.1340625 0.073125 C 1.0365625 -0.02437500000000037 0.8781250000000002 -0.02437500000000037 0.7806249999999999 0.073125 L 0.073125 0.7803125 C -0.024375000000000008 0.8778124999999998 -0.024375000000000008 1.0362499999999997 0.073125 1.13375 L 3.9393750000000005 5 L 0.073125 8.865937499999998 C -0.024375000000000008 8.9634375 -0.024375000000000008 9.121875 0.073125 9.219375000000001 L 0.7803125 9.9265625 C 0.8778125000000001 10.0240625 1.03625 10.0240625 1.13375 9.9265625 L 5 6.060625 L 8.205 9.265625 L 8.8659375 9.9265625 C 8.9634375 10.0240625 9.121875 10.0240625 9.219375 9.9265625 L 9.9265625 9.219375000000001 C 10.0240625 9.121875 10.0240625 8.9634375 9.9265625 8.865937499999998 Z " fill-rule="nonzero" fill="#c9c9c9" stroke="none" fill-opacity="0.8" transform="matrix(1 0 0 1 256 14 )"/>\n </g>\n</svg>\n',gr=()=>'\n<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="30px" height="30px" class="bi bi-plus" viewBox="0 0 16 16">\n <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>\n</svg>',fr=e=>r.html`
|
|
2110
2110
|
|
|
2111
2111
|
<label part="label" for="control" data-test-id="label" class=${e=>{var t;return(0,w.A)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
|
|
2112
2112
|
>
|
|
2113
2113
|
<slot
|
|
2114
|
-
${(0,
|
|
2114
|
+
${(0,r.slotted)({property:"defaultSlottedNodes",filter:n.whitespaceFilter})}
|
|
2115
2115
|
></slot>
|
|
2116
2116
|
</label>
|
|
2117
2117
|
|
|
2118
2118
|
<${e}-search-bar-combobox
|
|
2119
|
-
${(0,
|
|
2119
|
+
${(0,r.ref)("combobox")}
|
|
2120
2120
|
placeholder=${e=>e.placeholder}
|
|
2121
2121
|
disabled=${e=>e.disabled}
|
|
2122
2122
|
autocomplete="none"
|
|
@@ -2129,11 +2129,11 @@
|
|
|
2129
2129
|
data-test-id="search-bar"
|
|
2130
2130
|
>
|
|
2131
2131
|
<div
|
|
2132
|
-
${(0,
|
|
2132
|
+
${(0,r.ref)("selectedOptionsDiv")}
|
|
2133
2133
|
slot="selectedOptions"
|
|
2134
2134
|
class="selected-options ${e=>e.selectedOptions.length>0?"selected-options-divider":null}"
|
|
2135
2135
|
>
|
|
2136
|
-
${(0,
|
|
2136
|
+
${(0,r.repeat)((e=>e.selectedOptions),r.html`
|
|
2137
2137
|
<${e}-button
|
|
2138
2138
|
class="options-button"
|
|
2139
2139
|
appearance=${(e,t)=>t.parent.appearance}
|
|
@@ -2150,7 +2150,7 @@
|
|
|
2150
2150
|
</${e}-button>
|
|
2151
2151
|
`)}
|
|
2152
2152
|
</div>
|
|
2153
|
-
${(0,
|
|
2153
|
+
${(0,r.repeat)((e=>e.filteredOptions),r.html`
|
|
2154
2154
|
<${e}-option
|
|
2155
2155
|
value="${e=>e.field}"
|
|
2156
2156
|
:disabled=${(e,t)=>!e.isEnabled(t.parent.searchTerm,t.parent.selectedOptions)}
|
|
@@ -2184,9 +2184,9 @@
|
|
|
2184
2184
|
<${e}-tooltip class="tooltip" anchor="search-clear-button">
|
|
2185
2185
|
Clear Search Terms
|
|
2186
2186
|
</${e}-tooltip>
|
|
2187
|
-
`,
|
|
2188
|
-
${e=>
|
|
2189
|
-
`,
|
|
2187
|
+
`,br=r.html`
|
|
2188
|
+
${e=>fr(C(e))}
|
|
2189
|
+
`,yr=10,xr=3,wr=1,$r=(e,t)=>(new rt).withExpression((new ut).withField(e).withValue(t).withSerialiser(ct.containsIgnoreCase).build()).build();class Sr extends n.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=xr,this.placeholder="Start typing to search",this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g," "),this.addOrReplaceSelectedText=(e,t,o)=>(null==t?void 0:t.length)>0?e.replace(t,o):e.concat(o)}clear(){this.selectedOptions=[],this.combobox.currentValue="",this.$emit("selectionChange",[])}clearSearch(){this.clear()}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){const e=[];this.combobox.selectedOptions.forEach((t=>{var o,i;const a=t.value,n=this.searchTerm.trim();e.push({field:a,term:n,label:(null===(o=this.options.find((e=>e.field===a)))||void 0===o?void 0:o.label(n))||t.text,createCriteria:null===(i=this.options.find((e=>e.field===a)))||void 0===i?void 0:i.createCriteria})})),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter(((e,t,o)=>t===o.findIndex((t=>e.field===t.field&&e.term===t.term)))),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),r.DOM.queueUpdate((()=>{setTimeout((()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)}),yr)}))}pasteHandler(e){var t;this.loading=!0;const o=e.clipboardData.getData("text/plain"),i=this.normalizeDelimiter(o),a=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),n=this.addOrReplaceSelectedText(this.combobox.value,a,i);(null==n?void 0:n.length)>=this.minlength&&(this.combobox.value=n,this.searchTerm=n,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some((o=>o.term===e&&o.field===t))}unselectOption(e){this.selectedOptions=this.selectedOptions.filter((t=>t!==e)),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1}))}filterSelectedOptions(e){this.filteredOptions=this.options.filter((t=>!this.selectedOptions.find((o=>o.field===t.field&&o.term.trim()===e.trim()))))}}(0,x.__decorate)([r.observable],Sr.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],Sr.prototype,"options",void 0),(0,x.__decorate)([r.observable],Sr.prototype,"searchTerm",void 0),(0,x.__decorate)([r.attr],Sr.prototype,"appearance",void 0),(0,x.__decorate)([r.attr],Sr.prototype,"minlength",void 0),(0,x.__decorate)([r.attr],Sr.prototype,"placeholder",void 0),(0,x.__decorate)([r.attr],Sr.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],Sr.prototype,"loading",void 0),(0,x.__decorate)([r.observable],Sr.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],Sr.prototype,"filteredOptions",void 0);const Fr=void 0,_r={},Cr=Sr.compose(Object.assign({baseName:"search-bar",template:br,styles:mr,shadowOptions:Fr},_r)),Dr=(e,t)=>r.css`
|
|
2190
2190
|
${gt(e,t)}
|
|
2191
2191
|
.control {
|
|
2192
2192
|
width: auto;
|
|
@@ -2208,7 +2208,7 @@
|
|
|
2208
2208
|
min-width: 150px;
|
|
2209
2209
|
max-width: 169px;
|
|
2210
2210
|
}
|
|
2211
|
-
`,
|
|
2211
|
+
`,Or=(e,t)=>r.html`
|
|
2212
2212
|
<template
|
|
2213
2213
|
aria-disabled="${e=>e.ariaDisabled}"
|
|
2214
2214
|
autocomplete="${e=>e.autocomplete}"
|
|
@@ -2239,7 +2239,7 @@
|
|
|
2239
2239
|
:value="${e=>e.value}"
|
|
2240
2240
|
@input="${(e,t)=>e.inputHandler(t.event)}"
|
|
2241
2241
|
@keyup="${(e,t)=>e.keyupHandler(t.event)}"
|
|
2242
|
-
${(0,
|
|
2242
|
+
${(0,r.ref)("control")}
|
|
2243
2243
|
data-test-id="selected-value"
|
|
2244
2244
|
/>
|
|
2245
2245
|
</slot>
|
|
@@ -2252,15 +2252,15 @@
|
|
|
2252
2252
|
role="listbox"
|
|
2253
2253
|
?disabled="${e=>e.disabled}"
|
|
2254
2254
|
?hidden="${e=>!e.open}"
|
|
2255
|
-
${(0,
|
|
2255
|
+
${(0,r.ref)("listbox")}
|
|
2256
2256
|
data-test-id="listbox"
|
|
2257
2257
|
>
|
|
2258
2258
|
<slot
|
|
2259
|
-
${(0,
|
|
2259
|
+
${(0,r.slotted)({filter:n.Listbox.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
|
|
2260
2260
|
></slot>
|
|
2261
2261
|
</div>
|
|
2262
2262
|
</template>
|
|
2263
|
-
`;class
|
|
2263
|
+
`;class kr extends s.Combobox{constructor(){super(...arguments),this.minlength=wr,this.previousLength=-1,this.changeListener=e=>{this.previousLength=0}}connectedCallback(){super.connectedCallback(),this.addEventListener("change",this.changeListener)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this.changeListener)}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.value=this.control.value,this.$emit("change")}this.control.focus()}}keyupHandler(e){switch(e.key){case"Backspace":case"Delete":this.previousLength<0?this.$emit("inputdeleted"):this.previousLength=this.previousLength-1;break;case"Enter":if(this.open&&-1!==this.selectedIndex){const e=this.slottedOptions[0];this.selectedOptions=[e],this.control.value=e.text,this.value=this.control.value,this.$emit("change")}}super.keyupHandler(e)}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":return this.control.value.length<this.minlength?void 0:super.keydownHandler(e);case"Enter":return-1!==this.selectedIndex&&super.keydownHandler(e);case"Tab":if(!this.open)return!0;e.shiftKey?this.selectPreviousOption():this.selectNextOption();break;default:return super.keydownHandler(e)}}inputHandler(e){this.control.value.length>=this.minlength?this.open=!0:(e.stopImmediatePropagation(),this.open=!1),this.value=this.control.value,this.previousLength=this.control.value.length}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),void this.focusAndScrollOptionIntoView();this.ariaControls="",this.ariaExpanded="false"}}(0,x.__decorate)([r.attr],kr.prototype,"minlength",void 0);const Tr={delegatesFocus:!0,mode:"open"},Lr={},Ar=kr.compose(Object.assign({baseName:"search-bar-combobox",template:Or,styles:Dr,shadowOptions:Tr},Lr)),Er=(e,t)=>r.css`
|
|
2264
2264
|
${(0,s.radioGroupStyles)(e,t)}
|
|
2265
2265
|
::slotted(foundation-segmented-item:first-of-type) {
|
|
2266
2266
|
border-radius: calc(var(--control-corner-radius) * 1px) 0 0
|
|
@@ -2273,7 +2273,7 @@
|
|
|
2273
2273
|
calc(var(--control-corner-radius) * 1px) 0;
|
|
2274
2274
|
border-left-width: 0;
|
|
2275
2275
|
}
|
|
2276
|
-
`,
|
|
2276
|
+
`,Ir=(e,t)=>(0,n.radioGroupTemplate)(e,t);class Rr extends n.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.checked=!1})),super.valueChanged()}}const Mr=void 0,Nr={},Pr=Rr.compose(Object.assign({baseName:"segmented-control",template:Ir,styles:Er,shadowOptions:Mr},Nr)),Hr=(e,t)=>r.css`
|
|
2277
2277
|
${(0,s.radioStyles)(e,t)}
|
|
2278
2278
|
:host {
|
|
2279
2279
|
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
|
|
@@ -2284,7 +2284,7 @@
|
|
|
2284
2284
|
:host([aria-checked='true']) {
|
|
2285
2285
|
background: var(--accent-foreground-rest);
|
|
2286
2286
|
}
|
|
2287
|
-
`,
|
|
2287
|
+
`,Br=(e,t)=>r.html`
|
|
2288
2288
|
<template
|
|
2289
2289
|
role="radio"
|
|
2290
2290
|
aria-checked="${e=>e.checked}"
|
|
@@ -2298,21 +2298,21 @@
|
|
|
2298
2298
|
<slot></slot>
|
|
2299
2299
|
</span>
|
|
2300
2300
|
</template>
|
|
2301
|
-
`;class
|
|
2301
|
+
`;class jr extends s.Radio{}const Vr=void 0,zr={},Gr=jr.compose(Object.assign({baseName:"segmented-item",template:Br,styles:Hr,shadowOptions:Vr},zr)),Yr=(e,t)=>r.css`
|
|
2302
2302
|
${(0,s.selectStyles)(e,t)}
|
|
2303
|
-
`,
|
|
2303
|
+
`,Ur=(e,t)=>(0,n.selectTemplate)(e,t);class Wr extends s.Select{}const qr=void 0,Zr={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 '},Xr=Wr.compose(Object.assign({baseName:"select",template:Ur,styles:Yr,shadowOptions:qr},Zr)),Kr=(e,t)=>r.css`
|
|
2304
2304
|
${(0,s.skeletonStyles)(e,t)}
|
|
2305
|
-
`,
|
|
2305
|
+
`,Qr=(e,t)=>(0,n.skeletonTemplate)(e,t);class Jr extends s.Skeleton{}const el=void 0,tl={},ol=Jr.compose(Object.assign({baseName:"skeleton",template:Qr,styles:Kr,shadowOptions:el},tl)),il=(e,t)=>r.css`
|
|
2306
2306
|
${(0,s.sliderStyles)(e,t)}
|
|
2307
2307
|
.track-progress {
|
|
2308
2308
|
background-color: var(--accent-fill-rest);
|
|
2309
2309
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
2310
2310
|
}
|
|
2311
|
-
`;var
|
|
2311
|
+
`;var al=o(75511),nl=o(62515);const sl=(e,t)=>r.html`
|
|
2312
2312
|
<template
|
|
2313
2313
|
role="slider"
|
|
2314
2314
|
class="${e=>e.readOnly?"readonly":""}
|
|
2315
|
-
${e=>e.orientation||
|
|
2315
|
+
${e=>e.orientation||al.i.horizontal}"
|
|
2316
2316
|
tabindex="${e=>e.disabled?null:0}"
|
|
2317
2317
|
aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
|
|
2318
2318
|
aria-valuenow="${e=>e.value}"
|
|
@@ -2324,15 +2324,15 @@
|
|
|
2324
2324
|
class="${e=>e.orientation}"
|
|
2325
2325
|
>
|
|
2326
2326
|
<div part="positioning-region" class="positioning-region">
|
|
2327
|
-
<div ${(0,
|
|
2327
|
+
<div ${(0,r.ref)("track")} part="track-container" class="track">
|
|
2328
2328
|
<div
|
|
2329
2329
|
class="track-progress"
|
|
2330
|
-
style="${e=>{const t=1-(0,
|
|
2330
|
+
style="${e=>{const t=1-(0,nl.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;`}}"
|
|
2331
2331
|
></div>
|
|
2332
2332
|
</div>
|
|
2333
2333
|
<slot></slot>
|
|
2334
2334
|
<div
|
|
2335
|
-
${(0,
|
|
2335
|
+
${(0,r.ref)("thumb")}
|
|
2336
2336
|
part="thumb-container"
|
|
2337
2337
|
class="thumb-container"
|
|
2338
2338
|
style="${e=>e.position}"
|
|
@@ -2341,9 +2341,9 @@
|
|
|
2341
2341
|
</div>
|
|
2342
2342
|
</div>
|
|
2343
2343
|
</template>
|
|
2344
|
-
`;class
|
|
2344
|
+
`;class rl extends s.Slider{}const ll=void 0,dl={thumb:'\n <div class="thumb-cursor"></div>\n '},cl=rl.compose(Object.assign({baseName:"slider",template:sl,styles:il,shadowOptions:ll},dl)),ul=(e,t)=>r.css`
|
|
2345
2345
|
${(0,s.sliderLabelStyles)(e,t)}
|
|
2346
|
-
`,
|
|
2346
|
+
`,pl=(e,t)=>(0,n.sliderLabelTemplate)(e,t);class hl extends s.SliderLabel{}const ml=void 0,vl={},gl=hl.compose(Object.assign({baseName:"slider-label",template:pl,styles:ul,shadowOptions:ml},vl)),fl=r.css`
|
|
2347
2347
|
@keyframes append-animate {
|
|
2348
2348
|
from {
|
|
2349
2349
|
transform: translateX(100%);
|
|
@@ -2425,15 +2425,15 @@
|
|
|
2425
2425
|
flex: 1;
|
|
2426
2426
|
overflow: hidden;
|
|
2427
2427
|
}
|
|
2428
|
-
`,
|
|
2429
|
-
<div class="snackbar ${e=>e.deleteAnimation}" ${(0,
|
|
2428
|
+
`,bl=e=>r.html`
|
|
2429
|
+
<div class="snackbar ${e=>e.deleteAnimation}" ${(0,r.ref)("snackbar")}>
|
|
2430
2430
|
<div part="content" class="content">
|
|
2431
2431
|
<div>
|
|
2432
2432
|
${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}
|
|
2433
2433
|
</div>
|
|
2434
2434
|
</div>
|
|
2435
2435
|
<div part="action" class="action">
|
|
2436
|
-
${(0,
|
|
2436
|
+
${(0,r.repeat)((e=>{var t,o,i,a,n,s;return(null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.confirmingActions)||(null===(s=null===(n=null===(a=e.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.snackbar)||void 0===s?void 0:s.confirmingActions)}),r.html`
|
|
2437
2437
|
<${e}-button
|
|
2438
2438
|
slot="action"
|
|
2439
2439
|
appearance="lightweight"
|
|
@@ -2444,9 +2444,9 @@
|
|
|
2444
2444
|
`)}
|
|
2445
2445
|
</div>
|
|
2446
2446
|
</div>
|
|
2447
|
-
`,
|
|
2448
|
-
${e=>
|
|
2449
|
-
`,
|
|
2447
|
+
`,yl=r.html`
|
|
2448
|
+
${e=>bl(C(e))}
|
|
2449
|
+
`,xl={mode:"open",delegatesFocus:!0};class wl 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,x.__decorate)([r.observable],wl.prototype,"error",void 0),(0,x.__decorate)([r.observable],wl.prototype,"notification",void 0),(0,x.__decorate)([r.observable],wl.prototype,"deleteAnimation",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout"})],wl.prototype,"closeTimeout",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close"})],wl.prototype,"autoClose",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"type"})],wl.prototype,"type",void 0);const $l=wl.compose({baseName:"snackbar",styles:fl,template:yl,shadowOptions:xl}),Sl=r.css`
|
|
2450
2450
|
:host {
|
|
2451
2451
|
display: flex;
|
|
2452
2452
|
height: 100%;
|
|
@@ -2530,12 +2530,12 @@
|
|
|
2530
2530
|
max-width: 100%;
|
|
2531
2531
|
max-height: 70px;
|
|
2532
2532
|
}
|
|
2533
|
-
`;var
|
|
2533
|
+
`;var Fl=o(55509);const _l=e=>r.html`
|
|
2534
2534
|
<${e}-card class="stepper-tab" part="stepper-tab" role="stepper-tab" data-test-id="stepper-tab">
|
|
2535
2535
|
<div class="stepper-tab-menu" part="stepper-tab-menu">
|
|
2536
|
-
<slot name="tab" ${(0,
|
|
2536
|
+
<slot name="tab" ${(0,r.slotted)("tabs")}></slot>
|
|
2537
2537
|
</div>
|
|
2538
|
-
${(0,
|
|
2538
|
+
${(0,r.when)((e=>e.orientation===n.TabsOrientation.vertical),r.html`
|
|
2539
2539
|
<div class="stepper-tab-progress" part="stepper-tab-progress">
|
|
2540
2540
|
<${e}-progress-ring class="progress-ring" part="progress-ring" value=${e=>e.progressValue}></${e}-progress-ring>
|
|
2541
2541
|
<label>You have completed ${e=>e.progressValue}% of the fields required to create a project</label>
|
|
@@ -2543,24 +2543,24 @@
|
|
|
2543
2543
|
</${e}-card>
|
|
2544
2544
|
<${e}-card class="stepper-tab-panel" part="stepper-tab-panel" data-test-id="stepper-tab-panel">
|
|
2545
2545
|
<div class="stepper-panel-container" part="stepper-panel-container">
|
|
2546
|
-
<slot name="tab-panel" ${(0,
|
|
2546
|
+
<slot name="tab-panel" ${(0,r.slotted)("tabpanels")}></slot>
|
|
2547
2547
|
</div>
|
|
2548
2548
|
<div class="action-buttons-container" part="action-buttons-container">
|
|
2549
2549
|
<slot name="action-buttons">
|
|
2550
2550
|
<${e}-button @click=${e=>e.previousStep()} ?disabled=${e=>e.disabledPreviousStep}>Back</${e}-button>
|
|
2551
|
-
${(0,
|
|
2551
|
+
${(0,Fl.l)((e=>e.isLastStep),r.html`
|
|
2552
2552
|
<${e}-button @click=${e=>e._submit()} ?disabled=${e=>e.islastStepValid} data-test-id="submit-button">
|
|
2553
2553
|
Submit
|
|
2554
2554
|
</${e}-button>
|
|
2555
|
-
`,
|
|
2555
|
+
`,r.html`
|
|
2556
2556
|
<${e}-button @click=${e=>e.nextStep()} data-test-id="next-button">Next</${e}-button>
|
|
2557
2557
|
`)}
|
|
2558
2558
|
</slot>
|
|
2559
2559
|
</div>
|
|
2560
2560
|
</${e}-card>
|
|
2561
|
-
`,
|
|
2562
|
-
${e=>
|
|
2563
|
-
`;class
|
|
2561
|
+
`,Cl=r.html`
|
|
2562
|
+
${e=>_l(C(e))}
|
|
2563
|
+
`;class Dl extends n.FoundationElement{constructor(){super(...arguments),this.orientation=n.TabsOrientation.vertical,this.progressValue=0,this.activeTabIndex=0,this.completedIds=new Map,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((e,t)=>{if("tab"===e.slot){const o=this.activeTabIndex===t,i=t+1===this.tabIds.length,a=this.tabIds[t],n=this.tabpanelIds[t];e.setAttribute("id",a),e.setAttribute("aria-selected",o?"true":"false"),e.setAttribute("aria-disabled",o?"false":"true"),e.setAttribute("selected",o?"true":"false"),e.setAttribute("orientation",this.orientation),e.setAttribute("aria-controls",n),e.setAttribute("aria-controls",n),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(i)),e.setAttribute("tabindex",o?"0":"-1"),o&&(this.activetab=e,this.activeid=a)}}))},this.getCompletedTabs=()=>{this.tabs.forEach(((e,t)=>{const o=this.tabIds[t],i=e.isCompleted();this.completedIds.set(o,i)}));let e=0;for(const t of this.completedIds.values())!0===t&&(e+=1);this.progressValue=Math.round(e/this.tabpanels.length*100)},this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const o=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",o),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){if(this.$emit("next-step"),this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("validation-success"))}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,Ra.EL)()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,Ra.EL)()}`}))}}(0,x.__decorate)([r.attr],Dl.prototype,"orientation",void 0),(0,x.__decorate)([r.attr],Dl.prototype,"activeid",void 0),(0,x.__decorate)([r.observable],Dl.prototype,"tabs",void 0),(0,x.__decorate)([r.observable],Dl.prototype,"tabpanels",void 0),(0,x.__decorate)([r.observable],Dl.prototype,"validation",void 0),(0,x.__decorate)([r.observable],Dl.prototype,"progressValue",void 0),(0,x.__decorate)([r.observable],Dl.prototype,"activeTabIndex",void 0),(0,x.__decorate)([r.volatile],Dl.prototype,"disabledPreviousStep",null),(0,x.__decorate)([r.volatile],Dl.prototype,"isLastStep",null),(0,x.__decorate)([r.volatile],Dl.prototype,"islastStepValid",null);const Ol=void 0,kl={},Tl=Dl.compose(Object.assign({baseName:"stepper",template:Cl,styles:Sl,shadowOptions:Ol},kl)),Ll=(e,t)=>r.css`
|
|
2564
2564
|
.tree-item {
|
|
2565
2565
|
cursor: default;
|
|
2566
2566
|
}
|
|
@@ -2637,10 +2637,10 @@
|
|
|
2637
2637
|
:host([error]) .step-title {
|
|
2638
2638
|
color: #f14376;
|
|
2639
2639
|
}
|
|
2640
|
-
`,
|
|
2641
|
-
${(0,
|
|
2642
|
-
<${e}-tree-item ${(0,
|
|
2643
|
-
${(0,
|
|
2640
|
+
`,Al=e=>r.html`
|
|
2641
|
+
${(0,Fl.l)((e=>e.orientation===n.TabsOrientation.vertical),r.html`
|
|
2642
|
+
<${e}-tree-item ${(0,r.ref)("treeItem")} class="tree-item">
|
|
2643
|
+
${(0,r.when)((e=>e.completed),r.html`
|
|
2644
2644
|
<${e}-icon
|
|
2645
2645
|
name="check-circle"
|
|
2646
2646
|
variant="regular"
|
|
@@ -2648,7 +2648,7 @@
|
|
|
2648
2648
|
class="stepper-icon completed-icon"
|
|
2649
2649
|
></${e}-icon>
|
|
2650
2650
|
`)}
|
|
2651
|
-
${(0,
|
|
2651
|
+
${(0,r.when)((e=>e.error),r.html`
|
|
2652
2652
|
<${e}-icon
|
|
2653
2653
|
name="times-circle"
|
|
2654
2654
|
variant="regular"
|
|
@@ -2658,11 +2658,11 @@
|
|
|
2658
2658
|
`)}
|
|
2659
2659
|
<slot></slot>
|
|
2660
2660
|
</${e}-tree-item>
|
|
2661
|
-
`,
|
|
2661
|
+
`,r.html`
|
|
2662
2662
|
<div class="step-number-container">
|
|
2663
2663
|
<span class="step-number">${e=>e.tabPosition}</span>
|
|
2664
2664
|
<slot class="step-title"></slot>
|
|
2665
|
-
${(0,
|
|
2665
|
+
${(0,r.when)((e=>!e.isLast),r.html`
|
|
2666
2666
|
<${e}-icon
|
|
2667
2667
|
class="stepper-icon angle-icon"
|
|
2668
2668
|
name="angle-right"
|
|
@@ -2672,13 +2672,13 @@
|
|
|
2672
2672
|
`)}
|
|
2673
2673
|
</div>
|
|
2674
2674
|
`)}
|
|
2675
|
-
`,
|
|
2676
|
-
${e=>
|
|
2677
|
-
`;class
|
|
2675
|
+
`,El=r.html`
|
|
2676
|
+
${e=>Al(C(e))}
|
|
2677
|
+
`;class Il extends n.FoundationElement{constructor(){super(...arguments),this.slot="tab",this.orientation=n.TabsOrientation.vertical}isCompleted(){return this.completed}selectedChanged(){this.treeItem&&(this.treeItem.selected=this.selected)}}(0,x.__decorate)([r.attr],Il.prototype,"slot",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Il.prototype,"selected",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Il.prototype,"completed",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Il.prototype,"error",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Il.prototype,"isLast",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"tab-position"})],Il.prototype,"tabPosition",void 0),(0,x.__decorate)([r.attr],Il.prototype,"orientation",void 0);const Rl=void 0,Ml={},Nl=Il.compose(Object.assign({baseName:"stepper-tab",template:El,styles:Ll,shadowOptions:Rl},Ml)),Pl=()=>r.html`
|
|
2678
2678
|
<template slot="tab-panel" role="stepper-tab-panel">
|
|
2679
2679
|
<slot></slot>
|
|
2680
2680
|
</template>
|
|
2681
|
-
`;class
|
|
2681
|
+
`;class Hl extends n.FoundationElement{}const Bl=void 0,jl={},Vl=Hl.compose(Object.assign({baseName:"stepper-tab-panel",template:Pl,shadowOptions:Bl},jl)),zl=(e,t)=>r.css`
|
|
2682
2682
|
${(0,s.switchStyles)(e,t)}
|
|
2683
2683
|
.checked-indicator {
|
|
2684
2684
|
transform: scale(1.3);
|
|
@@ -2691,24 +2691,24 @@
|
|
|
2691
2691
|
.checked-indicator {
|
|
2692
2692
|
border-radius: calc(var(--control-corner-radius) * 2px);
|
|
2693
2693
|
}
|
|
2694
|
-
`,
|
|
2694
|
+
`,Gl=(e,t)=>(0,n.switchTemplate)(e,t);class Yl extends s.Switch{}const Ul=void 0,Wl={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},ql=Yl.compose(Object.assign({baseName:"switch",template:Gl,styles:zl,shadowOptions:Ul},Wl)),Zl=(e,t)=>r.css`
|
|
2695
2695
|
${(0,s.tabStyles)(e,t)}
|
|
2696
|
-
`,
|
|
2696
|
+
`,Xl=(e,t)=>(0,n.tabTemplate)(e,t);class Kl extends s.Tab{}const Ql=void 0,Jl={},ed=Kl.compose(Object.assign({baseName:"tab",template:Xl,styles:Zl,shadowOptions:Ql},Jl)),td=(e,t)=>r.css`
|
|
2697
2697
|
${(0,s.tabPanelStyles)(e,t)}
|
|
2698
|
-
`,od=(e,t)=>(0,n.tabPanelTemplate)(e,t);class id extends s.TabPanel{}const ad=void 0,nd={},sd=id.compose(Object.assign({baseName:"tab-panel",template:od,styles:td,shadowOptions:ad},nd)),
|
|
2698
|
+
`,od=(e,t)=>(0,n.tabPanelTemplate)(e,t);class id extends s.TabPanel{}const ad=void 0,nd={},sd=id.compose(Object.assign({baseName:"tab-panel",template:od,styles:td,shadowOptions:ad},nd)),rd=(e,t)=>r.css`
|
|
2699
2699
|
${(0,s.tabsStyles)(e,t)}
|
|
2700
|
-
`,
|
|
2700
|
+
`,ld=(e,t)=>(0,n.tabsTemplate)(e,t);class dd extends s.Tabs{}const cd=void 0,ud={},pd=dd.compose(Object.assign({baseName:"tabs",template:ld,styles:rd,shadowOptions:cd},ud)),hd=(e,t)=>r.css`
|
|
2701
2701
|
${(0,s.textAreaStyles)(e,t)}
|
|
2702
2702
|
:host .control {
|
|
2703
2703
|
padding: calc(var(--design-unit) * 3px);
|
|
2704
2704
|
}
|
|
2705
|
-
`,md=(e,t)=>(0,n.textAreaTemplate)(e,t);class vd extends s.TextArea{}const gd=void 0,
|
|
2705
|
+
`,md=(e,t)=>(0,n.textAreaTemplate)(e,t);class vd extends s.TextArea{}const gd=void 0,fd={},bd=vd.compose(Object.assign({baseName:"text-area",template:md,styles:hd,shadowOptions:gd},fd)),{create:yd}=n.DesignToken,xd=yd("active-color-scheme").withDefault((e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?"light":"dark")),wd=(e,t)=>r.css`
|
|
2706
2706
|
${(0,s.textFieldStyles)(e,t)}
|
|
2707
2707
|
|
|
2708
2708
|
input {
|
|
2709
2709
|
color-scheme: ${xd};
|
|
2710
2710
|
}
|
|
2711
|
-
`,$d=(e,t)=>
|
|
2711
|
+
`,$d=(e,t)=>r.html`
|
|
2712
2712
|
<template
|
|
2713
2713
|
class="
|
|
2714
2714
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -2719,7 +2719,7 @@
|
|
|
2719
2719
|
for="${e=>e.id?e.id:"control"}"
|
|
2720
2720
|
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
2721
2721
|
>
|
|
2722
|
-
<slot ${(0,
|
|
2722
|
+
<slot ${(0,r.slotted)({property:"defaultSlottedNodes",filter:n.whitespaceFilter})}></slot>
|
|
2723
2723
|
</label>
|
|
2724
2724
|
<div class="root" part="root">
|
|
2725
2725
|
${(0,n.startSlotTemplate)(e,t)}
|
|
@@ -2765,12 +2765,12 @@
|
|
|
2765
2765
|
aria-owns="${e=>e.ariaOwns}"
|
|
2766
2766
|
aria-relevant="${e=>e.ariaRelevant}"
|
|
2767
2767
|
aria-roledescription="${e=>e.ariaRoledescription}"
|
|
2768
|
-
${(0,
|
|
2768
|
+
${(0,r.ref)("control")}
|
|
2769
2769
|
/>
|
|
2770
2770
|
${(0,n.endSlotTemplate)(e,t)}
|
|
2771
2771
|
</div>
|
|
2772
2772
|
</template>
|
|
2773
|
-
`;class Sd 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,x.__decorate)([
|
|
2773
|
+
`;class Sd 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,x.__decorate)([r.attr],Sd.prototype,"autocomplete",void 0),(0,x.__decorate)([r.attr],Sd.prototype,"autocapitalize",void 0),(0,x.__decorate)([r.attr],Sd.prototype,"step",void 0);const Fd={mode:"open",delegatesFocus:!0},_d={},Cd=Sd.compose(Object.assign({baseName:"text-field",template:$d,styles:wd,shadowOptions:Fd},_d)),Dd=r.css`
|
|
2774
2774
|
@keyframes append-animate {
|
|
2775
2775
|
from {
|
|
2776
2776
|
transform: translateX(100%);
|
|
@@ -2871,8 +2871,8 @@
|
|
|
2871
2871
|
.close-icon svg {
|
|
2872
2872
|
cursor: pointer;
|
|
2873
2873
|
}
|
|
2874
|
-
`,
|
|
2875
|
-
<div class="toast ${e=>e.deleteAnimation}" ${(0,
|
|
2874
|
+
`,Od=r.html`
|
|
2875
|
+
<div class="toast ${e=>e.deleteAnimation}" ${(0,r.ref)("toast")}>
|
|
2876
2876
|
<div class="content-wrapper">
|
|
2877
2877
|
<div part="top" class="top">
|
|
2878
2878
|
<slot name="top"></slot>
|
|
@@ -2889,11 +2889,11 @@
|
|
|
2889
2889
|
</div>
|
|
2890
2890
|
</div>
|
|
2891
2891
|
</div>
|
|
2892
|
-
`,kd={mode:"open",delegatesFocus:!0},Td={};class Ld 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,x.__decorate)([
|
|
2892
|
+
`,kd={mode:"open",delegatesFocus:!0},Td={};class Ld 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,x.__decorate)([r.observable],Ld.prototype,"deleteAnimation",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout"})],Ld.prototype,"closeTimeout",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close"})],Ld.prototype,"autoClose",void 0);const Ad=Ld.compose(Object.assign({baseName:"toast",styles:Dd,template:Od,shadowOptions:kd},Td)),Ed=(e,t)=>r.css`
|
|
2893
2893
|
${(0,s.toolbarStyles)(e,t)}
|
|
2894
|
-
`,Id=(e,t)=>(0,n.toolbarTemplate)(e,t);class Rd extends s.Toolbar{}const
|
|
2894
|
+
`,Id=(e,t)=>(0,n.toolbarTemplate)(e,t);class Rd extends s.Toolbar{}const Md=void 0,Nd={},Pd=Rd.compose(Object.assign({baseName:"toolbar",template:Id,styles:Ed,shadowOptions:Md},Nd)),Hd=(e,t)=>r.css`
|
|
2895
2895
|
${(0,s.tooltipStyles)(e,t)}
|
|
2896
|
-
`,Bd=(e,t)=>(0,n.tooltipTemplate)(e,t);class jd extends s.Tooltip{}const Vd=void 0,zd={},Gd=jd.compose(Object.assign({baseName:"tooltip",template:Bd,styles:Hd,shadowOptions:Vd},zd)),
|
|
2896
|
+
`,Bd=(e,t)=>(0,n.tooltipTemplate)(e,t);class jd extends s.Tooltip{}const Vd=void 0,zd={},Gd=jd.compose(Object.assign({baseName:"tooltip",template:Bd,styles:Hd,shadowOptions:Vd},zd)),Yd=(e,t)=>r.css`
|
|
2897
2897
|
${(0,s.treeItemStyles)(e,t)}
|
|
2898
2898
|
:host {
|
|
2899
2899
|
--focus-stroke-width: 0;
|
|
@@ -2910,9 +2910,9 @@
|
|
|
2910
2910
|
.positioning-region {
|
|
2911
2911
|
height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
|
|
2912
2912
|
}
|
|
2913
|
-
`,
|
|
2913
|
+
`,Ud=(e,t)=>(0,n.treeItemTemplate)(e,t);class Wd extends s.TreeItem{}const qd=void 0,Zd={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>'},Xd=Wd.compose(Object.assign({baseName:"tree-item",template:Ud,styles:Yd,shadowOptions:qd},Zd)),Kd=(e,t)=>r.css`
|
|
2914
2914
|
${(0,s.treeViewStyles)(e,t)}
|
|
2915
|
-
`,Qd=(e,t)=>(0,n.treeViewTemplate)(e,t);class Jd extends n.TreeView{}const ec=void 0,tc={},oc=Jd.compose(Object.assign({baseName:"tree-view",template:Qd,styles:
|
|
2915
|
+
`,Qd=(e,t)=>(0,n.treeViewTemplate)(e,t);class Jd extends n.TreeView{}const ec=void 0,tc={},oc=Jd.compose(Object.assign({baseName:"tree-view",template:Qd,styles:Kd,shadowOptions:ec},tc)),ic=(e,t)=>r.css`
|
|
2916
2916
|
.container {
|
|
2917
2917
|
position: relative;
|
|
2918
2918
|
width: 100%;
|
|
@@ -2932,7 +2932,7 @@
|
|
|
2932
2932
|
overflow: hidden;
|
|
2933
2933
|
text-overflow: ellipsis;
|
|
2934
2934
|
}
|
|
2935
|
-
`,ac=e=>
|
|
2935
|
+
`,ac=e=>r.html`
|
|
2936
2936
|
<div class="container" value=${e=>e.value}>
|
|
2937
2937
|
<${e}-text-field
|
|
2938
2938
|
class="url-input"
|
|
@@ -2943,15 +2943,15 @@
|
|
|
2943
2943
|
@focus=${e=>e.focus()}
|
|
2944
2944
|
:readOnly=${e=>e.readOnly}
|
|
2945
2945
|
></${e}-text-field>
|
|
2946
|
-
${(0,
|
|
2946
|
+
${(0,r.when)((e=>e.readOnly||!e.focused),r.html`
|
|
2947
2947
|
<a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
|
|
2948
2948
|
`)}
|
|
2949
2949
|
</div>
|
|
2950
|
-
`,nc=
|
|
2950
|
+
`,nc=r.html`
|
|
2951
2951
|
${e=>ac(C(e))}
|
|
2952
|
-
`,sc=void 0,
|
|
2953
|
-
<template ${(0,
|
|
2952
|
+
`,sc=void 0,rc={};class lc 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,x.__decorate)([r.observable],lc.prototype,"value",void 0),(0,x.__decorate)([r.observable],lc.prototype,"focused",void 0);const dc=lc.compose(Object.assign({baseName:"url-input",template:nc,styles:ic,shadowOptions:sc},rc)),cc={foundationAccordion:h,foundationAccordionItem:y,foundationActionsMenu:L,foundationAnchor:N,foundationAnchoredRegion:z,foundationAvatar:X,foundationBadge:oe,foundationBanner:ce,foundationBreadcrumbItem:$e,foundationBreadcrumb:ge,foundationButton:Oe,foundationCalendar:Ie,foundationCard:Be,foundationCheckbox:Ue,foundationCombobox:St,foundationConnectionIndicator:Ot,foundationDataGrid:It,foundationDataGridCell:Ht,foundationDataGridRow:Gt,foundationDatePicker:uo,foundationDesignSystemProvider:ei,foundationDialog:ci,foundationDisclosure:gi,foundationDivider:$i,foundationDropdownMenu:ki,foundationErrorBoundary:Wi,foundationErrorBanner:Ii,foundationErrorDialog:Ji,foundationFileUpload:Sa,foundationFilter:Ia,foundationFilterBar:za,foundationFlexLayout:Ka,foundationFlipper:an,foundationFlyout:pn,foundationGridLayout:wn,foundationGridLayoutItem:Cn,foundationHorizontalScroll:An,foundationIcon:Gn,foundationListbox:Xn,foundationListboxOption:os,foundationMenu:ls,foundationMenuItem:ms,foundationModal:xs,foundationMultiselect:Ts,foundationNumberField:Ns,foundationProgress:Zs,foundationPopper:zs,foundationProgressRing:tr,foundationRadio:rr,foundationRadioGroup:hr,foundationSearchBar:Cr,foundationSearchBarCombobox:Ar,foundationSegmentedControl:Pr,foundationSegmentedItem:Gr,foundationSelect:Xr,foundationSkeleton:ol,foundationSlider:cl,foundationSliderLabel:gl,foundationSnackbar:$l,foundationStepper:Tl,foundationStepperTab:Nl,foundationStepperTabPanel:Vl,foundationSwitch:ql,foundationTab:ed,foundationTabPanel:sd,foundationTabs:pd,foundationTextArea:bd,foundationTextField:Cd,foundationToast:Ad,foundationToolbar:Pd,foundationTooltip:Gd,foundationTreeItem:Xd,foundationTreeView:oc,foundationUrlInput:dc,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};function uc(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 pc=(e,t="foundation")=>{e&&Eo(i,a,e);return uc(n.DesignSystem.getOrCreate(e).withPrefix(t))};class hc extends r.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return r.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 mc=class extends ot{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,x.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()}))}getColumnDefs(e){return null==e?void 0:e.flatMap((e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name}))}clearData(){ae.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),o=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=o,this.dataGrid.rowsData=t}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};mc=(0,x.__decorate)([(0,r.customElement)({name:"data-grid-datasource"})],mc);const vc=r.html`
|
|
2953
|
+
<template ${(0,r.ref)("notificationListener")}>
|
|
2954
2954
|
<slot></slot>
|
|
2955
2955
|
</template>
|
|
2956
|
-
`;var gc;!function(e){e.NOTIFICATION_EVENT="notification-event"}(gc||(gc={}));const
|
|
2957
|
-
//# sourceMappingURL=
|
|
2956
|
+
`;var gc;!function(e){e.NOTIFICATION_EVENT="notification-event"}(gc||(gc={}));const fc={mode:"open",delegatesFocus:!0};class bc 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,x.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.addEventListener(gc.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),pa(e.detail,this.tagName,this.notificationListener)})),this.resourceName&&(yield this.datasource.init({resourceName:this.resourceName},!0),null===(t=this.datasource.stream)||void 0===t||t.subscribe((e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,Qe.$)(e))})))}))}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((e=>{const{HEADER:t,MESSAGE:o,NOTIFY_SEVERITY:i}=e,a=e.CREATED_AT?new Date(e.CREATED_AT):void 0,n=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0;let s=[];this.toastButtons&&this.toastButtons.length>0&&(s=this.toastButtons.filter((({condition:t})=>!t||t({details:e}))));((e,t,o)=>{if(!e.title)throw new Error("Title is required");if(!e.body)throw new Error("Missing required param 'body'");let i={title:e.title,body:e.body},a={};e.createdAt&&(i=Object.assign({createdAt:e.createdAt},i)),e.logLevel in ie.LogLevel&&(i=Object.assign({logLevel:e.logLevel},i)),e.toast&&(a=Object.assign({toast:e.toast},a),i=Object.assign({config:a},i)),ca(i,t,o)})({title:t,body:o,createdAt:a,toast:{details:e,type:null==i?void 0:i.toLowerCase(),buttons:s,autoClose:void 0!==n?!!n:!!this.closeTimeout,closeTimeout:null!=n?n:this.closeTimeout}},this.tagName)}))}}(0,x.__decorate)([r.observable],bc.prototype,"notificationListener",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"resource-name"})],bc.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],bc.prototype,"closeTimeout",void 0),(0,x.__decorate)([r.observable],bc.prototype,"toastButtons",void 0),(0,x.__decorate)([et.Yh],bc.prototype,"datasource",void 0);const yc=bc.compose({baseName:"notification-listener",template:vc,shadowOptions:fc}),xc=(e,t)=>o=>{const i="function"==typeof t?t:(a=t,e=>Object.assign(Object.assign({},a),e));var a;return r.FASTElement.define(class extends e{},i(o))};function wc(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=r.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}const $c=e=>!e.navId||"header"===e.navId,Sc=10;function Fc(e,t=$c,o=Sc){const i=[];return e.filter((e=>e.navItems&&e.navItems.some(t))).forEach(((e,a)=>{e.navItems.filter(t).map(((t,i)=>{var n,s,r,l;const d=null!==(n=t.placementIndex)&&void 0!==n?n:a*o+i;return Object.assign(Object.assign({},t),{navId:null!==(s=t.navId)&&void 0!==s?s:"header",placementIndex:d,routePath:null!==(r=t.routePath)&&void 0!==r?r:e.path,routeName:null!==(l=t.routeName)&&void 0!==l?l:e.name})})).forEach((e=>i.push(e)))})),i.sort(((e,t)=>e.placementIndex-t.placementIndex))}var _c,Cc=o(50961);!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(_c||(_c={}));class Dc{constructor(e){this.analytics=(0,Cc.ZP)(e)}trackEvent(e,t){ea.k.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`),this.analytics.track(e,t)}}const Oc=n.DI.createInterface((e=>e.singleton(Dc)));var kc=o(37002),Tc=o(68228),Lc=o(15878);let Ac=class extends(kc.F0.from(r.FASTElement)){connectedCallback(){super.connectedCallback(),r.DOM.queueUpdate((()=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Ac=(0,x.__decorate)([(0,r.customElement)({name:"foundation-router"})],Ac);class Ec extends Tc.R{constructor(){super(...arguments),this.definitions=[]}map(...e){this.definitions=[...this.definitions,...e],super.map(...e)}}(0,x.__decorate)([r.observable],Ec.prototype,"definitions",void 0);class Ic extends Lc.A{constructor(){super(...arguments),this.routes=new Ec(this)}getNavItems(e=$c){return Fc(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.analytics.trackEvent(_c.routeChanged,{path:e.route.endpoint.path})}))})}construct(e){return this.container.get(e)}}(0,x.__decorate)([n.Container],Ic.prototype,"container",void 0),(0,x.__decorate)([Oc],Ic.prototype,"analytics",void 0);const Rc=()=>pc().register(cc)}}]);
|
|
2957
|
+
//# sourceMappingURL=752.811e806b2b5f2d1cc09e556119b156bf.js.map
|